publish website (#310)

diff --git a/content/feed.xml b/content/feed.xml
index 541bdba..6b5bd05 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2024-02-23T09:57:29+08:00</updated><id>/feed.xml</id><title type="html">Apache ServiceComb</title><subtitle>The homepage of ServiceComb</subtitle><author><name>{&quot;name&quot;=&gt;nil, &quot;avatar&quot;=&gt;&quot;/assets/images/ServiceComb-logo-3.jpg&quot;, &quot;bio&quot;=&gt;&quot;ServiceComb is a microservice framework that provides service registration, discovery, configuration and management utilities.&quot;, &quot;biocn&quot;=&gt;&quot;ServiceComb提供了一套关于服务注册,服务发现,服务配置以及管理功能的微服务框架&quot;, &quot;location&quot;=&gt;&quot;China&quot;, &quot;locationcn&quot;=&gt;&quot;中国&quot;, &quot;email&quot;=&gt;&quot;dev@servicecomb.apache.org&quot;, &quot;uri&quot;=&gt;nil, &quot;bitbucket&quot;=&gt;nil, &quot;codepen&quot;=&gt;nil, &quot;dribbble&quot;=&gt;nil, &quot;flickr&quot;=&gt;nil, &quot;facebook&quot;=&gt;nil, &quot;foursquare&quot;=&gt;nil, &quot;github&quot;=&gt;&quot;ServiceComb&quot;, &quot;google_plus&quot;=&gt;nil, &quot;keybase&quot;=&gt;nil, &quot;instagram&quot;=&gt;nil, &quot;lastfm&quot;=&gt;nil, &quot;linkedin&quot;=&gt;nil, &quot;pinterest&quot;=&gt;nil, &quot;soundcloud&quot;=&gt;nil, &quot;stackoverflow&quot;=&gt;nil, &quot;steam&quot;=&gt;nil, &quot;tumblr&quot;=&gt;nil, &quot;twitter&quot;=&gt;nil, &quot;vine&quot;=&gt;nil, &quot;weibo&quot;=&gt;nil, &quot;xing&quot;=&gt;nil, &quot;youtube&quot;=&gt;nil}</name><email>dev@servicecomb.apache.org</email></author><entry xml:lang="cn"><title type="html">与Apache ServiceComb一起玩开源-广工站 (PPT Download)</title><link href="/cn/docs/playing-on-the-open-source-community-with-Apache-ServiceComb-GDUT/" rel="alternate" type="text/html" title="与Apache ServiceComb一起玩开源-广工站 (PPT Download)" /><published>2019-12-11T00:00:00+08:00</published><updated>2019-12-11T10:30:00+08:00</updated><id>/cn/docs/playing-on-the-open-source-community-with-Apache-ServiceComb-GDUT</id><content type="html" xml:base="/cn/docs/playing-on-the-open-source-community-with-Apache-ServiceComb-GDUT/">&lt;p&gt;近日,Apache ServiceComb与广东工业大学计算机院学生会联合举办“与Apache ServiceComb一起玩开源”讲座。Apache ServiceComb PMC成员马彬与华为开源软件架构师郑志鹏,为广工的同学们带来“开源开发者的一天”和“微服务架构及ServiceComb实践”的精彩演讲以及现场教学互动。&lt;/p&gt;
+<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2024-04-26T14:21:04+08:00</updated><id>/feed.xml</id><title type="html">Apache ServiceComb</title><subtitle>The homepage of ServiceComb</subtitle><author><name>{&quot;name&quot;=&gt;nil, &quot;avatar&quot;=&gt;&quot;/assets/images/ServiceComb-logo-3.jpg&quot;, &quot;bio&quot;=&gt;&quot;ServiceComb is a microservice framework that provides service registration, discovery, configuration and management utilities.&quot;, &quot;biocn&quot;=&gt;&quot;ServiceComb提供了一套关于服务注册,服务发现,服务配置以及管理功能的微服务框架&quot;, &quot;location&quot;=&gt;&quot;China&quot;, &quot;locationcn&quot;=&gt;&quot;中国&quot;, &quot;email&quot;=&gt;&quot;dev@servicecomb.apache.org&quot;, &quot;uri&quot;=&gt;nil, &quot;bitbucket&quot;=&gt;nil, &quot;codepen&quot;=&gt;nil, &quot;dribbble&quot;=&gt;nil, &quot;flickr&quot;=&gt;nil, &quot;facebook&quot;=&gt;nil, &quot;foursquare&quot;=&gt;nil, &quot;github&quot;=&gt;&quot;ServiceComb&quot;, &quot;google_plus&quot;=&gt;nil, &quot;keybase&quot;=&gt;nil, &quot;instagram&quot;=&gt;nil, &quot;lastfm&quot;=&gt;nil, &quot;linkedin&quot;=&gt;nil, &quot;pinterest&quot;=&gt;nil, &quot;soundcloud&quot;=&gt;nil, &quot;stackoverflow&quot;=&gt;nil, &quot;steam&quot;=&gt;nil, &quot;tumblr&quot;=&gt;nil, &quot;twitter&quot;=&gt;nil, &quot;vine&quot;=&gt;nil, &quot;weibo&quot;=&gt;nil, &quot;xing&quot;=&gt;nil, &quot;youtube&quot;=&gt;nil}</name><email>dev@servicecomb.apache.org</email></author><entry xml:lang="cn"><title type="html">与Apache ServiceComb一起玩开源-广工站 (PPT Download)</title><link href="/cn/docs/playing-on-the-open-source-community-with-Apache-ServiceComb-GDUT/" rel="alternate" type="text/html" title="与Apache ServiceComb一起玩开源-广工站 (PPT Download)" /><published>2019-12-11T00:00:00+08:00</published><updated>2019-12-11T10:30:00+08:00</updated><id>/cn/docs/playing-on-the-open-source-community-with-Apache-ServiceComb-GDUT</id><content type="html" xml:base="/cn/docs/playing-on-the-open-source-community-with-Apache-ServiceComb-GDUT/">&lt;p&gt;近日,Apache ServiceComb与广东工业大学计算机院学生会联合举办“与Apache ServiceComb一起玩开源”讲座。Apache ServiceComb PMC成员马彬与华为开源软件架构师郑志鹏,为广工的同学们带来“开源开发者的一天”和“微服务架构及ServiceComb实践”的精彩演讲以及现场教学互动。&lt;/p&gt;
 
 &lt;p&gt;本次讲座得到广东工业大学计算机院学生会同学们的鼎力支持和参与。报名通道开放后,报名人数迅速达到150+,活动放在学校报告厅举办。即便在周日,同学们的热情仍然很高,给广东工业大学的同学们点赞。&lt;/p&gt;
 
diff --git a/content/references/java-chassis/en_US/404.html b/content/references/java-chassis/en_US/404.html
index 431598c..732d197 100644
--- a/content/references/java-chassis/en_US/404.html
+++ b/content/references/java-chassis/en_US/404.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="/assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="/assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="/assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2405,7 +2405,7 @@
     <script id="__config" type="application/json">{"base": "/", "features": [], "search": "/assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="/assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="/assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/assets/javascripts/bundle.8fd75fb4.min.js b/content/references/java-chassis/en_US/assets/javascripts/bundle.8fd75fb4.min.js
deleted file mode 100644
index 2f2f130..0000000
--- a/content/references/java-chassis/en_US/assets/javascripts/bundle.8fd75fb4.min.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";(()=>{var _i=Object.create;var br=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Ci=Object.getOwnPropertyNames,Ft=Object.getOwnPropertySymbols,ki=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var Zr=(e,t,r)=>t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))vr.call(t,r)&&Zr(e,r,t[r]);if(Ft)for(var r of Ft(t))eo.call(t,r)&&Zr(e,r,t[r]);return e};var to=(e,t)=>{var r={};for(var o in e)vr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ft)for(var o of Ft(e))t.indexOf(o)<0&&eo.call(e,o)&&(r[o]=e[o]);return r};var gr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hi=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ci(t))!vr.call(e,n)&&n!==r&&br(e,n,{get:()=>t[n],enumerable:!(o=Ai(t,n))||o.enumerable});return e};var jt=(e,t,r)=>(r=e!=null?_i(ki(e)):{},Hi(t||!e||!e.__esModule?br(r,"default",{value:e,enumerable:!0}):r,e));var ro=(e,t,r)=>new Promise((o,n)=>{var i=c=>{try{a(r.next(c))}catch(p){n(p)}},s=c=>{try{a(r.throw(c))}catch(p){n(p)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(e,t)).next())});var no=gr((xr,oo)=>{(function(e,t){typeof xr=="object"&&typeof oo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(xr,function(){"use strict";function e(r){var o=!0,n=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(C){return!!(C&&C!==document&&C.nodeName!=="HTML"&&C.nodeName!=="BODY"&&"classList"in C&&"contains"in C.classList)}function c(C){var ct=C.type,Ne=C.tagName;return!!(Ne==="INPUT"&&s[ct]&&!C.readOnly||Ne==="TEXTAREA"&&!C.readOnly||C.isContentEditable)}function p(C){C.classList.contains("focus-visible")||(C.classList.add("focus-visible"),C.setAttribute("data-focus-visible-added",""))}function l(C){C.hasAttribute("data-focus-visible-added")&&(C.classList.remove("focus-visible"),C.removeAttribute("data-focus-visible-added"))}function f(C){C.metaKey||C.altKey||C.ctrlKey||(a(r.activeElement)&&p(r.activeElement),o=!0)}function u(C){o=!1}function h(C){a(C.target)&&(o||c(C.target))&&p(C.target)}function w(C){a(C.target)&&(C.target.classList.contains("focus-visible")||C.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),l(C.target))}function A(C){document.visibilityState==="hidden"&&(n&&(o=!0),Z())}function Z(){document.addEventListener("mousemove",J),document.addEventListener("mousedown",J),document.addEventListener("mouseup",J),document.addEventListener("pointermove",J),document.addEventListener("pointerdown",J),document.addEventListener("pointerup",J),document.addEventListener("touchmove",J),document.addEventListener("touchstart",J),document.addEventListener("touchend",J)}function te(){document.removeEventListener("mousemove",J),document.removeEventListener("mousedown",J),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",J),document.removeEventListener("pointerdown",J),document.removeEventListener("pointerup",J),document.removeEventListener("touchmove",J),document.removeEventListener("touchstart",J),document.removeEventListener("touchend",J)}function J(C){C.target.nodeName&&C.target.nodeName.toLowerCase()==="html"||(o=!1,te())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",A,!0),Z(),r.addEventListener("focus",h,!0),r.addEventListener("blur",w,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var zr=gr((kt,Vr)=>{/*!
- * clipboard.js v2.0.11
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */(function(t,r){typeof kt=="object"&&typeof Vr=="object"?Vr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof kt=="object"?kt.ClipboardJS=r():t.ClipboardJS=r()})(kt,function(){return function(){var e={686:function(o,n,i){"use strict";i.d(n,{default:function(){return Li}});var s=i(279),a=i.n(s),c=i(370),p=i.n(c),l=i(817),f=i.n(l);function u(D){try{return document.execCommand(D)}catch(M){return!1}}var h=function(M){var O=f()(M);return u("cut"),O},w=h;function A(D){var M=document.documentElement.getAttribute("dir")==="rtl",O=document.createElement("textarea");O.style.fontSize="12pt",O.style.border="0",O.style.padding="0",O.style.margin="0",O.style.position="absolute",O.style[M?"right":"left"]="-9999px";var I=window.pageYOffset||document.documentElement.scrollTop;return O.style.top="".concat(I,"px"),O.setAttribute("readonly",""),O.value=D,O}var Z=function(M,O){var I=A(M);O.container.appendChild(I);var W=f()(I);return u("copy"),I.remove(),W},te=function(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},I="";return typeof M=="string"?I=Z(M,O):M instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(M==null?void 0:M.type)?I=Z(M.value,O):(I=f()(M),u("copy")),I},J=te;function C(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(O){return typeof O}:C=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},C(D)}var ct=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=M.action,I=O===void 0?"copy":O,W=M.container,K=M.target,Ce=M.text;if(I!=="copy"&&I!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(K!==void 0)if(K&&C(K)==="object"&&K.nodeType===1){if(I==="copy"&&K.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(I==="cut"&&(K.hasAttribute("readonly")||K.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ce)return J(Ce,{container:W});if(K)return I==="cut"?w(K):J(K,{container:W})},Ne=ct;function Pe(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(O){return typeof O}:Pe=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},Pe(D)}function xi(D,M){if(!(D instanceof M))throw new TypeError("Cannot call a class as a function")}function Xr(D,M){for(var O=0;O<M.length;O++){var I=M[O];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(D,I.key,I)}}function yi(D,M,O){return M&&Xr(D.prototype,M),O&&Xr(D,O),D}function Ei(D,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(M&&M.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),M&&dr(D,M)}function dr(D,M){return dr=Object.setPrototypeOf||function(I,W){return I.__proto__=W,I},dr(D,M)}function wi(D){var M=Oi();return function(){var I=Pt(D),W;if(M){var K=Pt(this).constructor;W=Reflect.construct(I,arguments,K)}else W=I.apply(this,arguments);return Ti(this,W)}}function Ti(D,M){return M&&(Pe(M)==="object"||typeof M=="function")?M:Si(D)}function Si(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Oi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(D){return!1}}function Pt(D){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},Pt(D)}function hr(D,M){var O="data-clipboard-".concat(D);if(M.hasAttribute(O))return M.getAttribute(O)}var Mi=function(D){Ei(O,D);var M=wi(O);function O(I,W){var K;return xi(this,O),K=M.call(this),K.resolveOptions(W),K.listenClick(I),K}return yi(O,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action=="function"?W.action:this.defaultAction,this.target=typeof W.target=="function"?W.target:this.defaultTarget,this.text=typeof W.text=="function"?W.text:this.defaultText,this.container=Pe(W.container)==="object"?W.container:document.body}},{key:"listenClick",value:function(W){var K=this;this.listener=p()(W,"click",function(Ce){return K.onClick(Ce)})}},{key:"onClick",value:function(W){var K=W.delegateTarget||W.currentTarget,Ce=this.action(K)||"copy",It=Ne({action:Ce,container:this.container,target:this.target(K),text:this.text(K)});this.emit(It?"success":"error",{action:Ce,text:It,trigger:K,clearSelection:function(){K&&K.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(W){return hr("action",W)}},{key:"defaultTarget",value:function(W){var K=hr("target",W);if(K)return document.querySelector(K)}},{key:"defaultText",value:function(W){return hr("text",W)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(W){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return J(W,K)}},{key:"cut",value:function(W){return w(W)}},{key:"isSupported",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],K=typeof W=="string"?[W]:W,Ce=!!document.queryCommandSupported;return K.forEach(function(It){Ce=Ce&&!!document.queryCommandSupported(It)}),Ce}}]),O}(a()),Li=Mi},828:function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}o.exports=s},438:function(o,n,i){var s=i(828);function a(l,f,u,h,w){var A=p.apply(this,arguments);return l.addEventListener(u,A,w),{destroy:function(){l.removeEventListener(u,A,w)}}}function c(l,f,u,h,w){return typeof l.addEventListener=="function"?a.apply(null,arguments):typeof u=="function"?a.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(A){return a(A,f,u,h,w)}))}function p(l,f,u,h){return function(w){w.delegateTarget=s(w.target,f),w.delegateTarget&&h.call(l,w)}}o.exports=c},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(o,n,i){var s=i(879),a=i(438);function c(u,h,w){if(!u&&!h&&!w)throw new Error("Missing required arguments");if(!s.string(h))throw new TypeError("Second argument must be a String");if(!s.fn(w))throw new TypeError("Third argument must be a Function");if(s.node(u))return p(u,h,w);if(s.nodeList(u))return l(u,h,w);if(s.string(u))return f(u,h,w);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(u,h,w){return u.addEventListener(h,w),{destroy:function(){u.removeEventListener(h,w)}}}function l(u,h,w){return Array.prototype.forEach.call(u,function(A){A.addEventListener(h,w)}),{destroy:function(){Array.prototype.forEach.call(u,function(A){A.removeEventListener(h,w)})}}}function f(u,h,w){return a(document.body,u,h,w)}o.exports=c},817:function(o){function n(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),p=document.createRange();p.selectNodeContents(i),c.removeAllRanges(),c.addRange(p),s=c.toString()}return s}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,s,a){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var c=this;function p(){c.off(i,p),s.apply(a,arguments)}return p._=s,this.on(i,p,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),c=0,p=a.length;for(c;c<p;c++)a[c].fn.apply(a[c].ctx,s);return this},off:function(i,s){var a=this.e||(this.e={}),c=a[i],p=[];if(c&&s)for(var l=0,f=c.length;l<f;l++)c[l].fn!==s&&c[l].fn._!==s&&p.push(c[l]);return p.length?a[i]=p:delete a[i],this}},o.exports=n,o.exports.TinyEmitter=n}},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}}(),function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}}(),function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),r(686)}().default})});var Kn=gr((Cw,qn)=>{"use strict";/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var Va=/["'&<>]/;qn.exports=za;function za(e){var t=""+e,r=Va.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}s!==i&&(n+=t.substring(s,i)),s=i+1,n+=o}return s!==i?n+t.substring(s,i):n}});var mM=jt(no());/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */var yr=function(e,t){return yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},yr(e,t)};function se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function io(e,t,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{p(o.next(l))}catch(f){s(f)}}function c(l){try{p(o.throw(l))}catch(f){s(f)}}function p(l){l.done?i(l.value):n(l.value).then(a,c)}p((o=o.apply(e,t||[])).next())})}function Ut(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(l){return c([p,l])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=p[0]&2?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(l){p=[6,l],n=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function ue(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function z(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function ot(e){return this instanceof ot?(this.v=e,this):new ot(e)}function ao(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(u){o[u]&&(n[u]=function(h){return new Promise(function(w,A){i.push([u,h,w,A])>1||a(u,h)})})}function a(u,h){try{c(o[u](h))}catch(w){f(i[0][3],w)}}function c(u){u.value instanceof ot?Promise.resolve(u.value.v).then(p,l):f(i[0][2],u)}function p(u){a("next",u)}function l(u){a("throw",u)}function f(u,h){u(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function so(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ue=="function"?ue(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),n(a,c,s.done,s.value)})}}function n(i,s,a,c){Promise.resolve(c).then(function(p){i({value:p,done:a})},s)}}function k(e){return typeof e=="function"}function pt(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Wt=pt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
-`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
-  `):"",this.name="UnsubscriptionError",this.errors=r}});function Ve(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ue(s),c=a.next();!c.done;c=a.next()){var p=c.value;p.remove(this)}}catch(A){t={error:A}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(k(l))try{l()}catch(A){i=A instanceof Wt?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var u=ue(f),h=u.next();!h.done;h=u.next()){var w=h.value;try{co(w)}catch(A){i=i!=null?i:[],A instanceof Wt?i=z(z([],V(i)),V(A.errors)):i.push(A)}}}catch(A){o={error:A}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new Wt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)co(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ve(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ve(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Er=Ie.EMPTY;function Dt(e){return e instanceof Ie||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function co(e){k(e)?e():e.unsubscribe()}var ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var lt={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=lt.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,z([e,t],V(r))):setTimeout.apply(void 0,z([e,t],V(r)))},clearTimeout:function(e){var t=lt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Nt(e){lt.setTimeout(function(){var t=ke.onUnhandledError;if(t)t(e);else throw e})}function Se(){}var po=function(){return wr("C",void 0,void 0)}();function lo(e){return wr("E",void 0,e)}function mo(e){return wr("N",e,void 0)}function wr(e,t,r){return{kind:e,value:t,error:r}}var nt=null;function mt(e){if(ke.useDeprecatedSynchronousErrorHandling){var t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){var r=nt,o=r.errorThrown,n=r.error;if(nt=null,o)throw n}}else e()}function fo(e){ke.useDeprecatedSynchronousErrorHandling&&nt&&(nt.errorThrown=!0,nt.error=e)}var Tt=function(e){se(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Dt(r)&&r.add(o)):o.destination=Ii,o}return t.create=function(r,o,n){return new it(r,o,n)},t.prototype.next=function(r){this.isStopped?Sr(mo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Sr(lo(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Sr(po,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ie);var $i=Function.prototype.bind;function Tr(e,t){return $i.call(e,t)}var Ri=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(o){Vt(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){Vt(o)}else Vt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Vt(r)}},e}(),it=function(e){se(t,e);function t(r,o,n){var i=e.call(this)||this,s;if(k(r)||!r)s={next:r!=null?r:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var a;i&&ke.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Tr(r.next,a),error:r.error&&Tr(r.error,a),complete:r.complete&&Tr(r.complete,a)}):s=r}return i.destination=new Ri(s),i}return t}(Tt);function Vt(e){ke.useDeprecatedSynchronousErrorHandling?fo(e):Nt(e)}function Pi(e){throw e}function Sr(e,t){var r=ke.onStoppedNotification;r&&lt.setTimeout(function(){return r(e,t)})}var Ii={closed:!0,next:Se,error:Pi,complete:Se};var ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ce(e){return e}function uo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Or(e)}function Or(e){return e.length===0?ce:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var j=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,o){var n=this,i=ji(t)?t:new it(t,r,o);return mt(function(){var s=n,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=ho(r),new r(function(n,i){var s=new it({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:n});o.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ft]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Or(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ho(t),new t(function(o,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return o(i)})})},e.create=function(t){return new e(t)},e}();function ho(e){var t;return(t=e!=null?e:ke.Promise)!==null&&t!==void 0?t:Promise}function Fi(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function ji(e){return e&&e instanceof Tt||Fi(e)&&Dt(e)}function Ui(e){return k(e==null?void 0:e.lift)}function x(e){return function(t){if(Ui(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function S(e,t,r,o,n){return new Wi(e,t,r,o,n)}var Wi=function(e){se(t,e);function t(r,o,n,i,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=o?function(p){try{o(p)}catch(l){r.error(l)}}:e.prototype._next,c._error=i?function(p){try{i(p)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=n?function(){try{n()}catch(p){r.error(p)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Tt);var ut={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=ut.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new Ie(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,z([],V(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,z([],V(e)))},delegate:void 0};var bo=pt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var v=function(e){se(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new vo(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new bo},t.prototype.next=function(r){var o=this;mt(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=ue(o.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;mt(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;mt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?Er:(this.currentObservers=null,a.push(r),new Ie(function(){o.currentObservers=null,Ve(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,o){return new vo(r,o)},t}(j);var vo=function(e){se(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:Er},t}(v);var St={now:function(){return(St.delegate||Date).now()},delegate:void 0};var Ot=function(e){se(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=St);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,c=o._windowTime;n||(i.push(r),!s&&i.push(a.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),c=0;c<a.length&&!r.closed;c+=i?1:2)r.next(a[c]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*o;if(o<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var c=n.now(),p=0,l=1;l<i.length&&i[l]<=c;l+=2)p=l;p&&i.splice(0,p+1)}},t}(v);var go=function(e){se(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t}(Ie);var Mt={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Mt.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,z([e,t],V(r))):setInterval.apply(void 0,z([e,t],V(r)))},clearInterval:function(e){var t=Mt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var zt=function(e){se(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Mt.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Mt.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ve(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(go);var Mr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=St.now,e}();var qt=function(e){se(t,e);function t(r,o){o===void 0&&(o=Mr.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t}(Mr);var ie=new qt(zt),Lr=ie;var xo=function(e){se(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var s=r.actions;o!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==o&&(ut.cancelAnimationFrame(o),r._scheduled=void 0)},t}(zt);var yo=function(e){se(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t}(qt);var de=new yo(xo);var L=new j(function(e){return e.complete()});function Kt(e){return e&&k(e.schedule)}function _r(e){return e[e.length-1]}function Je(e){return k(_r(e))?e.pop():void 0}function Ae(e){return Kt(_r(e))?e.pop():void 0}function Qt(e,t){return typeof _r(e)=="number"?e.pop():t}var dt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Yt(e){return k(e==null?void 0:e.then)}function Bt(e){return k(e[ft])}function Gt(e){return Symbol.asyncIterator&&k(e==null?void 0:e[Symbol.asyncIterator])}function Jt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Di(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xt=Di();function Zt(e){return k(e==null?void 0:e[Xt])}function er(e){return ao(this,arguments,function(){var r,o,n,i;return Ut(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,ot(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,ot(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,ot(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function tr(e){return k(e==null?void 0:e.getReader)}function N(e){if(e instanceof j)return e;if(e!=null){if(Bt(e))return Ni(e);if(dt(e))return Vi(e);if(Yt(e))return zi(e);if(Gt(e))return Eo(e);if(Zt(e))return qi(e);if(tr(e))return Ki(e)}throw Jt(e)}function Ni(e){return new j(function(t){var r=e[ft]();if(k(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vi(e){return new j(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function zi(e){return new j(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Nt)})}function qi(e){return new j(function(t){var r,o;try{for(var n=ue(e),i=n.next();!i.done;i=n.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Eo(e){return new j(function(t){Qi(e,t).catch(function(r){return t.error(r)})})}function Ki(e){return Eo(er(e))}function Qi(e,t){var r,o,n,i;return io(this,void 0,void 0,function(){var s,a;return Ut(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=so(e),c.label=1;case 1:return[4,r.next()];case 2:if(o=c.sent(),!!o.done)return[3,4];if(s=o.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),n={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function xe(e,t,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function Oe(e,t){return t===void 0&&(t=0),x(function(r,o){r.subscribe(S(o,function(n){return xe(o,e,function(){return o.next(n)},t)},function(){return xe(o,e,function(){return o.complete()},t)},function(n){return xe(o,e,function(){return o.error(n)},t)}))})}function ze(e,t){return t===void 0&&(t=0),x(function(r,o){o.add(e.schedule(function(){return r.subscribe(o)},t))})}function wo(e,t){return N(e).pipe(ze(t),Oe(t))}function To(e,t){return N(e).pipe(ze(t),Oe(t))}function So(e,t){return new j(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}function Oo(e,t){return new j(function(r){var o;return xe(r,t,function(){o=e[Xt](),xe(r,t,function(){var n,i,s;try{n=o.next(),i=n.value,s=n.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return k(o==null?void 0:o.return)&&o.return()}})}function rr(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(function(r){xe(r,t,function(){var o=e[Symbol.asyncIterator]();xe(r,t,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function Mo(e,t){return rr(er(e),t)}function Lo(e,t){if(e!=null){if(Bt(e))return wo(e,t);if(dt(e))return So(e,t);if(Yt(e))return To(e,t);if(Gt(e))return rr(e,t);if(Zt(e))return Oo(e,t);if(tr(e))return Mo(e,t)}throw Jt(e)}function fe(e,t){return t?Lo(e,t):N(e)}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e);return fe(e,r)}function Ar(e,t){var r=k(e)?e:function(){return e},o=function(n){return n.error(r())};return new j(t?function(n){return t.schedule(o,0,n)}:o)}var or=pt(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function _o(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return x(function(r,o){var n=0;r.subscribe(S(o,function(i){o.next(e.call(t,i,n++))}))})}var Yi=Array.isArray;function Bi(e,t){return Yi(t)?e.apply(void 0,z([],V(t))):e(t)}function Xe(e){return m(function(t){return Bi(e,t)})}var Gi=Array.isArray,Ji=Object.getPrototypeOf,Xi=Object.prototype,Zi=Object.keys;function Ao(e){if(e.length===1){var t=e[0];if(Gi(t))return{args:t,keys:null};if(ea(t)){var r=Zi(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function ea(e){return e&&typeof e=="object"&&Ji(e)===Xi}function Co(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Je(e),n=Ao(e),i=n.args,s=n.keys;if(i.length===0)return fe([],r);var a=new j(Cr(i,r,s?function(c){return Co(s,c)}:ce));return o?a.pipe(Xe(o)):a}function Cr(e,t,r){return r===void 0&&(r=ce),function(o){ko(t,function(){for(var n=e.length,i=new Array(n),s=n,a=n,c=function(l){ko(t,function(){var f=fe(e[l],t),u=!1;f.subscribe(S(o,function(h){i[l]=h,u||(u=!0,a--),a||o.next(r(i.slice()))},function(){--s||o.complete()}))},o)},p=0;p<n;p++)c(p)},o)}}function ko(e,t,r){e?xe(r,e,t):t()}function Ho(e,t,r,o,n,i,s,a){var c=[],p=0,l=0,f=!1,u=function(){f&&!c.length&&!p&&t.complete()},h=function(A){return p<o?w(A):c.push(A)},w=function(A){i&&t.next(A),p++;var Z=!1;N(r(A,l++)).subscribe(S(t,function(te){n==null||n(te),i?h(te):t.next(te)},function(){Z=!0},void 0,function(){if(Z)try{p--;for(var te=function(){var J=c.shift();s?xe(t,s,function(){return w(J)}):w(J)};c.length&&p<o;)te();u()}catch(J){t.error(J)}}))};return e.subscribe(S(t,h,function(){f=!0,u()})),function(){a==null||a()}}function re(e,t,r){return r===void 0&&(r=1/0),k(t)?re(function(o,n){return m(function(i,s){return t(o,i,n,s)})(N(e(o,n)))},r):(typeof t=="number"&&(r=t),x(function(o,n){return Ho(o,n,e,r)}))}function ht(e){return e===void 0&&(e=1/0),re(ce,e)}function $o(){return ht(1)}function Fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $o()(fe(e,Ae(e)))}function H(e){return new j(function(t){N(e()).subscribe(t)})}var ta=["addListener","removeListener"],ra=["addEventListener","removeEventListener"],oa=["on","off"];function d(e,t,r,o){if(k(r)&&(o=r,r=void 0),o)return d(e,t,r).pipe(Xe(o));var n=V(aa(e)?ra.map(function(a){return function(c){return e[a](t,c,r)}}):na(e)?ta.map(Ro(e,t)):ia(e)?oa.map(Ro(e,t)):[],2),i=n[0],s=n[1];if(!i&&dt(e))return re(function(a){return d(a,t,r)})(N(e));if(!i)throw new TypeError("Invalid event target");return new j(function(a){var c=function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];return a.next(1<p.length?p:p[0])};return i(c),function(){return s(c)}})}function Ro(e,t){return function(r){return function(o){return e[r](t,o)}}}function na(e){return k(e.addListener)&&k(e.removeListener)}function ia(e){return k(e.on)&&k(e.off)}function aa(e){return k(e.addEventListener)&&k(e.removeEventListener)}function nr(e,t,r){return r?nr(e,t).pipe(Xe(r)):new j(function(o){var n=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o.next(s.length===1?s[0]:s)},i=e(n);return k(t)?function(){return t(n,i)}:void 0})}function Ze(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Lr);var o=-1;return t!=null&&(Kt(t)?r=t:o=t),new j(function(n){var i=_o(e)?+e-r.now():e;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Qt(e,1/0),n=e;return n.length?n.length===1?N(n[0]):ht(o)(fe(n,r)):L}var qe=new j(Se);var sa=Array.isArray;function bt(e){return e.length===1&&sa(e[0])?e[0]:e}function g(e,t){return x(function(r,o){var n=0;r.subscribe(S(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function Lt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je(e),o=bt(e);return o.length?new j(function(n){var i=o.map(function(){return[]}),s=o.map(function(){return!1});n.add(function(){i=s=null});for(var a=function(p){N(o[p]).subscribe(S(n,function(l){if(i[p].push(l),i.every(function(u){return u.length})){var f=i.map(function(u){return u.shift()});n.next(r?r.apply(void 0,z([],V(f))):f),i.some(function(u,h){return!u.length&&s[h]})&&n.complete()}},function(){s[p]=!0,!i[p].length&&n.complete()}))},c=0;!n.closed&&c<o.length;c++)a(c);return function(){i=s=null}}):L}function Po(e){return x(function(t,r){var o=!1,n=null,i=null,s=!1,a=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var p=n;n=null,r.next(p)}s&&r.complete()},c=function(){i=null,s&&r.complete()};t.subscribe(S(r,function(p){o=!0,n=p,i||N(e(p)).subscribe(i=S(r,a,c))},function(){s=!0,(!o||!i||i.closed)&&r.complete()}))})}function Me(e,t){return t===void 0&&(t=ie),Po(function(){return Ze(e,t)})}function Ke(e,t){return t===void 0&&(t=null),t=t!=null?t:e,x(function(r,o){var n=[],i=0;r.subscribe(S(o,function(s){var a,c,p,l,f=null;i++%t===0&&n.push([]);try{for(var u=ue(n),h=u.next();!h.done;h=u.next()){var w=h.value;w.push(s),e<=w.length&&(f=f!=null?f:[],f.push(w))}}catch(te){a={error:te}}finally{try{h&&!h.done&&(c=u.return)&&c.call(u)}finally{if(a)throw a.error}}if(f)try{for(var A=ue(f),Z=A.next();!Z.done;Z=A.next()){var w=Z.value;Ve(n,w),o.next(w)}}catch(te){p={error:te}}finally{try{Z&&!Z.done&&(l=A.return)&&l.call(A)}finally{if(p)throw p.error}}},function(){var s,a;try{for(var c=ue(n),p=c.next();!p.done;p=c.next()){var l=p.value;o.next(l)}}catch(f){s={error:f}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}o.complete()},void 0,function(){n=null}))})}function he(e){return x(function(t,r){var o=null,n=!1,i;o=t.subscribe(S(r,void 0,void 0,function(s){i=N(e(s,he(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function Io(e,t,r,o,n){return function(i,s){var a=r,c=t,p=0;i.subscribe(S(s,function(l){var f=p++;c=a?e(c,l,f):(a=!0,l),o&&s.next(c)},n&&function(){a&&s.next(c),s.complete()}))}}function kr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je(e);return r?uo(kr.apply(void 0,z([],V(e))),Xe(r)):x(function(o,n){Cr(z([o],V(bt(e))))(n)})}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kr.apply(void 0,z([],V(e)))}function be(e,t){return t===void 0&&(t=ie),x(function(r,o){var n=null,i=null,s=null,a=function(){if(n){n.unsubscribe(),n=null;var p=i;i=null,o.next(p)}};function c(){var p=s+e,l=t.now();if(l<p){n=this.schedule(void 0,p-l),o.add(n);return}a()}r.subscribe(S(o,function(p){i=p,s=t.now(),n||(n=t.schedule(c,e),o.add(n))},function(){a(),o.complete()},void 0,function(){i=n=null}))})}function Qe(e){return x(function(t,r){var o=!1;t.subscribe(S(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function ye(e){return e<=0?function(){return L}:x(function(t,r){var o=0;t.subscribe(S(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function ee(){return x(function(e,t){e.subscribe(S(t,Se))})}function Fo(e){return m(function(){return e})}function Hr(e,t){return t?function(r){return Fe(t.pipe(ye(1),ee()),r.pipe(Hr(e)))}:re(function(r,o){return N(e(r,o)).pipe(ye(1),Fo(r))})}function Ye(e,t){t===void 0&&(t=ie);var r=Ze(e,t);return Hr(function(){return r})}function Y(e,t){return t===void 0&&(t=ce),e=e!=null?e:ca,x(function(r,o){var n,i=!0;r.subscribe(S(o,function(s){var a=t(s);(i||!e(n,a))&&(i=!1,n=a,o.next(s))}))})}function ca(e,t){return e===t}function X(e,t){return Y(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function jo(e){return e===void 0&&(e=pa),x(function(t,r){var o=!1;t.subscribe(S(r,function(n){o=!0,r.next(n)},function(){return o?r.complete():r.error(e())}))})}function pa(){return new or}function oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Fe(r,$.apply(void 0,z([],V(e))))}}function _(e){return x(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function He(e,t){var r=arguments.length>=2;return function(o){return o.pipe(e?g(function(n,i){return e(n,i,o)}):ce,ye(1),r?Qe(t):jo(function(){return new or}))}}function $r(e){return e<=0?function(){return L}:x(function(t,r){var o=[];t.subscribe(S(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var s=ue(o),a=s.next();!a.done;a=s.next()){var c=a.value;r.next(c)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function Uo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Qt(e,1/0);return e=bt(e),x(function(n,i){ht(o)(fe(z([n],V(e)),r)).subscribe(i)})}function $e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Uo.apply(void 0,z([],V(e)))}function at(e){var t,r=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,o=e.delay):r=e),r<=0?function(){return L}:x(function(n,i){var s=0,a,c=function(){if(a==null||a.unsubscribe(),a=null,o!=null){var l=typeof o=="number"?Ze(o):N(o(s)),f=S(i,function(){f.unsubscribe(),p()});l.subscribe(f)}else p()},p=function(){var l=!1;a=n.subscribe(S(i,void 0,function(){++s<r?a?c():l=!0:i.complete()})),l&&c()};p()})}function Rr(e,t){return x(Io(e,t,arguments.length>=2,!0))}function le(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new v}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,c=a===void 0?!0:a;return function(p){var l,f,u,h=0,w=!1,A=!1,Z=function(){f==null||f.unsubscribe(),f=void 0},te=function(){Z(),l=u=void 0,w=A=!1},J=function(){var C=l;te(),C==null||C.unsubscribe()};return x(function(C,ct){h++,!A&&!w&&Z();var Ne=u=u!=null?u:r();ct.add(function(){h--,h===0&&!A&&!w&&(f=Pr(J,c))}),Ne.subscribe(ct),!l&&h>0&&(l=new it({next:function(Pe){return Ne.next(Pe)},error:function(Pe){A=!0,Z(),f=Pr(te,n,Pe),Ne.error(Pe)},complete:function(){w=!0,Z(),f=Pr(te,s),Ne.complete()}}),N(C).subscribe(l))})(p)}}function Pr(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var n=new it({next:function(){n.unsubscribe(),e()}});return N(t.apply(void 0,z([],V(r)))).subscribe(n)}}function B(e,t,r){var o,n,i,s,a=!1;return e&&typeof e=="object"?(o=e.bufferSize,s=o===void 0?1/0:o,n=e.windowTime,t=n===void 0?1/0:n,i=e.refCount,a=i===void 0?!1:i,r=e.scheduler):s=e!=null?e:1/0,le({connector:function(){return new Ot(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Le(e){return g(function(t,r){return e<=r})}function Ir(e){return x(function(t,r){var o=!1,n=S(r,function(){n==null||n.unsubscribe(),o=!0},Se);N(e).subscribe(n),t.subscribe(S(r,function(i){return o&&r.next(i)}))})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e);return x(function(o,n){(r?Fe(e,o,r):Fe(e,o)).subscribe(n)})}function b(e,t){return x(function(r,o){var n=null,i=0,s=!1,a=function(){return s&&!n&&o.complete()};r.subscribe(S(o,function(c){n==null||n.unsubscribe();var p=0,l=i++;N(e(c,l)).subscribe(n=S(o,function(f){return o.next(t?t(c,f,l,p++):f)},function(){n=null,a()}))},function(){s=!0,a()}))})}function U(e){return x(function(t,r){N(e).subscribe(S(r,function(){return r.complete()},Se)),!r.closed&&t.subscribe(r)})}function Fr(e,t){return t===void 0&&(t=!1),x(function(r,o){var n=0;r.subscribe(S(o,function(i){var s=e(i,n++);(s||t)&&o.next(i),!s&&o.complete()}))})}function y(e,t,r){var o=k(e)||t||r?{next:e,error:t,complete:r}:e;return o?x(function(n,i){var s;(s=o.subscribe)===null||s===void 0||s.call(o);var a=!0;n.subscribe(S(i,function(c){var p;(p=o.next)===null||p===void 0||p.call(o,c),i.next(c)},function(){var c;a=!1,(c=o.complete)===null||c===void 0||c.call(o),i.complete()},function(c){var p;a=!1,(p=o.error)===null||p===void 0||p.call(o,c),i.error(c)},function(){var c,p;a&&((c=o.unsubscribe)===null||c===void 0||c.call(o)),(p=o.finalize)===null||p===void 0||p.call(o)}))}):ce}function Wo(e,t){return x(function(r,o){var n=t!=null?t:{},i=n.leading,s=i===void 0?!0:i,a=n.trailing,c=a===void 0?!1:a,p=!1,l=null,f=null,u=!1,h=function(){f==null||f.unsubscribe(),f=null,c&&(Z(),u&&o.complete())},w=function(){f=null,u&&o.complete()},A=function(te){return f=N(e(te)).subscribe(S(o,h,w))},Z=function(){if(p){p=!1;var te=l;l=null,o.next(te),!u&&A(te)}};r.subscribe(S(o,function(te){p=!0,l=te,!(f&&!f.closed)&&(s?Z():A(te))},function(){u=!0,!(c&&p&&f&&!f.closed)&&o.complete()}))})}function _t(e,t,r){t===void 0&&(t=ie);var o=Ze(e,t);return Wo(function(){return o},r)}function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je(e);return x(function(o,n){for(var i=e.length,s=new Array(i),a=e.map(function(){return!1}),c=!1,p=function(f){N(e[f]).subscribe(S(n,function(u){s[f]=u,!c&&!a[f]&&(a[f]=!0,(c=a.every(ce))&&(a=null))},Se))},l=0;l<i;l++)p(l);o.subscribe(S(n,function(f){if(c){var u=z([f],V(s));n.next(r?r.apply(void 0,z([],V(u))):u)}}))})}function Do(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(function(r,o){Lt.apply(void 0,z([r],V(e))).subscribe(o)})}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Do.apply(void 0,z([],V(e)))}function No(){let e=new Ot(1);return d(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function R(e,t=document){return Array.from(t.querySelectorAll(e))}function P(e,t=document){let r=me(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function me(e,t=document){return t.querySelector(e)||void 0}function Re(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var la=T(d(document.body,"focusin"),d(document.body,"focusout")).pipe(be(1),q(void 0),m(()=>Re()||document.body),B(1));function vt(e){return la.pipe(m(t=>e.contains(t)),Y())}function Vo(e,t){return T(d(e,"mouseenter").pipe(m(()=>!0)),d(e,"mouseleave").pipe(m(()=>!1))).pipe(t?be(t):ce,q(!1))}function Ue(e){return{x:e.offsetLeft,y:e.offsetTop}}function zo(e){return T(d(window,"load"),d(window,"resize")).pipe(Me(0,de),m(()=>Ue(e)),q(Ue(e)))}function ir(e){return{x:e.scrollLeft,y:e.scrollTop}}function et(e){return T(d(e,"scroll"),d(window,"resize")).pipe(Me(0,de),m(()=>ir(e)),q(ir(e)))}function qo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)qo(e,r)}function E(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)qo(o,n);return o}function ar(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function gt(e){let t=E("script",{src:e});return H(()=>(document.head.appendChild(t),T(d(t,"load"),d(t,"error").pipe(b(()=>Ar(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),_(()=>document.head.removeChild(t)),ye(1))))}var Ko=new v,ma=H(()=>typeof ResizeObserver=="undefined"?gt("https://unpkg.com/resize-observer-polyfill"):$(void 0)).pipe(m(()=>new ResizeObserver(e=>{for(let t of e)Ko.next(t)})),b(e=>T(qe,$(e)).pipe(_(()=>e.disconnect()))),B(1));function pe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Ee(e){return ma.pipe(y(t=>t.observe(e)),b(t=>Ko.pipe(g(({target:r})=>r===e),_(()=>t.unobserve(e)),m(()=>pe(e)))),q(pe(e)))}function xt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function sr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var Qo=new v,fa=H(()=>$(new IntersectionObserver(e=>{for(let t of e)Qo.next(t)},{threshold:0}))).pipe(b(e=>T(qe,$(e)).pipe(_(()=>e.disconnect()))),B(1));function yt(e){return fa.pipe(y(t=>t.observe(e)),b(t=>Qo.pipe(g(({target:r})=>r===e),_(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function Yo(e,t=16){return et(e).pipe(m(({y:r})=>{let o=pe(e),n=xt(e);return r>=n.height-o.height-t}),Y())}var cr={drawer:P("[data-md-toggle=drawer]"),search:P("[data-md-toggle=search]")};function Bo(e){return cr[e].checked}function Be(e,t){cr[e].checked!==t&&cr[e].click()}function We(e){let t=cr[e];return d(t,"change").pipe(m(()=>t.checked),q(t.checked))}function ua(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function da(){return T(d(window,"compositionstart").pipe(m(()=>!0)),d(window,"compositionend").pipe(m(()=>!1))).pipe(q(!1))}function Go(){let e=d(window,"keydown").pipe(g(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:Bo("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),g(({mode:t,type:r})=>{if(t==="global"){let o=Re();if(typeof o!="undefined")return!ua(o,r)}return!0}),le());return da().pipe(b(t=>t?L:e))}function ve(){return new URL(location.href)}function st(e,t=!1){if(G("navigation.instant")&&!t){let r=E("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Jo(){return new v}function Xo(){return location.hash.slice(1)}function Zo(e){let t=E("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function ha(e){return T(d(window,"hashchange"),e).pipe(m(Xo),q(Xo()),g(t=>t.length>0),B(1))}function en(e){return ha(e).pipe(m(t=>me(`[id="${t}"]`)),g(t=>typeof t!="undefined"))}function At(e){let t=matchMedia(e);return nr(r=>t.addListener(()=>r(t.matches))).pipe(q(t.matches))}function tn(){let e=matchMedia("print");return T(d(window,"beforeprint").pipe(m(()=>!0)),d(window,"afterprint").pipe(m(()=>!1))).pipe(q(e.matches))}function Ur(e,t){return e.pipe(b(r=>r?t():L))}function Wr(e,t){return new j(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let s=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+s*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function De(e,t){return Wr(e,t).pipe(b(r=>r.text()),m(r=>JSON.parse(r)),B(1))}function rn(e,t){let r=new DOMParser;return Wr(e,t).pipe(b(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),B(1))}function on(e,t){let r=new DOMParser;return Wr(e,t).pipe(b(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),B(1))}function nn(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function an(){return T(d(window,"scroll",{passive:!0}),d(window,"resize",{passive:!0})).pipe(m(nn),q(nn()))}function sn(){return{width:innerWidth,height:innerHeight}}function cn(){return d(window,"resize",{passive:!0}).pipe(m(sn),q(sn()))}function pn(){return Q([an(),cn()]).pipe(m(([e,t])=>({offset:e,size:t})),B(1))}function pr(e,{viewport$:t,header$:r}){let o=t.pipe(X("size")),n=Q([o,r]).pipe(m(()=>Ue(e)));return Q([r,t,n]).pipe(m(([{height:i},{offset:s,size:a},{x:c,y:p}])=>({offset:{x:s.x-c,y:s.y-p+i},size:a})))}function ba(e){return d(e,"message",t=>t.data)}function va(e){let t=new v;return t.subscribe(r=>e.postMessage(r)),t}function ln(e,t=new Worker(e)){let r=ba(t),o=va(t),n=new v;n.subscribe(o);let i=o.pipe(ee(),oe(!0));return n.pipe(ee(),$e(r.pipe(U(i))),le())}var ga=P("#__config"),Et=JSON.parse(ga.textContent);Et.base=`${new URL(Et.base,ve())}`;function we(){return Et}function G(e){return Et.features.includes(e)}function ge(e,t){return typeof t!="undefined"?Et.translations[e].replace("#",t.toString()):Et.translations[e]}function Te(e,t=document){return P(`[data-md-component=${e}]`,t)}function ne(e,t=document){return R(`[data-md-component=${e}]`,t)}function xa(e){let t=P(".md-typeset > :first-child",e);return d(t,"click",{once:!0}).pipe(m(()=>P(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function mn(e){if(!G("announce.dismiss")||!e.childElementCount)return L;if(!e.hidden){let t=P(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return H(()=>{let t=new v;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),xa(e).pipe(y(r=>t.next(r)),_(()=>t.complete()),m(r=>F({ref:e},r)))})}function ya(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function fn(e,t){let r=new v;return r.subscribe(({hidden:o})=>{e.hidden=o}),ya(e,t).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))}function Ct(e,t){return t==="inline"?E("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"})):E("div",{class:"md-tooltip",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"}))}function un(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return E("aside",{class:"md-annotation",tabIndex:0},Ct(t),E("a",{href:r,class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}else return E("aside",{class:"md-annotation",tabIndex:0},Ct(t),E("span",{class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}function dn(e){return E("button",{class:"md-clipboard md-icon",title:ge("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Dr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(c=>!e.terms[c]).reduce((c,p)=>[...c,E("del",null,p)," "],[]).slice(0,-1),i=we(),s=new URL(e.location,i.base);G("search.highlight")&&s.searchParams.set("h",Object.entries(e.terms).filter(([,c])=>c).reduce((c,[p])=>`${c} ${p}`.trim(),""));let{tags:a}=we();return E("a",{href:`${s}`,class:"md-search-result__link",tabIndex:-1},E("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&E("div",{class:"md-search-result__icon md-icon"}),r>0&&E("h1",null,e.title),r<=0&&E("h2",null,e.title),o>0&&e.text.length>0&&e.text,e.tags&&e.tags.map(c=>{let p=a?c in a?`md-tag-icon md-tag--${a[c]}`:"md-tag-icon":"";return E("span",{class:`md-tag ${p}`},c)}),o>0&&n.length>0&&E("p",{class:"md-search-result__terms"},ge("search.result.term.missing"),": ",...n)))}function hn(e){let t=e[0].score,r=[...e],o=we(),n=r.findIndex(l=>!`${new URL(l.location,o.base)}`.includes("#")),[i]=r.splice(n,1),s=r.findIndex(l=>l.score<t);s===-1&&(s=r.length);let a=r.slice(0,s),c=r.slice(s),p=[Dr(i,2|+(!n&&s===0)),...a.map(l=>Dr(l,1)),...c.length?[E("details",{class:"md-search-result__more"},E("summary",{tabIndex:-1},E("div",null,c.length>0&&c.length===1?ge("search.result.more.one"):ge("search.result.more.other",c.length))),...c.map(l=>Dr(l,1)))]:[]];return E("li",{class:"md-search-result__item"},p)}function bn(e){return E("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>E("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?ar(r):r)))}function Nr(e){let t=`tabbed-control tabbed-control--${e}`;return E("div",{class:t,hidden:!0},E("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function vn(e){return E("div",{class:"md-typeset__scrollwrap"},E("div",{class:"md-typeset__table"},e))}function Ea(e){let t=we(),r=new URL(`../${e.version}/`,t.base);return E("li",{class:"md-version__item"},E("a",{href:`${r}`,class:"md-version__link"},e.title))}function gn(e,t){return E("div",{class:"md-version"},E("button",{class:"md-version__current","aria-label":ge("select.version")},t.title),E("ul",{class:"md-version__list"},e.map(Ea)))}var wa=0;function Ta(e,t){document.body.append(e);let{width:r}=pe(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=sr(t),n=typeof o!="undefined"?et(o):$({x:0,y:0}),i=T(vt(t),Vo(t)).pipe(Y());return Q([i,n]).pipe(m(([s,a])=>{let{x:c,y:p}=Ue(t),l=pe(t),f=t.closest("table");return f&&t.parentElement&&(c+=f.offsetLeft+t.parentElement.offsetLeft,p+=f.offsetTop+t.parentElement.offsetTop),{active:s,offset:{x:c-a.x+l.width/2-r/2,y:p-a.y+l.height+8}}}))}function Ge(e){let t=e.title;if(!t.length)return L;let r=`__tooltip_${wa++}`,o=Ct(r,"inline"),n=P(".md-typeset",o);return n.innerHTML=t,H(()=>{let i=new v;return i.subscribe({next({offset:s}){o.style.setProperty("--md-tooltip-x",`${s.x}px`),o.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),T(i.pipe(g(({active:s})=>s)),i.pipe(be(250),g(({active:s})=>!s))).subscribe({next({active:s}){s?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Me(16,de)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(_t(125,de),g(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?o.style.setProperty("--md-tooltip-0",`${-s}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Ta(o,e).pipe(y(s=>i.next(s)),_(()=>i.complete()),m(s=>F({ref:e},s)))}).pipe(ze(ie))}function Sa(e,t){let r=H(()=>Q([zo(e),et(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:s,height:a}=pe(e);return{x:o-i.x+s/2,y:n-i.y+a/2}}));return vt(e).pipe(b(o=>r.pipe(m(n=>({active:o,offset:n})),ye(+!o||1/0))))}function xn(e,t,{target$:r}){let[o,n]=Array.from(e.children);return H(()=>{let i=new v,s=i.pipe(ee(),oe(!0));return i.subscribe({next({offset:a}){e.style.setProperty("--md-tooltip-x",`${a.x}px`),e.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),yt(e).pipe(U(s)).subscribe(a=>{e.toggleAttribute("data-md-visible",a)}),T(i.pipe(g(({active:a})=>a)),i.pipe(be(250),g(({active:a})=>!a))).subscribe({next({active:a}){a?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Me(16,de)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(_t(125,de),g(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?e.style.setProperty("--md-tooltip-0",`${-a}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),d(n,"click").pipe(U(s),g(a=>!(a.metaKey||a.ctrlKey))).subscribe(a=>{a.stopPropagation(),a.preventDefault()}),d(n,"mousedown").pipe(U(s),ae(i)).subscribe(([a,{active:c}])=>{var p;if(a.button!==0||a.metaKey||a.ctrlKey)a.preventDefault();else if(c){a.preventDefault();let l=e.parentElement.closest(".md-annotation");l instanceof HTMLElement?l.focus():(p=Re())==null||p.blur()}}),r.pipe(U(s),g(a=>a===o),Ye(125)).subscribe(()=>e.focus()),Sa(e,t).pipe(y(a=>i.next(a)),_(()=>i.complete()),m(a=>F({ref:e},a)))})}function Oa(e){return e.tagName==="CODE"?R(".c, .c1, .cm",e):[e]}function Ma(e){let t=[];for(let r of Oa(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){let s;for(;s=/(\(\d+\))(!)?/.exec(i.textContent);){let[,a,c]=s;if(typeof c=="undefined"){let p=i.splitText(s.index);i=p.splitText(a.length),t.push(p)}else{i.textContent=a,t.push(i);break}}}}return t}function yn(e,t){t.append(...Array.from(e.childNodes))}function lr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,s=new Map;for(let a of Ma(t)){let[,c]=a.textContent.match(/\((\d+)\)/);me(`:scope > li:nth-child(${c})`,e)&&(s.set(c,un(c,i)),a.replaceWith(s.get(c)))}return s.size===0?L:H(()=>{let a=new v,c=a.pipe(ee(),oe(!0)),p=[];for(let[l,f]of s)p.push([P(".md-typeset",f),P(`:scope > li:nth-child(${l})`,e)]);return o.pipe(U(c)).subscribe(l=>{e.hidden=!l,e.classList.toggle("md-annotation-list",l);for(let[f,u]of p)l?yn(f,u):yn(u,f)}),T(...[...s].map(([,l])=>xn(l,t,{target$:r}))).pipe(_(()=>a.complete()),le())})}function En(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return En(t)}}function wn(e,t){return H(()=>{let r=En(e);return typeof r!="undefined"?lr(r,e,t):L})}var Tn=jt(zr());var La=0;function Sn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Sn(t)}}function _a(e){return Ee(e).pipe(m(({width:t})=>({scrollable:xt(e).width>t})),X("scrollable"))}function On(e,t){let{matches:r}=matchMedia("(hover)"),o=H(()=>{let n=new v,i=n.pipe($r(1));n.subscribe(({scrollable:c})=>{c&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let s=[];if(Tn.default.isSupported()&&(e.closest(".copy")||G("content.code.copy")&&!e.closest(".no-copy"))){let c=e.closest("pre");c.id=`__code_${La++}`;let p=dn(c.id);c.insertBefore(p,e),G("content.tooltips")&&s.push(Ge(p))}let a=e.closest(".highlight");if(a instanceof HTMLElement){let c=Sn(a);if(typeof c!="undefined"&&(a.classList.contains("annotate")||G("content.code.annotate"))){let p=lr(c,e,t);s.push(Ee(a).pipe(U(i),m(({width:l,height:f})=>l&&f),Y(),b(l=>l?p:L)))}}return _a(e).pipe(y(c=>n.next(c)),_(()=>n.complete()),m(c=>F({ref:e},c)),$e(...s))});return G("content.lazy")?yt(e).pipe(g(n=>n),ye(1),b(()=>o)):o}function Aa(e,{target$:t,print$:r}){let o=!0;return T(t.pipe(m(n=>n.closest("details:not([open])")),g(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(g(n=>n||!o),y(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function Mn(e,t){return H(()=>{let r=new v;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),Aa(e,t).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))})}var Ln=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var qr,ka=0;function Ha(){return typeof mermaid=="undefined"||mermaid instanceof Element?gt("https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js"):$(void 0)}function _n(e){return e.classList.remove("mermaid"),qr||(qr=Ha().pipe(y(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Ln,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),B(1))),qr.subscribe(()=>ro(this,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${ka++}`,r=E("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),s=r.attachShadow({mode:"closed"});s.innerHTML=n,e.replaceWith(r),i==null||i(s)})),qr.pipe(m(()=>({ref:e})))}var An=E("table");function Cn(e){return e.replaceWith(An),An.replaceWith(vn(e)),$({ref:e})}function $a(e){let t=e.find(r=>r.checked)||e[0];return T(...e.map(r=>d(r,"change").pipe(m(()=>P(`label[for="${r.id}"]`))))).pipe(q(P(`label[for="${t.id}"]`)),m(r=>({active:r})))}function kn(e,{viewport$:t,target$:r}){let o=P(".tabbed-labels",e),n=R(":scope > input",e),i=Nr("prev");e.append(i);let s=Nr("next");return e.append(s),H(()=>{let a=new v,c=a.pipe(ee(),oe(!0));Q([a,Ee(e)]).pipe(U(c),Me(1,de)).subscribe({next([{active:p},l]){let f=Ue(p),{width:u}=pe(p);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let h=ir(o);(f.x<h.x||f.x+u>h.x+l.width)&&o.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Q([et(o),Ee(o)]).pipe(U(c)).subscribe(([p,l])=>{let f=xt(o);i.hidden=p.x<16,s.hidden=p.x>f.width-l.width-16}),T(d(i,"click").pipe(m(()=>-1)),d(s,"click").pipe(m(()=>1))).pipe(U(c)).subscribe(p=>{let{width:l}=pe(o);o.scrollBy({left:l*p,behavior:"smooth"})}),r.pipe(U(c),g(p=>n.includes(p))).subscribe(p=>p.click()),o.classList.add("tabbed-labels--linked");for(let p of n){let l=P(`label[for="${p.id}"]`);l.replaceChildren(E("a",{href:`#${l.htmlFor}`,tabIndex:-1},...Array.from(l.childNodes))),d(l.firstElementChild,"click").pipe(U(c),g(f=>!(f.metaKey||f.ctrlKey)),y(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${l.htmlFor}`),l.click()})}return G("content.tabs.link")&&a.pipe(Le(1),ae(t)).subscribe(([{active:p},{offset:l}])=>{let f=p.innerText.trim();if(p.hasAttribute("data-md-switching"))p.removeAttribute("data-md-switching");else{let u=e.offsetTop-l.y;for(let w of R("[data-tabs]"))for(let A of R(":scope > input",w)){let Z=P(`label[for="${A.id}"]`);if(Z!==p&&Z.innerText.trim()===f){Z.setAttribute("data-md-switching",""),A.click();break}}window.scrollTo({top:e.offsetTop-u});let h=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...h])])}}),a.pipe(U(c)).subscribe(()=>{for(let p of R("audio, video",e))p.pause()}),$a(n).pipe(y(p=>a.next(p)),_(()=>a.complete()),m(p=>F({ref:e},p)))}).pipe(ze(ie))}function Hn(e,{viewport$:t,target$:r,print$:o}){return T(...R(".annotate:not(.highlight)",e).map(n=>wn(n,{target$:r,print$:o})),...R("pre:not(.mermaid) > code",e).map(n=>On(n,{target$:r,print$:o})),...R("pre.mermaid",e).map(n=>_n(n)),...R("table:not([class])",e).map(n=>Cn(n)),...R("details",e).map(n=>Mn(n,{target$:r,print$:o})),...R("[data-tabs]",e).map(n=>kn(n,{viewport$:t,target$:r})),...R("[title]",e).filter(()=>G("content.tooltips")).map(n=>Ge(n)))}function Ra(e,{alert$:t}){return t.pipe(b(r=>T($(!0),$(!1).pipe(Ye(2e3))).pipe(m(o=>({message:r,active:o})))))}function $n(e,t){let r=P(".md-typeset",e);return H(()=>{let o=new v;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),Ra(e,t).pipe(y(n=>o.next(n)),_(()=>o.complete()),m(n=>F({ref:e},n)))})}function Pa({viewport$:e}){if(!G("header.autohide"))return $(!1);let t=e.pipe(m(({offset:{y:n}})=>n),Ke(2,1),m(([n,i])=>[n<i,i]),X(0)),r=Q([e,t]).pipe(g(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),m(([,[n]])=>n),Y()),o=We("search");return Q([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),Y(),b(n=>n?r:$(!1)),q(!1))}function Rn(e,t){return H(()=>Q([Ee(e),Pa(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),Y((r,o)=>r.height===o.height&&r.hidden===o.hidden),B(1))}function Pn(e,{header$:t,main$:r}){return H(()=>{let o=new v,n=o.pipe(ee(),oe(!0));o.pipe(X("active"),je(t)).subscribe(([{active:s},{hidden:a}])=>{e.classList.toggle("md-header--shadow",s&&!a),e.hidden=a});let i=fe(R("[title]",e)).pipe(g(()=>G("content.tooltips")),re(s=>Ge(s)));return r.subscribe(o),t.pipe(U(n),m(s=>F({ref:e},s)),$e(i.pipe(U(n))))})}function Ia(e,{viewport$:t,header$:r}){return pr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=pe(e);return{active:o>=n}}),X("active"))}function In(e,t){return H(()=>{let r=new v;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=me(".md-content h1");return typeof o=="undefined"?L:Ia(o,t).pipe(y(n=>r.next(n)),_(()=>r.complete()),m(n=>F({ref:e},n)))})}function Fn(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),Y()),n=o.pipe(b(()=>Ee(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),X("bottom"))));return Q([o,n,t]).pipe(m(([i,{top:s,bottom:a},{offset:{y:c},size:{height:p}}])=>(p=Math.max(0,p-Math.max(0,s-c,i)-Math.max(0,p+c-a)),{offset:s-i,height:p,active:s-i<=c})),Y((i,s)=>i.offset===s.offset&&i.height===s.height&&i.active===s.active))}function Fa(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return $(...e).pipe(re(o=>d(o,"change").pipe(m(()=>o))),q(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),B(1))}function jn(e){let t=R("input",e),r=E("meta",{name:"theme-color"});document.head.appendChild(r);let o=E("meta",{name:"color-scheme"});document.head.appendChild(o);let n=At("(prefers-color-scheme: light)");return H(()=>{let i=new v;return i.subscribe(s=>{if(document.body.setAttribute("data-md-color-switching",""),s.color.media==="(prefers-color-scheme)"){let a=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(a.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");s.color.scheme=c.getAttribute("data-md-color-scheme"),s.color.primary=c.getAttribute("data-md-color-primary"),s.color.accent=c.getAttribute("data-md-color-accent")}for(let[a,c]of Object.entries(s.color))document.body.setAttribute(`data-md-color-${a}`,c);for(let a=0;a<t.length;a++){let c=t[a].nextElementSibling;c instanceof HTMLElement&&(c.hidden=s.index!==a)}__md_set("__palette",s)}),i.pipe(m(()=>{let s=Te("header"),a=window.getComputedStyle(s);return o.content=a.colorScheme,a.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(s=>r.content=`#${s}`),i.pipe(Oe(ie)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Fa(t).pipe(U(n.pipe(Le(1))),at(),y(s=>i.next(s)),_(()=>i.complete()),m(s=>F({ref:e},s)))})}function Un(e,{progress$:t}){return H(()=>{let r=new v;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(y(o=>r.next({value:o})),_(()=>r.complete()),m(o=>({ref:e,value:o})))})}var Kr=jt(zr());function ja(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function Wn({alert$:e}){Kr.default.isSupported()&&new j(t=>{new Kr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||ja(P(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(y(t=>{t.trigger.focus()}),m(()=>ge("clipboard.copied"))).subscribe(e)}function Dn(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function Ua(e,t){let r=new Map;for(let o of R("url",e)){let n=P("loc",o),i=[Dn(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let s of R("[rel=alternate]",o)){let a=s.getAttribute("href");a!=null&&i.push(Dn(new URL(a),t))}}return r}function mr(e){return on(new URL("sitemap.xml",e)).pipe(m(t=>Ua(t,new URL(e))),he(()=>$(new Map)))}function Wa(e,t){if(!(e.target instanceof Element))return L;let r=e.target.closest("a");if(r===null)return L;if(r.target||e.metaKey||e.ctrlKey)return L;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),$(new URL(r.href))):L}function Nn(e){let t=new Map;for(let r of R(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Vn(e){for(let t of R("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return $(e)}function Da(e){for(let o of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...G("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=me(o),i=me(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=Nn(document);for(let[o,n]of Nn(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values())o.remove();let r=Te("container");return Fe(R("script",r)).pipe(b(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new j(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),L}),ee(),oe(e))}function zn({location$:e,viewport$:t,progress$:r}){let o=we();if(location.protocol==="file:")return L;let n=mr(o.base);$(document).subscribe(Vn);let i=d(document.body,"click").pipe(je(n),b(([c,p])=>Wa(c,p)),le()),s=d(window,"popstate").pipe(m(ve),le());i.pipe(ae(t)).subscribe(([c,{offset:p}])=>{history.replaceState(p,""),history.pushState(null,"",c)}),T(i,s).subscribe(e);let a=e.pipe(X("pathname"),b(c=>rn(c,{progress$:r}).pipe(he(()=>(st(c,!0),L)))),b(Vn),b(Da),le());return T(a.pipe(ae(e,(c,p)=>p)),e.pipe(X("pathname"),b(()=>e),X("hash")),e.pipe(Y((c,p)=>c.pathname===p.pathname&&c.hash===p.hash),b(()=>i),y(()=>history.back()))).subscribe(c=>{var p,l;history.state!==null||!c.hash?window.scrollTo(0,(l=(p=history.state)==null?void 0:p.y)!=null?l:0):(history.scrollRestoration="auto",Zo(c.hash),history.scrollRestoration="manual")}),e.subscribe(()=>{history.scrollRestoration="manual"}),d(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),t.pipe(X("offset"),be(100)).subscribe(({offset:c})=>{history.replaceState(c,"")}),a}var Qn=jt(Kn());function Yn(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,s)=>`${i}<mark data-md-highlight>${s}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return s=>(0,Qn.default)(s).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function Ht(e){return e.type===1}function fr(e){return e.type===3}function Bn(e,t){let r=ln(e);return T($(location.protocol!=="file:"),We("search")).pipe(He(o=>o),b(()=>t)).subscribe(({config:o,docs:n})=>r.next({type:0,data:{config:o,docs:n,options:{suggest:G("search.suggest")}}})),r}function Gn({document$:e}){let t=we(),r=De(new URL("../versions.json",t.base)).pipe(he(()=>L)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:s,aliases:a})=>s===i||a.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),b(n=>d(document.body,"click").pipe(g(i=>!i.metaKey&&!i.ctrlKey),ae(o),b(([i,s])=>{if(i.target instanceof Element){let a=i.target.closest("a");if(a&&!a.target&&n.has(a.href)){let c=a.href;return!i.target.closest(".md-version")&&n.get(c)===s?L:(i.preventDefault(),$(c))}}return L}),b(i=>{let{version:s}=n.get(i);return mr(new URL(i)).pipe(m(a=>{let p=ve().href.replace(t.base,"");return a.has(p.split("#")[0])?new URL(`../${s}/${p}`,t.base):new URL(i)}))})))).subscribe(n=>st(n,!0)),Q([r,o]).subscribe(([n,i])=>{P(".md-header__topic").appendChild(gn(n,i))}),e.pipe(b(()=>o)).subscribe(n=>{var s;let i=__md_get("__outdated",sessionStorage);if(i===null){i=!0;let a=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(a)||(a=[a]);e:for(let c of a)for(let p of n.aliases.concat(n.version))if(new RegExp(c,"i").test(p)){i=!1;break e}__md_set("__outdated",i,sessionStorage)}if(i)for(let a of ne("outdated"))a.hidden=!1})}function Ka(e,{worker$:t}){let{searchParams:r}=ve();r.has("q")&&(Be("search",!0),e.value=r.get("q"),e.focus(),We("search").pipe(He(i=>!i)).subscribe(()=>{let i=ve();i.searchParams.delete("q"),history.replaceState({},"",`${i}`)}));let o=vt(e),n=T(t.pipe(He(Ht)),d(e,"keyup"),o).pipe(m(()=>e.value),Y());return Q([n,o]).pipe(m(([i,s])=>({value:i,focus:s})),B(1))}function Jn(e,{worker$:t}){let r=new v,o=r.pipe(ee(),oe(!0));Q([t.pipe(He(Ht)),r],(i,s)=>s).pipe(X("value")).subscribe(({value:i})=>t.next({type:2,data:i})),r.pipe(X("focus")).subscribe(({focus:i})=>{i&&Be("search",i)}),d(e.form,"reset").pipe(U(o)).subscribe(()=>e.focus());let n=P("header [for=__search]");return d(n,"click").subscribe(()=>e.focus()),Ka(e,{worker$:t}).pipe(y(i=>r.next(i)),_(()=>r.complete()),m(i=>F({ref:e},i)),B(1))}function Xn(e,{worker$:t,query$:r}){let o=new v,n=Yo(e.parentElement).pipe(g(Boolean)),i=e.parentElement,s=P(":scope > :first-child",e),a=P(":scope > :last-child",e);We("search").subscribe(l=>a.setAttribute("role",l?"list":"presentation")),o.pipe(ae(r),Ir(t.pipe(He(Ht)))).subscribe(([{items:l},{value:f}])=>{switch(l.length){case 0:s.textContent=f.length?ge("search.result.none"):ge("search.result.placeholder");break;case 1:s.textContent=ge("search.result.one");break;default:let u=ar(l.length);s.textContent=ge("search.result.other",u)}});let c=o.pipe(y(()=>a.innerHTML=""),b(({items:l})=>T($(...l.slice(0,10)),$(...l.slice(10)).pipe(Ke(4),jr(n),b(([f])=>f)))),m(hn),le());return c.subscribe(l=>a.appendChild(l)),c.pipe(re(l=>{let f=me("details",l);return typeof f=="undefined"?L:d(f,"toggle").pipe(U(o),m(()=>f))})).subscribe(l=>{l.open===!1&&l.offsetTop<=i.scrollTop&&i.scrollTo({top:l.offsetTop})}),t.pipe(g(fr),m(({data:l})=>l)).pipe(y(l=>o.next(l)),_(()=>o.complete()),m(l=>F({ref:e},l)))}function Qa(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=ve();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function Zn(e,t){let r=new v,o=r.pipe(ee(),oe(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),d(e,"click").pipe(U(o)).subscribe(n=>n.preventDefault()),Qa(e,t).pipe(y(n=>r.next(n)),_(()=>r.complete()),m(n=>F({ref:e},n)))}function ei(e,{worker$:t,keyboard$:r}){let o=new v,n=Te("search-query"),i=T(d(n,"keydown"),d(n,"focus")).pipe(Oe(ie),m(()=>n.value),Y());return o.pipe(je(i),m(([{suggest:a},c])=>{let p=c.split(/([\s-]+)/);if(a!=null&&a.length&&p[p.length-1]){let l=a[a.length-1];l.startsWith(p[p.length-1])&&(p[p.length-1]=l)}else p.length=0;return p})).subscribe(a=>e.innerHTML=a.join("").replace(/\s/g,"&nbsp;")),r.pipe(g(({mode:a})=>a==="search")).subscribe(a=>{switch(a.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(g(fr),m(({data:a})=>a)).pipe(y(a=>o.next(a)),_(()=>o.complete()),m(()=>({ref:e})))}function ti(e,{index$:t,keyboard$:r}){let o=we();try{let n=Bn(o.search,t),i=Te("search-query",e),s=Te("search-result",e);d(e,"click").pipe(g(({target:c})=>c instanceof Element&&!!c.closest("a"))).subscribe(()=>Be("search",!1)),r.pipe(g(({mode:c})=>c==="search")).subscribe(c=>{let p=Re();switch(c.type){case"Enter":if(p===i){let l=new Map;for(let f of R(":first-child [href]",s)){let u=f.firstElementChild;l.set(f,parseFloat(u.getAttribute("data-md-score")))}if(l.size){let[[f]]=[...l].sort(([,u],[,h])=>h-u);f.click()}c.claim()}break;case"Escape":case"Tab":Be("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof p=="undefined")i.focus();else{let l=[i,...R(":not(details) > [href], summary, details[open] [href]",s)],f=Math.max(0,(Math.max(0,l.indexOf(p))+l.length+(c.type==="ArrowUp"?-1:1))%l.length);l[f].focus()}c.claim();break;default:i!==Re()&&i.focus()}}),r.pipe(g(({mode:c})=>c==="global")).subscribe(c=>{switch(c.type){case"f":case"s":case"/":i.focus(),i.select(),c.claim();break}});let a=Jn(i,{worker$:n});return T(a,Xn(s,{worker$:n,query$:a})).pipe($e(...ne("search-share",e).map(c=>Zn(c,{query$:a})),...ne("search-suggest",e).map(c=>ei(c,{worker$:n,keyboard$:r}))))}catch(n){return e.hidden=!0,qe}}function ri(e,{index$:t,location$:r}){return Q([t,r.pipe(q(ve()),g(o=>!!o.searchParams.get("h")))]).pipe(m(([o,n])=>Yn(o.config)(n.searchParams.get("h"))),m(o=>{var s;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let a=i.nextNode();a;a=i.nextNode())if((s=a.parentElement)!=null&&s.offsetHeight){let c=a.textContent,p=o(c);p.length>c.length&&n.set(a,p)}for(let[a,c]of n){let{childNodes:p}=E("span",null,c);a.replaceWith(...Array.from(p))}return{ref:e,nodes:n}}))}function Ya(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return Q([r,t]).pipe(m(([{offset:i,height:s},{offset:{y:a}}])=>(s=s+Math.min(n,Math.max(0,a-i))-n,{height:s,locked:a>=i+n})),Y((i,s)=>i.height===s.height&&i.locked===s.locked))}function Qr(e,o){var n=o,{header$:t}=n,r=to(n,["header$"]);let i=P(".md-sidebar__scrollwrap",e),{y:s}=Ue(i);return H(()=>{let a=new v,c=a.pipe(ee(),oe(!0)),p=a.pipe(Me(0,de));return p.pipe(ae(t)).subscribe({next([{height:l},{height:f}]){i.style.height=`${l-2*s}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),p.pipe(He()).subscribe(()=>{for(let l of R(".md-nav__link--active[href]",e)){if(!l.clientHeight)continue;let f=l.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=pe(f);f.scrollTo({top:u-h/2})}}}),fe(R("label[tabindex]",e)).pipe(re(l=>d(l,"click").pipe(Oe(ie),m(()=>l),U(c)))).subscribe(l=>{let f=P(`[id="${l.htmlFor}"]`);P(`[aria-labelledby="${l.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),Ya(e,r).pipe(y(l=>a.next(l)),_(()=>a.complete()),m(l=>F({ref:e},l)))})}function oi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Lt(De(`${r}/releases/latest`).pipe(he(()=>L),m(o=>({version:o.tag_name})),Qe({})),De(r).pipe(he(()=>L),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),Qe({}))).pipe(m(([o,n])=>F(F({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return De(r).pipe(m(o=>({repositories:o.public_repos})),Qe({}))}}function ni(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return De(r).pipe(he(()=>L),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Qe({}))}function ii(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return oi(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return ni(r,o)}return L}var Ba;function Ga(e){return Ba||(Ba=H(()=>{let t=__md_get("__source",sessionStorage);if(t)return $(t);if(ne("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return L}return ii(e.href).pipe(y(o=>__md_set("__source",o,sessionStorage)))}).pipe(he(()=>L),g(t=>Object.keys(t).length>0),m(t=>({facts:t})),B(1)))}function ai(e){let t=P(":scope > :last-child",e);return H(()=>{let r=new v;return r.subscribe(({facts:o})=>{t.appendChild(bn(o)),t.classList.add("md-source__repository--active")}),Ga(e).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))})}function Ja(e,{viewport$:t,header$:r}){return Ee(document.body).pipe(b(()=>pr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),X("hidden"))}function si(e,t){return H(()=>{let r=new v;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(G("navigation.tabs.sticky")?$({hidden:!1}):Ja(e,t)).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))})}function Xa(e,{viewport$:t,header$:r}){let o=new Map,n=R(".md-nav__link",e);for(let a of n){let c=decodeURIComponent(a.hash.substring(1)),p=me(`[id="${c}"]`);typeof p!="undefined"&&o.set(a,p)}let i=r.pipe(X("height"),m(({height:a})=>{let c=Te("main"),p=P(":scope > :first-child",c);return a+.8*(p.offsetTop-c.offsetTop)}),le());return Ee(document.body).pipe(X("height"),b(a=>H(()=>{let c=[];return $([...o].reduce((p,[l,f])=>{for(;c.length&&o.get(c[c.length-1]).tagName>=f.tagName;)c.pop();let u=f.offsetTop;for(;!u&&f.parentElement;)f=f.parentElement,u=f.offsetTop;let h=f.offsetParent;for(;h;h=h.offsetParent)u+=h.offsetTop;return p.set([...c=[...c,l]].reverse(),u)},new Map))}).pipe(m(c=>new Map([...c].sort(([,p],[,l])=>p-l))),je(i),b(([c,p])=>t.pipe(Rr(([l,f],{offset:{y:u},size:h})=>{let w=u+h.height>=Math.floor(a.height);for(;f.length;){let[,A]=f[0];if(A-p<u||w)l=[...l,f.shift()];else break}for(;l.length;){let[,A]=l[l.length-1];if(A-p>=u&&!w)f=[l.pop(),...f];else break}return[l,f]},[[],[...c]]),Y((l,f)=>l[0]===f[0]&&l[1]===f[1])))))).pipe(m(([a,c])=>({prev:a.map(([p])=>p),next:c.map(([p])=>p)})),q({prev:[],next:[]}),Ke(2,1),m(([a,c])=>a.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,a.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-a.next.length)}))}function ci(e,{viewport$:t,header$:r,main$:o,target$:n}){return H(()=>{let i=new v,s=i.pipe(ee(),oe(!0));if(i.subscribe(({prev:a,next:c})=>{for(let[p]of c)p.classList.remove("md-nav__link--passed"),p.classList.remove("md-nav__link--active");for(let[p,[l]]of a.entries())l.classList.add("md-nav__link--passed"),l.classList.toggle("md-nav__link--active",p===a.length-1)}),G("toc.follow")){let a=T(t.pipe(be(1),m(()=>{})),t.pipe(be(250),m(()=>"smooth")));i.pipe(g(({prev:c})=>c.length>0),je(o.pipe(Oe(ie))),ae(a)).subscribe(([[{prev:c}],p])=>{let[l]=c[c.length-1];if(l.offsetHeight){let f=sr(l);if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=pe(f);f.scrollTo({top:u-h/2,behavior:p})}}})}return G("navigation.tracking")&&t.pipe(U(s),X("offset"),be(250),Le(1),U(n.pipe(Le(1))),at({delay:250}),ae(i)).subscribe(([,{prev:a}])=>{let c=ve(),p=a[a.length-1];if(p&&p.length){let[l]=p,{hash:f}=new URL(l.href);c.hash!==f&&(c.hash=f,history.replaceState({},"",`${c}`))}else c.hash="",history.replaceState({},"",`${c}`)}),Xa(e,{viewport$:t,header$:r}).pipe(y(a=>i.next(a)),_(()=>i.complete()),m(a=>F({ref:e},a)))})}function Za(e,{viewport$:t,main$:r,target$:o}){let n=t.pipe(m(({offset:{y:s}})=>s),Ke(2,1),m(([s,a])=>s>a&&a>0),Y()),i=r.pipe(m(({active:s})=>s));return Q([i,n]).pipe(m(([s,a])=>!(s&&a)),Y(),U(o.pipe(Le(1))),oe(!0),at({delay:250}),m(s=>({hidden:s})))}function pi(e,{viewport$:t,header$:r,main$:o,target$:n}){let i=new v,s=i.pipe(ee(),oe(!0));return i.subscribe({next({hidden:a}){e.hidden=a,a?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(U(s),X("height")).subscribe(({height:a})=>{e.style.top=`${a+16}px`}),d(e,"click").subscribe(a=>{a.preventDefault(),window.scrollTo({top:0})}),Za(e,{viewport$:t,main$:o,target$:n}).pipe(y(a=>i.next(a)),_(()=>i.complete()),m(a=>F({ref:e},a)))}function li({document$:e}){e.pipe(b(()=>R(".md-ellipsis")),re(t=>yt(t).pipe(U(e.pipe(Le(1))),g(r=>r),m(()=>t),ye(1))),g(t=>t.offsetWidth<t.scrollWidth),re(t=>{let r=t.innerText,o=t.closest("a")||t;return o.title=r,Ge(o).pipe(U(e.pipe(Le(1))),_(()=>o.removeAttribute("title")))})).subscribe(),e.pipe(b(()=>R(".md-status")),re(t=>Ge(t))).subscribe()}function mi({document$:e,tablet$:t}){e.pipe(b(()=>R(".md-toggle--indeterminate")),y(r=>{r.indeterminate=!0,r.checked=!1}),re(r=>d(r,"change").pipe(Fr(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ae(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function es(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function fi({document$:e}){e.pipe(b(()=>R("[data-md-scrollfix]")),y(t=>t.removeAttribute("data-md-scrollfix")),g(es),re(t=>d(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function ui({viewport$:e,tablet$:t}){Q([We("search"),t]).pipe(m(([r,o])=>r&&!o),b(r=>$(r).pipe(Ye(r?400:100))),ae(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));function ts(){return location.protocol==="file:"?gt(`${new URL("search/search_index.js",Yr.base)}`).pipe(m(()=>__index),B(1)):De(new URL("search/search_index.json",Yr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var rt=No(),Rt=Jo(),wt=en(Rt),Br=Go(),_e=pn(),ur=At("(min-width: 960px)"),hi=At("(min-width: 1220px)"),bi=tn(),Yr=we(),vi=document.forms.namedItem("search")?ts():qe,Gr=new v;Wn({alert$:Gr});var Jr=new v;G("navigation.instant")&&zn({location$:Rt,viewport$:_e,progress$:Jr}).subscribe(rt);var di;((di=Yr.version)==null?void 0:di.provider)==="mike"&&Gn({document$:rt});T(Rt,wt).pipe(Ye(125)).subscribe(()=>{Be("drawer",!1),Be("search",!1)});Br.pipe(g(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=me("link[rel=prev]");typeof t!="undefined"&&st(t);break;case"n":case".":let r=me("link[rel=next]");typeof r!="undefined"&&st(r);break;case"Enter":let o=Re();o instanceof HTMLLabelElement&&o.click()}});li({document$:rt});mi({document$:rt,tablet$:ur});fi({document$:rt});ui({viewport$:_e,tablet$:ur});var tt=Rn(Te("header"),{viewport$:_e}),$t=rt.pipe(m(()=>Te("main")),b(e=>Fn(e,{viewport$:_e,header$:tt})),B(1)),rs=T(...ne("consent").map(e=>fn(e,{target$:wt})),...ne("dialog").map(e=>$n(e,{alert$:Gr})),...ne("header").map(e=>Pn(e,{viewport$:_e,header$:tt,main$:$t})),...ne("palette").map(e=>jn(e)),...ne("progress").map(e=>Un(e,{progress$:Jr})),...ne("search").map(e=>ti(e,{index$:vi,keyboard$:Br})),...ne("source").map(e=>ai(e))),os=H(()=>T(...ne("announce").map(e=>mn(e)),...ne("content").map(e=>Hn(e,{viewport$:_e,target$:wt,print$:bi})),...ne("content").map(e=>G("search.highlight")?ri(e,{index$:vi,location$:Rt}):L),...ne("header-title").map(e=>In(e,{viewport$:_e,header$:tt})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Ur(hi,()=>Qr(e,{viewport$:_e,header$:tt,main$:$t})):Ur(ur,()=>Qr(e,{viewport$:_e,header$:tt,main$:$t}))),...ne("tabs").map(e=>si(e,{viewport$:_e,header$:tt})),...ne("toc").map(e=>ci(e,{viewport$:_e,header$:tt,main$:$t,target$:wt})),...ne("top").map(e=>pi(e,{viewport$:_e,header$:tt,main$:$t,target$:wt})))),gi=rt.pipe(b(()=>os),$e(rs),B(1));gi.subscribe();window.document$=rt;window.location$=Rt;window.target$=wt;window.keyboard$=Br;window.viewport$=_e;window.tablet$=ur;window.screen$=hi;window.print$=bi;window.alert$=Gr;window.progress$=Jr;window.component$=gi;})();
-//# sourceMappingURL=bundle.8fd75fb4.min.js.map
-
diff --git a/content/references/java-chassis/en_US/assets/javascripts/bundle.8fd75fb4.min.js.map b/content/references/java-chassis/en_US/assets/javascripts/bundle.8fd75fb4.min.js.map
deleted file mode 100644
index 1a28789..0000000
--- a/content/references/java-chassis/en_US/assets/javascripts/bundle.8fd75fb4.min.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
-  "version": 3,
-  "sources": ["node_modules/focus-visible/dist/focus-visible.js", "node_modules/clipboard/dist/clipboard.js", "node_modules/escape-html/index.js", "src/templates/assets/javascripts/bundle.ts", "node_modules/rxjs/node_modules/tslib/tslib.es6.js", "node_modules/rxjs/src/internal/util/isFunction.ts", "node_modules/rxjs/src/internal/util/createErrorClass.ts", "node_modules/rxjs/src/internal/util/UnsubscriptionError.ts", "node_modules/rxjs/src/internal/util/arrRemove.ts", "node_modules/rxjs/src/internal/Subscription.ts", "node_modules/rxjs/src/internal/config.ts", "node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts", "node_modules/rxjs/src/internal/util/reportUnhandledError.ts", "node_modules/rxjs/src/internal/util/noop.ts", "node_modules/rxjs/src/internal/NotificationFactories.ts", "node_modules/rxjs/src/internal/util/errorContext.ts", "node_modules/rxjs/src/internal/Subscriber.ts", "node_modules/rxjs/src/internal/symbol/observable.ts", "node_modules/rxjs/src/internal/util/identity.ts", "node_modules/rxjs/src/internal/util/pipe.ts", "node_modules/rxjs/src/internal/Observable.ts", "node_modules/rxjs/src/internal/util/lift.ts", "node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts", "node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts", "node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts", "node_modules/rxjs/src/internal/Subject.ts", "node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts", "node_modules/rxjs/src/internal/ReplaySubject.ts", "node_modules/rxjs/src/internal/scheduler/Action.ts", "node_modules/rxjs/src/internal/scheduler/intervalProvider.ts", "node_modules/rxjs/src/internal/scheduler/AsyncAction.ts", "node_modules/rxjs/src/internal/Scheduler.ts", "node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts", "node_modules/rxjs/src/internal/scheduler/async.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts", "node_modules/rxjs/src/internal/scheduler/animationFrame.ts", "node_modules/rxjs/src/internal/observable/empty.ts", "node_modules/rxjs/src/internal/util/isScheduler.ts", "node_modules/rxjs/src/internal/util/args.ts", "node_modules/rxjs/src/internal/util/isArrayLike.ts", "node_modules/rxjs/src/internal/util/isPromise.ts", "node_modules/rxjs/src/internal/util/isInteropObservable.ts", "node_modules/rxjs/src/internal/util/isAsyncIterable.ts", "node_modules/rxjs/src/internal/util/throwUnobservableError.ts", "node_modules/rxjs/src/internal/symbol/iterator.ts", "node_modules/rxjs/src/internal/util/isIterable.ts", "node_modules/rxjs/src/internal/util/isReadableStreamLike.ts", "node_modules/rxjs/src/internal/observable/innerFrom.ts", "node_modules/rxjs/src/internal/util/executeSchedule.ts", "node_modules/rxjs/src/internal/operators/observeOn.ts", "node_modules/rxjs/src/internal/operators/subscribeOn.ts", "node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts", "node_modules/rxjs/src/internal/scheduled/schedulePromise.ts", "node_modules/rxjs/src/internal/scheduled/scheduleArray.ts", "node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduled.ts", "node_modules/rxjs/src/internal/observable/from.ts", "node_modules/rxjs/src/internal/observable/of.ts", "node_modules/rxjs/src/internal/observable/throwError.ts", "node_modules/rxjs/src/internal/util/EmptyError.ts", "node_modules/rxjs/src/internal/util/isDate.ts", "node_modules/rxjs/src/internal/operators/map.ts", "node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts", "node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts", "node_modules/rxjs/src/internal/util/createObject.ts", "node_modules/rxjs/src/internal/observable/combineLatest.ts", "node_modules/rxjs/src/internal/operators/mergeInternals.ts", "node_modules/rxjs/src/internal/operators/mergeMap.ts", "node_modules/rxjs/src/internal/operators/mergeAll.ts", "node_modules/rxjs/src/internal/operators/concatAll.ts", "node_modules/rxjs/src/internal/observable/concat.ts", "node_modules/rxjs/src/internal/observable/defer.ts", "node_modules/rxjs/src/internal/observable/fromEvent.ts", "node_modules/rxjs/src/internal/observable/fromEventPattern.ts", "node_modules/rxjs/src/internal/observable/timer.ts", "node_modules/rxjs/src/internal/observable/merge.ts", "node_modules/rxjs/src/internal/observable/never.ts", "node_modules/rxjs/src/internal/util/argsOrArgArray.ts", "node_modules/rxjs/src/internal/operators/filter.ts", "node_modules/rxjs/src/internal/observable/zip.ts", "node_modules/rxjs/src/internal/operators/audit.ts", "node_modules/rxjs/src/internal/operators/auditTime.ts", "node_modules/rxjs/src/internal/operators/bufferCount.ts", "node_modules/rxjs/src/internal/operators/catchError.ts", "node_modules/rxjs/src/internal/operators/scanInternals.ts", "node_modules/rxjs/src/internal/operators/combineLatest.ts", "node_modules/rxjs/src/internal/operators/combineLatestWith.ts", "node_modules/rxjs/src/internal/operators/debounceTime.ts", "node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts", "node_modules/rxjs/src/internal/operators/take.ts", "node_modules/rxjs/src/internal/operators/ignoreElements.ts", "node_modules/rxjs/src/internal/operators/mapTo.ts", "node_modules/rxjs/src/internal/operators/delayWhen.ts", "node_modules/rxjs/src/internal/operators/delay.ts", "node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts", "node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts", "node_modules/rxjs/src/internal/operators/throwIfEmpty.ts", "node_modules/rxjs/src/internal/operators/endWith.ts", "node_modules/rxjs/src/internal/operators/finalize.ts", "node_modules/rxjs/src/internal/operators/first.ts", "node_modules/rxjs/src/internal/operators/takeLast.ts", "node_modules/rxjs/src/internal/operators/merge.ts", "node_modules/rxjs/src/internal/operators/mergeWith.ts", "node_modules/rxjs/src/internal/operators/repeat.ts", "node_modules/rxjs/src/internal/operators/scan.ts", "node_modules/rxjs/src/internal/operators/share.ts", "node_modules/rxjs/src/internal/operators/shareReplay.ts", "node_modules/rxjs/src/internal/operators/skip.ts", "node_modules/rxjs/src/internal/operators/skipUntil.ts", "node_modules/rxjs/src/internal/operators/startWith.ts", "node_modules/rxjs/src/internal/operators/switchMap.ts", "node_modules/rxjs/src/internal/operators/takeUntil.ts", "node_modules/rxjs/src/internal/operators/takeWhile.ts", "node_modules/rxjs/src/internal/operators/tap.ts", "node_modules/rxjs/src/internal/operators/throttle.ts", "node_modules/rxjs/src/internal/operators/throttleTime.ts", "node_modules/rxjs/src/internal/operators/withLatestFrom.ts", "node_modules/rxjs/src/internal/operators/zip.ts", "node_modules/rxjs/src/internal/operators/zipWith.ts", "src/templates/assets/javascripts/browser/document/index.ts", "src/templates/assets/javascripts/browser/element/_/index.ts", "src/templates/assets/javascripts/browser/element/focus/index.ts", "src/templates/assets/javascripts/browser/element/hover/index.ts", "src/templates/assets/javascripts/browser/element/offset/_/index.ts", "src/templates/assets/javascripts/browser/element/offset/content/index.ts", "src/templates/assets/javascripts/utilities/h/index.ts", "src/templates/assets/javascripts/utilities/round/index.ts", "src/templates/assets/javascripts/browser/script/index.ts", "src/templates/assets/javascripts/browser/element/size/_/index.ts", "src/templates/assets/javascripts/browser/element/size/content/index.ts", "src/templates/assets/javascripts/browser/element/visibility/index.ts", "src/templates/assets/javascripts/browser/toggle/index.ts", "src/templates/assets/javascripts/browser/keyboard/index.ts", "src/templates/assets/javascripts/browser/location/_/index.ts", "src/templates/assets/javascripts/browser/location/hash/index.ts", "src/templates/assets/javascripts/browser/media/index.ts", "src/templates/assets/javascripts/browser/request/index.ts", "src/templates/assets/javascripts/browser/viewport/offset/index.ts", "src/templates/assets/javascripts/browser/viewport/size/index.ts", "src/templates/assets/javascripts/browser/viewport/_/index.ts", "src/templates/assets/javascripts/browser/viewport/at/index.ts", "src/templates/assets/javascripts/browser/worker/index.ts", "src/templates/assets/javascripts/_/index.ts", "src/templates/assets/javascripts/components/_/index.ts", "src/templates/assets/javascripts/components/announce/index.ts", "src/templates/assets/javascripts/components/consent/index.ts", "src/templates/assets/javascripts/templates/tooltip/index.tsx", "src/templates/assets/javascripts/templates/annotation/index.tsx", "src/templates/assets/javascripts/templates/clipboard/index.tsx", "src/templates/assets/javascripts/templates/search/index.tsx", "src/templates/assets/javascripts/templates/source/index.tsx", "src/templates/assets/javascripts/templates/tabbed/index.tsx", "src/templates/assets/javascripts/templates/table/index.tsx", "src/templates/assets/javascripts/templates/version/index.tsx", "src/templates/assets/javascripts/components/tooltip/index.ts", "src/templates/assets/javascripts/components/content/annotation/_/index.ts", "src/templates/assets/javascripts/components/content/annotation/list/index.ts", "src/templates/assets/javascripts/components/content/annotation/block/index.ts", "src/templates/assets/javascripts/components/content/code/_/index.ts", "src/templates/assets/javascripts/components/content/details/index.ts", "src/templates/assets/javascripts/components/content/mermaid/index.css", "src/templates/assets/javascripts/components/content/mermaid/index.ts", "src/templates/assets/javascripts/components/content/table/index.ts", "src/templates/assets/javascripts/components/content/tabs/index.ts", "src/templates/assets/javascripts/components/content/_/index.ts", "src/templates/assets/javascripts/components/dialog/index.ts", "src/templates/assets/javascripts/components/header/_/index.ts", "src/templates/assets/javascripts/components/header/title/index.ts", "src/templates/assets/javascripts/components/main/index.ts", "src/templates/assets/javascripts/components/palette/index.ts", "src/templates/assets/javascripts/components/progress/index.ts", "src/templates/assets/javascripts/integrations/clipboard/index.ts", "src/templates/assets/javascripts/integrations/sitemap/index.ts", "src/templates/assets/javascripts/integrations/instant/index.ts", "src/templates/assets/javascripts/integrations/search/highlighter/index.ts", "src/templates/assets/javascripts/integrations/search/worker/message/index.ts", "src/templates/assets/javascripts/integrations/search/worker/_/index.ts", "src/templates/assets/javascripts/integrations/version/index.ts", "src/templates/assets/javascripts/components/search/query/index.ts", "src/templates/assets/javascripts/components/search/result/index.ts", "src/templates/assets/javascripts/components/search/share/index.ts", "src/templates/assets/javascripts/components/search/suggest/index.ts", "src/templates/assets/javascripts/components/search/_/index.ts", "src/templates/assets/javascripts/components/search/highlight/index.ts", "src/templates/assets/javascripts/components/sidebar/index.ts", "src/templates/assets/javascripts/components/source/facts/github/index.ts", "src/templates/assets/javascripts/components/source/facts/gitlab/index.ts", "src/templates/assets/javascripts/components/source/facts/_/index.ts", "src/templates/assets/javascripts/components/source/_/index.ts", "src/templates/assets/javascripts/components/tabs/index.ts", "src/templates/assets/javascripts/components/toc/index.ts", "src/templates/assets/javascripts/components/top/index.ts", "src/templates/assets/javascripts/patches/ellipsis/index.ts", "src/templates/assets/javascripts/patches/indeterminate/index.ts", "src/templates/assets/javascripts/patches/scrollfix/index.ts", "src/templates/assets/javascripts/patches/scrolllock/index.ts", "src/templates/assets/javascripts/polyfills/index.ts"],
-  "sourcesContent": ["(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  (factory());\n}(this, (function () { 'use strict';\n\n  /**\n   * Applies the :focus-visible polyfill at the given scope.\n   * A scope in this case is either the top-level Document or a Shadow Root.\n   *\n   * @param {(Document|ShadowRoot)} scope\n   * @see https://github.com/WICG/focus-visible\n   */\n  function applyFocusVisiblePolyfill(scope) {\n    var hadKeyboardEvent = true;\n    var hadFocusVisibleRecently = false;\n    var hadFocusVisibleRecentlyTimeout = null;\n\n    var inputTypesAllowlist = {\n      text: true,\n      search: true,\n      url: true,\n      tel: true,\n      email: true,\n      password: true,\n      number: true,\n      date: true,\n      month: true,\n      week: true,\n      time: true,\n      datetime: true,\n      'datetime-local': true\n    };\n\n    /**\n     * Helper function for legacy browsers and iframes which sometimes focus\n     * elements like document, body, and non-interactive SVG.\n     * @param {Element} el\n     */\n    function isValidFocusTarget(el) {\n      if (\n        el &&\n        el !== document &&\n        el.nodeName !== 'HTML' &&\n        el.nodeName !== 'BODY' &&\n        'classList' in el &&\n        'contains' in el.classList\n      ) {\n        return true;\n      }\n      return false;\n    }\n\n    /**\n     * Computes whether the given element should automatically trigger the\n     * `focus-visible` class being added, i.e. whether it should always match\n     * `:focus-visible` when focused.\n     * @param {Element} el\n     * @return {boolean}\n     */\n    function focusTriggersKeyboardModality(el) {\n      var type = el.type;\n      var tagName = el.tagName;\n\n      if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {\n        return true;\n      }\n\n      if (tagName === 'TEXTAREA' && !el.readOnly) {\n        return true;\n      }\n\n      if (el.isContentEditable) {\n        return true;\n      }\n\n      return false;\n    }\n\n    /**\n     * Add the `focus-visible` class to the given element if it was not added by\n     * the author.\n     * @param {Element} el\n     */\n    function addFocusVisibleClass(el) {\n      if (el.classList.contains('focus-visible')) {\n        return;\n      }\n      el.classList.add('focus-visible');\n      el.setAttribute('data-focus-visible-added', '');\n    }\n\n    /**\n     * Remove the `focus-visible` class from the given element if it was not\n     * originally added by the author.\n     * @param {Element} el\n     */\n    function removeFocusVisibleClass(el) {\n      if (!el.hasAttribute('data-focus-visible-added')) {\n        return;\n      }\n      el.classList.remove('focus-visible');\n      el.removeAttribute('data-focus-visible-added');\n    }\n\n    /**\n     * If the most recent user interaction was via the keyboard;\n     * and the key press did not include a meta, alt/option, or control key;\n     * then the modality is keyboard. Otherwise, the modality is not keyboard.\n     * Apply `focus-visible` to any current active element and keep track\n     * of our keyboard modality state with `hadKeyboardEvent`.\n     * @param {KeyboardEvent} e\n     */\n    function onKeyDown(e) {\n      if (e.metaKey || e.altKey || e.ctrlKey) {\n        return;\n      }\n\n      if (isValidFocusTarget(scope.activeElement)) {\n        addFocusVisibleClass(scope.activeElement);\n      }\n\n      hadKeyboardEvent = true;\n    }\n\n    /**\n     * If at any point a user clicks with a pointing device, ensure that we change\n     * the modality away from keyboard.\n     * This avoids the situation where a user presses a key on an already focused\n     * element, and then clicks on a different element, focusing it with a\n     * pointing device, while we still think we're in keyboard modality.\n     * @param {Event} e\n     */\n    function onPointerDown(e) {\n      hadKeyboardEvent = false;\n    }\n\n    /**\n     * On `focus`, add the `focus-visible` class to the target if:\n     * - the target received focus as a result of keyboard navigation, or\n     * - the event target is an element that will likely require interaction\n     *   via the keyboard (e.g. a text box)\n     * @param {Event} e\n     */\n    function onFocus(e) {\n      // Prevent IE from focusing the document or HTML element.\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {\n        addFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * On `blur`, remove the `focus-visible` class from the target.\n     * @param {Event} e\n     */\n    function onBlur(e) {\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (\n        e.target.classList.contains('focus-visible') ||\n        e.target.hasAttribute('data-focus-visible-added')\n      ) {\n        // To detect a tab/window switch, we look for a blur event followed\n        // rapidly by a visibility change.\n        // If we don't see a visibility change within 100ms, it's probably a\n        // regular focus change.\n        hadFocusVisibleRecently = true;\n        window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n        hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {\n          hadFocusVisibleRecently = false;\n        }, 100);\n        removeFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * If the user changes tabs, keep track of whether or not the previously\n     * focused element had .focus-visible.\n     * @param {Event} e\n     */\n    function onVisibilityChange(e) {\n      if (document.visibilityState === 'hidden') {\n        // If the tab becomes active again, the browser will handle calling focus\n        // on the element (Safari actually calls it twice).\n        // If this tab change caused a blur on an element with focus-visible,\n        // re-apply the class when the user switches back to the tab.\n        if (hadFocusVisibleRecently) {\n          hadKeyboardEvent = true;\n        }\n        addInitialPointerMoveListeners();\n      }\n    }\n\n    /**\n     * Add a group of listeners to detect usage of any pointing devices.\n     * These listeners will be added when the polyfill first loads, and anytime\n     * the window is blurred, so that they are active when the window regains\n     * focus.\n     */\n    function addInitialPointerMoveListeners() {\n      document.addEventListener('mousemove', onInitialPointerMove);\n      document.addEventListener('mousedown', onInitialPointerMove);\n      document.addEventListener('mouseup', onInitialPointerMove);\n      document.addEventListener('pointermove', onInitialPointerMove);\n      document.addEventListener('pointerdown', onInitialPointerMove);\n      document.addEventListener('pointerup', onInitialPointerMove);\n      document.addEventListener('touchmove', onInitialPointerMove);\n      document.addEventListener('touchstart', onInitialPointerMove);\n      document.addEventListener('touchend', onInitialPointerMove);\n    }\n\n    function removeInitialPointerMoveListeners() {\n      document.removeEventListener('mousemove', onInitialPointerMove);\n      document.removeEventListener('mousedown', onInitialPointerMove);\n      document.removeEventListener('mouseup', onInitialPointerMove);\n      document.removeEventListener('pointermove', onInitialPointerMove);\n      document.removeEventListener('pointerdown', onInitialPointerMove);\n      document.removeEventListener('pointerup', onInitialPointerMove);\n      document.removeEventListener('touchmove', onInitialPointerMove);\n      document.removeEventListener('touchstart', onInitialPointerMove);\n      document.removeEventListener('touchend', onInitialPointerMove);\n    }\n\n    /**\n     * When the polfyill first loads, assume the user is in keyboard modality.\n     * If any event is received from a pointing device (e.g. mouse, pointer,\n     * touch), turn off keyboard modality.\n     * This accounts for situations where focus enters the page from the URL bar.\n     * @param {Event} e\n     */\n    function onInitialPointerMove(e) {\n      // Work around a Safari quirk that fires a mousemove on <html> whenever the\n      // window blurs, even if you're tabbing out of the page. \u00AF\\_(\u30C4)_/\u00AF\n      if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {\n        return;\n      }\n\n      hadKeyboardEvent = false;\n      removeInitialPointerMoveListeners();\n    }\n\n    // For some kinds of state, we are interested in changes at the global scope\n    // only. For example, global pointer input, global key presses and global\n    // visibility change should affect the state at every scope:\n    document.addEventListener('keydown', onKeyDown, true);\n    document.addEventListener('mousedown', onPointerDown, true);\n    document.addEventListener('pointerdown', onPointerDown, true);\n    document.addEventListener('touchstart', onPointerDown, true);\n    document.addEventListener('visibilitychange', onVisibilityChange, true);\n\n    addInitialPointerMoveListeners();\n\n    // For focus and blur, we specifically care about state changes in the local\n    // scope. This is because focus / blur events that originate from within a\n    // shadow root are not re-dispatched from the host element if it was already\n    // the active element in its own scope:\n    scope.addEventListener('focus', onFocus, true);\n    scope.addEventListener('blur', onBlur, true);\n\n    // We detect that a node is a ShadowRoot by ensuring that it is a\n    // DocumentFragment and also has a host property. This check covers native\n    // implementation and polyfill implementation transparently. If we only cared\n    // about the native implementation, we could just check if the scope was\n    // an instance of a ShadowRoot.\n    if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {\n      // Since a ShadowRoot is a special kind of DocumentFragment, it does not\n      // have a root element to add a class to. So, we add this attribute to the\n      // host element instead:\n      scope.host.setAttribute('data-js-focus-visible', '');\n    } else if (scope.nodeType === Node.DOCUMENT_NODE) {\n      document.documentElement.classList.add('js-focus-visible');\n      document.documentElement.setAttribute('data-js-focus-visible', '');\n    }\n  }\n\n  // It is important to wrap all references to global window and document in\n  // these checks to support server-side rendering use cases\n  // @see https://github.com/WICG/focus-visible/issues/199\n  if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n    // Make the polyfill helper globally available. This can be used as a signal\n    // to interested libraries that wish to coordinate with the polyfill for e.g.,\n    // applying the polyfill to a shadow root:\n    window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;\n\n    // Notify interested libraries of the polyfill's presence, in case the\n    // polyfill was loaded lazily:\n    var event;\n\n    try {\n      event = new CustomEvent('focus-visible-polyfill-ready');\n    } catch (error) {\n      // IE11 does not support using CustomEvent as a constructor directly:\n      event = document.createEvent('CustomEvent');\n      event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});\n    }\n\n    window.dispatchEvent(event);\n  }\n\n  if (typeof document !== 'undefined') {\n    // Apply the polyfill to the global document, so that no JavaScript\n    // coordination is required to use the polyfill in the top-level document:\n    applyFocusVisiblePolyfill(document);\n  }\n\n})));\n", "/*!\n * clipboard.js v2.0.11\n * https://clipboardjs.com/\n *\n * Licensed MIT \u00A9 Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ClipboardJS\"] = factory();\n\telse\n\t\troot[\"ClipboardJS\"] = factory();\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 686:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n  \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __webpack_require__(279);\nvar tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __webpack_require__(370);\nvar listen_default = /*#__PURE__*/__webpack_require__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __webpack_require__(817);\nvar select_default = /*#__PURE__*/__webpack_require__.n(src_select);\n;// CONCATENATED MODULE: ./src/common/command.js\n/**\n * Executes a given operation type.\n * @param {String} type\n * @return {Boolean}\n */\nfunction command(type) {\n  try {\n    return document.execCommand(type);\n  } catch (err) {\n    return false;\n  }\n}\n;// CONCATENATED MODULE: ./src/actions/cut.js\n\n\n/**\n * Cut action wrapper.\n * @param {String|HTMLElement} target\n * @return {String}\n */\n\nvar ClipboardActionCut = function ClipboardActionCut(target) {\n  var selectedText = select_default()(target);\n  command('cut');\n  return selectedText;\n};\n\n/* harmony default export */ var actions_cut = (ClipboardActionCut);\n;// CONCATENATED MODULE: ./src/common/create-fake-element.js\n/**\n * Creates a fake textarea element with a value.\n * @param {String} value\n * @return {HTMLElement}\n */\nfunction createFakeElement(value) {\n  var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n  var fakeElement = document.createElement('textarea'); // Prevent zooming on iOS\n\n  fakeElement.style.fontSize = '12pt'; // Reset box model\n\n  fakeElement.style.border = '0';\n  fakeElement.style.padding = '0';\n  fakeElement.style.margin = '0'; // Move element out of screen horizontally\n\n  fakeElement.style.position = 'absolute';\n  fakeElement.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n  var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n  fakeElement.style.top = \"\".concat(yPosition, \"px\");\n  fakeElement.setAttribute('readonly', '');\n  fakeElement.value = value;\n  return fakeElement;\n}\n;// CONCATENATED MODULE: ./src/actions/copy.js\n\n\n\n/**\n * Create fake copy action wrapper using a fake element.\n * @param {String} target\n * @param {Object} options\n * @return {String}\n */\n\nvar fakeCopyAction = function fakeCopyAction(value, options) {\n  var fakeElement = createFakeElement(value);\n  options.container.appendChild(fakeElement);\n  var selectedText = select_default()(fakeElement);\n  command('copy');\n  fakeElement.remove();\n  return selectedText;\n};\n/**\n * Copy action wrapper.\n * @param {String|HTMLElement} target\n * @param {Object} options\n * @return {String}\n */\n\n\nvar ClipboardActionCopy = function ClipboardActionCopy(target) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    container: document.body\n  };\n  var selectedText = '';\n\n  if (typeof target === 'string') {\n    selectedText = fakeCopyAction(target, options);\n  } else if (target instanceof HTMLInputElement && !['text', 'search', 'url', 'tel', 'password'].includes(target === null || target === void 0 ? void 0 : target.type)) {\n    // If input type doesn't support `setSelectionRange`. Simulate it. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n    selectedText = fakeCopyAction(target.value, options);\n  } else {\n    selectedText = select_default()(target);\n    command('copy');\n  }\n\n  return selectedText;\n};\n\n/* harmony default export */ var actions_copy = (ClipboardActionCopy);\n;// CONCATENATED MODULE: ./src/actions/default.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/**\n * Inner function which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n * @param {Object} options\n */\n\nvar ClipboardActionDefault = function ClipboardActionDefault() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  // Defines base properties passed from constructor.\n  var _options$action = options.action,\n      action = _options$action === void 0 ? 'copy' : _options$action,\n      container = options.container,\n      target = options.target,\n      text = options.text; // Sets the `action` to be performed which can be either 'copy' or 'cut'.\n\n  if (action !== 'copy' && action !== 'cut') {\n    throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n  } // Sets the `target` property using an element that will be have its content copied.\n\n\n  if (target !== undefined) {\n    if (target && _typeof(target) === 'object' && target.nodeType === 1) {\n      if (action === 'copy' && target.hasAttribute('disabled')) {\n        throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n      }\n\n      if (action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n        throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n      }\n    } else {\n      throw new Error('Invalid \"target\" value, use a valid Element');\n    }\n  } // Define selection strategy based on `text` property.\n\n\n  if (text) {\n    return actions_copy(text, {\n      container: container\n    });\n  } // Defines which selection strategy based on `target` property.\n\n\n  if (target) {\n    return action === 'cut' ? actions_cut(target) : actions_copy(target, {\n      container: container\n    });\n  }\n};\n\n/* harmony default export */ var actions_default = (ClipboardActionDefault);\n;// CONCATENATED MODULE: ./src/clipboard.js\nfunction clipboard_typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { clipboard_typeof = function _typeof(obj) { return typeof obj; }; } else { clipboard_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return clipboard_typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (clipboard_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n/**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\nfunction getAttributeValue(suffix, element) {\n  var attribute = \"data-clipboard-\".concat(suffix);\n\n  if (!element.hasAttribute(attribute)) {\n    return;\n  }\n\n  return element.getAttribute(attribute);\n}\n/**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\nvar Clipboard = /*#__PURE__*/function (_Emitter) {\n  _inherits(Clipboard, _Emitter);\n\n  var _super = _createSuper(Clipboard);\n\n  /**\n   * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n   * @param {Object} options\n   */\n  function Clipboard(trigger, options) {\n    var _this;\n\n    _classCallCheck(this, Clipboard);\n\n    _this = _super.call(this);\n\n    _this.resolveOptions(options);\n\n    _this.listenClick(trigger);\n\n    return _this;\n  }\n  /**\n   * Defines if attributes would be resolved using internal setter functions\n   * or custom functions that were passed in the constructor.\n   * @param {Object} options\n   */\n\n\n  _createClass(Clipboard, [{\n    key: \"resolveOptions\",\n    value: function resolveOptions() {\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n      this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n      this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n      this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n    }\n    /**\n     * Adds a click event listener to the passed trigger.\n     * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n     */\n\n  }, {\n    key: \"listenClick\",\n    value: function listenClick(trigger) {\n      var _this2 = this;\n\n      this.listener = listen_default()(trigger, 'click', function (e) {\n        return _this2.onClick(e);\n      });\n    }\n    /**\n     * Defines a new `ClipboardAction` on each click event.\n     * @param {Event} e\n     */\n\n  }, {\n    key: \"onClick\",\n    value: function onClick(e) {\n      var trigger = e.delegateTarget || e.currentTarget;\n      var action = this.action(trigger) || 'copy';\n      var text = actions_default({\n        action: action,\n        container: this.container,\n        target: this.target(trigger),\n        text: this.text(trigger)\n      }); // Fires an event based on the copy operation result.\n\n      this.emit(text ? 'success' : 'error', {\n        action: action,\n        text: text,\n        trigger: trigger,\n        clearSelection: function clearSelection() {\n          if (trigger) {\n            trigger.focus();\n          }\n\n          window.getSelection().removeAllRanges();\n        }\n      });\n    }\n    /**\n     * Default `action` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultAction\",\n    value: function defaultAction(trigger) {\n      return getAttributeValue('action', trigger);\n    }\n    /**\n     * Default `target` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultTarget\",\n    value: function defaultTarget(trigger) {\n      var selector = getAttributeValue('target', trigger);\n\n      if (selector) {\n        return document.querySelector(selector);\n      }\n    }\n    /**\n     * Allow fire programmatically a copy action\n     * @param {String|HTMLElement} target\n     * @param {Object} options\n     * @returns Text copied.\n     */\n\n  }, {\n    key: \"defaultText\",\n\n    /**\n     * Default `text` lookup function.\n     * @param {Element} trigger\n     */\n    value: function defaultText(trigger) {\n      return getAttributeValue('text', trigger);\n    }\n    /**\n     * Destroy lifecycle.\n     */\n\n  }, {\n    key: \"destroy\",\n    value: function destroy() {\n      this.listener.destroy();\n    }\n  }], [{\n    key: \"copy\",\n    value: function copy(target) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n        container: document.body\n      };\n      return actions_copy(target, options);\n    }\n    /**\n     * Allow fire programmatically a cut action\n     * @param {String|HTMLElement} target\n     * @returns Text cutted.\n     */\n\n  }, {\n    key: \"cut\",\n    value: function cut(target) {\n      return actions_cut(target);\n    }\n    /**\n     * Returns the support of the given action, or all actions if no action is\n     * given.\n     * @param {String} [action]\n     */\n\n  }, {\n    key: \"isSupported\",\n    value: function isSupported() {\n      var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n      var actions = typeof action === 'string' ? [action] : action;\n      var support = !!document.queryCommandSupported;\n      actions.forEach(function (action) {\n        support = support && !!document.queryCommandSupported(action);\n      });\n      return support;\n    }\n  }]);\n\n  return Clipboard;\n}((tiny_emitter_default()));\n\n/* harmony default export */ var clipboard = (Clipboard);\n\n/***/ }),\n\n/***/ 828:\n/***/ (function(module) {\n\nvar DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n    var proto = Element.prototype;\n\n    proto.matches = proto.matchesSelector ||\n                    proto.mozMatchesSelector ||\n                    proto.msMatchesSelector ||\n                    proto.oMatchesSelector ||\n                    proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n    while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n        if (typeof element.matches === 'function' &&\n            element.matches(selector)) {\n          return element;\n        }\n        element = element.parentNode;\n    }\n}\n\nmodule.exports = closest;\n\n\n/***/ }),\n\n/***/ 438:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar closest = __webpack_require__(828);\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction _delegate(element, selector, type, callback, useCapture) {\n    var listenerFn = listener.apply(this, arguments);\n\n    element.addEventListener(type, listenerFn, useCapture);\n\n    return {\n        destroy: function() {\n            element.removeEventListener(type, listenerFn, useCapture);\n        }\n    }\n}\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(elements, selector, type, callback, useCapture) {\n    // Handle the regular Element usage\n    if (typeof elements.addEventListener === 'function') {\n        return _delegate.apply(null, arguments);\n    }\n\n    // Handle Element-less usage, it defaults to global delegation\n    if (typeof type === 'function') {\n        // Use `document` as the first parameter, then apply arguments\n        // This is a short way to .unshift `arguments` without running into deoptimizations\n        return _delegate.bind(null, document).apply(null, arguments);\n    }\n\n    // Handle Selector-based usage\n    if (typeof elements === 'string') {\n        elements = document.querySelectorAll(elements);\n    }\n\n    // Handle Array-like based usage\n    return Array.prototype.map.call(elements, function (element) {\n        return _delegate(element, selector, type, callback, useCapture);\n    });\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n    return function(e) {\n        e.delegateTarget = closest(e.target, selector);\n\n        if (e.delegateTarget) {\n            callback.call(element, e);\n        }\n    }\n}\n\nmodule.exports = delegate;\n\n\n/***/ }),\n\n/***/ 879:\n/***/ (function(__unused_webpack_module, exports) {\n\n/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n    return value !== undefined\n        && value instanceof HTMLElement\n        && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return value !== undefined\n        && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n        && ('length' in value)\n        && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n    return typeof value === 'string'\n        || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return type === '[object Function]';\n};\n\n\n/***/ }),\n\n/***/ 370:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar is = __webpack_require__(879);\nvar delegate = __webpack_require__(438);\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n    if (!target && !type && !callback) {\n        throw new Error('Missing required arguments');\n    }\n\n    if (!is.string(type)) {\n        throw new TypeError('Second argument must be a String');\n    }\n\n    if (!is.fn(callback)) {\n        throw new TypeError('Third argument must be a Function');\n    }\n\n    if (is.node(target)) {\n        return listenNode(target, type, callback);\n    }\n    else if (is.nodeList(target)) {\n        return listenNodeList(target, type, callback);\n    }\n    else if (is.string(target)) {\n        return listenSelector(target, type, callback);\n    }\n    else {\n        throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n    }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n    node.addEventListener(type, callback);\n\n    return {\n        destroy: function() {\n            node.removeEventListener(type, callback);\n        }\n    }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n    Array.prototype.forEach.call(nodeList, function(node) {\n        node.addEventListener(type, callback);\n    });\n\n    return {\n        destroy: function() {\n            Array.prototype.forEach.call(nodeList, function(node) {\n                node.removeEventListener(type, callback);\n            });\n        }\n    }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n    return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n\n\n/***/ }),\n\n/***/ 817:\n/***/ (function(module) {\n\nfunction select(element) {\n    var selectedText;\n\n    if (element.nodeName === 'SELECT') {\n        element.focus();\n\n        selectedText = element.value;\n    }\n    else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n        var isReadOnly = element.hasAttribute('readonly');\n\n        if (!isReadOnly) {\n            element.setAttribute('readonly', '');\n        }\n\n        element.select();\n        element.setSelectionRange(0, element.value.length);\n\n        if (!isReadOnly) {\n            element.removeAttribute('readonly');\n        }\n\n        selectedText = element.value;\n    }\n    else {\n        if (element.hasAttribute('contenteditable')) {\n            element.focus();\n        }\n\n        var selection = window.getSelection();\n        var range = document.createRange();\n\n        range.selectNodeContents(element);\n        selection.removeAllRanges();\n        selection.addRange(range);\n\n        selectedText = selection.toString();\n    }\n\n    return selectedText;\n}\n\nmodule.exports = select;\n\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module) {\n\nfunction E () {\n  // Keep this empty so it's easier to inherit from\n  // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n  on: function (name, callback, ctx) {\n    var e = this.e || (this.e = {});\n\n    (e[name] || (e[name] = [])).push({\n      fn: callback,\n      ctx: ctx\n    });\n\n    return this;\n  },\n\n  once: function (name, callback, ctx) {\n    var self = this;\n    function listener () {\n      self.off(name, listener);\n      callback.apply(ctx, arguments);\n    };\n\n    listener._ = callback\n    return this.on(name, listener, ctx);\n  },\n\n  emit: function (name) {\n    var data = [].slice.call(arguments, 1);\n    var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n    var i = 0;\n    var len = evtArr.length;\n\n    for (i; i < len; i++) {\n      evtArr[i].fn.apply(evtArr[i].ctx, data);\n    }\n\n    return this;\n  },\n\n  off: function (name, callback) {\n    var e = this.e || (this.e = {});\n    var evts = e[name];\n    var liveEvents = [];\n\n    if (evts && callback) {\n      for (var i = 0, len = evts.length; i < len; i++) {\n        if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n          liveEvents.push(evts[i]);\n      }\n    }\n\n    // Remove event from queue to prevent memory leak\n    // Suggested by https://github.com/lazd\n    // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n    (liveEvents.length)\n      ? e[name] = liveEvents\n      : delete e[name];\n\n    return this;\n  }\n};\n\nmodule.exports = E;\nmodule.exports.TinyEmitter = E;\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t!function() {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = function(module) {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\tfunction() { return module['default']; } :\n/******/ \t\t\t\tfunction() { return module; };\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(686);\n/******/ })()\n.default;\n});", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param  {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index = 0;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34: // \"\n        escape = '&quot;';\n        break;\n      case 38: // &\n        escape = '&amp;';\n        break;\n      case 39: // '\n        escape = '&#39;';\n        break;\n      case 60: // <\n        escape = '&lt;';\n        break;\n      case 62: // >\n        escape = '&gt;';\n        break;\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index\n    ? html + str.substring(lastIndex, index)\n    : html;\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport \"focus-visible\"\n\nimport {\n  EMPTY,\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  delay,\n  filter,\n  map,\n  merge,\n  mergeWith,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\nimport { configuration, feature } from \"./_\"\nimport {\n  at,\n  getActiveElement,\n  getOptionalElement,\n  requestJSON,\n  setLocation,\n  setToggle,\n  watchDocument,\n  watchKeyboard,\n  watchLocation,\n  watchLocationTarget,\n  watchMedia,\n  watchPrint,\n  watchScript,\n  watchViewport\n} from \"./browser\"\nimport {\n  getComponentElement,\n  getComponentElements,\n  mountAnnounce,\n  mountBackToTop,\n  mountConsent,\n  mountContent,\n  mountDialog,\n  mountHeader,\n  mountHeaderTitle,\n  mountPalette,\n  mountProgress,\n  mountSearch,\n  mountSearchHiglight,\n  mountSidebar,\n  mountSource,\n  mountTableOfContents,\n  mountTabs,\n  watchHeader,\n  watchMain\n} from \"./components\"\nimport {\n  SearchIndex,\n  setupClipboardJS,\n  setupInstantNavigation,\n  setupVersionSelector\n} from \"./integrations\"\nimport {\n  patchEllipsis,\n  patchIndeterminate,\n  patchScrollfix,\n  patchScrolllock\n} from \"./patches\"\nimport \"./polyfills\"\n\n/* ----------------------------------------------------------------------------\n * Functions - @todo refactor\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch search index\n *\n * @returns Search index observable\n */\nfunction fetchSearchIndex(): Observable<SearchIndex> {\n  if (location.protocol === \"file:\") {\n    return watchScript(\n      `${new URL(\"search/search_index.js\", config.base)}`\n    )\n      .pipe(\n        // @ts-ignore - @todo fix typings\n        map(() => __index),\n        shareReplay(1)\n      )\n  } else {\n    return requestJSON<SearchIndex>(\n      new URL(\"search/search_index.json\", config.base)\n    )\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\n/* Yay, JavaScript is available */\ndocument.documentElement.classList.remove(\"no-js\")\ndocument.documentElement.classList.add(\"js\")\n\n/* Set up navigation observables and subjects */\nconst document$ = watchDocument()\nconst location$ = watchLocation()\nconst target$   = watchLocationTarget(location$)\nconst keyboard$ = watchKeyboard()\n\n/* Set up media observables */\nconst viewport$ = watchViewport()\nconst tablet$   = watchMedia(\"(min-width: 960px)\")\nconst screen$   = watchMedia(\"(min-width: 1220px)\")\nconst print$    = watchPrint()\n\n/* Retrieve search index, if search is enabled */\nconst config = configuration()\nconst index$ = document.forms.namedItem(\"search\")\n  ? fetchSearchIndex()\n  : NEVER\n\n/* Set up Clipboard.js integration */\nconst alert$ = new Subject<string>()\nsetupClipboardJS({ alert$ })\n\n/* Set up progress indicator */\nconst progress$ = new Subject<number>()\n\n/* Set up instant navigation, if enabled */\nif (feature(\"navigation.instant\"))\n  setupInstantNavigation({ location$, viewport$, progress$ })\n    .subscribe(document$)\n\n/* Set up version selector */\nif (config.version?.provider === \"mike\")\n  setupVersionSelector({ document$ })\n\n/* Always close drawer and search on navigation */\nmerge(location$, target$)\n  .pipe(\n    delay(125)\n  )\n    .subscribe(() => {\n      setToggle(\"drawer\", false)\n      setToggle(\"search\", false)\n    })\n\n/* Set up global keyboard handlers */\nkeyboard$\n  .pipe(\n    filter(({ mode }) => mode === \"global\")\n  )\n    .subscribe(key => {\n      switch (key.type) {\n\n        /* Go to previous page */\n        case \"p\":\n        case \",\":\n          const prev = getOptionalElement<HTMLLinkElement>(\"link[rel=prev]\")\n          if (typeof prev !== \"undefined\")\n            setLocation(prev)\n          break\n\n        /* Go to next page */\n        case \"n\":\n        case \".\":\n          const next = getOptionalElement<HTMLLinkElement>(\"link[rel=next]\")\n          if (typeof next !== \"undefined\")\n            setLocation(next)\n          break\n\n        /* Expand navigation, see https://bit.ly/3ZjG5io */\n        case \"Enter\":\n          const active = getActiveElement()\n          if (active instanceof HTMLLabelElement)\n            active.click()\n      }\n    })\n\n/* Set up patches */\npatchEllipsis({ document$ })\npatchIndeterminate({ document$, tablet$ })\npatchScrollfix({ document$ })\npatchScrolllock({ viewport$, tablet$ })\n\n/* Set up header and main area observable */\nconst header$ = watchHeader(getComponentElement(\"header\"), { viewport$ })\nconst main$ = document$\n  .pipe(\n    map(() => getComponentElement(\"main\")),\n    switchMap(el => watchMain(el, { viewport$, header$ })),\n    shareReplay(1)\n  )\n\n/* Set up control component observables */\nconst control$ = merge(\n\n  /* Consent */\n  ...getComponentElements(\"consent\")\n    .map(el => mountConsent(el, { target$ })),\n\n  /* Dialog */\n  ...getComponentElements(\"dialog\")\n    .map(el => mountDialog(el, { alert$ })),\n\n  /* Header */\n  ...getComponentElements(\"header\")\n    .map(el => mountHeader(el, { viewport$, header$, main$ })),\n\n  /* Color palette */\n  ...getComponentElements(\"palette\")\n    .map(el => mountPalette(el)),\n\n  /* Progress bar */\n  ...getComponentElements(\"progress\")\n    .map(el => mountProgress(el, { progress$ })),\n\n  /* Search */\n  ...getComponentElements(\"search\")\n    .map(el => mountSearch(el, { index$, keyboard$ })),\n\n  /* Repository information */\n  ...getComponentElements(\"source\")\n    .map(el => mountSource(el))\n)\n\n/* Set up content component observables */\nconst content$ = defer(() => merge(\n\n  /* Announcement bar */\n  ...getComponentElements(\"announce\")\n    .map(el => mountAnnounce(el)),\n\n  /* Content */\n  ...getComponentElements(\"content\")\n    .map(el => mountContent(el, { viewport$, target$, print$ })),\n\n  /* Search highlighting */\n  ...getComponentElements(\"content\")\n    .map(el => feature(\"search.highlight\")\n      ? mountSearchHiglight(el, { index$, location$ })\n      : EMPTY\n    ),\n\n  /* Header title */\n  ...getComponentElements(\"header-title\")\n    .map(el => mountHeaderTitle(el, { viewport$, header$ })),\n\n  /* Sidebar */\n  ...getComponentElements(\"sidebar\")\n    .map(el => el.getAttribute(\"data-md-type\") === \"navigation\"\n      ? at(screen$, () => mountSidebar(el, { viewport$, header$, main$ }))\n      : at(tablet$, () => mountSidebar(el, { viewport$, header$, main$ }))\n    ),\n\n  /* Navigation tabs */\n  ...getComponentElements(\"tabs\")\n    .map(el => mountTabs(el, { viewport$, header$ })),\n\n  /* Table of contents */\n  ...getComponentElements(\"toc\")\n    .map(el => mountTableOfContents(el, {\n      viewport$, header$, main$, target$\n    })),\n\n  /* Back-to-top button */\n  ...getComponentElements(\"top\")\n    .map(el => mountBackToTop(el, { viewport$, header$, main$, target$ }))\n))\n\n/* Set up component observables */\nconst component$ = document$\n  .pipe(\n    switchMap(() => content$),\n    mergeWith(control$),\n    shareReplay(1)\n  )\n\n/* Subscribe to all components */\ncomponent$.subscribe()\n\n/* ----------------------------------------------------------------------------\n * Exports\n * ------------------------------------------------------------------------- */\n\nwindow.document$  = document$          /* Document observable */\nwindow.location$  = location$          /* Location subject */\nwindow.target$    = target$            /* Location target observable */\nwindow.keyboard$  = keyboard$          /* Keyboard observable */\nwindow.viewport$  = viewport$          /* Viewport observable */\nwindow.tablet$    = tablet$            /* Media tablet observable */\nwindow.screen$    = screen$            /* Media screen observable */\nwindow.print$     = print$             /* Media print observable */\nwindow.alert$     = alert$             /* Alert subject */\nwindow.progress$  = progress$          /* Progress indicator subject */\nwindow.component$ = component$         /* Component observable */\n", "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n    if (typeof b !== \"function\" && b !== null)\r\n        throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    }\r\n    return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n    if (m) return m.call(o);\r\n    if (o && typeof o.length === \"number\") return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n        if (ar || !(i in from)) {\r\n            if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n            ar[i] = from[i];\r\n        }\r\n    }\r\n    return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator], i;\r\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n    o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n    __setModuleDefault(result, mod);\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n    return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n    if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n    return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n", "/**\n * Returns true if the object is a function.\n * @param value The value to check\n */\nexport function isFunction(value: any): value is (...args: any[]) => any {\n  return typeof value === 'function';\n}\n", "/**\n * Used to create Error subclasses until the community moves away from ES5.\n *\n * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors\n * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123\n *\n * @param createImpl A factory function to create the actual constructor implementation. The returned\n * function should be a named function that calls `_super` internally.\n */\nexport function createErrorClass<T>(createImpl: (_super: any) => any): T {\n  const _super = (instance: any) => {\n    Error.call(instance);\n    instance.stack = new Error().stack;\n  };\n\n  const ctorFunc = createImpl(_super);\n  ctorFunc.prototype = Object.create(Error.prototype);\n  ctorFunc.prototype.constructor = ctorFunc;\n  return ctorFunc;\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface UnsubscriptionError extends Error {\n  readonly errors: any[];\n}\n\nexport interface UnsubscriptionErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (errors: any[]): UnsubscriptionError;\n}\n\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nexport const UnsubscriptionError: UnsubscriptionErrorCtor = createErrorClass(\n  (_super) =>\n    function UnsubscriptionErrorImpl(this: any, errors: (Error | string)[]) {\n      _super(this);\n      this.message = errors\n        ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n  ')}`\n        : '';\n      this.name = 'UnsubscriptionError';\n      this.errors = errors;\n    }\n);\n", "/**\n * Removes an item from an array, mutating it.\n * @param arr The array to remove the item from\n * @param item The item to remove\n */\nexport function arrRemove<T>(arr: T[] | undefined | null, item: T) {\n  if (arr) {\n    const index = arr.indexOf(item);\n    0 <= index && arr.splice(index, 1);\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { SubscriptionLike, TeardownLogic, Unsubscribable } from './types';\nimport { arrRemove } from './util/arrRemove';\n\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nexport class Subscription implements SubscriptionLike {\n  /** @nocollapse */\n  public static EMPTY = (() => {\n    const empty = new Subscription();\n    empty.closed = true;\n    return empty;\n  })();\n\n  /**\n   * A flag to indicate whether this Subscription has already been unsubscribed.\n   */\n  public closed = false;\n\n  private _parentage: Subscription[] | Subscription | null = null;\n\n  /**\n   * The list of registered finalizers to execute upon unsubscription. Adding and removing from this\n   * list occurs in the {@link #add} and {@link #remove} methods.\n   */\n  private _finalizers: Exclude<TeardownLogic, void>[] | null = null;\n\n  /**\n   * @param initialTeardown A function executed first as part of the finalization\n   * process that is kicked off when {@link #unsubscribe} is called.\n   */\n  constructor(private initialTeardown?: () => void) {}\n\n  /**\n   * Disposes the resources held by the subscription. May, for instance, cancel\n   * an ongoing Observable execution or cancel any other type of work that\n   * started when the Subscription was created.\n   * @return {void}\n   */\n  unsubscribe(): void {\n    let errors: any[] | undefined;\n\n    if (!this.closed) {\n      this.closed = true;\n\n      // Remove this from it's parents.\n      const { _parentage } = this;\n      if (_parentage) {\n        this._parentage = null;\n        if (Array.isArray(_parentage)) {\n          for (const parent of _parentage) {\n            parent.remove(this);\n          }\n        } else {\n          _parentage.remove(this);\n        }\n      }\n\n      const { initialTeardown: initialFinalizer } = this;\n      if (isFunction(initialFinalizer)) {\n        try {\n          initialFinalizer();\n        } catch (e) {\n          errors = e instanceof UnsubscriptionError ? e.errors : [e];\n        }\n      }\n\n      const { _finalizers } = this;\n      if (_finalizers) {\n        this._finalizers = null;\n        for (const finalizer of _finalizers) {\n          try {\n            execFinalizer(finalizer);\n          } catch (err) {\n            errors = errors ?? [];\n            if (err instanceof UnsubscriptionError) {\n              errors = [...errors, ...err.errors];\n            } else {\n              errors.push(err);\n            }\n          }\n        }\n      }\n\n      if (errors) {\n        throw new UnsubscriptionError(errors);\n      }\n    }\n  }\n\n  /**\n   * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called\n   * when this subscription is unsubscribed. If this subscription is already {@link #closed},\n   * because it has already been unsubscribed, then whatever finalizer is passed to it\n   * will automatically be executed (unless the finalizer itself is also a closed subscription).\n   *\n   * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed\n   * subscription to a any subscription will result in no operation. (A noop).\n   *\n   * Adding a subscription to itself, or adding `null` or `undefined` will not perform any\n   * operation at all. (A noop).\n   *\n   * `Subscription` instances that are added to this instance will automatically remove themselves\n   * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove\n   * will need to be removed manually with {@link #remove}\n   *\n   * @param teardown The finalization logic to add to this subscription.\n   */\n  add(teardown: TeardownLogic): void {\n    // Only add the finalizer if it's not undefined\n    // and don't add a subscription to itself.\n    if (teardown && teardown !== this) {\n      if (this.closed) {\n        // If this subscription is already closed,\n        // execute whatever finalizer is handed to it automatically.\n        execFinalizer(teardown);\n      } else {\n        if (teardown instanceof Subscription) {\n          // We don't add closed subscriptions, and we don't add the same subscription\n          // twice. Subscription unsubscribe is idempotent.\n          if (teardown.closed || teardown._hasParent(this)) {\n            return;\n          }\n          teardown._addParent(this);\n        }\n        (this._finalizers = this._finalizers ?? []).push(teardown);\n      }\n    }\n  }\n\n  /**\n   * Checks to see if a this subscription already has a particular parent.\n   * This will signal that this subscription has already been added to the parent in question.\n   * @param parent the parent to check for\n   */\n  private _hasParent(parent: Subscription) {\n    const { _parentage } = this;\n    return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n  }\n\n  /**\n   * Adds a parent to this subscription so it can be removed from the parent if it\n   * unsubscribes on it's own.\n   *\n   * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.\n   * @param parent The parent subscription to add\n   */\n  private _addParent(parent: Subscription) {\n    const { _parentage } = this;\n    this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n  }\n\n  /**\n   * Called on a child when it is removed via {@link #remove}.\n   * @param parent The parent to remove\n   */\n  private _removeParent(parent: Subscription) {\n    const { _parentage } = this;\n    if (_parentage === parent) {\n      this._parentage = null;\n    } else if (Array.isArray(_parentage)) {\n      arrRemove(_parentage, parent);\n    }\n  }\n\n  /**\n   * Removes a finalizer from this subscription that was previously added with the {@link #add} method.\n   *\n   * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves\n   * from every other `Subscription` they have been added to. This means that using the `remove` method\n   * is not a common thing and should be used thoughtfully.\n   *\n   * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance\n   * more than once, you will need to call `remove` the same number of times to remove all instances.\n   *\n   * All finalizer instances are removed to free up memory upon unsubscription.\n   *\n   * @param teardown The finalizer to remove from this subscription\n   */\n  remove(teardown: Exclude<TeardownLogic, void>): void {\n    const { _finalizers } = this;\n    _finalizers && arrRemove(_finalizers, teardown);\n\n    if (teardown instanceof Subscription) {\n      teardown._removeParent(this);\n    }\n  }\n}\n\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\n\nexport function isSubscription(value: any): value is Subscription {\n  return (\n    value instanceof Subscription ||\n    (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))\n  );\n}\n\nfunction execFinalizer(finalizer: Unsubscribable | (() => void)) {\n  if (isFunction(finalizer)) {\n    finalizer();\n  } else {\n    finalizer.unsubscribe();\n  }\n}\n", "import { Subscriber } from './Subscriber';\nimport { ObservableNotification } from './types';\n\n/**\n * The {@link GlobalConfig} object for RxJS. It is used to configure things\n * like how to react on unhandled errors.\n */\nexport const config: GlobalConfig = {\n  onUnhandledError: null,\n  onStoppedNotification: null,\n  Promise: undefined,\n  useDeprecatedSynchronousErrorHandling: false,\n  useDeprecatedNextContext: false,\n};\n\n/**\n * The global configuration object for RxJS, used to configure things\n * like how to react on unhandled errors. Accessible via {@link config}\n * object.\n */\nexport interface GlobalConfig {\n  /**\n   * A registration point for unhandled errors from RxJS. These are errors that\n   * cannot were not handled by consuming code in the usual subscription path. For\n   * example, if you have this configured, and you subscribe to an observable without\n   * providing an error handler, errors from that subscription will end up here. This\n   * will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onUnhandledError: ((err: any) => void) | null;\n\n  /**\n   * A registration point for notifications that cannot be sent to subscribers because they\n   * have completed, errored or have been explicitly unsubscribed. By default, next, complete\n   * and error notifications sent to stopped subscribers are noops. However, sometimes callers\n   * might want a different behavior. For example, with sources that attempt to report errors\n   * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead.\n   * This will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onStoppedNotification: ((notification: ObservableNotification<any>, subscriber: Subscriber<any>) => void) | null;\n\n  /**\n   * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach}\n   * methods.\n   *\n   * @deprecated As of version 8, RxJS will no longer support this sort of injection of a\n   * Promise constructor. If you need a Promise implementation other than native promises,\n   * please polyfill/patch Promise as you see appropriate. Will be removed in v8.\n   */\n  Promise?: PromiseConstructorLike;\n\n  /**\n   * If true, turns on synchronous error rethrowing, which is a deprecated behavior\n   * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe\n   * call in a try/catch block. It also enables producer interference, a nasty bug\n   * where a multicast can be broken for all observers by a downstream consumer with\n   * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME\n   * FOR MIGRATION REASONS.\n   *\n   * @deprecated As of version 8, RxJS will no longer support synchronous throwing\n   * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad\n   * behaviors described above. Will be removed in v8.\n   */\n  useDeprecatedSynchronousErrorHandling: boolean;\n\n  /**\n   * If true, enables an as-of-yet undocumented feature from v5: The ability to access\n   * `unsubscribe()` via `this` context in `next` functions created in observers passed\n   * to `subscribe`.\n   *\n   * This is being removed because the performance was severely problematic, and it could also cause\n   * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have\n   * their `this` context overwritten.\n   *\n   * @deprecated As of version 8, RxJS will no longer support altering the\n   * context of next functions provided as part of an observer to Subscribe. Instead,\n   * you will have access to a subscription or a signal or token that will allow you to do things like\n   * unsubscribe and test closed status. Will be removed in v8.\n   */\n  useDeprecatedNextContext: boolean;\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearTimeoutFunction = (handle: TimerHandle) => void;\n\ninterface TimeoutProvider {\n  setTimeout: SetTimeoutFunction;\n  clearTimeout: ClearTimeoutFunction;\n  delegate:\n    | {\n        setTimeout: SetTimeoutFunction;\n        clearTimeout: ClearTimeoutFunction;\n      }\n    | undefined;\n}\n\nexport const timeoutProvider: TimeoutProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setTimeout(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = timeoutProvider;\n    if (delegate?.setTimeout) {\n      return delegate.setTimeout(handler, timeout, ...args);\n    }\n    return setTimeout(handler, timeout, ...args);\n  },\n  clearTimeout(handle) {\n    const { delegate } = timeoutProvider;\n    return (delegate?.clearTimeout || clearTimeout)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\n\n/**\n * Handles an error on another job either with the user-configured {@link onUnhandledError},\n * or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc.\n *\n * This should be called whenever there is an error that is out-of-band with the subscription\n * or when an error hits a terminal boundary of the subscription and no error handler was provided.\n *\n * @param err the error to report\n */\nexport function reportUnhandledError(err: any) {\n  timeoutProvider.setTimeout(() => {\n    const { onUnhandledError } = config;\n    if (onUnhandledError) {\n      // Execute the user-configured error handler.\n      onUnhandledError(err);\n    } else {\n      // Throw so it is picked up by the runtime's uncaught error mechanism.\n      throw err;\n    }\n  });\n}\n", "/* tslint:disable:no-empty */\nexport function noop() { }\n", "import { CompleteNotification, NextNotification, ErrorNotification } from './types';\n\n/**\n * A completion object optimized for memory use and created to be the\n * same \"shape\" as other notifications in v8.\n * @internal\n */\nexport const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined) as CompleteNotification)();\n\n/**\n * Internal use only. Creates an optimized error notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function errorNotification(error: any): ErrorNotification {\n  return createNotification('E', undefined, error) as any;\n}\n\n/**\n * Internal use only. Creates an optimized next notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function nextNotification<T>(value: T) {\n  return createNotification('N', value, undefined) as NextNotification<T>;\n}\n\n/**\n * Ensures that all notifications created internally have the same \"shape\" in v8.\n *\n * TODO: This is only exported to support a crazy legacy test in `groupBy`.\n * @internal\n */\nexport function createNotification(kind: 'N' | 'E' | 'C', value: any, error: any) {\n  return {\n    kind,\n    value,\n    error,\n  };\n}\n", "import { config } from '../config';\n\nlet context: { errorThrown: boolean; error: any } | null = null;\n\n/**\n * Handles dealing with errors for super-gross mode. Creates a context, in which\n * any synchronously thrown errors will be passed to {@link captureError}. Which\n * will record the error such that it will be rethrown after the call back is complete.\n * TODO: Remove in v8\n * @param cb An immediately executed function.\n */\nexport function errorContext(cb: () => void) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    const isRoot = !context;\n    if (isRoot) {\n      context = { errorThrown: false, error: null };\n    }\n    cb();\n    if (isRoot) {\n      const { errorThrown, error } = context!;\n      context = null;\n      if (errorThrown) {\n        throw error;\n      }\n    }\n  } else {\n    // This is the general non-deprecated path for everyone that\n    // isn't crazy enough to use super-gross mode (useDeprecatedSynchronousErrorHandling)\n    cb();\n  }\n}\n\n/**\n * Captures errors only in super-gross mode.\n * @param err the error to capture\n */\nexport function captureError(err: any) {\n  if (config.useDeprecatedSynchronousErrorHandling && context) {\n    context.errorThrown = true;\n    context.error = err;\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { Observer, ObservableNotification } from './types';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\n\n/**\n * Implements the {@link Observer} interface and extends the\n * {@link Subscription} class. While the {@link Observer} is the public API for\n * consuming the values of an {@link Observable}, all Observers get converted to\n * a Subscriber, in order to provide Subscription-like capabilities such as\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\n * implementing operators, but it is rarely used as a public API.\n *\n * @class Subscriber<T>\n */\nexport class Subscriber<T> extends Subscription implements Observer<T> {\n  /**\n   * A static factory for a Subscriber, given a (potentially partial) definition\n   * of an Observer.\n   * @param next The `next` callback of an Observer.\n   * @param error The `error` callback of an\n   * Observer.\n   * @param complete The `complete` callback of an\n   * Observer.\n   * @return A Subscriber wrapping the (partially defined)\n   * Observer represented by the given arguments.\n   * @nocollapse\n   * @deprecated Do not use. Will be removed in v8. There is no replacement for this\n   * method, and there is no reason to be creating instances of `Subscriber` directly.\n   * If you have a specific use case, please file an issue.\n   */\n  static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T> {\n    return new SafeSubscriber(next, error, complete);\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected isStopped: boolean = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected destination: Subscriber<any> | Observer<any>; // this `any` is the escape hatch to erase extra type param (e.g. R)\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.\n   */\n  constructor(destination?: Subscriber<any> | Observer<any>) {\n    super();\n    if (destination) {\n      this.destination = destination;\n      // Automatically chain subscriptions together here.\n      // if destination is a Subscription, then it is a Subscriber.\n      if (isSubscription(destination)) {\n        destination.add(this);\n      }\n    } else {\n      this.destination = EMPTY_OBSERVER;\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `next` from\n   * the Observable, with a value. The Observable may call this method 0 or more\n   * times.\n   * @param {T} [value] The `next` value.\n   * @return {void}\n   */\n  next(value?: T): void {\n    if (this.isStopped) {\n      handleStoppedNotification(nextNotification(value), this);\n    } else {\n      this._next(value!);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `error` from\n   * the Observable, with an attached `Error`. Notifies the Observer that\n   * the Observable has experienced an error condition.\n   * @param {any} [err] The `error` exception.\n   * @return {void}\n   */\n  error(err?: any): void {\n    if (this.isStopped) {\n      handleStoppedNotification(errorNotification(err), this);\n    } else {\n      this.isStopped = true;\n      this._error(err);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive a valueless notification of type\n   * `complete` from the Observable. Notifies the Observer that the Observable\n   * has finished sending push-based notifications.\n   * @return {void}\n   */\n  complete(): void {\n    if (this.isStopped) {\n      handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n    } else {\n      this.isStopped = true;\n      this._complete();\n    }\n  }\n\n  unsubscribe(): void {\n    if (!this.closed) {\n      this.isStopped = true;\n      super.unsubscribe();\n      this.destination = null!;\n    }\n  }\n\n  protected _next(value: T): void {\n    this.destination.next(value);\n  }\n\n  protected _error(err: any): void {\n    try {\n      this.destination.error(err);\n    } finally {\n      this.unsubscribe();\n    }\n  }\n\n  protected _complete(): void {\n    try {\n      this.destination.complete();\n    } finally {\n      this.unsubscribe();\n    }\n  }\n}\n\n/**\n * This bind is captured here because we want to be able to have\n * compatibility with monoid libraries that tend to use a method named\n * `bind`. In particular, a library called Monio requires this.\n */\nconst _bind = Function.prototype.bind;\n\nfunction bind<Fn extends (...args: any[]) => any>(fn: Fn, thisArg: any): Fn {\n  return _bind.call(fn, thisArg);\n}\n\n/**\n * Internal optimization only, DO NOT EXPOSE.\n * @internal\n */\nclass ConsumerObserver<T> implements Observer<T> {\n  constructor(private partialObserver: Partial<Observer<T>>) {}\n\n  next(value: T): void {\n    const { partialObserver } = this;\n    if (partialObserver.next) {\n      try {\n        partialObserver.next(value);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n\n  error(err: any): void {\n    const { partialObserver } = this;\n    if (partialObserver.error) {\n      try {\n        partialObserver.error(err);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    } else {\n      handleUnhandledError(err);\n    }\n  }\n\n  complete(): void {\n    const { partialObserver } = this;\n    if (partialObserver.complete) {\n      try {\n        partialObserver.complete();\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n}\n\nexport class SafeSubscriber<T> extends Subscriber<T> {\n  constructor(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((e?: any) => void) | null,\n    complete?: (() => void) | null\n  ) {\n    super();\n\n    let partialObserver: Partial<Observer<T>>;\n    if (isFunction(observerOrNext) || !observerOrNext) {\n      // The first argument is a function, not an observer. The next\n      // two arguments *could* be observers, or they could be empty.\n      partialObserver = {\n        next: (observerOrNext ?? undefined) as (((value: T) => void) | undefined),\n        error: error ?? undefined,\n        complete: complete ?? undefined,\n      };\n    } else {\n      // The first argument is a partial observer.\n      let context: any;\n      if (this && config.useDeprecatedNextContext) {\n        // This is a deprecated path that made `this.unsubscribe()` available in\n        // next handler functions passed to subscribe. This only exists behind a flag\n        // now, as it is *very* slow.\n        context = Object.create(observerOrNext);\n        context.unsubscribe = () => this.unsubscribe();\n        partialObserver = {\n          next: observerOrNext.next && bind(observerOrNext.next, context),\n          error: observerOrNext.error && bind(observerOrNext.error, context),\n          complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n        };\n      } else {\n        // The \"normal\" path. Just use the partial observer directly.\n        partialObserver = observerOrNext;\n      }\n    }\n\n    // Wrap the partial observer to ensure it's a full observer, and\n    // make sure proper error handling is accounted for.\n    this.destination = new ConsumerObserver(partialObserver);\n  }\n}\n\nfunction handleUnhandledError(error: any) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    captureError(error);\n  } else {\n    // Ideal path, we report this as an unhandled error,\n    // which is thrown on a new call stack.\n    reportUnhandledError(error);\n  }\n}\n\n/**\n * An error handler used when no error handler was supplied\n * to the SafeSubscriber -- meaning no error handler was supplied\n * do the `subscribe` call on our observable.\n * @param err The error to handle\n */\nfunction defaultErrorHandler(err: any) {\n  throw err;\n}\n\n/**\n * A handler for notifications that cannot be sent to a stopped subscriber.\n * @param notification The notification being sent\n * @param subscriber The stopped subscriber\n */\nfunction handleStoppedNotification(notification: ObservableNotification<any>, subscriber: Subscriber<any>) {\n  const { onStoppedNotification } = config;\n  onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\n\n/**\n * The observer used as a stub for subscriptions where the user did not\n * pass any arguments to `subscribe`. Comes with the default error handling\n * behavior.\n */\nexport const EMPTY_OBSERVER: Readonly<Observer<any>> & { closed: true } = {\n  closed: true,\n  next: noop,\n  error: defaultErrorHandler,\n  complete: noop,\n};\n", "/**\n * Symbol.observable or a string \"@@observable\". Used for interop\n *\n * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS.\n * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable\n */\nexport const observable: string | symbol = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n", "/**\n * This function takes one parameter and just returns it. Simply put,\n * this is like `<T>(x: T): T => x`.\n *\n * ## Examples\n *\n * This is useful in some cases when using things like `mergeMap`\n *\n * ```ts\n * import { interval, take, map, range, mergeMap, identity } from 'rxjs';\n *\n * const source$ = interval(1000).pipe(take(5));\n *\n * const result$ = source$.pipe(\n *   map(i => range(i)),\n *   mergeMap(identity) // same as mergeMap(x => x)\n * );\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * Or when you want to selectively apply an operator\n *\n * ```ts\n * import { interval, take, identity } from 'rxjs';\n *\n * const shouldLimit = () => Math.random() < 0.5;\n *\n * const source$ = interval(1000);\n *\n * const result$ = source$.pipe(shouldLimit() ? take(5) : identity);\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * @param x Any value that is returned by this function\n * @returns The value passed as the first parameter to this function\n */\nexport function identity<T>(x: T): T {\n  return x;\n}\n", "import { identity } from './identity';\nimport { UnaryFunction } from '../types';\n\nexport function pipe(): typeof identity;\nexport function pipe<T, A>(fn1: UnaryFunction<T, A>): UnaryFunction<T, A>;\nexport function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>): UnaryFunction<T, B>;\nexport function pipe<T, A, B, C>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>): UnaryFunction<T, C>;\nexport function pipe<T, A, B, C, D>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>\n): UnaryFunction<T, D>;\nexport function pipe<T, A, B, C, D, E>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>\n): UnaryFunction<T, E>;\nexport function pipe<T, A, B, C, D, E, F>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>\n): UnaryFunction<T, F>;\nexport function pipe<T, A, B, C, D, E, F, G>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>\n): UnaryFunction<T, G>;\nexport function pipe<T, A, B, C, D, E, F, G, H>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>\n): UnaryFunction<T, H>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>\n): UnaryFunction<T, I>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>,\n  ...fns: UnaryFunction<any, any>[]\n): UnaryFunction<T, unknown>;\n\n/**\n * pipe() can be called on one or more functions, each of which can take one argument (\"UnaryFunction\")\n * and uses it to return a value.\n * It returns a function that takes one argument, passes it to the first UnaryFunction, and then\n * passes the result to the next one, passes that result to the next one, and so on.  \n */\nexport function pipe(...fns: Array<UnaryFunction<any, any>>): UnaryFunction<any, any> {\n  return pipeFromArray(fns);\n}\n\n/** @internal */\nexport function pipeFromArray<T, R>(fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {\n  if (fns.length === 0) {\n    return identity as UnaryFunction<any, any>;\n  }\n\n  if (fns.length === 1) {\n    return fns[0];\n  }\n\n  return function piped(input: T): R {\n    return fns.reduce((prev: any, fn: UnaryFunction<T, R>) => fn(prev), input as any);\n  };\n}\n", "import { Operator } from './Operator';\nimport { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription, Subscription } from './Subscription';\nimport { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A representation of any set of values over any amount of time. This is the most basic building block\n * of RxJS.\n *\n * @class Observable<T>\n */\nexport class Observable<T> implements Subscribable<T> {\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  source: Observable<any> | undefined;\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  operator: Operator<any, T> | undefined;\n\n  /**\n   * @constructor\n   * @param {Function} subscribe the function that is called when the Observable is\n   * initially subscribed to. This function is given a Subscriber, to which new values\n   * can be `next`ed, or an `error` method can be called to raise an error, or\n   * `complete` can be called to notify of a successful completion.\n   */\n  constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic) {\n    if (subscribe) {\n      this._subscribe = subscribe;\n    }\n  }\n\n  // HACK: Since TypeScript inherits static properties too, we have to\n  // fight against TypeScript here so Subject can have a different static create signature\n  /**\n   * Creates a new Observable by calling the Observable constructor\n   * @owner Observable\n   * @method create\n   * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n   * @return {Observable} a new observable\n   * @nocollapse\n   * @deprecated Use `new Observable()` instead. Will be removed in v8.\n   */\n  static create: (...args: any[]) => any = <T>(subscribe?: (subscriber: Subscriber<T>) => TeardownLogic) => {\n    return new Observable<T>(subscribe);\n  };\n\n  /**\n   * Creates a new Observable, with this Observable instance as the source, and the passed\n   * operator defined as the new observable's operator.\n   * @method lift\n   * @param operator the operator defining the operation to take on the observable\n   * @return a new observable with the Operator applied\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * If you have implemented an operator using `lift`, it is recommended that you create an\n   * operator by simply returning `new Observable()` directly. See \"Creating new operators from\n   * scratch\" section here: https://rxjs.dev/guide/operators\n   */\n  lift<R>(operator?: Operator<T, R>): Observable<R> {\n    const observable = new Observable<R>();\n    observable.source = this;\n    observable.operator = operator;\n    return observable;\n  }\n\n  subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;\n  /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\n  subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;\n  /**\n   * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.\n   *\n   * <span class=\"informal\">Use it when you have all these Observables, but still nothing is happening.</span>\n   *\n   * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It\n   * might be for example a function that you passed to Observable's constructor, but most of the time it is\n   * a library implementation, which defines what will be emitted by an Observable, and when it be will emitted. This means\n   * that calling `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often\n   * the thought.\n   *\n   * Apart from starting the execution of an Observable, this method allows you to listen for values\n   * that an Observable emits, as well as for when it completes or errors. You can achieve this in two\n   * of the following ways.\n   *\n   * The first way is creating an object that implements {@link Observer} interface. It should have methods\n   * defined by that interface, but note that it should be just a regular JavaScript object, which you can create\n   * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular, do\n   * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also\n   * that your object does not have to implement all methods. If you find yourself creating a method that doesn't\n   * do anything, you can simply omit it. Note however, if the `error` method is not provided and an error happens,\n   * it will be thrown asynchronously. Errors thrown asynchronously cannot be caught using `try`/`catch`. Instead,\n   * use the {@link onUnhandledError} configuration option or use a runtime handler (like `window.onerror` or\n   * `process.on('error)`) to be notified of unhandled errors. Because of this, it's recommended that you provide\n   * an `error` method to avoid missing thrown errors.\n   *\n   * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods.\n   * This means you can provide three functions as arguments to `subscribe`, where the first function is equivalent\n   * of a `next` method, the second of an `error` method and the third of a `complete` method. Just as in case of an Observer,\n   * if you do not need to listen for something, you can omit a function by passing `undefined` or `null`,\n   * since `subscribe` recognizes these functions by where they were placed in function call. When it comes\n   * to the `error` function, as with an Observer, if not provided, errors emitted by an Observable will be thrown asynchronously.\n   *\n   * You can, however, subscribe with no parameters at all. This may be the case where you're not interested in terminal events\n   * and you also handled emissions internally by using operators (e.g. using `tap`).\n   *\n   * Whichever style of calling `subscribe` you use, in both cases it returns a Subscription object.\n   * This object allows you to call `unsubscribe` on it, which in turn will stop the work that an Observable does and will clean\n   * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback\n   * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable.\n   *\n   * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously.\n   * It is an Observable itself that decides when these functions will be called. For example {@link of}\n   * by default emits all its values synchronously. Always check documentation for how given Observable\n   * will behave when subscribed and if its default behavior can be modified with a `scheduler`.\n   *\n   * #### Examples\n   *\n   * Subscribe with an {@link guide/observer Observer}\n   *\n   * ```ts\n   * import { of } from 'rxjs';\n   *\n   * const sumObserver = {\n   *   sum: 0,\n   *   next(value) {\n   *     console.log('Adding: ' + value);\n   *     this.sum = this.sum + value;\n   *   },\n   *   error() {\n   *     // We actually could just remove this method,\n   *     // since we do not really care about errors right now.\n   *   },\n   *   complete() {\n   *     console.log('Sum equals: ' + this.sum);\n   *   }\n   * };\n   *\n   * of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes.\n   *   .subscribe(sumObserver);\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Subscribe with functions ({@link deprecations/subscribe-arguments deprecated})\n   *\n   * ```ts\n   * import { of } from 'rxjs'\n   *\n   * let sum = 0;\n   *\n   * of(1, 2, 3).subscribe(\n   *   value => {\n   *     console.log('Adding: ' + value);\n   *     sum = sum + value;\n   *   },\n   *   undefined,\n   *   () => console.log('Sum equals: ' + sum)\n   * );\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Cancel a subscription\n   *\n   * ```ts\n   * import { interval } from 'rxjs';\n   *\n   * const subscription = interval(1000).subscribe({\n   *   next(num) {\n   *     console.log(num)\n   *   },\n   *   complete() {\n   *     // Will not be called, even when cancelling subscription.\n   *     console.log('completed!');\n   *   }\n   * });\n   *\n   * setTimeout(() => {\n   *   subscription.unsubscribe();\n   *   console.log('unsubscribed!');\n   * }, 2500);\n   *\n   * // Logs:\n   * // 0 after 1s\n   * // 1 after 2s\n   * // 'unsubscribed!' after 2.5s\n   * ```\n   *\n   * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called,\n   * or the first of three possible handlers, which is the handler for each value emitted from the subscribed\n   * Observable.\n   * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided,\n   * the error will be thrown asynchronously as unhandled.\n   * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion.\n   * @return {Subscription} a subscription reference to the registered handlers\n   * @method subscribe\n   */\n  subscribe(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((error: any) => void) | null,\n    complete?: (() => void) | null\n  ): Subscription {\n    const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n\n    errorContext(() => {\n      const { operator, source } = this;\n      subscriber.add(\n        operator\n          ? // We're dealing with a subscription in the\n            // operator chain to one of our lifted operators.\n            operator.call(subscriber, source)\n          : source\n          ? // If `source` has a value, but `operator` does not, something that\n            // had intimate knowledge of our API, like our `Subject`, must have\n            // set it. We're going to just call `_subscribe` directly.\n            this._subscribe(subscriber)\n          : // In all other cases, we're likely wrapping a user-provided initializer\n            // function, so we need to catch errors and handle them appropriately.\n            this._trySubscribe(subscriber)\n      );\n    });\n\n    return subscriber;\n  }\n\n  /** @internal */\n  protected _trySubscribe(sink: Subscriber<T>): TeardownLogic {\n    try {\n      return this._subscribe(sink);\n    } catch (err) {\n      // We don't need to return anything in this case,\n      // because it's just going to try to `add()` to a subscription\n      // above.\n      sink.error(err);\n    }\n  }\n\n  /**\n   * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with\n   * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * #### Example\n   *\n   * ```ts\n   * import { interval, take } from 'rxjs';\n   *\n   * const source$ = interval(1000).pipe(take(4));\n   *\n   * async function getTotal() {\n   *   let total = 0;\n   *\n   *   await source$.forEach(value => {\n   *     total += value;\n   *     console.log('observable -> ' + value);\n   *   });\n   *\n   *   return total;\n   * }\n   *\n   * getTotal().then(\n   *   total => console.log('Total: ' + total)\n   * );\n   *\n   * // Expected:\n   * // 'observable -> 0'\n   * // 'observable -> 1'\n   * // 'observable -> 2'\n   * // 'observable -> 3'\n   * // 'Total: 6'\n   * ```\n   *\n   * @param next a handler for each value emitted by the observable\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   */\n  forEach(next: (value: T) => void): Promise<void>;\n\n  /**\n   * @param next a handler for each value emitted by the observable\n   * @param promiseCtor a constructor function used to instantiate the Promise\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   * @deprecated Passing a Promise constructor will no longer be available\n   * in upcoming versions of RxJS. This is because it adds weight to the library, for very\n   * little benefit. If you need this functionality, it is recommended that you either\n   * polyfill Promise, or you create an adapter to convert the returned native promise\n   * to whatever promise implementation you wanted. Will be removed in v8.\n   */\n  forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;\n\n  forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise<void> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor<void>((resolve, reject) => {\n      const subscriber = new SafeSubscriber<T>({\n        next: (value) => {\n          try {\n            next(value);\n          } catch (err) {\n            reject(err);\n            subscriber.unsubscribe();\n          }\n        },\n        error: reject,\n        complete: resolve,\n      });\n      this.subscribe(subscriber);\n    }) as Promise<void>;\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<any>): TeardownLogic {\n    return this.source?.subscribe(subscriber);\n  }\n\n  /**\n   * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n   * @method Symbol.observable\n   * @return {Observable} this instance of the observable\n   */\n  [Symbol_observable]() {\n    return this;\n  }\n\n  /* tslint:disable:max-line-length */\n  pipe(): Observable<T>;\n  pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;\n  pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;\n  pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;\n  pipe<A, B, C, D>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>\n  ): Observable<D>;\n  pipe<A, B, C, D, E>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>\n  ): Observable<E>;\n  pipe<A, B, C, D, E, F>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>\n  ): Observable<F>;\n  pipe<A, B, C, D, E, F, G>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>\n  ): Observable<G>;\n  pipe<A, B, C, D, E, F, G, H>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>\n  ): Observable<H>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>\n  ): Observable<I>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>,\n    ...operations: OperatorFunction<any, any>[]\n  ): Observable<unknown>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Used to stitch together functional operators into a chain.\n   * @method pipe\n   * @return {Observable} the Observable result of all of the operators having\n   * been called in the order they were passed in.\n   *\n   * ## Example\n   *\n   * ```ts\n   * import { interval, filter, map, scan } from 'rxjs';\n   *\n   * interval(1000)\n   *   .pipe(\n   *     filter(x => x % 2 === 0),\n   *     map(x => x + x),\n   *     scan((acc, x) => acc + x)\n   *   )\n   *   .subscribe(x => console.log(x));\n   * ```\n   */\n  pipe(...operations: OperatorFunction<any, any>[]): Observable<any> {\n    return pipeFromArray(operations)(this);\n  }\n\n  /* tslint:disable:max-line-length */\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Subscribe to this Observable and get a Promise resolving on\n   * `complete` with the last emission (if any).\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * @method toPromise\n   * @param [promiseCtor] a constructor function used to instantiate\n   * the Promise\n   * @return A Promise that resolves with the last value emit, or\n   * rejects on an error. If there were no emissions, Promise\n   * resolves with undefined.\n   * @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise\n   */\n  toPromise(promiseCtor?: PromiseConstructorLike): Promise<T | undefined> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor((resolve, reject) => {\n      let value: T | undefined;\n      this.subscribe(\n        (x: T) => (value = x),\n        (err: any) => reject(err),\n        () => resolve(value)\n      );\n    }) as Promise<T | undefined>;\n  }\n}\n\n/**\n * Decides between a passed promise constructor from consuming code,\n * A default configured promise constructor, and the native promise\n * constructor and returns it. If nothing can be found, it will throw\n * an error.\n * @param promiseCtor The optional promise constructor to passed by consuming code\n */\nfunction getPromiseCtor(promiseCtor: PromiseConstructorLike | undefined) {\n  return promiseCtor ?? config.Promise ?? Promise;\n}\n\nfunction isObserver<T>(value: any): value is Observer<T> {\n  return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\n\nfunction isSubscriber<T>(value: any): value is Subscriber<T> {\n  return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../types';\nimport { isFunction } from './isFunction';\n\n/**\n * Used to determine if an object is an Observable with a lift function.\n */\nexport function hasLift(source: any): source is { lift: InstanceType<typeof Observable>['lift'] } {\n  return isFunction(source?.lift);\n}\n\n/**\n * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way.\n * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription.\n */\nexport function operate<T, R>(\n  init: (liftedSource: Observable<T>, subscriber: Subscriber<R>) => (() => void) | void\n): OperatorFunction<T, R> {\n  return (source: Observable<T>) => {\n    if (hasLift(source)) {\n      return source.lift(function (this: Subscriber<R>, liftedSource: Observable<T>) {\n        try {\n          return init(liftedSource, this);\n        } catch (err) {\n          this.error(err);\n        }\n      });\n    }\n    throw new TypeError('Unable to lift unknown Observable type');\n  };\n}\n", "import { Subscriber } from '../Subscriber';\n\n/**\n * Creates an instance of an `OperatorSubscriber`.\n * @param destination The downstream subscriber.\n * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n * and send to the `destination` error handler.\n * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n * this handler are sent to the `destination` error handler.\n * @param onFinalize Additional teardown logic here. This will only be called on teardown if the\n * subscriber itself is not already closed. This is called after all other teardown logic is executed.\n */\nexport function createOperatorSubscriber<T>(\n  destination: Subscriber<any>,\n  onNext?: (value: T) => void,\n  onComplete?: () => void,\n  onError?: (err: any) => void,\n  onFinalize?: () => void\n): Subscriber<T> {\n  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\n\n/**\n * A generic helper for allowing operators to be created with a Subscriber and\n * use closures to capture necessary state from the operator function itself.\n */\nexport class OperatorSubscriber<T> extends Subscriber<T> {\n  /**\n   * Creates an instance of an `OperatorSubscriber`.\n   * @param destination The downstream subscriber.\n   * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n   * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n   * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n   * and send to the `destination` error handler.\n   * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n   * this handler are sent to the `destination` error handler.\n   * @param onFinalize Additional finalization logic here. This will only be called on finalization if the\n   * subscriber itself is not already closed. This is called after all other finalization logic is executed.\n   * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe.\n   * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription\n   * to the resulting observable does not actually disconnect from the source if there are active subscriptions\n   * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!)\n   */\n  constructor(\n    destination: Subscriber<any>,\n    onNext?: (value: T) => void,\n    onComplete?: () => void,\n    onError?: (err: any) => void,\n    private onFinalize?: () => void,\n    private shouldUnsubscribe?: () => boolean\n  ) {\n    // It's important - for performance reasons - that all of this class's\n    // members are initialized and that they are always initialized in the same\n    // order. This will ensure that all OperatorSubscriber instances have the\n    // same hidden class in V8. This, in turn, will help keep the number of\n    // hidden classes involved in property accesses within the base class as\n    // low as possible. If the number of hidden classes involved exceeds four,\n    // the property accesses will become megamorphic and performance penalties\n    // will be incurred - i.e. inline caches won't be used.\n    //\n    // The reasons for ensuring all instances have the same hidden class are\n    // further discussed in this blog post from Benedikt Meurer:\n    // https://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/\n    super(destination);\n    this._next = onNext\n      ? function (this: OperatorSubscriber<T>, value: T) {\n          try {\n            onNext(value);\n          } catch (err) {\n            destination.error(err);\n          }\n        }\n      : super._next;\n    this._error = onError\n      ? function (this: OperatorSubscriber<T>, err: any) {\n          try {\n            onError(err);\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._error;\n    this._complete = onComplete\n      ? function (this: OperatorSubscriber<T>) {\n          try {\n            onComplete();\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._complete;\n  }\n\n  unsubscribe() {\n    if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n      const { closed } = this;\n      super.unsubscribe();\n      // Execute additional teardown if we have any and we didn't already do so.\n      !closed && this.onFinalize?.();\n    }\n  }\n}\n", "import { Subscription } from '../Subscription';\n\ninterface AnimationFrameProvider {\n  schedule(callback: FrameRequestCallback): Subscription;\n  requestAnimationFrame: typeof requestAnimationFrame;\n  cancelAnimationFrame: typeof cancelAnimationFrame;\n  delegate:\n    | {\n        requestAnimationFrame: typeof requestAnimationFrame;\n        cancelAnimationFrame: typeof cancelAnimationFrame;\n      }\n    | undefined;\n}\n\nexport const animationFrameProvider: AnimationFrameProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  schedule(callback) {\n    let request = requestAnimationFrame;\n    let cancel: typeof cancelAnimationFrame | undefined = cancelAnimationFrame;\n    const { delegate } = animationFrameProvider;\n    if (delegate) {\n      request = delegate.requestAnimationFrame;\n      cancel = delegate.cancelAnimationFrame;\n    }\n    const handle = request((timestamp) => {\n      // Clear the cancel function. The request has been fulfilled, so\n      // attempting to cancel the request upon unsubscription would be\n      // pointless.\n      cancel = undefined;\n      callback(timestamp);\n    });\n    return new Subscription(() => cancel?.(handle));\n  },\n  requestAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.requestAnimationFrame || requestAnimationFrame)(...args);\n  },\n  cancelAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.cancelAnimationFrame || cancelAnimationFrame)(...args);\n  },\n  delegate: undefined,\n};\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface ObjectUnsubscribedError extends Error {}\n\nexport interface ObjectUnsubscribedErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): ObjectUnsubscribedError;\n}\n\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nexport const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass(\n  (_super) =>\n    function ObjectUnsubscribedErrorImpl(this: any) {\n      _super(this);\n      this.name = 'ObjectUnsubscribedError';\n      this.message = 'object unsubscribed';\n    }\n);\n", "import { Operator } from './Operator';\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { Observer, SubscriptionLike, TeardownLogic } from './types';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A Subject is a special type of Observable that allows values to be\n * multicasted to many Observers. Subjects are like EventEmitters.\n *\n * Every Subject is an Observable and an Observer. You can subscribe to a\n * Subject, and you can call next to feed values as well as error and complete.\n */\nexport class Subject<T> extends Observable<T> implements SubscriptionLike {\n  closed = false;\n\n  private currentObservers: Observer<T>[] | null = null;\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  observers: Observer<T>[] = [];\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  isStopped = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  hasError = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  thrownError: any = null;\n\n  /**\n   * Creates a \"subject\" by basically gluing an observer to an observable.\n   *\n   * @nocollapse\n   * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion.\n   */\n  static create: (...args: any[]) => any = <T>(destination: Observer<T>, source: Observable<T>): AnonymousSubject<T> => {\n    return new AnonymousSubject<T>(destination, source);\n  };\n\n  constructor() {\n    // NOTE: This must be here to obscure Observable's constructor.\n    super();\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  lift<R>(operator: Operator<T, R>): Observable<R> {\n    const subject = new AnonymousSubject(this, this);\n    subject.operator = operator as any;\n    return subject as any;\n  }\n\n  /** @internal */\n  protected _throwIfClosed() {\n    if (this.closed) {\n      throw new ObjectUnsubscribedError();\n    }\n  }\n\n  next(value: T) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        if (!this.currentObservers) {\n          this.currentObservers = Array.from(this.observers);\n        }\n        for (const observer of this.currentObservers) {\n          observer.next(value);\n        }\n      }\n    });\n  }\n\n  error(err: any) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.hasError = this.isStopped = true;\n        this.thrownError = err;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.error(err);\n        }\n      }\n    });\n  }\n\n  complete() {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.isStopped = true;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.complete();\n        }\n      }\n    });\n  }\n\n  unsubscribe() {\n    this.isStopped = this.closed = true;\n    this.observers = this.currentObservers = null!;\n  }\n\n  get observed() {\n    return this.observers?.length > 0;\n  }\n\n  /** @internal */\n  protected _trySubscribe(subscriber: Subscriber<T>): TeardownLogic {\n    this._throwIfClosed();\n    return super._trySubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._checkFinalizedStatuses(subscriber);\n    return this._innerSubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _innerSubscribe(subscriber: Subscriber<any>) {\n    const { hasError, isStopped, observers } = this;\n    if (hasError || isStopped) {\n      return EMPTY_SUBSCRIPTION;\n    }\n    this.currentObservers = null;\n    observers.push(subscriber);\n    return new Subscription(() => {\n      this.currentObservers = null;\n      arrRemove(observers, subscriber);\n    });\n  }\n\n  /** @internal */\n  protected _checkFinalizedStatuses(subscriber: Subscriber<any>) {\n    const { hasError, thrownError, isStopped } = this;\n    if (hasError) {\n      subscriber.error(thrownError);\n    } else if (isStopped) {\n      subscriber.complete();\n    }\n  }\n\n  /**\n   * Creates a new Observable with this Subject as the source. You can do this\n   * to create custom Observer-side logic of the Subject and conceal it from\n   * code that uses the Observable.\n   * @return {Observable} Observable that the Subject casts to\n   */\n  asObservable(): Observable<T> {\n    const observable: any = new Observable<T>();\n    observable.source = this;\n    return observable;\n  }\n}\n\n/**\n * @class AnonymousSubject<T>\n */\nexport class AnonymousSubject<T> extends Subject<T> {\n  constructor(\n    /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n    public destination?: Observer<T>,\n    source?: Observable<T>\n  ) {\n    super();\n    this.source = source;\n  }\n\n  next(value: T) {\n    this.destination?.next?.(value);\n  }\n\n  error(err: any) {\n    this.destination?.error?.(err);\n  }\n\n  complete() {\n    this.destination?.complete?.();\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    return this.source?.subscribe(subscriber) ?? EMPTY_SUBSCRIPTION;\n  }\n}\n", "import { TimestampProvider } from '../types';\n\ninterface DateTimestampProvider extends TimestampProvider {\n  delegate: TimestampProvider | undefined;\n}\n\nexport const dateTimestampProvider: DateTimestampProvider = {\n  now() {\n    // Use the variable rather than `this` so that the function can be called\n    // without being bound to the provider.\n    return (dateTimestampProvider.delegate || Date).now();\n  },\n  delegate: undefined,\n};\n", "import { Subject } from './Subject';\nimport { TimestampProvider } from './types';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * A variant of {@link Subject} that \"replays\" old values to new subscribers by emitting them when they first subscribe.\n *\n * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`,\n * `ReplaySubject` \"observes\" values by having them passed to its `next` method. When it observes a value, it will store that\n * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor.\n *\n * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in\n * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will\n * error if it has observed an error.\n *\n * There are two main configuration items to be concerned with:\n *\n * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite.\n * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer.\n *\n * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values\n * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`.\n *\n * ### Differences with BehaviorSubject\n *\n * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions:\n *\n * 1. `BehaviorSubject` comes \"primed\" with a single value upon construction.\n * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n * @see {@link shareReplay}\n */\nexport class ReplaySubject<T> extends Subject<T> {\n  private _buffer: (T | number)[] = [];\n  private _infiniteTimeWindow = true;\n\n  /**\n   * @param bufferSize The size of the buffer to replay on subscription\n   * @param windowTime The amount of time the buffered items will stay buffered\n   * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to\n   * calculate the amount of time something has been buffered.\n   */\n  constructor(\n    private _bufferSize = Infinity,\n    private _windowTime = Infinity,\n    private _timestampProvider: TimestampProvider = dateTimestampProvider\n  ) {\n    super();\n    this._infiniteTimeWindow = _windowTime === Infinity;\n    this._bufferSize = Math.max(1, _bufferSize);\n    this._windowTime = Math.max(1, _windowTime);\n  }\n\n  next(value: T): void {\n    const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this;\n    if (!isStopped) {\n      _buffer.push(value);\n      !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n    }\n    this._trimBuffer();\n    super.next(value);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._trimBuffer();\n\n    const subscription = this._innerSubscribe(subscriber);\n\n    const { _infiniteTimeWindow, _buffer } = this;\n    // We use a copy here, so reentrant code does not mutate our array while we're\n    // emitting it to a new subscriber.\n    const copy = _buffer.slice();\n    for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n      subscriber.next(copy[i] as T);\n    }\n\n    this._checkFinalizedStatuses(subscriber);\n\n    return subscription;\n  }\n\n  private _trimBuffer() {\n    const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this;\n    // If we don't have an infinite buffer size, and we're over the length,\n    // use splice to truncate the old buffer values off. Note that we have to\n    // double the size for instances where we're not using an infinite time window\n    // because we're storing the values and the timestamps in the same array.\n    const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n    _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n\n    // Now, if we're not in an infinite time window, remove all values where the time is\n    // older than what is allowed.\n    if (!_infiniteTimeWindow) {\n      const now = _timestampProvider.now();\n      let last = 0;\n      // Search the array for the first timestamp that isn't expired and\n      // truncate the buffer up to that point.\n      for (let i = 1; i < _buffer.length && (_buffer[i] as number) <= now; i += 2) {\n        last = i;\n      }\n      last && _buffer.splice(0, last + 1);\n    }\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\nimport { SchedulerAction } from '../types';\n\n/**\n * A unit of work to be executed in a `scheduler`. An action is typically\n * created from within a {@link SchedulerLike} and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action<T> extends Subscription {\n *   new (scheduler: Scheduler, work: (state?: T) => void);\n *   schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action<T>\n */\nexport class Action<T> extends Subscription {\n  constructor(scheduler: Scheduler, work: (this: SchedulerAction<T>, state?: T) => void) {\n    super();\n  }\n  /**\n   * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed\n   * some context object, `state`. May happen at some point in the future,\n   * according to the `delay` parameter, if specified.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler.\n   * @return {void}\n   */\n  public schedule(state?: T, delay: number = 0): Subscription {\n    return this;\n  }\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearIntervalFunction = (handle: TimerHandle) => void;\n\ninterface IntervalProvider {\n  setInterval: SetIntervalFunction;\n  clearInterval: ClearIntervalFunction;\n  delegate:\n    | {\n        setInterval: SetIntervalFunction;\n        clearInterval: ClearIntervalFunction;\n      }\n    | undefined;\n}\n\nexport const intervalProvider: IntervalProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setInterval(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = intervalProvider;\n    if (delegate?.setInterval) {\n      return delegate.setInterval(handler, timeout, ...args);\n    }\n    return setInterval(handler, timeout, ...args);\n  },\n  clearInterval(handle) {\n    const { delegate } = intervalProvider;\n    return (delegate?.clearInterval || clearInterval)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { Action } from './Action';\nimport { SchedulerAction } from '../types';\nimport { Subscription } from '../Subscription';\nimport { AsyncScheduler } from './AsyncScheduler';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncAction<T> extends Action<T> {\n  public id: TimerHandle | undefined;\n  public state?: T;\n  // @ts-ignore: Property has no initializer and is not definitely assigned\n  public delay: number;\n  protected pending: boolean = false;\n\n  constructor(protected scheduler: AsyncScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  public schedule(state?: T, delay: number = 0): Subscription {\n    if (this.closed) {\n      return this;\n    }\n\n    // Always replace the current state with the new state.\n    this.state = state;\n\n    const id = this.id;\n    const scheduler = this.scheduler;\n\n    //\n    // Important implementation note:\n    //\n    // Actions only execute once by default, unless rescheduled from within the\n    // scheduled callback. This allows us to implement single and repeat\n    // actions via the same code path, without adding API surface area, as well\n    // as mimic traditional recursion but across asynchronous boundaries.\n    //\n    // However, JS runtimes and timers distinguish between intervals achieved by\n    // serial `setTimeout` calls vs. a single `setInterval` call. An interval of\n    // serial `setTimeout` calls can be individually delayed, which delays\n    // scheduling the next `setTimeout`, and so on. `setInterval` attempts to\n    // guarantee the interval callback will be invoked more precisely to the\n    // interval period, regardless of load.\n    //\n    // Therefore, we use `setInterval` to schedule single and repeat actions.\n    // If the action reschedules itself with the same delay, the interval is not\n    // canceled. If the action doesn't reschedule, or reschedules with a\n    // different delay, the interval will be canceled after scheduled callback\n    // execution.\n    //\n    if (id != null) {\n      this.id = this.recycleAsyncId(scheduler, id, delay);\n    }\n\n    // Set the pending flag indicating that this action has been scheduled, or\n    // has recursively rescheduled itself.\n    this.pending = true;\n\n    this.delay = delay;\n    // If this action has already an async Id, don't request a new one.\n    this.id = this.id ?? this.requestAsyncId(scheduler, this.id, delay);\n\n    return this;\n  }\n\n  protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay: number = 0): TimerHandle {\n    return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n  }\n\n  protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay: number | null = 0): TimerHandle | undefined {\n    // If this action is rescheduled with the same delay time, don't clear the interval id.\n    if (delay != null && this.delay === delay && this.pending === false) {\n      return id;\n    }\n    // Otherwise, if the action's delay time is different from the current delay,\n    // or the action has been rescheduled before it's executed, clear the interval id\n    if (id != null) {\n      intervalProvider.clearInterval(id);\n    }\n\n    return undefined;\n  }\n\n  /**\n   * Immediately executes this action and the `work` it contains.\n   * @return {any}\n   */\n  public execute(state: T, delay: number): any {\n    if (this.closed) {\n      return new Error('executing a cancelled action');\n    }\n\n    this.pending = false;\n    const error = this._execute(state, delay);\n    if (error) {\n      return error;\n    } else if (this.pending === false && this.id != null) {\n      // Dequeue if the action didn't reschedule itself. Don't call\n      // unsubscribe(), because the action could reschedule later.\n      // For example:\n      // ```\n      // scheduler.schedule(function doWork(counter) {\n      //   /* ... I'm a busy worker bee ... */\n      //   var originalAction = this;\n      //   /* wait 100ms before rescheduling the action */\n      //   setTimeout(function () {\n      //     originalAction.schedule(counter + 1);\n      //   }, 100);\n      // }, 1000);\n      // ```\n      this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n    }\n  }\n\n  protected _execute(state: T, _delay: number): any {\n    let errored: boolean = false;\n    let errorValue: any;\n    try {\n      this.work(state);\n    } catch (e) {\n      errored = true;\n      // HACK: Since code elsewhere is relying on the \"truthiness\" of the\n      // return here, we can't have it return \"\" or 0 or false.\n      // TODO: Clean this up when we refactor schedulers mid-version-8 or so.\n      errorValue = e ? e : new Error('Scheduled action threw falsy error');\n    }\n    if (errored) {\n      this.unsubscribe();\n      return errorValue;\n    }\n  }\n\n  unsubscribe() {\n    if (!this.closed) {\n      const { id, scheduler } = this;\n      const { actions } = scheduler;\n\n      this.work = this.state = this.scheduler = null!;\n      this.pending = false;\n\n      arrRemove(actions, this);\n      if (id != null) {\n        this.id = this.recycleAsyncId(scheduler, id, null);\n      }\n\n      this.delay = null!;\n      super.unsubscribe();\n    }\n  }\n}\n", "import { Action } from './scheduler/Action';\nimport { Subscription } from './Subscription';\nimport { SchedulerLike, SchedulerAction } from './types';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an `Action`.\n *\n * ```ts\n * class Scheduler {\n *   now(): number;\n *   schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n * @deprecated Scheduler is an internal implementation detail of RxJS, and\n * should not be used directly. Rather, create your own class and implement\n * {@link SchedulerLike}. Will be made internal in v8.\n */\nexport class Scheduler implements SchedulerLike {\n  public static now: () => number = dateTimestampProvider.now;\n\n  constructor(private schedulerActionCtor: typeof Action, now: () => number = Scheduler.now) {\n    this.now = now;\n  }\n\n  /**\n   * A getter method that returns a number representing the current time\n   * (at the time this function was called) according to the scheduler's own\n   * internal clock.\n   * @return {number} A number that represents the current time. May or may not\n   * have a relation to wall-clock time. May or may not refer to a time unit\n   * (e.g. milliseconds).\n   */\n  public now: () => number;\n\n  /**\n   * Schedules a function, `work`, for execution. May happen at some point in\n   * the future, according to the `delay` parameter, if specified. May be passed\n   * some context object, `state`, which will be passed to the `work` function.\n   *\n   * The given arguments will be processed an stored as an Action object in a\n   * queue of actions.\n   *\n   * @param {function(state: ?T): ?Subscription} work A function representing a\n   * task, or some unit of work to be executed by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler itself.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @return {Subscription} A subscription in order to be able to unsubscribe\n   * the scheduled work.\n   */\n  public schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay: number = 0, state?: T): Subscription {\n    return new this.schedulerActionCtor<T>(this, work).schedule(state, delay);\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Action } from './Action';\nimport { AsyncAction } from './AsyncAction';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncScheduler extends Scheduler {\n  public actions: Array<AsyncAction<any>> = [];\n  /**\n   * A flag to indicate whether the Scheduler is currently executing a batch of\n   * queued actions.\n   * @type {boolean}\n   * @internal\n   */\n  public _active: boolean = false;\n  /**\n   * An internal ID used to track the latest asynchronous task such as those\n   * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n   * others.\n   * @type {any}\n   * @internal\n   */\n  public _scheduled: TimerHandle | undefined;\n\n  constructor(SchedulerAction: typeof Action, now: () => number = Scheduler.now) {\n    super(SchedulerAction, now);\n  }\n\n  public flush(action: AsyncAction<any>): void {\n    const { actions } = this;\n\n    if (this._active) {\n      actions.push(action);\n      return;\n    }\n\n    let error: any;\n    this._active = true;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions.shift()!)); // exhaust the scheduler queue\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions.shift()!)) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\n/**\n *\n * Async Scheduler\n *\n * <span class=\"informal\">Schedule task as if you used setTimeout(task, duration)</span>\n *\n * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript\n * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating\n * in intervals.\n *\n * If you just want to \"defer\" task, that is to perform it right after currently\n * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),\n * better choice will be the {@link asapScheduler} scheduler.\n *\n * ## Examples\n * Use async scheduler to delay task\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * const task = () => console.log('it works!');\n *\n * asyncScheduler.schedule(task, 2000);\n *\n * // After 2 seconds logs:\n * // \"it works!\"\n * ```\n *\n * Use async scheduler to repeat task in intervals\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * function task(state) {\n *   console.log(state);\n *   this.schedule(state + 1, 1000); // `this` references currently executing Action,\n *                                   // which we reschedule with new state and delay\n * }\n *\n * asyncScheduler.schedule(task, 3000, 0);\n *\n * // Logs:\n * // 0 after 3s\n * // 1 after 4s\n * // 2 after 5s\n * // 3 after 6s\n * ```\n */\n\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\n\n/**\n * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8.\n */\nexport const async = asyncScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nimport { SchedulerAction } from '../types';\nimport { animationFrameProvider } from './animationFrameProvider';\nimport { TimerHandle } from './timerHandle';\n\nexport class AnimationFrameAction<T> extends AsyncAction<T> {\n  constructor(protected scheduler: AnimationFrameScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n    // If delay is greater than 0, request as an async action.\n    if (delay !== null && delay > 0) {\n      return super.requestAsyncId(scheduler, id, delay);\n    }\n    // Push the action to the end of the scheduler queue.\n    scheduler.actions.push(this);\n    // If an animation frame has already been requested, don't request another\n    // one. If an animation frame hasn't been requested yet, request one. Return\n    // the current animation frame request id.\n    return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n  }\n\n  protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined {\n    // If delay exists and is greater than 0, or if the delay is null (the\n    // action wasn't rescheduled) but was originally scheduled as an async\n    // action, then recycle as an async action.\n    if (delay != null ? delay > 0 : this.delay > 0) {\n      return super.recycleAsyncId(scheduler, id, delay);\n    }\n    // If the scheduler queue has no remaining actions with the same async id,\n    // cancel the requested animation frame and set the scheduled flag to\n    // undefined so the next AnimationFrameAction will request its own.\n    const { actions } = scheduler;\n    if (id != null && actions[actions.length - 1]?.id !== id) {\n      animationFrameProvider.cancelAnimationFrame(id as number);\n      scheduler._scheduled = undefined;\n    }\n    // Return undefined so the action knows to request a new async id if it's rescheduled.\n    return undefined;\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AnimationFrameScheduler extends AsyncScheduler {\n  public flush(action?: AsyncAction<any>): void {\n    this._active = true;\n    // The async id that effects a call to flush is stored in _scheduled.\n    // Before executing an action, it's necessary to check the action's async\n    // id to determine whether it's supposed to be executed in the current\n    // flush.\n    // Previous implementations of this method used a count to determine this,\n    // but that was unsound, as actions that are unsubscribed - i.e. cancelled -\n    // are removed from the actions array and that can shift actions that are\n    // scheduled to be executed in a subsequent flush into positions at which\n    // they are executed within the current flush.\n    const flushId = this._scheduled;\n    this._scheduled = undefined;\n\n    const { actions } = this;\n    let error: any;\n    action = action || actions.shift()!;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions[0]) && action.id === flushId && actions.shift());\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n *\n * Animation Frame Scheduler\n *\n * <span class=\"informal\">Perform task when `window.requestAnimationFrame` would fire</span>\n *\n * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler\n * behaviour.\n *\n * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.\n * It makes sure scheduled task will happen just before next browser content repaint,\n * thus performing animations as efficiently as possible.\n *\n * ## Example\n * Schedule div height animation\n * ```ts\n * // html: <div style=\"background: #0ff;\"></div>\n * import { animationFrameScheduler } from 'rxjs';\n *\n * const div = document.querySelector('div');\n *\n * animationFrameScheduler.schedule(function(height) {\n *   div.style.height = height + \"px\";\n *\n *   this.schedule(height + 1);  // `this` references currently executing Action,\n *                               // which we reschedule with new state\n * }, 0, 0);\n *\n * // You will see a div element growing in height\n * ```\n */\n\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\n\n/**\n * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8.\n */\nexport const animationFrame = animationFrameScheduler;\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\n/**\n * A simple Observable that emits no items to the Observer and immediately\n * emits a complete notification.\n *\n * <span class=\"informal\">Just emits 'complete', and nothing else.</span>\n *\n * ![](empty.png)\n *\n * A simple Observable that only emits the complete notification. It can be used\n * for composing with other Observables, such as in a {@link mergeMap}.\n *\n * ## Examples\n *\n * Log complete notification\n *\n * ```ts\n * import { EMPTY } from 'rxjs';\n *\n * EMPTY.subscribe({\n *   next: () => console.log('Next'),\n *   complete: () => console.log('Complete!')\n * });\n *\n * // Outputs\n * // Complete!\n * ```\n *\n * Emit the number 7, then complete\n *\n * ```ts\n * import { EMPTY, startWith } from 'rxjs';\n *\n * const result = EMPTY.pipe(startWith(7));\n * result.subscribe(x => console.log(x));\n *\n * // Outputs\n * // 7\n * ```\n *\n * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`\n *\n * ```ts\n * import { interval, mergeMap, of, EMPTY } from 'rxjs';\n *\n * const interval$ = interval(1000);\n * const result = interval$.pipe(\n *   mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following to the console:\n * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)\n * // x will occur every 1000ms\n * // if x % 2 is equal to 1, print a, b, c (each on its own)\n * // if x % 2 is not equal to 1, nothing will be output\n * ```\n *\n * @see {@link Observable}\n * @see {@link NEVER}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const EMPTY = new Observable<never>((subscriber) => subscriber.complete());\n\n/**\n * @param scheduler A {@link SchedulerLike} to use for scheduling\n * the emission of the complete notification.\n * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.\n */\nexport function empty(scheduler?: SchedulerLike) {\n  return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\n\nfunction emptyScheduled(scheduler: SchedulerLike) {\n  return new Observable<never>((subscriber) => scheduler.schedule(() => subscriber.complete()));\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport function isScheduler(value: any): value is SchedulerLike {\n  return value && isFunction(value.schedule);\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\n\nfunction last<T>(arr: T[]): T | undefined {\n  return arr[arr.length - 1];\n}\n\nexport function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined {\n  return isFunction(last(args)) ? args.pop() : undefined;\n}\n\nexport function popScheduler(args: any[]): SchedulerLike | undefined {\n  return isScheduler(last(args)) ? args.pop() : undefined;\n}\n\nexport function popNumber(args: any[], defaultValue: number): number {\n  return typeof last(args) === 'number' ? args.pop()! : defaultValue;\n}\n", "export const isArrayLike = (<T>(x: any): x is ArrayLike<T> => x && typeof x.length === 'number' && typeof x !== 'function');", "import { isFunction } from \"./isFunction\";\n\n/**\n * Tests to see if the object is \"thennable\".\n * @param value the object to test\n */\nexport function isPromise(value: any): value is PromiseLike<any> {\n  return isFunction(value?.then);\n}\n", "import { InteropObservable } from '../types';\nimport { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being Observable (but not necessary an Rx Observable) */\nexport function isInteropObservable(input: any): input is InteropObservable<any> {\n  return isFunction(input[Symbol_observable]);\n}\n", "import { isFunction } from './isFunction';\n\nexport function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> {\n  return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]);\n}\n", "/**\n * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`.\n * @param input The object that was passed.\n */\nexport function createInvalidObservableTypeError(input: any) {\n  // TODO: We should create error codes that can be looked up, so this can be less verbose.\n  return new TypeError(\n    `You provided ${\n      input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`\n    } where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`\n  );\n}\n", "export function getSymbolIterator(): symbol {\n  if (typeof Symbol !== 'function' || !Symbol.iterator) {\n    return '@@iterator' as any;\n  }\n\n  return Symbol.iterator;\n}\n\nexport const iterator = getSymbolIterator();\n", "import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being an Iterable */\nexport function isIterable(input: any): input is Iterable<any> {\n  return isFunction(input?.[Symbol_iterator]);\n}\n", "import { ReadableStreamLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport async function* readableStreamLikeToAsyncGenerator<T>(readableStream: ReadableStreamLike<T>): AsyncGenerator<T> {\n  const reader = readableStream.getReader();\n  try {\n    while (true) {\n      const { value, done } = await reader.read();\n      if (done) {\n        return;\n      }\n      yield value!;\n    }\n  } finally {\n    reader.releaseLock();\n  }\n}\n\nexport function isReadableStreamLike<T>(obj: any): obj is ReadableStreamLike<T> {\n  // We don't want to use instanceof checks because they would return\n  // false for instances from another Realm, like an <iframe>.\n  return isFunction(obj?.getReader);\n}\n", "import { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { Subscriber } from '../Subscriber';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\n\nexport function innerFrom<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\nexport function innerFrom<T>(input: ObservableInput<T>): Observable<T> {\n  if (input instanceof Observable) {\n    return input;\n  }\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return fromInteropObservable(input);\n    }\n    if (isArrayLike(input)) {\n      return fromArrayLike(input);\n    }\n    if (isPromise(input)) {\n      return fromPromise(input);\n    }\n    if (isAsyncIterable(input)) {\n      return fromAsyncIterable(input);\n    }\n    if (isIterable(input)) {\n      return fromIterable(input);\n    }\n    if (isReadableStreamLike(input)) {\n      return fromReadableStreamLike(input);\n    }\n  }\n\n  throw createInvalidObservableTypeError(input);\n}\n\n/**\n * Creates an RxJS Observable from an object that implements `Symbol.observable`.\n * @param obj An object that properly implements `Symbol.observable`.\n */\nexport function fromInteropObservable<T>(obj: any) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    const obs = obj[Symbol_observable]();\n    if (isFunction(obs.subscribe)) {\n      return obs.subscribe(subscriber);\n    }\n    // Should be caught by observable subscribe function error handling.\n    throw new TypeError('Provided object does not correctly implement Symbol.observable');\n  });\n}\n\n/**\n * Synchronously emits the values of an array like and completes.\n * This is exported because there are creation functions and operators that need to\n * make direct use of the same logic, and there's no reason to make them run through\n * `from` conditionals because we *know* they're dealing with an array.\n * @param array The array to emit values from\n */\nexport function fromArrayLike<T>(array: ArrayLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    // Loop over the array and emit each value. Note two things here:\n    // 1. We're making sure that the subscriber is not closed on each loop.\n    //    This is so we don't continue looping over a very large array after\n    //    something like a `take`, `takeWhile`, or other synchronous unsubscription\n    //    has already unsubscribed.\n    // 2. In this form, reentrant code can alter that array we're looping over.\n    //    This is a known issue, but considered an edge case. The alternative would\n    //    be to copy the array before executing the loop, but this has\n    //    performance implications.\n    for (let i = 0; i < array.length && !subscriber.closed; i++) {\n      subscriber.next(array[i]);\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromPromise<T>(promise: PromiseLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    promise\n      .then(\n        (value) => {\n          if (!subscriber.closed) {\n            subscriber.next(value);\n            subscriber.complete();\n          }\n        },\n        (err: any) => subscriber.error(err)\n      )\n      .then(null, reportUnhandledError);\n  });\n}\n\nexport function fromIterable<T>(iterable: Iterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    for (const value of iterable) {\n      subscriber.next(value);\n      if (subscriber.closed) {\n        return;\n      }\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromAsyncIterable<T>(asyncIterable: AsyncIterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n  });\n}\n\nexport function fromReadableStreamLike<T>(readableStream: ReadableStreamLike<T>) {\n  return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\n\nasync function process<T>(asyncIterable: AsyncIterable<T>, subscriber: Subscriber<T>) {\n  for await (const value of asyncIterable) {\n    subscriber.next(value);\n    // A side-effect may have closed our subscriber,\n    // check before the next iteration.\n    if (subscriber.closed) {\n      return;\n    }\n  }\n  subscriber.complete();\n}\n", "import { Subscription } from '../Subscription';\nimport { SchedulerAction, SchedulerLike } from '../types';\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay: number,\n  repeat: true\n): void;\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay?: number,\n  repeat?: false\n): Subscription;\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay = 0,\n  repeat = false\n): Subscription | void {\n  const scheduleSubscription = scheduler.schedule(function (this: SchedulerAction<any>) {\n    work();\n    if (repeat) {\n      parentSubscription.add(this.schedule(null, delay));\n    } else {\n      this.unsubscribe();\n    }\n  }, delay);\n\n  parentSubscription.add(scheduleSubscription);\n\n  if (!repeat) {\n    // Because user-land scheduler implementations are unlikely to properly reuse\n    // Actions for repeat scheduling, we can't trust that the returned subscription\n    // will control repeat subscription scenarios. So we're trying to avoid using them\n    // incorrectly within this library.\n    return scheduleSubscription;\n  }\n}\n", "/** @prettier */\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Re-emits all notifications from source Observable with specified scheduler.\n *\n * <span class=\"informal\">Ensure a specific scheduler is used, from outside of an Observable.</span>\n *\n * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule\n * notifications emitted by the source Observable. It might be useful, if you do not have control over\n * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.\n *\n * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,\n * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal\n * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits\n * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.\n * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split\n * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source\n * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a\n * little bit more, to ensure that they are emitted at expected moments.\n *\n * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications\n * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`\n * will delay all notifications - including error notifications - while `delay` will pass through error\n * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator\n * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used\n * for notification emissions in general.\n *\n * ## Example\n *\n * Ensure values in subscribe are called just before browser repaint\n *\n * ```ts\n * import { interval, observeOn, animationFrameScheduler } from 'rxjs';\n *\n * const someDiv = document.createElement('div');\n * someDiv.style.cssText = 'width: 200px;background: #09c';\n * document.body.appendChild(someDiv);\n * const intervals = interval(10);      // Intervals are scheduled\n *                                      // with async scheduler by default...\n * intervals.pipe(\n *   observeOn(animationFrameScheduler) // ...but we will observe on animationFrame\n * )                                    // scheduler to ensure smooth animation.\n * .subscribe(val => {\n *   someDiv.style.height = val + 'px';\n * });\n * ```\n *\n * @see {@link delay}\n *\n * @param scheduler Scheduler that will be used to reschedule notifications from source Observable.\n * @param delay Number of milliseconds that states with what delay every notification should be rescheduled.\n * @return A function that returns an Observable that emits the same\n * notifications as the source Observable, but with provided scheduler.\n */\nexport function observeOn<T>(scheduler: SchedulerLike, delay = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay),\n        () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay),\n        (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}.\n *\n * With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to.\n *\n * Schedulers control the speed and order of emissions to observers from an Observable stream.\n *\n * ![](subscribeOn.png)\n *\n * ## Example\n *\n * Given the following code:\n *\n * ```ts\n * import { of, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3);\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 1\n * // 2\n * // 3\n * // 4\n * // 5\n * // 6\n * ```\n *\n * Both Observable `a` and `b` will emit their values directly and synchronously once they are subscribed to.\n *\n * If we instead use the `subscribeOn` operator declaring that we want to use the {@link asyncScheduler} for values emitted by Observable `a`:\n *\n * ```ts\n * import { of, subscribeOn, asyncScheduler, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3).pipe(subscribeOn(asyncScheduler));\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 4\n * // 5\n * // 6\n * // 1\n * // 2\n * // 3\n * ```\n *\n * The reason for this is that Observable `b` emits its values directly and synchronously like before\n * but the emissions from `a` are scheduled on the event loop because we are now using the {@link asyncScheduler} for that specific Observable.\n *\n * @param scheduler The {@link SchedulerLike} to perform subscription actions on.\n * @param delay A delay to pass to the scheduler to delay subscriptions\n * @return A function that returns an Observable modified so that its\n * subscriptions happen on the specified {@link SchedulerLike}.\n */\nexport function subscribeOn<T>(scheduler: SchedulerLike, delay: number = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { InteropObservable, SchedulerLike } from '../types';\n\nexport function scheduleObservable<T>(input: InteropObservable<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { SchedulerLike } from '../types';\n\nexport function schedulePromise<T>(input: PromiseLike<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\nexport function scheduleArray<T>(input: ArrayLike<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    // The current array index.\n    let i = 0;\n    // Start iterating over the array like on a schedule.\n    return scheduler.schedule(function () {\n      if (i === input.length) {\n        // If we have hit the end of the array like in the\n        // previous job, we can complete.\n        subscriber.complete();\n      } else {\n        // Otherwise let's next the value at the current index,\n        // then increment our index.\n        subscriber.next(input[i++]);\n        // If the last emission didn't cause us to close the subscriber\n        // (via take or some side effect), reschedule the job and we'll\n        // make another pass.\n        if (!subscriber.closed) {\n          this.schedule();\n        }\n      }\n    });\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\n\n/**\n * Used in {@link scheduled} to create an observable from an Iterable.\n * @param input The iterable to create an observable from\n * @param scheduler The scheduler to use\n */\nexport function scheduleIterable<T>(input: Iterable<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    let iterator: Iterator<T, T>;\n\n    // Schedule the initial creation of the iterator from\n    // the iterable. This is so the code in the iterable is\n    // not called until the scheduled job fires.\n    executeSchedule(subscriber, scheduler, () => {\n      // Create the iterator.\n      iterator = (input as any)[Symbol_iterator]();\n\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          let value: T;\n          let done: boolean | undefined;\n          try {\n            // Pull the value out of the iterator\n            ({ value, done } = iterator.next());\n          } catch (err) {\n            // We got an error while pulling from the iterator\n            subscriber.error(err);\n            return;\n          }\n\n          if (done) {\n            // If it is \"done\" we just complete. This mimics the\n            // behavior of JavaScript's `for..of` consumption of\n            // iterables, which will not emit the value from an iterator\n            // result of `{ done: true: value: 'here' }`.\n            subscriber.complete();\n          } else {\n            // The iterable is not done, emit the value.\n            subscriber.next(value);\n          }\n        },\n        0,\n        true\n      );\n    });\n\n    // During finalization, if we see this iterator has a `return` method,\n    // then we know it is a Generator, and not just an Iterator. So we call\n    // the `return()` function. This will ensure that any `finally { }` blocks\n    // inside of the generator we can hit will be hit properly.\n    return () => isFunction(iterator?.return) && iterator.return();\n  });\n}\n", "import { SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\n\nexport function scheduleAsyncIterable<T>(input: AsyncIterable<T>, scheduler: SchedulerLike) {\n  if (!input) {\n    throw new Error('Iterable cannot be null');\n  }\n  return new Observable<T>((subscriber) => {\n    executeSchedule(subscriber, scheduler, () => {\n      const iterator = input[Symbol.asyncIterator]();\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          iterator.next().then((result) => {\n            if (result.done) {\n              // This will remove the subscriptions from\n              // the parent subscription.\n              subscriber.complete();\n            } else {\n              subscriber.next(result.value);\n            }\n          });\n        },\n        0,\n        true\n      );\n    });\n  });\n}\n", "import { SchedulerLike, ReadableStreamLike } from '../types';\nimport { Observable } from '../Observable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\n\nexport function scheduleReadableStreamLike<T>(input: ReadableStreamLike<T>, scheduler: SchedulerLike): Observable<T> {\n  return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n", "import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\n\n/**\n * Converts from a common {@link ObservableInput} type to an observable where subscription and emissions\n * are scheduled on the provided scheduler.\n *\n * @see {@link from}\n * @see {@link of}\n *\n * @param input The observable, array, promise, iterable, etc you would like to schedule\n * @param scheduler The scheduler to use to schedule the subscription and emissions from\n * the returned observable.\n */\nexport function scheduled<T>(input: ObservableInput<T>, scheduler: SchedulerLike): Observable<T> {\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return scheduleObservable(input, scheduler);\n    }\n    if (isArrayLike(input)) {\n      return scheduleArray(input, scheduler);\n    }\n    if (isPromise(input)) {\n      return schedulePromise(input, scheduler);\n    }\n    if (isAsyncIterable(input)) {\n      return scheduleAsyncIterable(input, scheduler);\n    }\n    if (isIterable(input)) {\n      return scheduleIterable(input, scheduler);\n    }\n    if (isReadableStreamLike(input)) {\n      return scheduleReadableStreamLike(input, scheduler);\n    }\n  }\n  throw createInvalidObservableTypeError(input);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf } from '../types';\nimport { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\n\nexport function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function from<O extends ObservableInput<any>>(input: O, scheduler: SchedulerLike | undefined): Observable<ObservedValueOf<O>>;\n\n/**\n * Creates an Observable from an Array, an array-like object, a Promise, an iterable object, or an Observable-like object.\n *\n * <span class=\"informal\">Converts almost anything to an Observable.</span>\n *\n * ![](from.png)\n *\n * `from` converts various other objects and data types into Observables. It also converts a Promise, an array-like, or an\n * <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable\" target=\"_blank\">iterable</a>\n * object into an Observable that emits the items in that promise, array, or iterable. A String, in this context, is treated\n * as an array of characters. Observable-like objects (contains a function named with the ES2015 Symbol for Observable) can also be\n * converted through this operator.\n *\n * ## Examples\n *\n * Converts an array to an Observable\n *\n * ```ts\n * import { from } from 'rxjs';\n *\n * const array = [10, 20, 30];\n * const result = from(array);\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 10\n * // 20\n * // 30\n * ```\n *\n * Convert an infinite iterable (from a generator) to an Observable\n *\n * ```ts\n * import { from, take } from 'rxjs';\n *\n * function* generateDoubles(seed) {\n *    let i = seed;\n *    while (true) {\n *      yield i;\n *      i = 2 * i; // double it\n *    }\n * }\n *\n * const iterator = generateDoubles(3);\n * const result = from(iterator).pipe(take(10));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 3\n * // 6\n * // 12\n * // 24\n * // 48\n * // 96\n * // 192\n * // 384\n * // 768\n * // 1536\n * ```\n *\n * With `asyncScheduler`\n *\n * ```ts\n * import { from, asyncScheduler } from 'rxjs';\n *\n * console.log('start');\n *\n * const array = [10, 20, 30];\n * const result = from(array, asyncScheduler);\n *\n * result.subscribe(x => console.log(x));\n *\n * console.log('end');\n *\n * // Logs:\n * // 'start'\n * // 'end'\n * // 10\n * // 20\n * // 30\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link fromEventPattern}\n *\n * @param {ObservableInput<T>} A subscription object, a Promise, an Observable-like,\n * an Array, an iterable, or an array-like object to be converted.\n * @param {SchedulerLike} An optional {@link SchedulerLike} on which to schedule the emission of values.\n * @return {Observable<T>}\n */\nexport function from<T>(input: ObservableInput<T>, scheduler?: SchedulerLike): Observable<T> {\n  return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n", "import { SchedulerLike, ValueFromArray } from '../types';\nimport { Observable } from '../Observable';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function of(value: null): Observable<null>;\nexport function of(value: undefined): Observable<undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of(scheduler: SchedulerLike): Observable<never>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of<A extends readonly unknown[]>(...valuesAndScheduler: [...A, SchedulerLike]): Observable<ValueFromArray<A>>;\n\nexport function of(): Observable<never>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function of<T>(): Observable<T>;\nexport function of<T>(value: T): Observable<T>;\nexport function of<A extends readonly unknown[]>(...values: A): Observable<ValueFromArray<A>>;\n\n/**\n * Converts the arguments to an observable sequence.\n *\n * <span class=\"informal\">Each argument becomes a `next` notification.</span>\n *\n * ![](of.png)\n *\n * Unlike {@link from}, it does not do any flattening and emits each argument in whole\n * as a separate `next` notification.\n *\n * ## Examples\n *\n * Emit the values `10, 20, 30`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of(10, 20, 30)\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: 10\n * // next: 20\n * // next: 30\n * // the end\n * ```\n *\n * Emit the array `[1, 2, 3]`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of([1, 2, 3])\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: [1, 2, 3]\n * // the end\n * ```\n *\n * @see {@link from}\n * @see {@link range}\n *\n * @param {...T} values A comma separated list of arguments you want to be emitted\n * @return {Observable} An Observable that emits the arguments\n * described above and then completes.\n */\nexport function of<T>(...args: Array<T | SchedulerLike>): Observable<T> {\n  const scheduler = popScheduler(args);\n  return from(args as T[], scheduler);\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { SchedulerLike } from '../types';\nimport { isFunction } from '../util/isFunction';\n\n/**\n * Creates an observable that will create an error instance and push it to the consumer as an error\n * immediately upon subscription.\n *\n * <span class=\"informal\">Just errors and does nothing else</span>\n *\n * ![](throw.png)\n *\n * This creation function is useful for creating an observable that will create an error and error every\n * time it is subscribed to. Generally, inside of most operators when you might want to return an errored\n * observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap},\n * {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick\n * that up and notify the consumer of the error.\n *\n * ## Example\n *\n * Create a simple observable that will create a new error with a timestamp and log it\n * and the message every time you subscribe to it\n *\n * ```ts\n * import { throwError } from 'rxjs';\n *\n * let errorCount = 0;\n *\n * const errorWithTimestamp$ = throwError(() => {\n *   const error: any = new Error(`This is error number ${ ++errorCount }`);\n *   error.timestamp = Date.now();\n *   return error;\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * // Logs the timestamp and a new error message for each subscription\n * ```\n *\n * ### Unnecessary usage\n *\n * Using `throwError` inside of an operator or creation function\n * with a callback, is usually not necessary\n *\n * ```ts\n * import { of, concatMap, timer, throwError } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // This is probably overkill.\n *       return throwError(() => new Error(`Invalid time ${ ms }`));\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * You can just throw the error instead\n *\n * ```ts\n * import { of, concatMap, timer } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // Cleaner and easier to read for most folks.\n *       throw new Error(`Invalid time ${ ms }`);\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * @param errorFactory A factory function that will create the error instance that is pushed.\n */\nexport function throwError(errorFactory: () => any): Observable<never>;\n\n/**\n * Returns an observable that will error with the specified error immediately upon subscription.\n *\n * @param error The error instance to emit\n * @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is\n * because it will create the error at the moment it should be created and capture a more appropriate stack trace. If\n * for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`.\n */\nexport function throwError(error: any): Observable<never>;\n\n/**\n * Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription.\n *\n * @param errorOrErrorFactory An error instance or error factory\n * @param scheduler A scheduler to use to schedule the error notification\n * @deprecated The `scheduler` parameter will be removed in v8.\n * Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`.\n * Details: https://rxjs.dev/deprecations/scheduler-argument\n */\nexport function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable<never>;\n\nexport function throwError(errorOrErrorFactory: any, scheduler?: SchedulerLike): Observable<never> {\n  const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n  const init = (subscriber: Subscriber<never>) => subscriber.error(errorFactory());\n  return new Observable(scheduler ? (subscriber) => scheduler.schedule(init as any, 0, subscriber) : init);\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface EmptyError extends Error {}\n\nexport interface EmptyErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): EmptyError;\n}\n\n/**\n * An error thrown when an Observable or a sequence was queried but has no\n * elements.\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link single}\n * @see {@link firstValueFrom}\n * @see {@link lastValueFrom}\n *\n * @class EmptyError\n */\nexport const EmptyError: EmptyErrorCtor = createErrorClass((_super) => function EmptyErrorImpl(this: any) {\n  _super(this);\n  this.name = 'EmptyError';\n  this.message = 'no elements in sequence';\n});\n", "/**\n * Checks to see if a value is not only a `Date` object,\n * but a *valid* `Date` object that can be converted to a\n * number. For example, `new Date('blah')` is indeed an\n * `instanceof Date`, however it cannot be converted to a\n * number.\n */\nexport function isValidDate(value: any): value is Date {\n  return value instanceof Date && !isNaN(value as any);\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function map<T, R>(project: (value: T, index: number) => R): OperatorFunction<T, R>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function map<T, R, A>(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction<T, R>;\n\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * ![](map.png)\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * ## Example\n *\n * Map every click to the `clientX` position of that click\n *\n * ```ts\n * import { fromEvent, map } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const positions = clicks.pipe(map(ev => ev.clientX));\n *\n * positions.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return A function that returns an Observable that emits the values from the\n * source Observable transformed by the given `project` function.\n */\nexport function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R> {\n  return operate((source, subscriber) => {\n    // The index of the value from the source. Used with projection.\n    let index = 0;\n    // Subscribe to the source, all errors and completions are sent along\n    // to the consumer.\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value: T) => {\n        // Call the projection function with the appropriate this context,\n        // and send the resulting value to the consumer.\n        subscriber.next(project.call(thisArg, value, index++));\n      })\n    );\n  });\n}\n", "import { OperatorFunction } from \"../types\";\nimport { map } from \"../operators/map\";\n\nconst { isArray } = Array;\n\nfunction callOrApply<T, R>(fn: ((...values: T[]) => R), args: T|T[]): R {\n    return isArray(args) ? fn(...args) : fn(args);\n}\n\n/**\n * Used in several -- mostly deprecated -- situations where we need to \n * apply a list of arguments or a single argument to a result selector.\n */\nexport function mapOneOrManyArgs<T, R>(fn: ((...values: T[]) => R)): OperatorFunction<T|T[], R> {\n    return map(args => callOrApply(fn, args))\n}", "const { isArray } = Array;\nconst { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object;\n\n/**\n * Used in functions where either a list of arguments, a single array of arguments, or a\n * dictionary of arguments can be returned. Returns an object with an `args` property with\n * the arguments in an array, if it is a dictionary, it will also return the `keys` in another\n * property.\n */\nexport function argsArgArrayOrObject<T, O extends Record<string, T>>(args: T[] | [O] | [T[]]): { args: T[]; keys: string[] | null } {\n  if (args.length === 1) {\n    const first = args[0];\n    if (isArray(first)) {\n      return { args: first, keys: null };\n    }\n    if (isPOJO(first)) {\n      const keys = getKeys(first);\n      return {\n        args: keys.map((key) => first[key]),\n        keys,\n      };\n    }\n  }\n\n  return { args: args as T[], keys: null };\n}\n\nfunction isPOJO(obj: any): obj is object {\n  return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n", "export function createObject(keys: string[], values: any[]) {\n  return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { Subscriber } from '../Subscriber';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { Subscription } from '../Subscription';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { AnyCatcher } from '../AnyCatcher';\nimport { executeSchedule } from '../util/executeSchedule';\n\n// combineLatest(any)\n// We put this first because we need to catch cases where the user has supplied\n// _exactly `any`_ as the argument. Since `any` literally matches _anything_,\n// we don't want it to randomly hit one of the other type signatures below,\n// as we have no idea at build-time what type we should be returning when given an any.\n\n/**\n * You have passed `any` here, we can't figure out if it is\n * an array or an object, so you're getting `unknown`. Use better types.\n * @param arg Something typed as `any`\n */\nexport function combineLatest<T extends AnyCatcher>(arg: T): Observable<unknown>;\n\n// combineLatest([a, b, c])\nexport function combineLatest(sources: []): Observable<never>;\nexport function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R,\n  scheduler: SchedulerLike\n): Observable<R>;\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  sources: readonly [...ObservableInputTuple<A>],\n  scheduler: SchedulerLike\n): Observable<A>;\n\n// combineLatest(a, b, c)\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple<A>, (...values: A) => R, SchedulerLike]\n): Observable<R>;\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): Observable<A>;\n\n// combineLatest({a, b, c})\nexport function combineLatest(sourcesObject: { [K in any]: never }): Observable<never>;\nexport function combineLatest<T extends Record<string, ObservableInput<any>>>(\n  sourcesObject: T\n): Observable<{ [K in keyof T]: ObservedValueOf<T[K]> }>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * ![](combineLatest.png)\n *\n * `combineLatest` combines the values from all the Observables passed in the\n * observables array. This is done by subscribing to each Observable in order and,\n * whenever any Observable emits, collecting an array of the most recent\n * values from each Observable. So if you pass `n` Observables to this operator,\n * the returned Observable will always emit an array of `n` values, in an order\n * corresponding to the order of the passed Observables (the value from the first Observable\n * will be at index 0 of the array and so on).\n *\n * Static version of `combineLatest` accepts an array of Observables. Note that an array of\n * Observables is a good choice, if you don't know beforehand how many Observables\n * you will combine. Passing an empty array will result in an Observable that\n * completes immediately.\n *\n * To ensure the output array always has the same length, `combineLatest` will\n * actually wait for all input Observables to emit at least once,\n * before it starts emitting results. This means if some Observable emits\n * values before other Observables started emitting, all these values but the last\n * will be lost. On the other hand, if some Observable does not emit a value but\n * completes, resulting Observable will complete at the same moment without\n * emitting anything, since it will now be impossible to include a value from the\n * completed Observable in the resulting array. Also, if some input Observable does\n * not emit any value and never completes, `combineLatest` will also never emit\n * and never complete, since, again, it will wait for all streams to emit some\n * value.\n *\n * If at least one Observable was passed to `combineLatest` and all passed Observables\n * emitted something, the resulting Observable will complete when all combined\n * streams complete. So even if some Observable completes, the result of\n * `combineLatest` will still emit values when other Observables do. In case\n * of a completed Observable, its value from now on will always be the last\n * emitted value. On the other hand, if any Observable errors, `combineLatest`\n * will error immediately as well, and all other Observables will be unsubscribed.\n *\n * ## Examples\n *\n * Combine two timer Observables\n *\n * ```ts\n * import { timer, combineLatest } from 'rxjs';\n *\n * const firstTimer = timer(0, 1000); // emit 0, 1, 2... after every second, starting from now\n * const secondTimer = timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now\n * const combinedTimers = combineLatest([firstTimer, secondTimer]);\n * combinedTimers.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0] after 0.5s\n * // [1, 0] after 1s\n * // [1, 1] after 1.5s\n * // [2, 1] after 2s\n * ```\n *\n * Combine a dictionary of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = {\n *   a: of(1).pipe(delay(1000), startWith(0)),\n *   b: of(5).pipe(delay(5000), startWith(0)),\n *   c: of(10).pipe(delay(10000), startWith(0))\n * };\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // { a: 0, b: 0, c: 0 } immediately\n * // { a: 1, b: 0, c: 0 } after 1s\n * // { a: 1, b: 5, c: 0 } after 5s\n * // { a: 1, b: 5, c: 10 } after 10s\n * ```\n *\n * Combine an array of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = [1, 5, 10].map(\n *   n => of(n).pipe(\n *     delay(n * 1000), // emit 0 and then emit n after n seconds\n *     startWith(0)\n *   )\n * );\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0, 0] immediately\n * // [1, 0, 0] after 1s\n * // [1, 5, 0] after 5s\n * // [1, 5, 10] after 10s\n * ```\n *\n * Use map operator to dynamically calculate the Body-Mass Index\n *\n * ```ts\n * import { of, combineLatest, map } from 'rxjs';\n *\n * const weight = of(70, 72, 76, 79, 75);\n * const height = of(1.76, 1.77, 1.78);\n * const bmi = combineLatest([weight, height]).pipe(\n *   map(([w, h]) => w / (h * h)),\n * );\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {ObservableInput} [observables] An array of input Observables to combine with each other.\n * An array of Observables must be given as the first argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for subscribing to\n * each input Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n */\nexport function combineLatest<O extends ObservableInput<any>, R>(...args: any[]): Observable<R> | Observable<ObservedValueOf<O>[]> {\n  const scheduler = popScheduler(args);\n  const resultSelector = popResultSelector(args);\n\n  const { args: observables, keys } = argsArgArrayOrObject(args);\n\n  if (observables.length === 0) {\n    // If no observables are passed, or someone has passed an empty array\n    // of observables, or even an empty object POJO, we need to just\n    // complete (EMPTY), but we have to honor the scheduler provided if any.\n    return from([], scheduler as any);\n  }\n\n  const result = new Observable<ObservedValueOf<O>[]>(\n    combineLatestInit(\n      observables as ObservableInput<ObservedValueOf<O>>[],\n      scheduler,\n      keys\n        ? // A handler for scrubbing the array of args into a dictionary.\n          (values) => createObject(keys, values)\n        : // A passthrough to just return the array\n          identity\n    )\n  );\n\n  return resultSelector ? (result.pipe(mapOneOrManyArgs(resultSelector)) as Observable<R>) : result;\n}\n\nexport function combineLatestInit(\n  observables: ObservableInput<any>[],\n  scheduler?: SchedulerLike,\n  valueTransform: (values: any[]) => any = identity\n) {\n  return (subscriber: Subscriber<any>) => {\n    // The outer subscription. We're capturing this in a function\n    // because we may have to schedule it.\n    maybeSchedule(\n      scheduler,\n      () => {\n        const { length } = observables;\n        // A store for the values each observable has emitted so far. We match observable to value on index.\n        const values = new Array(length);\n        // The number of currently active subscriptions, as they complete, we decrement this number to see if\n        // we are all done combining values, so we can complete the result.\n        let active = length;\n        // The number of inner sources that still haven't emitted the first value\n        // We need to track this because all sources need to emit one value in order\n        // to start emitting values.\n        let remainingFirstValues = length;\n        // The loop to kick off subscription. We're keying everything on index `i` to relate the observables passed\n        // in to the slot in the output array or the key in the array of keys in the output dictionary.\n        for (let i = 0; i < length; i++) {\n          maybeSchedule(\n            scheduler,\n            () => {\n              const source = from(observables[i], scheduler as any);\n              let hasFirstValue = false;\n              source.subscribe(\n                createOperatorSubscriber(\n                  subscriber,\n                  (value) => {\n                    // When we get a value, record it in our set of values.\n                    values[i] = value;\n                    if (!hasFirstValue) {\n                      // If this is our first value, record that.\n                      hasFirstValue = true;\n                      remainingFirstValues--;\n                    }\n                    if (!remainingFirstValues) {\n                      // We're not waiting for any more\n                      // first values, so we can emit!\n                      subscriber.next(valueTransform(values.slice()));\n                    }\n                  },\n                  () => {\n                    if (!--active) {\n                      // We only complete the result if we have no more active\n                      // inner observables.\n                      subscriber.complete();\n                    }\n                  }\n                )\n              );\n            },\n            subscriber\n          );\n        }\n      },\n      subscriber\n    );\n  };\n}\n\n/**\n * A small utility to handle the couple of locations where we want to schedule if a scheduler was provided,\n * but we don't if there was no scheduler.\n */\nfunction maybeSchedule(scheduler: SchedulerLike | undefined, execute: () => void, subscription: Subscription) {\n  if (scheduler) {\n    executeSchedule(subscription, scheduler, execute);\n  } else {\n    execute();\n  }\n}\n", "import { Observable } from '../Observable';\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subscriber } from '../Subscriber';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A process embodying the general \"merge\" strategy. This is used in\n * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical.\n * @param source The original source observable\n * @param subscriber The consumer subscriber\n * @param project The projection function to get our inner sources\n * @param concurrent The number of concurrent inner subscriptions\n * @param onBeforeNext Additional logic to apply before nexting to our consumer\n * @param expand If `true` this will perform an \"expand\" strategy, which differs only\n * in that it recurses, and the inner subscription must be schedule-able.\n * @param innerSubScheduler A scheduler to use to schedule inner subscriptions,\n * this is to support the expand strategy, mostly, and should be deprecated\n */\nexport function mergeInternals<T, R>(\n  source: Observable<T>,\n  subscriber: Subscriber<R>,\n  project: (value: T, index: number) => ObservableInput<R>,\n  concurrent: number,\n  onBeforeNext?: (innerValue: R) => void,\n  expand?: boolean,\n  innerSubScheduler?: SchedulerLike,\n  additionalFinalizer?: () => void\n) {\n  // Buffered values, in the event of going over our concurrency limit\n  const buffer: T[] = [];\n  // The number of active inner subscriptions.\n  let active = 0;\n  // An index to pass to our accumulator function\n  let index = 0;\n  // Whether or not the outer source has completed.\n  let isComplete = false;\n\n  /**\n   * Checks to see if we can complete our result or not.\n   */\n  const checkComplete = () => {\n    // If the outer has completed, and nothing is left in the buffer,\n    // and we don't have any active inner subscriptions, then we can\n    // Emit the state and complete.\n    if (isComplete && !buffer.length && !active) {\n      subscriber.complete();\n    }\n  };\n\n  // If we're under our concurrency limit, just start the inner subscription, otherwise buffer and wait.\n  const outerNext = (value: T) => (active < concurrent ? doInnerSub(value) : buffer.push(value));\n\n  const doInnerSub = (value: T) => {\n    // If we're expanding, we need to emit the outer values and the inner values\n    // as the inners will \"become outers\" in a way as they are recursively fed\n    // back to the projection mechanism.\n    expand && subscriber.next(value as any);\n\n    // Increment the number of active subscriptions so we can track it\n    // against our concurrency limit later.\n    active++;\n\n    // A flag used to show that the inner observable completed.\n    // This is checked during finalization to see if we should\n    // move to the next item in the buffer, if there is on.\n    let innerComplete = false;\n\n    // Start our inner subscription.\n    innerFrom(project(value, index++)).subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (innerValue) => {\n          // `mergeScan` has additional handling here. For example\n          // taking the inner value and updating state.\n          onBeforeNext?.(innerValue);\n\n          if (expand) {\n            // If we're expanding, then just recurse back to our outer\n            // handler. It will emit the value first thing.\n            outerNext(innerValue as any);\n          } else {\n            // Otherwise, emit the inner value.\n            subscriber.next(innerValue);\n          }\n        },\n        () => {\n          // Flag that we have completed, so we know to check the buffer\n          // during finalization.\n          innerComplete = true;\n        },\n        // Errors are passed to the destination.\n        undefined,\n        () => {\n          // During finalization, if the inner completed (it wasn't errored or\n          // cancelled), then we want to try the next item in the buffer if\n          // there is one.\n          if (innerComplete) {\n            // We have to wrap this in a try/catch because it happens during\n            // finalization, possibly asynchronously, and we want to pass\n            // any errors that happen (like in a projection function) to\n            // the outer Subscriber.\n            try {\n              // INNER SOURCE COMPLETE\n              // Decrement the active count to ensure that the next time\n              // we try to call `doInnerSub`, the number is accurate.\n              active--;\n              // If we have more values in the buffer, try to process those\n              // Note that this call will increment `active` ahead of the\n              // next conditional, if there were any more inner subscriptions\n              // to start.\n              while (buffer.length && active < concurrent) {\n                const bufferedValue = buffer.shift()!;\n                // Particularly for `expand`, we need to check to see if a scheduler was provided\n                // for when we want to start our inner subscription. Otherwise, we just start\n                // are next inner subscription.\n                if (innerSubScheduler) {\n                  executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n                } else {\n                  doInnerSub(bufferedValue);\n                }\n              }\n              // Check to see if we can complete, and complete if so.\n              checkComplete();\n            } catch (err) {\n              subscriber.error(err);\n            }\n          }\n        }\n      )\n    );\n  };\n\n  // Subscribe to our source observable.\n  source.subscribe(\n    createOperatorSubscriber(subscriber, outerNext, () => {\n      // Outer completed, make a note of it, and check to see if we can complete everything.\n      isComplete = true;\n      checkComplete();\n    })\n  );\n\n  // Additional finalization (for when the destination is torn down).\n  // Other finalization is added implicitly via subscription above.\n  return () => {\n    additionalFinalizer?.();\n  };\n}\n", "import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\n\n/* tslint:disable:max-line-length */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R,\n  concurrent?: number\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.</span>\n *\n * ![](mergeMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * ## Example\n *\n * Map and flatten each letter to an Observable ticking every 1 second\n *\n * ```ts\n * import { of, mergeMap, interval, map } from 'rxjs';\n *\n * const letters = of('a', 'b', 'c');\n * const result = letters.pipe(\n *   mergeMap(x => interval(1000).pipe(map(i => x + i)))\n * );\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a, b, c every second with respective ascending integers\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and merging\n * the results of the Observables obtained from this transformation.\n */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R) | number,\n  concurrent: number = Infinity\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  if (isFunction(resultSelector)) {\n    // DEPRECATED PATH\n    return mergeMap((a, i) => map((b: any, ii: number) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n  } else if (typeof resultSelector === 'number') {\n    concurrent = resultSelector;\n  }\n\n  return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n", "import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable which\n * concurrently delivers all values that are emitted on the inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\n *\n * ![](mergeAll.png)\n *\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\n * a higher-order Observable. Each time it observes one of these emitted inner\n * Observables, it subscribes to that and delivers all the values from the\n * inner Observable on the output Observable. The output Observable only\n * completes once all inner Observables have completed. Any error delivered by\n * a inner Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Spawn a new interval Observable for each click event, and blend their outputs as one Observable\n *\n * ```ts\n * import { fromEvent, map, interval, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(map(() => interval(1000)));\n * const firstOrder = higherOrder.pipe(mergeAll());\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers\n *\n * ```ts\n * import { fromEvent, map, interval, take, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(10)))\n * );\n * const firstOrder = higherOrder.pipe(mergeAll(2));\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concatAll}\n * @see {@link exhaustAll}\n * @see {@link merge}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @param {number} [concurrent=Infinity] Maximum number of inner\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits values coming from\n * all the inner Observables emitted by the source Observable.\n */\nexport function mergeAll<O extends ObservableInput<any>>(concurrent: number = Infinity): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeMap(identity, concurrent);\n}\n", "import { mergeAll } from './mergeAll';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * concatenating the inner Observables in order.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\n * inner Observable after the other.</span>\n *\n * ![](concatAll.svg)\n *\n * Joins every Observable emitted by the source (a higher-order Observable), in\n * a serial fashion. It subscribes to each inner Observable only after the\n * previous inner Observable has completed, and merges all of their values into\n * the returned observable.\n *\n * __Warning:__ If the source Observable emits Observables quickly and\n * endlessly, and the inner Observables it emits generally complete slower than\n * the source emits, you can run into memory issues as the incoming Observables\n * collect in an unbounded buffer.\n *\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\n * to `1`.\n *\n * ## Example\n *\n * For each click event, tick every second from 0 to 3, with no concurrency\n *\n * ```ts\n * import { fromEvent, map, interval, take, concatAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(4)))\n * );\n * const firstOrder = higherOrder.pipe(concatAll());\n * firstOrder.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concat}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link exhaustAll}\n * @see {@link mergeAll}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @return A function that returns an Observable emitting values from all the\n * inner Observables concatenated.\n */\nexport function concatAll<O extends ObservableInput<any>>(): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeAll(1);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple, SchedulerLike } from '../types';\nimport { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function concat<T extends readonly unknown[]>(...inputs: [...ObservableInputTuple<T>]): Observable<T[number]>;\nexport function concat<T extends readonly unknown[]>(\n  ...inputsAndScheduler: [...ObservableInputTuple<T>, SchedulerLike]\n): Observable<T[number]>;\n\n/**\n * Creates an output Observable which sequentially emits all values from the first given\n * Observable and then moves on to the next.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * ![](concat.png)\n *\n * `concat` joins multiple Observables together, by subscribing to them one at a time and\n * merging their results into the output Observable. You can pass either an array of\n * Observables, or put them directly as arguments. Passing an empty array will result\n * in Observable that completes immediately.\n *\n * `concat` will subscribe to first input Observable and emit all its values, without\n * changing or affecting them in any way. When that Observable completes, it will\n * subscribe to then next Observable passed and, again, emit its values. This will be\n * repeated, until the operator runs out of Observables. When last input Observable completes,\n * `concat` will complete as well. At any given moment only one Observable passed to operator\n * emits values. If you would like to emit values from passed Observables concurrently, check out\n * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact,\n * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`.\n *\n * Note that if some input Observable never completes, `concat` will also never complete\n * and Observables following the one that did not complete will never be subscribed. On the other\n * hand, if some Observable simply completes immediately after it is subscribed, it will be\n * invisible for `concat`, which will just move on to the next Observable.\n *\n * If any Observable in chain errors, instead of passing control to the next Observable,\n * `concat` will error immediately as well. Observables that would be subscribed after\n * the one that emitted error, never will.\n *\n * If you pass to `concat` the same Observable many times, its stream of values\n * will be \"replayed\" on every subscription, which means you can repeat given Observable\n * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious,\n * you can always use {@link repeat}.\n *\n * ## Examples\n *\n * Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10\n *\n * ```ts\n * import { interval, take, range, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(4));\n * const sequence = range(1, 10);\n * const result = concat(timer, sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n * ```\n *\n * Concatenate 3 Observables\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const result = concat(timer1, timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n * ```\n *\n * Concatenate the same Observable to repeat it\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(2));\n *\n * concat(timer, timer) // concatenating the same Observable!\n *   .subscribe({\n *     next: value => console.log(value),\n *     complete: () => console.log('...and it is done!')\n *   });\n *\n * // Logs:\n * // 0 after 1s\n * // 1 after 2s\n * // 0 after 3s\n * // 1 after 4s\n * // '...and it is done!' also after 4s\n * ```\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link startWith}\n * @see {@link endWith}\n *\n * @param args Input Observables to concatenate.\n */\nexport function concat(...args: any[]): Observable<unknown> {\n  return concatAll()(from(args, popScheduler(args)));\n}\n", "import { Observable } from '../Observable';\nimport { ObservedValueOf, ObservableInput } from '../types';\nimport { innerFrom } from './innerFrom';\n\n/**\n * Creates an Observable that, on subscribe, calls an Observable factory to\n * make an Observable for each new Observer.\n *\n * <span class=\"informal\">Creates the Observable lazily, that is, only when it\n * is subscribed.\n * </span>\n *\n * ![](defer.png)\n *\n * `defer` allows you to create an Observable only when the Observer\n * subscribes. It waits until an Observer subscribes to it, calls the given\n * factory function to get an Observable -- where a factory function typically\n * generates a new Observable -- and subscribes the Observer to this Observable.\n * In case the factory function returns a falsy value, then EMPTY is used as\n * Observable instead. Last but not least, an exception during the factory\n * function call is transferred to the Observer by calling `error`.\n *\n * ## Example\n *\n * Subscribe to either an Observable of clicks or an Observable of interval, at random\n *\n * ```ts\n * import { defer, fromEvent, interval } from 'rxjs';\n *\n * const clicksOrInterval = defer(() => {\n *   return Math.random() > 0.5\n *     ? fromEvent(document, 'click')\n *     : interval(1000);\n * });\n * clicksOrInterval.subscribe(x => console.log(x));\n *\n * // Results in the following behavior:\n * // If the result of Math.random() is greater than 0.5 it will listen\n * // for clicks anywhere on the \"document\"; when document is clicked it\n * // will log a MouseEvent object to the console. If the result is less\n * // than 0.5 it will emit ascending numbers, one every second(1000ms).\n * ```\n *\n * @see {@link Observable}\n *\n * @param {function(): ObservableInput} observableFactory The Observable\n * factory function to invoke for each Observer that subscribes to the output\n * Observable. May also return a Promise, which will be converted on the fly\n * to an Observable.\n * @return {Observable} An Observable whose Observers' subscriptions trigger\n * an invocation of the given Observable factory function.\n */\nexport function defer<R extends ObservableInput<any>>(observableFactory: () => R): Observable<ObservedValueOf<R>> {\n  return new Observable<ObservedValueOf<R>>((subscriber) => {\n    innerFrom(observableFactory()).subscribe(subscriber);\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n// These constants are used to create handler registry functions using array mapping below.\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'] as const;\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'] as const;\nconst jqueryMethods = ['on', 'off'] as const;\n\nexport interface NodeStyleEventEmitter {\n  addListener(eventName: string | symbol, handler: NodeEventHandler): this;\n  removeListener(eventName: string | symbol, handler: NodeEventHandler): this;\n}\n\nexport type NodeEventHandler = (...args: any[]) => void;\n\n// For APIs that implement `addListener` and `removeListener` methods that may\n// not use the same arguments or return EventEmitter values\n// such as React Native\nexport interface NodeCompatibleEventEmitter {\n  addListener(eventName: string, handler: NodeEventHandler): void | {};\n  removeListener(eventName: string, handler: NodeEventHandler): void | {};\n}\n\n// Use handler types like those in @types/jquery. See:\n// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/847731ba1d7fa6db6b911c0e43aa0afe596e7723/types/jquery/misc.d.ts#L6395\nexport interface JQueryStyleEventEmitter<TContext, T> {\n  on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n  off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n}\n\nexport interface EventListenerObject<E> {\n  handleEvent(evt: E): void;\n}\n\nexport interface HasEventTargetAddRemove<E> {\n  addEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: boolean | AddEventListenerOptions\n  ): void;\n  removeEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: EventListenerOptions | boolean\n  ): void;\n}\n\nexport interface EventListenerOptions {\n  capture?: boolean;\n  passive?: boolean;\n  once?: boolean;\n}\n\nexport interface AddEventListenerOptions extends EventListenerOptions {\n  once?: boolean;\n  passive?: boolean;\n}\n\nexport function fromEvent<T>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  resultSelector: (event: T) => R\n): Observable<R>;\nexport function fromEvent<T>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions,\n  resultSelector: (event: T) => R\n): Observable<R>;\n\nexport function fromEvent(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string\n): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent<T>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string,\n  resultSelector: (value: T, ...args: any[]) => R\n): Observable<R>;\n\n/**\n * Creates an Observable that emits events of a specific type coming from the\n * given event target.\n *\n * <span class=\"informal\">Creates an Observable from DOM events, or Node.js\n * EventEmitter events or others.</span>\n *\n * ![](fromEvent.png)\n *\n * `fromEvent` accepts as a first argument event target, which is an object with methods\n * for registering event handler functions. As a second argument it takes string that indicates\n * type of event we want to listen for. `fromEvent` supports selected types of event targets,\n * which are described in detail below. If your event target does not match any of the ones listed,\n * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.\n * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event\n * handler functions have different names, but they all accept a string describing event type\n * and function itself, which will be called whenever said event happens.\n *\n * Every time resulting Observable is subscribed, event handler function will be registered\n * to event target on given event type. When that event fires, value\n * passed as a first argument to registered function will be emitted by output Observable.\n * When Observable is unsubscribed, function will be unregistered from event target.\n *\n * Note that if event target calls registered function with more than one argument, second\n * and following arguments will not appear in resulting stream. In order to get access to them,\n * you can pass to `fromEvent` optional project function, which will be called with all arguments\n * passed to event handler. Output Observable will then emit value returned by project function,\n * instead of the usual value.\n *\n * Remember that event targets listed below are checked via duck typing. It means that\n * no matter what kind of object you have and no matter what environment you work in,\n * you can safely use `fromEvent` on that object if it exposes described methods (provided\n * of course they behave as was described above). So for example if Node.js library exposes\n * event target which has the same method names as DOM EventTarget, `fromEvent` is still\n * a good choice.\n *\n * If the API you use is more callback then event handler oriented (subscribed\n * callback function fires only once and thus there is no need to manually\n * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}\n * instead.\n *\n * `fromEvent` supports following types of event targets:\n *\n * **DOM EventTarget**\n *\n * This is an object with `addEventListener` and `removeEventListener` methods.\n *\n * In the browser, `addEventListener` accepts - apart from event type string and event\n * handler function arguments - optional third parameter, which is either an object or boolean,\n * both used for additional configuration how and when passed function will be called. When\n * `fromEvent` is used with event target of that type, you can provide this values\n * as third parameter as well.\n *\n * **Node.js EventEmitter**\n *\n * An object with `addListener` and `removeListener` methods.\n *\n * **JQuery-style event target**\n *\n * An object with `on` and `off` methods\n *\n * **DOM NodeList**\n *\n * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.\n *\n * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes\n * it contains and install event handler function in every of them. When returned Observable\n * is unsubscribed, function will be removed from all Nodes.\n *\n * **DOM HtmlCollection**\n *\n * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is\n * installed and removed in each of elements.\n *\n *\n * ## Examples\n *\n * Emit clicks happening on the DOM document\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * clicks.subscribe(x => console.log(x));\n *\n * // Results in:\n * // MouseEvent object logged to console every time a click\n * // occurs on the document.\n * ```\n *\n * Use `addEventListener` with capture option\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * // note optional configuration parameter which will be passed to addEventListener\n * const clicksInDocument = fromEvent(document, 'click', { capture: true });\n * const clicksInDiv = fromEvent(div, 'click');\n *\n * clicksInDocument.subscribe(() => console.log('document'));\n * clicksInDiv.subscribe(() => console.log('div'));\n *\n * // By default events bubble UP in DOM tree, so normally\n * // when we would click on div in document\n * // \"div\" would be logged first and then \"document\".\n * // Since we specified optional `capture` option, document\n * // will catch event when it goes DOWN DOM tree, so console\n * // will log \"document\" and then \"div\".\n * ```\n *\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n * @see {@link fromEventPattern}\n *\n * @param {FromEventTarget<T>} target The DOM EventTarget, Node.js\n * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.\n * @param {string} eventName The event name of interest, being emitted by the\n * `target`.\n * @param {EventListenerOptions} [options] Options to pass through to addEventListener\n * @return {Observable<T>}\n */\nexport function fromEvent<T>(\n  target: any,\n  eventName: string,\n  options?: EventListenerOptions | ((...args: any[]) => T),\n  resultSelector?: (...args: any[]) => T\n): Observable<T> {\n  if (isFunction(options)) {\n    resultSelector = options;\n    options = undefined;\n  }\n  if (resultSelector) {\n    return fromEvent<T>(target, eventName, options as EventListenerOptions).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  // Figure out our add and remove methods. In order to do this,\n  // we are going to analyze the target in a preferred order, if\n  // the target matches a given signature, we take the two \"add\" and \"remove\"\n  // method names and apply them to a map to create opposite versions of the\n  // same function. This is because they all operate in duplicate pairs,\n  // `addListener(name, handler)`, `removeListener(name, handler)`, for example.\n  // The call only differs by method name, as to whether or not you're adding or removing.\n  const [add, remove] =\n    // If it is an EventTarget, we need to use a slightly different method than the other two patterns.\n    isEventTarget(target)\n      ? eventTargetMethods.map((methodName) => (handler: any) => target[methodName](eventName, handler, options as EventListenerOptions))\n      : // In all other cases, the call pattern is identical with the exception of the method names.\n      isNodeStyleEventEmitter(target)\n      ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n      : isJQueryStyleEventEmitter(target)\n      ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n      : [];\n\n  // If add is falsy, it's because we didn't match a pattern above.\n  // Check to see if it is an ArrayLike, because if it is, we want to\n  // try to apply fromEvent to all of it's items. We do this check last,\n  // because there are may be some types that are both ArrayLike *and* implement\n  // event registry points, and we'd rather delegate to that when possible.\n  if (!add) {\n    if (isArrayLike(target)) {\n      return mergeMap((subTarget: any) => fromEvent(subTarget, eventName, options as EventListenerOptions))(\n        innerFrom(target)\n      ) as Observable<T>;\n    }\n  }\n\n  // If add is falsy and we made it here, it's because we didn't\n  // match any valid target objects above.\n  if (!add) {\n    throw new TypeError('Invalid event target');\n  }\n\n  return new Observable<T>((subscriber) => {\n    // The handler we are going to register. Forwards the event object, by itself, or\n    // an array of arguments to the event handler, if there is more than one argument,\n    // to the consumer.\n    const handler = (...args: any[]) => subscriber.next(1 < args.length ? args : args[0]);\n    // Do the work of adding the handler to the target.\n    add(handler);\n    // When we finalize, we want to remove the handler and free up memory.\n    return () => remove!(handler);\n  });\n}\n\n/**\n * Used to create `add` and `remove` functions to register and unregister event handlers\n * from a target in the most common handler pattern, where there are only two arguments.\n * (e.g.  `on(name, fn)`, `off(name, fn)`, `addListener(name, fn)`, or `removeListener(name, fn)`)\n * @param target The target we're calling methods on\n * @param eventName The event name for the event we're creating register or unregister functions for\n */\nfunction toCommonHandlerRegistry(target: any, eventName: string) {\n  return (methodName: string) => (handler: any) => target[methodName](eventName, handler);\n}\n\n/**\n * Checks to see if the target implements the required node-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isNodeStyleEventEmitter(target: any): target is NodeStyleEventEmitter {\n  return isFunction(target.addListener) && isFunction(target.removeListener);\n}\n\n/**\n * Checks to see if the target implements the required jQuery-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isJQueryStyleEventEmitter(target: any): target is JQueryStyleEventEmitter<any, any> {\n  return isFunction(target.on) && isFunction(target.off);\n}\n\n/**\n * Checks to see if the target implements the required EventTarget methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isEventTarget(target: any): target is HasEventTargetAddRemove<any> {\n  return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n", "import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nimport { NodeEventHandler } from './fromEvent';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n/* tslint:disable:max-line-length */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void\n): Observable<T>;\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Creates an Observable from an arbitrary API for registering event handlers.\n *\n * <span class=\"informal\">When that method for adding event handler was something {@link fromEvent}\n * was not prepared for.</span>\n *\n * ![](fromEventPattern.png)\n *\n * `fromEventPattern` allows you to convert into an Observable any API that supports registering handler functions\n * for events. It is similar to {@link fromEvent}, but far\n * more flexible. In fact, all use cases of {@link fromEvent} could be easily handled by\n * `fromEventPattern` (although in slightly more verbose way).\n *\n * This operator accepts as a first argument an `addHandler` function, which will be injected with\n * handler parameter. That handler is actually an event handler function that you now can pass\n * to API expecting it. `addHandler` will be called whenever Observable\n * returned by the operator is subscribed, so registering handler in API will not\n * necessarily happen when `fromEventPattern` is called.\n *\n * After registration, every time an event that we listen to happens,\n * Observable returned by `fromEventPattern` will emit value that event handler\n * function was called with. Note that if event handler was called with more\n * than one argument, second and following arguments will not appear in the Observable.\n *\n * If API you are using allows to unregister event handlers as well, you can pass to `fromEventPattern`\n * another function - `removeHandler` - as a second parameter. It will be injected\n * with the same handler function as before, which now you can use to unregister\n * it from the API. `removeHandler` will be called when consumer of resulting Observable\n * unsubscribes from it.\n *\n * In some APIs unregistering is actually handled differently. Method registering an event handler\n * returns some kind of token, which is later used to identify which function should\n * be unregistered or it itself has method that unregisters event handler.\n * If that is the case with your API, make sure token returned\n * by registering method is returned by `addHandler`. Then it will be passed\n * as a second argument to `removeHandler`, where you will be able to use it.\n *\n * If you need access to all event handler parameters (not only the first one),\n * or you need to transform them in any way, you can call `fromEventPattern` with optional\n * third parameter - project function which will accept all arguments passed to\n * event handler when it is called. Whatever is returned from project function will appear on\n * resulting stream instead of usual event handlers first argument. This means\n * that default project can be thought of as function that takes its first parameter\n * and ignores the rest.\n *\n * ## Examples\n *\n * Emits clicks happening on the DOM document\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * function addClickHandler(handler) {\n *   document.addEventListener('click', handler);\n * }\n *\n * function removeClickHandler(handler) {\n *   document.removeEventListener('click', handler);\n * }\n *\n * const clicks = fromEventPattern(\n *   addClickHandler,\n *   removeClickHandler\n * );\n * clicks.subscribe(x => console.log(x));\n *\n * // Whenever you click anywhere in the browser, DOM MouseEvent\n * // object will be logged.\n * ```\n *\n * Use with API that returns cancellation token\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * const token = someAPI.registerEventHandler(function() {});\n * someAPI.unregisterEventHandler(token); // this APIs cancellation method accepts\n *                                        // not handler itself, but special token.\n *\n * const someAPIObservable = fromEventPattern(\n *   function(handler) { return someAPI.registerEventHandler(handler); }, // Note that we return the token here...\n *   function(handler, token) { someAPI.unregisterEventHandler(token); }  // ...to then use it here.\n * );\n * ```\n *\n * Use with project function\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * someAPI.registerEventHandler((eventType, eventMessage) => {\n *   console.log(eventType, eventMessage); // Logs 'EVENT_TYPE' 'EVENT_MESSAGE' to console.\n * });\n *\n * const someAPIObservable = fromEventPattern(\n *   handler => someAPI.registerEventHandler(handler),\n *   handler => someAPI.unregisterEventHandler(handler)\n *   (eventType, eventMessage) => eventType + ' --- ' + eventMessage // without that function only 'EVENT_TYPE'\n * );                                                                // would be emitted by the Observable\n *\n * someAPIObservable.subscribe(value => console.log(value));\n *\n * // Logs:\n * // 'EVENT_TYPE --- EVENT_MESSAGE'\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n *\n * @param {function(handler: Function): any} addHandler A function that takes\n * a `handler` function as argument and attaches it somehow to the actual\n * source of events.\n * @param {function(handler: Function, token?: any): void} [removeHandler] A function that\n * takes a `handler` function as an argument and removes it from the event source. If `addHandler`\n * returns some kind of token, `removeHandler` function will have it as a second parameter.\n * @param {function(...args: any): T} [project] A function to\n * transform results. It takes the arguments from the event handler and\n * should return a single value.\n * @return {Observable<T>} Observable which, when an event happens, emits first parameter\n * passed to registered event handler. Alternatively it emits whatever project function returns\n * at that moment.\n */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T | T[]> {\n  if (resultSelector) {\n    return fromEventPattern<T>(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  return new Observable<T | T[]>((subscriber) => {\n    const handler = (...e: T[]) => subscriber.next(e.length === 1 ? e[0] : e);\n    const retValue = addHandler(handler);\n    return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined;\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\n\n/**\n * Creates an observable that will wait for a specified time period, or exact date, before\n * emitting the number 0.\n *\n * <span class=\"informal\">Used to emit a notification after a delay.</span>\n *\n * This observable is useful for creating delays in code, or racing against other values\n * for ad-hoc timeouts.\n *\n * The `delay` is specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Examples\n *\n * Wait 3 seconds and start another observable\n *\n * You might want to use `timer` to delay subscription to an\n * observable by a set amount of time. Here we use a timer with\n * {@link concatMapTo} or {@link concatMap} in order to wait\n * a few seconds and start a subscription to a source.\n *\n * ```ts\n * import { of, timer, concatMap } from 'rxjs';\n *\n * // This could be any observable\n * const source = of(1, 2, 3);\n *\n * timer(3000)\n *   .pipe(concatMap(() => source))\n *   .subscribe(console.log);\n * ```\n *\n * Take all values until the start of the next minute\n *\n * Using a `Date` as the trigger for the first emission, you can\n * do things like wait until midnight to fire an event, or in this case,\n * wait until a new minute starts (chosen so the example wouldn't take\n * too long to run) in order to stop watching a stream. Leveraging\n * {@link takeUntil}.\n *\n * ```ts\n * import { interval, takeUntil, timer } from 'rxjs';\n *\n * // Build a Date object that marks the\n * // next minute.\n * const currentDate = new Date();\n * const startOfNextMinute = new Date(\n *   currentDate.getFullYear(),\n *   currentDate.getMonth(),\n *   currentDate.getDate(),\n *   currentDate.getHours(),\n *   currentDate.getMinutes() + 1\n * );\n *\n * // This could be any observable stream\n * const source = interval(1000);\n *\n * const result = source.pipe(\n *   takeUntil(timer(startOfNextMinute))\n * );\n *\n * result.subscribe(console.log);\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `dueTime`.\n *\n * @param due If a `number`, the amount of time in milliseconds to wait before emitting.\n * If a `Date`, the exact time at which to emit.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>;\n\n/**\n * Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` --\n * on each interval after words.\n *\n * The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Example\n *\n * ### Start an interval that starts right away\n *\n * Since {@link interval} waits for the passed delay before starting,\n * sometimes that's not ideal. You may want to start an interval immediately.\n * `timer` works well for this. Here we have both side-by-side so you can\n * see them in comparison.\n *\n * Note that this observable will never complete.\n *\n * ```ts\n * import { timer, interval } from 'rxjs';\n *\n * timer(0, 1000).subscribe(n => console.log('timer', n));\n * interval(1000).subscribe(n => console.log('interval', n));\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `startDue`.\n * @param startDue If a `number`, is the time to wait before starting the interval.\n * If a `Date`, is the exact time at which to start the interval.\n * @param intervalDuration The delay between each value emitted in the interval. Passing a\n * negative number here will result in immediate completion after the first value is emitted, as though\n * no `intervalDuration` was passed at all.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable<number>;\n\n/**\n * @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead.\n */\nexport function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>;\n\nexport function timer(\n  dueTime: number | Date = 0,\n  intervalOrScheduler?: number | SchedulerLike,\n  scheduler: SchedulerLike = asyncScheduler\n): Observable<number> {\n  // Since negative intervalDuration is treated as though no\n  // interval was specified at all, we start with a negative number.\n  let intervalDuration = -1;\n\n  if (intervalOrScheduler != null) {\n    // If we have a second argument, and it's a scheduler,\n    // override the scheduler we had defaulted. Otherwise,\n    // it must be an interval.\n    if (isScheduler(intervalOrScheduler)) {\n      scheduler = intervalOrScheduler;\n    } else {\n      // Note that this *could* be negative, in which case\n      // it's like not passing an intervalDuration at all.\n      intervalDuration = intervalOrScheduler;\n    }\n  }\n\n  return new Observable((subscriber) => {\n    // If a valid date is passed, calculate how long to wait before\n    // executing the first value... otherwise, if it's a number just schedule\n    // that many milliseconds (or scheduler-specified unit size) in the future.\n    let due = isValidDate(dueTime) ? +dueTime - scheduler!.now() : dueTime;\n\n    if (due < 0) {\n      // Ensure we don't schedule in the future.\n      due = 0;\n    }\n\n    // The incrementing value we emit.\n    let n = 0;\n\n    // Start the timer.\n    return scheduler.schedule(function () {\n      if (!subscriber.closed) {\n        // Emit the next value and increment.\n        subscriber.next(n++);\n\n        if (0 <= intervalDuration) {\n          // If we have a interval after the initial timer,\n          // reschedule with the period.\n          this.schedule(undefined, intervalDuration);\n        } else {\n          // We didn't have an interval. So just complete.\n          subscriber.complete();\n        }\n      }\n    }, due);\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, ObservableInputTuple, SchedulerLike } from '../types';\nimport { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function merge<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;\nexport function merge<A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number?]): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike?]\n): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number?, SchedulerLike?]\n): Observable<A[number]>;\n\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * ![](merge.png)\n *\n * `merge` subscribes to each given input Observable (as arguments), and simply\n * forwards (without doing any transformation) all the values from all the input\n * Observables to the output Observable. The output Observable only completes\n * once all input Observables have completed. Any error delivered by an input\n * Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Merge together two Observables: 1s interval and clicks\n *\n * ```ts\n * import { merge, fromEvent, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const clicksOrTimer = merge(clicks, timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // timer will emit ascending values, one every second(1000ms) to console\n * // clicks logs MouseEvents to console every time the \"document\" is clicked\n * // Since the two streams are merged you see these happening\n * // as they occur.\n * ```\n *\n * Merge together 3 Observables, but run only 2 concurrently\n *\n * ```ts\n * import { interval, take, merge } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const concurrent = 2; // the argument\n * const merged = merge(timer1, timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - First timer1 and timer2 will run concurrently\n * // - timer1 will emit a value every 1000ms for 10 iterations\n * // - timer2 will emit a value every 2000ms for 6 iterations\n * // - after timer1 hits its max iteration, timer2 will\n * //   continue, and timer3 will start to run concurrently with timer2\n * // - when timer2 hits its max iteration it terminates, and\n * //   timer3 will continue to emit a value every 500ms until it is complete\n * ```\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {...ObservableInput} observables Input Observables to merge together.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for managing\n * concurrency of input Observables.\n * @return {Observable} an Observable that emits items that are the result of\n * every input Observable.\n */\nexport function merge(...args: (ObservableInput<unknown> | number | SchedulerLike)[]): Observable<unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  const sources = args as ObservableInput<unknown>[];\n  return !sources.length\n    ? // No source provided\n      EMPTY\n    : sources.length === 1\n    ? // One source? Just return it.\n      innerFrom(sources[0])\n    : // Merge all sources\n      mergeAll(concurrent)(from(sources, scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\n\n/**\n * An Observable that emits no items to the Observer and never completes.\n *\n * ![](never.png)\n *\n * A simple Observable that emits neither values nor errors nor the completion\n * notification. It can be used for testing purposes or for composing with other\n * Observables. Please note that by never emitting a complete notification, this\n * Observable keeps the subscription from being disposed automatically.\n * Subscriptions need to be manually disposed.\n *\n * ##  Example\n *\n * Emit the number 7, then never emit anything else (not even complete)\n *\n * ```ts\n * import { NEVER, startWith } from 'rxjs';\n *\n * const info = () => console.log('Will not be called');\n *\n * const result = NEVER.pipe(startWith(7));\n * result.subscribe({\n *   next: x => console.log(x),\n *   error: info,\n *   complete: info\n * });\n * ```\n *\n * @see {@link Observable}\n * @see {@link EMPTY}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const NEVER = new Observable<never>(noop);\n\n/**\n * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8.\n */\nexport function never() {\n  return NEVER;\n}\n", "const { isArray } = Array;\n\n/**\n * Used in operators and functions that accept either a list of arguments, or an array of arguments\n * as a single argument.\n */\nexport function argsOrArgArray<T>(args: (T | T[])[]): T[] {\n  return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]);\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, S extends T, A>(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction<T, S>;\nexport function filter<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function filter<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;\nexport function filter<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * ![](filter.png)\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * ## Example\n *\n * Emit only click events whose target was a DIV element\n *\n * ```ts\n * import { fromEvent, filter } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksOnDivs = clicks.pipe(filter(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * clicksOnDivs.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param thisArg An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return A function that returns an Observable that emits items from the\n * source Observable that satisfy the specified `predicate`.\n */\nexport function filter<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // An index passed to our predicate function on each call.\n    let index = 0;\n\n    // Subscribe to the source, all errors and completions are\n    // forwarded to the consumer.\n    source.subscribe(\n      // Call the predicate with the appropriate `this` context,\n      // if the predicate returns `true`, then send the value\n      // to the consumer.\n      createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value))\n    );\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple } from '../types';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { EMPTY } from './empty';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { popResultSelector } from '../util/args';\n\nexport function zip<A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\nexport function zip<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each\n * of its input Observables.\n *\n * If the last parameter is a function, this function is used to compute the created value from the input values.\n * Otherwise, an array of the input values is returned.\n *\n * ## Example\n *\n * Combine age and name from different sources\n *\n * ```ts\n * import { of, zip, map } from 'rxjs';\n *\n * const age$ = of(27, 25, 29);\n * const name$ = of('Foo', 'Bar', 'Beer');\n * const isDev$ = of(true, true, false);\n *\n * zip(age$, name$, isDev$).pipe(\n *   map(([age, name, isDev]) => ({ age, name, isDev }))\n * )\n * .subscribe(x => console.log(x));\n *\n * // Outputs\n * // { age: 27, name: 'Foo', isDev: true }\n * // { age: 25, name: 'Bar', isDev: true }\n * // { age: 29, name: 'Beer', isDev: false }\n * ```\n *\n * @param sources\n * @return {Observable<R>}\n */\nexport function zip(...args: unknown[]): Observable<unknown> {\n  const resultSelector = popResultSelector(args);\n\n  const sources = argsOrArgArray(args) as Observable<unknown>[];\n\n  return sources.length\n    ? new Observable<unknown[]>((subscriber) => {\n        // A collection of buffers of values from each source.\n        // Keyed by the same index with which the sources were passed in.\n        let buffers: unknown[][] = sources.map(() => []);\n\n        // An array of flags of whether or not the sources have completed.\n        // This is used to check to see if we should complete the result.\n        // Keyed by the same index with which the sources were passed in.\n        let completed = sources.map(() => false);\n\n        // When everything is done, release the arrays above.\n        subscriber.add(() => {\n          buffers = completed = null!;\n        });\n\n        // Loop over our sources and subscribe to each one. The index `i` is\n        // especially important here, because we use it in closures below to\n        // access the related buffers and completion properties\n        for (let sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {\n          innerFrom(sources[sourceIndex]).subscribe(\n            createOperatorSubscriber(\n              subscriber,\n              (value) => {\n                buffers[sourceIndex].push(value);\n                // if every buffer has at least one value in it, then we\n                // can shift out the oldest value from each buffer and emit\n                // them as an array.\n                if (buffers.every((buffer) => buffer.length)) {\n                  const result: any = buffers.map((buffer) => buffer.shift()!);\n                  // Emit the array. If theres' a result selector, use that.\n                  subscriber.next(resultSelector ? resultSelector(...result) : result);\n                  // If any one of the sources is both complete and has an empty buffer\n                  // then we complete the result. This is because we cannot possibly have\n                  // any more values to zip together.\n                  if (buffers.some((buffer, i) => !buffer.length && completed[i])) {\n                    subscriber.complete();\n                  }\n                }\n              },\n              () => {\n                // This source completed. Mark it as complete so we can check it later\n                // if we have to.\n                completed[sourceIndex] = true;\n                // But, if this complete source has nothing in its buffer, then we\n                // can complete the result, because we can't possibly have any more\n                // values from this to zip together with the other values.\n                !buffers[sourceIndex].length && subscriber.complete();\n              }\n            )\n          );\n        }\n\n        // When everything is done, release the arrays above.\n        return () => {\n          buffers = completed = null!;\n        };\n      })\n    : EMPTY;\n}\n", "import { Subscriber } from '../Subscriber';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\n\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](audit.svg)\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, audit, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(audit(ev => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function audit<T>(durationSelector: (value: T) => ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    let lastValue: T | null = null;\n    let durationSubscriber: Subscriber<any> | null = null;\n    let isComplete = false;\n\n    const endDuration = () => {\n      durationSubscriber?.unsubscribe();\n      durationSubscriber = null;\n      if (hasValue) {\n        hasValue = false;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n      isComplete && subscriber.complete();\n    };\n\n    const cleanupDuration = () => {\n      durationSubscriber = null;\n      isComplete && subscriber.complete();\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          lastValue = value;\n          if (!durationSubscriber) {\n            innerFrom(durationSelector(value)).subscribe(\n              (durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))\n            );\n          }\n        },\n        () => {\n          isComplete = true;\n          (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\n\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source value, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * ![](auditTime.png)\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link SchedulerLike} for managing timers.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, auditTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(auditTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function auditTime<T>(duration: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return audit(() => timer(duration, scheduler));\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\n\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * ![](bufferCount.png)\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * ## Examples\n *\n * Emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * On every click, emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2, 1));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return A function that returns an Observable of arrays of buffered values.\n */\nexport function bufferCount<T>(bufferSize: number, startBufferEvery: number | null = null): OperatorFunction<T, T[]> {\n  // If no `startBufferEvery` value was supplied, then we're\n  // opening and closing on the bufferSize itself.\n  startBufferEvery = startBufferEvery ?? bufferSize;\n\n  return operate((source, subscriber) => {\n    let buffers: T[][] = [];\n    let count = 0;\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          let toEmit: T[][] | null = null;\n\n          // Check to see if we need to start a buffer.\n          // This will start one at the first value, and then\n          // a new one every N after that.\n          if (count++ % startBufferEvery! === 0) {\n            buffers.push([]);\n          }\n\n          // Push our value into our active buffers.\n          for (const buffer of buffers) {\n            buffer.push(value);\n            // Check to see if we're over the bufferSize\n            // if we are, record it so we can emit it later.\n            // If we emitted it now and removed it, it would\n            // mutate the `buffers` array while we're looping\n            // over it.\n            if (bufferSize <= buffer.length) {\n              toEmit = toEmit ?? [];\n              toEmit.push(buffer);\n            }\n          }\n\n          if (toEmit) {\n            // We have found some buffers that are over the\n            // `bufferSize`. Emit them, and remove them from our\n            // buffers list.\n            for (const buffer of toEmit) {\n              arrRemove(buffers, buffer);\n              subscriber.next(buffer);\n            }\n          }\n        },\n        () => {\n          // When the source completes, emit all of our\n          // active buffers.\n          for (const buffer of buffers) {\n            subscriber.next(buffer);\n          }\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Clean up our memory when we finalize\n          buffers = null!;\n        }\n      )\n    );\n  });\n}\n", "import { Observable } from '../Observable';\n\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { Subscription } from '../Subscription';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\n\n/* tslint:disable:max-line-length */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>>;\n/* tslint:enable:max-line-length */\n\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\n *\n * <span class=\"informal\">\n * It only listens to the error channel and ignores notifications.\n * Handles errors from the source observable, and maps them to a new observable.\n * The error may also be rethrown, or a new error can be thrown to emit an error from the result.\n * </span>\n *\n * ![](catch.png)\n *\n * This operator handles errors, but forwards along all other events to the resulting observable.\n * If the source observable terminates with an error, it will map that error to a new observable,\n * subscribe to it, and forward all of its events to the resulting observable.\n *\n * ## Examples\n *\n * Continue with a different Observable when there's an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => of('I', 'II', 'III', 'IV', 'V'))\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, I, II, III, IV, V\n * ```\n *\n * Retry the caught source Observable again in case of error, similar to `retry()` operator\n *\n * ```ts\n * import { of, map, catchError, take } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError((err, caught) => caught),\n *     take(30)\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, 1, 2, 3, ...\n * ```\n *\n * Throw a new error when the source Observable throws an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => {\n *       throw 'error in source. Details: ' + err;\n *     })\n *   )\n *   .subscribe({\n *     next: x => console.log(x),\n *     error: err => console.log(err)\n *   });\n *   // 1, 2, 3, error in source. Details: four!\n * ```\n *\n * @see {@link onErrorResumeNext}\n * @see {@link repeat}\n * @see {@link repeatWhen}\n * @see {@link retry }\n * @see {@link retryWhen}\n *\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\n * is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\n * is returned by the `selector` will be used to continue the observable chain.\n * @return A function that returns an Observable that originates from either\n * the source or the Observable returned by the `selector` function.\n */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>> {\n  return operate((source, subscriber) => {\n    let innerSub: Subscription | null = null;\n    let syncUnsub = false;\n    let handledResult: Observable<ObservedValueOf<O>>;\n\n    innerSub = source.subscribe(\n      createOperatorSubscriber(subscriber, undefined, undefined, (err) => {\n        handledResult = innerFrom(selector(err, catchError(selector)(source)));\n        if (innerSub) {\n          innerSub.unsubscribe();\n          innerSub = null;\n          handledResult.subscribe(subscriber);\n        } else {\n          // We don't have an innerSub yet, that means the error was synchronous\n          // because the subscribe call hasn't returned yet.\n          syncUnsub = true;\n        }\n      })\n    );\n\n    if (syncUnsub) {\n      // We have a synchronous error, we need to make sure to\n      // finalize right away. This ensures that callbacks in the `finalize` operator are called\n      // at the right time, and that finalization occurs at the expected\n      // time between the source error and the subscription to the\n      // next observable.\n      innerSub.unsubscribe();\n      innerSub = null;\n      handledResult!.subscribe(subscriber);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A basic scan operation. This is used for `scan` and `reduce`.\n * @param accumulator The accumulator to use\n * @param seed The seed value for the state to accumulate\n * @param hasSeed Whether or not a seed was provided\n * @param emitOnNext Whether or not to emit the state on next\n * @param emitBeforeComplete Whether or not to emit the before completion\n */\n\nexport function scanInternals<V, A, S>(\n  accumulator: (acc: V | A | S, value: V, index: number) => A,\n  seed: S,\n  hasSeed: boolean,\n  emitOnNext: boolean,\n  emitBeforeComplete?: undefined | true\n) {\n  return (source: Observable<V>, subscriber: Subscriber<any>) => {\n    // Whether or not we have state yet. This will only be\n    // false before the first value arrives if we didn't get\n    // a seed value.\n    let hasState = hasSeed;\n    // The state that we're tracking, starting with the seed,\n    // if there is one, and then updated by the return value\n    // from the accumulator on each emission.\n    let state: any = seed;\n    // An index to pass to the accumulator function.\n    let index = 0;\n\n    // Subscribe to our source. All errors and completions are passed through.\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Always increment the index.\n          const i = index++;\n          // Set the state\n          state = hasState\n            ? // We already have state, so we can get the new state from the accumulator\n              accumulator(state, value, i)\n            : // We didn't have state yet, a seed value was not provided, so\n\n              // we set the state to the first value, and mark that we have state now\n              ((hasState = true), value);\n\n          // Maybe send it to the consumer.\n          emitOnNext && subscriber.next(state);\n        },\n        // If an onComplete was given, call it, otherwise\n        // just pass through the complete notification to the consumer.\n        emitBeforeComplete &&\n          (() => {\n            hasState && subscriber.next(state);\n            subscriber.complete();\n          })\n      )\n    );\n  };\n}\n", "import { combineLatestInit } from '../observable/combineLatest';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  project: (...values: [T, ...A]) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  ...sourcesAndProject: [...ObservableInputTuple<A>, (...values: [T, ...A]) => R]\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/**\n * @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8.\n */\nexport function combineLatest<T, R>(...args: (ObservableInput<any> | ((...values: any[]) => R))[]): OperatorFunction<T, unknown> {\n  const resultSelector = popResultSelector(args);\n  return resultSelector\n    ? pipe(combineLatest(...(args as Array<ObservableInput<any>>)), mapOneOrManyArgs(resultSelector))\n    : operate((source, subscriber) => {\n        combineLatestInit([source, ...argsOrArgArray(args)])(subscriber);\n      });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { combineLatest } from './combineLatest';\n\n/**\n * Create an observable that combines the latest values from all passed observables and the source\n * into arrays and emits them.\n *\n * Returns an observable, that when subscribed to, will subscribe to the source observable and all\n * sources provided as arguments. Once all sources emit at least one value, all of the latest values\n * will be emitted as an array. After that, every time any source emits a value, all of the latest values\n * will be emitted as an array.\n *\n * This is a useful operator for eagerly calculating values based off of changed inputs.\n *\n * ## Example\n *\n * Simple concatenation of values from two inputs\n *\n * ```ts\n * import { fromEvent, combineLatestWith, map } from 'rxjs';\n *\n * // Setup: Add two inputs to the page\n * const input1 = document.createElement('input');\n * document.body.appendChild(input1);\n * const input2 = document.createElement('input');\n * document.body.appendChild(input2);\n *\n * // Get streams of changes\n * const input1Changes$ = fromEvent(input1, 'change');\n * const input2Changes$ = fromEvent(input2, 'change');\n *\n * // Combine the changes by adding them together\n * input1Changes$.pipe(\n *   combineLatestWith(input2Changes$),\n *   map(([e1, e2]) => (<HTMLInputElement>e1.target).value + ' - ' + (<HTMLInputElement>e2.target).value)\n * )\n * .subscribe(x => console.log(x));\n * ```\n *\n * @param otherSources the other sources to subscribe to.\n * @return A function that returns an Observable that emits the latest\n * emissions from both source and provided Observables.\n */\nexport function combineLatestWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, Cons<T, A>> {\n  return combineLatest(...otherSources);\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a notification from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent notification from each burst of emissions.</span>\n *\n * ![](debounceTime.png)\n *\n * `debounceTime` delays notifications emitted by the source Observable, but drops\n * previous pending delayed emissions if a new notification arrives on the source\n * Observable. This operator keeps track of the most recent notification from the\n * source Observable, and emits that only when `dueTime` has passed\n * without any other notification appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous notification will be dropped\n * and will not be emitted and a new `dueTime` is scheduled.\n * If the completing event happens during `dueTime` the last cached notification\n * is emitted before the completion event is forwarded to the output observable.\n * If the error event happens during `dueTime` or after it only the error event is\n * forwarded to the output observable. The cache notification is not emitted in this case.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * notification to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link SchedulerLike} for\n * managing timers.\n *\n * ## Example\n *\n * Emit the most recent click after a burst of clicks\n *\n * ```ts\n * import { fromEvent, debounceTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(debounceTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link throttle}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the timeout for each value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified `dueTime`, and may drop some values\n * if they occur too frequently.\n */\nexport function debounceTime<T>(dueTime: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let activeTask: Subscription | null = null;\n    let lastValue: T | null = null;\n    let lastTime: number | null = null;\n\n    const emit = () => {\n      if (activeTask) {\n        // We have a value! Free up memory first, then emit the value.\n        activeTask.unsubscribe();\n        activeTask = null;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n    };\n    function emitWhenIdle(this: SchedulerAction<unknown>) {\n      // This is called `dueTime` after the first value\n      // but we might have received new values during this window!\n\n      const targetTime = lastTime! + dueTime;\n      const now = scheduler.now();\n      if (now < targetTime) {\n        // On that case, re-schedule to the new target\n        activeTask = this.schedule(undefined, targetTime - now);\n        subscriber.add(activeTask);\n        return;\n      }\n\n      emit();\n    }\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value: T) => {\n          lastValue = value;\n          lastTime = scheduler.now();\n\n          // Only set up a task if it's not already up\n          if (!activeTask) {\n            activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n            subscriber.add(activeTask);\n          }\n        },\n        () => {\n          // Source completed.\n          // Emit any pending debounced values then complete\n          emit();\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Finalization.\n          lastValue = activeTask = null;\n        }\n      )\n    );\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * ![](defaultIfEmpty.png)\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * ## Example\n *\n * If no clicks happen in 5 seconds, then emit 'no clicks'\n *\n * ```ts\n * import { fromEvent, takeUntil, interval, defaultIfEmpty } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000)));\n * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param defaultValue The default value used if the source\n * Observable is empty.\n * @return A function that returns an Observable that emits either the\n * specified `defaultValue` if the source Observable emits no items, or the\n * values emitted by the source Observable.\n */\nexport function defaultIfEmpty<T, R>(defaultValue: R): OperatorFunction<T, T | R> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => {\n          if (!hasValue) {\n            subscriber.next(defaultValue!);\n          }\n          subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * ![](take.png)\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * ## Example\n *\n * Take the first 5 seconds of an infinite 1-second interval Observable\n *\n * ```ts\n * import { interval, take } from 'rxjs';\n *\n * const intervalCount = interval(1000);\n * const takeFive = intervalCount.pipe(take(5));\n * takeFive.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * ```\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of `next` values to emit.\n * @return A function that returns an Observable that emits only the first\n * `count` values emitted by the source Observable, or all of the values from\n * the source if the source emits fewer than `count` values.\n */\nexport function take<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? // If we are taking no values, that's empty.\n      () => EMPTY\n    : operate((source, subscriber) => {\n        let seen = 0;\n        source.subscribe(\n          createOperatorSubscriber(subscriber, (value) => {\n            // Increment the number of values we have seen,\n            // then check it against the allowed count to see\n            // if we are still letting values through.\n            if (++seen <= count) {\n              subscriber.next(value);\n              // If we have met or passed our allowed count,\n              // we need to complete. We have to do <= here,\n              // because re-entrant code will increment `seen` twice.\n              if (count <= seen) {\n                subscriber.complete();\n              }\n            }\n          })\n        );\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\n\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * ![](ignoreElements.png)\n *\n * The `ignoreElements` operator suppresses all items emitted by the source Observable,\n * but allows its termination notification (either `error` or `complete`) to pass through unchanged.\n *\n * If you do not care about the items being emitted by an Observable, but you do want to be notified\n * when it completes or when it terminates with an error, you can apply the `ignoreElements` operator\n * to the Observable, which will ensure that it will never call its observers\u2019 `next` handlers.\n *\n * ## Example\n *\n * Ignore all `next` emissions from the source\n *\n * ```ts\n * import { of, ignoreElements } from 'rxjs';\n *\n * of('you', 'talking', 'to', 'me')\n *   .pipe(ignoreElements())\n *   .subscribe({\n *     next: word => console.log(word),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // result:\n * // 'the end'\n * ```\n *\n * @return A function that returns an empty Observable that only calls\n * `complete` or `error`, based on which one is called by the source\n * Observable.\n */\nexport function ignoreElements(): OperatorFunction<unknown, never> {\n  return operate((source, subscriber) => {\n    source.subscribe(createOperatorSubscriber(subscriber, noop));\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { map } from './map';\n\n/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R>;\n/**\n * @deprecated Do not specify explicit type parameters. Signatures with type parameters\n * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9,\n * use {@link map} instead: `map(() => value)`.\n * */\nexport function mapTo<T, R>(value: R): OperatorFunction<T, R>;\n\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * ![](mapTo.png)\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * ## Example\n *\n * Map every click to the string `'Hi'`\n *\n * ```ts\n * import { fromEvent, mapTo } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const greetings = clicks.pipe(mapTo('Hi'));\n *\n * greetings.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link map}\n *\n * @param value The value to map each source value to.\n * @return A function that returns an Observable that emits the given `value`\n * every time the source Observable emits.\n * @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`.\n */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R> {\n  return map(() => value);\n}\n", "import { Observable } from '../Observable';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\n\n/** @deprecated The `subscriptionDelay` parameter will be removed in v8. */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay: Observable<any>\n): MonoTypeOperatorFunction<T>;\nexport function delayWhen<T>(delayDurationSelector: (value: T, index: number) => ObservableInput<any>): MonoTypeOperatorFunction<T>;\n\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * ![](delayWhen.png)\n *\n * `delayWhen` operator shifts each emitted value from the source Observable by\n * a time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the value emitted from\n * the source Observable as the first argument to the `delayDurationSelector`.\n * The `delayDurationSelector` function should return an {@link ObservableInput},\n * that is internally converted to an Observable that is called the \"duration\"\n * Observable.\n *\n * The source value is emitted on the output Observable only when the \"duration\"\n * Observable emits ({@link guide/glossary-and-semantics#next next}s) any value.\n * Upon that, the \"duration\" Observable gets unsubscribed.\n *\n * Before RxJS V7, the {@link guide/glossary-and-semantics#complete completion}\n * of the \"duration\" Observable would have been triggering the emission of the\n * source value to the output Observable, but with RxJS V7, this is not the case\n * anymore.\n *\n * Only next notifications (from the \"duration\" Observable) trigger values from\n * the source Observable to be passed to the output Observable. If the \"duration\"\n * Observable only emits the complete notification (without next), the value\n * emitted by the source Observable will never get to the output Observable - it\n * will be swallowed. If the \"duration\" Observable errors, the error will be\n * propagated to the output Observable.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * ## Example\n *\n * Delay each click by a random amount of time, between 0 and 5 seconds\n *\n * ```ts\n * import { fromEvent, delayWhen, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(\n *   delayWhen(() => interval(Math.random() * 5000))\n * );\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delay}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param delayDurationSelector A function that returns an `ObservableInput` for\n * each `value` emitted by the source Observable, which is then used to delay the\n * emission of that `value` on the output Observable until the `ObservableInput`\n * returned from this function emits a next value. When called, beside `value`,\n * this function receives a zero-based `index` of the emission order.\n * @param subscriptionDelay An Observable that triggers the subscription to the\n * source Observable once it emits any value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by an amount of time specified by the Observable\n * returned by `delayDurationSelector`.\n */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay?: Observable<any>\n): MonoTypeOperatorFunction<T> {\n  if (subscriptionDelay) {\n    // DEPRECATED PATH\n    return (source: Observable<T>) =>\n      concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n  }\n\n  return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\n\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * ![](delay.svg)\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * ## Examples\n *\n * Delay each click by one second\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(delay(1000)); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * Delay all clicks until a future date happens\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const date = new Date('March 15, 2050 12:00:00'); // in the future\n * const delayedClicks = clicks.pipe(delay(date)); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delayWhen}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param {number|Date} due The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the time-shift for each item.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified timeout or Date.\n */\nexport function delay<T>(due: number | Date, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  const duration = timer(due, scheduler);\n  return delayWhen(() => duration);\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function distinctUntilChanged<T>(comparator?: (previous: T, current: T) => boolean): MonoTypeOperatorFunction<T>;\nexport function distinctUntilChanged<T, K>(\n  comparator: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a result {@link Observable} that emits all values pushed by the source observable if they\n * are distinct in comparison to the last value the result observable emitted.\n *\n * When provided without parameters or with the first parameter (`{@link distinctUntilChanged#comparator comparator}`),\n * it behaves like this:\n *\n * 1. It will always emit the first value from the source.\n * 2. For all subsequent values pushed by the source, they will be compared to the previously emitted values\n *    using the provided `comparator` or an `===` equality check.\n * 3. If the value pushed by the source is determined to be unequal by this check, that value is emitted and\n *    becomes the new \"previously emitted value\" internally.\n *\n * When the second parameter (`{@link distinctUntilChanged#keySelector keySelector}`) is provided, the behavior\n * changes:\n *\n * 1. It will always emit the first value from the source.\n * 2. The `keySelector` will be run against all values, including the first value.\n * 3. For all values after the first, the selected key will be compared against the key selected from\n *    the previously emitted value using the `comparator`.\n * 4. If the keys are determined to be unequal by this check, the value (not the key), is emitted\n *    and the selected key from that value is saved for future comparisons against other keys.\n *\n * ## Examples\n *\n * A very basic example with no `{@link distinctUntilChanged#comparator comparator}`. Note that `1` is emitted more than once,\n * because it's distinct in comparison to the _previously emitted_ value,\n * not in comparison to _all other emitted values_.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * of(1, 1, 1, 2, 2, 2, 1, 1, 3, 3)\n *   .pipe(distinctUntilChanged())\n *   .subscribe(console.log);\n * // Logs: 1, 2, 1, 3\n * ```\n *\n * With a `{@link distinctUntilChanged#comparator comparator}`, you can do custom comparisons. Let's say\n * you only want to emit a value when all of its components have\n * changed:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const totallyDifferentBuilds$ = of(\n *   { engineVersion: '1.1.0', transmissionVersion: '1.2.0' },\n *   { engineVersion: '1.1.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.5.0' },\n *   { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ).pipe(\n *   distinctUntilChanged((prev, curr) => {\n *     return (\n *       prev.engineVersion === curr.engineVersion ||\n *       prev.transmissionVersion === curr.transmissionVersion\n *     );\n *   })\n * );\n *\n * totallyDifferentBuilds$.subscribe(console.log);\n *\n * // Logs:\n * // { engineVersion: '1.1.0', transmissionVersion: '1.2.0' }\n * // { engineVersion: '1.3.0', transmissionVersion: '1.4.0' }\n * // { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ```\n *\n * You can also provide a custom `{@link distinctUntilChanged#comparator comparator}` to check that emitted\n * changes are only in one direction. Let's say you only want to get\n * the next record temperature:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const temps$ = of(30, 31, 20, 34, 33, 29, 35, 20);\n *\n * const recordHighs$ = temps$.pipe(\n *   distinctUntilChanged((prevHigh, temp) => {\n *     // If the current temp is less than\n *     // or the same as the previous record,\n *     // the record hasn't changed.\n *     return temp <= prevHigh;\n *   })\n * );\n *\n * recordHighs$.subscribe(console.log);\n * // Logs: 30, 31, 34, 35\n * ```\n *\n * Selecting update events only when the `updatedBy` field shows\n * the account changed hands.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * // A stream of updates to a given account\n * const accountUpdates$ = of(\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'blesh', data: [] }\n * );\n *\n * // We only want the events where it changed hands\n * const changedHands$ = accountUpdates$.pipe(\n *   distinctUntilChanged(undefined, update => update.updatedBy)\n * );\n *\n * changedHands$.subscribe(console.log);\n * // Logs:\n * // { updatedBy: 'blesh', data: Array[0] }\n * // { updatedBy: 'ncjamieson', data: Array[0] }\n * // { updatedBy: 'blesh', data: Array[0] }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param comparator A function used to compare the previous and current keys for\n * equality. Defaults to a `===` check.\n * @param keySelector Used to select a key value to be passed to the `comparator`.\n *\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values.\n */\nexport function distinctUntilChanged<T, K>(\n  comparator?: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K = identity as (value: T) => K\n): MonoTypeOperatorFunction<T> {\n  // We've been allowing `null` do be passed as the `compare`, so we can't do\n  // a default value for the parameter, because that will only work\n  // for `undefined`.\n  comparator = comparator ?? defaultCompare;\n\n  return operate((source, subscriber) => {\n    // The previous key, used to compare against keys selected\n    // from new arrivals to determine \"distinctiveness\".\n    let previousKey: K;\n    // Whether or not this is the first value we've gotten.\n    let first = true;\n\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        // We always call the key selector.\n        const currentKey = keySelector(value);\n\n        // If it's the first value, we always emit it.\n        // Otherwise, we compare this key to the previous key, and\n        // if the comparer returns false, we emit.\n        if (first || !comparator!(previousKey, currentKey)) {\n          // Update our state *before* we emit the value\n          // as emission can be the source of re-entrant code\n          // in functional libraries like this. We only really\n          // need to do this if it's the first value, or if the\n          // key we're tracking in previous needs to change.\n          first = false;\n          previousKey = currentKey;\n\n          // Emit the value!\n          subscriber.next(value);\n        }\n      })\n    );\n  });\n}\n\nfunction defaultCompare(a: any, b: any) {\n  return a === b;\n}\n", "import { distinctUntilChanged } from './distinctUntilChanged';\nimport { MonoTypeOperatorFunction } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function distinctUntilKeyChanged<T>(key: keyof T): MonoTypeOperatorFunction<T>;\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * ## Examples\n *\n * An example comparing the name of persons\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo' },\n *   { age: 6, name: 'Foo' }\n * ).pipe(\n *   distinctUntilKeyChanged('name')\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n * ```\n *\n * An example comparing the first letters of the name\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo1' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo2' },\n *   { age: 6, name: 'Foo3' }\n * ).pipe(\n *   distinctUntilKeyChanged('name', (x, y) => x.substring(0, 3) === y.substring(0, 3))\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo1' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo2' }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n *\n * @param {string} key String key for object property lookup on each item.\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values based on the key specified.\n */\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare?: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T> {\n  return distinctUntilChanged((x: T, y: T) => compare ? compare(x[key], y[key]) : x[key] === y[key]);\n}\n", "import { EmptyError } from '../util/EmptyError';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * If the source observable completes without emitting a value, it will emit\n * an error. The error will be created at that time by the optional\n * `errorFactory` argument, otherwise, the error will be {@link EmptyError}.\n *\n * ![](throwIfEmpty.png)\n *\n * ## Example\n *\n * Throw an error if the document wasn't clicked within 1 second\n *\n * ```ts\n * import { fromEvent, takeUntil, timer, throwIfEmpty } from 'rxjs';\n *\n * const click$ = fromEvent(document, 'click');\n *\n * click$.pipe(\n *   takeUntil(timer(1000)),\n *   throwIfEmpty(() => new Error('The document was not clicked within 1 second'))\n * )\n * .subscribe({\n *   next() {\n *    console.log('The document was clicked');\n *   },\n *   error(err) {\n *     console.error(err.message);\n *   }\n * });\n * ```\n *\n * @param errorFactory A factory function called to produce the\n * error to be thrown when the source observable completes without emitting a\n * value.\n * @return A function that returns an Observable that throws an error if the\n * source Observable completed without emitting.\n */\nexport function throwIfEmpty<T>(errorFactory: () => any = defaultErrorFactory): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))\n      )\n    );\n  });\n}\n\nfunction defaultErrorFactory() {\n  return new EmptyError();\n}\n", "/** prettier */\nimport { Observable } from '../Observable';\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nimport { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ValueFromArray } from '../types';\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T>(scheduler: SchedulerLike): MonoTypeOperatorFunction<T>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T, A extends unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\n\nexport function endWith<T, A extends unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that will emit all values from the source, then synchronously emit\n * the provided value(s) immediately after the source completes.\n *\n * NOTE: Passing a last argument of a Scheduler is _deprecated_, and may result in incorrect\n * types in TypeScript.\n *\n * This is useful for knowing when an observable ends. Particularly when paired with an\n * operator like {@link takeUntil}\n *\n * ![](endWith.png)\n *\n * ## Example\n *\n * Emit values to know when an interval starts and stops. The interval will\n * stop when a user clicks anywhere on the document.\n *\n * ```ts\n * import { interval, map, fromEvent, startWith, takeUntil, endWith } from 'rxjs';\n *\n * const ticker$ = interval(5000).pipe(\n *   map(() => 'tick')\n * );\n *\n * const documentClicks$ = fromEvent(document, 'click');\n *\n * ticker$.pipe(\n *   startWith('interval started'),\n *   takeUntil(documentClicks$),\n *   endWith('interval ended by click')\n * )\n * .subscribe(x => console.log(x));\n *\n * // Result (assuming a user clicks after 15 seconds)\n * // 'interval started'\n * // 'tick'\n * // 'tick'\n * // 'tick'\n * // 'interval ended by click'\n * ```\n *\n * @see {@link startWith}\n * @see {@link concat}\n * @see {@link takeUntil}\n *\n * @param values Items you want the modified Observable to emit last.\n * @return A function that returns an Observable that emits all values from the\n * source, then synchronously emits the provided value(s) immediately after the\n * source completes.\n */\nexport function endWith<T>(...values: Array<T | SchedulerLike>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => concat(source, of(...values)) as Observable<T>;\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * The specified function will also be called when the subscriber explicitly unsubscribes.\n *\n * ## Examples\n *\n * Execute callback function when the observable completes\n *\n * ```ts\n * import { interval, take, finalize } from 'rxjs';\n *\n * // emit value in sequence every 1 second\n * const source = interval(1000);\n * const example = source.pipe(\n *   take(5), //take only the first 5 values\n *   finalize(() => console.log('Sequence complete')) // Execute when the observable completes\n * );\n * const subscribe = example.subscribe(val => console.log(val));\n *\n * // results:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * // 'Sequence complete'\n * ```\n *\n * Execute callback function when the subscriber explicitly unsubscribes\n *\n * ```ts\n * import { interval, finalize, tap, noop, timer } from 'rxjs';\n *\n * const source = interval(100).pipe(\n *   finalize(() => console.log('[finalize] Called')),\n *   tap({\n *     next: () => console.log('[next] Called'),\n *     error: () => console.log('[error] Not called'),\n *     complete: () => console.log('[tap complete] Not called')\n *   })\n * );\n *\n * const sub = source.subscribe({\n *   next: x => console.log(x),\n *   error: noop,\n *   complete: () => console.log('[complete] Not called')\n * });\n *\n * timer(150).subscribe(() => sub.unsubscribe());\n *\n * // results:\n * // '[next] Called'\n * // 0\n * // '[finalize] Called'\n * ```\n *\n * @param {function} callback Function to be called when source terminates.\n * @return A function that returns an Observable that mirrors the source, but\n * will call the specified function on termination.\n */\nexport function finalize<T>(callback: () => void): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // TODO: This try/finally was only added for `useDeprecatedSynchronousErrorHandling`.\n    // REMOVE THIS WHEN THAT HOT GARBAGE IS REMOVED IN V8.\n    try {\n      source.subscribe(subscriber);\n    } finally {\n      subscriber.add(callback);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { EmptyError } from '../util/EmptyError';\nimport { OperatorFunction, TruthyTypesOf } from '../types';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\n\nexport function first<T, D = T>(predicate?: null, defaultValue?: D): OperatorFunction<T, T | D>;\nexport function first<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function first<T, D>(predicate: BooleanConstructor, defaultValue: D): OperatorFunction<T, TruthyTypesOf<T> | D>;\nexport function first<T, S extends T>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue?: S\n): OperatorFunction<T, S>;\nexport function first<T, S extends T, D>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue: D\n): OperatorFunction<T, S | D>;\nexport function first<T, D = T>(\n  predicate: (value: T, index: number, source: Observable<T>) => boolean,\n  defaultValue?: D\n): OperatorFunction<T, T | D>;\n\n/**\n * Emits only the first value (or the first value that meets some condition)\n * emitted by the source Observable.\n *\n * <span class=\"informal\">Emits only the first value. Or emits only the first\n * value that passes some test.</span>\n *\n * ![](first.png)\n *\n * If called with no arguments, `first` emits the first value of the source\n * Observable, then completes. If called with a `predicate` function, `first`\n * emits the first value of the source that matches the specified condition. Throws an error if\n * `defaultValue` was not provided and a matching element is not found.\n *\n * ## Examples\n *\n * Emit only the first click that happens on the DOM\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first());\n * result.subscribe(x => console.log(x));\n * ```\n *\n * Emits the first click that happens on a DIV\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link take}\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * This is how `first()` is different from {@link take}(1) which completes instead.\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\n * An optional function called with each item to test for condition matching.\n * @param {D} [defaultValue] The default value emitted in case no valid value\n * was found on the source.\n * @return A function that returns an Observable that emits the first item that\n * matches the condition.\n */\nexport function first<T, D>(\n  predicate?: ((value: T, index: number, source: Observable<T>) => boolean) | null,\n  defaultValue?: D\n): OperatorFunction<T, T | D> {\n  const hasDefaultValue = arguments.length >= 2;\n  return (source: Observable<T>) =>\n    source.pipe(\n      predicate ? filter((v, i) => predicate(v, i, source)) : identity,\n      take(1),\n      hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new EmptyError())\n    );\n}\n", "import { EMPTY } from '../observable/empty';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Waits for the source to complete, then emits the last N values from the source,\n * as specified by the `count` argument.\n *\n * ![](takeLast.png)\n *\n * `takeLast` results in an observable that will hold values up to `count` values in memory,\n * until the source completes. It then pushes all values in memory to the consumer, in the\n * order they were received from the source, then notifies the consumer that it is\n * complete.\n *\n * If for some reason the source completes before the `count` supplied to `takeLast` is reached,\n * all values received until that point are emitted, and then completion is notified.\n *\n * **Warning**: Using `takeLast` with an observable that never completes will result\n * in an observable that never emits a value.\n *\n * ## Example\n *\n * Take the last 3 values of an Observable with many values\n *\n * ```ts\n * import { range, takeLast } from 'rxjs';\n *\n * const many = range(1, 100);\n * const lastThree = many.pipe(takeLast(3));\n * lastThree.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return A function that returns an Observable that emits at most the last\n * `count` values emitted by the source Observable.\n */\nexport function takeLast<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        // This buffer will hold the values we are going to emit\n        // when the source completes. Since we only want to take the\n        // last N values, we can't emit until we're sure we're not getting\n        // any more values.\n        let buffer: T[] = [];\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              // Add the most recent value onto the end of our buffer.\n              buffer.push(value);\n              // If our buffer is now larger than the number of values we\n              // want to take, we remove the oldest value from the buffer.\n              count < buffer.length && buffer.shift();\n            },\n            () => {\n              // The source completed, we now know what are last values\n              // are, emit them in the order they were received.\n              for (const value of buffer) {\n                subscriber.next(value);\n              }\n              subscriber.complete();\n            },\n            // Errors are passed through to the consumer\n            undefined,\n            () => {\n              // During finalization release the values in our buffer.\n              buffer = null!;\n            }\n          )\n        );\n      });\n}\n", "import { ObservableInput, ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mergeAll } from './mergeAll';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from '../observable/from';\n\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrency: [...ObservableInputTuple<A>, number]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n\nexport function merge<T>(...args: unknown[]): OperatorFunction<T, unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  args = argsOrArgArray(args);\n\n  return operate((source, subscriber) => {\n    mergeAll(concurrent)(from([source, ...(args as ObservableInput<T>[])], scheduler)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction } from '../types';\nimport { merge } from './merge';\n\n/**\n * Merge the values from all observables to a single observable result.\n *\n * Creates an observable, that when subscribed to, subscribes to the source\n * observable, and all other sources provided as arguments. All values from\n * every source are emitted from the resulting subscription.\n *\n * When all sources complete, the resulting observable will complete.\n *\n * When any source errors, the resulting observable will error.\n *\n * ## Example\n *\n * Joining all outputs from multiple user input event streams\n *\n * ```ts\n * import { fromEvent, map, mergeWith } from 'rxjs';\n *\n * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click'));\n * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove'));\n * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick'));\n *\n * mousemoves$\n *   .pipe(mergeWith(clicks$, dblclicks$))\n *   .subscribe(x => console.log(x));\n *\n * // result (assuming user interactions)\n * // 'mousemove'\n * // 'mousemove'\n * // 'mousemove'\n * // 'click'\n * // 'click'\n * // 'dblclick'\n * ```\n *\n * @see {@link merge}\n *\n * @param otherSources the sources to combine the current source with.\n * @return A function that returns an Observable that merges the values from\n * all given Observables.\n */\nexport function mergeWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, T | A[number]> {\n  return merge(...otherSources);\n}\n", "import { Subscription } from '../Subscription';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\n\nexport interface RepeatConfig {\n  /**\n   * The number of times to repeat the source. Defaults to `Infinity`.\n   */\n  count?: number;\n\n  /**\n   * If a `number`, will delay the repeat of the source by that number of milliseconds.\n   * If a function, it will provide the number of times the source has been subscribed to,\n   * and the return value should be a valid observable input that will notify when the source\n   * should be repeated. If the notifier observable is empty, the result will complete.\n   */\n  delay?: number | ((count: number) => ObservableInput<any>);\n}\n\n/**\n * Returns an Observable that will resubscribe to the source stream when the source stream completes.\n *\n * <span class=\"informal\">Repeats all values emitted on the source. It's like {@link retry}, but for non error cases.</span>\n *\n * ![](repeat.png)\n *\n * Repeat will output values from a source until the source completes, then it will resubscribe to the\n * source a specified number of times, with a specified delay. Repeat can be particularly useful in\n * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile},\n * as it can be used to restart a source again from scratch.\n *\n * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but\n * `repeat` will resubscribe if the source completes.\n *\n * Note that `repeat` will _not_ catch errors. Use {@link retry} for that.\n *\n * - `repeat(0)` returns an empty observable\n * - `repeat()` will repeat forever\n * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions.\n * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions.\n * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition.\n *\n * ## Example\n *\n * Repeat a message stream\n *\n * ```ts\n * import { of, repeat } from 'rxjs';\n *\n * const source = of('Repeat message');\n * const result = source.pipe(repeat(3));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results\n * // 'Repeat message'\n * // 'Repeat message'\n * // 'Repeat message'\n * ```\n *\n * Repeat 3 values, 2 times\n *\n * ```ts\n * import { interval, take, repeat } from 'rxjs';\n *\n * const source = interval(1000);\n * const result = source.pipe(take(3), repeat(2));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results every second\n * // 0\n * // 1\n * // 2\n * // 0\n * // 1\n * // 2\n * ```\n *\n * Defining two complex repeats with delays on the same source.\n * Note that the second repeat cannot be called until the first\n * repeat as exhausted it's count.\n *\n * ```ts\n * import { defer, of, repeat } from 'rxjs';\n *\n * const source = defer(() => {\n *    return of(`Hello, it is ${new Date()}`)\n * });\n *\n * source.pipe(\n *    // Repeat 3 times with a delay of 1 second between repetitions\n *    repeat({\n *      count: 3,\n *      delay: 1000,\n *    }),\n *\n *    // *Then* repeat forever, but with an exponential step-back\n *    // maxing out at 1 minute.\n *    repeat({\n *      delay: (count) => timer(Math.min(60000, 2 ^ count * 1000))\n *    })\n * )\n * ```\n *\n * @see {@link repeatWhen}\n * @see {@link retry}\n *\n * @param count The number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n */\nexport function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T> {\n  let count = Infinity;\n  let delay: RepeatConfig['delay'];\n\n  if (countOrConfig != null) {\n    if (typeof countOrConfig === 'object') {\n      ({ count = Infinity, delay } = countOrConfig);\n    } else {\n      count = countOrConfig;\n    }\n  }\n\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        let soFar = 0;\n        let sourceSub: Subscription | null;\n\n        const resubscribe = () => {\n          sourceSub?.unsubscribe();\n          sourceSub = null;\n          if (delay != null) {\n            const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n            const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n              notifierSubscriber.unsubscribe();\n              subscribeToSource();\n            });\n            notifier.subscribe(notifierSubscriber);\n          } else {\n            subscribeToSource();\n          }\n        };\n\n        const subscribeToSource = () => {\n          let syncUnsub = false;\n          sourceSub = source.subscribe(\n            createOperatorSubscriber(subscriber, undefined, () => {\n              if (++soFar < count) {\n                if (sourceSub) {\n                  resubscribe();\n                } else {\n                  syncUnsub = true;\n                }\n              } else {\n                subscriber.complete();\n              }\n            })\n          );\n\n          if (syncUnsub) {\n            resubscribe();\n          }\n        };\n\n        subscribeToSource();\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\n\nexport function scan<V, A = V>(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction<V, V | A>;\nexport function scan<V, A>(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction<V, A>;\nexport function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction<V, A>;\n\n// TODO: link to a \"redux pattern\" section in the guide (location TBD)\n\n/**\n * Useful for encapsulating and managing state. Applies an accumulator (or \"reducer function\")\n * to each value from the source after an initial state is established -- either via\n * a `seed` value (second argument), or from the first value from the source.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation state after each update</span>\n *\n * ![](scan.png)\n *\n * This operator maintains an internal state and emits it after processing each value as follows:\n *\n * 1. First value arrives\n *   - If a `seed` value was supplied (as the second argument to `scan`), let `state = seed` and `value = firstValue`.\n *   - If NO `seed` value was supplied (no second argument), let `state = firstValue` and go to 3.\n * 2. Let `state = accumulator(state, value)`.\n *   - If an error is thrown by `accumulator`, notify the consumer of an error. The process ends.\n * 3. Emit `state`.\n * 4. Next value arrives, let `value = nextValue`, go to 2.\n *\n * ## Examples\n *\n * An average of previous numbers. This example shows how\n * not providing a `seed` can prime the stream with the\n * first value from the source.\n *\n * ```ts\n * import { of, scan, map } from 'rxjs';\n *\n * const numbers$ = of(1, 2, 3);\n *\n * numbers$\n *   .pipe(\n *     // Get the sum of the numbers coming in.\n *     scan((total, n) => total + n),\n *     // Get the average by dividing the sum by the total number\n *     // received so far (which is 1 more than the zero-based index).\n *     map((sum, index) => sum / (index + 1))\n *   )\n *   .subscribe(console.log);\n * ```\n *\n * The Fibonacci sequence. This example shows how you can use\n * a seed to prime accumulation process. Also... you know... Fibonacci.\n * So important to like, computers and stuff that its whiteboarded\n * in job interviews. Now you can show them the Rx version! (Please don't, haha)\n *\n * ```ts\n * import { interval, scan, map, startWith } from 'rxjs';\n *\n * const firstTwoFibs = [0, 1];\n * // An endless stream of Fibonacci numbers.\n * const fibonacci$ = interval(1000).pipe(\n *   // Scan to get the fibonacci numbers (after 0, 1)\n *   scan(([a, b]) => [b, a + b], firstTwoFibs),\n *   // Get the second number in the tuple, it's the one you calculated\n *   map(([, n]) => n),\n *   // Start with our first two digits :)\n *   startWith(...firstTwoFibs)\n * );\n *\n * fibonacci$.subscribe(console.log);\n * ```\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n * @see {@link switchScan}\n *\n * @param accumulator A \"reducer function\". This will be called for each value after an initial state is\n * acquired.\n * @param seed The initial state. If this is not provided, the first value from the source will\n * be used as the initial state, and emitted without going through the accumulator. All subsequent values\n * will be processed by the accumulator function. If this is provided, all values will go through\n * the accumulator function.\n * @return A function that returns an Observable of the accumulated values.\n */\nexport function scan<V, A, S>(accumulator: (acc: V | A | S, value: V, index: number) => A, seed?: S): OperatorFunction<V, V | A> {\n  // providing a seed of `undefined` *should* be valid and trigger\n  // hasSeed! so don't use `seed !== undefined` checks!\n  // For this reason, we have to check it here at the original call site\n  // otherwise inside Operator/Subscriber we won't know if `undefined`\n  // means they didn't provide anything or if they literally provided `undefined`\n  return operate(scanInternals(accumulator, seed as S, arguments.length >= 2, true));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\n\nexport interface ShareConfig<T> {\n  /**\n   * The factory used to create the subject that will connect the source observable to\n   * multicast consumers.\n   */\n  connector?: () => SubjectLike<T>;\n  /**\n   * If `true`, the resulting observable will reset internal state on error from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"retried\" in the event of an error.\n   * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent retries\n   * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however\n   * {@link ReplaySubject} will also push its buffered values before pushing the error.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnError?: boolean | ((error: any) => ObservableInput<any>);\n  /**\n   * If `true`, the resulting observable will reset internal state on completion from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"repeated\" after it is done.\n   * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent repeats\n   * or resubscriptions will resubscribe to that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnComplete?: boolean | (() => ObservableInput<any>);\n  /**\n   * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the\n   * internal state will be reset and the resulting observable will return to a \"cold\" state. This means that the next\n   * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to\n   * again.\n   * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject\n   * will remain connected to the source, and new subscriptions to the result will be connected through that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnRefCountZero?: boolean | (() => ObservableInput<any>);\n}\n\nexport function share<T>(): MonoTypeOperatorFunction<T>;\n\nexport function share<T>(options: ShareConfig<T>): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for `multicast(() => new Subject()), refCount()`.\n *\n * The subscription to the underlying source Observable can be reset (unsubscribe and resubscribe for new subscribers),\n * if the subscriber count to the shared observable drops to 0, or if the source Observable errors or completes. It is\n * possible to use notifier factories for the resets to allow for behaviors like conditional or delayed resets. Please\n * note that resetting on error or complete of the source Observable does not behave like a transparent retry or restart\n * of the source because the error or complete will be forwarded to all subscribers and their subscription will be\n * closed. Only new subscribers after a reset on error or complete happened will cause a fresh subscription to the\n * source. To achieve transparent retries or restarts pipe the source through appropriate operators before sharing.\n *\n * ![](share.png)\n *\n * ## Example\n *\n * Generate new multicast Observable from the `source` Observable value\n *\n * ```ts\n * import { interval, tap, map, take, share } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   tap(x => console.log('Processing: ', x)),\n *   map(x => x * x),\n *   take(6),\n *   share()\n * );\n *\n * source.subscribe(x => console.log('subscription 1: ', x));\n * source.subscribe(x => console.log('subscription 2: ', x));\n *\n * // Logs:\n * // Processing: 0\n * // subscription 1: 0\n * // subscription 2: 0\n * // Processing: 1\n * // subscription 1: 1\n * // subscription 2: 1\n * // Processing: 2\n * // subscription 1: 4\n * // subscription 2: 4\n * // Processing: 3\n * // subscription 1: 9\n * // subscription 2: 9\n * // Processing: 4\n * // subscription 1: 16\n * // subscription 2: 16\n * // Processing: 5\n * // subscription 1: 25\n * // subscription 2: 25\n * ```\n *\n * ## Example with notifier factory: Delayed reset\n *\n * ```ts\n * import { interval, take, share, timer } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   take(3),\n *   share({\n *     resetOnRefCountZero: () => timer(1000)\n *   })\n * );\n *\n * const subscriptionOne = source.subscribe(x => console.log('subscription 1: ', x));\n * setTimeout(() => subscriptionOne.unsubscribe(), 1300);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 2: ', x)), 1700);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 3: ', x)), 5000);\n *\n * // Logs:\n * // subscription 1:  0\n * // (subscription 1 unsubscribes here)\n * // (subscription 2 subscribes here ~400ms later, source was not reset)\n * // subscription 2:  1\n * // subscription 2:  2\n * // (subscription 2 unsubscribes here)\n * // (subscription 3 subscribes here ~2000ms later, source did reset before)\n * // subscription 3:  0\n * // subscription 3:  1\n * // subscription 3:  2\n * ```\n *\n * @see {@link shareReplay}\n *\n * @return A function that returns an Observable that mirrors the source.\n */\nexport function share<T>(options: ShareConfig<T> = {}): MonoTypeOperatorFunction<T> {\n  const { connector = () => new Subject<T>(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options;\n  // It's necessary to use a wrapper here, as the _operator_ must be\n  // referentially transparent. Otherwise, it cannot be used in calls to the\n  // static `pipe` function - to create a partial pipeline.\n  //\n  // The _operator function_ - the function returned by the _operator_ - will\n  // not be referentially transparent - as it shares its source - but the\n  // _operator function_ is called when the complete pipeline is composed via a\n  // call to a source observable's `pipe` method - not when the static `pipe`\n  // function is called.\n  return (wrapperSource) => {\n    let connection: SafeSubscriber<T> | undefined;\n    let resetConnection: Subscription | undefined;\n    let subject: SubjectLike<T> | undefined;\n    let refCount = 0;\n    let hasCompleted = false;\n    let hasErrored = false;\n\n    const cancelReset = () => {\n      resetConnection?.unsubscribe();\n      resetConnection = undefined;\n    };\n    // Used to reset the internal state to a \"cold\"\n    // state, as though it had never been subscribed to.\n    const reset = () => {\n      cancelReset();\n      connection = subject = undefined;\n      hasCompleted = hasErrored = false;\n    };\n    const resetAndUnsubscribe = () => {\n      // We need to capture the connection before\n      // we reset (if we need to reset).\n      const conn = connection;\n      reset();\n      conn?.unsubscribe();\n    };\n\n    return operate<T, T>((source, subscriber) => {\n      refCount++;\n      if (!hasErrored && !hasCompleted) {\n        cancelReset();\n      }\n\n      // Create the subject if we don't have one yet. Grab a local reference to\n      // it as well, which avoids non-null assertions when using it and, if we\n      // connect to it now, then error/complete need a reference after it was\n      // reset.\n      const dest = (subject = subject ?? connector());\n\n      // Add the finalization directly to the subscriber - instead of returning it -\n      // so that the handling of the subscriber's unsubscription will be wired\n      // up _before_ the subscription to the source occurs. This is done so that\n      // the assignment to the source connection's `closed` property will be seen\n      // by synchronous firehose sources.\n      subscriber.add(() => {\n        refCount--;\n\n        // If we're resetting on refCount === 0, and it's 0, we only want to do\n        // that on \"unsubscribe\", really. Resetting on error or completion is a different\n        // configuration.\n        if (refCount === 0 && !hasErrored && !hasCompleted) {\n          resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n        }\n      });\n\n      // The following line adds the subscription to the subscriber passed.\n      // Basically, `subscriber === dest.subscribe(subscriber)` is `true`.\n      dest.subscribe(subscriber);\n\n      if (\n        !connection &&\n        // Check this shareReplay is still activate - it can be reset to 0\n        // and be \"unsubscribed\" _before_ it actually subscribes.\n        // If we were to subscribe then, it'd leak and get stuck.\n        refCount > 0\n      ) {\n        // We need to create a subscriber here - rather than pass an observer and\n        // assign the returned subscription to connection - because it's possible\n        // for reentrant subscriptions to the shared observable to occur and in\n        // those situations we want connection to be already-assigned so that we\n        // don't create another connection to the source.\n        connection = new SafeSubscriber({\n          next: (value) => dest.next(value),\n          error: (err) => {\n            hasErrored = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnError, err);\n            dest.error(err);\n          },\n          complete: () => {\n            hasCompleted = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnComplete);\n            dest.complete();\n          },\n        });\n        innerFrom(source).subscribe(connection);\n      }\n    })(wrapperSource);\n  };\n}\n\nfunction handleReset<T extends unknown[] = never[]>(\n  reset: () => void,\n  on: boolean | ((...args: T) => ObservableInput<any>),\n  ...args: T\n): Subscription | undefined {\n  if (on === true) {\n    reset();\n    return;\n  }\n\n  if (on === false) {\n    return;\n  }\n\n  const onSubscriber = new SafeSubscriber({\n    next: () => {\n      onSubscriber.unsubscribe();\n      reset();\n    },\n  });\n\n  return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n", "import { ReplaySubject } from '../ReplaySubject';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { share } from './share';\n\nexport interface ShareReplayConfig {\n  bufferSize?: number;\n  windowTime?: number;\n  refCount: boolean;\n  scheduler?: SchedulerLike;\n}\n\nexport function shareReplay<T>(config: ShareReplayConfig): MonoTypeOperatorFunction<T>;\nexport function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;\n\n/**\n * Share source and replay specified number of emissions on subscription.\n *\n * This operator is a specialization of `replay` that connects to a source observable\n * and multicasts through a `ReplaySubject` constructed with the specified arguments.\n * A successfully completed source will stay cached in the `shareReplay`ed observable forever,\n * but an errored source can be retried.\n *\n * ## Why use `shareReplay`?\n *\n * You generally want to use `shareReplay` when you have side-effects or taxing computations\n * that you do not wish to be executed amongst multiple subscribers.\n * It may also be valuable in situations where you know you will have late subscribers to\n * a stream that need access to previously emitted values.\n * This ability to replay values on subscription is what differentiates {@link share} and `shareReplay`.\n *\n * ## Reference counting\n *\n * By default `shareReplay` will use `refCount` of false, meaning that it will _not_ unsubscribe the\n * source when the reference counter drops to zero, i.e. the inner `ReplaySubject` will _not_ be unsubscribed\n * (and potentially run for ever).\n * This is the default as it is expected that `shareReplay` is often used to keep around expensive to setup\n * observables which we want to keep running instead of having to do the expensive setup again.\n *\n * As of RXJS version 6.4.0 a new overload signature was added to allow for manual control over what\n * happens when the operators internal reference counter drops to zero.\n * If `refCount` is true, the source will be unsubscribed from once the reference count drops to zero, i.e.\n * the inner `ReplaySubject` will be unsubscribed. All new subscribers will receive value emissions from a\n * new `ReplaySubject` which in turn will cause a new subscription to the source observable.\n *\n * ## Examples\n *\n * Example with a third subscriber coming late to the party\n *\n * ```ts\n * import { interval, take, shareReplay } from 'rxjs';\n *\n * const shared$ = interval(2000).pipe(\n *   take(6),\n *   shareReplay(3)\n * );\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * setTimeout(() => {\n *   shared$.subscribe(y => console.log('sub C: ', y));\n * }, 11000);\n *\n * // Logs:\n * // (after ~2000 ms)\n * // sub A: 0\n * // sub B: 0\n * // (after ~4000 ms)\n * // sub A: 1\n * // sub B: 1\n * // (after ~6000 ms)\n * // sub A: 2\n * // sub B: 2\n * // (after ~8000 ms)\n * // sub A: 3\n * // sub B: 3\n * // (after ~10000 ms)\n * // sub A: 4\n * // sub B: 4\n * // (after ~11000 ms, sub C gets the last 3 values)\n * // sub C: 2\n * // sub C: 3\n * // sub C: 4\n * // (after ~12000 ms)\n * // sub A: 5\n * // sub B: 5\n * // sub C: 5\n * ```\n *\n * Example for `refCount` usage\n *\n * ```ts\n * import { Observable, tap, interval, shareReplay, take } from 'rxjs';\n *\n * const log = <T>(name: string, source: Observable<T>) => source.pipe(\n *   tap({\n *     subscribe: () => console.log(`${ name }: subscribed`),\n *     next: value => console.log(`${ name }: ${ value }`),\n *     complete: () => console.log(`${ name }: completed`),\n *     finalize: () => console.log(`${ name }: unsubscribed`)\n *   })\n * );\n *\n * const obs$ = log('source', interval(1000));\n *\n * const shared$ = log('shared', obs$.pipe(\n *   shareReplay({ bufferSize: 1, refCount: true }),\n *   take(2)\n * ));\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * // PRINTS:\n * // shared: subscribed <-- reference count = 1\n * // source: subscribed\n * // shared: subscribed <-- reference count = 2\n * // source: 0\n * // shared: 0\n * // sub A: 0\n * // shared: 0\n * // sub B: 0\n * // source: 1\n * // shared: 1\n * // sub A: 1\n * // shared: completed <-- take(2) completes the subscription for sub A\n * // shared: unsubscribed <-- reference count = 1\n * // shared: 1\n * // sub B: 1\n * // shared: completed <-- take(2) completes the subscription for sub B\n * // shared: unsubscribed <-- reference count = 0\n * // source: unsubscribed <-- replaySubject unsubscribes from source observable because the reference count dropped to 0 and refCount is true\n *\n * // In case of refCount being false, the unsubscribe is never called on the source and the source would keep on emitting, even if no subscribers\n * // are listening.\n * // source: 2\n * // source: 3\n * // source: 4\n * // ...\n * ```\n *\n * @see {@link publish}\n * @see {@link share}\n * @see {@link publishReplay}\n *\n * @param configOrBufferSize Maximum element count of the replay buffer or {@link ShareReplayConfig configuration}\n * object.\n * @param windowTime Maximum time length of the replay buffer in milliseconds.\n * @param scheduler Scheduler where connected observers within the selector function\n * will be invoked on.\n * @return A function that returns an Observable sequence that contains the\n * elements of a sequence produced by multicasting the source sequence within a\n * selector function.\n */\nexport function shareReplay<T>(\n  configOrBufferSize?: ShareReplayConfig | number,\n  windowTime?: number,\n  scheduler?: SchedulerLike\n): MonoTypeOperatorFunction<T> {\n  let bufferSize: number;\n  let refCount = false;\n  if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n    ({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize);\n  } else {\n    bufferSize = (configOrBufferSize ?? Infinity) as number;\n  }\n  return share<T>({\n    connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n    resetOnError: true,\n    resetOnComplete: false,\n    resetOnRefCountZero: refCount,\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { filter } from './filter';\n\n/**\n * Returns an Observable that skips the first `count` items emitted by the source Observable.\n *\n * ![](skip.png)\n *\n * Skips the values until the sent notifications are equal or less than provided skip count. It raises\n * an error if skip count is equal or more than the actual number of emits and source raises an error.\n *\n * ## Example\n *\n * Skip the values before the emission\n *\n * ```ts\n * import { interval, skip } from 'rxjs';\n *\n * // emit every half second\n * const source = interval(500);\n * // skip the first 10 emitted values\n * const result = source.pipe(skip(10));\n *\n * result.subscribe(value => console.log(value));\n * // output: 10...11...12...13...\n * ```\n *\n * @see {@link last}\n * @see {@link skipWhile}\n * @see {@link skipUntil}\n * @see {@link skipLast}\n *\n * @param {Number} count - The number of times, items emitted by source Observable should be skipped.\n * @return A function that returns an Observable that skips the first `count`\n * values emitted by the source Observable.\n */\nexport function skip<T>(count: number): MonoTypeOperatorFunction<T> {\n  return filter((_, index) => count <= index);\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable\n * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP\n * requests or waiting for specific times to pass by.\n *\n * ![](skipUntil.png)\n *\n * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted\n * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator\n * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It\n * will never let the *source* observable emit any values if the `notifier` completes or throws an error without\n * emitting a value before.\n *\n * ## Example\n *\n * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere\n * within the page\n *\n * ```ts\n * import { interval, fromEvent, skipUntil } from 'rxjs';\n *\n * const intervalObservable = interval(1000);\n * const click = fromEvent(document, 'click');\n *\n * const emitAfterClick = intervalObservable.pipe(\n *   skipUntil(click)\n * );\n * // clicked at 4.6s. output: 5...6...7...8........ or\n * // clicked at 7.3s. output: 8...9...10..11.......\n * emitAfterClick.subscribe(value => console.log(value));\n * ```\n *\n * @see {@link last}\n * @see {@link skip}\n * @see {@link skipWhile}\n * @see {@link skipLast}\n *\n * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to\n * be mirrored by the resulting Observable.\n * @return A function that returns an Observable that skips items from the\n * source Observable until the `notifier` Observable emits an item, then emits the\n * remaining items.\n */\nexport function skipUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let taking = false;\n\n    const skipSubscriber = createOperatorSubscriber(\n      subscriber,\n      () => {\n        skipSubscriber?.unsubscribe();\n        taking = true;\n      },\n      noop\n    );\n\n    innerFrom(notifier).subscribe(skipSubscriber);\n\n    source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value)));\n  });\n}\n", "import { concat } from '../observable/concat';\nimport { OperatorFunction, SchedulerLike, ValueFromArray } from '../types';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function startWith<T>(value: null): OperatorFunction<T, T | null>;\nexport function startWith<T>(value: undefined): OperatorFunction<T, T | undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function startWith<T, A extends readonly unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\nexport function startWith<T, A extends readonly unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that, at the moment of subscription, will synchronously emit all\n * values provided to this operator, then subscribe to the source and mirror all of its emissions\n * to subscribers.\n *\n * This is a useful way to know when subscription has occurred on an existing observable.\n *\n * <span class=\"informal\">First emits its arguments in order, and then any\n * emissions from the source.</span>\n *\n * ![](startWith.png)\n *\n * ## Examples\n *\n * Emit a value when a timer starts.\n *\n * ```ts\n * import { timer, map, startWith } from 'rxjs';\n *\n * timer(1000)\n *   .pipe(\n *     map(() => 'timer emit'),\n *     startWith('timer start')\n *   )\n *   .subscribe(x => console.log(x));\n *\n * // results:\n * // 'timer start'\n * // 'timer emit'\n * ```\n *\n * @param values Items you want the modified Observable to emit first.\n * @return A function that returns an Observable that synchronously emits\n * provided values before subscribing to the source Observable.\n *\n * @see {@link endWith}\n * @see {@link finalize}\n * @see {@link concat}\n */\nexport function startWith<T, D>(...values: D[]): OperatorFunction<T, T | D> {\n  const scheduler = popScheduler(values);\n  return operate((source, subscriber) => {\n    // Here we can't pass `undefined` as a scheduler, because if we did, the\n    // code inside of `concat` would be confused by the `undefined`, and treat it\n    // like an invalid observable. So we have to split it two different ways.\n    (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n  });\n}\n", "import { Subscriber } from '../Subscriber';\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/* tslint:disable:max-line-length */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switchAll}.</span>\n *\n * ![](switchMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * ## Example\n *\n * Generate new Observable according to source Observable values\n *\n * ```ts\n * import { of, switchMap } from 'rxjs';\n *\n * const switched = of(1, 2, 3).pipe(switchMap(x => of(x, x ** 2, x ** 3)));\n * switched.subscribe(x => console.log(x));\n * // outputs\n * // 1\n * // 1\n * // 1\n * // 2\n * // 4\n * // 8\n * // 3\n * // 9\n * // 27\n * ```\n *\n * Restart an interval Observable on every click event\n *\n * ```ts\n * import { fromEvent, switchMap, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(switchMap(() => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switchAll}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and taking\n * only the values from the most recently projected inner Observable.\n */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  return operate((source, subscriber) => {\n    let innerSubscriber: Subscriber<ObservedValueOf<O>> | null = null;\n    let index = 0;\n    // Whether or not the source subscription has completed\n    let isComplete = false;\n\n    // We only complete the result if the source is complete AND we don't have an active inner subscription.\n    // This is called both when the source completes and when the inners complete.\n    const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Cancel the previous inner subscription if there was one\n          innerSubscriber?.unsubscribe();\n          let innerIndex = 0;\n          const outerIndex = index++;\n          // Start the next inner subscription\n          innerFrom(project(value, outerIndex)).subscribe(\n            (innerSubscriber = createOperatorSubscriber(\n              subscriber,\n              // When we get a new inner value, next it through. Note that this is\n              // handling the deprecate result selector here. This is because with this architecture\n              // it ends up being smaller than using the map operator.\n              (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue),\n              () => {\n                // The inner has completed. Null out the inner subscriber to\n                // free up memory and to signal that we have no inner subscription\n                // currently.\n                innerSubscriber = null!;\n                checkComplete();\n              }\n            ))\n          );\n        },\n        () => {\n          isComplete = true;\n          checkComplete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits a value. Then, it completes.</span>\n *\n * ![](takeUntil.png)\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value, the output Observable stops mirroring the source Observable\n * and completes. If the `notifier` doesn't emit any value and completes\n * then `takeUntil` will pass all values.\n *\n * ## Example\n *\n * Tick every second until the first click happens\n *\n * ```ts\n * import { interval, fromEvent, takeUntil } from 'rxjs';\n *\n * const source = interval(1000);\n * const clicks = fromEvent(document, 'click');\n * const result = source.pipe(takeUntil(clicks));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return A function that returns an Observable that emits the values from the\n * source Observable until `notifier` emits its first value.\n */\nexport function takeUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n    !subscriber.closed && source.subscribe(subscriber);\n  });\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: true): MonoTypeOperatorFunction<T>;\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: false): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S, inclusive: false): OperatorFunction<T, S>;\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive?: boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * ![](takeWhile.png)\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * ## Example\n *\n * Emit click events only while the clientX property is greater than 200\n *\n * ```ts\n * import { fromEvent, takeWhile } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const result = clicks.pipe(takeWhile(ev => ev.clientX > 200));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @param {boolean} inclusive When set to `true` the value that caused\n * `predicate` to return `false` will also be emitted.\n * @return A function that returns an Observable that emits values from the\n * source Observable so long as each value satisfies the condition defined by\n * the `predicate`, then completes.\n */\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive = false): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let index = 0;\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        const result = predicate(value, index++);\n        (result || inclusive) && subscriber.next(value);\n        !result && subscriber.complete();\n      })\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, Observer } from '../types';\nimport { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\n\n/**\n * An extension to the {@link Observer} interface used only by the {@link tap} operator.\n *\n * It provides a useful set of callbacks a user can register to do side-effects in\n * cases other than what the usual {@link Observer} callbacks are\n * ({@link guide/glossary-and-semantics#next next},\n * {@link guide/glossary-and-semantics#error error} and/or\n * {@link guide/glossary-and-semantics#complete complete}).\n *\n * ## Example\n *\n * ```ts\n * import { fromEvent, switchMap, tap, interval, take } from 'rxjs';\n *\n * const source$ = fromEvent(document, 'click');\n * const result$ = source$.pipe(\n *   switchMap((_, i) => i % 2 === 0\n *     ? fromEvent(document, 'mousemove').pipe(\n *         tap({\n *           subscribe: () => console.log('Subscribed to the mouse move events after click #' + i),\n *           unsubscribe: () => console.log('Mouse move events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('Mouse move events #' + i + ' finalized')\n *         })\n *       )\n *     : interval(1_000).pipe(\n *         take(5),\n *         tap({\n *           subscribe: () => console.log('Subscribed to the 1-second interval events after click #' + i),\n *           unsubscribe: () => console.log('1-second interval events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('1-second interval events #' + i + ' finalized')\n *         })\n *       )\n *   )\n * );\n *\n * const subscription = result$.subscribe({\n *   next: console.log\n * });\n *\n * setTimeout(() => {\n *   console.log('Unsubscribe after 60 seconds');\n *   subscription.unsubscribe();\n * }, 60_000);\n * ```\n */\nexport interface TapObserver<T> extends Observer<T> {\n  /**\n   * The callback that `tap` operator invokes at the moment when the source Observable\n   * gets subscribed to.\n   */\n  subscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when an explicit\n   * {@link guide/glossary-and-semantics#unsubscription unsubscribe} happens. It won't get invoked on\n   * `error` or `complete` events.\n   */\n  unsubscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when any kind of\n   * {@link guide/glossary-and-semantics#finalization finalization} happens - either when\n   * the source Observable `error`s or `complete`s or when it gets explicitly unsubscribed\n   * by the user. There is no difference in using this callback or the {@link finalize}\n   * operator, but if you're already using `tap` operator, you can use this callback\n   * instead. You'd get the same result in either case.\n   */\n  finalize: () => void;\n}\nexport function tap<T>(observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void)): MonoTypeOperatorFunction<T>;\n/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\nexport function tap<T>(\n  next?: ((value: T) => void) | null,\n  error?: ((error: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Used to perform side-effects for notifications from the source observable\n *\n * <span class=\"informal\">Used when you want to affect outside state with a notification without altering the notification</span>\n *\n * ![](tap.png)\n *\n * Tap is designed to allow the developer a designated place to perform side effects. While you _could_ perform side-effects\n * inside of a `map` or a `mergeMap`, that would make their mapping functions impure, which isn't always a big deal, but will\n * make it so you can't do things like memoize those functions. The `tap` operator is designed solely for such side-effects to\n * help you remove side-effects from other operations.\n *\n * For any notification, next, error, or complete, `tap` will call the appropriate callback you have provided to it, via a function\n * reference, or a partial observer, then pass that notification down the stream.\n *\n * The observable returned by `tap` is an exact mirror of the source, with one exception: Any error that occurs -- synchronously -- in a handler\n * provided to `tap` will be emitted as an error from the returned observable.\n *\n * > Be careful! You can mutate objects as they pass through the `tap` operator's handlers.\n *\n * The most common use of `tap` is actually for debugging. You can place a `tap(console.log)` anywhere\n * in your observable `pipe`, log out the notifications as they are emitted by the source returned by the previous\n * operation.\n *\n * ## Examples\n *\n * Check a random number before it is handled. Below is an observable that will use a random number between 0 and 1,\n * and emit `'big'` or `'small'` depending on the size of that number. But we wanted to log what the original number\n * was, so we have added a `tap(console.log)`.\n *\n * ```ts\n * import { of, tap, map } from 'rxjs';\n *\n * of(Math.random()).pipe(\n *   tap(console.log),\n *   map(n => n > 0.5 ? 'big' : 'small')\n * ).subscribe(console.log);\n * ```\n *\n * Using `tap` to analyze a value and force an error. Below is an observable where in our system we only\n * want to emit numbers 3 or less we get from another source. We can force our observable to error\n * using `tap`.\n *\n * ```ts\n * import { of, tap } from 'rxjs';\n *\n * const source = of(1, 2, 3, 4, 5);\n *\n * source.pipe(\n *   tap(n => {\n *     if (n > 3) {\n *       throw new TypeError(`Value ${ n } is greater than 3`);\n *     }\n *   })\n * )\n * .subscribe({ next: console.log, error: err => console.log(err.message) });\n * ```\n *\n * We want to know when an observable completes before moving on to the next observable. The system\n * below will emit a random series of `'X'` characters from 3 different observables in sequence. The\n * only way we know when one observable completes and moves to the next one, in this case, is because\n * we have added a `tap` with the side effect of logging to console.\n *\n * ```ts\n * import { of, concatMap, interval, take, map, tap } from 'rxjs';\n *\n * of(1, 2, 3).pipe(\n *   concatMap(n => interval(1000).pipe(\n *     take(Math.round(Math.random() * 10)),\n *     map(() => 'X'),\n *     tap({ complete: () => console.log(`Done with ${ n }`) })\n *   ))\n * )\n * .subscribe(console.log);\n * ```\n *\n * @see {@link finalize}\n * @see {@link TapObserver}\n *\n * @param observerOrNext A next handler or partial observer\n * @param error An error handler\n * @param complete A completion handler\n * @return A function that returns an Observable identical to the source, but\n * runs the specified Observer or callback(s) for each item.\n */\nexport function tap<T>(\n  observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void) | null,\n  error?: ((e: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T> {\n  // We have to check to see not only if next is a function,\n  // but if error or complete were passed. This is because someone\n  // could technically call tap like `tap(null, fn)` or `tap(null, null, fn)`.\n  const tapObserver =\n    isFunction(observerOrNext) || error || complete\n      ? // tslint:disable-next-line: no-object-literal-type-assertion\n        ({ next: observerOrNext as Exclude<typeof observerOrNext, Partial<TapObserver<T>>>, error, complete } as Partial<TapObserver<T>>)\n      : observerOrNext;\n\n  return tapObserver\n    ? operate((source, subscriber) => {\n        tapObserver.subscribe?.();\n        let isUnsub = true;\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              tapObserver.next?.(value);\n              subscriber.next(value);\n            },\n            () => {\n              isUnsub = false;\n              tapObserver.complete?.();\n              subscriber.complete();\n            },\n            (err) => {\n              isUnsub = false;\n              tapObserver.error?.(err);\n              subscriber.error(err);\n            },\n            () => {\n              if (isUnsub) {\n                tapObserver.unsubscribe?.();\n              }\n              tapObserver.finalize?.();\n            }\n          )\n        );\n      })\n    : // Tap was called with no valid tap observer or handler\n      // (e.g. `tap(null, null, null)` or `tap(null)` or `tap()`)\n      // so we're going to just mirror the source.\n      identity;\n}\n", "import { Subscription } from '../Subscription';\n\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\n\n/**\n * An object interface used by {@link throttle} or {@link throttleTime} that ensure\n * configuration options of these operators.\n *\n * @see {@link throttle}\n * @see {@link throttleTime}\n */\nexport interface ThrottleConfig {\n  /**\n   * If `true`, the resulting Observable will emit the first value from the source\n   * Observable at the **start** of the \"throttling\" process (when starting an\n   * internal timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the first value from the source Observable at the\n   * start of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `true`.\n   */\n  leading?: boolean;\n  /**\n   * If `true`, the resulting Observable will emit the last value from the source\n   * Observable at the **end** of the \"throttling\" process (when ending an internal\n   * timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the last value from the source Observable at the\n   * end of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `false`.\n   */\n  trailing?: boolean;\n}\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](throttle.svg)\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttle, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttle(() => interval(1000)));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param durationSelector A function that receives a value from the source\n * Observable, for computing the silencing duration for each source value,\n * returned as an `ObservableInput`.\n * @param config A configuration object to define `leading` and `trailing`\n * behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttle<T>(durationSelector: (value: T) => ObservableInput<any>, config?: ThrottleConfig): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    const { leading = true, trailing = false } = config ?? {};\n    let hasValue = false;\n    let sendValue: T | null = null;\n    let throttled: Subscription | null = null;\n    let isComplete = false;\n\n    const endThrottling = () => {\n      throttled?.unsubscribe();\n      throttled = null;\n      if (trailing) {\n        send();\n        isComplete && subscriber.complete();\n      }\n    };\n\n    const cleanupThrottling = () => {\n      throttled = null;\n      isComplete && subscriber.complete();\n    };\n\n    const startThrottle = (value: T) =>\n      (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));\n\n    const send = () => {\n      if (hasValue) {\n        // Ensure we clear out our value and hasValue flag\n        // before we emit, otherwise reentrant code can cause\n        // issues here.\n        hasValue = false;\n        const value = sendValue!;\n        sendValue = null;\n        // Emit the value.\n        subscriber.next(value);\n        !isComplete && startThrottle(value);\n      }\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        // Regarding the presence of throttled.closed in the following\n        // conditions, if a synchronous duration selector is specified - weird,\n        // but legal - an already-closed subscription will be assigned to\n        // throttled, so the subscription's closed property needs to be checked,\n        // too.\n        (value) => {\n          hasValue = true;\n          sendValue = value;\n          !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n        },\n        () => {\n          isComplete = true;\n          !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { throttle, ThrottleConfig } from './throttle';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { timer } from '../observable/timer';\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * ![](throttleTime.png)\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link SchedulerLike} for managing timers.\n *\n * ## Examples\n *\n * ### Limit click rate\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttleTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttleTime(1000));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param scheduler The {@link SchedulerLike} to use for\n * managing the timers that handle the throttling. Defaults to {@link asyncScheduler}.\n * @param config A configuration object to define `leading` and\n * `trailing` behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttleTime<T>(\n  duration: number,\n  scheduler: SchedulerLike = asyncScheduler,\n  config?: ThrottleConfig\n): MonoTypeOperatorFunction<T> {\n  const duration$ = timer(duration, scheduler);\n  return throttle(() => duration$, config);\n}\n", "import { OperatorFunction, ObservableInputTuple } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\n\nexport function withLatestFrom<T, O extends unknown[]>(...inputs: [...ObservableInputTuple<O>]): OperatorFunction<T, [T, ...O]>;\n\nexport function withLatestFrom<T, O extends unknown[], R>(\n  ...inputs: [...ObservableInputTuple<O>, (...value: [T, ...O]) => R]\n): OperatorFunction<T, R>;\n\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * ![](withLatestFrom.png)\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * ## Example\n *\n * On every click event, emit an array with the latest timer event plus the click event\n *\n * ```ts\n * import { fromEvent, interval, withLatestFrom } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const result = clicks.pipe(withLatestFrom(timer));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatest}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.pipe(withLatestFrom(b, c), map(([a1, b1, c1]) => a1 + b1 + c1))`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return A function that returns an Observable of projected values from the\n * most recent values from each input Observable, or an array of the most\n * recent values from each input Observable.\n */\nexport function withLatestFrom<T, R>(...inputs: any[]): OperatorFunction<T, R | any[]> {\n  const project = popResultSelector(inputs) as ((...args: any[]) => R) | undefined;\n\n  return operate((source, subscriber) => {\n    const len = inputs.length;\n    const otherValues = new Array(len);\n    // An array of whether or not the other sources have emitted. Matched with them by index.\n    // TODO: At somepoint, we should investigate the performance implications here, and look\n    // into using a `Set()` and checking the `size` to see if we're ready.\n    let hasValue = inputs.map(() => false);\n    // Flipped true when we have at least one value from all other sources and\n    // we are ready to start emitting values.\n    let ready = false;\n\n    // Other sources. Note that here we are not checking `subscriber.closed`,\n    // this causes all inputs to be subscribed to, even if nothing can be emitted\n    // from them. This is an important distinction because subscription constitutes\n    // a side-effect.\n    for (let i = 0; i < len; i++) {\n      innerFrom(inputs[i]).subscribe(\n        createOperatorSubscriber(\n          subscriber,\n          (value) => {\n            otherValues[i] = value;\n            if (!ready && !hasValue[i]) {\n              // If we're not ready yet, flag to show this observable has emitted.\n              hasValue[i] = true;\n              // Intentionally terse code.\n              // If all of our other observables have emitted, set `ready` to `true`,\n              // so we know we can start emitting values, then clean up the `hasValue` array,\n              // because we don't need it anymore.\n              (ready = hasValue.every(identity)) && (hasValue = null!);\n            }\n          },\n          // Completing one of the other sources has\n          // no bearing on the completion of our result.\n          noop\n        )\n      );\n    }\n\n    // Source subscription\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        if (ready) {\n          // We have at least one value from the other sources. Go ahead and emit.\n          const values = [value, ...otherValues];\n          subscriber.next(project ? project(...values) : values);\n        }\n      })\n    );\n  });\n}\n", "import { zip as zipStatic } from '../observable/zip';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { operate } from '../util/lift';\n\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  otherInputsAndProject: [...ObservableInputTuple<A>],\n  project: (...values: Cons<T, A>) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  ...otherInputsAndProject: [...ObservableInputTuple<A>, (...values: Cons<T, A>) => R]\n): OperatorFunction<T, R>;\n\n/**\n * @deprecated Replaced with {@link zipWith}. Will be removed in v8.\n */\nexport function zip<T, R>(...sources: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, any> {\n  return operate((source, subscriber) => {\n    zipStatic(source as ObservableInput<any>, ...(sources as Array<ObservableInput<any>>)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { zip } from './zip';\n\n/**\n * Subscribes to the source, and the observable inputs provided as arguments, and combines their values, by index, into arrays.\n *\n * What is meant by \"combine by index\": The first value from each will be made into a single array, then emitted,\n * then the second value from each will be combined into a single array and emitted, then the third value\n * from each will be combined into a single array and emitted, and so on.\n *\n * This will continue until it is no longer able to combine values of the same index into an array.\n *\n * After the last value from any one completed source is emitted in an array, the resulting observable will complete,\n * as there is no way to continue \"zipping\" values together by index.\n *\n * Use-cases for this operator are limited. There are memory concerns if one of the streams is emitting\n * values at a much faster rate than the others. Usage should likely be limited to streams that emit\n * at a similar pace, or finite streams of known length.\n *\n * In many cases, authors want `combineLatestWith` and not `zipWith`.\n *\n * @param otherInputs other observable inputs to collate values from.\n * @return A function that returns an Observable that emits items by index\n * combined from the source Observable and provided Observables, in form of an\n * array.\n */\nexport function zipWith<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>> {\n  return zip(...otherInputs);\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ReplaySubject,\n  Subject,\n  fromEvent\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch document\n *\n * Documents are implemented as subjects, so all downstream observables are\n * automatically updated when a new document is emitted.\n *\n * @returns Document subject\n */\nexport function watchDocument(): Subject<Document> {\n  const document$ = new ReplaySubject<Document>(1)\n  fromEvent(document, \"DOMContentLoaded\", { once: true })\n    .subscribe(() => document$.next(document))\n\n  /* Return document */\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve all elements matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getElements<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T][]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T[]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T[] {\n  return Array.from(node.querySelectorAll<T>(selector))\n}\n\n/**\n * Retrieve an element matching a query selector or throw a reference error\n *\n * Note that this function assumes that the element is present. If unsure if an\n * element is existent, use the `getOptionalElement` function instead.\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T]\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T {\n  const el = getOptionalElement<T>(selector, node)\n  if (typeof el === \"undefined\")\n    throw new ReferenceError(\n      `Missing element: expected \"${selector}\" to be present`\n    )\n\n  /* Return element */\n  return el\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Retrieve an optional element matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element or nothing\n */\nexport function getOptionalElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T] | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T | undefined {\n  return node.querySelector<T>(selector) || undefined\n}\n\n/**\n * Retrieve the currently active element\n *\n * @returns Element or nothing\n */\nexport function getActiveElement(): HTMLElement | undefined {\n  return (\n    document.activeElement?.shadowRoot?.activeElement as HTMLElement ??\n    document.activeElement as HTMLElement ??\n    undefined\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounceTime,\n  distinctUntilChanged,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Focus observable\n *\n * Previously, this observer used `focus` and `blur` events to determine whether\n * an element is focused, but this doesn't work if there are focusable elements\n * within the elements itself. A better solutions are `focusin` and `focusout`\n * events, which bubble up the tree and allow for more fine-grained control.\n *\n * `debounceTime` is necessary, because when a focus change happens inside an\n * element, the observable would first emit `false` and then `true` again.\n */\nconst observer$ = merge(\n  fromEvent(document.body, \"focusin\"),\n  fromEvent(document.body, \"focusout\")\n)\n  .pipe(\n    debounceTime(1),\n    startWith(undefined),\n    map(() => getActiveElement() || document.body),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element focus\n *\n * @param el - Element\n *\n * @returns Element focus observable\n */\nexport function watchElementFocus(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      map(active => el.contains(active)),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounceTime,\n  fromEvent,\n  identity,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element hover\n *\n * @param el - Element\n * @param duration - Debounce duration\n *\n * @returns Element hover observable\n */\nexport function watchElementHover(\n  el: HTMLElement, duration?: number\n): Observable<boolean> {\n  return merge(\n    fromEvent(el, \"mouseenter\").pipe(map(() => true)),\n    fromEvent(el, \"mouseleave\").pipe(map(() => false))\n  )\n    .pipe(\n      duration ? debounceTime(duration) : identity,\n      startWith(false)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.offsetLeft,\n    y: el.offsetTop\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(window, \"load\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementOffset(el)),\n      startWith(getElementOffset(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\nimport { ElementOffset } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content offset (= scroll offset)\n *\n * @param el - Element\n *\n * @returns Element content offset\n */\nexport function getElementContentOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.scrollLeft,\n    y: el.scrollTop\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element content offset\n *\n * @param el - Element\n *\n * @returns Element content offset observable\n */\nexport function watchElementContentOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(el, \"scroll\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementContentOffset(el)),\n      startWith(getElementContentOffset(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { JSX as JSXInternal } from \"preact\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * HTML attributes\n */\ntype Attributes =\n  & JSXInternal.HTMLAttributes\n  & JSXInternal.SVGAttributes\n  & Record<string, any>\n\n/**\n * Child element\n */\ntype Child =\n  | ChildNode\n  | HTMLElement\n  | Text\n  | string\n  | number\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Append a child node to an element\n *\n * @param el - Element\n * @param child - Child node(s)\n */\nfunction appendChild(el: HTMLElement, child: Child | Child[]): void {\n\n  /* Handle primitive types (including raw HTML) */\n  if (typeof child === \"string\" || typeof child === \"number\") {\n    el.innerHTML += child.toString()\n\n  /* Handle nodes */\n  } else if (child instanceof Node) {\n    el.appendChild(child)\n\n  /* Handle nested children */\n  } else if (Array.isArray(child)) {\n    for (const node of child)\n      appendChild(el, node)\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * JSX factory\n *\n * @template T - Element type\n *\n * @param tag - HTML tag\n * @param attributes - HTML attributes\n * @param children - Child elements\n *\n * @returns Element\n */\nexport function h<T extends keyof HTMLElementTagNameMap>(\n  tag: T, attributes?: Attributes | null, ...children: Child[]\n): HTMLElementTagNameMap[T]\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T {\n  const el = document.createElement(tag)\n\n  /* Set attributes, if any */\n  if (attributes)\n    for (const attr of Object.keys(attributes)) {\n      if (typeof attributes[attr] === \"undefined\")\n        continue\n\n      /* Set default attribute or boolean */\n      if (typeof attributes[attr] !== \"boolean\")\n        el.setAttribute(attr, attributes[attr])\n      else\n        el.setAttribute(attr, \"\")\n    }\n\n  /* Append child nodes */\n  for (const child of children)\n    appendChild(el, child)\n\n  /* Return element */\n  return el as T\n}\n\n/* ----------------------------------------------------------------------------\n * Namespace\n * ------------------------------------------------------------------------- */\n\nexport declare namespace h {\n  namespace JSX {\n    type Element = HTMLElement\n    type IntrinsicElements = JSXInternal.IntrinsicElements\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Round a number for display with repository facts\n *\n * This is a reverse-engineered version of GitHub's weird rounding algorithm\n * for stars, forks and all other numbers. While all numbers below `1,000` are\n * returned as-is, bigger numbers are converted to fixed numbers:\n *\n * - `1,049` => `1k`\n * - `1,050` => `1.1k`\n * - `1,949` => `1.9k`\n * - `1,950` => `2k`\n *\n * @param value - Original value\n *\n * @returns Rounded value\n */\nexport function round(value: number): string {\n  if (value > 999) {\n    const digits = +((value - 950) % 1000 > 99)\n    return `${((value + 0.000001) / 1000).toFixed(digits)}k`\n  } else {\n    return value.toString()\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  switchMap,\n  take,\n  throwError\n} from \"rxjs\"\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create and load a `script` element\n *\n * This function returns an observable that will emit when the script was\n * successfully loaded, or throw an error if it wasn't.\n *\n * @param src - Script URL\n *\n * @returns Script observable\n */\nexport function watchScript(src: string): Observable<void> {\n  const script = h(\"script\", { src })\n  return defer(() => {\n    document.head.appendChild(script)\n    return merge(\n      fromEvent(script, \"load\"),\n      fromEvent(script, \"error\")\n        .pipe(\n          switchMap(() => (\n            throwError(() => new ReferenceError(`Invalid script: ${src}`))\n          ))\n        )\n    )\n      .pipe(\n        map(() => undefined),\n        finalize(() => document.head.removeChild(script)),\n        take(1)\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"../../../script\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementSize {\n  width: number                        /* Element width */\n  height: number                       /* Element height */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Resize observer entry subject\n */\nconst entry$ = new Subject<ResizeObserverEntry>()\n\n/**\n * Resize observer observable\n *\n * This observable will create a `ResizeObserver` on the first subscription\n * and will automatically terminate it when there are no more subscribers.\n * It's quite important to centralize observation in a single `ResizeObserver`,\n * as the performance difference can be quite dramatic, as the link shows.\n *\n * If the browser doesn't have a `ResizeObserver` implementation available, a\n * polyfill is automatically downloaded from unpkg.com. This is also compatible\n * with the built-in privacy plugin, which will download the polyfill and put\n * it alongside the built site for self-hosting.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => (\n  typeof ResizeObserver === \"undefined\"\n    ? watchScript(\"https://unpkg.com/resize-observer-polyfill\")\n    : of(undefined)\n))\n  .pipe(\n    map(() => new ResizeObserver(entries => {\n      for (const entry of entries)\n        entry$.next(entry)\n    })),\n    switchMap(observer => merge(NEVER, of(observer))\n      .pipe(\n        finalize(() => observer.disconnect())\n      )\n    ),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element size\n *\n * @param el - Element\n *\n * @returns Element size\n */\nexport function getElementSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.offsetWidth,\n    height: el.offsetHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element size\n *\n * This function returns an observable that subscribes to a single internal\n * instance of `ResizeObserver` upon subscription, and emit resize events until\n * termination. Note that this function should not be called with the same\n * element twice, as the first unsubscription will terminate observation.\n *\n * Sadly, we can't use the `DOMRect` objects returned by the observer, because\n * we need the emitted values to be consistent with `getElementSize`, which will\n * return the used values (rounded) and not actual values (unrounded). Thus, we\n * use the `offset*` properties. See the linked GitHub issue.\n *\n * @see https://bit.ly/3m0k3he - GitHub issue\n *\n * @param el - Element\n *\n * @returns Element size observable\n */\nexport function watchElementSize(\n  el: HTMLElement\n): Observable<ElementSize> {\n  return observer$\n    .pipe(\n      tap(observer => observer.observe(el)),\n      switchMap(observer => entry$\n        .pipe(\n          filter(({ target }) => target === el),\n          finalize(() => observer.unobserve(el)),\n          map(() => getElementSize(el))\n        )\n      ),\n      startWith(getElementSize(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ElementSize } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content size (= scroll width and height)\n *\n * @param el - Element\n *\n * @returns Element content size\n */\nexport function getElementContentSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.scrollWidth,\n    height: el.scrollHeight\n  }\n}\n\n/**\n * Retrieve the overflowing container of an element, if any\n *\n * @param el - Element\n *\n * @returns Overflowing container or nothing\n */\nexport function getElementContainer(\n  el: HTMLElement\n): HTMLElement | undefined {\n  let parent = el.parentElement\n  while (parent)\n    if (\n      el.scrollWidth  <= parent.scrollWidth &&\n      el.scrollHeight <= parent.scrollHeight\n    )\n      parent = (el = parent).parentElement\n    else\n      break\n\n  /* Return overflowing container */\n  return parent ? el : undefined\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElementContentSize,\n  getElementSize,\n  watchElementContentOffset\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Intersection observer entry subject\n */\nconst entry$ = new Subject<IntersectionObserverEntry>()\n\n/**\n * Intersection observer observable\n *\n * This observable will create an `IntersectionObserver` on first subscription\n * and will automatically terminate it when there are no more subscribers.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => of(\n  new IntersectionObserver(entries => {\n    for (const entry of entries)\n      entry$.next(entry)\n  }, {\n    threshold: 0\n  })\n))\n  .pipe(\n    switchMap(observer => merge(NEVER, of(observer))\n      .pipe(\n        finalize(() => observer.disconnect())\n      )\n    ),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element visibility\n *\n * @param el - Element\n *\n * @returns Element visibility observable\n */\nexport function watchElementVisibility(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      tap(observer => observer.observe(el)),\n      switchMap(observer => entry$\n        .pipe(\n          filter(({ target }) => target === el),\n          finalize(() => observer.unobserve(el)),\n          map(({ isIntersecting }) => isIntersecting)\n        )\n      )\n    )\n}\n\n/**\n * Watch element boundary\n *\n * This function returns an observable which emits whether the bottom content\n * boundary (= scroll offset) of an element is within a certain threshold.\n *\n * @param el - Element\n * @param threshold - Threshold\n *\n * @returns Element boundary observable\n */\nexport function watchElementBoundary(\n  el: HTMLElement, threshold = 16\n): Observable<boolean> {\n  return watchElementContentOffset(el)\n    .pipe(\n      map(({ y }) => {\n        const visible = getElementSize(el)\n        const content = getElementContentSize(el)\n        return y >= (\n          content.height - visible.height - threshold\n        )\n      }),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getElement } from \"../element\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle\n */\nexport type Toggle =\n  | \"drawer\"                           /* Toggle for drawer */\n  | \"search\"                           /* Toggle for search */\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle map\n */\nconst toggles: Record<Toggle, HTMLInputElement> = {\n  drawer: getElement(\"[data-md-toggle=drawer]\"),\n  search: getElement(\"[data-md-toggle=search]\")\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the value of a toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value\n */\nexport function getToggle(name: Toggle): boolean {\n  return toggles[name].checked\n}\n\n/**\n * Set toggle\n *\n * Simulating a click event seems to be the most cross-browser compatible way\n * of changing the value while also emitting a `change` event. Before, Material\n * used `CustomEvent` to programmatically change the value of a toggle, but this\n * is a much simpler and cleaner solution which doesn't require a polyfill.\n *\n * @param name - Toggle\n * @param value - Toggle value\n */\nexport function setToggle(name: Toggle, value: boolean): void {\n  if (toggles[name].checked !== value)\n    toggles[name].click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value observable\n */\nexport function watchToggle(name: Toggle): Observable<boolean> {\n  const el = toggles[name]\n  return fromEvent(el, \"change\")\n    .pipe(\n      map(() => el.checked),\n      startWith(el.checked)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  share,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../element\"\nimport { getToggle } from \"../toggle\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Keyboard mode\n */\nexport type KeyboardMode =\n  | \"global\"                           /* Global */\n  | \"search\"                           /* Search is open */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Keyboard\n */\nexport interface Keyboard {\n  mode: KeyboardMode                   /* Keyboard mode */\n  type: string                         /* Key type */\n  claim(): void                        /* Key claim */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether an element may receive keyboard input\n *\n * @param el - Element\n * @param type - Key type\n *\n * @returns Test result\n */\nfunction isSusceptibleToKeyboard(\n  el: HTMLElement, type: string\n): boolean {\n  switch (el.constructor) {\n\n    /* Input elements */\n    case HTMLInputElement:\n      /* @ts-expect-error - omit unnecessary type cast */\n      if (el.type === \"radio\")\n        return /^Arrow/.test(type)\n      else\n        return true\n\n    /* Select element and textarea */\n    case HTMLSelectElement:\n    case HTMLTextAreaElement:\n      return true\n\n    /* Everything else */\n    default:\n      return el.isContentEditable\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch composition events\n *\n * @returns Composition observable\n */\nexport function watchComposition(): Observable<boolean> {\n  return merge(\n    fromEvent(window, \"compositionstart\").pipe(map(() => true)),\n    fromEvent(window, \"compositionend\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(false)\n    )\n}\n\n/**\n * Watch keyboard\n *\n * @returns Keyboard observable\n */\nexport function watchKeyboard(): Observable<Keyboard> {\n  const keyboard$ = fromEvent<KeyboardEvent>(window, \"keydown\")\n    .pipe(\n      filter(ev => !(ev.metaKey || ev.ctrlKey)),\n      map(ev => ({\n        mode: getToggle(\"search\") ? \"search\" : \"global\",\n        type: ev.key,\n        claim() {\n          ev.preventDefault()\n          ev.stopPropagation()\n        }\n      } as Keyboard)),\n      filter(({ mode, type }) => {\n        if (mode === \"global\") {\n          const active = getActiveElement()\n          if (typeof active !== \"undefined\")\n            return !isSusceptibleToKeyboard(active, type)\n        }\n        return true\n      }),\n      share()\n    )\n\n  /* Don't emit during composition events - see https://bit.ly/3te3Wl8 */\n  return watchComposition()\n    .pipe(\n      switchMap(active => !active ? keyboard$ : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Subject } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location\n *\n * This function returns a `URL` object (and not `Location`) to normalize the\n * typings across the application. Furthermore, locations need to be tracked\n * without setting them and `Location` is a singleton which represents the\n * current location.\n *\n * @returns URL\n */\nexport function getLocation(): URL {\n  return new URL(location.href)\n}\n\n/**\n * Set location\n *\n * If instant navigation is enabled, this function creates a temporary anchor\n * element, sets the `href` attribute, appends it to the body, clicks it, and\n * then removes it again. The event will bubble up the DOM and trigger be\n * intercepted by the instant loading business logic.\n *\n * Note that we must append and remove the anchor element, or the event will\n * not bubble up the DOM, making it impossible to intercept it.\n *\n * @param url - URL to navigate to\n * @param navigate - Force navigation\n */\nexport function setLocation(\n  url: URL | HTMLLinkElement, navigate = false\n): void {\n  if (feature(\"navigation.instant\") && !navigate) {\n    const el = h(\"a\", { href: url.href })\n    document.body.appendChild(el)\n    el.click()\n    el.remove()\n\n  // If we're not using instant navigation, and the page should not be reloaded\n  // just instruct the browser to navigate to the given URL\n  } else {\n    location.href = url.href\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location\n *\n * @returns Location subject\n */\nexport function watchLocation(): Subject<URL> {\n  return new Subject<URL>()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getOptionalElement } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location hash\n *\n * @returns Location hash\n */\nexport function getLocationHash(): string {\n  return location.hash.slice(1)\n}\n\n/**\n * Set location hash\n *\n * Setting a new fragment identifier via `location.hash` will have no effect\n * if the value doesn't change. When a new fragment identifier is set, we want\n * the browser to target the respective element at all times, which is why we\n * use this dirty little trick.\n *\n * @param hash - Location hash\n */\nexport function setLocationHash(hash: string): void {\n  const el = h(\"a\", { href: hash })\n  el.addEventListener(\"click\", ev => ev.stopPropagation())\n  el.click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location hash\n *\n * @param location$ - Location observable\n *\n * @returns Location hash observable\n */\nexport function watchLocationHash(\n  location$: Observable<URL>\n): Observable<string> {\n  return merge(\n    fromEvent<HashChangeEvent>(window, \"hashchange\"),\n    location$\n  )\n    .pipe(\n      map(getLocationHash),\n      startWith(getLocationHash()),\n      filter(hash => hash.length > 0),\n      shareReplay(1)\n    )\n}\n\n/**\n * Watch location target\n *\n * @param location$ - Location observable\n *\n * @returns Location target observable\n */\nexport function watchLocationTarget(\n  location$: Observable<URL>\n): Observable<HTMLElement> {\n  return watchLocationHash(location$)\n    .pipe(\n      map(id => getOptionalElement(`[id=\"${id}\"]`)!),\n      filter(el => typeof el !== \"undefined\")\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  fromEvent,\n  fromEventPattern,\n  map,\n  merge,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch media query\n *\n * Note that although `MediaQueryList.addListener` is deprecated we have to\n * use it, because it's the only way to ensure proper downward compatibility.\n *\n * @see https://bit.ly/3dUBH2m - GitHub issue\n *\n * @param query - Media query\n *\n * @returns Media observable\n */\nexport function watchMedia(query: string): Observable<boolean> {\n  const media = matchMedia(query)\n  return fromEventPattern<boolean>(next => (\n    media.addListener(() => next(media.matches))\n  ))\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/**\n * Watch print mode\n *\n * @returns Print observable\n */\nexport function watchPrint(): Observable<boolean> {\n  const media = matchMedia(\"print\")\n  return merge(\n    fromEvent(window, \"beforeprint\").pipe(map(() => true)),\n    fromEvent(window, \"afterprint\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Toggle an observable with a media observable\n *\n * @template T - Data type\n *\n * @param query$ - Media observable\n * @param factory - Observable factory\n *\n * @returns Toggled observable\n */\nexport function at<T>(\n  query$: Observable<boolean>, factory: () => Observable<T>\n): Observable<T> {\n  return query$\n    .pipe(\n      switchMap(active => active ? factory() : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  map,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Options\n */\ninterface Options {\n  progress$?: Subject<number>          // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the given URL\n *\n * This function returns an observable that emits the response as a blob and\n * completes, or emits an error if the request failed. The caller can cancel\n * the request by unsubscribing at any time, which will automatically abort\n * the inflight request and complete the observable.\n *\n * Note that we use `XMLHTTPRequest` not because we're nostalgic, but because\n * it's the only way to get progress events for downloads and also allow for\n * cancellation of requests, as the official Fetch API does not support this\n * yet, even though we're already in 2024.\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function request(\n  url: URL | string, options?: Options\n): Observable<Blob> {\n  return new Observable<Blob>(observer => {\n    const req = new XMLHttpRequest()\n    req.open(\"GET\", `${url}`)\n    req.responseType = \"blob\"\n\n    // Handle response\n    req.addEventListener(\"load\", () => {\n      if (req.status >= 200 && req.status < 300) {\n        observer.next(req.response)\n        observer.complete()\n\n      // Every response that is not in the 2xx range is considered an error\n      } else {\n        observer.error(new Error(req.statusText))\n      }\n    })\n\n    // Handle network errors\n    req.addEventListener(\"error\", () => {\n      observer.error(new Error(\"Network error\"))\n    })\n\n    // Handle aborted requests\n    req.addEventListener(\"abort\", () => {\n      observer.complete()\n    })\n\n    // Handle download progress\n    if (typeof options?.progress$ !== \"undefined\") {\n      req.addEventListener(\"progress\", event => {\n        if (event.lengthComputable) {\n          options.progress$!.next((event.loaded / event.total) * 100)\n\n        // Hack: Chromium doesn't report the total number of bytes if content\n        // is compressed, so we need this fallback - see https://t.ly/ZXofI\n        } else {\n          const length = req.getResponseHeader(\"Content-Length\") ?? 0\n          options.progress$!.next((event.loaded / +length) * 100)\n        }\n      })\n\n      // Immediately set progress to 5% to indicate that we're loading\n      options.progress$.next(5)\n    }\n\n    // Send request and automatically abort request upon unsubscription\n    req.send()\n    return () => req.abort()\n  })\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Fetch JSON from the given URL\n *\n * @template T - Data type\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestJSON<T>(\n  url: URL | string, options?: Options\n): Observable<T> {\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(body => JSON.parse(body) as T),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch HTML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestHTML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/html\")),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch XML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestXML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/xml\")),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport offset\n */\nexport interface ViewportOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport offset\n *\n * On iOS Safari, viewport offset can be negative due to overflow scrolling.\n * As this may induce strange behaviors downstream, we'll just limit it to 0.\n *\n * @returns Viewport offset\n */\nexport function getViewportOffset(): ViewportOffset {\n  return {\n    x: Math.max(0, scrollX),\n    y: Math.max(0, scrollY)\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport offset\n *\n * @returns Viewport offset observable\n */\nexport function watchViewportOffset(): Observable<ViewportOffset> {\n  return merge(\n    fromEvent(window, \"scroll\", { passive: true }),\n    fromEvent(window, \"resize\", { passive: true })\n  )\n    .pipe(\n      map(getViewportOffset),\n      startWith(getViewportOffset())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport size\n */\nexport interface ViewportSize {\n  width: number                        /* Viewport width */\n  height: number                       /* Viewport height */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport size\n *\n * @returns Viewport size\n */\nexport function getViewportSize(): ViewportSize {\n  return {\n    width:  innerWidth,\n    height: innerHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport size\n *\n * @returns Viewport size observable\n */\nexport function watchViewportSize(): Observable<ViewportSize> {\n  return fromEvent(window, \"resize\", { passive: true })\n    .pipe(\n      map(getViewportSize),\n      startWith(getViewportSize())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  map,\n  shareReplay\n} from \"rxjs\"\n\nimport {\n  ViewportOffset,\n  watchViewportOffset\n} from \"../offset\"\nimport {\n  ViewportSize,\n  watchViewportSize\n} from \"../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport\n */\nexport interface Viewport {\n  offset: ViewportOffset               /* Viewport offset */\n  size: ViewportSize                   /* Viewport size */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport\n *\n * @returns Viewport observable\n */\nexport function watchViewport(): Observable<Viewport> {\n  return combineLatest([\n    watchViewportOffset(),\n    watchViewportSize()\n  ])\n    .pipe(\n      map(([offset, size]) => ({ offset, size })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilKeyChanged,\n  map\n} from \"rxjs\"\n\nimport { Header } from \"~/components\"\n\nimport { getElementOffset } from \"../../element\"\nimport { Viewport } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport relative to element\n *\n * @param el - Element\n * @param options - Options\n *\n * @returns Viewport observable\n */\nexport function watchViewportAt(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Viewport> {\n  const size$ = viewport$\n    .pipe(\n      distinctUntilKeyChanged(\"size\")\n    )\n\n  /* Compute element offset */\n  const offset$ = combineLatest([size$, header$])\n    .pipe(\n      map(() => getElementOffset(el))\n    )\n\n  /* Compute relative viewport, return hot observable */\n  return combineLatest([header$, viewport$, offset$])\n    .pipe(\n      map(([{ height }, { offset, size }, { x, y }]) => ({\n        offset: {\n          x: offset.x - x,\n          y: offset.y - y + height\n        },\n        size\n      }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  mergeWith,\n  share,\n  takeUntil\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Worker message\n */\nexport interface WorkerMessage {\n  type: unknown                        /* Message type */\n  data?: unknown                       /* Message data */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create an observable for receiving from a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message observable\n */\nfunction recv<T>(worker: Worker): Observable<T> {\n  return fromEvent<MessageEvent<T>, T>(worker, \"message\", ev => ev.data)\n}\n\n/**\n * Create a subject for sending to a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message subject\n */\nfunction send<T>(worker: Worker): Subject<T> {\n  const send$ = new Subject<T>()\n  send$.subscribe(data => worker.postMessage(data))\n\n  /* Return message subject */\n  return send$\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a bidirectional communication channel to a web worker\n *\n * @template T - Data type\n *\n * @param url - Worker URL\n * @param worker - Worker\n *\n * @returns Worker subject\n */\nexport function watchWorker<T extends WorkerMessage>(\n  url: string, worker = new Worker(url)\n): Subject<T> {\n  const recv$ = recv<T>(worker)\n  const send$ = send<T>(worker)\n\n  /* Create worker subject and forward messages */\n  const worker$ = new Subject<T>()\n  worker$.subscribe(send$)\n\n  /* Return worker subject */\n  const done$ = send$.pipe(ignoreElements(), endWith(true))\n  return worker$\n    .pipe(\n      ignoreElements(),\n      mergeWith(recv$.pipe(takeUntil(done$))),\n      share()\n    ) as Subject<T>\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getLocation } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Feature flag\n */\nexport type Flag =\n  | \"announce.dismiss\"                 /* Dismissable announcement bar */\n  | \"content.code.annotate\"            /* Code annotations */\n  | \"content.code.copy\"                /* Code copy button */\n  | \"content.lazy\"                     /* Lazy content elements */\n  | \"content.tabs.link\"                /* Link content tabs */\n  | \"content.tooltips\"                 /* Tooltips */\n  | \"header.autohide\"                  /* Hide header */\n  | \"navigation.expand\"                /* Automatic expansion */\n  | \"navigation.indexes\"               /* Section pages */\n  | \"navigation.instant\"               /* Instant navigation */\n  | \"navigation.instant.progress\"      /* Instant navigation progress */\n  | \"navigation.sections\"              /* Section navigation */\n  | \"navigation.tabs\"                  /* Tabs navigation */\n  | \"navigation.tabs.sticky\"           /* Tabs navigation (sticky) */\n  | \"navigation.top\"                   /* Back-to-top button */\n  | \"navigation.tracking\"              /* Anchor tracking */\n  | \"search.highlight\"                 /* Search highlighting */\n  | \"search.share\"                     /* Search sharing */\n  | \"search.suggest\"                   /* Search suggestions */\n  | \"toc.follow\"                       /* Following table of contents */\n  | \"toc.integrate\"                    /* Integrated table of contents */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Translation\n */\nexport type Translation =\n  | \"clipboard.copy\"                   /* Copy to clipboard */\n  | \"clipboard.copied\"                 /* Copied to clipboard */\n  | \"search.result.placeholder\"        /* Type to start searching */\n  | \"search.result.none\"               /* No matching documents */\n  | \"search.result.one\"                /* 1 matching document */\n  | \"search.result.other\"              /* # matching documents */\n  | \"search.result.more.one\"           /* 1 more on this page */\n  | \"search.result.more.other\"         /* # more on this page */\n  | \"search.result.term.missing\"       /* Missing */\n  | \"select.version\"                   /* Version selector */\n\n/**\n * Translations\n */\nexport type Translations =\n  Record<Translation, string>\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Versioning\n */\nexport interface Versioning {\n  provider: \"mike\"                     /* Version provider */\n  default?: string | string[]          /* Default version */\n}\n\n/**\n * Configuration\n */\nexport interface Config {\n  base: string                         /* Base URL */\n  features: Flag[]                     /* Feature flags */\n  translations: Translations           /* Translations */\n  search: string                       /* Search worker URL */\n  tags?: Record<string, string>        /* Tags mapping */\n  version?: Versioning                 /* Versioning */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration and make base URL absolute\n */\nconst script = getElement(\"#__config\")\nconst config: Config = JSON.parse(script.textContent!)\nconfig.base = `${new URL(config.base, getLocation())}`\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration\n *\n * @returns Global configuration\n */\nexport function configuration(): Config {\n  return config\n}\n\n/**\n * Check whether a feature flag is enabled\n *\n * @param flag - Feature flag\n *\n * @returns Test result\n */\nexport function feature(flag: Flag): boolean {\n  return config.features.includes(flag)\n}\n\n/**\n * Retrieve the translation for the given key\n *\n * @param key - Key to be translated\n * @param value - Positional value, if any\n *\n * @returns Translation\n */\nexport function translation(\n  key: Translation, value?: string | number\n): string {\n  return typeof value !== \"undefined\"\n    ? config.translations[key].replace(\"#\", value.toString())\n    : config.translations[key]\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type\n */\nexport type ComponentType =\n  | \"announce\"                         /* Announcement bar */\n  | \"container\"                        /* Container */\n  | \"consent\"                          /* Consent */\n  | \"content\"                          /* Content */\n  | \"dialog\"                           /* Dialog */\n  | \"header\"                           /* Header */\n  | \"header-title\"                     /* Header title */\n  | \"header-topic\"                     /* Header topic */\n  | \"main\"                             /* Main area */\n  | \"outdated\"                         /* Version warning */\n  | \"palette\"                          /* Color palette */\n  | \"progress\"                         /* Progress indicator */\n  | \"search\"                           /* Search */\n  | \"search-query\"                     /* Search input */\n  | \"search-result\"                    /* Search results */\n  | \"search-share\"                     /* Search sharing */\n  | \"search-suggest\"                   /* Search suggestions */\n  | \"sidebar\"                          /* Sidebar */\n  | \"skip\"                             /* Skip link */\n  | \"source\"                           /* Repository information */\n  | \"tabs\"                             /* Navigation tabs */\n  | \"toc\"                              /* Table of contents */\n  | \"top\"                              /* Back-to-top button */\n\n/**\n * Component\n *\n * @template T - Component type\n * @template U - Reference type\n */\nexport type Component<\n  T extends {} = {},\n  U extends HTMLElement = HTMLElement\n> =\n  T & {\n    ref: U                             /* Component reference */\n  }\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type map\n */\ninterface ComponentTypeMap {\n  \"announce\": HTMLElement              /* Announcement bar */\n  \"container\": HTMLElement             /* Container */\n  \"consent\": HTMLElement               /* Consent */\n  \"content\": HTMLElement               /* Content */\n  \"dialog\": HTMLElement                /* Dialog */\n  \"header\": HTMLElement                /* Header */\n  \"header-title\": HTMLElement          /* Header title */\n  \"header-topic\": HTMLElement          /* Header topic */\n  \"main\": HTMLElement                  /* Main area */\n  \"outdated\": HTMLElement              /* Version warning */\n  \"palette\": HTMLElement               /* Color palette */\n  \"progress\": HTMLElement              /* Progress indicator */\n  \"search\": HTMLElement                /* Search */\n  \"search-query\": HTMLInputElement     /* Search input */\n  \"search-result\": HTMLElement         /* Search results */\n  \"search-share\": HTMLAnchorElement    /* Search sharing */\n  \"search-suggest\": HTMLElement        /* Search suggestions */\n  \"sidebar\": HTMLElement               /* Sidebar */\n  \"skip\": HTMLAnchorElement            /* Skip link */\n  \"source\": HTMLAnchorElement          /* Repository information */\n  \"tabs\": HTMLElement                  /* Navigation tabs */\n  \"toc\": HTMLElement                   /* Table of contents */\n  \"top\": HTMLAnchorElement             /* Back-to-top button */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the element for a given component or throw a reference error\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getComponentElement<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T] {\n  return getElement(`[data-md-component=${type}]`, node)\n}\n\n/**\n * Retrieve all elements for a given component\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getComponentElements<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T][] {\n  return getElements(`[data-md-component=${type}]`, node)\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Announcement bar\n */\nexport interface Announce {\n  hash: number                        /* Content hash */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar observable\n */\nexport function watchAnnounce(\n  el: HTMLElement\n): Observable<Announce> {\n  const button = getElement(\".md-typeset > :first-child\", el)\n  return fromEvent(button, \"click\", { once: true })\n    .pipe(\n      map(() => getElement(\".md-typeset\", el)),\n      map(content => ({ hash: __md_hash(content.innerHTML) }))\n    )\n}\n\n/**\n * Mount announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar component observable\n */\nexport function mountAnnounce(\n  el: HTMLElement\n): Observable<Component<Announce>> {\n  if (!feature(\"announce.dismiss\") || !el.childElementCount)\n    return EMPTY\n\n  /* Support instant navigation - see https://t.ly/3FTme */\n  if (!el.hidden) {\n    const content = getElement(\".md-typeset\", el)\n    if (__md_hash(content.innerHTML) === __md_get(\"__announce\"))\n      el.hidden = true\n  }\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Announce>()\n    push$.subscribe(({ hash }) => {\n      el.hidden = true\n\n      /* Persist preference in local storage */\n      __md_set<number>(\"__announce\", hash)\n    })\n\n    /* Create and return component */\n    return watchAnnounce(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Consent\n */\nexport interface Consent {\n  hidden: boolean                      /* Consent is hidden */\n}\n\n/**\n * Consent defaults\n */\nexport interface ConsentDefaults {\n  analytics?: boolean                  /* Consent for Analytics */\n  github?: boolean                     /* Consent for GitHub */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent observable\n */\nexport function watchConsent(\n  el: HTMLElement, { target$ }: WatchOptions\n): Observable<Consent> {\n  return target$\n    .pipe(\n      map(target => ({ hidden: target !== el }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent component observable\n */\nexport function mountConsent(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Consent>> {\n  const internal$ = new Subject<Consent>()\n  internal$.subscribe(({ hidden }) => {\n    el.hidden = hidden\n  })\n\n  /* Create and return component */\n  return watchConsent(el, options)\n    .pipe(\n      tap(state => internal$.next(state)),\n      finalize(() => internal$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip style\n */\nexport type TooltipStyle =\n  | \"inline\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a tooltip\n *\n * @param id - Tooltip identifier\n * @param style - Tooltip style\n *\n * @returns Element\n */\nexport function renderTooltip(\n  id?: string, style?: TooltipStyle\n): HTMLElement {\n  if (style === \"inline\") { // @todo refactor control flow\n    return (\n      <div class=\"md-tooltip md-tooltip--inline\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  } else {\n    return (\n      <div class=\"md-tooltip\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\nimport { renderTooltip } from \"../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render an annotation\n *\n * @param id - Annotation identifier\n * @param prefix - Tooltip identifier prefix\n *\n * @returns Element\n */\nexport function renderAnnotation(\n  id: string | number, prefix?: string\n): HTMLElement {\n  prefix = prefix ? `${prefix}_annotation_${id}` : undefined\n\n  /* Render tooltip with anchor, if given */\n  if (prefix) {\n    const anchor = prefix ? `#${prefix}` : undefined\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <a href={anchor} class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </a>\n      </aside>\n    )\n  } else {\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <span class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </span>\n      </aside>\n    )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a 'copy-to-clipboard' button\n *\n * @param id - Unique identifier\n *\n * @returns Element\n */\nexport function renderClipboardButton(id: string): HTMLElement {\n  return (\n    <button\n      class=\"md-clipboard md-icon\"\n      title={translation(\"clipboard.copy\")}\n      data-clipboard-target={`#${id} > code`}\n    ></button>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ComponentChild } from \"preact\"\n\nimport { configuration, feature, translation } from \"~/_\"\nimport { SearchItem } from \"~/integrations/search\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Render flag\n */\nconst enum Flag {\n  TEASER = 1,                          /* Render teaser */\n  PARENT = 2                           /* Render as parent */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper function\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search document\n *\n * @param document - Search document\n * @param flag - Render flags\n *\n * @returns Element\n */\nfunction renderSearchDocument(\n  document: SearchItem, flag: Flag\n): HTMLElement {\n  const parent = flag & Flag.PARENT\n  const teaser = flag & Flag.TEASER\n\n  /* Render missing query terms */\n  const missing = Object.keys(document.terms)\n    .filter(key => !document.terms[key])\n    .reduce<ComponentChild[]>((list, key) => [\n      ...list, <del>{key}</del>, \" \"\n    ], [])\n    .slice(0, -1)\n\n  /* Assemble query string for highlighting */\n  const config = configuration()\n  const url = new URL(document.location, config.base)\n  if (feature(\"search.highlight\"))\n    url.searchParams.set(\"h\", Object.entries(document.terms)\n      .filter(([, match]) => match)\n      .reduce((highlight, [value]) => `${highlight} ${value}`.trim(), \"\")\n    )\n\n  /* Render article or section, depending on flags */\n  const { tags } = configuration()\n  return (\n    <a href={`${url}`} class=\"md-search-result__link\" tabIndex={-1}>\n      <article\n        class=\"md-search-result__article md-typeset\"\n        data-md-score={document.score.toFixed(2)}\n      >\n        {parent > 0 && <div class=\"md-search-result__icon md-icon\"></div>}\n        {parent > 0 && <h1>{document.title}</h1>}\n        {parent <= 0 && <h2>{document.title}</h2>}\n        {teaser > 0 && document.text.length > 0 &&\n          document.text\n        }\n        {document.tags && document.tags.map(tag => {\n          const type = tags\n            ? tag in tags\n              ? `md-tag-icon md-tag--${tags[tag]}`\n              : \"md-tag-icon\"\n            : \"\"\n          return (\n            <span class={`md-tag ${type}`}>{tag}</span>\n          )\n        })}\n        {teaser > 0 && missing.length > 0 &&\n          <p class=\"md-search-result__terms\">\n            {translation(\"search.result.term.missing\")}: {...missing}\n          </p>\n        }\n      </article>\n    </a>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search result\n *\n * @param result - Search result\n *\n * @returns Element\n */\nexport function renderSearchResultItem(\n  result: SearchItem[]\n): HTMLElement {\n  const threshold = result[0].score\n  const docs = [...result]\n\n  const config = configuration()\n\n  /* Find and extract parent article */\n  const parent = docs.findIndex(doc => {\n    const l = `${new URL(doc.location, config.base)}` // @todo hacky\n    return !l.includes(\"#\")\n  })\n  const [article] = docs.splice(parent, 1)\n\n  /* Determine last index above threshold */\n  let index = docs.findIndex(doc => doc.score < threshold)\n  if (index === -1)\n    index = docs.length\n\n  /* Partition sections */\n  const best = docs.slice(0, index)\n  const more = docs.slice(index)\n\n  /* Render children */\n  const children = [\n    renderSearchDocument(article, Flag.PARENT | +(!parent && index === 0)),\n    ...best.map(section => renderSearchDocument(section, Flag.TEASER)),\n    ...more.length ? [\n      <details class=\"md-search-result__more\">\n        <summary tabIndex={-1}>\n          <div>\n            {more.length > 0 && more.length === 1\n              ? translation(\"search.result.more.one\")\n              : translation(\"search.result.more.other\", more.length)\n            }\n          </div>\n        </summary>\n        {...more.map(section => renderSearchDocument(section, Flag.TEASER))}\n      </details>\n    ] : []\n  ]\n\n  /* Render search result */\n  return (\n    <li class=\"md-search-result__item\">\n      {children}\n    </li>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SourceFacts } from \"~/components\"\nimport { h, round } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render repository facts\n *\n * @param facts - Repository facts\n *\n * @returns Element\n */\nexport function renderSourceFacts(facts: SourceFacts): HTMLElement {\n  return (\n    <ul class=\"md-source__facts\">\n      {Object.entries(facts).map(([key, value]) => (\n        <li class={`md-source__fact md-source__fact--${key}`}>\n          {typeof value === \"number\" ? round(value) : value}\n        </li>\n      ))}\n    </ul>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tabbed control type\n */\ntype TabbedControlType =\n  | \"prev\"\n  | \"next\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render control for content tabs\n *\n * @param type - Control type\n *\n * @returns Element\n */\nexport function renderTabbedControl(\n  type: TabbedControlType\n): HTMLElement {\n  const classes = `tabbed-control tabbed-control--${type}`\n  return (\n    <div class={classes} hidden>\n      <button class=\"tabbed-button\" tabIndex={-1} aria-hidden=\"true\"></button>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a table inside a wrapper to improve scrolling on mobile\n *\n * @param table - Table element\n *\n * @returns Element\n */\nexport function renderTable(table: HTMLElement): HTMLElement {\n  return (\n    <div class=\"md-typeset__scrollwrap\">\n      <div class=\"md-typeset__table\">\n        {table}\n      </div>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { configuration, translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Version\n */\nexport interface Version {\n  version: string                      /* Version identifier */\n  title: string                        /* Version title */\n  aliases: string[]                    /* Version aliases */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version\n *\n * @param version - Version\n *\n * @returns Element\n */\nfunction renderVersion(version: Version): HTMLElement {\n  const config = configuration()\n\n  /* Ensure trailing slash - see https://bit.ly/3rL5u3f */\n  const url = new URL(`../${version.version}/`, config.base)\n  return (\n    <li class=\"md-version__item\">\n      <a href={`${url}`} class=\"md-version__link\">\n        {version.title}\n      </a>\n    </li>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version selector\n *\n * @param versions - Versions\n * @param active - Active version\n *\n * @returns Element\n */\nexport function renderVersionSelector(\n  versions: Version[], active: Version\n): HTMLElement {\n  return (\n    <div class=\"md-version\">\n      <button\n        class=\"md-version__current\"\n        aria-label={translation(\"select.version\")}\n      >\n        {active.title}\n      </button>\n      <ul class=\"md-version__list\">\n        {versions.map(renderVersion)}\n      </ul>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  subscribeOn,\n  tap,\n  throttleTime\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getElement,\n  getElementContainer,\n  getElementOffset,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementHover\n} from \"~/browser\"\nimport { renderTooltip } from \"~/templates\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip\n */\nexport interface Tooltip {\n  active: boolean                      /* Tooltip is active */\n  offset: ElementOffset                /* Tooltip offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for tooltips\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch tooltip\n *\n * This function will append the tooltip temporarily to compute its width,\n * which is necessary for correct centering, and then removing it again.\n *\n * @param el - Tooltip element\n * @param host - Host element\n *\n * @returns Tooltip observable\n */\nexport function watchTooltip(\n  el: HTMLElement, host: HTMLElement\n): Observable<Tooltip> {\n  document.body.append(el)\n\n  /* Compute width and remove tooltip immediately */\n  const { width } = getElementSize(el)\n  el.style.setProperty(\"--md-tooltip-width\", `${width}px`)\n  el.remove()\n\n  /* Retrieve and watch containing element */\n  const container = getElementContainer(host)\n  const scroll$ =\n    typeof container !== \"undefined\"\n      ? watchElementContentOffset(container)\n      : of({ x: 0, y: 0 })\n\n  /* Compute tooltip visibility */\n  const active$ = merge(\n    watchElementFocus(host),\n    watchElementHover(host)\n  )\n    .pipe(\n      distinctUntilChanged()\n    )\n\n  /* Compute tooltip offset */\n  return combineLatest([active$, scroll$])\n    .pipe(\n      map(([active, scroll]) => {\n        let { x, y } = getElementOffset(host)\n        const size = getElementSize(host)\n\n        /**\n         * Experimental: fix handling of tables - see https://bit.ly/3TQEj5O\n         *\n         * If this proves to be a viable fix, we should refactor tooltip\n         * positioning and somehow streamline the current process. This might\n         * also fix positioning for annotations inside tables, which is another\n         * limitation.\n         */\n        const table = host.closest(\"table\")\n        if (table && host.parentElement) {\n          x += table.offsetLeft + host.parentElement.offsetLeft\n          y += table.offsetTop  + host.parentElement.offsetTop\n        }\n        return {\n          active,\n          offset: {\n            x: x - scroll.x + size.width  / 2 - width / 2,\n            y: y - scroll.y + size.height + 8\n          }\n        }\n      })\n    )\n}\n\n/**\n * Mount tooltip\n *\n * @param el - Host element\n *\n * @returns Tooltip component observable\n */\nexport function mountTooltip(\n  el: HTMLElement\n): Observable<Component<Tooltip>> {\n  const title = el.title\n  if (!title.length)\n    return EMPTY\n\n  /* Render tooltip and set title from host element */\n  const id = `__tooltip_${sequence++}`\n  const tooltip = renderTooltip(id, \"inline\")\n  const typeset = getElement(\".md-typeset\", tooltip)\n  typeset.innerHTML = title\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Tooltip>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        tooltip.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        tooltip.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        tooltip.style.removeProperty(\"--md-tooltip-x\")\n        tooltip.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active) {\n            el.insertAdjacentElement(\"afterend\", tooltip)\n            el.setAttribute(\"aria-describedby\", id)\n            el.removeAttribute(\"title\")\n          } else {\n            tooltip.remove()\n            el.removeAttribute(\"aria-describedby\")\n            el.setAttribute(\"title\", title)\n          }\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.remove()\n          el.removeAttribute(\"aria-describedby\")\n          el.setAttribute(\"title\", title)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    // @todo - refactor positioning together with annotations \u2013 there are\n    // several things that overlap and are identical in handling\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n      .subscribe({\n\n        /* Handle emission */\n        next(origin) {\n          if (origin)\n            tooltip.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n          else\n            tooltip.style.removeProperty(\"--md-tooltip-0\")\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.style.removeProperty(\"--md-tooltip-0\")\n        }\n      })\n\n    /* Create and return component */\n    return watchTooltip(tooltip, el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  delay,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  switchMap,\n  take,\n  takeUntil,\n  tap,\n  throttleTime,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getActiveElement,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementOffset,\n  watchElementVisibility\n} from \"~/browser\"\n\nimport { Component } from \"../../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Annotation\n */\nexport interface Annotation {\n  active: boolean                      /* Annotation is active */\n  offset: ElementOffset                /* Annotation offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n *\n * @returns Annotation observable\n */\nexport function watchAnnotation(\n  el: HTMLElement, container: HTMLElement\n): Observable<Annotation> {\n  const offset$ = defer(() => combineLatest([\n    watchElementOffset(el),\n    watchElementContentOffset(container)\n  ]))\n    .pipe(\n      map(([{ x, y }, scroll]): ElementOffset => {\n        const { width, height } = getElementSize(el)\n        return ({\n          x: x - scroll.x + width  / 2,\n          y: y - scroll.y + height / 2\n        })\n      })\n    )\n\n  /* Actively watch annotation on focus */\n  return watchElementFocus(el)\n    .pipe(\n      switchMap(active => offset$\n        .pipe(\n          map(offset => ({ active, offset })),\n          take(+!active || Infinity)\n        )\n      )\n    )\n}\n\n/**\n * Mount annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotation(\n  el: HTMLElement, container: HTMLElement, { target$ }: MountOptions\n): Observable<Component<Annotation>> {\n  const [tooltip, index] = Array.from(el.children)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Annotation>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        el.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        el.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.style.removeProperty(\"--md-tooltip-x\")\n        el.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Start animation only when annotation is visible */\n    watchElementVisibility(el)\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(visible => {\n          el.toggleAttribute(\"data-md-visible\", visible)\n        })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active)\n            el.prepend(tooltip)\n          else\n            tooltip.remove()\n        },\n\n        /* Handle complete */\n        complete() {\n          el.prepend(tooltip)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next(origin) {\n            if (origin)\n              el.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n            else\n              el.style.removeProperty(\"--md-tooltip-0\")\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-tooltip-0\")\n          }\n        })\n\n    /* Allow to copy link without scrolling to anchor */\n    fromEvent<MouseEvent>(index, \"click\")\n      .pipe(\n        takeUntil(done$),\n        filter(ev => !(ev.metaKey || ev.ctrlKey))\n      )\n        .subscribe(ev => {\n          ev.stopPropagation()\n          ev.preventDefault()\n        })\n\n    /* Allow to open link in new tab or blur on close */\n    fromEvent<MouseEvent>(index, \"mousedown\")\n      .pipe(\n        takeUntil(done$),\n        withLatestFrom(push$)\n      )\n        .subscribe(([ev, { active }]) => {\n\n          /* Open in new tab */\n          if (ev.button !== 0 || ev.metaKey || ev.ctrlKey) {\n            ev.preventDefault()\n\n          /* Close annotation */\n          } else if (active) {\n            ev.preventDefault()\n\n            /* Focus parent annotation, if any */\n            const parent = el.parentElement!.closest(\".md-annotation\")\n            if (parent instanceof HTMLElement)\n              parent.focus()\n            else\n              getActiveElement()?.blur()\n          }\n        })\n\n    /* Open and focus annotation on location target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(target => target === tooltip),\n        delay(125)\n      )\n        .subscribe(() => el.focus())\n\n    /* Create and return component */\n    return watchAnnotation(el, container)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  endWith,\n  finalize,\n  ignoreElements,\n  merge,\n  share,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  getOptionalElement\n} from \"~/browser\"\nimport { renderAnnotation } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Annotation,\n  mountAnnotation\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find all annotation hosts in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation hosts\n */\nfunction findHosts(container: HTMLElement): HTMLElement[] {\n  return container.tagName === \"CODE\"\n    ? getElements(\".c, .c1, .cm\", container)\n    : [container]\n}\n\n/**\n * Find all annotation markers in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation markers\n */\nfunction findMarkers(container: HTMLElement): Text[] {\n  const markers: Text[] = []\n  for (const el of findHosts(container)) {\n    const nodes: Text[] = []\n\n    /* Find all text nodes in current element */\n    const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n    for (let node = it.nextNode(); node; node = it.nextNode())\n      nodes.push(node as Text)\n\n    /* Find all markers in each text node */\n    for (let text of nodes) {\n      let match: RegExpExecArray | null\n\n      /* Split text at marker and add to list */\n      while ((match = /(\\(\\d+\\))(!)?/.exec(text.textContent!))) {\n        const [, id, force] = match\n        if (typeof force === \"undefined\") {\n          const marker = text.splitText(match.index)\n          text = marker.splitText(id.length)\n          markers.push(marker)\n\n        /* Replace entire text with marker */\n        } else {\n          text.textContent = id\n          markers.push(text)\n          break\n        }\n      }\n    }\n  }\n  return markers\n}\n\n/**\n * Swap the child nodes of two elements\n *\n * @param source - Source element\n * @param target - Target element\n */\nfunction swap(source: HTMLElement, target: HTMLElement): void {\n  target.append(...Array.from(source.childNodes))\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation list\n *\n * This function analyzes the containing code block and checks for markers\n * referring to elements in the given annotation list. If no markers are found,\n * the list is left untouched. Otherwise, list elements are rendered as\n * annotations inside the code block.\n *\n * @param el - Annotation list element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationList(\n  el: HTMLElement, container: HTMLElement, { target$, print$ }: MountOptions\n): Observable<Component<Annotation>> {\n\n  /* Compute prefix for tooltip anchors */\n  const parent = container.closest(\"[id]\")\n  const prefix = parent?.id\n\n  /* Find and replace all markers with empty annotations */\n  const annotations = new Map<string, HTMLElement>()\n  for (const marker of findMarkers(container)) {\n    const [, id] = marker.textContent!.match(/\\((\\d+)\\)/)!\n    if (getOptionalElement(`:scope > li:nth-child(${id})`, el)) {\n      annotations.set(id, renderAnnotation(id, prefix))\n      marker.replaceWith(annotations.get(id)!)\n    }\n  }\n\n  /* Keep list if there are no annotations to render */\n  if (annotations.size === 0)\n    return EMPTY\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n    /* Retrieve container pairs for swapping */\n    const pairs: [HTMLElement, HTMLElement][] = []\n    for (const [id, annotation] of annotations)\n      pairs.push([\n        getElement(\".md-typeset\", annotation),\n        getElement(`:scope > li:nth-child(${id})`, el)\n      ])\n\n    /* Handle print mode - see https://bit.ly/3rgPdpt */\n    print$.pipe(takeUntil(done$))\n      .subscribe(active => {\n        el.hidden = !active\n\n        /* Add class to discern list element */\n        el.classList.toggle(\"md-annotation-list\", active)\n\n        /* Show annotations in code block or list (print) */\n        for (const [inner, child] of pairs)\n          if (!active)\n            swap(child, inner)\n          else\n            swap(inner, child)\n      })\n\n    /* Create and return component */\n    return merge(...[...annotations]\n      .map(([, annotation]) => (\n        mountAnnotation(annotation, container, { target$ })\n      ))\n    )\n      .pipe(\n        finalize(() => push$.complete()),\n        share()\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable, defer } from \"rxjs\"\n\nimport { Component } from \"../../../_\"\nimport { Annotation } from \"../_\"\nimport { mountAnnotationList } from \"../list\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find list element directly following a block\n *\n * @param el - Annotation block element\n *\n * @returns List element or nothing\n */\nfunction findList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation block\n *\n * @param el - Annotation block element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Annotation>> {\n  return defer(() => {\n    const list = findList(el)\n    return typeof list !== \"undefined\"\n      ? mountAnnotationList(list, el, options)\n      : EMPTY\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  filter,\n  finalize,\n  map,\n  mergeWith,\n  switchMap,\n  take,\n  takeLast,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  getElementContentSize,\n  watchElementSize,\n  watchElementVisibility\n} from \"~/browser\"\nimport { renderClipboardButton } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../../tooltip\"\nimport {\n  Annotation,\n  mountAnnotationList\n} from \"../../annotation\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Code block overflow\n */\nexport interface Overflow {\n  scrollable: boolean                  /* Code block overflows */\n}\n\n/**\n * Code block\n */\nexport type CodeBlock =\n  | Overflow\n  | Annotation\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for code blocks\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find candidate list element directly following a code block\n *\n * @param el - Code block element\n *\n * @returns List element or nothing\n */\nfunction findCandidateList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findCandidateList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch code block\n *\n * This function monitors size changes of the viewport, as well as switches of\n * content tabs with embedded code blocks, as both may trigger overflow.\n *\n * @param el - Code block element\n *\n * @returns Code block observable\n */\nexport function watchCodeBlock(\n  el: HTMLElement\n): Observable<Overflow> {\n  return watchElementSize(el)\n    .pipe(\n      map(({ width }) => {\n        const content = getElementContentSize(el)\n        return {\n          scrollable: content.width > width\n        }\n      }),\n      distinctUntilKeyChanged(\"scrollable\")\n    )\n}\n\n/**\n * Mount code block\n *\n * This function ensures that an overflowing code block is focusable through\n * keyboard, so it can be scrolled without a mouse to improve on accessibility.\n * Furthermore, if code annotations are enabled, they are mounted if and only\n * if the code block is currently visible, e.g., not in a hidden content tab.\n *\n * Note that code blocks may be mounted eagerly or lazily. If they're mounted\n * lazily (on first visibility), code annotation anchor links will not work,\n * as they are evaluated on initial page load, and code annotations in general\n * might feel a little bumpier.\n *\n * @param el - Code block element\n * @param options - Options\n *\n * @returns Code block and annotation component observable\n */\nexport function mountCodeBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<CodeBlock>> {\n  const { matches: hover } = matchMedia(\"(hover)\")\n\n  /* Defer mounting of code block - see https://bit.ly/3vHVoVD */\n  const factory$ = defer(() => {\n    const push$ = new Subject<Overflow>()\n    const done$ = push$.pipe(takeLast(1))\n    push$.subscribe(({ scrollable }) => {\n      if (scrollable && hover)\n        el.setAttribute(\"tabindex\", \"0\")\n      else\n        el.removeAttribute(\"tabindex\")\n    })\n\n    /* Render button for Clipboard.js integration */\n    const content$: Array<Observable<Component<CodeBlock>>> = []\n    if (ClipboardJS.isSupported()) {\n      if (el.closest(\".copy\") || (\n        feature(\"content.code.copy\") && !el.closest(\".no-copy\")\n      )) {\n        const parent = el.closest(\"pre\")!\n        parent.id = `__code_${sequence++}`\n\n        /* Mount tooltip, if enabled */\n        const button = renderClipboardButton(parent.id)\n        parent.insertBefore(button, el)\n        if (feature(\"content.tooltips\"))\n          content$.push(mountTooltip(button))\n      }\n    }\n\n    /* Handle code annotations */\n    const container = el.closest(\".highlight\")\n    if (container instanceof HTMLElement) {\n      const list = findCandidateList(container)\n\n      /* Mount code annotations, if enabled */\n      if (typeof list !== \"undefined\" && (\n        container.classList.contains(\"annotate\") ||\n        feature(\"content.code.annotate\")\n      )) {\n        const annotations$ = mountAnnotationList(list, el, options)\n        content$.push(\n          watchElementSize(container)\n            .pipe(\n              takeUntil(done$),\n              map(({ width, height }) => width && height),\n              distinctUntilChanged(),\n              switchMap(active => active ? annotations$ : EMPTY)\n            )\n        )\n      }\n    }\n\n    /* Create and return component */\n    return watchCodeBlock(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(...content$)\n      )\n  })\n\n  /* Mount code block lazily */\n  if (feature(\"content.lazy\"))\n    return watchElementVisibility(el)\n      .pipe(\n        filter(visible => visible),\n        take(1),\n        switchMap(() => factory$)\n      )\n\n  /* Mount code block */\n  return factory$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Details\n */\nexport interface Details {\n  action: \"open\" | \"close\"             /* Details state */\n  reveal?: boolean                     /* Details is revealed */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch details\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details observable\n */\nexport function watchDetails(\n  el: HTMLDetailsElement, { target$, print$ }: WatchOptions\n): Observable<Details> {\n  let open = true\n  return merge(\n\n    /* Open and focus details on location target */\n    target$\n      .pipe(\n        map(target => target.closest(\"details:not([open])\")!),\n        filter(details => el === details),\n        map(() => ({\n          action: \"open\", reveal: true\n        }) as Details)\n      ),\n\n    /* Open details on print and close afterwards */\n    print$\n      .pipe(\n        filter(active => active || !open),\n        tap(() => open = el.open),\n        map(active => ({\n          action: active ? \"open\" : \"close\"\n        }) as Details)\n      )\n  )\n}\n\n/**\n * Mount details\n *\n * This function ensures that `details` tags are opened on anchor jumps and\n * prior to printing, so the whole content of the page is visible.\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details component observable\n */\nexport function mountDetails(\n  el: HTMLDetailsElement, options: MountOptions\n): Observable<Component<Details>> {\n  return defer(() => {\n    const push$ = new Subject<Details>()\n    push$.subscribe(({ action, reveal }) => {\n      el.toggleAttribute(\"open\", action === \"open\")\n      if (reveal)\n        el.scrollIntoView()\n    })\n\n    /* Create and return component */\n    return watchDetails(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", ".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\nimport themeCSS from \"./index.css\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid diagram\n */\nexport interface Mermaid {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid instance observable\n */\nlet mermaid$: Observable<void>\n\n/**\n * Global sequence number for diagrams\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch Mermaid script\n *\n * @returns Mermaid scripts observable\n */\nfunction fetchScripts(): Observable<void> {\n  return typeof mermaid === \"undefined\" || mermaid instanceof Element\n    ? watchScript(\"https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js\")\n    : of(undefined)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount Mermaid diagram\n *\n * @param el - Code block element\n *\n * @returns Mermaid diagram component observable\n */\nexport function mountMermaid(\n  el: HTMLElement\n): Observable<Component<Mermaid>> {\n  el.classList.remove(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n  mermaid$ ||= fetchScripts()\n    .pipe(\n      tap(() => mermaid.initialize({\n        startOnLoad: false,\n        themeCSS,\n        sequence: {\n          actorFontSize: \"16px\", // Hack: mitigate https://bit.ly/3y0NEi3\n          messageFontSize: \"16px\",\n          noteFontSize: \"16px\"\n        }\n      })),\n      map(() => undefined),\n      shareReplay(1)\n    )\n\n  /* Render diagram */\n  mermaid$.subscribe(async () => {\n    el.classList.add(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n    const id = `__mermaid_${sequence++}`\n\n    /* Create host element to replace code block */\n    const host = h(\"div\", { class: \"mermaid\" })\n    const text = el.textContent\n\n    /* Render and inject diagram */\n    const { svg, fn } = await mermaid.render(id, text)\n\n    /* Create a shadow root and inject diagram */\n    const shadow = host.attachShadow({ mode: \"closed\" })\n    shadow.innerHTML = svg\n\n    /* Replace code block with diagram and bind functions */\n    el.replaceWith(host)\n    fn?.(shadow)\n  })\n\n  /* Create and return component */\n  return mermaid$\n    .pipe(\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, of } from \"rxjs\"\n\nimport { renderTable } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Data table\n */\nexport interface DataTable {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Sentinel for replacement\n */\nconst sentinel = h(\"table\")\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount data table\n *\n * This function wraps a data table in another scrollable container, so it can\n * be smoothly scrolled on smaller screen sizes and won't break the layout.\n *\n * @param el - Data table element\n *\n * @returns Data table component observable\n */\nexport function mountDataTable(\n  el: HTMLElement\n): Observable<Component<DataTable>> {\n  el.replaceWith(sentinel)\n  sentinel.replaceWith(renderTable(el))\n\n  /* Create and return component */\n  return of({ ref: el })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  skip,\n  startWith,\n  subscribeOn,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContentOffset,\n  getElementContentSize,\n  getElementOffset,\n  getElementSize,\n  getElements,\n  watchElementContentOffset,\n  watchElementSize\n} from \"~/browser\"\nimport { renderTabbedControl } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content tabs\n */\nexport interface ContentTabs {\n  active: HTMLLabelElement             /* Active tab label */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch content tabs\n *\n * @param inputs - Content tabs input elements\n *\n * @returns Content tabs observable\n */\nexport function watchContentTabs(\n  inputs: HTMLInputElement[]\n): Observable<ContentTabs> {\n  const initial = inputs.find(input => input.checked) || inputs[0]\n  return merge(...inputs.map(input => fromEvent(input, \"change\")\n    .pipe(\n      map(() => getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`))\n    )\n  ))\n    .pipe(\n      startWith(getElement<HTMLLabelElement>(`label[for=\"${initial.id}\"]`)),\n      map(active => ({ active }))\n    )\n}\n\n/**\n * Mount content tabs\n *\n * @param el - Content tabs element\n * @param options - Options\n *\n * @returns Content tabs component observable\n */\nexport function mountContentTabs(\n  el: HTMLElement, { viewport$, target$ }: MountOptions\n): Observable<Component<ContentTabs>> {\n  const container = getElement(\".tabbed-labels\", el)\n  const inputs = getElements<HTMLInputElement>(\":scope > input\", el)\n\n  /* Render content tab previous button for pagination */\n  const prev = renderTabbedControl(\"prev\")\n  el.append(prev)\n\n  /* Render content tab next button for pagination */\n  const next = renderTabbedControl(\"next\")\n  el.append(next)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<ContentTabs>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    combineLatest([push$, watchElementSize(el)])\n      .pipe(\n        takeUntil(done$),\n        auditTime(1, animationFrameScheduler)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next([{ active }, size]) {\n            const offset = getElementOffset(active)\n            const { width } = getElementSize(active)\n\n            /* Set tab indicator offset and width */\n            el.style.setProperty(\"--md-indicator-x\", `${offset.x}px`)\n            el.style.setProperty(\"--md-indicator-width\", `${width}px`)\n\n            /* Scroll container to active content tab */\n            const content = getElementContentOffset(container)\n            if (\n              offset.x         < content.x              ||\n              offset.x + width > content.x + size.width\n            )\n              container.scrollTo({\n                left: Math.max(0, offset.x - 16),\n                behavior: \"smooth\"\n              })\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-indicator-x\")\n            el.style.removeProperty(\"--md-indicator-width\")\n          }\n        })\n\n    /* Hide content tab buttons on borders */\n    combineLatest([\n      watchElementContentOffset(container),\n      watchElementSize(container)\n    ])\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(([offset, size]) => {\n          const content = getElementContentSize(container)\n          prev.hidden = offset.x < 16\n          next.hidden = offset.x > content.width - size.width - 16\n        })\n\n    /* Paginate content tab container on click */\n    merge(\n      fromEvent(prev, \"click\").pipe(map(() => -1)),\n      fromEvent(next, \"click\").pipe(map(() => +1))\n    )\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(direction => {\n          const { width } = getElementSize(container)\n          container.scrollBy({\n            left: width * direction,\n            behavior: \"smooth\"\n          })\n        })\n\n    /* Switch to content tab target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(input => inputs.includes(input as HTMLInputElement))\n      )\n        .subscribe(input => input.click())\n\n    /* Add link to each content tab label */\n    container.classList.add(\"tabbed-labels--linked\")\n    for (const input of inputs) {\n      const label = getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`)\n      label.replaceChildren(h(\"a\", {\n        href: `#${label.htmlFor}`,\n        tabIndex: -1\n      }, ...Array.from(label.childNodes)))\n\n      /* Allow to copy link without scrolling to anchor */\n      fromEvent<MouseEvent>(label.firstElementChild!, \"click\")\n        .pipe(\n          takeUntil(done$),\n          filter(ev => !(ev.metaKey || ev.ctrlKey)),\n          tap(ev => {\n            ev.preventDefault()\n            ev.stopPropagation()\n          })\n        )\n          // @todo we might need to remove the anchor link on complete\n          .subscribe(() => {\n            history.replaceState({}, \"\", `#${label.htmlFor}`)\n            label.click()\n          })\n    }\n\n    /* Set up linking of content tabs, if enabled */\n    if (feature(\"content.tabs.link\"))\n      push$.pipe(\n        skip(1),\n        withLatestFrom(viewport$)\n      )\n        .subscribe(([{ active }, { offset }]) => {\n          const tab = active.innerText.trim()\n          if (active.hasAttribute(\"data-md-switching\")) {\n            active.removeAttribute(\"data-md-switching\")\n\n          /* Determine viewport offset of active tab */\n          } else {\n            const y = el.offsetTop - offset.y\n\n            /* Passively activate other tabs */\n            for (const set of getElements(\"[data-tabs]\"))\n              for (const input of getElements<HTMLInputElement>(\n                \":scope > input\", set\n              )) {\n                const label = getElement(`label[for=\"${input.id}\"]`)\n                if (\n                  label !== active &&\n                  label.innerText.trim() === tab\n                ) {\n                  label.setAttribute(\"data-md-switching\", \"\")\n                  input.click()\n                  break\n                }\n              }\n\n            /* Bring active tab into view */\n            window.scrollTo({\n              top: el.offsetTop - y\n            })\n\n            /* Persist active tabs in local storage */\n            const tabs = __md_get<string[]>(\"__tabs\") || []\n            __md_set(\"__tabs\", [...new Set([tab, ...tabs])])\n          }\n        })\n\n    /* Pause media (audio, video) on switch - see https://bit.ly/3Bk6cel */\n    push$.pipe(takeUntil(done$))\n      .subscribe(() => {\n        for (const media of getElements<HTMLAudioElement>(\"audio, video\", el))\n          media.pause()\n      })\n\n    /* Create and return component */\n    return watchContentTabs(inputs)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, merge } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { Viewport, getElements } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../tooltip\"\nimport {\n  Annotation,\n  mountAnnotationBlock\n} from \"../annotation\"\nimport {\n  CodeBlock,\n  mountCodeBlock\n} from \"../code\"\nimport {\n  Details,\n  mountDetails\n} from \"../details\"\nimport {\n  Mermaid,\n  mountMermaid\n} from \"../mermaid\"\nimport {\n  DataTable,\n  mountDataTable\n} from \"../table\"\nimport {\n  ContentTabs,\n  mountContentTabs\n} from \"../tabs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content\n */\nexport type Content =\n  | Annotation\n  | CodeBlock\n  | ContentTabs\n  | DataTable\n  | Details\n  | Mermaid\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount content\n *\n * This function mounts all components that are found in the content of the\n * actual article, including code blocks, data tables and details.\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Content component observable\n */\nexport function mountContent(\n  el: HTMLElement, { viewport$, target$, print$ }: MountOptions\n): Observable<Component<Content>> {\n  return merge(\n\n    /* Annotations */\n    ...getElements(\".annotate:not(.highlight)\", el)\n      .map(child => mountAnnotationBlock(child, { target$, print$ })),\n\n    /* Code blocks */\n    ...getElements(\"pre:not(.mermaid) > code\", el)\n      .map(child => mountCodeBlock(child, { target$, print$ })),\n\n    /* Mermaid diagrams */\n    ...getElements(\"pre.mermaid\", el)\n      .map(child => mountMermaid(child)),\n\n    /* Data tables */\n    ...getElements(\"table:not([class])\", el)\n      .map(child => mountDataTable(child)),\n\n    /* Details */\n    ...getElements(\"details\", el)\n      .map(child => mountDetails(child, { target$, print$ })),\n\n    /* Content tabs */\n    ...getElements(\"[data-tabs]\", el)\n      .map(child => mountContentTabs(child, { viewport$, target$ })),\n\n    /* Tooltips */\n    ...getElements(\"[title]\", el)\n      .filter(() => feature(\"content.tooltips\"))\n      .map(child => mountTooltip(child))\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  delay,\n  finalize,\n  map,\n  merge,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dialog\n */\nexport interface Dialog {\n  message: string                      /* Dialog message */\n  active: boolean                      /* Dialog is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch dialog\n *\n * @param _el - Dialog element\n * @param options - Options\n *\n * @returns Dialog observable\n */\nexport function watchDialog(\n  _el: HTMLElement, { alert$ }: WatchOptions\n): Observable<Dialog> {\n  return alert$\n    .pipe(\n      switchMap(message => merge(\n        of(true),\n        of(false).pipe(delay(2000))\n      )\n        .pipe(\n          map(active => ({ message, active }))\n        )\n      )\n    )\n}\n\n/**\n * Mount dialog\n *\n * This function reveals the dialog in the right corner when a new alert is\n * emitted through the subject that is passed as part of the options.\n *\n * @param el - Dialog element\n * @param options - Options\n *\n * @returns Dialog component observable\n */\nexport function mountDialog(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Dialog>> {\n  const inner = getElement(\".md-typeset\", el)\n  return defer(() => {\n    const push$ = new Subject<Dialog>()\n    push$.subscribe(({ message, active }) => {\n      el.classList.toggle(\"md-dialog--active\", active)\n      inner.textContent = message\n    })\n\n    /* Create and return component */\n    return watchDialog(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  combineLatestWith,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  from,\n  ignoreElements,\n  map,\n  mergeMap,\n  mergeWith,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  takeUntil\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  watchElementSize,\n  watchToggle\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Main } from \"../../main\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface Header {\n  height: number                       /* Header visible height */\n  hidden: boolean                      /* Header is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Compute whether the header is hidden\n *\n * If the user scrolls past a certain threshold, the header can be hidden when\n * scrolling down, and shown when scrolling up.\n *\n * @param options - Options\n *\n * @returns Toggle observable\n */\nfunction isHidden({ viewport$ }: WatchOptions): Observable<boolean> {\n  if (!feature(\"header.autohide\"))\n    return of(false)\n\n  /* Compute direction and turning point */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => [a < b, b] as const),\n      distinctUntilKeyChanged(0)\n    )\n\n  /* Compute whether header should be hidden */\n  const hidden$ = combineLatest([viewport$, direction$])\n    .pipe(\n      filter(([{ offset }, [, y]]) => Math.abs(y - offset.y) > 100),\n      map(([, [direction]]) => direction),\n      distinctUntilChanged()\n    )\n\n  /* Compute threshold for hiding */\n  const search$ = watchToggle(\"search\")\n  return combineLatest([viewport$, search$])\n    .pipe(\n      map(([{ offset }, search]) => offset.y > 400 && !search),\n      distinctUntilChanged(),\n      switchMap(active => active ? hidden$ : of(false)),\n      startWith(false)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header observable\n */\nexport function watchHeader(\n  el: HTMLElement, options: WatchOptions\n): Observable<Header> {\n  return defer(() => combineLatest([\n    watchElementSize(el),\n    isHidden(options)\n  ]))\n    .pipe(\n      map(([{ height }, hidden]) => ({\n        height,\n        hidden\n      })),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.hidden === b.hidden\n      )),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount header\n *\n * This function manages the different states of the header, i.e. whether it's\n * hidden or rendered with a shadow. This depends heavily on the main area.\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header component observable\n */\nexport function mountHeader(\n  el: HTMLElement, { header$, main$ }: MountOptions\n): Observable<Component<Header | Tooltip>> {\n  return defer(() => {\n    const push$ = new Subject<Main>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$\n      .pipe(\n        distinctUntilKeyChanged(\"active\"),\n        combineLatestWith(header$)\n      )\n        .subscribe(([{ active }, { hidden }]) => {\n          el.classList.toggle(\"md-header--shadow\", active && !hidden)\n          el.hidden = hidden\n        })\n\n    /* Mount tooltips, if enabled */\n    const tooltips = from(getElements(\"[title]\", el))\n      .pipe(\n        filter(() => feature(\"content.tooltips\")),\n        mergeMap(child => mountTooltip(child))\n      )\n\n    /* Link to main area */\n    main$.subscribe(push$)\n\n    /* Create and return component */\n    return header$\n      .pipe(\n        takeUntil(done$),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(tooltips.pipe(takeUntil(done$)))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElementSize,\n  getOptionalElement,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Header } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface HeaderTitle {\n  active: boolean                      /* Header title is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header title\n *\n * @param el - Heading element\n * @param options - Options\n *\n * @returns Header title observable\n */\nexport function watchHeaderTitle(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<HeaderTitle> {\n  return watchViewportAt(el, { viewport$, header$ })\n    .pipe(\n      map(({ offset: { y } }) => {\n        const { height } = getElementSize(el)\n        return {\n          active: y >= height\n        }\n      }),\n      distinctUntilKeyChanged(\"active\")\n    )\n}\n\n/**\n * Mount header title\n *\n * This function swaps the header title from the site title to the title of the\n * current page when the user scrolls past the first headline.\n *\n * @param el - Header title element\n * @param options - Options\n *\n * @returns Header title component observable\n */\nexport function mountHeaderTitle(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<HeaderTitle>> {\n  return defer(() => {\n    const push$ = new Subject<HeaderTitle>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ active }) {\n        el.classList.toggle(\"md-header__title--active\", active)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.classList.remove(\"md-header__title--active\")\n      }\n    })\n\n    /* Obtain headline, if any */\n    const heading = getOptionalElement(\".md-content h1\")\n    if (typeof heading === \"undefined\")\n      return EMPTY\n\n    /* Create and return component */\n    return watchHeaderTitle(heading, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  map,\n  switchMap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchElementSize\n} from \"~/browser\"\n\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Main area\n */\nexport interface Main {\n  offset: number                       /* Main area top offset */\n  height: number                       /* Main area visible height */\n  active: boolean                      /* Main area is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch main area\n *\n * This function returns an observable that computes the visual parameters of\n * the main area which depends on the viewport vertical offset and height, as\n * well as the height of the header element, if the header is fixed.\n *\n * @param el - Main area element\n * @param options - Options\n *\n * @returns Main area observable\n */\nexport function watchMain(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Main> {\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      map(({ height }) => height),\n      distinctUntilChanged()\n    )\n\n  /* Compute the main area's top and bottom borders */\n  const border$ = adjust$\n    .pipe(\n      switchMap(() => watchElementSize(el)\n        .pipe(\n          map(({ height }) => ({\n            top:    el.offsetTop,\n            bottom: el.offsetTop + height\n          })),\n          distinctUntilKeyChanged(\"bottom\")\n        )\n      )\n    )\n\n  /* Compute the main area's offset, visible height and if we scrolled past */\n  return combineLatest([adjust$, border$, viewport$])\n    .pipe(\n      map(([header, { top, bottom }, { offset: { y }, size: { height } }]) => {\n        height = Math.max(0, height\n          - Math.max(0, top    - y,  header)\n          - Math.max(0, height + y - bottom)\n        )\n        return {\n          offset: top - header,\n          height,\n          active: top - header <= y\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.offset === b.offset &&\n        a.height === b.height &&\n        a.active === b.active\n      ))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  mergeMap,\n  observeOn,\n  of,\n  repeat,\n  shareReplay,\n  skip,\n  startWith,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { getElements, watchMedia } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Palette colors\n */\nexport interface PaletteColor {\n  media?: string                       /* Media query */\n  scheme?: string                      /* Color scheme */\n  primary?: string                     /* Primary color */\n  accent?: string                      /* Accent color */\n}\n\n/**\n * Palette\n */\nexport interface Palette {\n  index: number                        /* Palette index */\n  color: PaletteColor                  /* Palette colors */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch color palette\n *\n * @param inputs - Color palette element\n *\n * @returns Color palette observable\n */\nexport function watchPalette(\n  inputs: HTMLInputElement[]\n): Observable<Palette> {\n  const current = __md_get<Palette>(\"__palette\") || {\n    index: inputs.findIndex(input => matchMedia(\n      input.getAttribute(\"data-md-color-media\")!\n    ).matches)\n  }\n\n  /* Emit changes in color palette */\n  const index = Math.max(0, Math.min(current.index, inputs.length - 1))\n  return of(...inputs)\n    .pipe(\n      mergeMap(input => fromEvent(input, \"change\").pipe(map(() => input))),\n      startWith(inputs[index]),\n      map(input => ({\n        index: inputs.indexOf(input),\n        color: {\n          media:   input.getAttribute(\"data-md-color-media\"),\n          scheme:  input.getAttribute(\"data-md-color-scheme\"),\n          primary: input.getAttribute(\"data-md-color-primary\"),\n          accent:  input.getAttribute(\"data-md-color-accent\")\n        }\n      } as Palette)),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount color palette\n *\n * @param el - Color palette element\n *\n * @returns Color palette component observable\n */\nexport function mountPalette(\n  el: HTMLElement\n): Observable<Component<Palette>> {\n  const inputs = getElements<HTMLInputElement>(\"input\", el)\n  const meta = h(\"meta\", { name: \"theme-color\" })\n  document.head.appendChild(meta)\n\n  // Add color scheme meta tag\n  const scheme = h(\"meta\", { name: \"color-scheme\" })\n  document.head.appendChild(scheme)\n\n  /* Mount component on subscription */\n  const media$ = watchMedia(\"(prefers-color-scheme: light)\")\n  return defer(() => {\n    const push$ = new Subject<Palette>()\n    push$.subscribe(palette => {\n      document.body.setAttribute(\"data-md-color-switching\", \"\")\n\n      /* Retrieve color palette for system preference */\n      if (palette.color.media === \"(prefers-color-scheme)\") {\n        const media = matchMedia(\"(prefers-color-scheme: light)\")\n        const input = document.querySelector(media.matches\n          ? \"[data-md-color-media='(prefers-color-scheme: light)']\"\n          : \"[data-md-color-media='(prefers-color-scheme: dark)']\"\n        )!\n\n        /* Retrieve colors for system preference */\n        palette.color.scheme  = input.getAttribute(\"data-md-color-scheme\")!\n        palette.color.primary = input.getAttribute(\"data-md-color-primary\")!\n        palette.color.accent  = input.getAttribute(\"data-md-color-accent\")!\n      }\n\n      /* Set color palette */\n      for (const [key, value] of Object.entries(palette.color))\n        document.body.setAttribute(`data-md-color-${key}`, value)\n\n      /* Set toggle visibility */\n      for (let index = 0; index < inputs.length; index++) {\n        const label = inputs[index].nextElementSibling\n        if (label instanceof HTMLElement)\n          label.hidden = palette.index !== index\n      }\n\n      /* Persist preference in local storage */\n      __md_set(\"__palette\", palette)\n    })\n\n    /* Update theme-color meta tag */\n    push$\n      .pipe(\n        map(() => {\n          const header = getComponentElement(\"header\")\n          const style  = window.getComputedStyle(header)\n\n          // Set color scheme\n          scheme.content = style.colorScheme\n\n          /* Return color in hexadecimal format */\n          return style.backgroundColor.match(/\\d+/g)!\n            .map(value => (+value).toString(16).padStart(2, \"0\"))\n            .join(\"\")\n        })\n      )\n        .subscribe(color => meta.content = `#${color}`)\n\n    /* Revert transition durations after color switch */\n    push$.pipe(observeOn(asyncScheduler))\n      .subscribe(() => {\n        document.body.removeAttribute(\"data-md-color-switching\")\n      })\n\n    /* Create and return component */\n    return watchPalette(inputs)\n      .pipe(\n        takeUntil(media$.pipe(skip(1))),\n        repeat(),\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Progress indicator\n */\nexport interface Progress {\n  value: number                        // Progress value\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount progress indicator\n *\n * @param el - Progress indicator element\n * @param options - Options\n *\n * @returns Progress indicator component observable\n */\nexport function mountProgress(\n  el: HTMLElement, { progress$ }: MountOptions\n): Observable<Component<Progress>> {\n\n  // Mount component on subscription\n  return defer(() => {\n    const push$ = new Subject<Progress>()\n    push$.subscribe(({ value }) => {\n      el.style.setProperty(\"--md-progress-value\", `${value}`)\n    })\n\n    // Create and return component\n    return progress$\n      .pipe(\n        tap(value => push$.next({ value })),\n        finalize(() => push$.complete()),\n        map(value => ({ ref: el, value }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  Observable,\n  Subject,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Extract text to copy\n *\n * @param el - HTML element\n *\n * @returns Extracted text\n */\nfunction extract(el: HTMLElement): string {\n  el.setAttribute(\"data-md-copying\", \"\")\n  const copy = el.closest(\"[data-copy]\")\n  const text = copy\n    ? copy.getAttribute(\"data-copy\")!\n    : el.innerText\n  el.removeAttribute(\"data-md-copying\")\n  return text.trimEnd()\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up Clipboard.js integration\n *\n * @param options - Options\n */\nexport function setupClipboardJS(\n  { alert$ }: SetupOptions\n): void {\n  if (ClipboardJS.isSupported()) {\n    new Observable<ClipboardJS.Event>(subscriber => {\n      new ClipboardJS(\"[data-clipboard-target], [data-clipboard-text]\", {\n        text: el => (\n          el.getAttribute(\"data-clipboard-text\")! ||\n          extract(getElement(\n            el.getAttribute(\"data-clipboard-target\")!\n          ))\n        )\n      })\n        .on(\"success\", ev => subscriber.next(ev))\n    })\n      .pipe(\n        tap(ev => {\n          const trigger = ev.trigger as HTMLElement\n          trigger.focus()\n        }),\n        map(() => translation(\"clipboard.copied\"))\n      )\n        .subscribe(alert$)\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  catchError,\n  map,\n  of\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  requestXML\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sitemap, i.e. a list of URLs\n */\nexport type Sitemap = Map<string, URL[]>\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Resolve URL to the given base URL\n *\n * When serving the site with instant navigation, MkDocs will set the hostname\n * to the value as specified in `dev_addr`, but the browser allows for several\n * hostnames to be used: `localhost`, `127.0.0.1` or even `0.0.0.0`, depending\n * on configuration. This function resolves the URL to the given hostname.\n *\n * @param url - URL\n * @param base - Base URL\n *\n * @returns Resolved URL\n */\nfunction resolve(url: URL, base: URL) {\n  url.protocol = base.protocol\n  url.hostname = base.hostname\n  return url\n}\n\n/**\n * Extract sitemap from document\n *\n * This function extracts the URLs and alternate links from the document, and\n * associates alternate links to the original URL as found in `loc`, allowing\n * the browser to navigate to the correct page when switching languages. The\n * format of the sitemap is expected to adhere to:\n *\n * ``` xml\n * <urlset>\n *   <url>\n *     <loc>...</loc>\n *     <xhtml:link rel=\"alternate\" hreflang=\"en\" href=\"...\"/>\n *     <xhtml:link rel=\"alternate\" hreflang=\"de\" href=\"...\"/>\n *     ...\n *   </url>\n *   ...\n * </urlset>\n * ```\n *\n * @param document - Document\n * @param base - Base URL\n *\n * @returns Sitemap\n */\nfunction extract(document: Document, base: URL): Sitemap {\n  const sitemap: Sitemap = new Map()\n  for (const el of getElements(\"url\", document)) {\n    const url = getElement(\"loc\", el)\n\n    // Create entry for location and add it to the list of links\n    const links = [resolve(new URL(url.textContent!), base)]\n    sitemap.set(`${links[0]}`, links)\n\n    // Attach alternate links to current entry\n    for (const link of getElements(\"[rel=alternate]\", el)) {\n      const href = link.getAttribute(\"href\")\n      if (href != null)\n        links.push(resolve(new URL(href), base))\n    }\n  }\n\n  // Return sitemap\n  return sitemap\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the sitemap for the given base URL\n *\n * If a network or parsing error occurs, we just default to an empty sitemap,\n * which means the caller should fall back to regular navigation.\n *\n * @param base - Base URL\n *\n * @returns Sitemap observable\n */\nexport function fetchSitemap(base: URL | string): Observable<Sitemap> {\n  return requestXML(new URL(\"sitemap.xml\", base))\n    .pipe(\n      map(document => extract(document, new URL(base))),\n      catchError(() => of(new Map())),\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  combineLatestWith,\n  concat,\n  debounceTime,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  of,\n  share,\n  switchMap,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration, feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  requestHTML,\n  setLocation,\n  setLocationHash\n} from \"~/browser\"\nimport { getComponentElement } from \"~/components\"\n\nimport { Sitemap, fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  location$: Subject<URL>              // Location subject\n  viewport$: Observable<Viewport>      // Viewport observable\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Handle clicks on internal URLs while skipping external URLs\n *\n * @param ev - Mouse event\n * @param sitemap - Sitemap\n *\n * @returns URL observable\n */\nfunction handle(\n  ev: MouseEvent, sitemap: Sitemap\n): Observable<URL> {\n  if (!(ev.target instanceof Element))\n    return EMPTY\n\n  // Skip, as target is not within a link - clicks on non-link elements are\n  // also captured, which we need to exclude from processing\n  const el = ev.target.closest(\"a\")\n  if (el === null)\n    return EMPTY\n\n  // Skip, as link opens in new window - we now know we have captured a click\n  // on a link, but the link either has a `target` property defined, or the\n  // user pressed the `meta` or `ctrl` key to open it in a new window. Thus,\n  // we need to filter this event as well.\n  if (el.target || ev.metaKey || ev.ctrlKey)\n    return EMPTY\n\n  // Next, we must check if the URL is relevant for us, i.e., if it's an\n  // internal link to a page that is managed by MkDocs. Only then we can be\n  // sure that the structure of the page to be loaded adheres to the current\n  // document structure and can subsequently be injected into it without doing\n  // a full reload. For this reason, we must canonicalize the URL by removing\n  // all search parameters and hash fragments.\n  const url = new URL(el.href)\n  url.search = url.hash = \"\"\n\n  // Skip, if URL is not included in the sitemap - this could be the case when\n  // linking between versions or languages, or to another page that the author\n  // included as part of the build, but that is not managed by MkDocs. In that\n  // case we must not continue with instant navigation.\n  if (!sitemap.has(`${url}`))\n    return EMPTY\n\n  // We now know that we have a link to an internal page, so we prevent the\n  // browser from navigation and emit the URL for instant navigation. Note that\n  // this also includes anchor links, which means we need to implement anchor\n  // positioning ourselves. The reason for this is that if we wouldn't manage\n  // anchor links as well, scroll restoration will not work correctly (e.g.\n  // following an anchor link and scrolling).\n  ev.preventDefault()\n  return of(new URL(el.href))\n}\n\n/**\n * Create a map of head elements for lookup and replacement\n *\n * @param document - Document\n *\n * @returns Tag map\n */\nfunction head(document: Document): Map<string, HTMLElement> {\n  const tags = new Map<string, HTMLElement>()\n  for (const el of getElements(\":scope > *\", document.head))\n    tags.set(el.outerHTML, el)\n\n  // Return tag map\n  return tags\n}\n\n/**\n * Resolve relative URLs in the given document\n *\n * This function resolves relative `href` and `src` attributes, which can belong\n * to all sorts of tags, like meta tags, links, images, scripts and more.\n *\n * @param document - Document\n *\n * @returns Document observable\n */\nfunction resolve(document: Document): Observable<Document> {\n  for (const el of getElements(\"[href], [src]\", document))\n    for (const key of [\"href\", \"src\"]) {\n      const value = el.getAttribute(key)\n      if (value && !/^(?:[a-z]+:)?\\/\\//i.test(value)) {\n        // @ts-expect-error - trick: self-assign to resolve URL\n        el[key] = el[key]\n        break\n      }\n    }\n\n  // Return document observable\n  return of(document)\n}\n\n/**\n * Create a map of head elements for lookup and replacement\n *\n * @param next - Next document\n *\n * @returns Document observable\n */\nfunction inject(next: Document): Observable<Document> {\n  for (const selector of [\n    \"[data-md-component=announce]\",\n    \"[data-md-component=container]\",\n    \"[data-md-component=header-topic]\",\n    \"[data-md-component=outdated]\",\n    \"[data-md-component=logo]\",\n    \"[data-md-component=skip]\",\n    ...feature(\"navigation.tabs.sticky\")\n      ? [\"[data-md-component=tabs]\"]\n      : []\n  ]) {\n    const source = getOptionalElement(selector)\n    const target = getOptionalElement(selector, next)\n    if (\n      typeof source !== \"undefined\" &&\n      typeof target !== \"undefined\"\n    ) {\n      source.replaceWith(target)\n    }\n  }\n\n  // Update meta tags\n  const tags = head(document)\n  for (const [html, el] of head(next))\n    if (tags.has(html))\n      tags.delete(html)\n    else\n      document.head.appendChild(el)\n\n  // Remove meta tags that are not present in the new document\n  for (const el of tags.values())\n    el.remove()\n\n  // After components and meta tags were replaced, re-evaluate scripts\n  // that were provided by the author as part of Markdown files\n  const container = getComponentElement(\"container\")\n  return concat(getElements(\"script\", container))\n    .pipe(\n      switchMap(el => {\n        const script = next.createElement(\"script\")\n        if (el.src) {\n          for (const name of el.getAttributeNames())\n            script.setAttribute(name, el.getAttribute(name)!)\n          el.replaceWith(script)\n\n          // Complete when script is loaded\n          return new Observable(observer => {\n            script.onload = () => observer.complete()\n          })\n\n        // Complete immediately\n        } else {\n          script.textContent = el.textContent\n          el.replaceWith(script)\n          return EMPTY\n        }\n      }),\n      ignoreElements(),\n      endWith(next)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up instant navigation\n *\n * This is a heavily orchestrated operation - see inline comments to learn how\n * this works with Material for MkDocs, and how you can hook into it.\n *\n * @param options - Options\n *\n * @returns Document observable\n */\nexport function setupInstantNavigation(\n  { location$, viewport$, progress$ }: SetupOptions\n): Observable<Document> {\n  const config = configuration()\n  if (location.protocol === \"file:\")\n    return EMPTY\n\n  // Load sitemap immediately, so we have it available when the user initiates\n  // the first navigation request without any perceivable delay\n  const sitemap$ = fetchSitemap(config.base)\n\n  // Since we might be on a slow connection, the user might trigger multiple\n  // instant navigation events that overlap. MkDocs produces relative URLs for\n  // all internal links, which becomes a problem in this case, because we need\n  // to change the base URL the moment the user clicks a link that should be\n  // intercepted in order to be consistent with popstate, which means that the\n  // base URL would now be incorrect when resolving another relative link from\n  // the same site. For this reason we always resolve all relative links to\n  // absolute links, so we can be sure this never happens.\n  of(document)\n    .subscribe(resolve)\n\n  // --------------------------------------------------------------------------\n  // Navigation interception\n  // --------------------------------------------------------------------------\n\n  // Intercept navigation - to keep the number of event listeners down we use\n  // the fact that uncaptured events bubble up to the body. This has the nice\n  // property that we don't need to detach and then re-attach event listeners\n  // when the document is replaced after a navigation event.\n  const instant$ =\n    fromEvent<MouseEvent>(document.body, \"click\")\n      .pipe(\n        combineLatestWith(sitemap$),\n        switchMap(([ev, sitemap]) => handle(ev, sitemap)),\n        share()\n      )\n\n  // Intercept history change events, e.g. when the user uses the browser's\n  // back or forward buttons, and emit new location for fetching and parsing\n  const history$ =\n    fromEvent<PopStateEvent>(window, \"popstate\")\n      .pipe(\n        map(getLocation),\n        share()\n      )\n\n  // While it would be better UX to defer navigation events until the document\n  // is fully fetched and parsed, we must schedule it here to synchronize with\n  // popstate events, as they are emitted immediately. Moreover we need to\n  // store the current viewport offset for scroll restoration later on.\n  instant$.pipe(withLatestFrom(viewport$))\n    .subscribe(([url, { offset }]) => {\n      history.replaceState(offset, \"\")\n      history.pushState(null, \"\", url)\n    })\n\n  // Emit URLs that should be fetched via instant navigation on location subject\n  // which was passed into this function. The state of instant navigation can be\n  // intercepted by other parts of the application, which can synchronously back\n  // up or restore state before or after instant navigation happens.\n  merge(instant$, history$)\n    .subscribe(location$)\n\n  // --------------------------------------------------------------------------\n  // Fetching and parsing\n  // --------------------------------------------------------------------------\n\n  // Fetch document - we deduplicate requests to the same location, so we don't\n  // end up with multiple requests for the same page. We use `switchMap`, since\n  // we want to cancel the previous request when a new one is triggered, which\n  // is automatically handled by the observable returned by `request`. This is\n  // essential to ensure a good user experience, as we don't want to load pages\n  // that are not needed anymore, e.g., when the user clicks multiple links in\n  // quick succession or on slow connections. If the request fails for some\n  // reason, we fall back and use regular navigation, forcing a reload.\n  const document$ = location$\n    .pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(url => requestHTML(url, { progress$ })\n        .pipe(\n          catchError(() => {\n            setLocation(url, true)\n            return EMPTY\n          })\n        )\n      ),\n\n      // The document was successfully fetched and parsed, so we can inject its\n      // contents into the currently active document\n      switchMap(resolve),\n      switchMap(inject),\n      share()\n    )\n\n  // --------------------------------------------------------------------------\n  // Scroll restoration\n  // --------------------------------------------------------------------------\n\n  // Handle scroll restoration - we must restore the viewport offset after the\n  // document has been fetched and injected, and every time the user clicks an\n  // anchor that leads to an element on the same page, which might also happen\n  // when the user uses the back or forward button.\n  merge(\n    document$.pipe(withLatestFrom(location$, (_, url) => url)),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with a hash fragment different from the current one, as\n    // well as from popstate events, which are emitted when the user navigates\n    // back and forth between pages. We use a two-layered subscription to scope\n    // the scroll restoration to the current page, as we don't need to restore\n    // the viewport offset when the user navigates to a different page, as this\n    // is already handled by the previous observable.\n    location$.pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(() => location$),\n      distinctUntilKeyChanged(\"hash\"),\n    ),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with the same hash fragment as the current one in the\n    // URL. Is is essential that we only intercept those from instant navigation\n    // events and not from history change events, or we'll end up in and endless\n    // loop. The top-level history entry must be removed, as it will be replaced\n    // with a new one, which would otherwise lead to a duplicate entry.\n    location$.pipe(\n      distinctUntilChanged((a, b) => (\n        a.pathname === b.pathname &&\n        a.hash     === b.hash\n      )),\n      switchMap(() => instant$),\n      tap(() => history.back())\n    )\n  )\n    .subscribe(url => {\n\n      // Check if the current history entry has a state, which happens when the\n      // user presses the back or forward button to visit a page we've already\n      // seen. If there's no state, it means a new page was visited and we must\n      // scroll to the top, unless an anchor is given.\n      if (history.state !== null || !url.hash) {\n        window.scrollTo(0, history.state?.y ?? 0)\n      } else {\n        history.scrollRestoration = \"auto\"\n        setLocationHash(url.hash)\n        history.scrollRestoration = \"manual\"\n      }\n    })\n\n  // Disable scroll restoration when an instant navigation event occurs, so the\n  // browser does not immediately set the viewport offset to the prior history\n  // entry, scrolling to the position on the same page, which would look odd.\n  // Instead, we manually restore the position once the page has loaded.\n  location$.subscribe(() => {\n    history.scrollRestoration = \"manual\"\n  })\n\n  // Enable scroll restoration before window unloads - this is essential to\n  // ensure that full reloads (F5) restore the viewport offset correctly. If\n  // only popstate events wouldn't reset the viewport offset prior to their\n  // emission, we could just reset this in popstate. Meh.\n  fromEvent(window, \"beforeunload\")\n    .subscribe(() => {\n      history.scrollRestoration = \"auto\"\n    })\n\n  // Track viewport offset, so we can restore it when the user navigates back\n  // and forth between pages. Note that this must be debounced and cannot be\n  // done in popstate, as popstate has already removed the entry from the\n  // history, which means it is too late.\n  viewport$\n    .pipe(\n      distinctUntilKeyChanged(\"offset\"),\n      debounceTime(100)\n    )\n      .subscribe(({ offset }) => {\n        history.replaceState(offset, \"\")\n      })\n\n  // Return document\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport escapeHTML from \"escape-html\"\n\nimport { SearchConfig } from \"../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlight function\n *\n * @param value - Value\n *\n * @returns Highlighted value\n */\nexport type SearchHighlightFn = (value: string) => string\n\n/**\n * Search highlight factory function\n *\n * @param query - Query value\n *\n * @returns Search highlight function\n */\nexport type SearchHighlightFactoryFn = (query: string) => SearchHighlightFn\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search highlighter\n *\n * @param config - Search configuration\n *\n * @returns Search highlight factory function\n */\nexport function setupSearchHighlighter(\n  config: SearchConfig\n): SearchHighlightFactoryFn {\n  // Hack: temporarily remove pure lookaheads and lookbehinds\n  const regex = config.separator.split(\"|\").map(term => {\n    const temp = term.replace(/(\\(\\?[!=<][^)]+\\))/g, \"\")\n    return temp.length === 0 ? \"\uFFFD\" : term\n  })\n    .join(\"|\")\n\n  const separator = new RegExp(regex, \"img\")\n  const highlight = (_: unknown, data: string, term: string) => {\n    return `${data}<mark data-md-highlight>${term}</mark>`\n  }\n\n  /* Return factory function */\n  return (query: string) => {\n    query = query\n      .replace(/[\\s*+\\-:~^]+/g, \" \")\n      .trim()\n\n    /* Create search term match expression */\n    const match = new RegExp(`(^|${config.separator}|)(${\n      query\n        .replace(/[|\\\\{}()[\\]^$+*?.-]/g, \"\\\\$&\")\n        .replace(separator, \"|\")\n    })`, \"img\")\n\n    /* Highlight string value */\n    return value => escapeHTML(value)\n      .replace(match, highlight)\n      .replace(/<\\/mark>(\\s+)<mark[^>]*>/img, \"$1\")\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchResult } from \"../../_\"\nimport { SearchIndex } from \"../../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search message type\n */\nexport const enum SearchMessageType {\n  SETUP,                               /* Search index setup */\n  READY,                               /* Search index ready */\n  QUERY,                               /* Search query */\n  RESULT                               /* Search results */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message containing the data necessary to setup the search index\n */\nexport interface SearchSetupMessage {\n  type: SearchMessageType.SETUP        /* Message type */\n  data: SearchIndex                    /* Message data */\n}\n\n/**\n * Message indicating the search index is ready\n */\nexport interface SearchReadyMessage {\n  type: SearchMessageType.READY        /* Message type */\n}\n\n/**\n * Message containing a search query\n */\nexport interface SearchQueryMessage {\n  type: SearchMessageType.QUERY        /* Message type */\n  data: string                         /* Message data */\n}\n\n/**\n * Message containing results for a search query\n */\nexport interface SearchResultMessage {\n  type: SearchMessageType.RESULT       /* Message type */\n  data: SearchResult                   /* Message data */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message exchanged with the search worker\n */\nexport type SearchMessage =\n  | SearchSetupMessage\n  | SearchReadyMessage\n  | SearchQueryMessage\n  | SearchResultMessage\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Type guard for search ready messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchReadyMessage(\n  message: SearchMessage\n): message is SearchReadyMessage {\n  return message.type === SearchMessageType.READY\n}\n\n/**\n * Type guard for search result messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchResultMessage(\n  message: SearchMessage\n): message is SearchResultMessage {\n  return message.type === SearchMessageType.RESULT\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ObservableInput,\n  Subject,\n  first,\n  merge,\n  of,\n  switchMap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { watchToggle, watchWorker } from \"~/browser\"\n\nimport { SearchIndex } from \"../../config\"\nimport {\n  SearchMessage,\n  SearchMessageType\n} from \"../message\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up search worker\n *\n * This function creates and initializes a web worker that is used for search,\n * so that the user interface doesn't freeze. In general, the application does\n * not care how search is implemented, as long as the web worker conforms to\n * the format expected by the application as defined in `SearchMessage`. This\n * allows the author to implement custom search functionality, by providing a\n * custom web worker via configuration.\n *\n * Material for MkDocs' built-in search implementation makes use of Lunr.js, an\n * efficient and fast implementation for client-side search. Leveraging a tiny\n * iframe-based web worker shim, search is even supported for the `file://`\n * protocol, enabling search for local non-hosted builds.\n *\n * If the protocol is `file://`, search initialization is deferred to mitigate\n * freezing, as it's now synchronous by design - see https://bit.ly/3C521EO\n *\n * @see https://bit.ly/3igvtQv - How to implement custom search\n *\n * @param url - Worker URL\n * @param index$ - Search index observable input\n *\n * @returns Search worker\n */\nexport function setupSearchWorker(\n  url: string, index$: ObservableInput<SearchIndex>\n): Subject<SearchMessage> {\n  const worker$ = watchWorker<SearchMessage>(url)\n  merge(\n    of(location.protocol !== \"file:\"),\n    watchToggle(\"search\")\n  )\n    .pipe(\n      first(active => active),\n      switchMap(() => index$)\n    )\n      .subscribe(({ config, docs }) => worker$.next({\n        type: SearchMessageType.SETUP,\n        data: {\n          config,\n          docs,\n          options: {\n            suggest: feature(\"search.suggest\")\n          }\n        }\n      }))\n\n  /* Return search worker */\n  return worker$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Subject,\n  catchError,\n  combineLatest,\n  filter,\n  fromEvent,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  getElement,\n  getLocation,\n  requestJSON,\n  setLocation\n} from \"~/browser\"\nimport { getComponentElements } from \"~/components\"\nimport {\n  Version,\n  renderVersionSelector\n} from \"~/templates\"\n\nimport { fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  document$: Subject<Document>         /* Document subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up version selector\n *\n * @param options - Options\n */\nexport function setupVersionSelector(\n  { document$ }: SetupOptions\n): void {\n  const config = configuration()\n  const versions$ = requestJSON<Version[]>(\n    new URL(\"../versions.json\", config.base)\n  )\n    .pipe(\n      catchError(() => EMPTY) // @todo refactor instant loading\n    )\n\n  /* Determine current version */\n  const current$ = versions$\n    .pipe(\n      map(versions => {\n        const [, current] = config.base.match(/([^/]+)\\/?$/)!\n        return versions.find(({ version, aliases }) => (\n          version === current || aliases.includes(current)\n        )) || versions[0]\n      })\n    )\n\n  /* Intercept inter-version navigation */\n  versions$\n    .pipe(\n      map(versions => new Map(versions.map(version => [\n        `${new URL(`../${version.version}/`, config.base)}`,\n        version\n      ]))),\n      switchMap(urls => fromEvent<MouseEvent>(document.body, \"click\")\n        .pipe(\n          filter(ev => !ev.metaKey && !ev.ctrlKey),\n          withLatestFrom(current$),\n          switchMap(([ev, current]) => {\n            if (ev.target instanceof Element) {\n              const el = ev.target.closest(\"a\")\n              if (el && !el.target && urls.has(el.href)) {\n                const url = el.href\n                // This is a temporary hack to detect if a version inside the\n                // version selector or on another part of the site was clicked.\n                // If we're inside the version selector, we definitely want to\n                // find the same page, as we might have different deployments\n                // due to aliases. However, if we're outside the version\n                // selector, we must abort here, because we might otherwise\n                // interfere with instant navigation. We need to refactor this\n                // at some point together with instant navigation.\n                //\n                // See https://github.com/squidfunk/mkdocs-material/issues/4012\n                if (!ev.target.closest(\".md-version\")) {\n                  const version = urls.get(url)!\n                  if (version === current)\n                    return EMPTY\n                }\n                ev.preventDefault()\n                return of(url)\n              }\n            }\n            return EMPTY\n          }),\n          switchMap(url => {\n            const { version } = urls.get(url)!\n            return fetchSitemap(new URL(url))\n              .pipe(\n                map(sitemap => {\n                  const location = getLocation()\n                  const path = location.href.replace(config.base, \"\")\n                  return sitemap.has(path.split(\"#\")[0])\n                    ? new URL(`../${version}/${path}`, config.base)\n                    : new URL(url)\n                })\n              )\n          })\n        )\n      )\n    )\n      .subscribe(url => setLocation(url, true))\n\n  /* Render version selector and warning */\n  combineLatest([versions$, current$])\n    .subscribe(([versions, current]) => {\n      const topic = getElement(\".md-header__topic\")\n      topic.appendChild(renderVersionSelector(versions, current))\n    })\n\n  /* Integrate outdated version banner with instant navigation */\n  document$.pipe(switchMap(() => current$))\n    .subscribe(current => {\n\n      /* Check if version state was already determined */\n      let outdated = __md_get(\"__outdated\", sessionStorage)\n      if (outdated === null) {\n        outdated = true\n\n        /* Obtain and normalize default versions */\n        let ignored = config.version?.default || \"latest\"\n        if (!Array.isArray(ignored))\n          ignored = [ignored]\n\n        /* Check if version is considered a default */\n        main: for (const ignore of ignored)\n          for (const version of current.aliases.concat(current.version))\n            if (new RegExp(ignore, \"i\").test(version)) {\n              outdated = false\n              break main\n            }\n\n        /* Persist version state in session storage */\n        __md_set(\"__outdated\", outdated, sessionStorage)\n      }\n\n      /* Unhide outdated version banner */\n      if (outdated)\n        for (const warning of getComponentElements(\"outdated\"))\n          warning.hidden = false\n    })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  first,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  shareReplay,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getLocation,\n  setToggle,\n  watchElementFocus,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchMessageType,\n  isSearchReadyMessage\n} from \"~/integrations\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search query\n */\nexport interface SearchQuery {\n  value: string                        /* Query value */\n  focus: boolean                       /* Query focus */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch search query\n *\n * Note that the focus event which triggers re-reading the current query value\n * is delayed by `1ms` so the input's empty state is allowed to propagate.\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query observable\n */\nexport function watchSearchQuery(\n  el: HTMLInputElement, { worker$ }: WatchOptions\n): Observable<SearchQuery> {\n\n  /* Support search deep linking */\n  const { searchParams } = getLocation()\n  if (searchParams.has(\"q\")) {\n    setToggle(\"search\", true)\n\n    /* Set query from parameter */\n    el.value = searchParams.get(\"q\")!\n    el.focus()\n\n    /* Remove query parameter on close */\n    watchToggle(\"search\")\n      .pipe(\n        first(active => !active)\n      )\n        .subscribe(() => {\n          const url = getLocation()\n          url.searchParams.delete(\"q\")\n          history.replaceState({}, \"\", `${url}`)\n        })\n  }\n\n  /* Intercept focus and input events */\n  const focus$ = watchElementFocus(el)\n  const value$ = merge(\n    worker$.pipe(first(isSearchReadyMessage)),\n    fromEvent(el, \"keyup\"),\n    focus$\n  )\n    .pipe(\n      map(() => el.value),\n      distinctUntilChanged()\n    )\n\n  /* Combine into single observable */\n  return combineLatest([value$, focus$])\n    .pipe(\n      map(([value, focus]) => ({ value, focus })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount search query\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query component observable\n */\nexport function mountSearchQuery(\n  el: HTMLInputElement, { worker$ }: MountOptions\n): Observable<Component<SearchQuery, HTMLInputElement>> {\n  const push$ = new Subject<SearchQuery>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n  /* Handle value change */\n  combineLatest([\n    worker$.pipe(first(isSearchReadyMessage)),\n    push$\n  ], (_, query) => query)\n    .pipe(\n      distinctUntilKeyChanged(\"value\")\n    )\n      .subscribe(({ value }) => worker$.next({\n        type: SearchMessageType.QUERY,\n        data: value\n      }))\n\n  /* Handle focus change */\n  push$\n    .pipe(\n      distinctUntilKeyChanged(\"focus\")\n    )\n      .subscribe(({ focus }) => {\n        if (focus)\n          setToggle(\"search\", focus)\n      })\n\n  /* Handle reset */\n  fromEvent(el.form!, \"reset\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(() => el.focus())\n\n  // Focus search query on label click - note that this is necessary to bring\n  // up the keyboard on iOS and other mobile platforms, as the search dialog is\n  // not visible at first, and programatically focusing an input element must\n  // be triggered by a user interaction - see https://t.ly/Cb30n\n  const label = getElement(\"header [for=__search]\")\n  fromEvent(label, \"click\")\n    .subscribe(() => el.focus())\n\n  /* Create and return component */\n  return watchSearchQuery(el, { worker$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  bufferCount,\n  filter,\n  finalize,\n  first,\n  fromEvent,\n  map,\n  merge,\n  mergeMap,\n  of,\n  share,\n  skipUntil,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom,\n  zipWith\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport {\n  getElement,\n  getOptionalElement,\n  watchElementBoundary,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchReadyMessage,\n  isSearchResultMessage\n} from \"~/integrations\"\nimport { renderSearchResultItem } from \"~/templates\"\nimport { round } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search result list\n *\n * This function performs a lazy rendering of the search results, depending on\n * the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchResult(\n  el: HTMLElement, { worker$, query$ }: MountOptions\n): Observable<Component<SearchResult>> {\n  const push$ = new Subject<SearchResult>()\n  const boundary$ = watchElementBoundary(el.parentElement!)\n    .pipe(\n      filter(Boolean)\n    )\n\n  /* Retrieve container */\n  const container = el.parentElement!\n\n  /* Retrieve nested components */\n  const meta = getElement(\":scope > :first-child\", el)\n  const list = getElement(\":scope > :last-child\", el)\n\n  /* Reveal to accessibility tree \u2013 see https://bit.ly/3iAA7t8 */\n  watchToggle(\"search\")\n    .subscribe(active => list.setAttribute(\n      \"role\", active ? \"list\" : \"presentation\"\n    ))\n\n  /* Update search result metadata */\n  push$\n    .pipe(\n      withLatestFrom(query$),\n      skipUntil(worker$.pipe(first(isSearchReadyMessage)))\n    )\n      .subscribe(([{ items }, { value }]) => {\n        switch (items.length) {\n\n          /* No results */\n          case 0:\n            meta.textContent = value.length\n              ? translation(\"search.result.none\")\n              : translation(\"search.result.placeholder\")\n            break\n\n          /* One result */\n          case 1:\n            meta.textContent = translation(\"search.result.one\")\n            break\n\n          /* Multiple result */\n          default:\n            const count = round(items.length)\n            meta.textContent = translation(\"search.result.other\", count)\n        }\n      })\n\n  /* Render search result item */\n  const render$ = push$\n    .pipe(\n      tap(() => list.innerHTML = \"\"),\n      switchMap(({ items }) => merge(\n        of(...items.slice(0, 10)),\n        of(...items.slice(10))\n          .pipe(\n            bufferCount(4),\n            zipWith(boundary$),\n            switchMap(([chunk]) => chunk)\n          )\n      )),\n      map(renderSearchResultItem),\n      share()\n    )\n\n  /* Update search result list */\n  render$.subscribe(item => list.appendChild(item))\n  render$\n    .pipe(\n      mergeMap(item => {\n        const details = getOptionalElement(\"details\", item)\n        if (typeof details === \"undefined\")\n          return EMPTY\n\n        /* Keep position of details element stable */\n        return fromEvent(details, \"toggle\")\n          .pipe(\n            takeUntil(push$),\n            map(() => details)\n          )\n      })\n    )\n      .subscribe(details => {\n        if (\n          details.open === false &&\n          details.offsetTop <= container.scrollTop\n        )\n          container.scrollTo({ top: details.offsetTop })\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search sharing\n */\nexport interface SearchShare {\n  url: URL                             /* Deep link for sharing */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search sharing\n *\n * @param _el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing observable\n */\nexport function watchSearchShare(\n  _el: HTMLElement, { query$ }: WatchOptions\n): Observable<SearchShare> {\n  return query$\n    .pipe(\n      map(({ value }) => {\n        const url = getLocation()\n        url.hash = \"\"\n\n        /* Compute readable query strings */\n        value = value\n          .replace(/\\s+/g, \"+\")        /* Collapse whitespace */\n          .replace(/&/g, \"%26\")        /* Escape '&' character */\n          .replace(/=/g, \"%3D\")        /* Escape '=' character */\n\n        /* Replace query string */\n        url.search = `q=${value}`\n        return { url }\n      })\n    )\n}\n\n/**\n * Mount search sharing\n *\n * @param el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing component observable\n */\nexport function mountSearchShare(\n  el: HTMLAnchorElement, options: MountOptions\n): Observable<Component<SearchShare>> {\n  const push$ = new Subject<SearchShare>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe(({ url }) => {\n    el.setAttribute(\"data-clipboard-text\", el.href)\n    el.href = `${url}`\n  })\n\n  /* Prevent following of link */\n  fromEvent(el, \"click\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(ev => ev.preventDefault())\n\n  /* Create and return component */\n  return watchSearchShare(el, options)\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  combineLatestWith,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  observeOn,\n  tap\n} from \"rxjs\"\n\nimport { Keyboard } from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchResultMessage\n} from \"~/integrations\"\n\nimport { Component, getComponentElement } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search suggestions\n */\nexport interface SearchSuggest {}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search suggestions\n *\n * This function will perform a lazy rendering of the search results, depending\n * on the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchSuggest(\n  el: HTMLElement, { worker$, keyboard$ }: MountOptions\n): Observable<Component<SearchSuggest>> {\n  const push$ = new Subject<SearchResult>()\n\n  /* Retrieve query component and track all changes */\n  const query  = getComponentElement(\"search-query\")\n  const query$ = merge(\n    fromEvent(query, \"keydown\"),\n    fromEvent(query, \"focus\")\n  )\n    .pipe(\n      observeOn(asyncScheduler),\n      map(() => query.value),\n      distinctUntilChanged(),\n    )\n\n  /* Update search suggestions */\n  push$\n    .pipe(\n      combineLatestWith(query$),\n      map(([{ suggest }, value]) => {\n        const words = value.split(/([\\s-]+)/)\n        if (suggest?.length && words[words.length - 1]) {\n          const last = suggest[suggest.length - 1]\n          if (last.startsWith(words[words.length - 1]))\n            words[words.length - 1] = last\n        } else {\n          words.length = 0\n        }\n        return words\n      })\n    )\n      .subscribe(words => el.innerHTML = words\n        .join(\"\")\n        .replace(/\\s/g, \"&nbsp;\")\n      )\n\n  /* Set up search keyboard handlers */\n  keyboard$\n    .pipe(\n      filter(({ mode }) => mode === \"search\")\n    )\n      .subscribe(key => {\n        switch (key.type) {\n\n          /* Right arrow: accept current suggestion */\n          case \"ArrowRight\":\n            if (\n              el.innerText.length &&\n              query.selectionStart === query.value.length\n            )\n              query.value = el.innerText\n            break\n        }\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  ObservableInput,\n  filter,\n  fromEvent,\n  merge,\n  mergeWith\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  Keyboard,\n  getActiveElement,\n  getElements,\n  setToggle\n} from \"~/browser\"\nimport {\n  SearchIndex,\n  SearchResult,\n  setupSearchWorker\n} from \"~/integrations\"\n\nimport {\n  Component,\n  getComponentElement,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SearchQuery,\n  mountSearchQuery\n} from \"../query\"\nimport { mountSearchResult } from \"../result\"\nimport {\n  SearchShare,\n  mountSearchShare\n} from \"../share\"\nimport {\n  SearchSuggest,\n  mountSearchSuggest\n} from \"../suggest\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search\n */\nexport type Search =\n  | SearchQuery\n  | SearchResult\n  | SearchShare\n  | SearchSuggest\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search\n *\n * This function sets up the search functionality, including the underlying\n * web worker and all keyboard bindings.\n *\n * @param el - Search element\n * @param options - Options\n *\n * @returns Search component observable\n */\nexport function mountSearch(\n  el: HTMLElement, { index$, keyboard$ }: MountOptions\n): Observable<Component<Search>> {\n  const config = configuration()\n  try {\n    const worker$ = setupSearchWorker(config.search, index$)\n\n    /* Retrieve query and result components */\n    const query  = getComponentElement(\"search-query\", el)\n    const result = getComponentElement(\"search-result\", el)\n\n    /* Always close search on result selection */\n    fromEvent<PointerEvent>(el, \"click\")\n      .pipe(\n        filter(({ target }) => (\n          target instanceof Element && !!target.closest(\"a\")\n        ))\n      )\n        .subscribe(() => setToggle(\"search\", false))\n\n    /* Set up search keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"search\")\n      )\n        .subscribe(key => {\n          const active = getActiveElement()\n          switch (key.type) {\n\n            /* Enter: go to first (best) result */\n            case \"Enter\":\n              if (active === query) {\n                const anchors = new Map<HTMLAnchorElement, number>()\n                for (const anchor of getElements<HTMLAnchorElement>(\n                  \":first-child [href]\", result\n                )) {\n                  const article = anchor.firstElementChild!\n                  anchors.set(anchor, parseFloat(\n                    article.getAttribute(\"data-md-score\")!\n                  ))\n                }\n\n                /* Go to result with highest score, if any */\n                if (anchors.size) {\n                  const [[best]] = [...anchors].sort(([, a], [, b]) => b - a)\n                  best.click()\n                }\n\n                /* Otherwise omit form submission */\n                key.claim()\n              }\n              break\n\n            /* Escape or Tab: close search */\n            case \"Escape\":\n            case \"Tab\":\n              setToggle(\"search\", false)\n              query.blur()\n              break\n\n            /* Vertical arrows: select previous or next search result */\n            case \"ArrowUp\":\n            case \"ArrowDown\":\n              if (typeof active === \"undefined\") {\n                query.focus()\n              } else {\n                const els = [query, ...getElements(\n                  \":not(details) > [href], summary, details[open] [href]\",\n                  result\n                )]\n                const i = Math.max(0, (\n                  Math.max(0, els.indexOf(active)) + els.length + (\n                    key.type === \"ArrowUp\" ? -1 : +1\n                  )\n                ) % els.length)\n                els[i].focus()\n              }\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n\n            /* All other keys: hand to search query */\n            default:\n              if (query !== getActiveElement())\n                query.focus()\n          }\n        })\n\n    /* Set up global keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"global\")\n      )\n        .subscribe(key => {\n          switch (key.type) {\n\n            /* Open search and select query */\n            case \"f\":\n            case \"s\":\n            case \"/\":\n              query.focus()\n              query.select()\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n          }\n        })\n\n    /* Create and return component */\n    const query$ = mountSearchQuery(query, { worker$ })\n    return merge(\n      query$,\n      mountSearchResult(result, { worker$, query$ })\n    )\n      .pipe(\n        mergeWith(\n\n          /* Search sharing */\n          ...getComponentElements(\"search-share\", el)\n            .map(child => mountSearchShare(child, { query$ })),\n\n          /* Search suggestions */\n          ...getComponentElements(\"search-suggest\", el)\n            .map(child => mountSearchSuggest(child, { worker$, keyboard$ }))\n        )\n      )\n\n  /* Gracefully handle broken search */\n  } catch (err) {\n    el.hidden = true\n    return NEVER\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  ObservableInput,\n  combineLatest,\n  filter,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\nimport {\n  SearchIndex,\n  setupSearchHighlighter\n} from \"~/integrations\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlighting\n */\nexport interface SearchHighlight {\n  nodes: Map<ChildNode, string>        /* Map of replacements */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  location$: Observable<URL>           /* Location observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search highlighting\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Search highlighting component observable\n */\nexport function mountSearchHiglight(\n  el: HTMLElement, { index$, location$ }: MountOptions\n): Observable<Component<SearchHighlight>> {\n  return combineLatest([\n    index$,\n    location$\n      .pipe(\n        startWith(getLocation()),\n        filter(url => !!url.searchParams.get(\"h\"))\n      )\n  ])\n    .pipe(\n      map(([index, url]) => setupSearchHighlighter(index.config)(\n        url.searchParams.get(\"h\")!\n      )),\n      map(fn => {\n        const nodes = new Map<ChildNode, string>()\n\n        /* Traverse text nodes and collect matches */\n        const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n        for (let node = it.nextNode(); node; node = it.nextNode()) {\n          if (node.parentElement?.offsetHeight) {\n            const original = node.textContent!\n            const replaced = fn(original)\n            if (replaced.length > original.length)\n              nodes.set(node as ChildNode, replaced)\n          }\n        }\n\n        /* Replace original nodes with matches */\n        for (const [node, text] of nodes) {\n          const { childNodes } = h(\"span\", null, text)\n          node.replaceWith(...Array.from(childNodes))\n        }\n\n        /* Return component */\n        return { ref: el, nodes }\n      })\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  distinctUntilChanged,\n  endWith,\n  finalize,\n  first,\n  from,\n  fromEvent,\n  ignoreElements,\n  map,\n  mergeMap,\n  observeOn,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElement,\n  getElementOffset,\n  getElementSize,\n  getElements\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sidebar\n */\nexport interface Sidebar {\n  height: number                       /* Sidebar height */\n  locked: boolean                      /* Sidebar is locked */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch sidebar\n *\n * This function returns an observable that computes the visual parameters of\n * the sidebar which depends on the vertical viewport offset, as well as the\n * height of the main area. When the page is scrolled beyond the header, the\n * sidebar is locked and fills the remaining space.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar observable\n */\nexport function watchSidebar(\n  el: HTMLElement, { viewport$, main$ }: WatchOptions\n): Observable<Sidebar> {\n  const parent = el.closest<HTMLElement>(\".md-grid\")!\n  const adjust =\n    parent.offsetTop -\n    parent.parentElement!.offsetTop\n\n  /* Compute the sidebar's available height and if it should be locked */\n  return combineLatest([main$, viewport$])\n    .pipe(\n      map(([{ offset, height }, { offset: { y } }]) => {\n        height = height\n          + Math.min(adjust, Math.max(0, y - offset))\n          - adjust\n        return {\n          height,\n          locked: y >= offset + adjust\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.locked === b.locked\n      ))\n    )\n}\n\n/**\n * Mount sidebar\n *\n * This function doesn't set the height of the actual sidebar, but of its first\n * child \u2013 the `.md-sidebar__scrollwrap` element in order to mitigiate jittery\n * sidebars when the footer is scrolled into view. At some point we switched\n * from `absolute` / `fixed` positioning to `sticky` positioning, significantly\n * reducing jitter in some browsers (respectively Firefox and Safari) when\n * scrolling from the top. However, top-aligned sticky positioning means that\n * the sidebar snaps to the bottom when the end of the container is reached.\n * This is what leads to the mentioned jitter, as the sidebar's height may be\n * updated too slowly.\n *\n * This behaviour can be mitigiated by setting the height of the sidebar to `0`\n * while preserving the padding, and the height on its first element.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar component observable\n */\nexport function mountSidebar(\n  el: HTMLElement, { header$, ...options }: MountOptions\n): Observable<Component<Sidebar>> {\n  const inner = getElement(\".md-sidebar__scrollwrap\", el)\n  const { y } = getElementOffset(inner)\n  return defer(() => {\n    const push$ = new Subject<Sidebar>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    const next$ = push$\n      .pipe(\n        auditTime(0, animationFrameScheduler)\n      )\n\n    /* Update sidebar height and offset */\n    next$.pipe(withLatestFrom(header$))\n      .subscribe({\n\n        /* Handle emission */\n        next([{ height }, { height: offset }]) {\n          inner.style.height = `${height - 2 * y}px`\n          el.style.top       = `${offset}px`\n        },\n\n        /* Handle complete */\n        complete() {\n          inner.style.height = \"\"\n          el.style.top       = \"\"\n        }\n      })\n\n    /* Bring active item into view on initial load */\n    next$.pipe(first())\n      .subscribe(() => {\n        for (const item of getElements(\".md-nav__link--active[href]\", el)) {\n          if (!item.clientHeight) // skip invisible toc in left sidebar\n            continue\n          const container = item.closest<HTMLElement>(\".md-sidebar__scrollwrap\")!\n          if (typeof container !== \"undefined\") {\n            const offset = item.offsetTop - container.offsetTop\n            const { height } = getElementSize(container)\n            container.scrollTo({\n              top: offset - height / 2\n            })\n          }\n        }\n      })\n\n    /* Handle accessibility for expandable items, see https://bit.ly/3jaod9p */\n    from(getElements<HTMLLabelElement>(\"label[tabindex]\", el))\n      .pipe(\n        mergeMap(label => fromEvent(label, \"click\")\n          .pipe(\n            observeOn(asyncScheduler),\n            map(() => label),\n            takeUntil(done$)\n          )\n        )\n      )\n        .subscribe(label => {\n          const input = getElement<HTMLInputElement>(`[id=\"${label.htmlFor}\"]`)\n          const nav = getElement(`[aria-labelledby=\"${label.id}\"]`)\n          nav.setAttribute(\"aria-expanded\", `${input.checked}`)\n        })\n\n    /* Create and return component */\n    return watchSidebar(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Repo, User } from \"github-types\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map,\n  zip\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * GitHub release (partial)\n */\ninterface Release {\n  tag_name: string                     /* Tag name */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitHub repository facts\n *\n * @param user - GitHub user or organization\n * @param repo - GitHub repository\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitHub(\n  user: string, repo?: string\n): Observable<SourceFacts> {\n  if (typeof repo !== \"undefined\") {\n    const url = `https://api.github.com/repos/${user}/${repo}`\n    return zip(\n\n      /* Fetch version */\n      requestJSON<Release>(`${url}/releases/latest`)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(release => ({\n            version: release.tag_name\n          })),\n          defaultIfEmpty({})\n        ),\n\n      /* Fetch stars and forks */\n      requestJSON<Repo>(url)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(info => ({\n            stars: info.stargazers_count,\n            forks: info.forks_count\n          })),\n          defaultIfEmpty({})\n        )\n    )\n      .pipe(\n        map(([release, info]) => ({ ...release, ...info }))\n      )\n\n  /* User or organization */\n  } else {\n    const url = `https://api.github.com/users/${user}`\n    return requestJSON<User>(url)\n      .pipe(\n        map(info => ({\n          repositories: info.public_repos\n        })),\n        defaultIfEmpty({})\n      )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ProjectSchema } from \"gitlab\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitLab repository facts\n *\n * @param base - GitLab base\n * @param project - GitLab project\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitLab(\n  base: string, project: string\n): Observable<SourceFacts> {\n  const url = `https://${base}/api/v4/projects/${encodeURIComponent(project)}`\n  return requestJSON<ProjectSchema>(url)\n    .pipe(\n      catchError(() => EMPTY), // @todo refactor instant loading\n      map(({ star_count, forks_count }) => ({\n        stars: star_count,\n        forks: forks_count\n      })),\n      defaultIfEmpty({})\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable } from \"rxjs\"\n\nimport { fetchSourceFactsFromGitHub } from \"../github\"\nimport { fetchSourceFactsFromGitLab } from \"../gitlab\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository facts for repositories\n */\nexport interface RepositoryFacts {\n  stars?: number                       /* Number of stars */\n  forks?: number                       /* Number of forks */\n  version?: string                     /* Latest version */\n}\n\n/**\n * Repository facts for organizations\n */\nexport interface OrganizationFacts {\n  repositories?: number                /* Number of repositories */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Repository facts\n */\nexport type SourceFacts =\n  | RepositoryFacts\n  | OrganizationFacts\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch repository facts\n *\n * @param url - Repository URL\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFacts(\n  url: string\n): Observable<SourceFacts> {\n\n  /* Try to match GitHub repository */\n  let match = url.match(/^.+github\\.com\\/([^/]+)\\/?([^/]+)?/i)\n  if (match) {\n    const [, user, repo] = match\n    return fetchSourceFactsFromGitHub(user, repo)\n  }\n\n  /* Try to match GitLab repository */\n  match = url.match(/^.+?([^/]*gitlab[^/]+)\\/(.+?)\\/?$/i)\n  if (match) {\n    const [, base, slug] = match\n    return fetchSourceFactsFromGitLab(base, slug)\n  }\n\n  /* Fallback */\n  return EMPTY\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  defer,\n  filter,\n  finalize,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\nimport { ConsentDefaults } from \"~/components/consent\"\nimport { renderSourceFacts } from \"~/templates\"\n\nimport {\n  Component,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SourceFacts,\n  fetchSourceFacts\n} from \"../facts\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information\n */\nexport interface Source {\n  facts: SourceFacts                   /* Repository facts */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information observable\n */\nlet fetch$: Observable<Source>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch repository information\n *\n * This function tries to read the repository facts from session storage, and\n * if unsuccessful, fetches them from the underlying provider.\n *\n * @param el - Repository information element\n *\n * @returns Repository information observable\n */\nexport function watchSource(\n  el: HTMLAnchorElement\n): Observable<Source> {\n  return fetch$ ||= defer(() => {\n    const cached = __md_get<SourceFacts>(\"__source\", sessionStorage)\n    if (cached) {\n      return of(cached)\n    } else {\n\n      /* Check if consent is configured and was given */\n      const els = getComponentElements(\"consent\")\n      if (els.length) {\n        const consent = __md_get<ConsentDefaults>(\"__consent\")\n        if (!(consent && consent.github))\n          return EMPTY\n      }\n\n      /* Fetch repository facts */\n      return fetchSourceFacts(el.href)\n        .pipe(\n          tap(facts => __md_set(\"__source\", facts, sessionStorage))\n        )\n    }\n  })\n    .pipe(\n      catchError(() => EMPTY),\n      filter(facts => Object.keys(facts).length > 0),\n      map(facts => ({ facts })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount repository information\n *\n * @param el - Repository information element\n *\n * @returns Repository information component observable\n */\nexport function mountSource(\n  el: HTMLAnchorElement\n): Observable<Component<Source>> {\n  const inner = getElement(\":scope > :last-child\", el)\n  return defer(() => {\n    const push$ = new Subject<Source>()\n    push$.subscribe(({ facts }) => {\n      inner.appendChild(renderSourceFacts(facts))\n      inner.classList.add(\"md-source__repository--active\")\n    })\n\n    /* Create and return component */\n    return watchSource(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  watchElementSize,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Navigation tabs\n */\nexport interface Tabs {\n  hidden: boolean                      /* Navigation tabs are hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch navigation tabs\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs observable\n */\nexport function watchTabs(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Tabs> {\n  return watchElementSize(document.body)\n    .pipe(\n      switchMap(() => watchViewportAt(el, { header$, viewport$ })),\n      map(({ offset: { y } }) => {\n        return {\n          hidden: y >= 10\n        }\n      }),\n      distinctUntilKeyChanged(\"hidden\")\n    )\n}\n\n/**\n * Mount navigation tabs\n *\n * This function hides the navigation tabs when scrolling past the threshold\n * and makes them reappear in a nice CSS animation when scrolling back up.\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs component observable\n */\nexport function mountTabs(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Tabs>> {\n  return defer(() => {\n    const push$ = new Subject<Tabs>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ hidden }) {\n        el.hidden = hidden\n      },\n\n      /* Handle complete */\n      complete() {\n        el.hidden = false\n      }\n    })\n\n    /* Create and return component */\n    return (\n      feature(\"navigation.tabs.sticky\")\n        ? of({ hidden: false })\n        : watchTabs(el, options)\n    )\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  bufferCount,\n  combineLatestWith,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  finalize,\n  ignoreElements,\n  map,\n  merge,\n  observeOn,\n  of,\n  repeat,\n  scan,\n  share,\n  skip,\n  startWith,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContainer,\n  getElementSize,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  watchElementSize\n} from \"~/browser\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Table of contents\n */\nexport interface TableOfContents {\n  prev: HTMLAnchorElement[][]          /* Anchors (previous) */\n  next: HTMLAnchorElement[][]          /* Anchors (next) */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch table of contents\n *\n * This is effectively a scroll spy implementation which will account for the\n * fixed header and automatically re-calculate anchor offsets when the viewport\n * is resized. The returned observable will only emit if the table of contents\n * needs to be repainted.\n *\n * This implementation tracks an anchor element's entire path starting from its\n * level up to the top-most anchor element, e.g. `[h3, h2, h1]`. Although the\n * Material theme currently doesn't make use of this information, it enables\n * the styling of the entire hierarchy through customization.\n *\n * Note that the current anchor is the last item of the `prev` anchor list.\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents observable\n */\nexport function watchTableOfContents(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<TableOfContents> {\n  const table = new Map<HTMLAnchorElement, HTMLElement>()\n\n  /* Compute anchor-to-target mapping */\n  const anchors = getElements<HTMLAnchorElement>(\".md-nav__link\", el)\n  for (const anchor of anchors) {\n    const id = decodeURIComponent(anchor.hash.substring(1))\n    const target = getOptionalElement(`[id=\"${id}\"]`)\n    if (typeof target !== \"undefined\")\n      table.set(anchor, target)\n  }\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n      map(({ height }) => {\n        const main = getComponentElement(\"main\")\n        const grid = getElement(\":scope > :first-child\", main)\n        return height + 0.8 * (\n          grid.offsetTop -\n          main.offsetTop\n        )\n      }),\n      share()\n    )\n\n  /* Compute partition of previous and next anchors */\n  const partition$ = watchElementSize(document.body)\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n\n      /* Build index to map anchor paths to vertical offsets */\n      switchMap(body => defer(() => {\n        let path: HTMLAnchorElement[] = []\n        return of([...table].reduce((index, [anchor, target]) => {\n          while (path.length) {\n            const last = table.get(path[path.length - 1])!\n            if (last.tagName >= target.tagName) {\n              path.pop()\n            } else {\n              break\n            }\n          }\n\n          /* If the current anchor is hidden, continue with its parent */\n          let offset = target.offsetTop\n          while (!offset && target.parentElement) {\n            target = target.parentElement\n            offset = target.offsetTop\n          }\n\n          /* Fix anchor offsets in tables - see https://bit.ly/3CUFOcn */\n          let parent = target.offsetParent as HTMLElement\n          for (; parent; parent = parent.offsetParent as HTMLElement)\n            offset += parent.offsetTop\n\n          /* Map reversed anchor path to vertical offset */\n          return index.set(\n            [...path = [...path, anchor]].reverse(),\n            offset\n          )\n        }, new Map<HTMLAnchorElement[], number>()))\n      })\n        .pipe(\n\n          /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */\n          map(index => new Map([...index].sort(([, a], [, b]) => a - b))),\n          combineLatestWith(adjust$),\n\n          /* Re-compute partition when viewport offset changes */\n          switchMap(([index, adjust]) => viewport$\n            .pipe(\n              scan(([prev, next], { offset: { y }, size }) => {\n                const last = y + size.height >= Math.floor(body.height)\n\n                /* Look forward */\n                while (next.length) {\n                  const [, offset] = next[0]\n                  if (offset - adjust < y || last) {\n                    prev = [...prev, next.shift()!]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Look backward */\n                while (prev.length) {\n                  const [, offset] = prev[prev.length - 1]\n                  if (offset - adjust >= y && !last) {\n                    next = [prev.pop()!, ...next]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Return partition */\n                return [prev, next]\n              }, [[], [...index]]),\n              distinctUntilChanged((a, b) => (\n                a[0] === b[0] &&\n                a[1] === b[1]\n              ))\n            )\n          )\n        )\n      )\n    )\n\n  /* Compute and return anchor list migrations */\n  return partition$\n    .pipe(\n      map(([prev, next]) => ({\n        prev: prev.map(([path]) => path),\n        next: next.map(([path]) => path)\n      })),\n\n      /* Extract anchor list migrations */\n      startWith({ prev: [], next: [] }),\n      bufferCount(2, 1),\n      map(([a, b]) => {\n\n        /* Moving down */\n        if (a.prev.length < b.prev.length) {\n          return {\n            prev: b.prev.slice(Math.max(0, a.prev.length - 1), b.prev.length),\n            next: []\n          }\n\n        /* Moving up */\n        } else {\n          return {\n            prev: b.prev.slice(-1),\n            next: b.next.slice(0, b.next.length - a.next.length)\n          }\n        }\n      })\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount table of contents\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents component observable\n */\nexport function mountTableOfContents(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<TableOfContents>> {\n  return defer(() => {\n    const push$ = new Subject<TableOfContents>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe(({ prev, next }) => {\n\n      /* Look forward */\n      for (const [anchor] of next) {\n        anchor.classList.remove(\"md-nav__link--passed\")\n        anchor.classList.remove(\"md-nav__link--active\")\n      }\n\n      /* Look backward */\n      for (const [index, [anchor]] of prev.entries()) {\n        anchor.classList.add(\"md-nav__link--passed\")\n        anchor.classList.toggle(\n          \"md-nav__link--active\",\n          index === prev.length - 1\n        )\n      }\n    })\n\n    /* Set up following, if enabled */\n    if (feature(\"toc.follow\")) {\n\n      /* Toggle smooth scrolling only for anchor clicks */\n      const smooth$ = merge(\n        viewport$.pipe(debounceTime(1), map(() => undefined)),\n        viewport$.pipe(debounceTime(250), map(() => \"smooth\" as const))\n      )\n\n      /* Bring active anchor into view */ // @todo: refactor\n      push$\n        .pipe(\n          filter(({ prev }) => prev.length > 0),\n          combineLatestWith(main$.pipe(observeOn(asyncScheduler))),\n          withLatestFrom(smooth$)\n        )\n          .subscribe(([[{ prev }], behavior]) => {\n            const [anchor] = prev[prev.length - 1]\n            if (anchor.offsetHeight) {\n\n              /* Retrieve overflowing container and scroll */\n              const container = getElementContainer(anchor)\n              if (typeof container !== \"undefined\") {\n                const offset = anchor.offsetTop - container.offsetTop\n                const { height } = getElementSize(container)\n                container.scrollTo({\n                  top: offset - height / 2,\n                  behavior\n                })\n              }\n            }\n          })\n    }\n\n    /* Set up anchor tracking, if enabled */\n    if (feature(\"navigation.tracking\"))\n      viewport$\n        .pipe(\n          takeUntil(done$),\n          distinctUntilKeyChanged(\"offset\"),\n          debounceTime(250),\n          skip(1),\n          takeUntil(target$.pipe(skip(1))),\n          repeat({ delay: 250 }),\n          withLatestFrom(push$)\n        )\n          .subscribe(([, { prev }]) => {\n            const url = getLocation()\n\n            /* Set hash fragment to active anchor */\n            const anchor = prev[prev.length - 1]\n            if (anchor && anchor.length) {\n              const [active] = anchor\n              const { hash } = new URL(active.href)\n              if (url.hash !== hash) {\n                url.hash = hash\n                history.replaceState({}, \"\", `${url}`)\n              }\n\n            /* Reset anchor when at the top */\n            } else {\n              url.hash = \"\"\n              history.replaceState({}, \"\", `${url}`)\n            }\n          })\n\n    /* Create and return component */\n    return watchTableOfContents(el, { viewport$, header$ })\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  repeat,\n  skip,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { Viewport } from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Back-to-top button\n */\nexport interface BackToTop {\n  hidden: boolean                      /* Back-to-top button is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch back-to-top\n *\n * @param _el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top observable\n */\nexport function watchBackToTop(\n  _el: HTMLElement, { viewport$, main$, target$ }: WatchOptions\n): Observable<BackToTop> {\n\n  /* Compute direction */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => a > b && b > 0),\n      distinctUntilChanged()\n    )\n\n  /* Compute whether main area is active */\n  const active$ = main$\n    .pipe(\n      map(({ active }) => active)\n    )\n\n  /* Compute threshold for hiding */\n  return combineLatest([active$, direction$])\n    .pipe(\n      map(([active, direction]) => !(active && direction)),\n      distinctUntilChanged(),\n      takeUntil(target$.pipe(skip(1))),\n      endWith(true),\n      repeat({ delay: 250 }),\n      map(hidden => ({ hidden }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount back-to-top\n *\n * @param el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top component observable\n */\nexport function mountBackToTop(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<BackToTop>> {\n  const push$ = new Subject<BackToTop>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe({\n\n    /* Handle emission */\n    next({ hidden }) {\n      el.hidden = hidden\n      if (hidden) {\n        el.setAttribute(\"tabindex\", \"-1\")\n        el.blur()\n      } else {\n        el.removeAttribute(\"tabindex\")\n      }\n    },\n\n    /* Handle complete */\n    complete() {\n      el.style.top = \"\"\n      el.hidden = true\n      el.removeAttribute(\"tabindex\")\n    }\n  })\n\n  /* Watch header height */\n  header$\n    .pipe(\n      takeUntil(done$),\n      distinctUntilKeyChanged(\"height\")\n    )\n      .subscribe(({ height }) => {\n        el.style.top = `${height + 16}px`\n      })\n\n  /* Go back to top */\n  fromEvent(el, \"click\")\n    .subscribe(ev => {\n      ev.preventDefault()\n      window.scrollTo({ top: 0 })\n    })\n\n  /* Create and return component */\n  return watchBackToTop(el, { viewport$, main$, target$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  finalize,\n  map,\n  mergeMap,\n  skip,\n  switchMap,\n  take,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  getElements,\n  watchElementVisibility\n} from \"~/browser\"\nimport { mountTooltip } from \"~/components\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch ellipsis\n *\n * This function will fetch all elements that are shortened with ellipsis, and\n * filter those which are visible. Once they become visible, they stay in that\n * state, even though they may be hidden again. This optimization is necessary\n * to reduce pressure on the browser, with elements fading in and out of view.\n *\n * @param options - Options\n */\nexport function patchEllipsis(\n  { document$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-ellipsis\")),\n      mergeMap(el => watchElementVisibility(el)\n        .pipe(\n          takeUntil(document$.pipe(skip(1))),\n          filter(visible => visible),\n          map(() => el),\n          take(1)\n        )\n      ),\n      filter(el => el.offsetWidth < el.scrollWidth),\n      mergeMap(el => {\n        const text = el.innerText\n        const host = el.closest(\"a\") || el\n        host.title = text\n\n        /* Mount tooltip */\n        return mountTooltip(host)\n          .pipe(\n            takeUntil(document$.pipe(skip(1))),\n            finalize(() => host.removeAttribute(\"title\"))\n          )\n      })\n    )\n      .subscribe()\n\n  // @todo move this outside of here and fix memleaks\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-status\")),\n      mergeMap(el => mountTooltip(el))\n    )\n      .subscribe()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  takeWhile,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch indeterminate checkboxes\n *\n * This function replaces the indeterminate \"pseudo state\" with the actual\n * indeterminate state, which is used to keep navigation always expanded.\n *\n * @param options - Options\n */\nexport function patchIndeterminate(\n  { document$, tablet$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements<HTMLInputElement>(\n        \".md-toggle--indeterminate\"\n      )),\n      tap(el => {\n        el.indeterminate = true\n        el.checked = false\n      }),\n      mergeMap(el => fromEvent(el, \"change\")\n        .pipe(\n          takeWhile(() => el.classList.contains(\"md-toggle--indeterminate\")),\n          map(() => el)\n        )\n      ),\n      withLatestFrom(tablet$)\n    )\n      .subscribe(([el, tablet]) => {\n        el.classList.remove(\"md-toggle--indeterminate\")\n        if (tablet)\n          el.checked = false\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether the given device is an Apple device\n *\n * @returns Test result\n */\nfunction isAppleDevice(): boolean {\n  return /(iPad|iPhone|iPod)/.test(navigator.userAgent)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch all elements with `data-md-scrollfix` attributes\n *\n * This is a year-old patch which ensures that overflow scrolling works at the\n * top and bottom of containers on iOS by ensuring a `1px` scroll offset upon\n * the start of a touch event.\n *\n * @see https://bit.ly/2SCtAOO - Original source\n *\n * @param options - Options\n */\nexport function patchScrollfix(\n  { document$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\"[data-md-scrollfix]\")),\n      tap(el => el.removeAttribute(\"data-md-scrollfix\")),\n      filter(isAppleDevice),\n      mergeMap(el => fromEvent(el, \"touchstart\")\n        .pipe(\n          map(() => el)\n        )\n      )\n    )\n      .subscribe(el => {\n        const top = el.scrollTop\n\n        /* We're at the top of the container */\n        if (top === 0) {\n          el.scrollTop = 1\n\n        /* We're at the bottom of the container */\n        } else if (top + el.offsetHeight === el.scrollHeight) {\n          el.scrollTop = top - 1\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  delay,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchToggle\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch the document body to lock when search is open\n *\n * For mobile and tablet viewports, the search is rendered full screen, which\n * leads to scroll leaking when at the top or bottom of the search result. This\n * function locks the body when the search is in full screen mode, and restores\n * the scroll position when leaving.\n *\n * @param options - Options\n */\nexport function patchScrolllock(\n  { viewport$, tablet$ }: PatchOptions\n): void {\n  combineLatest([watchToggle(\"search\"), tablet$])\n    .pipe(\n      map(([active, tablet]) => active && !tablet),\n      switchMap(active => of(active)\n        .pipe(\n          delay(active ? 400 : 100)\n        )\n      ),\n      withLatestFrom(viewport$)\n    )\n      .subscribe(([active, { offset: { y }}]) => {\n        if (active) {\n          document.body.setAttribute(\"data-md-scrolllock\", \"\")\n          document.body.style.top = `-${y}px`\n        } else {\n          const value = -1 * parseInt(document.body.style.top, 10)\n          document.body.removeAttribute(\"data-md-scrolllock\")\n          document.body.style.top = \"\"\n          if (value)\n            window.scrollTo(0, value)\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Polyfills\n * ------------------------------------------------------------------------- */\n\n/* Polyfill `Object.entries` */\nif (!Object.entries)\n  Object.entries = function (obj: object) {\n    const data: [string, string][] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push([key, obj[key]])\n\n    /* Return entries */\n    return data\n  }\n\n/* Polyfill `Object.values` */\nif (!Object.values)\n  Object.values = function (obj: object) {\n    const data: string[] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push(obj[key])\n\n    /* Return values */\n    return data\n  }\n\n/* ------------------------------------------------------------------------- */\n\n/* Polyfills for `Element` */\nif (typeof Element !== \"undefined\") {\n\n  /* Polyfill `Element.scrollTo` */\n  if (!Element.prototype.scrollTo)\n    Element.prototype.scrollTo = function (\n      x?: ScrollToOptions | number, y?: number\n    ): void {\n      if (typeof x === \"object\") {\n        this.scrollLeft = x.left!\n        this.scrollTop = x.top!\n      } else {\n        this.scrollLeft = x!\n        this.scrollTop = y!\n      }\n    }\n\n  /* Polyfill `Element.replaceWith` */\n  if (!Element.prototype.replaceWith)\n    Element.prototype.replaceWith = function (\n      ...nodes: Array<string | Node>\n    ): void {\n      const parent = this.parentNode\n      if (parent) {\n        if (nodes.length === 0)\n          parent.removeChild(this)\n\n        /* Replace children and create text nodes */\n        for (let i = nodes.length - 1; i >= 0; i--) {\n          let node = nodes[i]\n          if (typeof node === \"string\")\n            node = document.createTextNode(node)\n          else if (node.parentNode)\n            node.parentNode.removeChild(node)\n\n          /* Replace child or insert before previous sibling */\n          if (!i)\n            parent.replaceChild(node, this)\n          else\n            parent.insertBefore(this.previousSibling!, node)\n        }\n      }\n    }\n}\n"],
-  "mappings": "2rCAAA,IAAAA,GAAAC,GAAA,CAAAC,GAAAC,KAAA,EAAC,SAAUC,EAAQC,EAAS,CAC1B,OAAOH,IAAY,UAAY,OAAOC,IAAW,YAAcE,EAAQ,EACvE,OAAO,QAAW,YAAc,OAAO,IAAM,OAAOA,CAAO,EAC1DA,EAAQ,CACX,GAAEH,GAAO,UAAY,CAAE,aASrB,SAASI,EAA0BC,EAAO,CACxC,IAAIC,EAAmB,GACnBC,EAA0B,GAC1BC,EAAiC,KAEjCC,EAAsB,CACxB,KAAM,GACN,OAAQ,GACR,IAAK,GACL,IAAK,GACL,MAAO,GACP,SAAU,GACV,OAAQ,GACR,KAAM,GACN,MAAO,GACP,KAAM,GACN,KAAM,GACN,SAAU,GACV,iBAAkB,EACpB,EAOA,SAASC,EAAmBC,EAAI,CAC9B,MACE,GAAAA,GACAA,IAAO,UACPA,EAAG,WAAa,QAChBA,EAAG,WAAa,QAChB,cAAeA,GACf,aAAcA,EAAG,UAKrB,CASA,SAASC,EAA8BD,EAAI,CACzC,IAAIE,GAAOF,EAAG,KACVG,GAAUH,EAAG,QAUjB,MARI,GAAAG,KAAY,SAAWL,EAAoBI,EAAI,GAAK,CAACF,EAAG,UAIxDG,KAAY,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vC,GAAW,QAAAkC,GAAS,MAAAG,EAAM,CAAC,CAAC,CACrE,EAGF,GAAGK,GAAqB,MAAM,EAC3B,IAAIH,GAAMoB,GAAUpB,EAAI,CAAE,UAAAvC,GAAW,QAAAkC,EAAQ,CAAC,CAAC,EAGlD,GAAGQ,GAAqB,KAAK,EAC1B,IAAIH,GAAMqB,GAAqBrB,EAAI,CAClC,UAAAvC,GAAW,QAAAkC,GAAS,MAAAG,GAAO,QAAAzC,EAC7B,CAAC,CAAC,EAGJ,GAAG8C,GAAqB,KAAK,EAC1B,IAAIH,GAAMsB,GAAetB,EAAI,CAAE,UAAAvC,GAAW,QAAAkC,GAAS,MAAAG,GAAO,QAAAzC,EAAQ,CAAC,CAAC,CACzE,CAAC,EAGKkE,GAAatE,GAChB,KACC8C,EAAU,IAAMY,EAAQ,EACxBa,GAAUtB,EAAQ,EAClBnD,EAAY,CAAC,CACf,EAGFwE,GAAW,UAAU,EAMrB,OAAO,UAAatE,GACpB,OAAO,UAAaE,GACpB,OAAO,QAAaE,GACpB,OAAO,UAAaE,GACpB,OAAO,UAAaE,GACpB,OAAO,QAAaE,GACpB,OAAO,QAAaE,GACpB,OAAO,OAAaC,GACpB,OAAO,OAAaK,GACpB,OAAO,UAAaG,GACpB,OAAO,WAAaiD",
-  "names": ["require_focus_visible", "__commonJSMin", "exports", "module", "global", "factory", "applyFocusVisiblePolyfill", "scope", "hadKeyboardEvent", "hadFocusVisibleRecently", "hadFocusVisibleRecentlyTimeout", "inputTypesAllowlist", "isValidFocusTarget", "el", "focusTriggersKeyboardModality", "type", "tagName", "addFocusVisibleClass", "removeFocusVisibleClass", "onKeyDown", "e", "onPointerDown", "onFocus", "onBlur", "onVisibilityChange", "addInitialPointerMoveListeners", "onInitialPointerMove", "removeInitialPointerMoveListeners", "event", "error", "require_clipboard", "__commonJSMin", "exports", "module", "root", "factory", "__webpack_modules__", "__unused_webpack_module", "__webpack_exports__", "__webpack_require__", "clipboard", "tiny_emitter", "tiny_emitter_default", "listen", "listen_default", "src_select", "select_default", "command", "type", "err", "ClipboardActionCut", "target", "selectedText", "actions_cut", "createFakeElement", "value", "isRTL", "fakeElement", "yPosition", "fakeCopyAction", "options", "ClipboardActionCopy", "actions_copy", "_typeof", "obj", "ClipboardActionDefault", "_options$action", "action", "container", "text", "actions_default", "clipboard_typeof", "_classCallCheck", "instance", "Constructor", "_defineProperties", "props", "i", "descriptor", "_createClass", "protoProps", "staticProps", "_inherits", "subClass", "superClass", "_setPrototypeOf", "o", "p", "_createSuper", "Derived", "hasNativeReflectConstruct", "_isNativeReflectConstruct", "Super", "_getPrototypeOf", "result", "NewTarget", "_possibleConstructorReturn", "self", "call", "_assertThisInitialized", "e", "getAttributeValue", "suffix", "element", "attribute", "Clipboard", "_Emitter", "_super", "trigger", "_this", "_this2", "selector", "actions", "support", "DOCUMENT_NODE_TYPE", "proto", "closest", "__unused_webpack_exports", "_delegate", "callback", "useCapture", "listenerFn", "listener", "delegate", "elements", "is", "listenNode", "listenNodeList", "listenSelector", "node", "nodeList", "select", "isReadOnly", "selection", "range", "E", "name", "ctx", "data", "evtArr", "len", "evts", "liveEvents", "__webpack_module_cache__", "moduleId", "getter", "definition", "key", "prop", "require_escape_html", "__commonJSMin", "exports", "module", "matchHtmlRegExp", "escapeHtml", "string", "str", "match", "escape", "html", "index", "lastIndex", "import_focus_visible", "extendStatics", "d", "b", "p", "__extends", "__", "__awaiter", "thisArg", "_arguments", "P", "generator", "adopt", "value", "resolve", "reject", "fulfilled", "step", "e", "rejected", "result", "__generator", "body", "_", "t", "f", "y", "g", "verb", "n", "v", "op", "__values", "o", "s", "m", "i", "__read", "n", "r", "ar", "e", "error", "__spreadArray", "to", "from", "pack", "i", "l", "ar", "__await", "v", "__asyncGenerator", "thisArg", "_arguments", "generator", "g", "q", "verb", "n", "a", "b", "resume", "step", "e", "settle", "r", "fulfill", "reject", "value", "f", "__asyncValues", "o", "m", "i", "__values", "verb", "n", "v", "resolve", "reject", "settle", "d", "isFunction", "value", "createErrorClass", "createImpl", "_super", "instance", "ctorFunc", "UnsubscriptionError", "createErrorClass", "_super", "errors", "err", "i", "arrRemove", "arr", "item", "index", "Subscription", "initialTeardown", "errors", "_parentage", "_parentage_1", "__values", "_parentage_1_1", "parent_1", "initialFinalizer", "isFunction", "e", "UnsubscriptionError", "_finalizers", "_finalizers_1", "_finalizers_1_1", "finalizer", "execFinalizer", "err", "__spreadArray", "__read", "teardown", "_a", "parent", "arrRemove", "empty", "EMPTY_SUBSCRIPTION", "Subscription", "isSubscription", "value", "isFunction", "execFinalizer", "finalizer", "config", "timeoutProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "reportUnhandledError", "err", "timeoutProvider", "onUnhandledError", "config", "noop", "COMPLETE_NOTIFICATION", "createNotification", "errorNotification", "error", "nextNotification", "value", "kind", "context", "errorContext", "cb", "config", "isRoot", "_a", "errorThrown", "error", "captureError", "err", "Subscriber", "_super", "__extends", "destination", "_this", "isSubscription", "EMPTY_OBSERVER", "next", "error", "complete", "SafeSubscriber", "value", "handleStoppedNotification", "nextNotification", "err", "errorNotification", "COMPLETE_NOTIFICATION", "Subscription", "_bind", "bind", "fn", "thisArg", "ConsumerObserver", "partialObserver", "value", "error", "handleUnhandledError", "err", "SafeSubscriber", "_super", "__extends", "observerOrNext", "complete", "_this", "isFunction", "context_1", "config", "Subscriber", "handleUnhandledError", "error", "config", "captureError", "reportUnhandledError", "defaultErrorHandler", "err", "handleStoppedNotification", "notification", "subscriber", "onStoppedNotification", "timeoutProvider", "EMPTY_OBSERVER", "noop", "observable", "identity", "x", "pipe", "fns", "_i", "pipeFromArray", "identity", "input", "prev", "fn", "Observable", "subscribe", "operator", "observable", "observerOrNext", "error", "complete", "_this", "subscriber", "isSubscriber", "SafeSubscriber", "errorContext", "_a", "source", "sink", "err", "next", "promiseCtor", "getPromiseCtor", "resolve", "reject", "value", "operations", "_i", "pipeFromArray", "x", "getPromiseCtor", "promiseCtor", "_a", "config", "isObserver", "value", "isFunction", "isSubscriber", "Subscriber", "isSubscription", "hasLift", "source", "isFunction", "operate", "init", "liftedSource", "err", "createOperatorSubscriber", "destination", "onNext", "onComplete", "onError", "onFinalize", "OperatorSubscriber", "_super", "__extends", "shouldUnsubscribe", "_this", "value", "err", "closed_1", "_a", "Subscriber", "animationFrameProvider", "callback", "request", "cancel", "delegate", "handle", "timestamp", "Subscription", "args", "_i", "__spreadArray", "__read", "ObjectUnsubscribedError", "createErrorClass", "_super", "Subject", "_super", "__extends", "_this", "operator", "subject", "AnonymousSubject", "ObjectUnsubscribedError", "value", "errorContext", "_b", "__values", "_c", "observer", "err", "observers", "_a", "subscriber", "hasError", "isStopped", "EMPTY_SUBSCRIPTION", "Subscription", "arrRemove", "thrownError", "observable", "Observable", "destination", "source", "AnonymousSubject", "_super", "__extends", "destination", "source", "_this", "value", "_b", "_a", "err", "subscriber", "EMPTY_SUBSCRIPTION", "Subject", "dateTimestampProvider", "ReplaySubject", "_super", "__extends", "_bufferSize", "_windowTime", "_timestampProvider", "dateTimestampProvider", "_this", "value", "_a", "isStopped", "_buffer", "_infiniteTimeWindow", "subscriber", "subscription", "copy", "i", "adjustedBufferSize", "now", "last", "Subject", "Action", "_super", "__extends", "scheduler", "work", "state", "delay", "Subscription", "intervalProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "AsyncAction", "_super", "__extends", "scheduler", "work", "_this", "state", "delay", "id", "_a", "_id", "intervalProvider", "_scheduler", "error", "_delay", "errored", "errorValue", "e", "actions", "arrRemove", "Action", "Scheduler", "schedulerActionCtor", "now", "work", "delay", "state", "dateTimestampProvider", "AsyncScheduler", "_super", "__extends", "SchedulerAction", "now", "Scheduler", "_this", "action", "actions", "error", "asyncScheduler", "AsyncScheduler", "AsyncAction", "async", "AnimationFrameAction", "_super", "__extends", "scheduler", "work", "_this", "id", "delay", "animationFrameProvider", "actions", "_a", "AsyncAction", "AnimationFrameScheduler", "_super", "__extends", "action", "flushId", "actions", "error", "AsyncScheduler", "animationFrameScheduler", "AnimationFrameScheduler", "AnimationFrameAction", "EMPTY", "Observable", "subscriber", "isScheduler", "value", "isFunction", "last", "arr", "popResultSelector", "args", "isFunction", "popScheduler", "isScheduler", "popNumber", "defaultValue", "isArrayLike", "x", "isPromise", "value", "isFunction", "isInteropObservable", "input", "isFunction", "observable", "isAsyncIterable", "obj", "isFunction", "createInvalidObservableTypeError", "input", "getSymbolIterator", "iterator", "isIterable", "input", "isFunction", "iterator", "readableStreamLikeToAsyncGenerator", "readableStream", "reader", "__await", "_a", "_b", "value", "done", "isReadableStreamLike", "obj", "isFunction", "innerFrom", "input", "Observable", "isInteropObservable", "fromInteropObservable", "isArrayLike", "fromArrayLike", "isPromise", "fromPromise", "isAsyncIterable", "fromAsyncIterable", "isIterable", "fromIterable", "isReadableStreamLike", "fromReadableStreamLike", "createInvalidObservableTypeError", "obj", "subscriber", "obs", "observable", "isFunction", "array", "i", "promise", "value", "err", "reportUnhandledError", "iterable", "iterable_1", "__values", "iterable_1_1", "asyncIterable", "process", "readableStream", "readableStreamLikeToAsyncGenerator", "asyncIterable_1", "__asyncValues", "asyncIterable_1_1", "executeSchedule", "parentSubscription", "scheduler", "work", "delay", "repeat", "scheduleSubscription", "observeOn", "scheduler", "delay", "operate", "source", "subscriber", "createOperatorSubscriber", "value", "executeSchedule", "err", "subscribeOn", "scheduler", "delay", "operate", "source", "subscriber", "scheduleObservable", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "schedulePromise", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "scheduleArray", "input", "scheduler", "Observable", "subscriber", "i", "scheduleIterable", "input", "scheduler", "Observable", "subscriber", "iterator", "executeSchedule", "value", "done", "_a", "err", "isFunction", "scheduleAsyncIterable", "input", "scheduler", "Observable", "subscriber", "executeSchedule", "iterator", "result", "scheduleReadableStreamLike", "input", "scheduler", "scheduleAsyncIterable", "readableStreamLikeToAsyncGenerator", "scheduled", "input", "scheduler", "isInteropObservable", "scheduleObservable", "isArrayLike", "scheduleArray", "isPromise", "schedulePromise", "isAsyncIterable", "scheduleAsyncIterable", "isIterable", "scheduleIterable", "isReadableStreamLike", "scheduleReadableStreamLike", "createInvalidObservableTypeError", "from", "input", "scheduler", "scheduled", "innerFrom", "of", "args", "_i", "scheduler", "popScheduler", "from", "throwError", "errorOrErrorFactory", "scheduler", "errorFactory", "isFunction", "init", "subscriber", "Observable", "EmptyError", "createErrorClass", "_super", "isValidDate", "value", "map", "project", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "isArray", "callOrApply", "fn", "args", "__spreadArray", "__read", "mapOneOrManyArgs", "map", "isArray", "getPrototypeOf", "objectProto", "getKeys", "argsArgArrayOrObject", "args", "first_1", "isPOJO", "keys", "key", "obj", "createObject", "keys", "values", "result", "key", "i", "combineLatest", "args", "_i", "scheduler", "popScheduler", "resultSelector", "popResultSelector", "_a", "argsArgArrayOrObject", "observables", "keys", "from", "result", "Observable", "combineLatestInit", "values", "createObject", "identity", "mapOneOrManyArgs", "valueTransform", "subscriber", "maybeSchedule", "length", "active", "remainingFirstValues", "i", "source", "hasFirstValue", "createOperatorSubscriber", "value", "execute", "subscription", "executeSchedule", "mergeInternals", "source", "subscriber", "project", "concurrent", "onBeforeNext", "expand", "innerSubScheduler", "additionalFinalizer", "buffer", "active", "index", "isComplete", "checkComplete", "outerNext", "value", "doInnerSub", "innerComplete", "innerFrom", "createOperatorSubscriber", "innerValue", "bufferedValue", "executeSchedule", "err", "mergeMap", "project", "resultSelector", "concurrent", "isFunction", "a", "i", "map", "b", "ii", "innerFrom", "operate", "source", "subscriber", "mergeInternals", "mergeAll", "concurrent", "mergeMap", "identity", "concatAll", "mergeAll", "concat", "args", "_i", "concatAll", "from", "popScheduler", "defer", "observableFactory", "Observable", "subscriber", "innerFrom", "nodeEventEmitterMethods", "eventTargetMethods", "jqueryMethods", "fromEvent", "target", "eventName", "options", "resultSelector", "isFunction", "mapOneOrManyArgs", "_a", "__read", "isEventTarget", "methodName", "handler", "isNodeStyleEventEmitter", "toCommonHandlerRegistry", "isJQueryStyleEventEmitter", "add", "remove", "isArrayLike", "mergeMap", "subTarget", "innerFrom", "Observable", "subscriber", "args", "_i", "fromEventPattern", "addHandler", "removeHandler", "resultSelector", "mapOneOrManyArgs", "Observable", "subscriber", "handler", "e", "_i", "retValue", "isFunction", "timer", "dueTime", "intervalOrScheduler", "scheduler", "async", "intervalDuration", "isScheduler", "Observable", "subscriber", "due", "isValidDate", "n", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "sources", "innerFrom", "mergeAll", "from", "EMPTY", "NEVER", "Observable", "noop", "isArray", "argsOrArgArray", "args", "filter", "predicate", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "zip", "args", "_i", "resultSelector", "popResultSelector", "sources", "argsOrArgArray", "Observable", "subscriber", "buffers", "completed", "sourceIndex", "innerFrom", "createOperatorSubscriber", "value", "buffer", "result", "__spreadArray", "__read", "i", "EMPTY", "audit", "durationSelector", "operate", "source", "subscriber", "hasValue", "lastValue", "durationSubscriber", "isComplete", "endDuration", "value", "cleanupDuration", "createOperatorSubscriber", "innerFrom", "auditTime", "duration", "scheduler", "asyncScheduler", "audit", "timer", "bufferCount", "bufferSize", "startBufferEvery", "operate", "source", "subscriber", "buffers", "count", "createOperatorSubscriber", "value", "toEmit", "buffers_1", "__values", "buffers_1_1", "buffer", "toEmit_1", "toEmit_1_1", "arrRemove", "buffers_2", "buffers_2_1", "catchError", "selector", "operate", "source", "subscriber", "innerSub", "syncUnsub", "handledResult", "createOperatorSubscriber", "err", "innerFrom", "scanInternals", "accumulator", "seed", "hasSeed", "emitOnNext", "emitBeforeComplete", "source", "subscriber", "hasState", "state", "index", "createOperatorSubscriber", "value", "i", "combineLatest", "args", "_i", "resultSelector", "popResultSelector", "pipe", "__spreadArray", "__read", "mapOneOrManyArgs", "operate", "source", "subscriber", "combineLatestInit", "argsOrArgArray", "combineLatestWith", "otherSources", "_i", "combineLatest", "__spreadArray", "__read", "debounceTime", "dueTime", "scheduler", "asyncScheduler", "operate", "source", "subscriber", "activeTask", "lastValue", "lastTime", "emit", "value", "emitWhenIdle", "targetTime", "now", "createOperatorSubscriber", "defaultIfEmpty", "defaultValue", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "take", "count", "EMPTY", "operate", "source", "subscriber", "seen", "createOperatorSubscriber", "value", "ignoreElements", "operate", "source", "subscriber", "createOperatorSubscriber", "noop", "mapTo", "value", "map", "delayWhen", "delayDurationSelector", "subscriptionDelay", "source", "concat", "take", "ignoreElements", "mergeMap", "value", "index", "innerFrom", "mapTo", "delay", "due", "scheduler", "asyncScheduler", "duration", "timer", "delayWhen", "distinctUntilChanged", "comparator", "keySelector", "identity", "defaultCompare", "operate", "source", "subscriber", "previousKey", "first", "createOperatorSubscriber", "value", "currentKey", "a", "b", "distinctUntilKeyChanged", "key", "compare", "distinctUntilChanged", "x", "y", "throwIfEmpty", "errorFactory", "defaultErrorFactory", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "EmptyError", "endWith", "values", "_i", "source", "concat", "of", "__spreadArray", "__read", "finalize", "callback", "operate", "source", "subscriber", "first", "predicate", "defaultValue", "hasDefaultValue", "source", "filter", "v", "identity", "take", "defaultIfEmpty", "throwIfEmpty", "EmptyError", "takeLast", "count", "EMPTY", "operate", "source", "subscriber", "buffer", "createOperatorSubscriber", "value", "buffer_1", "__values", "buffer_1_1", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "argsOrArgArray", "operate", "source", "subscriber", "mergeAll", "from", "__spreadArray", "__read", "mergeWith", "otherSources", "_i", "merge", "__spreadArray", "__read", "repeat", "countOrConfig", "count", "delay", "_a", "EMPTY", "operate", "source", "subscriber", "soFar", "sourceSub", "resubscribe", "notifier", "timer", "innerFrom", "notifierSubscriber_1", "createOperatorSubscriber", "subscribeToSource", "syncUnsub", "scan", "accumulator", "seed", "operate", "scanInternals", "share", "options", "_a", "connector", "Subject", "_b", "resetOnError", "_c", "resetOnComplete", "_d", "resetOnRefCountZero", "wrapperSource", "connection", "resetConnection", "subject", "refCount", "hasCompleted", "hasErrored", "cancelReset", "reset", "resetAndUnsubscribe", "conn", "operate", "source", "subscriber", "dest", "handleReset", "SafeSubscriber", "value", "err", "innerFrom", "on", "args", "_i", "onSubscriber", "__spreadArray", "__read", "shareReplay", "configOrBufferSize", "windowTime", "scheduler", "bufferSize", "refCount", "_a", "_b", "_c", "share", "ReplaySubject", "skip", "count", "filter", "_", "index", "skipUntil", "notifier", "operate", "source", "subscriber", "taking", "skipSubscriber", "createOperatorSubscriber", "noop", "innerFrom", "value", "startWith", "values", "_i", "scheduler", "popScheduler", "operate", "source", "subscriber", "concat", "switchMap", "project", "resultSelector", "operate", "source", "subscriber", "innerSubscriber", "index", "isComplete", "checkComplete", "createOperatorSubscriber", "value", "innerIndex", "outerIndex", "innerFrom", "innerValue", "takeUntil", "notifier", "operate", "source", "subscriber", "innerFrom", "createOperatorSubscriber", "noop", "takeWhile", "predicate", "inclusive", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "result", "tap", "observerOrNext", "error", "complete", "tapObserver", "isFunction", "operate", "source", "subscriber", "_a", "isUnsub", "createOperatorSubscriber", "value", "err", "_b", "identity", "throttle", "durationSelector", "config", "operate", "source", "subscriber", "_a", "_b", "leading", "_c", "trailing", "hasValue", "sendValue", "throttled", "isComplete", "endThrottling", "send", "cleanupThrottling", "startThrottle", "value", "innerFrom", "createOperatorSubscriber", "throttleTime", "duration", "scheduler", "config", "asyncScheduler", "duration$", "timer", "throttle", "withLatestFrom", "inputs", "_i", "project", "popResultSelector", "operate", "source", "subscriber", "len", "otherValues", "hasValue", "ready", "i", "innerFrom", "createOperatorSubscriber", "value", "identity", "noop", "values", "__spreadArray", "__read", "zip", "sources", "_i", "operate", "source", "subscriber", "__spreadArray", "__read", "zipWith", "otherInputs", "_i", "zip", "__spreadArray", "__read", "watchDocument", "document$", "ReplaySubject", "fromEvent", "getElements", "selector", "node", "getElement", "el", "getOptionalElement", "getActiveElement", "_a", "_b", "_c", "_d", "observer$", "merge", "fromEvent", "debounceTime", "startWith", "map", "getActiveElement", "shareReplay", "watchElementFocus", "el", "active", "distinctUntilChanged", "watchElementHover", "el", "duration", "merge", "fromEvent", "map", "debounceTime", "identity", "startWith", "getElementOffset", "el", "watchElementOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "getElementContentOffset", "el", "watchElementContentOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "appendChild", "el", "child", "node", "h", "tag", "attributes", "children", "attr", "round", "value", "digits", "watchScript", "src", "script", "h", "defer", "merge", "fromEvent", "switchMap", "throwError", "map", "finalize", "take", "entry$", "Subject", "observer$", "defer", "watchScript", "of", "map", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "getElementSize", "el", "watchElementSize", "tap", "filter", "target", "startWith", "getElementContentSize", "el", "getElementContainer", "parent", "entry$", "Subject", "observer$", "defer", "of", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "watchElementVisibility", "el", "tap", "filter", "target", "map", "isIntersecting", "watchElementBoundary", "threshold", "watchElementContentOffset", "y", "visible", "getElementSize", "content", "getElementContentSize", "distinctUntilChanged", "toggles", "getElement", "getToggle", "name", "setToggle", "value", "watchToggle", "el", "fromEvent", "map", "startWith", "isSusceptibleToKeyboard", "el", "type", "watchComposition", "merge", "fromEvent", "map", "startWith", "watchKeyboard", "keyboard$", "filter", "ev", "getToggle", "mode", "active", "getActiveElement", "share", "switchMap", "EMPTY", "getLocation", "setLocation", "url", "navigate", "feature", "el", "h", "watchLocation", "Subject", "getLocationHash", "setLocationHash", "hash", "el", "h", "ev", "watchLocationHash", "location$", "merge", "fromEvent", "map", "startWith", "filter", "shareReplay", "watchLocationTarget", "id", "getOptionalElement", "watchMedia", "query", "media", "fromEventPattern", "next", "startWith", "watchPrint", "merge", "fromEvent", "map", "at", "query$", "factory", "switchMap", "active", "EMPTY", "request", "url", "options", "Observable", "observer", "req", "event", "_a", "length", "requestJSON", "switchMap", "res", "map", "body", "shareReplay", "requestHTML", "dom", "requestXML", "getViewportOffset", "watchViewportOffset", "merge", "fromEvent", "map", "startWith", "getViewportSize", "watchViewportSize", "fromEvent", "map", "startWith", "watchViewport", "combineLatest", "watchViewportOffset", "watchViewportSize", "map", "offset", "size", "shareReplay", "watchViewportAt", "el", "viewport$", "header$", "size$", "distinctUntilKeyChanged", "offset$", "combineLatest", "map", "getElementOffset", "height", "offset", "size", "x", "y", "recv", "worker", "fromEvent", "ev", "send", "send$", "Subject", "data", "watchWorker", "url", "recv$", "worker$", "done$", "ignoreElements", "endWith", "mergeWith", "takeUntil", "share", "script", "getElement", "config", "getLocation", "configuration", "feature", "flag", "translation", "key", "value", "getComponentElement", "type", "node", "getElement", "getComponentElements", "getElements", "watchAnnounce", "el", "button", "getElement", "fromEvent", "map", "content", "mountAnnounce", "feature", "EMPTY", "defer", "push$", "Subject", "hash", "tap", "state", "finalize", "__spreadValues", "watchConsent", "el", "target$", "map", "target", "mountConsent", "options", "internal$", "Subject", "hidden", "tap", "state", "finalize", "__spreadValues", "renderTooltip", "id", "style", "h", "renderAnnotation", "id", "prefix", "anchor", "h", "renderTooltip", "renderClipboardButton", "id", "h", "translation", "renderSearchDocument", "document", "flag", "parent", "teaser", "missing", "key", "list", "h", "config", "configuration", "url", "feature", "match", "highlight", "value", "tags", "tag", "type", "translation", "renderSearchResultItem", "result", "threshold", "docs", "doc", "article", "index", "best", "more", "children", "section", "renderSourceFacts", "facts", "h", "key", "value", "round", "renderTabbedControl", "type", "classes", "h", "renderTable", "table", "h", "renderVersion", "version", "config", "configuration", "url", "h", "renderVersionSelector", "versions", "active", "translation", "sequence", "watchTooltip", "el", "host", "width", "getElementSize", "container", "getElementContainer", "scroll$", "watchElementContentOffset", "of", "active$", "merge", "watchElementFocus", "watchElementHover", "distinctUntilChanged", "combineLatest", "map", "active", "scroll", "x", "y", "getElementOffset", "size", "table", "mountTooltip", "title", "EMPTY", "id", "tooltip", "renderTooltip", "typeset", "getElement", "defer", "push$", "Subject", "offset", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "tap", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "watchAnnotation", "el", "container", "offset$", "defer", "combineLatest", "watchElementOffset", "watchElementContentOffset", "map", "x", "y", "scroll", "width", "height", "getElementSize", "watchElementFocus", "switchMap", "active", "offset", "take", "mountAnnotation", "target$", "tooltip", "index", "push$", "Subject", "done$", "ignoreElements", "endWith", "watchElementVisibility", "takeUntil", "visible", "merge", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "fromEvent", "ev", "withLatestFrom", "_a", "parent", "getActiveElement", "target", "delay", "tap", "state", "finalize", "__spreadValues", "findHosts", "container", "getElements", "findMarkers", "markers", "el", "nodes", "it", "node", "text", "match", "id", "force", "marker", "swap", "source", "target", "mountAnnotationList", "target$", "print$", "parent", "prefix", "annotations", "getOptionalElement", "renderAnnotation", "EMPTY", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "pairs", "annotation", "getElement", "takeUntil", "active", "inner", "child", "merge", "mountAnnotation", "finalize", "share", "findList", "el", "sibling", "mountAnnotationBlock", "options", "defer", "list", "mountAnnotationList", "EMPTY", "import_clipboard", "sequence", "findCandidateList", "el", "sibling", "watchCodeBlock", "watchElementSize", "map", "width", "getElementContentSize", "distinctUntilKeyChanged", "mountCodeBlock", "options", "hover", "factory$", "defer", "push$", "Subject", "done$", "takeLast", "scrollable", "content$", "ClipboardJS", "feature", "parent", "button", "renderClipboardButton", "mountTooltip", "container", "list", "annotations$", "mountAnnotationList", "takeUntil", "height", "distinctUntilChanged", "switchMap", "active", "EMPTY", "tap", "state", "finalize", "__spreadValues", "mergeWith", "watchElementVisibility", "filter", "visible", "take", "watchDetails", "el", "target$", "print$", "open", "merge", "map", "target", "filter", "details", "active", "tap", "mountDetails", "options", "defer", "push$", "Subject", "action", "reveal", "state", "finalize", "__spreadValues", "mermaid_default", "mermaid$", "sequence", "fetchScripts", "watchScript", "of", "mountMermaid", "el", "tap", "mermaid_default", "map", "shareReplay", "__async", "id", "host", "h", "text", "svg", "fn", "shadow", "sentinel", "h", "mountDataTable", "el", "renderTable", "of", "watchContentTabs", "inputs", "initial", "input", "merge", "fromEvent", "map", "getElement", "startWith", "active", "mountContentTabs", "el", "viewport$", "target$", "container", "getElements", "prev", "renderTabbedControl", "next", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatest", "watchElementSize", "takeUntil", "auditTime", "animationFrameScheduler", "size", "offset", "getElementOffset", "width", "getElementSize", "content", "getElementContentOffset", "watchElementContentOffset", "getElementContentSize", "direction", "filter", "label", "h", "ev", "tap", "feature", "skip", "withLatestFrom", "tab", "y", "set", "tabs", "media", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "mountContent", "el", "viewport$", "target$", "print$", "merge", "getElements", "child", "mountAnnotationBlock", "mountCodeBlock", "mountMermaid", "mountDataTable", "mountDetails", "mountContentTabs", "feature", "mountTooltip", "watchDialog", "_el", "alert$", "switchMap", "message", "merge", "of", "delay", "map", "active", "mountDialog", "el", "options", "inner", "getElement", "defer", "push$", "Subject", "tap", "state", "finalize", "__spreadValues", "isHidden", "viewport$", "feature", "of", "direction$", "map", "y", "bufferCount", "a", "b", "distinctUntilKeyChanged", "hidden$", "combineLatest", "filter", "offset", "direction", "distinctUntilChanged", "search$", "watchToggle", "search", "switchMap", "active", "startWith", "watchHeader", "el", "options", "defer", "watchElementSize", "height", "hidden", "shareReplay", "mountHeader", "header$", "main$", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatestWith", "tooltips", "from", "getElements", "mergeMap", "child", "mountTooltip", "takeUntil", "state", "__spreadValues", "mergeWith", "watchHeaderTitle", "el", "viewport$", "header$", "watchViewportAt", "map", "y", "height", "getElementSize", "distinctUntilKeyChanged", "mountHeaderTitle", "options", "defer", "push$", "Subject", "active", "heading", "getOptionalElement", "EMPTY", "tap", "state", "finalize", "__spreadValues", "watchMain", "el", "viewport$", "header$", "adjust$", "map", "height", "distinctUntilChanged", "border$", "switchMap", "watchElementSize", "distinctUntilKeyChanged", "combineLatest", "header", "top", "bottom", "y", "a", "b", "watchPalette", "inputs", "current", "input", "index", "of", "mergeMap", "fromEvent", "map", "startWith", "shareReplay", "mountPalette", "el", "getElements", "meta", "h", "scheme", "media$", "watchMedia", "defer", "push$", "Subject", "palette", "media", "key", "value", "label", "header", "getComponentElement", "style", "color", "observeOn", "asyncScheduler", "takeUntil", "skip", "repeat", "tap", "state", "finalize", "__spreadValues", "mountProgress", "el", "progress$", "defer", "push$", "Subject", "value", "tap", "finalize", "map", "import_clipboard", "extract", "el", "copy", "text", "setupClipboardJS", "alert$", "ClipboardJS", "Observable", "subscriber", "getElement", "ev", "tap", "map", "translation", "resolve", "url", "base", "extract", "document", "sitemap", "el", "getElements", "getElement", "links", "link", "href", "fetchSitemap", "requestXML", "map", "catchError", "of", "handle", "ev", "sitemap", "EMPTY", "el", "url", "of", "head", "document", "tags", "getElements", "resolve", "key", "value", "inject", "next", "selector", "feature", "source", "getOptionalElement", "target", "html", "container", "getComponentElement", "concat", "switchMap", "script", "name", "Observable", "observer", "ignoreElements", "endWith", "setupInstantNavigation", "location$", "viewport$", "progress$", "config", "configuration", "sitemap$", "fetchSitemap", "instant$", "fromEvent", "combineLatestWith", "share", "history$", "map", "getLocation", "withLatestFrom", "offset", "merge", "document$", "distinctUntilKeyChanged", "requestHTML", "catchError", "setLocation", "_", "distinctUntilChanged", "a", "b", "tap", "_a", "_b", "setLocationHash", "debounceTime", "import_escape_html", "setupSearchHighlighter", "config", "regex", "term", "separator", "highlight", "_", "data", "query", "match", "value", "escapeHTML", "isSearchReadyMessage", "message", "isSearchResultMessage", "setupSearchWorker", "url", "index$", "worker$", "watchWorker", "merge", "of", "watchToggle", "first", "active", "switchMap", "config", "docs", "feature", "setupVersionSelector", "document$", "config", "configuration", "versions$", "requestJSON", "catchError", "EMPTY", "current$", "map", "versions", "current", "version", "aliases", "switchMap", "urls", "fromEvent", "filter", "ev", "withLatestFrom", "el", "url", "of", "fetchSitemap", "sitemap", "path", "getLocation", "setLocation", "combineLatest", "getElement", "renderVersionSelector", "_a", "outdated", "ignored", "main", "ignore", "warning", "getComponentElements", "watchSearchQuery", "el", "worker$", "searchParams", "getLocation", "setToggle", "watchToggle", "first", "active", "url", "focus$", "watchElementFocus", "value$", "merge", "isSearchReadyMessage", "fromEvent", "map", "distinctUntilChanged", "combineLatest", "value", "focus", "shareReplay", "mountSearchQuery", "push$", "Subject", "done$", "ignoreElements", "endWith", "_", "query", "distinctUntilKeyChanged", "takeUntil", "label", "getElement", "tap", "state", "finalize", "__spreadValues", "mountSearchResult", "el", "worker$", "query$", "push$", "Subject", "boundary$", "watchElementBoundary", "filter", "container", "meta", "getElement", "list", "watchToggle", "active", "withLatestFrom", "skipUntil", "first", "isSearchReadyMessage", "items", "value", "translation", "count", "round", "render$", "tap", "switchMap", "merge", "of", "bufferCount", "zipWith", "chunk", "map", "renderSearchResultItem", "share", "item", "mergeMap", "details", "getOptionalElement", "EMPTY", "fromEvent", "takeUntil", "isSearchResultMessage", "data", "state", "finalize", "__spreadValues", "watchSearchShare", "_el", "query$", "map", "value", "url", "getLocation", "mountSearchShare", "el", "options", "push$", "Subject", "done$", "ignoreElements", "endWith", "fromEvent", "takeUntil", "ev", "tap", "state", "finalize", "__spreadValues", "mountSearchSuggest", "el", "worker$", "keyboard$", "push$", "Subject", "query", "getComponentElement", "query$", "merge", "fromEvent", "observeOn", "asyncScheduler", "map", "distinctUntilChanged", "combineLatestWith", "suggest", "value", "words", "last", "filter", "mode", "key", "isSearchResultMessage", "data", "tap", "state", "finalize", "mountSearch", "el", "index$", "keyboard$", "config", "configuration", "worker$", "setupSearchWorker", "query", "getComponentElement", "result", "fromEvent", "filter", "target", "setToggle", "mode", "key", "active", "getActiveElement", "anchors", "anchor", "getElements", "article", "best", "a", "b", "els", "i", "query$", "mountSearchQuery", "merge", "mountSearchResult", "mergeWith", "getComponentElements", "child", "mountSearchShare", "mountSearchSuggest", "err", "NEVER", "mountSearchHiglight", "el", "index$", "location$", "combineLatest", "startWith", "getLocation", "filter", "url", "map", "index", "setupSearchHighlighter", "fn", "_a", "nodes", "it", "node", "original", "replaced", "text", "childNodes", "h", "watchSidebar", "el", "viewport$", "main$", "parent", "adjust", "combineLatest", "map", "offset", "height", "y", "distinctUntilChanged", "a", "b", "mountSidebar", "_a", "_b", "header$", "options", "__objRest", "inner", "getElement", "getElementOffset", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "next$", "auditTime", "animationFrameScheduler", "withLatestFrom", "first", "item", "getElements", "container", "getElementSize", "from", "mergeMap", "label", "fromEvent", "observeOn", "asyncScheduler", "takeUntil", "input", "tap", "state", "finalize", "__spreadValues", "fetchSourceFactsFromGitHub", "user", "repo", "url", "zip", "requestJSON", "catchError", "EMPTY", "map", "release", "defaultIfEmpty", "info", "__spreadValues", "fetchSourceFactsFromGitLab", "base", "project", "url", "requestJSON", "catchError", "EMPTY", "map", "star_count", "forks_count", "defaultIfEmpty", "fetchSourceFacts", "url", "match", "user", "repo", "fetchSourceFactsFromGitHub", "base", "slug", "fetchSourceFactsFromGitLab", "EMPTY", "fetch$", "watchSource", "el", "defer", "cached", "of", "getComponentElements", "consent", "EMPTY", "fetchSourceFacts", "tap", "facts", "catchError", "filter", "map", "shareReplay", "mountSource", "inner", "getElement", "push$", "Subject", "renderSourceFacts", "state", "finalize", "__spreadValues", "watchTabs", "el", "viewport$", "header$", "watchElementSize", "switchMap", "watchViewportAt", "map", "y", "distinctUntilKeyChanged", "mountTabs", "options", "defer", "push$", "Subject", "hidden", "feature", "of", "tap", "state", "finalize", "__spreadValues", "watchTableOfContents", "el", "viewport$", "header$", "table", "anchors", "getElements", "anchor", "id", "target", "getOptionalElement", "adjust$", "distinctUntilKeyChanged", "map", "height", "main", "getComponentElement", "grid", "getElement", "share", "watchElementSize", "switchMap", "body", "defer", "path", "of", "index", "offset", "parent", "a", "b", "combineLatestWith", "adjust", "scan", "prev", "next", "y", "size", "last", "distinctUntilChanged", "startWith", "bufferCount", "mountTableOfContents", "main$", "target$", "push$", "Subject", "done$", "ignoreElements", "endWith", "feature", "smooth$", "merge", "debounceTime", "filter", "observeOn", "asyncScheduler", "withLatestFrom", "behavior", "container", "getElementContainer", "getElementSize", "takeUntil", "skip", "repeat", "url", "getLocation", "active", "hash", "tap", "state", "finalize", "__spreadValues", "watchBackToTop", "_el", "viewport$", "main$", "target$", "direction$", "map", "y", "bufferCount", "a", "b", "distinctUntilChanged", "active$", "active", "combineLatest", "direction", "takeUntil", "skip", "endWith", "repeat", "hidden", "mountBackToTop", "el", "header$", "push$", "Subject", "done$", "ignoreElements", "distinctUntilKeyChanged", "height", "fromEvent", "ev", "tap", "state", "finalize", "__spreadValues", "patchEllipsis", "document$", "switchMap", "getElements", "mergeMap", "el", "watchElementVisibility", "takeUntil", "skip", "filter", "visible", "map", "take", "text", "host", "mountTooltip", "finalize", "patchIndeterminate", "document$", "tablet$", "switchMap", "getElements", "tap", "el", "mergeMap", "fromEvent", "takeWhile", "map", "withLatestFrom", "tablet", "isAppleDevice", "patchScrollfix", "document$", "switchMap", "getElements", "tap", "el", "filter", "mergeMap", "fromEvent", "map", "top", "patchScrolllock", "viewport$", "tablet$", "combineLatest", "watchToggle", "map", "active", "tablet", "switchMap", "of", "delay", "withLatestFrom", "y", "value", "obj", "data", "key", "x", "y", "nodes", "parent", "i", "node", "fetchSearchIndex", "watchScript", "config", "map", "shareReplay", "requestJSON", "document$", "watchDocument", "location$", "watchLocation", "target$", "watchLocationTarget", "keyboard$", "watchKeyboard", "viewport$", "watchViewport", "tablet$", "watchMedia", "screen$", "print$", "watchPrint", "configuration", "index$", "NEVER", "alert$", "Subject", "setupClipboardJS", "progress$", "feature", "setupInstantNavigation", "_a", "setupVersionSelector", "merge", "delay", "setToggle", "filter", "mode", "key", "prev", "getOptionalElement", "setLocation", "next", "active", "getActiveElement", "patchEllipsis", "patchIndeterminate", "patchScrollfix", "patchScrolllock", "header$", "watchHeader", "getComponentElement", "main$", "switchMap", "el", "watchMain", "control$", "getComponentElements", "mountConsent", "mountDialog", "mountHeader", "mountPalette", "mountProgress", "mountSearch", "mountSource", "content$", "defer", "mountAnnounce", "mountContent", "mountSearchHiglight", "EMPTY", "mountHeaderTitle", "at", "mountSidebar", "mountTabs", "mountTableOfContents", "mountBackToTop", "component$", "mergeWith"]
-}
diff --git a/content/references/java-chassis/en_US/assets/javascripts/bundle.dd8806f2.min.js b/content/references/java-chassis/en_US/assets/javascripts/bundle.dd8806f2.min.js
new file mode 100644
index 0000000..e22d189
--- /dev/null
+++ b/content/references/java-chassis/en_US/assets/javascripts/bundle.dd8806f2.min.js
@@ -0,0 +1,29 @@
+"use strict";(()=>{var Fi=Object.create;var gr=Object.defineProperty;var ji=Object.getOwnPropertyDescriptor;var Wi=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Ui=Object.getPrototypeOf,xr=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable;var oo=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))xr.call(t,r)&&oo(e,r,t[r]);if(Dt)for(var r of Dt(t))no.call(t,r)&&oo(e,r,t[r]);return e};var io=(e,t)=>{var r={};for(var o in e)xr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Dt)for(var o of Dt(e))t.indexOf(o)<0&&no.call(e,o)&&(r[o]=e[o]);return r};var yr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Di=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Wi(t))!xr.call(e,n)&&n!==r&&gr(e,n,{get:()=>t[n],enumerable:!(o=ji(t,n))||o.enumerable});return e};var Vt=(e,t,r)=>(r=e!=null?Fi(Ui(e)):{},Di(t||!e||!e.__esModule?gr(r,"default",{value:e,enumerable:!0}):r,e));var ao=(e,t,r)=>new Promise((o,n)=>{var i=p=>{try{s(r.next(p))}catch(c){n(c)}},a=p=>{try{s(r.throw(p))}catch(c){n(c)}},s=p=>p.done?o(p.value):Promise.resolve(p.value).then(i,a);s((r=r.apply(e,t)).next())});var co=yr((Er,so)=>{(function(e,t){typeof Er=="object"&&typeof so!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Er,function(){"use strict";function e(r){var o=!0,n=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(H){return!!(H&&H!==document&&H.nodeName!=="HTML"&&H.nodeName!=="BODY"&&"classList"in H&&"contains"in H.classList)}function p(H){var mt=H.type,ze=H.tagName;return!!(ze==="INPUT"&&a[mt]&&!H.readOnly||ze==="TEXTAREA"&&!H.readOnly||H.isContentEditable)}function c(H){H.classList.contains("focus-visible")||(H.classList.add("focus-visible"),H.setAttribute("data-focus-visible-added",""))}function l(H){H.hasAttribute("data-focus-visible-added")&&(H.classList.remove("focus-visible"),H.removeAttribute("data-focus-visible-added"))}function f(H){H.metaKey||H.altKey||H.ctrlKey||(s(r.activeElement)&&c(r.activeElement),o=!0)}function u(H){o=!1}function h(H){s(H.target)&&(o||p(H.target))&&c(H.target)}function w(H){s(H.target)&&(H.target.classList.contains("focus-visible")||H.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),l(H.target))}function A(H){document.visibilityState==="hidden"&&(n&&(o=!0),te())}function te(){document.addEventListener("mousemove",J),document.addEventListener("mousedown",J),document.addEventListener("mouseup",J),document.addEventListener("pointermove",J),document.addEventListener("pointerdown",J),document.addEventListener("pointerup",J),document.addEventListener("touchmove",J),document.addEventListener("touchstart",J),document.addEventListener("touchend",J)}function ie(){document.removeEventListener("mousemove",J),document.removeEventListener("mousedown",J),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",J),document.removeEventListener("pointerdown",J),document.removeEventListener("pointerup",J),document.removeEventListener("touchmove",J),document.removeEventListener("touchstart",J),document.removeEventListener("touchend",J)}function J(H){H.target.nodeName&&H.target.nodeName.toLowerCase()==="html"||(o=!1,ie())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",A,!0),te(),r.addEventListener("focus",h,!0),r.addEventListener("blur",w,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var Yr=yr((Rt,Kr)=>{/*!
+ * clipboard.js v2.0.11
+ * https://clipboardjs.com/
+ *
+ * Licensed MIT © Zeno Rocha
+ */(function(t,r){typeof Rt=="object"&&typeof Kr=="object"?Kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Rt=="object"?Rt.ClipboardJS=r():t.ClipboardJS=r()})(Rt,function(){return function(){var e={686:function(o,n,i){"use strict";i.d(n,{default:function(){return Ii}});var a=i(279),s=i.n(a),p=i(370),c=i.n(p),l=i(817),f=i.n(l);function u(V){try{return document.execCommand(V)}catch(_){return!1}}var h=function(_){var O=f()(_);return u("cut"),O},w=h;function A(V){var _=document.documentElement.getAttribute("dir")==="rtl",O=document.createElement("textarea");O.style.fontSize="12pt",O.style.border="0",O.style.padding="0",O.style.margin="0",O.style.position="absolute",O.style[_?"right":"left"]="-9999px";var j=window.pageYOffset||document.documentElement.scrollTop;return O.style.top="".concat(j,"px"),O.setAttribute("readonly",""),O.value=V,O}var te=function(_,O){var j=A(_);O.container.appendChild(j);var D=f()(j);return u("copy"),j.remove(),D},ie=function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},j="";return typeof _=="string"?j=te(_,O):_ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(_==null?void 0:_.type)?j=te(_.value,O):(j=f()(_),u("copy")),j},J=ie;function H(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(O){return typeof O}:H=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},H(V)}var mt=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=_.action,j=O===void 0?"copy":O,D=_.container,Y=_.target,ke=_.text;if(j!=="copy"&&j!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Y!==void 0)if(Y&&H(Y)==="object"&&Y.nodeType===1){if(j==="copy"&&Y.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(j==="cut"&&(Y.hasAttribute("readonly")||Y.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ke)return J(ke,{container:D});if(Y)return j==="cut"?w(Y):J(Y,{container:D})},ze=mt;function Ie(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(O){return typeof O}:Ie=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},Ie(V)}function _i(V,_){if(!(V instanceof _))throw new TypeError("Cannot call a class as a function")}function ro(V,_){for(var O=0;O<_.length;O++){var j=_[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(V,j.key,j)}}function Ai(V,_,O){return _&&ro(V.prototype,_),O&&ro(V,O),V}function Ci(V,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(_&&_.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),_&&br(V,_)}function br(V,_){return br=Object.setPrototypeOf||function(j,D){return j.__proto__=D,j},br(V,_)}function Hi(V){var _=Pi();return function(){var j=Wt(V),D;if(_){var Y=Wt(this).constructor;D=Reflect.construct(j,arguments,Y)}else D=j.apply(this,arguments);return ki(this,D)}}function ki(V,_){return _&&(Ie(_)==="object"||typeof _=="function")?_:$i(V)}function $i(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function Pi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(V){return!1}}function Wt(V){return Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},Wt(V)}function vr(V,_){var O="data-clipboard-".concat(V);if(_.hasAttribute(O))return _.getAttribute(O)}var Ri=function(V){Ci(O,V);var _=Hi(O);function O(j,D){var Y;return _i(this,O),Y=_.call(this),Y.resolveOptions(D),Y.listenClick(j),Y}return Ai(O,[{key:"resolveOptions",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof D.action=="function"?D.action:this.defaultAction,this.target=typeof D.target=="function"?D.target:this.defaultTarget,this.text=typeof D.text=="function"?D.text:this.defaultText,this.container=Ie(D.container)==="object"?D.container:document.body}},{key:"listenClick",value:function(D){var Y=this;this.listener=c()(D,"click",function(ke){return Y.onClick(ke)})}},{key:"onClick",value:function(D){var Y=D.delegateTarget||D.currentTarget,ke=this.action(Y)||"copy",Ut=ze({action:ke,container:this.container,target:this.target(Y),text:this.text(Y)});this.emit(Ut?"success":"error",{action:ke,text:Ut,trigger:Y,clearSelection:function(){Y&&Y.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(D){return vr("action",D)}},{key:"defaultTarget",value:function(D){var Y=vr("target",D);if(Y)return document.querySelector(Y)}},{key:"defaultText",value:function(D){return vr("text",D)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(D){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return J(D,Y)}},{key:"cut",value:function(D){return w(D)}},{key:"isSupported",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Y=typeof D=="string"?[D]:D,ke=!!document.queryCommandSupported;return Y.forEach(function(Ut){ke=ke&&!!document.queryCommandSupported(Ut)}),ke}}]),O}(s()),Ii=Ri},828:function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,p){for(;s&&s.nodeType!==n;){if(typeof s.matches=="function"&&s.matches(p))return s;s=s.parentNode}}o.exports=a},438:function(o,n,i){var a=i(828);function s(l,f,u,h,w){var A=c.apply(this,arguments);return l.addEventListener(u,A,w),{destroy:function(){l.removeEventListener(u,A,w)}}}function p(l,f,u,h,w){return typeof l.addEventListener=="function"?s.apply(null,arguments):typeof u=="function"?s.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(A){return s(A,f,u,h,w)}))}function c(l,f,u,h){return function(w){w.delegateTarget=a(w.target,f),w.delegateTarget&&h.call(l,w)}}o.exports=p},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(o,n,i){var a=i(879),s=i(438);function p(u,h,w){if(!u&&!h&&!w)throw new Error("Missing required arguments");if(!a.string(h))throw new TypeError("Second argument must be a String");if(!a.fn(w))throw new TypeError("Third argument must be a Function");if(a.node(u))return c(u,h,w);if(a.nodeList(u))return l(u,h,w);if(a.string(u))return f(u,h,w);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(u,h,w){return u.addEventListener(h,w),{destroy:function(){u.removeEventListener(h,w)}}}function l(u,h,w){return Array.prototype.forEach.call(u,function(A){A.addEventListener(h,w)}),{destroy:function(){Array.prototype.forEach.call(u,function(A){A.removeEventListener(h,w)})}}}function f(u,h,w){return s(document.body,u,h,w)}o.exports=p},817:function(o){function n(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var p=window.getSelection(),c=document.createRange();c.selectNodeContents(i),p.removeAllRanges(),p.addRange(c),a=p.toString()}return a}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,a,s){var p=this.e||(this.e={});return(p[i]||(p[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var p=this;function c(){p.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),p=0,c=s.length;for(p;p<c;p++)s[p].fn.apply(s[p].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),p=s[i],c=[];if(p&&a)for(var l=0,f=p.length;l<f;l++)p[l].fn!==a&&p[l].fn._!==a&&c.push(p[l]);return c.length?s[i]=c:delete s[i],this}},o.exports=n,o.exports.TinyEmitter=n}},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}}(),function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}}(),function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),r(686)}().default})});var ti=yr((gT,ei)=>{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var ts=/["'&<>]/;ei.exports=rs;function rs(e){var t=""+e,r=ts.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==i&&(n+=t.substring(a,i)),a=i+1,n+=o}return a!==i?n+t.substring(a,i):n}});var e0=Vt(co());/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var wr=function(e,t){return wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},wr(e,t)};function re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function po(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(l){try{c(o.next(l))}catch(f){a(f)}}function p(l){try{c(o.throw(l))}catch(f){a(f)}}function c(l){l.done?i(l.value):n(l.value).then(s,p)}c((o=o.apply(e,t||[])).next())})}function Nt(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return p([c,l])}}function p(c){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function de(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],a;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function q(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function nt(e){return this instanceof nt?(this.v=e,this):new nt(e)}function lo(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(u){o[u]&&(n[u]=function(h){return new Promise(function(w,A){i.push([u,h,w,A])>1||s(u,h)})})}function s(u,h){try{p(o[u](h))}catch(w){f(i[0][3],w)}}function p(u){u.value instanceof nt?Promise.resolve(u.value.v).then(c,l):f(i[0][2],u)}function c(u){s("next",u)}function l(u){s("throw",u)}function f(u,h){u(h),i.shift(),i.length&&s(i[0][0],i[0][1])}}function mo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof de=="function"?de(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(a){return new Promise(function(s,p){a=e[i](a),n(s,p,a.done,a.value)})}}function n(i,a,s,p){Promise.resolve(p).then(function(c){i({value:c,done:s})},a)}}function k(e){return typeof e=="function"}function ft(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zt=ft(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
+`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
+  `):"",this.name="UnsubscriptionError",this.errors=r}});function qe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=de(a),p=s.next();!p.done;p=s.next()){var c=p.value;c.remove(this)}}catch(A){t={error:A}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var l=this.initialTeardown;if(k(l))try{l()}catch(A){i=A instanceof zt?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var u=de(f),h=u.next();!h.done;h=u.next()){var w=h.value;try{fo(w)}catch(A){i=i!=null?i:[],A instanceof zt?i=q(q([],N(i)),N(A.errors)):i.push(A)}}}catch(A){o={error:A}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new zt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&qe(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&qe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Tr=Fe.EMPTY;function qt(e){return e instanceof Fe||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function fo(e){k(e)?e():e.unsubscribe()}var $e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ut={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=ut.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,q([e,t],N(r))):setTimeout.apply(void 0,q([e,t],N(r)))},clearTimeout:function(e){var t=ut.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Qt(e){ut.setTimeout(function(){var t=$e.onUnhandledError;if(t)t(e);else throw e})}function he(){}var uo=function(){return Sr("C",void 0,void 0)}();function ho(e){return Sr("E",void 0,e)}function bo(e){return Sr("N",e,void 0)}function Sr(e,t,r){return{kind:e,value:t,error:r}}var it=null;function dt(e){if($e.useDeprecatedSynchronousErrorHandling){var t=!it;if(t&&(it={errorThrown:!1,error:null}),e(),t){var r=it,o=r.errorThrown,n=r.error;if(it=null,o)throw n}}else e()}function vo(e){$e.useDeprecatedSynchronousErrorHandling&&it&&(it.errorThrown=!0,it.error=e)}var Mt=function(e){re(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,qt(r)&&r.add(o)):o.destination=qi,o}return t.create=function(r,o,n){return new at(r,o,n)},t.prototype.next=function(r){this.isStopped?Mr(bo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Mr(ho(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Mr(uo,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe);var Vi=Function.prototype.bind;function Or(e,t){return Vi.call(e,t)}var Ni=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(o){Kt(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){Kt(o)}else Kt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Kt(r)}},e}(),at=function(e){re(t,e);function t(r,o,n){var i=e.call(this)||this,a;if(k(r)||!r)a={next:r!=null?r:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var s;i&&$e.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Or(r.next,s),error:r.error&&Or(r.error,s),complete:r.complete&&Or(r.complete,s)}):a=r}return i.destination=new Ni(a),i}return t}(Mt);function Kt(e){$e.useDeprecatedSynchronousErrorHandling?vo(e):Qt(e)}function zi(e){throw e}function Mr(e,t){var r=$e.onStoppedNotification;r&&ut.setTimeout(function(){return r(e,t)})}var qi={closed:!0,next:he,error:zi,complete:he};var ht=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function le(e){return e}function go(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Lr(e)}function Lr(e){return e.length===0?le:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var F=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,o){var n=this,i=Ki(t)?t:new at(t,r,o);return dt(function(){var a=n,s=a.operator,p=a.source;i.add(s?s.call(i,p):p?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=xo(r),new r(function(n,i){var a=new at({next:function(s){try{t(s)}catch(p){i(p),a.unsubscribe()}},error:i,complete:n});o.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ht]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Lr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=xo(t),new t(function(o,n){var i;r.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(t){return new e(t)},e}();function xo(e){var t;return(t=e!=null?e:$e.Promise)!==null&&t!==void 0?t:Promise}function Qi(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function Ki(e){return e&&e instanceof Mt||Qi(e)&&qt(e)}function Yi(e){return k(e==null?void 0:e.lift)}function x(e){return function(t){if(Yi(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,t,r,o,n){return new Bi(e,t,r,o,n)}var Bi=function(e){re(t,e);function t(r,o,n,i,a,s){var p=e.call(this,r)||this;return p.onFinalize=a,p.shouldUnsubscribe=s,p._next=o?function(c){try{o(c)}catch(l){r.error(l)}}:e.prototype._next,p._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,p._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,p}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Mt);var bt={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=bt.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new Fe(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bt.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,q([],N(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bt.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,q([],N(e)))},delegate:void 0};var yo=ft(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var g=function(e){re(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new Eo(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new yo},t.prototype.next=function(r){var o=this;dt(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var a=de(o.currentObservers),s=a.next();!s.done;s=a.next()){var p=s.value;p.next(r)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;dt(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;dt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?Tr:(this.currentObservers=null,s.push(r),new Fe(function(){o.currentObservers=null,qe(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,o){return new Eo(r,o)},t}(F);var Eo=function(e){re(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:Tr},t}(g);var _r=function(e){re(t,e);function t(r){var o=e.call(this)||this;return o._value=r,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var o=e.prototype._subscribe.call(this,r);return!o.closed&&r.next(this._value),o},t.prototype.getValue=function(){var r=this,o=r.hasError,n=r.thrownError,i=r._value;if(o)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(g);var Lt={now:function(){return(Lt.delegate||Date).now()},delegate:void 0};var _t=function(e){re(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Lt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,s=o._timestampProvider,p=o._windowTime;n||(i.push(r),!a&&i.push(s.now()+p)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),p=0;p<s.length&&!r.closed;p+=i?1:2)r.next(s[p]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*o;if(o<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var p=n.now(),c=0,l=1;l<i.length&&i[l]<=p;l+=2)c=l;c&&i.splice(0,c+1)}},t}(g);var wo=function(e){re(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t}(Fe);var At={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=At.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,q([e,t],N(r))):setInterval.apply(void 0,q([e,t],N(r)))},clearInterval:function(e){var t=At.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var vt=function(e){re(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(a,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),At.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&At.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,qe(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(wo);var Ar=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=Lt.now,e}();var gt=function(e){re(t,e);function t(r,o){o===void 0&&(o=Ar.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t}(Ar);var se=new gt(vt),Cr=se;var To=function(e){re(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),o>0?e.prototype.schedule.call(this,r,o):(this.delay=o,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,o){return o>0||this.closed?e.prototype.execute.call(this,r,o):this._execute(r,o)},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.flush(this),0)},t}(vt);var So=function(e){re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(gt);var Hr=new So(To);var Oo=function(e){re(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=bt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var a=r.actions;o!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==o&&(bt.cancelAnimationFrame(o),r._scheduled=void 0)},t}(vt);var Mo=function(e){re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t}(gt);var me=new Mo(Oo);var M=new F(function(e){return e.complete()});function Yt(e){return e&&k(e.schedule)}function kr(e){return e[e.length-1]}function Xe(e){return k(kr(e))?e.pop():void 0}function He(e){return Yt(kr(e))?e.pop():void 0}function Bt(e,t){return typeof kr(e)=="number"?e.pop():t}var xt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Gt(e){return k(e==null?void 0:e.then)}function Jt(e){return k(e[ht])}function Xt(e){return Symbol.asyncIterator&&k(e==null?void 0:e[Symbol.asyncIterator])}function Zt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Gi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var er=Gi();function tr(e){return k(e==null?void 0:e[er])}function rr(e){return lo(this,arguments,function(){var r,o,n,i;return Nt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,nt(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,nt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,nt(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function or(e){return k(e==null?void 0:e.getReader)}function W(e){if(e instanceof F)return e;if(e!=null){if(Jt(e))return Ji(e);if(xt(e))return Xi(e);if(Gt(e))return Zi(e);if(Xt(e))return Lo(e);if(tr(e))return ea(e);if(or(e))return ta(e)}throw Zt(e)}function Ji(e){return new F(function(t){var r=e[ht]();if(k(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xi(e){return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Zi(e){return new F(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Qt)})}function ea(e){return new F(function(t){var r,o;try{for(var n=de(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Lo(e){return new F(function(t){ra(e,t).catch(function(r){return t.error(r)})})}function ta(e){return Lo(rr(e))}function ra(e,t){var r,o,n,i;return po(this,void 0,void 0,function(){var a,s;return Nt(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),r=mo(e),p.label=1;case 1:return[4,r.next()];case 2:if(o=p.sent(),!!o.done)return[3,4];if(a=o.value,t.next(a),t.closed)return[2];p.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=p.sent(),n={error:s},[3,11];case 6:return p.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ee(e,t,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function be(e,t){return t===void 0&&(t=0),x(function(r,o){r.subscribe(T(o,function(n){return Ee(o,e,function(){return o.next(n)},t)},function(){return Ee(o,e,function(){return o.complete()},t)},function(n){return Ee(o,e,function(){return o.error(n)},t)}))})}function Qe(e,t){return t===void 0&&(t=0),x(function(r,o){o.add(e.schedule(function(){return r.subscribe(o)},t))})}function _o(e,t){return W(e).pipe(Qe(t),be(t))}function Ao(e,t){return W(e).pipe(Qe(t),be(t))}function Co(e,t){return new F(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}function Ho(e,t){return new F(function(r){var o;return Ee(r,t,function(){o=e[er](),Ee(r,t,function(){var n,i,a;try{n=o.next(),i=n.value,a=n.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return k(o==null?void 0:o.return)&&o.return()}})}function nr(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(r){Ee(r,t,function(){var o=e[Symbol.asyncIterator]();Ee(r,t,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function ko(e,t){return nr(rr(e),t)}function $o(e,t){if(e!=null){if(Jt(e))return _o(e,t);if(xt(e))return Co(e,t);if(Gt(e))return Ao(e,t);if(Xt(e))return nr(e,t);if(tr(e))return Ho(e,t);if(or(e))return ko(e,t)}throw Zt(e)}function ue(e,t){return t?$o(e,t):W(e)}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e);return ue(e,r)}function $r(e,t){var r=k(e)?e:function(){return e},o=function(n){return n.error(r())};return new F(t?function(n){return t.schedule(o,0,n)}:o)}var ir=ft(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Po(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return x(function(r,o){var n=0;r.subscribe(T(o,function(i){o.next(e.call(t,i,n++))}))})}var oa=Array.isArray;function na(e,t){return oa(t)?e.apply(void 0,q([],N(t))):e(t)}function Ze(e){return m(function(t){return na(e,t)})}var ia=Array.isArray,aa=Object.getPrototypeOf,sa=Object.prototype,ca=Object.keys;function Ro(e){if(e.length===1){var t=e[0];if(ia(t))return{args:t,keys:null};if(pa(t)){var r=ca(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function pa(e){return e&&typeof e=="object"&&aa(e)===sa}function Io(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=Xe(e),n=Ro(e),i=n.args,a=n.keys;if(i.length===0)return ue([],r);var s=new F(Pr(i,r,a?function(p){return Io(a,p)}:le));return o?s.pipe(Ze(o)):s}function Pr(e,t,r){return r===void 0&&(r=le),function(o){Fo(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,p=function(l){Fo(t,function(){var f=ue(e[l],t),u=!1;f.subscribe(T(o,function(h){i[l]=h,u||(u=!0,s--),s||o.next(r(i.slice()))},function(){--a||o.complete()}))},o)},c=0;c<n;c++)p(c)},o)}}function Fo(e,t,r){e?Ee(r,e,t):t()}function jo(e,t,r,o,n,i,a,s){var p=[],c=0,l=0,f=!1,u=function(){f&&!p.length&&!c&&t.complete()},h=function(A){return c<o?w(A):p.push(A)},w=function(A){i&&t.next(A),c++;var te=!1;W(r(A,l++)).subscribe(T(t,function(ie){n==null||n(ie),i?h(ie):t.next(ie)},function(){te=!0},void 0,function(){if(te)try{c--;for(var ie=function(){var J=p.shift();a?Ee(t,a,function(){return w(J)}):w(J)};p.length&&c<o;)ie();u()}catch(J){t.error(J)}}))};return e.subscribe(T(t,h,function(){f=!0,u()})),function(){s==null||s()}}function oe(e,t,r){return r===void 0&&(r=1/0),k(t)?oe(function(o,n){return m(function(i,a){return t(o,i,n,a)})(W(e(o,n)))},r):(typeof t=="number"&&(r=t),x(function(o,n){return jo(o,n,e,r)}))}function yt(e){return e===void 0&&(e=1/0),oe(le,e)}function Wo(){return yt(1)}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Wo()(ue(e,He(e)))}function C(e){return new F(function(t){W(e()).subscribe(t)})}var la=["addListener","removeListener"],ma=["addEventListener","removeEventListener"],fa=["on","off"];function d(e,t,r,o){if(k(r)&&(o=r,r=void 0),o)return d(e,t,r).pipe(Ze(o));var n=N(ha(e)?ma.map(function(s){return function(p){return e[s](t,p,r)}}):ua(e)?la.map(Uo(e,t)):da(e)?fa.map(Uo(e,t)):[],2),i=n[0],a=n[1];if(!i&&xt(e))return oe(function(s){return d(s,t,r)})(W(e));if(!i)throw new TypeError("Invalid event target");return new F(function(s){var p=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return s.next(1<c.length?c:c[0])};return i(p),function(){return a(p)}})}function Uo(e,t){return function(r){return function(o){return e[r](t,o)}}}function ua(e){return k(e.addListener)&&k(e.removeListener)}function da(e){return k(e.on)&&k(e.off)}function ha(e){return k(e.addEventListener)&&k(e.removeEventListener)}function ar(e,t,r){return r?ar(e,t).pipe(Ze(r)):new F(function(o){var n=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.next(a.length===1?a[0]:a)},i=e(n);return k(t)?function(){return t(n,i)}:void 0})}function Me(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Cr);var o=-1;return t!=null&&(Yt(t)?r=t:o=t),new F(function(n){var i=Po(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=Bt(e,1/0),n=e;return n.length?n.length===1?W(n[0]):yt(o)(ue(n,r)):M}var Ke=new F(he);var ba=Array.isArray;function Et(e){return e.length===1&&ba(e[0])?e[0]:e}function b(e,t){return x(function(r,o){var n=0;r.subscribe(T(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe(e),o=Et(e);return o.length?new F(function(n){var i=o.map(function(){return[]}),a=o.map(function(){return!1});n.add(function(){i=a=null});for(var s=function(c){W(o[c]).subscribe(T(n,function(l){if(i[c].push(l),i.every(function(u){return u.length})){var f=i.map(function(u){return u.shift()});n.next(r?r.apply(void 0,q([],N(f))):f),i.some(function(u,h){return!u.length&&a[h]})&&n.complete()}},function(){a[c]=!0,!i[c].length&&n.complete()}))},p=0;!n.closed&&p<o.length;p++)s(p);return function(){i=a=null}}):M}function Do(e){return x(function(t,r){var o=!1,n=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var c=n;n=null,r.next(c)}a&&r.complete()},p=function(){i=null,a&&r.complete()};t.subscribe(T(r,function(c){o=!0,n=c,i||W(e(c)).subscribe(i=T(r,s,p))},function(){a=!0,(!o||!i||i.closed)&&r.complete()}))})}function Le(e,t){return t===void 0&&(t=se),Do(function(){return Me(e,t)})}function Ye(e,t){return t===void 0&&(t=null),t=t!=null?t:e,x(function(r,o){var n=[],i=0;r.subscribe(T(o,function(a){var s,p,c,l,f=null;i++%t===0&&n.push([]);try{for(var u=de(n),h=u.next();!h.done;h=u.next()){var w=h.value;w.push(a),e<=w.length&&(f=f!=null?f:[],f.push(w))}}catch(ie){s={error:ie}}finally{try{h&&!h.done&&(p=u.return)&&p.call(u)}finally{if(s)throw s.error}}if(f)try{for(var A=de(f),te=A.next();!te.done;te=A.next()){var w=te.value;qe(n,w),o.next(w)}}catch(ie){c={error:ie}}finally{try{te&&!te.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}},function(){var a,s;try{for(var p=de(n),c=p.next();!c.done;c=p.next()){var l=c.value;o.next(l)}}catch(f){a={error:f}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}o.complete()},void 0,function(){n=null}))})}function ve(e){return x(function(t,r){var o=null,n=!1,i;o=t.subscribe(T(r,void 0,void 0,function(a){i=W(e(a,ve(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function Vo(e,t,r,o,n){return function(i,a){var s=r,p=t,c=0;i.subscribe(T(a,function(l){var f=c++;p=s?e(p,l,f):(s=!0,l),o&&a.next(p)},n&&function(){s&&a.next(p),a.complete()}))}}function Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe(e);return r?go(Rr.apply(void 0,q([],N(e))),Ze(r)):x(function(o,n){Pr(q([o],N(Et(e))))(n)})}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rr.apply(void 0,q([],N(e)))}function Ht(e){return x(function(t,r){var o=!1,n=null,i=null,a=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var s=n;n=null,r.next(s)}};t.subscribe(T(r,function(s){i==null||i.unsubscribe(),o=!0,n=s,i=T(r,a,he),W(e(s)).subscribe(i)},function(){a(),r.complete()},void 0,function(){n=i=null}))})}function _e(e,t){return t===void 0&&(t=se),x(function(r,o){var n=null,i=null,a=null,s=function(){if(n){n.unsubscribe(),n=null;var c=i;i=null,o.next(c)}};function p(){var c=a+e,l=t.now();if(l<c){n=this.schedule(void 0,c-l),o.add(n);return}s()}r.subscribe(T(o,function(c){i=c,a=t.now(),n||(n=t.schedule(p,e),o.add(n))},function(){s(),o.complete()},void 0,function(){i=n=null}))})}function Be(e){return x(function(t,r){var o=!1;t.subscribe(T(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function we(e){return e<=0?function(){return M}:x(function(t,r){var o=0;t.subscribe(T(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function X(){return x(function(e,t){e.subscribe(T(t,he))})}function No(e){return m(function(){return e})}function Ir(e,t){return t?function(r){return je(t.pipe(we(1),X()),r.pipe(Ir(e)))}:oe(function(r,o){return W(e(r,o)).pipe(we(1),No(r))})}function Ge(e,t){t===void 0&&(t=se);var r=Me(e,t);return Ir(function(){return r})}function K(e,t){return t===void 0&&(t=le),e=e!=null?e:va,x(function(r,o){var n,i=!0;r.subscribe(T(o,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,o.next(a))}))})}function va(e,t){return e===t}function Z(e,t){return K(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function zo(e){return e===void 0&&(e=ga),x(function(t,r){var o=!1;t.subscribe(T(r,function(n){o=!0,r.next(n)},function(){return o?r.complete():r.error(e())}))})}function ga(){return new ir}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return je(r,I.apply(void 0,q([],N(e))))}}function L(e){return x(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Ae(e,t){var r=arguments.length>=2;return function(o){return o.pipe(e?b(function(n,i){return e(n,i,o)}):le,we(1),r?Be(t):zo(function(){return new ir}))}}function Fr(e){return e<=0?function(){return M}:x(function(t,r){var o=[];t.subscribe(T(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var a=de(o),s=a.next();!s.done;s=a.next()){var p=s.value;r.next(p)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function qo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=Bt(e,1/0);return e=Et(e),x(function(n,i){yt(o)(ue(q([n],N(e)),r)).subscribe(i)})}function Pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qo.apply(void 0,q([],N(e)))}function st(e){var t,r=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,o=e.delay):r=e),r<=0?function(){return M}:x(function(n,i){var a=0,s,p=function(){if(s==null||s.unsubscribe(),s=null,o!=null){var l=typeof o=="number"?Me(o):W(o(a)),f=T(i,function(){f.unsubscribe(),c()});l.subscribe(f)}else c()},c=function(){var l=!1;s=n.subscribe(T(i,void 0,function(){++a<r?s?p():l=!0:i.complete()})),l&&p()};c()})}function jr(e,t){return x(Vo(e,t,arguments.length>=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new g}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,p=s===void 0?!0:s;return function(c){var l,f,u,h=0,w=!1,A=!1,te=function(){f==null||f.unsubscribe(),f=void 0},ie=function(){te(),l=u=void 0,w=A=!1},J=function(){var H=l;ie(),H==null||H.unsubscribe()};return x(function(H,mt){h++,!A&&!w&&te();var ze=u=u!=null?u:r();mt.add(function(){h--,h===0&&!A&&!w&&(f=Wr(J,p))}),ze.subscribe(mt),!l&&h>0&&(l=new at({next:function(Ie){return ze.next(Ie)},error:function(Ie){A=!0,te(),f=Wr(ie,n,Ie),ze.error(Ie)},complete:function(){w=!0,te(),f=Wr(ie,a),ze.complete()}}),W(H).subscribe(l))})(c)}}function Wr(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var n=new at({next:function(){n.unsubscribe(),e()}});return W(t.apply(void 0,q([],N(r)))).subscribe(n)}}function B(e,t,r){var o,n,i,a,s=!1;return e&&typeof e=="object"?(o=e.bufferSize,a=o===void 0?1/0:o,n=e.windowTime,t=n===void 0?1/0:n,i=e.refCount,s=i===void 0?!1:i,r=e.scheduler):a=e!=null?e:1/0,pe({connector:function(){return new _t(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Ce(e){return b(function(t,r){return e<=r})}function Ur(e){return x(function(t,r){var o=!1,n=T(r,function(){n==null||n.unsubscribe(),o=!0},he);W(e).subscribe(n),t.subscribe(T(r,function(i){return o&&r.next(i)}))})}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e);return x(function(o,n){(r?je(e,o,r):je(e,o)).subscribe(n)})}function v(e,t){return x(function(r,o){var n=null,i=0,a=!1,s=function(){return a&&!n&&o.complete()};r.subscribe(T(o,function(p){n==null||n.unsubscribe();var c=0,l=i++;W(e(p,l)).subscribe(n=T(o,function(f){return o.next(t?t(p,f,l,c++):f)},function(){n=null,s()}))},function(){a=!0,s()}))})}function U(e){return x(function(t,r){W(e).subscribe(T(r,function(){return r.complete()},he)),!r.closed&&t.subscribe(r)})}function Dr(e,t){return t===void 0&&(t=!1),x(function(r,o){var n=0;r.subscribe(T(o,function(i){var a=e(i,n++);(a||t)&&o.next(i),!a&&o.complete()}))})}function y(e,t,r){var o=k(e)||t||r?{next:e,error:t,complete:r}:e;return o?x(function(n,i){var a;(a=o.subscribe)===null||a===void 0||a.call(o);var s=!0;n.subscribe(T(i,function(p){var c;(c=o.next)===null||c===void 0||c.call(o,p),i.next(p)},function(){var p;s=!1,(p=o.complete)===null||p===void 0||p.call(o),i.complete()},function(p){var c;s=!1,(c=o.error)===null||c===void 0||c.call(o,p),i.error(p)},function(){var p,c;s&&((p=o.unsubscribe)===null||p===void 0||p.call(o)),(c=o.finalize)===null||c===void 0||c.call(o)}))}):le}function Qo(e,t){return x(function(r,o){var n=t!=null?t:{},i=n.leading,a=i===void 0?!0:i,s=n.trailing,p=s===void 0?!1:s,c=!1,l=null,f=null,u=!1,h=function(){f==null||f.unsubscribe(),f=null,p&&(te(),u&&o.complete())},w=function(){f=null,u&&o.complete()},A=function(ie){return f=W(e(ie)).subscribe(T(o,h,w))},te=function(){if(c){c=!1;var ie=l;l=null,o.next(ie),!u&&A(ie)}};r.subscribe(T(o,function(ie){c=!0,l=ie,!(f&&!f.closed)&&(a?te():A(ie))},function(){u=!0,!(p&&c&&f&&!f.closed)&&o.complete()}))})}function ct(e,t,r){t===void 0&&(t=se);var o=Me(e,t);return Qo(function(){return o},r)}function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe(e);return x(function(o,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),p=!1,c=function(f){W(e[f]).subscribe(T(n,function(u){a[f]=u,!p&&!s[f]&&(s[f]=!0,(p=s.every(le))&&(s=null))},he))},l=0;l<i;l++)c(l);o.subscribe(T(n,function(f){if(p){var u=q([f],N(a));n.next(r?r.apply(void 0,q([],N(u))):u)}}))})}function Ko(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(function(r,o){Ct.apply(void 0,q([r],N(e))).subscribe(o)})}function Vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ko.apply(void 0,q([],N(e)))}function Yo(){let e=new _t(1);return d(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function P(e,t=document){let r=fe(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function fe(e,t=document){return t.querySelector(e)||void 0}function Re(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var xa=S(d(document.body,"focusin"),d(document.body,"focusout")).pipe(_e(1),Q(void 0),m(()=>Re()||document.body),B(1));function et(e){return xa.pipe(m(t=>e.contains(t)),K())}function kt(e,t){return C(()=>S(d(e,"mouseenter").pipe(m(()=>!0)),d(e,"mouseleave").pipe(m(()=>!1))).pipe(t?Ht(r=>Me(+!r*t)):le,Q(e.matches(":hover"))))}function Bo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Bo(e,r)}function E(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)Bo(o,n);return o}function sr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function wt(e){let t=E("script",{src:e});return C(()=>(document.head.appendChild(t),S(d(t,"load"),d(t,"error").pipe(v(()=>$r(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),L(()=>document.head.removeChild(t)),we(1))))}var Go=new g,ya=C(()=>typeof ResizeObserver=="undefined"?wt("https://unpkg.com/resize-observer-polyfill"):I(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Go.next(t)))),v(e=>S(Ke,I(e)).pipe(L(()=>e.disconnect()))),B(1));function ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return ya.pipe(y(r=>r.observe(t)),v(r=>Go.pipe(b(o=>o.target===t),L(()=>r.unobserve(t)))),m(()=>ce(e)),Q(ce(e)))}function Tt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function cr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Jo(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Ue(e){return{x:e.offsetLeft,y:e.offsetTop}}function Xo(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Zo(e){return S(d(window,"load"),d(window,"resize")).pipe(Le(0,me),m(()=>Ue(e)),Q(Ue(e)))}function pr(e){return{x:e.scrollLeft,y:e.scrollTop}}function De(e){return S(d(e,"scroll"),d(window,"scroll"),d(window,"resize")).pipe(Le(0,me),m(()=>pr(e)),Q(pr(e)))}var en=new g,Ea=C(()=>I(new IntersectionObserver(e=>{for(let t of e)en.next(t)},{threshold:0}))).pipe(v(e=>S(Ke,I(e)).pipe(L(()=>e.disconnect()))),B(1));function tt(e){return Ea.pipe(y(t=>t.observe(e)),v(t=>en.pipe(b(({target:r})=>r===e),L(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function tn(e,t=16){return De(e).pipe(m(({y:r})=>{let o=ce(e),n=Tt(e);return r>=n.height-o.height-t}),K())}var lr={drawer:P("[data-md-toggle=drawer]"),search:P("[data-md-toggle=search]")};function rn(e){return lr[e].checked}function Je(e,t){lr[e].checked!==t&&lr[e].click()}function Ve(e){let t=lr[e];return d(t,"change").pipe(m(()=>t.checked),Q(t.checked))}function wa(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ta(){return S(d(window,"compositionstart").pipe(m(()=>!0)),d(window,"compositionend").pipe(m(()=>!1))).pipe(Q(!1))}function on(){let e=d(window,"keydown").pipe(b(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:rn("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),b(({mode:t,type:r})=>{if(t==="global"){let o=Re();if(typeof o!="undefined")return!wa(o,r)}return!0}),pe());return Ta().pipe(v(t=>t?M:e))}function xe(){return new URL(location.href)}function pt(e,t=!1){if(G("navigation.instant")&&!t){let r=E("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function nn(){return new g}function an(){return location.hash.slice(1)}function sn(e){let t=E("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Sa(e){return S(d(window,"hashchange"),e).pipe(m(an),Q(an()),b(t=>t.length>0),B(1))}function cn(e){return Sa(e).pipe(m(t=>fe(`[id="${t}"]`)),b(t=>typeof t!="undefined"))}function $t(e){let t=matchMedia(e);return ar(r=>t.addListener(()=>r(t.matches))).pipe(Q(t.matches))}function pn(){let e=matchMedia("print");return S(d(window,"beforeprint").pipe(m(()=>!0)),d(window,"afterprint").pipe(m(()=>!1))).pipe(Q(e.matches))}function Nr(e,t){return e.pipe(v(r=>r?t():M))}function zr(e,t){return new F(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let a=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+a*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function Ne(e,t){return zr(e,t).pipe(v(r=>r.text()),m(r=>JSON.parse(r)),B(1))}function ln(e,t){let r=new DOMParser;return zr(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),B(1))}function mn(e,t){let r=new DOMParser;return zr(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),B(1))}function fn(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function un(){return S(d(window,"scroll",{passive:!0}),d(window,"resize",{passive:!0})).pipe(m(fn),Q(fn()))}function dn(){return{width:innerWidth,height:innerHeight}}function hn(){return d(window,"resize",{passive:!0}).pipe(m(dn),Q(dn()))}function bn(){return z([un(),hn()]).pipe(m(([e,t])=>({offset:e,size:t})),B(1))}function mr(e,{viewport$:t,header$:r}){let o=t.pipe(Z("size")),n=z([o,r]).pipe(m(()=>Ue(e)));return z([r,t,n]).pipe(m(([{height:i},{offset:a,size:s},{x:p,y:c}])=>({offset:{x:a.x-p,y:a.y-c+i},size:s})))}function Oa(e){return d(e,"message",t=>t.data)}function Ma(e){let t=new g;return t.subscribe(r=>e.postMessage(r)),t}function vn(e,t=new Worker(e)){let r=Oa(t),o=Ma(t),n=new g;n.subscribe(o);let i=o.pipe(X(),ne(!0));return n.pipe(X(),Pe(r.pipe(U(i))),pe())}var La=P("#__config"),St=JSON.parse(La.textContent);St.base=`${new URL(St.base,xe())}`;function Te(){return St}function G(e){return St.features.includes(e)}function ye(e,t){return typeof t!="undefined"?St.translations[e].replace("#",t.toString()):St.translations[e]}function Se(e,t=document){return P(`[data-md-component=${e}]`,t)}function ae(e,t=document){return $(`[data-md-component=${e}]`,t)}function _a(e){let t=P(".md-typeset > :first-child",e);return d(t,"click",{once:!0}).pipe(m(()=>P(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function gn(e){if(!G("announce.dismiss")||!e.childElementCount)return M;if(!e.hidden){let t=P(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return C(()=>{let t=new g;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),_a(e).pipe(y(r=>t.next(r)),L(()=>t.complete()),m(r=>R({ref:e},r)))})}function Aa(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function xn(e,t){let r=new g;return r.subscribe(({hidden:o})=>{e.hidden=o}),Aa(e,t).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))}function Pt(e,t){return t==="inline"?E("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"})):E("div",{class:"md-tooltip",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"}))}function yn(...e){return E("div",{class:"md-tooltip2",role:"tooltip"},E("div",{class:"md-tooltip2__inner md-typeset"},e))}function En(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return E("aside",{class:"md-annotation",tabIndex:0},Pt(t),E("a",{href:r,class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}else return E("aside",{class:"md-annotation",tabIndex:0},Pt(t),E("span",{class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}function wn(e){return E("button",{class:"md-clipboard md-icon",title:ye("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function qr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(p=>!e.terms[p]).reduce((p,c)=>[...p,E("del",null,c)," "],[]).slice(0,-1),i=Te(),a=new URL(e.location,i.base);G("search.highlight")&&a.searchParams.set("h",Object.entries(e.terms).filter(([,p])=>p).reduce((p,[c])=>`${p} ${c}`.trim(),""));let{tags:s}=Te();return E("a",{href:`${a}`,class:"md-search-result__link",tabIndex:-1},E("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&E("div",{class:"md-search-result__icon md-icon"}),r>0&&E("h1",null,e.title),r<=0&&E("h2",null,e.title),o>0&&e.text.length>0&&e.text,e.tags&&e.tags.map(p=>{let c=s?p in s?`md-tag-icon md-tag--${s[p]}`:"md-tag-icon":"";return E("span",{class:`md-tag ${c}`},p)}),o>0&&n.length>0&&E("p",{class:"md-search-result__terms"},ye("search.result.term.missing"),": ",...n)))}function Tn(e){let t=e[0].score,r=[...e],o=Te(),n=r.findIndex(l=>!`${new URL(l.location,o.base)}`.includes("#")),[i]=r.splice(n,1),a=r.findIndex(l=>l.score<t);a===-1&&(a=r.length);let s=r.slice(0,a),p=r.slice(a),c=[qr(i,2|+(!n&&a===0)),...s.map(l=>qr(l,1)),...p.length?[E("details",{class:"md-search-result__more"},E("summary",{tabIndex:-1},E("div",null,p.length>0&&p.length===1?ye("search.result.more.one"):ye("search.result.more.other",p.length))),...p.map(l=>qr(l,1)))]:[]];return E("li",{class:"md-search-result__item"},c)}function Sn(e){return E("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>E("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?sr(r):r)))}function Qr(e){let t=`tabbed-control tabbed-control--${e}`;return E("div",{class:t,hidden:!0},E("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function On(e){return E("div",{class:"md-typeset__scrollwrap"},E("div",{class:"md-typeset__table"},e))}function Ca(e){let t=Te(),r=new URL(`../${e.version}/`,t.base);return E("li",{class:"md-version__item"},E("a",{href:`${r}`,class:"md-version__link"},e.title))}function Mn(e,t){return e=e.filter(r=>{var o;return!((o=r.properties)!=null&&o.hidden)}),E("div",{class:"md-version"},E("button",{class:"md-version__current","aria-label":ye("select.version")},t.title),E("ul",{class:"md-version__list"},e.map(Ca)))}var Ha=0;function ka(e){let t=z([et(e),kt(e)]).pipe(m(([o,n])=>o||n),K()),r=C(()=>Jo(e)).pipe(oe(De),ct(1),m(()=>Xo(e)));return t.pipe(Ae(o=>o),v(()=>z([t,r])),m(([o,n])=>({active:o,offset:n})),pe())}function $a(e,t){let{content$:r,viewport$:o}=t,n=`__tooltip2_${Ha++}`;return C(()=>{let i=new g,a=new _r(!1);i.pipe(X(),ne(!1)).subscribe(a);let s=a.pipe(Ht(c=>Me(+!c*250,Hr)),K(),v(c=>c?r:M),y(c=>c.id=n),pe());z([i.pipe(m(({active:c})=>c)),s.pipe(v(c=>kt(c,250)),Q(!1))]).pipe(m(c=>c.some(l=>l))).subscribe(a);let p=a.pipe(b(c=>c),ee(s,o),m(([c,l,{size:f}])=>{let u=e.getBoundingClientRect(),h=u.width/2;if(l.role==="tooltip")return{x:h,y:8+u.height};if(u.y>=f.height/2){let{height:w}=ce(l);return{x:h,y:-16-w}}else return{x:h,y:16+u.height}}));return z([s,i,p]).subscribe(([c,{offset:l},f])=>{c.style.setProperty("--md-tooltip-host-x",`${l.x}px`),c.style.setProperty("--md-tooltip-host-y",`${l.y}px`),c.style.setProperty("--md-tooltip-x",`${f.x}px`),c.style.setProperty("--md-tooltip-y",`${f.y}px`),c.classList.toggle("md-tooltip2--top",f.y<0),c.classList.toggle("md-tooltip2--bottom",f.y>=0)}),a.pipe(b(c=>c),ee(s,(c,l)=>l),b(c=>c.role==="tooltip")).subscribe(c=>{let l=ce(P(":scope > *",c));c.style.setProperty("--md-tooltip-width",`${l.width}px`),c.style.setProperty("--md-tooltip-tail","0px")}),a.pipe(K(),be(me),ee(s)).subscribe(([c,l])=>{l.classList.toggle("md-tooltip2--active",c)}),z([a.pipe(b(c=>c)),s]).subscribe(([c,l])=>{l.role==="dialog"?(e.setAttribute("aria-controls",n),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",n)}),a.pipe(b(c=>!c)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),ka(e).pipe(y(c=>i.next(c)),L(()=>i.complete()),m(c=>R({ref:e},c)))})}function lt(e,{viewport$:t},r=document.body){return $a(e,{content$:new F(o=>{let n=e.title,i=yn(n);return o.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",n)}}),viewport$:t})}function Pa(e,t){let r=C(()=>z([Zo(e),De(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:a,height:s}=ce(e);return{x:o-i.x+a/2,y:n-i.y+s/2}}));return et(e).pipe(v(o=>r.pipe(m(n=>({active:o,offset:n})),we(+!o||1/0))))}function Ln(e,t,{target$:r}){let[o,n]=Array.from(e.children);return C(()=>{let i=new g,a=i.pipe(X(),ne(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),tt(e).pipe(U(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),S(i.pipe(b(({active:s})=>s)),i.pipe(_e(250),b(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Le(16,me)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(ct(125,me),b(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),d(n,"click").pipe(U(a),b(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),d(n,"mousedown").pipe(U(a),ee(i)).subscribe(([s,{active:p}])=>{var c;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(p){s.preventDefault();let l=e.parentElement.closest(".md-annotation");l instanceof HTMLElement?l.focus():(c=Re())==null||c.blur()}}),r.pipe(U(a),b(s=>s===o),Ge(125)).subscribe(()=>e.focus()),Pa(e,t).pipe(y(s=>i.next(s)),L(()=>i.complete()),m(s=>R({ref:e},s)))})}function Ra(e){return e.tagName==="CODE"?$(".c, .c1, .cm",e):[e]}function Ia(e){let t=[];for(let r of Ra(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,p]=a;if(typeof p=="undefined"){let c=i.splitText(a.index);i=c.splitText(s.length),t.push(c)}else{i.textContent=s,t.push(i);break}}}}return t}function _n(e,t){t.append(...Array.from(e.childNodes))}function fr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,a=new Map;for(let s of Ia(t)){let[,p]=s.textContent.match(/\((\d+)\)/);fe(`:scope > li:nth-child(${p})`,e)&&(a.set(p,En(p,i)),s.replaceWith(a.get(p)))}return a.size===0?M:C(()=>{let s=new g,p=s.pipe(X(),ne(!0)),c=[];for(let[l,f]of a)c.push([P(".md-typeset",f),P(`:scope > li:nth-child(${l})`,e)]);return o.pipe(U(p)).subscribe(l=>{e.hidden=!l,e.classList.toggle("md-annotation-list",l);for(let[f,u]of c)l?_n(f,u):_n(u,f)}),S(...[...a].map(([,l])=>Ln(l,t,{target$:r}))).pipe(L(()=>s.complete()),pe())})}function An(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return An(t)}}function Cn(e,t){return C(()=>{let r=An(e);return typeof r!="undefined"?fr(r,e,t):M})}var Hn=Vt(Yr());var Fa=0;function kn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return kn(t)}}function ja(e){return ge(e).pipe(m(({width:t})=>({scrollable:Tt(e).width>t})),Z("scrollable"))}function $n(e,t){let{matches:r}=matchMedia("(hover)"),o=C(()=>{let n=new g,i=n.pipe(Fr(1));n.subscribe(({scrollable:c})=>{c&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[];if(Hn.default.isSupported()&&(e.closest(".copy")||G("content.code.copy")&&!e.closest(".no-copy"))){let c=e.closest("pre");c.id=`__code_${Fa++}`;let l=wn(c.id);c.insertBefore(l,e),G("content.tooltips")&&a.push(lt(l,{viewport$}))}let s=e.closest(".highlight");if(s instanceof HTMLElement){let c=kn(s);if(typeof c!="undefined"&&(s.classList.contains("annotate")||G("content.code.annotate"))){let l=fr(c,e,t);a.push(ge(s).pipe(U(i),m(({width:f,height:u})=>f&&u),K(),v(f=>f?l:M)))}}return $(":scope > span[id]",e).length&&e.classList.add("md-code__content"),ja(e).pipe(y(c=>n.next(c)),L(()=>n.complete()),m(c=>R({ref:e},c)),Pe(...a))});return G("content.lazy")?tt(e).pipe(b(n=>n),we(1),v(()=>o)):o}function Wa(e,{target$:t,print$:r}){let o=!0;return S(t.pipe(m(n=>n.closest("details:not([open])")),b(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(b(n=>n||!o),y(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function Pn(e,t){return C(()=>{let r=new g;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),Wa(e,t).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))})}var Rn=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var Br,Da=0;function Va(){return typeof mermaid=="undefined"||mermaid instanceof Element?wt("https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js"):I(void 0)}function In(e){return e.classList.remove("mermaid"),Br||(Br=Va().pipe(y(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Rn,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),B(1))),Br.subscribe(()=>ao(this,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${Da++}`,r=E("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),a=r.attachShadow({mode:"closed"});a.innerHTML=n,e.replaceWith(r),i==null||i(a)})),Br.pipe(m(()=>({ref:e})))}var Fn=E("table");function jn(e){return e.replaceWith(Fn),Fn.replaceWith(On(e)),I({ref:e})}function Na(e){let t=e.find(r=>r.checked)||e[0];return S(...e.map(r=>d(r,"change").pipe(m(()=>P(`label[for="${r.id}"]`))))).pipe(Q(P(`label[for="${t.id}"]`)),m(r=>({active:r})))}function Wn(e,{viewport$:t,target$:r}){let o=P(".tabbed-labels",e),n=$(":scope > input",e),i=Qr("prev");e.append(i);let a=Qr("next");return e.append(a),C(()=>{let s=new g,p=s.pipe(X(),ne(!0));z([s,ge(e)]).pipe(U(p),Le(1,me)).subscribe({next([{active:c},l]){let f=Ue(c),{width:u}=ce(c);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let h=pr(o);(f.x<h.x||f.x+u>h.x+l.width)&&o.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),z([De(o),ge(o)]).pipe(U(p)).subscribe(([c,l])=>{let f=Tt(o);i.hidden=c.x<16,a.hidden=c.x>f.width-l.width-16}),S(d(i,"click").pipe(m(()=>-1)),d(a,"click").pipe(m(()=>1))).pipe(U(p)).subscribe(c=>{let{width:l}=ce(o);o.scrollBy({left:l*c,behavior:"smooth"})}),r.pipe(U(p),b(c=>n.includes(c))).subscribe(c=>c.click()),o.classList.add("tabbed-labels--linked");for(let c of n){let l=P(`label[for="${c.id}"]`);l.replaceChildren(E("a",{href:`#${l.htmlFor}`,tabIndex:-1},...Array.from(l.childNodes))),d(l.firstElementChild,"click").pipe(U(p),b(f=>!(f.metaKey||f.ctrlKey)),y(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${l.htmlFor}`),l.click()})}return G("content.tabs.link")&&s.pipe(Ce(1),ee(t)).subscribe(([{active:c},{offset:l}])=>{let f=c.innerText.trim();if(c.hasAttribute("data-md-switching"))c.removeAttribute("data-md-switching");else{let u=e.offsetTop-l.y;for(let w of $("[data-tabs]"))for(let A of $(":scope > input",w)){let te=P(`label[for="${A.id}"]`);if(te!==c&&te.innerText.trim()===f){te.setAttribute("data-md-switching",""),A.click();break}}window.scrollTo({top:e.offsetTop-u});let h=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...h])])}}),s.pipe(U(p)).subscribe(()=>{for(let c of $("audio, video",e))c.pause()}),tt(e).pipe(v(()=>Na(n)),y(c=>s.next(c)),L(()=>s.complete()),m(c=>R({ref:e},c)))}).pipe(Qe(se))}function Un(e,{viewport$:t,target$:r,print$:o}){return S(...$(".annotate:not(.highlight)",e).map(n=>Cn(n,{target$:r,print$:o})),...$("pre:not(.mermaid) > code",e).map(n=>$n(n,{target$:r,print$:o})),...$("pre.mermaid",e).map(n=>In(n)),...$("table:not([class])",e).map(n=>jn(n)),...$("details",e).map(n=>Pn(n,{target$:r,print$:o})),...$("[data-tabs]",e).map(n=>Wn(n,{viewport$:t,target$:r})),...$("[title]",e).filter(()=>G("content.tooltips")).map(n=>lt(n,{viewport$:t})))}function za(e,{alert$:t}){return t.pipe(v(r=>S(I(!0),I(!1).pipe(Ge(2e3))).pipe(m(o=>({message:r,active:o})))))}function Dn(e,t){let r=P(".md-typeset",e);return C(()=>{let o=new g;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),za(e,t).pipe(y(n=>o.next(n)),L(()=>o.complete()),m(n=>R({ref:e},n)))})}var qa=0;function Qa(e,t){document.body.append(e);let{width:r}=ce(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=cr(t),n=typeof o!="undefined"?De(o):I({x:0,y:0}),i=S(et(t),kt(t)).pipe(K());return z([i,n]).pipe(m(([a,s])=>{let{x:p,y:c}=Ue(t),l=ce(t),f=t.closest("table");return f&&t.parentElement&&(p+=f.offsetLeft+t.parentElement.offsetLeft,c+=f.offsetTop+t.parentElement.offsetTop),{active:a,offset:{x:p-s.x+l.width/2-r/2,y:c-s.y+l.height+8}}}))}function Vn(e){let t=e.title;if(!t.length)return M;let r=`__tooltip_${qa++}`,o=Pt(r,"inline"),n=P(".md-typeset",o);return n.innerHTML=t,C(()=>{let i=new g;return i.subscribe({next({offset:a}){o.style.setProperty("--md-tooltip-x",`${a.x}px`),o.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),S(i.pipe(b(({active:a})=>a)),i.pipe(_e(250),b(({active:a})=>!a))).subscribe({next({active:a}){a?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Le(16,me)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(ct(125,me),b(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?o.style.setProperty("--md-tooltip-0",`${-a}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Qa(o,e).pipe(y(a=>i.next(a)),L(()=>i.complete()),m(a=>R({ref:e},a)))}).pipe(Qe(se))}function Ka({viewport$:e}){if(!G("header.autohide"))return I(!1);let t=e.pipe(m(({offset:{y:n}})=>n),Ye(2,1),m(([n,i])=>[n<i,i]),Z(0)),r=z([e,t]).pipe(b(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),m(([,[n]])=>n),K()),o=Ve("search");return z([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),K(),v(n=>n?r:I(!1)),Q(!1))}function Nn(e,t){return C(()=>z([ge(e),Ka(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),K((r,o)=>r.height===o.height&&r.hidden===o.hidden),B(1))}function zn(e,{header$:t,main$:r}){return C(()=>{let o=new g,n=o.pipe(X(),ne(!0));o.pipe(Z("active"),We(t)).subscribe(([{active:a},{hidden:s}])=>{e.classList.toggle("md-header--shadow",a&&!s),e.hidden=s});let i=ue($("[title]",e)).pipe(b(()=>G("content.tooltips")),oe(a=>Vn(a)));return r.subscribe(o),t.pipe(U(n),m(a=>R({ref:e},a)),Pe(i.pipe(U(n))))})}function Ya(e,{viewport$:t,header$:r}){return mr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=ce(e);return{active:o>=n}}),Z("active"))}function qn(e,t){return C(()=>{let r=new g;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=fe(".md-content h1");return typeof o=="undefined"?M:Ya(o,t).pipe(y(n=>r.next(n)),L(()=>r.complete()),m(n=>R({ref:e},n)))})}function Qn(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),K()),n=o.pipe(v(()=>ge(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),Z("bottom"))));return z([o,n,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:p},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-p,i)-Math.max(0,c+p-s)),{offset:a-i,height:c,active:a-i<=p})),K((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Ba(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return I(...e).pipe(oe(o=>d(o,"change").pipe(m(()=>o))),Q(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),B(1))}function Kn(e){let t=$("input",e),r=E("meta",{name:"theme-color"});document.head.appendChild(r);let o=E("meta",{name:"color-scheme"});document.head.appendChild(o);let n=$t("(prefers-color-scheme: light)");return C(()=>{let i=new g;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),p=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=p.getAttribute("data-md-color-scheme"),a.color.primary=p.getAttribute("data-md-color-primary"),a.color.accent=p.getAttribute("data-md-color-accent")}for(let[s,p]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,p);for(let s=0;s<t.length;s++){let p=t[s].nextElementSibling;p instanceof HTMLElement&&(p.hidden=a.index!==s)}__md_set("__palette",a)}),d(e,"keydown").pipe(b(a=>a.key==="Enter"),ee(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=Se("header"),s=window.getComputedStyle(a);return o.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(p=>(+p).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(be(se)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Ba(t).pipe(U(n.pipe(Ce(1))),st(),y(a=>i.next(a)),L(()=>i.complete()),m(a=>R({ref:e},a)))})}function Yn(e,{progress$:t}){return C(()=>{let r=new g;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(y(o=>r.next({value:o})),L(()=>r.complete()),m(o=>({ref:e,value:o})))})}var Gr=Vt(Yr());function Ga(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function Bn({alert$:e}){Gr.default.isSupported()&&new F(t=>{new Gr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Ga(P(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(y(t=>{t.trigger.focus()}),m(()=>ye("clipboard.copied"))).subscribe(e)}function Gn(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function Ja(e,t){let r=new Map;for(let o of $("url",e)){let n=P("loc",o),i=[Gn(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",o)){let s=a.getAttribute("href");s!=null&&i.push(Gn(new URL(s),t))}}return r}function ur(e){return mn(new URL("sitemap.xml",e)).pipe(m(t=>Ja(t,new URL(e))),ve(()=>I(new Map)))}function Xa(e,t){if(!(e.target instanceof Element))return M;let r=e.target.closest("a");if(r===null)return M;if(r.target||e.metaKey||e.ctrlKey)return M;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),I(new URL(r.href))):M}function Jn(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Xn(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return I(e)}function Za(e){for(let o of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...G("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=fe(o),i=fe(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=Jn(document);for(let[o,n]of Jn(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values()){let n=o.getAttribute("name");n!=="theme-color"&&n!=="color-scheme"&&o.remove()}let r=Se("container");return je($("script",r)).pipe(v(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new F(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),M}),X(),ne(document))}function Zn({location$:e,viewport$:t,progress$:r}){let o=Te();if(location.protocol==="file:")return M;let n=ur(o.base);I(document).subscribe(Xn);let i=d(document.body,"click").pipe(We(n),v(([p,c])=>Xa(p,c)),pe()),a=d(window,"popstate").pipe(m(xe),pe());i.pipe(ee(t)).subscribe(([p,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",p)}),S(i,a).subscribe(e);let s=e.pipe(Z("pathname"),v(p=>ln(p,{progress$:r}).pipe(ve(()=>(pt(p,!0),M)))),v(Xn),v(Za),pe());return S(s.pipe(ee(e,(p,c)=>c)),e.pipe(Z("pathname"),v(()=>e),Z("hash")),e.pipe(K((p,c)=>p.pathname===c.pathname&&p.hash===c.hash),v(()=>i),y(()=>history.back()))).subscribe(p=>{var c,l;history.state!==null||!p.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",sn(p.hash),history.scrollRestoration="manual")}),e.subscribe(()=>{history.scrollRestoration="manual"}),d(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),t.pipe(Z("offset"),_e(100)).subscribe(({offset:p})=>{history.replaceState(p,"")}),s}var ri=Vt(ti());function oi(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(0,ri.default)(a).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function It(e){return e.type===1}function dr(e){return e.type===3}function ni(e,t){let r=vn(e);return S(I(location.protocol!=="file:"),Ve("search")).pipe(Ae(o=>o),v(()=>t)).subscribe(({config:o,docs:n})=>r.next({type:0,data:{config:o,docs:n,options:{suggest:G("search.suggest")}}})),r}function ii({document$:e}){let t=Te(),r=Ne(new URL("../versions.json",t.base)).pipe(ve(()=>M)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:a,aliases:s})=>a===i||s.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),v(n=>d(document.body,"click").pipe(b(i=>!i.metaKey&&!i.ctrlKey),ee(o),v(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&n.has(s.href)){let p=s.href;return!i.target.closest(".md-version")&&n.get(p)===a?M:(i.preventDefault(),I(p))}}return M}),v(i=>{let{version:a}=n.get(i);return ur(new URL(i)).pipe(m(s=>{let c=xe().href.replace(t.base,"");return s.has(c.split("#")[0])?new URL(`../${a}/${c}`,t.base):new URL(i)}))})))).subscribe(n=>pt(n,!0)),z([r,o]).subscribe(([n,i])=>{P(".md-header__topic").appendChild(Mn(n,i))}),e.pipe(v(()=>o)).subscribe(n=>{var a;let i=__md_get("__outdated",sessionStorage);if(i===null){i=!0;let s=((a=t.version)==null?void 0:a.default)||"latest";Array.isArray(s)||(s=[s]);e:for(let p of s)for(let c of n.aliases.concat(n.version))if(new RegExp(p,"i").test(c)){i=!1;break e}__md_set("__outdated",i,sessionStorage)}if(i)for(let s of ae("outdated"))s.hidden=!1})}function ns(e,{worker$:t}){let{searchParams:r}=xe();r.has("q")&&(Je("search",!0),e.value=r.get("q"),e.focus(),Ve("search").pipe(Ae(i=>!i)).subscribe(()=>{let i=xe();i.searchParams.delete("q"),history.replaceState({},"",`${i}`)}));let o=et(e),n=S(t.pipe(Ae(It)),d(e,"keyup"),o).pipe(m(()=>e.value),K());return z([n,o]).pipe(m(([i,a])=>({value:i,focus:a})),B(1))}function ai(e,{worker$:t}){let r=new g,o=r.pipe(X(),ne(!0));z([t.pipe(Ae(It)),r],(i,a)=>a).pipe(Z("value")).subscribe(({value:i})=>t.next({type:2,data:i})),r.pipe(Z("focus")).subscribe(({focus:i})=>{i&&Je("search",i)}),d(e.form,"reset").pipe(U(o)).subscribe(()=>e.focus());let n=P("header [for=__search]");return d(n,"click").subscribe(()=>e.focus()),ns(e,{worker$:t}).pipe(y(i=>r.next(i)),L(()=>r.complete()),m(i=>R({ref:e},i)),B(1))}function si(e,{worker$:t,query$:r}){let o=new g,n=tn(e.parentElement).pipe(b(Boolean)),i=e.parentElement,a=P(":scope > :first-child",e),s=P(":scope > :last-child",e);Ve("search").subscribe(l=>s.setAttribute("role",l?"list":"presentation")),o.pipe(ee(r),Ur(t.pipe(Ae(It)))).subscribe(([{items:l},{value:f}])=>{switch(l.length){case 0:a.textContent=f.length?ye("search.result.none"):ye("search.result.placeholder");break;case 1:a.textContent=ye("search.result.one");break;default:let u=sr(l.length);a.textContent=ye("search.result.other",u)}});let p=o.pipe(y(()=>s.innerHTML=""),v(({items:l})=>S(I(...l.slice(0,10)),I(...l.slice(10)).pipe(Ye(4),Vr(n),v(([f])=>f)))),m(Tn),pe());return p.subscribe(l=>s.appendChild(l)),p.pipe(oe(l=>{let f=fe("details",l);return typeof f=="undefined"?M:d(f,"toggle").pipe(U(o),m(()=>f))})).subscribe(l=>{l.open===!1&&l.offsetTop<=i.scrollTop&&i.scrollTo({top:l.offsetTop})}),t.pipe(b(dr),m(({data:l})=>l)).pipe(y(l=>o.next(l)),L(()=>o.complete()),m(l=>R({ref:e},l)))}function is(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=xe();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function ci(e,t){let r=new g,o=r.pipe(X(),ne(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),d(e,"click").pipe(U(o)).subscribe(n=>n.preventDefault()),is(e,t).pipe(y(n=>r.next(n)),L(()=>r.complete()),m(n=>R({ref:e},n)))}function pi(e,{worker$:t,keyboard$:r}){let o=new g,n=Se("search-query"),i=S(d(n,"keydown"),d(n,"focus")).pipe(be(se),m(()=>n.value),K());return o.pipe(We(i),m(([{suggest:s},p])=>{let c=p.split(/([\s-]+)/);if(s!=null&&s.length&&c[c.length-1]){let l=s[s.length-1];l.startsWith(c[c.length-1])&&(c[c.length-1]=l)}else c.length=0;return c})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g,"&nbsp;")),r.pipe(b(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(b(dr),m(({data:s})=>s)).pipe(y(s=>o.next(s)),L(()=>o.complete()),m(()=>({ref:e})))}function li(e,{index$:t,keyboard$:r}){let o=Te();try{let n=ni(o.search,t),i=Se("search-query",e),a=Se("search-result",e);d(e,"click").pipe(b(({target:p})=>p instanceof Element&&!!p.closest("a"))).subscribe(()=>Je("search",!1)),r.pipe(b(({mode:p})=>p==="search")).subscribe(p=>{let c=Re();switch(p.type){case"Enter":if(c===i){let l=new Map;for(let f of $(":first-child [href]",a)){let u=f.firstElementChild;l.set(f,parseFloat(u.getAttribute("data-md-score")))}if(l.size){let[[f]]=[...l].sort(([,u],[,h])=>h-u);f.click()}p.claim()}break;case"Escape":case"Tab":Je("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof c=="undefined")i.focus();else{let l=[i,...$(":not(details) > [href], summary, details[open] [href]",a)],f=Math.max(0,(Math.max(0,l.indexOf(c))+l.length+(p.type==="ArrowUp"?-1:1))%l.length);l[f].focus()}p.claim();break;default:i!==Re()&&i.focus()}}),r.pipe(b(({mode:p})=>p==="global")).subscribe(p=>{switch(p.type){case"f":case"s":case"/":i.focus(),i.select(),p.claim();break}});let s=ai(i,{worker$:n});return S(s,si(a,{worker$:n,query$:s})).pipe(Pe(...ae("search-share",e).map(p=>ci(p,{query$:s})),...ae("search-suggest",e).map(p=>pi(p,{worker$:n,keyboard$:r}))))}catch(n){return e.hidden=!0,Ke}}function mi(e,{index$:t,location$:r}){return z([t,r.pipe(Q(xe()),b(o=>!!o.searchParams.get("h")))]).pipe(m(([o,n])=>oi(o.config)(n.searchParams.get("h"))),m(o=>{var a;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let p=s.textContent,c=o(p);c.length>p.length&&n.set(s,c)}for(let[s,p]of n){let{childNodes:c}=E("span",null,p);s.replaceWith(...Array.from(c))}return{ref:e,nodes:n}}))}function as(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return z([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(n,Math.max(0,s-i))-n,{height:a,locked:s>=i+n})),K((i,a)=>i.height===a.height&&i.locked===a.locked))}function Jr(e,o){var n=o,{header$:t}=n,r=io(n,["header$"]);let i=P(".md-sidebar__scrollwrap",e),{y:a}=Ue(i);return C(()=>{let s=new g,p=s.pipe(X(),ne(!0)),c=s.pipe(Le(0,me));return c.pipe(ee(t)).subscribe({next([{height:l},{height:f}]){i.style.height=`${l-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),c.pipe(Ae()).subscribe(()=>{for(let l of $(".md-nav__link--active[href]",e)){if(!l.clientHeight)continue;let f=l.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=ce(f);f.scrollTo({top:u-h/2})}}}),ue($("label[tabindex]",e)).pipe(oe(l=>d(l,"click").pipe(be(se),m(()=>l),U(p)))).subscribe(l=>{let f=P(`[id="${l.htmlFor}"]`);P(`[aria-labelledby="${l.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),as(e,r).pipe(y(l=>s.next(l)),L(()=>s.complete()),m(l=>R({ref:e},l)))})}function fi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Ct(Ne(`${r}/releases/latest`).pipe(ve(()=>M),m(o=>({version:o.tag_name})),Be({})),Ne(r).pipe(ve(()=>M),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),Be({}))).pipe(m(([o,n])=>R(R({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return Ne(r).pipe(m(o=>({repositories:o.public_repos})),Be({}))}}function ui(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Ne(r).pipe(ve(()=>M),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Be({}))}function di(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return fi(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return ui(r,o)}return M}var ss;function cs(e){return ss||(ss=C(()=>{let t=__md_get("__source",sessionStorage);if(t)return I(t);if(ae("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return M}return di(e.href).pipe(y(o=>__md_set("__source",o,sessionStorage)))}).pipe(ve(()=>M),b(t=>Object.keys(t).length>0),m(t=>({facts:t})),B(1)))}function hi(e){let t=P(":scope > :last-child",e);return C(()=>{let r=new g;return r.subscribe(({facts:o})=>{t.appendChild(Sn(o)),t.classList.add("md-source__repository--active")}),cs(e).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))})}function ps(e,{viewport$:t,header$:r}){return ge(document.body).pipe(v(()=>mr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),Z("hidden"))}function bi(e,t){return C(()=>{let r=new g;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(G("navigation.tabs.sticky")?I({hidden:!1}):ps(e,t)).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))})}function ls(e,{viewport$:t,header$:r}){let o=new Map,n=$(".md-nav__link",e);for(let s of n){let p=decodeURIComponent(s.hash.substring(1)),c=fe(`[id="${p}"]`);typeof c!="undefined"&&o.set(s,c)}let i=r.pipe(Z("height"),m(({height:s})=>{let p=Se("main"),c=P(":scope > :first-child",p);return s+.8*(c.offsetTop-p.offsetTop)}),pe());return ge(document.body).pipe(Z("height"),v(s=>C(()=>{let p=[];return I([...o].reduce((c,[l,f])=>{for(;p.length&&o.get(p[p.length-1]).tagName>=f.tagName;)p.pop();let u=f.offsetTop;for(;!u&&f.parentElement;)f=f.parentElement,u=f.offsetTop;let h=f.offsetParent;for(;h;h=h.offsetParent)u+=h.offsetTop;return c.set([...p=[...p,l]].reverse(),u)},new Map))}).pipe(m(p=>new Map([...p].sort(([,c],[,l])=>c-l))),We(i),v(([p,c])=>t.pipe(jr(([l,f],{offset:{y:u},size:h})=>{let w=u+h.height>=Math.floor(s.height);for(;f.length;){let[,A]=f[0];if(A-c<u||w)l=[...l,f.shift()];else break}for(;l.length;){let[,A]=l[l.length-1];if(A-c>=u&&!w)f=[l.pop(),...f];else break}return[l,f]},[[],[...p]]),K((l,f)=>l[0]===f[0]&&l[1]===f[1])))))).pipe(m(([s,p])=>({prev:s.map(([c])=>c),next:p.map(([c])=>c)})),Q({prev:[],next:[]}),Ye(2,1),m(([s,p])=>s.prev.length<p.prev.length?{prev:p.prev.slice(Math.max(0,s.prev.length-1),p.prev.length),next:[]}:{prev:p.prev.slice(-1),next:p.next.slice(0,p.next.length-s.next.length)}))}function vi(e,{viewport$:t,header$:r,main$:o,target$:n}){return C(()=>{let i=new g,a=i.pipe(X(),ne(!0));if(i.subscribe(({prev:s,next:p})=>{for(let[c]of p)c.classList.remove("md-nav__link--passed"),c.classList.remove("md-nav__link--active");for(let[c,[l]]of s.entries())l.classList.add("md-nav__link--passed"),l.classList.toggle("md-nav__link--active",c===s.length-1)}),G("toc.follow")){let s=S(t.pipe(_e(1),m(()=>{})),t.pipe(_e(250),m(()=>"smooth")));i.pipe(b(({prev:p})=>p.length>0),We(o.pipe(be(se))),ee(s)).subscribe(([[{prev:p}],c])=>{let[l]=p[p.length-1];if(l.offsetHeight){let f=cr(l);if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=ce(f);f.scrollTo({top:u-h/2,behavior:c})}}})}return G("navigation.tracking")&&t.pipe(U(a),Z("offset"),_e(250),Ce(1),U(n.pipe(Ce(1))),st({delay:250}),ee(i)).subscribe(([,{prev:s}])=>{let p=xe(),c=s[s.length-1];if(c&&c.length){let[l]=c,{hash:f}=new URL(l.href);p.hash!==f&&(p.hash=f,history.replaceState({},"",`${p}`))}else p.hash="",history.replaceState({},"",`${p}`)}),ls(e,{viewport$:t,header$:r}).pipe(y(s=>i.next(s)),L(()=>i.complete()),m(s=>R({ref:e},s)))})}function ms(e,{viewport$:t,main$:r,target$:o}){let n=t.pipe(m(({offset:{y:a}})=>a),Ye(2,1),m(([a,s])=>a>s&&s>0),K()),i=r.pipe(m(({active:a})=>a));return z([i,n]).pipe(m(([a,s])=>!(a&&s)),K(),U(o.pipe(Ce(1))),ne(!0),st({delay:250}),m(a=>({hidden:a})))}function gi(e,{viewport$:t,header$:r,main$:o,target$:n}){let i=new g,a=i.pipe(X(),ne(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(U(a),Z("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),d(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),ms(e,{viewport$:t,main$:o,target$:n}).pipe(y(s=>i.next(s)),L(()=>i.complete()),m(s=>R({ref:e},s)))}function xi({document$:e,viewport$:t}){e.pipe(v(()=>$(".md-ellipsis")),oe(r=>tt(r).pipe(U(e.pipe(Ce(1))),b(o=>o),m(()=>r),we(1))),b(r=>r.offsetWidth<r.scrollWidth),oe(r=>{let o=r.innerText,n=r.closest("a")||r;return n.title=o,lt(n,{viewport$:t}).pipe(U(e.pipe(Ce(1))),L(()=>n.removeAttribute("title")))})).subscribe(),e.pipe(v(()=>$(".md-status")),oe(r=>lt(r,{viewport$:t}))).subscribe()}function yi({document$:e,tablet$:t}){e.pipe(v(()=>$(".md-toggle--indeterminate")),y(r=>{r.indeterminate=!0,r.checked=!1}),oe(r=>d(r,"change").pipe(Dr(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ee(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function fs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ei({document$:e}){e.pipe(v(()=>$("[data-md-scrollfix]")),y(t=>t.removeAttribute("data-md-scrollfix")),b(fs),oe(t=>d(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function wi({viewport$:e,tablet$:t}){z([Ve("search"),t]).pipe(m(([r,o])=>r&&!o),v(r=>I(r).pipe(Ge(r?400:100))),ee(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));function us(){return location.protocol==="file:"?wt(`${new URL("search/search_index.js",Xr.base)}`).pipe(m(()=>__index),B(1)):Ne(new URL("search/search_index.json",Xr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var ot=Yo(),jt=nn(),Ot=cn(jt),Zr=on(),Oe=bn(),hr=$t("(min-width: 960px)"),Si=$t("(min-width: 1220px)"),Oi=pn(),Xr=Te(),Mi=document.forms.namedItem("search")?us():Ke,eo=new g;Bn({alert$:eo});var to=new g;G("navigation.instant")&&Zn({location$:jt,viewport$:Oe,progress$:to}).subscribe(ot);var Ti;((Ti=Xr.version)==null?void 0:Ti.provider)==="mike"&&ii({document$:ot});S(jt,Ot).pipe(Ge(125)).subscribe(()=>{Je("drawer",!1),Je("search",!1)});Zr.pipe(b(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=fe("link[rel=prev]");typeof t!="undefined"&&pt(t);break;case"n":case".":let r=fe("link[rel=next]");typeof r!="undefined"&&pt(r);break;case"Enter":let o=Re();o instanceof HTMLLabelElement&&o.click()}});xi({viewport$:Oe,document$:ot});yi({document$:ot,tablet$:hr});Ei({document$:ot});wi({viewport$:Oe,tablet$:hr});var rt=Nn(Se("header"),{viewport$:Oe}),Ft=ot.pipe(m(()=>Se("main")),v(e=>Qn(e,{viewport$:Oe,header$:rt})),B(1)),ds=S(...ae("consent").map(e=>xn(e,{target$:Ot})),...ae("dialog").map(e=>Dn(e,{alert$:eo})),...ae("header").map(e=>zn(e,{viewport$:Oe,header$:rt,main$:Ft})),...ae("palette").map(e=>Kn(e)),...ae("progress").map(e=>Yn(e,{progress$:to})),...ae("search").map(e=>li(e,{index$:Mi,keyboard$:Zr})),...ae("source").map(e=>hi(e))),hs=C(()=>S(...ae("announce").map(e=>gn(e)),...ae("content").map(e=>Un(e,{viewport$:Oe,target$:Ot,print$:Oi})),...ae("content").map(e=>G("search.highlight")?mi(e,{index$:Mi,location$:jt}):M),...ae("header-title").map(e=>qn(e,{viewport$:Oe,header$:rt})),...ae("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Nr(Si,()=>Jr(e,{viewport$:Oe,header$:rt,main$:Ft})):Nr(hr,()=>Jr(e,{viewport$:Oe,header$:rt,main$:Ft}))),...ae("tabs").map(e=>bi(e,{viewport$:Oe,header$:rt})),...ae("toc").map(e=>vi(e,{viewport$:Oe,header$:rt,main$:Ft,target$:Ot})),...ae("top").map(e=>gi(e,{viewport$:Oe,header$:rt,main$:Ft,target$:Ot})))),Li=ot.pipe(v(()=>hs),Pe(ds),B(1));Li.subscribe();window.document$=ot;window.location$=jt;window.target$=Ot;window.keyboard$=Zr;window.viewport$=Oe;window.tablet$=hr;window.screen$=Si;window.print$=Oi;window.alert$=eo;window.progress$=to;window.component$=Li;})();
+//# sourceMappingURL=bundle.dd8806f2.min.js.map
+
diff --git a/content/references/java-chassis/en_US/assets/javascripts/bundle.dd8806f2.min.js.map b/content/references/java-chassis/en_US/assets/javascripts/bundle.dd8806f2.min.js.map
new file mode 100644
index 0000000..17bf025
--- /dev/null
+++ b/content/references/java-chassis/en_US/assets/javascripts/bundle.dd8806f2.min.js.map
@@ -0,0 +1,7 @@
+{
+  "version": 3,
+  "sources": ["node_modules/focus-visible/dist/focus-visible.js", "node_modules/clipboard/dist/clipboard.js", "node_modules/escape-html/index.js", "src/templates/assets/javascripts/bundle.ts", "node_modules/rxjs/node_modules/tslib/tslib.es6.js", "node_modules/rxjs/src/internal/util/isFunction.ts", "node_modules/rxjs/src/internal/util/createErrorClass.ts", "node_modules/rxjs/src/internal/util/UnsubscriptionError.ts", "node_modules/rxjs/src/internal/util/arrRemove.ts", "node_modules/rxjs/src/internal/Subscription.ts", "node_modules/rxjs/src/internal/config.ts", "node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts", "node_modules/rxjs/src/internal/util/reportUnhandledError.ts", "node_modules/rxjs/src/internal/util/noop.ts", "node_modules/rxjs/src/internal/NotificationFactories.ts", "node_modules/rxjs/src/internal/util/errorContext.ts", "node_modules/rxjs/src/internal/Subscriber.ts", "node_modules/rxjs/src/internal/symbol/observable.ts", "node_modules/rxjs/src/internal/util/identity.ts", "node_modules/rxjs/src/internal/util/pipe.ts", "node_modules/rxjs/src/internal/Observable.ts", "node_modules/rxjs/src/internal/util/lift.ts", "node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts", "node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts", "node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts", "node_modules/rxjs/src/internal/Subject.ts", "node_modules/rxjs/src/internal/BehaviorSubject.ts", "node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts", "node_modules/rxjs/src/internal/ReplaySubject.ts", "node_modules/rxjs/src/internal/scheduler/Action.ts", "node_modules/rxjs/src/internal/scheduler/intervalProvider.ts", "node_modules/rxjs/src/internal/scheduler/AsyncAction.ts", "node_modules/rxjs/src/internal/Scheduler.ts", "node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts", "node_modules/rxjs/src/internal/scheduler/async.ts", "node_modules/rxjs/src/internal/scheduler/QueueAction.ts", "node_modules/rxjs/src/internal/scheduler/QueueScheduler.ts", "node_modules/rxjs/src/internal/scheduler/queue.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts", "node_modules/rxjs/src/internal/scheduler/animationFrame.ts", "node_modules/rxjs/src/internal/observable/empty.ts", "node_modules/rxjs/src/internal/util/isScheduler.ts", "node_modules/rxjs/src/internal/util/args.ts", "node_modules/rxjs/src/internal/util/isArrayLike.ts", "node_modules/rxjs/src/internal/util/isPromise.ts", "node_modules/rxjs/src/internal/util/isInteropObservable.ts", "node_modules/rxjs/src/internal/util/isAsyncIterable.ts", "node_modules/rxjs/src/internal/util/throwUnobservableError.ts", "node_modules/rxjs/src/internal/symbol/iterator.ts", "node_modules/rxjs/src/internal/util/isIterable.ts", "node_modules/rxjs/src/internal/util/isReadableStreamLike.ts", "node_modules/rxjs/src/internal/observable/innerFrom.ts", "node_modules/rxjs/src/internal/util/executeSchedule.ts", "node_modules/rxjs/src/internal/operators/observeOn.ts", "node_modules/rxjs/src/internal/operators/subscribeOn.ts", "node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts", "node_modules/rxjs/src/internal/scheduled/schedulePromise.ts", "node_modules/rxjs/src/internal/scheduled/scheduleArray.ts", "node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduled.ts", "node_modules/rxjs/src/internal/observable/from.ts", "node_modules/rxjs/src/internal/observable/of.ts", "node_modules/rxjs/src/internal/observable/throwError.ts", "node_modules/rxjs/src/internal/util/EmptyError.ts", "node_modules/rxjs/src/internal/util/isDate.ts", "node_modules/rxjs/src/internal/operators/map.ts", "node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts", "node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts", "node_modules/rxjs/src/internal/util/createObject.ts", "node_modules/rxjs/src/internal/observable/combineLatest.ts", "node_modules/rxjs/src/internal/operators/mergeInternals.ts", "node_modules/rxjs/src/internal/operators/mergeMap.ts", "node_modules/rxjs/src/internal/operators/mergeAll.ts", "node_modules/rxjs/src/internal/operators/concatAll.ts", "node_modules/rxjs/src/internal/observable/concat.ts", "node_modules/rxjs/src/internal/observable/defer.ts", "node_modules/rxjs/src/internal/observable/fromEvent.ts", "node_modules/rxjs/src/internal/observable/fromEventPattern.ts", "node_modules/rxjs/src/internal/observable/timer.ts", "node_modules/rxjs/src/internal/observable/merge.ts", "node_modules/rxjs/src/internal/observable/never.ts", "node_modules/rxjs/src/internal/util/argsOrArgArray.ts", "node_modules/rxjs/src/internal/operators/filter.ts", "node_modules/rxjs/src/internal/observable/zip.ts", "node_modules/rxjs/src/internal/operators/audit.ts", "node_modules/rxjs/src/internal/operators/auditTime.ts", "node_modules/rxjs/src/internal/operators/bufferCount.ts", "node_modules/rxjs/src/internal/operators/catchError.ts", "node_modules/rxjs/src/internal/operators/scanInternals.ts", "node_modules/rxjs/src/internal/operators/combineLatest.ts", "node_modules/rxjs/src/internal/operators/combineLatestWith.ts", "node_modules/rxjs/src/internal/operators/debounce.ts", "node_modules/rxjs/src/internal/operators/debounceTime.ts", "node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts", "node_modules/rxjs/src/internal/operators/take.ts", "node_modules/rxjs/src/internal/operators/ignoreElements.ts", "node_modules/rxjs/src/internal/operators/mapTo.ts", "node_modules/rxjs/src/internal/operators/delayWhen.ts", "node_modules/rxjs/src/internal/operators/delay.ts", "node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts", "node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts", "node_modules/rxjs/src/internal/operators/throwIfEmpty.ts", "node_modules/rxjs/src/internal/operators/endWith.ts", "node_modules/rxjs/src/internal/operators/finalize.ts", "node_modules/rxjs/src/internal/operators/first.ts", "node_modules/rxjs/src/internal/operators/takeLast.ts", "node_modules/rxjs/src/internal/operators/merge.ts", "node_modules/rxjs/src/internal/operators/mergeWith.ts", "node_modules/rxjs/src/internal/operators/repeat.ts", "node_modules/rxjs/src/internal/operators/scan.ts", "node_modules/rxjs/src/internal/operators/share.ts", "node_modules/rxjs/src/internal/operators/shareReplay.ts", "node_modules/rxjs/src/internal/operators/skip.ts", "node_modules/rxjs/src/internal/operators/skipUntil.ts", "node_modules/rxjs/src/internal/operators/startWith.ts", "node_modules/rxjs/src/internal/operators/switchMap.ts", "node_modules/rxjs/src/internal/operators/takeUntil.ts", "node_modules/rxjs/src/internal/operators/takeWhile.ts", "node_modules/rxjs/src/internal/operators/tap.ts", "node_modules/rxjs/src/internal/operators/throttle.ts", "node_modules/rxjs/src/internal/operators/throttleTime.ts", "node_modules/rxjs/src/internal/operators/withLatestFrom.ts", "node_modules/rxjs/src/internal/operators/zip.ts", "node_modules/rxjs/src/internal/operators/zipWith.ts", "src/templates/assets/javascripts/browser/document/index.ts", "src/templates/assets/javascripts/browser/element/_/index.ts", "src/templates/assets/javascripts/browser/element/focus/index.ts", "src/templates/assets/javascripts/browser/element/hover/index.ts", "src/templates/assets/javascripts/utilities/h/index.ts", "src/templates/assets/javascripts/utilities/round/index.ts", "src/templates/assets/javascripts/browser/script/index.ts", "src/templates/assets/javascripts/browser/element/size/_/index.ts", "src/templates/assets/javascripts/browser/element/size/content/index.ts", "src/templates/assets/javascripts/browser/element/offset/_/index.ts", "src/templates/assets/javascripts/browser/element/offset/content/index.ts", "src/templates/assets/javascripts/browser/element/visibility/index.ts", "src/templates/assets/javascripts/browser/toggle/index.ts", "src/templates/assets/javascripts/browser/keyboard/index.ts", "src/templates/assets/javascripts/browser/location/_/index.ts", "src/templates/assets/javascripts/browser/location/hash/index.ts", "src/templates/assets/javascripts/browser/media/index.ts", "src/templates/assets/javascripts/browser/request/index.ts", "src/templates/assets/javascripts/browser/viewport/offset/index.ts", "src/templates/assets/javascripts/browser/viewport/size/index.ts", "src/templates/assets/javascripts/browser/viewport/_/index.ts", "src/templates/assets/javascripts/browser/viewport/at/index.ts", "src/templates/assets/javascripts/browser/worker/index.ts", "src/templates/assets/javascripts/_/index.ts", "src/templates/assets/javascripts/components/_/index.ts", "src/templates/assets/javascripts/components/announce/index.ts", "src/templates/assets/javascripts/components/consent/index.ts", "src/templates/assets/javascripts/templates/tooltip/index.tsx", "src/templates/assets/javascripts/templates/annotation/index.tsx", "src/templates/assets/javascripts/templates/clipboard/index.tsx", "src/templates/assets/javascripts/templates/search/index.tsx", "src/templates/assets/javascripts/templates/source/index.tsx", "src/templates/assets/javascripts/templates/tabbed/index.tsx", "src/templates/assets/javascripts/templates/table/index.tsx", "src/templates/assets/javascripts/templates/version/index.tsx", "src/templates/assets/javascripts/components/tooltip2/index.ts", "src/templates/assets/javascripts/components/content/annotation/_/index.ts", "src/templates/assets/javascripts/components/content/annotation/list/index.ts", "src/templates/assets/javascripts/components/content/annotation/block/index.ts", "src/templates/assets/javascripts/components/content/code/_/index.ts", "src/templates/assets/javascripts/components/content/details/index.ts", "src/templates/assets/javascripts/components/content/mermaid/index.css", "src/templates/assets/javascripts/components/content/mermaid/index.ts", "src/templates/assets/javascripts/components/content/table/index.ts", "src/templates/assets/javascripts/components/content/tabs/index.ts", "src/templates/assets/javascripts/components/content/_/index.ts", "src/templates/assets/javascripts/components/dialog/index.ts", "src/templates/assets/javascripts/components/tooltip/index.ts", "src/templates/assets/javascripts/components/header/_/index.ts", "src/templates/assets/javascripts/components/header/title/index.ts", "src/templates/assets/javascripts/components/main/index.ts", "src/templates/assets/javascripts/components/palette/index.ts", "src/templates/assets/javascripts/components/progress/index.ts", "src/templates/assets/javascripts/integrations/clipboard/index.ts", "src/templates/assets/javascripts/integrations/sitemap/index.ts", "src/templates/assets/javascripts/integrations/instant/index.ts", "src/templates/assets/javascripts/integrations/search/highlighter/index.ts", "src/templates/assets/javascripts/integrations/search/worker/message/index.ts", "src/templates/assets/javascripts/integrations/search/worker/_/index.ts", "src/templates/assets/javascripts/integrations/version/index.ts", "src/templates/assets/javascripts/components/search/query/index.ts", "src/templates/assets/javascripts/components/search/result/index.ts", "src/templates/assets/javascripts/components/search/share/index.ts", "src/templates/assets/javascripts/components/search/suggest/index.ts", "src/templates/assets/javascripts/components/search/_/index.ts", "src/templates/assets/javascripts/components/search/highlight/index.ts", "src/templates/assets/javascripts/components/sidebar/index.ts", "src/templates/assets/javascripts/components/source/facts/github/index.ts", "src/templates/assets/javascripts/components/source/facts/gitlab/index.ts", "src/templates/assets/javascripts/components/source/facts/_/index.ts", "src/templates/assets/javascripts/components/source/_/index.ts", "src/templates/assets/javascripts/components/tabs/index.ts", "src/templates/assets/javascripts/components/toc/index.ts", "src/templates/assets/javascripts/components/top/index.ts", "src/templates/assets/javascripts/patches/ellipsis/index.ts", "src/templates/assets/javascripts/patches/indeterminate/index.ts", "src/templates/assets/javascripts/patches/scrollfix/index.ts", "src/templates/assets/javascripts/patches/scrolllock/index.ts", "src/templates/assets/javascripts/polyfills/index.ts"],
+  "sourcesContent": ["(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  (factory());\n}(this, (function () { 'use strict';\n\n  /**\n   * Applies the :focus-visible polyfill at the given scope.\n   * A scope in this case is either the top-level Document or a Shadow Root.\n   *\n   * @param {(Document|ShadowRoot)} scope\n   * @see https://github.com/WICG/focus-visible\n   */\n  function applyFocusVisiblePolyfill(scope) {\n    var hadKeyboardEvent = true;\n    var hadFocusVisibleRecently = false;\n    var hadFocusVisibleRecentlyTimeout = null;\n\n    var inputTypesAllowlist = {\n      text: true,\n      search: true,\n      url: true,\n      tel: true,\n      email: true,\n      password: true,\n      number: true,\n      date: true,\n      month: true,\n      week: true,\n      time: true,\n      datetime: true,\n      'datetime-local': true\n    };\n\n    /**\n     * Helper function for legacy browsers and iframes which sometimes focus\n     * elements like document, body, and non-interactive SVG.\n     * @param {Element} el\n     */\n    function isValidFocusTarget(el) {\n      if (\n        el &&\n        el !== document &&\n        el.nodeName !== 'HTML' &&\n        el.nodeName !== 'BODY' &&\n        'classList' in el &&\n        'contains' in el.classList\n      ) {\n        return true;\n      }\n      return false;\n    }\n\n    /**\n     * Computes whether the given element should automatically trigger the\n     * `focus-visible` class being added, i.e. whether it should always match\n     * `:focus-visible` when focused.\n     * @param {Element} el\n     * @return {boolean}\n     */\n    function focusTriggersKeyboardModality(el) {\n      var type = el.type;\n      var tagName = el.tagName;\n\n      if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {\n        return true;\n      }\n\n      if (tagName === 'TEXTAREA' && !el.readOnly) {\n        return true;\n      }\n\n      if (el.isContentEditable) {\n        return true;\n      }\n\n      return false;\n    }\n\n    /**\n     * Add the `focus-visible` class to the given element if it was not added by\n     * the author.\n     * @param {Element} el\n     */\n    function addFocusVisibleClass(el) {\n      if (el.classList.contains('focus-visible')) {\n        return;\n      }\n      el.classList.add('focus-visible');\n      el.setAttribute('data-focus-visible-added', '');\n    }\n\n    /**\n     * Remove the `focus-visible` class from the given element if it was not\n     * originally added by the author.\n     * @param {Element} el\n     */\n    function removeFocusVisibleClass(el) {\n      if (!el.hasAttribute('data-focus-visible-added')) {\n        return;\n      }\n      el.classList.remove('focus-visible');\n      el.removeAttribute('data-focus-visible-added');\n    }\n\n    /**\n     * If the most recent user interaction was via the keyboard;\n     * and the key press did not include a meta, alt/option, or control key;\n     * then the modality is keyboard. Otherwise, the modality is not keyboard.\n     * Apply `focus-visible` to any current active element and keep track\n     * of our keyboard modality state with `hadKeyboardEvent`.\n     * @param {KeyboardEvent} e\n     */\n    function onKeyDown(e) {\n      if (e.metaKey || e.altKey || e.ctrlKey) {\n        return;\n      }\n\n      if (isValidFocusTarget(scope.activeElement)) {\n        addFocusVisibleClass(scope.activeElement);\n      }\n\n      hadKeyboardEvent = true;\n    }\n\n    /**\n     * If at any point a user clicks with a pointing device, ensure that we change\n     * the modality away from keyboard.\n     * This avoids the situation where a user presses a key on an already focused\n     * element, and then clicks on a different element, focusing it with a\n     * pointing device, while we still think we're in keyboard modality.\n     * @param {Event} e\n     */\n    function onPointerDown(e) {\n      hadKeyboardEvent = false;\n    }\n\n    /**\n     * On `focus`, add the `focus-visible` class to the target if:\n     * - the target received focus as a result of keyboard navigation, or\n     * - the event target is an element that will likely require interaction\n     *   via the keyboard (e.g. a text box)\n     * @param {Event} e\n     */\n    function onFocus(e) {\n      // Prevent IE from focusing the document or HTML element.\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {\n        addFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * On `blur`, remove the `focus-visible` class from the target.\n     * @param {Event} e\n     */\n    function onBlur(e) {\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (\n        e.target.classList.contains('focus-visible') ||\n        e.target.hasAttribute('data-focus-visible-added')\n      ) {\n        // To detect a tab/window switch, we look for a blur event followed\n        // rapidly by a visibility change.\n        // If we don't see a visibility change within 100ms, it's probably a\n        // regular focus change.\n        hadFocusVisibleRecently = true;\n        window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n        hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {\n          hadFocusVisibleRecently = false;\n        }, 100);\n        removeFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * If the user changes tabs, keep track of whether or not the previously\n     * focused element had .focus-visible.\n     * @param {Event} e\n     */\n    function onVisibilityChange(e) {\n      if (document.visibilityState === 'hidden') {\n        // If the tab becomes active again, the browser will handle calling focus\n        // on the element (Safari actually calls it twice).\n        // If this tab change caused a blur on an element with focus-visible,\n        // re-apply the class when the user switches back to the tab.\n        if (hadFocusVisibleRecently) {\n          hadKeyboardEvent = true;\n        }\n        addInitialPointerMoveListeners();\n      }\n    }\n\n    /**\n     * Add a group of listeners to detect usage of any pointing devices.\n     * These listeners will be added when the polyfill first loads, and anytime\n     * the window is blurred, so that they are active when the window regains\n     * focus.\n     */\n    function addInitialPointerMoveListeners() {\n      document.addEventListener('mousemove', onInitialPointerMove);\n      document.addEventListener('mousedown', onInitialPointerMove);\n      document.addEventListener('mouseup', onInitialPointerMove);\n      document.addEventListener('pointermove', onInitialPointerMove);\n      document.addEventListener('pointerdown', onInitialPointerMove);\n      document.addEventListener('pointerup', onInitialPointerMove);\n      document.addEventListener('touchmove', onInitialPointerMove);\n      document.addEventListener('touchstart', onInitialPointerMove);\n      document.addEventListener('touchend', onInitialPointerMove);\n    }\n\n    function removeInitialPointerMoveListeners() {\n      document.removeEventListener('mousemove', onInitialPointerMove);\n      document.removeEventListener('mousedown', onInitialPointerMove);\n      document.removeEventListener('mouseup', onInitialPointerMove);\n      document.removeEventListener('pointermove', onInitialPointerMove);\n      document.removeEventListener('pointerdown', onInitialPointerMove);\n      document.removeEventListener('pointerup', onInitialPointerMove);\n      document.removeEventListener('touchmove', onInitialPointerMove);\n      document.removeEventListener('touchstart', onInitialPointerMove);\n      document.removeEventListener('touchend', onInitialPointerMove);\n    }\n\n    /**\n     * When the polfyill first loads, assume the user is in keyboard modality.\n     * If any event is received from a pointing device (e.g. mouse, pointer,\n     * touch), turn off keyboard modality.\n     * This accounts for situations where focus enters the page from the URL bar.\n     * @param {Event} e\n     */\n    function onInitialPointerMove(e) {\n      // Work around a Safari quirk that fires a mousemove on <html> whenever the\n      // window blurs, even if you're tabbing out of the page. \u00AF\\_(\u30C4)_/\u00AF\n      if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {\n        return;\n      }\n\n      hadKeyboardEvent = false;\n      removeInitialPointerMoveListeners();\n    }\n\n    // For some kinds of state, we are interested in changes at the global scope\n    // only. For example, global pointer input, global key presses and global\n    // visibility change should affect the state at every scope:\n    document.addEventListener('keydown', onKeyDown, true);\n    document.addEventListener('mousedown', onPointerDown, true);\n    document.addEventListener('pointerdown', onPointerDown, true);\n    document.addEventListener('touchstart', onPointerDown, true);\n    document.addEventListener('visibilitychange', onVisibilityChange, true);\n\n    addInitialPointerMoveListeners();\n\n    // For focus and blur, we specifically care about state changes in the local\n    // scope. This is because focus / blur events that originate from within a\n    // shadow root are not re-dispatched from the host element if it was already\n    // the active element in its own scope:\n    scope.addEventListener('focus', onFocus, true);\n    scope.addEventListener('blur', onBlur, true);\n\n    // We detect that a node is a ShadowRoot by ensuring that it is a\n    // DocumentFragment and also has a host property. This check covers native\n    // implementation and polyfill implementation transparently. If we only cared\n    // about the native implementation, we could just check if the scope was\n    // an instance of a ShadowRoot.\n    if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {\n      // Since a ShadowRoot is a special kind of DocumentFragment, it does not\n      // have a root element to add a class to. So, we add this attribute to the\n      // host element instead:\n      scope.host.setAttribute('data-js-focus-visible', '');\n    } else if (scope.nodeType === Node.DOCUMENT_NODE) {\n      document.documentElement.classList.add('js-focus-visible');\n      document.documentElement.setAttribute('data-js-focus-visible', '');\n    }\n  }\n\n  // It is important to wrap all references to global window and document in\n  // these checks to support server-side rendering use cases\n  // @see https://github.com/WICG/focus-visible/issues/199\n  if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n    // Make the polyfill helper globally available. This can be used as a signal\n    // to interested libraries that wish to coordinate with the polyfill for e.g.,\n    // applying the polyfill to a shadow root:\n    window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;\n\n    // Notify interested libraries of the polyfill's presence, in case the\n    // polyfill was loaded lazily:\n    var event;\n\n    try {\n      event = new CustomEvent('focus-visible-polyfill-ready');\n    } catch (error) {\n      // IE11 does not support using CustomEvent as a constructor directly:\n      event = document.createEvent('CustomEvent');\n      event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});\n    }\n\n    window.dispatchEvent(event);\n  }\n\n  if (typeof document !== 'undefined') {\n    // Apply the polyfill to the global document, so that no JavaScript\n    // coordination is required to use the polyfill in the top-level document:\n    applyFocusVisiblePolyfill(document);\n  }\n\n})));\n", "/*!\n * clipboard.js v2.0.11\n * https://clipboardjs.com/\n *\n * Licensed MIT \u00A9 Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ClipboardJS\"] = factory();\n\telse\n\t\troot[\"ClipboardJS\"] = factory();\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 686:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n  \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __webpack_require__(279);\nvar tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __webpack_require__(370);\nvar listen_default = /*#__PURE__*/__webpack_require__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __webpack_require__(817);\nvar select_default = /*#__PURE__*/__webpack_require__.n(src_select);\n;// CONCATENATED MODULE: ./src/common/command.js\n/**\n * Executes a given operation type.\n * @param {String} type\n * @return {Boolean}\n */\nfunction command(type) {\n  try {\n    return document.execCommand(type);\n  } catch (err) {\n    return false;\n  }\n}\n;// CONCATENATED MODULE: ./src/actions/cut.js\n\n\n/**\n * Cut action wrapper.\n * @param {String|HTMLElement} target\n * @return {String}\n */\n\nvar ClipboardActionCut = function ClipboardActionCut(target) {\n  var selectedText = select_default()(target);\n  command('cut');\n  return selectedText;\n};\n\n/* harmony default export */ var actions_cut = (ClipboardActionCut);\n;// CONCATENATED MODULE: ./src/common/create-fake-element.js\n/**\n * Creates a fake textarea element with a value.\n * @param {String} value\n * @return {HTMLElement}\n */\nfunction createFakeElement(value) {\n  var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n  var fakeElement = document.createElement('textarea'); // Prevent zooming on iOS\n\n  fakeElement.style.fontSize = '12pt'; // Reset box model\n\n  fakeElement.style.border = '0';\n  fakeElement.style.padding = '0';\n  fakeElement.style.margin = '0'; // Move element out of screen horizontally\n\n  fakeElement.style.position = 'absolute';\n  fakeElement.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n  var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n  fakeElement.style.top = \"\".concat(yPosition, \"px\");\n  fakeElement.setAttribute('readonly', '');\n  fakeElement.value = value;\n  return fakeElement;\n}\n;// CONCATENATED MODULE: ./src/actions/copy.js\n\n\n\n/**\n * Create fake copy action wrapper using a fake element.\n * @param {String} target\n * @param {Object} options\n * @return {String}\n */\n\nvar fakeCopyAction = function fakeCopyAction(value, options) {\n  var fakeElement = createFakeElement(value);\n  options.container.appendChild(fakeElement);\n  var selectedText = select_default()(fakeElement);\n  command('copy');\n  fakeElement.remove();\n  return selectedText;\n};\n/**\n * Copy action wrapper.\n * @param {String|HTMLElement} target\n * @param {Object} options\n * @return {String}\n */\n\n\nvar ClipboardActionCopy = function ClipboardActionCopy(target) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    container: document.body\n  };\n  var selectedText = '';\n\n  if (typeof target === 'string') {\n    selectedText = fakeCopyAction(target, options);\n  } else if (target instanceof HTMLInputElement && !['text', 'search', 'url', 'tel', 'password'].includes(target === null || target === void 0 ? void 0 : target.type)) {\n    // If input type doesn't support `setSelectionRange`. Simulate it. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n    selectedText = fakeCopyAction(target.value, options);\n  } else {\n    selectedText = select_default()(target);\n    command('copy');\n  }\n\n  return selectedText;\n};\n\n/* harmony default export */ var actions_copy = (ClipboardActionCopy);\n;// CONCATENATED MODULE: ./src/actions/default.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/**\n * Inner function which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n * @param {Object} options\n */\n\nvar ClipboardActionDefault = function ClipboardActionDefault() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  // Defines base properties passed from constructor.\n  var _options$action = options.action,\n      action = _options$action === void 0 ? 'copy' : _options$action,\n      container = options.container,\n      target = options.target,\n      text = options.text; // Sets the `action` to be performed which can be either 'copy' or 'cut'.\n\n  if (action !== 'copy' && action !== 'cut') {\n    throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n  } // Sets the `target` property using an element that will be have its content copied.\n\n\n  if (target !== undefined) {\n    if (target && _typeof(target) === 'object' && target.nodeType === 1) {\n      if (action === 'copy' && target.hasAttribute('disabled')) {\n        throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n      }\n\n      if (action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n        throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n      }\n    } else {\n      throw new Error('Invalid \"target\" value, use a valid Element');\n    }\n  } // Define selection strategy based on `text` property.\n\n\n  if (text) {\n    return actions_copy(text, {\n      container: container\n    });\n  } // Defines which selection strategy based on `target` property.\n\n\n  if (target) {\n    return action === 'cut' ? actions_cut(target) : actions_copy(target, {\n      container: container\n    });\n  }\n};\n\n/* harmony default export */ var actions_default = (ClipboardActionDefault);\n;// CONCATENATED MODULE: ./src/clipboard.js\nfunction clipboard_typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { clipboard_typeof = function _typeof(obj) { return typeof obj; }; } else { clipboard_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return clipboard_typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (clipboard_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n/**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\nfunction getAttributeValue(suffix, element) {\n  var attribute = \"data-clipboard-\".concat(suffix);\n\n  if (!element.hasAttribute(attribute)) {\n    return;\n  }\n\n  return element.getAttribute(attribute);\n}\n/**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\nvar Clipboard = /*#__PURE__*/function (_Emitter) {\n  _inherits(Clipboard, _Emitter);\n\n  var _super = _createSuper(Clipboard);\n\n  /**\n   * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n   * @param {Object} options\n   */\n  function Clipboard(trigger, options) {\n    var _this;\n\n    _classCallCheck(this, Clipboard);\n\n    _this = _super.call(this);\n\n    _this.resolveOptions(options);\n\n    _this.listenClick(trigger);\n\n    return _this;\n  }\n  /**\n   * Defines if attributes would be resolved using internal setter functions\n   * or custom functions that were passed in the constructor.\n   * @param {Object} options\n   */\n\n\n  _createClass(Clipboard, [{\n    key: \"resolveOptions\",\n    value: function resolveOptions() {\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n      this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n      this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n      this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n    }\n    /**\n     * Adds a click event listener to the passed trigger.\n     * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n     */\n\n  }, {\n    key: \"listenClick\",\n    value: function listenClick(trigger) {\n      var _this2 = this;\n\n      this.listener = listen_default()(trigger, 'click', function (e) {\n        return _this2.onClick(e);\n      });\n    }\n    /**\n     * Defines a new `ClipboardAction` on each click event.\n     * @param {Event} e\n     */\n\n  }, {\n    key: \"onClick\",\n    value: function onClick(e) {\n      var trigger = e.delegateTarget || e.currentTarget;\n      var action = this.action(trigger) || 'copy';\n      var text = actions_default({\n        action: action,\n        container: this.container,\n        target: this.target(trigger),\n        text: this.text(trigger)\n      }); // Fires an event based on the copy operation result.\n\n      this.emit(text ? 'success' : 'error', {\n        action: action,\n        text: text,\n        trigger: trigger,\n        clearSelection: function clearSelection() {\n          if (trigger) {\n            trigger.focus();\n          }\n\n          window.getSelection().removeAllRanges();\n        }\n      });\n    }\n    /**\n     * Default `action` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultAction\",\n    value: function defaultAction(trigger) {\n      return getAttributeValue('action', trigger);\n    }\n    /**\n     * Default `target` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultTarget\",\n    value: function defaultTarget(trigger) {\n      var selector = getAttributeValue('target', trigger);\n\n      if (selector) {\n        return document.querySelector(selector);\n      }\n    }\n    /**\n     * Allow fire programmatically a copy action\n     * @param {String|HTMLElement} target\n     * @param {Object} options\n     * @returns Text copied.\n     */\n\n  }, {\n    key: \"defaultText\",\n\n    /**\n     * Default `text` lookup function.\n     * @param {Element} trigger\n     */\n    value: function defaultText(trigger) {\n      return getAttributeValue('text', trigger);\n    }\n    /**\n     * Destroy lifecycle.\n     */\n\n  }, {\n    key: \"destroy\",\n    value: function destroy() {\n      this.listener.destroy();\n    }\n  }], [{\n    key: \"copy\",\n    value: function copy(target) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n        container: document.body\n      };\n      return actions_copy(target, options);\n    }\n    /**\n     * Allow fire programmatically a cut action\n     * @param {String|HTMLElement} target\n     * @returns Text cutted.\n     */\n\n  }, {\n    key: \"cut\",\n    value: function cut(target) {\n      return actions_cut(target);\n    }\n    /**\n     * Returns the support of the given action, or all actions if no action is\n     * given.\n     * @param {String} [action]\n     */\n\n  }, {\n    key: \"isSupported\",\n    value: function isSupported() {\n      var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n      var actions = typeof action === 'string' ? [action] : action;\n      var support = !!document.queryCommandSupported;\n      actions.forEach(function (action) {\n        support = support && !!document.queryCommandSupported(action);\n      });\n      return support;\n    }\n  }]);\n\n  return Clipboard;\n}((tiny_emitter_default()));\n\n/* harmony default export */ var clipboard = (Clipboard);\n\n/***/ }),\n\n/***/ 828:\n/***/ (function(module) {\n\nvar DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n    var proto = Element.prototype;\n\n    proto.matches = proto.matchesSelector ||\n                    proto.mozMatchesSelector ||\n                    proto.msMatchesSelector ||\n                    proto.oMatchesSelector ||\n                    proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n    while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n        if (typeof element.matches === 'function' &&\n            element.matches(selector)) {\n          return element;\n        }\n        element = element.parentNode;\n    }\n}\n\nmodule.exports = closest;\n\n\n/***/ }),\n\n/***/ 438:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar closest = __webpack_require__(828);\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction _delegate(element, selector, type, callback, useCapture) {\n    var listenerFn = listener.apply(this, arguments);\n\n    element.addEventListener(type, listenerFn, useCapture);\n\n    return {\n        destroy: function() {\n            element.removeEventListener(type, listenerFn, useCapture);\n        }\n    }\n}\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(elements, selector, type, callback, useCapture) {\n    // Handle the regular Element usage\n    if (typeof elements.addEventListener === 'function') {\n        return _delegate.apply(null, arguments);\n    }\n\n    // Handle Element-less usage, it defaults to global delegation\n    if (typeof type === 'function') {\n        // Use `document` as the first parameter, then apply arguments\n        // This is a short way to .unshift `arguments` without running into deoptimizations\n        return _delegate.bind(null, document).apply(null, arguments);\n    }\n\n    // Handle Selector-based usage\n    if (typeof elements === 'string') {\n        elements = document.querySelectorAll(elements);\n    }\n\n    // Handle Array-like based usage\n    return Array.prototype.map.call(elements, function (element) {\n        return _delegate(element, selector, type, callback, useCapture);\n    });\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n    return function(e) {\n        e.delegateTarget = closest(e.target, selector);\n\n        if (e.delegateTarget) {\n            callback.call(element, e);\n        }\n    }\n}\n\nmodule.exports = delegate;\n\n\n/***/ }),\n\n/***/ 879:\n/***/ (function(__unused_webpack_module, exports) {\n\n/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n    return value !== undefined\n        && value instanceof HTMLElement\n        && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return value !== undefined\n        && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n        && ('length' in value)\n        && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n    return typeof value === 'string'\n        || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return type === '[object Function]';\n};\n\n\n/***/ }),\n\n/***/ 370:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar is = __webpack_require__(879);\nvar delegate = __webpack_require__(438);\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n    if (!target && !type && !callback) {\n        throw new Error('Missing required arguments');\n    }\n\n    if (!is.string(type)) {\n        throw new TypeError('Second argument must be a String');\n    }\n\n    if (!is.fn(callback)) {\n        throw new TypeError('Third argument must be a Function');\n    }\n\n    if (is.node(target)) {\n        return listenNode(target, type, callback);\n    }\n    else if (is.nodeList(target)) {\n        return listenNodeList(target, type, callback);\n    }\n    else if (is.string(target)) {\n        return listenSelector(target, type, callback);\n    }\n    else {\n        throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n    }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n    node.addEventListener(type, callback);\n\n    return {\n        destroy: function() {\n            node.removeEventListener(type, callback);\n        }\n    }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n    Array.prototype.forEach.call(nodeList, function(node) {\n        node.addEventListener(type, callback);\n    });\n\n    return {\n        destroy: function() {\n            Array.prototype.forEach.call(nodeList, function(node) {\n                node.removeEventListener(type, callback);\n            });\n        }\n    }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n    return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n\n\n/***/ }),\n\n/***/ 817:\n/***/ (function(module) {\n\nfunction select(element) {\n    var selectedText;\n\n    if (element.nodeName === 'SELECT') {\n        element.focus();\n\n        selectedText = element.value;\n    }\n    else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n        var isReadOnly = element.hasAttribute('readonly');\n\n        if (!isReadOnly) {\n            element.setAttribute('readonly', '');\n        }\n\n        element.select();\n        element.setSelectionRange(0, element.value.length);\n\n        if (!isReadOnly) {\n            element.removeAttribute('readonly');\n        }\n\n        selectedText = element.value;\n    }\n    else {\n        if (element.hasAttribute('contenteditable')) {\n            element.focus();\n        }\n\n        var selection = window.getSelection();\n        var range = document.createRange();\n\n        range.selectNodeContents(element);\n        selection.removeAllRanges();\n        selection.addRange(range);\n\n        selectedText = selection.toString();\n    }\n\n    return selectedText;\n}\n\nmodule.exports = select;\n\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module) {\n\nfunction E () {\n  // Keep this empty so it's easier to inherit from\n  // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n  on: function (name, callback, ctx) {\n    var e = this.e || (this.e = {});\n\n    (e[name] || (e[name] = [])).push({\n      fn: callback,\n      ctx: ctx\n    });\n\n    return this;\n  },\n\n  once: function (name, callback, ctx) {\n    var self = this;\n    function listener () {\n      self.off(name, listener);\n      callback.apply(ctx, arguments);\n    };\n\n    listener._ = callback\n    return this.on(name, listener, ctx);\n  },\n\n  emit: function (name) {\n    var data = [].slice.call(arguments, 1);\n    var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n    var i = 0;\n    var len = evtArr.length;\n\n    for (i; i < len; i++) {\n      evtArr[i].fn.apply(evtArr[i].ctx, data);\n    }\n\n    return this;\n  },\n\n  off: function (name, callback) {\n    var e = this.e || (this.e = {});\n    var evts = e[name];\n    var liveEvents = [];\n\n    if (evts && callback) {\n      for (var i = 0, len = evts.length; i < len; i++) {\n        if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n          liveEvents.push(evts[i]);\n      }\n    }\n\n    // Remove event from queue to prevent memory leak\n    // Suggested by https://github.com/lazd\n    // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n    (liveEvents.length)\n      ? e[name] = liveEvents\n      : delete e[name];\n\n    return this;\n  }\n};\n\nmodule.exports = E;\nmodule.exports.TinyEmitter = E;\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t!function() {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = function(module) {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\tfunction() { return module['default']; } :\n/******/ \t\t\t\tfunction() { return module; };\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(686);\n/******/ })()\n.default;\n});", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param  {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index = 0;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34: // \"\n        escape = '&quot;';\n        break;\n      case 38: // &\n        escape = '&amp;';\n        break;\n      case 39: // '\n        escape = '&#39;';\n        break;\n      case 60: // <\n        escape = '&lt;';\n        break;\n      case 62: // >\n        escape = '&gt;';\n        break;\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index\n    ? html + str.substring(lastIndex, index)\n    : html;\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport \"focus-visible\"\n\nimport {\n  EMPTY,\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  delay,\n  filter,\n  map,\n  merge,\n  mergeWith,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\nimport { configuration, feature } from \"./_\"\nimport {\n  at,\n  getActiveElement,\n  getOptionalElement,\n  requestJSON,\n  setLocation,\n  setToggle,\n  watchDocument,\n  watchKeyboard,\n  watchLocation,\n  watchLocationTarget,\n  watchMedia,\n  watchPrint,\n  watchScript,\n  watchViewport\n} from \"./browser\"\nimport {\n  getComponentElement,\n  getComponentElements,\n  mountAnnounce,\n  mountBackToTop,\n  mountConsent,\n  mountContent,\n  mountDialog,\n  mountHeader,\n  mountHeaderTitle,\n  mountPalette,\n  mountProgress,\n  mountSearch,\n  mountSearchHiglight,\n  mountSidebar,\n  mountSource,\n  mountTableOfContents,\n  mountTabs,\n  watchHeader,\n  watchMain\n} from \"./components\"\nimport {\n  SearchIndex,\n  setupClipboardJS,\n  setupInstantNavigation,\n  setupVersionSelector\n} from \"./integrations\"\nimport {\n  patchEllipsis,\n  patchIndeterminate,\n  patchScrollfix,\n  patchScrolllock\n} from \"./patches\"\nimport \"./polyfills\"\n\n/* ----------------------------------------------------------------------------\n * Functions - @todo refactor\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch search index\n *\n * @returns Search index observable\n */\nfunction fetchSearchIndex(): Observable<SearchIndex> {\n  if (location.protocol === \"file:\") {\n    return watchScript(\n      `${new URL(\"search/search_index.js\", config.base)}`\n    )\n      .pipe(\n        // @ts-ignore - @todo fix typings\n        map(() => __index),\n        shareReplay(1)\n      )\n  } else {\n    return requestJSON<SearchIndex>(\n      new URL(\"search/search_index.json\", config.base)\n    )\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\n/* Yay, JavaScript is available */\ndocument.documentElement.classList.remove(\"no-js\")\ndocument.documentElement.classList.add(\"js\")\n\n/* Set up navigation observables and subjects */\nconst document$ = watchDocument()\nconst location$ = watchLocation()\nconst target$   = watchLocationTarget(location$)\nconst keyboard$ = watchKeyboard()\n\n/* Set up media observables */\nconst viewport$ = watchViewport()\nconst tablet$   = watchMedia(\"(min-width: 960px)\")\nconst screen$   = watchMedia(\"(min-width: 1220px)\")\nconst print$    = watchPrint()\n\n/* Retrieve search index, if search is enabled */\nconst config = configuration()\nconst index$ = document.forms.namedItem(\"search\")\n  ? fetchSearchIndex()\n  : NEVER\n\n/* Set up Clipboard.js integration */\nconst alert$ = new Subject<string>()\nsetupClipboardJS({ alert$ })\n\n/* Set up progress indicator */\nconst progress$ = new Subject<number>()\n\n/* Set up instant navigation, if enabled */\nif (feature(\"navigation.instant\"))\n  setupInstantNavigation({ location$, viewport$, progress$ })\n    .subscribe(document$)\n\n/* Set up version selector */\nif (config.version?.provider === \"mike\")\n  setupVersionSelector({ document$ })\n\n/* Always close drawer and search on navigation */\nmerge(location$, target$)\n  .pipe(\n    delay(125)\n  )\n    .subscribe(() => {\n      setToggle(\"drawer\", false)\n      setToggle(\"search\", false)\n    })\n\n/* Set up global keyboard handlers */\nkeyboard$\n  .pipe(\n    filter(({ mode }) => mode === \"global\")\n  )\n    .subscribe(key => {\n      switch (key.type) {\n\n        /* Go to previous page */\n        case \"p\":\n        case \",\":\n          const prev = getOptionalElement<HTMLLinkElement>(\"link[rel=prev]\")\n          if (typeof prev !== \"undefined\")\n            setLocation(prev)\n          break\n\n        /* Go to next page */\n        case \"n\":\n        case \".\":\n          const next = getOptionalElement<HTMLLinkElement>(\"link[rel=next]\")\n          if (typeof next !== \"undefined\")\n            setLocation(next)\n          break\n\n        /* Expand navigation, see https://bit.ly/3ZjG5io */\n        case \"Enter\":\n          const active = getActiveElement()\n          if (active instanceof HTMLLabelElement)\n            active.click()\n      }\n    })\n\n/* Set up patches */\npatchEllipsis({ viewport$, document$ })\npatchIndeterminate({ document$, tablet$ })\npatchScrollfix({ document$ })\npatchScrolllock({ viewport$, tablet$ })\n\n/* Set up header and main area observable */\nconst header$ = watchHeader(getComponentElement(\"header\"), { viewport$ })\nconst main$ = document$\n  .pipe(\n    map(() => getComponentElement(\"main\")),\n    switchMap(el => watchMain(el, { viewport$, header$ })),\n    shareReplay(1)\n  )\n\n/* Set up control component observables */\nconst control$ = merge(\n\n  /* Consent */\n  ...getComponentElements(\"consent\")\n    .map(el => mountConsent(el, { target$ })),\n\n  /* Dialog */\n  ...getComponentElements(\"dialog\")\n    .map(el => mountDialog(el, { alert$ })),\n\n  /* Header */\n  ...getComponentElements(\"header\")\n    .map(el => mountHeader(el, { viewport$, header$, main$ })),\n\n  /* Color palette */\n  ...getComponentElements(\"palette\")\n    .map(el => mountPalette(el)),\n\n  /* Progress bar */\n  ...getComponentElements(\"progress\")\n    .map(el => mountProgress(el, { progress$ })),\n\n  /* Search */\n  ...getComponentElements(\"search\")\n    .map(el => mountSearch(el, { index$, keyboard$ })),\n\n  /* Repository information */\n  ...getComponentElements(\"source\")\n    .map(el => mountSource(el))\n)\n\n/* Set up content component observables */\nconst content$ = defer(() => merge(\n\n  /* Announcement bar */\n  ...getComponentElements(\"announce\")\n    .map(el => mountAnnounce(el)),\n\n  /* Content */\n  ...getComponentElements(\"content\")\n    .map(el => mountContent(el, { viewport$, target$, print$ })),\n\n  /* Search highlighting */\n  ...getComponentElements(\"content\")\n    .map(el => feature(\"search.highlight\")\n      ? mountSearchHiglight(el, { index$, location$ })\n      : EMPTY\n    ),\n\n  /* Header title */\n  ...getComponentElements(\"header-title\")\n    .map(el => mountHeaderTitle(el, { viewport$, header$ })),\n\n  /* Sidebar */\n  ...getComponentElements(\"sidebar\")\n    .map(el => el.getAttribute(\"data-md-type\") === \"navigation\"\n      ? at(screen$, () => mountSidebar(el, { viewport$, header$, main$ }))\n      : at(tablet$, () => mountSidebar(el, { viewport$, header$, main$ }))\n    ),\n\n  /* Navigation tabs */\n  ...getComponentElements(\"tabs\")\n    .map(el => mountTabs(el, { viewport$, header$ })),\n\n  /* Table of contents */\n  ...getComponentElements(\"toc\")\n    .map(el => mountTableOfContents(el, {\n      viewport$, header$, main$, target$\n    })),\n\n  /* Back-to-top button */\n  ...getComponentElements(\"top\")\n    .map(el => mountBackToTop(el, { viewport$, header$, main$, target$ }))\n))\n\n/* Set up component observables */\nconst component$ = document$\n  .pipe(\n    switchMap(() => content$),\n    mergeWith(control$),\n    shareReplay(1)\n  )\n\n/* Subscribe to all components */\ncomponent$.subscribe()\n\n/* ----------------------------------------------------------------------------\n * Exports\n * ------------------------------------------------------------------------- */\n\nwindow.document$  = document$          /* Document observable */\nwindow.location$  = location$          /* Location subject */\nwindow.target$    = target$            /* Location target observable */\nwindow.keyboard$  = keyboard$          /* Keyboard observable */\nwindow.viewport$  = viewport$          /* Viewport observable */\nwindow.tablet$    = tablet$            /* Media tablet observable */\nwindow.screen$    = screen$            /* Media screen observable */\nwindow.print$     = print$             /* Media print observable */\nwindow.alert$     = alert$             /* Alert subject */\nwindow.progress$  = progress$          /* Progress indicator subject */\nwindow.component$ = component$         /* Component observable */\n", "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n    if (typeof b !== \"function\" && b !== null)\r\n        throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    }\r\n    return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n    if (m) return m.call(o);\r\n    if (o && typeof o.length === \"number\") return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n        if (ar || !(i in from)) {\r\n            if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n            ar[i] = from[i];\r\n        }\r\n    }\r\n    return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator], i;\r\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n    o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n    __setModuleDefault(result, mod);\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n    return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n    if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n    return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n", "/**\n * Returns true if the object is a function.\n * @param value The value to check\n */\nexport function isFunction(value: any): value is (...args: any[]) => any {\n  return typeof value === 'function';\n}\n", "/**\n * Used to create Error subclasses until the community moves away from ES5.\n *\n * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors\n * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123\n *\n * @param createImpl A factory function to create the actual constructor implementation. The returned\n * function should be a named function that calls `_super` internally.\n */\nexport function createErrorClass<T>(createImpl: (_super: any) => any): T {\n  const _super = (instance: any) => {\n    Error.call(instance);\n    instance.stack = new Error().stack;\n  };\n\n  const ctorFunc = createImpl(_super);\n  ctorFunc.prototype = Object.create(Error.prototype);\n  ctorFunc.prototype.constructor = ctorFunc;\n  return ctorFunc;\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface UnsubscriptionError extends Error {\n  readonly errors: any[];\n}\n\nexport interface UnsubscriptionErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (errors: any[]): UnsubscriptionError;\n}\n\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nexport const UnsubscriptionError: UnsubscriptionErrorCtor = createErrorClass(\n  (_super) =>\n    function UnsubscriptionErrorImpl(this: any, errors: (Error | string)[]) {\n      _super(this);\n      this.message = errors\n        ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n  ')}`\n        : '';\n      this.name = 'UnsubscriptionError';\n      this.errors = errors;\n    }\n);\n", "/**\n * Removes an item from an array, mutating it.\n * @param arr The array to remove the item from\n * @param item The item to remove\n */\nexport function arrRemove<T>(arr: T[] | undefined | null, item: T) {\n  if (arr) {\n    const index = arr.indexOf(item);\n    0 <= index && arr.splice(index, 1);\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { SubscriptionLike, TeardownLogic, Unsubscribable } from './types';\nimport { arrRemove } from './util/arrRemove';\n\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nexport class Subscription implements SubscriptionLike {\n  /** @nocollapse */\n  public static EMPTY = (() => {\n    const empty = new Subscription();\n    empty.closed = true;\n    return empty;\n  })();\n\n  /**\n   * A flag to indicate whether this Subscription has already been unsubscribed.\n   */\n  public closed = false;\n\n  private _parentage: Subscription[] | Subscription | null = null;\n\n  /**\n   * The list of registered finalizers to execute upon unsubscription. Adding and removing from this\n   * list occurs in the {@link #add} and {@link #remove} methods.\n   */\n  private _finalizers: Exclude<TeardownLogic, void>[] | null = null;\n\n  /**\n   * @param initialTeardown A function executed first as part of the finalization\n   * process that is kicked off when {@link #unsubscribe} is called.\n   */\n  constructor(private initialTeardown?: () => void) {}\n\n  /**\n   * Disposes the resources held by the subscription. May, for instance, cancel\n   * an ongoing Observable execution or cancel any other type of work that\n   * started when the Subscription was created.\n   * @return {void}\n   */\n  unsubscribe(): void {\n    let errors: any[] | undefined;\n\n    if (!this.closed) {\n      this.closed = true;\n\n      // Remove this from it's parents.\n      const { _parentage } = this;\n      if (_parentage) {\n        this._parentage = null;\n        if (Array.isArray(_parentage)) {\n          for (const parent of _parentage) {\n            parent.remove(this);\n          }\n        } else {\n          _parentage.remove(this);\n        }\n      }\n\n      const { initialTeardown: initialFinalizer } = this;\n      if (isFunction(initialFinalizer)) {\n        try {\n          initialFinalizer();\n        } catch (e) {\n          errors = e instanceof UnsubscriptionError ? e.errors : [e];\n        }\n      }\n\n      const { _finalizers } = this;\n      if (_finalizers) {\n        this._finalizers = null;\n        for (const finalizer of _finalizers) {\n          try {\n            execFinalizer(finalizer);\n          } catch (err) {\n            errors = errors ?? [];\n            if (err instanceof UnsubscriptionError) {\n              errors = [...errors, ...err.errors];\n            } else {\n              errors.push(err);\n            }\n          }\n        }\n      }\n\n      if (errors) {\n        throw new UnsubscriptionError(errors);\n      }\n    }\n  }\n\n  /**\n   * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called\n   * when this subscription is unsubscribed. If this subscription is already {@link #closed},\n   * because it has already been unsubscribed, then whatever finalizer is passed to it\n   * will automatically be executed (unless the finalizer itself is also a closed subscription).\n   *\n   * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed\n   * subscription to a any subscription will result in no operation. (A noop).\n   *\n   * Adding a subscription to itself, or adding `null` or `undefined` will not perform any\n   * operation at all. (A noop).\n   *\n   * `Subscription` instances that are added to this instance will automatically remove themselves\n   * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove\n   * will need to be removed manually with {@link #remove}\n   *\n   * @param teardown The finalization logic to add to this subscription.\n   */\n  add(teardown: TeardownLogic): void {\n    // Only add the finalizer if it's not undefined\n    // and don't add a subscription to itself.\n    if (teardown && teardown !== this) {\n      if (this.closed) {\n        // If this subscription is already closed,\n        // execute whatever finalizer is handed to it automatically.\n        execFinalizer(teardown);\n      } else {\n        if (teardown instanceof Subscription) {\n          // We don't add closed subscriptions, and we don't add the same subscription\n          // twice. Subscription unsubscribe is idempotent.\n          if (teardown.closed || teardown._hasParent(this)) {\n            return;\n          }\n          teardown._addParent(this);\n        }\n        (this._finalizers = this._finalizers ?? []).push(teardown);\n      }\n    }\n  }\n\n  /**\n   * Checks to see if a this subscription already has a particular parent.\n   * This will signal that this subscription has already been added to the parent in question.\n   * @param parent the parent to check for\n   */\n  private _hasParent(parent: Subscription) {\n    const { _parentage } = this;\n    return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n  }\n\n  /**\n   * Adds a parent to this subscription so it can be removed from the parent if it\n   * unsubscribes on it's own.\n   *\n   * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.\n   * @param parent The parent subscription to add\n   */\n  private _addParent(parent: Subscription) {\n    const { _parentage } = this;\n    this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n  }\n\n  /**\n   * Called on a child when it is removed via {@link #remove}.\n   * @param parent The parent to remove\n   */\n  private _removeParent(parent: Subscription) {\n    const { _parentage } = this;\n    if (_parentage === parent) {\n      this._parentage = null;\n    } else if (Array.isArray(_parentage)) {\n      arrRemove(_parentage, parent);\n    }\n  }\n\n  /**\n   * Removes a finalizer from this subscription that was previously added with the {@link #add} method.\n   *\n   * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves\n   * from every other `Subscription` they have been added to. This means that using the `remove` method\n   * is not a common thing and should be used thoughtfully.\n   *\n   * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance\n   * more than once, you will need to call `remove` the same number of times to remove all instances.\n   *\n   * All finalizer instances are removed to free up memory upon unsubscription.\n   *\n   * @param teardown The finalizer to remove from this subscription\n   */\n  remove(teardown: Exclude<TeardownLogic, void>): void {\n    const { _finalizers } = this;\n    _finalizers && arrRemove(_finalizers, teardown);\n\n    if (teardown instanceof Subscription) {\n      teardown._removeParent(this);\n    }\n  }\n}\n\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\n\nexport function isSubscription(value: any): value is Subscription {\n  return (\n    value instanceof Subscription ||\n    (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))\n  );\n}\n\nfunction execFinalizer(finalizer: Unsubscribable | (() => void)) {\n  if (isFunction(finalizer)) {\n    finalizer();\n  } else {\n    finalizer.unsubscribe();\n  }\n}\n", "import { Subscriber } from './Subscriber';\nimport { ObservableNotification } from './types';\n\n/**\n * The {@link GlobalConfig} object for RxJS. It is used to configure things\n * like how to react on unhandled errors.\n */\nexport const config: GlobalConfig = {\n  onUnhandledError: null,\n  onStoppedNotification: null,\n  Promise: undefined,\n  useDeprecatedSynchronousErrorHandling: false,\n  useDeprecatedNextContext: false,\n};\n\n/**\n * The global configuration object for RxJS, used to configure things\n * like how to react on unhandled errors. Accessible via {@link config}\n * object.\n */\nexport interface GlobalConfig {\n  /**\n   * A registration point for unhandled errors from RxJS. These are errors that\n   * cannot were not handled by consuming code in the usual subscription path. For\n   * example, if you have this configured, and you subscribe to an observable without\n   * providing an error handler, errors from that subscription will end up here. This\n   * will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onUnhandledError: ((err: any) => void) | null;\n\n  /**\n   * A registration point for notifications that cannot be sent to subscribers because they\n   * have completed, errored or have been explicitly unsubscribed. By default, next, complete\n   * and error notifications sent to stopped subscribers are noops. However, sometimes callers\n   * might want a different behavior. For example, with sources that attempt to report errors\n   * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead.\n   * This will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onStoppedNotification: ((notification: ObservableNotification<any>, subscriber: Subscriber<any>) => void) | null;\n\n  /**\n   * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach}\n   * methods.\n   *\n   * @deprecated As of version 8, RxJS will no longer support this sort of injection of a\n   * Promise constructor. If you need a Promise implementation other than native promises,\n   * please polyfill/patch Promise as you see appropriate. Will be removed in v8.\n   */\n  Promise?: PromiseConstructorLike;\n\n  /**\n   * If true, turns on synchronous error rethrowing, which is a deprecated behavior\n   * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe\n   * call in a try/catch block. It also enables producer interference, a nasty bug\n   * where a multicast can be broken for all observers by a downstream consumer with\n   * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME\n   * FOR MIGRATION REASONS.\n   *\n   * @deprecated As of version 8, RxJS will no longer support synchronous throwing\n   * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad\n   * behaviors described above. Will be removed in v8.\n   */\n  useDeprecatedSynchronousErrorHandling: boolean;\n\n  /**\n   * If true, enables an as-of-yet undocumented feature from v5: The ability to access\n   * `unsubscribe()` via `this` context in `next` functions created in observers passed\n   * to `subscribe`.\n   *\n   * This is being removed because the performance was severely problematic, and it could also cause\n   * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have\n   * their `this` context overwritten.\n   *\n   * @deprecated As of version 8, RxJS will no longer support altering the\n   * context of next functions provided as part of an observer to Subscribe. Instead,\n   * you will have access to a subscription or a signal or token that will allow you to do things like\n   * unsubscribe and test closed status. Will be removed in v8.\n   */\n  useDeprecatedNextContext: boolean;\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearTimeoutFunction = (handle: TimerHandle) => void;\n\ninterface TimeoutProvider {\n  setTimeout: SetTimeoutFunction;\n  clearTimeout: ClearTimeoutFunction;\n  delegate:\n    | {\n        setTimeout: SetTimeoutFunction;\n        clearTimeout: ClearTimeoutFunction;\n      }\n    | undefined;\n}\n\nexport const timeoutProvider: TimeoutProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setTimeout(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = timeoutProvider;\n    if (delegate?.setTimeout) {\n      return delegate.setTimeout(handler, timeout, ...args);\n    }\n    return setTimeout(handler, timeout, ...args);\n  },\n  clearTimeout(handle) {\n    const { delegate } = timeoutProvider;\n    return (delegate?.clearTimeout || clearTimeout)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\n\n/**\n * Handles an error on another job either with the user-configured {@link onUnhandledError},\n * or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc.\n *\n * This should be called whenever there is an error that is out-of-band with the subscription\n * or when an error hits a terminal boundary of the subscription and no error handler was provided.\n *\n * @param err the error to report\n */\nexport function reportUnhandledError(err: any) {\n  timeoutProvider.setTimeout(() => {\n    const { onUnhandledError } = config;\n    if (onUnhandledError) {\n      // Execute the user-configured error handler.\n      onUnhandledError(err);\n    } else {\n      // Throw so it is picked up by the runtime's uncaught error mechanism.\n      throw err;\n    }\n  });\n}\n", "/* tslint:disable:no-empty */\nexport function noop() { }\n", "import { CompleteNotification, NextNotification, ErrorNotification } from './types';\n\n/**\n * A completion object optimized for memory use and created to be the\n * same \"shape\" as other notifications in v8.\n * @internal\n */\nexport const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined) as CompleteNotification)();\n\n/**\n * Internal use only. Creates an optimized error notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function errorNotification(error: any): ErrorNotification {\n  return createNotification('E', undefined, error) as any;\n}\n\n/**\n * Internal use only. Creates an optimized next notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function nextNotification<T>(value: T) {\n  return createNotification('N', value, undefined) as NextNotification<T>;\n}\n\n/**\n * Ensures that all notifications created internally have the same \"shape\" in v8.\n *\n * TODO: This is only exported to support a crazy legacy test in `groupBy`.\n * @internal\n */\nexport function createNotification(kind: 'N' | 'E' | 'C', value: any, error: any) {\n  return {\n    kind,\n    value,\n    error,\n  };\n}\n", "import { config } from '../config';\n\nlet context: { errorThrown: boolean; error: any } | null = null;\n\n/**\n * Handles dealing with errors for super-gross mode. Creates a context, in which\n * any synchronously thrown errors will be passed to {@link captureError}. Which\n * will record the error such that it will be rethrown after the call back is complete.\n * TODO: Remove in v8\n * @param cb An immediately executed function.\n */\nexport function errorContext(cb: () => void) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    const isRoot = !context;\n    if (isRoot) {\n      context = { errorThrown: false, error: null };\n    }\n    cb();\n    if (isRoot) {\n      const { errorThrown, error } = context!;\n      context = null;\n      if (errorThrown) {\n        throw error;\n      }\n    }\n  } else {\n    // This is the general non-deprecated path for everyone that\n    // isn't crazy enough to use super-gross mode (useDeprecatedSynchronousErrorHandling)\n    cb();\n  }\n}\n\n/**\n * Captures errors only in super-gross mode.\n * @param err the error to capture\n */\nexport function captureError(err: any) {\n  if (config.useDeprecatedSynchronousErrorHandling && context) {\n    context.errorThrown = true;\n    context.error = err;\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { Observer, ObservableNotification } from './types';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\n\n/**\n * Implements the {@link Observer} interface and extends the\n * {@link Subscription} class. While the {@link Observer} is the public API for\n * consuming the values of an {@link Observable}, all Observers get converted to\n * a Subscriber, in order to provide Subscription-like capabilities such as\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\n * implementing operators, but it is rarely used as a public API.\n *\n * @class Subscriber<T>\n */\nexport class Subscriber<T> extends Subscription implements Observer<T> {\n  /**\n   * A static factory for a Subscriber, given a (potentially partial) definition\n   * of an Observer.\n   * @param next The `next` callback of an Observer.\n   * @param error The `error` callback of an\n   * Observer.\n   * @param complete The `complete` callback of an\n   * Observer.\n   * @return A Subscriber wrapping the (partially defined)\n   * Observer represented by the given arguments.\n   * @nocollapse\n   * @deprecated Do not use. Will be removed in v8. There is no replacement for this\n   * method, and there is no reason to be creating instances of `Subscriber` directly.\n   * If you have a specific use case, please file an issue.\n   */\n  static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T> {\n    return new SafeSubscriber(next, error, complete);\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected isStopped: boolean = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected destination: Subscriber<any> | Observer<any>; // this `any` is the escape hatch to erase extra type param (e.g. R)\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.\n   */\n  constructor(destination?: Subscriber<any> | Observer<any>) {\n    super();\n    if (destination) {\n      this.destination = destination;\n      // Automatically chain subscriptions together here.\n      // if destination is a Subscription, then it is a Subscriber.\n      if (isSubscription(destination)) {\n        destination.add(this);\n      }\n    } else {\n      this.destination = EMPTY_OBSERVER;\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `next` from\n   * the Observable, with a value. The Observable may call this method 0 or more\n   * times.\n   * @param {T} [value] The `next` value.\n   * @return {void}\n   */\n  next(value?: T): void {\n    if (this.isStopped) {\n      handleStoppedNotification(nextNotification(value), this);\n    } else {\n      this._next(value!);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `error` from\n   * the Observable, with an attached `Error`. Notifies the Observer that\n   * the Observable has experienced an error condition.\n   * @param {any} [err] The `error` exception.\n   * @return {void}\n   */\n  error(err?: any): void {\n    if (this.isStopped) {\n      handleStoppedNotification(errorNotification(err), this);\n    } else {\n      this.isStopped = true;\n      this._error(err);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive a valueless notification of type\n   * `complete` from the Observable. Notifies the Observer that the Observable\n   * has finished sending push-based notifications.\n   * @return {void}\n   */\n  complete(): void {\n    if (this.isStopped) {\n      handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n    } else {\n      this.isStopped = true;\n      this._complete();\n    }\n  }\n\n  unsubscribe(): void {\n    if (!this.closed) {\n      this.isStopped = true;\n      super.unsubscribe();\n      this.destination = null!;\n    }\n  }\n\n  protected _next(value: T): void {\n    this.destination.next(value);\n  }\n\n  protected _error(err: any): void {\n    try {\n      this.destination.error(err);\n    } finally {\n      this.unsubscribe();\n    }\n  }\n\n  protected _complete(): void {\n    try {\n      this.destination.complete();\n    } finally {\n      this.unsubscribe();\n    }\n  }\n}\n\n/**\n * This bind is captured here because we want to be able to have\n * compatibility with monoid libraries that tend to use a method named\n * `bind`. In particular, a library called Monio requires this.\n */\nconst _bind = Function.prototype.bind;\n\nfunction bind<Fn extends (...args: any[]) => any>(fn: Fn, thisArg: any): Fn {\n  return _bind.call(fn, thisArg);\n}\n\n/**\n * Internal optimization only, DO NOT EXPOSE.\n * @internal\n */\nclass ConsumerObserver<T> implements Observer<T> {\n  constructor(private partialObserver: Partial<Observer<T>>) {}\n\n  next(value: T): void {\n    const { partialObserver } = this;\n    if (partialObserver.next) {\n      try {\n        partialObserver.next(value);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n\n  error(err: any): void {\n    const { partialObserver } = this;\n    if (partialObserver.error) {\n      try {\n        partialObserver.error(err);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    } else {\n      handleUnhandledError(err);\n    }\n  }\n\n  complete(): void {\n    const { partialObserver } = this;\n    if (partialObserver.complete) {\n      try {\n        partialObserver.complete();\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n}\n\nexport class SafeSubscriber<T> extends Subscriber<T> {\n  constructor(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((e?: any) => void) | null,\n    complete?: (() => void) | null\n  ) {\n    super();\n\n    let partialObserver: Partial<Observer<T>>;\n    if (isFunction(observerOrNext) || !observerOrNext) {\n      // The first argument is a function, not an observer. The next\n      // two arguments *could* be observers, or they could be empty.\n      partialObserver = {\n        next: (observerOrNext ?? undefined) as (((value: T) => void) | undefined),\n        error: error ?? undefined,\n        complete: complete ?? undefined,\n      };\n    } else {\n      // The first argument is a partial observer.\n      let context: any;\n      if (this && config.useDeprecatedNextContext) {\n        // This is a deprecated path that made `this.unsubscribe()` available in\n        // next handler functions passed to subscribe. This only exists behind a flag\n        // now, as it is *very* slow.\n        context = Object.create(observerOrNext);\n        context.unsubscribe = () => this.unsubscribe();\n        partialObserver = {\n          next: observerOrNext.next && bind(observerOrNext.next, context),\n          error: observerOrNext.error && bind(observerOrNext.error, context),\n          complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n        };\n      } else {\n        // The \"normal\" path. Just use the partial observer directly.\n        partialObserver = observerOrNext;\n      }\n    }\n\n    // Wrap the partial observer to ensure it's a full observer, and\n    // make sure proper error handling is accounted for.\n    this.destination = new ConsumerObserver(partialObserver);\n  }\n}\n\nfunction handleUnhandledError(error: any) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    captureError(error);\n  } else {\n    // Ideal path, we report this as an unhandled error,\n    // which is thrown on a new call stack.\n    reportUnhandledError(error);\n  }\n}\n\n/**\n * An error handler used when no error handler was supplied\n * to the SafeSubscriber -- meaning no error handler was supplied\n * do the `subscribe` call on our observable.\n * @param err The error to handle\n */\nfunction defaultErrorHandler(err: any) {\n  throw err;\n}\n\n/**\n * A handler for notifications that cannot be sent to a stopped subscriber.\n * @param notification The notification being sent\n * @param subscriber The stopped subscriber\n */\nfunction handleStoppedNotification(notification: ObservableNotification<any>, subscriber: Subscriber<any>) {\n  const { onStoppedNotification } = config;\n  onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\n\n/**\n * The observer used as a stub for subscriptions where the user did not\n * pass any arguments to `subscribe`. Comes with the default error handling\n * behavior.\n */\nexport const EMPTY_OBSERVER: Readonly<Observer<any>> & { closed: true } = {\n  closed: true,\n  next: noop,\n  error: defaultErrorHandler,\n  complete: noop,\n};\n", "/**\n * Symbol.observable or a string \"@@observable\". Used for interop\n *\n * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS.\n * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable\n */\nexport const observable: string | symbol = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n", "/**\n * This function takes one parameter and just returns it. Simply put,\n * this is like `<T>(x: T): T => x`.\n *\n * ## Examples\n *\n * This is useful in some cases when using things like `mergeMap`\n *\n * ```ts\n * import { interval, take, map, range, mergeMap, identity } from 'rxjs';\n *\n * const source$ = interval(1000).pipe(take(5));\n *\n * const result$ = source$.pipe(\n *   map(i => range(i)),\n *   mergeMap(identity) // same as mergeMap(x => x)\n * );\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * Or when you want to selectively apply an operator\n *\n * ```ts\n * import { interval, take, identity } from 'rxjs';\n *\n * const shouldLimit = () => Math.random() < 0.5;\n *\n * const source$ = interval(1000);\n *\n * const result$ = source$.pipe(shouldLimit() ? take(5) : identity);\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * @param x Any value that is returned by this function\n * @returns The value passed as the first parameter to this function\n */\nexport function identity<T>(x: T): T {\n  return x;\n}\n", "import { identity } from './identity';\nimport { UnaryFunction } from '../types';\n\nexport function pipe(): typeof identity;\nexport function pipe<T, A>(fn1: UnaryFunction<T, A>): UnaryFunction<T, A>;\nexport function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>): UnaryFunction<T, B>;\nexport function pipe<T, A, B, C>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>): UnaryFunction<T, C>;\nexport function pipe<T, A, B, C, D>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>\n): UnaryFunction<T, D>;\nexport function pipe<T, A, B, C, D, E>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>\n): UnaryFunction<T, E>;\nexport function pipe<T, A, B, C, D, E, F>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>\n): UnaryFunction<T, F>;\nexport function pipe<T, A, B, C, D, E, F, G>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>\n): UnaryFunction<T, G>;\nexport function pipe<T, A, B, C, D, E, F, G, H>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>\n): UnaryFunction<T, H>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>\n): UnaryFunction<T, I>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>,\n  ...fns: UnaryFunction<any, any>[]\n): UnaryFunction<T, unknown>;\n\n/**\n * pipe() can be called on one or more functions, each of which can take one argument (\"UnaryFunction\")\n * and uses it to return a value.\n * It returns a function that takes one argument, passes it to the first UnaryFunction, and then\n * passes the result to the next one, passes that result to the next one, and so on.  \n */\nexport function pipe(...fns: Array<UnaryFunction<any, any>>): UnaryFunction<any, any> {\n  return pipeFromArray(fns);\n}\n\n/** @internal */\nexport function pipeFromArray<T, R>(fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {\n  if (fns.length === 0) {\n    return identity as UnaryFunction<any, any>;\n  }\n\n  if (fns.length === 1) {\n    return fns[0];\n  }\n\n  return function piped(input: T): R {\n    return fns.reduce((prev: any, fn: UnaryFunction<T, R>) => fn(prev), input as any);\n  };\n}\n", "import { Operator } from './Operator';\nimport { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription, Subscription } from './Subscription';\nimport { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A representation of any set of values over any amount of time. This is the most basic building block\n * of RxJS.\n *\n * @class Observable<T>\n */\nexport class Observable<T> implements Subscribable<T> {\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  source: Observable<any> | undefined;\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  operator: Operator<any, T> | undefined;\n\n  /**\n   * @constructor\n   * @param {Function} subscribe the function that is called when the Observable is\n   * initially subscribed to. This function is given a Subscriber, to which new values\n   * can be `next`ed, or an `error` method can be called to raise an error, or\n   * `complete` can be called to notify of a successful completion.\n   */\n  constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic) {\n    if (subscribe) {\n      this._subscribe = subscribe;\n    }\n  }\n\n  // HACK: Since TypeScript inherits static properties too, we have to\n  // fight against TypeScript here so Subject can have a different static create signature\n  /**\n   * Creates a new Observable by calling the Observable constructor\n   * @owner Observable\n   * @method create\n   * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n   * @return {Observable} a new observable\n   * @nocollapse\n   * @deprecated Use `new Observable()` instead. Will be removed in v8.\n   */\n  static create: (...args: any[]) => any = <T>(subscribe?: (subscriber: Subscriber<T>) => TeardownLogic) => {\n    return new Observable<T>(subscribe);\n  };\n\n  /**\n   * Creates a new Observable, with this Observable instance as the source, and the passed\n   * operator defined as the new observable's operator.\n   * @method lift\n   * @param operator the operator defining the operation to take on the observable\n   * @return a new observable with the Operator applied\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * If you have implemented an operator using `lift`, it is recommended that you create an\n   * operator by simply returning `new Observable()` directly. See \"Creating new operators from\n   * scratch\" section here: https://rxjs.dev/guide/operators\n   */\n  lift<R>(operator?: Operator<T, R>): Observable<R> {\n    const observable = new Observable<R>();\n    observable.source = this;\n    observable.operator = operator;\n    return observable;\n  }\n\n  subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;\n  /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\n  subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;\n  /**\n   * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.\n   *\n   * <span class=\"informal\">Use it when you have all these Observables, but still nothing is happening.</span>\n   *\n   * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It\n   * might be for example a function that you passed to Observable's constructor, but most of the time it is\n   * a library implementation, which defines what will be emitted by an Observable, and when it be will emitted. This means\n   * that calling `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often\n   * the thought.\n   *\n   * Apart from starting the execution of an Observable, this method allows you to listen for values\n   * that an Observable emits, as well as for when it completes or errors. You can achieve this in two\n   * of the following ways.\n   *\n   * The first way is creating an object that implements {@link Observer} interface. It should have methods\n   * defined by that interface, but note that it should be just a regular JavaScript object, which you can create\n   * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular, do\n   * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also\n   * that your object does not have to implement all methods. If you find yourself creating a method that doesn't\n   * do anything, you can simply omit it. Note however, if the `error` method is not provided and an error happens,\n   * it will be thrown asynchronously. Errors thrown asynchronously cannot be caught using `try`/`catch`. Instead,\n   * use the {@link onUnhandledError} configuration option or use a runtime handler (like `window.onerror` or\n   * `process.on('error)`) to be notified of unhandled errors. Because of this, it's recommended that you provide\n   * an `error` method to avoid missing thrown errors.\n   *\n   * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods.\n   * This means you can provide three functions as arguments to `subscribe`, where the first function is equivalent\n   * of a `next` method, the second of an `error` method and the third of a `complete` method. Just as in case of an Observer,\n   * if you do not need to listen for something, you can omit a function by passing `undefined` or `null`,\n   * since `subscribe` recognizes these functions by where they were placed in function call. When it comes\n   * to the `error` function, as with an Observer, if not provided, errors emitted by an Observable will be thrown asynchronously.\n   *\n   * You can, however, subscribe with no parameters at all. This may be the case where you're not interested in terminal events\n   * and you also handled emissions internally by using operators (e.g. using `tap`).\n   *\n   * Whichever style of calling `subscribe` you use, in both cases it returns a Subscription object.\n   * This object allows you to call `unsubscribe` on it, which in turn will stop the work that an Observable does and will clean\n   * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback\n   * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable.\n   *\n   * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously.\n   * It is an Observable itself that decides when these functions will be called. For example {@link of}\n   * by default emits all its values synchronously. Always check documentation for how given Observable\n   * will behave when subscribed and if its default behavior can be modified with a `scheduler`.\n   *\n   * #### Examples\n   *\n   * Subscribe with an {@link guide/observer Observer}\n   *\n   * ```ts\n   * import { of } from 'rxjs';\n   *\n   * const sumObserver = {\n   *   sum: 0,\n   *   next(value) {\n   *     console.log('Adding: ' + value);\n   *     this.sum = this.sum + value;\n   *   },\n   *   error() {\n   *     // We actually could just remove this method,\n   *     // since we do not really care about errors right now.\n   *   },\n   *   complete() {\n   *     console.log('Sum equals: ' + this.sum);\n   *   }\n   * };\n   *\n   * of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes.\n   *   .subscribe(sumObserver);\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Subscribe with functions ({@link deprecations/subscribe-arguments deprecated})\n   *\n   * ```ts\n   * import { of } from 'rxjs'\n   *\n   * let sum = 0;\n   *\n   * of(1, 2, 3).subscribe(\n   *   value => {\n   *     console.log('Adding: ' + value);\n   *     sum = sum + value;\n   *   },\n   *   undefined,\n   *   () => console.log('Sum equals: ' + sum)\n   * );\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Cancel a subscription\n   *\n   * ```ts\n   * import { interval } from 'rxjs';\n   *\n   * const subscription = interval(1000).subscribe({\n   *   next(num) {\n   *     console.log(num)\n   *   },\n   *   complete() {\n   *     // Will not be called, even when cancelling subscription.\n   *     console.log('completed!');\n   *   }\n   * });\n   *\n   * setTimeout(() => {\n   *   subscription.unsubscribe();\n   *   console.log('unsubscribed!');\n   * }, 2500);\n   *\n   * // Logs:\n   * // 0 after 1s\n   * // 1 after 2s\n   * // 'unsubscribed!' after 2.5s\n   * ```\n   *\n   * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called,\n   * or the first of three possible handlers, which is the handler for each value emitted from the subscribed\n   * Observable.\n   * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided,\n   * the error will be thrown asynchronously as unhandled.\n   * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion.\n   * @return {Subscription} a subscription reference to the registered handlers\n   * @method subscribe\n   */\n  subscribe(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((error: any) => void) | null,\n    complete?: (() => void) | null\n  ): Subscription {\n    const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n\n    errorContext(() => {\n      const { operator, source } = this;\n      subscriber.add(\n        operator\n          ? // We're dealing with a subscription in the\n            // operator chain to one of our lifted operators.\n            operator.call(subscriber, source)\n          : source\n          ? // If `source` has a value, but `operator` does not, something that\n            // had intimate knowledge of our API, like our `Subject`, must have\n            // set it. We're going to just call `_subscribe` directly.\n            this._subscribe(subscriber)\n          : // In all other cases, we're likely wrapping a user-provided initializer\n            // function, so we need to catch errors and handle them appropriately.\n            this._trySubscribe(subscriber)\n      );\n    });\n\n    return subscriber;\n  }\n\n  /** @internal */\n  protected _trySubscribe(sink: Subscriber<T>): TeardownLogic {\n    try {\n      return this._subscribe(sink);\n    } catch (err) {\n      // We don't need to return anything in this case,\n      // because it's just going to try to `add()` to a subscription\n      // above.\n      sink.error(err);\n    }\n  }\n\n  /**\n   * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with\n   * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * #### Example\n   *\n   * ```ts\n   * import { interval, take } from 'rxjs';\n   *\n   * const source$ = interval(1000).pipe(take(4));\n   *\n   * async function getTotal() {\n   *   let total = 0;\n   *\n   *   await source$.forEach(value => {\n   *     total += value;\n   *     console.log('observable -> ' + value);\n   *   });\n   *\n   *   return total;\n   * }\n   *\n   * getTotal().then(\n   *   total => console.log('Total: ' + total)\n   * );\n   *\n   * // Expected:\n   * // 'observable -> 0'\n   * // 'observable -> 1'\n   * // 'observable -> 2'\n   * // 'observable -> 3'\n   * // 'Total: 6'\n   * ```\n   *\n   * @param next a handler for each value emitted by the observable\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   */\n  forEach(next: (value: T) => void): Promise<void>;\n\n  /**\n   * @param next a handler for each value emitted by the observable\n   * @param promiseCtor a constructor function used to instantiate the Promise\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   * @deprecated Passing a Promise constructor will no longer be available\n   * in upcoming versions of RxJS. This is because it adds weight to the library, for very\n   * little benefit. If you need this functionality, it is recommended that you either\n   * polyfill Promise, or you create an adapter to convert the returned native promise\n   * to whatever promise implementation you wanted. Will be removed in v8.\n   */\n  forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;\n\n  forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise<void> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor<void>((resolve, reject) => {\n      const subscriber = new SafeSubscriber<T>({\n        next: (value) => {\n          try {\n            next(value);\n          } catch (err) {\n            reject(err);\n            subscriber.unsubscribe();\n          }\n        },\n        error: reject,\n        complete: resolve,\n      });\n      this.subscribe(subscriber);\n    }) as Promise<void>;\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<any>): TeardownLogic {\n    return this.source?.subscribe(subscriber);\n  }\n\n  /**\n   * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n   * @method Symbol.observable\n   * @return {Observable} this instance of the observable\n   */\n  [Symbol_observable]() {\n    return this;\n  }\n\n  /* tslint:disable:max-line-length */\n  pipe(): Observable<T>;\n  pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;\n  pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;\n  pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;\n  pipe<A, B, C, D>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>\n  ): Observable<D>;\n  pipe<A, B, C, D, E>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>\n  ): Observable<E>;\n  pipe<A, B, C, D, E, F>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>\n  ): Observable<F>;\n  pipe<A, B, C, D, E, F, G>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>\n  ): Observable<G>;\n  pipe<A, B, C, D, E, F, G, H>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>\n  ): Observable<H>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>\n  ): Observable<I>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>,\n    ...operations: OperatorFunction<any, any>[]\n  ): Observable<unknown>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Used to stitch together functional operators into a chain.\n   * @method pipe\n   * @return {Observable} the Observable result of all of the operators having\n   * been called in the order they were passed in.\n   *\n   * ## Example\n   *\n   * ```ts\n   * import { interval, filter, map, scan } from 'rxjs';\n   *\n   * interval(1000)\n   *   .pipe(\n   *     filter(x => x % 2 === 0),\n   *     map(x => x + x),\n   *     scan((acc, x) => acc + x)\n   *   )\n   *   .subscribe(x => console.log(x));\n   * ```\n   */\n  pipe(...operations: OperatorFunction<any, any>[]): Observable<any> {\n    return pipeFromArray(operations)(this);\n  }\n\n  /* tslint:disable:max-line-length */\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Subscribe to this Observable and get a Promise resolving on\n   * `complete` with the last emission (if any).\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * @method toPromise\n   * @param [promiseCtor] a constructor function used to instantiate\n   * the Promise\n   * @return A Promise that resolves with the last value emit, or\n   * rejects on an error. If there were no emissions, Promise\n   * resolves with undefined.\n   * @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise\n   */\n  toPromise(promiseCtor?: PromiseConstructorLike): Promise<T | undefined> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor((resolve, reject) => {\n      let value: T | undefined;\n      this.subscribe(\n        (x: T) => (value = x),\n        (err: any) => reject(err),\n        () => resolve(value)\n      );\n    }) as Promise<T | undefined>;\n  }\n}\n\n/**\n * Decides between a passed promise constructor from consuming code,\n * A default configured promise constructor, and the native promise\n * constructor and returns it. If nothing can be found, it will throw\n * an error.\n * @param promiseCtor The optional promise constructor to passed by consuming code\n */\nfunction getPromiseCtor(promiseCtor: PromiseConstructorLike | undefined) {\n  return promiseCtor ?? config.Promise ?? Promise;\n}\n\nfunction isObserver<T>(value: any): value is Observer<T> {\n  return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\n\nfunction isSubscriber<T>(value: any): value is Subscriber<T> {\n  return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../types';\nimport { isFunction } from './isFunction';\n\n/**\n * Used to determine if an object is an Observable with a lift function.\n */\nexport function hasLift(source: any): source is { lift: InstanceType<typeof Observable>['lift'] } {\n  return isFunction(source?.lift);\n}\n\n/**\n * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way.\n * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription.\n */\nexport function operate<T, R>(\n  init: (liftedSource: Observable<T>, subscriber: Subscriber<R>) => (() => void) | void\n): OperatorFunction<T, R> {\n  return (source: Observable<T>) => {\n    if (hasLift(source)) {\n      return source.lift(function (this: Subscriber<R>, liftedSource: Observable<T>) {\n        try {\n          return init(liftedSource, this);\n        } catch (err) {\n          this.error(err);\n        }\n      });\n    }\n    throw new TypeError('Unable to lift unknown Observable type');\n  };\n}\n", "import { Subscriber } from '../Subscriber';\n\n/**\n * Creates an instance of an `OperatorSubscriber`.\n * @param destination The downstream subscriber.\n * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n * and send to the `destination` error handler.\n * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n * this handler are sent to the `destination` error handler.\n * @param onFinalize Additional teardown logic here. This will only be called on teardown if the\n * subscriber itself is not already closed. This is called after all other teardown logic is executed.\n */\nexport function createOperatorSubscriber<T>(\n  destination: Subscriber<any>,\n  onNext?: (value: T) => void,\n  onComplete?: () => void,\n  onError?: (err: any) => void,\n  onFinalize?: () => void\n): Subscriber<T> {\n  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\n\n/**\n * A generic helper for allowing operators to be created with a Subscriber and\n * use closures to capture necessary state from the operator function itself.\n */\nexport class OperatorSubscriber<T> extends Subscriber<T> {\n  /**\n   * Creates an instance of an `OperatorSubscriber`.\n   * @param destination The downstream subscriber.\n   * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n   * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n   * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n   * and send to the `destination` error handler.\n   * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n   * this handler are sent to the `destination` error handler.\n   * @param onFinalize Additional finalization logic here. This will only be called on finalization if the\n   * subscriber itself is not already closed. This is called after all other finalization logic is executed.\n   * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe.\n   * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription\n   * to the resulting observable does not actually disconnect from the source if there are active subscriptions\n   * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!)\n   */\n  constructor(\n    destination: Subscriber<any>,\n    onNext?: (value: T) => void,\n    onComplete?: () => void,\n    onError?: (err: any) => void,\n    private onFinalize?: () => void,\n    private shouldUnsubscribe?: () => boolean\n  ) {\n    // It's important - for performance reasons - that all of this class's\n    // members are initialized and that they are always initialized in the same\n    // order. This will ensure that all OperatorSubscriber instances have the\n    // same hidden class in V8. This, in turn, will help keep the number of\n    // hidden classes involved in property accesses within the base class as\n    // low as possible. If the number of hidden classes involved exceeds four,\n    // the property accesses will become megamorphic and performance penalties\n    // will be incurred - i.e. inline caches won't be used.\n    //\n    // The reasons for ensuring all instances have the same hidden class are\n    // further discussed in this blog post from Benedikt Meurer:\n    // https://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/\n    super(destination);\n    this._next = onNext\n      ? function (this: OperatorSubscriber<T>, value: T) {\n          try {\n            onNext(value);\n          } catch (err) {\n            destination.error(err);\n          }\n        }\n      : super._next;\n    this._error = onError\n      ? function (this: OperatorSubscriber<T>, err: any) {\n          try {\n            onError(err);\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._error;\n    this._complete = onComplete\n      ? function (this: OperatorSubscriber<T>) {\n          try {\n            onComplete();\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._complete;\n  }\n\n  unsubscribe() {\n    if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n      const { closed } = this;\n      super.unsubscribe();\n      // Execute additional teardown if we have any and we didn't already do so.\n      !closed && this.onFinalize?.();\n    }\n  }\n}\n", "import { Subscription } from '../Subscription';\n\ninterface AnimationFrameProvider {\n  schedule(callback: FrameRequestCallback): Subscription;\n  requestAnimationFrame: typeof requestAnimationFrame;\n  cancelAnimationFrame: typeof cancelAnimationFrame;\n  delegate:\n    | {\n        requestAnimationFrame: typeof requestAnimationFrame;\n        cancelAnimationFrame: typeof cancelAnimationFrame;\n      }\n    | undefined;\n}\n\nexport const animationFrameProvider: AnimationFrameProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  schedule(callback) {\n    let request = requestAnimationFrame;\n    let cancel: typeof cancelAnimationFrame | undefined = cancelAnimationFrame;\n    const { delegate } = animationFrameProvider;\n    if (delegate) {\n      request = delegate.requestAnimationFrame;\n      cancel = delegate.cancelAnimationFrame;\n    }\n    const handle = request((timestamp) => {\n      // Clear the cancel function. The request has been fulfilled, so\n      // attempting to cancel the request upon unsubscription would be\n      // pointless.\n      cancel = undefined;\n      callback(timestamp);\n    });\n    return new Subscription(() => cancel?.(handle));\n  },\n  requestAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.requestAnimationFrame || requestAnimationFrame)(...args);\n  },\n  cancelAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.cancelAnimationFrame || cancelAnimationFrame)(...args);\n  },\n  delegate: undefined,\n};\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface ObjectUnsubscribedError extends Error {}\n\nexport interface ObjectUnsubscribedErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): ObjectUnsubscribedError;\n}\n\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nexport const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass(\n  (_super) =>\n    function ObjectUnsubscribedErrorImpl(this: any) {\n      _super(this);\n      this.name = 'ObjectUnsubscribedError';\n      this.message = 'object unsubscribed';\n    }\n);\n", "import { Operator } from './Operator';\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { Observer, SubscriptionLike, TeardownLogic } from './types';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A Subject is a special type of Observable that allows values to be\n * multicasted to many Observers. Subjects are like EventEmitters.\n *\n * Every Subject is an Observable and an Observer. You can subscribe to a\n * Subject, and you can call next to feed values as well as error and complete.\n */\nexport class Subject<T> extends Observable<T> implements SubscriptionLike {\n  closed = false;\n\n  private currentObservers: Observer<T>[] | null = null;\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  observers: Observer<T>[] = [];\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  isStopped = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  hasError = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  thrownError: any = null;\n\n  /**\n   * Creates a \"subject\" by basically gluing an observer to an observable.\n   *\n   * @nocollapse\n   * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion.\n   */\n  static create: (...args: any[]) => any = <T>(destination: Observer<T>, source: Observable<T>): AnonymousSubject<T> => {\n    return new AnonymousSubject<T>(destination, source);\n  };\n\n  constructor() {\n    // NOTE: This must be here to obscure Observable's constructor.\n    super();\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  lift<R>(operator: Operator<T, R>): Observable<R> {\n    const subject = new AnonymousSubject(this, this);\n    subject.operator = operator as any;\n    return subject as any;\n  }\n\n  /** @internal */\n  protected _throwIfClosed() {\n    if (this.closed) {\n      throw new ObjectUnsubscribedError();\n    }\n  }\n\n  next(value: T) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        if (!this.currentObservers) {\n          this.currentObservers = Array.from(this.observers);\n        }\n        for (const observer of this.currentObservers) {\n          observer.next(value);\n        }\n      }\n    });\n  }\n\n  error(err: any) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.hasError = this.isStopped = true;\n        this.thrownError = err;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.error(err);\n        }\n      }\n    });\n  }\n\n  complete() {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.isStopped = true;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.complete();\n        }\n      }\n    });\n  }\n\n  unsubscribe() {\n    this.isStopped = this.closed = true;\n    this.observers = this.currentObservers = null!;\n  }\n\n  get observed() {\n    return this.observers?.length > 0;\n  }\n\n  /** @internal */\n  protected _trySubscribe(subscriber: Subscriber<T>): TeardownLogic {\n    this._throwIfClosed();\n    return super._trySubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._checkFinalizedStatuses(subscriber);\n    return this._innerSubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _innerSubscribe(subscriber: Subscriber<any>) {\n    const { hasError, isStopped, observers } = this;\n    if (hasError || isStopped) {\n      return EMPTY_SUBSCRIPTION;\n    }\n    this.currentObservers = null;\n    observers.push(subscriber);\n    return new Subscription(() => {\n      this.currentObservers = null;\n      arrRemove(observers, subscriber);\n    });\n  }\n\n  /** @internal */\n  protected _checkFinalizedStatuses(subscriber: Subscriber<any>) {\n    const { hasError, thrownError, isStopped } = this;\n    if (hasError) {\n      subscriber.error(thrownError);\n    } else if (isStopped) {\n      subscriber.complete();\n    }\n  }\n\n  /**\n   * Creates a new Observable with this Subject as the source. You can do this\n   * to create custom Observer-side logic of the Subject and conceal it from\n   * code that uses the Observable.\n   * @return {Observable} Observable that the Subject casts to\n   */\n  asObservable(): Observable<T> {\n    const observable: any = new Observable<T>();\n    observable.source = this;\n    return observable;\n  }\n}\n\n/**\n * @class AnonymousSubject<T>\n */\nexport class AnonymousSubject<T> extends Subject<T> {\n  constructor(\n    /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n    public destination?: Observer<T>,\n    source?: Observable<T>\n  ) {\n    super();\n    this.source = source;\n  }\n\n  next(value: T) {\n    this.destination?.next?.(value);\n  }\n\n  error(err: any) {\n    this.destination?.error?.(err);\n  }\n\n  complete() {\n    this.destination?.complete?.();\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    return this.source?.subscribe(subscriber) ?? EMPTY_SUBSCRIPTION;\n  }\n}\n", "import { Subject } from './Subject';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\n\n/**\n * A variant of Subject that requires an initial value and emits its current\n * value whenever it is subscribed to.\n *\n * @class BehaviorSubject<T>\n */\nexport class BehaviorSubject<T> extends Subject<T> {\n  constructor(private _value: T) {\n    super();\n  }\n\n  get value(): T {\n    return this.getValue();\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    const subscription = super._subscribe(subscriber);\n    !subscription.closed && subscriber.next(this._value);\n    return subscription;\n  }\n\n  getValue(): T {\n    const { hasError, thrownError, _value } = this;\n    if (hasError) {\n      throw thrownError;\n    }\n    this._throwIfClosed();\n    return _value;\n  }\n\n  next(value: T): void {\n    super.next((this._value = value));\n  }\n}\n", "import { TimestampProvider } from '../types';\n\ninterface DateTimestampProvider extends TimestampProvider {\n  delegate: TimestampProvider | undefined;\n}\n\nexport const dateTimestampProvider: DateTimestampProvider = {\n  now() {\n    // Use the variable rather than `this` so that the function can be called\n    // without being bound to the provider.\n    return (dateTimestampProvider.delegate || Date).now();\n  },\n  delegate: undefined,\n};\n", "import { Subject } from './Subject';\nimport { TimestampProvider } from './types';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * A variant of {@link Subject} that \"replays\" old values to new subscribers by emitting them when they first subscribe.\n *\n * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`,\n * `ReplaySubject` \"observes\" values by having them passed to its `next` method. When it observes a value, it will store that\n * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor.\n *\n * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in\n * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will\n * error if it has observed an error.\n *\n * There are two main configuration items to be concerned with:\n *\n * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite.\n * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer.\n *\n * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values\n * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`.\n *\n * ### Differences with BehaviorSubject\n *\n * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions:\n *\n * 1. `BehaviorSubject` comes \"primed\" with a single value upon construction.\n * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n * @see {@link shareReplay}\n */\nexport class ReplaySubject<T> extends Subject<T> {\n  private _buffer: (T | number)[] = [];\n  private _infiniteTimeWindow = true;\n\n  /**\n   * @param bufferSize The size of the buffer to replay on subscription\n   * @param windowTime The amount of time the buffered items will stay buffered\n   * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to\n   * calculate the amount of time something has been buffered.\n   */\n  constructor(\n    private _bufferSize = Infinity,\n    private _windowTime = Infinity,\n    private _timestampProvider: TimestampProvider = dateTimestampProvider\n  ) {\n    super();\n    this._infiniteTimeWindow = _windowTime === Infinity;\n    this._bufferSize = Math.max(1, _bufferSize);\n    this._windowTime = Math.max(1, _windowTime);\n  }\n\n  next(value: T): void {\n    const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this;\n    if (!isStopped) {\n      _buffer.push(value);\n      !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n    }\n    this._trimBuffer();\n    super.next(value);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._trimBuffer();\n\n    const subscription = this._innerSubscribe(subscriber);\n\n    const { _infiniteTimeWindow, _buffer } = this;\n    // We use a copy here, so reentrant code does not mutate our array while we're\n    // emitting it to a new subscriber.\n    const copy = _buffer.slice();\n    for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n      subscriber.next(copy[i] as T);\n    }\n\n    this._checkFinalizedStatuses(subscriber);\n\n    return subscription;\n  }\n\n  private _trimBuffer() {\n    const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this;\n    // If we don't have an infinite buffer size, and we're over the length,\n    // use splice to truncate the old buffer values off. Note that we have to\n    // double the size for instances where we're not using an infinite time window\n    // because we're storing the values and the timestamps in the same array.\n    const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n    _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n\n    // Now, if we're not in an infinite time window, remove all values where the time is\n    // older than what is allowed.\n    if (!_infiniteTimeWindow) {\n      const now = _timestampProvider.now();\n      let last = 0;\n      // Search the array for the first timestamp that isn't expired and\n      // truncate the buffer up to that point.\n      for (let i = 1; i < _buffer.length && (_buffer[i] as number) <= now; i += 2) {\n        last = i;\n      }\n      last && _buffer.splice(0, last + 1);\n    }\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\nimport { SchedulerAction } from '../types';\n\n/**\n * A unit of work to be executed in a `scheduler`. An action is typically\n * created from within a {@link SchedulerLike} and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action<T> extends Subscription {\n *   new (scheduler: Scheduler, work: (state?: T) => void);\n *   schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action<T>\n */\nexport class Action<T> extends Subscription {\n  constructor(scheduler: Scheduler, work: (this: SchedulerAction<T>, state?: T) => void) {\n    super();\n  }\n  /**\n   * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed\n   * some context object, `state`. May happen at some point in the future,\n   * according to the `delay` parameter, if specified.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler.\n   * @return {void}\n   */\n  public schedule(state?: T, delay: number = 0): Subscription {\n    return this;\n  }\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearIntervalFunction = (handle: TimerHandle) => void;\n\ninterface IntervalProvider {\n  setInterval: SetIntervalFunction;\n  clearInterval: ClearIntervalFunction;\n  delegate:\n    | {\n        setInterval: SetIntervalFunction;\n        clearInterval: ClearIntervalFunction;\n      }\n    | undefined;\n}\n\nexport const intervalProvider: IntervalProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setInterval(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = intervalProvider;\n    if (delegate?.setInterval) {\n      return delegate.setInterval(handler, timeout, ...args);\n    }\n    return setInterval(handler, timeout, ...args);\n  },\n  clearInterval(handle) {\n    const { delegate } = intervalProvider;\n    return (delegate?.clearInterval || clearInterval)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { Action } from './Action';\nimport { SchedulerAction } from '../types';\nimport { Subscription } from '../Subscription';\nimport { AsyncScheduler } from './AsyncScheduler';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncAction<T> extends Action<T> {\n  public id: TimerHandle | undefined;\n  public state?: T;\n  // @ts-ignore: Property has no initializer and is not definitely assigned\n  public delay: number;\n  protected pending: boolean = false;\n\n  constructor(protected scheduler: AsyncScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  public schedule(state?: T, delay: number = 0): Subscription {\n    if (this.closed) {\n      return this;\n    }\n\n    // Always replace the current state with the new state.\n    this.state = state;\n\n    const id = this.id;\n    const scheduler = this.scheduler;\n\n    //\n    // Important implementation note:\n    //\n    // Actions only execute once by default, unless rescheduled from within the\n    // scheduled callback. This allows us to implement single and repeat\n    // actions via the same code path, without adding API surface area, as well\n    // as mimic traditional recursion but across asynchronous boundaries.\n    //\n    // However, JS runtimes and timers distinguish between intervals achieved by\n    // serial `setTimeout` calls vs. a single `setInterval` call. An interval of\n    // serial `setTimeout` calls can be individually delayed, which delays\n    // scheduling the next `setTimeout`, and so on. `setInterval` attempts to\n    // guarantee the interval callback will be invoked more precisely to the\n    // interval period, regardless of load.\n    //\n    // Therefore, we use `setInterval` to schedule single and repeat actions.\n    // If the action reschedules itself with the same delay, the interval is not\n    // canceled. If the action doesn't reschedule, or reschedules with a\n    // different delay, the interval will be canceled after scheduled callback\n    // execution.\n    //\n    if (id != null) {\n      this.id = this.recycleAsyncId(scheduler, id, delay);\n    }\n\n    // Set the pending flag indicating that this action has been scheduled, or\n    // has recursively rescheduled itself.\n    this.pending = true;\n\n    this.delay = delay;\n    // If this action has already an async Id, don't request a new one.\n    this.id = this.id ?? this.requestAsyncId(scheduler, this.id, delay);\n\n    return this;\n  }\n\n  protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay: number = 0): TimerHandle {\n    return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n  }\n\n  protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay: number | null = 0): TimerHandle | undefined {\n    // If this action is rescheduled with the same delay time, don't clear the interval id.\n    if (delay != null && this.delay === delay && this.pending === false) {\n      return id;\n    }\n    // Otherwise, if the action's delay time is different from the current delay,\n    // or the action has been rescheduled before it's executed, clear the interval id\n    if (id != null) {\n      intervalProvider.clearInterval(id);\n    }\n\n    return undefined;\n  }\n\n  /**\n   * Immediately executes this action and the `work` it contains.\n   * @return {any}\n   */\n  public execute(state: T, delay: number): any {\n    if (this.closed) {\n      return new Error('executing a cancelled action');\n    }\n\n    this.pending = false;\n    const error = this._execute(state, delay);\n    if (error) {\n      return error;\n    } else if (this.pending === false && this.id != null) {\n      // Dequeue if the action didn't reschedule itself. Don't call\n      // unsubscribe(), because the action could reschedule later.\n      // For example:\n      // ```\n      // scheduler.schedule(function doWork(counter) {\n      //   /* ... I'm a busy worker bee ... */\n      //   var originalAction = this;\n      //   /* wait 100ms before rescheduling the action */\n      //   setTimeout(function () {\n      //     originalAction.schedule(counter + 1);\n      //   }, 100);\n      // }, 1000);\n      // ```\n      this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n    }\n  }\n\n  protected _execute(state: T, _delay: number): any {\n    let errored: boolean = false;\n    let errorValue: any;\n    try {\n      this.work(state);\n    } catch (e) {\n      errored = true;\n      // HACK: Since code elsewhere is relying on the \"truthiness\" of the\n      // return here, we can't have it return \"\" or 0 or false.\n      // TODO: Clean this up when we refactor schedulers mid-version-8 or so.\n      errorValue = e ? e : new Error('Scheduled action threw falsy error');\n    }\n    if (errored) {\n      this.unsubscribe();\n      return errorValue;\n    }\n  }\n\n  unsubscribe() {\n    if (!this.closed) {\n      const { id, scheduler } = this;\n      const { actions } = scheduler;\n\n      this.work = this.state = this.scheduler = null!;\n      this.pending = false;\n\n      arrRemove(actions, this);\n      if (id != null) {\n        this.id = this.recycleAsyncId(scheduler, id, null);\n      }\n\n      this.delay = null!;\n      super.unsubscribe();\n    }\n  }\n}\n", "import { Action } from './scheduler/Action';\nimport { Subscription } from './Subscription';\nimport { SchedulerLike, SchedulerAction } from './types';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an `Action`.\n *\n * ```ts\n * class Scheduler {\n *   now(): number;\n *   schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n * @deprecated Scheduler is an internal implementation detail of RxJS, and\n * should not be used directly. Rather, create your own class and implement\n * {@link SchedulerLike}. Will be made internal in v8.\n */\nexport class Scheduler implements SchedulerLike {\n  public static now: () => number = dateTimestampProvider.now;\n\n  constructor(private schedulerActionCtor: typeof Action, now: () => number = Scheduler.now) {\n    this.now = now;\n  }\n\n  /**\n   * A getter method that returns a number representing the current time\n   * (at the time this function was called) according to the scheduler's own\n   * internal clock.\n   * @return {number} A number that represents the current time. May or may not\n   * have a relation to wall-clock time. May or may not refer to a time unit\n   * (e.g. milliseconds).\n   */\n  public now: () => number;\n\n  /**\n   * Schedules a function, `work`, for execution. May happen at some point in\n   * the future, according to the `delay` parameter, if specified. May be passed\n   * some context object, `state`, which will be passed to the `work` function.\n   *\n   * The given arguments will be processed an stored as an Action object in a\n   * queue of actions.\n   *\n   * @param {function(state: ?T): ?Subscription} work A function representing a\n   * task, or some unit of work to be executed by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler itself.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @return {Subscription} A subscription in order to be able to unsubscribe\n   * the scheduled work.\n   */\n  public schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay: number = 0, state?: T): Subscription {\n    return new this.schedulerActionCtor<T>(this, work).schedule(state, delay);\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Action } from './Action';\nimport { AsyncAction } from './AsyncAction';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncScheduler extends Scheduler {\n  public actions: Array<AsyncAction<any>> = [];\n  /**\n   * A flag to indicate whether the Scheduler is currently executing a batch of\n   * queued actions.\n   * @type {boolean}\n   * @internal\n   */\n  public _active: boolean = false;\n  /**\n   * An internal ID used to track the latest asynchronous task such as those\n   * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n   * others.\n   * @type {any}\n   * @internal\n   */\n  public _scheduled: TimerHandle | undefined;\n\n  constructor(SchedulerAction: typeof Action, now: () => number = Scheduler.now) {\n    super(SchedulerAction, now);\n  }\n\n  public flush(action: AsyncAction<any>): void {\n    const { actions } = this;\n\n    if (this._active) {\n      actions.push(action);\n      return;\n    }\n\n    let error: any;\n    this._active = true;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions.shift()!)); // exhaust the scheduler queue\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions.shift()!)) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\n/**\n *\n * Async Scheduler\n *\n * <span class=\"informal\">Schedule task as if you used setTimeout(task, duration)</span>\n *\n * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript\n * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating\n * in intervals.\n *\n * If you just want to \"defer\" task, that is to perform it right after currently\n * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),\n * better choice will be the {@link asapScheduler} scheduler.\n *\n * ## Examples\n * Use async scheduler to delay task\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * const task = () => console.log('it works!');\n *\n * asyncScheduler.schedule(task, 2000);\n *\n * // After 2 seconds logs:\n * // \"it works!\"\n * ```\n *\n * Use async scheduler to repeat task in intervals\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * function task(state) {\n *   console.log(state);\n *   this.schedule(state + 1, 1000); // `this` references currently executing Action,\n *                                   // which we reschedule with new state and delay\n * }\n *\n * asyncScheduler.schedule(task, 3000, 0);\n *\n * // Logs:\n * // 0 after 3s\n * // 1 after 4s\n * // 2 after 5s\n * // 3 after 6s\n * ```\n */\n\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\n\n/**\n * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8.\n */\nexport const async = asyncScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { Subscription } from '../Subscription';\nimport { QueueScheduler } from './QueueScheduler';\nimport { SchedulerAction } from '../types';\nimport { TimerHandle } from './timerHandle';\n\nexport class QueueAction<T> extends AsyncAction<T> {\n  constructor(protected scheduler: QueueScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  public schedule(state?: T, delay: number = 0): Subscription {\n    if (delay > 0) {\n      return super.schedule(state, delay);\n    }\n    this.delay = delay;\n    this.state = state;\n    this.scheduler.flush(this);\n    return this;\n  }\n\n  public execute(state: T, delay: number): any {\n    return delay > 0 || this.closed ? super.execute(state, delay) : this._execute(state, delay);\n  }\n\n  protected requestAsyncId(scheduler: QueueScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n    // If delay exists and is greater than 0, or if the delay is null (the\n    // action wasn't rescheduled) but was originally scheduled as an async\n    // action, then recycle as an async action.\n\n    if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) {\n      return super.requestAsyncId(scheduler, id, delay);\n    }\n\n    // Otherwise flush the scheduler starting with this action.\n    scheduler.flush(this);\n\n    // HACK: In the past, this was returning `void`. However, `void` isn't a valid\n    // `TimerHandle`, and generally the return value here isn't really used. So the\n    // compromise is to return `0` which is both \"falsy\" and a valid `TimerHandle`,\n    // as opposed to refactoring every other instanceo of `requestAsyncId`.\n    return 0;\n  }\n}\n", "import { AsyncScheduler } from './AsyncScheduler';\n\nexport class QueueScheduler extends AsyncScheduler {\n}\n", "import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\n\n/**\n *\n * Queue Scheduler\n *\n * <span class=\"informal\">Put every next task on a queue, instead of executing it immediately</span>\n *\n * `queue` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler.\n *\n * When used without delay, it schedules given task synchronously - executes it right when\n * it is scheduled. However when called recursively, that is when inside the scheduled task,\n * another task is scheduled with queue scheduler, instead of executing immediately as well,\n * that task will be put on a queue and wait for current one to finish.\n *\n * This means that when you execute task with `queue` scheduler, you are sure it will end\n * before any other task scheduled with that scheduler will start.\n *\n * ## Examples\n * Schedule recursively first, then do something\n * ```ts\n * import { queueScheduler } from 'rxjs';\n *\n * queueScheduler.schedule(() => {\n *   queueScheduler.schedule(() => console.log('second')); // will not happen now, but will be put on a queue\n *\n *   console.log('first');\n * });\n *\n * // Logs:\n * // \"first\"\n * // \"second\"\n * ```\n *\n * Reschedule itself recursively\n * ```ts\n * import { queueScheduler } from 'rxjs';\n *\n * queueScheduler.schedule(function(state) {\n *   if (state !== 0) {\n *     console.log('before', state);\n *     this.schedule(state - 1); // `this` references currently executing Action,\n *                               // which we reschedule with new state\n *     console.log('after', state);\n *   }\n * }, 0, 3);\n *\n * // In scheduler that runs recursively, you would expect:\n * // \"before\", 3\n * // \"before\", 2\n * // \"before\", 1\n * // \"after\", 1\n * // \"after\", 2\n * // \"after\", 3\n *\n * // But with queue it logs:\n * // \"before\", 3\n * // \"after\", 3\n * // \"before\", 2\n * // \"after\", 2\n * // \"before\", 1\n * // \"after\", 1\n * ```\n */\n\nexport const queueScheduler = new QueueScheduler(QueueAction);\n\n/**\n * @deprecated Renamed to {@link queueScheduler}. Will be removed in v8.\n */\nexport const queue = queueScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nimport { SchedulerAction } from '../types';\nimport { animationFrameProvider } from './animationFrameProvider';\nimport { TimerHandle } from './timerHandle';\n\nexport class AnimationFrameAction<T> extends AsyncAction<T> {\n  constructor(protected scheduler: AnimationFrameScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n    // If delay is greater than 0, request as an async action.\n    if (delay !== null && delay > 0) {\n      return super.requestAsyncId(scheduler, id, delay);\n    }\n    // Push the action to the end of the scheduler queue.\n    scheduler.actions.push(this);\n    // If an animation frame has already been requested, don't request another\n    // one. If an animation frame hasn't been requested yet, request one. Return\n    // the current animation frame request id.\n    return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n  }\n\n  protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined {\n    // If delay exists and is greater than 0, or if the delay is null (the\n    // action wasn't rescheduled) but was originally scheduled as an async\n    // action, then recycle as an async action.\n    if (delay != null ? delay > 0 : this.delay > 0) {\n      return super.recycleAsyncId(scheduler, id, delay);\n    }\n    // If the scheduler queue has no remaining actions with the same async id,\n    // cancel the requested animation frame and set the scheduled flag to\n    // undefined so the next AnimationFrameAction will request its own.\n    const { actions } = scheduler;\n    if (id != null && actions[actions.length - 1]?.id !== id) {\n      animationFrameProvider.cancelAnimationFrame(id as number);\n      scheduler._scheduled = undefined;\n    }\n    // Return undefined so the action knows to request a new async id if it's rescheduled.\n    return undefined;\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AnimationFrameScheduler extends AsyncScheduler {\n  public flush(action?: AsyncAction<any>): void {\n    this._active = true;\n    // The async id that effects a call to flush is stored in _scheduled.\n    // Before executing an action, it's necessary to check the action's async\n    // id to determine whether it's supposed to be executed in the current\n    // flush.\n    // Previous implementations of this method used a count to determine this,\n    // but that was unsound, as actions that are unsubscribed - i.e. cancelled -\n    // are removed from the actions array and that can shift actions that are\n    // scheduled to be executed in a subsequent flush into positions at which\n    // they are executed within the current flush.\n    const flushId = this._scheduled;\n    this._scheduled = undefined;\n\n    const { actions } = this;\n    let error: any;\n    action = action || actions.shift()!;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions[0]) && action.id === flushId && actions.shift());\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n *\n * Animation Frame Scheduler\n *\n * <span class=\"informal\">Perform task when `window.requestAnimationFrame` would fire</span>\n *\n * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler\n * behaviour.\n *\n * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.\n * It makes sure scheduled task will happen just before next browser content repaint,\n * thus performing animations as efficiently as possible.\n *\n * ## Example\n * Schedule div height animation\n * ```ts\n * // html: <div style=\"background: #0ff;\"></div>\n * import { animationFrameScheduler } from 'rxjs';\n *\n * const div = document.querySelector('div');\n *\n * animationFrameScheduler.schedule(function(height) {\n *   div.style.height = height + \"px\";\n *\n *   this.schedule(height + 1);  // `this` references currently executing Action,\n *                               // which we reschedule with new state\n * }, 0, 0);\n *\n * // You will see a div element growing in height\n * ```\n */\n\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\n\n/**\n * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8.\n */\nexport const animationFrame = animationFrameScheduler;\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\n/**\n * A simple Observable that emits no items to the Observer and immediately\n * emits a complete notification.\n *\n * <span class=\"informal\">Just emits 'complete', and nothing else.</span>\n *\n * ![](empty.png)\n *\n * A simple Observable that only emits the complete notification. It can be used\n * for composing with other Observables, such as in a {@link mergeMap}.\n *\n * ## Examples\n *\n * Log complete notification\n *\n * ```ts\n * import { EMPTY } from 'rxjs';\n *\n * EMPTY.subscribe({\n *   next: () => console.log('Next'),\n *   complete: () => console.log('Complete!')\n * });\n *\n * // Outputs\n * // Complete!\n * ```\n *\n * Emit the number 7, then complete\n *\n * ```ts\n * import { EMPTY, startWith } from 'rxjs';\n *\n * const result = EMPTY.pipe(startWith(7));\n * result.subscribe(x => console.log(x));\n *\n * // Outputs\n * // 7\n * ```\n *\n * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`\n *\n * ```ts\n * import { interval, mergeMap, of, EMPTY } from 'rxjs';\n *\n * const interval$ = interval(1000);\n * const result = interval$.pipe(\n *   mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following to the console:\n * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)\n * // x will occur every 1000ms\n * // if x % 2 is equal to 1, print a, b, c (each on its own)\n * // if x % 2 is not equal to 1, nothing will be output\n * ```\n *\n * @see {@link Observable}\n * @see {@link NEVER}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const EMPTY = new Observable<never>((subscriber) => subscriber.complete());\n\n/**\n * @param scheduler A {@link SchedulerLike} to use for scheduling\n * the emission of the complete notification.\n * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.\n */\nexport function empty(scheduler?: SchedulerLike) {\n  return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\n\nfunction emptyScheduled(scheduler: SchedulerLike) {\n  return new Observable<never>((subscriber) => scheduler.schedule(() => subscriber.complete()));\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport function isScheduler(value: any): value is SchedulerLike {\n  return value && isFunction(value.schedule);\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\n\nfunction last<T>(arr: T[]): T | undefined {\n  return arr[arr.length - 1];\n}\n\nexport function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined {\n  return isFunction(last(args)) ? args.pop() : undefined;\n}\n\nexport function popScheduler(args: any[]): SchedulerLike | undefined {\n  return isScheduler(last(args)) ? args.pop() : undefined;\n}\n\nexport function popNumber(args: any[], defaultValue: number): number {\n  return typeof last(args) === 'number' ? args.pop()! : defaultValue;\n}\n", "export const isArrayLike = (<T>(x: any): x is ArrayLike<T> => x && typeof x.length === 'number' && typeof x !== 'function');", "import { isFunction } from \"./isFunction\";\n\n/**\n * Tests to see if the object is \"thennable\".\n * @param value the object to test\n */\nexport function isPromise(value: any): value is PromiseLike<any> {\n  return isFunction(value?.then);\n}\n", "import { InteropObservable } from '../types';\nimport { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being Observable (but not necessary an Rx Observable) */\nexport function isInteropObservable(input: any): input is InteropObservable<any> {\n  return isFunction(input[Symbol_observable]);\n}\n", "import { isFunction } from './isFunction';\n\nexport function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> {\n  return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]);\n}\n", "/**\n * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`.\n * @param input The object that was passed.\n */\nexport function createInvalidObservableTypeError(input: any) {\n  // TODO: We should create error codes that can be looked up, so this can be less verbose.\n  return new TypeError(\n    `You provided ${\n      input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`\n    } where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`\n  );\n}\n", "export function getSymbolIterator(): symbol {\n  if (typeof Symbol !== 'function' || !Symbol.iterator) {\n    return '@@iterator' as any;\n  }\n\n  return Symbol.iterator;\n}\n\nexport const iterator = getSymbolIterator();\n", "import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being an Iterable */\nexport function isIterable(input: any): input is Iterable<any> {\n  return isFunction(input?.[Symbol_iterator]);\n}\n", "import { ReadableStreamLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport async function* readableStreamLikeToAsyncGenerator<T>(readableStream: ReadableStreamLike<T>): AsyncGenerator<T> {\n  const reader = readableStream.getReader();\n  try {\n    while (true) {\n      const { value, done } = await reader.read();\n      if (done) {\n        return;\n      }\n      yield value!;\n    }\n  } finally {\n    reader.releaseLock();\n  }\n}\n\nexport function isReadableStreamLike<T>(obj: any): obj is ReadableStreamLike<T> {\n  // We don't want to use instanceof checks because they would return\n  // false for instances from another Realm, like an <iframe>.\n  return isFunction(obj?.getReader);\n}\n", "import { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { Subscriber } from '../Subscriber';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\n\nexport function innerFrom<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\nexport function innerFrom<T>(input: ObservableInput<T>): Observable<T> {\n  if (input instanceof Observable) {\n    return input;\n  }\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return fromInteropObservable(input);\n    }\n    if (isArrayLike(input)) {\n      return fromArrayLike(input);\n    }\n    if (isPromise(input)) {\n      return fromPromise(input);\n    }\n    if (isAsyncIterable(input)) {\n      return fromAsyncIterable(input);\n    }\n    if (isIterable(input)) {\n      return fromIterable(input);\n    }\n    if (isReadableStreamLike(input)) {\n      return fromReadableStreamLike(input);\n    }\n  }\n\n  throw createInvalidObservableTypeError(input);\n}\n\n/**\n * Creates an RxJS Observable from an object that implements `Symbol.observable`.\n * @param obj An object that properly implements `Symbol.observable`.\n */\nexport function fromInteropObservable<T>(obj: any) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    const obs = obj[Symbol_observable]();\n    if (isFunction(obs.subscribe)) {\n      return obs.subscribe(subscriber);\n    }\n    // Should be caught by observable subscribe function error handling.\n    throw new TypeError('Provided object does not correctly implement Symbol.observable');\n  });\n}\n\n/**\n * Synchronously emits the values of an array like and completes.\n * This is exported because there are creation functions and operators that need to\n * make direct use of the same logic, and there's no reason to make them run through\n * `from` conditionals because we *know* they're dealing with an array.\n * @param array The array to emit values from\n */\nexport function fromArrayLike<T>(array: ArrayLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    // Loop over the array and emit each value. Note two things here:\n    // 1. We're making sure that the subscriber is not closed on each loop.\n    //    This is so we don't continue looping over a very large array after\n    //    something like a `take`, `takeWhile`, or other synchronous unsubscription\n    //    has already unsubscribed.\n    // 2. In this form, reentrant code can alter that array we're looping over.\n    //    This is a known issue, but considered an edge case. The alternative would\n    //    be to copy the array before executing the loop, but this has\n    //    performance implications.\n    for (let i = 0; i < array.length && !subscriber.closed; i++) {\n      subscriber.next(array[i]);\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromPromise<T>(promise: PromiseLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    promise\n      .then(\n        (value) => {\n          if (!subscriber.closed) {\n            subscriber.next(value);\n            subscriber.complete();\n          }\n        },\n        (err: any) => subscriber.error(err)\n      )\n      .then(null, reportUnhandledError);\n  });\n}\n\nexport function fromIterable<T>(iterable: Iterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    for (const value of iterable) {\n      subscriber.next(value);\n      if (subscriber.closed) {\n        return;\n      }\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromAsyncIterable<T>(asyncIterable: AsyncIterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n  });\n}\n\nexport function fromReadableStreamLike<T>(readableStream: ReadableStreamLike<T>) {\n  return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\n\nasync function process<T>(asyncIterable: AsyncIterable<T>, subscriber: Subscriber<T>) {\n  for await (const value of asyncIterable) {\n    subscriber.next(value);\n    // A side-effect may have closed our subscriber,\n    // check before the next iteration.\n    if (subscriber.closed) {\n      return;\n    }\n  }\n  subscriber.complete();\n}\n", "import { Subscription } from '../Subscription';\nimport { SchedulerAction, SchedulerLike } from '../types';\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay: number,\n  repeat: true\n): void;\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay?: number,\n  repeat?: false\n): Subscription;\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay = 0,\n  repeat = false\n): Subscription | void {\n  const scheduleSubscription = scheduler.schedule(function (this: SchedulerAction<any>) {\n    work();\n    if (repeat) {\n      parentSubscription.add(this.schedule(null, delay));\n    } else {\n      this.unsubscribe();\n    }\n  }, delay);\n\n  parentSubscription.add(scheduleSubscription);\n\n  if (!repeat) {\n    // Because user-land scheduler implementations are unlikely to properly reuse\n    // Actions for repeat scheduling, we can't trust that the returned subscription\n    // will control repeat subscription scenarios. So we're trying to avoid using them\n    // incorrectly within this library.\n    return scheduleSubscription;\n  }\n}\n", "/** @prettier */\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Re-emits all notifications from source Observable with specified scheduler.\n *\n * <span class=\"informal\">Ensure a specific scheduler is used, from outside of an Observable.</span>\n *\n * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule\n * notifications emitted by the source Observable. It might be useful, if you do not have control over\n * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.\n *\n * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,\n * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal\n * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits\n * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.\n * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split\n * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source\n * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a\n * little bit more, to ensure that they are emitted at expected moments.\n *\n * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications\n * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`\n * will delay all notifications - including error notifications - while `delay` will pass through error\n * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator\n * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used\n * for notification emissions in general.\n *\n * ## Example\n *\n * Ensure values in subscribe are called just before browser repaint\n *\n * ```ts\n * import { interval, observeOn, animationFrameScheduler } from 'rxjs';\n *\n * const someDiv = document.createElement('div');\n * someDiv.style.cssText = 'width: 200px;background: #09c';\n * document.body.appendChild(someDiv);\n * const intervals = interval(10);      // Intervals are scheduled\n *                                      // with async scheduler by default...\n * intervals.pipe(\n *   observeOn(animationFrameScheduler) // ...but we will observe on animationFrame\n * )                                    // scheduler to ensure smooth animation.\n * .subscribe(val => {\n *   someDiv.style.height = val + 'px';\n * });\n * ```\n *\n * @see {@link delay}\n *\n * @param scheduler Scheduler that will be used to reschedule notifications from source Observable.\n * @param delay Number of milliseconds that states with what delay every notification should be rescheduled.\n * @return A function that returns an Observable that emits the same\n * notifications as the source Observable, but with provided scheduler.\n */\nexport function observeOn<T>(scheduler: SchedulerLike, delay = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay),\n        () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay),\n        (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}.\n *\n * With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to.\n *\n * Schedulers control the speed and order of emissions to observers from an Observable stream.\n *\n * ![](subscribeOn.png)\n *\n * ## Example\n *\n * Given the following code:\n *\n * ```ts\n * import { of, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3);\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 1\n * // 2\n * // 3\n * // 4\n * // 5\n * // 6\n * ```\n *\n * Both Observable `a` and `b` will emit their values directly and synchronously once they are subscribed to.\n *\n * If we instead use the `subscribeOn` operator declaring that we want to use the {@link asyncScheduler} for values emitted by Observable `a`:\n *\n * ```ts\n * import { of, subscribeOn, asyncScheduler, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3).pipe(subscribeOn(asyncScheduler));\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 4\n * // 5\n * // 6\n * // 1\n * // 2\n * // 3\n * ```\n *\n * The reason for this is that Observable `b` emits its values directly and synchronously like before\n * but the emissions from `a` are scheduled on the event loop because we are now using the {@link asyncScheduler} for that specific Observable.\n *\n * @param scheduler The {@link SchedulerLike} to perform subscription actions on.\n * @param delay A delay to pass to the scheduler to delay subscriptions\n * @return A function that returns an Observable modified so that its\n * subscriptions happen on the specified {@link SchedulerLike}.\n */\nexport function subscribeOn<T>(scheduler: SchedulerLike, delay: number = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { InteropObservable, SchedulerLike } from '../types';\n\nexport function scheduleObservable<T>(input: InteropObservable<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { SchedulerLike } from '../types';\n\nexport function schedulePromise<T>(input: PromiseLike<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\nexport function scheduleArray<T>(input: ArrayLike<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    // The current array index.\n    let i = 0;\n    // Start iterating over the array like on a schedule.\n    return scheduler.schedule(function () {\n      if (i === input.length) {\n        // If we have hit the end of the array like in the\n        // previous job, we can complete.\n        subscriber.complete();\n      } else {\n        // Otherwise let's next the value at the current index,\n        // then increment our index.\n        subscriber.next(input[i++]);\n        // If the last emission didn't cause us to close the subscriber\n        // (via take or some side effect), reschedule the job and we'll\n        // make another pass.\n        if (!subscriber.closed) {\n          this.schedule();\n        }\n      }\n    });\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\n\n/**\n * Used in {@link scheduled} to create an observable from an Iterable.\n * @param input The iterable to create an observable from\n * @param scheduler The scheduler to use\n */\nexport function scheduleIterable<T>(input: Iterable<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    let iterator: Iterator<T, T>;\n\n    // Schedule the initial creation of the iterator from\n    // the iterable. This is so the code in the iterable is\n    // not called until the scheduled job fires.\n    executeSchedule(subscriber, scheduler, () => {\n      // Create the iterator.\n      iterator = (input as any)[Symbol_iterator]();\n\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          let value: T;\n          let done: boolean | undefined;\n          try {\n            // Pull the value out of the iterator\n            ({ value, done } = iterator.next());\n          } catch (err) {\n            // We got an error while pulling from the iterator\n            subscriber.error(err);\n            return;\n          }\n\n          if (done) {\n            // If it is \"done\" we just complete. This mimics the\n            // behavior of JavaScript's `for..of` consumption of\n            // iterables, which will not emit the value from an iterator\n            // result of `{ done: true: value: 'here' }`.\n            subscriber.complete();\n          } else {\n            // The iterable is not done, emit the value.\n            subscriber.next(value);\n          }\n        },\n        0,\n        true\n      );\n    });\n\n    // During finalization, if we see this iterator has a `return` method,\n    // then we know it is a Generator, and not just an Iterator. So we call\n    // the `return()` function. This will ensure that any `finally { }` blocks\n    // inside of the generator we can hit will be hit properly.\n    return () => isFunction(iterator?.return) && iterator.return();\n  });\n}\n", "import { SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\n\nexport function scheduleAsyncIterable<T>(input: AsyncIterable<T>, scheduler: SchedulerLike) {\n  if (!input) {\n    throw new Error('Iterable cannot be null');\n  }\n  return new Observable<T>((subscriber) => {\n    executeSchedule(subscriber, scheduler, () => {\n      const iterator = input[Symbol.asyncIterator]();\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          iterator.next().then((result) => {\n            if (result.done) {\n              // This will remove the subscriptions from\n              // the parent subscription.\n              subscriber.complete();\n            } else {\n              subscriber.next(result.value);\n            }\n          });\n        },\n        0,\n        true\n      );\n    });\n  });\n}\n", "import { SchedulerLike, ReadableStreamLike } from '../types';\nimport { Observable } from '../Observable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\n\nexport function scheduleReadableStreamLike<T>(input: ReadableStreamLike<T>, scheduler: SchedulerLike): Observable<T> {\n  return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n", "import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\n\n/**\n * Converts from a common {@link ObservableInput} type to an observable where subscription and emissions\n * are scheduled on the provided scheduler.\n *\n * @see {@link from}\n * @see {@link of}\n *\n * @param input The observable, array, promise, iterable, etc you would like to schedule\n * @param scheduler The scheduler to use to schedule the subscription and emissions from\n * the returned observable.\n */\nexport function scheduled<T>(input: ObservableInput<T>, scheduler: SchedulerLike): Observable<T> {\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return scheduleObservable(input, scheduler);\n    }\n    if (isArrayLike(input)) {\n      return scheduleArray(input, scheduler);\n    }\n    if (isPromise(input)) {\n      return schedulePromise(input, scheduler);\n    }\n    if (isAsyncIterable(input)) {\n      return scheduleAsyncIterable(input, scheduler);\n    }\n    if (isIterable(input)) {\n      return scheduleIterable(input, scheduler);\n    }\n    if (isReadableStreamLike(input)) {\n      return scheduleReadableStreamLike(input, scheduler);\n    }\n  }\n  throw createInvalidObservableTypeError(input);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf } from '../types';\nimport { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\n\nexport function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function from<O extends ObservableInput<any>>(input: O, scheduler: SchedulerLike | undefined): Observable<ObservedValueOf<O>>;\n\n/**\n * Creates an Observable from an Array, an array-like object, a Promise, an iterable object, or an Observable-like object.\n *\n * <span class=\"informal\">Converts almost anything to an Observable.</span>\n *\n * ![](from.png)\n *\n * `from` converts various other objects and data types into Observables. It also converts a Promise, an array-like, or an\n * <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable\" target=\"_blank\">iterable</a>\n * object into an Observable that emits the items in that promise, array, or iterable. A String, in this context, is treated\n * as an array of characters. Observable-like objects (contains a function named with the ES2015 Symbol for Observable) can also be\n * converted through this operator.\n *\n * ## Examples\n *\n * Converts an array to an Observable\n *\n * ```ts\n * import { from } from 'rxjs';\n *\n * const array = [10, 20, 30];\n * const result = from(array);\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 10\n * // 20\n * // 30\n * ```\n *\n * Convert an infinite iterable (from a generator) to an Observable\n *\n * ```ts\n * import { from, take } from 'rxjs';\n *\n * function* generateDoubles(seed) {\n *    let i = seed;\n *    while (true) {\n *      yield i;\n *      i = 2 * i; // double it\n *    }\n * }\n *\n * const iterator = generateDoubles(3);\n * const result = from(iterator).pipe(take(10));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 3\n * // 6\n * // 12\n * // 24\n * // 48\n * // 96\n * // 192\n * // 384\n * // 768\n * // 1536\n * ```\n *\n * With `asyncScheduler`\n *\n * ```ts\n * import { from, asyncScheduler } from 'rxjs';\n *\n * console.log('start');\n *\n * const array = [10, 20, 30];\n * const result = from(array, asyncScheduler);\n *\n * result.subscribe(x => console.log(x));\n *\n * console.log('end');\n *\n * // Logs:\n * // 'start'\n * // 'end'\n * // 10\n * // 20\n * // 30\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link fromEventPattern}\n *\n * @param {ObservableInput<T>} A subscription object, a Promise, an Observable-like,\n * an Array, an iterable, or an array-like object to be converted.\n * @param {SchedulerLike} An optional {@link SchedulerLike} on which to schedule the emission of values.\n * @return {Observable<T>}\n */\nexport function from<T>(input: ObservableInput<T>, scheduler?: SchedulerLike): Observable<T> {\n  return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n", "import { SchedulerLike, ValueFromArray } from '../types';\nimport { Observable } from '../Observable';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function of(value: null): Observable<null>;\nexport function of(value: undefined): Observable<undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of(scheduler: SchedulerLike): Observable<never>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of<A extends readonly unknown[]>(...valuesAndScheduler: [...A, SchedulerLike]): Observable<ValueFromArray<A>>;\n\nexport function of(): Observable<never>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function of<T>(): Observable<T>;\nexport function of<T>(value: T): Observable<T>;\nexport function of<A extends readonly unknown[]>(...values: A): Observable<ValueFromArray<A>>;\n\n/**\n * Converts the arguments to an observable sequence.\n *\n * <span class=\"informal\">Each argument becomes a `next` notification.</span>\n *\n * ![](of.png)\n *\n * Unlike {@link from}, it does not do any flattening and emits each argument in whole\n * as a separate `next` notification.\n *\n * ## Examples\n *\n * Emit the values `10, 20, 30`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of(10, 20, 30)\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: 10\n * // next: 20\n * // next: 30\n * // the end\n * ```\n *\n * Emit the array `[1, 2, 3]`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of([1, 2, 3])\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: [1, 2, 3]\n * // the end\n * ```\n *\n * @see {@link from}\n * @see {@link range}\n *\n * @param {...T} values A comma separated list of arguments you want to be emitted\n * @return {Observable} An Observable that emits the arguments\n * described above and then completes.\n */\nexport function of<T>(...args: Array<T | SchedulerLike>): Observable<T> {\n  const scheduler = popScheduler(args);\n  return from(args as T[], scheduler);\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { SchedulerLike } from '../types';\nimport { isFunction } from '../util/isFunction';\n\n/**\n * Creates an observable that will create an error instance and push it to the consumer as an error\n * immediately upon subscription.\n *\n * <span class=\"informal\">Just errors and does nothing else</span>\n *\n * ![](throw.png)\n *\n * This creation function is useful for creating an observable that will create an error and error every\n * time it is subscribed to. Generally, inside of most operators when you might want to return an errored\n * observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap},\n * {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick\n * that up and notify the consumer of the error.\n *\n * ## Example\n *\n * Create a simple observable that will create a new error with a timestamp and log it\n * and the message every time you subscribe to it\n *\n * ```ts\n * import { throwError } from 'rxjs';\n *\n * let errorCount = 0;\n *\n * const errorWithTimestamp$ = throwError(() => {\n *   const error: any = new Error(`This is error number ${ ++errorCount }`);\n *   error.timestamp = Date.now();\n *   return error;\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * // Logs the timestamp and a new error message for each subscription\n * ```\n *\n * ### Unnecessary usage\n *\n * Using `throwError` inside of an operator or creation function\n * with a callback, is usually not necessary\n *\n * ```ts\n * import { of, concatMap, timer, throwError } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // This is probably overkill.\n *       return throwError(() => new Error(`Invalid time ${ ms }`));\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * You can just throw the error instead\n *\n * ```ts\n * import { of, concatMap, timer } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // Cleaner and easier to read for most folks.\n *       throw new Error(`Invalid time ${ ms }`);\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * @param errorFactory A factory function that will create the error instance that is pushed.\n */\nexport function throwError(errorFactory: () => any): Observable<never>;\n\n/**\n * Returns an observable that will error with the specified error immediately upon subscription.\n *\n * @param error The error instance to emit\n * @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is\n * because it will create the error at the moment it should be created and capture a more appropriate stack trace. If\n * for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`.\n */\nexport function throwError(error: any): Observable<never>;\n\n/**\n * Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription.\n *\n * @param errorOrErrorFactory An error instance or error factory\n * @param scheduler A scheduler to use to schedule the error notification\n * @deprecated The `scheduler` parameter will be removed in v8.\n * Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`.\n * Details: https://rxjs.dev/deprecations/scheduler-argument\n */\nexport function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable<never>;\n\nexport function throwError(errorOrErrorFactory: any, scheduler?: SchedulerLike): Observable<never> {\n  const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n  const init = (subscriber: Subscriber<never>) => subscriber.error(errorFactory());\n  return new Observable(scheduler ? (subscriber) => scheduler.schedule(init as any, 0, subscriber) : init);\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface EmptyError extends Error {}\n\nexport interface EmptyErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): EmptyError;\n}\n\n/**\n * An error thrown when an Observable or a sequence was queried but has no\n * elements.\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link single}\n * @see {@link firstValueFrom}\n * @see {@link lastValueFrom}\n *\n * @class EmptyError\n */\nexport const EmptyError: EmptyErrorCtor = createErrorClass((_super) => function EmptyErrorImpl(this: any) {\n  _super(this);\n  this.name = 'EmptyError';\n  this.message = 'no elements in sequence';\n});\n", "/**\n * Checks to see if a value is not only a `Date` object,\n * but a *valid* `Date` object that can be converted to a\n * number. For example, `new Date('blah')` is indeed an\n * `instanceof Date`, however it cannot be converted to a\n * number.\n */\nexport function isValidDate(value: any): value is Date {\n  return value instanceof Date && !isNaN(value as any);\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function map<T, R>(project: (value: T, index: number) => R): OperatorFunction<T, R>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function map<T, R, A>(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction<T, R>;\n\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * ![](map.png)\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * ## Example\n *\n * Map every click to the `clientX` position of that click\n *\n * ```ts\n * import { fromEvent, map } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const positions = clicks.pipe(map(ev => ev.clientX));\n *\n * positions.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return A function that returns an Observable that emits the values from the\n * source Observable transformed by the given `project` function.\n */\nexport function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R> {\n  return operate((source, subscriber) => {\n    // The index of the value from the source. Used with projection.\n    let index = 0;\n    // Subscribe to the source, all errors and completions are sent along\n    // to the consumer.\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value: T) => {\n        // Call the projection function with the appropriate this context,\n        // and send the resulting value to the consumer.\n        subscriber.next(project.call(thisArg, value, index++));\n      })\n    );\n  });\n}\n", "import { OperatorFunction } from \"../types\";\nimport { map } from \"../operators/map\";\n\nconst { isArray } = Array;\n\nfunction callOrApply<T, R>(fn: ((...values: T[]) => R), args: T|T[]): R {\n    return isArray(args) ? fn(...args) : fn(args);\n}\n\n/**\n * Used in several -- mostly deprecated -- situations where we need to \n * apply a list of arguments or a single argument to a result selector.\n */\nexport function mapOneOrManyArgs<T, R>(fn: ((...values: T[]) => R)): OperatorFunction<T|T[], R> {\n    return map(args => callOrApply(fn, args))\n}", "const { isArray } = Array;\nconst { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object;\n\n/**\n * Used in functions where either a list of arguments, a single array of arguments, or a\n * dictionary of arguments can be returned. Returns an object with an `args` property with\n * the arguments in an array, if it is a dictionary, it will also return the `keys` in another\n * property.\n */\nexport function argsArgArrayOrObject<T, O extends Record<string, T>>(args: T[] | [O] | [T[]]): { args: T[]; keys: string[] | null } {\n  if (args.length === 1) {\n    const first = args[0];\n    if (isArray(first)) {\n      return { args: first, keys: null };\n    }\n    if (isPOJO(first)) {\n      const keys = getKeys(first);\n      return {\n        args: keys.map((key) => first[key]),\n        keys,\n      };\n    }\n  }\n\n  return { args: args as T[], keys: null };\n}\n\nfunction isPOJO(obj: any): obj is object {\n  return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n", "export function createObject(keys: string[], values: any[]) {\n  return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { Subscriber } from '../Subscriber';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { Subscription } from '../Subscription';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { AnyCatcher } from '../AnyCatcher';\nimport { executeSchedule } from '../util/executeSchedule';\n\n// combineLatest(any)\n// We put this first because we need to catch cases where the user has supplied\n// _exactly `any`_ as the argument. Since `any` literally matches _anything_,\n// we don't want it to randomly hit one of the other type signatures below,\n// as we have no idea at build-time what type we should be returning when given an any.\n\n/**\n * You have passed `any` here, we can't figure out if it is\n * an array or an object, so you're getting `unknown`. Use better types.\n * @param arg Something typed as `any`\n */\nexport function combineLatest<T extends AnyCatcher>(arg: T): Observable<unknown>;\n\n// combineLatest([a, b, c])\nexport function combineLatest(sources: []): Observable<never>;\nexport function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R,\n  scheduler: SchedulerLike\n): Observable<R>;\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  sources: readonly [...ObservableInputTuple<A>],\n  scheduler: SchedulerLike\n): Observable<A>;\n\n// combineLatest(a, b, c)\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple<A>, (...values: A) => R, SchedulerLike]\n): Observable<R>;\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): Observable<A>;\n\n// combineLatest({a, b, c})\nexport function combineLatest(sourcesObject: { [K in any]: never }): Observable<never>;\nexport function combineLatest<T extends Record<string, ObservableInput<any>>>(\n  sourcesObject: T\n): Observable<{ [K in keyof T]: ObservedValueOf<T[K]> }>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * ![](combineLatest.png)\n *\n * `combineLatest` combines the values from all the Observables passed in the\n * observables array. This is done by subscribing to each Observable in order and,\n * whenever any Observable emits, collecting an array of the most recent\n * values from each Observable. So if you pass `n` Observables to this operator,\n * the returned Observable will always emit an array of `n` values, in an order\n * corresponding to the order of the passed Observables (the value from the first Observable\n * will be at index 0 of the array and so on).\n *\n * Static version of `combineLatest` accepts an array of Observables. Note that an array of\n * Observables is a good choice, if you don't know beforehand how many Observables\n * you will combine. Passing an empty array will result in an Observable that\n * completes immediately.\n *\n * To ensure the output array always has the same length, `combineLatest` will\n * actually wait for all input Observables to emit at least once,\n * before it starts emitting results. This means if some Observable emits\n * values before other Observables started emitting, all these values but the last\n * will be lost. On the other hand, if some Observable does not emit a value but\n * completes, resulting Observable will complete at the same moment without\n * emitting anything, since it will now be impossible to include a value from the\n * completed Observable in the resulting array. Also, if some input Observable does\n * not emit any value and never completes, `combineLatest` will also never emit\n * and never complete, since, again, it will wait for all streams to emit some\n * value.\n *\n * If at least one Observable was passed to `combineLatest` and all passed Observables\n * emitted something, the resulting Observable will complete when all combined\n * streams complete. So even if some Observable completes, the result of\n * `combineLatest` will still emit values when other Observables do. In case\n * of a completed Observable, its value from now on will always be the last\n * emitted value. On the other hand, if any Observable errors, `combineLatest`\n * will error immediately as well, and all other Observables will be unsubscribed.\n *\n * ## Examples\n *\n * Combine two timer Observables\n *\n * ```ts\n * import { timer, combineLatest } from 'rxjs';\n *\n * const firstTimer = timer(0, 1000); // emit 0, 1, 2... after every second, starting from now\n * const secondTimer = timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now\n * const combinedTimers = combineLatest([firstTimer, secondTimer]);\n * combinedTimers.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0] after 0.5s\n * // [1, 0] after 1s\n * // [1, 1] after 1.5s\n * // [2, 1] after 2s\n * ```\n *\n * Combine a dictionary of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = {\n *   a: of(1).pipe(delay(1000), startWith(0)),\n *   b: of(5).pipe(delay(5000), startWith(0)),\n *   c: of(10).pipe(delay(10000), startWith(0))\n * };\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // { a: 0, b: 0, c: 0 } immediately\n * // { a: 1, b: 0, c: 0 } after 1s\n * // { a: 1, b: 5, c: 0 } after 5s\n * // { a: 1, b: 5, c: 10 } after 10s\n * ```\n *\n * Combine an array of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = [1, 5, 10].map(\n *   n => of(n).pipe(\n *     delay(n * 1000), // emit 0 and then emit n after n seconds\n *     startWith(0)\n *   )\n * );\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0, 0] immediately\n * // [1, 0, 0] after 1s\n * // [1, 5, 0] after 5s\n * // [1, 5, 10] after 10s\n * ```\n *\n * Use map operator to dynamically calculate the Body-Mass Index\n *\n * ```ts\n * import { of, combineLatest, map } from 'rxjs';\n *\n * const weight = of(70, 72, 76, 79, 75);\n * const height = of(1.76, 1.77, 1.78);\n * const bmi = combineLatest([weight, height]).pipe(\n *   map(([w, h]) => w / (h * h)),\n * );\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {ObservableInput} [observables] An array of input Observables to combine with each other.\n * An array of Observables must be given as the first argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for subscribing to\n * each input Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n */\nexport function combineLatest<O extends ObservableInput<any>, R>(...args: any[]): Observable<R> | Observable<ObservedValueOf<O>[]> {\n  const scheduler = popScheduler(args);\n  const resultSelector = popResultSelector(args);\n\n  const { args: observables, keys } = argsArgArrayOrObject(args);\n\n  if (observables.length === 0) {\n    // If no observables are passed, or someone has passed an empty array\n    // of observables, or even an empty object POJO, we need to just\n    // complete (EMPTY), but we have to honor the scheduler provided if any.\n    return from([], scheduler as any);\n  }\n\n  const result = new Observable<ObservedValueOf<O>[]>(\n    combineLatestInit(\n      observables as ObservableInput<ObservedValueOf<O>>[],\n      scheduler,\n      keys\n        ? // A handler for scrubbing the array of args into a dictionary.\n          (values) => createObject(keys, values)\n        : // A passthrough to just return the array\n          identity\n    )\n  );\n\n  return resultSelector ? (result.pipe(mapOneOrManyArgs(resultSelector)) as Observable<R>) : result;\n}\n\nexport function combineLatestInit(\n  observables: ObservableInput<any>[],\n  scheduler?: SchedulerLike,\n  valueTransform: (values: any[]) => any = identity\n) {\n  return (subscriber: Subscriber<any>) => {\n    // The outer subscription. We're capturing this in a function\n    // because we may have to schedule it.\n    maybeSchedule(\n      scheduler,\n      () => {\n        const { length } = observables;\n        // A store for the values each observable has emitted so far. We match observable to value on index.\n        const values = new Array(length);\n        // The number of currently active subscriptions, as they complete, we decrement this number to see if\n        // we are all done combining values, so we can complete the result.\n        let active = length;\n        // The number of inner sources that still haven't emitted the first value\n        // We need to track this because all sources need to emit one value in order\n        // to start emitting values.\n        let remainingFirstValues = length;\n        // The loop to kick off subscription. We're keying everything on index `i` to relate the observables passed\n        // in to the slot in the output array or the key in the array of keys in the output dictionary.\n        for (let i = 0; i < length; i++) {\n          maybeSchedule(\n            scheduler,\n            () => {\n              const source = from(observables[i], scheduler as any);\n              let hasFirstValue = false;\n              source.subscribe(\n                createOperatorSubscriber(\n                  subscriber,\n                  (value) => {\n                    // When we get a value, record it in our set of values.\n                    values[i] = value;\n                    if (!hasFirstValue) {\n                      // If this is our first value, record that.\n                      hasFirstValue = true;\n                      remainingFirstValues--;\n                    }\n                    if (!remainingFirstValues) {\n                      // We're not waiting for any more\n                      // first values, so we can emit!\n                      subscriber.next(valueTransform(values.slice()));\n                    }\n                  },\n                  () => {\n                    if (!--active) {\n                      // We only complete the result if we have no more active\n                      // inner observables.\n                      subscriber.complete();\n                    }\n                  }\n                )\n              );\n            },\n            subscriber\n          );\n        }\n      },\n      subscriber\n    );\n  };\n}\n\n/**\n * A small utility to handle the couple of locations where we want to schedule if a scheduler was provided,\n * but we don't if there was no scheduler.\n */\nfunction maybeSchedule(scheduler: SchedulerLike | undefined, execute: () => void, subscription: Subscription) {\n  if (scheduler) {\n    executeSchedule(subscription, scheduler, execute);\n  } else {\n    execute();\n  }\n}\n", "import { Observable } from '../Observable';\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subscriber } from '../Subscriber';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A process embodying the general \"merge\" strategy. This is used in\n * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical.\n * @param source The original source observable\n * @param subscriber The consumer subscriber\n * @param project The projection function to get our inner sources\n * @param concurrent The number of concurrent inner subscriptions\n * @param onBeforeNext Additional logic to apply before nexting to our consumer\n * @param expand If `true` this will perform an \"expand\" strategy, which differs only\n * in that it recurses, and the inner subscription must be schedule-able.\n * @param innerSubScheduler A scheduler to use to schedule inner subscriptions,\n * this is to support the expand strategy, mostly, and should be deprecated\n */\nexport function mergeInternals<T, R>(\n  source: Observable<T>,\n  subscriber: Subscriber<R>,\n  project: (value: T, index: number) => ObservableInput<R>,\n  concurrent: number,\n  onBeforeNext?: (innerValue: R) => void,\n  expand?: boolean,\n  innerSubScheduler?: SchedulerLike,\n  additionalFinalizer?: () => void\n) {\n  // Buffered values, in the event of going over our concurrency limit\n  const buffer: T[] = [];\n  // The number of active inner subscriptions.\n  let active = 0;\n  // An index to pass to our accumulator function\n  let index = 0;\n  // Whether or not the outer source has completed.\n  let isComplete = false;\n\n  /**\n   * Checks to see if we can complete our result or not.\n   */\n  const checkComplete = () => {\n    // If the outer has completed, and nothing is left in the buffer,\n    // and we don't have any active inner subscriptions, then we can\n    // Emit the state and complete.\n    if (isComplete && !buffer.length && !active) {\n      subscriber.complete();\n    }\n  };\n\n  // If we're under our concurrency limit, just start the inner subscription, otherwise buffer and wait.\n  const outerNext = (value: T) => (active < concurrent ? doInnerSub(value) : buffer.push(value));\n\n  const doInnerSub = (value: T) => {\n    // If we're expanding, we need to emit the outer values and the inner values\n    // as the inners will \"become outers\" in a way as they are recursively fed\n    // back to the projection mechanism.\n    expand && subscriber.next(value as any);\n\n    // Increment the number of active subscriptions so we can track it\n    // against our concurrency limit later.\n    active++;\n\n    // A flag used to show that the inner observable completed.\n    // This is checked during finalization to see if we should\n    // move to the next item in the buffer, if there is on.\n    let innerComplete = false;\n\n    // Start our inner subscription.\n    innerFrom(project(value, index++)).subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (innerValue) => {\n          // `mergeScan` has additional handling here. For example\n          // taking the inner value and updating state.\n          onBeforeNext?.(innerValue);\n\n          if (expand) {\n            // If we're expanding, then just recurse back to our outer\n            // handler. It will emit the value first thing.\n            outerNext(innerValue as any);\n          } else {\n            // Otherwise, emit the inner value.\n            subscriber.next(innerValue);\n          }\n        },\n        () => {\n          // Flag that we have completed, so we know to check the buffer\n          // during finalization.\n          innerComplete = true;\n        },\n        // Errors are passed to the destination.\n        undefined,\n        () => {\n          // During finalization, if the inner completed (it wasn't errored or\n          // cancelled), then we want to try the next item in the buffer if\n          // there is one.\n          if (innerComplete) {\n            // We have to wrap this in a try/catch because it happens during\n            // finalization, possibly asynchronously, and we want to pass\n            // any errors that happen (like in a projection function) to\n            // the outer Subscriber.\n            try {\n              // INNER SOURCE COMPLETE\n              // Decrement the active count to ensure that the next time\n              // we try to call `doInnerSub`, the number is accurate.\n              active--;\n              // If we have more values in the buffer, try to process those\n              // Note that this call will increment `active` ahead of the\n              // next conditional, if there were any more inner subscriptions\n              // to start.\n              while (buffer.length && active < concurrent) {\n                const bufferedValue = buffer.shift()!;\n                // Particularly for `expand`, we need to check to see if a scheduler was provided\n                // for when we want to start our inner subscription. Otherwise, we just start\n                // are next inner subscription.\n                if (innerSubScheduler) {\n                  executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n                } else {\n                  doInnerSub(bufferedValue);\n                }\n              }\n              // Check to see if we can complete, and complete if so.\n              checkComplete();\n            } catch (err) {\n              subscriber.error(err);\n            }\n          }\n        }\n      )\n    );\n  };\n\n  // Subscribe to our source observable.\n  source.subscribe(\n    createOperatorSubscriber(subscriber, outerNext, () => {\n      // Outer completed, make a note of it, and check to see if we can complete everything.\n      isComplete = true;\n      checkComplete();\n    })\n  );\n\n  // Additional finalization (for when the destination is torn down).\n  // Other finalization is added implicitly via subscription above.\n  return () => {\n    additionalFinalizer?.();\n  };\n}\n", "import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\n\n/* tslint:disable:max-line-length */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R,\n  concurrent?: number\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.</span>\n *\n * ![](mergeMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * ## Example\n *\n * Map and flatten each letter to an Observable ticking every 1 second\n *\n * ```ts\n * import { of, mergeMap, interval, map } from 'rxjs';\n *\n * const letters = of('a', 'b', 'c');\n * const result = letters.pipe(\n *   mergeMap(x => interval(1000).pipe(map(i => x + i)))\n * );\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a, b, c every second with respective ascending integers\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and merging\n * the results of the Observables obtained from this transformation.\n */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R) | number,\n  concurrent: number = Infinity\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  if (isFunction(resultSelector)) {\n    // DEPRECATED PATH\n    return mergeMap((a, i) => map((b: any, ii: number) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n  } else if (typeof resultSelector === 'number') {\n    concurrent = resultSelector;\n  }\n\n  return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n", "import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable which\n * concurrently delivers all values that are emitted on the inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\n *\n * ![](mergeAll.png)\n *\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\n * a higher-order Observable. Each time it observes one of these emitted inner\n * Observables, it subscribes to that and delivers all the values from the\n * inner Observable on the output Observable. The output Observable only\n * completes once all inner Observables have completed. Any error delivered by\n * a inner Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Spawn a new interval Observable for each click event, and blend their outputs as one Observable\n *\n * ```ts\n * import { fromEvent, map, interval, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(map(() => interval(1000)));\n * const firstOrder = higherOrder.pipe(mergeAll());\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers\n *\n * ```ts\n * import { fromEvent, map, interval, take, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(10)))\n * );\n * const firstOrder = higherOrder.pipe(mergeAll(2));\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concatAll}\n * @see {@link exhaustAll}\n * @see {@link merge}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @param {number} [concurrent=Infinity] Maximum number of inner\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits values coming from\n * all the inner Observables emitted by the source Observable.\n */\nexport function mergeAll<O extends ObservableInput<any>>(concurrent: number = Infinity): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeMap(identity, concurrent);\n}\n", "import { mergeAll } from './mergeAll';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * concatenating the inner Observables in order.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\n * inner Observable after the other.</span>\n *\n * ![](concatAll.svg)\n *\n * Joins every Observable emitted by the source (a higher-order Observable), in\n * a serial fashion. It subscribes to each inner Observable only after the\n * previous inner Observable has completed, and merges all of their values into\n * the returned observable.\n *\n * __Warning:__ If the source Observable emits Observables quickly and\n * endlessly, and the inner Observables it emits generally complete slower than\n * the source emits, you can run into memory issues as the incoming Observables\n * collect in an unbounded buffer.\n *\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\n * to `1`.\n *\n * ## Example\n *\n * For each click event, tick every second from 0 to 3, with no concurrency\n *\n * ```ts\n * import { fromEvent, map, interval, take, concatAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(4)))\n * );\n * const firstOrder = higherOrder.pipe(concatAll());\n * firstOrder.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concat}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link exhaustAll}\n * @see {@link mergeAll}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @return A function that returns an Observable emitting values from all the\n * inner Observables concatenated.\n */\nexport function concatAll<O extends ObservableInput<any>>(): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeAll(1);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple, SchedulerLike } from '../types';\nimport { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function concat<T extends readonly unknown[]>(...inputs: [...ObservableInputTuple<T>]): Observable<T[number]>;\nexport function concat<T extends readonly unknown[]>(\n  ...inputsAndScheduler: [...ObservableInputTuple<T>, SchedulerLike]\n): Observable<T[number]>;\n\n/**\n * Creates an output Observable which sequentially emits all values from the first given\n * Observable and then moves on to the next.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * ![](concat.png)\n *\n * `concat` joins multiple Observables together, by subscribing to them one at a time and\n * merging their results into the output Observable. You can pass either an array of\n * Observables, or put them directly as arguments. Passing an empty array will result\n * in Observable that completes immediately.\n *\n * `concat` will subscribe to first input Observable and emit all its values, without\n * changing or affecting them in any way. When that Observable completes, it will\n * subscribe to then next Observable passed and, again, emit its values. This will be\n * repeated, until the operator runs out of Observables. When last input Observable completes,\n * `concat` will complete as well. At any given moment only one Observable passed to operator\n * emits values. If you would like to emit values from passed Observables concurrently, check out\n * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact,\n * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`.\n *\n * Note that if some input Observable never completes, `concat` will also never complete\n * and Observables following the one that did not complete will never be subscribed. On the other\n * hand, if some Observable simply completes immediately after it is subscribed, it will be\n * invisible for `concat`, which will just move on to the next Observable.\n *\n * If any Observable in chain errors, instead of passing control to the next Observable,\n * `concat` will error immediately as well. Observables that would be subscribed after\n * the one that emitted error, never will.\n *\n * If you pass to `concat` the same Observable many times, its stream of values\n * will be \"replayed\" on every subscription, which means you can repeat given Observable\n * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious,\n * you can always use {@link repeat}.\n *\n * ## Examples\n *\n * Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10\n *\n * ```ts\n * import { interval, take, range, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(4));\n * const sequence = range(1, 10);\n * const result = concat(timer, sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n * ```\n *\n * Concatenate 3 Observables\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const result = concat(timer1, timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n * ```\n *\n * Concatenate the same Observable to repeat it\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(2));\n *\n * concat(timer, timer) // concatenating the same Observable!\n *   .subscribe({\n *     next: value => console.log(value),\n *     complete: () => console.log('...and it is done!')\n *   });\n *\n * // Logs:\n * // 0 after 1s\n * // 1 after 2s\n * // 0 after 3s\n * // 1 after 4s\n * // '...and it is done!' also after 4s\n * ```\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link startWith}\n * @see {@link endWith}\n *\n * @param args Input Observables to concatenate.\n */\nexport function concat(...args: any[]): Observable<unknown> {\n  return concatAll()(from(args, popScheduler(args)));\n}\n", "import { Observable } from '../Observable';\nimport { ObservedValueOf, ObservableInput } from '../types';\nimport { innerFrom } from './innerFrom';\n\n/**\n * Creates an Observable that, on subscribe, calls an Observable factory to\n * make an Observable for each new Observer.\n *\n * <span class=\"informal\">Creates the Observable lazily, that is, only when it\n * is subscribed.\n * </span>\n *\n * ![](defer.png)\n *\n * `defer` allows you to create an Observable only when the Observer\n * subscribes. It waits until an Observer subscribes to it, calls the given\n * factory function to get an Observable -- where a factory function typically\n * generates a new Observable -- and subscribes the Observer to this Observable.\n * In case the factory function returns a falsy value, then EMPTY is used as\n * Observable instead. Last but not least, an exception during the factory\n * function call is transferred to the Observer by calling `error`.\n *\n * ## Example\n *\n * Subscribe to either an Observable of clicks or an Observable of interval, at random\n *\n * ```ts\n * import { defer, fromEvent, interval } from 'rxjs';\n *\n * const clicksOrInterval = defer(() => {\n *   return Math.random() > 0.5\n *     ? fromEvent(document, 'click')\n *     : interval(1000);\n * });\n * clicksOrInterval.subscribe(x => console.log(x));\n *\n * // Results in the following behavior:\n * // If the result of Math.random() is greater than 0.5 it will listen\n * // for clicks anywhere on the \"document\"; when document is clicked it\n * // will log a MouseEvent object to the console. If the result is less\n * // than 0.5 it will emit ascending numbers, one every second(1000ms).\n * ```\n *\n * @see {@link Observable}\n *\n * @param {function(): ObservableInput} observableFactory The Observable\n * factory function to invoke for each Observer that subscribes to the output\n * Observable. May also return a Promise, which will be converted on the fly\n * to an Observable.\n * @return {Observable} An Observable whose Observers' subscriptions trigger\n * an invocation of the given Observable factory function.\n */\nexport function defer<R extends ObservableInput<any>>(observableFactory: () => R): Observable<ObservedValueOf<R>> {\n  return new Observable<ObservedValueOf<R>>((subscriber) => {\n    innerFrom(observableFactory()).subscribe(subscriber);\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n// These constants are used to create handler registry functions using array mapping below.\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'] as const;\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'] as const;\nconst jqueryMethods = ['on', 'off'] as const;\n\nexport interface NodeStyleEventEmitter {\n  addListener(eventName: string | symbol, handler: NodeEventHandler): this;\n  removeListener(eventName: string | symbol, handler: NodeEventHandler): this;\n}\n\nexport type NodeEventHandler = (...args: any[]) => void;\n\n// For APIs that implement `addListener` and `removeListener` methods that may\n// not use the same arguments or return EventEmitter values\n// such as React Native\nexport interface NodeCompatibleEventEmitter {\n  addListener(eventName: string, handler: NodeEventHandler): void | {};\n  removeListener(eventName: string, handler: NodeEventHandler): void | {};\n}\n\n// Use handler types like those in @types/jquery. See:\n// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/847731ba1d7fa6db6b911c0e43aa0afe596e7723/types/jquery/misc.d.ts#L6395\nexport interface JQueryStyleEventEmitter<TContext, T> {\n  on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n  off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n}\n\nexport interface EventListenerObject<E> {\n  handleEvent(evt: E): void;\n}\n\nexport interface HasEventTargetAddRemove<E> {\n  addEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: boolean | AddEventListenerOptions\n  ): void;\n  removeEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: EventListenerOptions | boolean\n  ): void;\n}\n\nexport interface EventListenerOptions {\n  capture?: boolean;\n  passive?: boolean;\n  once?: boolean;\n}\n\nexport interface AddEventListenerOptions extends EventListenerOptions {\n  once?: boolean;\n  passive?: boolean;\n}\n\nexport function fromEvent<T>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  resultSelector: (event: T) => R\n): Observable<R>;\nexport function fromEvent<T>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions,\n  resultSelector: (event: T) => R\n): Observable<R>;\n\nexport function fromEvent(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string\n): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent<T>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string,\n  resultSelector: (value: T, ...args: any[]) => R\n): Observable<R>;\n\n/**\n * Creates an Observable that emits events of a specific type coming from the\n * given event target.\n *\n * <span class=\"informal\">Creates an Observable from DOM events, or Node.js\n * EventEmitter events or others.</span>\n *\n * ![](fromEvent.png)\n *\n * `fromEvent` accepts as a first argument event target, which is an object with methods\n * for registering event handler functions. As a second argument it takes string that indicates\n * type of event we want to listen for. `fromEvent` supports selected types of event targets,\n * which are described in detail below. If your event target does not match any of the ones listed,\n * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.\n * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event\n * handler functions have different names, but they all accept a string describing event type\n * and function itself, which will be called whenever said event happens.\n *\n * Every time resulting Observable is subscribed, event handler function will be registered\n * to event target on given event type. When that event fires, value\n * passed as a first argument to registered function will be emitted by output Observable.\n * When Observable is unsubscribed, function will be unregistered from event target.\n *\n * Note that if event target calls registered function with more than one argument, second\n * and following arguments will not appear in resulting stream. In order to get access to them,\n * you can pass to `fromEvent` optional project function, which will be called with all arguments\n * passed to event handler. Output Observable will then emit value returned by project function,\n * instead of the usual value.\n *\n * Remember that event targets listed below are checked via duck typing. It means that\n * no matter what kind of object you have and no matter what environment you work in,\n * you can safely use `fromEvent` on that object if it exposes described methods (provided\n * of course they behave as was described above). So for example if Node.js library exposes\n * event target which has the same method names as DOM EventTarget, `fromEvent` is still\n * a good choice.\n *\n * If the API you use is more callback then event handler oriented (subscribed\n * callback function fires only once and thus there is no need to manually\n * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}\n * instead.\n *\n * `fromEvent` supports following types of event targets:\n *\n * **DOM EventTarget**\n *\n * This is an object with `addEventListener` and `removeEventListener` methods.\n *\n * In the browser, `addEventListener` accepts - apart from event type string and event\n * handler function arguments - optional third parameter, which is either an object or boolean,\n * both used for additional configuration how and when passed function will be called. When\n * `fromEvent` is used with event target of that type, you can provide this values\n * as third parameter as well.\n *\n * **Node.js EventEmitter**\n *\n * An object with `addListener` and `removeListener` methods.\n *\n * **JQuery-style event target**\n *\n * An object with `on` and `off` methods\n *\n * **DOM NodeList**\n *\n * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.\n *\n * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes\n * it contains and install event handler function in every of them. When returned Observable\n * is unsubscribed, function will be removed from all Nodes.\n *\n * **DOM HtmlCollection**\n *\n * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is\n * installed and removed in each of elements.\n *\n *\n * ## Examples\n *\n * Emit clicks happening on the DOM document\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * clicks.subscribe(x => console.log(x));\n *\n * // Results in:\n * // MouseEvent object logged to console every time a click\n * // occurs on the document.\n * ```\n *\n * Use `addEventListener` with capture option\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * // note optional configuration parameter which will be passed to addEventListener\n * const clicksInDocument = fromEvent(document, 'click', { capture: true });\n * const clicksInDiv = fromEvent(div, 'click');\n *\n * clicksInDocument.subscribe(() => console.log('document'));\n * clicksInDiv.subscribe(() => console.log('div'));\n *\n * // By default events bubble UP in DOM tree, so normally\n * // when we would click on div in document\n * // \"div\" would be logged first and then \"document\".\n * // Since we specified optional `capture` option, document\n * // will catch event when it goes DOWN DOM tree, so console\n * // will log \"document\" and then \"div\".\n * ```\n *\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n * @see {@link fromEventPattern}\n *\n * @param {FromEventTarget<T>} target The DOM EventTarget, Node.js\n * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.\n * @param {string} eventName The event name of interest, being emitted by the\n * `target`.\n * @param {EventListenerOptions} [options] Options to pass through to addEventListener\n * @return {Observable<T>}\n */\nexport function fromEvent<T>(\n  target: any,\n  eventName: string,\n  options?: EventListenerOptions | ((...args: any[]) => T),\n  resultSelector?: (...args: any[]) => T\n): Observable<T> {\n  if (isFunction(options)) {\n    resultSelector = options;\n    options = undefined;\n  }\n  if (resultSelector) {\n    return fromEvent<T>(target, eventName, options as EventListenerOptions).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  // Figure out our add and remove methods. In order to do this,\n  // we are going to analyze the target in a preferred order, if\n  // the target matches a given signature, we take the two \"add\" and \"remove\"\n  // method names and apply them to a map to create opposite versions of the\n  // same function. This is because they all operate in duplicate pairs,\n  // `addListener(name, handler)`, `removeListener(name, handler)`, for example.\n  // The call only differs by method name, as to whether or not you're adding or removing.\n  const [add, remove] =\n    // If it is an EventTarget, we need to use a slightly different method than the other two patterns.\n    isEventTarget(target)\n      ? eventTargetMethods.map((methodName) => (handler: any) => target[methodName](eventName, handler, options as EventListenerOptions))\n      : // In all other cases, the call pattern is identical with the exception of the method names.\n      isNodeStyleEventEmitter(target)\n      ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n      : isJQueryStyleEventEmitter(target)\n      ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n      : [];\n\n  // If add is falsy, it's because we didn't match a pattern above.\n  // Check to see if it is an ArrayLike, because if it is, we want to\n  // try to apply fromEvent to all of it's items. We do this check last,\n  // because there are may be some types that are both ArrayLike *and* implement\n  // event registry points, and we'd rather delegate to that when possible.\n  if (!add) {\n    if (isArrayLike(target)) {\n      return mergeMap((subTarget: any) => fromEvent(subTarget, eventName, options as EventListenerOptions))(\n        innerFrom(target)\n      ) as Observable<T>;\n    }\n  }\n\n  // If add is falsy and we made it here, it's because we didn't\n  // match any valid target objects above.\n  if (!add) {\n    throw new TypeError('Invalid event target');\n  }\n\n  return new Observable<T>((subscriber) => {\n    // The handler we are going to register. Forwards the event object, by itself, or\n    // an array of arguments to the event handler, if there is more than one argument,\n    // to the consumer.\n    const handler = (...args: any[]) => subscriber.next(1 < args.length ? args : args[0]);\n    // Do the work of adding the handler to the target.\n    add(handler);\n    // When we finalize, we want to remove the handler and free up memory.\n    return () => remove!(handler);\n  });\n}\n\n/**\n * Used to create `add` and `remove` functions to register and unregister event handlers\n * from a target in the most common handler pattern, where there are only two arguments.\n * (e.g.  `on(name, fn)`, `off(name, fn)`, `addListener(name, fn)`, or `removeListener(name, fn)`)\n * @param target The target we're calling methods on\n * @param eventName The event name for the event we're creating register or unregister functions for\n */\nfunction toCommonHandlerRegistry(target: any, eventName: string) {\n  return (methodName: string) => (handler: any) => target[methodName](eventName, handler);\n}\n\n/**\n * Checks to see if the target implements the required node-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isNodeStyleEventEmitter(target: any): target is NodeStyleEventEmitter {\n  return isFunction(target.addListener) && isFunction(target.removeListener);\n}\n\n/**\n * Checks to see if the target implements the required jQuery-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isJQueryStyleEventEmitter(target: any): target is JQueryStyleEventEmitter<any, any> {\n  return isFunction(target.on) && isFunction(target.off);\n}\n\n/**\n * Checks to see if the target implements the required EventTarget methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isEventTarget(target: any): target is HasEventTargetAddRemove<any> {\n  return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n", "import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nimport { NodeEventHandler } from './fromEvent';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n/* tslint:disable:max-line-length */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void\n): Observable<T>;\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Creates an Observable from an arbitrary API for registering event handlers.\n *\n * <span class=\"informal\">When that method for adding event handler was something {@link fromEvent}\n * was not prepared for.</span>\n *\n * ![](fromEventPattern.png)\n *\n * `fromEventPattern` allows you to convert into an Observable any API that supports registering handler functions\n * for events. It is similar to {@link fromEvent}, but far\n * more flexible. In fact, all use cases of {@link fromEvent} could be easily handled by\n * `fromEventPattern` (although in slightly more verbose way).\n *\n * This operator accepts as a first argument an `addHandler` function, which will be injected with\n * handler parameter. That handler is actually an event handler function that you now can pass\n * to API expecting it. `addHandler` will be called whenever Observable\n * returned by the operator is subscribed, so registering handler in API will not\n * necessarily happen when `fromEventPattern` is called.\n *\n * After registration, every time an event that we listen to happens,\n * Observable returned by `fromEventPattern` will emit value that event handler\n * function was called with. Note that if event handler was called with more\n * than one argument, second and following arguments will not appear in the Observable.\n *\n * If API you are using allows to unregister event handlers as well, you can pass to `fromEventPattern`\n * another function - `removeHandler` - as a second parameter. It will be injected\n * with the same handler function as before, which now you can use to unregister\n * it from the API. `removeHandler` will be called when consumer of resulting Observable\n * unsubscribes from it.\n *\n * In some APIs unregistering is actually handled differently. Method registering an event handler\n * returns some kind of token, which is later used to identify which function should\n * be unregistered or it itself has method that unregisters event handler.\n * If that is the case with your API, make sure token returned\n * by registering method is returned by `addHandler`. Then it will be passed\n * as a second argument to `removeHandler`, where you will be able to use it.\n *\n * If you need access to all event handler parameters (not only the first one),\n * or you need to transform them in any way, you can call `fromEventPattern` with optional\n * third parameter - project function which will accept all arguments passed to\n * event handler when it is called. Whatever is returned from project function will appear on\n * resulting stream instead of usual event handlers first argument. This means\n * that default project can be thought of as function that takes its first parameter\n * and ignores the rest.\n *\n * ## Examples\n *\n * Emits clicks happening on the DOM document\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * function addClickHandler(handler) {\n *   document.addEventListener('click', handler);\n * }\n *\n * function removeClickHandler(handler) {\n *   document.removeEventListener('click', handler);\n * }\n *\n * const clicks = fromEventPattern(\n *   addClickHandler,\n *   removeClickHandler\n * );\n * clicks.subscribe(x => console.log(x));\n *\n * // Whenever you click anywhere in the browser, DOM MouseEvent\n * // object will be logged.\n * ```\n *\n * Use with API that returns cancellation token\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * const token = someAPI.registerEventHandler(function() {});\n * someAPI.unregisterEventHandler(token); // this APIs cancellation method accepts\n *                                        // not handler itself, but special token.\n *\n * const someAPIObservable = fromEventPattern(\n *   function(handler) { return someAPI.registerEventHandler(handler); }, // Note that we return the token here...\n *   function(handler, token) { someAPI.unregisterEventHandler(token); }  // ...to then use it here.\n * );\n * ```\n *\n * Use with project function\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * someAPI.registerEventHandler((eventType, eventMessage) => {\n *   console.log(eventType, eventMessage); // Logs 'EVENT_TYPE' 'EVENT_MESSAGE' to console.\n * });\n *\n * const someAPIObservable = fromEventPattern(\n *   handler => someAPI.registerEventHandler(handler),\n *   handler => someAPI.unregisterEventHandler(handler)\n *   (eventType, eventMessage) => eventType + ' --- ' + eventMessage // without that function only 'EVENT_TYPE'\n * );                                                                // would be emitted by the Observable\n *\n * someAPIObservable.subscribe(value => console.log(value));\n *\n * // Logs:\n * // 'EVENT_TYPE --- EVENT_MESSAGE'\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n *\n * @param {function(handler: Function): any} addHandler A function that takes\n * a `handler` function as argument and attaches it somehow to the actual\n * source of events.\n * @param {function(handler: Function, token?: any): void} [removeHandler] A function that\n * takes a `handler` function as an argument and removes it from the event source. If `addHandler`\n * returns some kind of token, `removeHandler` function will have it as a second parameter.\n * @param {function(...args: any): T} [project] A function to\n * transform results. It takes the arguments from the event handler and\n * should return a single value.\n * @return {Observable<T>} Observable which, when an event happens, emits first parameter\n * passed to registered event handler. Alternatively it emits whatever project function returns\n * at that moment.\n */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T | T[]> {\n  if (resultSelector) {\n    return fromEventPattern<T>(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  return new Observable<T | T[]>((subscriber) => {\n    const handler = (...e: T[]) => subscriber.next(e.length === 1 ? e[0] : e);\n    const retValue = addHandler(handler);\n    return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined;\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\n\n/**\n * Creates an observable that will wait for a specified time period, or exact date, before\n * emitting the number 0.\n *\n * <span class=\"informal\">Used to emit a notification after a delay.</span>\n *\n * This observable is useful for creating delays in code, or racing against other values\n * for ad-hoc timeouts.\n *\n * The `delay` is specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Examples\n *\n * Wait 3 seconds and start another observable\n *\n * You might want to use `timer` to delay subscription to an\n * observable by a set amount of time. Here we use a timer with\n * {@link concatMapTo} or {@link concatMap} in order to wait\n * a few seconds and start a subscription to a source.\n *\n * ```ts\n * import { of, timer, concatMap } from 'rxjs';\n *\n * // This could be any observable\n * const source = of(1, 2, 3);\n *\n * timer(3000)\n *   .pipe(concatMap(() => source))\n *   .subscribe(console.log);\n * ```\n *\n * Take all values until the start of the next minute\n *\n * Using a `Date` as the trigger for the first emission, you can\n * do things like wait until midnight to fire an event, or in this case,\n * wait until a new minute starts (chosen so the example wouldn't take\n * too long to run) in order to stop watching a stream. Leveraging\n * {@link takeUntil}.\n *\n * ```ts\n * import { interval, takeUntil, timer } from 'rxjs';\n *\n * // Build a Date object that marks the\n * // next minute.\n * const currentDate = new Date();\n * const startOfNextMinute = new Date(\n *   currentDate.getFullYear(),\n *   currentDate.getMonth(),\n *   currentDate.getDate(),\n *   currentDate.getHours(),\n *   currentDate.getMinutes() + 1\n * );\n *\n * // This could be any observable stream\n * const source = interval(1000);\n *\n * const result = source.pipe(\n *   takeUntil(timer(startOfNextMinute))\n * );\n *\n * result.subscribe(console.log);\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `dueTime`.\n *\n * @param due If a `number`, the amount of time in milliseconds to wait before emitting.\n * If a `Date`, the exact time at which to emit.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>;\n\n/**\n * Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` --\n * on each interval after words.\n *\n * The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Example\n *\n * ### Start an interval that starts right away\n *\n * Since {@link interval} waits for the passed delay before starting,\n * sometimes that's not ideal. You may want to start an interval immediately.\n * `timer` works well for this. Here we have both side-by-side so you can\n * see them in comparison.\n *\n * Note that this observable will never complete.\n *\n * ```ts\n * import { timer, interval } from 'rxjs';\n *\n * timer(0, 1000).subscribe(n => console.log('timer', n));\n * interval(1000).subscribe(n => console.log('interval', n));\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `startDue`.\n * @param startDue If a `number`, is the time to wait before starting the interval.\n * If a `Date`, is the exact time at which to start the interval.\n * @param intervalDuration The delay between each value emitted in the interval. Passing a\n * negative number here will result in immediate completion after the first value is emitted, as though\n * no `intervalDuration` was passed at all.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable<number>;\n\n/**\n * @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead.\n */\nexport function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>;\n\nexport function timer(\n  dueTime: number | Date = 0,\n  intervalOrScheduler?: number | SchedulerLike,\n  scheduler: SchedulerLike = asyncScheduler\n): Observable<number> {\n  // Since negative intervalDuration is treated as though no\n  // interval was specified at all, we start with a negative number.\n  let intervalDuration = -1;\n\n  if (intervalOrScheduler != null) {\n    // If we have a second argument, and it's a scheduler,\n    // override the scheduler we had defaulted. Otherwise,\n    // it must be an interval.\n    if (isScheduler(intervalOrScheduler)) {\n      scheduler = intervalOrScheduler;\n    } else {\n      // Note that this *could* be negative, in which case\n      // it's like not passing an intervalDuration at all.\n      intervalDuration = intervalOrScheduler;\n    }\n  }\n\n  return new Observable((subscriber) => {\n    // If a valid date is passed, calculate how long to wait before\n    // executing the first value... otherwise, if it's a number just schedule\n    // that many milliseconds (or scheduler-specified unit size) in the future.\n    let due = isValidDate(dueTime) ? +dueTime - scheduler!.now() : dueTime;\n\n    if (due < 0) {\n      // Ensure we don't schedule in the future.\n      due = 0;\n    }\n\n    // The incrementing value we emit.\n    let n = 0;\n\n    // Start the timer.\n    return scheduler.schedule(function () {\n      if (!subscriber.closed) {\n        // Emit the next value and increment.\n        subscriber.next(n++);\n\n        if (0 <= intervalDuration) {\n          // If we have a interval after the initial timer,\n          // reschedule with the period.\n          this.schedule(undefined, intervalDuration);\n        } else {\n          // We didn't have an interval. So just complete.\n          subscriber.complete();\n        }\n      }\n    }, due);\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, ObservableInputTuple, SchedulerLike } from '../types';\nimport { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function merge<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;\nexport function merge<A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number?]): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike?]\n): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number?, SchedulerLike?]\n): Observable<A[number]>;\n\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * ![](merge.png)\n *\n * `merge` subscribes to each given input Observable (as arguments), and simply\n * forwards (without doing any transformation) all the values from all the input\n * Observables to the output Observable. The output Observable only completes\n * once all input Observables have completed. Any error delivered by an input\n * Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Merge together two Observables: 1s interval and clicks\n *\n * ```ts\n * import { merge, fromEvent, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const clicksOrTimer = merge(clicks, timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // timer will emit ascending values, one every second(1000ms) to console\n * // clicks logs MouseEvents to console every time the \"document\" is clicked\n * // Since the two streams are merged you see these happening\n * // as they occur.\n * ```\n *\n * Merge together 3 Observables, but run only 2 concurrently\n *\n * ```ts\n * import { interval, take, merge } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const concurrent = 2; // the argument\n * const merged = merge(timer1, timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - First timer1 and timer2 will run concurrently\n * // - timer1 will emit a value every 1000ms for 10 iterations\n * // - timer2 will emit a value every 2000ms for 6 iterations\n * // - after timer1 hits its max iteration, timer2 will\n * //   continue, and timer3 will start to run concurrently with timer2\n * // - when timer2 hits its max iteration it terminates, and\n * //   timer3 will continue to emit a value every 500ms until it is complete\n * ```\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {...ObservableInput} observables Input Observables to merge together.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for managing\n * concurrency of input Observables.\n * @return {Observable} an Observable that emits items that are the result of\n * every input Observable.\n */\nexport function merge(...args: (ObservableInput<unknown> | number | SchedulerLike)[]): Observable<unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  const sources = args as ObservableInput<unknown>[];\n  return !sources.length\n    ? // No source provided\n      EMPTY\n    : sources.length === 1\n    ? // One source? Just return it.\n      innerFrom(sources[0])\n    : // Merge all sources\n      mergeAll(concurrent)(from(sources, scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\n\n/**\n * An Observable that emits no items to the Observer and never completes.\n *\n * ![](never.png)\n *\n * A simple Observable that emits neither values nor errors nor the completion\n * notification. It can be used for testing purposes or for composing with other\n * Observables. Please note that by never emitting a complete notification, this\n * Observable keeps the subscription from being disposed automatically.\n * Subscriptions need to be manually disposed.\n *\n * ##  Example\n *\n * Emit the number 7, then never emit anything else (not even complete)\n *\n * ```ts\n * import { NEVER, startWith } from 'rxjs';\n *\n * const info = () => console.log('Will not be called');\n *\n * const result = NEVER.pipe(startWith(7));\n * result.subscribe({\n *   next: x => console.log(x),\n *   error: info,\n *   complete: info\n * });\n * ```\n *\n * @see {@link Observable}\n * @see {@link EMPTY}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const NEVER = new Observable<never>(noop);\n\n/**\n * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8.\n */\nexport function never() {\n  return NEVER;\n}\n", "const { isArray } = Array;\n\n/**\n * Used in operators and functions that accept either a list of arguments, or an array of arguments\n * as a single argument.\n */\nexport function argsOrArgArray<T>(args: (T | T[])[]): T[] {\n  return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]);\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, S extends T, A>(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction<T, S>;\nexport function filter<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function filter<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;\nexport function filter<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * ![](filter.png)\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * ## Example\n *\n * Emit only click events whose target was a DIV element\n *\n * ```ts\n * import { fromEvent, filter } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksOnDivs = clicks.pipe(filter(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * clicksOnDivs.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param thisArg An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return A function that returns an Observable that emits items from the\n * source Observable that satisfy the specified `predicate`.\n */\nexport function filter<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // An index passed to our predicate function on each call.\n    let index = 0;\n\n    // Subscribe to the source, all errors and completions are\n    // forwarded to the consumer.\n    source.subscribe(\n      // Call the predicate with the appropriate `this` context,\n      // if the predicate returns `true`, then send the value\n      // to the consumer.\n      createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value))\n    );\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple } from '../types';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { EMPTY } from './empty';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { popResultSelector } from '../util/args';\n\nexport function zip<A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\nexport function zip<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each\n * of its input Observables.\n *\n * If the last parameter is a function, this function is used to compute the created value from the input values.\n * Otherwise, an array of the input values is returned.\n *\n * ## Example\n *\n * Combine age and name from different sources\n *\n * ```ts\n * import { of, zip, map } from 'rxjs';\n *\n * const age$ = of(27, 25, 29);\n * const name$ = of('Foo', 'Bar', 'Beer');\n * const isDev$ = of(true, true, false);\n *\n * zip(age$, name$, isDev$).pipe(\n *   map(([age, name, isDev]) => ({ age, name, isDev }))\n * )\n * .subscribe(x => console.log(x));\n *\n * // Outputs\n * // { age: 27, name: 'Foo', isDev: true }\n * // { age: 25, name: 'Bar', isDev: true }\n * // { age: 29, name: 'Beer', isDev: false }\n * ```\n *\n * @param sources\n * @return {Observable<R>}\n */\nexport function zip(...args: unknown[]): Observable<unknown> {\n  const resultSelector = popResultSelector(args);\n\n  const sources = argsOrArgArray(args) as Observable<unknown>[];\n\n  return sources.length\n    ? new Observable<unknown[]>((subscriber) => {\n        // A collection of buffers of values from each source.\n        // Keyed by the same index with which the sources were passed in.\n        let buffers: unknown[][] = sources.map(() => []);\n\n        // An array of flags of whether or not the sources have completed.\n        // This is used to check to see if we should complete the result.\n        // Keyed by the same index with which the sources were passed in.\n        let completed = sources.map(() => false);\n\n        // When everything is done, release the arrays above.\n        subscriber.add(() => {\n          buffers = completed = null!;\n        });\n\n        // Loop over our sources and subscribe to each one. The index `i` is\n        // especially important here, because we use it in closures below to\n        // access the related buffers and completion properties\n        for (let sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {\n          innerFrom(sources[sourceIndex]).subscribe(\n            createOperatorSubscriber(\n              subscriber,\n              (value) => {\n                buffers[sourceIndex].push(value);\n                // if every buffer has at least one value in it, then we\n                // can shift out the oldest value from each buffer and emit\n                // them as an array.\n                if (buffers.every((buffer) => buffer.length)) {\n                  const result: any = buffers.map((buffer) => buffer.shift()!);\n                  // Emit the array. If theres' a result selector, use that.\n                  subscriber.next(resultSelector ? resultSelector(...result) : result);\n                  // If any one of the sources is both complete and has an empty buffer\n                  // then we complete the result. This is because we cannot possibly have\n                  // any more values to zip together.\n                  if (buffers.some((buffer, i) => !buffer.length && completed[i])) {\n                    subscriber.complete();\n                  }\n                }\n              },\n              () => {\n                // This source completed. Mark it as complete so we can check it later\n                // if we have to.\n                completed[sourceIndex] = true;\n                // But, if this complete source has nothing in its buffer, then we\n                // can complete the result, because we can't possibly have any more\n                // values from this to zip together with the other values.\n                !buffers[sourceIndex].length && subscriber.complete();\n              }\n            )\n          );\n        }\n\n        // When everything is done, release the arrays above.\n        return () => {\n          buffers = completed = null!;\n        };\n      })\n    : EMPTY;\n}\n", "import { Subscriber } from '../Subscriber';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\n\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](audit.svg)\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, audit, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(audit(ev => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function audit<T>(durationSelector: (value: T) => ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    let lastValue: T | null = null;\n    let durationSubscriber: Subscriber<any> | null = null;\n    let isComplete = false;\n\n    const endDuration = () => {\n      durationSubscriber?.unsubscribe();\n      durationSubscriber = null;\n      if (hasValue) {\n        hasValue = false;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n      isComplete && subscriber.complete();\n    };\n\n    const cleanupDuration = () => {\n      durationSubscriber = null;\n      isComplete && subscriber.complete();\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          lastValue = value;\n          if (!durationSubscriber) {\n            innerFrom(durationSelector(value)).subscribe(\n              (durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))\n            );\n          }\n        },\n        () => {\n          isComplete = true;\n          (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\n\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source value, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * ![](auditTime.png)\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link SchedulerLike} for managing timers.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, auditTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(auditTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function auditTime<T>(duration: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return audit(() => timer(duration, scheduler));\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\n\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * ![](bufferCount.png)\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * ## Examples\n *\n * Emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * On every click, emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2, 1));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return A function that returns an Observable of arrays of buffered values.\n */\nexport function bufferCount<T>(bufferSize: number, startBufferEvery: number | null = null): OperatorFunction<T, T[]> {\n  // If no `startBufferEvery` value was supplied, then we're\n  // opening and closing on the bufferSize itself.\n  startBufferEvery = startBufferEvery ?? bufferSize;\n\n  return operate((source, subscriber) => {\n    let buffers: T[][] = [];\n    let count = 0;\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          let toEmit: T[][] | null = null;\n\n          // Check to see if we need to start a buffer.\n          // This will start one at the first value, and then\n          // a new one every N after that.\n          if (count++ % startBufferEvery! === 0) {\n            buffers.push([]);\n          }\n\n          // Push our value into our active buffers.\n          for (const buffer of buffers) {\n            buffer.push(value);\n            // Check to see if we're over the bufferSize\n            // if we are, record it so we can emit it later.\n            // If we emitted it now and removed it, it would\n            // mutate the `buffers` array while we're looping\n            // over it.\n            if (bufferSize <= buffer.length) {\n              toEmit = toEmit ?? [];\n              toEmit.push(buffer);\n            }\n          }\n\n          if (toEmit) {\n            // We have found some buffers that are over the\n            // `bufferSize`. Emit them, and remove them from our\n            // buffers list.\n            for (const buffer of toEmit) {\n              arrRemove(buffers, buffer);\n              subscriber.next(buffer);\n            }\n          }\n        },\n        () => {\n          // When the source completes, emit all of our\n          // active buffers.\n          for (const buffer of buffers) {\n            subscriber.next(buffer);\n          }\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Clean up our memory when we finalize\n          buffers = null!;\n        }\n      )\n    );\n  });\n}\n", "import { Observable } from '../Observable';\n\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { Subscription } from '../Subscription';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\n\n/* tslint:disable:max-line-length */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>>;\n/* tslint:enable:max-line-length */\n\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\n *\n * <span class=\"informal\">\n * It only listens to the error channel and ignores notifications.\n * Handles errors from the source observable, and maps them to a new observable.\n * The error may also be rethrown, or a new error can be thrown to emit an error from the result.\n * </span>\n *\n * ![](catch.png)\n *\n * This operator handles errors, but forwards along all other events to the resulting observable.\n * If the source observable terminates with an error, it will map that error to a new observable,\n * subscribe to it, and forward all of its events to the resulting observable.\n *\n * ## Examples\n *\n * Continue with a different Observable when there's an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => of('I', 'II', 'III', 'IV', 'V'))\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, I, II, III, IV, V\n * ```\n *\n * Retry the caught source Observable again in case of error, similar to `retry()` operator\n *\n * ```ts\n * import { of, map, catchError, take } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError((err, caught) => caught),\n *     take(30)\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, 1, 2, 3, ...\n * ```\n *\n * Throw a new error when the source Observable throws an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => {\n *       throw 'error in source. Details: ' + err;\n *     })\n *   )\n *   .subscribe({\n *     next: x => console.log(x),\n *     error: err => console.log(err)\n *   });\n *   // 1, 2, 3, error in source. Details: four!\n * ```\n *\n * @see {@link onErrorResumeNext}\n * @see {@link repeat}\n * @see {@link repeatWhen}\n * @see {@link retry }\n * @see {@link retryWhen}\n *\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\n * is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\n * is returned by the `selector` will be used to continue the observable chain.\n * @return A function that returns an Observable that originates from either\n * the source or the Observable returned by the `selector` function.\n */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>> {\n  return operate((source, subscriber) => {\n    let innerSub: Subscription | null = null;\n    let syncUnsub = false;\n    let handledResult: Observable<ObservedValueOf<O>>;\n\n    innerSub = source.subscribe(\n      createOperatorSubscriber(subscriber, undefined, undefined, (err) => {\n        handledResult = innerFrom(selector(err, catchError(selector)(source)));\n        if (innerSub) {\n          innerSub.unsubscribe();\n          innerSub = null;\n          handledResult.subscribe(subscriber);\n        } else {\n          // We don't have an innerSub yet, that means the error was synchronous\n          // because the subscribe call hasn't returned yet.\n          syncUnsub = true;\n        }\n      })\n    );\n\n    if (syncUnsub) {\n      // We have a synchronous error, we need to make sure to\n      // finalize right away. This ensures that callbacks in the `finalize` operator are called\n      // at the right time, and that finalization occurs at the expected\n      // time between the source error and the subscription to the\n      // next observable.\n      innerSub.unsubscribe();\n      innerSub = null;\n      handledResult!.subscribe(subscriber);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A basic scan operation. This is used for `scan` and `reduce`.\n * @param accumulator The accumulator to use\n * @param seed The seed value for the state to accumulate\n * @param hasSeed Whether or not a seed was provided\n * @param emitOnNext Whether or not to emit the state on next\n * @param emitBeforeComplete Whether or not to emit the before completion\n */\n\nexport function scanInternals<V, A, S>(\n  accumulator: (acc: V | A | S, value: V, index: number) => A,\n  seed: S,\n  hasSeed: boolean,\n  emitOnNext: boolean,\n  emitBeforeComplete?: undefined | true\n) {\n  return (source: Observable<V>, subscriber: Subscriber<any>) => {\n    // Whether or not we have state yet. This will only be\n    // false before the first value arrives if we didn't get\n    // a seed value.\n    let hasState = hasSeed;\n    // The state that we're tracking, starting with the seed,\n    // if there is one, and then updated by the return value\n    // from the accumulator on each emission.\n    let state: any = seed;\n    // An index to pass to the accumulator function.\n    let index = 0;\n\n    // Subscribe to our source. All errors and completions are passed through.\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Always increment the index.\n          const i = index++;\n          // Set the state\n          state = hasState\n            ? // We already have state, so we can get the new state from the accumulator\n              accumulator(state, value, i)\n            : // We didn't have state yet, a seed value was not provided, so\n\n              // we set the state to the first value, and mark that we have state now\n              ((hasState = true), value);\n\n          // Maybe send it to the consumer.\n          emitOnNext && subscriber.next(state);\n        },\n        // If an onComplete was given, call it, otherwise\n        // just pass through the complete notification to the consumer.\n        emitBeforeComplete &&\n          (() => {\n            hasState && subscriber.next(state);\n            subscriber.complete();\n          })\n      )\n    );\n  };\n}\n", "import { combineLatestInit } from '../observable/combineLatest';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  project: (...values: [T, ...A]) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  ...sourcesAndProject: [...ObservableInputTuple<A>, (...values: [T, ...A]) => R]\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/**\n * @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8.\n */\nexport function combineLatest<T, R>(...args: (ObservableInput<any> | ((...values: any[]) => R))[]): OperatorFunction<T, unknown> {\n  const resultSelector = popResultSelector(args);\n  return resultSelector\n    ? pipe(combineLatest(...(args as Array<ObservableInput<any>>)), mapOneOrManyArgs(resultSelector))\n    : operate((source, subscriber) => {\n        combineLatestInit([source, ...argsOrArgArray(args)])(subscriber);\n      });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { combineLatest } from './combineLatest';\n\n/**\n * Create an observable that combines the latest values from all passed observables and the source\n * into arrays and emits them.\n *\n * Returns an observable, that when subscribed to, will subscribe to the source observable and all\n * sources provided as arguments. Once all sources emit at least one value, all of the latest values\n * will be emitted as an array. After that, every time any source emits a value, all of the latest values\n * will be emitted as an array.\n *\n * This is a useful operator for eagerly calculating values based off of changed inputs.\n *\n * ## Example\n *\n * Simple concatenation of values from two inputs\n *\n * ```ts\n * import { fromEvent, combineLatestWith, map } from 'rxjs';\n *\n * // Setup: Add two inputs to the page\n * const input1 = document.createElement('input');\n * document.body.appendChild(input1);\n * const input2 = document.createElement('input');\n * document.body.appendChild(input2);\n *\n * // Get streams of changes\n * const input1Changes$ = fromEvent(input1, 'change');\n * const input2Changes$ = fromEvent(input2, 'change');\n *\n * // Combine the changes by adding them together\n * input1Changes$.pipe(\n *   combineLatestWith(input2Changes$),\n *   map(([e1, e2]) => (<HTMLInputElement>e1.target).value + ' - ' + (<HTMLInputElement>e2.target).value)\n * )\n * .subscribe(x => console.log(x));\n * ```\n *\n * @param otherSources the other sources to subscribe to.\n * @return A function that returns an Observable that emits the latest\n * emissions from both source and provided Observables.\n */\nexport function combineLatestWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, Cons<T, A>> {\n  return combineLatest(...otherSources);\n}\n", "import { Subscriber } from '../Subscriber';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\n\n/**\n * Emits a notification from the source Observable only after a particular time span\n * determined by another Observable has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link debounceTime}, but the time span of\n * emission silence is determined by a second Observable.</span>\n *\n * ![](debounce.svg)\n *\n * `debounce` delays notifications emitted by the source Observable, but drops previous\n * pending delayed emissions if a new notification arrives on the source Observable.\n * This operator keeps track of the most recent notification from the source\n * Observable, and spawns a duration Observable by calling the\n * `durationSelector` function. The notification is emitted only when the duration\n * Observable emits a next notification, and if no other notification was emitted on\n * the source Observable since the duration Observable was spawned. If a new\n * notification appears before the duration Observable emits, the previous notification will\n * not be emitted and a new duration is scheduled from `durationSelector` is scheduled.\n * If the completing event happens during the scheduled duration the last cached notification\n * is emitted before the completion event is forwarded to the output observable.\n * If the error event happens during the scheduled duration or after it only the error event is\n * forwarded to the output observable. The cache notification is not emitted in this case.\n *\n * Like {@link debounceTime}, this is a rate-limiting operator, and also a\n * delay-like operator since output emissions do not necessarily occur at the\n * same time as they did on the source Observable.\n *\n * ## Example\n *\n * Emit the most recent click after a burst of clicks\n *\n * ```ts\n * import { fromEvent, scan, debounce, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(\n *   scan(i => ++i, 1),\n *   debounce(i => interval(200 * i))\n * );\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link throttle}\n * @see {@link throttleTime}\n *\n * @param durationSelector A function\n * that receives a value from the source Observable, for computing the timeout\n * duration for each source value, returned as an Observable or a Promise.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified duration Observable returned by\n * `durationSelector`, and may drop some values if they occur too frequently.\n */\nexport function debounce<T>(durationSelector: (value: T) => ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    let lastValue: T | null = null;\n    // The subscriber/subscription for the current debounce, if there is one.\n    let durationSubscriber: Subscriber<any> | null = null;\n\n    const emit = () => {\n      // Unsubscribe any current debounce subscription we have,\n      // we only cared about the first notification from it, and we\n      // want to clean that subscription up as soon as possible.\n      durationSubscriber?.unsubscribe();\n      durationSubscriber = null;\n      if (hasValue) {\n        // We have a value! Free up memory first, then emit the value.\n        hasValue = false;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value: T) => {\n          // Cancel any pending debounce duration. We don't\n          // need to null it out here yet tho, because we're just going\n          // to create another one in a few lines.\n          durationSubscriber?.unsubscribe();\n          hasValue = true;\n          lastValue = value;\n          // Capture our duration subscriber, so we can unsubscribe it when we're notified\n          // and we're going to emit the value.\n          durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);\n          // Subscribe to the duration.\n          innerFrom(durationSelector(value)).subscribe(durationSubscriber);\n        },\n        () => {\n          // Source completed.\n          // Emit any pending debounced values then complete\n          emit();\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer\n        undefined,\n        () => {\n          // Finalization.\n          lastValue = durationSubscriber = null;\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a notification from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent notification from each burst of emissions.</span>\n *\n * ![](debounceTime.png)\n *\n * `debounceTime` delays notifications emitted by the source Observable, but drops\n * previous pending delayed emissions if a new notification arrives on the source\n * Observable. This operator keeps track of the most recent notification from the\n * source Observable, and emits that only when `dueTime` has passed\n * without any other notification appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous notification will be dropped\n * and will not be emitted and a new `dueTime` is scheduled.\n * If the completing event happens during `dueTime` the last cached notification\n * is emitted before the completion event is forwarded to the output observable.\n * If the error event happens during `dueTime` or after it only the error event is\n * forwarded to the output observable. The cache notification is not emitted in this case.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * notification to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link SchedulerLike} for\n * managing timers.\n *\n * ## Example\n *\n * Emit the most recent click after a burst of clicks\n *\n * ```ts\n * import { fromEvent, debounceTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(debounceTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link throttle}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the timeout for each value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified `dueTime`, and may drop some values\n * if they occur too frequently.\n */\nexport function debounceTime<T>(dueTime: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let activeTask: Subscription | null = null;\n    let lastValue: T | null = null;\n    let lastTime: number | null = null;\n\n    const emit = () => {\n      if (activeTask) {\n        // We have a value! Free up memory first, then emit the value.\n        activeTask.unsubscribe();\n        activeTask = null;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n    };\n    function emitWhenIdle(this: SchedulerAction<unknown>) {\n      // This is called `dueTime` after the first value\n      // but we might have received new values during this window!\n\n      const targetTime = lastTime! + dueTime;\n      const now = scheduler.now();\n      if (now < targetTime) {\n        // On that case, re-schedule to the new target\n        activeTask = this.schedule(undefined, targetTime - now);\n        subscriber.add(activeTask);\n        return;\n      }\n\n      emit();\n    }\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value: T) => {\n          lastValue = value;\n          lastTime = scheduler.now();\n\n          // Only set up a task if it's not already up\n          if (!activeTask) {\n            activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n            subscriber.add(activeTask);\n          }\n        },\n        () => {\n          // Source completed.\n          // Emit any pending debounced values then complete\n          emit();\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Finalization.\n          lastValue = activeTask = null;\n        }\n      )\n    );\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * ![](defaultIfEmpty.png)\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * ## Example\n *\n * If no clicks happen in 5 seconds, then emit 'no clicks'\n *\n * ```ts\n * import { fromEvent, takeUntil, interval, defaultIfEmpty } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000)));\n * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param defaultValue The default value used if the source\n * Observable is empty.\n * @return A function that returns an Observable that emits either the\n * specified `defaultValue` if the source Observable emits no items, or the\n * values emitted by the source Observable.\n */\nexport function defaultIfEmpty<T, R>(defaultValue: R): OperatorFunction<T, T | R> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => {\n          if (!hasValue) {\n            subscriber.next(defaultValue!);\n          }\n          subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * ![](take.png)\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * ## Example\n *\n * Take the first 5 seconds of an infinite 1-second interval Observable\n *\n * ```ts\n * import { interval, take } from 'rxjs';\n *\n * const intervalCount = interval(1000);\n * const takeFive = intervalCount.pipe(take(5));\n * takeFive.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * ```\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of `next` values to emit.\n * @return A function that returns an Observable that emits only the first\n * `count` values emitted by the source Observable, or all of the values from\n * the source if the source emits fewer than `count` values.\n */\nexport function take<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? // If we are taking no values, that's empty.\n      () => EMPTY\n    : operate((source, subscriber) => {\n        let seen = 0;\n        source.subscribe(\n          createOperatorSubscriber(subscriber, (value) => {\n            // Increment the number of values we have seen,\n            // then check it against the allowed count to see\n            // if we are still letting values through.\n            if (++seen <= count) {\n              subscriber.next(value);\n              // If we have met or passed our allowed count,\n              // we need to complete. We have to do <= here,\n              // because re-entrant code will increment `seen` twice.\n              if (count <= seen) {\n                subscriber.complete();\n              }\n            }\n          })\n        );\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\n\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * ![](ignoreElements.png)\n *\n * The `ignoreElements` operator suppresses all items emitted by the source Observable,\n * but allows its termination notification (either `error` or `complete`) to pass through unchanged.\n *\n * If you do not care about the items being emitted by an Observable, but you do want to be notified\n * when it completes or when it terminates with an error, you can apply the `ignoreElements` operator\n * to the Observable, which will ensure that it will never call its observers\u2019 `next` handlers.\n *\n * ## Example\n *\n * Ignore all `next` emissions from the source\n *\n * ```ts\n * import { of, ignoreElements } from 'rxjs';\n *\n * of('you', 'talking', 'to', 'me')\n *   .pipe(ignoreElements())\n *   .subscribe({\n *     next: word => console.log(word),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // result:\n * // 'the end'\n * ```\n *\n * @return A function that returns an empty Observable that only calls\n * `complete` or `error`, based on which one is called by the source\n * Observable.\n */\nexport function ignoreElements(): OperatorFunction<unknown, never> {\n  return operate((source, subscriber) => {\n    source.subscribe(createOperatorSubscriber(subscriber, noop));\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { map } from './map';\n\n/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R>;\n/**\n * @deprecated Do not specify explicit type parameters. Signatures with type parameters\n * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9,\n * use {@link map} instead: `map(() => value)`.\n * */\nexport function mapTo<T, R>(value: R): OperatorFunction<T, R>;\n\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * ![](mapTo.png)\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * ## Example\n *\n * Map every click to the string `'Hi'`\n *\n * ```ts\n * import { fromEvent, mapTo } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const greetings = clicks.pipe(mapTo('Hi'));\n *\n * greetings.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link map}\n *\n * @param value The value to map each source value to.\n * @return A function that returns an Observable that emits the given `value`\n * every time the source Observable emits.\n * @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`.\n */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R> {\n  return map(() => value);\n}\n", "import { Observable } from '../Observable';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\n\n/** @deprecated The `subscriptionDelay` parameter will be removed in v8. */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay: Observable<any>\n): MonoTypeOperatorFunction<T>;\nexport function delayWhen<T>(delayDurationSelector: (value: T, index: number) => ObservableInput<any>): MonoTypeOperatorFunction<T>;\n\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * ![](delayWhen.png)\n *\n * `delayWhen` operator shifts each emitted value from the source Observable by\n * a time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the value emitted from\n * the source Observable as the first argument to the `delayDurationSelector`.\n * The `delayDurationSelector` function should return an {@link ObservableInput},\n * that is internally converted to an Observable that is called the \"duration\"\n * Observable.\n *\n * The source value is emitted on the output Observable only when the \"duration\"\n * Observable emits ({@link guide/glossary-and-semantics#next next}s) any value.\n * Upon that, the \"duration\" Observable gets unsubscribed.\n *\n * Before RxJS V7, the {@link guide/glossary-and-semantics#complete completion}\n * of the \"duration\" Observable would have been triggering the emission of the\n * source value to the output Observable, but with RxJS V7, this is not the case\n * anymore.\n *\n * Only next notifications (from the \"duration\" Observable) trigger values from\n * the source Observable to be passed to the output Observable. If the \"duration\"\n * Observable only emits the complete notification (without next), the value\n * emitted by the source Observable will never get to the output Observable - it\n * will be swallowed. If the \"duration\" Observable errors, the error will be\n * propagated to the output Observable.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * ## Example\n *\n * Delay each click by a random amount of time, between 0 and 5 seconds\n *\n * ```ts\n * import { fromEvent, delayWhen, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(\n *   delayWhen(() => interval(Math.random() * 5000))\n * );\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delay}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param delayDurationSelector A function that returns an `ObservableInput` for\n * each `value` emitted by the source Observable, which is then used to delay the\n * emission of that `value` on the output Observable until the `ObservableInput`\n * returned from this function emits a next value. When called, beside `value`,\n * this function receives a zero-based `index` of the emission order.\n * @param subscriptionDelay An Observable that triggers the subscription to the\n * source Observable once it emits any value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by an amount of time specified by the Observable\n * returned by `delayDurationSelector`.\n */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay?: Observable<any>\n): MonoTypeOperatorFunction<T> {\n  if (subscriptionDelay) {\n    // DEPRECATED PATH\n    return (source: Observable<T>) =>\n      concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n  }\n\n  return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\n\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * ![](delay.svg)\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * ## Examples\n *\n * Delay each click by one second\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(delay(1000)); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * Delay all clicks until a future date happens\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const date = new Date('March 15, 2050 12:00:00'); // in the future\n * const delayedClicks = clicks.pipe(delay(date)); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delayWhen}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param {number|Date} due The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the time-shift for each item.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified timeout or Date.\n */\nexport function delay<T>(due: number | Date, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  const duration = timer(due, scheduler);\n  return delayWhen(() => duration);\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function distinctUntilChanged<T>(comparator?: (previous: T, current: T) => boolean): MonoTypeOperatorFunction<T>;\nexport function distinctUntilChanged<T, K>(\n  comparator: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a result {@link Observable} that emits all values pushed by the source observable if they\n * are distinct in comparison to the last value the result observable emitted.\n *\n * When provided without parameters or with the first parameter (`{@link distinctUntilChanged#comparator comparator}`),\n * it behaves like this:\n *\n * 1. It will always emit the first value from the source.\n * 2. For all subsequent values pushed by the source, they will be compared to the previously emitted values\n *    using the provided `comparator` or an `===` equality check.\n * 3. If the value pushed by the source is determined to be unequal by this check, that value is emitted and\n *    becomes the new \"previously emitted value\" internally.\n *\n * When the second parameter (`{@link distinctUntilChanged#keySelector keySelector}`) is provided, the behavior\n * changes:\n *\n * 1. It will always emit the first value from the source.\n * 2. The `keySelector` will be run against all values, including the first value.\n * 3. For all values after the first, the selected key will be compared against the key selected from\n *    the previously emitted value using the `comparator`.\n * 4. If the keys are determined to be unequal by this check, the value (not the key), is emitted\n *    and the selected key from that value is saved for future comparisons against other keys.\n *\n * ## Examples\n *\n * A very basic example with no `{@link distinctUntilChanged#comparator comparator}`. Note that `1` is emitted more than once,\n * because it's distinct in comparison to the _previously emitted_ value,\n * not in comparison to _all other emitted values_.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * of(1, 1, 1, 2, 2, 2, 1, 1, 3, 3)\n *   .pipe(distinctUntilChanged())\n *   .subscribe(console.log);\n * // Logs: 1, 2, 1, 3\n * ```\n *\n * With a `{@link distinctUntilChanged#comparator comparator}`, you can do custom comparisons. Let's say\n * you only want to emit a value when all of its components have\n * changed:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const totallyDifferentBuilds$ = of(\n *   { engineVersion: '1.1.0', transmissionVersion: '1.2.0' },\n *   { engineVersion: '1.1.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.5.0' },\n *   { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ).pipe(\n *   distinctUntilChanged((prev, curr) => {\n *     return (\n *       prev.engineVersion === curr.engineVersion ||\n *       prev.transmissionVersion === curr.transmissionVersion\n *     );\n *   })\n * );\n *\n * totallyDifferentBuilds$.subscribe(console.log);\n *\n * // Logs:\n * // { engineVersion: '1.1.0', transmissionVersion: '1.2.0' }\n * // { engineVersion: '1.3.0', transmissionVersion: '1.4.0' }\n * // { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ```\n *\n * You can also provide a custom `{@link distinctUntilChanged#comparator comparator}` to check that emitted\n * changes are only in one direction. Let's say you only want to get\n * the next record temperature:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const temps$ = of(30, 31, 20, 34, 33, 29, 35, 20);\n *\n * const recordHighs$ = temps$.pipe(\n *   distinctUntilChanged((prevHigh, temp) => {\n *     // If the current temp is less than\n *     // or the same as the previous record,\n *     // the record hasn't changed.\n *     return temp <= prevHigh;\n *   })\n * );\n *\n * recordHighs$.subscribe(console.log);\n * // Logs: 30, 31, 34, 35\n * ```\n *\n * Selecting update events only when the `updatedBy` field shows\n * the account changed hands.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * // A stream of updates to a given account\n * const accountUpdates$ = of(\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'blesh', data: [] }\n * );\n *\n * // We only want the events where it changed hands\n * const changedHands$ = accountUpdates$.pipe(\n *   distinctUntilChanged(undefined, update => update.updatedBy)\n * );\n *\n * changedHands$.subscribe(console.log);\n * // Logs:\n * // { updatedBy: 'blesh', data: Array[0] }\n * // { updatedBy: 'ncjamieson', data: Array[0] }\n * // { updatedBy: 'blesh', data: Array[0] }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param comparator A function used to compare the previous and current keys for\n * equality. Defaults to a `===` check.\n * @param keySelector Used to select a key value to be passed to the `comparator`.\n *\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values.\n */\nexport function distinctUntilChanged<T, K>(\n  comparator?: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K = identity as (value: T) => K\n): MonoTypeOperatorFunction<T> {\n  // We've been allowing `null` do be passed as the `compare`, so we can't do\n  // a default value for the parameter, because that will only work\n  // for `undefined`.\n  comparator = comparator ?? defaultCompare;\n\n  return operate((source, subscriber) => {\n    // The previous key, used to compare against keys selected\n    // from new arrivals to determine \"distinctiveness\".\n    let previousKey: K;\n    // Whether or not this is the first value we've gotten.\n    let first = true;\n\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        // We always call the key selector.\n        const currentKey = keySelector(value);\n\n        // If it's the first value, we always emit it.\n        // Otherwise, we compare this key to the previous key, and\n        // if the comparer returns false, we emit.\n        if (first || !comparator!(previousKey, currentKey)) {\n          // Update our state *before* we emit the value\n          // as emission can be the source of re-entrant code\n          // in functional libraries like this. We only really\n          // need to do this if it's the first value, or if the\n          // key we're tracking in previous needs to change.\n          first = false;\n          previousKey = currentKey;\n\n          // Emit the value!\n          subscriber.next(value);\n        }\n      })\n    );\n  });\n}\n\nfunction defaultCompare(a: any, b: any) {\n  return a === b;\n}\n", "import { distinctUntilChanged } from './distinctUntilChanged';\nimport { MonoTypeOperatorFunction } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function distinctUntilKeyChanged<T>(key: keyof T): MonoTypeOperatorFunction<T>;\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * ## Examples\n *\n * An example comparing the name of persons\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo' },\n *   { age: 6, name: 'Foo' }\n * ).pipe(\n *   distinctUntilKeyChanged('name')\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n * ```\n *\n * An example comparing the first letters of the name\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo1' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo2' },\n *   { age: 6, name: 'Foo3' }\n * ).pipe(\n *   distinctUntilKeyChanged('name', (x, y) => x.substring(0, 3) === y.substring(0, 3))\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo1' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo2' }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n *\n * @param {string} key String key for object property lookup on each item.\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values based on the key specified.\n */\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare?: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T> {\n  return distinctUntilChanged((x: T, y: T) => compare ? compare(x[key], y[key]) : x[key] === y[key]);\n}\n", "import { EmptyError } from '../util/EmptyError';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * If the source observable completes without emitting a value, it will emit\n * an error. The error will be created at that time by the optional\n * `errorFactory` argument, otherwise, the error will be {@link EmptyError}.\n *\n * ![](throwIfEmpty.png)\n *\n * ## Example\n *\n * Throw an error if the document wasn't clicked within 1 second\n *\n * ```ts\n * import { fromEvent, takeUntil, timer, throwIfEmpty } from 'rxjs';\n *\n * const click$ = fromEvent(document, 'click');\n *\n * click$.pipe(\n *   takeUntil(timer(1000)),\n *   throwIfEmpty(() => new Error('The document was not clicked within 1 second'))\n * )\n * .subscribe({\n *   next() {\n *    console.log('The document was clicked');\n *   },\n *   error(err) {\n *     console.error(err.message);\n *   }\n * });\n * ```\n *\n * @param errorFactory A factory function called to produce the\n * error to be thrown when the source observable completes without emitting a\n * value.\n * @return A function that returns an Observable that throws an error if the\n * source Observable completed without emitting.\n */\nexport function throwIfEmpty<T>(errorFactory: () => any = defaultErrorFactory): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))\n      )\n    );\n  });\n}\n\nfunction defaultErrorFactory() {\n  return new EmptyError();\n}\n", "/** prettier */\nimport { Observable } from '../Observable';\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nimport { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ValueFromArray } from '../types';\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T>(scheduler: SchedulerLike): MonoTypeOperatorFunction<T>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T, A extends unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\n\nexport function endWith<T, A extends unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that will emit all values from the source, then synchronously emit\n * the provided value(s) immediately after the source completes.\n *\n * NOTE: Passing a last argument of a Scheduler is _deprecated_, and may result in incorrect\n * types in TypeScript.\n *\n * This is useful for knowing when an observable ends. Particularly when paired with an\n * operator like {@link takeUntil}\n *\n * ![](endWith.png)\n *\n * ## Example\n *\n * Emit values to know when an interval starts and stops. The interval will\n * stop when a user clicks anywhere on the document.\n *\n * ```ts\n * import { interval, map, fromEvent, startWith, takeUntil, endWith } from 'rxjs';\n *\n * const ticker$ = interval(5000).pipe(\n *   map(() => 'tick')\n * );\n *\n * const documentClicks$ = fromEvent(document, 'click');\n *\n * ticker$.pipe(\n *   startWith('interval started'),\n *   takeUntil(documentClicks$),\n *   endWith('interval ended by click')\n * )\n * .subscribe(x => console.log(x));\n *\n * // Result (assuming a user clicks after 15 seconds)\n * // 'interval started'\n * // 'tick'\n * // 'tick'\n * // 'tick'\n * // 'interval ended by click'\n * ```\n *\n * @see {@link startWith}\n * @see {@link concat}\n * @see {@link takeUntil}\n *\n * @param values Items you want the modified Observable to emit last.\n * @return A function that returns an Observable that emits all values from the\n * source, then synchronously emits the provided value(s) immediately after the\n * source completes.\n */\nexport function endWith<T>(...values: Array<T | SchedulerLike>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => concat(source, of(...values)) as Observable<T>;\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * The specified function will also be called when the subscriber explicitly unsubscribes.\n *\n * ## Examples\n *\n * Execute callback function when the observable completes\n *\n * ```ts\n * import { interval, take, finalize } from 'rxjs';\n *\n * // emit value in sequence every 1 second\n * const source = interval(1000);\n * const example = source.pipe(\n *   take(5), //take only the first 5 values\n *   finalize(() => console.log('Sequence complete')) // Execute when the observable completes\n * );\n * const subscribe = example.subscribe(val => console.log(val));\n *\n * // results:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * // 'Sequence complete'\n * ```\n *\n * Execute callback function when the subscriber explicitly unsubscribes\n *\n * ```ts\n * import { interval, finalize, tap, noop, timer } from 'rxjs';\n *\n * const source = interval(100).pipe(\n *   finalize(() => console.log('[finalize] Called')),\n *   tap({\n *     next: () => console.log('[next] Called'),\n *     error: () => console.log('[error] Not called'),\n *     complete: () => console.log('[tap complete] Not called')\n *   })\n * );\n *\n * const sub = source.subscribe({\n *   next: x => console.log(x),\n *   error: noop,\n *   complete: () => console.log('[complete] Not called')\n * });\n *\n * timer(150).subscribe(() => sub.unsubscribe());\n *\n * // results:\n * // '[next] Called'\n * // 0\n * // '[finalize] Called'\n * ```\n *\n * @param {function} callback Function to be called when source terminates.\n * @return A function that returns an Observable that mirrors the source, but\n * will call the specified function on termination.\n */\nexport function finalize<T>(callback: () => void): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // TODO: This try/finally was only added for `useDeprecatedSynchronousErrorHandling`.\n    // REMOVE THIS WHEN THAT HOT GARBAGE IS REMOVED IN V8.\n    try {\n      source.subscribe(subscriber);\n    } finally {\n      subscriber.add(callback);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { EmptyError } from '../util/EmptyError';\nimport { OperatorFunction, TruthyTypesOf } from '../types';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\n\nexport function first<T, D = T>(predicate?: null, defaultValue?: D): OperatorFunction<T, T | D>;\nexport function first<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function first<T, D>(predicate: BooleanConstructor, defaultValue: D): OperatorFunction<T, TruthyTypesOf<T> | D>;\nexport function first<T, S extends T>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue?: S\n): OperatorFunction<T, S>;\nexport function first<T, S extends T, D>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue: D\n): OperatorFunction<T, S | D>;\nexport function first<T, D = T>(\n  predicate: (value: T, index: number, source: Observable<T>) => boolean,\n  defaultValue?: D\n): OperatorFunction<T, T | D>;\n\n/**\n * Emits only the first value (or the first value that meets some condition)\n * emitted by the source Observable.\n *\n * <span class=\"informal\">Emits only the first value. Or emits only the first\n * value that passes some test.</span>\n *\n * ![](first.png)\n *\n * If called with no arguments, `first` emits the first value of the source\n * Observable, then completes. If called with a `predicate` function, `first`\n * emits the first value of the source that matches the specified condition. Throws an error if\n * `defaultValue` was not provided and a matching element is not found.\n *\n * ## Examples\n *\n * Emit only the first click that happens on the DOM\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first());\n * result.subscribe(x => console.log(x));\n * ```\n *\n * Emits the first click that happens on a DIV\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link take}\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * This is how `first()` is different from {@link take}(1) which completes instead.\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\n * An optional function called with each item to test for condition matching.\n * @param {D} [defaultValue] The default value emitted in case no valid value\n * was found on the source.\n * @return A function that returns an Observable that emits the first item that\n * matches the condition.\n */\nexport function first<T, D>(\n  predicate?: ((value: T, index: number, source: Observable<T>) => boolean) | null,\n  defaultValue?: D\n): OperatorFunction<T, T | D> {\n  const hasDefaultValue = arguments.length >= 2;\n  return (source: Observable<T>) =>\n    source.pipe(\n      predicate ? filter((v, i) => predicate(v, i, source)) : identity,\n      take(1),\n      hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new EmptyError())\n    );\n}\n", "import { EMPTY } from '../observable/empty';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Waits for the source to complete, then emits the last N values from the source,\n * as specified by the `count` argument.\n *\n * ![](takeLast.png)\n *\n * `takeLast` results in an observable that will hold values up to `count` values in memory,\n * until the source completes. It then pushes all values in memory to the consumer, in the\n * order they were received from the source, then notifies the consumer that it is\n * complete.\n *\n * If for some reason the source completes before the `count` supplied to `takeLast` is reached,\n * all values received until that point are emitted, and then completion is notified.\n *\n * **Warning**: Using `takeLast` with an observable that never completes will result\n * in an observable that never emits a value.\n *\n * ## Example\n *\n * Take the last 3 values of an Observable with many values\n *\n * ```ts\n * import { range, takeLast } from 'rxjs';\n *\n * const many = range(1, 100);\n * const lastThree = many.pipe(takeLast(3));\n * lastThree.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return A function that returns an Observable that emits at most the last\n * `count` values emitted by the source Observable.\n */\nexport function takeLast<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        // This buffer will hold the values we are going to emit\n        // when the source completes. Since we only want to take the\n        // last N values, we can't emit until we're sure we're not getting\n        // any more values.\n        let buffer: T[] = [];\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              // Add the most recent value onto the end of our buffer.\n              buffer.push(value);\n              // If our buffer is now larger than the number of values we\n              // want to take, we remove the oldest value from the buffer.\n              count < buffer.length && buffer.shift();\n            },\n            () => {\n              // The source completed, we now know what are last values\n              // are, emit them in the order they were received.\n              for (const value of buffer) {\n                subscriber.next(value);\n              }\n              subscriber.complete();\n            },\n            // Errors are passed through to the consumer\n            undefined,\n            () => {\n              // During finalization release the values in our buffer.\n              buffer = null!;\n            }\n          )\n        );\n      });\n}\n", "import { ObservableInput, ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mergeAll } from './mergeAll';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from '../observable/from';\n\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrency: [...ObservableInputTuple<A>, number]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n\nexport function merge<T>(...args: unknown[]): OperatorFunction<T, unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  args = argsOrArgArray(args);\n\n  return operate((source, subscriber) => {\n    mergeAll(concurrent)(from([source, ...(args as ObservableInput<T>[])], scheduler)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction } from '../types';\nimport { merge } from './merge';\n\n/**\n * Merge the values from all observables to a single observable result.\n *\n * Creates an observable, that when subscribed to, subscribes to the source\n * observable, and all other sources provided as arguments. All values from\n * every source are emitted from the resulting subscription.\n *\n * When all sources complete, the resulting observable will complete.\n *\n * When any source errors, the resulting observable will error.\n *\n * ## Example\n *\n * Joining all outputs from multiple user input event streams\n *\n * ```ts\n * import { fromEvent, map, mergeWith } from 'rxjs';\n *\n * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click'));\n * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove'));\n * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick'));\n *\n * mousemoves$\n *   .pipe(mergeWith(clicks$, dblclicks$))\n *   .subscribe(x => console.log(x));\n *\n * // result (assuming user interactions)\n * // 'mousemove'\n * // 'mousemove'\n * // 'mousemove'\n * // 'click'\n * // 'click'\n * // 'dblclick'\n * ```\n *\n * @see {@link merge}\n *\n * @param otherSources the sources to combine the current source with.\n * @return A function that returns an Observable that merges the values from\n * all given Observables.\n */\nexport function mergeWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, T | A[number]> {\n  return merge(...otherSources);\n}\n", "import { Subscription } from '../Subscription';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\n\nexport interface RepeatConfig {\n  /**\n   * The number of times to repeat the source. Defaults to `Infinity`.\n   */\n  count?: number;\n\n  /**\n   * If a `number`, will delay the repeat of the source by that number of milliseconds.\n   * If a function, it will provide the number of times the source has been subscribed to,\n   * and the return value should be a valid observable input that will notify when the source\n   * should be repeated. If the notifier observable is empty, the result will complete.\n   */\n  delay?: number | ((count: number) => ObservableInput<any>);\n}\n\n/**\n * Returns an Observable that will resubscribe to the source stream when the source stream completes.\n *\n * <span class=\"informal\">Repeats all values emitted on the source. It's like {@link retry}, but for non error cases.</span>\n *\n * ![](repeat.png)\n *\n * Repeat will output values from a source until the source completes, then it will resubscribe to the\n * source a specified number of times, with a specified delay. Repeat can be particularly useful in\n * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile},\n * as it can be used to restart a source again from scratch.\n *\n * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but\n * `repeat` will resubscribe if the source completes.\n *\n * Note that `repeat` will _not_ catch errors. Use {@link retry} for that.\n *\n * - `repeat(0)` returns an empty observable\n * - `repeat()` will repeat forever\n * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions.\n * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions.\n * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition.\n *\n * ## Example\n *\n * Repeat a message stream\n *\n * ```ts\n * import { of, repeat } from 'rxjs';\n *\n * const source = of('Repeat message');\n * const result = source.pipe(repeat(3));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results\n * // 'Repeat message'\n * // 'Repeat message'\n * // 'Repeat message'\n * ```\n *\n * Repeat 3 values, 2 times\n *\n * ```ts\n * import { interval, take, repeat } from 'rxjs';\n *\n * const source = interval(1000);\n * const result = source.pipe(take(3), repeat(2));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results every second\n * // 0\n * // 1\n * // 2\n * // 0\n * // 1\n * // 2\n * ```\n *\n * Defining two complex repeats with delays on the same source.\n * Note that the second repeat cannot be called until the first\n * repeat as exhausted it's count.\n *\n * ```ts\n * import { defer, of, repeat } from 'rxjs';\n *\n * const source = defer(() => {\n *    return of(`Hello, it is ${new Date()}`)\n * });\n *\n * source.pipe(\n *    // Repeat 3 times with a delay of 1 second between repetitions\n *    repeat({\n *      count: 3,\n *      delay: 1000,\n *    }),\n *\n *    // *Then* repeat forever, but with an exponential step-back\n *    // maxing out at 1 minute.\n *    repeat({\n *      delay: (count) => timer(Math.min(60000, 2 ^ count * 1000))\n *    })\n * )\n * ```\n *\n * @see {@link repeatWhen}\n * @see {@link retry}\n *\n * @param count The number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n */\nexport function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T> {\n  let count = Infinity;\n  let delay: RepeatConfig['delay'];\n\n  if (countOrConfig != null) {\n    if (typeof countOrConfig === 'object') {\n      ({ count = Infinity, delay } = countOrConfig);\n    } else {\n      count = countOrConfig;\n    }\n  }\n\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        let soFar = 0;\n        let sourceSub: Subscription | null;\n\n        const resubscribe = () => {\n          sourceSub?.unsubscribe();\n          sourceSub = null;\n          if (delay != null) {\n            const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n            const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n              notifierSubscriber.unsubscribe();\n              subscribeToSource();\n            });\n            notifier.subscribe(notifierSubscriber);\n          } else {\n            subscribeToSource();\n          }\n        };\n\n        const subscribeToSource = () => {\n          let syncUnsub = false;\n          sourceSub = source.subscribe(\n            createOperatorSubscriber(subscriber, undefined, () => {\n              if (++soFar < count) {\n                if (sourceSub) {\n                  resubscribe();\n                } else {\n                  syncUnsub = true;\n                }\n              } else {\n                subscriber.complete();\n              }\n            })\n          );\n\n          if (syncUnsub) {\n            resubscribe();\n          }\n        };\n\n        subscribeToSource();\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\n\nexport function scan<V, A = V>(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction<V, V | A>;\nexport function scan<V, A>(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction<V, A>;\nexport function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction<V, A>;\n\n// TODO: link to a \"redux pattern\" section in the guide (location TBD)\n\n/**\n * Useful for encapsulating and managing state. Applies an accumulator (or \"reducer function\")\n * to each value from the source after an initial state is established -- either via\n * a `seed` value (second argument), or from the first value from the source.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation state after each update</span>\n *\n * ![](scan.png)\n *\n * This operator maintains an internal state and emits it after processing each value as follows:\n *\n * 1. First value arrives\n *   - If a `seed` value was supplied (as the second argument to `scan`), let `state = seed` and `value = firstValue`.\n *   - If NO `seed` value was supplied (no second argument), let `state = firstValue` and go to 3.\n * 2. Let `state = accumulator(state, value)`.\n *   - If an error is thrown by `accumulator`, notify the consumer of an error. The process ends.\n * 3. Emit `state`.\n * 4. Next value arrives, let `value = nextValue`, go to 2.\n *\n * ## Examples\n *\n * An average of previous numbers. This example shows how\n * not providing a `seed` can prime the stream with the\n * first value from the source.\n *\n * ```ts\n * import { of, scan, map } from 'rxjs';\n *\n * const numbers$ = of(1, 2, 3);\n *\n * numbers$\n *   .pipe(\n *     // Get the sum of the numbers coming in.\n *     scan((total, n) => total + n),\n *     // Get the average by dividing the sum by the total number\n *     // received so far (which is 1 more than the zero-based index).\n *     map((sum, index) => sum / (index + 1))\n *   )\n *   .subscribe(console.log);\n * ```\n *\n * The Fibonacci sequence. This example shows how you can use\n * a seed to prime accumulation process. Also... you know... Fibonacci.\n * So important to like, computers and stuff that its whiteboarded\n * in job interviews. Now you can show them the Rx version! (Please don't, haha)\n *\n * ```ts\n * import { interval, scan, map, startWith } from 'rxjs';\n *\n * const firstTwoFibs = [0, 1];\n * // An endless stream of Fibonacci numbers.\n * const fibonacci$ = interval(1000).pipe(\n *   // Scan to get the fibonacci numbers (after 0, 1)\n *   scan(([a, b]) => [b, a + b], firstTwoFibs),\n *   // Get the second number in the tuple, it's the one you calculated\n *   map(([, n]) => n),\n *   // Start with our first two digits :)\n *   startWith(...firstTwoFibs)\n * );\n *\n * fibonacci$.subscribe(console.log);\n * ```\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n * @see {@link switchScan}\n *\n * @param accumulator A \"reducer function\". This will be called for each value after an initial state is\n * acquired.\n * @param seed The initial state. If this is not provided, the first value from the source will\n * be used as the initial state, and emitted without going through the accumulator. All subsequent values\n * will be processed by the accumulator function. If this is provided, all values will go through\n * the accumulator function.\n * @return A function that returns an Observable of the accumulated values.\n */\nexport function scan<V, A, S>(accumulator: (acc: V | A | S, value: V, index: number) => A, seed?: S): OperatorFunction<V, V | A> {\n  // providing a seed of `undefined` *should* be valid and trigger\n  // hasSeed! so don't use `seed !== undefined` checks!\n  // For this reason, we have to check it here at the original call site\n  // otherwise inside Operator/Subscriber we won't know if `undefined`\n  // means they didn't provide anything or if they literally provided `undefined`\n  return operate(scanInternals(accumulator, seed as S, arguments.length >= 2, true));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\n\nexport interface ShareConfig<T> {\n  /**\n   * The factory used to create the subject that will connect the source observable to\n   * multicast consumers.\n   */\n  connector?: () => SubjectLike<T>;\n  /**\n   * If `true`, the resulting observable will reset internal state on error from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"retried\" in the event of an error.\n   * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent retries\n   * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however\n   * {@link ReplaySubject} will also push its buffered values before pushing the error.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnError?: boolean | ((error: any) => ObservableInput<any>);\n  /**\n   * If `true`, the resulting observable will reset internal state on completion from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"repeated\" after it is done.\n   * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent repeats\n   * or resubscriptions will resubscribe to that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnComplete?: boolean | (() => ObservableInput<any>);\n  /**\n   * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the\n   * internal state will be reset and the resulting observable will return to a \"cold\" state. This means that the next\n   * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to\n   * again.\n   * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject\n   * will remain connected to the source, and new subscriptions to the result will be connected through that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnRefCountZero?: boolean | (() => ObservableInput<any>);\n}\n\nexport function share<T>(): MonoTypeOperatorFunction<T>;\n\nexport function share<T>(options: ShareConfig<T>): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for `multicast(() => new Subject()), refCount()`.\n *\n * The subscription to the underlying source Observable can be reset (unsubscribe and resubscribe for new subscribers),\n * if the subscriber count to the shared observable drops to 0, or if the source Observable errors or completes. It is\n * possible to use notifier factories for the resets to allow for behaviors like conditional or delayed resets. Please\n * note that resetting on error or complete of the source Observable does not behave like a transparent retry or restart\n * of the source because the error or complete will be forwarded to all subscribers and their subscription will be\n * closed. Only new subscribers after a reset on error or complete happened will cause a fresh subscription to the\n * source. To achieve transparent retries or restarts pipe the source through appropriate operators before sharing.\n *\n * ![](share.png)\n *\n * ## Example\n *\n * Generate new multicast Observable from the `source` Observable value\n *\n * ```ts\n * import { interval, tap, map, take, share } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   tap(x => console.log('Processing: ', x)),\n *   map(x => x * x),\n *   take(6),\n *   share()\n * );\n *\n * source.subscribe(x => console.log('subscription 1: ', x));\n * source.subscribe(x => console.log('subscription 2: ', x));\n *\n * // Logs:\n * // Processing: 0\n * // subscription 1: 0\n * // subscription 2: 0\n * // Processing: 1\n * // subscription 1: 1\n * // subscription 2: 1\n * // Processing: 2\n * // subscription 1: 4\n * // subscription 2: 4\n * // Processing: 3\n * // subscription 1: 9\n * // subscription 2: 9\n * // Processing: 4\n * // subscription 1: 16\n * // subscription 2: 16\n * // Processing: 5\n * // subscription 1: 25\n * // subscription 2: 25\n * ```\n *\n * ## Example with notifier factory: Delayed reset\n *\n * ```ts\n * import { interval, take, share, timer } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   take(3),\n *   share({\n *     resetOnRefCountZero: () => timer(1000)\n *   })\n * );\n *\n * const subscriptionOne = source.subscribe(x => console.log('subscription 1: ', x));\n * setTimeout(() => subscriptionOne.unsubscribe(), 1300);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 2: ', x)), 1700);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 3: ', x)), 5000);\n *\n * // Logs:\n * // subscription 1:  0\n * // (subscription 1 unsubscribes here)\n * // (subscription 2 subscribes here ~400ms later, source was not reset)\n * // subscription 2:  1\n * // subscription 2:  2\n * // (subscription 2 unsubscribes here)\n * // (subscription 3 subscribes here ~2000ms later, source did reset before)\n * // subscription 3:  0\n * // subscription 3:  1\n * // subscription 3:  2\n * ```\n *\n * @see {@link shareReplay}\n *\n * @return A function that returns an Observable that mirrors the source.\n */\nexport function share<T>(options: ShareConfig<T> = {}): MonoTypeOperatorFunction<T> {\n  const { connector = () => new Subject<T>(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options;\n  // It's necessary to use a wrapper here, as the _operator_ must be\n  // referentially transparent. Otherwise, it cannot be used in calls to the\n  // static `pipe` function - to create a partial pipeline.\n  //\n  // The _operator function_ - the function returned by the _operator_ - will\n  // not be referentially transparent - as it shares its source - but the\n  // _operator function_ is called when the complete pipeline is composed via a\n  // call to a source observable's `pipe` method - not when the static `pipe`\n  // function is called.\n  return (wrapperSource) => {\n    let connection: SafeSubscriber<T> | undefined;\n    let resetConnection: Subscription | undefined;\n    let subject: SubjectLike<T> | undefined;\n    let refCount = 0;\n    let hasCompleted = false;\n    let hasErrored = false;\n\n    const cancelReset = () => {\n      resetConnection?.unsubscribe();\n      resetConnection = undefined;\n    };\n    // Used to reset the internal state to a \"cold\"\n    // state, as though it had never been subscribed to.\n    const reset = () => {\n      cancelReset();\n      connection = subject = undefined;\n      hasCompleted = hasErrored = false;\n    };\n    const resetAndUnsubscribe = () => {\n      // We need to capture the connection before\n      // we reset (if we need to reset).\n      const conn = connection;\n      reset();\n      conn?.unsubscribe();\n    };\n\n    return operate<T, T>((source, subscriber) => {\n      refCount++;\n      if (!hasErrored && !hasCompleted) {\n        cancelReset();\n      }\n\n      // Create the subject if we don't have one yet. Grab a local reference to\n      // it as well, which avoids non-null assertions when using it and, if we\n      // connect to it now, then error/complete need a reference after it was\n      // reset.\n      const dest = (subject = subject ?? connector());\n\n      // Add the finalization directly to the subscriber - instead of returning it -\n      // so that the handling of the subscriber's unsubscription will be wired\n      // up _before_ the subscription to the source occurs. This is done so that\n      // the assignment to the source connection's `closed` property will be seen\n      // by synchronous firehose sources.\n      subscriber.add(() => {\n        refCount--;\n\n        // If we're resetting on refCount === 0, and it's 0, we only want to do\n        // that on \"unsubscribe\", really. Resetting on error or completion is a different\n        // configuration.\n        if (refCount === 0 && !hasErrored && !hasCompleted) {\n          resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n        }\n      });\n\n      // The following line adds the subscription to the subscriber passed.\n      // Basically, `subscriber === dest.subscribe(subscriber)` is `true`.\n      dest.subscribe(subscriber);\n\n      if (\n        !connection &&\n        // Check this shareReplay is still activate - it can be reset to 0\n        // and be \"unsubscribed\" _before_ it actually subscribes.\n        // If we were to subscribe then, it'd leak and get stuck.\n        refCount > 0\n      ) {\n        // We need to create a subscriber here - rather than pass an observer and\n        // assign the returned subscription to connection - because it's possible\n        // for reentrant subscriptions to the shared observable to occur and in\n        // those situations we want connection to be already-assigned so that we\n        // don't create another connection to the source.\n        connection = new SafeSubscriber({\n          next: (value) => dest.next(value),\n          error: (err) => {\n            hasErrored = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnError, err);\n            dest.error(err);\n          },\n          complete: () => {\n            hasCompleted = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnComplete);\n            dest.complete();\n          },\n        });\n        innerFrom(source).subscribe(connection);\n      }\n    })(wrapperSource);\n  };\n}\n\nfunction handleReset<T extends unknown[] = never[]>(\n  reset: () => void,\n  on: boolean | ((...args: T) => ObservableInput<any>),\n  ...args: T\n): Subscription | undefined {\n  if (on === true) {\n    reset();\n    return;\n  }\n\n  if (on === false) {\n    return;\n  }\n\n  const onSubscriber = new SafeSubscriber({\n    next: () => {\n      onSubscriber.unsubscribe();\n      reset();\n    },\n  });\n\n  return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n", "import { ReplaySubject } from '../ReplaySubject';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { share } from './share';\n\nexport interface ShareReplayConfig {\n  bufferSize?: number;\n  windowTime?: number;\n  refCount: boolean;\n  scheduler?: SchedulerLike;\n}\n\nexport function shareReplay<T>(config: ShareReplayConfig): MonoTypeOperatorFunction<T>;\nexport function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;\n\n/**\n * Share source and replay specified number of emissions on subscription.\n *\n * This operator is a specialization of `replay` that connects to a source observable\n * and multicasts through a `ReplaySubject` constructed with the specified arguments.\n * A successfully completed source will stay cached in the `shareReplay`ed observable forever,\n * but an errored source can be retried.\n *\n * ## Why use `shareReplay`?\n *\n * You generally want to use `shareReplay` when you have side-effects or taxing computations\n * that you do not wish to be executed amongst multiple subscribers.\n * It may also be valuable in situations where you know you will have late subscribers to\n * a stream that need access to previously emitted values.\n * This ability to replay values on subscription is what differentiates {@link share} and `shareReplay`.\n *\n * ## Reference counting\n *\n * By default `shareReplay` will use `refCount` of false, meaning that it will _not_ unsubscribe the\n * source when the reference counter drops to zero, i.e. the inner `ReplaySubject` will _not_ be unsubscribed\n * (and potentially run for ever).\n * This is the default as it is expected that `shareReplay` is often used to keep around expensive to setup\n * observables which we want to keep running instead of having to do the expensive setup again.\n *\n * As of RXJS version 6.4.0 a new overload signature was added to allow for manual control over what\n * happens when the operators internal reference counter drops to zero.\n * If `refCount` is true, the source will be unsubscribed from once the reference count drops to zero, i.e.\n * the inner `ReplaySubject` will be unsubscribed. All new subscribers will receive value emissions from a\n * new `ReplaySubject` which in turn will cause a new subscription to the source observable.\n *\n * ## Examples\n *\n * Example with a third subscriber coming late to the party\n *\n * ```ts\n * import { interval, take, shareReplay } from 'rxjs';\n *\n * const shared$ = interval(2000).pipe(\n *   take(6),\n *   shareReplay(3)\n * );\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * setTimeout(() => {\n *   shared$.subscribe(y => console.log('sub C: ', y));\n * }, 11000);\n *\n * // Logs:\n * // (after ~2000 ms)\n * // sub A: 0\n * // sub B: 0\n * // (after ~4000 ms)\n * // sub A: 1\n * // sub B: 1\n * // (after ~6000 ms)\n * // sub A: 2\n * // sub B: 2\n * // (after ~8000 ms)\n * // sub A: 3\n * // sub B: 3\n * // (after ~10000 ms)\n * // sub A: 4\n * // sub B: 4\n * // (after ~11000 ms, sub C gets the last 3 values)\n * // sub C: 2\n * // sub C: 3\n * // sub C: 4\n * // (after ~12000 ms)\n * // sub A: 5\n * // sub B: 5\n * // sub C: 5\n * ```\n *\n * Example for `refCount` usage\n *\n * ```ts\n * import { Observable, tap, interval, shareReplay, take } from 'rxjs';\n *\n * const log = <T>(name: string, source: Observable<T>) => source.pipe(\n *   tap({\n *     subscribe: () => console.log(`${ name }: subscribed`),\n *     next: value => console.log(`${ name }: ${ value }`),\n *     complete: () => console.log(`${ name }: completed`),\n *     finalize: () => console.log(`${ name }: unsubscribed`)\n *   })\n * );\n *\n * const obs$ = log('source', interval(1000));\n *\n * const shared$ = log('shared', obs$.pipe(\n *   shareReplay({ bufferSize: 1, refCount: true }),\n *   take(2)\n * ));\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * // PRINTS:\n * // shared: subscribed <-- reference count = 1\n * // source: subscribed\n * // shared: subscribed <-- reference count = 2\n * // source: 0\n * // shared: 0\n * // sub A: 0\n * // shared: 0\n * // sub B: 0\n * // source: 1\n * // shared: 1\n * // sub A: 1\n * // shared: completed <-- take(2) completes the subscription for sub A\n * // shared: unsubscribed <-- reference count = 1\n * // shared: 1\n * // sub B: 1\n * // shared: completed <-- take(2) completes the subscription for sub B\n * // shared: unsubscribed <-- reference count = 0\n * // source: unsubscribed <-- replaySubject unsubscribes from source observable because the reference count dropped to 0 and refCount is true\n *\n * // In case of refCount being false, the unsubscribe is never called on the source and the source would keep on emitting, even if no subscribers\n * // are listening.\n * // source: 2\n * // source: 3\n * // source: 4\n * // ...\n * ```\n *\n * @see {@link publish}\n * @see {@link share}\n * @see {@link publishReplay}\n *\n * @param configOrBufferSize Maximum element count of the replay buffer or {@link ShareReplayConfig configuration}\n * object.\n * @param windowTime Maximum time length of the replay buffer in milliseconds.\n * @param scheduler Scheduler where connected observers within the selector function\n * will be invoked on.\n * @return A function that returns an Observable sequence that contains the\n * elements of a sequence produced by multicasting the source sequence within a\n * selector function.\n */\nexport function shareReplay<T>(\n  configOrBufferSize?: ShareReplayConfig | number,\n  windowTime?: number,\n  scheduler?: SchedulerLike\n): MonoTypeOperatorFunction<T> {\n  let bufferSize: number;\n  let refCount = false;\n  if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n    ({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize);\n  } else {\n    bufferSize = (configOrBufferSize ?? Infinity) as number;\n  }\n  return share<T>({\n    connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n    resetOnError: true,\n    resetOnComplete: false,\n    resetOnRefCountZero: refCount,\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { filter } from './filter';\n\n/**\n * Returns an Observable that skips the first `count` items emitted by the source Observable.\n *\n * ![](skip.png)\n *\n * Skips the values until the sent notifications are equal or less than provided skip count. It raises\n * an error if skip count is equal or more than the actual number of emits and source raises an error.\n *\n * ## Example\n *\n * Skip the values before the emission\n *\n * ```ts\n * import { interval, skip } from 'rxjs';\n *\n * // emit every half second\n * const source = interval(500);\n * // skip the first 10 emitted values\n * const result = source.pipe(skip(10));\n *\n * result.subscribe(value => console.log(value));\n * // output: 10...11...12...13...\n * ```\n *\n * @see {@link last}\n * @see {@link skipWhile}\n * @see {@link skipUntil}\n * @see {@link skipLast}\n *\n * @param {Number} count - The number of times, items emitted by source Observable should be skipped.\n * @return A function that returns an Observable that skips the first `count`\n * values emitted by the source Observable.\n */\nexport function skip<T>(count: number): MonoTypeOperatorFunction<T> {\n  return filter((_, index) => count <= index);\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable\n * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP\n * requests or waiting for specific times to pass by.\n *\n * ![](skipUntil.png)\n *\n * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted\n * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator\n * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It\n * will never let the *source* observable emit any values if the `notifier` completes or throws an error without\n * emitting a value before.\n *\n * ## Example\n *\n * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere\n * within the page\n *\n * ```ts\n * import { interval, fromEvent, skipUntil } from 'rxjs';\n *\n * const intervalObservable = interval(1000);\n * const click = fromEvent(document, 'click');\n *\n * const emitAfterClick = intervalObservable.pipe(\n *   skipUntil(click)\n * );\n * // clicked at 4.6s. output: 5...6...7...8........ or\n * // clicked at 7.3s. output: 8...9...10..11.......\n * emitAfterClick.subscribe(value => console.log(value));\n * ```\n *\n * @see {@link last}\n * @see {@link skip}\n * @see {@link skipWhile}\n * @see {@link skipLast}\n *\n * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to\n * be mirrored by the resulting Observable.\n * @return A function that returns an Observable that skips items from the\n * source Observable until the `notifier` Observable emits an item, then emits the\n * remaining items.\n */\nexport function skipUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let taking = false;\n\n    const skipSubscriber = createOperatorSubscriber(\n      subscriber,\n      () => {\n        skipSubscriber?.unsubscribe();\n        taking = true;\n      },\n      noop\n    );\n\n    innerFrom(notifier).subscribe(skipSubscriber);\n\n    source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value)));\n  });\n}\n", "import { concat } from '../observable/concat';\nimport { OperatorFunction, SchedulerLike, ValueFromArray } from '../types';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function startWith<T>(value: null): OperatorFunction<T, T | null>;\nexport function startWith<T>(value: undefined): OperatorFunction<T, T | undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function startWith<T, A extends readonly unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\nexport function startWith<T, A extends readonly unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that, at the moment of subscription, will synchronously emit all\n * values provided to this operator, then subscribe to the source and mirror all of its emissions\n * to subscribers.\n *\n * This is a useful way to know when subscription has occurred on an existing observable.\n *\n * <span class=\"informal\">First emits its arguments in order, and then any\n * emissions from the source.</span>\n *\n * ![](startWith.png)\n *\n * ## Examples\n *\n * Emit a value when a timer starts.\n *\n * ```ts\n * import { timer, map, startWith } from 'rxjs';\n *\n * timer(1000)\n *   .pipe(\n *     map(() => 'timer emit'),\n *     startWith('timer start')\n *   )\n *   .subscribe(x => console.log(x));\n *\n * // results:\n * // 'timer start'\n * // 'timer emit'\n * ```\n *\n * @param values Items you want the modified Observable to emit first.\n * @return A function that returns an Observable that synchronously emits\n * provided values before subscribing to the source Observable.\n *\n * @see {@link endWith}\n * @see {@link finalize}\n * @see {@link concat}\n */\nexport function startWith<T, D>(...values: D[]): OperatorFunction<T, T | D> {\n  const scheduler = popScheduler(values);\n  return operate((source, subscriber) => {\n    // Here we can't pass `undefined` as a scheduler, because if we did, the\n    // code inside of `concat` would be confused by the `undefined`, and treat it\n    // like an invalid observable. So we have to split it two different ways.\n    (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n  });\n}\n", "import { Subscriber } from '../Subscriber';\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/* tslint:disable:max-line-length */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switchAll}.</span>\n *\n * ![](switchMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * ## Example\n *\n * Generate new Observable according to source Observable values\n *\n * ```ts\n * import { of, switchMap } from 'rxjs';\n *\n * const switched = of(1, 2, 3).pipe(switchMap(x => of(x, x ** 2, x ** 3)));\n * switched.subscribe(x => console.log(x));\n * // outputs\n * // 1\n * // 1\n * // 1\n * // 2\n * // 4\n * // 8\n * // 3\n * // 9\n * // 27\n * ```\n *\n * Restart an interval Observable on every click event\n *\n * ```ts\n * import { fromEvent, switchMap, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(switchMap(() => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switchAll}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and taking\n * only the values from the most recently projected inner Observable.\n */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  return operate((source, subscriber) => {\n    let innerSubscriber: Subscriber<ObservedValueOf<O>> | null = null;\n    let index = 0;\n    // Whether or not the source subscription has completed\n    let isComplete = false;\n\n    // We only complete the result if the source is complete AND we don't have an active inner subscription.\n    // This is called both when the source completes and when the inners complete.\n    const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Cancel the previous inner subscription if there was one\n          innerSubscriber?.unsubscribe();\n          let innerIndex = 0;\n          const outerIndex = index++;\n          // Start the next inner subscription\n          innerFrom(project(value, outerIndex)).subscribe(\n            (innerSubscriber = createOperatorSubscriber(\n              subscriber,\n              // When we get a new inner value, next it through. Note that this is\n              // handling the deprecate result selector here. This is because with this architecture\n              // it ends up being smaller than using the map operator.\n              (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue),\n              () => {\n                // The inner has completed. Null out the inner subscriber to\n                // free up memory and to signal that we have no inner subscription\n                // currently.\n                innerSubscriber = null!;\n                checkComplete();\n              }\n            ))\n          );\n        },\n        () => {\n          isComplete = true;\n          checkComplete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits a value. Then, it completes.</span>\n *\n * ![](takeUntil.png)\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value, the output Observable stops mirroring the source Observable\n * and completes. If the `notifier` doesn't emit any value and completes\n * then `takeUntil` will pass all values.\n *\n * ## Example\n *\n * Tick every second until the first click happens\n *\n * ```ts\n * import { interval, fromEvent, takeUntil } from 'rxjs';\n *\n * const source = interval(1000);\n * const clicks = fromEvent(document, 'click');\n * const result = source.pipe(takeUntil(clicks));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return A function that returns an Observable that emits the values from the\n * source Observable until `notifier` emits its first value.\n */\nexport function takeUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n    !subscriber.closed && source.subscribe(subscriber);\n  });\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: true): MonoTypeOperatorFunction<T>;\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: false): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S, inclusive: false): OperatorFunction<T, S>;\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive?: boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * ![](takeWhile.png)\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * ## Example\n *\n * Emit click events only while the clientX property is greater than 200\n *\n * ```ts\n * import { fromEvent, takeWhile } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const result = clicks.pipe(takeWhile(ev => ev.clientX > 200));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @param {boolean} inclusive When set to `true` the value that caused\n * `predicate` to return `false` will also be emitted.\n * @return A function that returns an Observable that emits values from the\n * source Observable so long as each value satisfies the condition defined by\n * the `predicate`, then completes.\n */\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive = false): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let index = 0;\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        const result = predicate(value, index++);\n        (result || inclusive) && subscriber.next(value);\n        !result && subscriber.complete();\n      })\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, Observer } from '../types';\nimport { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\n\n/**\n * An extension to the {@link Observer} interface used only by the {@link tap} operator.\n *\n * It provides a useful set of callbacks a user can register to do side-effects in\n * cases other than what the usual {@link Observer} callbacks are\n * ({@link guide/glossary-and-semantics#next next},\n * {@link guide/glossary-and-semantics#error error} and/or\n * {@link guide/glossary-and-semantics#complete complete}).\n *\n * ## Example\n *\n * ```ts\n * import { fromEvent, switchMap, tap, interval, take } from 'rxjs';\n *\n * const source$ = fromEvent(document, 'click');\n * const result$ = source$.pipe(\n *   switchMap((_, i) => i % 2 === 0\n *     ? fromEvent(document, 'mousemove').pipe(\n *         tap({\n *           subscribe: () => console.log('Subscribed to the mouse move events after click #' + i),\n *           unsubscribe: () => console.log('Mouse move events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('Mouse move events #' + i + ' finalized')\n *         })\n *       )\n *     : interval(1_000).pipe(\n *         take(5),\n *         tap({\n *           subscribe: () => console.log('Subscribed to the 1-second interval events after click #' + i),\n *           unsubscribe: () => console.log('1-second interval events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('1-second interval events #' + i + ' finalized')\n *         })\n *       )\n *   )\n * );\n *\n * const subscription = result$.subscribe({\n *   next: console.log\n * });\n *\n * setTimeout(() => {\n *   console.log('Unsubscribe after 60 seconds');\n *   subscription.unsubscribe();\n * }, 60_000);\n * ```\n */\nexport interface TapObserver<T> extends Observer<T> {\n  /**\n   * The callback that `tap` operator invokes at the moment when the source Observable\n   * gets subscribed to.\n   */\n  subscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when an explicit\n   * {@link guide/glossary-and-semantics#unsubscription unsubscribe} happens. It won't get invoked on\n   * `error` or `complete` events.\n   */\n  unsubscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when any kind of\n   * {@link guide/glossary-and-semantics#finalization finalization} happens - either when\n   * the source Observable `error`s or `complete`s or when it gets explicitly unsubscribed\n   * by the user. There is no difference in using this callback or the {@link finalize}\n   * operator, but if you're already using `tap` operator, you can use this callback\n   * instead. You'd get the same result in either case.\n   */\n  finalize: () => void;\n}\nexport function tap<T>(observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void)): MonoTypeOperatorFunction<T>;\n/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\nexport function tap<T>(\n  next?: ((value: T) => void) | null,\n  error?: ((error: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Used to perform side-effects for notifications from the source observable\n *\n * <span class=\"informal\">Used when you want to affect outside state with a notification without altering the notification</span>\n *\n * ![](tap.png)\n *\n * Tap is designed to allow the developer a designated place to perform side effects. While you _could_ perform side-effects\n * inside of a `map` or a `mergeMap`, that would make their mapping functions impure, which isn't always a big deal, but will\n * make it so you can't do things like memoize those functions. The `tap` operator is designed solely for such side-effects to\n * help you remove side-effects from other operations.\n *\n * For any notification, next, error, or complete, `tap` will call the appropriate callback you have provided to it, via a function\n * reference, or a partial observer, then pass that notification down the stream.\n *\n * The observable returned by `tap` is an exact mirror of the source, with one exception: Any error that occurs -- synchronously -- in a handler\n * provided to `tap` will be emitted as an error from the returned observable.\n *\n * > Be careful! You can mutate objects as they pass through the `tap` operator's handlers.\n *\n * The most common use of `tap` is actually for debugging. You can place a `tap(console.log)` anywhere\n * in your observable `pipe`, log out the notifications as they are emitted by the source returned by the previous\n * operation.\n *\n * ## Examples\n *\n * Check a random number before it is handled. Below is an observable that will use a random number between 0 and 1,\n * and emit `'big'` or `'small'` depending on the size of that number. But we wanted to log what the original number\n * was, so we have added a `tap(console.log)`.\n *\n * ```ts\n * import { of, tap, map } from 'rxjs';\n *\n * of(Math.random()).pipe(\n *   tap(console.log),\n *   map(n => n > 0.5 ? 'big' : 'small')\n * ).subscribe(console.log);\n * ```\n *\n * Using `tap` to analyze a value and force an error. Below is an observable where in our system we only\n * want to emit numbers 3 or less we get from another source. We can force our observable to error\n * using `tap`.\n *\n * ```ts\n * import { of, tap } from 'rxjs';\n *\n * const source = of(1, 2, 3, 4, 5);\n *\n * source.pipe(\n *   tap(n => {\n *     if (n > 3) {\n *       throw new TypeError(`Value ${ n } is greater than 3`);\n *     }\n *   })\n * )\n * .subscribe({ next: console.log, error: err => console.log(err.message) });\n * ```\n *\n * We want to know when an observable completes before moving on to the next observable. The system\n * below will emit a random series of `'X'` characters from 3 different observables in sequence. The\n * only way we know when one observable completes and moves to the next one, in this case, is because\n * we have added a `tap` with the side effect of logging to console.\n *\n * ```ts\n * import { of, concatMap, interval, take, map, tap } from 'rxjs';\n *\n * of(1, 2, 3).pipe(\n *   concatMap(n => interval(1000).pipe(\n *     take(Math.round(Math.random() * 10)),\n *     map(() => 'X'),\n *     tap({ complete: () => console.log(`Done with ${ n }`) })\n *   ))\n * )\n * .subscribe(console.log);\n * ```\n *\n * @see {@link finalize}\n * @see {@link TapObserver}\n *\n * @param observerOrNext A next handler or partial observer\n * @param error An error handler\n * @param complete A completion handler\n * @return A function that returns an Observable identical to the source, but\n * runs the specified Observer or callback(s) for each item.\n */\nexport function tap<T>(\n  observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void) | null,\n  error?: ((e: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T> {\n  // We have to check to see not only if next is a function,\n  // but if error or complete were passed. This is because someone\n  // could technically call tap like `tap(null, fn)` or `tap(null, null, fn)`.\n  const tapObserver =\n    isFunction(observerOrNext) || error || complete\n      ? // tslint:disable-next-line: no-object-literal-type-assertion\n        ({ next: observerOrNext as Exclude<typeof observerOrNext, Partial<TapObserver<T>>>, error, complete } as Partial<TapObserver<T>>)\n      : observerOrNext;\n\n  return tapObserver\n    ? operate((source, subscriber) => {\n        tapObserver.subscribe?.();\n        let isUnsub = true;\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              tapObserver.next?.(value);\n              subscriber.next(value);\n            },\n            () => {\n              isUnsub = false;\n              tapObserver.complete?.();\n              subscriber.complete();\n            },\n            (err) => {\n              isUnsub = false;\n              tapObserver.error?.(err);\n              subscriber.error(err);\n            },\n            () => {\n              if (isUnsub) {\n                tapObserver.unsubscribe?.();\n              }\n              tapObserver.finalize?.();\n            }\n          )\n        );\n      })\n    : // Tap was called with no valid tap observer or handler\n      // (e.g. `tap(null, null, null)` or `tap(null)` or `tap()`)\n      // so we're going to just mirror the source.\n      identity;\n}\n", "import { Subscription } from '../Subscription';\n\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\n\n/**\n * An object interface used by {@link throttle} or {@link throttleTime} that ensure\n * configuration options of these operators.\n *\n * @see {@link throttle}\n * @see {@link throttleTime}\n */\nexport interface ThrottleConfig {\n  /**\n   * If `true`, the resulting Observable will emit the first value from the source\n   * Observable at the **start** of the \"throttling\" process (when starting an\n   * internal timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the first value from the source Observable at the\n   * start of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `true`.\n   */\n  leading?: boolean;\n  /**\n   * If `true`, the resulting Observable will emit the last value from the source\n   * Observable at the **end** of the \"throttling\" process (when ending an internal\n   * timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the last value from the source Observable at the\n   * end of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `false`.\n   */\n  trailing?: boolean;\n}\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](throttle.svg)\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttle, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttle(() => interval(1000)));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param durationSelector A function that receives a value from the source\n * Observable, for computing the silencing duration for each source value,\n * returned as an `ObservableInput`.\n * @param config A configuration object to define `leading` and `trailing`\n * behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttle<T>(durationSelector: (value: T) => ObservableInput<any>, config?: ThrottleConfig): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    const { leading = true, trailing = false } = config ?? {};\n    let hasValue = false;\n    let sendValue: T | null = null;\n    let throttled: Subscription | null = null;\n    let isComplete = false;\n\n    const endThrottling = () => {\n      throttled?.unsubscribe();\n      throttled = null;\n      if (trailing) {\n        send();\n        isComplete && subscriber.complete();\n      }\n    };\n\n    const cleanupThrottling = () => {\n      throttled = null;\n      isComplete && subscriber.complete();\n    };\n\n    const startThrottle = (value: T) =>\n      (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));\n\n    const send = () => {\n      if (hasValue) {\n        // Ensure we clear out our value and hasValue flag\n        // before we emit, otherwise reentrant code can cause\n        // issues here.\n        hasValue = false;\n        const value = sendValue!;\n        sendValue = null;\n        // Emit the value.\n        subscriber.next(value);\n        !isComplete && startThrottle(value);\n      }\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        // Regarding the presence of throttled.closed in the following\n        // conditions, if a synchronous duration selector is specified - weird,\n        // but legal - an already-closed subscription will be assigned to\n        // throttled, so the subscription's closed property needs to be checked,\n        // too.\n        (value) => {\n          hasValue = true;\n          sendValue = value;\n          !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n        },\n        () => {\n          isComplete = true;\n          !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { throttle, ThrottleConfig } from './throttle';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { timer } from '../observable/timer';\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * ![](throttleTime.png)\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link SchedulerLike} for managing timers.\n *\n * ## Examples\n *\n * ### Limit click rate\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttleTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttleTime(1000));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param scheduler The {@link SchedulerLike} to use for\n * managing the timers that handle the throttling. Defaults to {@link asyncScheduler}.\n * @param config A configuration object to define `leading` and\n * `trailing` behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttleTime<T>(\n  duration: number,\n  scheduler: SchedulerLike = asyncScheduler,\n  config?: ThrottleConfig\n): MonoTypeOperatorFunction<T> {\n  const duration$ = timer(duration, scheduler);\n  return throttle(() => duration$, config);\n}\n", "import { OperatorFunction, ObservableInputTuple } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\n\nexport function withLatestFrom<T, O extends unknown[]>(...inputs: [...ObservableInputTuple<O>]): OperatorFunction<T, [T, ...O]>;\n\nexport function withLatestFrom<T, O extends unknown[], R>(\n  ...inputs: [...ObservableInputTuple<O>, (...value: [T, ...O]) => R]\n): OperatorFunction<T, R>;\n\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * ![](withLatestFrom.png)\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * ## Example\n *\n * On every click event, emit an array with the latest timer event plus the click event\n *\n * ```ts\n * import { fromEvent, interval, withLatestFrom } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const result = clicks.pipe(withLatestFrom(timer));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatest}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.pipe(withLatestFrom(b, c), map(([a1, b1, c1]) => a1 + b1 + c1))`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return A function that returns an Observable of projected values from the\n * most recent values from each input Observable, or an array of the most\n * recent values from each input Observable.\n */\nexport function withLatestFrom<T, R>(...inputs: any[]): OperatorFunction<T, R | any[]> {\n  const project = popResultSelector(inputs) as ((...args: any[]) => R) | undefined;\n\n  return operate((source, subscriber) => {\n    const len = inputs.length;\n    const otherValues = new Array(len);\n    // An array of whether or not the other sources have emitted. Matched with them by index.\n    // TODO: At somepoint, we should investigate the performance implications here, and look\n    // into using a `Set()` and checking the `size` to see if we're ready.\n    let hasValue = inputs.map(() => false);\n    // Flipped true when we have at least one value from all other sources and\n    // we are ready to start emitting values.\n    let ready = false;\n\n    // Other sources. Note that here we are not checking `subscriber.closed`,\n    // this causes all inputs to be subscribed to, even if nothing can be emitted\n    // from them. This is an important distinction because subscription constitutes\n    // a side-effect.\n    for (let i = 0; i < len; i++) {\n      innerFrom(inputs[i]).subscribe(\n        createOperatorSubscriber(\n          subscriber,\n          (value) => {\n            otherValues[i] = value;\n            if (!ready && !hasValue[i]) {\n              // If we're not ready yet, flag to show this observable has emitted.\n              hasValue[i] = true;\n              // Intentionally terse code.\n              // If all of our other observables have emitted, set `ready` to `true`,\n              // so we know we can start emitting values, then clean up the `hasValue` array,\n              // because we don't need it anymore.\n              (ready = hasValue.every(identity)) && (hasValue = null!);\n            }\n          },\n          // Completing one of the other sources has\n          // no bearing on the completion of our result.\n          noop\n        )\n      );\n    }\n\n    // Source subscription\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        if (ready) {\n          // We have at least one value from the other sources. Go ahead and emit.\n          const values = [value, ...otherValues];\n          subscriber.next(project ? project(...values) : values);\n        }\n      })\n    );\n  });\n}\n", "import { zip as zipStatic } from '../observable/zip';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { operate } from '../util/lift';\n\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  otherInputsAndProject: [...ObservableInputTuple<A>],\n  project: (...values: Cons<T, A>) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  ...otherInputsAndProject: [...ObservableInputTuple<A>, (...values: Cons<T, A>) => R]\n): OperatorFunction<T, R>;\n\n/**\n * @deprecated Replaced with {@link zipWith}. Will be removed in v8.\n */\nexport function zip<T, R>(...sources: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, any> {\n  return operate((source, subscriber) => {\n    zipStatic(source as ObservableInput<any>, ...(sources as Array<ObservableInput<any>>)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { zip } from './zip';\n\n/**\n * Subscribes to the source, and the observable inputs provided as arguments, and combines their values, by index, into arrays.\n *\n * What is meant by \"combine by index\": The first value from each will be made into a single array, then emitted,\n * then the second value from each will be combined into a single array and emitted, then the third value\n * from each will be combined into a single array and emitted, and so on.\n *\n * This will continue until it is no longer able to combine values of the same index into an array.\n *\n * After the last value from any one completed source is emitted in an array, the resulting observable will complete,\n * as there is no way to continue \"zipping\" values together by index.\n *\n * Use-cases for this operator are limited. There are memory concerns if one of the streams is emitting\n * values at a much faster rate than the others. Usage should likely be limited to streams that emit\n * at a similar pace, or finite streams of known length.\n *\n * In many cases, authors want `combineLatestWith` and not `zipWith`.\n *\n * @param otherInputs other observable inputs to collate values from.\n * @return A function that returns an Observable that emits items by index\n * combined from the source Observable and provided Observables, in form of an\n * array.\n */\nexport function zipWith<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>> {\n  return zip(...otherInputs);\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ReplaySubject,\n  Subject,\n  fromEvent\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch document\n *\n * Documents are implemented as subjects, so all downstream observables are\n * automatically updated when a new document is emitted.\n *\n * @returns Document subject\n */\nexport function watchDocument(): Subject<Document> {\n  const document$ = new ReplaySubject<Document>(1)\n  fromEvent(document, \"DOMContentLoaded\", { once: true })\n    .subscribe(() => document$.next(document))\n\n  /* Return document */\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve all elements matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getElements<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T][]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T[]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T[] {\n  return Array.from(node.querySelectorAll<T>(selector))\n}\n\n/**\n * Retrieve an element matching a query selector or throw a reference error\n *\n * Note that this function assumes that the element is present. If unsure if an\n * element is existent, use the `getOptionalElement` function instead.\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T]\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T {\n  const el = getOptionalElement<T>(selector, node)\n  if (typeof el === \"undefined\")\n    throw new ReferenceError(\n      `Missing element: expected \"${selector}\" to be present`\n    )\n\n  /* Return element */\n  return el\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Retrieve an optional element matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element or nothing\n */\nexport function getOptionalElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T] | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T | undefined {\n  return node.querySelector<T>(selector) || undefined\n}\n\n/**\n * Retrieve the currently active element\n *\n * @returns Element or nothing\n */\nexport function getActiveElement(): HTMLElement | undefined {\n  return (\n    document.activeElement?.shadowRoot?.activeElement as HTMLElement ??\n    document.activeElement as HTMLElement ??\n    undefined\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounceTime,\n  distinctUntilChanged,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Focus observable\n *\n * Previously, this observer used `focus` and `blur` events to determine whether\n * an element is focused, but this doesn't work if there are focusable elements\n * within the elements itself. A better solutions are `focusin` and `focusout`\n * events, which bubble up the tree and allow for more fine-grained control.\n *\n * `debounceTime` is necessary, because when a focus change happens inside an\n * element, the observable would first emit `false` and then `true` again.\n */\nconst observer$ = merge(\n  fromEvent(document.body, \"focusin\"),\n  fromEvent(document.body, \"focusout\")\n)\n  .pipe(\n    debounceTime(1),\n    startWith(undefined),\n    map(() => getActiveElement() || document.body),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element focus\n *\n * @param el - Element\n *\n * @returns Element focus observable\n */\nexport function watchElementFocus(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      map(active => el.contains(active)),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounce,\n  defer,\n  fromEvent,\n  identity,\n  map,\n  merge,\n  startWith,\n  timer\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element hover\n *\n * The second parameter allows to specify a timeout in milliseconds after which\n * the hover state will be reset to `false`. This is useful for tooltips which\n * should disappear after a certain amount of time, in order to allow the user\n * to move the cursor from the host to the tooltip.\n *\n * @param el - Element\n * @param timeout - Timeout\n *\n * @returns Element hover observable\n */\nexport function watchElementHover(\n  el: HTMLElement, timeout?: number\n): Observable<boolean> {\n  return defer(() => merge(\n    fromEvent(el, \"mouseenter\").pipe(map(() => true)),\n    fromEvent(el, \"mouseleave\").pipe(map(() => false))\n  )\n    .pipe(\n      timeout ? debounce(active => timer(+!active * timeout)) : identity,\n      startWith(el.matches(\":hover\"))\n    )\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { JSX as JSXInternal } from \"preact\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * HTML attributes\n */\ntype Attributes =\n  & JSXInternal.HTMLAttributes\n  & JSXInternal.SVGAttributes\n  & Record<string, any>\n\n/**\n * Child element\n */\ntype Child =\n  | ChildNode\n  | HTMLElement\n  | Text\n  | string\n  | number\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Append a child node to an element\n *\n * @param el - Element\n * @param child - Child node(s)\n */\nfunction appendChild(el: HTMLElement, child: Child | Child[]): void {\n\n  /* Handle primitive types (including raw HTML) */\n  if (typeof child === \"string\" || typeof child === \"number\") {\n    el.innerHTML += child.toString()\n\n  /* Handle nodes */\n  } else if (child instanceof Node) {\n    el.appendChild(child)\n\n  /* Handle nested children */\n  } else if (Array.isArray(child)) {\n    for (const node of child)\n      appendChild(el, node)\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * JSX factory\n *\n * @template T - Element type\n *\n * @param tag - HTML tag\n * @param attributes - HTML attributes\n * @param children - Child elements\n *\n * @returns Element\n */\nexport function h<T extends keyof HTMLElementTagNameMap>(\n  tag: T, attributes?: Attributes | null, ...children: Child[]\n): HTMLElementTagNameMap[T]\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T {\n  const el = document.createElement(tag)\n\n  /* Set attributes, if any */\n  if (attributes)\n    for (const attr of Object.keys(attributes)) {\n      if (typeof attributes[attr] === \"undefined\")\n        continue\n\n      /* Set default attribute or boolean */\n      if (typeof attributes[attr] !== \"boolean\")\n        el.setAttribute(attr, attributes[attr])\n      else\n        el.setAttribute(attr, \"\")\n    }\n\n  /* Append child nodes */\n  for (const child of children)\n    appendChild(el, child)\n\n  /* Return element */\n  return el as T\n}\n\n/* ----------------------------------------------------------------------------\n * Namespace\n * ------------------------------------------------------------------------- */\n\nexport declare namespace h {\n  namespace JSX {\n    type Element = HTMLElement\n    type IntrinsicElements = JSXInternal.IntrinsicElements\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Round a number for display with repository facts\n *\n * This is a reverse-engineered version of GitHub's weird rounding algorithm\n * for stars, forks and all other numbers. While all numbers below `1,000` are\n * returned as-is, bigger numbers are converted to fixed numbers:\n *\n * - `1,049` => `1k`\n * - `1,050` => `1.1k`\n * - `1,949` => `1.9k`\n * - `1,950` => `2k`\n *\n * @param value - Original value\n *\n * @returns Rounded value\n */\nexport function round(value: number): string {\n  if (value > 999) {\n    const digits = +((value - 950) % 1000 > 99)\n    return `${((value + 0.000001) / 1000).toFixed(digits)}k`\n  } else {\n    return value.toString()\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  switchMap,\n  take,\n  throwError\n} from \"rxjs\"\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create and load a `script` element\n *\n * This function returns an observable that will emit when the script was\n * successfully loaded, or throw an error if it wasn't.\n *\n * @param src - Script URL\n *\n * @returns Script observable\n */\nexport function watchScript(src: string): Observable<void> {\n  const script = h(\"script\", { src })\n  return defer(() => {\n    document.head.appendChild(script)\n    return merge(\n      fromEvent(script, \"load\"),\n      fromEvent(script, \"error\")\n        .pipe(\n          switchMap(() => (\n            throwError(() => new ReferenceError(`Invalid script: ${src}`))\n          ))\n        )\n    )\n      .pipe(\n        map(() => undefined),\n        finalize(() => document.head.removeChild(script)),\n        take(1)\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"../../../script\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementSize {\n  width: number                        /* Element width */\n  height: number                       /* Element height */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Resize observer entry subject\n */\nconst entry$ = new Subject<ResizeObserverEntry>()\n\n/**\n * Resize observer observable\n *\n * This observable will create a `ResizeObserver` on the first subscription\n * and will automatically terminate it when there are no more subscribers.\n * It's quite important to centralize observation in a single `ResizeObserver`,\n * as the performance difference can be quite dramatic, as the link shows.\n *\n * If the browser doesn't have a `ResizeObserver` implementation available, a\n * polyfill is automatically downloaded from unpkg.com. This is also compatible\n * with the built-in privacy plugin, which will download the polyfill and put\n * it alongside the built site for self-hosting.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => (\n  typeof ResizeObserver === \"undefined\"\n    ? watchScript(\"https://unpkg.com/resize-observer-polyfill\")\n    : of(undefined)\n))\n  .pipe(\n    map(() => new ResizeObserver(entries => (\n      entries.forEach(entry => entry$.next(entry))\n    ))),\n    switchMap(observer => merge(NEVER, of(observer)).pipe(\n      finalize(() => observer.disconnect())\n    )),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element size\n *\n * @param el - Element\n *\n * @returns Element size\n */\nexport function getElementSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.offsetWidth,\n    height: el.offsetHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element size\n *\n * This function returns an observable that subscribes to a single internal\n * instance of `ResizeObserver` upon subscription, and emit resize events until\n * termination. Note that this function should not be called with the same\n * element twice, as the first unsubscription will terminate observation.\n *\n * Sadly, we can't use the `DOMRect` objects returned by the observer, because\n * we need the emitted values to be consistent with `getElementSize`, which will\n * return the used values (rounded) and not actual values (unrounded). Thus, we\n * use the `offset*` properties. See the linked GitHub issue.\n *\n * @see https://bit.ly/3m0k3he - GitHub issue\n *\n * @param el - Element\n *\n * @returns Element size observable\n */\nexport function watchElementSize(\n  el: HTMLElement\n): Observable<ElementSize> {\n\n  // Compute target element - since inline elements cannot be observed by the\n  // current `ResizeObserver` implementation as provided by browsers, we need\n  // to determine the first containing parent element and use that one as a\n  // target, while we always compute the actual size from the element.\n  let target = el\n  while (target.clientWidth === 0)\n    if (target.parentElement)\n      target = target.parentElement\n    else\n      break\n\n  // Observe target element and recompute element size on resize - as described\n  // above, the target element is not necessarily the element of interest\n  return observer$.pipe(\n    tap(observer => observer.observe(target)),\n    switchMap(observer => entry$.pipe(\n      filter(entry => entry.target === target),\n      finalize(() => observer.unobserve(target))\n    )),\n    map(() => getElementSize(el)),\n    startWith(getElementSize(el))\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ElementSize } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content size (= scroll width and height)\n *\n * @param el - Element\n *\n * @returns Element content size\n */\nexport function getElementContentSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.scrollWidth,\n    height: el.scrollHeight\n  }\n}\n\n/**\n * Retrieve the overflowing container of an element, if any\n *\n * @param el - Element\n *\n * @returns Overflowing container or nothing\n */\nexport function getElementContainer(\n  el: HTMLElement\n): HTMLElement | undefined {\n  let parent = el.parentElement\n  while (parent)\n    if (\n      el.scrollWidth  <= parent.scrollWidth &&\n      el.scrollHeight <= parent.scrollHeight\n    )\n      parent = (el = parent).parentElement\n    else\n      break\n\n  /* Return overflowing container */\n  return parent ? el : undefined\n}\n\n/**\n * Retrieve all overflowing containers of an element, if any\n *\n * Note that this function has a slightly different behavior, so we should at\n * some point consider refactoring how overflowing containers are handled.\n *\n * @param el - Element\n *\n * @returns Overflowing containers\n */\nexport function getElementContainers(\n  el: HTMLElement\n): HTMLElement[] {\n  const containers: HTMLElement[] = []\n\n  // Walk up the DOM tree until we find an overflowing container\n  let parent = el.parentElement\n  while (parent) {\n    if (\n      el.clientWidth  > parent.clientWidth ||\n      el.clientHeight > parent.clientHeight\n    )\n      containers.push(parent)\n\n    // Continue with parent element\n    parent = (el = parent).parentElement\n  }\n\n  // If the page is short, the body might not be overflowing and there might be\n  // no other containers, which is why we need to make sure the body is present\n  if (containers.length === 0)\n    containers.push(document.documentElement)\n\n  // Return overflowing containers\n  return containers\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\nimport { watchElementSize } from \"../../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.offsetLeft,\n    y: el.offsetTop\n  }\n}\n\n/**\n * Retrieve absolute element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffsetAbsolute(\n  el: HTMLElement\n): ElementOffset {\n  const rect = el.getBoundingClientRect()\n  return {\n    x: rect.x + window.scrollX,\n    y: rect.y + window.scrollY\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(window, \"load\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementOffset(el)),\n      startWith(getElementOffset(el))\n    )\n}\n\n/**\n * Watch absolute element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffsetAbsolute(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    watchElementOffset(el),\n    watchElementSize(document.body) // @todo find a better way for this\n  )\n    .pipe(\n      map(() => getElementOffsetAbsolute(el)),\n      startWith(getElementOffsetAbsolute(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\nimport { ElementOffset } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content offset (= scroll offset)\n *\n * @param el - Element\n *\n * @returns Element content offset\n */\nexport function getElementContentOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.scrollLeft,\n    y: el.scrollTop\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element content offset\n *\n * @param el - Element\n *\n * @returns Element content offset observable\n */\nexport function watchElementContentOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(el, \"scroll\"),\n    fromEvent(window, \"scroll\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementContentOffset(el)),\n      startWith(getElementContentOffset(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElementContentSize,\n  getElementSize,\n  watchElementContentOffset\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Intersection observer entry subject\n */\nconst entry$ = new Subject<IntersectionObserverEntry>()\n\n/**\n * Intersection observer observable\n *\n * This observable will create an `IntersectionObserver` on first subscription\n * and will automatically terminate it when there are no more subscribers.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => of(\n  new IntersectionObserver(entries => {\n    for (const entry of entries)\n      entry$.next(entry)\n  }, {\n    threshold: 0\n  })\n))\n  .pipe(\n    switchMap(observer => merge(NEVER, of(observer))\n      .pipe(\n        finalize(() => observer.disconnect())\n      )\n    ),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element visibility\n *\n * @param el - Element\n *\n * @returns Element visibility observable\n */\nexport function watchElementVisibility(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      tap(observer => observer.observe(el)),\n      switchMap(observer => entry$\n        .pipe(\n          filter(({ target }) => target === el),\n          finalize(() => observer.unobserve(el)),\n          map(({ isIntersecting }) => isIntersecting)\n        )\n      )\n    )\n}\n\n/**\n * Watch element boundary\n *\n * This function returns an observable which emits whether the bottom content\n * boundary (= scroll offset) of an element is within a certain threshold.\n *\n * @param el - Element\n * @param threshold - Threshold\n *\n * @returns Element boundary observable\n */\nexport function watchElementBoundary(\n  el: HTMLElement, threshold = 16\n): Observable<boolean> {\n  return watchElementContentOffset(el)\n    .pipe(\n      map(({ y }) => {\n        const visible = getElementSize(el)\n        const content = getElementContentSize(el)\n        return y >= (\n          content.height - visible.height - threshold\n        )\n      }),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getElement } from \"../element\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle\n */\nexport type Toggle =\n  | \"drawer\"                           /* Toggle for drawer */\n  | \"search\"                           /* Toggle for search */\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle map\n */\nconst toggles: Record<Toggle, HTMLInputElement> = {\n  drawer: getElement(\"[data-md-toggle=drawer]\"),\n  search: getElement(\"[data-md-toggle=search]\")\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the value of a toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value\n */\nexport function getToggle(name: Toggle): boolean {\n  return toggles[name].checked\n}\n\n/**\n * Set toggle\n *\n * Simulating a click event seems to be the most cross-browser compatible way\n * of changing the value while also emitting a `change` event. Before, Material\n * used `CustomEvent` to programmatically change the value of a toggle, but this\n * is a much simpler and cleaner solution which doesn't require a polyfill.\n *\n * @param name - Toggle\n * @param value - Toggle value\n */\nexport function setToggle(name: Toggle, value: boolean): void {\n  if (toggles[name].checked !== value)\n    toggles[name].click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value observable\n */\nexport function watchToggle(name: Toggle): Observable<boolean> {\n  const el = toggles[name]\n  return fromEvent(el, \"change\")\n    .pipe(\n      map(() => el.checked),\n      startWith(el.checked)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  share,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../element\"\nimport { getToggle } from \"../toggle\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Keyboard mode\n */\nexport type KeyboardMode =\n  | \"global\"                           /* Global */\n  | \"search\"                           /* Search is open */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Keyboard\n */\nexport interface Keyboard {\n  mode: KeyboardMode                   /* Keyboard mode */\n  type: string                         /* Key type */\n  claim(): void                        /* Key claim */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether an element may receive keyboard input\n *\n * @param el - Element\n * @param type - Key type\n *\n * @returns Test result\n */\nfunction isSusceptibleToKeyboard(\n  el: HTMLElement, type: string\n): boolean {\n  switch (el.constructor) {\n\n    /* Input elements */\n    case HTMLInputElement:\n      /* @ts-expect-error - omit unnecessary type cast */\n      if (el.type === \"radio\")\n        return /^Arrow/.test(type)\n      else\n        return true\n\n    /* Select element and textarea */\n    case HTMLSelectElement:\n    case HTMLTextAreaElement:\n      return true\n\n    /* Everything else */\n    default:\n      return el.isContentEditable\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch composition events\n *\n * @returns Composition observable\n */\nexport function watchComposition(): Observable<boolean> {\n  return merge(\n    fromEvent(window, \"compositionstart\").pipe(map(() => true)),\n    fromEvent(window, \"compositionend\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(false)\n    )\n}\n\n/**\n * Watch keyboard\n *\n * @returns Keyboard observable\n */\nexport function watchKeyboard(): Observable<Keyboard> {\n  const keyboard$ = fromEvent<KeyboardEvent>(window, \"keydown\")\n    .pipe(\n      filter(ev => !(ev.metaKey || ev.ctrlKey)),\n      map(ev => ({\n        mode: getToggle(\"search\") ? \"search\" : \"global\",\n        type: ev.key,\n        claim() {\n          ev.preventDefault()\n          ev.stopPropagation()\n        }\n      } as Keyboard)),\n      filter(({ mode, type }) => {\n        if (mode === \"global\") {\n          const active = getActiveElement()\n          if (typeof active !== \"undefined\")\n            return !isSusceptibleToKeyboard(active, type)\n        }\n        return true\n      }),\n      share()\n    )\n\n  /* Don't emit during composition events - see https://bit.ly/3te3Wl8 */\n  return watchComposition()\n    .pipe(\n      switchMap(active => !active ? keyboard$ : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Subject } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location\n *\n * This function returns a `URL` object (and not `Location`) to normalize the\n * typings across the application. Furthermore, locations need to be tracked\n * without setting them and `Location` is a singleton which represents the\n * current location.\n *\n * @returns URL\n */\nexport function getLocation(): URL {\n  return new URL(location.href)\n}\n\n/**\n * Set location\n *\n * If instant navigation is enabled, this function creates a temporary anchor\n * element, sets the `href` attribute, appends it to the body, clicks it, and\n * then removes it again. The event will bubble up the DOM and trigger be\n * intercepted by the instant loading business logic.\n *\n * Note that we must append and remove the anchor element, or the event will\n * not bubble up the DOM, making it impossible to intercept it.\n *\n * @param url - URL to navigate to\n * @param navigate - Force navigation\n */\nexport function setLocation(\n  url: URL | HTMLLinkElement, navigate = false\n): void {\n  if (feature(\"navigation.instant\") && !navigate) {\n    const el = h(\"a\", { href: url.href })\n    document.body.appendChild(el)\n    el.click()\n    el.remove()\n\n  // If we're not using instant navigation, and the page should not be reloaded\n  // just instruct the browser to navigate to the given URL\n  } else {\n    location.href = url.href\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location\n *\n * @returns Location subject\n */\nexport function watchLocation(): Subject<URL> {\n  return new Subject<URL>()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getOptionalElement } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location hash\n *\n * @returns Location hash\n */\nexport function getLocationHash(): string {\n  return location.hash.slice(1)\n}\n\n/**\n * Set location hash\n *\n * Setting a new fragment identifier via `location.hash` will have no effect\n * if the value doesn't change. When a new fragment identifier is set, we want\n * the browser to target the respective element at all times, which is why we\n * use this dirty little trick.\n *\n * @param hash - Location hash\n */\nexport function setLocationHash(hash: string): void {\n  const el = h(\"a\", { href: hash })\n  el.addEventListener(\"click\", ev => ev.stopPropagation())\n  el.click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location hash\n *\n * @param location$ - Location observable\n *\n * @returns Location hash observable\n */\nexport function watchLocationHash(\n  location$: Observable<URL>\n): Observable<string> {\n  return merge(\n    fromEvent<HashChangeEvent>(window, \"hashchange\"),\n    location$\n  )\n    .pipe(\n      map(getLocationHash),\n      startWith(getLocationHash()),\n      filter(hash => hash.length > 0),\n      shareReplay(1)\n    )\n}\n\n/**\n * Watch location target\n *\n * @param location$ - Location observable\n *\n * @returns Location target observable\n */\nexport function watchLocationTarget(\n  location$: Observable<URL>\n): Observable<HTMLElement> {\n  return watchLocationHash(location$)\n    .pipe(\n      map(id => getOptionalElement(`[id=\"${id}\"]`)!),\n      filter(el => typeof el !== \"undefined\")\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  fromEvent,\n  fromEventPattern,\n  map,\n  merge,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch media query\n *\n * Note that although `MediaQueryList.addListener` is deprecated we have to\n * use it, because it's the only way to ensure proper downward compatibility.\n *\n * @see https://bit.ly/3dUBH2m - GitHub issue\n *\n * @param query - Media query\n *\n * @returns Media observable\n */\nexport function watchMedia(query: string): Observable<boolean> {\n  const media = matchMedia(query)\n  return fromEventPattern<boolean>(next => (\n    media.addListener(() => next(media.matches))\n  ))\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/**\n * Watch print mode\n *\n * @returns Print observable\n */\nexport function watchPrint(): Observable<boolean> {\n  const media = matchMedia(\"print\")\n  return merge(\n    fromEvent(window, \"beforeprint\").pipe(map(() => true)),\n    fromEvent(window, \"afterprint\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Toggle an observable with a media observable\n *\n * @template T - Data type\n *\n * @param query$ - Media observable\n * @param factory - Observable factory\n *\n * @returns Toggled observable\n */\nexport function at<T>(\n  query$: Observable<boolean>, factory: () => Observable<T>\n): Observable<T> {\n  return query$\n    .pipe(\n      switchMap(active => active ? factory() : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  map,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Options\n */\ninterface Options {\n  progress$?: Subject<number>          // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the given URL\n *\n * This function returns an observable that emits the response as a blob and\n * completes, or emits an error if the request failed. The caller can cancel\n * the request by unsubscribing at any time, which will automatically abort\n * the inflight request and complete the observable.\n *\n * Note that we use `XMLHTTPRequest` not because we're nostalgic, but because\n * it's the only way to get progress events for downloads and also allow for\n * cancellation of requests, as the official Fetch API does not support this\n * yet, even though we're already in 2024.\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function request(\n  url: URL | string, options?: Options\n): Observable<Blob> {\n  return new Observable<Blob>(observer => {\n    const req = new XMLHttpRequest()\n    req.open(\"GET\", `${url}`)\n    req.responseType = \"blob\"\n\n    // Handle response\n    req.addEventListener(\"load\", () => {\n      if (req.status >= 200 && req.status < 300) {\n        observer.next(req.response)\n        observer.complete()\n\n      // Every response that is not in the 2xx range is considered an error\n      } else {\n        observer.error(new Error(req.statusText))\n      }\n    })\n\n    // Handle network errors\n    req.addEventListener(\"error\", () => {\n      observer.error(new Error(\"Network error\"))\n    })\n\n    // Handle aborted requests\n    req.addEventListener(\"abort\", () => {\n      observer.complete()\n    })\n\n    // Handle download progress\n    if (typeof options?.progress$ !== \"undefined\") {\n      req.addEventListener(\"progress\", event => {\n        if (event.lengthComputable) {\n          options.progress$!.next((event.loaded / event.total) * 100)\n\n        // Hack: Chromium doesn't report the total number of bytes if content\n        // is compressed, so we need this fallback - see https://t.ly/ZXofI\n        } else {\n          const length = req.getResponseHeader(\"Content-Length\") ?? 0\n          options.progress$!.next((event.loaded / +length) * 100)\n        }\n      })\n\n      // Immediately set progress to 5% to indicate that we're loading\n      options.progress$.next(5)\n    }\n\n    // Send request and automatically abort request upon unsubscription\n    req.send()\n    return () => req.abort()\n  })\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Fetch JSON from the given URL\n *\n * @template T - Data type\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestJSON<T>(\n  url: URL | string, options?: Options\n): Observable<T> {\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(body => JSON.parse(body) as T),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch HTML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestHTML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/html\")),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch XML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestXML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/xml\")),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport offset\n */\nexport interface ViewportOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport offset\n *\n * On iOS Safari, viewport offset can be negative due to overflow scrolling.\n * As this may induce strange behaviors downstream, we'll just limit it to 0.\n *\n * @returns Viewport offset\n */\nexport function getViewportOffset(): ViewportOffset {\n  return {\n    x: Math.max(0, scrollX),\n    y: Math.max(0, scrollY)\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport offset\n *\n * @returns Viewport offset observable\n */\nexport function watchViewportOffset(): Observable<ViewportOffset> {\n  return merge(\n    fromEvent(window, \"scroll\", { passive: true }),\n    fromEvent(window, \"resize\", { passive: true })\n  )\n    .pipe(\n      map(getViewportOffset),\n      startWith(getViewportOffset())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport size\n */\nexport interface ViewportSize {\n  width: number                        /* Viewport width */\n  height: number                       /* Viewport height */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport size\n *\n * @returns Viewport size\n */\nexport function getViewportSize(): ViewportSize {\n  return {\n    width:  innerWidth,\n    height: innerHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport size\n *\n * @returns Viewport size observable\n */\nexport function watchViewportSize(): Observable<ViewportSize> {\n  return fromEvent(window, \"resize\", { passive: true })\n    .pipe(\n      map(getViewportSize),\n      startWith(getViewportSize())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  map,\n  shareReplay\n} from \"rxjs\"\n\nimport {\n  ViewportOffset,\n  watchViewportOffset\n} from \"../offset\"\nimport {\n  ViewportSize,\n  watchViewportSize\n} from \"../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport\n */\nexport interface Viewport {\n  offset: ViewportOffset               /* Viewport offset */\n  size: ViewportSize                   /* Viewport size */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport\n *\n * @returns Viewport observable\n */\nexport function watchViewport(): Observable<Viewport> {\n  return combineLatest([\n    watchViewportOffset(),\n    watchViewportSize()\n  ])\n    .pipe(\n      map(([offset, size]) => ({ offset, size })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilKeyChanged,\n  map\n} from \"rxjs\"\n\nimport { Header } from \"~/components\"\n\nimport { getElementOffset } from \"../../element\"\nimport { Viewport } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport relative to element\n *\n * @param el - Element\n * @param options - Options\n *\n * @returns Viewport observable\n */\nexport function watchViewportAt(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Viewport> {\n  const size$ = viewport$\n    .pipe(\n      distinctUntilKeyChanged(\"size\")\n    )\n\n  /* Compute element offset */\n  const offset$ = combineLatest([size$, header$])\n    .pipe(\n      map(() => getElementOffset(el))\n    )\n\n  /* Compute relative viewport, return hot observable */\n  return combineLatest([header$, viewport$, offset$])\n    .pipe(\n      map(([{ height }, { offset, size }, { x, y }]) => ({\n        offset: {\n          x: offset.x - x,\n          y: offset.y - y + height\n        },\n        size\n      }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  mergeWith,\n  share,\n  takeUntil\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Worker message\n */\nexport interface WorkerMessage {\n  type: unknown                        /* Message type */\n  data?: unknown                       /* Message data */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create an observable for receiving from a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message observable\n */\nfunction recv<T>(worker: Worker): Observable<T> {\n  return fromEvent<MessageEvent<T>, T>(worker, \"message\", ev => ev.data)\n}\n\n/**\n * Create a subject for sending to a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message subject\n */\nfunction send<T>(worker: Worker): Subject<T> {\n  const send$ = new Subject<T>()\n  send$.subscribe(data => worker.postMessage(data))\n\n  /* Return message subject */\n  return send$\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a bidirectional communication channel to a web worker\n *\n * @template T - Data type\n *\n * @param url - Worker URL\n * @param worker - Worker\n *\n * @returns Worker subject\n */\nexport function watchWorker<T extends WorkerMessage>(\n  url: string, worker = new Worker(url)\n): Subject<T> {\n  const recv$ = recv<T>(worker)\n  const send$ = send<T>(worker)\n\n  /* Create worker subject and forward messages */\n  const worker$ = new Subject<T>()\n  worker$.subscribe(send$)\n\n  /* Return worker subject */\n  const done$ = send$.pipe(ignoreElements(), endWith(true))\n  return worker$\n    .pipe(\n      ignoreElements(),\n      mergeWith(recv$.pipe(takeUntil(done$))),\n      share()\n    ) as Subject<T>\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getLocation } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Feature flag\n */\nexport type Flag =\n  | \"announce.dismiss\"                 /* Dismissable announcement bar */\n  | \"content.code.annotate\"            /* Code annotations */\n  | \"content.code.copy\"                /* Code copy button */\n  | \"content.lazy\"                     /* Lazy content elements */\n  | \"content.tabs.link\"                /* Link content tabs */\n  | \"content.tooltips\"                 /* Tooltips */\n  | \"header.autohide\"                  /* Hide header */\n  | \"navigation.expand\"                /* Automatic expansion */\n  | \"navigation.indexes\"               /* Section pages */\n  | \"navigation.instant\"               /* Instant navigation */\n  | \"navigation.instant.progress\"      /* Instant navigation progress */\n  | \"navigation.sections\"              /* Section navigation */\n  | \"navigation.tabs\"                  /* Tabs navigation */\n  | \"navigation.tabs.sticky\"           /* Tabs navigation (sticky) */\n  | \"navigation.top\"                   /* Back-to-top button */\n  | \"navigation.tracking\"              /* Anchor tracking */\n  | \"search.highlight\"                 /* Search highlighting */\n  | \"search.share\"                     /* Search sharing */\n  | \"search.suggest\"                   /* Search suggestions */\n  | \"toc.follow\"                       /* Following table of contents */\n  | \"toc.integrate\"                    /* Integrated table of contents */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Translation\n */\nexport type Translation =\n  | \"clipboard.copy\"                   /* Copy to clipboard */\n  | \"clipboard.copied\"                 /* Copied to clipboard */\n  | \"search.result.placeholder\"        /* Type to start searching */\n  | \"search.result.none\"               /* No matching documents */\n  | \"search.result.one\"                /* 1 matching document */\n  | \"search.result.other\"              /* # matching documents */\n  | \"search.result.more.one\"           /* 1 more on this page */\n  | \"search.result.more.other\"         /* # more on this page */\n  | \"search.result.term.missing\"       /* Missing */\n  | \"select.version\"                   /* Version selector */\n\n/**\n * Translations\n */\nexport type Translations =\n  Record<Translation, string>\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Versioning\n */\nexport interface Versioning {\n  provider: \"mike\"                     /* Version provider */\n  default?: string | string[]          /* Default version */\n}\n\n/**\n * Configuration\n */\nexport interface Config {\n  base: string                         /* Base URL */\n  features: Flag[]                     /* Feature flags */\n  translations: Translations           /* Translations */\n  search: string                       /* Search worker URL */\n  tags?: Record<string, string>        /* Tags mapping */\n  version?: Versioning                 /* Versioning */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration and make base URL absolute\n */\nconst script = getElement(\"#__config\")\nconst config: Config = JSON.parse(script.textContent!)\nconfig.base = `${new URL(config.base, getLocation())}`\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration\n *\n * @returns Global configuration\n */\nexport function configuration(): Config {\n  return config\n}\n\n/**\n * Check whether a feature flag is enabled\n *\n * @param flag - Feature flag\n *\n * @returns Test result\n */\nexport function feature(flag: Flag): boolean {\n  return config.features.includes(flag)\n}\n\n/**\n * Retrieve the translation for the given key\n *\n * @param key - Key to be translated\n * @param value - Positional value, if any\n *\n * @returns Translation\n */\nexport function translation(\n  key: Translation, value?: string | number\n): string {\n  return typeof value !== \"undefined\"\n    ? config.translations[key].replace(\"#\", value.toString())\n    : config.translations[key]\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type\n */\nexport type ComponentType =\n  | \"announce\"                         /* Announcement bar */\n  | \"container\"                        /* Container */\n  | \"consent\"                          /* Consent */\n  | \"content\"                          /* Content */\n  | \"dialog\"                           /* Dialog */\n  | \"header\"                           /* Header */\n  | \"header-title\"                     /* Header title */\n  | \"header-topic\"                     /* Header topic */\n  | \"main\"                             /* Main area */\n  | \"outdated\"                         /* Version warning */\n  | \"palette\"                          /* Color palette */\n  | \"progress\"                         /* Progress indicator */\n  | \"search\"                           /* Search */\n  | \"search-query\"                     /* Search input */\n  | \"search-result\"                    /* Search results */\n  | \"search-share\"                     /* Search sharing */\n  | \"search-suggest\"                   /* Search suggestions */\n  | \"sidebar\"                          /* Sidebar */\n  | \"skip\"                             /* Skip link */\n  | \"source\"                           /* Repository information */\n  | \"tabs\"                             /* Navigation tabs */\n  | \"toc\"                              /* Table of contents */\n  | \"top\"                              /* Back-to-top button */\n\n/**\n * Component\n *\n * @template T - Component type\n * @template U - Reference type\n */\nexport type Component<\n  T extends {} = {},\n  U extends HTMLElement = HTMLElement\n> =\n  T & {\n    ref: U                             /* Component reference */\n  }\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type map\n */\ninterface ComponentTypeMap {\n  \"announce\": HTMLElement              /* Announcement bar */\n  \"container\": HTMLElement             /* Container */\n  \"consent\": HTMLElement               /* Consent */\n  \"content\": HTMLElement               /* Content */\n  \"dialog\": HTMLElement                /* Dialog */\n  \"header\": HTMLElement                /* Header */\n  \"header-title\": HTMLElement          /* Header title */\n  \"header-topic\": HTMLElement          /* Header topic */\n  \"main\": HTMLElement                  /* Main area */\n  \"outdated\": HTMLElement              /* Version warning */\n  \"palette\": HTMLElement               /* Color palette */\n  \"progress\": HTMLElement              /* Progress indicator */\n  \"search\": HTMLElement                /* Search */\n  \"search-query\": HTMLInputElement     /* Search input */\n  \"search-result\": HTMLElement         /* Search results */\n  \"search-share\": HTMLAnchorElement    /* Search sharing */\n  \"search-suggest\": HTMLElement        /* Search suggestions */\n  \"sidebar\": HTMLElement               /* Sidebar */\n  \"skip\": HTMLAnchorElement            /* Skip link */\n  \"source\": HTMLAnchorElement          /* Repository information */\n  \"tabs\": HTMLElement                  /* Navigation tabs */\n  \"toc\": HTMLElement                   /* Table of contents */\n  \"top\": HTMLAnchorElement             /* Back-to-top button */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the element for a given component or throw a reference error\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getComponentElement<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T] {\n  return getElement(`[data-md-component=${type}]`, node)\n}\n\n/**\n * Retrieve all elements for a given component\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getComponentElements<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T][] {\n  return getElements(`[data-md-component=${type}]`, node)\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Announcement bar\n */\nexport interface Announce {\n  hash: number                        /* Content hash */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar observable\n */\nexport function watchAnnounce(\n  el: HTMLElement\n): Observable<Announce> {\n  const button = getElement(\".md-typeset > :first-child\", el)\n  return fromEvent(button, \"click\", { once: true })\n    .pipe(\n      map(() => getElement(\".md-typeset\", el)),\n      map(content => ({ hash: __md_hash(content.innerHTML) }))\n    )\n}\n\n/**\n * Mount announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar component observable\n */\nexport function mountAnnounce(\n  el: HTMLElement\n): Observable<Component<Announce>> {\n  if (!feature(\"announce.dismiss\") || !el.childElementCount)\n    return EMPTY\n\n  /* Support instant navigation - see https://t.ly/3FTme */\n  if (!el.hidden) {\n    const content = getElement(\".md-typeset\", el)\n    if (__md_hash(content.innerHTML) === __md_get(\"__announce\"))\n      el.hidden = true\n  }\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Announce>()\n    push$.subscribe(({ hash }) => {\n      el.hidden = true\n\n      /* Persist preference in local storage */\n      __md_set<number>(\"__announce\", hash)\n    })\n\n    /* Create and return component */\n    return watchAnnounce(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Consent\n */\nexport interface Consent {\n  hidden: boolean                      /* Consent is hidden */\n}\n\n/**\n * Consent defaults\n */\nexport interface ConsentDefaults {\n  analytics?: boolean                  /* Consent for Analytics */\n  github?: boolean                     /* Consent for GitHub */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent observable\n */\nexport function watchConsent(\n  el: HTMLElement, { target$ }: WatchOptions\n): Observable<Consent> {\n  return target$\n    .pipe(\n      map(target => ({ hidden: target !== el }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent component observable\n */\nexport function mountConsent(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Consent>> {\n  const internal$ = new Subject<Consent>()\n  internal$.subscribe(({ hidden }) => {\n    el.hidden = hidden\n  })\n\n  /* Create and return component */\n  return watchConsent(el, options)\n    .pipe(\n      tap(state => internal$.next(state)),\n      finalize(() => internal$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ComponentChild } from \"preact\"\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip style\n */\nexport type TooltipStyle =\n  | \"inline\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a tooltip\n *\n * @param id - Tooltip identifier\n * @param style - Tooltip style\n *\n * @returns Element\n */\nexport function renderTooltip(\n  id?: string, style?: TooltipStyle\n): HTMLElement {\n  if (style === \"inline\") { // @todo refactor control flow\n    return (\n      <div class=\"md-tooltip md-tooltip--inline\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  } else {\n    return (\n      <div class=\"md-tooltip\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  }\n}\n\n// @todo: rename\nexport function renderInlineTooltip2(\n  ...children: ComponentChild[]\n): HTMLElement {\n  return (\n    <div class=\"md-tooltip2\" role=\"tooltip\">\n      <div class=\"md-tooltip2__inner md-typeset\">\n        {children}\n      </div>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\nimport { renderTooltip } from \"../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render an annotation\n *\n * @param id - Annotation identifier\n * @param prefix - Tooltip identifier prefix\n *\n * @returns Element\n */\nexport function renderAnnotation(\n  id: string | number, prefix?: string\n): HTMLElement {\n  prefix = prefix ? `${prefix}_annotation_${id}` : undefined\n\n  /* Render tooltip with anchor, if given */\n  if (prefix) {\n    const anchor = prefix ? `#${prefix}` : undefined\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <a href={anchor} class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </a>\n      </aside>\n    )\n  } else {\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <span class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </span>\n      </aside>\n    )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a 'copy-to-clipboard' button\n *\n * @param id - Unique identifier\n *\n * @returns Element\n */\nexport function renderClipboardButton(id: string): HTMLElement {\n  return (\n    <button\n      class=\"md-clipboard md-icon\"\n      title={translation(\"clipboard.copy\")}\n      data-clipboard-target={`#${id} > code`}\n    ></button>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ComponentChild } from \"preact\"\n\nimport { configuration, feature, translation } from \"~/_\"\nimport { SearchItem } from \"~/integrations/search\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Render flag\n */\nconst enum Flag {\n  TEASER = 1,                          /* Render teaser */\n  PARENT = 2                           /* Render as parent */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper function\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search document\n *\n * @param document - Search document\n * @param flag - Render flags\n *\n * @returns Element\n */\nfunction renderSearchDocument(\n  document: SearchItem, flag: Flag\n): HTMLElement {\n  const parent = flag & Flag.PARENT\n  const teaser = flag & Flag.TEASER\n\n  /* Render missing query terms */\n  const missing = Object.keys(document.terms)\n    .filter(key => !document.terms[key])\n    .reduce<ComponentChild[]>((list, key) => [\n      ...list, <del>{key}</del>, \" \"\n    ], [])\n    .slice(0, -1)\n\n  /* Assemble query string for highlighting */\n  const config = configuration()\n  const url = new URL(document.location, config.base)\n  if (feature(\"search.highlight\"))\n    url.searchParams.set(\"h\", Object.entries(document.terms)\n      .filter(([, match]) => match)\n      .reduce((highlight, [value]) => `${highlight} ${value}`.trim(), \"\")\n    )\n\n  /* Render article or section, depending on flags */\n  const { tags } = configuration()\n  return (\n    <a href={`${url}`} class=\"md-search-result__link\" tabIndex={-1}>\n      <article\n        class=\"md-search-result__article md-typeset\"\n        data-md-score={document.score.toFixed(2)}\n      >\n        {parent > 0 && <div class=\"md-search-result__icon md-icon\"></div>}\n        {parent > 0 && <h1>{document.title}</h1>}\n        {parent <= 0 && <h2>{document.title}</h2>}\n        {teaser > 0 && document.text.length > 0 &&\n          document.text\n        }\n        {document.tags && document.tags.map(tag => {\n          const type = tags\n            ? tag in tags\n              ? `md-tag-icon md-tag--${tags[tag]}`\n              : \"md-tag-icon\"\n            : \"\"\n          return (\n            <span class={`md-tag ${type}`}>{tag}</span>\n          )\n        })}\n        {teaser > 0 && missing.length > 0 &&\n          <p class=\"md-search-result__terms\">\n            {translation(\"search.result.term.missing\")}: {...missing}\n          </p>\n        }\n      </article>\n    </a>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search result\n *\n * @param result - Search result\n *\n * @returns Element\n */\nexport function renderSearchResultItem(\n  result: SearchItem[]\n): HTMLElement {\n  const threshold = result[0].score\n  const docs = [...result]\n\n  const config = configuration()\n\n  /* Find and extract parent article */\n  const parent = docs.findIndex(doc => {\n    const l = `${new URL(doc.location, config.base)}` // @todo hacky\n    return !l.includes(\"#\")\n  })\n  const [article] = docs.splice(parent, 1)\n\n  /* Determine last index above threshold */\n  let index = docs.findIndex(doc => doc.score < threshold)\n  if (index === -1)\n    index = docs.length\n\n  /* Partition sections */\n  const best = docs.slice(0, index)\n  const more = docs.slice(index)\n\n  /* Render children */\n  const children = [\n    renderSearchDocument(article, Flag.PARENT | +(!parent && index === 0)),\n    ...best.map(section => renderSearchDocument(section, Flag.TEASER)),\n    ...more.length ? [\n      <details class=\"md-search-result__more\">\n        <summary tabIndex={-1}>\n          <div>\n            {more.length > 0 && more.length === 1\n              ? translation(\"search.result.more.one\")\n              : translation(\"search.result.more.other\", more.length)\n            }\n          </div>\n        </summary>\n        {...more.map(section => renderSearchDocument(section, Flag.TEASER))}\n      </details>\n    ] : []\n  ]\n\n  /* Render search result */\n  return (\n    <li class=\"md-search-result__item\">\n      {children}\n    </li>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SourceFacts } from \"~/components\"\nimport { h, round } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render repository facts\n *\n * @param facts - Repository facts\n *\n * @returns Element\n */\nexport function renderSourceFacts(facts: SourceFacts): HTMLElement {\n  return (\n    <ul class=\"md-source__facts\">\n      {Object.entries(facts).map(([key, value]) => (\n        <li class={`md-source__fact md-source__fact--${key}`}>\n          {typeof value === \"number\" ? round(value) : value}\n        </li>\n      ))}\n    </ul>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tabbed control type\n */\ntype TabbedControlType =\n  | \"prev\"\n  | \"next\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render control for content tabs\n *\n * @param type - Control type\n *\n * @returns Element\n */\nexport function renderTabbedControl(\n  type: TabbedControlType\n): HTMLElement {\n  const classes = `tabbed-control tabbed-control--${type}`\n  return (\n    <div class={classes} hidden>\n      <button class=\"tabbed-button\" tabIndex={-1} aria-hidden=\"true\"></button>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a table inside a wrapper to improve scrolling on mobile\n *\n * @param table - Table element\n *\n * @returns Element\n */\nexport function renderTable(table: HTMLElement): HTMLElement {\n  return (\n    <div class=\"md-typeset__scrollwrap\">\n      <div class=\"md-typeset__table\">\n        {table}\n      </div>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { configuration, translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Version properties\n */\nexport interface VersionProperties {\n  hidden?: boolean                     /* Version is hidden */\n}\n\n/**\n * Version\n */\nexport interface Version {\n  version: string                      /* Version identifier */\n  title: string                        /* Version title */\n  aliases: string[]                    /* Version aliases */\n  properties?: VersionProperties       /* Version properties */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version\n *\n * @param version - Version\n *\n * @returns Element\n */\nfunction renderVersion(version: Version): HTMLElement {\n  const config = configuration()\n\n  /* Ensure trailing slash - see https://bit.ly/3rL5u3f */\n  const url = new URL(`../${version.version}/`, config.base)\n  return (\n    <li class=\"md-version__item\">\n      <a href={`${url}`} class=\"md-version__link\">\n        {version.title}\n      </a>\n    </li>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version selector\n *\n * @param versions - Versions\n * @param active - Active version\n *\n * @returns Element\n */\nexport function renderVersionSelector(\n  versions: Version[], active: Version\n): HTMLElement {\n  versions = versions.filter(version => !version.properties?.hidden)\n  return (\n    <div class=\"md-version\">\n      <button\n        class=\"md-version__current\"\n        aria-label={translation(\"select.version\")}\n      >\n        {active.title}\n      </button>\n      <ul class=\"md-version__list\">\n        {versions.map(renderVersion)}\n      </ul>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  BehaviorSubject,\n  EMPTY,\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  combineLatest,\n  debounce,\n  defer,\n  distinctUntilChanged,\n  endWith,\n  filter,\n  finalize,\n  first,\n  ignoreElements,\n  map,\n  mergeMap,\n  observeOn,\n  queueScheduler,\n  share,\n  startWith,\n  switchMap,\n  tap,\n  throttleTime,\n  timer,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  Viewport,\n  getElement,\n  getElementContainers,\n  getElementOffsetAbsolute,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementHover\n} from \"~/browser\"\nimport { renderInlineTooltip2 } from \"~/templates\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip\n */\nexport interface Tooltip {\n  active: boolean                      // Tooltip is active\n  offset: ElementOffset                // Tooltip offset\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dependencies\n */\ninterface Dependencies {\n  content$: Observable<HTMLElement>    // Tooltip content observable\n  viewport$: Observable<Viewport>      // Viewport observable\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for tooltips\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch tooltip\n *\n * This function tracks the tooltip host element, and deduces the active state\n * and offset of the tooltip from it. The active state is determined by whether\n * the host element is focused or hovered, and the offset is determined by the\n * host element's absolute position in the document.\n *\n * @param el - Tooltip host element\n *\n * @returns Tooltip observable\n */\nexport function watchTooltip2(\n  el: HTMLElement\n): Observable<Tooltip> {\n\n  // Compute whether tooltip should be shown - we need to watch both focus and\n  // hover events on the host element and emit if one of them is active. In case\n  // of a hover event, we keep the element visible for a short amount of time\n  // after the pointer left the host element for a better user experience.\n  const active$ =\n    combineLatest([\n      watchElementFocus(el),\n      watchElementHover(el)\n    ])\n      .pipe(\n        map(([focus, hover]) => focus || hover),\n        distinctUntilChanged()\n      )\n\n  // We need to determine all parent elements of the host element that are\n  // currently scrollable, as they might affect the position of the tooltip\n  // depending on their horizontal of vertical offset. We must track all of\n  // them and recompute the position of the tooltip if they change.\n  const offset$ =\n    defer(() => getElementContainers(el)).pipe(\n      mergeMap(watchElementContentOffset),\n      throttleTime(1),\n      map(() => getElementOffsetAbsolute(el))\n    )\n\n  // Only track parent elements and compute offset of the tooltip host if the\n  // tooltip should be shown - we defer the computation of the offset until the\n  // tooltip becomes active for the first time. This is necessary, because we\n  // must also keep the tooltip active as long as it is focused or hovered.\n  return active$.pipe(\n    first(active => active),\n    switchMap(() => combineLatest([active$, offset$])),\n    map(([active, offset]) => ({ active, offset })),\n    share()\n  )\n}\n\n/**\n * Mount tooltip\n *\n * This function renders a tooltip with the content from the provided `content$`\n * observable as passed via the dependencies. If the returned element has a role\n * of type `dialog`, the tooltip is considered to be interactive, and rendered\n * either above or below the host element, depending on the available space.\n *\n * If the returned element has a role of type `tooltip`, the tooltip is always\n * rendered below the host element and considered to be non-interactive. This\n * allows us to reuse the same positioning logic for both interactive and\n * non-interactive tooltips, as it is largely the same.\n *\n * @param el - Tooltip host element\n * @param dependencies - Dependencies\n *\n * @returns Tooltip component observable\n */\nexport function mountTooltip2(\n  el: HTMLElement, dependencies: Dependencies\n): Observable<Component<Tooltip>> {\n  const { content$, viewport$ } = dependencies\n\n  // Compute unique tooltip id - this is necessary to associate the tooltip host\n  // element with the tooltip element for ARIA purposes\n  const id = `__tooltip2_${sequence++}`\n\n  // Create component on subscription\n  return defer(() => {\n    const push$ = new Subject<Tooltip>()\n\n    // Create subject to track tooltip presence and visibility - we use another\n    // purely internal subject to track the tooltip's presence and visibility,\n    // as the tooltip should be visible if the host element or tooltip itself\n    // is focused or hovered to allow for smooth pointer migration\n    const show$ = new BehaviorSubject(false)\n    push$.pipe(ignoreElements(), endWith(false))\n      .subscribe(show$)\n\n    // Create observable controlling tooltip element - we create and attach the\n    // tooltip only if it is actually present, in order to keep the number of\n    // elements low. We need to keep the tooltip visible for a short time after\n    // the pointer left the host element or tooltip itself. For this, we use an\n    // inner subscription to the tooltip observable, which we terminate when the\n    // tooltip should not be shown, automatically removing the element. Moreover\n    // we use the queue scheduler, which will schedule synchronously in case the\n    // tooltip should be shown, and asynchronously if it should be hidden.\n    const node$ = show$.pipe(\n      debounce(active => timer(+!active * 250, queueScheduler)),\n      distinctUntilChanged(),\n      switchMap(active => active ? content$ : EMPTY),\n      tap(node => node.id = id),\n      share()\n    )\n\n    // Compute tooltip presence and visibility - the tooltip should be shown if\n    // the host element or the tooltip itself is focused or hovered\n    combineLatest([\n      push$.pipe(map(({ active }) => active)),\n      node$.pipe(\n        switchMap(node => watchElementHover(node, 250)),\n        startWith(false)\n      )\n    ])\n      .pipe(map(states => states.some(active => active)))\n      .subscribe(show$)\n\n    // Compute tooltip origin - we need to compute the tooltip origin depending\n    // on the position of the host element, the viewport size, as well as the\n    // actual size of the tooltip, if positioned above. The tooltip must about\n    // to be rendered for this to be correct, which is why we do it here.\n    const origin$ = show$.pipe(\n      filter(active => active),\n      withLatestFrom(node$, viewport$),\n      map(([_, node, { size }]) => {\n        const host = el.getBoundingClientRect()\n        const x = host.width / 2\n\n        // If the tooltip is non-interactive, we always render it below the\n        // actual element because all operating systems do it that way\n        if (node.role === \"tooltip\") {\n          return { x, y: 8 + host.height }\n\n        // Otherwise, we determine where there is more space, and render the\n        // tooltip either above or below the host element\n        } else if (host.y >= size.height / 2) {\n          const { height } = getElementSize(node)\n          return { x, y: -16 - height }\n        } else {\n          return { x, y: +16 + host.height }\n        }\n      })\n    )\n\n    // Update tooltip position - we always need to update the position of the\n    // tooltip, as it might change depending on the viewport offset of the host\n    combineLatest([node$, push$, origin$])\n      .subscribe(([node, { offset }, origin]) => {\n        node.style.setProperty(\"--md-tooltip-host-x\", `${offset.x}px`)\n        node.style.setProperty(\"--md-tooltip-host-y\", `${offset.y}px`)\n\n        // Update tooltip origin - this is mainly set to determine the position\n        // of the tooltip tail, to show the direction it is originating from\n        node.style.setProperty(\"--md-tooltip-x\", `${origin.x}px`)\n        node.style.setProperty(\"--md-tooltip-y\", `${origin.y}px`)\n\n        // Update tooltip render location, i.e., whether the tooltip is shown\n        // above or below the host element, depending on the available space\n        node.classList.toggle(\"md-tooltip2--top\",    origin.y <  0)\n        node.classList.toggle(\"md-tooltip2--bottom\", origin.y >= 0)\n      })\n\n    // Update tooltip width - we only explicitly set the width of the tooltip\n    // if it is non-interactive, in case it should always be rendered centered\n    show$.pipe(\n      filter(active => active),\n      withLatestFrom(node$, (_, node) => node),\n      filter(node => node.role === \"tooltip\")\n    )\n      .subscribe(node => {\n        const size = getElementSize(getElement(\":scope > *\", node))\n\n        // Set tooltip width and remove tail by setting it to a width of zero -\n        // if authors want to keep the tail, we can move this to CSS later\n        node.style.setProperty(\"--md-tooltip-width\", `${size.width}px`)\n        node.style.setProperty(\"--md-tooltip-tail\",  `${0}px`)\n      })\n\n    // Update tooltip visibility - we defer to the next animation frame, because\n    // the tooltip must first be added to the document before we make it appear,\n    // or it will appear instantly without delay. Additionally, we need to keep\n    // the tooltip visible for a short time after the pointer left the host.\n    show$.pipe(\n      distinctUntilChanged(),\n      observeOn(animationFrameScheduler),\n      withLatestFrom(node$)\n    )\n      .subscribe(([active, node]) => {\n        node.classList.toggle(\"md-tooltip2--active\", active)\n      })\n\n    // Set up ARIA attributes when tooltip is visible\n    combineLatest([\n      show$.pipe(filter(active => active)),\n      node$\n    ])\n      .subscribe(([_, node]) => {\n        if (node.role === \"dialog\") {\n          el.setAttribute(\"aria-controls\", id)\n          el.setAttribute(\"aria-haspopup\", \"dialog\")\n        } else {\n          el.setAttribute(\"aria-describedby\", id)\n        }\n      })\n\n    // Remove ARIA attributes when tooltip is hidden\n    show$.pipe(filter(active => !active))\n      .subscribe(() => {\n        el.removeAttribute(\"aria-controls\")\n        el.removeAttribute(\"aria-describedby\")\n        el.removeAttribute(\"aria-haspopup\")\n      })\n\n    // Create and return component\n    return watchTooltip2(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n\n// ----------------------------------------------------------------------------\n\n/**\n * Mount inline tooltip\n *\n * @todo refactor this function\n *\n * @param el - Tooltip host element\n * @param dependencies - Dependencies\n * @param container - Container\n *\n * @returns Tooltip component observable\n */\nexport function mountInlineTooltip2(\n  el: HTMLElement, { viewport$ }: { viewport$: Observable<Viewport> },\n  container = document.body\n): Observable<Component<Tooltip>> {\n  return mountTooltip2(el, {\n    content$: new Observable<HTMLElement>(observer => {\n      const title = el.title\n      const node = renderInlineTooltip2(title)\n      observer.next(node)\n      el.removeAttribute(\"title\")\n      // Append tooltip and remove on unsubscription\n      container.append(node)\n      return () => {\n        node.remove()\n        el.setAttribute(\"title\", title)\n      }\n    }),\n    viewport$\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  delay,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  switchMap,\n  take,\n  takeUntil,\n  tap,\n  throttleTime,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getActiveElement,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementOffset,\n  watchElementVisibility\n} from \"~/browser\"\n\nimport { Component } from \"../../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Annotation\n */\nexport interface Annotation {\n  active: boolean                      /* Annotation is active */\n  offset: ElementOffset                /* Annotation offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n *\n * @returns Annotation observable\n */\nexport function watchAnnotation(\n  el: HTMLElement, container: HTMLElement\n): Observable<Annotation> {\n  const offset$ = defer(() => combineLatest([\n    watchElementOffset(el),\n    watchElementContentOffset(container)\n  ]))\n    .pipe(\n      map(([{ x, y }, scroll]): ElementOffset => {\n        const { width, height } = getElementSize(el)\n        return ({\n          x: x - scroll.x + width  / 2,\n          y: y - scroll.y + height / 2\n        })\n      })\n    )\n\n  /* Actively watch annotation on focus */\n  return watchElementFocus(el)\n    .pipe(\n      switchMap(active => offset$\n        .pipe(\n          map(offset => ({ active, offset })),\n          take(+!active || Infinity)\n        )\n      )\n    )\n}\n\n/**\n * Mount annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotation(\n  el: HTMLElement, container: HTMLElement, { target$ }: MountOptions\n): Observable<Component<Annotation>> {\n  const [tooltip, index] = Array.from(el.children)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Annotation>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        el.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        el.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.style.removeProperty(\"--md-tooltip-x\")\n        el.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Start animation only when annotation is visible */\n    watchElementVisibility(el)\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(visible => {\n          el.toggleAttribute(\"data-md-visible\", visible)\n        })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active)\n            el.prepend(tooltip)\n          else\n            tooltip.remove()\n        },\n\n        /* Handle complete */\n        complete() {\n          el.prepend(tooltip)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next(origin) {\n            if (origin)\n              el.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n            else\n              el.style.removeProperty(\"--md-tooltip-0\")\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-tooltip-0\")\n          }\n        })\n\n    /* Allow to copy link without scrolling to anchor */\n    fromEvent<MouseEvent>(index, \"click\")\n      .pipe(\n        takeUntil(done$),\n        filter(ev => !(ev.metaKey || ev.ctrlKey))\n      )\n        .subscribe(ev => {\n          ev.stopPropagation()\n          ev.preventDefault()\n        })\n\n    /* Allow to open link in new tab or blur on close */\n    fromEvent<MouseEvent>(index, \"mousedown\")\n      .pipe(\n        takeUntil(done$),\n        withLatestFrom(push$)\n      )\n        .subscribe(([ev, { active }]) => {\n\n          /* Open in new tab */\n          if (ev.button !== 0 || ev.metaKey || ev.ctrlKey) {\n            ev.preventDefault()\n\n          /* Close annotation */\n          } else if (active) {\n            ev.preventDefault()\n\n            /* Focus parent annotation, if any */\n            const parent = el.parentElement!.closest(\".md-annotation\")\n            if (parent instanceof HTMLElement)\n              parent.focus()\n            else\n              getActiveElement()?.blur()\n          }\n        })\n\n    /* Open and focus annotation on location target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(target => target === tooltip),\n        delay(125)\n      )\n        .subscribe(() => el.focus())\n\n    /* Create and return component */\n    return watchAnnotation(el, container)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  endWith,\n  finalize,\n  ignoreElements,\n  merge,\n  share,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  getOptionalElement\n} from \"~/browser\"\nimport { renderAnnotation } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Annotation,\n  mountAnnotation\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find all annotation hosts in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation hosts\n */\nfunction findHosts(container: HTMLElement): HTMLElement[] {\n  return container.tagName === \"CODE\"\n    ? getElements(\".c, .c1, .cm\", container)\n    : [container]\n}\n\n/**\n * Find all annotation markers in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation markers\n */\nfunction findMarkers(container: HTMLElement): Text[] {\n  const markers: Text[] = []\n  for (const el of findHosts(container)) {\n    const nodes: Text[] = []\n\n    /* Find all text nodes in current element */\n    const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n    for (let node = it.nextNode(); node; node = it.nextNode())\n      nodes.push(node as Text)\n\n    /* Find all markers in each text node */\n    for (let text of nodes) {\n      let match: RegExpExecArray | null\n\n      /* Split text at marker and add to list */\n      while ((match = /(\\(\\d+\\))(!)?/.exec(text.textContent!))) {\n        const [, id, force] = match\n        if (typeof force === \"undefined\") {\n          const marker = text.splitText(match.index)\n          text = marker.splitText(id.length)\n          markers.push(marker)\n\n        /* Replace entire text with marker */\n        } else {\n          text.textContent = id\n          markers.push(text)\n          break\n        }\n      }\n    }\n  }\n  return markers\n}\n\n/**\n * Swap the child nodes of two elements\n *\n * @param source - Source element\n * @param target - Target element\n */\nfunction swap(source: HTMLElement, target: HTMLElement): void {\n  target.append(...Array.from(source.childNodes))\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation list\n *\n * This function analyzes the containing code block and checks for markers\n * referring to elements in the given annotation list. If no markers are found,\n * the list is left untouched. Otherwise, list elements are rendered as\n * annotations inside the code block.\n *\n * @param el - Annotation list element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationList(\n  el: HTMLElement, container: HTMLElement, { target$, print$ }: MountOptions\n): Observable<Component<Annotation>> {\n\n  /* Compute prefix for tooltip anchors */\n  const parent = container.closest(\"[id]\")\n  const prefix = parent?.id\n\n  /* Find and replace all markers with empty annotations */\n  const annotations = new Map<string, HTMLElement>()\n  for (const marker of findMarkers(container)) {\n    const [, id] = marker.textContent!.match(/\\((\\d+)\\)/)!\n    if (getOptionalElement(`:scope > li:nth-child(${id})`, el)) {\n      annotations.set(id, renderAnnotation(id, prefix))\n      marker.replaceWith(annotations.get(id)!)\n    }\n  }\n\n  /* Keep list if there are no annotations to render */\n  if (annotations.size === 0)\n    return EMPTY\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n    /* Retrieve container pairs for swapping */\n    const pairs: [HTMLElement, HTMLElement][] = []\n    for (const [id, annotation] of annotations)\n      pairs.push([\n        getElement(\".md-typeset\", annotation),\n        getElement(`:scope > li:nth-child(${id})`, el)\n      ])\n\n    /* Handle print mode - see https://bit.ly/3rgPdpt */\n    print$.pipe(takeUntil(done$))\n      .subscribe(active => {\n        el.hidden = !active\n\n        /* Add class to discern list element */\n        el.classList.toggle(\"md-annotation-list\", active)\n\n        /* Show annotations in code block or list (print) */\n        for (const [inner, child] of pairs)\n          if (!active)\n            swap(child, inner)\n          else\n            swap(inner, child)\n      })\n\n    /* Create and return component */\n    return merge(...[...annotations]\n      .map(([, annotation]) => (\n        mountAnnotation(annotation, container, { target$ })\n      ))\n    )\n      .pipe(\n        finalize(() => push$.complete()),\n        share()\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable, defer } from \"rxjs\"\n\nimport { Component } from \"../../../_\"\nimport { Annotation } from \"../_\"\nimport { mountAnnotationList } from \"../list\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find list element directly following a block\n *\n * @param el - Annotation block element\n *\n * @returns List element or nothing\n */\nfunction findList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation block\n *\n * @param el - Annotation block element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Annotation>> {\n  return defer(() => {\n    const list = findList(el)\n    return typeof list !== \"undefined\"\n      ? mountAnnotationList(list, el, options)\n      : EMPTY\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  filter,\n  finalize,\n  map,\n  mergeWith,\n  switchMap,\n  take,\n  takeLast,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  getElementContentSize,\n  getElements,\n  watchElementSize,\n  watchElementVisibility\n} from \"~/browser\"\nimport {\n  Tooltip,\n  mountInlineTooltip2\n} from \"~/components/tooltip2\"\nimport { renderClipboardButton } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Annotation,\n  mountAnnotationList\n} from \"../../annotation\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Code block overflow\n */\nexport interface Overflow {\n  scrollable: boolean                  /* Code block overflows */\n}\n\n/**\n * Code block\n */\nexport type CodeBlock =\n  | Overflow\n  | Annotation\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for code blocks\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find candidate list element directly following a code block\n *\n * @param el - Code block element\n *\n * @returns List element or nothing\n */\nfunction findCandidateList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findCandidateList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch code block\n *\n * This function monitors size changes of the viewport, as well as switches of\n * content tabs with embedded code blocks, as both may trigger overflow.\n *\n * @param el - Code block element\n *\n * @returns Code block observable\n */\nexport function watchCodeBlock(\n  el: HTMLElement\n): Observable<Overflow> {\n  return watchElementSize(el)\n    .pipe(\n      map(({ width }) => {\n        const content = getElementContentSize(el)\n        return {\n          scrollable: content.width > width\n        }\n      }),\n      distinctUntilKeyChanged(\"scrollable\")\n    )\n}\n\n/**\n * Mount code block\n *\n * This function ensures that an overflowing code block is focusable through\n * keyboard, so it can be scrolled without a mouse to improve on accessibility.\n * Furthermore, if code annotations are enabled, they are mounted if and only\n * if the code block is currently visible, e.g., not in a hidden content tab.\n *\n * Note that code blocks may be mounted eagerly or lazily. If they're mounted\n * lazily (on first visibility), code annotation anchor links will not work,\n * as they are evaluated on initial page load, and code annotations in general\n * might feel a little bumpier.\n *\n * @param el - Code block element\n * @param options - Options\n *\n * @returns Code block and annotation component observable\n */\nexport function mountCodeBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<CodeBlock>> {\n  const { matches: hover } = matchMedia(\"(hover)\")\n\n  /* Defer mounting of code block - see https://bit.ly/3vHVoVD */\n  const factory$ = defer(() => {\n    const push$ = new Subject<Overflow>()\n    const done$ = push$.pipe(takeLast(1))\n    push$.subscribe(({ scrollable }) => {\n      if (scrollable && hover)\n        el.setAttribute(\"tabindex\", \"0\")\n      else\n        el.removeAttribute(\"tabindex\")\n    })\n\n    /* Render button for Clipboard.js integration */\n    const content$: Array<Observable<Component<CodeBlock>>> = []\n    if (ClipboardJS.isSupported()) {\n      if (el.closest(\".copy\") || (\n        feature(\"content.code.copy\") && !el.closest(\".no-copy\")\n      )) {\n        const parent = el.closest(\"pre\")!\n        parent.id = `__code_${sequence++}`\n\n        /* Mount tooltip, if enabled */\n        const button = renderClipboardButton(parent.id)\n        parent.insertBefore(button, el)\n        if (feature(\"content.tooltips\"))\n          content$.push(mountInlineTooltip2(button, { viewport$ }))\n      }\n    }\n\n    /* Handle code annotations */\n    const container = el.closest(\".highlight\")\n    if (container instanceof HTMLElement) {\n      const list = findCandidateList(container)\n\n      /* Mount code annotations, if enabled */\n      if (typeof list !== \"undefined\" && (\n        container.classList.contains(\"annotate\") ||\n        feature(\"content.code.annotate\")\n      )) {\n        const annotations$ = mountAnnotationList(list, el, options)\n        content$.push(\n          watchElementSize(container)\n            .pipe(\n              takeUntil(done$),\n              map(({ width, height }) => width && height),\n              distinctUntilChanged(),\n              switchMap(active => active ? annotations$ : EMPTY)\n            )\n        )\n      }\n    }\n\n    // If the code block has line spans, we can add this additional class to\n    // the code block element, which fixes the problem for highlighted code\n    // lines not stretching to the entirety of the screen when the code block\n    // overflows, e.g., on mobile - see\n    const spans = getElements(\":scope > span[id]\", el)\n    if (spans.length)\n      el.classList.add(\"md-code__content\")\n\n    /* Create and return component */\n    return watchCodeBlock(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(...content$)\n      )\n  })\n\n  /* Mount code block lazily */\n  if (feature(\"content.lazy\"))\n    return watchElementVisibility(el)\n      .pipe(\n        filter(visible => visible),\n        take(1),\n        switchMap(() => factory$)\n      )\n\n  /* Mount code block */\n  return factory$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Details\n */\nexport interface Details {\n  action: \"open\" | \"close\"             /* Details state */\n  reveal?: boolean                     /* Details is revealed */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch details\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details observable\n */\nexport function watchDetails(\n  el: HTMLDetailsElement, { target$, print$ }: WatchOptions\n): Observable<Details> {\n  let open = true\n  return merge(\n\n    /* Open and focus details on location target */\n    target$\n      .pipe(\n        map(target => target.closest(\"details:not([open])\")!),\n        filter(details => el === details),\n        map(() => ({\n          action: \"open\", reveal: true\n        }) as Details)\n      ),\n\n    /* Open details on print and close afterwards */\n    print$\n      .pipe(\n        filter(active => active || !open),\n        tap(() => open = el.open),\n        map(active => ({\n          action: active ? \"open\" : \"close\"\n        }) as Details)\n      )\n  )\n}\n\n/**\n * Mount details\n *\n * This function ensures that `details` tags are opened on anchor jumps and\n * prior to printing, so the whole content of the page is visible.\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details component observable\n */\nexport function mountDetails(\n  el: HTMLDetailsElement, options: MountOptions\n): Observable<Component<Details>> {\n  return defer(() => {\n    const push$ = new Subject<Details>()\n    push$.subscribe(({ action, reveal }) => {\n      el.toggleAttribute(\"open\", action === \"open\")\n      if (reveal)\n        el.scrollIntoView()\n    })\n\n    /* Create and return component */\n    return watchDetails(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", ".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\nimport themeCSS from \"./index.css\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid diagram\n */\nexport interface Mermaid {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid instance observable\n */\nlet mermaid$: Observable<void>\n\n/**\n * Global sequence number for diagrams\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch Mermaid script\n *\n * @returns Mermaid scripts observable\n */\nfunction fetchScripts(): Observable<void> {\n  return typeof mermaid === \"undefined\" || mermaid instanceof Element\n    ? watchScript(\"https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js\")\n    : of(undefined)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount Mermaid diagram\n *\n * @param el - Code block element\n *\n * @returns Mermaid diagram component observable\n */\nexport function mountMermaid(\n  el: HTMLElement\n): Observable<Component<Mermaid>> {\n  el.classList.remove(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n  mermaid$ ||= fetchScripts()\n    .pipe(\n      tap(() => mermaid.initialize({\n        startOnLoad: false,\n        themeCSS,\n        sequence: {\n          actorFontSize: \"16px\", // Hack: mitigate https://bit.ly/3y0NEi3\n          messageFontSize: \"16px\",\n          noteFontSize: \"16px\"\n        }\n      })),\n      map(() => undefined),\n      shareReplay(1)\n    )\n\n  /* Render diagram */\n  mermaid$.subscribe(async () => {\n    el.classList.add(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n    const id = `__mermaid_${sequence++}`\n\n    /* Create host element to replace code block */\n    const host = h(\"div\", { class: \"mermaid\" })\n    const text = el.textContent\n\n    /* Render and inject diagram */\n    const { svg, fn } = await mermaid.render(id, text)\n\n    /* Create a shadow root and inject diagram */\n    const shadow = host.attachShadow({ mode: \"closed\" })\n    shadow.innerHTML = svg\n\n    /* Replace code block with diagram and bind functions */\n    el.replaceWith(host)\n    fn?.(shadow)\n  })\n\n  /* Create and return component */\n  return mermaid$\n    .pipe(\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, of } from \"rxjs\"\n\nimport { renderTable } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Data table\n */\nexport interface DataTable {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Sentinel for replacement\n */\nconst sentinel = h(\"table\")\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount data table\n *\n * This function wraps a data table in another scrollable container, so it can\n * be smoothly scrolled on smaller screen sizes and won't break the layout.\n *\n * @param el - Data table element\n *\n * @returns Data table component observable\n */\nexport function mountDataTable(\n  el: HTMLElement\n): Observable<Component<DataTable>> {\n  el.replaceWith(sentinel)\n  sentinel.replaceWith(renderTable(el))\n\n  /* Create and return component */\n  return of({ ref: el })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  skip,\n  startWith,\n  subscribeOn,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContentOffset,\n  getElementContentSize,\n  getElementOffset,\n  getElementSize,\n  getElements,\n  watchElementContentOffset,\n  watchElementSize,\n  watchElementVisibility\n} from \"~/browser\"\nimport { renderTabbedControl } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content tabs\n */\nexport interface ContentTabs {\n  active: HTMLLabelElement             /* Active tab label */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch content tabs\n *\n * @param inputs - Content tabs input elements\n *\n * @returns Content tabs observable\n */\nexport function watchContentTabs(\n  inputs: HTMLInputElement[]\n): Observable<ContentTabs> {\n  const initial = inputs.find(input => input.checked) || inputs[0]\n  return merge(...inputs.map(input => fromEvent(input, \"change\")\n    .pipe(\n      map(() => getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`))\n    )\n  ))\n    .pipe(\n      startWith(getElement<HTMLLabelElement>(`label[for=\"${initial.id}\"]`)),\n      map(active => ({ active }))\n    )\n}\n\n/**\n * Mount content tabs\n *\n * @param el - Content tabs element\n * @param options - Options\n *\n * @returns Content tabs component observable\n */\nexport function mountContentTabs(\n  el: HTMLElement, { viewport$, target$ }: MountOptions\n): Observable<Component<ContentTabs>> {\n  const container = getElement(\".tabbed-labels\", el)\n  const inputs = getElements<HTMLInputElement>(\":scope > input\", el)\n\n  /* Render content tab previous button for pagination */\n  const prev = renderTabbedControl(\"prev\")\n  el.append(prev)\n\n  /* Render content tab next button for pagination */\n  const next = renderTabbedControl(\"next\")\n  el.append(next)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<ContentTabs>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    combineLatest([push$, watchElementSize(el)])\n      .pipe(\n        takeUntil(done$),\n        auditTime(1, animationFrameScheduler)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next([{ active }, size]) {\n            const offset = getElementOffset(active)\n            const { width } = getElementSize(active)\n\n            /* Set tab indicator offset and width */\n            el.style.setProperty(\"--md-indicator-x\", `${offset.x}px`)\n            el.style.setProperty(\"--md-indicator-width\", `${width}px`)\n\n            /* Scroll container to active content tab */\n            const content = getElementContentOffset(container)\n            if (\n              offset.x         < content.x              ||\n              offset.x + width > content.x + size.width\n            )\n              container.scrollTo({\n                left: Math.max(0, offset.x - 16),\n                behavior: \"smooth\"\n              })\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-indicator-x\")\n            el.style.removeProperty(\"--md-indicator-width\")\n          }\n        })\n\n    /* Hide content tab buttons on borders */\n    combineLatest([\n      watchElementContentOffset(container),\n      watchElementSize(container)\n    ])\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(([offset, size]) => {\n          const content = getElementContentSize(container)\n          prev.hidden = offset.x < 16\n          next.hidden = offset.x > content.width - size.width - 16\n        })\n\n    /* Paginate content tab container on click */\n    merge(\n      fromEvent(prev, \"click\").pipe(map(() => -1)),\n      fromEvent(next, \"click\").pipe(map(() => +1))\n    )\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(direction => {\n          const { width } = getElementSize(container)\n          container.scrollBy({\n            left: width * direction,\n            behavior: \"smooth\"\n          })\n        })\n\n    /* Switch to content tab target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(input => inputs.includes(input as HTMLInputElement))\n      )\n        .subscribe(input => input.click())\n\n    /* Add link to each content tab label */\n    container.classList.add(\"tabbed-labels--linked\")\n    for (const input of inputs) {\n      const label = getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`)\n      label.replaceChildren(h(\"a\", {\n        href: `#${label.htmlFor}`,\n        tabIndex: -1\n      }, ...Array.from(label.childNodes)))\n\n      /* Allow to copy link without scrolling to anchor */\n      fromEvent<MouseEvent>(label.firstElementChild!, \"click\")\n        .pipe(\n          takeUntil(done$),\n          filter(ev => !(ev.metaKey || ev.ctrlKey)),\n          tap(ev => {\n            ev.preventDefault()\n            ev.stopPropagation()\n          })\n        )\n          // @todo we might need to remove the anchor link on complete\n          .subscribe(() => {\n            history.replaceState({}, \"\", `#${label.htmlFor}`)\n            label.click()\n          })\n    }\n\n    /* Set up linking of content tabs, if enabled */\n    if (feature(\"content.tabs.link\"))\n      push$.pipe(\n        skip(1),\n        withLatestFrom(viewport$)\n      )\n        .subscribe(([{ active }, { offset }]) => {\n          const tab = active.innerText.trim()\n          if (active.hasAttribute(\"data-md-switching\")) {\n            active.removeAttribute(\"data-md-switching\")\n\n          /* Determine viewport offset of active tab */\n          } else {\n            const y = el.offsetTop - offset.y\n\n            /* Passively activate other tabs */\n            for (const set of getElements(\"[data-tabs]\"))\n              for (const input of getElements<HTMLInputElement>(\n                \":scope > input\", set\n              )) {\n                const label = getElement(`label[for=\"${input.id}\"]`)\n                if (\n                  label !== active &&\n                  label.innerText.trim() === tab\n                ) {\n                  label.setAttribute(\"data-md-switching\", \"\")\n                  input.click()\n                  break\n                }\n              }\n\n            /* Bring active tab into view */\n            window.scrollTo({\n              top: el.offsetTop - y\n            })\n\n            /* Persist active tabs in local storage */\n            const tabs = __md_get<string[]>(\"__tabs\") || []\n            __md_set(\"__tabs\", [...new Set([tab, ...tabs])])\n          }\n        })\n\n    /* Pause media (audio, video) on switch - see https://bit.ly/3Bk6cel */\n    push$.pipe(takeUntil(done$))\n      .subscribe(() => {\n        for (const media of getElements<HTMLAudioElement>(\"audio, video\", el))\n          media.pause()\n      })\n\n    /* Create and return component */\n    return watchElementVisibility(el)\n      .pipe(\n        switchMap(() => watchContentTabs(inputs)),\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, merge } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { Viewport, getElements } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport {\n  Tooltip,\n  mountInlineTooltip2\n} from \"../../tooltip2\"\nimport {\n  Annotation,\n  mountAnnotationBlock\n} from \"../annotation\"\nimport {\n  CodeBlock,\n  mountCodeBlock\n} from \"../code\"\nimport {\n  Details,\n  mountDetails\n} from \"../details\"\nimport {\n  Mermaid,\n  mountMermaid\n} from \"../mermaid\"\nimport {\n  DataTable,\n  mountDataTable\n} from \"../table\"\nimport {\n  ContentTabs,\n  mountContentTabs\n} from \"../tabs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content\n */\nexport type Content =\n  | Annotation\n  | CodeBlock\n  | ContentTabs\n  | DataTable\n  | Details\n  | Mermaid\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount content\n *\n * This function mounts all components that are found in the content of the\n * actual article, including code blocks, data tables and details.\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Content component observable\n */\nexport function mountContent(\n  el: HTMLElement, { viewport$, target$, print$ }: MountOptions\n): Observable<Component<Content>> {\n  return merge(\n\n    /* Annotations */\n    ...getElements(\".annotate:not(.highlight)\", el)\n      .map(child => mountAnnotationBlock(child, { target$, print$ })),\n\n    /* Code blocks */\n    ...getElements(\"pre:not(.mermaid) > code\", el)\n      .map(child => mountCodeBlock(child, { target$, print$ })),\n\n    /* Mermaid diagrams */\n    ...getElements(\"pre.mermaid\", el)\n      .map(child => mountMermaid(child)),\n\n    /* Data tables */\n    ...getElements(\"table:not([class])\", el)\n      .map(child => mountDataTable(child)),\n\n    /* Details */\n    ...getElements(\"details\", el)\n      .map(child => mountDetails(child, { target$, print$ })),\n\n    /* Content tabs */\n    ...getElements(\"[data-tabs]\", el)\n      .map(child => mountContentTabs(child, { viewport$, target$ })),\n\n    /* Tooltips */\n    ...getElements(\"[title]\", el)\n      .filter(() => feature(\"content.tooltips\"))\n      .map(child => mountInlineTooltip2(child, { viewport$ }))\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  delay,\n  finalize,\n  map,\n  merge,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dialog\n */\nexport interface Dialog {\n  message: string                      /* Dialog message */\n  active: boolean                      /* Dialog is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch dialog\n *\n * @param _el - Dialog element\n * @param options - Options\n *\n * @returns Dialog observable\n */\nexport function watchDialog(\n  _el: HTMLElement, { alert$ }: WatchOptions\n): Observable<Dialog> {\n  return alert$\n    .pipe(\n      switchMap(message => merge(\n        of(true),\n        of(false).pipe(delay(2000))\n      )\n        .pipe(\n          map(active => ({ message, active }))\n        )\n      )\n    )\n}\n\n/**\n * Mount dialog\n *\n * This function reveals the dialog in the right corner when a new alert is\n * emitted through the subject that is passed as part of the options.\n *\n * @param el - Dialog element\n * @param options - Options\n *\n * @returns Dialog component observable\n */\nexport function mountDialog(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Dialog>> {\n  const inner = getElement(\".md-typeset\", el)\n  return defer(() => {\n    const push$ = new Subject<Dialog>()\n    push$.subscribe(({ message, active }) => {\n      el.classList.toggle(\"md-dialog--active\", active)\n      inner.textContent = message\n    })\n\n    /* Create and return component */\n    return watchDialog(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  subscribeOn,\n  tap,\n  throttleTime\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getElement,\n  getElementContainer,\n  getElementOffset,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementHover\n} from \"~/browser\"\nimport { renderTooltip } from \"~/templates\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip\n */\nexport interface Tooltip {\n  active: boolean                      /* Tooltip is active */\n  offset: ElementOffset                /* Tooltip offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for tooltips\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch tooltip\n *\n * This function will append the tooltip temporarily to compute its width,\n * which is necessary for correct centering, and then removing it again.\n *\n * @param el - Tooltip element\n * @param host - Host element\n *\n * @returns Tooltip observable\n */\nexport function watchTooltip(\n  el: HTMLElement, host: HTMLElement\n): Observable<Tooltip> {\n  document.body.append(el)\n\n  /* Compute width and remove tooltip immediately */\n  const { width } = getElementSize(el)\n  el.style.setProperty(\"--md-tooltip-width\", `${width}px`)\n  el.remove()\n\n  /* Retrieve and watch containing element */\n  const container = getElementContainer(host)\n  const scroll$ =\n    typeof container !== \"undefined\"\n      ? watchElementContentOffset(container)\n      : of({ x: 0, y: 0 })\n\n  /* Compute tooltip visibility */\n  const active$ = merge(\n    watchElementFocus(host),\n    watchElementHover(host)\n  )\n    .pipe(\n      distinctUntilChanged()\n    )\n\n  /* Compute tooltip offset */\n  return combineLatest([active$, scroll$])\n    .pipe(\n      map(([active, scroll]) => {\n        let { x, y } = getElementOffset(host)\n        const size = getElementSize(host)\n\n        /**\n         * Experimental: fix handling of tables - see https://bit.ly/3TQEj5O\n         *\n         * If this proves to be a viable fix, we should refactor tooltip\n         * positioning and somehow streamline the current process. This might\n         * also fix positioning for annotations inside tables, which is another\n         * limitation.\n         */\n        const table = host.closest(\"table\")\n        if (table && host.parentElement) {\n          x += table.offsetLeft + host.parentElement.offsetLeft\n          y += table.offsetTop  + host.parentElement.offsetTop\n        }\n        return {\n          active,\n          offset: {\n            x: x - scroll.x + size.width  / 2 - width / 2,\n            y: y - scroll.y + size.height + 8\n          }\n        }\n      })\n    )\n}\n\n/**\n * Mount tooltip\n *\n * @param el - Host element\n *\n * @returns Tooltip component observable\n */\nexport function mountTooltip(\n  el: HTMLElement\n): Observable<Component<Tooltip>> {\n  const title = el.title\n  if (!title.length)\n    return EMPTY\n\n  /* Render tooltip and set title from host element */\n  const id = `__tooltip_${sequence++}`\n  const tooltip = renderTooltip(id, \"inline\")\n  const typeset = getElement(\".md-typeset\", tooltip)\n  typeset.innerHTML = title\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Tooltip>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        tooltip.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        tooltip.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        tooltip.style.removeProperty(\"--md-tooltip-x\")\n        tooltip.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active) {\n            el.insertAdjacentElement(\"afterend\", tooltip)\n            el.setAttribute(\"aria-describedby\", id)\n            el.removeAttribute(\"title\")\n          } else {\n            tooltip.remove()\n            el.removeAttribute(\"aria-describedby\")\n            el.setAttribute(\"title\", title)\n          }\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.remove()\n          el.removeAttribute(\"aria-describedby\")\n          el.setAttribute(\"title\", title)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    // @todo - refactor positioning together with annotations \u2013 there are\n    // several things that overlap and are identical in handling\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n      .subscribe({\n\n        /* Handle emission */\n        next(origin) {\n          if (origin)\n            tooltip.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n          else\n            tooltip.style.removeProperty(\"--md-tooltip-0\")\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.style.removeProperty(\"--md-tooltip-0\")\n        }\n      })\n\n    /* Create and return component */\n    return watchTooltip(tooltip, el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  combineLatestWith,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  from,\n  ignoreElements,\n  map,\n  mergeMap,\n  mergeWith,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  takeUntil\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  watchElementSize,\n  watchToggle\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Main } from \"../../main\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface Header {\n  height: number                       /* Header visible height */\n  hidden: boolean                      /* Header is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Compute whether the header is hidden\n *\n * If the user scrolls past a certain threshold, the header can be hidden when\n * scrolling down, and shown when scrolling up.\n *\n * @param options - Options\n *\n * @returns Toggle observable\n */\nfunction isHidden({ viewport$ }: WatchOptions): Observable<boolean> {\n  if (!feature(\"header.autohide\"))\n    return of(false)\n\n  /* Compute direction and turning point */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => [a < b, b] as const),\n      distinctUntilKeyChanged(0)\n    )\n\n  /* Compute whether header should be hidden */\n  const hidden$ = combineLatest([viewport$, direction$])\n    .pipe(\n      filter(([{ offset }, [, y]]) => Math.abs(y - offset.y) > 100),\n      map(([, [direction]]) => direction),\n      distinctUntilChanged()\n    )\n\n  /* Compute threshold for hiding */\n  const search$ = watchToggle(\"search\")\n  return combineLatest([viewport$, search$])\n    .pipe(\n      map(([{ offset }, search]) => offset.y > 400 && !search),\n      distinctUntilChanged(),\n      switchMap(active => active ? hidden$ : of(false)),\n      startWith(false)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header observable\n */\nexport function watchHeader(\n  el: HTMLElement, options: WatchOptions\n): Observable<Header> {\n  return defer(() => combineLatest([\n    watchElementSize(el),\n    isHidden(options)\n  ]))\n    .pipe(\n      map(([{ height }, hidden]) => ({\n        height,\n        hidden\n      })),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.hidden === b.hidden\n      )),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount header\n *\n * This function manages the different states of the header, i.e. whether it's\n * hidden or rendered with a shadow. This depends heavily on the main area.\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header component observable\n */\nexport function mountHeader(\n  el: HTMLElement, { header$, main$ }: MountOptions\n): Observable<Component<Header | Tooltip>> {\n  return defer(() => {\n    const push$ = new Subject<Main>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$\n      .pipe(\n        distinctUntilKeyChanged(\"active\"),\n        combineLatestWith(header$)\n      )\n        .subscribe(([{ active }, { hidden }]) => {\n          el.classList.toggle(\"md-header--shadow\", active && !hidden)\n          el.hidden = hidden\n        })\n\n    /* Mount tooltips, if enabled */\n    const tooltips = from(getElements(\"[title]\", el))\n      .pipe(\n        filter(() => feature(\"content.tooltips\")),\n        mergeMap(child => mountTooltip(child))\n      )\n\n    /* Link to main area */\n    main$.subscribe(push$)\n\n    /* Create and return component */\n    return header$\n      .pipe(\n        takeUntil(done$),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(tooltips.pipe(takeUntil(done$)))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElementSize,\n  getOptionalElement,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Header } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface HeaderTitle {\n  active: boolean                      /* Header title is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header title\n *\n * @param el - Heading element\n * @param options - Options\n *\n * @returns Header title observable\n */\nexport function watchHeaderTitle(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<HeaderTitle> {\n  return watchViewportAt(el, { viewport$, header$ })\n    .pipe(\n      map(({ offset: { y } }) => {\n        const { height } = getElementSize(el)\n        return {\n          active: y >= height\n        }\n      }),\n      distinctUntilKeyChanged(\"active\")\n    )\n}\n\n/**\n * Mount header title\n *\n * This function swaps the header title from the site title to the title of the\n * current page when the user scrolls past the first headline.\n *\n * @param el - Header title element\n * @param options - Options\n *\n * @returns Header title component observable\n */\nexport function mountHeaderTitle(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<HeaderTitle>> {\n  return defer(() => {\n    const push$ = new Subject<HeaderTitle>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ active }) {\n        el.classList.toggle(\"md-header__title--active\", active)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.classList.remove(\"md-header__title--active\")\n      }\n    })\n\n    /* Obtain headline, if any */\n    const heading = getOptionalElement(\".md-content h1\")\n    if (typeof heading === \"undefined\")\n      return EMPTY\n\n    /* Create and return component */\n    return watchHeaderTitle(heading, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  map,\n  switchMap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchElementSize\n} from \"~/browser\"\n\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Main area\n */\nexport interface Main {\n  offset: number                       /* Main area top offset */\n  height: number                       /* Main area visible height */\n  active: boolean                      /* Main area is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch main area\n *\n * This function returns an observable that computes the visual parameters of\n * the main area which depends on the viewport vertical offset and height, as\n * well as the height of the header element, if the header is fixed.\n *\n * @param el - Main area element\n * @param options - Options\n *\n * @returns Main area observable\n */\nexport function watchMain(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Main> {\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      map(({ height }) => height),\n      distinctUntilChanged()\n    )\n\n  /* Compute the main area's top and bottom borders */\n  const border$ = adjust$\n    .pipe(\n      switchMap(() => watchElementSize(el)\n        .pipe(\n          map(({ height }) => ({\n            top:    el.offsetTop,\n            bottom: el.offsetTop + height\n          })),\n          distinctUntilKeyChanged(\"bottom\")\n        )\n      )\n    )\n\n  /* Compute the main area's offset, visible height and if we scrolled past */\n  return combineLatest([adjust$, border$, viewport$])\n    .pipe(\n      map(([header, { top, bottom }, { offset: { y }, size: { height } }]) => {\n        height = Math.max(0, height\n          - Math.max(0, top    - y,  header)\n          - Math.max(0, height + y - bottom)\n        )\n        return {\n          offset: top - header,\n          height,\n          active: top - header <= y\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.offset === b.offset &&\n        a.height === b.height &&\n        a.active === b.active\n      ))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  defer,\n  filter,\n  finalize,\n  fromEvent,\n  map,\n  mergeMap,\n  observeOn,\n  of,\n  repeat,\n  shareReplay,\n  skip,\n  startWith,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { getElements, watchMedia } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Palette colors\n */\nexport interface PaletteColor {\n  media?: string                       /* Media query */\n  scheme?: string                      /* Color scheme */\n  primary?: string                     /* Primary color */\n  accent?: string                      /* Accent color */\n}\n\n/**\n * Palette\n */\nexport interface Palette {\n  index: number                        /* Palette index */\n  color: PaletteColor                  /* Palette colors */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch color palette\n *\n * @param inputs - Color palette element\n *\n * @returns Color palette observable\n */\nexport function watchPalette(\n  inputs: HTMLInputElement[]\n): Observable<Palette> {\n  const current = __md_get<Palette>(\"__palette\") || {\n    index: inputs.findIndex(input => matchMedia(\n      input.getAttribute(\"data-md-color-media\")!\n    ).matches)\n  }\n\n  /* Emit changes in color palette */\n  const index = Math.max(0, Math.min(current.index, inputs.length - 1))\n  return of(...inputs)\n    .pipe(\n      mergeMap(input => fromEvent(input, \"change\").pipe(map(() => input))),\n      startWith(inputs[index]),\n      map(input => ({\n        index: inputs.indexOf(input),\n        color: {\n          media:   input.getAttribute(\"data-md-color-media\"),\n          scheme:  input.getAttribute(\"data-md-color-scheme\"),\n          primary: input.getAttribute(\"data-md-color-primary\"),\n          accent:  input.getAttribute(\"data-md-color-accent\")\n        }\n      } as Palette)),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount color palette\n *\n * @param el - Color palette element\n *\n * @returns Color palette component observable\n */\nexport function mountPalette(\n  el: HTMLElement\n): Observable<Component<Palette>> {\n  const inputs = getElements<HTMLInputElement>(\"input\", el)\n  const meta = h(\"meta\", { name: \"theme-color\" })\n  document.head.appendChild(meta)\n\n  // Add color scheme meta tag\n  const scheme = h(\"meta\", { name: \"color-scheme\" })\n  document.head.appendChild(scheme)\n\n  /* Mount component on subscription */\n  const media$ = watchMedia(\"(prefers-color-scheme: light)\")\n  return defer(() => {\n    const push$ = new Subject<Palette>()\n    push$.subscribe(palette => {\n      document.body.setAttribute(\"data-md-color-switching\", \"\")\n\n      /* Retrieve color palette for system preference */\n      if (palette.color.media === \"(prefers-color-scheme)\") {\n        const media = matchMedia(\"(prefers-color-scheme: light)\")\n        const input = document.querySelector(media.matches\n          ? \"[data-md-color-media='(prefers-color-scheme: light)']\"\n          : \"[data-md-color-media='(prefers-color-scheme: dark)']\"\n        )!\n\n        /* Retrieve colors for system preference */\n        palette.color.scheme  = input.getAttribute(\"data-md-color-scheme\")!\n        palette.color.primary = input.getAttribute(\"data-md-color-primary\")!\n        palette.color.accent  = input.getAttribute(\"data-md-color-accent\")!\n      }\n\n      /* Set color palette */\n      for (const [key, value] of Object.entries(palette.color))\n        document.body.setAttribute(`data-md-color-${key}`, value)\n\n      /* Set toggle visibility */\n      for (let index = 0; index < inputs.length; index++) {\n        const label = inputs[index].nextElementSibling\n        if (label instanceof HTMLElement)\n          label.hidden = palette.index !== index\n      }\n\n      /* Persist preference in local storage */\n      __md_set(\"__palette\", palette)\n    })\n\n    // Handle color switch on Enter or Space - see https://t.ly/YIhVj\n    fromEvent<KeyboardEvent>(el, \"keydown\").pipe(\n      filter(ev => ev.key === \"Enter\"),\n      withLatestFrom(push$, (_, palette) => palette)\n    )\n      .subscribe(({ index }) => {\n        index = (index + 1) % inputs.length\n        inputs[index].click()\n        inputs[index].focus()\n      })\n\n    /* Update theme-color meta tag */\n    push$\n      .pipe(\n        map(() => {\n          const header = getComponentElement(\"header\")\n          const style  = window.getComputedStyle(header)\n\n          // Set color scheme\n          scheme.content = style.colorScheme\n\n          /* Return color in hexadecimal format */\n          return style.backgroundColor.match(/\\d+/g)!\n            .map(value => (+value).toString(16).padStart(2, \"0\"))\n            .join(\"\")\n        })\n      )\n        .subscribe(color => meta.content = `#${color}`)\n\n    /* Revert transition durations after color switch */\n    push$.pipe(observeOn(asyncScheduler))\n      .subscribe(() => {\n        document.body.removeAttribute(\"data-md-color-switching\")\n      })\n\n    /* Create and return component */\n    return watchPalette(inputs)\n      .pipe(\n        takeUntil(media$.pipe(skip(1))),\n        repeat(),\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Progress indicator\n */\nexport interface Progress {\n  value: number                        // Progress value\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount progress indicator\n *\n * @param el - Progress indicator element\n * @param options - Options\n *\n * @returns Progress indicator component observable\n */\nexport function mountProgress(\n  el: HTMLElement, { progress$ }: MountOptions\n): Observable<Component<Progress>> {\n\n  // Mount component on subscription\n  return defer(() => {\n    const push$ = new Subject<Progress>()\n    push$.subscribe(({ value }) => {\n      el.style.setProperty(\"--md-progress-value\", `${value}`)\n    })\n\n    // Create and return component\n    return progress$\n      .pipe(\n        tap(value => push$.next({ value })),\n        finalize(() => push$.complete()),\n        map(value => ({ ref: el, value }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  Observable,\n  Subject,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Extract text to copy\n *\n * @param el - HTML element\n *\n * @returns Extracted text\n */\nfunction extract(el: HTMLElement): string {\n  el.setAttribute(\"data-md-copying\", \"\")\n  const copy = el.closest(\"[data-copy]\")\n  const text = copy\n    ? copy.getAttribute(\"data-copy\")!\n    : el.innerText\n  el.removeAttribute(\"data-md-copying\")\n  return text.trimEnd()\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up Clipboard.js integration\n *\n * @param options - Options\n */\nexport function setupClipboardJS(\n  { alert$ }: SetupOptions\n): void {\n  if (ClipboardJS.isSupported()) {\n    new Observable<ClipboardJS.Event>(subscriber => {\n      new ClipboardJS(\"[data-clipboard-target], [data-clipboard-text]\", {\n        text: el => (\n          el.getAttribute(\"data-clipboard-text\")! ||\n          extract(getElement(\n            el.getAttribute(\"data-clipboard-target\")!\n          ))\n        )\n      })\n        .on(\"success\", ev => subscriber.next(ev))\n    })\n      .pipe(\n        tap(ev => {\n          const trigger = ev.trigger as HTMLElement\n          trigger.focus()\n        }),\n        map(() => translation(\"clipboard.copied\"))\n      )\n        .subscribe(alert$)\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  catchError,\n  map,\n  of\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  requestXML\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sitemap, i.e. a list of URLs\n */\nexport type Sitemap = Map<string, URL[]>\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Resolve URL to the given base URL\n *\n * When serving the site with instant navigation, MkDocs will set the hostname\n * to the value as specified in `dev_addr`, but the browser allows for several\n * hostnames to be used: `localhost`, `127.0.0.1` or even `0.0.0.0`, depending\n * on configuration. This function resolves the URL to the given hostname.\n *\n * @param url - URL\n * @param base - Base URL\n *\n * @returns Resolved URL\n */\nfunction resolve(url: URL, base: URL) {\n  url.protocol = base.protocol\n  url.hostname = base.hostname\n  return url\n}\n\n/**\n * Extract sitemap from document\n *\n * This function extracts the URLs and alternate links from the document, and\n * associates alternate links to the original URL as found in `loc`, allowing\n * the browser to navigate to the correct page when switching languages. The\n * format of the sitemap is expected to adhere to:\n *\n * ``` xml\n * <urlset>\n *   <url>\n *     <loc>...</loc>\n *     <xhtml:link rel=\"alternate\" hreflang=\"en\" href=\"...\"/>\n *     <xhtml:link rel=\"alternate\" hreflang=\"de\" href=\"...\"/>\n *     ...\n *   </url>\n *   ...\n * </urlset>\n * ```\n *\n * @param document - Document\n * @param base - Base URL\n *\n * @returns Sitemap\n */\nfunction extract(document: Document, base: URL): Sitemap {\n  const sitemap: Sitemap = new Map()\n  for (const el of getElements(\"url\", document)) {\n    const url = getElement(\"loc\", el)\n\n    // Create entry for location and add it to the list of links\n    const links = [resolve(new URL(url.textContent!), base)]\n    sitemap.set(`${links[0]}`, links)\n\n    // Attach alternate links to current entry\n    for (const link of getElements(\"[rel=alternate]\", el)) {\n      const href = link.getAttribute(\"href\")\n      if (href != null)\n        links.push(resolve(new URL(href), base))\n    }\n  }\n\n  // Return sitemap\n  return sitemap\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the sitemap for the given base URL\n *\n * If a network or parsing error occurs, we just default to an empty sitemap,\n * which means the caller should fall back to regular navigation.\n *\n * @param base - Base URL\n *\n * @returns Sitemap observable\n */\nexport function fetchSitemap(base: URL | string): Observable<Sitemap> {\n  return requestXML(new URL(\"sitemap.xml\", base))\n    .pipe(\n      map(document => extract(document, new URL(base))),\n      catchError(() => of(new Map())),\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  combineLatestWith,\n  concat,\n  debounceTime,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  of,\n  share,\n  switchMap,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration, feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  requestHTML,\n  setLocation,\n  setLocationHash\n} from \"~/browser\"\nimport { getComponentElement } from \"~/components\"\n\nimport { Sitemap, fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  location$: Subject<URL>              // Location subject\n  viewport$: Observable<Viewport>      // Viewport observable\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Handle clicks on internal URLs while skipping external URLs\n *\n * @param ev - Mouse event\n * @param sitemap - Sitemap\n *\n * @returns URL observable\n */\nfunction handle(\n  ev: MouseEvent, sitemap: Sitemap\n): Observable<URL> {\n  if (!(ev.target instanceof Element))\n    return EMPTY\n\n  // Skip, as target is not within a link - clicks on non-link elements are\n  // also captured, which we need to exclude from processing\n  const el = ev.target.closest(\"a\")\n  if (el === null)\n    return EMPTY\n\n  // Skip, as link opens in new window - we now know we have captured a click\n  // on a link, but the link either has a `target` property defined, or the\n  // user pressed the `meta` or `ctrl` key to open it in a new window. Thus,\n  // we need to filter this event as well.\n  if (el.target || ev.metaKey || ev.ctrlKey)\n    return EMPTY\n\n  // Next, we must check if the URL is relevant for us, i.e., if it's an\n  // internal link to a page that is managed by MkDocs. Only then we can be\n  // sure that the structure of the page to be loaded adheres to the current\n  // document structure and can subsequently be injected into it without doing\n  // a full reload. For this reason, we must canonicalize the URL by removing\n  // all search parameters and hash fragments.\n  const url = new URL(el.href)\n  url.search = url.hash = \"\"\n\n  // Skip, if URL is not included in the sitemap - this could be the case when\n  // linking between versions or languages, or to another page that the author\n  // included as part of the build, but that is not managed by MkDocs. In that\n  // case we must not continue with instant navigation.\n  if (!sitemap.has(`${url}`))\n    return EMPTY\n\n  // We now know that we have a link to an internal page, so we prevent the\n  // browser from navigation and emit the URL for instant navigation. Note that\n  // this also includes anchor links, which means we need to implement anchor\n  // positioning ourselves. The reason for this is that if we wouldn't manage\n  // anchor links as well, scroll restoration will not work correctly (e.g.\n  // following an anchor link and scrolling).\n  ev.preventDefault()\n  return of(new URL(el.href))\n}\n\n/**\n * Create a map of head elements for lookup and replacement\n *\n * @param document - Document\n *\n * @returns Tag map\n */\nfunction head(document: Document): Map<string, HTMLElement> {\n  const tags = new Map<string, HTMLElement>()\n  for (const el of getElements(\":scope > *\", document.head))\n    tags.set(el.outerHTML, el)\n\n  // Return tag map\n  return tags\n}\n\n/**\n * Resolve relative URLs in the given document\n *\n * This function resolves relative `href` and `src` attributes, which can belong\n * to all sorts of tags, like meta tags, links, images, scripts and more.\n *\n * @param document - Document\n *\n * @returns Document observable\n */\nfunction resolve(document: Document): Observable<Document> {\n  for (const el of getElements(\"[href], [src]\", document))\n    for (const key of [\"href\", \"src\"]) {\n      const value = el.getAttribute(key)\n      if (value && !/^(?:[a-z]+:)?\\/\\//i.test(value)) {\n        // @ts-expect-error - trick: self-assign to resolve URL\n        el[key] = el[key]\n        break\n      }\n    }\n\n  // Return document observable\n  return of(document)\n}\n\n/**\n * Inject the contents of a document into the current one\n *\n * @param next - Next document\n *\n * @returns Document observable\n */\nfunction inject(next: Document): Observable<Document> {\n  for (const selector of [\n    \"[data-md-component=announce]\",\n    \"[data-md-component=container]\",\n    \"[data-md-component=header-topic]\",\n    \"[data-md-component=outdated]\",\n    \"[data-md-component=logo]\",\n    \"[data-md-component=skip]\",\n    ...feature(\"navigation.tabs.sticky\")\n      ? [\"[data-md-component=tabs]\"]\n      : []\n  ]) {\n    const source = getOptionalElement(selector)\n    const target = getOptionalElement(selector, next)\n    if (\n      typeof source !== \"undefined\" &&\n      typeof target !== \"undefined\"\n    ) {\n      source.replaceWith(target)\n    }\n  }\n\n  // Update meta tags\n  const tags = head(document)\n  for (const [html, el] of head(next))\n    if (tags.has(html))\n      tags.delete(html)\n    else\n      document.head.appendChild(el)\n\n  // Remove meta tags that are not present in the new document\n  for (const el of tags.values()) {\n    const name = el.getAttribute(\"name\")\n    // @todo - find a better way to handle attributes we add dynamically in\n    // other components without mounting components on every navigation, as\n    // this might impact overall performance - see https://t.ly/ehp_O\n    if (name !== \"theme-color\" && name !== \"color-scheme\")\n      el.remove()\n  }\n\n  // After components and meta tags were replaced, re-evaluate scripts\n  // that were provided by the author as part of Markdown files\n  const container = getComponentElement(\"container\")\n  return concat(getElements(\"script\", container))\n    .pipe(\n      switchMap(el => {\n        const script = next.createElement(\"script\")\n        if (el.src) {\n          for (const name of el.getAttributeNames())\n            script.setAttribute(name, el.getAttribute(name)!)\n          el.replaceWith(script)\n\n          // Complete when script is loaded\n          return new Observable(observer => {\n            script.onload = () => observer.complete()\n          })\n\n        // Complete immediately\n        } else {\n          script.textContent = el.textContent\n          el.replaceWith(script)\n          return EMPTY\n        }\n      }),\n      ignoreElements(),\n      endWith(document)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up instant navigation\n *\n * This is a heavily orchestrated operation - see inline comments to learn how\n * this works with Material for MkDocs, and how you can hook into it.\n *\n * @param options - Options\n *\n * @returns Document observable\n */\nexport function setupInstantNavigation(\n  { location$, viewport$, progress$ }: SetupOptions\n): Observable<Document> {\n  const config = configuration()\n  if (location.protocol === \"file:\")\n    return EMPTY\n\n  // Load sitemap immediately, so we have it available when the user initiates\n  // the first navigation request without any perceivable delay\n  const sitemap$ = fetchSitemap(config.base)\n\n  // Since we might be on a slow connection, the user might trigger multiple\n  // instant navigation events that overlap. MkDocs produces relative URLs for\n  // all internal links, which becomes a problem in this case, because we need\n  // to change the base URL the moment the user clicks a link that should be\n  // intercepted in order to be consistent with popstate, which means that the\n  // base URL would now be incorrect when resolving another relative link from\n  // the same site. For this reason we always resolve all relative links to\n  // absolute links, so we can be sure this never happens.\n  of(document)\n    .subscribe(resolve)\n\n  // --------------------------------------------------------------------------\n  // Navigation interception\n  // --------------------------------------------------------------------------\n\n  // Intercept navigation - to keep the number of event listeners down we use\n  // the fact that uncaptured events bubble up to the body. This has the nice\n  // property that we don't need to detach and then re-attach event listeners\n  // when the document is replaced after a navigation event.\n  const instant$ =\n    fromEvent<MouseEvent>(document.body, \"click\")\n      .pipe(\n        combineLatestWith(sitemap$),\n        switchMap(([ev, sitemap]) => handle(ev, sitemap)),\n        share()\n      )\n\n  // Intercept history change events, e.g. when the user uses the browser's\n  // back or forward buttons, and emit new location for fetching and parsing\n  const history$ =\n    fromEvent<PopStateEvent>(window, \"popstate\")\n      .pipe(\n        map(getLocation),\n        share()\n      )\n\n  // While it would be better UX to defer navigation events until the document\n  // is fully fetched and parsed, we must schedule it here to synchronize with\n  // popstate events, as they are emitted immediately. Moreover we need to\n  // store the current viewport offset for scroll restoration later on.\n  instant$.pipe(withLatestFrom(viewport$))\n    .subscribe(([url, { offset }]) => {\n      history.replaceState(offset, \"\")\n      history.pushState(null, \"\", url)\n    })\n\n  // Emit URLs that should be fetched via instant navigation on location subject\n  // which was passed into this function. The state of instant navigation can be\n  // intercepted by other parts of the application, which can synchronously back\n  // up or restore state before or after instant navigation happens.\n  merge(instant$, history$)\n    .subscribe(location$)\n\n  // --------------------------------------------------------------------------\n  // Fetching and parsing\n  // --------------------------------------------------------------------------\n\n  // Fetch document - we deduplicate requests to the same location, so we don't\n  // end up with multiple requests for the same page. We use `switchMap`, since\n  // we want to cancel the previous request when a new one is triggered, which\n  // is automatically handled by the observable returned by `request`. This is\n  // essential to ensure a good user experience, as we don't want to load pages\n  // that are not needed anymore, e.g., when the user clicks multiple links in\n  // quick succession or on slow connections. If the request fails for some\n  // reason, we fall back and use regular navigation, forcing a reload.\n  const document$ =\n    location$.pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(url => requestHTML(url, { progress$ })\n        .pipe(\n          catchError(() => {\n            setLocation(url, true)\n            return EMPTY\n          })\n        )\n      ),\n\n      // The document was successfully fetched and parsed, so we can inject its\n      // contents into the currently active document\n      switchMap(resolve),\n      switchMap(inject),\n      share()\n    )\n\n  // --------------------------------------------------------------------------\n  // Scroll restoration\n  // --------------------------------------------------------------------------\n\n  // Handle scroll restoration - we must restore the viewport offset after the\n  // document has been fetched and injected, and every time the user clicks an\n  // anchor that leads to an element on the same page, which might also happen\n  // when the user uses the back or forward button.\n  merge(\n    document$.pipe(withLatestFrom(location$, (_, url) => url)),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with a hash fragment different from the current one, as\n    // well as from popstate events, which are emitted when the user navigates\n    // back and forth between pages. We use a two-layered subscription to scope\n    // the scroll restoration to the current page, as we don't need to restore\n    // the viewport offset when the user navigates to a different page, as this\n    // is already handled by the previous observable.\n    location$.pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(() => location$),\n      distinctUntilKeyChanged(\"hash\"),\n    ),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with the same hash fragment as the current one in the\n    // URL. It is essential that we only intercept those from instant navigation\n    // events and not from history change events, or we'll end up in and endless\n    // loop. The top-level history entry must be removed, as it will be replaced\n    // with a new one, which would otherwise lead to a duplicate entry.\n    location$.pipe(\n      distinctUntilChanged((a, b) => (\n        a.pathname === b.pathname &&\n        a.hash     === b.hash\n      )),\n      switchMap(() => instant$),\n      tap(() => history.back())\n    )\n  )\n    .subscribe(url => {\n\n      // Check if the current history entry has a state, which happens when the\n      // user presses the back or forward button to visit a page we've already\n      // seen. If there's no state, it means a new page was visited and we must\n      // scroll to the top, unless an anchor is given.\n      if (history.state !== null || !url.hash) {\n        window.scrollTo(0, history.state?.y ?? 0)\n      } else {\n        history.scrollRestoration = \"auto\"\n        setLocationHash(url.hash)\n        history.scrollRestoration = \"manual\"\n      }\n    })\n\n  // Disable scroll restoration when an instant navigation event occurs, so the\n  // browser does not immediately set the viewport offset to the prior history\n  // entry, scrolling to the position on the same page, which would look odd.\n  // Instead, we manually restore the position once the page has loaded.\n  location$.subscribe(() => {\n    history.scrollRestoration = \"manual\"\n  })\n\n  // Enable scroll restoration before window unloads - this is essential to\n  // ensure that full reloads (F5) restore the viewport offset correctly. If\n  // only popstate events wouldn't reset the viewport offset prior to their\n  // emission, we could just reset this in popstate. Meh.\n  fromEvent(window, \"beforeunload\")\n    .subscribe(() => {\n      history.scrollRestoration = \"auto\"\n    })\n\n  // Track viewport offset, so we can restore it when the user navigates back\n  // and forth between pages. Note that this must be debounced and cannot be\n  // done in popstate, as popstate has already removed the entry from the\n  // history, which means it is too late.\n  viewport$.pipe(\n    distinctUntilKeyChanged(\"offset\"),\n    debounceTime(100)\n  )\n    .subscribe(({ offset }) => {\n      history.replaceState(offset, \"\")\n    })\n\n  // Return document observable\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport escapeHTML from \"escape-html\"\n\nimport { SearchConfig } from \"../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlight function\n *\n * @param value - Value\n *\n * @returns Highlighted value\n */\nexport type SearchHighlightFn = (value: string) => string\n\n/**\n * Search highlight factory function\n *\n * @param query - Query value\n *\n * @returns Search highlight function\n */\nexport type SearchHighlightFactoryFn = (query: string) => SearchHighlightFn\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search highlighter\n *\n * @param config - Search configuration\n *\n * @returns Search highlight factory function\n */\nexport function setupSearchHighlighter(\n  config: SearchConfig\n): SearchHighlightFactoryFn {\n  // Hack: temporarily remove pure lookaheads and lookbehinds\n  const regex = config.separator.split(\"|\").map(term => {\n    const temp = term.replace(/(\\(\\?[!=<][^)]+\\))/g, \"\")\n    return temp.length === 0 ? \"\uFFFD\" : term\n  })\n    .join(\"|\")\n\n  const separator = new RegExp(regex, \"img\")\n  const highlight = (_: unknown, data: string, term: string) => {\n    return `${data}<mark data-md-highlight>${term}</mark>`\n  }\n\n  /* Return factory function */\n  return (query: string) => {\n    query = query\n      .replace(/[\\s*+\\-:~^]+/g, \" \")\n      .trim()\n\n    /* Create search term match expression */\n    const match = new RegExp(`(^|${config.separator}|)(${\n      query\n        .replace(/[|\\\\{}()[\\]^$+*?.-]/g, \"\\\\$&\")\n        .replace(separator, \"|\")\n    })`, \"img\")\n\n    /* Highlight string value */\n    return value => escapeHTML(value)\n      .replace(match, highlight)\n      .replace(/<\\/mark>(\\s+)<mark[^>]*>/img, \"$1\")\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchResult } from \"../../_\"\nimport { SearchIndex } from \"../../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search message type\n */\nexport const enum SearchMessageType {\n  SETUP,                               /* Search index setup */\n  READY,                               /* Search index ready */\n  QUERY,                               /* Search query */\n  RESULT                               /* Search results */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message containing the data necessary to setup the search index\n */\nexport interface SearchSetupMessage {\n  type: SearchMessageType.SETUP        /* Message type */\n  data: SearchIndex                    /* Message data */\n}\n\n/**\n * Message indicating the search index is ready\n */\nexport interface SearchReadyMessage {\n  type: SearchMessageType.READY        /* Message type */\n}\n\n/**\n * Message containing a search query\n */\nexport interface SearchQueryMessage {\n  type: SearchMessageType.QUERY        /* Message type */\n  data: string                         /* Message data */\n}\n\n/**\n * Message containing results for a search query\n */\nexport interface SearchResultMessage {\n  type: SearchMessageType.RESULT       /* Message type */\n  data: SearchResult                   /* Message data */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message exchanged with the search worker\n */\nexport type SearchMessage =\n  | SearchSetupMessage\n  | SearchReadyMessage\n  | SearchQueryMessage\n  | SearchResultMessage\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Type guard for search ready messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchReadyMessage(\n  message: SearchMessage\n): message is SearchReadyMessage {\n  return message.type === SearchMessageType.READY\n}\n\n/**\n * Type guard for search result messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchResultMessage(\n  message: SearchMessage\n): message is SearchResultMessage {\n  return message.type === SearchMessageType.RESULT\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ObservableInput,\n  Subject,\n  first,\n  merge,\n  of,\n  switchMap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { watchToggle, watchWorker } from \"~/browser\"\n\nimport { SearchIndex } from \"../../config\"\nimport {\n  SearchMessage,\n  SearchMessageType\n} from \"../message\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up search worker\n *\n * This function creates and initializes a web worker that is used for search,\n * so that the user interface doesn't freeze. In general, the application does\n * not care how search is implemented, as long as the web worker conforms to\n * the format expected by the application as defined in `SearchMessage`. This\n * allows the author to implement custom search functionality, by providing a\n * custom web worker via configuration.\n *\n * Material for MkDocs' built-in search implementation makes use of Lunr.js, an\n * efficient and fast implementation for client-side search. Leveraging a tiny\n * iframe-based web worker shim, search is even supported for the `file://`\n * protocol, enabling search for local non-hosted builds.\n *\n * If the protocol is `file://`, search initialization is deferred to mitigate\n * freezing, as it's now synchronous by design - see https://bit.ly/3C521EO\n *\n * @see https://bit.ly/3igvtQv - How to implement custom search\n *\n * @param url - Worker URL\n * @param index$ - Search index observable input\n *\n * @returns Search worker\n */\nexport function setupSearchWorker(\n  url: string, index$: ObservableInput<SearchIndex>\n): Subject<SearchMessage> {\n  const worker$ = watchWorker<SearchMessage>(url)\n  merge(\n    of(location.protocol !== \"file:\"),\n    watchToggle(\"search\")\n  )\n    .pipe(\n      first(active => active),\n      switchMap(() => index$)\n    )\n      .subscribe(({ config, docs }) => worker$.next({\n        type: SearchMessageType.SETUP,\n        data: {\n          config,\n          docs,\n          options: {\n            suggest: feature(\"search.suggest\")\n          }\n        }\n      }))\n\n  /* Return search worker */\n  return worker$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Subject,\n  catchError,\n  combineLatest,\n  filter,\n  fromEvent,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  getElement,\n  getLocation,\n  requestJSON,\n  setLocation\n} from \"~/browser\"\nimport { getComponentElements } from \"~/components\"\nimport {\n  Version,\n  renderVersionSelector\n} from \"~/templates\"\n\nimport { fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  document$: Subject<Document>         /* Document subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up version selector\n *\n * @param options - Options\n */\nexport function setupVersionSelector(\n  { document$ }: SetupOptions\n): void {\n  const config = configuration()\n  const versions$ = requestJSON<Version[]>(\n    new URL(\"../versions.json\", config.base)\n  )\n    .pipe(\n      catchError(() => EMPTY) // @todo refactor instant loading\n    )\n\n  /* Determine current version */\n  const current$ = versions$\n    .pipe(\n      map(versions => {\n        const [, current] = config.base.match(/([^/]+)\\/?$/)!\n        return versions.find(({ version, aliases }) => (\n          version === current || aliases.includes(current)\n        )) || versions[0]\n      })\n    )\n\n  /* Intercept inter-version navigation */\n  versions$\n    .pipe(\n      map(versions => new Map(versions.map(version => [\n        `${new URL(`../${version.version}/`, config.base)}`,\n        version\n      ]))),\n      switchMap(urls => fromEvent<MouseEvent>(document.body, \"click\")\n        .pipe(\n          filter(ev => !ev.metaKey && !ev.ctrlKey),\n          withLatestFrom(current$),\n          switchMap(([ev, current]) => {\n            if (ev.target instanceof Element) {\n              const el = ev.target.closest(\"a\")\n              if (el && !el.target && urls.has(el.href)) {\n                const url = el.href\n                // This is a temporary hack to detect if a version inside the\n                // version selector or on another part of the site was clicked.\n                // If we're inside the version selector, we definitely want to\n                // find the same page, as we might have different deployments\n                // due to aliases. However, if we're outside the version\n                // selector, we must abort here, because we might otherwise\n                // interfere with instant navigation. We need to refactor this\n                // at some point together with instant navigation.\n                //\n                // See https://github.com/squidfunk/mkdocs-material/issues/4012\n                if (!ev.target.closest(\".md-version\")) {\n                  const version = urls.get(url)!\n                  if (version === current)\n                    return EMPTY\n                }\n                ev.preventDefault()\n                return of(url)\n              }\n            }\n            return EMPTY\n          }),\n          switchMap(url => {\n            const { version } = urls.get(url)!\n            return fetchSitemap(new URL(url))\n              .pipe(\n                map(sitemap => {\n                  const location = getLocation()\n                  const path = location.href.replace(config.base, \"\")\n                  return sitemap.has(path.split(\"#\")[0])\n                    ? new URL(`../${version}/${path}`, config.base)\n                    : new URL(url)\n                })\n              )\n          })\n        )\n      )\n    )\n      .subscribe(url => setLocation(url, true))\n\n  /* Render version selector and warning */\n  combineLatest([versions$, current$])\n    .subscribe(([versions, current]) => {\n      const topic = getElement(\".md-header__topic\")\n      topic.appendChild(renderVersionSelector(versions, current))\n    })\n\n  /* Integrate outdated version banner with instant navigation */\n  document$.pipe(switchMap(() => current$))\n    .subscribe(current => {\n\n      /* Check if version state was already determined */\n      let outdated = __md_get(\"__outdated\", sessionStorage)\n      if (outdated === null) {\n        outdated = true\n\n        /* Obtain and normalize default versions */\n        let ignored = config.version?.default || \"latest\"\n        if (!Array.isArray(ignored))\n          ignored = [ignored]\n\n        /* Check if version is considered a default */\n        main: for (const ignore of ignored)\n          for (const version of current.aliases.concat(current.version))\n            if (new RegExp(ignore, \"i\").test(version)) {\n              outdated = false\n              break main\n            }\n\n        /* Persist version state in session storage */\n        __md_set(\"__outdated\", outdated, sessionStorage)\n      }\n\n      /* Unhide outdated version banner */\n      if (outdated)\n        for (const warning of getComponentElements(\"outdated\"))\n          warning.hidden = false\n    })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  first,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  shareReplay,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getLocation,\n  setToggle,\n  watchElementFocus,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchMessageType,\n  isSearchReadyMessage\n} from \"~/integrations\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search query\n */\nexport interface SearchQuery {\n  value: string                        /* Query value */\n  focus: boolean                       /* Query focus */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch search query\n *\n * Note that the focus event which triggers re-reading the current query value\n * is delayed by `1ms` so the input's empty state is allowed to propagate.\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query observable\n */\nexport function watchSearchQuery(\n  el: HTMLInputElement, { worker$ }: WatchOptions\n): Observable<SearchQuery> {\n\n  /* Support search deep linking */\n  const { searchParams } = getLocation()\n  if (searchParams.has(\"q\")) {\n    setToggle(\"search\", true)\n\n    /* Set query from parameter */\n    el.value = searchParams.get(\"q\")!\n    el.focus()\n\n    /* Remove query parameter on close */\n    watchToggle(\"search\")\n      .pipe(\n        first(active => !active)\n      )\n        .subscribe(() => {\n          const url = getLocation()\n          url.searchParams.delete(\"q\")\n          history.replaceState({}, \"\", `${url}`)\n        })\n  }\n\n  /* Intercept focus and input events */\n  const focus$ = watchElementFocus(el)\n  const value$ = merge(\n    worker$.pipe(first(isSearchReadyMessage)),\n    fromEvent(el, \"keyup\"),\n    focus$\n  )\n    .pipe(\n      map(() => el.value),\n      distinctUntilChanged()\n    )\n\n  /* Combine into single observable */\n  return combineLatest([value$, focus$])\n    .pipe(\n      map(([value, focus]) => ({ value, focus })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount search query\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query component observable\n */\nexport function mountSearchQuery(\n  el: HTMLInputElement, { worker$ }: MountOptions\n): Observable<Component<SearchQuery, HTMLInputElement>> {\n  const push$ = new Subject<SearchQuery>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n  /* Handle value change */\n  combineLatest([\n    worker$.pipe(first(isSearchReadyMessage)),\n    push$\n  ], (_, query) => query)\n    .pipe(\n      distinctUntilKeyChanged(\"value\")\n    )\n      .subscribe(({ value }) => worker$.next({\n        type: SearchMessageType.QUERY,\n        data: value\n      }))\n\n  /* Handle focus change */\n  push$\n    .pipe(\n      distinctUntilKeyChanged(\"focus\")\n    )\n      .subscribe(({ focus }) => {\n        if (focus)\n          setToggle(\"search\", focus)\n      })\n\n  /* Handle reset */\n  fromEvent(el.form!, \"reset\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(() => el.focus())\n\n  // Focus search query on label click - note that this is necessary to bring\n  // up the keyboard on iOS and other mobile platforms, as the search dialog is\n  // not visible at first, and programatically focusing an input element must\n  // be triggered by a user interaction - see https://t.ly/Cb30n\n  const label = getElement(\"header [for=__search]\")\n  fromEvent(label, \"click\")\n    .subscribe(() => el.focus())\n\n  /* Create and return component */\n  return watchSearchQuery(el, { worker$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  bufferCount,\n  filter,\n  finalize,\n  first,\n  fromEvent,\n  map,\n  merge,\n  mergeMap,\n  of,\n  share,\n  skipUntil,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom,\n  zipWith\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport {\n  getElement,\n  getOptionalElement,\n  watchElementBoundary,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchReadyMessage,\n  isSearchResultMessage\n} from \"~/integrations\"\nimport { renderSearchResultItem } from \"~/templates\"\nimport { round } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search result list\n *\n * This function performs a lazy rendering of the search results, depending on\n * the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchResult(\n  el: HTMLElement, { worker$, query$ }: MountOptions\n): Observable<Component<SearchResult>> {\n  const push$ = new Subject<SearchResult>()\n  const boundary$ = watchElementBoundary(el.parentElement!)\n    .pipe(\n      filter(Boolean)\n    )\n\n  /* Retrieve container */\n  const container = el.parentElement!\n\n  /* Retrieve nested components */\n  const meta = getElement(\":scope > :first-child\", el)\n  const list = getElement(\":scope > :last-child\", el)\n\n  /* Reveal to accessibility tree \u2013 see https://bit.ly/3iAA7t8 */\n  watchToggle(\"search\")\n    .subscribe(active => list.setAttribute(\n      \"role\", active ? \"list\" : \"presentation\"\n    ))\n\n  /* Update search result metadata */\n  push$\n    .pipe(\n      withLatestFrom(query$),\n      skipUntil(worker$.pipe(first(isSearchReadyMessage)))\n    )\n      .subscribe(([{ items }, { value }]) => {\n        switch (items.length) {\n\n          /* No results */\n          case 0:\n            meta.textContent = value.length\n              ? translation(\"search.result.none\")\n              : translation(\"search.result.placeholder\")\n            break\n\n          /* One result */\n          case 1:\n            meta.textContent = translation(\"search.result.one\")\n            break\n\n          /* Multiple result */\n          default:\n            const count = round(items.length)\n            meta.textContent = translation(\"search.result.other\", count)\n        }\n      })\n\n  /* Render search result item */\n  const render$ = push$\n    .pipe(\n      tap(() => list.innerHTML = \"\"),\n      switchMap(({ items }) => merge(\n        of(...items.slice(0, 10)),\n        of(...items.slice(10))\n          .pipe(\n            bufferCount(4),\n            zipWith(boundary$),\n            switchMap(([chunk]) => chunk)\n          )\n      )),\n      map(renderSearchResultItem),\n      share()\n    )\n\n  /* Update search result list */\n  render$.subscribe(item => list.appendChild(item))\n  render$\n    .pipe(\n      mergeMap(item => {\n        const details = getOptionalElement(\"details\", item)\n        if (typeof details === \"undefined\")\n          return EMPTY\n\n        /* Keep position of details element stable */\n        return fromEvent(details, \"toggle\")\n          .pipe(\n            takeUntil(push$),\n            map(() => details)\n          )\n      })\n    )\n      .subscribe(details => {\n        if (\n          details.open === false &&\n          details.offsetTop <= container.scrollTop\n        )\n          container.scrollTo({ top: details.offsetTop })\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search sharing\n */\nexport interface SearchShare {\n  url: URL                             /* Deep link for sharing */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search sharing\n *\n * @param _el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing observable\n */\nexport function watchSearchShare(\n  _el: HTMLElement, { query$ }: WatchOptions\n): Observable<SearchShare> {\n  return query$\n    .pipe(\n      map(({ value }) => {\n        const url = getLocation()\n        url.hash = \"\"\n\n        /* Compute readable query strings */\n        value = value\n          .replace(/\\s+/g, \"+\")        /* Collapse whitespace */\n          .replace(/&/g, \"%26\")        /* Escape '&' character */\n          .replace(/=/g, \"%3D\")        /* Escape '=' character */\n\n        /* Replace query string */\n        url.search = `q=${value}`\n        return { url }\n      })\n    )\n}\n\n/**\n * Mount search sharing\n *\n * @param el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing component observable\n */\nexport function mountSearchShare(\n  el: HTMLAnchorElement, options: MountOptions\n): Observable<Component<SearchShare>> {\n  const push$ = new Subject<SearchShare>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe(({ url }) => {\n    el.setAttribute(\"data-clipboard-text\", el.href)\n    el.href = `${url}`\n  })\n\n  /* Prevent following of link */\n  fromEvent(el, \"click\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(ev => ev.preventDefault())\n\n  /* Create and return component */\n  return watchSearchShare(el, options)\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  combineLatestWith,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  observeOn,\n  tap\n} from \"rxjs\"\n\nimport { Keyboard } from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchResultMessage\n} from \"~/integrations\"\n\nimport { Component, getComponentElement } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search suggestions\n */\nexport interface SearchSuggest {}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search suggestions\n *\n * This function will perform a lazy rendering of the search results, depending\n * on the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchSuggest(\n  el: HTMLElement, { worker$, keyboard$ }: MountOptions\n): Observable<Component<SearchSuggest>> {\n  const push$ = new Subject<SearchResult>()\n\n  /* Retrieve query component and track all changes */\n  const query  = getComponentElement(\"search-query\")\n  const query$ = merge(\n    fromEvent(query, \"keydown\"),\n    fromEvent(query, \"focus\")\n  )\n    .pipe(\n      observeOn(asyncScheduler),\n      map(() => query.value),\n      distinctUntilChanged(),\n    )\n\n  /* Update search suggestions */\n  push$\n    .pipe(\n      combineLatestWith(query$),\n      map(([{ suggest }, value]) => {\n        const words = value.split(/([\\s-]+)/)\n        if (suggest?.length && words[words.length - 1]) {\n          const last = suggest[suggest.length - 1]\n          if (last.startsWith(words[words.length - 1]))\n            words[words.length - 1] = last\n        } else {\n          words.length = 0\n        }\n        return words\n      })\n    )\n      .subscribe(words => el.innerHTML = words\n        .join(\"\")\n        .replace(/\\s/g, \"&nbsp;\")\n      )\n\n  /* Set up search keyboard handlers */\n  keyboard$\n    .pipe(\n      filter(({ mode }) => mode === \"search\")\n    )\n      .subscribe(key => {\n        switch (key.type) {\n\n          /* Right arrow: accept current suggestion */\n          case \"ArrowRight\":\n            if (\n              el.innerText.length &&\n              query.selectionStart === query.value.length\n            )\n              query.value = el.innerText\n            break\n        }\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  ObservableInput,\n  filter,\n  fromEvent,\n  merge,\n  mergeWith\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  Keyboard,\n  getActiveElement,\n  getElements,\n  setToggle\n} from \"~/browser\"\nimport {\n  SearchIndex,\n  SearchResult,\n  setupSearchWorker\n} from \"~/integrations\"\n\nimport {\n  Component,\n  getComponentElement,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SearchQuery,\n  mountSearchQuery\n} from \"../query\"\nimport { mountSearchResult } from \"../result\"\nimport {\n  SearchShare,\n  mountSearchShare\n} from \"../share\"\nimport {\n  SearchSuggest,\n  mountSearchSuggest\n} from \"../suggest\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search\n */\nexport type Search =\n  | SearchQuery\n  | SearchResult\n  | SearchShare\n  | SearchSuggest\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search\n *\n * This function sets up the search functionality, including the underlying\n * web worker and all keyboard bindings.\n *\n * @param el - Search element\n * @param options - Options\n *\n * @returns Search component observable\n */\nexport function mountSearch(\n  el: HTMLElement, { index$, keyboard$ }: MountOptions\n): Observable<Component<Search>> {\n  const config = configuration()\n  try {\n    const worker$ = setupSearchWorker(config.search, index$)\n\n    /* Retrieve query and result components */\n    const query  = getComponentElement(\"search-query\", el)\n    const result = getComponentElement(\"search-result\", el)\n\n    /* Always close search on result selection */\n    fromEvent<PointerEvent>(el, \"click\")\n      .pipe(\n        filter(({ target }) => (\n          target instanceof Element && !!target.closest(\"a\")\n        ))\n      )\n        .subscribe(() => setToggle(\"search\", false))\n\n    /* Set up search keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"search\")\n      )\n        .subscribe(key => {\n          const active = getActiveElement()\n          switch (key.type) {\n\n            /* Enter: go to first (best) result */\n            case \"Enter\":\n              if (active === query) {\n                const anchors = new Map<HTMLAnchorElement, number>()\n                for (const anchor of getElements<HTMLAnchorElement>(\n                  \":first-child [href]\", result\n                )) {\n                  const article = anchor.firstElementChild!\n                  anchors.set(anchor, parseFloat(\n                    article.getAttribute(\"data-md-score\")!\n                  ))\n                }\n\n                /* Go to result with highest score, if any */\n                if (anchors.size) {\n                  const [[best]] = [...anchors].sort(([, a], [, b]) => b - a)\n                  best.click()\n                }\n\n                /* Otherwise omit form submission */\n                key.claim()\n              }\n              break\n\n            /* Escape or Tab: close search */\n            case \"Escape\":\n            case \"Tab\":\n              setToggle(\"search\", false)\n              query.blur()\n              break\n\n            /* Vertical arrows: select previous or next search result */\n            case \"ArrowUp\":\n            case \"ArrowDown\":\n              if (typeof active === \"undefined\") {\n                query.focus()\n              } else {\n                const els = [query, ...getElements(\n                  \":not(details) > [href], summary, details[open] [href]\",\n                  result\n                )]\n                const i = Math.max(0, (\n                  Math.max(0, els.indexOf(active)) + els.length + (\n                    key.type === \"ArrowUp\" ? -1 : +1\n                  )\n                ) % els.length)\n                els[i].focus()\n              }\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n\n            /* All other keys: hand to search query */\n            default:\n              if (query !== getActiveElement())\n                query.focus()\n          }\n        })\n\n    /* Set up global keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"global\")\n      )\n        .subscribe(key => {\n          switch (key.type) {\n\n            /* Open search and select query */\n            case \"f\":\n            case \"s\":\n            case \"/\":\n              query.focus()\n              query.select()\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n          }\n        })\n\n    /* Create and return component */\n    const query$ = mountSearchQuery(query, { worker$ })\n    return merge(\n      query$,\n      mountSearchResult(result, { worker$, query$ })\n    )\n      .pipe(\n        mergeWith(\n\n          /* Search sharing */\n          ...getComponentElements(\"search-share\", el)\n            .map(child => mountSearchShare(child, { query$ })),\n\n          /* Search suggestions */\n          ...getComponentElements(\"search-suggest\", el)\n            .map(child => mountSearchSuggest(child, { worker$, keyboard$ }))\n        )\n      )\n\n  /* Gracefully handle broken search */\n  } catch (err) {\n    el.hidden = true\n    return NEVER\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  ObservableInput,\n  combineLatest,\n  filter,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\nimport {\n  SearchIndex,\n  setupSearchHighlighter\n} from \"~/integrations\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlighting\n */\nexport interface SearchHighlight {\n  nodes: Map<ChildNode, string>        /* Map of replacements */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  location$: Observable<URL>           /* Location observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search highlighting\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Search highlighting component observable\n */\nexport function mountSearchHiglight(\n  el: HTMLElement, { index$, location$ }: MountOptions\n): Observable<Component<SearchHighlight>> {\n  return combineLatest([\n    index$,\n    location$\n      .pipe(\n        startWith(getLocation()),\n        filter(url => !!url.searchParams.get(\"h\"))\n      )\n  ])\n    .pipe(\n      map(([index, url]) => setupSearchHighlighter(index.config)(\n        url.searchParams.get(\"h\")!\n      )),\n      map(fn => {\n        const nodes = new Map<ChildNode, string>()\n\n        /* Traverse text nodes and collect matches */\n        const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n        for (let node = it.nextNode(); node; node = it.nextNode()) {\n          if (node.parentElement?.offsetHeight) {\n            const original = node.textContent!\n            const replaced = fn(original)\n            if (replaced.length > original.length)\n              nodes.set(node as ChildNode, replaced)\n          }\n        }\n\n        /* Replace original nodes with matches */\n        for (const [node, text] of nodes) {\n          const { childNodes } = h(\"span\", null, text)\n          node.replaceWith(...Array.from(childNodes))\n        }\n\n        /* Return component */\n        return { ref: el, nodes }\n      })\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  distinctUntilChanged,\n  endWith,\n  finalize,\n  first,\n  from,\n  fromEvent,\n  ignoreElements,\n  map,\n  mergeMap,\n  observeOn,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElement,\n  getElementOffset,\n  getElementSize,\n  getElements\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sidebar\n */\nexport interface Sidebar {\n  height: number                       /* Sidebar height */\n  locked: boolean                      /* Sidebar is locked */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch sidebar\n *\n * This function returns an observable that computes the visual parameters of\n * the sidebar which depends on the vertical viewport offset, as well as the\n * height of the main area. When the page is scrolled beyond the header, the\n * sidebar is locked and fills the remaining space.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar observable\n */\nexport function watchSidebar(\n  el: HTMLElement, { viewport$, main$ }: WatchOptions\n): Observable<Sidebar> {\n  const parent = el.closest<HTMLElement>(\".md-grid\")!\n  const adjust =\n    parent.offsetTop -\n    parent.parentElement!.offsetTop\n\n  /* Compute the sidebar's available height and if it should be locked */\n  return combineLatest([main$, viewport$])\n    .pipe(\n      map(([{ offset, height }, { offset: { y } }]) => {\n        height = height\n          + Math.min(adjust, Math.max(0, y - offset))\n          - adjust\n        return {\n          height,\n          locked: y >= offset + adjust\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.locked === b.locked\n      ))\n    )\n}\n\n/**\n * Mount sidebar\n *\n * This function doesn't set the height of the actual sidebar, but of its first\n * child \u2013 the `.md-sidebar__scrollwrap` element in order to mitigiate jittery\n * sidebars when the footer is scrolled into view. At some point we switched\n * from `absolute` / `fixed` positioning to `sticky` positioning, significantly\n * reducing jitter in some browsers (respectively Firefox and Safari) when\n * scrolling from the top. However, top-aligned sticky positioning means that\n * the sidebar snaps to the bottom when the end of the container is reached.\n * This is what leads to the mentioned jitter, as the sidebar's height may be\n * updated too slowly.\n *\n * This behaviour can be mitigiated by setting the height of the sidebar to `0`\n * while preserving the padding, and the height on its first element.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar component observable\n */\nexport function mountSidebar(\n  el: HTMLElement, { header$, ...options }: MountOptions\n): Observable<Component<Sidebar>> {\n  const inner = getElement(\".md-sidebar__scrollwrap\", el)\n  const { y } = getElementOffset(inner)\n  return defer(() => {\n    const push$ = new Subject<Sidebar>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    const next$ = push$\n      .pipe(\n        auditTime(0, animationFrameScheduler)\n      )\n\n    /* Update sidebar height and offset */\n    next$.pipe(withLatestFrom(header$))\n      .subscribe({\n\n        /* Handle emission */\n        next([{ height }, { height: offset }]) {\n          inner.style.height = `${height - 2 * y}px`\n          el.style.top       = `${offset}px`\n        },\n\n        /* Handle complete */\n        complete() {\n          inner.style.height = \"\"\n          el.style.top       = \"\"\n        }\n      })\n\n    /* Bring active item into view on initial load */\n    next$.pipe(first())\n      .subscribe(() => {\n        for (const item of getElements(\".md-nav__link--active[href]\", el)) {\n          if (!item.clientHeight) // skip invisible toc in left sidebar\n            continue\n          const container = item.closest<HTMLElement>(\".md-sidebar__scrollwrap\")!\n          if (typeof container !== \"undefined\") {\n            const offset = item.offsetTop - container.offsetTop\n            const { height } = getElementSize(container)\n            container.scrollTo({\n              top: offset - height / 2\n            })\n          }\n        }\n      })\n\n    /* Handle accessibility for expandable items, see https://bit.ly/3jaod9p */\n    from(getElements<HTMLLabelElement>(\"label[tabindex]\", el))\n      .pipe(\n        mergeMap(label => fromEvent(label, \"click\")\n          .pipe(\n            observeOn(asyncScheduler),\n            map(() => label),\n            takeUntil(done$)\n          )\n        )\n      )\n        .subscribe(label => {\n          const input = getElement<HTMLInputElement>(`[id=\"${label.htmlFor}\"]`)\n          const nav = getElement(`[aria-labelledby=\"${label.id}\"]`)\n          nav.setAttribute(\"aria-expanded\", `${input.checked}`)\n        })\n\n    /* Create and return component */\n    return watchSidebar(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Repo, User } from \"github-types\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map,\n  zip\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * GitHub release (partial)\n */\ninterface Release {\n  tag_name: string                     /* Tag name */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitHub repository facts\n *\n * @param user - GitHub user or organization\n * @param repo - GitHub repository\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitHub(\n  user: string, repo?: string\n): Observable<SourceFacts> {\n  if (typeof repo !== \"undefined\") {\n    const url = `https://api.github.com/repos/${user}/${repo}`\n    return zip(\n\n      /* Fetch version */\n      requestJSON<Release>(`${url}/releases/latest`)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(release => ({\n            version: release.tag_name\n          })),\n          defaultIfEmpty({})\n        ),\n\n      /* Fetch stars and forks */\n      requestJSON<Repo>(url)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(info => ({\n            stars: info.stargazers_count,\n            forks: info.forks_count\n          })),\n          defaultIfEmpty({})\n        )\n    )\n      .pipe(\n        map(([release, info]) => ({ ...release, ...info }))\n      )\n\n  /* User or organization */\n  } else {\n    const url = `https://api.github.com/users/${user}`\n    return requestJSON<User>(url)\n      .pipe(\n        map(info => ({\n          repositories: info.public_repos\n        })),\n        defaultIfEmpty({})\n      )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ProjectSchema } from \"gitlab\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitLab repository facts\n *\n * @param base - GitLab base\n * @param project - GitLab project\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitLab(\n  base: string, project: string\n): Observable<SourceFacts> {\n  const url = `https://${base}/api/v4/projects/${encodeURIComponent(project)}`\n  return requestJSON<ProjectSchema>(url)\n    .pipe(\n      catchError(() => EMPTY), // @todo refactor instant loading\n      map(({ star_count, forks_count }) => ({\n        stars: star_count,\n        forks: forks_count\n      })),\n      defaultIfEmpty({})\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable } from \"rxjs\"\n\nimport { fetchSourceFactsFromGitHub } from \"../github\"\nimport { fetchSourceFactsFromGitLab } from \"../gitlab\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository facts for repositories\n */\nexport interface RepositoryFacts {\n  stars?: number                       /* Number of stars */\n  forks?: number                       /* Number of forks */\n  version?: string                     /* Latest version */\n}\n\n/**\n * Repository facts for organizations\n */\nexport interface OrganizationFacts {\n  repositories?: number                /* Number of repositories */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Repository facts\n */\nexport type SourceFacts =\n  | RepositoryFacts\n  | OrganizationFacts\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch repository facts\n *\n * @param url - Repository URL\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFacts(\n  url: string\n): Observable<SourceFacts> {\n\n  /* Try to match GitHub repository */\n  let match = url.match(/^.+github\\.com\\/([^/]+)\\/?([^/]+)?/i)\n  if (match) {\n    const [, user, repo] = match\n    return fetchSourceFactsFromGitHub(user, repo)\n  }\n\n  /* Try to match GitLab repository */\n  match = url.match(/^.+?([^/]*gitlab[^/]+)\\/(.+?)\\/?$/i)\n  if (match) {\n    const [, base, slug] = match\n    return fetchSourceFactsFromGitLab(base, slug)\n  }\n\n  /* Fallback */\n  return EMPTY\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  defer,\n  filter,\n  finalize,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\nimport { ConsentDefaults } from \"~/components/consent\"\nimport { renderSourceFacts } from \"~/templates\"\n\nimport {\n  Component,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SourceFacts,\n  fetchSourceFacts\n} from \"../facts\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information\n */\nexport interface Source {\n  facts: SourceFacts                   /* Repository facts */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information observable\n */\nlet fetch$: Observable<Source>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch repository information\n *\n * This function tries to read the repository facts from session storage, and\n * if unsuccessful, fetches them from the underlying provider.\n *\n * @param el - Repository information element\n *\n * @returns Repository information observable\n */\nexport function watchSource(\n  el: HTMLAnchorElement\n): Observable<Source> {\n  return fetch$ ||= defer(() => {\n    const cached = __md_get<SourceFacts>(\"__source\", sessionStorage)\n    if (cached) {\n      return of(cached)\n    } else {\n\n      /* Check if consent is configured and was given */\n      const els = getComponentElements(\"consent\")\n      if (els.length) {\n        const consent = __md_get<ConsentDefaults>(\"__consent\")\n        if (!(consent && consent.github))\n          return EMPTY\n      }\n\n      /* Fetch repository facts */\n      return fetchSourceFacts(el.href)\n        .pipe(\n          tap(facts => __md_set(\"__source\", facts, sessionStorage))\n        )\n    }\n  })\n    .pipe(\n      catchError(() => EMPTY),\n      filter(facts => Object.keys(facts).length > 0),\n      map(facts => ({ facts })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount repository information\n *\n * @param el - Repository information element\n *\n * @returns Repository information component observable\n */\nexport function mountSource(\n  el: HTMLAnchorElement\n): Observable<Component<Source>> {\n  const inner = getElement(\":scope > :last-child\", el)\n  return defer(() => {\n    const push$ = new Subject<Source>()\n    push$.subscribe(({ facts }) => {\n      inner.appendChild(renderSourceFacts(facts))\n      inner.classList.add(\"md-source__repository--active\")\n    })\n\n    /* Create and return component */\n    return watchSource(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  watchElementSize,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Navigation tabs\n */\nexport interface Tabs {\n  hidden: boolean                      /* Navigation tabs are hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch navigation tabs\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs observable\n */\nexport function watchTabs(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Tabs> {\n  return watchElementSize(document.body)\n    .pipe(\n      switchMap(() => watchViewportAt(el, { header$, viewport$ })),\n      map(({ offset: { y } }) => {\n        return {\n          hidden: y >= 10\n        }\n      }),\n      distinctUntilKeyChanged(\"hidden\")\n    )\n}\n\n/**\n * Mount navigation tabs\n *\n * This function hides the navigation tabs when scrolling past the threshold\n * and makes them reappear in a nice CSS animation when scrolling back up.\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs component observable\n */\nexport function mountTabs(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Tabs>> {\n  return defer(() => {\n    const push$ = new Subject<Tabs>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ hidden }) {\n        el.hidden = hidden\n      },\n\n      /* Handle complete */\n      complete() {\n        el.hidden = false\n      }\n    })\n\n    /* Create and return component */\n    return (\n      feature(\"navigation.tabs.sticky\")\n        ? of({ hidden: false })\n        : watchTabs(el, options)\n    )\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  bufferCount,\n  combineLatestWith,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  finalize,\n  ignoreElements,\n  map,\n  merge,\n  observeOn,\n  of,\n  repeat,\n  scan,\n  share,\n  skip,\n  startWith,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContainer,\n  getElementSize,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  watchElementSize\n} from \"~/browser\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Table of contents\n */\nexport interface TableOfContents {\n  prev: HTMLAnchorElement[][]          /* Anchors (previous) */\n  next: HTMLAnchorElement[][]          /* Anchors (next) */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch table of contents\n *\n * This is effectively a scroll spy implementation which will account for the\n * fixed header and automatically re-calculate anchor offsets when the viewport\n * is resized. The returned observable will only emit if the table of contents\n * needs to be repainted.\n *\n * This implementation tracks an anchor element's entire path starting from its\n * level up to the top-most anchor element, e.g. `[h3, h2, h1]`. Although the\n * Material theme currently doesn't make use of this information, it enables\n * the styling of the entire hierarchy through customization.\n *\n * Note that the current anchor is the last item of the `prev` anchor list.\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents observable\n */\nexport function watchTableOfContents(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<TableOfContents> {\n  const table = new Map<HTMLAnchorElement, HTMLElement>()\n\n  /* Compute anchor-to-target mapping */\n  const anchors = getElements<HTMLAnchorElement>(\".md-nav__link\", el)\n  for (const anchor of anchors) {\n    const id = decodeURIComponent(anchor.hash.substring(1))\n    const target = getOptionalElement(`[id=\"${id}\"]`)\n    if (typeof target !== \"undefined\")\n      table.set(anchor, target)\n  }\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n      map(({ height }) => {\n        const main = getComponentElement(\"main\")\n        const grid = getElement(\":scope > :first-child\", main)\n        return height + 0.8 * (\n          grid.offsetTop -\n          main.offsetTop\n        )\n      }),\n      share()\n    )\n\n  /* Compute partition of previous and next anchors */\n  const partition$ = watchElementSize(document.body)\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n\n      /* Build index to map anchor paths to vertical offsets */\n      switchMap(body => defer(() => {\n        let path: HTMLAnchorElement[] = []\n        return of([...table].reduce((index, [anchor, target]) => {\n          while (path.length) {\n            const last = table.get(path[path.length - 1])!\n            if (last.tagName >= target.tagName) {\n              path.pop()\n            } else {\n              break\n            }\n          }\n\n          /* If the current anchor is hidden, continue with its parent */\n          let offset = target.offsetTop\n          while (!offset && target.parentElement) {\n            target = target.parentElement\n            offset = target.offsetTop\n          }\n\n          /* Fix anchor offsets in tables - see https://bit.ly/3CUFOcn */\n          let parent = target.offsetParent as HTMLElement\n          for (; parent; parent = parent.offsetParent as HTMLElement)\n            offset += parent.offsetTop\n\n          /* Map reversed anchor path to vertical offset */\n          return index.set(\n            [...path = [...path, anchor]].reverse(),\n            offset\n          )\n        }, new Map<HTMLAnchorElement[], number>()))\n      })\n        .pipe(\n\n          /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */\n          map(index => new Map([...index].sort(([, a], [, b]) => a - b))),\n          combineLatestWith(adjust$),\n\n          /* Re-compute partition when viewport offset changes */\n          switchMap(([index, adjust]) => viewport$\n            .pipe(\n              scan(([prev, next], { offset: { y }, size }) => {\n                const last = y + size.height >= Math.floor(body.height)\n\n                /* Look forward */\n                while (next.length) {\n                  const [, offset] = next[0]\n                  if (offset - adjust < y || last) {\n                    prev = [...prev, next.shift()!]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Look backward */\n                while (prev.length) {\n                  const [, offset] = prev[prev.length - 1]\n                  if (offset - adjust >= y && !last) {\n                    next = [prev.pop()!, ...next]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Return partition */\n                return [prev, next]\n              }, [[], [...index]]),\n              distinctUntilChanged((a, b) => (\n                a[0] === b[0] &&\n                a[1] === b[1]\n              ))\n            )\n          )\n        )\n      )\n    )\n\n  /* Compute and return anchor list migrations */\n  return partition$\n    .pipe(\n      map(([prev, next]) => ({\n        prev: prev.map(([path]) => path),\n        next: next.map(([path]) => path)\n      })),\n\n      /* Extract anchor list migrations */\n      startWith({ prev: [], next: [] }),\n      bufferCount(2, 1),\n      map(([a, b]) => {\n\n        /* Moving down */\n        if (a.prev.length < b.prev.length) {\n          return {\n            prev: b.prev.slice(Math.max(0, a.prev.length - 1), b.prev.length),\n            next: []\n          }\n\n        /* Moving up */\n        } else {\n          return {\n            prev: b.prev.slice(-1),\n            next: b.next.slice(0, b.next.length - a.next.length)\n          }\n        }\n      })\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount table of contents\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents component observable\n */\nexport function mountTableOfContents(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<TableOfContents>> {\n  return defer(() => {\n    const push$ = new Subject<TableOfContents>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe(({ prev, next }) => {\n\n      /* Look forward */\n      for (const [anchor] of next) {\n        anchor.classList.remove(\"md-nav__link--passed\")\n        anchor.classList.remove(\"md-nav__link--active\")\n      }\n\n      /* Look backward */\n      for (const [index, [anchor]] of prev.entries()) {\n        anchor.classList.add(\"md-nav__link--passed\")\n        anchor.classList.toggle(\n          \"md-nav__link--active\",\n          index === prev.length - 1\n        )\n      }\n    })\n\n    /* Set up following, if enabled */\n    if (feature(\"toc.follow\")) {\n\n      /* Toggle smooth scrolling only for anchor clicks */\n      const smooth$ = merge(\n        viewport$.pipe(debounceTime(1), map(() => undefined)),\n        viewport$.pipe(debounceTime(250), map(() => \"smooth\" as const))\n      )\n\n      /* Bring active anchor into view */ // @todo: refactor\n      push$\n        .pipe(\n          filter(({ prev }) => prev.length > 0),\n          combineLatestWith(main$.pipe(observeOn(asyncScheduler))),\n          withLatestFrom(smooth$)\n        )\n          .subscribe(([[{ prev }], behavior]) => {\n            const [anchor] = prev[prev.length - 1]\n            if (anchor.offsetHeight) {\n\n              /* Retrieve overflowing container and scroll */\n              const container = getElementContainer(anchor)\n              if (typeof container !== \"undefined\") {\n                const offset = anchor.offsetTop - container.offsetTop\n                const { height } = getElementSize(container)\n                container.scrollTo({\n                  top: offset - height / 2,\n                  behavior\n                })\n              }\n            }\n          })\n    }\n\n    /* Set up anchor tracking, if enabled */\n    if (feature(\"navigation.tracking\"))\n      viewport$\n        .pipe(\n          takeUntil(done$),\n          distinctUntilKeyChanged(\"offset\"),\n          debounceTime(250),\n          skip(1),\n          takeUntil(target$.pipe(skip(1))),\n          repeat({ delay: 250 }),\n          withLatestFrom(push$)\n        )\n          .subscribe(([, { prev }]) => {\n            const url = getLocation()\n\n            /* Set hash fragment to active anchor */\n            const anchor = prev[prev.length - 1]\n            if (anchor && anchor.length) {\n              const [active] = anchor\n              const { hash } = new URL(active.href)\n              if (url.hash !== hash) {\n                url.hash = hash\n                history.replaceState({}, \"\", `${url}`)\n              }\n\n            /* Reset anchor when at the top */\n            } else {\n              url.hash = \"\"\n              history.replaceState({}, \"\", `${url}`)\n            }\n          })\n\n    /* Create and return component */\n    return watchTableOfContents(el, { viewport$, header$ })\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  repeat,\n  skip,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { Viewport } from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Back-to-top button\n */\nexport interface BackToTop {\n  hidden: boolean                      /* Back-to-top button is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch back-to-top\n *\n * @param _el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top observable\n */\nexport function watchBackToTop(\n  _el: HTMLElement, { viewport$, main$, target$ }: WatchOptions\n): Observable<BackToTop> {\n\n  /* Compute direction */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => a > b && b > 0),\n      distinctUntilChanged()\n    )\n\n  /* Compute whether main area is active */\n  const active$ = main$\n    .pipe(\n      map(({ active }) => active)\n    )\n\n  /* Compute threshold for hiding */\n  return combineLatest([active$, direction$])\n    .pipe(\n      map(([active, direction]) => !(active && direction)),\n      distinctUntilChanged(),\n      takeUntil(target$.pipe(skip(1))),\n      endWith(true),\n      repeat({ delay: 250 }),\n      map(hidden => ({ hidden }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount back-to-top\n *\n * @param el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top component observable\n */\nexport function mountBackToTop(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<BackToTop>> {\n  const push$ = new Subject<BackToTop>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe({\n\n    /* Handle emission */\n    next({ hidden }) {\n      el.hidden = hidden\n      if (hidden) {\n        el.setAttribute(\"tabindex\", \"-1\")\n        el.blur()\n      } else {\n        el.removeAttribute(\"tabindex\")\n      }\n    },\n\n    /* Handle complete */\n    complete() {\n      el.style.top = \"\"\n      el.hidden = true\n      el.removeAttribute(\"tabindex\")\n    }\n  })\n\n  /* Watch header height */\n  header$\n    .pipe(\n      takeUntil(done$),\n      distinctUntilKeyChanged(\"height\")\n    )\n      .subscribe(({ height }) => {\n        el.style.top = `${height + 16}px`\n      })\n\n  /* Go back to top */\n  fromEvent(el, \"click\")\n    .subscribe(ev => {\n      ev.preventDefault()\n      window.scrollTo({ top: 0 })\n    })\n\n  /* Create and return component */\n  return watchBackToTop(el, { viewport$, main$, target$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  finalize,\n  map,\n  mergeMap,\n  skip,\n  switchMap,\n  take,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElements,\n  watchElementVisibility\n} from \"~/browser\"\nimport { mountInlineTooltip2 } from \"~/components/tooltip2\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n  viewport$: Observable<Viewport>      /* Viewport observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch ellipsis\n *\n * This function will fetch all elements that are shortened with ellipsis, and\n * filter those which are visible. Once they become visible, they stay in that\n * state, even though they may be hidden again. This optimization is necessary\n * to reduce pressure on the browser, with elements fading in and out of view.\n *\n * @param options - Options\n */\nexport function patchEllipsis(\n  { document$, viewport$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-ellipsis\")),\n      mergeMap(el => watchElementVisibility(el)\n        .pipe(\n          takeUntil(document$.pipe(skip(1))),\n          filter(visible => visible),\n          map(() => el),\n          take(1)\n        )\n      ),\n      filter(el => el.offsetWidth < el.scrollWidth),\n      mergeMap(el => {\n        const text = el.innerText\n        const host = el.closest(\"a\") || el\n        host.title = text\n\n        /* Mount tooltip */\n        return mountInlineTooltip2(host, { viewport$ })\n          .pipe(\n            takeUntil(document$.pipe(skip(1))),\n            finalize(() => host.removeAttribute(\"title\"))\n          )\n      })\n    )\n      .subscribe()\n\n  // @todo move this outside of here and fix memleaks\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-status\")),\n      mergeMap(el => mountInlineTooltip2(el, { viewport$ }))\n    )\n      .subscribe()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  takeWhile,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch indeterminate checkboxes\n *\n * This function replaces the indeterminate \"pseudo state\" with the actual\n * indeterminate state, which is used to keep navigation always expanded.\n *\n * @param options - Options\n */\nexport function patchIndeterminate(\n  { document$, tablet$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements<HTMLInputElement>(\n        \".md-toggle--indeterminate\"\n      )),\n      tap(el => {\n        el.indeterminate = true\n        el.checked = false\n      }),\n      mergeMap(el => fromEvent(el, \"change\")\n        .pipe(\n          takeWhile(() => el.classList.contains(\"md-toggle--indeterminate\")),\n          map(() => el)\n        )\n      ),\n      withLatestFrom(tablet$)\n    )\n      .subscribe(([el, tablet]) => {\n        el.classList.remove(\"md-toggle--indeterminate\")\n        if (tablet)\n          el.checked = false\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether the given device is an Apple device\n *\n * @returns Test result\n */\nfunction isAppleDevice(): boolean {\n  return /(iPad|iPhone|iPod)/.test(navigator.userAgent)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch all elements with `data-md-scrollfix` attributes\n *\n * This is a year-old patch which ensures that overflow scrolling works at the\n * top and bottom of containers on iOS by ensuring a `1px` scroll offset upon\n * the start of a touch event.\n *\n * @see https://bit.ly/2SCtAOO - Original source\n *\n * @param options - Options\n */\nexport function patchScrollfix(\n  { document$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\"[data-md-scrollfix]\")),\n      tap(el => el.removeAttribute(\"data-md-scrollfix\")),\n      filter(isAppleDevice),\n      mergeMap(el => fromEvent(el, \"touchstart\")\n        .pipe(\n          map(() => el)\n        )\n      )\n    )\n      .subscribe(el => {\n        const top = el.scrollTop\n\n        /* We're at the top of the container */\n        if (top === 0) {\n          el.scrollTop = 1\n\n        /* We're at the bottom of the container */\n        } else if (top + el.offsetHeight === el.scrollHeight) {\n          el.scrollTop = top - 1\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  delay,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchToggle\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch the document body to lock when search is open\n *\n * For mobile and tablet viewports, the search is rendered full screen, which\n * leads to scroll leaking when at the top or bottom of the search result. This\n * function locks the body when the search is in full screen mode, and restores\n * the scroll position when leaving.\n *\n * @param options - Options\n */\nexport function patchScrolllock(\n  { viewport$, tablet$ }: PatchOptions\n): void {\n  combineLatest([watchToggle(\"search\"), tablet$])\n    .pipe(\n      map(([active, tablet]) => active && !tablet),\n      switchMap(active => of(active)\n        .pipe(\n          delay(active ? 400 : 100)\n        )\n      ),\n      withLatestFrom(viewport$)\n    )\n      .subscribe(([active, { offset: { y }}]) => {\n        if (active) {\n          document.body.setAttribute(\"data-md-scrolllock\", \"\")\n          document.body.style.top = `-${y}px`\n        } else {\n          const value = -1 * parseInt(document.body.style.top, 10)\n          document.body.removeAttribute(\"data-md-scrolllock\")\n          document.body.style.top = \"\"\n          if (value)\n            window.scrollTo(0, value)\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Polyfills\n * ------------------------------------------------------------------------- */\n\n/* Polyfill `Object.entries` */\nif (!Object.entries)\n  Object.entries = function (obj: object) {\n    const data: [string, string][] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push([key, obj[key]])\n\n    /* Return entries */\n    return data\n  }\n\n/* Polyfill `Object.values` */\nif (!Object.values)\n  Object.values = function (obj: object) {\n    const data: string[] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push(obj[key])\n\n    /* Return values */\n    return data\n  }\n\n/* ------------------------------------------------------------------------- */\n\n/* Polyfills for `Element` */\nif (typeof Element !== \"undefined\") {\n\n  /* Polyfill `Element.scrollTo` */\n  if (!Element.prototype.scrollTo)\n    Element.prototype.scrollTo = function (\n      x?: ScrollToOptions | number, y?: number\n    ): void {\n      if (typeof x === \"object\") {\n        this.scrollLeft = x.left!\n        this.scrollTop = x.top!\n      } else {\n        this.scrollLeft = x!\n        this.scrollTop = y!\n      }\n    }\n\n  /* Polyfill `Element.replaceWith` */\n  if (!Element.prototype.replaceWith)\n    Element.prototype.replaceWith = function (\n      ...nodes: Array<string | Node>\n    ): void {\n      const parent = this.parentNode\n      if (parent) {\n        if (nodes.length === 0)\n          parent.removeChild(this)\n\n        /* Replace children and create text nodes */\n        for (let i = nodes.length - 1; i >= 0; i--) {\n          let node = nodes[i]\n          if (typeof node === \"string\")\n            node = document.createTextNode(node)\n          else if (node.parentNode)\n            node.parentNode.removeChild(node)\n\n          /* Replace child or insert before previous sibling */\n          if (!i)\n            parent.replaceChild(node, this)\n          else\n            parent.insertBefore(this.previousSibling!, node)\n        }\n      }\n    }\n}\n"],
+  "mappings": "2rCAAA,IAAAA,GAAAC,GAAA,CAAAC,GAAAC,KAAA,EAAC,SAAUC,EAAQC,EAAS,CAC1B,OAAOH,IAAY,UAAY,OAAOC,IAAW,YAAcE,EAAQ,EACvE,OAAO,QAAW,YAAc,OAAO,IAAM,OAAOA,CAAO,EAC1DA,EAAQ,CACX,GAAEH,GAAO,UAAY,CAAE,aASrB,SAASI,EAA0BC,EAAO,CACxC,IAAIC,EAAmB,GACnBC,EAA0B,GAC1BC,EAAiC,KAEjCC,EAAsB,CACxB,KAAM,GACN,OAAQ,GACR,IAAK,GACL,IAAK,GACL,MAAO,GACP,SAAU,GACV,OAAQ,GACR,KAAM,GACN,MAAO,GACP,KAAM,GACN,KAAM,GACN,SAAU,GACV,iBAAkB,EACpB,EAOA,SAASC,EAAmBC,EAAI,CAC9B,MACE,GAAAA,GACAA,IAAO,UACPA,EAAG,WAAa,QAChBA,EAAG,WAAa,QAChB,cAAeA,GACf,aAAcA,EAAG,UAKrB,CASA,SAASC,EAA8BD,EAAI,CACzC,IAAIE,GAAOF,EAAG,KACVG,GAAUH,EAAG,QAUjB,MARI,GAAAG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ardEvent", "hadFocusVisibleRecently", "hadFocusVisibleRecentlyTimeout", "inputTypesAllowlist", "isValidFocusTarget", "el", "focusTriggersKeyboardModality", "type", "tagName", "addFocusVisibleClass", "removeFocusVisibleClass", "onKeyDown", "e", "onPointerDown", "onFocus", "onBlur", "onVisibilityChange", "addInitialPointerMoveListeners", "onInitialPointerMove", "removeInitialPointerMoveListeners", "event", "error", "require_clipboard", "__commonJSMin", "exports", "module", "root", "factory", "__webpack_modules__", "__unused_webpack_module", "__webpack_exports__", "__webpack_require__", "clipboard", "tiny_emitter", "tiny_emitter_default", "listen", "listen_default", "src_select", "select_default", "command", "type", "err", "ClipboardActionCut", "target", "selectedText", "actions_cut", "createFakeElement", "value", "isRTL", "fakeElement", "yPosition", "fakeCopyAction", "options", "ClipboardActionCopy", "actions_copy", "_typeof", "obj", "ClipboardActionDefault", "_options$action", "action", "container", "text", "actions_default", "clipboard_typeof", "_classCallCheck", "instance", "Constructor", "_defineProperties", "props", "i", "descriptor", "_createClass", "protoProps", "staticProps", "_inherits", "subClass", "superClass", "_setPrototypeOf", "o", "p", "_createSuper", "Derived", "hasNativeReflectConstruct", "_isNativeReflectConstruct", "Super", "_getPrototypeOf", "result", "NewTarget", "_possibleConstructorReturn", "self", "call", "_assertThisInitialized", "e", "getAttributeValue", "suffix", "element", "attribute", "Clipboard", "_Emitter", "_super", "trigger", "_this", "_this2", "selector", "actions", "support", "DOCUMENT_NODE_TYPE", "proto", "closest", "__unused_webpack_exports", "_delegate", "callback", "useCapture", "listenerFn", "listener", "delegate", "elements", "is", "listenNode", "listenNodeList", "listenSelector", "node", "nodeList", "select", "isReadOnly", "selection", "range", "E", "name", "ctx", "data", "evtArr", "len", "evts", "liveEvents", "__webpack_module_cache__", "moduleId", "getter", "definition", "key", "prop", "require_escape_html", "__commonJSMin", "exports", "module", "matchHtmlRegExp", "escapeHtml", "string", "str", "match", "escape", "html", "index", "lastIndex", "import_focus_visible", "extendStatics", "d", "b", "p", "__extends", "__", "__awaiter", "thisArg", "_arguments", "P", "generator", "adopt", "value", "resolve", "reject", "fulfilled", "step", "e", "rejected", "result", "__generator", "body", "_", "t", "f", "y", "g", "verb", "n", "v", "op", "__values", "o", "s", "m", "i", "__read", "n", "r", "ar", "e", "error", "__spreadArray", "to", "from", "pack", "i", "l", "ar", "__await", "v", "__asyncGenerator", "thisArg", "_arguments", "generator", "g", "q", "verb", "n", "a", "b", "resume", "step", "e", "settle", "r", "fulfill", "reject", "value", "f", "__asyncValues", "o", "m", "i", "__values", "verb", "n", "v", "resolve", "reject", "settle", "d", "isFunction", "value", "createErrorClass", "createImpl", "_super", "instance", "ctorFunc", "UnsubscriptionError", "createErrorClass", "_super", "errors", "err", "i", "arrRemove", "arr", "item", "index", "Subscription", "initialTeardown", "errors", "_parentage", "_parentage_1", "__values", "_parentage_1_1", "parent_1", "initialFinalizer", "isFunction", "e", "UnsubscriptionError", "_finalizers", "_finalizers_1", "_finalizers_1_1", "finalizer", "execFinalizer", "err", "__spreadArray", "__read", "teardown", "_a", "parent", "arrRemove", "empty", "EMPTY_SUBSCRIPTION", "Subscription", "isSubscription", "value", "isFunction", "execFinalizer", "finalizer", "config", "timeoutProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "reportUnhandledError", "err", "timeoutProvider", "onUnhandledError", "config", "noop", "COMPLETE_NOTIFICATION", "createNotification", "errorNotification", "error", "nextNotification", "value", "kind", "context", "errorContext", "cb", "config", "isRoot", "_a", "errorThrown", "error", "captureError", "err", "Subscriber", "_super", "__extends", "destination", "_this", "isSubscription", "EMPTY_OBSERVER", "next", "error", "complete", "SafeSubscriber", "value", "handleStoppedNotification", "nextNotification", "err", "errorNotification", "COMPLETE_NOTIFICATION", "Subscription", "_bind", "bind", "fn", "thisArg", "ConsumerObserver", "partialObserver", "value", "error", "handleUnhandledError", "err", "SafeSubscriber", "_super", "__extends", "observerOrNext", "complete", "_this", "isFunction", "context_1", "config", "Subscriber", "handleUnhandledError", "error", "config", "captureError", "reportUnhandledError", "defaultErrorHandler", "err", "handleStoppedNotification", "notification", "subscriber", "onStoppedNotification", "timeoutProvider", "EMPTY_OBSERVER", "noop", "observable", "identity", "x", "pipe", "fns", "_i", "pipeFromArray", "identity", "input", "prev", "fn", "Observable", "subscribe", "operator", "observable", "observerOrNext", "error", "complete", "_this", "subscriber", "isSubscriber", "SafeSubscriber", "errorContext", "_a", "source", "sink", "err", "next", "promiseCtor", "getPromiseCtor", "resolve", "reject", "value", "operations", "_i", "pipeFromArray", "x", "getPromiseCtor", "promiseCtor", "_a", "config", "isObserver", "value", "isFunction", "isSubscriber", "Subscriber", "isSubscription", "hasLift", "source", "isFunction", "operate", "init", "liftedSource", "err", "createOperatorSubscriber", "destination", "onNext", "onComplete", "onError", "onFinalize", "OperatorSubscriber", "_super", "__extends", "shouldUnsubscribe", "_this", "value", "err", "closed_1", "_a", "Subscriber", "animationFrameProvider", "callback", "request", "cancel", "delegate", "handle", "timestamp", "Subscription", "args", "_i", "__spreadArray", "__read", "ObjectUnsubscribedError", "createErrorClass", "_super", "Subject", "_super", "__extends", "_this", "operator", "subject", "AnonymousSubject", "ObjectUnsubscribedError", "value", "errorContext", "_b", "__values", "_c", "observer", "err", "observers", "_a", "subscriber", "hasError", "isStopped", "EMPTY_SUBSCRIPTION", "Subscription", "arrRemove", "thrownError", "observable", "Observable", "destination", "source", "AnonymousSubject", "_super", "__extends", "destination", "source", "_this", "value", "_b", "_a", "err", "subscriber", "EMPTY_SUBSCRIPTION", "Subject", "BehaviorSubject", "_super", "__extends", "_value", "_this", "subscriber", "subscription", "_a", "hasError", "thrownError", "value", "Subject", "dateTimestampProvider", "ReplaySubject", "_super", "__extends", "_bufferSize", "_windowTime", "_timestampProvider", "dateTimestampProvider", "_this", "value", "_a", "isStopped", "_buffer", "_infiniteTimeWindow", "subscriber", "subscription", "copy", "i", "adjustedBufferSize", "now", "last", "Subject", "Action", "_super", "__extends", "scheduler", "work", "state", "delay", "Subscription", "intervalProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "AsyncAction", "_super", "__extends", "scheduler", "work", "_this", "state", "delay", "id", "_a", "_id", "intervalProvider", "_scheduler", "error", "_delay", "errored", "errorValue", "e", "actions", "arrRemove", "Action", "Scheduler", "schedulerActionCtor", "now", "work", "delay", "state", "dateTimestampProvider", "AsyncScheduler", "_super", "__extends", "SchedulerAction", "now", "Scheduler", "_this", "action", "actions", "error", "asyncScheduler", "AsyncScheduler", "AsyncAction", "async", "QueueAction", "_super", "__extends", "scheduler", "work", "_this", "state", "delay", "id", "AsyncAction", "QueueScheduler", "_super", "__extends", "AsyncScheduler", "queueScheduler", "QueueScheduler", "QueueAction", "AnimationFrameAction", "_super", "__extends", "scheduler", "work", "_this", "id", "delay", "animationFrameProvider", "actions", "_a", "AsyncAction", "AnimationFrameScheduler", "_super", "__extends", "action", "flushId", "actions", "error", "AsyncScheduler", "animationFrameScheduler", "AnimationFrameScheduler", "AnimationFrameAction", "EMPTY", "Observable", "subscriber", "isScheduler", "value", "isFunction", "last", "arr", "popResultSelector", "args", "isFunction", "popScheduler", "isScheduler", "popNumber", "defaultValue", "isArrayLike", "x", "isPromise", "value", "isFunction", "isInteropObservable", "input", "isFunction", "observable", "isAsyncIterable", "obj", "isFunction", "createInvalidObservableTypeError", "input", "getSymbolIterator", "iterator", "isIterable", "input", "isFunction", "iterator", "readableStreamLikeToAsyncGenerator", "readableStream", "reader", "__await", "_a", "_b", "value", "done", "isReadableStreamLike", "obj", "isFunction", "innerFrom", "input", "Observable", "isInteropObservable", "fromInteropObservable", "isArrayLike", "fromArrayLike", "isPromise", "fromPromise", "isAsyncIterable", "fromAsyncIterable", "isIterable", "fromIterable", "isReadableStreamLike", "fromReadableStreamLike", "createInvalidObservableTypeError", "obj", "subscriber", "obs", "observable", "isFunction", "array", "i", "promise", "value", "err", "reportUnhandledError", "iterable", "iterable_1", "__values", "iterable_1_1", "asyncIterable", "process", "readableStream", "readableStreamLikeToAsyncGenerator", "asyncIterable_1", "__asyncValues", "asyncIterable_1_1", "executeSchedule", "parentSubscription", "scheduler", "work", "delay", "repeat", "scheduleSubscription", "observeOn", "scheduler", "delay", "operate", "source", "subscriber", "createOperatorSubscriber", "value", "executeSchedule", "err", "subscribeOn", "scheduler", "delay", "operate", "source", "subscriber", "scheduleObservable", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "schedulePromise", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "scheduleArray", "input", "scheduler", "Observable", "subscriber", "i", "scheduleIterable", "input", "scheduler", "Observable", "subscriber", "iterator", "executeSchedule", "value", "done", "_a", "err", "isFunction", "scheduleAsyncIterable", "input", "scheduler", "Observable", "subscriber", "executeSchedule", "iterator", "result", "scheduleReadableStreamLike", "input", "scheduler", "scheduleAsyncIterable", "readableStreamLikeToAsyncGenerator", "scheduled", "input", "scheduler", "isInteropObservable", "scheduleObservable", "isArrayLike", "scheduleArray", "isPromise", "schedulePromise", "isAsyncIterable", "scheduleAsyncIterable", "isIterable", "scheduleIterable", "isReadableStreamLike", "scheduleReadableStreamLike", "createInvalidObservableTypeError", "from", "input", "scheduler", "scheduled", "innerFrom", "of", "args", "_i", "scheduler", "popScheduler", "from", "throwError", "errorOrErrorFactory", "scheduler", "errorFactory", "isFunction", "init", "subscriber", "Observable", "EmptyError", "createErrorClass", "_super", "isValidDate", "value", "map", "project", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "isArray", "callOrApply", "fn", "args", "__spreadArray", "__read", "mapOneOrManyArgs", "map", "isArray", "getPrototypeOf", "objectProto", "getKeys", "argsArgArrayOrObject", "args", "first_1", "isPOJO", "keys", "key", "obj", "createObject", "keys", "values", "result", "key", "i", "combineLatest", "args", "_i", "scheduler", "popScheduler", "resultSelector", "popResultSelector", "_a", "argsArgArrayOrObject", "observables", "keys", "from", "result", "Observable", "combineLatestInit", "values", "createObject", "identity", "mapOneOrManyArgs", "valueTransform", "subscriber", "maybeSchedule", "length", "active", "remainingFirstValues", "i", "source", "hasFirstValue", "createOperatorSubscriber", "value", "execute", "subscription", "executeSchedule", "mergeInternals", "source", "subscriber", "project", "concurrent", "onBeforeNext", "expand", "innerSubScheduler", "additionalFinalizer", "buffer", "active", "index", "isComplete", "checkComplete", "outerNext", "value", "doInnerSub", "innerComplete", "innerFrom", "createOperatorSubscriber", "innerValue", "bufferedValue", "executeSchedule", "err", "mergeMap", "project", "resultSelector", "concurrent", "isFunction", "a", "i", "map", "b", "ii", "innerFrom", "operate", "source", "subscriber", "mergeInternals", "mergeAll", "concurrent", "mergeMap", "identity", "concatAll", "mergeAll", "concat", "args", "_i", "concatAll", "from", "popScheduler", "defer", "observableFactory", "Observable", "subscriber", "innerFrom", "nodeEventEmitterMethods", "eventTargetMethods", "jqueryMethods", "fromEvent", "target", "eventName", "options", "resultSelector", "isFunction", "mapOneOrManyArgs", "_a", "__read", "isEventTarget", "methodName", "handler", "isNodeStyleEventEmitter", "toCommonHandlerRegistry", "isJQueryStyleEventEmitter", "add", "remove", "isArrayLike", "mergeMap", "subTarget", "innerFrom", "Observable", "subscriber", "args", "_i", "fromEventPattern", "addHandler", "removeHandler", "resultSelector", "mapOneOrManyArgs", "Observable", "subscriber", "handler", "e", "_i", "retValue", "isFunction", "timer", "dueTime", "intervalOrScheduler", "scheduler", "async", "intervalDuration", "isScheduler", "Observable", "subscriber", "due", "isValidDate", "n", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "sources", "innerFrom", "mergeAll", "from", "EMPTY", "NEVER", "Observable", "noop", "isArray", "argsOrArgArray", "args", "filter", "predicate", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "zip", "args", "_i", "resultSelector", "popResultSelector", "sources", "argsOrArgArray", "Observable", "subscriber", "buffers", "completed", "sourceIndex", "innerFrom", "createOperatorSubscriber", "value", "buffer", "result", "__spreadArray", "__read", "i", "EMPTY", "audit", "durationSelector", "operate", "source", "subscriber", "hasValue", "lastValue", "durationSubscriber", "isComplete", "endDuration", "value", "cleanupDuration", "createOperatorSubscriber", "innerFrom", "auditTime", "duration", "scheduler", "asyncScheduler", "audit", "timer", "bufferCount", "bufferSize", "startBufferEvery", "operate", "source", "subscriber", "buffers", "count", "createOperatorSubscriber", "value", "toEmit", "buffers_1", "__values", "buffers_1_1", "buffer", "toEmit_1", "toEmit_1_1", "arrRemove", "buffers_2", "buffers_2_1", "catchError", "selector", "operate", "source", "subscriber", "innerSub", "syncUnsub", "handledResult", "createOperatorSubscriber", "err", "innerFrom", "scanInternals", "accumulator", "seed", "hasSeed", "emitOnNext", "emitBeforeComplete", "source", "subscriber", "hasState", "state", "index", "createOperatorSubscriber", "value", "i", "combineLatest", "args", "_i", "resultSelector", "popResultSelector", "pipe", "__spreadArray", "__read", "mapOneOrManyArgs", "operate", "source", "subscriber", "combineLatestInit", "argsOrArgArray", "combineLatestWith", "otherSources", "_i", "combineLatest", "__spreadArray", "__read", "debounce", "durationSelector", "operate", "source", "subscriber", "hasValue", "lastValue", "durationSubscriber", "emit", "value", "createOperatorSubscriber", "noop", "innerFrom", "debounceTime", "dueTime", "scheduler", "asyncScheduler", "operate", "source", "subscriber", "activeTask", "lastValue", "lastTime", "emit", "value", "emitWhenIdle", "targetTime", "now", "createOperatorSubscriber", "defaultIfEmpty", "defaultValue", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "take", "count", "EMPTY", "operate", "source", "subscriber", "seen", "createOperatorSubscriber", "value", "ignoreElements", "operate", "source", "subscriber", "createOperatorSubscriber", "noop", "mapTo", "value", "map", "delayWhen", "delayDurationSelector", "subscriptionDelay", "source", "concat", "take", "ignoreElements", "mergeMap", "value", "index", "innerFrom", "mapTo", "delay", "due", "scheduler", "asyncScheduler", "duration", "timer", "delayWhen", "distinctUntilChanged", "comparator", "keySelector", "identity", "defaultCompare", "operate", "source", "subscriber", "previousKey", "first", "createOperatorSubscriber", "value", "currentKey", "a", "b", "distinctUntilKeyChanged", "key", "compare", "distinctUntilChanged", "x", "y", "throwIfEmpty", "errorFactory", "defaultErrorFactory", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "EmptyError", "endWith", "values", "_i", "source", "concat", "of", "__spreadArray", "__read", "finalize", "callback", "operate", "source", "subscriber", "first", "predicate", "defaultValue", "hasDefaultValue", "source", "filter", "v", "identity", "take", "defaultIfEmpty", "throwIfEmpty", "EmptyError", "takeLast", "count", "EMPTY", "operate", "source", "subscriber", "buffer", "createOperatorSubscriber", "value", "buffer_1", "__values", "buffer_1_1", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "argsOrArgArray", "operate", "source", "subscriber", "mergeAll", "from", "__spreadArray", "__read", "mergeWith", "otherSources", "_i", "merge", "__spreadArray", "__read", "repeat", "countOrConfig", "count", "delay", "_a", "EMPTY", "operate", "source", "subscriber", "soFar", "sourceSub", "resubscribe", "notifier", "timer", "innerFrom", "notifierSubscriber_1", "createOperatorSubscriber", "subscribeToSource", "syncUnsub", "scan", "accumulator", "seed", "operate", "scanInternals", "share", "options", "_a", "connector", "Subject", "_b", "resetOnError", "_c", "resetOnComplete", "_d", "resetOnRefCountZero", "wrapperSource", "connection", "resetConnection", "subject", "refCount", "hasCompleted", "hasErrored", "cancelReset", "reset", "resetAndUnsubscribe", "conn", "operate", "source", "subscriber", "dest", "handleReset", "SafeSubscriber", "value", "err", "innerFrom", "on", "args", "_i", "onSubscriber", "__spreadArray", "__read", "shareReplay", "configOrBufferSize", "windowTime", "scheduler", "bufferSize", "refCount", "_a", "_b", "_c", "share", "ReplaySubject", "skip", "count", "filter", "_", "index", "skipUntil", "notifier", "operate", "source", "subscriber", "taking", "skipSubscriber", "createOperatorSubscriber", "noop", "innerFrom", "value", "startWith", "values", "_i", "scheduler", "popScheduler", "operate", "source", "subscriber", "concat", "switchMap", "project", "resultSelector", "operate", "source", "subscriber", "innerSubscriber", "index", "isComplete", "checkComplete", "createOperatorSubscriber", "value", "innerIndex", "outerIndex", "innerFrom", "innerValue", "takeUntil", "notifier", "operate", "source", "subscriber", "innerFrom", "createOperatorSubscriber", "noop", "takeWhile", "predicate", "inclusive", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "result", "tap", "observerOrNext", "error", "complete", "tapObserver", "isFunction", "operate", "source", "subscriber", "_a", "isUnsub", "createOperatorSubscriber", "value", "err", "_b", "identity", "throttle", "durationSelector", "config", "operate", "source", "subscriber", "_a", "_b", "leading", "_c", "trailing", "hasValue", "sendValue", "throttled", "isComplete", "endThrottling", "send", "cleanupThrottling", "startThrottle", "value", "innerFrom", "createOperatorSubscriber", "throttleTime", "duration", "scheduler", "config", "asyncScheduler", "duration$", "timer", "throttle", "withLatestFrom", "inputs", "_i", "project", "popResultSelector", "operate", "source", "subscriber", "len", "otherValues", "hasValue", "ready", "i", "innerFrom", "createOperatorSubscriber", "value", "identity", "noop", "values", "__spreadArray", "__read", "zip", "sources", "_i", "operate", "source", "subscriber", "__spreadArray", "__read", "zipWith", "otherInputs", "_i", "zip", "__spreadArray", "__read", "watchDocument", "document$", "ReplaySubject", "fromEvent", "getElements", "selector", "node", "getElement", "el", "getOptionalElement", "getActiveElement", "_a", "_b", "_c", "_d", "observer$", "merge", "fromEvent", "debounceTime", "startWith", "map", "getActiveElement", "shareReplay", "watchElementFocus", "el", "active", "distinctUntilChanged", "watchElementHover", "el", "timeout", "defer", "merge", "fromEvent", "map", "debounce", "active", "timer", "identity", "startWith", "appendChild", "el", "child", "node", "h", "tag", "attributes", "children", "attr", "round", "value", "digits", "watchScript", "src", "script", "h", "defer", "merge", "fromEvent", "switchMap", "throwError", "map", "finalize", "take", "entry$", "Subject", "observer$", "defer", "watchScript", "of", "map", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "getElementSize", "el", "watchElementSize", "target", "tap", "filter", "startWith", "getElementContentSize", "el", "getElementContainer", "parent", "getElementContainers", "containers", "getElementOffset", "el", "getElementOffsetAbsolute", "rect", "watchElementOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "getElementContentOffset", "el", "watchElementContentOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "entry$", "Subject", "observer$", "defer", "of", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "watchElementVisibility", "el", "tap", "filter", "target", "map", "isIntersecting", "watchElementBoundary", "threshold", "watchElementContentOffset", "y", "visible", "getElementSize", "content", "getElementContentSize", "distinctUntilChanged", "toggles", "getElement", "getToggle", "name", "setToggle", "value", "watchToggle", "el", "fromEvent", "map", "startWith", "isSusceptibleToKeyboard", "el", "type", "watchComposition", "merge", "fromEvent", "map", "startWith", "watchKeyboard", "keyboard$", "filter", "ev", "getToggle", "mode", "active", "getActiveElement", "share", "switchMap", "EMPTY", "getLocation", "setLocation", "url", "navigate", "feature", "el", "h", "watchLocation", "Subject", "getLocationHash", "setLocationHash", "hash", "el", "h", "ev", "watchLocationHash", "location$", "merge", "fromEvent", "map", "startWith", "filter", "shareReplay", "watchLocationTarget", "id", "getOptionalElement", "watchMedia", "query", "media", "fromEventPattern", "next", "startWith", "watchPrint", "merge", "fromEvent", "map", "at", "query$", "factory", "switchMap", "active", "EMPTY", "request", "url", "options", "Observable", "observer", "req", "event", "_a", "length", "requestJSON", "switchMap", "res", "map", "body", "shareReplay", "requestHTML", "dom", "requestXML", "getViewportOffset", "watchViewportOffset", "merge", "fromEvent", "map", "startWith", "getViewportSize", "watchViewportSize", "fromEvent", "map", "startWith", "watchViewport", "combineLatest", "watchViewportOffset", "watchViewportSize", "map", "offset", "size", "shareReplay", "watchViewportAt", "el", "viewport$", "header$", "size$", "distinctUntilKeyChanged", "offset$", "combineLatest", "map", "getElementOffset", "height", "offset", "size", "x", "y", "recv", "worker", "fromEvent", "ev", "send", "send$", "Subject", "data", "watchWorker", "url", "recv$", "worker$", "done$", "ignoreElements", "endWith", "mergeWith", "takeUntil", "share", "script", "getElement", "config", "getLocation", "configuration", "feature", "flag", "translation", "key", "value", "getComponentElement", "type", "node", "getElement", "getComponentElements", "getElements", "watchAnnounce", "el", "button", "getElement", "fromEvent", "map", "content", "mountAnnounce", "feature", "EMPTY", "defer", "push$", "Subject", "hash", "tap", "state", "finalize", "__spreadValues", "watchConsent", "el", "target$", "map", "target", "mountConsent", "options", "internal$", "Subject", "hidden", "tap", "state", "finalize", "__spreadValues", "renderTooltip", "id", "style", "h", "renderInlineTooltip2", "children", "renderAnnotation", "id", "prefix", "anchor", "h", "renderTooltip", "renderClipboardButton", "id", "h", "translation", "renderSearchDocument", "document", "flag", "parent", "teaser", "missing", "key", "list", "h", "config", "configuration", "url", "feature", "match", "highlight", "value", "tags", "tag", "type", "translation", "renderSearchResultItem", "result", "threshold", "docs", "doc", "article", "index", "best", "more", "children", "section", "renderSourceFacts", "facts", "h", "key", "value", "round", "renderTabbedControl", "type", "classes", "h", "renderTable", "table", "h", "renderVersion", "version", "config", "configuration", "url", "h", "renderVersionSelector", "versions", "active", "_a", "translation", "sequence", "watchTooltip2", "el", "active$", "combineLatest", "watchElementFocus", "watchElementHover", "map", "focus", "hover", "distinctUntilChanged", "offset$", "defer", "getElementContainers", "mergeMap", "watchElementContentOffset", "throttleTime", "getElementOffsetAbsolute", "first", "active", "switchMap", "offset", "share", "mountTooltip2", "dependencies", "content$", "viewport$", "id", "push$", "Subject", "show$", "BehaviorSubject", "ignoreElements", "endWith", "node$", "debounce", "timer", "queueScheduler", "EMPTY", "tap", "node", "startWith", "states", "origin$", "filter", "withLatestFrom", "_", "size", "host", "x", "height", "getElementSize", "origin", "getElement", "observeOn", "animationFrameScheduler", "state", "finalize", "__spreadValues", "mountInlineTooltip2", "container", "Observable", "observer", "title", "renderInlineTooltip2", "watchAnnotation", "el", "container", "offset$", "defer", "combineLatest", "watchElementOffset", "watchElementContentOffset", "map", "x", "y", "scroll", "width", "height", "getElementSize", "watchElementFocus", "switchMap", "active", "offset", "take", "mountAnnotation", "target$", "tooltip", "index", "push$", "Subject", "done$", "ignoreElements", "endWith", "watchElementVisibility", "takeUntil", "visible", "merge", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "fromEvent", "ev", "withLatestFrom", "_a", "parent", "getActiveElement", "target", "delay", "tap", "state", "finalize", "__spreadValues", "findHosts", "container", "getElements", "findMarkers", "markers", "el", "nodes", "it", "node", "text", "match", "id", "force", "marker", "swap", "source", "target", "mountAnnotationList", "target$", "print$", "parent", "prefix", "annotations", "getOptionalElement", "renderAnnotation", "EMPTY", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "pairs", "annotation", "getElement", "takeUntil", "active", "inner", "child", "merge", "mountAnnotation", "finalize", "share", "findList", "el", "sibling", "mountAnnotationBlock", "options", "defer", "list", "mountAnnotationList", "EMPTY", "import_clipboard", "sequence", "findCandidateList", "el", "sibling", "watchCodeBlock", "watchElementSize", "map", "width", "getElementContentSize", "distinctUntilKeyChanged", "mountCodeBlock", "options", "hover", "factory$", "defer", "push$", "Subject", "done$", "takeLast", "scrollable", "content$", "ClipboardJS", "feature", "parent", "button", "renderClipboardButton", "mountInlineTooltip2", "container", "list", "annotations$", "mountAnnotationList", "takeUntil", "height", "distinctUntilChanged", "switchMap", "active", "EMPTY", "getElements", "tap", "state", "finalize", "__spreadValues", "mergeWith", "watchElementVisibility", "filter", "visible", "take", "watchDetails", "el", "target$", "print$", "open", "merge", "map", "target", "filter", "details", "active", "tap", "mountDetails", "options", "defer", "push$", "Subject", "action", "reveal", "state", "finalize", "__spreadValues", "mermaid_default", "mermaid$", "sequence", "fetchScripts", "watchScript", "of", "mountMermaid", "el", "tap", "mermaid_default", "map", "shareReplay", "__async", "id", "host", "h", "text", "svg", "fn", "shadow", "sentinel", "h", "mountDataTable", "el", "renderTable", "of", "watchContentTabs", "inputs", "initial", "input", "merge", "fromEvent", "map", "getElement", "startWith", "active", "mountContentTabs", "el", "viewport$", "target$", "container", "getElements", "prev", "renderTabbedControl", "next", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatest", "watchElementSize", "takeUntil", "auditTime", "animationFrameScheduler", "size", "offset", "getElementOffset", "width", "getElementSize", "content", "getElementContentOffset", "watchElementContentOffset", "getElementContentSize", "direction", "filter", "label", "h", "ev", "tap", "feature", "skip", "withLatestFrom", "tab", "y", "set", "tabs", "media", "watchElementVisibility", "switchMap", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "mountContent", "el", "viewport$", "target$", "print$", "merge", "getElements", "child", "mountAnnotationBlock", "mountCodeBlock", "mountMermaid", "mountDataTable", "mountDetails", "mountContentTabs", "feature", "mountInlineTooltip2", "watchDialog", "_el", "alert$", "switchMap", "message", "merge", "of", "delay", "map", "active", "mountDialog", "el", "options", "inner", "getElement", "defer", "push$", "Subject", "tap", "state", "finalize", "__spreadValues", "sequence", "watchTooltip", "el", "host", "width", "getElementSize", "container", "getElementContainer", "scroll$", "watchElementContentOffset", "of", "active$", "merge", "watchElementFocus", "watchElementHover", "distinctUntilChanged", "combineLatest", "map", "active", "scroll", "x", "y", "getElementOffset", "size", "table", "mountTooltip", "title", "EMPTY", "id", "tooltip", "renderTooltip", "typeset", "getElement", "defer", "push$", "Subject", "offset", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "tap", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "isHidden", "viewport$", "feature", "of", "direction$", "map", "y", "bufferCount", "a", "b", "distinctUntilKeyChanged", "hidden$", "combineLatest", "filter", "offset", "direction", "distinctUntilChanged", "search$", "watchToggle", "search", "switchMap", "active", "startWith", "watchHeader", "el", "options", "defer", "watchElementSize", "height", "hidden", "shareReplay", "mountHeader", "header$", "main$", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatestWith", "tooltips", "from", "getElements", "mergeMap", "child", "mountTooltip", "takeUntil", "state", "__spreadValues", "mergeWith", "watchHeaderTitle", "el", "viewport$", "header$", "watchViewportAt", "map", "y", "height", "getElementSize", "distinctUntilKeyChanged", "mountHeaderTitle", "options", "defer", "push$", "Subject", "active", "heading", "getOptionalElement", "EMPTY", "tap", "state", "finalize", "__spreadValues", "watchMain", "el", "viewport$", "header$", "adjust$", "map", "height", "distinctUntilChanged", "border$", "switchMap", "watchElementSize", "distinctUntilKeyChanged", "combineLatest", "header", "top", "bottom", "y", "a", "b", "watchPalette", "inputs", "current", "input", "index", "of", "mergeMap", "fromEvent", "map", "startWith", "shareReplay", "mountPalette", "el", "getElements", "meta", "h", "scheme", "media$", "watchMedia", "defer", "push$", "Subject", "palette", "media", "key", "value", "label", "filter", "ev", "withLatestFrom", "_", "header", "getComponentElement", "style", "color", "observeOn", "asyncScheduler", "takeUntil", "skip", "repeat", "tap", "state", "finalize", "__spreadValues", "mountProgress", "el", "progress$", "defer", "push$", "Subject", "value", "tap", "finalize", "map", "import_clipboard", "extract", "el", "copy", "text", "setupClipboardJS", "alert$", "ClipboardJS", "Observable", "subscriber", "getElement", "ev", "tap", "map", "translation", "resolve", "url", "base", "extract", "document", "sitemap", "el", "getElements", "getElement", "links", "link", "href", "fetchSitemap", "requestXML", "map", "catchError", "of", "handle", "ev", "sitemap", "EMPTY", "el", "url", "of", "head", "document", "tags", "getElements", "resolve", "key", "value", "inject", "next", "selector", "feature", "source", "getOptionalElement", "target", "html", "name", "container", "getComponentElement", "concat", "switchMap", "script", "Observable", "observer", "ignoreElements", "endWith", "setupInstantNavigation", "location$", "viewport$", "progress$", "config", "configuration", "sitemap$", "fetchSitemap", "instant$", "fromEvent", "combineLatestWith", "share", "history$", "map", "getLocation", "withLatestFrom", "offset", "merge", "document$", "distinctUntilKeyChanged", "requestHTML", "catchError", "setLocation", "_", "distinctUntilChanged", "a", "b", "tap", "_a", "_b", "setLocationHash", "debounceTime", "import_escape_html", "setupSearchHighlighter", "config", "regex", "term", "separator", "highlight", "_", "data", "query", "match", "value", "escapeHTML", "isSearchReadyMessage", "message", "isSearchResultMessage", "setupSearchWorker", "url", "index$", "worker$", "watchWorker", "merge", "of", "watchToggle", "first", "active", "switchMap", "config", "docs", "feature", "setupVersionSelector", "document$", "config", "configuration", "versions$", "requestJSON", "catchError", "EMPTY", "current$", "map", "versions", "current", "version", "aliases", "switchMap", "urls", "fromEvent", "filter", "ev", "withLatestFrom", "el", "url", "of", "fetchSitemap", "sitemap", "path", "getLocation", "setLocation", "combineLatest", "getElement", "renderVersionSelector", "_a", "outdated", "ignored", "main", "ignore", "warning", "getComponentElements", "watchSearchQuery", "el", "worker$", "searchParams", "getLocation", "setToggle", "watchToggle", "first", "active", "url", "focus$", "watchElementFocus", "value$", "merge", "isSearchReadyMessage", "fromEvent", "map", "distinctUntilChanged", "combineLatest", "value", "focus", "shareReplay", "mountSearchQuery", "push$", "Subject", "done$", "ignoreElements", "endWith", "_", "query", "distinctUntilKeyChanged", "takeUntil", "label", "getElement", "tap", "state", "finalize", "__spreadValues", "mountSearchResult", "el", "worker$", "query$", "push$", "Subject", "boundary$", "watchElementBoundary", "filter", "container", "meta", "getElement", "list", "watchToggle", "active", "withLatestFrom", "skipUntil", "first", "isSearchReadyMessage", "items", "value", "translation", "count", "round", "render$", "tap", "switchMap", "merge", "of", "bufferCount", "zipWith", "chunk", "map", "renderSearchResultItem", "share", "item", "mergeMap", "details", "getOptionalElement", "EMPTY", "fromEvent", "takeUntil", "isSearchResultMessage", "data", "state", "finalize", "__spreadValues", "watchSearchShare", "_el", "query$", "map", "value", "url", "getLocation", "mountSearchShare", "el", "options", "push$", "Subject", "done$", "ignoreElements", "endWith", "fromEvent", "takeUntil", "ev", "tap", "state", "finalize", "__spreadValues", "mountSearchSuggest", "el", "worker$", "keyboard$", "push$", "Subject", "query", "getComponentElement", "query$", "merge", "fromEvent", "observeOn", "asyncScheduler", "map", "distinctUntilChanged", "combineLatestWith", "suggest", "value", "words", "last", "filter", "mode", "key", "isSearchResultMessage", "data", "tap", "state", "finalize", "mountSearch", "el", "index$", "keyboard$", "config", "configuration", "worker$", "setupSearchWorker", "query", "getComponentElement", "result", "fromEvent", "filter", "target", "setToggle", "mode", "key", "active", "getActiveElement", "anchors", "anchor", "getElements", "article", "best", "a", "b", "els", "i", "query$", "mountSearchQuery", "merge", "mountSearchResult", "mergeWith", "getComponentElements", "child", "mountSearchShare", "mountSearchSuggest", "err", "NEVER", "mountSearchHiglight", "el", "index$", "location$", "combineLatest", "startWith", "getLocation", "filter", "url", "map", "index", "setupSearchHighlighter", "fn", "_a", "nodes", "it", "node", "original", "replaced", "text", "childNodes", "h", "watchSidebar", "el", "viewport$", "main$", "parent", "adjust", "combineLatest", "map", "offset", "height", "y", "distinctUntilChanged", "a", "b", "mountSidebar", "_a", "_b", "header$", "options", "__objRest", "inner", "getElement", "getElementOffset", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "next$", "auditTime", "animationFrameScheduler", "withLatestFrom", "first", "item", "getElements", "container", "getElementSize", "from", "mergeMap", "label", "fromEvent", "observeOn", "asyncScheduler", "takeUntil", "input", "tap", "state", "finalize", "__spreadValues", "fetchSourceFactsFromGitHub", "user", "repo", "url", "zip", "requestJSON", "catchError", "EMPTY", "map", "release", "defaultIfEmpty", "info", "__spreadValues", "fetchSourceFactsFromGitLab", "base", "project", "url", "requestJSON", "catchError", "EMPTY", "map", "star_count", "forks_count", "defaultIfEmpty", "fetchSourceFacts", "url", "match", "user", "repo", "fetchSourceFactsFromGitHub", "base", "slug", "fetchSourceFactsFromGitLab", "EMPTY", "fetch$", "watchSource", "el", "defer", "cached", "of", "getComponentElements", "consent", "EMPTY", "fetchSourceFacts", "tap", "facts", "catchError", "filter", "map", "shareReplay", "mountSource", "inner", "getElement", "push$", "Subject", "renderSourceFacts", "state", "finalize", "__spreadValues", "watchTabs", "el", "viewport$", "header$", "watchElementSize", "switchMap", "watchViewportAt", "map", "y", "distinctUntilKeyChanged", "mountTabs", "options", "defer", "push$", "Subject", "hidden", "feature", "of", "tap", "state", "finalize", "__spreadValues", "watchTableOfContents", "el", "viewport$", "header$", "table", "anchors", "getElements", "anchor", "id", "target", "getOptionalElement", "adjust$", "distinctUntilKeyChanged", "map", "height", "main", "getComponentElement", "grid", "getElement", "share", "watchElementSize", "switchMap", "body", "defer", "path", "of", "index", "offset", "parent", "a", "b", "combineLatestWith", "adjust", "scan", "prev", "next", "y", "size", "last", "distinctUntilChanged", "startWith", "bufferCount", "mountTableOfContents", "main$", "target$", "push$", "Subject", "done$", "ignoreElements", "endWith", "feature", "smooth$", "merge", "debounceTime", "filter", "observeOn", "asyncScheduler", "withLatestFrom", "behavior", "container", "getElementContainer", "getElementSize", "takeUntil", "skip", "repeat", "url", "getLocation", "active", "hash", "tap", "state", "finalize", "__spreadValues", "watchBackToTop", "_el", "viewport$", "main$", "target$", "direction$", "map", "y", "bufferCount", "b", "distinctUntilChanged", "active$", "active", "combineLatest", "direction", "takeUntil", "skip", "endWith", "repeat", "hidden", "mountBackToTop", "el", "header$", "push$", "Subject", "done$", "ignoreElements", "distinctUntilKeyChanged", "height", "fromEvent", "ev", "tap", "state", "finalize", "__spreadValues", "patchEllipsis", "document$", "viewport$", "switchMap", "getElements", "mergeMap", "el", "watchElementVisibility", "takeUntil", "skip", "filter", "visible", "map", "take", "text", "host", "mountInlineTooltip2", "finalize", "patchIndeterminate", "document$", "tablet$", "switchMap", "getElements", "tap", "el", "mergeMap", "fromEvent", "takeWhile", "map", "withLatestFrom", "tablet", "isAppleDevice", "patchScrollfix", "document$", "switchMap", "getElements", "tap", "el", "filter", "mergeMap", "fromEvent", "map", "top", "patchScrolllock", "viewport$", "tablet$", "combineLatest", "watchToggle", "map", "active", "tablet", "switchMap", "of", "delay", "withLatestFrom", "y", "value", "obj", "data", "key", "x", "y", "nodes", "parent", "i", "node", "fetchSearchIndex", "watchScript", "config", "map", "shareReplay", "requestJSON", "document$", "watchDocument", "location$", "watchLocation", "target$", "watchLocationTarget", "keyboard$", "watchKeyboard", "viewport$", "watchViewport", "tablet$", "watchMedia", "screen$", "print$", "watchPrint", "configuration", "index$", "NEVER", "alert$", "Subject", "setupClipboardJS", "progress$", "feature", "setupInstantNavigation", "_a", "setupVersionSelector", "merge", "delay", "setToggle", "filter", "mode", "key", "prev", "getOptionalElement", "setLocation", "next", "active", "getActiveElement", "patchEllipsis", "patchIndeterminate", "patchScrollfix", "patchScrolllock", "header$", "watchHeader", "getComponentElement", "main$", "switchMap", "el", "watchMain", "control$", "getComponentElements", "mountConsent", "mountDialog", "mountHeader", "mountPalette", "mountProgress", "mountSearch", "mountSource", "content$", "defer", "mountAnnounce", "mountContent", "mountSearchHiglight", "EMPTY", "mountHeaderTitle", "at", "mountSidebar", "mountTabs", "mountTableOfContents", "mountBackToTop", "component$", "mergeWith"]
+}
diff --git a/content/references/java-chassis/en_US/assets/stylesheets/main.66ac8b77.min.css b/content/references/java-chassis/en_US/assets/stylesheets/main.66ac8b77.min.css
new file mode 100644
index 0000000..da13c22
--- /dev/null
+++ b/content/references/java-chassis/en_US/assets/stylesheets/main.66ac8b77.min.css
@@ -0,0 +1 @@
+@charset "UTF-8";html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box}*,:after,:before{box-sizing:inherit}@media (prefers-reduced-motion){*,:after,:before{transition:none!important}}body{margin:0}a,button,input,label{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}hr{border:0;box-sizing:initial;display:block;height:.05rem;overflow:visible;padding:0}small{font-size:80%}sub,sup{line-height:1em}img{border-style:none}table{border-collapse:initial;border-spacing:0}td,th{font-weight:400;vertical-align:top}button{background:#0000;border:0;font-family:inherit;font-size:inherit;margin:0;padding:0}input{border:0;outline:none}:root{--md-primary-fg-color:#4051b5;--md-primary-fg-color--light:#5d6cc0;--md-primary-fg-color--dark:#303fa1;--md-primary-bg-color:#fff;--md-primary-bg-color--light:#ffffffb3;--md-accent-fg-color:#526cfe;--md-accent-fg-color--transparent:#526cfe1a;--md-accent-bg-color:#fff;--md-accent-bg-color--light:#ffffffb3}[data-md-color-scheme=default]{color-scheme:light}[data-md-color-scheme=default] img[src$="#gh-dark-mode-only"],[data-md-color-scheme=default] img[src$="#only-dark"]{display:none}:root,[data-md-color-scheme=default]{--md-hue:225deg;--md-default-fg-color:#000000de;--md-default-fg-color--light:#0000008a;--md-default-fg-color--lighter:#00000052;--md-default-fg-color--lightest:#00000012;--md-default-bg-color:#fff;--md-default-bg-color--light:#ffffffb3;--md-default-bg-color--lighter:#ffffff4d;--md-default-bg-color--lightest:#ffffff1f;--md-code-fg-color:#36464e;--md-code-bg-color:#f5f5f5;--md-code-hl-color:#4287ff;--md-code-hl-color--light:#4287ff1a;--md-code-hl-number-color:#d52a2a;--md-code-hl-special-color:#db1457;--md-code-hl-function-color:#a846b9;--md-code-hl-constant-color:#6e59d9;--md-code-hl-keyword-color:#3f6ec6;--md-code-hl-string-color:#1c7d4d;--md-code-hl-name-color:var(--md-code-fg-color);--md-code-hl-operator-color:var(--md-default-fg-color--light);--md-code-hl-punctuation-color:var(--md-default-fg-color--light);--md-code-hl-comment-color:var(--md-default-fg-color--light);--md-code-hl-generic-color:var(--md-default-fg-color--light);--md-code-hl-variable-color:var(--md-default-fg-color--light);--md-typeset-color:var(--md-default-fg-color);--md-typeset-a-color:var(--md-primary-fg-color);--md-typeset-del-color:#f5503d26;--md-typeset-ins-color:#0bd57026;--md-typeset-kbd-color:#fafafa;--md-typeset-kbd-accent-color:#fff;--md-typeset-kbd-border-color:#b8b8b8;--md-typeset-mark-color:#ffff0080;--md-typeset-table-color:#0000001f;--md-typeset-table-color--light:rgba(0,0,0,.035);--md-admonition-fg-color:var(--md-default-fg-color);--md-admonition-bg-color:var(--md-default-bg-color);--md-warning-fg-color:#000000de;--md-warning-bg-color:#ff9;--md-footer-fg-color:#fff;--md-footer-fg-color--light:#ffffffb3;--md-footer-fg-color--lighter:#ffffff73;--md-footer-bg-color:#000000de;--md-footer-bg-color--dark:#00000052;--md-shadow-z1:0 0.2rem 0.5rem #0000000d,0 0 0.05rem #0000001a;--md-shadow-z2:0 0.2rem 0.5rem #0000001a,0 0 0.05rem #00000040;--md-shadow-z3:0 0.2rem 0.5rem #0003,0 0 0.05rem #00000059}.md-icon svg{fill:currentcolor;display:block;height:1.2rem;width:1.2rem}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--md-text-font-family:var(--md-text-font,_),-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;--md-code-font-family:var(--md-code-font,_),SFMono-Regular,Consolas,Menlo,monospace}aside,body,input{font-feature-settings:"kern","liga";color:var(--md-typeset-color);font-family:var(--md-text-font-family)}code,kbd,pre{font-feature-settings:"kern";font-family:var(--md-code-font-family)}:root{--md-typeset-table-sort-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m18 21-4-4h3V7h-3l4-4 4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/></svg>');--md-typeset-table-sort-icon--asc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 17h3l-4 4-4-4h3V3h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>');--md-typeset-table-sort-icon--desc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7h3l-4-4-4 4h3v14h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>')}.md-typeset{-webkit-print-color-adjust:exact;color-adjust:exact;font-size:.8rem;line-height:1.6}@media print{.md-typeset{font-size:.68rem}}.md-typeset blockquote,.md-typeset dl,.md-typeset figure,.md-typeset ol,.md-typeset pre,.md-typeset ul{margin-bottom:1em;margin-top:1em}.md-typeset h1{color:var(--md-default-fg-color--light);font-size:2em;line-height:1.3;margin:0 0 1.25em}.md-typeset h1,.md-typeset h2{font-weight:300;letter-spacing:-.01em}.md-typeset h2{font-size:1.5625em;line-height:1.4;margin:1.6em 0 .64em}.md-typeset h3{font-size:1.25em;font-weight:400;letter-spacing:-.01em;line-height:1.5;margin:1.6em 0 .8em}.md-typeset h2+h3{margin-top:.8em}.md-typeset h4{font-weight:700;letter-spacing:-.01em;margin:1em 0}.md-typeset h5,.md-typeset h6{color:var(--md-default-fg-color--light);font-size:.8em;font-weight:700;letter-spacing:-.01em;margin:1.25em 0}.md-typeset h5{text-transform:uppercase}.md-typeset hr{border-bottom:.05rem solid var(--md-default-fg-color--lightest);display:flow-root;margin:1.5em 0}.md-typeset a{color:var(--md-typeset-a-color);word-break:break-word}.md-typeset a,.md-typeset a:before{transition:color 125ms}.md-typeset a:focus,.md-typeset a:hover{color:var(--md-accent-fg-color)}.md-typeset a:focus code,.md-typeset a:hover code{background-color:var(--md-accent-fg-color--transparent)}.md-typeset a code{color:currentcolor;transition:background-color 125ms}.md-typeset a.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset code,.md-typeset kbd,.md-typeset pre{color:var(--md-code-fg-color);direction:ltr;font-variant-ligatures:none}@media print{.md-typeset code,.md-typeset kbd,.md-typeset pre{white-space:pre-wrap}}.md-typeset code{background-color:var(--md-code-bg-color);border-radius:.1rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;font-size:.85em;padding:0 .2941176471em;word-break:break-word}.md-typeset code:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-typeset pre{display:flow-root;line-height:1.4;position:relative}.md-typeset pre>code{-webkit-box-decoration-break:slice;box-decoration-break:slice;box-shadow:none;display:block;margin:0;outline-color:var(--md-accent-fg-color);overflow:auto;padding:.7720588235em 1.1764705882em;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin;touch-action:auto;word-break:normal}.md-typeset pre>code:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-typeset pre>code::-webkit-scrollbar{height:.2rem;width:.2rem}.md-typeset pre>code::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-typeset pre>code::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}.md-typeset kbd{background-color:var(--md-typeset-kbd-color);border-radius:.1rem;box-shadow:0 .1rem 0 .05rem var(--md-typeset-kbd-border-color),0 .1rem 0 var(--md-typeset-kbd-border-color),0 -.1rem .2rem var(--md-typeset-kbd-accent-color) inset;color:var(--md-default-fg-color);display:inline-block;font-size:.75em;padding:0 .6666666667em;vertical-align:text-top;word-break:break-word}.md-typeset mark{background-color:var(--md-typeset-mark-color);-webkit-box-decoration-break:clone;box-decoration-break:clone;color:inherit;word-break:break-word}.md-typeset abbr{border-bottom:.05rem dotted var(--md-default-fg-color--light);cursor:help;text-decoration:none}.md-typeset small{opacity:.75}[dir=ltr] .md-typeset sub,[dir=ltr] .md-typeset sup{margin-left:.078125em}[dir=rtl] .md-typeset sub,[dir=rtl] .md-typeset sup{margin-right:.078125em}[dir=ltr] .md-typeset blockquote{padding-left:.6rem}[dir=rtl] .md-typeset blockquote{padding-right:.6rem}[dir=ltr] .md-typeset blockquote{border-left:.2rem solid var(--md-default-fg-color--lighter)}[dir=rtl] .md-typeset blockquote{border-right:.2rem solid var(--md-default-fg-color--lighter)}.md-typeset blockquote{color:var(--md-default-fg-color--light);margin-left:0;margin-right:0}.md-typeset ul{list-style-type:disc}[dir=ltr] .md-typeset ol,[dir=ltr] .md-typeset ul{margin-left:.625em}[dir=rtl] .md-typeset ol,[dir=rtl] .md-typeset ul{margin-right:.625em}.md-typeset ol,.md-typeset ul{padding:0}.md-typeset ol:not([hidden]),.md-typeset ul:not([hidden]){display:flow-root}.md-typeset ol ol,.md-typeset ul ol{list-style-type:lower-alpha}.md-typeset ol ol ol,.md-typeset ul ol ol{list-style-type:lower-roman}[dir=ltr] .md-typeset ol li,[dir=ltr] .md-typeset ul li{margin-left:1.25em}[dir=rtl] .md-typeset ol li,[dir=rtl] .md-typeset ul li{margin-right:1.25em}.md-typeset ol li,.md-typeset ul li{margin-bottom:.5em}.md-typeset ol li blockquote,.md-typeset ol li p,.md-typeset ul li blockquote,.md-typeset ul li p{margin:.5em 0}.md-typeset ol li:last-child,.md-typeset ul li:last-child{margin-bottom:0}[dir=ltr] .md-typeset ol li ol,[dir=ltr] .md-typeset ol li ul,[dir=ltr] .md-typeset ul li ol,[dir=ltr] .md-typeset ul li ul{margin-left:.625em}[dir=rtl] .md-typeset ol li ol,[dir=rtl] .md-typeset ol li ul,[dir=rtl] .md-typeset ul li ol,[dir=rtl] .md-typeset ul li ul{margin-right:.625em}.md-typeset ol li ol,.md-typeset ol li ul,.md-typeset ul li ol,.md-typeset ul li ul{margin-bottom:.5em;margin-top:.5em}[dir=ltr] .md-typeset dd{margin-left:1.875em}[dir=rtl] .md-typeset dd{margin-right:1.875em}.md-typeset dd{margin-bottom:1.5em;margin-top:1em}.md-typeset img,.md-typeset svg,.md-typeset video{height:auto;max-width:100%}.md-typeset img[align=left]{margin:1em 1em 1em 0}.md-typeset img[align=right]{margin:1em 0 1em 1em}.md-typeset img[align]:only-child{margin-top:0}.md-typeset figure{display:flow-root;margin:1em auto;max-width:100%;text-align:center;width:-moz-fit-content;width:fit-content}.md-typeset figure img{display:block;margin:0 auto}.md-typeset figcaption{font-style:italic;margin:1em auto;max-width:24rem}.md-typeset iframe{max-width:100%}.md-typeset table:not([class]){background-color:var(--md-default-bg-color);border:.05rem solid var(--md-typeset-table-color);border-radius:.1rem;display:inline-block;font-size:.64rem;max-width:100%;overflow:auto;touch-action:auto}@media print{.md-typeset table:not([class]){display:table}}.md-typeset table:not([class])+*{margin-top:1.5em}.md-typeset table:not([class]) td>:first-child,.md-typeset table:not([class]) th>:first-child{margin-top:0}.md-typeset table:not([class]) td>:last-child,.md-typeset table:not([class]) th>:last-child{margin-bottom:0}.md-typeset table:not([class]) td:not([align]),.md-typeset table:not([class]) th:not([align]){text-align:left}[dir=rtl] .md-typeset table:not([class]) td:not([align]),[dir=rtl] .md-typeset table:not([class]) th:not([align]){text-align:right}.md-typeset table:not([class]) th{font-weight:700;min-width:5rem;padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) td{border-top:.05rem solid var(--md-typeset-table-color);padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) tbody tr{transition:background-color 125ms}.md-typeset table:not([class]) tbody tr:hover{background-color:var(--md-typeset-table-color--light);box-shadow:0 .05rem 0 var(--md-default-bg-color) inset}.md-typeset table:not([class]) a{word-break:normal}.md-typeset table th[role=columnheader]{cursor:pointer}[dir=ltr] .md-typeset table th[role=columnheader]:after{margin-left:.5em}[dir=rtl] .md-typeset table th[role=columnheader]:after{margin-right:.5em}.md-typeset table th[role=columnheader]:after{content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-typeset-table-sort-icon);mask-image:var(--md-typeset-table-sort-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset table th[role=columnheader]:hover:after{background-color:var(--md-default-fg-color--lighter)}.md-typeset table th[role=columnheader][aria-sort=ascending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--asc);mask-image:var(--md-typeset-table-sort-icon--asc)}.md-typeset table th[role=columnheader][aria-sort=descending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--desc);mask-image:var(--md-typeset-table-sort-icon--desc)}.md-typeset__scrollwrap{margin:1em -.8rem;overflow-x:auto;touch-action:auto}.md-typeset__table{display:inline-block;margin-bottom:.5em;padding:0 .8rem}@media print{.md-typeset__table{display:block}}html .md-typeset__table table{display:table;margin:0;overflow:hidden;width:100%}@media screen and (max-width:44.984375em){.md-content__inner>pre{margin:1em -.8rem}.md-content__inner>pre code{border-radius:0}}.md-typeset .md-author{border-radius:100%;display:block;flex-shrink:0;height:1.6rem;overflow:hidden;position:relative;transition:color 125ms,transform 125ms;width:1.6rem}.md-typeset .md-author img{display:block}.md-typeset .md-author--more{background:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--lighter);font-size:.6rem;font-weight:700;line-height:1.6rem;text-align:center}.md-typeset .md-author--long{height:2.4rem;width:2.4rem}.md-typeset a.md-author{transform:scale(1)}.md-typeset a.md-author img{border-radius:100%;filter:grayscale(100%) opacity(75%);transition:filter 125ms}.md-typeset a.md-author:focus,.md-typeset a.md-author:hover{transform:scale(1.1);z-index:1}.md-typeset a.md-author:focus img,.md-typeset a.md-author:hover img{filter:grayscale(0)}.md-banner{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color);overflow:auto}@media print{.md-banner{display:none}}.md-banner--warning{background-color:var(--md-warning-bg-color);color:var(--md-warning-fg-color)}.md-banner__inner{font-size:.7rem;margin:.6rem auto;padding:0 .8rem}[dir=ltr] .md-banner__button{float:right}[dir=rtl] .md-banner__button{float:left}.md-banner__button{color:inherit;cursor:pointer;transition:opacity .25s}.no-js .md-banner__button{display:none}.md-banner__button:hover{opacity:.7}html{font-size:125%;height:100%;overflow-x:hidden}@media screen and (min-width:100em){html{font-size:137.5%}}@media screen and (min-width:125em){html{font-size:150%}}body{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;font-size:.5rem;min-height:100%;position:relative;width:100%}@media print{body{display:block}}@media screen and (max-width:59.984375em){body[data-md-scrolllock]{position:fixed}}.md-grid{margin-left:auto;margin-right:auto;max-width:61rem}.md-container{display:flex;flex-direction:column;flex-grow:1}@media print{.md-container{display:block}}.md-main{flex-grow:1}.md-main__inner{display:flex;height:100%;margin-top:1.5rem}.md-ellipsis{overflow:hidden;text-overflow:ellipsis}.md-toggle{display:none}.md-option{height:0;opacity:0;position:absolute;width:0}.md-option:checked+label:not([hidden]){display:block}.md-option.focus-visible+label{outline-color:var(--md-accent-fg-color);outline-style:auto}.md-skip{background-color:var(--md-default-fg-color);border-radius:.1rem;color:var(--md-default-bg-color);font-size:.64rem;margin:.5rem;opacity:0;outline-color:var(--md-accent-fg-color);padding:.3rem .5rem;position:fixed;transform:translateY(.4rem);z-index:-1}.md-skip:focus{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 175ms 75ms;z-index:10}@page{margin:25mm}:root{--md-clipboard-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z"/></svg>')}.md-clipboard{border-radius:.1rem;color:var(--md-default-fg-color--lightest);cursor:pointer;height:1.5em;outline-color:var(--md-accent-fg-color);outline-offset:.1rem;position:absolute;right:.5em;top:.5em;transition:color .25s;width:1.5em;z-index:1}@media print{.md-clipboard{display:none}}.md-clipboard:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}:hover>.md-clipboard{color:var(--md-default-fg-color--light)}.md-clipboard:focus,.md-clipboard:hover{color:var(--md-accent-fg-color)}.md-clipboard:after{background-color:currentcolor;content:"";display:block;height:1.125em;margin:0 auto;-webkit-mask-image:var(--md-clipboard-icon);mask-image:var(--md-clipboard-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1.125em}.md-clipboard--inline{cursor:pointer}.md-clipboard--inline code{transition:color .25s,background-color .25s}.md-clipboard--inline:focus code,.md-clipboard--inline:hover code{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-typeset .md-code__content{display:grid}@keyframes consent{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes overlay{0%{opacity:0}to{opacity:1}}.md-consent__overlay{animation:overlay .25s both;-webkit-backdrop-filter:blur(.1rem);backdrop-filter:blur(.1rem);background-color:#0000008a;height:100%;opacity:1;position:fixed;top:0;width:100%;z-index:5}.md-consent__inner{animation:consent .5s cubic-bezier(.1,.7,.1,1) both;background-color:var(--md-default-bg-color);border:0;border-radius:.1rem;bottom:0;box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;max-height:100%;overflow:auto;padding:0;position:fixed;width:100%;z-index:5}.md-consent__form{padding:.8rem}.md-consent__settings{display:none;margin:1em 0}input:checked+.md-consent__settings{display:block}.md-consent__controls{margin-bottom:.8rem}.md-typeset .md-consent__controls .md-button{display:inline}@media screen and (max-width:44.984375em){.md-typeset .md-consent__controls .md-button{display:block;margin-top:.4rem;text-align:center;width:100%}}.md-consent label{cursor:pointer}.md-content{flex-grow:1;min-width:0}.md-content__inner{margin:0 .8rem 1.2rem;padding-top:.6rem}@media screen and (min-width:76.25em){[dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}[dir=ltr] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner,[dir=rtl] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-right:1.2rem}[dir=rtl] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}}.md-content__inner:before{content:"";display:block;height:.4rem}.md-content__inner>:last-child{margin-bottom:0}[dir=ltr] .md-content__button{float:right}[dir=rtl] .md-content__button{float:left}[dir=ltr] .md-content__button{margin-left:.4rem}[dir=rtl] .md-content__button{margin-right:.4rem}.md-content__button{margin:.4rem 0;padding:0}@media print{.md-content__button{display:none}}.md-typeset .md-content__button{color:var(--md-default-fg-color--lighter)}.md-content__button svg{display:inline;vertical-align:top}[dir=rtl] .md-content__button svg{transform:scaleX(-1)}[dir=ltr] .md-dialog{right:.8rem}[dir=rtl] .md-dialog{left:.8rem}.md-dialog{background-color:var(--md-default-fg-color);border-radius:.1rem;bottom:.8rem;box-shadow:var(--md-shadow-z3);min-width:11.1rem;opacity:0;padding:.4rem .6rem;pointer-events:none;position:fixed;transform:translateY(100%);transition:transform 0ms .4s,opacity .4s;z-index:4}@media print{.md-dialog{display:none}}.md-dialog--active{opacity:1;pointer-events:auto;transform:translateY(0);transition:transform .4s cubic-bezier(.075,.85,.175,1),opacity .4s}.md-dialog__inner{color:var(--md-default-bg-color);font-size:.7rem}.md-feedback{margin:2em 0 1em;text-align:center}.md-feedback fieldset{border:none;margin:0;padding:0}.md-feedback__title{font-weight:700;margin:1em auto}.md-feedback__inner{position:relative}.md-feedback__list{display:flex;flex-wrap:wrap;place-content:baseline center;position:relative}.md-feedback__list:hover .md-icon:not(:disabled){color:var(--md-default-fg-color--lighter)}:disabled .md-feedback__list{min-height:1.8rem}.md-feedback__icon{color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;margin:0 .1rem;transition:color 125ms}.md-feedback__icon:not(:disabled).md-icon:hover{color:var(--md-accent-fg-color)}.md-feedback__icon:disabled{color:var(--md-default-fg-color--lightest);pointer-events:none}.md-feedback__note{opacity:0;position:relative;transform:translateY(.4rem);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-feedback__note>*{margin:0 auto;max-width:16rem}:disabled .md-feedback__note{opacity:1;transform:translateY(0)}.md-footer{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color)}@media print{.md-footer{display:none}}.md-footer__inner{justify-content:space-between;overflow:auto;padding:.2rem}.md-footer__inner:not([hidden]){display:flex}.md-footer__link{align-items:end;display:flex;flex-grow:0.01;margin-bottom:.4rem;margin-top:1rem;max-width:100%;outline-color:var(--md-accent-fg-color);overflow:hidden;transition:opacity .25s}.md-footer__link:focus,.md-footer__link:hover{opacity:.7}[dir=rtl] .md-footer__link svg{transform:scaleX(-1)}@media screen and (max-width:44.984375em){.md-footer__link--prev{flex-shrink:0}.md-footer__link--prev .md-footer__title{display:none}}[dir=ltr] .md-footer__link--next{margin-left:auto}[dir=rtl] .md-footer__link--next{margin-right:auto}.md-footer__link--next{text-align:right}[dir=rtl] .md-footer__link--next{text-align:left}.md-footer__title{flex-grow:1;font-size:.9rem;margin-bottom:.7rem;max-width:calc(100% - 2.4rem);padding:0 1rem;white-space:nowrap}.md-footer__button{margin:.2rem;padding:.4rem}.md-footer__direction{font-size:.64rem;opacity:.7}.md-footer-meta{background-color:var(--md-footer-bg-color--dark)}.md-footer-meta__inner{display:flex;flex-wrap:wrap;justify-content:space-between;padding:.2rem}html .md-footer-meta.md-typeset a{color:var(--md-footer-fg-color--light)}html .md-footer-meta.md-typeset a:focus,html .md-footer-meta.md-typeset a:hover{color:var(--md-footer-fg-color)}.md-copyright{color:var(--md-footer-fg-color--lighter);font-size:.64rem;margin:auto .6rem;padding:.4rem 0;width:100%}@media screen and (min-width:45em){.md-copyright{width:auto}}.md-copyright__highlight{color:var(--md-footer-fg-color--light)}.md-social{display:inline-flex;gap:.2rem;margin:0 .4rem;padding:.2rem 0 .6rem}@media screen and (min-width:45em){.md-social{padding:.6rem 0}}.md-social__link{display:inline-block;height:1.6rem;text-align:center;width:1.6rem}.md-social__link:before{line-height:1.9}.md-social__link svg{fill:currentcolor;max-height:.8rem;vertical-align:-25%}.md-typeset .md-button{border:.1rem solid;border-radius:.1rem;color:var(--md-primary-fg-color);cursor:pointer;display:inline-block;font-weight:700;padding:.625em 2em;transition:color 125ms,background-color 125ms,border-color 125ms}.md-typeset .md-button--primary{background-color:var(--md-primary-fg-color);border-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color)}.md-typeset .md-button:focus,.md-typeset .md-button:hover{background-color:var(--md-accent-fg-color);border-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[dir=ltr] .md-typeset .md-input{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .md-input,[dir=rtl] .md-typeset .md-input{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .md-input{border-top-left-radius:.1rem}.md-typeset .md-input{border-bottom:.1rem solid var(--md-default-fg-color--lighter);box-shadow:var(--md-shadow-z1);font-size:.8rem;height:1.8rem;padding:0 .6rem;transition:border .25s,box-shadow .25s}.md-typeset .md-input:focus,.md-typeset .md-input:hover{border-bottom-color:var(--md-accent-fg-color);box-shadow:var(--md-shadow-z2)}.md-typeset .md-input--stretch{width:100%}.md-header{background-color:var(--md-primary-fg-color);box-shadow:0 0 .2rem #0000,0 .2rem .4rem #0000;color:var(--md-primary-bg-color);display:block;left:0;position:sticky;right:0;top:0;z-index:4}@media print{.md-header{display:none}}.md-header[hidden]{transform:translateY(-100%);transition:transform .25s cubic-bezier(.8,0,.6,1),box-shadow .25s}.md-header--shadow{box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;transition:transform .25s cubic-bezier(.1,.7,.1,1),box-shadow .25s}.md-header__inner{align-items:center;display:flex;padding:0 .2rem}.md-header__button{color:currentcolor;cursor:pointer;margin:.2rem;outline-color:var(--md-accent-fg-color);padding:.4rem;position:relative;transition:opacity .25s;vertical-align:middle;z-index:1}.md-header__button:hover{opacity:.7}.md-header__button:not([hidden]){display:inline-block}.md-header__button:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-header__button.md-logo{margin:.2rem;padding:.4rem}@media screen and (max-width:76.234375em){.md-header__button.md-logo{display:none}}.md-header__button.md-logo img,.md-header__button.md-logo svg{fill:currentcolor;display:block;height:1.2rem;width:auto}@media screen and (min-width:60em){.md-header__button[for=__search]{display:none}}.no-js .md-header__button[for=__search]{display:none}[dir=rtl] .md-header__button[for=__search] svg{transform:scaleX(-1)}@media screen and (min-width:76.25em){.md-header__button[for=__drawer]{display:none}}.md-header__topic{display:flex;max-width:100%;position:absolute;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;white-space:nowrap}.md-header__topic+.md-header__topic{opacity:0;pointer-events:none;transform:translateX(1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__topic+.md-header__topic{transform:translateX(-1.25rem)}.md-header__topic:first-child{font-weight:700}[dir=ltr] .md-header__title{margin-left:1rem;margin-right:.4rem}[dir=rtl] .md-header__title{margin-left:.4rem;margin-right:1rem}.md-header__title{flex-grow:1;font-size:.9rem;height:2.4rem;line-height:2.4rem}.md-header__title--active .md-header__topic{opacity:0;pointer-events:none;transform:translateX(-1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__title--active .md-header__topic{transform:translateX(1.25rem)}.md-header__title--active .md-header__topic+.md-header__topic{opacity:1;pointer-events:auto;transform:translateX(0);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;z-index:0}.md-header__title>.md-header__ellipsis{height:100%;position:relative;width:100%}.md-header__option{display:flex;flex-shrink:0;max-width:100%;transition:max-width 0ms .25s,opacity .25s .25s;white-space:nowrap}[data-md-toggle=search]:checked~.md-header .md-header__option{max-width:0;opacity:0;transition:max-width 0ms,opacity 0ms}.md-header__option>input{bottom:0}.md-header__source{display:none}@media screen and (min-width:60em){[dir=ltr] .md-header__source{margin-left:1rem}[dir=rtl] .md-header__source{margin-right:1rem}.md-header__source{display:block;max-width:11.7rem;width:11.7rem}}@media screen and (min-width:76.25em){[dir=ltr] .md-header__source{margin-left:1.4rem}[dir=rtl] .md-header__source{margin-right:1.4rem}}.md-meta{color:var(--md-default-fg-color--light);font-size:.7rem;line-height:1.3}.md-meta__list{display:inline-flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.md-meta__item:not(:last-child):after{content:"·";margin-left:.2rem;margin-right:.2rem}.md-meta__link{color:var(--md-typeset-a-color)}.md-meta__link:focus,.md-meta__link:hover{color:var(--md-accent-fg-color)}.md-draft{background-color:#ff1744;border-radius:.125em;color:#fff;display:inline-block;font-weight:700;padding-left:.5714285714em;padding-right:.5714285714em}:root{--md-nav-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>');--md-nav-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>');--md-toc-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2Z"/></svg>')}.md-nav{font-size:.7rem;line-height:1.3}.md-nav__title{color:var(--md-default-fg-color--light);display:block;font-weight:700;overflow:hidden;padding:0 .6rem;text-overflow:ellipsis}.md-nav__title .md-nav__button{display:none}.md-nav__title .md-nav__button img{height:100%;width:auto}.md-nav__title .md-nav__button.md-logo img,.md-nav__title .md-nav__button.md-logo svg{fill:currentcolor;display:block;height:2.4rem;max-width:100%;object-fit:contain;width:auto}.md-nav__list{list-style:none;margin:0;padding:0}.md-nav__link{align-items:flex-start;display:flex;gap:.4rem;margin-top:.625em;scroll-snap-align:start;transition:color 125ms}.md-nav__link--passed{color:var(--md-default-fg-color--light)}.md-nav__item .md-nav__link--active,.md-nav__item .md-nav__link--active code{color:var(--md-typeset-a-color)}.md-nav__link .md-ellipsis{position:relative}[dir=ltr] .md-nav__link .md-icon:last-child{margin-left:auto}[dir=rtl] .md-nav__link .md-icon:last-child{margin-right:auto}.md-nav__link svg{fill:currentcolor;flex-shrink:0;height:1.3em}.md-nav__link[for]:focus,.md-nav__link[for]:hover,.md-nav__link[href]:focus,.md-nav__link[href]:hover{color:var(--md-accent-fg-color);cursor:pointer}.md-nav__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-nav--primary .md-nav__link[for=__toc]{display:none}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{background-color:currentcolor;display:block;height:100%;-webkit-mask-image:var(--md-toc-icon);mask-image:var(--md-toc-icon);width:100%}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:none}.md-nav__container>.md-nav__link{margin-top:0}.md-nav__container>.md-nav__link:first-child{flex-grow:1;min-width:0}.md-nav__icon{flex-shrink:0}.md-nav__source{display:none}@media screen and (max-width:76.234375em){.md-nav--primary,.md-nav--primary .md-nav{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;z-index:1}.md-nav--primary .md-nav__item,.md-nav--primary .md-nav__title{font-size:.8rem;line-height:1.5}.md-nav--primary .md-nav__title{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);cursor:pointer;height:5.6rem;line-height:2.4rem;padding:3rem .8rem .2rem;position:relative;white-space:nowrap}[dir=ltr] .md-nav--primary .md-nav__title .md-nav__icon{left:.4rem}[dir=rtl] .md-nav--primary .md-nav__title .md-nav__icon{right:.4rem}.md-nav--primary .md-nav__title .md-nav__icon{display:block;height:1.2rem;margin:.2rem;position:absolute;top:.4rem;width:1.2rem}.md-nav--primary .md-nav__title .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--prev);mask-image:var(--md-nav-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.md-nav--primary .md-nav__title~.md-nav__list{background-color:var(--md-default-bg-color);box-shadow:0 .05rem 0 var(--md-default-fg-color--lightest) inset;overflow-y:auto;scroll-snap-type:y mandatory;touch-action:pan-y}.md-nav--primary .md-nav__title~.md-nav__list>:first-child{border-top:0}.md-nav--primary .md-nav__title[for=__drawer]{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);font-weight:700}.md-nav--primary .md-nav__title .md-logo{display:block;left:.2rem;margin:.2rem;padding:.4rem;position:absolute;right:.2rem;top:.2rem}.md-nav--primary .md-nav__list{flex:1}.md-nav--primary .md-nav__item{border-top:.05rem solid var(--md-default-fg-color--lightest)}.md-nav--primary .md-nav__item--active>.md-nav__link{color:var(--md-typeset-a-color)}.md-nav--primary .md-nav__item--active>.md-nav__link:focus,.md-nav--primary .md-nav__item--active>.md-nav__link:hover{color:var(--md-accent-fg-color)}.md-nav--primary .md-nav__link{margin-top:0;padding:.6rem .8rem}.md-nav--primary .md-nav__link svg{margin-top:.1em}.md-nav--primary .md-nav__link>.md-nav__link{padding:0}[dir=ltr] .md-nav--primary .md-nav__link .md-nav__icon{margin-right:-.2rem}[dir=rtl] .md-nav--primary .md-nav__link .md-nav__icon{margin-left:-.2rem}.md-nav--primary .md-nav__link .md-nav__icon{font-size:1.2rem;height:1.2rem;width:1.2rem}.md-nav--primary .md-nav__link .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-nav--primary .md-nav__icon:after{transform:scale(-1)}.md-nav--primary .md-nav--secondary .md-nav{background-color:initial;position:static}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:1.4rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-right:1.4rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-right:2rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:2.6rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-right:2.6rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:3.2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-right:3.2rem}.md-nav--secondary{background-color:initial}.md-nav__toggle~.md-nav{display:flex;opacity:0;transform:translateX(100%);transition:transform .25s cubic-bezier(.8,0,.6,1),opacity 125ms 50ms}[dir=rtl] .md-nav__toggle~.md-nav{transform:translateX(-100%)}.md-nav__toggle:checked~.md-nav{opacity:1;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 125ms 125ms}.md-nav__toggle:checked~.md-nav>.md-nav__list{-webkit-backface-visibility:hidden;backface-visibility:hidden}}@media screen and (max-width:59.984375em){.md-nav--primary .md-nav__link[for=__toc]{display:flex}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--primary .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:flex}.md-nav__source{background-color:var(--md-primary-fg-color--dark);color:var(--md-primary-bg-color);display:block;padding:0 .2rem}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-nav--integrated .md-nav__link[for=__toc]{display:flex}.md-nav--integrated .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--integrated .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav{display:flex}}@media screen and (min-width:60em){.md-nav{margin-bottom:-.4rem}.md-nav--secondary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--secondary .md-nav__title[for=__toc]{scroll-snap-align:start}.md-nav--secondary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--secondary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--secondary .md-nav__list{padding-right:.6rem}.md-nav--secondary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--secondary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--secondary .md-nav__item>.md-nav__link{margin-left:.4rem}}@media screen and (min-width:76.25em){.md-nav{margin-bottom:-.4rem;transition:max-height .25s cubic-bezier(.86,0,.07,1)}.md-nav--primary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--primary .md-nav__title[for=__drawer]{scroll-snap-align:start}.md-nav--primary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--primary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--primary .md-nav__list{padding-right:.6rem}.md-nav--primary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--primary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--primary .md-nav__item>.md-nav__link{margin-left:.4rem}.md-nav__toggle~.md-nav{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .25s,visibility 0ms .25s;visibility:collapse}.md-nav__toggle~.md-nav>.md-nav__list{overflow:hidden}.md-nav__toggle.md-toggle--indeterminate~.md-nav,.md-nav__toggle:checked~.md-nav{grid-template-rows:1fr;opacity:1;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .15s .1s,visibility 0ms;visibility:visible}.md-nav__toggle.md-toggle--indeterminate~.md-nav{transition:none}.md-nav__item--nested>.md-nav>.md-nav__title{display:none}.md-nav__item--section{display:block;margin:1.25em 0}.md-nav__item--section:last-child{margin-bottom:0}.md-nav__item--section>.md-nav__link{font-weight:700}.md-nav__item--section>.md-nav__link[for]{color:var(--md-default-fg-color--light)}.md-nav__item--section>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav__item--section>.md-nav__link .md-icon,.md-nav__item--section>.md-nav__link>[for]{display:none}[dir=ltr] .md-nav__item--section>.md-nav{margin-left:-.6rem}[dir=rtl] .md-nav__item--section>.md-nav{margin-right:-.6rem}.md-nav__item--section>.md-nav{display:block;opacity:1;visibility:visible}.md-nav__item--section>.md-nav>.md-nav__list>.md-nav__item{padding:0}.md-nav__icon{border-radius:100%;height:.9rem;transition:background-color .25s;width:.9rem}.md-nav__icon:hover{background-color:var(--md-accent-fg-color--transparent)}.md-nav__icon:after{background-color:currentcolor;border-radius:100%;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:transform .25s;vertical-align:-.1rem;width:100%}[dir=rtl] .md-nav__icon:after{transform:rotate(180deg)}.md-nav__item--nested .md-nav__toggle:checked~.md-nav__link .md-nav__icon:after,.md-nav__item--nested .md-toggle--indeterminate~.md-nav__link .md-nav__icon:after{transform:rotate(90deg)}.md-nav--lifted>.md-nav__list>.md-nav__item,.md-nav--lifted>.md-nav__title{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active{display:block}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);margin-top:0;position:sticky;top:0;z-index:1}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active.md-nav__item--section{margin:0}[dir=ltr] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-left:-.6rem}[dir=rtl] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-right:-.6rem}.md-nav--lifted>.md-nav__list>.md-nav__item>[for]{color:var(--md-default-fg-color--light)}.md-nav--lifted .md-nav[data-md-level="1"]{grid-template-rows:1fr;opacity:1;visibility:visible}[dir=ltr] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-left:.05rem solid var(--md-primary-fg-color)}[dir=rtl] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-right:.05rem solid var(--md-primary-fg-color)}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{display:block;margin-bottom:1.25em;opacity:1;visibility:visible}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__list{overflow:visible;padding-bottom:0}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__title{display:none}}.md-pagination{font-size:.8rem;font-weight:700;gap:.4rem}.md-pagination,.md-pagination>*{align-items:center;display:flex;justify-content:center}.md-pagination>*{border-radius:.2rem;height:1.8rem;min-width:1.8rem;text-align:center}.md-pagination__current{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light)}.md-pagination__link{transition:color 125ms,background-color 125ms}.md-pagination__link:focus,.md-pagination__link:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-pagination__link:focus svg,.md-pagination__link:hover svg{color:var(--md-accent-fg-color)}.md-pagination__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-pagination__link svg{fill:currentcolor;color:var(--md-default-fg-color--lighter);display:block;max-height:100%;width:1.2rem}.md-post__back{border-bottom:.05rem solid var(--md-default-fg-color--lightest);margin-bottom:1.2rem;padding-bottom:1.2rem}@media screen and (max-width:76.234375em){.md-post__back{display:none}}[dir=rtl] .md-post__back svg{transform:scaleX(-1)}.md-post__authors{display:flex;flex-direction:column;gap:.6rem;margin:0 .6rem 1.2rem}.md-post .md-post__meta a{transition:color 125ms}.md-post .md-post__meta a:focus,.md-post .md-post__meta a:hover{color:var(--md-accent-fg-color)}.md-post__title{color:var(--md-default-fg-color--light);font-weight:700}.md-post--excerpt{margin-bottom:3.2rem}.md-post--excerpt .md-post__header{align-items:center;display:flex;gap:.6rem;min-height:1.6rem}.md-post--excerpt .md-post__authors{align-items:center;display:inline-flex;flex-direction:row;gap:.2rem;margin:0;min-height:2.4rem}[dir=ltr] .md-post--excerpt .md-post__meta .md-meta__list{margin-right:.4rem}[dir=rtl] .md-post--excerpt .md-post__meta .md-meta__list{margin-left:.4rem}.md-post--excerpt .md-post__content>:first-child{--md-scroll-margin:6rem;margin-top:0}.md-post>.md-nav--secondary{margin:1em 0}.md-profile{align-items:center;display:flex;font-size:.7rem;gap:.6rem;line-height:1.4;width:100%}.md-profile__description{flex-grow:1}.md-content--post{display:flex}@media screen and (max-width:76.234375em){.md-content--post{flex-flow:column-reverse}}.md-content--post>.md-content__inner{min-width:0}@media screen and (min-width:76.25em){[dir=ltr] .md-content--post>.md-content__inner{margin-left:1.2rem}[dir=rtl] .md-content--post>.md-content__inner{margin-right:1.2rem}}@media screen and (max-width:76.234375em){.md-sidebar.md-sidebar--post{padding:0;position:static;width:100%}.md-sidebar.md-sidebar--post .md-sidebar__scrollwrap{overflow:visible}.md-sidebar.md-sidebar--post .md-sidebar__inner{padding:0}.md-sidebar.md-sidebar--post .md-post__meta{margin-left:.6rem;margin-right:.6rem}.md-sidebar.md-sidebar--post .md-nav__item{border:none;display:inline}.md-sidebar.md-sidebar--post .md-nav__list{display:inline-flex;flex-wrap:wrap;gap:.6rem;padding-bottom:.6rem;padding-top:.6rem}.md-sidebar.md-sidebar--post .md-nav__link{padding:0}.md-sidebar.md-sidebar--post .md-nav{height:auto;margin-bottom:0;position:static}}:root{--md-progress-value:0;--md-progress-delay:400ms}.md-progress{background:var(--md-primary-bg-color);height:.075rem;opacity:min(clamp(0,var(--md-progress-value),1),clamp(0,100 - var(--md-progress-value),1));position:fixed;top:0;transform:scaleX(calc(var(--md-progress-value)*1%));transform-origin:left;transition:transform .5s cubic-bezier(.19,1,.22,1),opacity .25s var(--md-progress-delay);width:100%;z-index:4}:root{--md-search-result-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5Z"/></svg>')}.md-search{position:relative}@media screen and (min-width:60em){.md-search{padding:.2rem 0}}.no-js .md-search{display:none}.md-search__overlay{opacity:0;z-index:1}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__overlay{left:-2.2rem}[dir=rtl] .md-search__overlay{right:-2.2rem}.md-search__overlay{background-color:var(--md-default-bg-color);border-radius:1rem;height:2rem;overflow:hidden;pointer-events:none;position:absolute;top:-1rem;transform-origin:center;transition:transform .3s .1s,opacity .2s .2s;width:2rem}[data-md-toggle=search]:checked~.md-header .md-search__overlay{opacity:1;transition:transform .4s,opacity .1s}}@media screen and (min-width:60em){[dir=ltr] .md-search__overlay{left:0}[dir=rtl] .md-search__overlay{right:0}.md-search__overlay{background-color:#0000008a;cursor:pointer;height:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0}[data-md-toggle=search]:checked~.md-header .md-search__overlay{height:200vh;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@media screen and (max-width:29.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(45)}}@media screen and (min-width:30em) and (max-width:44.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(60)}}@media screen and (min-width:45em) and (max-width:59.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(75)}}.md-search__inner{-webkit-backface-visibility:hidden;backface-visibility:hidden}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__inner{left:0}[dir=rtl] .md-search__inner{right:0}.md-search__inner{height:0;opacity:0;overflow:hidden;position:fixed;top:0;transform:translateX(5%);transition:width 0ms .3s,height 0ms .3s,transform .15s cubic-bezier(.4,0,.2,1) .15s,opacity .15s .15s;width:0;z-index:2}[dir=rtl] .md-search__inner{transform:translateX(-5%)}[data-md-toggle=search]:checked~.md-header .md-search__inner{height:100%;opacity:1;transform:translateX(0);transition:width 0ms 0ms,height 0ms 0ms,transform .15s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__inner{float:right}[dir=rtl] .md-search__inner{float:left}.md-search__inner{padding:.1rem 0;position:relative;transition:width .25s cubic-bezier(.1,.7,.1,1);width:11.7rem}}@media screen and (min-width:60em) and (max-width:76.234375em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:23.4rem}}@media screen and (min-width:76.25em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:34.4rem}}.md-search__form{background-color:var(--md-default-bg-color);box-shadow:0 0 .6rem #0000;height:2.4rem;position:relative;transition:color .25s,background-color .25s;z-index:2}@media screen and (min-width:60em){.md-search__form{background-color:#00000042;border-radius:.1rem;height:1.8rem}.md-search__form:hover{background-color:#ffffff1f}}[data-md-toggle=search]:checked~.md-header .md-search__form{background-color:var(--md-default-bg-color);border-radius:.1rem .1rem 0 0;box-shadow:0 0 .6rem #00000012;color:var(--md-default-fg-color)}[dir=ltr] .md-search__input{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__input{padding-left:2.2rem;padding-right:3.6rem}.md-search__input{background:#0000;font-size:.9rem;height:100%;position:relative;text-overflow:ellipsis;width:100%;z-index:2}.md-search__input::placeholder{transition:color .25s}.md-search__input::placeholder,.md-search__input~.md-search__icon{color:var(--md-default-fg-color--light)}.md-search__input::-ms-clear{display:none}@media screen and (max-width:59.984375em){.md-search__input{font-size:.9rem;height:2.4rem;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__input{padding-left:2.2rem}[dir=rtl] .md-search__input{padding-right:2.2rem}.md-search__input{color:inherit;font-size:.8rem}.md-search__input::placeholder{color:var(--md-primary-bg-color--light)}.md-search__input+.md-search__icon{color:var(--md-primary-bg-color)}[data-md-toggle=search]:checked~.md-header .md-search__input{text-overflow:clip}[data-md-toggle=search]:checked~.md-header .md-search__input+.md-search__icon{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input::placeholder{color:#0000}}.md-search__icon{cursor:pointer;display:inline-block;height:1.2rem;transition:color .25s,opacity .25s;width:1.2rem}.md-search__icon:hover{opacity:.7}[dir=ltr] .md-search__icon[for=__search]{left:.5rem}[dir=rtl] .md-search__icon[for=__search]{right:.5rem}.md-search__icon[for=__search]{position:absolute;top:.3rem;z-index:2}[dir=rtl] .md-search__icon[for=__search] svg{transform:scaleX(-1)}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__icon[for=__search]{left:.8rem}[dir=rtl] .md-search__icon[for=__search]{right:.8rem}.md-search__icon[for=__search]{top:.6rem}.md-search__icon[for=__search] svg:first-child{display:none}}@media screen and (min-width:60em){.md-search__icon[for=__search]{pointer-events:none}.md-search__icon[for=__search] svg:last-child{display:none}}[dir=ltr] .md-search__options{right:.5rem}[dir=rtl] .md-search__options{left:.5rem}.md-search__options{pointer-events:none;position:absolute;top:.3rem;z-index:2}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__options{right:.8rem}[dir=rtl] .md-search__options{left:.8rem}.md-search__options{top:.6rem}}[dir=ltr] .md-search__options>.md-icon{margin-left:.2rem}[dir=rtl] .md-search__options>.md-icon{margin-right:.2rem}.md-search__options>.md-icon{color:var(--md-default-fg-color--light);opacity:0;transform:scale(.75);transition:transform .15s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-search__options>.md-icon:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon{opacity:1;pointer-events:auto;transform:scale(1)}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon:hover{opacity:.7}[dir=ltr] .md-search__suggest{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__suggest{padding-left:2.2rem;padding-right:3.6rem}.md-search__suggest{align-items:center;color:var(--md-default-fg-color--lighter);display:flex;font-size:.9rem;height:100%;opacity:0;position:absolute;top:0;transition:opacity 50ms;white-space:nowrap;width:100%}@media screen and (min-width:60em){[dir=ltr] .md-search__suggest{padding-left:2.2rem}[dir=rtl] .md-search__suggest{padding-right:2.2rem}.md-search__suggest{font-size:.8rem}}[data-md-toggle=search]:checked~.md-header .md-search__suggest{opacity:1;transition:opacity .3s .1s}[dir=ltr] .md-search__output{border-bottom-left-radius:.1rem}[dir=ltr] .md-search__output,[dir=rtl] .md-search__output{border-bottom-right-radius:.1rem}[dir=rtl] .md-search__output{border-bottom-left-radius:.1rem}.md-search__output{overflow:hidden;position:absolute;width:100%;z-index:1}@media screen and (max-width:59.984375em){.md-search__output{bottom:0;top:2.4rem}}@media screen and (min-width:60em){.md-search__output{opacity:0;top:1.9rem;transition:opacity .4s}[data-md-toggle=search]:checked~.md-header .md-search__output{box-shadow:var(--md-shadow-z3);opacity:1}}.md-search__scrollwrap{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);height:100%;overflow-y:auto;touch-action:pan-y}@media (-webkit-max-device-pixel-ratio:1),(max-resolution:1dppx){.md-search__scrollwrap{transform:translateZ(0)}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-search__scrollwrap{width:23.4rem}}@media screen and (min-width:76.25em){.md-search__scrollwrap{width:34.4rem}}@media screen and (min-width:60em){.md-search__scrollwrap{max-height:0;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}[data-md-toggle=search]:checked~.md-header .md-search__scrollwrap{max-height:75vh}.md-search__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-search__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-search__scrollwrap::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-search__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}}.md-search-result{color:var(--md-default-fg-color);word-break:break-word}.md-search-result__meta{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.8rem;padding:0 .8rem;scroll-snap-align:start}@media screen and (min-width:60em){[dir=ltr] .md-search-result__meta{padding-left:2.2rem}[dir=rtl] .md-search-result__meta{padding-right:2.2rem}}.md-search-result__list{list-style:none;margin:0;padding:0;-webkit-user-select:none;user-select:none}.md-search-result__item{box-shadow:0 -.05rem var(--md-default-fg-color--lightest)}.md-search-result__item:first-child{box-shadow:none}.md-search-result__link{display:block;outline:none;scroll-snap-align:start;transition:background-color .25s}.md-search-result__link:focus,.md-search-result__link:hover{background-color:var(--md-accent-fg-color--transparent)}.md-search-result__link:last-child p:last-child{margin-bottom:.6rem}.md-search-result__more>summary{cursor:pointer;display:block;outline:none;position:sticky;scroll-snap-align:start;top:0;z-index:1}.md-search-result__more>summary::marker{display:none}.md-search-result__more>summary::-webkit-details-marker{display:none}.md-search-result__more>summary>div{color:var(--md-typeset-a-color);font-size:.64rem;padding:.75em .8rem;transition:color .25s,background-color .25s}@media screen and (min-width:60em){[dir=ltr] .md-search-result__more>summary>div{padding-left:2.2rem}[dir=rtl] .md-search-result__more>summary>div{padding-right:2.2rem}}.md-search-result__more>summary:focus>div,.md-search-result__more>summary:hover>div{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-search-result__more[open]>summary{background-color:var(--md-default-bg-color)}.md-search-result__article{overflow:hidden;padding:0 .8rem;position:relative}@media screen and (min-width:60em){[dir=ltr] .md-search-result__article{padding-left:2.2rem}[dir=rtl] .md-search-result__article{padding-right:2.2rem}}[dir=ltr] .md-search-result__icon{left:0}[dir=rtl] .md-search-result__icon{right:0}.md-search-result__icon{color:var(--md-default-fg-color--light);height:1.2rem;margin:.5rem;position:absolute;width:1.2rem}@media screen and (max-width:59.984375em){.md-search-result__icon{display:none}}.md-search-result__icon:after{background-color:currentcolor;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-search-result-icon);mask-image:var(--md-search-result-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-search-result__icon:after{transform:scaleX(-1)}.md-search-result .md-typeset{color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.6}.md-search-result .md-typeset h1{color:var(--md-default-fg-color);font-size:.8rem;font-weight:400;line-height:1.4;margin:.55rem 0}.md-search-result .md-typeset h1 mark{text-decoration:none}.md-search-result .md-typeset h2{color:var(--md-default-fg-color);font-size:.64rem;font-weight:700;line-height:1.6;margin:.5em 0}.md-search-result .md-typeset h2 mark{text-decoration:none}.md-search-result__terms{color:var(--md-default-fg-color);display:block;font-size:.64rem;font-style:italic;margin:.5em 0}.md-search-result mark{background-color:initial;color:var(--md-accent-fg-color);text-decoration:underline}.md-select{position:relative;z-index:1}.md-select__inner{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);left:50%;margin-top:.2rem;max-height:0;opacity:0;position:absolute;top:calc(100% - .2rem);transform:translate3d(-50%,.3rem,0);transition:transform .25s 375ms,opacity .25s .25s,max-height 0ms .5s}.md-select:focus-within .md-select__inner,.md-select:hover .md-select__inner{max-height:10rem;opacity:1;transform:translate3d(-50%,0,0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,max-height 0ms}.md-select__inner:after{border-bottom:.2rem solid #0000;border-bottom-color:var(--md-default-bg-color);border-left:.2rem solid #0000;border-right:.2rem solid #0000;border-top:0;content:"";height:0;left:50%;margin-left:-.2rem;margin-top:-.2rem;position:absolute;top:0;width:0}.md-select__list{border-radius:.1rem;font-size:.8rem;list-style-type:none;margin:0;max-height:inherit;overflow:auto;padding:0}.md-select__item{line-height:1.8rem}[dir=ltr] .md-select__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-select__link{padding-left:1.2rem;padding-right:.6rem}.md-select__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:background-color .25s,color .25s;width:100%}.md-select__link:focus,.md-select__link:hover{color:var(--md-accent-fg-color)}.md-select__link:focus{background-color:var(--md-default-fg-color--lightest)}.md-sidebar{align-self:flex-start;flex-shrink:0;padding:1.2rem 0;position:sticky;top:2.4rem;width:12.1rem}@media print{.md-sidebar{display:none}}@media screen and (max-width:76.234375em){[dir=ltr] .md-sidebar--primary{left:-12.1rem}[dir=rtl] .md-sidebar--primary{right:-12.1rem}.md-sidebar--primary{background-color:var(--md-default-bg-color);display:block;height:100%;position:fixed;top:0;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;width:12.1rem;z-index:5}[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{box-shadow:var(--md-shadow-z3);transform:translateX(12.1rem)}[dir=rtl] [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{transform:translateX(-12.1rem)}.md-sidebar--primary .md-sidebar__scrollwrap{bottom:0;left:0;margin:0;overflow:hidden;position:absolute;right:0;scroll-snap-type:none;top:0}}@media screen and (min-width:76.25em){.md-sidebar{height:0}.no-js .md-sidebar{height:auto}.md-header--lifted~.md-container .md-sidebar{top:4.8rem}}.md-sidebar--secondary{display:none;order:2}@media screen and (min-width:60em){.md-sidebar--secondary{height:0}.no-js .md-sidebar--secondary{height:auto}.md-sidebar--secondary:not([hidden]){display:block}.md-sidebar--secondary .md-sidebar__scrollwrap{touch-action:pan-y}}.md-sidebar__scrollwrap{scrollbar-gutter:stable;-webkit-backface-visibility:hidden;backface-visibility:hidden;margin:0 .2rem;overflow-y:auto;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}.md-sidebar__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-sidebar__scrollwrap:focus-within,.md-sidebar__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb:hover,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}@supports selector(::-webkit-scrollbar){.md-sidebar__scrollwrap{scrollbar-gutter:auto}[dir=ltr] .md-sidebar__inner{padding-right:calc(100% - 11.5rem)}[dir=rtl] .md-sidebar__inner{padding-left:calc(100% - 11.5rem)}}@media screen and (max-width:76.234375em){.md-overlay{background-color:#0000008a;height:0;opacity:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0;z-index:5}[data-md-toggle=drawer]:checked~.md-overlay{height:100%;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@keyframes facts{0%{height:0}to{height:.65rem}}@keyframes fact{0%{opacity:0;transform:translateY(100%)}50%{opacity:0}to{opacity:1;transform:translateY(0)}}:root{--md-source-forks-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"/></svg>');--md-source-repositories-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"/></svg>');--md-source-stars-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"/></svg>');--md-source-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"/></svg>')}.md-source{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;font-size:.65rem;line-height:1.2;outline-color:var(--md-accent-fg-color);transition:opacity .25s;white-space:nowrap}.md-source:hover{opacity:.7}.md-source__icon{display:inline-block;height:2.4rem;vertical-align:middle;width:2rem}[dir=ltr] .md-source__icon svg{margin-left:.6rem}[dir=rtl] .md-source__icon svg{margin-right:.6rem}.md-source__icon svg{margin-top:.6rem}[dir=ltr] .md-source__icon+.md-source__repository{padding-left:2rem}[dir=rtl] .md-source__icon+.md-source__repository{padding-right:2rem}[dir=ltr] .md-source__icon+.md-source__repository{margin-left:-2rem}[dir=rtl] .md-source__icon+.md-source__repository{margin-right:-2rem}[dir=ltr] .md-source__repository{margin-left:.6rem}[dir=rtl] .md-source__repository{margin-right:.6rem}.md-source__repository{display:inline-block;max-width:calc(100% - 1.2rem);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.md-source__facts{display:flex;font-size:.55rem;gap:.4rem;list-style-type:none;margin:.1rem 0 0;opacity:.75;overflow:hidden;padding:0;width:100%}.md-source__repository--active .md-source__facts{animation:facts .25s ease-in}.md-source__fact{overflow:hidden;text-overflow:ellipsis}.md-source__repository--active .md-source__fact{animation:fact .4s ease-out}[dir=ltr] .md-source__fact:before{margin-right:.1rem}[dir=rtl] .md-source__fact:before{margin-left:.1rem}.md-source__fact:before{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-top;width:.6rem}.md-source__fact:nth-child(1n+2){flex-shrink:0}.md-source__fact--version:before{-webkit-mask-image:var(--md-source-version-icon);mask-image:var(--md-source-version-icon)}.md-source__fact--stars:before{-webkit-mask-image:var(--md-source-stars-icon);mask-image:var(--md-source-stars-icon)}.md-source__fact--forks:before{-webkit-mask-image:var(--md-source-forks-icon);mask-image:var(--md-source-forks-icon)}.md-source__fact--repositories:before{-webkit-mask-image:var(--md-source-repositories-icon);mask-image:var(--md-source-repositories-icon)}.md-source-file{margin:1em 0}[dir=ltr] .md-source-file__fact{margin-right:.6rem}[dir=rtl] .md-source-file__fact{margin-left:.6rem}.md-source-file__fact{align-items:center;color:var(--md-default-fg-color--light);display:inline-flex;font-size:.68rem;gap:.3rem}.md-source-file__fact .md-icon{flex-shrink:0;margin-bottom:.05rem}[dir=ltr] .md-source-file__fact .md-author{float:left}[dir=rtl] .md-source-file__fact .md-author{float:right}.md-source-file__fact .md-author{margin-right:.2rem}.md-source-file__fact svg{width:.9rem}:root{--md-status:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/></svg>');--md-status--new:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-10 5h-2v-2h2v2m0-4h-2V7h2v6Z"/></svg>');--md-status--deprecated:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/></svg>');--md-status--encrypted:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4m0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3Z"/></svg>')}.md-status:after{background-color:var(--md-default-fg-color--light);content:"";display:inline-block;height:1.125em;-webkit-mask-image:var(--md-status);mask-image:var(--md-status);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-bottom;width:1.125em}.md-status:hover:after{background-color:currentcolor}.md-status--new:after{-webkit-mask-image:var(--md-status--new);mask-image:var(--md-status--new)}.md-status--deprecated:after{-webkit-mask-image:var(--md-status--deprecated);mask-image:var(--md-status--deprecated)}.md-status--encrypted:after{-webkit-mask-image:var(--md-status--encrypted);mask-image:var(--md-status--encrypted)}.md-tabs{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);display:block;line-height:1.3;overflow:auto;width:100%;z-index:3}@media print{.md-tabs{display:none}}@media screen and (max-width:76.234375em){.md-tabs{display:none}}.md-tabs[hidden]{pointer-events:none}[dir=ltr] .md-tabs__list{margin-left:.2rem}[dir=rtl] .md-tabs__list{margin-right:.2rem}.md-tabs__list{contain:content;display:flex;list-style:none;margin:0;overflow:auto;padding:0;scrollbar-width:none;white-space:nowrap}.md-tabs__list::-webkit-scrollbar{display:none}.md-tabs__item{height:2.4rem;padding-left:.6rem;padding-right:.6rem}.md-tabs__item--active .md-tabs__link{color:inherit;opacity:1}.md-tabs__link{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;font-size:.7rem;margin-top:.8rem;opacity:.7;outline-color:var(--md-accent-fg-color);outline-offset:.2rem;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .25s}.md-tabs__link:focus,.md-tabs__link:hover{color:inherit;opacity:1}[dir=ltr] .md-tabs__link svg{margin-right:.4rem}[dir=rtl] .md-tabs__link svg{margin-left:.4rem}.md-tabs__link svg{fill:currentcolor;height:1.3em}.md-tabs__item:nth-child(2) .md-tabs__link{transition-delay:20ms}.md-tabs__item:nth-child(3) .md-tabs__link{transition-delay:40ms}.md-tabs__item:nth-child(4) .md-tabs__link{transition-delay:60ms}.md-tabs__item:nth-child(5) .md-tabs__link{transition-delay:80ms}.md-tabs__item:nth-child(6) .md-tabs__link{transition-delay:.1s}.md-tabs__item:nth-child(7) .md-tabs__link{transition-delay:.12s}.md-tabs__item:nth-child(8) .md-tabs__link{transition-delay:.14s}.md-tabs__item:nth-child(9) .md-tabs__link{transition-delay:.16s}.md-tabs__item:nth-child(10) .md-tabs__link{transition-delay:.18s}.md-tabs__item:nth-child(11) .md-tabs__link{transition-delay:.2s}.md-tabs__item:nth-child(12) .md-tabs__link{transition-delay:.22s}.md-tabs__item:nth-child(13) .md-tabs__link{transition-delay:.24s}.md-tabs__item:nth-child(14) .md-tabs__link{transition-delay:.26s}.md-tabs__item:nth-child(15) .md-tabs__link{transition-delay:.28s}.md-tabs__item:nth-child(16) .md-tabs__link{transition-delay:.3s}.md-tabs[hidden] .md-tabs__link{opacity:0;transform:translateY(50%);transition:transform 0ms .1s,opacity .1s}:root{--md-tag-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5.41 21 .71-4h-4l.35-2h4l1.06-6h-4l.35-2h4l.71-4h2l-.71 4h6l.71-4h2l-.71 4h4l-.35 2h-4l-1.06 6h4l-.35 2h-4l-.71 4h-2l.71-4h-6l-.71 4h-2M9.53 9l-1.06 6h6l1.06-6h-6Z"/></svg>')}.md-typeset .md-tags:not([hidden]){display:inline-flex;flex-wrap:wrap;gap:.5em;margin-bottom:.75em;margin-top:-.125em}.md-typeset .md-tag{align-items:center;background:var(--md-default-fg-color--lightest);border-radius:2.4rem;display:inline-flex;font-size:.64rem;font-size:min(.8em,.64rem);font-weight:700;gap:.5em;letter-spacing:normal;line-height:1.6;padding:.3125em .78125em}.md-typeset .md-tag[href]{-webkit-tap-highlight-color:transparent;color:inherit;outline:none;transition:color 125ms,background-color 125ms}.md-typeset .md-tag[href]:focus,.md-typeset .md-tag[href]:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[id]>.md-typeset .md-tag{vertical-align:text-top}.md-typeset .md-tag-icon:before{background-color:var(--md-default-fg-color--lighter);content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-tag-icon);mask-image:var(--md-tag-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset .md-tag-icon[href]:focus:before,.md-typeset .md-tag-icon[href]:hover:before{background-color:var(--md-accent-bg-color)}@keyframes pulse{0%{transform:scale(.95)}75%{transform:scale(1)}to{transform:scale(.95)}}:root{--md-annotation-bg-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-annotation-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 13h-4v4h-2v-4H7v-2h4V7h2v4h4m-5-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>')}.md-tooltip{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);font-family:var(--md-text-font-family);left:clamp(var(--md-tooltip-0,0rem) + .8rem,var(--md-tooltip-x),100vw + var(--md-tooltip-0,0rem) + .8rem - var(--md-tooltip-width) - 2 * .8rem);max-width:calc(100vw - 1.6rem);opacity:0;position:absolute;top:var(--md-tooltip-y);transform:translateY(-.4rem);transition:transform 0ms .25s,opacity .25s,z-index .25s;width:var(--md-tooltip-width);z-index:0}.md-tooltip--active{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,z-index 0ms;z-index:2}.md-tooltip--inline{font-weight:700;-webkit-user-select:none;user-select:none;width:auto}.md-tooltip--inline:not(.md-tooltip--active){transform:translateY(.2rem) scale(.9)}.md-tooltip--inline .md-tooltip__inner{font-size:.5rem;padding:.2rem .4rem}[hidden]+.md-tooltip--inline{display:none}.focus-visible>.md-tooltip,.md-tooltip:target{outline:var(--md-accent-fg-color) auto}.md-tooltip__inner{font-size:.64rem;padding:.8rem}.md-tooltip__inner.md-typeset>:first-child{margin-top:0}.md-tooltip__inner.md-typeset>:last-child{margin-bottom:0}.md-annotation{font-weight:400;outline:none;vertical-align:text-bottom;white-space:normal}[dir=rtl] .md-annotation{direction:rtl}code .md-annotation{font-family:var(--md-code-font-family);font-size:inherit}.md-annotation:not([hidden]){display:inline-block;line-height:1.25}.md-annotation__index{border-radius:.01px;cursor:pointer;display:inline-block;margin-left:.4ch;margin-right:.4ch;outline:none;overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;vertical-align:text-top;z-index:0}.md-annotation .md-annotation__index{transition:z-index .25s}@media screen{.md-annotation__index{width:2.2ch}[data-md-visible]>.md-annotation__index{animation:pulse 2s infinite}.md-annotation__index:before{background:var(--md-default-bg-color);-webkit-mask-image:var(--md-annotation-bg-icon);mask-image:var(--md-annotation-bg-icon)}.md-annotation__index:after,.md-annotation__index:before{content:"";height:2.2ch;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:-.1ch;width:2.2ch;z-index:-1}.md-annotation__index:after{background-color:var(--md-default-fg-color--lighter);-webkit-mask-image:var(--md-annotation-icon);mask-image:var(--md-annotation-icon);transform:scale(1.0001);transition:background-color .25s,transform .25s}.md-tooltip--active+.md-annotation__index:after{transform:rotate(45deg)}.md-tooltip--active+.md-annotation__index:after,:hover>.md-annotation__index:after{background-color:var(--md-accent-fg-color)}}.md-tooltip--active+.md-annotation__index{animation-play-state:paused;transition-duration:0ms;z-index:2}.md-annotation__index [data-md-annotation-id]{display:inline-block}@media print{.md-annotation__index [data-md-annotation-id]{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);font-weight:700;padding:0 .6ch;white-space:nowrap}.md-annotation__index [data-md-annotation-id]:after{content:attr(data-md-annotation-id)}}.md-typeset .md-annotation-list{counter-reset:xxx;list-style:none}.md-typeset .md-annotation-list li{position:relative}[dir=ltr] .md-typeset .md-annotation-list li:before{left:-2.125em}[dir=rtl] .md-typeset .md-annotation-list li:before{right:-2.125em}.md-typeset .md-annotation-list li:before{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);content:counter(xxx);counter-increment:xxx;font-size:.8875em;font-weight:700;height:2ch;line-height:1.25;min-width:2ch;padding:0 .6ch;position:absolute;text-align:center;top:.25em}:root{--md-tooltip-width:20rem;--md-tooltip-tail:0.3rem}.md-tooltip2{-webkit-backface-visibility:hidden;backface-visibility:hidden;color:var(--md-default-fg-color);font-family:var(--md-text-font-family);opacity:0;pointer-events:none;position:absolute;top:calc(var(--md-tooltip-host-y) + var(--md-tooltip-y));transform:translateY(-.4rem);transform-origin:calc(var(--md-tooltip-host-x) + var(--md-tooltip-x)) 0;transition:transform 0ms .25s,opacity .25s,z-index .25s;width:100%;z-index:0}.md-tooltip2:before{border-left:var(--md-tooltip-tail) solid #0000;border-right:var(--md-tooltip-tail) solid #0000;content:"";display:block;left:clamp(1.5 * .8rem,var(--md-tooltip-host-x) + var(--md-tooltip-x) - var(--md-tooltip-tail),100vw - 2 * var(--md-tooltip-tail) - 1.5 * .8rem);position:absolute;z-index:1}.md-tooltip2--top:before{border-top:var(--md-tooltip-tail) solid var(--md-default-bg-color);bottom:calc(var(--md-tooltip-tail)*-1 + .025rem);filter:drop-shadow(0 1px 0 hsla(0,0%,0%,.05))}.md-tooltip2--bottom:before{border-bottom:var(--md-tooltip-tail) solid var(--md-default-bg-color);filter:drop-shadow(0 -1px 0 hsla(0,0%,0%,.05));top:calc(var(--md-tooltip-tail)*-1 + .025rem)}.md-tooltip2--active{opacity:1;transform:translateY(0);transition:transform .4s cubic-bezier(0,1,.5,1),opacity .25s,z-index 0ms;z-index:2}.md-tooltip2__inner{scrollbar-gutter:stable;background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);left:clamp(.8rem,var(--md-tooltip-host-x) - .8rem,100vw - var(--md-tooltip-width) - .8rem);max-height:40vh;max-width:calc(100vw - 1.6rem);position:relative;scrollbar-width:thin}.md-tooltip2__inner::-webkit-scrollbar{height:.2rem;width:.2rem}.md-tooltip2__inner::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-tooltip2__inner::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}[role=tooltip]>.md-tooltip2__inner{font-size:.5rem;font-weight:700;left:clamp(.8rem,var(--md-tooltip-host-x) + var(--md-tooltip-x) - var(--md-tooltip-width)/2,100vw - var(--md-tooltip-width) - .8rem);max-width:min(100vw - 2 * .8rem,400px);padding:.2rem .4rem;-webkit-user-select:none;user-select:none;width:-moz-fit-content;width:fit-content}.md-tooltip2__inner.md-typeset>:first-child{margin-top:0}.md-tooltip2__inner.md-typeset>:last-child{margin-bottom:0}[dir=ltr] .md-top{margin-left:50%}[dir=rtl] .md-top{margin-right:50%}.md-top{background-color:var(--md-default-bg-color);border-radius:1.6rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color--light);cursor:pointer;display:block;font-size:.7rem;outline:none;padding:.4rem .8rem;position:fixed;top:3.2rem;transform:translate(-50%);transition:color 125ms,background-color 125ms,transform 125ms cubic-bezier(.4,0,.2,1),opacity 125ms;z-index:2}@media print{.md-top{display:none}}[dir=rtl] .md-top{transform:translate(50%)}.md-top[hidden]{opacity:0;pointer-events:none;transform:translate(-50%,.2rem);transition-duration:0ms}[dir=rtl] .md-top[hidden]{transform:translate(50%,.2rem)}.md-top:focus,.md-top:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}.md-top svg{display:inline-block;vertical-align:-.5em}@keyframes hoverfix{0%{pointer-events:none}}:root{--md-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301 191.9 288 191.9L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>')}.md-version{flex-shrink:0;font-size:.8rem;height:2.4rem}[dir=ltr] .md-version__current{margin-left:1.4rem;margin-right:.4rem}[dir=rtl] .md-version__current{margin-left:.4rem;margin-right:1.4rem}.md-version__current{color:inherit;cursor:pointer;outline:none;position:relative;top:.05rem}[dir=ltr] .md-version__current:after{margin-left:.4rem}[dir=rtl] .md-version__current:after{margin-right:.4rem}.md-version__current:after{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-image:var(--md-version-icon);mask-image:var(--md-version-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.4rem}.md-version__list{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);list-style-type:none;margin:.2rem .8rem;max-height:0;opacity:0;overflow:auto;padding:0;position:absolute;scroll-snap-type:y mandatory;top:.15rem;transition:max-height 0ms .5s,opacity .25s .25s;z-index:3}.md-version:focus-within .md-version__list,.md-version:hover .md-version__list{max-height:10rem;opacity:1;transition:max-height 0ms,opacity .25s}@media (hover:none),(pointer:coarse){.md-version:hover .md-version__list{animation:hoverfix .25s forwards}.md-version:focus-within .md-version__list{animation:none}}.md-version__item{line-height:1.8rem}[dir=ltr] .md-version__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-version__link{padding-left:1.2rem;padding-right:.6rem}.md-version__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:color .25s,background-color .25s;white-space:nowrap;width:100%}.md-version__link:focus,.md-version__link:hover{color:var(--md-accent-fg-color)}.md-version__link:focus{background-color:var(--md-default-fg-color--lightest)}:root{--md-admonition-icon--note:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m3.1 5.07c.14 0 .28.05.4.16l1.27 1.27c.23.22.23.57 0 .78l-1 1-2.05-2.05 1-1c.1-.11.24-.16.38-.16m-1.97 1.74 2.06 2.06-6.06 6.06H7.07v-2.06l6.06-6.06Z"/></svg>');--md-admonition-icon--abstract:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/></svg>');--md-admonition-icon--info:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-admonition-icon--tip:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27Z"/></svg>');--md-admonition-icon--success:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59 21 7Z"/></svg>');--md-admonition-icon--question:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10Z"/></svg>');--md-admonition-icon--warning:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21Z"/></svg>');--md-admonition-icon--failure:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>');--md-admonition-icon--danger:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2Z"/></svg>');--md-admonition-icon--bug:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 13h2v1h-2v-1m10-8v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4 9 4m-4 5h-2.2c-.2-.6-.6-1.1-1.1-1.5l1.2-1.2-.7-.7L12.8 8H12c-.2 0-.5 0-.7.1L9.9 6.6l-.8.8 1.2 1.2c-.5.3-.9.8-1.1 1.4H7v1h2v1H7v1h2v1H7v1h2.2c.4 1.2 1.5 2 2.8 2s2.4-.8 2.8-2H17v-1h-2v-1h2v-1h-2v-1h2v-1m-6 2h2v-1h-2v1Z"/></svg>');--md-admonition-icon--example:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v2h1v14a4 4 0 0 0 4 4 4 4 0 0 0 4-4V4h1V2H7m4 14c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m2-4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m1-5h-4V4h4v3Z"/></svg>');--md-admonition-icon--quote:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4Z"/></svg>')}.md-typeset .admonition,.md-typeset details{background-color:var(--md-admonition-bg-color);border:.075rem solid #448aff;border-radius:.2rem;box-shadow:var(--md-shadow-z1);color:var(--md-admonition-fg-color);display:flow-root;font-size:.64rem;margin:1.5625em 0;padding:0 .6rem;page-break-inside:avoid;transition:box-shadow 125ms}@media print{.md-typeset .admonition,.md-typeset details{box-shadow:none}}.md-typeset .admonition:focus-within,.md-typeset details:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .admonition>*,.md-typeset details>*{box-sizing:border-box}.md-typeset .admonition .admonition,.md-typeset .admonition details,.md-typeset details .admonition,.md-typeset details details{margin-bottom:1em;margin-top:1em}.md-typeset .admonition .md-typeset__scrollwrap,.md-typeset details .md-typeset__scrollwrap{margin:1em -.6rem}.md-typeset .admonition .md-typeset__table,.md-typeset details .md-typeset__table{padding:0 .6rem}.md-typeset .admonition>.tabbed-set:only-child,.md-typeset details>.tabbed-set:only-child{margin-top:0}html .md-typeset .admonition>:last-child,html .md-typeset details>:last-child{margin-bottom:.6rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{padding-left:2rem;padding-right:.6rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{padding-left:.6rem;padding-right:2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-left-width:.2rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-right-width:.2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset .admonition-title,.md-typeset summary{background-color:#448aff1a;border:none;font-weight:700;margin:0 -.6rem;padding-bottom:.4rem;padding-top:.4rem;position:relative}html .md-typeset .admonition-title:last-child,html .md-typeset summary:last-child{margin-bottom:0}[dir=ltr] .md-typeset .admonition-title:before,[dir=ltr] .md-typeset summary:before{left:.6rem}[dir=rtl] .md-typeset .admonition-title:before,[dir=rtl] .md-typeset summary:before{right:.6rem}.md-typeset .admonition-title:before,.md-typeset summary:before{background-color:#448aff;content:"";height:1rem;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;width:1rem}.md-typeset .admonition-title code,.md-typeset summary code{box-shadow:0 0 0 .05rem var(--md-default-fg-color--lightest)}.md-typeset .admonition.note,.md-typeset details.note{border-color:#448aff}.md-typeset .admonition.note:focus-within,.md-typeset details.note:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .note>.admonition-title,.md-typeset .note>summary{background-color:#448aff1a}.md-typeset .note>.admonition-title:before,.md-typeset .note>summary:before{background-color:#448aff;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note)}.md-typeset .note>.admonition-title:after,.md-typeset .note>summary:after{color:#448aff}.md-typeset .admonition.abstract,.md-typeset details.abstract{border-color:#00b0ff}.md-typeset .admonition.abstract:focus-within,.md-typeset details.abstract:focus-within{box-shadow:0 0 0 .2rem #00b0ff1a}.md-typeset .abstract>.admonition-title,.md-typeset .abstract>summary{background-color:#00b0ff1a}.md-typeset .abstract>.admonition-title:before,.md-typeset .abstract>summary:before{background-color:#00b0ff;-webkit-mask-image:var(--md-admonition-icon--abstract);mask-image:var(--md-admonition-icon--abstract)}.md-typeset .abstract>.admonition-title:after,.md-typeset .abstract>summary:after{color:#00b0ff}.md-typeset .admonition.info,.md-typeset details.info{border-color:#00b8d4}.md-typeset .admonition.info:focus-within,.md-typeset details.info:focus-within{box-shadow:0 0 0 .2rem #00b8d41a}.md-typeset .info>.admonition-title,.md-typeset .info>summary{background-color:#00b8d41a}.md-typeset .info>.admonition-title:before,.md-typeset .info>summary:before{background-color:#00b8d4;-webkit-mask-image:var(--md-admonition-icon--info);mask-image:var(--md-admonition-icon--info)}.md-typeset .info>.admonition-title:after,.md-typeset .info>summary:after{color:#00b8d4}.md-typeset .admonition.tip,.md-typeset details.tip{border-color:#00bfa5}.md-typeset .admonition.tip:focus-within,.md-typeset details.tip:focus-within{box-shadow:0 0 0 .2rem #00bfa51a}.md-typeset .tip>.admonition-title,.md-typeset .tip>summary{background-color:#00bfa51a}.md-typeset .tip>.admonition-title:before,.md-typeset .tip>summary:before{background-color:#00bfa5;-webkit-mask-image:var(--md-admonition-icon--tip);mask-image:var(--md-admonition-icon--tip)}.md-typeset .tip>.admonition-title:after,.md-typeset .tip>summary:after{color:#00bfa5}.md-typeset .admonition.success,.md-typeset details.success{border-color:#00c853}.md-typeset .admonition.success:focus-within,.md-typeset details.success:focus-within{box-shadow:0 0 0 .2rem #00c8531a}.md-typeset .success>.admonition-title,.md-typeset .success>summary{background-color:#00c8531a}.md-typeset .success>.admonition-title:before,.md-typeset .success>summary:before{background-color:#00c853;-webkit-mask-image:var(--md-admonition-icon--success);mask-image:var(--md-admonition-icon--success)}.md-typeset .success>.admonition-title:after,.md-typeset .success>summary:after{color:#00c853}.md-typeset .admonition.question,.md-typeset details.question{border-color:#64dd17}.md-typeset .admonition.question:focus-within,.md-typeset details.question:focus-within{box-shadow:0 0 0 .2rem #64dd171a}.md-typeset .question>.admonition-title,.md-typeset .question>summary{background-color:#64dd171a}.md-typeset .question>.admonition-title:before,.md-typeset .question>summary:before{background-color:#64dd17;-webkit-mask-image:var(--md-admonition-icon--question);mask-image:var(--md-admonition-icon--question)}.md-typeset .question>.admonition-title:after,.md-typeset .question>summary:after{color:#64dd17}.md-typeset .admonition.warning,.md-typeset details.warning{border-color:#ff9100}.md-typeset .admonition.warning:focus-within,.md-typeset details.warning:focus-within{box-shadow:0 0 0 .2rem #ff91001a}.md-typeset .warning>.admonition-title,.md-typeset .warning>summary{background-color:#ff91001a}.md-typeset .warning>.admonition-title:before,.md-typeset .warning>summary:before{background-color:#ff9100;-webkit-mask-image:var(--md-admonition-icon--warning);mask-image:var(--md-admonition-icon--warning)}.md-typeset .warning>.admonition-title:after,.md-typeset .warning>summary:after{color:#ff9100}.md-typeset .admonition.failure,.md-typeset details.failure{border-color:#ff5252}.md-typeset .admonition.failure:focus-within,.md-typeset details.failure:focus-within{box-shadow:0 0 0 .2rem #ff52521a}.md-typeset .failure>.admonition-title,.md-typeset .failure>summary{background-color:#ff52521a}.md-typeset .failure>.admonition-title:before,.md-typeset .failure>summary:before{background-color:#ff5252;-webkit-mask-image:var(--md-admonition-icon--failure);mask-image:var(--md-admonition-icon--failure)}.md-typeset .failure>.admonition-title:after,.md-typeset .failure>summary:after{color:#ff5252}.md-typeset .admonition.danger,.md-typeset details.danger{border-color:#ff1744}.md-typeset .admonition.danger:focus-within,.md-typeset details.danger:focus-within{box-shadow:0 0 0 .2rem #ff17441a}.md-typeset .danger>.admonition-title,.md-typeset .danger>summary{background-color:#ff17441a}.md-typeset .danger>.admonition-title:before,.md-typeset .danger>summary:before{background-color:#ff1744;-webkit-mask-image:var(--md-admonition-icon--danger);mask-image:var(--md-admonition-icon--danger)}.md-typeset .danger>.admonition-title:after,.md-typeset .danger>summary:after{color:#ff1744}.md-typeset .admonition.bug,.md-typeset details.bug{border-color:#f50057}.md-typeset .admonition.bug:focus-within,.md-typeset details.bug:focus-within{box-shadow:0 0 0 .2rem #f500571a}.md-typeset .bug>.admonition-title,.md-typeset .bug>summary{background-color:#f500571a}.md-typeset .bug>.admonition-title:before,.md-typeset .bug>summary:before{background-color:#f50057;-webkit-mask-image:var(--md-admonition-icon--bug);mask-image:var(--md-admonition-icon--bug)}.md-typeset .bug>.admonition-title:after,.md-typeset .bug>summary:after{color:#f50057}.md-typeset .admonition.example,.md-typeset details.example{border-color:#7c4dff}.md-typeset .admonition.example:focus-within,.md-typeset details.example:focus-within{box-shadow:0 0 0 .2rem #7c4dff1a}.md-typeset .example>.admonition-title,.md-typeset .example>summary{background-color:#7c4dff1a}.md-typeset .example>.admonition-title:before,.md-typeset .example>summary:before{background-color:#7c4dff;-webkit-mask-image:var(--md-admonition-icon--example);mask-image:var(--md-admonition-icon--example)}.md-typeset .example>.admonition-title:after,.md-typeset .example>summary:after{color:#7c4dff}.md-typeset .admonition.quote,.md-typeset details.quote{border-color:#9e9e9e}.md-typeset .admonition.quote:focus-within,.md-typeset details.quote:focus-within{box-shadow:0 0 0 .2rem #9e9e9e1a}.md-typeset .quote>.admonition-title,.md-typeset .quote>summary{background-color:#9e9e9e1a}.md-typeset .quote>.admonition-title:before,.md-typeset .quote>summary:before{background-color:#9e9e9e;-webkit-mask-image:var(--md-admonition-icon--quote);mask-image:var(--md-admonition-icon--quote)}.md-typeset .quote>.admonition-title:after,.md-typeset .quote>summary:after{color:#9e9e9e}:root{--md-footnotes-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2Z"/></svg>')}.md-typeset .footnote{color:var(--md-default-fg-color--light);font-size:.64rem}[dir=ltr] .md-typeset .footnote>ol{margin-left:0}[dir=rtl] .md-typeset .footnote>ol{margin-right:0}.md-typeset .footnote>ol>li{transition:color 125ms}.md-typeset .footnote>ol>li:target{color:var(--md-default-fg-color)}.md-typeset .footnote>ol>li:focus-within .footnote-backref{opacity:1;transform:translateX(0);transition:none}.md-typeset .footnote>ol>li:hover .footnote-backref,.md-typeset .footnote>ol>li:target .footnote-backref{opacity:1;transform:translateX(0)}.md-typeset .footnote>ol>li>:first-child{margin-top:0}.md-typeset .footnote-ref{font-size:.75em;font-weight:700}html .md-typeset .footnote-ref{outline-offset:.1rem}.md-typeset [id^="fnref:"]:target>.footnote-ref{outline:auto}.md-typeset .footnote-backref{color:var(--md-typeset-a-color);display:inline-block;font-size:0;opacity:0;transform:translateX(.25rem);transition:color .25s,transform .25s .25s,opacity 125ms .25s;vertical-align:text-bottom}@media print{.md-typeset .footnote-backref{color:var(--md-typeset-a-color);opacity:1;transform:translateX(0)}}[dir=rtl] .md-typeset .footnote-backref{transform:translateX(-.25rem)}.md-typeset .footnote-backref:hover{color:var(--md-accent-fg-color)}.md-typeset .footnote-backref:before{background-color:currentcolor;content:"";display:inline-block;height:.8rem;-webkit-mask-image:var(--md-footnotes-icon);mask-image:var(--md-footnotes-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.8rem}[dir=rtl] .md-typeset .footnote-backref:before svg{transform:scaleX(-1)}[dir=ltr] .md-typeset .headerlink{margin-left:.5rem}[dir=rtl] .md-typeset .headerlink{margin-right:.5rem}.md-typeset .headerlink{color:var(--md-default-fg-color--lighter);display:inline-block;opacity:0;transition:color .25s,opacity 125ms}@media print{.md-typeset .headerlink{display:none}}.md-typeset .headerlink:focus,.md-typeset :hover>.headerlink,.md-typeset :target>.headerlink{opacity:1;transition:color .25s,opacity 125ms}.md-typeset .headerlink:focus,.md-typeset .headerlink:hover,.md-typeset :target>.headerlink{color:var(--md-accent-fg-color)}.md-typeset :target{--md-scroll-margin:3.6rem;--md-scroll-offset:0rem;scroll-margin-top:calc(var(--md-scroll-margin) - var(--md-scroll-offset))}@media screen and (min-width:76.25em){.md-header--lifted~.md-container .md-typeset :target{--md-scroll-margin:6rem}}.md-typeset h1:target,.md-typeset h2:target,.md-typeset h3:target{--md-scroll-offset:0.2rem}.md-typeset h4:target{--md-scroll-offset:0.15rem}.md-typeset div.arithmatex{overflow:auto}@media screen and (max-width:44.984375em){.md-typeset div.arithmatex{margin:0 -.8rem}.md-typeset div.arithmatex>*{width:min-content}}.md-typeset div.arithmatex>*{margin-left:auto!important;margin-right:auto!important;padding:0 .8rem;touch-action:auto}.md-typeset div.arithmatex>* mjx-container{margin:0!important}.md-typeset div.arithmatex mjx-assistive-mml{height:0}.md-typeset del.critic{background-color:var(--md-typeset-del-color)}.md-typeset del.critic,.md-typeset ins.critic{-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-typeset ins.critic{background-color:var(--md-typeset-ins-color)}.md-typeset .critic.comment{-webkit-box-decoration-break:clone;box-decoration-break:clone;color:var(--md-code-hl-comment-color)}.md-typeset .critic.comment:before{content:"/* "}.md-typeset .critic.comment:after{content:" */"}.md-typeset .critic.block{box-shadow:none;display:block;margin:1em 0;overflow:auto;padding-left:.8rem;padding-right:.8rem}.md-typeset .critic.block>:first-child{margin-top:.5em}.md-typeset .critic.block>:last-child{margin-bottom:.5em}:root{--md-details-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset details{display:flow-root;overflow:visible;padding-top:0}.md-typeset details[open]>summary:after{transform:rotate(90deg)}.md-typeset details:not([open]){box-shadow:none;padding-bottom:0}.md-typeset details:not([open])>summary{border-radius:.1rem}[dir=ltr] .md-typeset summary{padding-right:1.8rem}[dir=rtl] .md-typeset summary{padding-left:1.8rem}[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset summary{cursor:pointer;display:block;min-height:1rem;overflow:hidden}.md-typeset summary.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset summary:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[dir=ltr] .md-typeset summary:after{right:.4rem}[dir=rtl] .md-typeset summary:after{left:.4rem}.md-typeset summary:after{background-color:currentcolor;content:"";height:1rem;-webkit-mask-image:var(--md-details-icon);mask-image:var(--md-details-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;transform:rotate(0deg);transition:transform .25s;width:1rem}[dir=rtl] .md-typeset summary:after{transform:rotate(180deg)}.md-typeset summary::marker{display:none}.md-typeset summary::-webkit-details-marker{display:none}.md-typeset .emojione,.md-typeset .gemoji,.md-typeset .twemoji{--md-icon-size:1.125em;display:inline-flex;height:var(--md-icon-size);vertical-align:text-top}.md-typeset .emojione svg,.md-typeset .gemoji svg,.md-typeset .twemoji svg{fill:currentcolor;max-height:100%;width:var(--md-icon-size)}.md-typeset .lg,.md-typeset .xl,.md-typeset .xxl,.md-typeset .xxxl{vertical-align:text-bottom}.md-typeset .middle{vertical-align:middle}.md-typeset .lg{--md-icon-size:1.5em}.md-typeset .xl{--md-icon-size:2.25em}.md-typeset .xxl{--md-icon-size:3em}.md-typeset .xxxl{--md-icon-size:4em}.highlight .o,.highlight .ow{color:var(--md-code-hl-operator-color)}.highlight .p{color:var(--md-code-hl-punctuation-color)}.highlight .cpf,.highlight .l,.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .si,.highlight .ss{color:var(--md-code-hl-string-color)}.highlight .cp,.highlight .se,.highlight .sh,.highlight .sr,.highlight .sx{color:var(--md-code-hl-special-color)}.highlight .il,.highlight .m,.highlight .mb,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:var(--md-code-hl-number-color)}.highlight .k,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kt{color:var(--md-code-hl-keyword-color)}.highlight .kc,.highlight .n{color:var(--md-code-hl-name-color)}.highlight .bp,.highlight .nb,.highlight .no{color:var(--md-code-hl-constant-color)}.highlight .nc,.highlight .ne,.highlight .nf,.highlight .nn{color:var(--md-code-hl-function-color)}.highlight .nd,.highlight .ni,.highlight .nl,.highlight .nt{color:var(--md-code-hl-keyword-color)}.highlight .c,.highlight .c1,.highlight .ch,.highlight .cm,.highlight .cs,.highlight .sd{color:var(--md-code-hl-comment-color)}.highlight .na,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:var(--md-code-hl-variable-color)}.highlight .ge,.highlight .gh,.highlight .go,.highlight .gp,.highlight .gr,.highlight .gs,.highlight .gt,.highlight .gu{color:var(--md-code-hl-generic-color)}.highlight .gd,.highlight .gi{border-radius:.1rem;margin:0 -.125em;padding:0 .125em}.highlight .gd{background-color:var(--md-typeset-del-color)}.highlight .gi{background-color:var(--md-typeset-ins-color)}.highlight .hll{background-color:var(--md-code-hl-color--light);box-shadow:2px 0 0 0 var(--md-code-hl-color) inset;display:block;margin:0 -1.1764705882em;padding:0 1.1764705882em}.highlight span.filename{background-color:var(--md-code-bg-color);border-bottom:.05rem solid var(--md-default-fg-color--lightest);border-top-left-radius:.1rem;border-top-right-radius:.1rem;display:flow-root;font-size:.85em;font-weight:700;margin-top:1em;padding:.6617647059em 1.1764705882em;position:relative}.highlight span.filename+pre{margin-top:0}.highlight span.filename+pre>code{border-top-left-radius:0;border-top-right-radius:0}.highlight [data-linenos]:before{background-color:var(--md-code-bg-color);box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;color:var(--md-default-fg-color--light);content:attr(data-linenos);float:left;left:-1.1764705882em;margin-left:-1.1764705882em;margin-right:1.1764705882em;padding-left:1.1764705882em;position:sticky;-webkit-user-select:none;user-select:none;z-index:3}.highlight code a[id]{position:absolute;visibility:hidden}.highlight code[data-md-copying] .hll{display:contents}.highlight code[data-md-copying] .md-annotation{display:none}.highlighttable{display:flow-root}.highlighttable tbody,.highlighttable td{display:block;padding:0}.highlighttable tr{display:flex}.highlighttable pre{margin:0}.highlighttable th.filename{flex-grow:1;padding:0;text-align:left}.highlighttable th.filename span.filename{margin-top:0}.highlighttable .linenos{background-color:var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-top-left-radius:.1rem;font-size:.85em;padding:.7720588235em 0 .7720588235em 1.1764705882em;-webkit-user-select:none;user-select:none}.highlighttable .linenodiv{box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;padding-right:.5882352941em}.highlighttable .linenodiv pre{color:var(--md-default-fg-color--light);text-align:right}.highlighttable .code{flex:1;min-width:0}.linenodiv a{color:inherit}.md-typeset .highlighttable{direction:ltr;margin:1em 0}.md-typeset .highlighttable>tbody>tr>.code>div>pre>code{border-bottom-left-radius:0;border-top-left-radius:0}.md-typeset .highlight+.result{border:.05rem solid var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-bottom-right-radius:.1rem;border-top-width:.1rem;margin-top:-1.125em;overflow:visible;padding:0 1em}.md-typeset .highlight+.result:after{clear:both;content:"";display:block}@media screen and (max-width:44.984375em){.md-content__inner>.highlight{margin:1em -.8rem}.md-content__inner>.highlight>.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.code>div>pre>code,.md-content__inner>.highlight>.highlighttable>tbody>tr>.filename span.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.linenos,.md-content__inner>.highlight>pre>code{border-radius:0}.md-content__inner>.highlight+.result{border-left-width:0;border-radius:0;border-right-width:0;margin-left:-.8rem;margin-right:-.8rem}}.md-typeset .keys kbd:after,.md-typeset .keys kbd:before{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;color:inherit;margin:0;position:relative}.md-typeset .keys span{color:var(--md-default-fg-color--light);padding:0 .2em}.md-typeset .keys .key-alt:before,.md-typeset .keys .key-left-alt:before,.md-typeset .keys .key-right-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-command:before,.md-typeset .keys .key-left-command:before,.md-typeset .keys .key-right-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-control:before,.md-typeset .keys .key-left-control:before,.md-typeset .keys .key-right-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-left-meta:before,.md-typeset .keys .key-meta:before,.md-typeset .keys .key-right-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-left-option:before,.md-typeset .keys .key-option:before,.md-typeset .keys .key-right-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-left-shift:before,.md-typeset .keys .key-right-shift:before,.md-typeset .keys .key-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-left-super:before,.md-typeset .keys .key-right-super:before,.md-typeset .keys .key-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-left-windows:before,.md-typeset .keys .key-right-windows:before,.md-typeset .keys .key-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-arrow-down:before{content:"↓";padding-right:.4em}.md-typeset .keys .key-arrow-left:before{content:"←";padding-right:.4em}.md-typeset .keys .key-arrow-right:before{content:"→";padding-right:.4em}.md-typeset .keys .key-arrow-up:before{content:"↑";padding-right:.4em}.md-typeset .keys .key-backspace:before{content:"⌫";padding-right:.4em}.md-typeset .keys .key-backtab:before{content:"⇤";padding-right:.4em}.md-typeset .keys .key-caps-lock:before{content:"⇪";padding-right:.4em}.md-typeset .keys .key-clear:before{content:"⌧";padding-right:.4em}.md-typeset .keys .key-context-menu:before{content:"☰";padding-right:.4em}.md-typeset .keys .key-delete:before{content:"⌦";padding-right:.4em}.md-typeset .keys .key-eject:before{content:"⏏";padding-right:.4em}.md-typeset .keys .key-end:before{content:"⤓";padding-right:.4em}.md-typeset .keys .key-escape:before{content:"⎋";padding-right:.4em}.md-typeset .keys .key-home:before{content:"⤒";padding-right:.4em}.md-typeset .keys .key-insert:before{content:"⎀";padding-right:.4em}.md-typeset .keys .key-page-down:before{content:"⇟";padding-right:.4em}.md-typeset .keys .key-page-up:before{content:"⇞";padding-right:.4em}.md-typeset .keys .key-print-screen:before{content:"⎙";padding-right:.4em}.md-typeset .keys .key-tab:after{content:"⇥";padding-left:.4em}.md-typeset .keys .key-num-enter:after{content:"⌤";padding-left:.4em}.md-typeset .keys .key-enter:after{content:"⏎";padding-left:.4em}:root{--md-tabbed-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 16.58 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42Z"/></svg>');--md-tabbed-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset .tabbed-set{border-radius:.1rem;display:flex;flex-flow:column wrap;margin:1em 0;position:relative}.md-typeset .tabbed-set>input{height:0;opacity:0;position:absolute;width:0}.md-typeset .tabbed-set>input:target{--md-scroll-offset:0.625em}.md-typeset .tabbed-set>input.focus-visible~.tabbed-labels:before{background-color:var(--md-accent-fg-color)}.md-typeset .tabbed-labels{-ms-overflow-style:none;box-shadow:0 -.05rem var(--md-default-fg-color--lightest) inset;display:flex;max-width:100%;overflow:auto;scrollbar-width:none}@media print{.md-typeset .tabbed-labels{display:contents}}@media screen{.js .md-typeset .tabbed-labels{position:relative}.js .md-typeset .tabbed-labels:before{background:var(--md-default-fg-color);bottom:0;content:"";display:block;height:2px;left:0;position:absolute;transform:translateX(var(--md-indicator-x));transition:width 225ms,background-color .25s,transform .25s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--md-indicator-width)}}.md-typeset .tabbed-labels::-webkit-scrollbar{display:none}.md-typeset .tabbed-labels>label{border-bottom:.1rem solid #0000;border-radius:.1rem .1rem 0 0;color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;font-size:.64rem;font-weight:700;padding:.78125em 1.25em .625em;scroll-margin-inline-start:1rem;transition:background-color .25s,color .25s;white-space:nowrap;width:auto}@media print{.md-typeset .tabbed-labels>label:first-child{order:1}.md-typeset .tabbed-labels>label:nth-child(2){order:2}.md-typeset .tabbed-labels>label:nth-child(3){order:3}.md-typeset .tabbed-labels>label:nth-child(4){order:4}.md-typeset .tabbed-labels>label:nth-child(5){order:5}.md-typeset .tabbed-labels>label:nth-child(6){order:6}.md-typeset .tabbed-labels>label:nth-child(7){order:7}.md-typeset .tabbed-labels>label:nth-child(8){order:8}.md-typeset .tabbed-labels>label:nth-child(9){order:9}.md-typeset .tabbed-labels>label:nth-child(10){order:10}.md-typeset .tabbed-labels>label:nth-child(11){order:11}.md-typeset .tabbed-labels>label:nth-child(12){order:12}.md-typeset .tabbed-labels>label:nth-child(13){order:13}.md-typeset .tabbed-labels>label:nth-child(14){order:14}.md-typeset .tabbed-labels>label:nth-child(15){order:15}.md-typeset .tabbed-labels>label:nth-child(16){order:16}.md-typeset .tabbed-labels>label:nth-child(17){order:17}.md-typeset .tabbed-labels>label:nth-child(18){order:18}.md-typeset .tabbed-labels>label:nth-child(19){order:19}.md-typeset .tabbed-labels>label:nth-child(20){order:20}}.md-typeset .tabbed-labels>label:hover{color:var(--md-default-fg-color)}.md-typeset .tabbed-labels>label>[href]:first-child{color:inherit}.md-typeset .tabbed-labels--linked>label{padding:0}.md-typeset .tabbed-labels--linked>label>a{display:block;padding:.78125em 1.25em .625em}.md-typeset .tabbed-content{width:100%}@media print{.md-typeset .tabbed-content{display:contents}}.md-typeset .tabbed-block{display:none}@media print{.md-typeset .tabbed-block{display:block}.md-typeset .tabbed-block:first-child{order:1}.md-typeset .tabbed-block:nth-child(2){order:2}.md-typeset .tabbed-block:nth-child(3){order:3}.md-typeset .tabbed-block:nth-child(4){order:4}.md-typeset .tabbed-block:nth-child(5){order:5}.md-typeset .tabbed-block:nth-child(6){order:6}.md-typeset .tabbed-block:nth-child(7){order:7}.md-typeset .tabbed-block:nth-child(8){order:8}.md-typeset .tabbed-block:nth-child(9){order:9}.md-typeset .tabbed-block:nth-child(10){order:10}.md-typeset .tabbed-block:nth-child(11){order:11}.md-typeset .tabbed-block:nth-child(12){order:12}.md-typeset .tabbed-block:nth-child(13){order:13}.md-typeset .tabbed-block:nth-child(14){order:14}.md-typeset .tabbed-block:nth-child(15){order:15}.md-typeset .tabbed-block:nth-child(16){order:16}.md-typeset .tabbed-block:nth-child(17){order:17}.md-typeset .tabbed-block:nth-child(18){order:18}.md-typeset .tabbed-block:nth-child(19){order:19}.md-typeset .tabbed-block:nth-child(20){order:20}}.md-typeset .tabbed-block>.highlight:first-child>pre,.md-typeset .tabbed-block>pre:first-child{margin:0}.md-typeset .tabbed-block>.highlight:first-child>pre>code,.md-typeset .tabbed-block>pre:first-child>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child>.filename{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable{margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.filename span.filename,.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.linenos{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.code>div>pre>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child+.result{margin-top:-.125em}.md-typeset .tabbed-block>.tabbed-set{margin:0}.md-typeset .tabbed-button{align-self:center;border-radius:100%;color:var(--md-default-fg-color--light);cursor:pointer;display:block;height:.9rem;margin-top:.1rem;pointer-events:auto;transition:background-color .25s;width:.9rem}.md-typeset .tabbed-button:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-typeset .tabbed-button:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-tabbed-icon--prev);mask-image:var(--md-tabbed-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color .25s,transform .25s;width:100%}.md-typeset .tabbed-control{background:linear-gradient(to right,var(--md-default-bg-color) 60%,#0000);display:flex;height:1.9rem;justify-content:start;pointer-events:none;position:absolute;transition:opacity 125ms;width:1.2rem}[dir=rtl] .md-typeset .tabbed-control{transform:rotate(180deg)}.md-typeset .tabbed-control[hidden]{opacity:0}.md-typeset .tabbed-control--next{background:linear-gradient(to left,var(--md-default-bg-color) 60%,#0000);justify-content:end;right:0}.md-typeset .tabbed-control--next .tabbed-button:after{-webkit-mask-image:var(--md-tabbed-icon--next);mask-image:var(--md-tabbed-icon--next)}@media screen and (max-width:44.984375em){[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels{padding-right:.8rem}.md-content__inner>.tabbed-set .tabbed-labels{margin:0 -.8rem;max-width:100vw;scroll-padding-inline-start:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-left:.8rem}.md-content__inner>.tabbed-set .tabbed-labels:after{content:""}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-right:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-left:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-right:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{width:2rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-left:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-right:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-left:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{width:2rem}}@media screen{.md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){color:var(--md-default-fg-color)}.md-typeset .no-js .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .no-js .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .no-js .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .no-js .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .no-js .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .no-js .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .no-js .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .no-js .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .no-js .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .no-js .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .no-js .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .no-js .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .no-js .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .no-js .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .no-js .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .no-js .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .no-js .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .no-js .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .no-js .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .no-js .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),.no-js .md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.no-js .md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.no-js .md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.no-js .md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.no-js .md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.no-js .md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.no-js .md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.no-js .md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.no-js .md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.no-js .md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.no-js .md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.no-js .md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.no-js .md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.no-js .md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.no-js .md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.no-js .md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.no-js .md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.no-js .md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.no-js .md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.no-js .md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){border-color:var(--md-default-fg-color)}}.md-typeset .tabbed-set>input:first-child.focus-visible~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10).focus-visible~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11).focus-visible~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12).focus-visible~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13).focus-visible~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14).focus-visible~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15).focus-visible~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16).focus-visible~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17).focus-visible~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18).focus-visible~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19).focus-visible~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2).focus-visible~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20).focus-visible~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3).focus-visible~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4).focus-visible~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5).focus-visible~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6).focus-visible~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7).focus-visible~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8).focus-visible~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9).focus-visible~.tabbed-labels>:nth-child(9){color:var(--md-accent-fg-color)}.md-typeset .tabbed-set>input:first-child:checked~.tabbed-content>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-content>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-content>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-content>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-content>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-content>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-content>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-content>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-content>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-content>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-content>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-content>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-content>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-content>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-content>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-content>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-content>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-content>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-content>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-content>:nth-child(9){display:block}:root{--md-tasklist-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>');--md-tasklist-icon--checked:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>')}.md-typeset .task-list-item{list-style-type:none;position:relative}[dir=ltr] .md-typeset .task-list-item [type=checkbox]{left:-2em}[dir=rtl] .md-typeset .task-list-item [type=checkbox]{right:-2em}.md-typeset .task-list-item [type=checkbox]{position:absolute;top:.45em}.md-typeset .task-list-control [type=checkbox]{opacity:0;z-index:-1}[dir=ltr] .md-typeset .task-list-indicator:before{left:-1.5em}[dir=rtl] .md-typeset .task-list-indicator:before{right:-1.5em}.md-typeset .task-list-indicator:before{background-color:var(--md-default-fg-color--lightest);content:"";height:1.25em;-webkit-mask-image:var(--md-tasklist-icon);mask-image:var(--md-tasklist-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.15em;width:1.25em}.md-typeset [type=checkbox]:checked+.task-list-indicator:before{background-color:#00e676;-webkit-mask-image:var(--md-tasklist-icon--checked);mask-image:var(--md-tasklist-icon--checked)}:root>*{--md-mermaid-font-family:var(--md-text-font-family),sans-serif;--md-mermaid-edge-color:var(--md-code-fg-color);--md-mermaid-node-bg-color:var(--md-accent-fg-color--transparent);--md-mermaid-node-fg-color:var(--md-accent-fg-color);--md-mermaid-label-bg-color:var(--md-default-bg-color);--md-mermaid-label-fg-color:var(--md-code-fg-color);--md-mermaid-sequence-actor-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actor-fg-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-actor-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-actor-line-color:var(--md-default-fg-color--lighter);--md-mermaid-sequence-actorman-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actorman-line-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-box-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-box-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-label-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-label-fg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-loop-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-loop-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-loop-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-message-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-message-line-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-note-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-border-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-number-bg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-number-fg-color:var(--md-accent-bg-color)}.mermaid{line-height:normal;margin:1em 0}.md-typeset .grid{grid-gap:.4rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));margin:1em 0}.md-typeset .grid.cards>ol,.md-typeset .grid.cards>ul{display:contents}.md-typeset .grid.cards>ol>li,.md-typeset .grid.cards>ul>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>ol>li:focus-within,.md-typeset .grid.cards>ol>li:hover,.md-typeset .grid.cards>ul>li:focus-within,.md-typeset .grid.cards>ul>li:hover,.md-typeset .grid>.card:focus-within,.md-typeset .grid>.card:hover{border-color:#0000;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>ol>li>hr,.md-typeset .grid.cards>ul>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>ol>li>:first-child,.md-typeset .grid.cards>ul>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>ol>li>:last-child,.md-typeset .grid.cards>ul>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid>*,.md-typeset .grid>.admonition,.md-typeset .grid>.highlight>*,.md-typeset .grid>.highlighttable,.md-typeset .grid>.md-typeset details,.md-typeset .grid>details,.md-typeset .grid>pre{margin-bottom:0;margin-top:0}.md-typeset .grid>.highlight>pre:only-child,.md-typeset .grid>.highlight>pre>code,.md-typeset .grid>.highlighttable,.md-typeset .grid>.highlighttable>tbody,.md-typeset .grid>.highlighttable>tbody>tr,.md-typeset .grid>.highlighttable>tbody>tr>.code,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre>code{height:100%}.md-typeset .grid>.tabbed-set{margin-bottom:0;margin-top:0}@media screen and (min-width:45em){[dir=ltr] .md-typeset .inline{float:left}[dir=rtl] .md-typeset .inline{float:right}[dir=ltr] .md-typeset .inline{margin-right:.8rem}[dir=rtl] .md-typeset .inline{margin-left:.8rem}.md-typeset .inline{margin-bottom:.8rem;margin-top:0;width:11.7rem}[dir=ltr] .md-typeset .inline.end{float:right}[dir=rtl] .md-typeset .inline.end{float:left}[dir=ltr] .md-typeset .inline.end{margin-left:.8rem;margin-right:0}[dir=rtl] .md-typeset .inline.end{margin-left:0;margin-right:.8rem}}
\ No newline at end of file
diff --git a/content/references/java-chassis/en_US/assets/stylesheets/main.66ac8b77.min.css.map b/content/references/java-chassis/en_US/assets/stylesheets/main.66ac8b77.min.css.map
new file mode 100644
index 0000000..315eaed
--- /dev/null
+++ b/content/references/java-chassis/en_US/assets/stylesheets/main.66ac8b77.min.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["src/templates/assets/stylesheets/main/components/_meta.scss","../../../../src/templates/assets/stylesheets/main.scss","src/templates/assets/stylesheets/main/_resets.scss","src/templates/assets/stylesheets/main/_colors.scss","src/templates/assets/stylesheets/main/_icons.scss","src/templates/assets/stylesheets/main/_typeset.scss","src/templates/assets/stylesheets/utilities/_break.scss","src/templates/assets/stylesheets/main/components/_author.scss","src/templates/assets/stylesheets/main/components/_banner.scss","src/templates/assets/stylesheets/main/components/_base.scss","src/templates/assets/stylesheets/main/components/_clipboard.scss","src/templates/assets/stylesheets/main/components/_code.scss","src/templates/assets/stylesheets/main/components/_consent.scss","src/templates/assets/stylesheets/main/components/_content.scss","src/templates/assets/stylesheets/main/components/_dialog.scss","src/templates/assets/stylesheets/main/components/_feedback.scss","src/templates/assets/stylesheets/main/components/_footer.scss","src/templates/assets/stylesheets/main/components/_form.scss","src/templates/assets/stylesheets/main/components/_header.scss","node_modules/material-design-color/material-color.scss","src/templates/assets/stylesheets/main/components/_nav.scss","src/templates/assets/stylesheets/main/components/_pagination.scss","src/templates/assets/stylesheets/main/components/_post.scss","src/templates/assets/stylesheets/main/components/_progress.scss","src/templates/assets/stylesheets/main/components/_search.scss","src/templates/assets/stylesheets/main/components/_select.scss","src/templates/assets/stylesheets/main/components/_sidebar.scss","src/templates/assets/stylesheets/main/components/_source.scss","src/templates/assets/stylesheets/main/components/_status.scss","src/templates/assets/stylesheets/main/components/_tabs.scss","src/templates/assets/stylesheets/main/components/_tag.scss","src/templates/assets/stylesheets/main/components/_tooltip.scss","src/templates/assets/stylesheets/main/components/_tooltip2.scss","src/templates/assets/stylesheets/main/components/_top.scss","src/templates/assets/stylesheets/main/components/_version.scss","src/templates/assets/stylesheets/main/extensions/markdown/_admonition.scss","src/templates/assets/stylesheets/main/extensions/markdown/_footnotes.scss","src/templates/assets/stylesheets/main/extensions/markdown/_toc.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_critic.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_details.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_emoji.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_highlight.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_keys.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tasklist.scss","src/templates/assets/stylesheets/main/integrations/_mermaid.scss","src/templates/assets/stylesheets/main/modifiers/_grid.scss","src/templates/assets/stylesheets/main/modifiers/_inline.scss"],"names":[],"mappings":"AA0CE,gBCqxCF,CCnyCA,KA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CADA,YAAA,CAFA,a/C2tJJ,C+CrtJI,kCACE,W/CwtJN,C+CztJI,kCACE,U/CwtJN,C+CztJI,kCAEE,iBAAA,CAAA,c/CutJN,C+CztJI,kCAEE,aAAA,CAAA,kB/CutJN,CACF","file":"main.css"}
\ No newline at end of file
diff --git a/content/references/java-chassis/en_US/assets/stylesheets/main.7e359304.min.css b/content/references/java-chassis/en_US/assets/stylesheets/main.7e359304.min.css
deleted file mode 100644
index e5a7e3a..0000000
--- a/content/references/java-chassis/en_US/assets/stylesheets/main.7e359304.min.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box}*,:after,:before{box-sizing:inherit}@media (prefers-reduced-motion){*,:after,:before{transition:none!important}}body{margin:0}a,button,input,label{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}hr{border:0;box-sizing:initial;display:block;height:.05rem;overflow:visible;padding:0}small{font-size:80%}sub,sup{line-height:1em}img{border-style:none}table{border-collapse:initial;border-spacing:0}td,th{font-weight:400;vertical-align:top}button{background:#0000;border:0;font-family:inherit;font-size:inherit;margin:0;padding:0}input{border:0;outline:none}:root{--md-primary-fg-color:#4051b5;--md-primary-fg-color--light:#5d6cc0;--md-primary-fg-color--dark:#303fa1;--md-primary-bg-color:#fff;--md-primary-bg-color--light:#ffffffb3;--md-accent-fg-color:#526cfe;--md-accent-fg-color--transparent:#526cfe1a;--md-accent-bg-color:#fff;--md-accent-bg-color--light:#ffffffb3}[data-md-color-scheme=default]{color-scheme:light}[data-md-color-scheme=default] img[src$="#gh-dark-mode-only"],[data-md-color-scheme=default] img[src$="#only-dark"]{display:none}:root,[data-md-color-scheme=default]{--md-hue:225deg;--md-default-fg-color:#000000de;--md-default-fg-color--light:#0000008a;--md-default-fg-color--lighter:#00000052;--md-default-fg-color--lightest:#00000012;--md-default-bg-color:#fff;--md-default-bg-color--light:#ffffffb3;--md-default-bg-color--lighter:#ffffff4d;--md-default-bg-color--lightest:#ffffff1f;--md-code-fg-color:#36464e;--md-code-bg-color:#f5f5f5;--md-code-hl-color:#4287ff;--md-code-hl-color--light:#4287ff1a;--md-code-hl-number-color:#d52a2a;--md-code-hl-special-color:#db1457;--md-code-hl-function-color:#a846b9;--md-code-hl-constant-color:#6e59d9;--md-code-hl-keyword-color:#3f6ec6;--md-code-hl-string-color:#1c7d4d;--md-code-hl-name-color:var(--md-code-fg-color);--md-code-hl-operator-color:var(--md-default-fg-color--light);--md-code-hl-punctuation-color:var(--md-default-fg-color--light);--md-code-hl-comment-color:var(--md-default-fg-color--light);--md-code-hl-generic-color:var(--md-default-fg-color--light);--md-code-hl-variable-color:var(--md-default-fg-color--light);--md-typeset-color:var(--md-default-fg-color);--md-typeset-a-color:var(--md-primary-fg-color);--md-typeset-del-color:#f5503d26;--md-typeset-ins-color:#0bd57026;--md-typeset-kbd-color:#fafafa;--md-typeset-kbd-accent-color:#fff;--md-typeset-kbd-border-color:#b8b8b8;--md-typeset-mark-color:#ffff0080;--md-typeset-table-color:#0000001f;--md-typeset-table-color--light:rgba(0,0,0,.035);--md-admonition-fg-color:var(--md-default-fg-color);--md-admonition-bg-color:var(--md-default-bg-color);--md-warning-fg-color:#000000de;--md-warning-bg-color:#ff9;--md-footer-fg-color:#fff;--md-footer-fg-color--light:#ffffffb3;--md-footer-fg-color--lighter:#ffffff73;--md-footer-bg-color:#000000de;--md-footer-bg-color--dark:#00000052;--md-shadow-z1:0 0.2rem 0.5rem #0000000d,0 0 0.05rem #0000001a;--md-shadow-z2:0 0.2rem 0.5rem #0000001a,0 0 0.05rem #00000040;--md-shadow-z3:0 0.2rem 0.5rem #0003,0 0 0.05rem #00000059}.md-icon svg{fill:currentcolor;display:block;height:1.2rem;width:1.2rem}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--md-text-font-family:var(--md-text-font,_),-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;--md-code-font-family:var(--md-code-font,_),SFMono-Regular,Consolas,Menlo,monospace}aside,body,input{font-feature-settings:"kern","liga";color:var(--md-typeset-color);font-family:var(--md-text-font-family)}code,kbd,pre{font-feature-settings:"kern";font-family:var(--md-code-font-family)}:root{--md-typeset-table-sort-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m18 21-4-4h3V7h-3l4-4 4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/></svg>');--md-typeset-table-sort-icon--asc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 17h3l-4 4-4-4h3V3h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>');--md-typeset-table-sort-icon--desc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7h3l-4-4-4 4h3v14h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>')}.md-typeset{-webkit-print-color-adjust:exact;color-adjust:exact;font-size:.8rem;line-height:1.6}@media print{.md-typeset{font-size:.68rem}}.md-typeset blockquote,.md-typeset dl,.md-typeset figure,.md-typeset ol,.md-typeset pre,.md-typeset ul{margin-bottom:1em;margin-top:1em}.md-typeset h1{color:var(--md-default-fg-color--light);font-size:2em;line-height:1.3;margin:0 0 1.25em}.md-typeset h1,.md-typeset h2{font-weight:300;letter-spacing:-.01em}.md-typeset h2{font-size:1.5625em;line-height:1.4;margin:1.6em 0 .64em}.md-typeset h3{font-size:1.25em;font-weight:400;letter-spacing:-.01em;line-height:1.5;margin:1.6em 0 .8em}.md-typeset h2+h3{margin-top:.8em}.md-typeset h4{font-weight:700;letter-spacing:-.01em;margin:1em 0}.md-typeset h5,.md-typeset h6{color:var(--md-default-fg-color--light);font-size:.8em;font-weight:700;letter-spacing:-.01em;margin:1.25em 0}.md-typeset h5{text-transform:uppercase}.md-typeset hr{border-bottom:.05rem solid var(--md-default-fg-color--lightest);display:flow-root;margin:1.5em 0}.md-typeset a{color:var(--md-typeset-a-color);word-break:break-word}.md-typeset a,.md-typeset a:before{transition:color 125ms}.md-typeset a:focus,.md-typeset a:hover{color:var(--md-accent-fg-color)}.md-typeset a:focus code,.md-typeset a:hover code{background-color:var(--md-accent-fg-color--transparent)}.md-typeset a code{color:currentcolor;transition:background-color 125ms}.md-typeset a.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset code,.md-typeset kbd,.md-typeset pre{color:var(--md-code-fg-color);direction:ltr;font-variant-ligatures:none}@media print{.md-typeset code,.md-typeset kbd,.md-typeset pre{white-space:pre-wrap}}.md-typeset code{background-color:var(--md-code-bg-color);border-radius:.1rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;font-size:.85em;padding:0 .2941176471em;word-break:break-word}.md-typeset code:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-typeset pre{display:flow-root;line-height:1.4;position:relative}.md-typeset pre>code{-webkit-box-decoration-break:slice;box-decoration-break:slice;box-shadow:none;display:block;margin:0;outline-color:var(--md-accent-fg-color);overflow:auto;padding:.7720588235em 1.1764705882em;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin;touch-action:auto;word-break:normal}.md-typeset pre>code:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-typeset pre>code::-webkit-scrollbar{height:.2rem;width:.2rem}.md-typeset pre>code::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-typeset pre>code::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}.md-typeset kbd{background-color:var(--md-typeset-kbd-color);border-radius:.1rem;box-shadow:0 .1rem 0 .05rem var(--md-typeset-kbd-border-color),0 .1rem 0 var(--md-typeset-kbd-border-color),0 -.1rem .2rem var(--md-typeset-kbd-accent-color) inset;color:var(--md-default-fg-color);display:inline-block;font-size:.75em;padding:0 .6666666667em;vertical-align:text-top;word-break:break-word}.md-typeset mark{background-color:var(--md-typeset-mark-color);-webkit-box-decoration-break:clone;box-decoration-break:clone;color:inherit;word-break:break-word}.md-typeset abbr{border-bottom:.05rem dotted var(--md-default-fg-color--light);cursor:help;text-decoration:none}.md-typeset small{opacity:.75}[dir=ltr] .md-typeset sub,[dir=ltr] .md-typeset sup{margin-left:.078125em}[dir=rtl] .md-typeset sub,[dir=rtl] .md-typeset sup{margin-right:.078125em}[dir=ltr] .md-typeset blockquote{padding-left:.6rem}[dir=rtl] .md-typeset blockquote{padding-right:.6rem}[dir=ltr] .md-typeset blockquote{border-left:.2rem solid var(--md-default-fg-color--lighter)}[dir=rtl] .md-typeset blockquote{border-right:.2rem solid var(--md-default-fg-color--lighter)}.md-typeset blockquote{color:var(--md-default-fg-color--light);margin-left:0;margin-right:0}.md-typeset ul{list-style-type:disc}[dir=ltr] .md-typeset ol,[dir=ltr] .md-typeset ul{margin-left:.625em}[dir=rtl] .md-typeset ol,[dir=rtl] .md-typeset ul{margin-right:.625em}.md-typeset ol,.md-typeset ul{padding:0}.md-typeset ol:not([hidden]),.md-typeset ul:not([hidden]){display:flow-root}.md-typeset ol ol,.md-typeset ul ol{list-style-type:lower-alpha}.md-typeset ol ol ol,.md-typeset ul ol ol{list-style-type:lower-roman}[dir=ltr] .md-typeset ol li,[dir=ltr] .md-typeset ul li{margin-left:1.25em}[dir=rtl] .md-typeset ol li,[dir=rtl] .md-typeset ul li{margin-right:1.25em}.md-typeset ol li,.md-typeset ul li{margin-bottom:.5em}.md-typeset ol li blockquote,.md-typeset ol li p,.md-typeset ul li blockquote,.md-typeset ul li p{margin:.5em 0}.md-typeset ol li:last-child,.md-typeset ul li:last-child{margin-bottom:0}[dir=ltr] .md-typeset ol li ol,[dir=ltr] .md-typeset ol li ul,[dir=ltr] .md-typeset ul li ol,[dir=ltr] .md-typeset ul li ul{margin-left:.625em}[dir=rtl] .md-typeset ol li ol,[dir=rtl] .md-typeset ol li ul,[dir=rtl] .md-typeset ul li ol,[dir=rtl] .md-typeset ul li ul{margin-right:.625em}.md-typeset ol li ol,.md-typeset ol li ul,.md-typeset ul li ol,.md-typeset ul li ul{margin-bottom:.5em;margin-top:.5em}[dir=ltr] .md-typeset dd{margin-left:1.875em}[dir=rtl] .md-typeset dd{margin-right:1.875em}.md-typeset dd{margin-bottom:1.5em;margin-top:1em}.md-typeset img,.md-typeset svg,.md-typeset video{height:auto;max-width:100%}.md-typeset img[align=left]{margin:1em 1em 1em 0}.md-typeset img[align=right]{margin:1em 0 1em 1em}.md-typeset img[align]:only-child{margin-top:0}.md-typeset figure{display:flow-root;margin:1em auto;max-width:100%;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.md-typeset figure img{display:block;margin:0 auto}.md-typeset figcaption{font-style:italic;margin:1em auto;max-width:24rem}.md-typeset iframe{max-width:100%}.md-typeset table:not([class]){background-color:var(--md-default-bg-color);border:.05rem solid var(--md-typeset-table-color);border-radius:.1rem;display:inline-block;font-size:.64rem;max-width:100%;overflow:auto;touch-action:auto}@media print{.md-typeset table:not([class]){display:table}}.md-typeset table:not([class])+*{margin-top:1.5em}.md-typeset table:not([class]) td>:first-child,.md-typeset table:not([class]) th>:first-child{margin-top:0}.md-typeset table:not([class]) td>:last-child,.md-typeset table:not([class]) th>:last-child{margin-bottom:0}.md-typeset table:not([class]) td:not([align]),.md-typeset table:not([class]) th:not([align]){text-align:left}[dir=rtl] .md-typeset table:not([class]) td:not([align]),[dir=rtl] .md-typeset table:not([class]) th:not([align]){text-align:right}.md-typeset table:not([class]) th{font-weight:700;min-width:5rem;padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) td{border-top:.05rem solid var(--md-typeset-table-color);padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) tbody tr{transition:background-color 125ms}.md-typeset table:not([class]) tbody tr:hover{background-color:var(--md-typeset-table-color--light);box-shadow:0 .05rem 0 var(--md-default-bg-color) inset}.md-typeset table:not([class]) a{word-break:normal}.md-typeset table th[role=columnheader]{cursor:pointer}[dir=ltr] .md-typeset table th[role=columnheader]:after{margin-left:.5em}[dir=rtl] .md-typeset table th[role=columnheader]:after{margin-right:.5em}.md-typeset table th[role=columnheader]:after{content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-typeset-table-sort-icon);mask-image:var(--md-typeset-table-sort-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset table th[role=columnheader]:hover:after{background-color:var(--md-default-fg-color--lighter)}.md-typeset table th[role=columnheader][aria-sort=ascending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--asc);mask-image:var(--md-typeset-table-sort-icon--asc)}.md-typeset table th[role=columnheader][aria-sort=descending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--desc);mask-image:var(--md-typeset-table-sort-icon--desc)}.md-typeset__scrollwrap{margin:1em -.8rem;overflow-x:auto;touch-action:auto}.md-typeset__table{display:inline-block;margin-bottom:.5em;padding:0 .8rem}@media print{.md-typeset__table{display:block}}html .md-typeset__table table{display:table;margin:0;overflow:hidden;width:100%}@media screen and (max-width:44.984375em){.md-content__inner>pre{margin:1em -.8rem}.md-content__inner>pre code{border-radius:0}}.md-typeset .md-author{border-radius:100%;display:block;flex-shrink:0;height:1.6rem;overflow:hidden;position:relative;transition:color 125ms,transform 125ms;width:1.6rem}.md-typeset .md-author img{display:block}.md-typeset .md-author--more{background:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--lighter);font-size:.6rem;font-weight:700;line-height:1.6rem;text-align:center}.md-typeset .md-author--long{height:2.4rem;width:2.4rem}.md-typeset a.md-author{transform:scale(1)}.md-typeset a.md-author img{filter:grayscale(100%) opacity(75%);transition:filter 125ms}.md-typeset a.md-author:focus,.md-typeset a.md-author:hover{transform:scale(1.1);z-index:1}.md-typeset a.md-author:focus img,.md-typeset a.md-author:hover img{filter:grayscale(0)}.md-banner{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color);overflow:auto}@media print{.md-banner{display:none}}.md-banner--warning{background-color:var(--md-warning-bg-color);color:var(--md-warning-fg-color)}.md-banner__inner{font-size:.7rem;margin:.6rem auto;padding:0 .8rem}[dir=ltr] .md-banner__button{float:right}[dir=rtl] .md-banner__button{float:left}.md-banner__button{color:inherit;cursor:pointer;transition:opacity .25s}.no-js .md-banner__button{display:none}.md-banner__button:hover{opacity:.7}html{font-size:125%;height:100%;overflow-x:hidden}@media screen and (min-width:100em){html{font-size:137.5%}}@media screen and (min-width:125em){html{font-size:150%}}body{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;font-size:.5rem;min-height:100%;position:relative;width:100%}@media print{body{display:block}}@media screen and (max-width:59.984375em){body[data-md-scrolllock]{position:fixed}}.md-grid{margin-left:auto;margin-right:auto;max-width:61rem}.md-container{display:flex;flex-direction:column;flex-grow:1}@media print{.md-container{display:block}}.md-main{flex-grow:1}.md-main__inner{display:flex;height:100%;margin-top:1.5rem}.md-ellipsis{overflow:hidden;text-overflow:ellipsis}.md-toggle{display:none}.md-option{height:0;opacity:0;position:absolute;width:0}.md-option:checked+label:not([hidden]){display:block}.md-option.focus-visible+label{outline-color:var(--md-accent-fg-color);outline-style:auto}.md-skip{background-color:var(--md-default-fg-color);border-radius:.1rem;color:var(--md-default-bg-color);font-size:.64rem;margin:.5rem;opacity:0;outline-color:var(--md-accent-fg-color);padding:.3rem .5rem;position:fixed;transform:translateY(.4rem);z-index:-1}.md-skip:focus{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 175ms 75ms;z-index:10}@page{margin:25mm}:root{--md-clipboard-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z"/></svg>')}.md-clipboard{border-radius:.1rem;color:var(--md-default-fg-color--lightest);cursor:pointer;height:1.5em;outline-color:var(--md-accent-fg-color);outline-offset:.1rem;position:absolute;right:.5em;top:.5em;transition:color .25s;width:1.5em;z-index:1}@media print{.md-clipboard{display:none}}.md-clipboard:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}:hover>.md-clipboard{color:var(--md-default-fg-color--light)}.md-clipboard:focus,.md-clipboard:hover{color:var(--md-accent-fg-color)}.md-clipboard:after{background-color:currentcolor;content:"";display:block;height:1.125em;margin:0 auto;-webkit-mask-image:var(--md-clipboard-icon);mask-image:var(--md-clipboard-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1.125em}.md-clipboard--inline{cursor:pointer}.md-clipboard--inline code{transition:color .25s,background-color .25s}.md-clipboard--inline:focus code,.md-clipboard--inline:hover code{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}@keyframes consent{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes overlay{0%{opacity:0}to{opacity:1}}.md-consent__overlay{animation:overlay .25s both;-webkit-backdrop-filter:blur(.1rem);backdrop-filter:blur(.1rem);background-color:#0000008a;height:100%;opacity:1;position:fixed;top:0;width:100%;z-index:5}.md-consent__inner{animation:consent .5s cubic-bezier(.1,.7,.1,1) both;background-color:var(--md-default-bg-color);border:0;border-radius:.1rem;bottom:0;box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;max-height:100%;overflow:auto;padding:0;position:fixed;width:100%;z-index:5}.md-consent__form{padding:.8rem}.md-consent__settings{display:none;margin:1em 0}input:checked+.md-consent__settings{display:block}.md-consent__controls{margin-bottom:.8rem}.md-typeset .md-consent__controls .md-button{display:inline}@media screen and (max-width:44.984375em){.md-typeset .md-consent__controls .md-button{display:block;margin-top:.4rem;text-align:center;width:100%}}.md-consent label{cursor:pointer}.md-content{flex-grow:1;min-width:0}.md-content__inner{margin:0 .8rem 1.2rem;padding-top:.6rem}@media screen and (min-width:76.25em){[dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}[dir=ltr] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner,[dir=rtl] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-right:1.2rem}[dir=rtl] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}}.md-content__inner:before{content:"";display:block;height:.4rem}.md-content__inner>:last-child{margin-bottom:0}[dir=ltr] .md-content__button{float:right}[dir=rtl] .md-content__button{float:left}[dir=ltr] .md-content__button{margin-left:.4rem}[dir=rtl] .md-content__button{margin-right:.4rem}.md-content__button{margin:.4rem 0;padding:0}@media print{.md-content__button{display:none}}.md-typeset .md-content__button{color:var(--md-default-fg-color--lighter)}.md-content__button svg{display:inline;vertical-align:top}[dir=rtl] .md-content__button svg{transform:scaleX(-1)}[dir=ltr] .md-dialog{right:.8rem}[dir=rtl] .md-dialog{left:.8rem}.md-dialog{background-color:var(--md-default-fg-color);border-radius:.1rem;bottom:.8rem;box-shadow:var(--md-shadow-z3);min-width:11.1rem;opacity:0;padding:.4rem .6rem;pointer-events:none;position:fixed;transform:translateY(100%);transition:transform 0ms .4s,opacity .4s;z-index:4}@media print{.md-dialog{display:none}}.md-dialog--active{opacity:1;pointer-events:auto;transform:translateY(0);transition:transform .4s cubic-bezier(.075,.85,.175,1),opacity .4s}.md-dialog__inner{color:var(--md-default-bg-color);font-size:.7rem}.md-feedback{margin:2em 0 1em;text-align:center}.md-feedback fieldset{border:none;margin:0;padding:0}.md-feedback__title{font-weight:700;margin:1em auto}.md-feedback__inner{position:relative}.md-feedback__list{display:flex;flex-wrap:wrap;place-content:baseline center;position:relative}.md-feedback__list:hover .md-icon:not(:disabled){color:var(--md-default-fg-color--lighter)}:disabled .md-feedback__list{min-height:1.8rem}.md-feedback__icon{color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;margin:0 .1rem;transition:color 125ms}.md-feedback__icon:not(:disabled).md-icon:hover{color:var(--md-accent-fg-color)}.md-feedback__icon:disabled{color:var(--md-default-fg-color--lightest);pointer-events:none}.md-feedback__note{opacity:0;position:relative;transform:translateY(.4rem);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-feedback__note>*{margin:0 auto;max-width:16rem}:disabled .md-feedback__note{opacity:1;transform:translateY(0)}.md-footer{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color)}@media print{.md-footer{display:none}}.md-footer__inner{justify-content:space-between;overflow:auto;padding:.2rem}.md-footer__inner:not([hidden]){display:flex}.md-footer__link{align-items:end;display:flex;flex-grow:0.01;margin-bottom:.4rem;margin-top:1rem;max-width:100%;outline-color:var(--md-accent-fg-color);overflow:hidden;transition:opacity .25s}.md-footer__link:focus,.md-footer__link:hover{opacity:.7}[dir=rtl] .md-footer__link svg{transform:scaleX(-1)}@media screen and (max-width:44.984375em){.md-footer__link--prev{flex-shrink:0}.md-footer__link--prev .md-footer__title{display:none}}[dir=ltr] .md-footer__link--next{margin-left:auto}[dir=rtl] .md-footer__link--next{margin-right:auto}.md-footer__link--next{text-align:right}[dir=rtl] .md-footer__link--next{text-align:left}.md-footer__title{flex-grow:1;font-size:.9rem;margin-bottom:.7rem;max-width:calc(100% - 2.4rem);padding:0 1rem;white-space:nowrap}.md-footer__button{margin:.2rem;padding:.4rem}.md-footer__direction{font-size:.64rem;opacity:.7}.md-footer-meta{background-color:var(--md-footer-bg-color--dark)}.md-footer-meta__inner{display:flex;flex-wrap:wrap;justify-content:space-between;padding:.2rem}html .md-footer-meta.md-typeset a{color:var(--md-footer-fg-color--light)}html .md-footer-meta.md-typeset a:focus,html .md-footer-meta.md-typeset a:hover{color:var(--md-footer-fg-color)}.md-copyright{color:var(--md-footer-fg-color--lighter);font-size:.64rem;margin:auto .6rem;padding:.4rem 0;width:100%}@media screen and (min-width:45em){.md-copyright{width:auto}}.md-copyright__highlight{color:var(--md-footer-fg-color--light)}.md-social{display:inline-flex;gap:.2rem;margin:0 .4rem;padding:.2rem 0 .6rem}@media screen and (min-width:45em){.md-social{padding:.6rem 0}}.md-social__link{display:inline-block;height:1.6rem;text-align:center;width:1.6rem}.md-social__link:before{line-height:1.9}.md-social__link svg{fill:currentcolor;max-height:.8rem;vertical-align:-25%}.md-typeset .md-button{border:.1rem solid;border-radius:.1rem;color:var(--md-primary-fg-color);cursor:pointer;display:inline-block;font-weight:700;padding:.625em 2em;transition:color 125ms,background-color 125ms,border-color 125ms}.md-typeset .md-button--primary{background-color:var(--md-primary-fg-color);border-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color)}.md-typeset .md-button:focus,.md-typeset .md-button:hover{background-color:var(--md-accent-fg-color);border-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[dir=ltr] .md-typeset .md-input{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .md-input,[dir=rtl] .md-typeset .md-input{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .md-input{border-top-left-radius:.1rem}.md-typeset .md-input{border-bottom:.1rem solid var(--md-default-fg-color--lighter);box-shadow:var(--md-shadow-z1);font-size:.8rem;height:1.8rem;padding:0 .6rem;transition:border .25s,box-shadow .25s}.md-typeset .md-input:focus,.md-typeset .md-input:hover{border-bottom-color:var(--md-accent-fg-color);box-shadow:var(--md-shadow-z2)}.md-typeset .md-input--stretch{width:100%}.md-header{background-color:var(--md-primary-fg-color);box-shadow:0 0 .2rem #0000,0 .2rem .4rem #0000;color:var(--md-primary-bg-color);display:block;left:0;position:sticky;right:0;top:0;z-index:4}@media print{.md-header{display:none}}.md-header[hidden]{transform:translateY(-100%);transition:transform .25s cubic-bezier(.8,0,.6,1),box-shadow .25s}.md-header--shadow{box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;transition:transform .25s cubic-bezier(.1,.7,.1,1),box-shadow .25s}.md-header__inner{align-items:center;display:flex;padding:0 .2rem}.md-header__button{color:currentcolor;cursor:pointer;margin:.2rem;outline-color:var(--md-accent-fg-color);padding:.4rem;position:relative;transition:opacity .25s;vertical-align:middle;z-index:1}.md-header__button:hover{opacity:.7}.md-header__button:not([hidden]){display:inline-block}.md-header__button:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-header__button.md-logo{margin:.2rem;padding:.4rem}@media screen and (max-width:76.234375em){.md-header__button.md-logo{display:none}}.md-header__button.md-logo img,.md-header__button.md-logo svg{fill:currentcolor;display:block;height:1.2rem;width:auto}@media screen and (min-width:60em){.md-header__button[for=__search]{display:none}}.no-js .md-header__button[for=__search]{display:none}[dir=rtl] .md-header__button[for=__search] svg{transform:scaleX(-1)}@media screen and (min-width:76.25em){.md-header__button[for=__drawer]{display:none}}.md-header__topic{display:flex;max-width:100%;position:absolute;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;white-space:nowrap}.md-header__topic+.md-header__topic{opacity:0;pointer-events:none;transform:translateX(1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__topic+.md-header__topic{transform:translateX(-1.25rem)}.md-header__topic:first-child{font-weight:700}[dir=ltr] .md-header__title{margin-left:1rem;margin-right:.4rem}[dir=rtl] .md-header__title{margin-left:.4rem;margin-right:1rem}.md-header__title{flex-grow:1;font-size:.9rem;height:2.4rem;line-height:2.4rem}.md-header__title--active .md-header__topic{opacity:0;pointer-events:none;transform:translateX(-1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__title--active .md-header__topic{transform:translateX(1.25rem)}.md-header__title--active .md-header__topic+.md-header__topic{opacity:1;pointer-events:auto;transform:translateX(0);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;z-index:0}.md-header__title>.md-header__ellipsis{height:100%;position:relative;width:100%}.md-header__option{display:flex;flex-shrink:0;max-width:100%;transition:max-width 0ms .25s,opacity .25s .25s;white-space:nowrap}[data-md-toggle=search]:checked~.md-header .md-header__option{max-width:0;opacity:0;transition:max-width 0ms,opacity 0ms}.md-header__option>input{bottom:0}.md-header__source{display:none}@media screen and (min-width:60em){[dir=ltr] .md-header__source{margin-left:1rem}[dir=rtl] .md-header__source{margin-right:1rem}.md-header__source{display:block;max-width:11.7rem;width:11.7rem}}@media screen and (min-width:76.25em){[dir=ltr] .md-header__source{margin-left:1.4rem}[dir=rtl] .md-header__source{margin-right:1.4rem}}.md-meta{color:var(--md-default-fg-color--light);font-size:.7rem;line-height:1.3}.md-meta__list{display:inline-flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.md-meta__item:not(:last-child):after{content:"·";margin-left:.2rem;margin-right:.2rem}.md-meta__link{color:var(--md-typeset-a-color)}.md-meta__link:focus,.md-meta__link:hover{color:var(--md-accent-fg-color)}.md-draft{background-color:#ff1744;border-radius:.125em;color:#fff;display:inline-block;font-weight:700;padding-left:.5714285714em;padding-right:.5714285714em}:root{--md-nav-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>');--md-nav-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>');--md-toc-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2Z"/></svg>')}.md-nav{font-size:.7rem;line-height:1.3}.md-nav__title{color:var(--md-default-fg-color--light);display:block;font-weight:700;overflow:hidden;padding:0 .6rem;text-overflow:ellipsis}.md-nav__title .md-nav__button{display:none}.md-nav__title .md-nav__button img{height:100%;width:auto}.md-nav__title .md-nav__button.md-logo img,.md-nav__title .md-nav__button.md-logo svg{fill:currentcolor;display:block;height:2.4rem;max-width:100%;object-fit:contain;width:auto}.md-nav__list{list-style:none;margin:0;padding:0}.md-nav__link{align-items:flex-start;display:flex;gap:.4rem;margin-top:.625em;scroll-snap-align:start;transition:color 125ms}.md-nav__link--passed{color:var(--md-default-fg-color--light)}.md-nav__item .md-nav__link--active,.md-nav__item .md-nav__link--active code{color:var(--md-typeset-a-color)}.md-nav__link .md-ellipsis{position:relative}[dir=ltr] .md-nav__link .md-icon:last-child{margin-left:auto}[dir=rtl] .md-nav__link .md-icon:last-child{margin-right:auto}.md-nav__link svg{fill:currentcolor;flex-shrink:0;height:1.3em}.md-nav__link[for]:focus,.md-nav__link[for]:hover,.md-nav__link[href]:focus,.md-nav__link[href]:hover{color:var(--md-accent-fg-color);cursor:pointer}.md-nav__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-nav--primary .md-nav__link[for=__toc]{display:none}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{background-color:currentcolor;display:block;height:100%;-webkit-mask-image:var(--md-toc-icon);mask-image:var(--md-toc-icon);width:100%}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:none}.md-nav__container>.md-nav__link{margin-top:0}.md-nav__container>.md-nav__link:first-child{flex-grow:1;min-width:0}.md-nav__icon{flex-shrink:0}.md-nav__source{display:none}@media screen and (max-width:76.234375em){.md-nav--primary,.md-nav--primary .md-nav{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;z-index:1}.md-nav--primary .md-nav__item,.md-nav--primary .md-nav__title{font-size:.8rem;line-height:1.5}.md-nav--primary .md-nav__title{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);cursor:pointer;height:5.6rem;line-height:2.4rem;padding:3rem .8rem .2rem;position:relative;white-space:nowrap}[dir=ltr] .md-nav--primary .md-nav__title .md-nav__icon{left:.4rem}[dir=rtl] .md-nav--primary .md-nav__title .md-nav__icon{right:.4rem}.md-nav--primary .md-nav__title .md-nav__icon{display:block;height:1.2rem;margin:.2rem;position:absolute;top:.4rem;width:1.2rem}.md-nav--primary .md-nav__title .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--prev);mask-image:var(--md-nav-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.md-nav--primary .md-nav__title~.md-nav__list{background-color:var(--md-default-bg-color);box-shadow:0 .05rem 0 var(--md-default-fg-color--lightest) inset;overflow-y:auto;scroll-snap-type:y mandatory;touch-action:pan-y}.md-nav--primary .md-nav__title~.md-nav__list>:first-child{border-top:0}.md-nav--primary .md-nav__title[for=__drawer]{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);font-weight:700}.md-nav--primary .md-nav__title .md-logo{display:block;left:.2rem;margin:.2rem;padding:.4rem;position:absolute;right:.2rem;top:.2rem}.md-nav--primary .md-nav__list{flex:1}.md-nav--primary .md-nav__item{border-top:.05rem solid var(--md-default-fg-color--lightest)}.md-nav--primary .md-nav__item--active>.md-nav__link{color:var(--md-typeset-a-color)}.md-nav--primary .md-nav__item--active>.md-nav__link:focus,.md-nav--primary .md-nav__item--active>.md-nav__link:hover{color:var(--md-accent-fg-color)}.md-nav--primary .md-nav__link{margin-top:0;padding:.6rem .8rem}.md-nav--primary .md-nav__link svg{margin-top:.1em}.md-nav--primary .md-nav__link>.md-nav__link{padding:0}[dir=ltr] .md-nav--primary .md-nav__link .md-nav__icon{margin-right:-.2rem}[dir=rtl] .md-nav--primary .md-nav__link .md-nav__icon{margin-left:-.2rem}.md-nav--primary .md-nav__link .md-nav__icon{font-size:1.2rem;height:1.2rem;width:1.2rem}.md-nav--primary .md-nav__link .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-nav--primary .md-nav__icon:after{transform:scale(-1)}.md-nav--primary .md-nav--secondary .md-nav{background-color:initial;position:static}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:1.4rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-right:1.4rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-right:2rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:2.6rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-right:2.6rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:3.2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-right:3.2rem}.md-nav--secondary{background-color:initial}.md-nav__toggle~.md-nav{display:flex;opacity:0;transform:translateX(100%);transition:transform .25s cubic-bezier(.8,0,.6,1),opacity 125ms 50ms}[dir=rtl] .md-nav__toggle~.md-nav{transform:translateX(-100%)}.md-nav__toggle:checked~.md-nav{opacity:1;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 125ms 125ms}.md-nav__toggle:checked~.md-nav>.md-nav__list{-webkit-backface-visibility:hidden;backface-visibility:hidden}}@media screen and (max-width:59.984375em){.md-nav--primary .md-nav__link[for=__toc]{display:flex}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--primary .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:flex}.md-nav__source{background-color:var(--md-primary-fg-color--dark);color:var(--md-primary-bg-color);display:block;padding:0 .2rem}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-nav--integrated .md-nav__link[for=__toc]{display:flex}.md-nav--integrated .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--integrated .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav{display:flex}}@media screen and (min-width:60em){.md-nav{margin-bottom:-.4rem}.md-nav--secondary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--secondary .md-nav__title[for=__toc]{scroll-snap-align:start}.md-nav--secondary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--secondary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--secondary .md-nav__list{padding-right:.6rem}.md-nav--secondary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--secondary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--secondary .md-nav__item>.md-nav__link{margin-left:.4rem}}@media screen and (min-width:76.25em){.md-nav{margin-bottom:-.4rem;transition:max-height .25s cubic-bezier(.86,0,.07,1)}.md-nav--primary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--primary .md-nav__title[for=__drawer]{scroll-snap-align:start}.md-nav--primary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--primary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--primary .md-nav__list{padding-right:.6rem}.md-nav--primary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--primary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--primary .md-nav__item>.md-nav__link{margin-left:.4rem}.md-nav__toggle~.md-nav{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .25s,visibility 0ms .25s;visibility:collapse}.md-nav__toggle~.md-nav>.md-nav__list{overflow:hidden}.md-nav__toggle.md-toggle--indeterminate~.md-nav,.md-nav__toggle:checked~.md-nav{grid-template-rows:1fr;opacity:1;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .15s .1s,visibility 0ms;visibility:visible}.md-nav__toggle.md-toggle--indeterminate~.md-nav{transition:none}.md-nav__item--nested>.md-nav>.md-nav__title{display:none}.md-nav__item--section{display:block;margin:1.25em 0}.md-nav__item--section:last-child{margin-bottom:0}.md-nav__item--section>.md-nav__link{font-weight:700}.md-nav__item--section>.md-nav__link[for]{color:var(--md-default-fg-color--light)}.md-nav__item--section>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav__item--section>.md-nav__link .md-icon,.md-nav__item--section>.md-nav__link>[for]{display:none}[dir=ltr] .md-nav__item--section>.md-nav{margin-left:-.6rem}[dir=rtl] .md-nav__item--section>.md-nav{margin-right:-.6rem}.md-nav__item--section>.md-nav{display:block;opacity:1;visibility:visible}.md-nav__item--section>.md-nav>.md-nav__list>.md-nav__item{padding:0}.md-nav__icon{border-radius:100%;height:.9rem;transition:background-color .25s;width:.9rem}.md-nav__icon:hover{background-color:var(--md-accent-fg-color--transparent)}.md-nav__icon:after{background-color:currentcolor;border-radius:100%;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:transform .25s;vertical-align:-.1rem;width:100%}[dir=rtl] .md-nav__icon:after{transform:rotate(180deg)}.md-nav__item--nested .md-nav__toggle:checked~.md-nav__link .md-nav__icon:after,.md-nav__item--nested .md-toggle--indeterminate~.md-nav__link .md-nav__icon:after{transform:rotate(90deg)}.md-nav--lifted>.md-nav__list>.md-nav__item,.md-nav--lifted>.md-nav__title{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active{display:block}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);margin-top:0;position:sticky;top:0;z-index:1}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active.md-nav__item--section{margin:0}[dir=ltr] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-left:-.6rem}[dir=rtl] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-right:-.6rem}.md-nav--lifted>.md-nav__list>.md-nav__item>[for]{color:var(--md-default-fg-color--light)}.md-nav--lifted .md-nav[data-md-level="1"]{grid-template-rows:1fr;opacity:1;visibility:visible}[dir=ltr] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-left:.05rem solid var(--md-primary-fg-color)}[dir=rtl] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-right:.05rem solid var(--md-primary-fg-color)}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{display:block;margin-bottom:1.25em;opacity:1;visibility:visible}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__list{overflow:visible;padding-bottom:0}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__title{display:none}}.md-pagination{font-size:.8rem;font-weight:700;gap:.4rem}.md-pagination,.md-pagination>*{align-items:center;display:flex;justify-content:center}.md-pagination>*{border-radius:.2rem;height:1.8rem;min-width:1.8rem;text-align:center}.md-pagination__current{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light)}.md-pagination__link{transition:color 125ms,background-color 125ms}.md-pagination__link:focus,.md-pagination__link:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-pagination__link:focus svg,.md-pagination__link:hover svg{color:var(--md-accent-fg-color)}.md-pagination__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-pagination__link svg{fill:currentcolor;color:var(--md-default-fg-color--lighter);display:block;max-height:100%;width:1.2rem}.md-post__back{border-bottom:.05rem solid var(--md-default-fg-color--lightest);margin-bottom:1.2rem;padding-bottom:1.2rem}@media screen and (max-width:76.234375em){.md-post__back{display:none}}[dir=rtl] .md-post__back svg{transform:scaleX(-1)}.md-post__authors{display:flex;flex-direction:column;gap:.6rem;margin:0 .6rem 1.2rem}.md-post .md-post__meta a{transition:color 125ms}.md-post .md-post__meta a:focus,.md-post .md-post__meta a:hover{color:var(--md-accent-fg-color)}.md-post__title{color:var(--md-default-fg-color--light);font-weight:700}.md-post--excerpt{margin-bottom:3.2rem}.md-post--excerpt .md-post__header{align-items:center;display:flex;gap:.6rem;min-height:1.6rem}.md-post--excerpt .md-post__authors{align-items:center;display:inline-flex;flex-direction:row;gap:.2rem;margin:0;min-height:2.4rem}[dir=ltr] .md-post--excerpt .md-post__meta .md-meta__list{margin-right:.4rem}[dir=rtl] .md-post--excerpt .md-post__meta .md-meta__list{margin-left:.4rem}.md-post--excerpt .md-post__content>:first-child{--md-scroll-margin:6rem;margin-top:0}.md-post>.md-nav--secondary{margin:1em 0}.md-profile{align-items:center;display:flex;font-size:.7rem;gap:.6rem;line-height:1.4;width:100%}.md-profile__description{flex-grow:1}.md-content--post{display:flex}@media screen and (max-width:76.234375em){.md-content--post{flex-flow:column-reverse}}.md-content--post>.md-content__inner{min-width:0}@media screen and (min-width:76.25em){[dir=ltr] .md-content--post>.md-content__inner{margin-left:1.2rem}[dir=rtl] .md-content--post>.md-content__inner{margin-right:1.2rem}}@media screen and (max-width:76.234375em){.md-sidebar.md-sidebar--post{padding:0;position:static;width:100%}.md-sidebar.md-sidebar--post .md-sidebar__scrollwrap{overflow:visible}.md-sidebar.md-sidebar--post .md-sidebar__inner{padding:0}.md-sidebar.md-sidebar--post .md-post__meta{margin-left:.6rem;margin-right:.6rem}.md-sidebar.md-sidebar--post .md-nav__item{border:none;display:inline}.md-sidebar.md-sidebar--post .md-nav__list{display:inline-flex;flex-wrap:wrap;gap:.6rem;padding-bottom:.6rem;padding-top:.6rem}.md-sidebar.md-sidebar--post .md-nav__link{padding:0}.md-sidebar.md-sidebar--post .md-nav{height:auto;margin-bottom:0;position:static}}:root{--md-progress-value:0;--md-progress-delay:400ms}.md-progress{background:var(--md-primary-bg-color);height:.075rem;opacity:min(clamp(0,var(--md-progress-value),1),clamp(0,100 - var(--md-progress-value),1));position:fixed;top:0;transform:scaleX(calc(var(--md-progress-value)*1%));transform-origin:left;transition:transform .5s cubic-bezier(.19,1,.22,1),opacity .25s var(--md-progress-delay);width:100%;z-index:4}:root{--md-search-result-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5Z"/></svg>')}.md-search{position:relative}@media screen and (min-width:60em){.md-search{padding:.2rem 0}}.no-js .md-search{display:none}.md-search__overlay{opacity:0;z-index:1}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__overlay{left:-2.2rem}[dir=rtl] .md-search__overlay{right:-2.2rem}.md-search__overlay{background-color:var(--md-default-bg-color);border-radius:1rem;height:2rem;overflow:hidden;pointer-events:none;position:absolute;top:-1rem;transform-origin:center;transition:transform .3s .1s,opacity .2s .2s;width:2rem}[data-md-toggle=search]:checked~.md-header .md-search__overlay{opacity:1;transition:transform .4s,opacity .1s}}@media screen and (min-width:60em){[dir=ltr] .md-search__overlay{left:0}[dir=rtl] .md-search__overlay{right:0}.md-search__overlay{background-color:#0000008a;cursor:pointer;height:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0}[data-md-toggle=search]:checked~.md-header .md-search__overlay{height:200vh;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@media screen and (max-width:29.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(45)}}@media screen and (min-width:30em) and (max-width:44.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(60)}}@media screen and (min-width:45em) and (max-width:59.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(75)}}.md-search__inner{-webkit-backface-visibility:hidden;backface-visibility:hidden}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__inner{left:0}[dir=rtl] .md-search__inner{right:0}.md-search__inner{height:0;opacity:0;overflow:hidden;position:fixed;top:0;transform:translateX(5%);transition:width 0ms .3s,height 0ms .3s,transform .15s cubic-bezier(.4,0,.2,1) .15s,opacity .15s .15s;width:0;z-index:2}[dir=rtl] .md-search__inner{transform:translateX(-5%)}[data-md-toggle=search]:checked~.md-header .md-search__inner{height:100%;opacity:1;transform:translateX(0);transition:width 0ms 0ms,height 0ms 0ms,transform .15s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__inner{float:right}[dir=rtl] .md-search__inner{float:left}.md-search__inner{padding:.1rem 0;position:relative;transition:width .25s cubic-bezier(.1,.7,.1,1);width:11.7rem}}@media screen and (min-width:60em) and (max-width:76.234375em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:23.4rem}}@media screen and (min-width:76.25em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:34.4rem}}.md-search__form{background-color:var(--md-default-bg-color);box-shadow:0 0 .6rem #0000;height:2.4rem;position:relative;transition:color .25s,background-color .25s;z-index:2}@media screen and (min-width:60em){.md-search__form{background-color:#00000042;border-radius:.1rem;height:1.8rem}.md-search__form:hover{background-color:#ffffff1f}}[data-md-toggle=search]:checked~.md-header .md-search__form{background-color:var(--md-default-bg-color);border-radius:.1rem .1rem 0 0;box-shadow:0 0 .6rem #00000012;color:var(--md-default-fg-color)}[dir=ltr] .md-search__input{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__input{padding-left:2.2rem;padding-right:3.6rem}.md-search__input{background:#0000;font-size:.9rem;height:100%;position:relative;text-overflow:ellipsis;width:100%;z-index:2}.md-search__input::placeholder{transition:color .25s}.md-search__input::placeholder,.md-search__input~.md-search__icon{color:var(--md-default-fg-color--light)}.md-search__input::-ms-clear{display:none}@media screen and (max-width:59.984375em){.md-search__input{font-size:.9rem;height:2.4rem;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__input{padding-left:2.2rem}[dir=rtl] .md-search__input{padding-right:2.2rem}.md-search__input{color:inherit;font-size:.8rem}.md-search__input::placeholder{color:var(--md-primary-bg-color--light)}.md-search__input+.md-search__icon{color:var(--md-primary-bg-color)}[data-md-toggle=search]:checked~.md-header .md-search__input{text-overflow:clip}[data-md-toggle=search]:checked~.md-header .md-search__input+.md-search__icon{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input::placeholder{color:#0000}}.md-search__icon{cursor:pointer;display:inline-block;height:1.2rem;transition:color .25s,opacity .25s;width:1.2rem}.md-search__icon:hover{opacity:.7}[dir=ltr] .md-search__icon[for=__search]{left:.5rem}[dir=rtl] .md-search__icon[for=__search]{right:.5rem}.md-search__icon[for=__search]{position:absolute;top:.3rem;z-index:2}[dir=rtl] .md-search__icon[for=__search] svg{transform:scaleX(-1)}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__icon[for=__search]{left:.8rem}[dir=rtl] .md-search__icon[for=__search]{right:.8rem}.md-search__icon[for=__search]{top:.6rem}.md-search__icon[for=__search] svg:first-child{display:none}}@media screen and (min-width:60em){.md-search__icon[for=__search]{pointer-events:none}.md-search__icon[for=__search] svg:last-child{display:none}}[dir=ltr] .md-search__options{right:.5rem}[dir=rtl] .md-search__options{left:.5rem}.md-search__options{pointer-events:none;position:absolute;top:.3rem;z-index:2}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__options{right:.8rem}[dir=rtl] .md-search__options{left:.8rem}.md-search__options{top:.6rem}}[dir=ltr] .md-search__options>.md-icon{margin-left:.2rem}[dir=rtl] .md-search__options>.md-icon{margin-right:.2rem}.md-search__options>.md-icon{color:var(--md-default-fg-color--light);opacity:0;transform:scale(.75);transition:transform .15s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-search__options>.md-icon:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon{opacity:1;pointer-events:auto;transform:scale(1)}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon:hover{opacity:.7}[dir=ltr] .md-search__suggest{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__suggest{padding-left:2.2rem;padding-right:3.6rem}.md-search__suggest{align-items:center;color:var(--md-default-fg-color--lighter);display:flex;font-size:.9rem;height:100%;opacity:0;position:absolute;top:0;transition:opacity 50ms;white-space:nowrap;width:100%}@media screen and (min-width:60em){[dir=ltr] .md-search__suggest{padding-left:2.2rem}[dir=rtl] .md-search__suggest{padding-right:2.2rem}.md-search__suggest{font-size:.8rem}}[data-md-toggle=search]:checked~.md-header .md-search__suggest{opacity:1;transition:opacity .3s .1s}[dir=ltr] .md-search__output{border-bottom-left-radius:.1rem}[dir=ltr] .md-search__output,[dir=rtl] .md-search__output{border-bottom-right-radius:.1rem}[dir=rtl] .md-search__output{border-bottom-left-radius:.1rem}.md-search__output{overflow:hidden;position:absolute;width:100%;z-index:1}@media screen and (max-width:59.984375em){.md-search__output{bottom:0;top:2.4rem}}@media screen and (min-width:60em){.md-search__output{opacity:0;top:1.9rem;transition:opacity .4s}[data-md-toggle=search]:checked~.md-header .md-search__output{box-shadow:var(--md-shadow-z3);opacity:1}}.md-search__scrollwrap{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);height:100%;overflow-y:auto;touch-action:pan-y}@media (-webkit-max-device-pixel-ratio:1),(max-resolution:1dppx){.md-search__scrollwrap{transform:translateZ(0)}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-search__scrollwrap{width:23.4rem}}@media screen and (min-width:76.25em){.md-search__scrollwrap{width:34.4rem}}@media screen and (min-width:60em){.md-search__scrollwrap{max-height:0;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}[data-md-toggle=search]:checked~.md-header .md-search__scrollwrap{max-height:75vh}.md-search__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-search__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-search__scrollwrap::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-search__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}}.md-search-result{color:var(--md-default-fg-color);word-break:break-word}.md-search-result__meta{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.8rem;padding:0 .8rem;scroll-snap-align:start}@media screen and (min-width:60em){[dir=ltr] .md-search-result__meta{padding-left:2.2rem}[dir=rtl] .md-search-result__meta{padding-right:2.2rem}}.md-search-result__list{list-style:none;margin:0;padding:0;-webkit-user-select:none;user-select:none}.md-search-result__item{box-shadow:0 -.05rem var(--md-default-fg-color--lightest)}.md-search-result__item:first-child{box-shadow:none}.md-search-result__link{display:block;outline:none;scroll-snap-align:start;transition:background-color .25s}.md-search-result__link:focus,.md-search-result__link:hover{background-color:var(--md-accent-fg-color--transparent)}.md-search-result__link:last-child p:last-child{margin-bottom:.6rem}.md-search-result__more>summary{cursor:pointer;display:block;outline:none;position:sticky;scroll-snap-align:start;top:0;z-index:1}.md-search-result__more>summary::marker{display:none}.md-search-result__more>summary::-webkit-details-marker{display:none}.md-search-result__more>summary>div{color:var(--md-typeset-a-color);font-size:.64rem;padding:.75em .8rem;transition:color .25s,background-color .25s}@media screen and (min-width:60em){[dir=ltr] .md-search-result__more>summary>div{padding-left:2.2rem}[dir=rtl] .md-search-result__more>summary>div{padding-right:2.2rem}}.md-search-result__more>summary:focus>div,.md-search-result__more>summary:hover>div{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-search-result__more[open]>summary{background-color:var(--md-default-bg-color)}.md-search-result__article{overflow:hidden;padding:0 .8rem;position:relative}@media screen and (min-width:60em){[dir=ltr] .md-search-result__article{padding-left:2.2rem}[dir=rtl] .md-search-result__article{padding-right:2.2rem}}[dir=ltr] .md-search-result__icon{left:0}[dir=rtl] .md-search-result__icon{right:0}.md-search-result__icon{color:var(--md-default-fg-color--light);height:1.2rem;margin:.5rem;position:absolute;width:1.2rem}@media screen and (max-width:59.984375em){.md-search-result__icon{display:none}}.md-search-result__icon:after{background-color:currentcolor;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-search-result-icon);mask-image:var(--md-search-result-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-search-result__icon:after{transform:scaleX(-1)}.md-search-result .md-typeset{color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.6}.md-search-result .md-typeset h1{color:var(--md-default-fg-color);font-size:.8rem;font-weight:400;line-height:1.4;margin:.55rem 0}.md-search-result .md-typeset h1 mark{text-decoration:none}.md-search-result .md-typeset h2{color:var(--md-default-fg-color);font-size:.64rem;font-weight:700;line-height:1.6;margin:.5em 0}.md-search-result .md-typeset h2 mark{text-decoration:none}.md-search-result__terms{color:var(--md-default-fg-color);display:block;font-size:.64rem;font-style:italic;margin:.5em 0}.md-search-result mark{background-color:initial;color:var(--md-accent-fg-color);text-decoration:underline}.md-select{position:relative;z-index:1}.md-select__inner{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);left:50%;margin-top:.2rem;max-height:0;opacity:0;position:absolute;top:calc(100% - .2rem);transform:translate3d(-50%,.3rem,0);transition:transform .25s 375ms,opacity .25s .25s,max-height 0ms .5s}.md-select:focus-within .md-select__inner,.md-select:hover .md-select__inner{max-height:10rem;opacity:1;transform:translate3d(-50%,0,0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,max-height 0ms}.md-select__inner:after{border-bottom:.2rem solid #0000;border-bottom-color:var(--md-default-bg-color);border-left:.2rem solid #0000;border-right:.2rem solid #0000;border-top:0;content:"";height:0;left:50%;margin-left:-.2rem;margin-top:-.2rem;position:absolute;top:0;width:0}.md-select__list{border-radius:.1rem;font-size:.8rem;list-style-type:none;margin:0;max-height:inherit;overflow:auto;padding:0}.md-select__item{line-height:1.8rem}[dir=ltr] .md-select__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-select__link{padding-left:1.2rem;padding-right:.6rem}.md-select__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:background-color .25s,color .25s;width:100%}.md-select__link:focus,.md-select__link:hover{color:var(--md-accent-fg-color)}.md-select__link:focus{background-color:var(--md-default-fg-color--lightest)}.md-sidebar{align-self:flex-start;flex-shrink:0;padding:1.2rem 0;position:sticky;top:2.4rem;width:12.1rem}@media print{.md-sidebar{display:none}}@media screen and (max-width:76.234375em){[dir=ltr] .md-sidebar--primary{left:-12.1rem}[dir=rtl] .md-sidebar--primary{right:-12.1rem}.md-sidebar--primary{background-color:var(--md-default-bg-color);display:block;height:100%;position:fixed;top:0;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;width:12.1rem;z-index:5}[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{box-shadow:var(--md-shadow-z3);transform:translateX(12.1rem)}[dir=rtl] [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{transform:translateX(-12.1rem)}.md-sidebar--primary .md-sidebar__scrollwrap{bottom:0;left:0;margin:0;overflow:hidden;position:absolute;right:0;scroll-snap-type:none;top:0}}@media screen and (min-width:76.25em){.md-sidebar{height:0}.no-js .md-sidebar{height:auto}.md-header--lifted~.md-container .md-sidebar{top:4.8rem}}.md-sidebar--secondary{display:none;order:2}@media screen and (min-width:60em){.md-sidebar--secondary{height:0}.no-js .md-sidebar--secondary{height:auto}.md-sidebar--secondary:not([hidden]){display:block}.md-sidebar--secondary .md-sidebar__scrollwrap{touch-action:pan-y}}.md-sidebar__scrollwrap{scrollbar-gutter:stable;-webkit-backface-visibility:hidden;backface-visibility:hidden;margin:0 .2rem;overflow-y:auto;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}.md-sidebar__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-sidebar__scrollwrap:focus-within,.md-sidebar__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb:hover,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}@supports selector(::-webkit-scrollbar){.md-sidebar__scrollwrap{scrollbar-gutter:auto}[dir=ltr] .md-sidebar__inner{padding-right:calc(100% - 11.5rem)}[dir=rtl] .md-sidebar__inner{padding-left:calc(100% - 11.5rem)}}@media screen and (max-width:76.234375em){.md-overlay{background-color:#0000008a;height:0;opacity:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0;z-index:5}[data-md-toggle=drawer]:checked~.md-overlay{height:100%;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@keyframes facts{0%{height:0}to{height:.65rem}}@keyframes fact{0%{opacity:0;transform:translateY(100%)}50%{opacity:0}to{opacity:1;transform:translateY(0)}}:root{--md-source-forks-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"/></svg>');--md-source-repositories-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"/></svg>');--md-source-stars-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"/></svg>');--md-source-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"/></svg>')}.md-source{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;font-size:.65rem;line-height:1.2;outline-color:var(--md-accent-fg-color);transition:opacity .25s;white-space:nowrap}.md-source:hover{opacity:.7}.md-source__icon{display:inline-block;height:2.4rem;vertical-align:middle;width:2rem}[dir=ltr] .md-source__icon svg{margin-left:.6rem}[dir=rtl] .md-source__icon svg{margin-right:.6rem}.md-source__icon svg{margin-top:.6rem}[dir=ltr] .md-source__icon+.md-source__repository{padding-left:2rem}[dir=rtl] .md-source__icon+.md-source__repository{padding-right:2rem}[dir=ltr] .md-source__icon+.md-source__repository{margin-left:-2rem}[dir=rtl] .md-source__icon+.md-source__repository{margin-right:-2rem}[dir=ltr] .md-source__repository{margin-left:.6rem}[dir=rtl] .md-source__repository{margin-right:.6rem}.md-source__repository{display:inline-block;max-width:calc(100% - 1.2rem);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.md-source__facts{display:flex;font-size:.55rem;gap:.4rem;list-style-type:none;margin:.1rem 0 0;opacity:.75;overflow:hidden;padding:0;width:100%}.md-source__repository--active .md-source__facts{animation:facts .25s ease-in}.md-source__fact{overflow:hidden;text-overflow:ellipsis}.md-source__repository--active .md-source__fact{animation:fact .4s ease-out}[dir=ltr] .md-source__fact:before{margin-right:.1rem}[dir=rtl] .md-source__fact:before{margin-left:.1rem}.md-source__fact:before{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-top;width:.6rem}.md-source__fact:nth-child(1n+2){flex-shrink:0}.md-source__fact--version:before{-webkit-mask-image:var(--md-source-version-icon);mask-image:var(--md-source-version-icon)}.md-source__fact--stars:before{-webkit-mask-image:var(--md-source-stars-icon);mask-image:var(--md-source-stars-icon)}.md-source__fact--forks:before{-webkit-mask-image:var(--md-source-forks-icon);mask-image:var(--md-source-forks-icon)}.md-source__fact--repositories:before{-webkit-mask-image:var(--md-source-repositories-icon);mask-image:var(--md-source-repositories-icon)}.md-source-file{margin:1em 0}[dir=ltr] .md-source-file__fact{margin-right:.6rem}[dir=rtl] .md-source-file__fact{margin-left:.6rem}.md-source-file__fact{align-items:center;color:var(--md-default-fg-color--light);display:inline-flex;font-size:.68rem;gap:.3rem}.md-source-file__fact .md-icon{flex-shrink:0;margin-bottom:.05rem}[dir=ltr] .md-source-file__fact .md-author{float:left}[dir=rtl] .md-source-file__fact .md-author{float:right}.md-source-file__fact .md-author{margin-right:.2rem}.md-source-file__fact svg{width:.9rem}:root{--md-status:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/></svg>');--md-status--new:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-10 5h-2v-2h2v2m0-4h-2V7h2v6Z"/></svg>');--md-status--deprecated:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/></svg>');--md-status--encrypted:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4m0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3Z"/></svg>')}.md-status:after{background-color:var(--md-default-fg-color--light);content:"";display:inline-block;height:1.125em;-webkit-mask-image:var(--md-status);mask-image:var(--md-status);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-bottom;width:1.125em}.md-status:hover:after{background-color:currentcolor}.md-status--new:after{-webkit-mask-image:var(--md-status--new);mask-image:var(--md-status--new)}.md-status--deprecated:after{-webkit-mask-image:var(--md-status--deprecated);mask-image:var(--md-status--deprecated)}.md-status--encrypted:after{-webkit-mask-image:var(--md-status--encrypted);mask-image:var(--md-status--encrypted)}.md-tabs{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);display:block;line-height:1.3;overflow:auto;width:100%;z-index:3}@media print{.md-tabs{display:none}}@media screen and (max-width:76.234375em){.md-tabs{display:none}}.md-tabs[hidden]{pointer-events:none}[dir=ltr] .md-tabs__list{margin-left:.2rem}[dir=rtl] .md-tabs__list{margin-right:.2rem}.md-tabs__list{contain:content;display:flex;list-style:none;margin:0;overflow:auto;padding:0;scrollbar-width:none;white-space:nowrap}.md-tabs__list::-webkit-scrollbar{display:none}.md-tabs__item{height:2.4rem;padding-left:.6rem;padding-right:.6rem}.md-tabs__item--active .md-tabs__link{color:inherit;opacity:1}.md-tabs__link{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;font-size:.7rem;margin-top:.8rem;opacity:.7;outline-color:var(--md-accent-fg-color);outline-offset:.2rem;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .25s}.md-tabs__link:focus,.md-tabs__link:hover{color:inherit;opacity:1}[dir=ltr] .md-tabs__link svg{margin-right:.4rem}[dir=rtl] .md-tabs__link svg{margin-left:.4rem}.md-tabs__link svg{fill:currentcolor;height:1.3em}.md-tabs__item:nth-child(2) .md-tabs__link{transition-delay:20ms}.md-tabs__item:nth-child(3) .md-tabs__link{transition-delay:40ms}.md-tabs__item:nth-child(4) .md-tabs__link{transition-delay:60ms}.md-tabs__item:nth-child(5) .md-tabs__link{transition-delay:80ms}.md-tabs__item:nth-child(6) .md-tabs__link{transition-delay:.1s}.md-tabs__item:nth-child(7) .md-tabs__link{transition-delay:.12s}.md-tabs__item:nth-child(8) .md-tabs__link{transition-delay:.14s}.md-tabs__item:nth-child(9) .md-tabs__link{transition-delay:.16s}.md-tabs__item:nth-child(10) .md-tabs__link{transition-delay:.18s}.md-tabs__item:nth-child(11) .md-tabs__link{transition-delay:.2s}.md-tabs__item:nth-child(12) .md-tabs__link{transition-delay:.22s}.md-tabs__item:nth-child(13) .md-tabs__link{transition-delay:.24s}.md-tabs__item:nth-child(14) .md-tabs__link{transition-delay:.26s}.md-tabs__item:nth-child(15) .md-tabs__link{transition-delay:.28s}.md-tabs__item:nth-child(16) .md-tabs__link{transition-delay:.3s}.md-tabs[hidden] .md-tabs__link{opacity:0;transform:translateY(50%);transition:transform 0ms .1s,opacity .1s}:root{--md-tag-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5.41 21 .71-4h-4l.35-2h4l1.06-6h-4l.35-2h4l.71-4h2l-.71 4h6l.71-4h2l-.71 4h4l-.35 2h-4l-1.06 6h4l-.35 2h-4l-.71 4h-2l.71-4h-6l-.71 4h-2M9.53 9l-1.06 6h6l1.06-6h-6Z"/></svg>')}.md-typeset .md-tags:not([hidden]){display:inline-flex;flex-wrap:wrap;gap:.5em;margin-bottom:.75em;margin-top:-.125em}.md-typeset .md-tag{align-items:center;background:var(--md-default-fg-color--lightest);border-radius:2.4rem;display:inline-flex;font-size:.64rem;font-size:min(.8em,.64rem);font-weight:700;gap:.5em;letter-spacing:normal;line-height:1.6;padding:.3125em .78125em}.md-typeset .md-tag[href]{-webkit-tap-highlight-color:transparent;color:inherit;outline:none;transition:color 125ms,background-color 125ms}.md-typeset .md-tag[href]:focus,.md-typeset .md-tag[href]:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[id]>.md-typeset .md-tag{vertical-align:text-top}.md-typeset .md-tag-icon:before{background-color:var(--md-default-fg-color--lighter);content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-tag-icon);mask-image:var(--md-tag-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset .md-tag-icon[href]:focus:before,.md-typeset .md-tag-icon[href]:hover:before{background-color:var(--md-accent-bg-color)}@keyframes pulse{0%{transform:scale(.95)}75%{transform:scale(1)}to{transform:scale(.95)}}:root{--md-annotation-bg-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-annotation-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 13h-4v4h-2v-4H7v-2h4V7h2v4h4m-5-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-tooltip-width:20rem}.md-tooltip{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);font-family:var(--md-text-font-family);left:clamp(var(--md-tooltip-0,0rem) + .8rem,var(--md-tooltip-x),100vw + var(--md-tooltip-0,0rem) + .8rem - var(--md-tooltip-width) - 2 * .8rem);max-width:calc(100vw - 1.6rem);opacity:0;position:absolute;top:var(--md-tooltip-y);transform:translateY(-.4rem);transition:transform 0ms .25s,opacity .25s,z-index .25s;width:var(--md-tooltip-width);z-index:0}.md-tooltip--active{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,z-index 0ms;z-index:2}.md-tooltip--inline{font-weight:700;-webkit-user-select:none;user-select:none;width:auto}.md-tooltip--inline:not(.md-tooltip--active){transform:translateY(.2rem) scale(.9)}.md-tooltip--inline .md-tooltip__inner{font-size:.5rem;padding:.2rem .4rem}[hidden]+.md-tooltip--inline{display:none}.focus-visible>.md-tooltip,.md-tooltip:target{outline:var(--md-accent-fg-color) auto}.md-tooltip__inner{font-size:.64rem;padding:.8rem}.md-tooltip__inner.md-typeset>:first-child{margin-top:0}.md-tooltip__inner.md-typeset>:last-child{margin-bottom:0}.md-annotation{font-weight:400;outline:none;vertical-align:text-bottom;white-space:normal}[dir=rtl] .md-annotation{direction:rtl}code .md-annotation{font-family:var(--md-code-font-family);font-size:inherit}.md-annotation:not([hidden]){display:inline-block;line-height:1.25}.md-annotation__index{border-radius:.01px;cursor:pointer;display:inline-block;margin-left:.4ch;margin-right:.4ch;outline:none;overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;vertical-align:text-top;z-index:0}.md-annotation .md-annotation__index{transition:z-index .25s}@media screen{.md-annotation__index{width:2.2ch}[data-md-visible]>.md-annotation__index{animation:pulse 2s infinite}.md-annotation__index:before{background:var(--md-default-bg-color);-webkit-mask-image:var(--md-annotation-bg-icon);mask-image:var(--md-annotation-bg-icon)}.md-annotation__index:after,.md-annotation__index:before{content:"";height:2.2ch;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:-.1ch;width:2.2ch;z-index:-1}.md-annotation__index:after{background-color:var(--md-default-fg-color--lighter);-webkit-mask-image:var(--md-annotation-icon);mask-image:var(--md-annotation-icon);transform:scale(1.0001);transition:background-color .25s,transform .25s}.md-tooltip--active+.md-annotation__index:after{transform:rotate(45deg)}.md-tooltip--active+.md-annotation__index:after,:hover>.md-annotation__index:after{background-color:var(--md-accent-fg-color)}}.md-tooltip--active+.md-annotation__index{animation-play-state:paused;transition-duration:0ms;z-index:2}.md-annotation__index [data-md-annotation-id]{display:inline-block}@media print{.md-annotation__index [data-md-annotation-id]{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);font-weight:700;padding:0 .6ch;white-space:nowrap}.md-annotation__index [data-md-annotation-id]:after{content:attr(data-md-annotation-id)}}.md-typeset .md-annotation-list{counter-reset:xxx;list-style:none}.md-typeset .md-annotation-list li{position:relative}[dir=ltr] .md-typeset .md-annotation-list li:before{left:-2.125em}[dir=rtl] .md-typeset .md-annotation-list li:before{right:-2.125em}.md-typeset .md-annotation-list li:before{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);content:counter(xxx);counter-increment:xxx;font-size:.8875em;font-weight:700;height:2ch;line-height:1.25;min-width:2ch;padding:0 .6ch;position:absolute;text-align:center;top:.25em}[dir=ltr] .md-top{margin-left:50%}[dir=rtl] .md-top{margin-right:50%}.md-top{background-color:var(--md-default-bg-color);border-radius:1.6rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color--light);cursor:pointer;display:block;font-size:.7rem;outline:none;padding:.4rem .8rem;position:fixed;top:3.2rem;transform:translate(-50%);transition:color 125ms,background-color 125ms,transform 125ms cubic-bezier(.4,0,.2,1),opacity 125ms;z-index:2}@media print{.md-top{display:none}}[dir=rtl] .md-top{transform:translate(50%)}.md-top[hidden]{opacity:0;pointer-events:none;transform:translate(-50%,.2rem);transition-duration:0ms}[dir=rtl] .md-top[hidden]{transform:translate(50%,.2rem)}.md-top:focus,.md-top:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}.md-top svg{display:inline-block;vertical-align:-.5em}@keyframes hoverfix{0%{pointer-events:none}}:root{--md-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301 191.9 288 191.9L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>')}.md-version{flex-shrink:0;font-size:.8rem;height:2.4rem}[dir=ltr] .md-version__current{margin-left:1.4rem;margin-right:.4rem}[dir=rtl] .md-version__current{margin-left:.4rem;margin-right:1.4rem}.md-version__current{color:inherit;cursor:pointer;outline:none;position:relative;top:.05rem}[dir=ltr] .md-version__current:after{margin-left:.4rem}[dir=rtl] .md-version__current:after{margin-right:.4rem}.md-version__current:after{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-image:var(--md-version-icon);mask-image:var(--md-version-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.4rem}.md-version__list{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);list-style-type:none;margin:.2rem .8rem;max-height:0;opacity:0;overflow:auto;padding:0;position:absolute;scroll-snap-type:y mandatory;top:.15rem;transition:max-height 0ms .5s,opacity .25s .25s;z-index:3}.md-version:focus-within .md-version__list,.md-version:hover .md-version__list{max-height:10rem;opacity:1;transition:max-height 0ms,opacity .25s}@media (hover:none),(pointer:coarse){.md-version:hover .md-version__list{animation:hoverfix .25s forwards}.md-version:focus-within .md-version__list{animation:none}}.md-version__item{line-height:1.8rem}[dir=ltr] .md-version__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-version__link{padding-left:1.2rem;padding-right:.6rem}.md-version__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:color .25s,background-color .25s;white-space:nowrap;width:100%}.md-version__link:focus,.md-version__link:hover{color:var(--md-accent-fg-color)}.md-version__link:focus{background-color:var(--md-default-fg-color--lightest)}:root{--md-admonition-icon--note:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m3.1 5.07c.14 0 .28.05.4.16l1.27 1.27c.23.22.23.57 0 .78l-1 1-2.05-2.05 1-1c.1-.11.24-.16.38-.16m-1.97 1.74 2.06 2.06-6.06 6.06H7.07v-2.06l6.06-6.06Z"/></svg>');--md-admonition-icon--abstract:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/></svg>');--md-admonition-icon--info:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-admonition-icon--tip:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27Z"/></svg>');--md-admonition-icon--success:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59 21 7Z"/></svg>');--md-admonition-icon--question:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10Z"/></svg>');--md-admonition-icon--warning:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21Z"/></svg>');--md-admonition-icon--failure:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>');--md-admonition-icon--danger:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2Z"/></svg>');--md-admonition-icon--bug:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 13h2v1h-2v-1m10-8v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4 9 4m-4 5h-2.2c-.2-.6-.6-1.1-1.1-1.5l1.2-1.2-.7-.7L12.8 8H12c-.2 0-.5 0-.7.1L9.9 6.6l-.8.8 1.2 1.2c-.5.3-.9.8-1.1 1.4H7v1h2v1H7v1h2v1H7v1h2.2c.4 1.2 1.5 2 2.8 2s2.4-.8 2.8-2H17v-1h-2v-1h2v-1h-2v-1h2v-1m-6 2h2v-1h-2v1Z"/></svg>');--md-admonition-icon--example:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v2h1v14a4 4 0 0 0 4 4 4 4 0 0 0 4-4V4h1V2H7m4 14c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m2-4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m1-5h-4V4h4v3Z"/></svg>');--md-admonition-icon--quote:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4Z"/></svg>')}.md-typeset .admonition,.md-typeset details{background-color:var(--md-admonition-bg-color);border:.075rem solid #448aff;border-radius:.2rem;box-shadow:var(--md-shadow-z1);color:var(--md-admonition-fg-color);display:flow-root;font-size:.64rem;margin:1.5625em 0;padding:0 .6rem;page-break-inside:avoid;transition:box-shadow 125ms}@media print{.md-typeset .admonition,.md-typeset details{box-shadow:none}}.md-typeset .admonition:focus-within,.md-typeset details:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .admonition>*,.md-typeset details>*{box-sizing:border-box}.md-typeset .admonition .admonition,.md-typeset .admonition details,.md-typeset details .admonition,.md-typeset details details{margin-bottom:1em;margin-top:1em}.md-typeset .admonition .md-typeset__scrollwrap,.md-typeset details .md-typeset__scrollwrap{margin:1em -.6rem}.md-typeset .admonition .md-typeset__table,.md-typeset details .md-typeset__table{padding:0 .6rem}.md-typeset .admonition>.tabbed-set:only-child,.md-typeset details>.tabbed-set:only-child{margin-top:0}html .md-typeset .admonition>:last-child,html .md-typeset details>:last-child{margin-bottom:.6rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{padding-left:2rem;padding-right:.6rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{padding-left:.6rem;padding-right:2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-left-width:.2rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-right-width:.2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset .admonition-title,.md-typeset summary{background-color:#448aff1a;border:none;font-weight:700;margin:0 -.6rem;padding-bottom:.4rem;padding-top:.4rem;position:relative}html .md-typeset .admonition-title:last-child,html .md-typeset summary:last-child{margin-bottom:0}[dir=ltr] .md-typeset .admonition-title:before,[dir=ltr] .md-typeset summary:before{left:.6rem}[dir=rtl] .md-typeset .admonition-title:before,[dir=rtl] .md-typeset summary:before{right:.6rem}.md-typeset .admonition-title:before,.md-typeset summary:before{background-color:#448aff;content:"";height:1rem;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;width:1rem}.md-typeset .admonition-title code,.md-typeset summary code{box-shadow:0 0 0 .05rem var(--md-default-fg-color--lightest)}.md-typeset .admonition.note,.md-typeset details.note{border-color:#448aff}.md-typeset .admonition.note:focus-within,.md-typeset details.note:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .note>.admonition-title,.md-typeset .note>summary{background-color:#448aff1a}.md-typeset .note>.admonition-title:before,.md-typeset .note>summary:before{background-color:#448aff;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note)}.md-typeset .note>.admonition-title:after,.md-typeset .note>summary:after{color:#448aff}.md-typeset .admonition.abstract,.md-typeset details.abstract{border-color:#00b0ff}.md-typeset .admonition.abstract:focus-within,.md-typeset details.abstract:focus-within{box-shadow:0 0 0 .2rem #00b0ff1a}.md-typeset .abstract>.admonition-title,.md-typeset .abstract>summary{background-color:#00b0ff1a}.md-typeset .abstract>.admonition-title:before,.md-typeset .abstract>summary:before{background-color:#00b0ff;-webkit-mask-image:var(--md-admonition-icon--abstract);mask-image:var(--md-admonition-icon--abstract)}.md-typeset .abstract>.admonition-title:after,.md-typeset .abstract>summary:after{color:#00b0ff}.md-typeset .admonition.info,.md-typeset details.info{border-color:#00b8d4}.md-typeset .admonition.info:focus-within,.md-typeset details.info:focus-within{box-shadow:0 0 0 .2rem #00b8d41a}.md-typeset .info>.admonition-title,.md-typeset .info>summary{background-color:#00b8d41a}.md-typeset .info>.admonition-title:before,.md-typeset .info>summary:before{background-color:#00b8d4;-webkit-mask-image:var(--md-admonition-icon--info);mask-image:var(--md-admonition-icon--info)}.md-typeset .info>.admonition-title:after,.md-typeset .info>summary:after{color:#00b8d4}.md-typeset .admonition.tip,.md-typeset details.tip{border-color:#00bfa5}.md-typeset .admonition.tip:focus-within,.md-typeset details.tip:focus-within{box-shadow:0 0 0 .2rem #00bfa51a}.md-typeset .tip>.admonition-title,.md-typeset .tip>summary{background-color:#00bfa51a}.md-typeset .tip>.admonition-title:before,.md-typeset .tip>summary:before{background-color:#00bfa5;-webkit-mask-image:var(--md-admonition-icon--tip);mask-image:var(--md-admonition-icon--tip)}.md-typeset .tip>.admonition-title:after,.md-typeset .tip>summary:after{color:#00bfa5}.md-typeset .admonition.success,.md-typeset details.success{border-color:#00c853}.md-typeset .admonition.success:focus-within,.md-typeset details.success:focus-within{box-shadow:0 0 0 .2rem #00c8531a}.md-typeset .success>.admonition-title,.md-typeset .success>summary{background-color:#00c8531a}.md-typeset .success>.admonition-title:before,.md-typeset .success>summary:before{background-color:#00c853;-webkit-mask-image:var(--md-admonition-icon--success);mask-image:var(--md-admonition-icon--success)}.md-typeset .success>.admonition-title:after,.md-typeset .success>summary:after{color:#00c853}.md-typeset .admonition.question,.md-typeset details.question{border-color:#64dd17}.md-typeset .admonition.question:focus-within,.md-typeset details.question:focus-within{box-shadow:0 0 0 .2rem #64dd171a}.md-typeset .question>.admonition-title,.md-typeset .question>summary{background-color:#64dd171a}.md-typeset .question>.admonition-title:before,.md-typeset .question>summary:before{background-color:#64dd17;-webkit-mask-image:var(--md-admonition-icon--question);mask-image:var(--md-admonition-icon--question)}.md-typeset .question>.admonition-title:after,.md-typeset .question>summary:after{color:#64dd17}.md-typeset .admonition.warning,.md-typeset details.warning{border-color:#ff9100}.md-typeset .admonition.warning:focus-within,.md-typeset details.warning:focus-within{box-shadow:0 0 0 .2rem #ff91001a}.md-typeset .warning>.admonition-title,.md-typeset .warning>summary{background-color:#ff91001a}.md-typeset .warning>.admonition-title:before,.md-typeset .warning>summary:before{background-color:#ff9100;-webkit-mask-image:var(--md-admonition-icon--warning);mask-image:var(--md-admonition-icon--warning)}.md-typeset .warning>.admonition-title:after,.md-typeset .warning>summary:after{color:#ff9100}.md-typeset .admonition.failure,.md-typeset details.failure{border-color:#ff5252}.md-typeset .admonition.failure:focus-within,.md-typeset details.failure:focus-within{box-shadow:0 0 0 .2rem #ff52521a}.md-typeset .failure>.admonition-title,.md-typeset .failure>summary{background-color:#ff52521a}.md-typeset .failure>.admonition-title:before,.md-typeset .failure>summary:before{background-color:#ff5252;-webkit-mask-image:var(--md-admonition-icon--failure);mask-image:var(--md-admonition-icon--failure)}.md-typeset .failure>.admonition-title:after,.md-typeset .failure>summary:after{color:#ff5252}.md-typeset .admonition.danger,.md-typeset details.danger{border-color:#ff1744}.md-typeset .admonition.danger:focus-within,.md-typeset details.danger:focus-within{box-shadow:0 0 0 .2rem #ff17441a}.md-typeset .danger>.admonition-title,.md-typeset .danger>summary{background-color:#ff17441a}.md-typeset .danger>.admonition-title:before,.md-typeset .danger>summary:before{background-color:#ff1744;-webkit-mask-image:var(--md-admonition-icon--danger);mask-image:var(--md-admonition-icon--danger)}.md-typeset .danger>.admonition-title:after,.md-typeset .danger>summary:after{color:#ff1744}.md-typeset .admonition.bug,.md-typeset details.bug{border-color:#f50057}.md-typeset .admonition.bug:focus-within,.md-typeset details.bug:focus-within{box-shadow:0 0 0 .2rem #f500571a}.md-typeset .bug>.admonition-title,.md-typeset .bug>summary{background-color:#f500571a}.md-typeset .bug>.admonition-title:before,.md-typeset .bug>summary:before{background-color:#f50057;-webkit-mask-image:var(--md-admonition-icon--bug);mask-image:var(--md-admonition-icon--bug)}.md-typeset .bug>.admonition-title:after,.md-typeset .bug>summary:after{color:#f50057}.md-typeset .admonition.example,.md-typeset details.example{border-color:#7c4dff}.md-typeset .admonition.example:focus-within,.md-typeset details.example:focus-within{box-shadow:0 0 0 .2rem #7c4dff1a}.md-typeset .example>.admonition-title,.md-typeset .example>summary{background-color:#7c4dff1a}.md-typeset .example>.admonition-title:before,.md-typeset .example>summary:before{background-color:#7c4dff;-webkit-mask-image:var(--md-admonition-icon--example);mask-image:var(--md-admonition-icon--example)}.md-typeset .example>.admonition-title:after,.md-typeset .example>summary:after{color:#7c4dff}.md-typeset .admonition.quote,.md-typeset details.quote{border-color:#9e9e9e}.md-typeset .admonition.quote:focus-within,.md-typeset details.quote:focus-within{box-shadow:0 0 0 .2rem #9e9e9e1a}.md-typeset .quote>.admonition-title,.md-typeset .quote>summary{background-color:#9e9e9e1a}.md-typeset .quote>.admonition-title:before,.md-typeset .quote>summary:before{background-color:#9e9e9e;-webkit-mask-image:var(--md-admonition-icon--quote);mask-image:var(--md-admonition-icon--quote)}.md-typeset .quote>.admonition-title:after,.md-typeset .quote>summary:after{color:#9e9e9e}:root{--md-footnotes-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2Z"/></svg>')}.md-typeset .footnote{color:var(--md-default-fg-color--light);font-size:.64rem}[dir=ltr] .md-typeset .footnote>ol{margin-left:0}[dir=rtl] .md-typeset .footnote>ol{margin-right:0}.md-typeset .footnote>ol>li{transition:color 125ms}.md-typeset .footnote>ol>li:target{color:var(--md-default-fg-color)}.md-typeset .footnote>ol>li:focus-within .footnote-backref{opacity:1;transform:translateX(0);transition:none}.md-typeset .footnote>ol>li:hover .footnote-backref,.md-typeset .footnote>ol>li:target .footnote-backref{opacity:1;transform:translateX(0)}.md-typeset .footnote>ol>li>:first-child{margin-top:0}.md-typeset .footnote-ref{font-size:.75em;font-weight:700}html .md-typeset .footnote-ref{outline-offset:.1rem}.md-typeset [id^="fnref:"]:target>.footnote-ref{outline:auto}.md-typeset .footnote-backref{color:var(--md-typeset-a-color);display:inline-block;font-size:0;opacity:0;transform:translateX(.25rem);transition:color .25s,transform .25s .25s,opacity 125ms .25s;vertical-align:text-bottom}@media print{.md-typeset .footnote-backref{color:var(--md-typeset-a-color);opacity:1;transform:translateX(0)}}[dir=rtl] .md-typeset .footnote-backref{transform:translateX(-.25rem)}.md-typeset .footnote-backref:hover{color:var(--md-accent-fg-color)}.md-typeset .footnote-backref:before{background-color:currentcolor;content:"";display:inline-block;height:.8rem;-webkit-mask-image:var(--md-footnotes-icon);mask-image:var(--md-footnotes-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.8rem}[dir=rtl] .md-typeset .footnote-backref:before svg{transform:scaleX(-1)}[dir=ltr] .md-typeset .headerlink{margin-left:.5rem}[dir=rtl] .md-typeset .headerlink{margin-right:.5rem}.md-typeset .headerlink{color:var(--md-default-fg-color--lighter);display:inline-block;opacity:0;transition:color .25s,opacity 125ms}@media print{.md-typeset .headerlink{display:none}}.md-typeset .headerlink:focus,.md-typeset :hover>.headerlink,.md-typeset :target>.headerlink{opacity:1;transition:color .25s,opacity 125ms}.md-typeset .headerlink:focus,.md-typeset .headerlink:hover,.md-typeset :target>.headerlink{color:var(--md-accent-fg-color)}.md-typeset :target{--md-scroll-margin:3.6rem;--md-scroll-offset:0rem;scroll-margin-top:calc(var(--md-scroll-margin) - var(--md-scroll-offset))}@media screen and (min-width:76.25em){.md-header--lifted~.md-container .md-typeset :target{--md-scroll-margin:6rem}}.md-typeset h1:target,.md-typeset h2:target,.md-typeset h3:target{--md-scroll-offset:0.2rem}.md-typeset h4:target{--md-scroll-offset:0.15rem}.md-typeset div.arithmatex{overflow:auto}@media screen and (max-width:44.984375em){.md-typeset div.arithmatex{margin:0 -.8rem}.md-typeset div.arithmatex>*{width:-webkit-min-content;width:min-content}}.md-typeset div.arithmatex>*{margin-left:auto!important;margin-right:auto!important;padding:0 .8rem;touch-action:auto}.md-typeset div.arithmatex>* mjx-container{margin:0!important}.md-typeset div.arithmatex mjx-assistive-mml{height:0}.md-typeset del.critic{background-color:var(--md-typeset-del-color)}.md-typeset del.critic,.md-typeset ins.critic{-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-typeset ins.critic{background-color:var(--md-typeset-ins-color)}.md-typeset .critic.comment{-webkit-box-decoration-break:clone;box-decoration-break:clone;color:var(--md-code-hl-comment-color)}.md-typeset .critic.comment:before{content:"/* "}.md-typeset .critic.comment:after{content:" */"}.md-typeset .critic.block{box-shadow:none;display:block;margin:1em 0;overflow:auto;padding-left:.8rem;padding-right:.8rem}.md-typeset .critic.block>:first-child{margin-top:.5em}.md-typeset .critic.block>:last-child{margin-bottom:.5em}:root{--md-details-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset details{display:flow-root;overflow:visible;padding-top:0}.md-typeset details[open]>summary:after{transform:rotate(90deg)}.md-typeset details:not([open]){box-shadow:none;padding-bottom:0}.md-typeset details:not([open])>summary{border-radius:.1rem}[dir=ltr] .md-typeset summary{padding-right:1.8rem}[dir=rtl] .md-typeset summary{padding-left:1.8rem}[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset summary{cursor:pointer;display:block;min-height:1rem;overflow:hidden}.md-typeset summary.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset summary:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[dir=ltr] .md-typeset summary:after{right:.4rem}[dir=rtl] .md-typeset summary:after{left:.4rem}.md-typeset summary:after{background-color:currentcolor;content:"";height:1rem;-webkit-mask-image:var(--md-details-icon);mask-image:var(--md-details-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;transform:rotate(0deg);transition:transform .25s;width:1rem}[dir=rtl] .md-typeset summary:after{transform:rotate(180deg)}.md-typeset summary::marker{display:none}.md-typeset summary::-webkit-details-marker{display:none}.md-typeset .emojione,.md-typeset .gemoji,.md-typeset .twemoji{--md-icon-size:1.125em;display:inline-flex;height:var(--md-icon-size);vertical-align:text-top}.md-typeset .emojione svg,.md-typeset .gemoji svg,.md-typeset .twemoji svg{fill:currentcolor;max-height:100%;width:var(--md-icon-size)}.md-typeset .lg,.md-typeset .xl,.md-typeset .xxl,.md-typeset .xxxl{vertical-align:text-bottom}.md-typeset .middle{vertical-align:middle}.md-typeset .lg{--md-icon-size:1.5em}.md-typeset .xl{--md-icon-size:2.25em}.md-typeset .xxl{--md-icon-size:3em}.md-typeset .xxxl{--md-icon-size:4em}.highlight .o,.highlight .ow{color:var(--md-code-hl-operator-color)}.highlight .p{color:var(--md-code-hl-punctuation-color)}.highlight .cpf,.highlight .l,.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .si,.highlight .ss{color:var(--md-code-hl-string-color)}.highlight .cp,.highlight .se,.highlight .sh,.highlight .sr,.highlight .sx{color:var(--md-code-hl-special-color)}.highlight .il,.highlight .m,.highlight .mb,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:var(--md-code-hl-number-color)}.highlight .k,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kt{color:var(--md-code-hl-keyword-color)}.highlight .kc,.highlight .n{color:var(--md-code-hl-name-color)}.highlight .bp,.highlight .nb,.highlight .no{color:var(--md-code-hl-constant-color)}.highlight .nc,.highlight .ne,.highlight .nf,.highlight .nn{color:var(--md-code-hl-function-color)}.highlight .nd,.highlight .ni,.highlight .nl,.highlight .nt{color:var(--md-code-hl-keyword-color)}.highlight .c,.highlight .c1,.highlight .ch,.highlight .cm,.highlight .cs,.highlight .sd{color:var(--md-code-hl-comment-color)}.highlight .na,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:var(--md-code-hl-variable-color)}.highlight .ge,.highlight .gh,.highlight .go,.highlight .gp,.highlight .gr,.highlight .gs,.highlight .gt,.highlight .gu{color:var(--md-code-hl-generic-color)}.highlight .gd,.highlight .gi{border-radius:.1rem;margin:0 -.125em;padding:0 .125em}.highlight .gd{background-color:var(--md-typeset-del-color)}.highlight .gi{background-color:var(--md-typeset-ins-color)}.highlight .hll{background-color:var(--md-code-hl-color--light);box-shadow:2px 0 0 0 var(--md-code-hl-color) inset;display:block;margin:0 -1.1764705882em;padding:0 1.1764705882em}.highlight span.filename{background-color:var(--md-code-bg-color);border-bottom:.05rem solid var(--md-default-fg-color--lightest);border-top-left-radius:.1rem;border-top-right-radius:.1rem;display:flow-root;font-size:.85em;font-weight:700;margin-top:1em;padding:.6617647059em 1.1764705882em;position:relative}.highlight span.filename+pre{margin-top:0}.highlight span.filename+pre>code{border-top-left-radius:0;border-top-right-radius:0}.highlight [data-linenos]:before{background-color:var(--md-code-bg-color);box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;color:var(--md-default-fg-color--light);content:attr(data-linenos);float:left;left:-1.1764705882em;margin-left:-1.1764705882em;margin-right:1.1764705882em;padding-left:1.1764705882em;position:sticky;-webkit-user-select:none;user-select:none;z-index:3}.highlight code a[id]{position:absolute;visibility:hidden}.highlight code[data-md-copying] .hll{display:contents}.highlight code[data-md-copying] .md-annotation{display:none}.highlighttable{display:flow-root}.highlighttable tbody,.highlighttable td{display:block;padding:0}.highlighttable tr{display:flex}.highlighttable pre{margin:0}.highlighttable th.filename{flex-grow:1;padding:0;text-align:left}.highlighttable th.filename span.filename{margin-top:0}.highlighttable .linenos{background-color:var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-top-left-radius:.1rem;font-size:.85em;padding:.7720588235em 0 .7720588235em 1.1764705882em;-webkit-user-select:none;user-select:none}.highlighttable .linenodiv{box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;padding-right:.5882352941em}.highlighttable .linenodiv pre{color:var(--md-default-fg-color--light);text-align:right}.highlighttable .code{flex:1;min-width:0}.linenodiv a{color:inherit}.md-typeset .highlighttable{direction:ltr;margin:1em 0}.md-typeset .highlighttable>tbody>tr>.code>div>pre>code{border-bottom-left-radius:0;border-top-left-radius:0}.md-typeset .highlight+.result{border:.05rem solid var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-bottom-right-radius:.1rem;border-top-width:.1rem;margin-top:-1.125em;overflow:visible;padding:0 1em}.md-typeset .highlight+.result:after{clear:both;content:"";display:block}@media screen and (max-width:44.984375em){.md-content__inner>.highlight{margin:1em -.8rem}.md-content__inner>.highlight>.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.code>div>pre>code,.md-content__inner>.highlight>.highlighttable>tbody>tr>.filename span.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.linenos,.md-content__inner>.highlight>pre>code{border-radius:0}.md-content__inner>.highlight+.result{border-left-width:0;border-radius:0;border-right-width:0;margin-left:-.8rem;margin-right:-.8rem}}.md-typeset .keys kbd:after,.md-typeset .keys kbd:before{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;color:inherit;margin:0;position:relative}.md-typeset .keys span{color:var(--md-default-fg-color--light);padding:0 .2em}.md-typeset .keys .key-alt:before,.md-typeset .keys .key-left-alt:before,.md-typeset .keys .key-right-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-command:before,.md-typeset .keys .key-left-command:before,.md-typeset .keys .key-right-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-control:before,.md-typeset .keys .key-left-control:before,.md-typeset .keys .key-right-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-left-meta:before,.md-typeset .keys .key-meta:before,.md-typeset .keys .key-right-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-left-option:before,.md-typeset .keys .key-option:before,.md-typeset .keys .key-right-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-left-shift:before,.md-typeset .keys .key-right-shift:before,.md-typeset .keys .key-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-left-super:before,.md-typeset .keys .key-right-super:before,.md-typeset .keys .key-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-left-windows:before,.md-typeset .keys .key-right-windows:before,.md-typeset .keys .key-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-arrow-down:before{content:"↓";padding-right:.4em}.md-typeset .keys .key-arrow-left:before{content:"←";padding-right:.4em}.md-typeset .keys .key-arrow-right:before{content:"→";padding-right:.4em}.md-typeset .keys .key-arrow-up:before{content:"↑";padding-right:.4em}.md-typeset .keys .key-backspace:before{content:"⌫";padding-right:.4em}.md-typeset .keys .key-backtab:before{content:"⇤";padding-right:.4em}.md-typeset .keys .key-caps-lock:before{content:"⇪";padding-right:.4em}.md-typeset .keys .key-clear:before{content:"⌧";padding-right:.4em}.md-typeset .keys .key-context-menu:before{content:"☰";padding-right:.4em}.md-typeset .keys .key-delete:before{content:"⌦";padding-right:.4em}.md-typeset .keys .key-eject:before{content:"⏏";padding-right:.4em}.md-typeset .keys .key-end:before{content:"⤓";padding-right:.4em}.md-typeset .keys .key-escape:before{content:"⎋";padding-right:.4em}.md-typeset .keys .key-home:before{content:"⤒";padding-right:.4em}.md-typeset .keys .key-insert:before{content:"⎀";padding-right:.4em}.md-typeset .keys .key-page-down:before{content:"⇟";padding-right:.4em}.md-typeset .keys .key-page-up:before{content:"⇞";padding-right:.4em}.md-typeset .keys .key-print-screen:before{content:"⎙";padding-right:.4em}.md-typeset .keys .key-tab:after{content:"⇥";padding-left:.4em}.md-typeset .keys .key-num-enter:after{content:"⌤";padding-left:.4em}.md-typeset .keys .key-enter:after{content:"⏎";padding-left:.4em}:root{--md-tabbed-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 16.58 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42Z"/></svg>');--md-tabbed-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset .tabbed-set{border-radius:.1rem;display:flex;flex-flow:column wrap;margin:1em 0;position:relative}.md-typeset .tabbed-set>input{height:0;opacity:0;position:absolute;width:0}.md-typeset .tabbed-set>input:target{--md-scroll-offset:0.625em}.md-typeset .tabbed-set>input.focus-visible~.tabbed-labels:before{background-color:var(--md-accent-fg-color)}.md-typeset .tabbed-labels{-ms-overflow-style:none;box-shadow:0 -.05rem var(--md-default-fg-color--lightest) inset;display:flex;max-width:100%;overflow:auto;scrollbar-width:none}@media print{.md-typeset .tabbed-labels{display:contents}}@media screen{.js .md-typeset .tabbed-labels{position:relative}.js .md-typeset .tabbed-labels:before{background:var(--md-default-fg-color);bottom:0;content:"";display:block;height:2px;left:0;position:absolute;transform:translateX(var(--md-indicator-x));transition:width 225ms,background-color .25s,transform .25s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--md-indicator-width)}}.md-typeset .tabbed-labels::-webkit-scrollbar{display:none}.md-typeset .tabbed-labels>label{border-bottom:.1rem solid #0000;border-radius:.1rem .1rem 0 0;color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;font-size:.64rem;font-weight:700;padding:.78125em 1.25em .625em;scroll-margin-inline-start:1rem;transition:background-color .25s,color .25s;white-space:nowrap;width:auto}@media print{.md-typeset .tabbed-labels>label:first-child{order:1}.md-typeset .tabbed-labels>label:nth-child(2){order:2}.md-typeset .tabbed-labels>label:nth-child(3){order:3}.md-typeset .tabbed-labels>label:nth-child(4){order:4}.md-typeset .tabbed-labels>label:nth-child(5){order:5}.md-typeset .tabbed-labels>label:nth-child(6){order:6}.md-typeset .tabbed-labels>label:nth-child(7){order:7}.md-typeset .tabbed-labels>label:nth-child(8){order:8}.md-typeset .tabbed-labels>label:nth-child(9){order:9}.md-typeset .tabbed-labels>label:nth-child(10){order:10}.md-typeset .tabbed-labels>label:nth-child(11){order:11}.md-typeset .tabbed-labels>label:nth-child(12){order:12}.md-typeset .tabbed-labels>label:nth-child(13){order:13}.md-typeset .tabbed-labels>label:nth-child(14){order:14}.md-typeset .tabbed-labels>label:nth-child(15){order:15}.md-typeset .tabbed-labels>label:nth-child(16){order:16}.md-typeset .tabbed-labels>label:nth-child(17){order:17}.md-typeset .tabbed-labels>label:nth-child(18){order:18}.md-typeset .tabbed-labels>label:nth-child(19){order:19}.md-typeset .tabbed-labels>label:nth-child(20){order:20}}.md-typeset .tabbed-labels>label:hover{color:var(--md-default-fg-color)}.md-typeset .tabbed-labels>label>[href]:first-child{color:inherit}.md-typeset .tabbed-labels--linked>label{padding:0}.md-typeset .tabbed-labels--linked>label>a{display:block;padding:.78125em 1.25em .625em}.md-typeset .tabbed-content{width:100%}@media print{.md-typeset .tabbed-content{display:contents}}.md-typeset .tabbed-block{display:none}@media print{.md-typeset .tabbed-block{display:block}.md-typeset .tabbed-block:first-child{order:1}.md-typeset .tabbed-block:nth-child(2){order:2}.md-typeset .tabbed-block:nth-child(3){order:3}.md-typeset .tabbed-block:nth-child(4){order:4}.md-typeset .tabbed-block:nth-child(5){order:5}.md-typeset .tabbed-block:nth-child(6){order:6}.md-typeset .tabbed-block:nth-child(7){order:7}.md-typeset .tabbed-block:nth-child(8){order:8}.md-typeset .tabbed-block:nth-child(9){order:9}.md-typeset .tabbed-block:nth-child(10){order:10}.md-typeset .tabbed-block:nth-child(11){order:11}.md-typeset .tabbed-block:nth-child(12){order:12}.md-typeset .tabbed-block:nth-child(13){order:13}.md-typeset .tabbed-block:nth-child(14){order:14}.md-typeset .tabbed-block:nth-child(15){order:15}.md-typeset .tabbed-block:nth-child(16){order:16}.md-typeset .tabbed-block:nth-child(17){order:17}.md-typeset .tabbed-block:nth-child(18){order:18}.md-typeset .tabbed-block:nth-child(19){order:19}.md-typeset .tabbed-block:nth-child(20){order:20}}.md-typeset .tabbed-block>.highlight:first-child>pre,.md-typeset .tabbed-block>pre:first-child{margin:0}.md-typeset .tabbed-block>.highlight:first-child>pre>code,.md-typeset .tabbed-block>pre:first-child>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child>.filename{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable{margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.filename span.filename,.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.linenos{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.code>div>pre>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child+.result{margin-top:-.125em}.md-typeset .tabbed-block>.tabbed-set{margin:0}.md-typeset .tabbed-button{align-self:center;border-radius:100%;color:var(--md-default-fg-color--light);cursor:pointer;display:block;height:.9rem;margin-top:.1rem;pointer-events:auto;transition:background-color .25s;width:.9rem}.md-typeset .tabbed-button:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-typeset .tabbed-button:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-tabbed-icon--prev);mask-image:var(--md-tabbed-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color .25s,transform .25s;width:100%}.md-typeset .tabbed-control{background:linear-gradient(to right,var(--md-default-bg-color) 60%,#0000);display:flex;height:1.9rem;justify-content:start;pointer-events:none;position:absolute;transition:opacity 125ms;width:1.2rem}[dir=rtl] .md-typeset .tabbed-control{transform:rotate(180deg)}.md-typeset .tabbed-control[hidden]{opacity:0}.md-typeset .tabbed-control--next{background:linear-gradient(to left,var(--md-default-bg-color) 60%,#0000);justify-content:end;right:0}.md-typeset .tabbed-control--next .tabbed-button:after{-webkit-mask-image:var(--md-tabbed-icon--next);mask-image:var(--md-tabbed-icon--next)}@media screen and (max-width:44.984375em){[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels{padding-right:.8rem}.md-content__inner>.tabbed-set .tabbed-labels{margin:0 -.8rem;max-width:100vw;scroll-padding-inline-start:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-left:.8rem}.md-content__inner>.tabbed-set .tabbed-labels:after{content:""}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-right:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-left:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-right:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{width:2rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-left:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-right:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-left:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{width:2rem}}@media screen{.md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){color:var(--md-default-fg-color)}.md-typeset .no-js .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .no-js .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .no-js .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .no-js .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .no-js .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .no-js .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .no-js .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .no-js .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .no-js .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .no-js .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .no-js .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .no-js .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .no-js .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .no-js .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .no-js .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .no-js .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .no-js .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .no-js .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .no-js .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .no-js .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),.no-js .md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.no-js .md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.no-js .md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.no-js .md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.no-js .md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.no-js .md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.no-js .md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.no-js .md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.no-js .md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.no-js .md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.no-js .md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.no-js .md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.no-js .md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.no-js .md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.no-js .md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.no-js .md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.no-js .md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.no-js .md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.no-js .md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.no-js .md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){border-color:var(--md-default-fg-color)}}.md-typeset .tabbed-set>input:first-child.focus-visible~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10).focus-visible~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11).focus-visible~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12).focus-visible~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13).focus-visible~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14).focus-visible~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15).focus-visible~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16).focus-visible~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17).focus-visible~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18).focus-visible~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19).focus-visible~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2).focus-visible~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20).focus-visible~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3).focus-visible~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4).focus-visible~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5).focus-visible~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6).focus-visible~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7).focus-visible~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8).focus-visible~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9).focus-visible~.tabbed-labels>:nth-child(9){color:var(--md-accent-fg-color)}.md-typeset .tabbed-set>input:first-child:checked~.tabbed-content>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-content>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-content>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-content>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-content>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-content>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-content>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-content>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-content>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-content>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-content>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-content>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-content>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-content>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-content>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-content>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-content>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-content>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-content>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-content>:nth-child(9){display:block}:root{--md-tasklist-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>');--md-tasklist-icon--checked:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>')}.md-typeset .task-list-item{list-style-type:none;position:relative}[dir=ltr] .md-typeset .task-list-item [type=checkbox]{left:-2em}[dir=rtl] .md-typeset .task-list-item [type=checkbox]{right:-2em}.md-typeset .task-list-item [type=checkbox]{position:absolute;top:.45em}.md-typeset .task-list-control [type=checkbox]{opacity:0;z-index:-1}[dir=ltr] .md-typeset .task-list-indicator:before{left:-1.5em}[dir=rtl] .md-typeset .task-list-indicator:before{right:-1.5em}.md-typeset .task-list-indicator:before{background-color:var(--md-default-fg-color--lightest);content:"";height:1.25em;-webkit-mask-image:var(--md-tasklist-icon);mask-image:var(--md-tasklist-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.15em;width:1.25em}.md-typeset [type=checkbox]:checked+.task-list-indicator:before{background-color:#00e676;-webkit-mask-image:var(--md-tasklist-icon--checked);mask-image:var(--md-tasklist-icon--checked)}:root>*{--md-mermaid-font-family:var(--md-text-font-family),sans-serif;--md-mermaid-edge-color:var(--md-code-fg-color);--md-mermaid-node-bg-color:var(--md-accent-fg-color--transparent);--md-mermaid-node-fg-color:var(--md-accent-fg-color);--md-mermaid-label-bg-color:var(--md-default-bg-color);--md-mermaid-label-fg-color:var(--md-code-fg-color);--md-mermaid-sequence-actor-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actor-fg-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-actor-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-actor-line-color:var(--md-default-fg-color--lighter);--md-mermaid-sequence-actorman-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actorman-line-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-box-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-box-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-label-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-label-fg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-loop-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-loop-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-loop-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-message-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-message-line-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-note-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-border-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-number-bg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-number-fg-color:var(--md-accent-bg-color)}.mermaid{line-height:normal;margin:1em 0}.md-typeset .grid{grid-gap:.4rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));margin:1em 0}.md-typeset .grid.cards>ol,.md-typeset .grid.cards>ul{display:contents}.md-typeset .grid.cards>ol>li,.md-typeset .grid.cards>ul>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>ol>li:focus-within,.md-typeset .grid.cards>ol>li:hover,.md-typeset .grid.cards>ul>li:focus-within,.md-typeset .grid.cards>ul>li:hover,.md-typeset .grid>.card:focus-within,.md-typeset .grid>.card:hover{border-color:#0000;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>ol>li>hr,.md-typeset .grid.cards>ul>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>ol>li>:first-child,.md-typeset .grid.cards>ul>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>ol>li>:last-child,.md-typeset .grid.cards>ul>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid>*,.md-typeset .grid>.admonition,.md-typeset .grid>.highlight>*,.md-typeset .grid>.highlighttable,.md-typeset .grid>.md-typeset details,.md-typeset .grid>details,.md-typeset .grid>pre{margin-bottom:0;margin-top:0}.md-typeset .grid>.highlight>pre:only-child,.md-typeset .grid>.highlight>pre>code,.md-typeset .grid>.highlighttable,.md-typeset .grid>.highlighttable>tbody,.md-typeset .grid>.highlighttable>tbody>tr,.md-typeset .grid>.highlighttable>tbody>tr>.code,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre>code{height:100%}.md-typeset .grid>.tabbed-set{margin-bottom:0;margin-top:0}@media screen and (min-width:45em){[dir=ltr] .md-typeset .inline{float:left}[dir=rtl] .md-typeset .inline{float:right}[dir=ltr] .md-typeset .inline{margin-right:.8rem}[dir=rtl] .md-typeset .inline{margin-left:.8rem}.md-typeset .inline{margin-bottom:.8rem;margin-top:0;width:11.7rem}[dir=ltr] .md-typeset .inline.end{float:right}[dir=rtl] .md-typeset .inline.end{float:left}[dir=ltr] .md-typeset .inline.end{margin-left:.8rem;margin-right:0}[dir=rtl] .md-typeset .inline.end{margin-left:0;margin-right:.8rem}}
\ No newline at end of file
diff --git a/content/references/java-chassis/en_US/assets/stylesheets/main.7e359304.min.css.map b/content/references/java-chassis/en_US/assets/stylesheets/main.7e359304.min.css.map
deleted file mode 100644
index 15b8fcf..0000000
--- a/content/references/java-chassis/en_US/assets/stylesheets/main.7e359304.min.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["src/templates/assets/stylesheets/main/components/_meta.scss","../../../../src/templates/assets/stylesheets/main.scss","src/templates/assets/stylesheets/main/_resets.scss","src/templates/assets/stylesheets/main/_colors.scss","src/templates/assets/stylesheets/main/_icons.scss","src/templates/assets/stylesheets/main/_typeset.scss","src/templates/assets/stylesheets/utilities/_break.scss","src/templates/assets/stylesheets/main/components/_author.scss","src/templates/assets/stylesheets/main/components/_banner.scss","src/templates/assets/stylesheets/main/components/_base.scss","src/templates/assets/stylesheets/main/components/_clipboard.scss","src/templates/assets/stylesheets/main/components/_consent.scss","src/templates/assets/stylesheets/main/components/_content.scss","src/templates/assets/stylesheets/main/components/_dialog.scss","src/templates/assets/stylesheets/main/components/_feedback.scss","src/templates/assets/stylesheets/main/components/_footer.scss","src/templates/assets/stylesheets/main/components/_form.scss","src/templates/assets/stylesheets/main/components/_header.scss","node_modules/material-design-color/material-color.scss","src/templates/assets/stylesheets/main/components/_nav.scss","src/templates/assets/stylesheets/main/components/_pagination.scss","src/templates/assets/stylesheets/main/components/_post.scss","src/templates/assets/stylesheets/main/components/_progress.scss","src/templates/assets/stylesheets/main/components/_search.scss","src/templates/assets/stylesheets/main/components/_select.scss","src/templates/assets/stylesheets/main/components/_sidebar.scss","src/templates/assets/stylesheets/main/components/_source.scss","src/templates/assets/stylesheets/main/components/_status.scss","src/templates/assets/stylesheets/main/components/_tabs.scss","src/templates/assets/stylesheets/main/components/_tag.scss","src/templates/assets/stylesheets/main/components/_tooltip.scss","src/templates/assets/stylesheets/main/components/_top.scss","src/templates/assets/stylesheets/main/components/_version.scss","src/templates/assets/stylesheets/main/extensions/markdown/_admonition.scss","src/templates/assets/stylesheets/main/extensions/markdown/_footnotes.scss","src/templates/assets/stylesheets/main/extensions/markdown/_toc.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_critic.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_details.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_emoji.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_highlight.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_keys.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tasklist.scss","src/templates/assets/stylesheets/main/integrations/_mermaid.scss","src/templates/assets/stylesheets/main/modifiers/_grid.scss","src/templates/assets/stylesheets/main/modifiers/_inline.scss"],"names":[],"mappings":"AA0CE,gBCgxCF,CC9xCA,KAEE,6BAAA,CAAA,0BAAA,CAAA,qBAAA,CADA,qBDzBF,CC8BA,iBAGE,kBD3BF,CC8BE,gCANF,iBAOI,yBDzBF,CACF,CC6BA,KACE,QD1BF,CC8BA,qBAIE,uCD3BF,CC+BA,EACE,aAAA,CACA,oBD5BF,CCgCA,GAME,QAAA,CALA,kBAAA,CACA,aAAA,CACA,aAAA,CAEA,gBAAA,CADA,SD3BF,CCiCA,MACE,aD9BF,CCkCA,QAEE,eD/BF,CCmCA,IACE,iBDhCF,CCoCA,MAEE,uBAAA,CADA,gBDhCF,CCqCA,MAEE,eAAA,CACA,kBDlCF,CCsCA,OAKE,gBAAA,CACA,QAAA,CAHA,mBAAA,CACA,iBAAA,CAFA,QAAA,CADA,SD9BF,CCu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,CAAA,2C1Co/IJ,C2CpiJA,QACE,8DAAA,CAGA,+CAAA,CACA,iEAAA,CACA,oDAAA,CACA,sDAAA,CACA,mDAAA,CAGA,qEAAA,CACA,qEAAA,CACA,wEAAA,CACA,0EAAA,CACA,wEAAA,CACA,yEAAA,CACA,kEAAA,CACA,+DAAA,CACA,oEAAA,CACA,oEAAA,CACA,mEAAA,CACA,gEAAA,CACA,uEAAA,CACA,mEAAA,CACA,qEAAA,CACA,oEAAA,CACA,gEAAA,CACA,wEAAA,CACA,qEAAA,CACA,+D3CmiJF,C2C7hJA,SAEE,kBAAA,CADA,Y3CiiJF,C4CnkJE,kBAUE,cAAA,CATA,YAAA,CACA,kEACE,CAQF,Y5C+jJJ,C4C3jJI,sDACE,gB5C6jJN,C4CvjJI,oFAKE,wDAAA,CACA,mBAAA,CAJA,aAAA,CAEA,QAAA,CADA,aAAA,CAIA,sC5CyjJN,C4CpjJM,iOACE,kBAAA,CACA,8B5CujJR,C4CnjJM,6FACE,iBAAA,CAAA,c5CsjJR,C4CljJM,2HACE,Y5CqjJR,C4CjjJM,wHACE,e5CojJR,C4CriJI,yMAGE,eAAA,CAAA,Y5C6iJN,C4C/hJI,ybAOE,W5CqiJN,C4CjiJI,8BACE,eAAA,CAAA,Y5CmiJN,CK/9II,mCwChKA,8BACE,U7CuoJJ,C6CxoJE,8BACE,W7CuoJJ,C6CxoJE,8BAGE,kB7CqoJJ,C6CxoJE,8BAGE,iB7CqoJJ,C6CxoJE,oBAKE,mBAAA,CADA,YAAA,CAFA,a7CsoJJ,C6ChoJI,kCACE,W7CmoJN,C6CpoJI,kCACE,U7CmoJN,C6CpoJI,kCAEE,iBAAA,CAAA,c7CkoJN,C6CpoJI,kCAEE,aAAA,CAAA,kB7CkoJN,CACF","file":"main.css"}
\ No newline at end of file
diff --git a/content/references/java-chassis/en_US/build-consumer/3rd-party-service-invoke/index.html b/content/references/java-chassis/en_US/build-consumer/3rd-party-service-invoke/index.html
index 5292851..d3444a6 100644
--- a/content/references/java-chassis/en_US/build-consumer/3rd-party-service-invoke/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/3rd-party-service-invoke/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2617,7 +2617,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/circuit-breaker/index.html b/content/references/java-chassis/en_US/build-consumer/circuit-breaker/index.html
index 90fd5ef..69f7b8a 100644
--- a/content/references/java-chassis/en_US/build-consumer/circuit-breaker/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/circuit-breaker/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2472,7 +2472,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/code-first/index.html b/content/references/java-chassis/en_US/build-consumer/code-first/index.html
index b96207a..eebf44f 100644
--- a/content/references/java-chassis/en_US/build-consumer/code-first/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/code-first/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2496,7 +2496,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/common-configuration/index.html b/content/references/java-chassis/en_US/build-consumer/common-configuration/index.html
index ad4493d..5bc3264 100644
--- a/content/references/java-chassis/en_US/build-consumer/common-configuration/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/common-configuration/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2477,7 +2477,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/develop-consumer-using-rpc/index.html b/content/references/java-chassis/en_US/build-consumer/develop-consumer-using-rpc/index.html
index 488d760..802c5e8 100644
--- a/content/references/java-chassis/en_US/build-consumer/develop-consumer-using-rpc/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/develop-consumer-using-rpc/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2591,7 +2591,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/diao-yong-kong-zhi/index.html b/content/references/java-chassis/en_US/build-consumer/diao-yong-kong-zhi/index.html
index a39e461..be8ca14 100644
--- a/content/references/java-chassis/en_US/build-consumer/diao-yong-kong-zhi/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/diao-yong-kong-zhi/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/fault-injection/index.html b/content/references/java-chassis/en_US/build-consumer/fault-injection/index.html
index 7502666..0c6a45e 100644
--- a/content/references/java-chassis/en_US/build-consumer/fault-injection/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/fault-injection/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2639,7 +2639,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/flow-control/index.html b/content/references/java-chassis/en_US/build-consumer/flow-control/index.html
index b417e8a..63c8773 100644
--- a/content/references/java-chassis/en_US/build-consumer/flow-control/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/flow-control/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2606,7 +2606,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/invoke-control/index.html b/content/references/java-chassis/en_US/build-consumer/invoke-control/index.html
index 53c6448..040aa5b 100644
--- a/content/references/java-chassis/en_US/build-consumer/invoke-control/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/invoke-control/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2467,7 +2467,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/using-AsyncRestTemplate/index.html b/content/references/java-chassis/en_US/build-consumer/using-AsyncRestTemplate/index.html
index 0761386..b1999d1 100644
--- a/content/references/java-chassis/en_US/build-consumer/using-AsyncRestTemplate/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/using-AsyncRestTemplate/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2574,7 +2574,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/using-resttemplate/index.html b/content/references/java-chassis/en_US/build-consumer/using-resttemplate/index.html
index 6a79116..36c12c9 100644
--- a/content/references/java-chassis/en_US/build-consumer/using-resttemplate/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/using-resttemplate/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2635,7 +2635,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-consumer/with-contract/index.html b/content/references/java-chassis/en_US/build-consumer/with-contract/index.html
index a3e487b..94e9a6a 100644
--- a/content/references/java-chassis/en_US/build-consumer/with-contract/index.html
+++ b/content/references/java-chassis/en_US/build-consumer/with-contract/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2622,7 +2622,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/access-log-configuration/index.html b/content/references/java-chassis/en_US/build-provider/access-log-configuration/index.html
index af03954..00adca8 100644
--- a/content/references/java-chassis/en_US/build-provider/access-log-configuration/index.html
+++ b/content/references/java-chassis/en_US/build-provider/access-log-configuration/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -3238,7 +3238,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/bootup/index.html b/content/references/java-chassis/en_US/build-provider/bootup/index.html
index 4dbe37d..25261a9 100644
--- a/content/references/java-chassis/en_US/build-provider/bootup/index.html
+++ b/content/references/java-chassis/en_US/build-provider/bootup/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2519,7 +2519,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/code-first/index.html b/content/references/java-chassis/en_US/build-provider/code-first/index.html
index a3baaf0..651b5f1 100644
--- a/content/references/java-chassis/en_US/build-provider/code-first/index.html
+++ b/content/references/java-chassis/en_US/build-provider/code-first/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2568,7 +2568,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/configuration/downgrade-strategy/index.html b/content/references/java-chassis/en_US/build-provider/configuration/downgrade-strategy/index.html
index c4df325..f892466 100644
--- a/content/references/java-chassis/en_US/build-provider/configuration/downgrade-strategy/index.html
+++ b/content/references/java-chassis/en_US/build-provider/configuration/downgrade-strategy/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2667,7 +2667,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/configuration/parameter-validator/index.html b/content/references/java-chassis/en_US/build-provider/configuration/parameter-validator/index.html
index 8e2b802..9aa5ca0 100644
--- a/content/references/java-chassis/en_US/build-provider/configuration/parameter-validator/index.html
+++ b/content/references/java-chassis/en_US/build-provider/configuration/parameter-validator/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2661,7 +2661,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/configuration/ratelimite-strategy/index.html b/content/references/java-chassis/en_US/build-provider/configuration/ratelimite-strategy/index.html
index 9810efb..18a92a7 100644
--- a/content/references/java-chassis/en_US/build-provider/configuration/ratelimite-strategy/index.html
+++ b/content/references/java-chassis/en_US/build-provider/configuration/ratelimite-strategy/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2634,7 +2634,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/define-contract/index.html b/content/references/java-chassis/en_US/build-provider/define-contract/index.html
index 12b7d13..deac3dc 100644
--- a/content/references/java-chassis/en_US/build-provider/define-contract/index.html
+++ b/content/references/java-chassis/en_US/build-provider/define-contract/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2673,7 +2673,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/definition/heartbeats/index.html b/content/references/java-chassis/en_US/build-provider/definition/heartbeats/index.html
index 7b48036..abe095b 100644
--- a/content/references/java-chassis/en_US/build-provider/definition/heartbeats/index.html
+++ b/content/references/java-chassis/en_US/build-provider/definition/heartbeats/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2478,7 +2478,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/definition/isolate-relationship/index.html b/content/references/java-chassis/en_US/build-provider/definition/isolate-relationship/index.html
index 9894065..aa574fe 100644
--- a/content/references/java-chassis/en_US/build-provider/definition/isolate-relationship/index.html
+++ b/content/references/java-chassis/en_US/build-provider/definition/isolate-relationship/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2505,7 +2505,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/definition/service-definition/index.html b/content/references/java-chassis/en_US/build-provider/definition/service-definition/index.html
index 4e720e9..aabae8a 100644
--- a/content/references/java-chassis/en_US/build-provider/definition/service-definition/index.html
+++ b/content/references/java-chassis/en_US/build-provider/definition/service-definition/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2649,7 +2649,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/interface-constraints/index.html b/content/references/java-chassis/en_US/build-provider/interface-constraints/index.html
index ba62d1a..25a6be6 100644
--- a/content/references/java-chassis/en_US/build-provider/interface-constraints/index.html
+++ b/content/references/java-chassis/en_US/build-provider/interface-constraints/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2565,7 +2565,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/jaxrs/index.html b/content/references/java-chassis/en_US/build-provider/jaxrs/index.html
index 21313c3..6309a89 100644
--- a/content/references/java-chassis/en_US/build-provider/jaxrs/index.html
+++ b/content/references/java-chassis/en_US/build-provider/jaxrs/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2707,7 +2707,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/listen-address-and-publish-address/index.html b/content/references/java-chassis/en_US/build-provider/listen-address-and-publish-address/index.html
index bffd53b..bf4d62c 100644
--- a/content/references/java-chassis/en_US/build-provider/listen-address-and-publish-address/index.html
+++ b/content/references/java-chassis/en_US/build-provider/listen-address-and-publish-address/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2641,7 +2641,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/service-configuration/index.html b/content/references/java-chassis/en_US/build-provider/service-configuration/index.html
index fda77d2..26adc1c 100644
--- a/content/references/java-chassis/en_US/build-provider/service-configuration/index.html
+++ b/content/references/java-chassis/en_US/build-provider/service-configuration/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2478,7 +2478,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/springmvc/index.html b/content/references/java-chassis/en_US/build-provider/springmvc/index.html
index d70cdec..c216715 100644
--- a/content/references/java-chassis/en_US/build-provider/springmvc/index.html
+++ b/content/references/java-chassis/en_US/build-provider/springmvc/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -3038,7 +3038,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/swagger-annotation/index.html b/content/references/java-chassis/en_US/build-provider/swagger-annotation/index.html
index 998d379..70a5393 100644
--- a/content/references/java-chassis/en_US/build-provider/swagger-annotation/index.html
+++ b/content/references/java-chassis/en_US/build-provider/swagger-annotation/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -3016,7 +3016,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/thread-pool/index.html b/content/references/java-chassis/en_US/build-provider/thread-pool/index.html
index c88898d..33e5af0 100644
--- a/content/references/java-chassis/en_US/build-provider/thread-pool/index.html
+++ b/content/references/java-chassis/en_US/build-provider/thread-pool/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2629,7 +2629,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/build-provider/transparent-rpc/index.html b/content/references/java-chassis/en_US/build-provider/transparent-rpc/index.html
index 5958c54..3b72f54 100644
--- a/content/references/java-chassis/en_US/build-provider/transparent-rpc/index.html
+++ b/content/references/java-chassis/en_US/build-provider/transparent-rpc/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2652,7 +2652,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/build-consumer/index.html b/content/references/java-chassis/en_US/catalog/build-consumer/index.html
index 214208e..e18550f 100644
--- a/content/references/java-chassis/en_US/catalog/build-consumer/index.html
+++ b/content/references/java-chassis/en_US/catalog/build-consumer/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2538,7 +2538,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/build-provider/index.html b/content/references/java-chassis/en_US/catalog/build-provider/index.html
index 9e7cfc7..0c7f198 100644
--- a/content/references/java-chassis/en_US/catalog/build-provider/index.html
+++ b/content/references/java-chassis/en_US/catalog/build-provider/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2549,7 +2549,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/config/index.html b/content/references/java-chassis/en_US/catalog/config/index.html
index c60a8b4..e232aed 100644
--- a/content/references/java-chassis/en_US/catalog/config/index.html
+++ b/content/references/java-chassis/en_US/catalog/config/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2445,7 +2445,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/data-conform/index.html b/content/references/java-chassis/en_US/catalog/data-conform/index.html
index 049289c..211e143 100644
--- a/content/references/java-chassis/en_US/catalog/data-conform/index.html
+++ b/content/references/java-chassis/en_US/catalog/data-conform/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/general-develop/index.html b/content/references/java-chassis/en_US/catalog/general-develop/index.html
index d95c04d..8dea417 100644
--- a/content/references/java-chassis/en_US/catalog/general-develop/index.html
+++ b/content/references/java-chassis/en_US/catalog/general-develop/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2639,7 +2639,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/securety/index.html b/content/references/java-chassis/en_US/catalog/securety/index.html
index 9181e6f..548e0e8 100644
--- a/content/references/java-chassis/en_US/catalog/securety/index.html
+++ b/content/references/java-chassis/en_US/catalog/securety/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/security/index.html b/content/references/java-chassis/en_US/catalog/security/index.html
index 9597b40..03ef205 100644
--- a/content/references/java-chassis/en_US/catalog/security/index.html
+++ b/content/references/java-chassis/en_US/catalog/security/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2456,7 +2456,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/service-package-run/index.html b/content/references/java-chassis/en_US/catalog/service-package-run/index.html
index b0c6cb3..4cb2e6c 100644
--- a/content/references/java-chassis/en_US/catalog/service-package-run/index.html
+++ b/content/references/java-chassis/en_US/catalog/service-package-run/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2456,7 +2456,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/start/index.html b/content/references/java-chassis/en_US/catalog/start/index.html
index bf9d1ae..e7bc150 100644
--- a/content/references/java-chassis/en_US/catalog/start/index.html
+++ b/content/references/java-chassis/en_US/catalog/start/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2479,7 +2479,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/catalog/use-tool/index.html b/content/references/java-chassis/en_US/catalog/use-tool/index.html
index 015c2c6..0e2d956 100644
--- a/content/references/java-chassis/en_US/catalog/use-tool/index.html
+++ b/content/references/java-chassis/en_US/catalog/use-tool/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/config/general-config/index.html b/content/references/java-chassis/en_US/config/general-config/index.html
index 931374c..faf1405 100644
--- a/content/references/java-chassis/en_US/config/general-config/index.html
+++ b/content/references/java-chassis/en_US/config/general-config/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2695,7 +2695,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/config/inject-config/index.html b/content/references/java-chassis/en_US/config/inject-config/index.html
index e271a22..2c2f2f3 100644
--- a/content/references/java-chassis/en_US/config/inject-config/index.html
+++ b/content/references/java-chassis/en_US/config/inject-config/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2614,7 +2614,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/edge/by-servicecomb-sdk/index.html b/content/references/java-chassis/en_US/edge/by-servicecomb-sdk/index.html
index 81d7ba7..ca515bb 100644
--- a/content/references/java-chassis/en_US/edge/by-servicecomb-sdk/index.html
+++ b/content/references/java-chassis/en_US/edge/by-servicecomb-sdk/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2884,7 +2884,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/edge/nginx/index.html b/content/references/java-chassis/en_US/edge/nginx/index.html
index 46ec5f4..518850d 100644
--- a/content/references/java-chassis/en_US/edge/nginx/index.html
+++ b/content/references/java-chassis/en_US/edge/nginx/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2741,7 +2741,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/edge/open-service/index.html b/content/references/java-chassis/en_US/edge/open-service/index.html
index 144dfc1..506510c 100644
--- a/content/references/java-chassis/en_US/edge/open-service/index.html
+++ b/content/references/java-chassis/en_US/edge/open-service/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2445,7 +2445,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/edge/zuul/index.html b/content/references/java-chassis/en_US/edge/zuul/index.html
index ef9ab9a..2cf3caa 100644
--- a/content/references/java-chassis/en_US/edge/zuul/index.html
+++ b/content/references/java-chassis/en_US/edge/zuul/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2730,7 +2730,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/featured-topics/index.html b/content/references/java-chassis/en_US/featured-topics/index.html
index 8df4165..e1f15ac 100644
--- a/content/references/java-chassis/en_US/featured-topics/index.html
+++ b/content/references/java-chassis/en_US/featured-topics/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/AlarmEvent/index.html b/content/references/java-chassis/en_US/general-development/AlarmEvent/index.html
index 9ef2675..9ef4f8c 100644
--- a/content/references/java-chassis/en_US/general-development/AlarmEvent/index.html
+++ b/content/references/java-chassis/en_US/general-development/AlarmEvent/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2555,7 +2555,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/CORS/index.html b/content/references/java-chassis/en_US/general-development/CORS/index.html
index 0c7d067..50b130a 100644
--- a/content/references/java-chassis/en_US/general-development/CORS/index.html
+++ b/content/references/java-chassis/en_US/general-development/CORS/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2577,7 +2577,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/QPS/index.html b/content/references/java-chassis/en_US/general-development/QPS/index.html
index 4183690..0941da2 100644
--- a/content/references/java-chassis/en_US/general-development/QPS/index.html
+++ b/content/references/java-chassis/en_US/general-development/QPS/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/context/index.html b/content/references/java-chassis/en_US/general-development/context/index.html
index 8890494..8b0a84f 100644
--- a/content/references/java-chassis/en_US/general-development/context/index.html
+++ b/content/references/java-chassis/en_US/general-development/context/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2548,7 +2548,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/cross-app-invocation/index.html b/content/references/java-chassis/en_US/general-development/cross-app-invocation/index.html
index e60ec47..79e4643 100644
--- a/content/references/java-chassis/en_US/general-development/cross-app-invocation/index.html
+++ b/content/references/java-chassis/en_US/general-development/cross-app-invocation/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2588,7 +2588,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/customized-tracing/index.html b/content/references/java-chassis/en_US/general-development/customized-tracing/index.html
index 0d6849e..e075ee0 100644
--- a/content/references/java-chassis/en_US/general-development/customized-tracing/index.html
+++ b/content/references/java-chassis/en_US/general-development/customized-tracing/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2732,7 +2732,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/dai-li-she-zhi/index.html b/content/references/java-chassis/en_US/general-development/dai-li-she-zhi/index.html
index 67c3dc5..4bdfb3d 100644
--- a/content/references/java-chassis/en_US/general-development/dai-li-she-zhi/index.html
+++ b/content/references/java-chassis/en_US/general-development/dai-li-she-zhi/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2517,7 +2517,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa/index.html b/content/references/java-chassis/en_US/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa/index.html
index d13ea26..4d4f67f 100644
--- a/content/references/java-chassis/en_US/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa/index.html
+++ b/content/references/java-chassis/en_US/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/dnsconfig/index.html b/content/references/java-chassis/en_US/general-development/dnsconfig/index.html
index 8378e84..989204a 100644
--- a/content/references/java-chassis/en_US/general-development/dnsconfig/index.html
+++ b/content/references/java-chassis/en_US/general-development/dnsconfig/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2584,7 +2584,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/error-handling/index.html b/content/references/java-chassis/en_US/general-development/error-handling/index.html
index b070613..cc8f52c 100644
--- a/content/references/java-chassis/en_US/general-development/error-handling/index.html
+++ b/content/references/java-chassis/en_US/general-development/error-handling/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2700,7 +2700,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/file-download/index.html b/content/references/java-chassis/en_US/general-development/file-download/index.html
index a8a5921..520189e 100644
--- a/content/references/java-chassis/en_US/general-development/file-download/index.html
+++ b/content/references/java-chassis/en_US/general-development/file-download/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2761,7 +2761,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/file-upload/index.html b/content/references/java-chassis/en_US/general-development/file-upload/index.html
index af95c23..cce8964 100644
--- a/content/references/java-chassis/en_US/general-development/file-upload/index.html
+++ b/content/references/java-chassis/en_US/general-development/file-upload/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2679,7 +2679,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/gated-launch/index.html b/content/references/java-chassis/en_US/general-development/gated-launch/index.html
index 98cc8d1..04dfe16 100644
--- a/content/references/java-chassis/en_US/general-development/gated-launch/index.html
+++ b/content/references/java-chassis/en_US/general-development/gated-launch/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/http-filter/index.html b/content/references/java-chassis/en_US/general-development/http-filter/index.html
index ea45ed2..fac393d 100644
--- a/content/references/java-chassis/en_US/general-development/http-filter/index.html
+++ b/content/references/java-chassis/en_US/general-development/http-filter/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2519,7 +2519,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/kuang-jia-shang-bao-ban-ben-hao/index.html b/content/references/java-chassis/en_US/general-development/kuang-jia-shang-bao-ban-ben-hao/index.html
index 9a18fb1..26c8d5d 100644
--- a/content/references/java-chassis/en_US/general-development/kuang-jia-shang-bao-ban-ben-hao/index.html
+++ b/content/references/java-chassis/en_US/general-development/kuang-jia-shang-bao-ban-ben-hao/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/local-develop-test/index.html b/content/references/java-chassis/en_US/general-development/local-develop-test/index.html
index 5928c48..21d4e86 100644
--- a/content/references/java-chassis/en_US/general-development/local-develop-test/index.html
+++ b/content/references/java-chassis/en_US/general-development/local-develop-test/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2742,7 +2742,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/metrics/index.html b/content/references/java-chassis/en_US/general-development/metrics/index.html
index 9780c93..38ba2b6 100644
--- a/content/references/java-chassis/en_US/general-development/metrics/index.html
+++ b/content/references/java-chassis/en_US/general-development/metrics/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -3215,7 +3215,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/microservice-invocation-chain/index.html b/content/references/java-chassis/en_US/general-development/microservice-invocation-chain/index.html
index 147a5d5..8ff2925 100644
--- a/content/references/java-chassis/en_US/general-development/microservice-invocation-chain/index.html
+++ b/content/references/java-chassis/en_US/general-development/microservice-invocation-chain/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2618,7 +2618,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/multienvironment/index.html b/content/references/java-chassis/en_US/general-development/multienvironment/index.html
index 392a1d5..8e4942f 100644
--- a/content/references/java-chassis/en_US/general-development/multienvironment/index.html
+++ b/content/references/java-chassis/en_US/general-development/multienvironment/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2535,7 +2535,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/produceprocess/index.html b/content/references/java-chassis/en_US/general-development/produceprocess/index.html
index 7b90b0b..cfbf4bb 100644
--- a/content/references/java-chassis/en_US/general-development/produceprocess/index.html
+++ b/content/references/java-chassis/en_US/general-development/produceprocess/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2589,7 +2589,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/reactive/index.html b/content/references/java-chassis/en_US/general-development/reactive/index.html
index f1e1f49..e6a7a0f 100644
--- a/content/references/java-chassis/en_US/general-development/reactive/index.html
+++ b/content/references/java-chassis/en_US/general-development/reactive/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2726,7 +2726,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/report-framework-version/index.html b/content/references/java-chassis/en_US/general-development/report-framework-version/index.html
index b31016a..c16e542 100644
--- a/content/references/java-chassis/en_US/general-development/report-framework-version/index.html
+++ b/content/references/java-chassis/en_US/general-development/report-framework-version/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2554,7 +2554,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/secret-field/index.html b/content/references/java-chassis/en_US/general-development/secret-field/index.html
index ab7f120..871a125 100644
--- a/content/references/java-chassis/en_US/general-development/secret-field/index.html
+++ b/content/references/java-chassis/en_US/general-development/secret-field/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2601,7 +2601,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/service-information-printer/index.html b/content/references/java-chassis/en_US/general-development/service-information-printer/index.html
index fa8cc46..a67026d 100644
--- a/content/references/java-chassis/en_US/general-development/service-information-printer/index.html
+++ b/content/references/java-chassis/en_US/general-development/service-information-printer/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2558,7 +2558,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/shutdown/index.html b/content/references/java-chassis/en_US/general-development/shutdown/index.html
index 14a8f2e..50671f5 100644
--- a/content/references/java-chassis/en_US/general-development/shutdown/index.html
+++ b/content/references/java-chassis/en_US/general-development/shutdown/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2559,7 +2559,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/thread-model/index.html b/content/references/java-chassis/en_US/general-development/thread-model/index.html
index ea480a5..dc3df21 100644
--- a/content/references/java-chassis/en_US/general-development/thread-model/index.html
+++ b/content/references/java-chassis/en_US/general-development/thread-model/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2527,7 +2527,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/types/index.html b/content/references/java-chassis/en_US/general-development/types/index.html
index de96591..a7e3ea5 100644
--- a/content/references/java-chassis/en_US/general-development/types/index.html
+++ b/content/references/java-chassis/en_US/general-development/types/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/general-development/visit-sc/index.html b/content/references/java-chassis/en_US/general-development/visit-sc/index.html
index c8b52cc..d6f349f 100644
--- a/content/references/java-chassis/en_US/general-development/visit-sc/index.html
+++ b/content/references/java-chassis/en_US/general-development/visit-sc/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2651,7 +2651,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/index.html b/content/references/java-chassis/en_US/index.html
index 1b03c89..9d17fee 100644
--- a/content/references/java-chassis/en_US/index.html
+++ b/content/references/java-chassis/en_US/index.html
@@ -14,7 +14,7 @@
       
       
       <link rel="icon" href="assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -22,7 +22,7 @@
       
     
     
-      <link rel="stylesheet" href="assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2472,7 +2472,7 @@
     <script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/packaging/standalone/index.html b/content/references/java-chassis/en_US/packaging/standalone/index.html
index 501bd1c..a988850 100644
--- a/content/references/java-chassis/en_US/packaging/standalone/index.html
+++ b/content/references/java-chassis/en_US/packaging/standalone/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2551,7 +2551,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/packaging/web-container/index.html b/content/references/java-chassis/en_US/packaging/web-container/index.html
index 82ea8b1..c76039a 100644
--- a/content/references/java-chassis/en_US/packaging/web-container/index.html
+++ b/content/references/java-chassis/en_US/packaging/web-container/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2557,7 +2557,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/question-and-answer/faq/index.html b/content/references/java-chassis/en_US/question-and-answer/faq/index.html
index 0553e1a..59e5254 100644
--- a/content/references/java-chassis/en_US/question-and-answer/faq/index.html
+++ b/content/references/java-chassis/en_US/question-and-answer/faq/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2895,7 +2895,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/question-and-answer/interface-compatibility/index.html b/content/references/java-chassis/en_US/question-and-answer/interface-compatibility/index.html
index 0b80bca..c5a6a66 100644
--- a/content/references/java-chassis/en_US/question-and-answer/interface-compatibility/index.html
+++ b/content/references/java-chassis/en_US/question-and-answer/interface-compatibility/index.html
@@ -14,7 +14,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -22,7 +22,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2465,7 +2465,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/question-and-answer/question_answer/index.html b/content/references/java-chassis/en_US/question-and-answer/question_answer/index.html
index 75970cc..f80a644 100644
--- a/content/references/java-chassis/en_US/question-and-answer/question_answer/index.html
+++ b/content/references/java-chassis/en_US/question-and-answer/question_answer/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2641,7 +2641,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/references-handlers/intruduction/index.html b/content/references/java-chassis/en_US/references-handlers/intruduction/index.html
index e65e18d..cd80f33 100644
--- a/content/references/java-chassis/en_US/references-handlers/intruduction/index.html
+++ b/content/references/java-chassis/en_US/references-handlers/intruduction/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2607,7 +2607,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/references-handlers/loadbalance/index.html b/content/references/java-chassis/en_US/references-handlers/loadbalance/index.html
index 6288fa4..e87e6f1 100644
--- a/content/references/java-chassis/en_US/references-handlers/loadbalance/index.html
+++ b/content/references/java-chassis/en_US/references-handlers/loadbalance/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2797,7 +2797,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/references-handlers/publickey/index.html b/content/references/java-chassis/en_US/references-handlers/publickey/index.html
index a02e89f..6e7d659 100644
--- a/content/references/java-chassis/en_US/references-handlers/publickey/index.html
+++ b/content/references/java-chassis/en_US/references-handlers/publickey/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2562,7 +2562,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/security/rsa/index.html b/content/references/java-chassis/en_US/security/rsa/index.html
index a490fc2..e9caea9 100644
--- a/content/references/java-chassis/en_US/security/rsa/index.html
+++ b/content/references/java-chassis/en_US/security/rsa/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2569,7 +2569,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/security/tls/index.html b/content/references/java-chassis/en_US/security/tls/index.html
index 418bfe2..f1929f1 100644
--- a/content/references/java-chassis/en_US/security/tls/index.html
+++ b/content/references/java-chassis/en_US/security/tls/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2781,7 +2781,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/security/tls/shi-yong-rsa-ren-zheng/index.html b/content/references/java-chassis/en_US/security/tls/shi-yong-rsa-ren-zheng/index.html
index 9ad7a6d..12431ee 100644
--- a/content/references/java-chassis/en_US/security/tls/shi-yong-rsa-ren-zheng/index.html
+++ b/content/references/java-chassis/en_US/security/tls/shi-yong-rsa-ren-zheng/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/sitemap.xml.gz b/content/references/java-chassis/en_US/sitemap.xml.gz
index 22be0db..8573b47 100644
--- a/content/references/java-chassis/en_US/sitemap.xml.gz
+++ b/content/references/java-chassis/en_US/sitemap.xml.gz
Binary files differ
diff --git a/content/references/java-chassis/en_US/start/architecture/index.html b/content/references/java-chassis/en_US/start/architecture/index.html
index 4bf8f72..a7d9a1e 100644
--- a/content/references/java-chassis/en_US/start/architecture/index.html
+++ b/content/references/java-chassis/en_US/start/architecture/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2526,7 +2526,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/start/deployment-on-cloud/index.html b/content/references/java-chassis/en_US/start/deployment-on-cloud/index.html
index fdd7726..5fe5448 100644
--- a/content/references/java-chassis/en_US/start/deployment-on-cloud/index.html
+++ b/content/references/java-chassis/en_US/start/deployment-on-cloud/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2875,7 +2875,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/start/development-environment/index.html b/content/references/java-chassis/en_US/start/development-environment/index.html
index 77fed06..1db594f 100644
--- a/content/references/java-chassis/en_US/start/development-environment/index.html
+++ b/content/references/java-chassis/en_US/start/development-environment/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2752,7 +2752,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/start/first-sample/index.html b/content/references/java-chassis/en_US/start/first-sample/index.html
index 1dfc4f9..a6e8f42 100644
--- a/content/references/java-chassis/en_US/start/first-sample/index.html
+++ b/content/references/java-chassis/en_US/start/first-sample/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2790,7 +2790,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/start/terminology/index.html b/content/references/java-chassis/en_US/start/terminology/index.html
index 305b6b7..91af62c 100644
--- a/content/references/java-chassis/en_US/start/terminology/index.html
+++ b/content/references/java-chassis/en_US/start/terminology/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2603,7 +2603,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/transports/highway-rpc/index.html b/content/references/java-chassis/en_US/transports/highway-rpc/index.html
index e391a4b..d1c5521 100644
--- a/content/references/java-chassis/en_US/transports/highway-rpc/index.html
+++ b/content/references/java-chassis/en_US/transports/highway-rpc/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2579,7 +2579,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/transports/http2/index.html b/content/references/java-chassis/en_US/transports/http2/index.html
index e7d7c6b..c1a25cb 100644
--- a/content/references/java-chassis/en_US/transports/http2/index.html
+++ b/content/references/java-chassis/en_US/transports/http2/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2671,7 +2671,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/transports/rest-over-servlet/index.html b/content/references/java-chassis/en_US/transports/rest-over-servlet/index.html
index a10d265..3efbd48 100644
--- a/content/references/java-chassis/en_US/transports/rest-over-servlet/index.html
+++ b/content/references/java-chassis/en_US/transports/rest-over-servlet/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2820,7 +2820,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/transports/rest-over-vertx/index.html b/content/references/java-chassis/en_US/transports/rest-over-vertx/index.html
index 6f6af98..a808de1 100644
--- a/content/references/java-chassis/en_US/transports/rest-over-vertx/index.html
+++ b/content/references/java-chassis/en_US/transports/rest-over-vertx/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2710,7 +2710,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/transports/transport/index.html b/content/references/java-chassis/en_US/transports/transport/index.html
index 946b64d..e3fbca8 100644
--- a/content/references/java-chassis/en_US/transports/transport/index.html
+++ b/content/references/java-chassis/en_US/transports/transport/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2446,7 +2446,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/transports/verticle-count/index.html b/content/references/java-chassis/en_US/transports/verticle-count/index.html
index 7c6c3c8..7c9d23e 100644
--- a/content/references/java-chassis/en_US/transports/verticle-count/index.html
+++ b/content/references/java-chassis/en_US/transports/verticle-count/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2475,7 +2475,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/components-for-spring-boot/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/components-for-spring-boot/index.html
index 08af6a2..e670caa 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/components-for-spring-boot/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/components-for-spring-boot/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2656,7 +2656,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-between-java-web/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-between-java-web/index.html
index 56d7bc1..ac21ee1 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-between-java-web/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-between-java-web/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2436,7 +2436,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-spring-mvc/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-spring-mvc/index.html
index b16cc8f..e1ea4e5 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-spring-mvc/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/diff-spring-mvc/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2592,7 +2592,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/java-application/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/java-application/index.html
index 0944812..f5a9c65 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/java-application/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/java-application/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2496,7 +2496,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/spring-mvcmo-shi-de-cha-yi/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/spring-mvcmo-shi-de-cha-yi/index.html
index e1a15f8..e36e99b 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/spring-mvcmo-shi-de-cha-yi/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/spring-mvcmo-shi-de-cha-yi/index.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2422,7 +2422,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot/index.html
index bf9751c..44d3089 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2468,7 +2468,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/web-application/index.html b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/web-application/index.html
index f2d5c7e..785f36a 100644
--- a/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/web-application/index.html
+++ b/content/references/java-chassis/en_US/using-java-chassis-in-spring-boot/web-application/index.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -2477,7 +2477,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/404.html b/content/references/java-chassis/zh_CN/404.html
index fd0bcd5..cd69915 100644
--- a/content/references/java-chassis/zh_CN/404.html
+++ b/content/references/java-chassis/zh_CN/404.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="/assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="/assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="/assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="/registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="/config/config-service.html" class="md-nav__link">
+      <a href="/config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="/config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="/config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="/config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="/config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="/references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="/references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="/references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="/references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="/references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="/config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="/config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="/config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2820,7 +2883,7 @@
     <script id="__config" type="application/json">{"base": "/", "features": [], "search": "/assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="/assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="/assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/assets/javascripts/bundle.8fd75fb4.min.js b/content/references/java-chassis/zh_CN/assets/javascripts/bundle.8fd75fb4.min.js
deleted file mode 100644
index 2f2f130..0000000
--- a/content/references/java-chassis/zh_CN/assets/javascripts/bundle.8fd75fb4.min.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";(()=>{var _i=Object.create;var br=Object.defineProperty;var Ai=Object.getOwnPropertyDescriptor;var Ci=Object.getOwnPropertyNames,Ft=Object.getOwnPropertySymbols,ki=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var Zr=(e,t,r)=>t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))vr.call(t,r)&&Zr(e,r,t[r]);if(Ft)for(var r of Ft(t))eo.call(t,r)&&Zr(e,r,t[r]);return e};var to=(e,t)=>{var r={};for(var o in e)vr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ft)for(var o of Ft(e))t.indexOf(o)<0&&eo.call(e,o)&&(r[o]=e[o]);return r};var gr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hi=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ci(t))!vr.call(e,n)&&n!==r&&br(e,n,{get:()=>t[n],enumerable:!(o=Ai(t,n))||o.enumerable});return e};var jt=(e,t,r)=>(r=e!=null?_i(ki(e)):{},Hi(t||!e||!e.__esModule?br(r,"default",{value:e,enumerable:!0}):r,e));var ro=(e,t,r)=>new Promise((o,n)=>{var i=c=>{try{a(r.next(c))}catch(p){n(p)}},s=c=>{try{a(r.throw(c))}catch(p){n(p)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(e,t)).next())});var no=gr((xr,oo)=>{(function(e,t){typeof xr=="object"&&typeof oo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(xr,function(){"use strict";function e(r){var o=!0,n=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(C){return!!(C&&C!==document&&C.nodeName!=="HTML"&&C.nodeName!=="BODY"&&"classList"in C&&"contains"in C.classList)}function c(C){var ct=C.type,Ne=C.tagName;return!!(Ne==="INPUT"&&s[ct]&&!C.readOnly||Ne==="TEXTAREA"&&!C.readOnly||C.isContentEditable)}function p(C){C.classList.contains("focus-visible")||(C.classList.add("focus-visible"),C.setAttribute("data-focus-visible-added",""))}function l(C){C.hasAttribute("data-focus-visible-added")&&(C.classList.remove("focus-visible"),C.removeAttribute("data-focus-visible-added"))}function f(C){C.metaKey||C.altKey||C.ctrlKey||(a(r.activeElement)&&p(r.activeElement),o=!0)}function u(C){o=!1}function h(C){a(C.target)&&(o||c(C.target))&&p(C.target)}function w(C){a(C.target)&&(C.target.classList.contains("focus-visible")||C.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),l(C.target))}function A(C){document.visibilityState==="hidden"&&(n&&(o=!0),Z())}function Z(){document.addEventListener("mousemove",J),document.addEventListener("mousedown",J),document.addEventListener("mouseup",J),document.addEventListener("pointermove",J),document.addEventListener("pointerdown",J),document.addEventListener("pointerup",J),document.addEventListener("touchmove",J),document.addEventListener("touchstart",J),document.addEventListener("touchend",J)}function te(){document.removeEventListener("mousemove",J),document.removeEventListener("mousedown",J),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",J),document.removeEventListener("pointerdown",J),document.removeEventListener("pointerup",J),document.removeEventListener("touchmove",J),document.removeEventListener("touchstart",J),document.removeEventListener("touchend",J)}function J(C){C.target.nodeName&&C.target.nodeName.toLowerCase()==="html"||(o=!1,te())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",A,!0),Z(),r.addEventListener("focus",h,!0),r.addEventListener("blur",w,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var zr=gr((kt,Vr)=>{/*!
- * clipboard.js v2.0.11
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */(function(t,r){typeof kt=="object"&&typeof Vr=="object"?Vr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof kt=="object"?kt.ClipboardJS=r():t.ClipboardJS=r()})(kt,function(){return function(){var e={686:function(o,n,i){"use strict";i.d(n,{default:function(){return Li}});var s=i(279),a=i.n(s),c=i(370),p=i.n(c),l=i(817),f=i.n(l);function u(D){try{return document.execCommand(D)}catch(M){return!1}}var h=function(M){var O=f()(M);return u("cut"),O},w=h;function A(D){var M=document.documentElement.getAttribute("dir")==="rtl",O=document.createElement("textarea");O.style.fontSize="12pt",O.style.border="0",O.style.padding="0",O.style.margin="0",O.style.position="absolute",O.style[M?"right":"left"]="-9999px";var I=window.pageYOffset||document.documentElement.scrollTop;return O.style.top="".concat(I,"px"),O.setAttribute("readonly",""),O.value=D,O}var Z=function(M,O){var I=A(M);O.container.appendChild(I);var W=f()(I);return u("copy"),I.remove(),W},te=function(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},I="";return typeof M=="string"?I=Z(M,O):M instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(M==null?void 0:M.type)?I=Z(M.value,O):(I=f()(M),u("copy")),I},J=te;function C(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(O){return typeof O}:C=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},C(D)}var ct=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=M.action,I=O===void 0?"copy":O,W=M.container,K=M.target,Ce=M.text;if(I!=="copy"&&I!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(K!==void 0)if(K&&C(K)==="object"&&K.nodeType===1){if(I==="copy"&&K.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(I==="cut"&&(K.hasAttribute("readonly")||K.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ce)return J(Ce,{container:W});if(K)return I==="cut"?w(K):J(K,{container:W})},Ne=ct;function Pe(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(O){return typeof O}:Pe=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},Pe(D)}function xi(D,M){if(!(D instanceof M))throw new TypeError("Cannot call a class as a function")}function Xr(D,M){for(var O=0;O<M.length;O++){var I=M[O];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(D,I.key,I)}}function yi(D,M,O){return M&&Xr(D.prototype,M),O&&Xr(D,O),D}function Ei(D,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(M&&M.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),M&&dr(D,M)}function dr(D,M){return dr=Object.setPrototypeOf||function(I,W){return I.__proto__=W,I},dr(D,M)}function wi(D){var M=Oi();return function(){var I=Pt(D),W;if(M){var K=Pt(this).constructor;W=Reflect.construct(I,arguments,K)}else W=I.apply(this,arguments);return Ti(this,W)}}function Ti(D,M){return M&&(Pe(M)==="object"||typeof M=="function")?M:Si(D)}function Si(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function Oi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(D){return!1}}function Pt(D){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},Pt(D)}function hr(D,M){var O="data-clipboard-".concat(D);if(M.hasAttribute(O))return M.getAttribute(O)}var Mi=function(D){Ei(O,D);var M=wi(O);function O(I,W){var K;return xi(this,O),K=M.call(this),K.resolveOptions(W),K.listenClick(I),K}return yi(O,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action=="function"?W.action:this.defaultAction,this.target=typeof W.target=="function"?W.target:this.defaultTarget,this.text=typeof W.text=="function"?W.text:this.defaultText,this.container=Pe(W.container)==="object"?W.container:document.body}},{key:"listenClick",value:function(W){var K=this;this.listener=p()(W,"click",function(Ce){return K.onClick(Ce)})}},{key:"onClick",value:function(W){var K=W.delegateTarget||W.currentTarget,Ce=this.action(K)||"copy",It=Ne({action:Ce,container:this.container,target:this.target(K),text:this.text(K)});this.emit(It?"success":"error",{action:Ce,text:It,trigger:K,clearSelection:function(){K&&K.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(W){return hr("action",W)}},{key:"defaultTarget",value:function(W){var K=hr("target",W);if(K)return document.querySelector(K)}},{key:"defaultText",value:function(W){return hr("text",W)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(W){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return J(W,K)}},{key:"cut",value:function(W){return w(W)}},{key:"isSupported",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],K=typeof W=="string"?[W]:W,Ce=!!document.queryCommandSupported;return K.forEach(function(It){Ce=Ce&&!!document.queryCommandSupported(It)}),Ce}}]),O}(a()),Li=Mi},828:function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}o.exports=s},438:function(o,n,i){var s=i(828);function a(l,f,u,h,w){var A=p.apply(this,arguments);return l.addEventListener(u,A,w),{destroy:function(){l.removeEventListener(u,A,w)}}}function c(l,f,u,h,w){return typeof l.addEventListener=="function"?a.apply(null,arguments):typeof u=="function"?a.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(A){return a(A,f,u,h,w)}))}function p(l,f,u,h){return function(w){w.delegateTarget=s(w.target,f),w.delegateTarget&&h.call(l,w)}}o.exports=c},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(o,n,i){var s=i(879),a=i(438);function c(u,h,w){if(!u&&!h&&!w)throw new Error("Missing required arguments");if(!s.string(h))throw new TypeError("Second argument must be a String");if(!s.fn(w))throw new TypeError("Third argument must be a Function");if(s.node(u))return p(u,h,w);if(s.nodeList(u))return l(u,h,w);if(s.string(u))return f(u,h,w);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(u,h,w){return u.addEventListener(h,w),{destroy:function(){u.removeEventListener(h,w)}}}function l(u,h,w){return Array.prototype.forEach.call(u,function(A){A.addEventListener(h,w)}),{destroy:function(){Array.prototype.forEach.call(u,function(A){A.removeEventListener(h,w)})}}}function f(u,h,w){return a(document.body,u,h,w)}o.exports=c},817:function(o){function n(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),p=document.createRange();p.selectNodeContents(i),c.removeAllRanges(),c.addRange(p),s=c.toString()}return s}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,s,a){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var c=this;function p(){c.off(i,p),s.apply(a,arguments)}return p._=s,this.on(i,p,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),c=0,p=a.length;for(c;c<p;c++)a[c].fn.apply(a[c].ctx,s);return this},off:function(i,s){var a=this.e||(this.e={}),c=a[i],p=[];if(c&&s)for(var l=0,f=c.length;l<f;l++)c[l].fn!==s&&c[l].fn._!==s&&p.push(c[l]);return p.length?a[i]=p:delete a[i],this}},o.exports=n,o.exports.TinyEmitter=n}},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}}(),function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}}(),function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),r(686)}().default})});var Kn=gr((Cw,qn)=>{"use strict";/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var Va=/["'&<>]/;qn.exports=za;function za(e){var t=""+e,r=Va.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}s!==i&&(n+=t.substring(s,i)),s=i+1,n+=o}return s!==i?n+t.substring(s,i):n}});var mM=jt(no());/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */var yr=function(e,t){return yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},yr(e,t)};function se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function io(e,t,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{p(o.next(l))}catch(f){s(f)}}function c(l){try{p(o.throw(l))}catch(f){s(f)}}function p(l){l.done?i(l.value):n(l.value).then(a,c)}p((o=o.apply(e,t||[])).next())})}function Ut(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(l){return c([p,l])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=p[0]&2?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(l){p=[6,l],n=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function ue(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function z(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function ot(e){return this instanceof ot?(this.v=e,this):new ot(e)}function ao(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(u){o[u]&&(n[u]=function(h){return new Promise(function(w,A){i.push([u,h,w,A])>1||a(u,h)})})}function a(u,h){try{c(o[u](h))}catch(w){f(i[0][3],w)}}function c(u){u.value instanceof ot?Promise.resolve(u.value.v).then(p,l):f(i[0][2],u)}function p(u){a("next",u)}function l(u){a("throw",u)}function f(u,h){u(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function so(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ue=="function"?ue(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),n(a,c,s.done,s.value)})}}function n(i,s,a,c){Promise.resolve(c).then(function(p){i({value:p,done:a})},s)}}function k(e){return typeof e=="function"}function pt(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Wt=pt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
-`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
-  `):"",this.name="UnsubscriptionError",this.errors=r}});function Ve(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ue(s),c=a.next();!c.done;c=a.next()){var p=c.value;p.remove(this)}}catch(A){t={error:A}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(k(l))try{l()}catch(A){i=A instanceof Wt?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var u=ue(f),h=u.next();!h.done;h=u.next()){var w=h.value;try{co(w)}catch(A){i=i!=null?i:[],A instanceof Wt?i=z(z([],V(i)),V(A.errors)):i.push(A)}}}catch(A){o={error:A}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new Wt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)co(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ve(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ve(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Er=Ie.EMPTY;function Dt(e){return e instanceof Ie||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function co(e){k(e)?e():e.unsubscribe()}var ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var lt={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=lt.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,z([e,t],V(r))):setTimeout.apply(void 0,z([e,t],V(r)))},clearTimeout:function(e){var t=lt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Nt(e){lt.setTimeout(function(){var t=ke.onUnhandledError;if(t)t(e);else throw e})}function Se(){}var po=function(){return wr("C",void 0,void 0)}();function lo(e){return wr("E",void 0,e)}function mo(e){return wr("N",e,void 0)}function wr(e,t,r){return{kind:e,value:t,error:r}}var nt=null;function mt(e){if(ke.useDeprecatedSynchronousErrorHandling){var t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){var r=nt,o=r.errorThrown,n=r.error;if(nt=null,o)throw n}}else e()}function fo(e){ke.useDeprecatedSynchronousErrorHandling&&nt&&(nt.errorThrown=!0,nt.error=e)}var Tt=function(e){se(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Dt(r)&&r.add(o)):o.destination=Ii,o}return t.create=function(r,o,n){return new it(r,o,n)},t.prototype.next=function(r){this.isStopped?Sr(mo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Sr(lo(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Sr(po,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ie);var $i=Function.prototype.bind;function Tr(e,t){return $i.call(e,t)}var Ri=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(o){Vt(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){Vt(o)}else Vt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Vt(r)}},e}(),it=function(e){se(t,e);function t(r,o,n){var i=e.call(this)||this,s;if(k(r)||!r)s={next:r!=null?r:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var a;i&&ke.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Tr(r.next,a),error:r.error&&Tr(r.error,a),complete:r.complete&&Tr(r.complete,a)}):s=r}return i.destination=new Ri(s),i}return t}(Tt);function Vt(e){ke.useDeprecatedSynchronousErrorHandling?fo(e):Nt(e)}function Pi(e){throw e}function Sr(e,t){var r=ke.onStoppedNotification;r&&lt.setTimeout(function(){return r(e,t)})}var Ii={closed:!0,next:Se,error:Pi,complete:Se};var ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ce(e){return e}function uo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Or(e)}function Or(e){return e.length===0?ce:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var j=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,o){var n=this,i=ji(t)?t:new it(t,r,o);return mt(function(){var s=n,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=ho(r),new r(function(n,i){var s=new it({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:n});o.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ft]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Or(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ho(t),new t(function(o,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return o(i)})})},e.create=function(t){return new e(t)},e}();function ho(e){var t;return(t=e!=null?e:ke.Promise)!==null&&t!==void 0?t:Promise}function Fi(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function ji(e){return e&&e instanceof Tt||Fi(e)&&Dt(e)}function Ui(e){return k(e==null?void 0:e.lift)}function x(e){return function(t){if(Ui(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function S(e,t,r,o,n){return new Wi(e,t,r,o,n)}var Wi=function(e){se(t,e);function t(r,o,n,i,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=o?function(p){try{o(p)}catch(l){r.error(l)}}:e.prototype._next,c._error=i?function(p){try{i(p)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=n?function(){try{n()}catch(p){r.error(p)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Tt);var ut={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=ut.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new Ie(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,z([],V(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,z([],V(e)))},delegate:void 0};var bo=pt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var v=function(e){se(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new vo(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new bo},t.prototype.next=function(r){var o=this;mt(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=ue(o.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;mt(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;mt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?Er:(this.currentObservers=null,a.push(r),new Ie(function(){o.currentObservers=null,Ve(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,o){return new vo(r,o)},t}(j);var vo=function(e){se(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:Er},t}(v);var St={now:function(){return(St.delegate||Date).now()},delegate:void 0};var Ot=function(e){se(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=St);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,c=o._windowTime;n||(i.push(r),!s&&i.push(a.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),c=0;c<a.length&&!r.closed;c+=i?1:2)r.next(a[c]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*o;if(o<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var c=n.now(),p=0,l=1;l<i.length&&i[l]<=c;l+=2)p=l;p&&i.splice(0,p+1)}},t}(v);var go=function(e){se(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t}(Ie);var Mt={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Mt.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,z([e,t],V(r))):setInterval.apply(void 0,z([e,t],V(r)))},clearInterval:function(e){var t=Mt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var zt=function(e){se(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Mt.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Mt.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ve(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(go);var Mr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=St.now,e}();var qt=function(e){se(t,e);function t(r,o){o===void 0&&(o=Mr.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t}(Mr);var ie=new qt(zt),Lr=ie;var xo=function(e){se(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var s=r.actions;o!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==o&&(ut.cancelAnimationFrame(o),r._scheduled=void 0)},t}(zt);var yo=function(e){se(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t}(qt);var de=new yo(xo);var L=new j(function(e){return e.complete()});function Kt(e){return e&&k(e.schedule)}function _r(e){return e[e.length-1]}function Je(e){return k(_r(e))?e.pop():void 0}function Ae(e){return Kt(_r(e))?e.pop():void 0}function Qt(e,t){return typeof _r(e)=="number"?e.pop():t}var dt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Yt(e){return k(e==null?void 0:e.then)}function Bt(e){return k(e[ft])}function Gt(e){return Symbol.asyncIterator&&k(e==null?void 0:e[Symbol.asyncIterator])}function Jt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Di(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xt=Di();function Zt(e){return k(e==null?void 0:e[Xt])}function er(e){return ao(this,arguments,function(){var r,o,n,i;return Ut(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,ot(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,ot(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,ot(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function tr(e){return k(e==null?void 0:e.getReader)}function N(e){if(e instanceof j)return e;if(e!=null){if(Bt(e))return Ni(e);if(dt(e))return Vi(e);if(Yt(e))return zi(e);if(Gt(e))return Eo(e);if(Zt(e))return qi(e);if(tr(e))return Ki(e)}throw Jt(e)}function Ni(e){return new j(function(t){var r=e[ft]();if(k(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vi(e){return new j(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function zi(e){return new j(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Nt)})}function qi(e){return new j(function(t){var r,o;try{for(var n=ue(e),i=n.next();!i.done;i=n.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Eo(e){return new j(function(t){Qi(e,t).catch(function(r){return t.error(r)})})}function Ki(e){return Eo(er(e))}function Qi(e,t){var r,o,n,i;return io(this,void 0,void 0,function(){var s,a;return Ut(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=so(e),c.label=1;case 1:return[4,r.next()];case 2:if(o=c.sent(),!!o.done)return[3,4];if(s=o.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),n={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function xe(e,t,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function Oe(e,t){return t===void 0&&(t=0),x(function(r,o){r.subscribe(S(o,function(n){return xe(o,e,function(){return o.next(n)},t)},function(){return xe(o,e,function(){return o.complete()},t)},function(n){return xe(o,e,function(){return o.error(n)},t)}))})}function ze(e,t){return t===void 0&&(t=0),x(function(r,o){o.add(e.schedule(function(){return r.subscribe(o)},t))})}function wo(e,t){return N(e).pipe(ze(t),Oe(t))}function To(e,t){return N(e).pipe(ze(t),Oe(t))}function So(e,t){return new j(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}function Oo(e,t){return new j(function(r){var o;return xe(r,t,function(){o=e[Xt](),xe(r,t,function(){var n,i,s;try{n=o.next(),i=n.value,s=n.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return k(o==null?void 0:o.return)&&o.return()}})}function rr(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(function(r){xe(r,t,function(){var o=e[Symbol.asyncIterator]();xe(r,t,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function Mo(e,t){return rr(er(e),t)}function Lo(e,t){if(e!=null){if(Bt(e))return wo(e,t);if(dt(e))return So(e,t);if(Yt(e))return To(e,t);if(Gt(e))return rr(e,t);if(Zt(e))return Oo(e,t);if(tr(e))return Mo(e,t)}throw Jt(e)}function fe(e,t){return t?Lo(e,t):N(e)}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e);return fe(e,r)}function Ar(e,t){var r=k(e)?e:function(){return e},o=function(n){return n.error(r())};return new j(t?function(n){return t.schedule(o,0,n)}:o)}var or=pt(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function _o(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return x(function(r,o){var n=0;r.subscribe(S(o,function(i){o.next(e.call(t,i,n++))}))})}var Yi=Array.isArray;function Bi(e,t){return Yi(t)?e.apply(void 0,z([],V(t))):e(t)}function Xe(e){return m(function(t){return Bi(e,t)})}var Gi=Array.isArray,Ji=Object.getPrototypeOf,Xi=Object.prototype,Zi=Object.keys;function Ao(e){if(e.length===1){var t=e[0];if(Gi(t))return{args:t,keys:null};if(ea(t)){var r=Zi(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function ea(e){return e&&typeof e=="object"&&Ji(e)===Xi}function Co(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Je(e),n=Ao(e),i=n.args,s=n.keys;if(i.length===0)return fe([],r);var a=new j(Cr(i,r,s?function(c){return Co(s,c)}:ce));return o?a.pipe(Xe(o)):a}function Cr(e,t,r){return r===void 0&&(r=ce),function(o){ko(t,function(){for(var n=e.length,i=new Array(n),s=n,a=n,c=function(l){ko(t,function(){var f=fe(e[l],t),u=!1;f.subscribe(S(o,function(h){i[l]=h,u||(u=!0,a--),a||o.next(r(i.slice()))},function(){--s||o.complete()}))},o)},p=0;p<n;p++)c(p)},o)}}function ko(e,t,r){e?xe(r,e,t):t()}function Ho(e,t,r,o,n,i,s,a){var c=[],p=0,l=0,f=!1,u=function(){f&&!c.length&&!p&&t.complete()},h=function(A){return p<o?w(A):c.push(A)},w=function(A){i&&t.next(A),p++;var Z=!1;N(r(A,l++)).subscribe(S(t,function(te){n==null||n(te),i?h(te):t.next(te)},function(){Z=!0},void 0,function(){if(Z)try{p--;for(var te=function(){var J=c.shift();s?xe(t,s,function(){return w(J)}):w(J)};c.length&&p<o;)te();u()}catch(J){t.error(J)}}))};return e.subscribe(S(t,h,function(){f=!0,u()})),function(){a==null||a()}}function re(e,t,r){return r===void 0&&(r=1/0),k(t)?re(function(o,n){return m(function(i,s){return t(o,i,n,s)})(N(e(o,n)))},r):(typeof t=="number"&&(r=t),x(function(o,n){return Ho(o,n,e,r)}))}function ht(e){return e===void 0&&(e=1/0),re(ce,e)}function $o(){return ht(1)}function Fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $o()(fe(e,Ae(e)))}function H(e){return new j(function(t){N(e()).subscribe(t)})}var ta=["addListener","removeListener"],ra=["addEventListener","removeEventListener"],oa=["on","off"];function d(e,t,r,o){if(k(r)&&(o=r,r=void 0),o)return d(e,t,r).pipe(Xe(o));var n=V(aa(e)?ra.map(function(a){return function(c){return e[a](t,c,r)}}):na(e)?ta.map(Ro(e,t)):ia(e)?oa.map(Ro(e,t)):[],2),i=n[0],s=n[1];if(!i&&dt(e))return re(function(a){return d(a,t,r)})(N(e));if(!i)throw new TypeError("Invalid event target");return new j(function(a){var c=function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];return a.next(1<p.length?p:p[0])};return i(c),function(){return s(c)}})}function Ro(e,t){return function(r){return function(o){return e[r](t,o)}}}function na(e){return k(e.addListener)&&k(e.removeListener)}function ia(e){return k(e.on)&&k(e.off)}function aa(e){return k(e.addEventListener)&&k(e.removeEventListener)}function nr(e,t,r){return r?nr(e,t).pipe(Xe(r)):new j(function(o){var n=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o.next(s.length===1?s[0]:s)},i=e(n);return k(t)?function(){return t(n,i)}:void 0})}function Ze(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Lr);var o=-1;return t!=null&&(Kt(t)?r=t:o=t),new j(function(n){var i=_o(e)?+e-r.now():e;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Qt(e,1/0),n=e;return n.length?n.length===1?N(n[0]):ht(o)(fe(n,r)):L}var qe=new j(Se);var sa=Array.isArray;function bt(e){return e.length===1&&sa(e[0])?e[0]:e}function g(e,t){return x(function(r,o){var n=0;r.subscribe(S(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function Lt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je(e),o=bt(e);return o.length?new j(function(n){var i=o.map(function(){return[]}),s=o.map(function(){return!1});n.add(function(){i=s=null});for(var a=function(p){N(o[p]).subscribe(S(n,function(l){if(i[p].push(l),i.every(function(u){return u.length})){var f=i.map(function(u){return u.shift()});n.next(r?r.apply(void 0,z([],V(f))):f),i.some(function(u,h){return!u.length&&s[h]})&&n.complete()}},function(){s[p]=!0,!i[p].length&&n.complete()}))},c=0;!n.closed&&c<o.length;c++)a(c);return function(){i=s=null}}):L}function Po(e){return x(function(t,r){var o=!1,n=null,i=null,s=!1,a=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var p=n;n=null,r.next(p)}s&&r.complete()},c=function(){i=null,s&&r.complete()};t.subscribe(S(r,function(p){o=!0,n=p,i||N(e(p)).subscribe(i=S(r,a,c))},function(){s=!0,(!o||!i||i.closed)&&r.complete()}))})}function Me(e,t){return t===void 0&&(t=ie),Po(function(){return Ze(e,t)})}function Ke(e,t){return t===void 0&&(t=null),t=t!=null?t:e,x(function(r,o){var n=[],i=0;r.subscribe(S(o,function(s){var a,c,p,l,f=null;i++%t===0&&n.push([]);try{for(var u=ue(n),h=u.next();!h.done;h=u.next()){var w=h.value;w.push(s),e<=w.length&&(f=f!=null?f:[],f.push(w))}}catch(te){a={error:te}}finally{try{h&&!h.done&&(c=u.return)&&c.call(u)}finally{if(a)throw a.error}}if(f)try{for(var A=ue(f),Z=A.next();!Z.done;Z=A.next()){var w=Z.value;Ve(n,w),o.next(w)}}catch(te){p={error:te}}finally{try{Z&&!Z.done&&(l=A.return)&&l.call(A)}finally{if(p)throw p.error}}},function(){var s,a;try{for(var c=ue(n),p=c.next();!p.done;p=c.next()){var l=p.value;o.next(l)}}catch(f){s={error:f}}finally{try{p&&!p.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}o.complete()},void 0,function(){n=null}))})}function he(e){return x(function(t,r){var o=null,n=!1,i;o=t.subscribe(S(r,void 0,void 0,function(s){i=N(e(s,he(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function Io(e,t,r,o,n){return function(i,s){var a=r,c=t,p=0;i.subscribe(S(s,function(l){var f=p++;c=a?e(c,l,f):(a=!0,l),o&&s.next(c)},n&&function(){a&&s.next(c),s.complete()}))}}function kr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je(e);return r?uo(kr.apply(void 0,z([],V(e))),Xe(r)):x(function(o,n){Cr(z([o],V(bt(e))))(n)})}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kr.apply(void 0,z([],V(e)))}function be(e,t){return t===void 0&&(t=ie),x(function(r,o){var n=null,i=null,s=null,a=function(){if(n){n.unsubscribe(),n=null;var p=i;i=null,o.next(p)}};function c(){var p=s+e,l=t.now();if(l<p){n=this.schedule(void 0,p-l),o.add(n);return}a()}r.subscribe(S(o,function(p){i=p,s=t.now(),n||(n=t.schedule(c,e),o.add(n))},function(){a(),o.complete()},void 0,function(){i=n=null}))})}function Qe(e){return x(function(t,r){var o=!1;t.subscribe(S(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function ye(e){return e<=0?function(){return L}:x(function(t,r){var o=0;t.subscribe(S(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function ee(){return x(function(e,t){e.subscribe(S(t,Se))})}function Fo(e){return m(function(){return e})}function Hr(e,t){return t?function(r){return Fe(t.pipe(ye(1),ee()),r.pipe(Hr(e)))}:re(function(r,o){return N(e(r,o)).pipe(ye(1),Fo(r))})}function Ye(e,t){t===void 0&&(t=ie);var r=Ze(e,t);return Hr(function(){return r})}function Y(e,t){return t===void 0&&(t=ce),e=e!=null?e:ca,x(function(r,o){var n,i=!0;r.subscribe(S(o,function(s){var a=t(s);(i||!e(n,a))&&(i=!1,n=a,o.next(s))}))})}function ca(e,t){return e===t}function X(e,t){return Y(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function jo(e){return e===void 0&&(e=pa),x(function(t,r){var o=!1;t.subscribe(S(r,function(n){o=!0,r.next(n)},function(){return o?r.complete():r.error(e())}))})}function pa(){return new or}function oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Fe(r,$.apply(void 0,z([],V(e))))}}function _(e){return x(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function He(e,t){var r=arguments.length>=2;return function(o){return o.pipe(e?g(function(n,i){return e(n,i,o)}):ce,ye(1),r?Qe(t):jo(function(){return new or}))}}function $r(e){return e<=0?function(){return L}:x(function(t,r){var o=[];t.subscribe(S(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var s=ue(o),a=s.next();!a.done;a=s.next()){var c=a.value;r.next(c)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function Uo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Qt(e,1/0);return e=bt(e),x(function(n,i){ht(o)(fe(z([n],V(e)),r)).subscribe(i)})}function $e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Uo.apply(void 0,z([],V(e)))}function at(e){var t,r=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,o=e.delay):r=e),r<=0?function(){return L}:x(function(n,i){var s=0,a,c=function(){if(a==null||a.unsubscribe(),a=null,o!=null){var l=typeof o=="number"?Ze(o):N(o(s)),f=S(i,function(){f.unsubscribe(),p()});l.subscribe(f)}else p()},p=function(){var l=!1;a=n.subscribe(S(i,void 0,function(){++s<r?a?c():l=!0:i.complete()})),l&&c()};p()})}function Rr(e,t){return x(Io(e,t,arguments.length>=2,!0))}function le(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new v}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,c=a===void 0?!0:a;return function(p){var l,f,u,h=0,w=!1,A=!1,Z=function(){f==null||f.unsubscribe(),f=void 0},te=function(){Z(),l=u=void 0,w=A=!1},J=function(){var C=l;te(),C==null||C.unsubscribe()};return x(function(C,ct){h++,!A&&!w&&Z();var Ne=u=u!=null?u:r();ct.add(function(){h--,h===0&&!A&&!w&&(f=Pr(J,c))}),Ne.subscribe(ct),!l&&h>0&&(l=new it({next:function(Pe){return Ne.next(Pe)},error:function(Pe){A=!0,Z(),f=Pr(te,n,Pe),Ne.error(Pe)},complete:function(){w=!0,Z(),f=Pr(te,s),Ne.complete()}}),N(C).subscribe(l))})(p)}}function Pr(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var n=new it({next:function(){n.unsubscribe(),e()}});return N(t.apply(void 0,z([],V(r)))).subscribe(n)}}function B(e,t,r){var o,n,i,s,a=!1;return e&&typeof e=="object"?(o=e.bufferSize,s=o===void 0?1/0:o,n=e.windowTime,t=n===void 0?1/0:n,i=e.refCount,a=i===void 0?!1:i,r=e.scheduler):s=e!=null?e:1/0,le({connector:function(){return new Ot(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Le(e){return g(function(t,r){return e<=r})}function Ir(e){return x(function(t,r){var o=!1,n=S(r,function(){n==null||n.unsubscribe(),o=!0},Se);N(e).subscribe(n),t.subscribe(S(r,function(i){return o&&r.next(i)}))})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e);return x(function(o,n){(r?Fe(e,o,r):Fe(e,o)).subscribe(n)})}function b(e,t){return x(function(r,o){var n=null,i=0,s=!1,a=function(){return s&&!n&&o.complete()};r.subscribe(S(o,function(c){n==null||n.unsubscribe();var p=0,l=i++;N(e(c,l)).subscribe(n=S(o,function(f){return o.next(t?t(c,f,l,p++):f)},function(){n=null,a()}))},function(){s=!0,a()}))})}function U(e){return x(function(t,r){N(e).subscribe(S(r,function(){return r.complete()},Se)),!r.closed&&t.subscribe(r)})}function Fr(e,t){return t===void 0&&(t=!1),x(function(r,o){var n=0;r.subscribe(S(o,function(i){var s=e(i,n++);(s||t)&&o.next(i),!s&&o.complete()}))})}function y(e,t,r){var o=k(e)||t||r?{next:e,error:t,complete:r}:e;return o?x(function(n,i){var s;(s=o.subscribe)===null||s===void 0||s.call(o);var a=!0;n.subscribe(S(i,function(c){var p;(p=o.next)===null||p===void 0||p.call(o,c),i.next(c)},function(){var c;a=!1,(c=o.complete)===null||c===void 0||c.call(o),i.complete()},function(c){var p;a=!1,(p=o.error)===null||p===void 0||p.call(o,c),i.error(c)},function(){var c,p;a&&((c=o.unsubscribe)===null||c===void 0||c.call(o)),(p=o.finalize)===null||p===void 0||p.call(o)}))}):ce}function Wo(e,t){return x(function(r,o){var n=t!=null?t:{},i=n.leading,s=i===void 0?!0:i,a=n.trailing,c=a===void 0?!1:a,p=!1,l=null,f=null,u=!1,h=function(){f==null||f.unsubscribe(),f=null,c&&(Z(),u&&o.complete())},w=function(){f=null,u&&o.complete()},A=function(te){return f=N(e(te)).subscribe(S(o,h,w))},Z=function(){if(p){p=!1;var te=l;l=null,o.next(te),!u&&A(te)}};r.subscribe(S(o,function(te){p=!0,l=te,!(f&&!f.closed)&&(s?Z():A(te))},function(){u=!0,!(c&&p&&f&&!f.closed)&&o.complete()}))})}function _t(e,t,r){t===void 0&&(t=ie);var o=Ze(e,t);return Wo(function(){return o},r)}function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je(e);return x(function(o,n){for(var i=e.length,s=new Array(i),a=e.map(function(){return!1}),c=!1,p=function(f){N(e[f]).subscribe(S(n,function(u){s[f]=u,!c&&!a[f]&&(a[f]=!0,(c=a.every(ce))&&(a=null))},Se))},l=0;l<i;l++)p(l);o.subscribe(S(n,function(f){if(c){var u=z([f],V(s));n.next(r?r.apply(void 0,z([],V(u))):u)}}))})}function Do(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(function(r,o){Lt.apply(void 0,z([r],V(e))).subscribe(o)})}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Do.apply(void 0,z([],V(e)))}function No(){let e=new Ot(1);return d(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function R(e,t=document){return Array.from(t.querySelectorAll(e))}function P(e,t=document){let r=me(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function me(e,t=document){return t.querySelector(e)||void 0}function Re(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var la=T(d(document.body,"focusin"),d(document.body,"focusout")).pipe(be(1),q(void 0),m(()=>Re()||document.body),B(1));function vt(e){return la.pipe(m(t=>e.contains(t)),Y())}function Vo(e,t){return T(d(e,"mouseenter").pipe(m(()=>!0)),d(e,"mouseleave").pipe(m(()=>!1))).pipe(t?be(t):ce,q(!1))}function Ue(e){return{x:e.offsetLeft,y:e.offsetTop}}function zo(e){return T(d(window,"load"),d(window,"resize")).pipe(Me(0,de),m(()=>Ue(e)),q(Ue(e)))}function ir(e){return{x:e.scrollLeft,y:e.scrollTop}}function et(e){return T(d(e,"scroll"),d(window,"resize")).pipe(Me(0,de),m(()=>ir(e)),q(ir(e)))}function qo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)qo(e,r)}function E(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)qo(o,n);return o}function ar(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function gt(e){let t=E("script",{src:e});return H(()=>(document.head.appendChild(t),T(d(t,"load"),d(t,"error").pipe(b(()=>Ar(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),_(()=>document.head.removeChild(t)),ye(1))))}var Ko=new v,ma=H(()=>typeof ResizeObserver=="undefined"?gt("https://unpkg.com/resize-observer-polyfill"):$(void 0)).pipe(m(()=>new ResizeObserver(e=>{for(let t of e)Ko.next(t)})),b(e=>T(qe,$(e)).pipe(_(()=>e.disconnect()))),B(1));function pe(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Ee(e){return ma.pipe(y(t=>t.observe(e)),b(t=>Ko.pipe(g(({target:r})=>r===e),_(()=>t.unobserve(e)),m(()=>pe(e)))),q(pe(e)))}function xt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function sr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var Qo=new v,fa=H(()=>$(new IntersectionObserver(e=>{for(let t of e)Qo.next(t)},{threshold:0}))).pipe(b(e=>T(qe,$(e)).pipe(_(()=>e.disconnect()))),B(1));function yt(e){return fa.pipe(y(t=>t.observe(e)),b(t=>Qo.pipe(g(({target:r})=>r===e),_(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function Yo(e,t=16){return et(e).pipe(m(({y:r})=>{let o=pe(e),n=xt(e);return r>=n.height-o.height-t}),Y())}var cr={drawer:P("[data-md-toggle=drawer]"),search:P("[data-md-toggle=search]")};function Bo(e){return cr[e].checked}function Be(e,t){cr[e].checked!==t&&cr[e].click()}function We(e){let t=cr[e];return d(t,"change").pipe(m(()=>t.checked),q(t.checked))}function ua(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function da(){return T(d(window,"compositionstart").pipe(m(()=>!0)),d(window,"compositionend").pipe(m(()=>!1))).pipe(q(!1))}function Go(){let e=d(window,"keydown").pipe(g(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:Bo("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),g(({mode:t,type:r})=>{if(t==="global"){let o=Re();if(typeof o!="undefined")return!ua(o,r)}return!0}),le());return da().pipe(b(t=>t?L:e))}function ve(){return new URL(location.href)}function st(e,t=!1){if(G("navigation.instant")&&!t){let r=E("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Jo(){return new v}function Xo(){return location.hash.slice(1)}function Zo(e){let t=E("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function ha(e){return T(d(window,"hashchange"),e).pipe(m(Xo),q(Xo()),g(t=>t.length>0),B(1))}function en(e){return ha(e).pipe(m(t=>me(`[id="${t}"]`)),g(t=>typeof t!="undefined"))}function At(e){let t=matchMedia(e);return nr(r=>t.addListener(()=>r(t.matches))).pipe(q(t.matches))}function tn(){let e=matchMedia("print");return T(d(window,"beforeprint").pipe(m(()=>!0)),d(window,"afterprint").pipe(m(()=>!1))).pipe(q(e.matches))}function Ur(e,t){return e.pipe(b(r=>r?t():L))}function Wr(e,t){return new j(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let s=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+s*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function De(e,t){return Wr(e,t).pipe(b(r=>r.text()),m(r=>JSON.parse(r)),B(1))}function rn(e,t){let r=new DOMParser;return Wr(e,t).pipe(b(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),B(1))}function on(e,t){let r=new DOMParser;return Wr(e,t).pipe(b(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),B(1))}function nn(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function an(){return T(d(window,"scroll",{passive:!0}),d(window,"resize",{passive:!0})).pipe(m(nn),q(nn()))}function sn(){return{width:innerWidth,height:innerHeight}}function cn(){return d(window,"resize",{passive:!0}).pipe(m(sn),q(sn()))}function pn(){return Q([an(),cn()]).pipe(m(([e,t])=>({offset:e,size:t})),B(1))}function pr(e,{viewport$:t,header$:r}){let o=t.pipe(X("size")),n=Q([o,r]).pipe(m(()=>Ue(e)));return Q([r,t,n]).pipe(m(([{height:i},{offset:s,size:a},{x:c,y:p}])=>({offset:{x:s.x-c,y:s.y-p+i},size:a})))}function ba(e){return d(e,"message",t=>t.data)}function va(e){let t=new v;return t.subscribe(r=>e.postMessage(r)),t}function ln(e,t=new Worker(e)){let r=ba(t),o=va(t),n=new v;n.subscribe(o);let i=o.pipe(ee(),oe(!0));return n.pipe(ee(),$e(r.pipe(U(i))),le())}var ga=P("#__config"),Et=JSON.parse(ga.textContent);Et.base=`${new URL(Et.base,ve())}`;function we(){return Et}function G(e){return Et.features.includes(e)}function ge(e,t){return typeof t!="undefined"?Et.translations[e].replace("#",t.toString()):Et.translations[e]}function Te(e,t=document){return P(`[data-md-component=${e}]`,t)}function ne(e,t=document){return R(`[data-md-component=${e}]`,t)}function xa(e){let t=P(".md-typeset > :first-child",e);return d(t,"click",{once:!0}).pipe(m(()=>P(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function mn(e){if(!G("announce.dismiss")||!e.childElementCount)return L;if(!e.hidden){let t=P(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return H(()=>{let t=new v;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),xa(e).pipe(y(r=>t.next(r)),_(()=>t.complete()),m(r=>F({ref:e},r)))})}function ya(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function fn(e,t){let r=new v;return r.subscribe(({hidden:o})=>{e.hidden=o}),ya(e,t).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))}function Ct(e,t){return t==="inline"?E("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"})):E("div",{class:"md-tooltip",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"}))}function un(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return E("aside",{class:"md-annotation",tabIndex:0},Ct(t),E("a",{href:r,class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}else return E("aside",{class:"md-annotation",tabIndex:0},Ct(t),E("span",{class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}function dn(e){return E("button",{class:"md-clipboard md-icon",title:ge("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Dr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(c=>!e.terms[c]).reduce((c,p)=>[...c,E("del",null,p)," "],[]).slice(0,-1),i=we(),s=new URL(e.location,i.base);G("search.highlight")&&s.searchParams.set("h",Object.entries(e.terms).filter(([,c])=>c).reduce((c,[p])=>`${c} ${p}`.trim(),""));let{tags:a}=we();return E("a",{href:`${s}`,class:"md-search-result__link",tabIndex:-1},E("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&E("div",{class:"md-search-result__icon md-icon"}),r>0&&E("h1",null,e.title),r<=0&&E("h2",null,e.title),o>0&&e.text.length>0&&e.text,e.tags&&e.tags.map(c=>{let p=a?c in a?`md-tag-icon md-tag--${a[c]}`:"md-tag-icon":"";return E("span",{class:`md-tag ${p}`},c)}),o>0&&n.length>0&&E("p",{class:"md-search-result__terms"},ge("search.result.term.missing"),": ",...n)))}function hn(e){let t=e[0].score,r=[...e],o=we(),n=r.findIndex(l=>!`${new URL(l.location,o.base)}`.includes("#")),[i]=r.splice(n,1),s=r.findIndex(l=>l.score<t);s===-1&&(s=r.length);let a=r.slice(0,s),c=r.slice(s),p=[Dr(i,2|+(!n&&s===0)),...a.map(l=>Dr(l,1)),...c.length?[E("details",{class:"md-search-result__more"},E("summary",{tabIndex:-1},E("div",null,c.length>0&&c.length===1?ge("search.result.more.one"):ge("search.result.more.other",c.length))),...c.map(l=>Dr(l,1)))]:[]];return E("li",{class:"md-search-result__item"},p)}function bn(e){return E("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>E("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?ar(r):r)))}function Nr(e){let t=`tabbed-control tabbed-control--${e}`;return E("div",{class:t,hidden:!0},E("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function vn(e){return E("div",{class:"md-typeset__scrollwrap"},E("div",{class:"md-typeset__table"},e))}function Ea(e){let t=we(),r=new URL(`../${e.version}/`,t.base);return E("li",{class:"md-version__item"},E("a",{href:`${r}`,class:"md-version__link"},e.title))}function gn(e,t){return E("div",{class:"md-version"},E("button",{class:"md-version__current","aria-label":ge("select.version")},t.title),E("ul",{class:"md-version__list"},e.map(Ea)))}var wa=0;function Ta(e,t){document.body.append(e);let{width:r}=pe(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=sr(t),n=typeof o!="undefined"?et(o):$({x:0,y:0}),i=T(vt(t),Vo(t)).pipe(Y());return Q([i,n]).pipe(m(([s,a])=>{let{x:c,y:p}=Ue(t),l=pe(t),f=t.closest("table");return f&&t.parentElement&&(c+=f.offsetLeft+t.parentElement.offsetLeft,p+=f.offsetTop+t.parentElement.offsetTop),{active:s,offset:{x:c-a.x+l.width/2-r/2,y:p-a.y+l.height+8}}}))}function Ge(e){let t=e.title;if(!t.length)return L;let r=`__tooltip_${wa++}`,o=Ct(r,"inline"),n=P(".md-typeset",o);return n.innerHTML=t,H(()=>{let i=new v;return i.subscribe({next({offset:s}){o.style.setProperty("--md-tooltip-x",`${s.x}px`),o.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),T(i.pipe(g(({active:s})=>s)),i.pipe(be(250),g(({active:s})=>!s))).subscribe({next({active:s}){s?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Me(16,de)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(_t(125,de),g(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?o.style.setProperty("--md-tooltip-0",`${-s}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Ta(o,e).pipe(y(s=>i.next(s)),_(()=>i.complete()),m(s=>F({ref:e},s)))}).pipe(ze(ie))}function Sa(e,t){let r=H(()=>Q([zo(e),et(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:s,height:a}=pe(e);return{x:o-i.x+s/2,y:n-i.y+a/2}}));return vt(e).pipe(b(o=>r.pipe(m(n=>({active:o,offset:n})),ye(+!o||1/0))))}function xn(e,t,{target$:r}){let[o,n]=Array.from(e.children);return H(()=>{let i=new v,s=i.pipe(ee(),oe(!0));return i.subscribe({next({offset:a}){e.style.setProperty("--md-tooltip-x",`${a.x}px`),e.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),yt(e).pipe(U(s)).subscribe(a=>{e.toggleAttribute("data-md-visible",a)}),T(i.pipe(g(({active:a})=>a)),i.pipe(be(250),g(({active:a})=>!a))).subscribe({next({active:a}){a?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Me(16,de)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(_t(125,de),g(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?e.style.setProperty("--md-tooltip-0",`${-a}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),d(n,"click").pipe(U(s),g(a=>!(a.metaKey||a.ctrlKey))).subscribe(a=>{a.stopPropagation(),a.preventDefault()}),d(n,"mousedown").pipe(U(s),ae(i)).subscribe(([a,{active:c}])=>{var p;if(a.button!==0||a.metaKey||a.ctrlKey)a.preventDefault();else if(c){a.preventDefault();let l=e.parentElement.closest(".md-annotation");l instanceof HTMLElement?l.focus():(p=Re())==null||p.blur()}}),r.pipe(U(s),g(a=>a===o),Ye(125)).subscribe(()=>e.focus()),Sa(e,t).pipe(y(a=>i.next(a)),_(()=>i.complete()),m(a=>F({ref:e},a)))})}function Oa(e){return e.tagName==="CODE"?R(".c, .c1, .cm",e):[e]}function Ma(e){let t=[];for(let r of Oa(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){let s;for(;s=/(\(\d+\))(!)?/.exec(i.textContent);){let[,a,c]=s;if(typeof c=="undefined"){let p=i.splitText(s.index);i=p.splitText(a.length),t.push(p)}else{i.textContent=a,t.push(i);break}}}}return t}function yn(e,t){t.append(...Array.from(e.childNodes))}function lr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,s=new Map;for(let a of Ma(t)){let[,c]=a.textContent.match(/\((\d+)\)/);me(`:scope > li:nth-child(${c})`,e)&&(s.set(c,un(c,i)),a.replaceWith(s.get(c)))}return s.size===0?L:H(()=>{let a=new v,c=a.pipe(ee(),oe(!0)),p=[];for(let[l,f]of s)p.push([P(".md-typeset",f),P(`:scope > li:nth-child(${l})`,e)]);return o.pipe(U(c)).subscribe(l=>{e.hidden=!l,e.classList.toggle("md-annotation-list",l);for(let[f,u]of p)l?yn(f,u):yn(u,f)}),T(...[...s].map(([,l])=>xn(l,t,{target$:r}))).pipe(_(()=>a.complete()),le())})}function En(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return En(t)}}function wn(e,t){return H(()=>{let r=En(e);return typeof r!="undefined"?lr(r,e,t):L})}var Tn=jt(zr());var La=0;function Sn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Sn(t)}}function _a(e){return Ee(e).pipe(m(({width:t})=>({scrollable:xt(e).width>t})),X("scrollable"))}function On(e,t){let{matches:r}=matchMedia("(hover)"),o=H(()=>{let n=new v,i=n.pipe($r(1));n.subscribe(({scrollable:c})=>{c&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let s=[];if(Tn.default.isSupported()&&(e.closest(".copy")||G("content.code.copy")&&!e.closest(".no-copy"))){let c=e.closest("pre");c.id=`__code_${La++}`;let p=dn(c.id);c.insertBefore(p,e),G("content.tooltips")&&s.push(Ge(p))}let a=e.closest(".highlight");if(a instanceof HTMLElement){let c=Sn(a);if(typeof c!="undefined"&&(a.classList.contains("annotate")||G("content.code.annotate"))){let p=lr(c,e,t);s.push(Ee(a).pipe(U(i),m(({width:l,height:f})=>l&&f),Y(),b(l=>l?p:L)))}}return _a(e).pipe(y(c=>n.next(c)),_(()=>n.complete()),m(c=>F({ref:e},c)),$e(...s))});return G("content.lazy")?yt(e).pipe(g(n=>n),ye(1),b(()=>o)):o}function Aa(e,{target$:t,print$:r}){let o=!0;return T(t.pipe(m(n=>n.closest("details:not([open])")),g(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(g(n=>n||!o),y(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function Mn(e,t){return H(()=>{let r=new v;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),Aa(e,t).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))})}var Ln=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var qr,ka=0;function Ha(){return typeof mermaid=="undefined"||mermaid instanceof Element?gt("https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js"):$(void 0)}function _n(e){return e.classList.remove("mermaid"),qr||(qr=Ha().pipe(y(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Ln,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),B(1))),qr.subscribe(()=>ro(this,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${ka++}`,r=E("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),s=r.attachShadow({mode:"closed"});s.innerHTML=n,e.replaceWith(r),i==null||i(s)})),qr.pipe(m(()=>({ref:e})))}var An=E("table");function Cn(e){return e.replaceWith(An),An.replaceWith(vn(e)),$({ref:e})}function $a(e){let t=e.find(r=>r.checked)||e[0];return T(...e.map(r=>d(r,"change").pipe(m(()=>P(`label[for="${r.id}"]`))))).pipe(q(P(`label[for="${t.id}"]`)),m(r=>({active:r})))}function kn(e,{viewport$:t,target$:r}){let o=P(".tabbed-labels",e),n=R(":scope > input",e),i=Nr("prev");e.append(i);let s=Nr("next");return e.append(s),H(()=>{let a=new v,c=a.pipe(ee(),oe(!0));Q([a,Ee(e)]).pipe(U(c),Me(1,de)).subscribe({next([{active:p},l]){let f=Ue(p),{width:u}=pe(p);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let h=ir(o);(f.x<h.x||f.x+u>h.x+l.width)&&o.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Q([et(o),Ee(o)]).pipe(U(c)).subscribe(([p,l])=>{let f=xt(o);i.hidden=p.x<16,s.hidden=p.x>f.width-l.width-16}),T(d(i,"click").pipe(m(()=>-1)),d(s,"click").pipe(m(()=>1))).pipe(U(c)).subscribe(p=>{let{width:l}=pe(o);o.scrollBy({left:l*p,behavior:"smooth"})}),r.pipe(U(c),g(p=>n.includes(p))).subscribe(p=>p.click()),o.classList.add("tabbed-labels--linked");for(let p of n){let l=P(`label[for="${p.id}"]`);l.replaceChildren(E("a",{href:`#${l.htmlFor}`,tabIndex:-1},...Array.from(l.childNodes))),d(l.firstElementChild,"click").pipe(U(c),g(f=>!(f.metaKey||f.ctrlKey)),y(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${l.htmlFor}`),l.click()})}return G("content.tabs.link")&&a.pipe(Le(1),ae(t)).subscribe(([{active:p},{offset:l}])=>{let f=p.innerText.trim();if(p.hasAttribute("data-md-switching"))p.removeAttribute("data-md-switching");else{let u=e.offsetTop-l.y;for(let w of R("[data-tabs]"))for(let A of R(":scope > input",w)){let Z=P(`label[for="${A.id}"]`);if(Z!==p&&Z.innerText.trim()===f){Z.setAttribute("data-md-switching",""),A.click();break}}window.scrollTo({top:e.offsetTop-u});let h=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...h])])}}),a.pipe(U(c)).subscribe(()=>{for(let p of R("audio, video",e))p.pause()}),$a(n).pipe(y(p=>a.next(p)),_(()=>a.complete()),m(p=>F({ref:e},p)))}).pipe(ze(ie))}function Hn(e,{viewport$:t,target$:r,print$:o}){return T(...R(".annotate:not(.highlight)",e).map(n=>wn(n,{target$:r,print$:o})),...R("pre:not(.mermaid) > code",e).map(n=>On(n,{target$:r,print$:o})),...R("pre.mermaid",e).map(n=>_n(n)),...R("table:not([class])",e).map(n=>Cn(n)),...R("details",e).map(n=>Mn(n,{target$:r,print$:o})),...R("[data-tabs]",e).map(n=>kn(n,{viewport$:t,target$:r})),...R("[title]",e).filter(()=>G("content.tooltips")).map(n=>Ge(n)))}function Ra(e,{alert$:t}){return t.pipe(b(r=>T($(!0),$(!1).pipe(Ye(2e3))).pipe(m(o=>({message:r,active:o})))))}function $n(e,t){let r=P(".md-typeset",e);return H(()=>{let o=new v;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),Ra(e,t).pipe(y(n=>o.next(n)),_(()=>o.complete()),m(n=>F({ref:e},n)))})}function Pa({viewport$:e}){if(!G("header.autohide"))return $(!1);let t=e.pipe(m(({offset:{y:n}})=>n),Ke(2,1),m(([n,i])=>[n<i,i]),X(0)),r=Q([e,t]).pipe(g(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),m(([,[n]])=>n),Y()),o=We("search");return Q([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),Y(),b(n=>n?r:$(!1)),q(!1))}function Rn(e,t){return H(()=>Q([Ee(e),Pa(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),Y((r,o)=>r.height===o.height&&r.hidden===o.hidden),B(1))}function Pn(e,{header$:t,main$:r}){return H(()=>{let o=new v,n=o.pipe(ee(),oe(!0));o.pipe(X("active"),je(t)).subscribe(([{active:s},{hidden:a}])=>{e.classList.toggle("md-header--shadow",s&&!a),e.hidden=a});let i=fe(R("[title]",e)).pipe(g(()=>G("content.tooltips")),re(s=>Ge(s)));return r.subscribe(o),t.pipe(U(n),m(s=>F({ref:e},s)),$e(i.pipe(U(n))))})}function Ia(e,{viewport$:t,header$:r}){return pr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=pe(e);return{active:o>=n}}),X("active"))}function In(e,t){return H(()=>{let r=new v;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=me(".md-content h1");return typeof o=="undefined"?L:Ia(o,t).pipe(y(n=>r.next(n)),_(()=>r.complete()),m(n=>F({ref:e},n)))})}function Fn(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),Y()),n=o.pipe(b(()=>Ee(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),X("bottom"))));return Q([o,n,t]).pipe(m(([i,{top:s,bottom:a},{offset:{y:c},size:{height:p}}])=>(p=Math.max(0,p-Math.max(0,s-c,i)-Math.max(0,p+c-a)),{offset:s-i,height:p,active:s-i<=c})),Y((i,s)=>i.offset===s.offset&&i.height===s.height&&i.active===s.active))}function Fa(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return $(...e).pipe(re(o=>d(o,"change").pipe(m(()=>o))),q(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),B(1))}function jn(e){let t=R("input",e),r=E("meta",{name:"theme-color"});document.head.appendChild(r);let o=E("meta",{name:"color-scheme"});document.head.appendChild(o);let n=At("(prefers-color-scheme: light)");return H(()=>{let i=new v;return i.subscribe(s=>{if(document.body.setAttribute("data-md-color-switching",""),s.color.media==="(prefers-color-scheme)"){let a=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(a.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");s.color.scheme=c.getAttribute("data-md-color-scheme"),s.color.primary=c.getAttribute("data-md-color-primary"),s.color.accent=c.getAttribute("data-md-color-accent")}for(let[a,c]of Object.entries(s.color))document.body.setAttribute(`data-md-color-${a}`,c);for(let a=0;a<t.length;a++){let c=t[a].nextElementSibling;c instanceof HTMLElement&&(c.hidden=s.index!==a)}__md_set("__palette",s)}),i.pipe(m(()=>{let s=Te("header"),a=window.getComputedStyle(s);return o.content=a.colorScheme,a.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(s=>r.content=`#${s}`),i.pipe(Oe(ie)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Fa(t).pipe(U(n.pipe(Le(1))),at(),y(s=>i.next(s)),_(()=>i.complete()),m(s=>F({ref:e},s)))})}function Un(e,{progress$:t}){return H(()=>{let r=new v;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(y(o=>r.next({value:o})),_(()=>r.complete()),m(o=>({ref:e,value:o})))})}var Kr=jt(zr());function ja(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function Wn({alert$:e}){Kr.default.isSupported()&&new j(t=>{new Kr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||ja(P(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(y(t=>{t.trigger.focus()}),m(()=>ge("clipboard.copied"))).subscribe(e)}function Dn(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function Ua(e,t){let r=new Map;for(let o of R("url",e)){let n=P("loc",o),i=[Dn(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let s of R("[rel=alternate]",o)){let a=s.getAttribute("href");a!=null&&i.push(Dn(new URL(a),t))}}return r}function mr(e){return on(new URL("sitemap.xml",e)).pipe(m(t=>Ua(t,new URL(e))),he(()=>$(new Map)))}function Wa(e,t){if(!(e.target instanceof Element))return L;let r=e.target.closest("a");if(r===null)return L;if(r.target||e.metaKey||e.ctrlKey)return L;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),$(new URL(r.href))):L}function Nn(e){let t=new Map;for(let r of R(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Vn(e){for(let t of R("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return $(e)}function Da(e){for(let o of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...G("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=me(o),i=me(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=Nn(document);for(let[o,n]of Nn(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values())o.remove();let r=Te("container");return Fe(R("script",r)).pipe(b(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new j(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),L}),ee(),oe(e))}function zn({location$:e,viewport$:t,progress$:r}){let o=we();if(location.protocol==="file:")return L;let n=mr(o.base);$(document).subscribe(Vn);let i=d(document.body,"click").pipe(je(n),b(([c,p])=>Wa(c,p)),le()),s=d(window,"popstate").pipe(m(ve),le());i.pipe(ae(t)).subscribe(([c,{offset:p}])=>{history.replaceState(p,""),history.pushState(null,"",c)}),T(i,s).subscribe(e);let a=e.pipe(X("pathname"),b(c=>rn(c,{progress$:r}).pipe(he(()=>(st(c,!0),L)))),b(Vn),b(Da),le());return T(a.pipe(ae(e,(c,p)=>p)),e.pipe(X("pathname"),b(()=>e),X("hash")),e.pipe(Y((c,p)=>c.pathname===p.pathname&&c.hash===p.hash),b(()=>i),y(()=>history.back()))).subscribe(c=>{var p,l;history.state!==null||!c.hash?window.scrollTo(0,(l=(p=history.state)==null?void 0:p.y)!=null?l:0):(history.scrollRestoration="auto",Zo(c.hash),history.scrollRestoration="manual")}),e.subscribe(()=>{history.scrollRestoration="manual"}),d(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),t.pipe(X("offset"),be(100)).subscribe(({offset:c})=>{history.replaceState(c,"")}),a}var Qn=jt(Kn());function Yn(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,s)=>`${i}<mark data-md-highlight>${s}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return s=>(0,Qn.default)(s).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function Ht(e){return e.type===1}function fr(e){return e.type===3}function Bn(e,t){let r=ln(e);return T($(location.protocol!=="file:"),We("search")).pipe(He(o=>o),b(()=>t)).subscribe(({config:o,docs:n})=>r.next({type:0,data:{config:o,docs:n,options:{suggest:G("search.suggest")}}})),r}function Gn({document$:e}){let t=we(),r=De(new URL("../versions.json",t.base)).pipe(he(()=>L)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:s,aliases:a})=>s===i||a.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),b(n=>d(document.body,"click").pipe(g(i=>!i.metaKey&&!i.ctrlKey),ae(o),b(([i,s])=>{if(i.target instanceof Element){let a=i.target.closest("a");if(a&&!a.target&&n.has(a.href)){let c=a.href;return!i.target.closest(".md-version")&&n.get(c)===s?L:(i.preventDefault(),$(c))}}return L}),b(i=>{let{version:s}=n.get(i);return mr(new URL(i)).pipe(m(a=>{let p=ve().href.replace(t.base,"");return a.has(p.split("#")[0])?new URL(`../${s}/${p}`,t.base):new URL(i)}))})))).subscribe(n=>st(n,!0)),Q([r,o]).subscribe(([n,i])=>{P(".md-header__topic").appendChild(gn(n,i))}),e.pipe(b(()=>o)).subscribe(n=>{var s;let i=__md_get("__outdated",sessionStorage);if(i===null){i=!0;let a=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(a)||(a=[a]);e:for(let c of a)for(let p of n.aliases.concat(n.version))if(new RegExp(c,"i").test(p)){i=!1;break e}__md_set("__outdated",i,sessionStorage)}if(i)for(let a of ne("outdated"))a.hidden=!1})}function Ka(e,{worker$:t}){let{searchParams:r}=ve();r.has("q")&&(Be("search",!0),e.value=r.get("q"),e.focus(),We("search").pipe(He(i=>!i)).subscribe(()=>{let i=ve();i.searchParams.delete("q"),history.replaceState({},"",`${i}`)}));let o=vt(e),n=T(t.pipe(He(Ht)),d(e,"keyup"),o).pipe(m(()=>e.value),Y());return Q([n,o]).pipe(m(([i,s])=>({value:i,focus:s})),B(1))}function Jn(e,{worker$:t}){let r=new v,o=r.pipe(ee(),oe(!0));Q([t.pipe(He(Ht)),r],(i,s)=>s).pipe(X("value")).subscribe(({value:i})=>t.next({type:2,data:i})),r.pipe(X("focus")).subscribe(({focus:i})=>{i&&Be("search",i)}),d(e.form,"reset").pipe(U(o)).subscribe(()=>e.focus());let n=P("header [for=__search]");return d(n,"click").subscribe(()=>e.focus()),Ka(e,{worker$:t}).pipe(y(i=>r.next(i)),_(()=>r.complete()),m(i=>F({ref:e},i)),B(1))}function Xn(e,{worker$:t,query$:r}){let o=new v,n=Yo(e.parentElement).pipe(g(Boolean)),i=e.parentElement,s=P(":scope > :first-child",e),a=P(":scope > :last-child",e);We("search").subscribe(l=>a.setAttribute("role",l?"list":"presentation")),o.pipe(ae(r),Ir(t.pipe(He(Ht)))).subscribe(([{items:l},{value:f}])=>{switch(l.length){case 0:s.textContent=f.length?ge("search.result.none"):ge("search.result.placeholder");break;case 1:s.textContent=ge("search.result.one");break;default:let u=ar(l.length);s.textContent=ge("search.result.other",u)}});let c=o.pipe(y(()=>a.innerHTML=""),b(({items:l})=>T($(...l.slice(0,10)),$(...l.slice(10)).pipe(Ke(4),jr(n),b(([f])=>f)))),m(hn),le());return c.subscribe(l=>a.appendChild(l)),c.pipe(re(l=>{let f=me("details",l);return typeof f=="undefined"?L:d(f,"toggle").pipe(U(o),m(()=>f))})).subscribe(l=>{l.open===!1&&l.offsetTop<=i.scrollTop&&i.scrollTo({top:l.offsetTop})}),t.pipe(g(fr),m(({data:l})=>l)).pipe(y(l=>o.next(l)),_(()=>o.complete()),m(l=>F({ref:e},l)))}function Qa(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=ve();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function Zn(e,t){let r=new v,o=r.pipe(ee(),oe(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),d(e,"click").pipe(U(o)).subscribe(n=>n.preventDefault()),Qa(e,t).pipe(y(n=>r.next(n)),_(()=>r.complete()),m(n=>F({ref:e},n)))}function ei(e,{worker$:t,keyboard$:r}){let o=new v,n=Te("search-query"),i=T(d(n,"keydown"),d(n,"focus")).pipe(Oe(ie),m(()=>n.value),Y());return o.pipe(je(i),m(([{suggest:a},c])=>{let p=c.split(/([\s-]+)/);if(a!=null&&a.length&&p[p.length-1]){let l=a[a.length-1];l.startsWith(p[p.length-1])&&(p[p.length-1]=l)}else p.length=0;return p})).subscribe(a=>e.innerHTML=a.join("").replace(/\s/g,"&nbsp;")),r.pipe(g(({mode:a})=>a==="search")).subscribe(a=>{switch(a.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(g(fr),m(({data:a})=>a)).pipe(y(a=>o.next(a)),_(()=>o.complete()),m(()=>({ref:e})))}function ti(e,{index$:t,keyboard$:r}){let o=we();try{let n=Bn(o.search,t),i=Te("search-query",e),s=Te("search-result",e);d(e,"click").pipe(g(({target:c})=>c instanceof Element&&!!c.closest("a"))).subscribe(()=>Be("search",!1)),r.pipe(g(({mode:c})=>c==="search")).subscribe(c=>{let p=Re();switch(c.type){case"Enter":if(p===i){let l=new Map;for(let f of R(":first-child [href]",s)){let u=f.firstElementChild;l.set(f,parseFloat(u.getAttribute("data-md-score")))}if(l.size){let[[f]]=[...l].sort(([,u],[,h])=>h-u);f.click()}c.claim()}break;case"Escape":case"Tab":Be("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof p=="undefined")i.focus();else{let l=[i,...R(":not(details) > [href], summary, details[open] [href]",s)],f=Math.max(0,(Math.max(0,l.indexOf(p))+l.length+(c.type==="ArrowUp"?-1:1))%l.length);l[f].focus()}c.claim();break;default:i!==Re()&&i.focus()}}),r.pipe(g(({mode:c})=>c==="global")).subscribe(c=>{switch(c.type){case"f":case"s":case"/":i.focus(),i.select(),c.claim();break}});let a=Jn(i,{worker$:n});return T(a,Xn(s,{worker$:n,query$:a})).pipe($e(...ne("search-share",e).map(c=>Zn(c,{query$:a})),...ne("search-suggest",e).map(c=>ei(c,{worker$:n,keyboard$:r}))))}catch(n){return e.hidden=!0,qe}}function ri(e,{index$:t,location$:r}){return Q([t,r.pipe(q(ve()),g(o=>!!o.searchParams.get("h")))]).pipe(m(([o,n])=>Yn(o.config)(n.searchParams.get("h"))),m(o=>{var s;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let a=i.nextNode();a;a=i.nextNode())if((s=a.parentElement)!=null&&s.offsetHeight){let c=a.textContent,p=o(c);p.length>c.length&&n.set(a,p)}for(let[a,c]of n){let{childNodes:p}=E("span",null,c);a.replaceWith(...Array.from(p))}return{ref:e,nodes:n}}))}function Ya(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return Q([r,t]).pipe(m(([{offset:i,height:s},{offset:{y:a}}])=>(s=s+Math.min(n,Math.max(0,a-i))-n,{height:s,locked:a>=i+n})),Y((i,s)=>i.height===s.height&&i.locked===s.locked))}function Qr(e,o){var n=o,{header$:t}=n,r=to(n,["header$"]);let i=P(".md-sidebar__scrollwrap",e),{y:s}=Ue(i);return H(()=>{let a=new v,c=a.pipe(ee(),oe(!0)),p=a.pipe(Me(0,de));return p.pipe(ae(t)).subscribe({next([{height:l},{height:f}]){i.style.height=`${l-2*s}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),p.pipe(He()).subscribe(()=>{for(let l of R(".md-nav__link--active[href]",e)){if(!l.clientHeight)continue;let f=l.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=pe(f);f.scrollTo({top:u-h/2})}}}),fe(R("label[tabindex]",e)).pipe(re(l=>d(l,"click").pipe(Oe(ie),m(()=>l),U(c)))).subscribe(l=>{let f=P(`[id="${l.htmlFor}"]`);P(`[aria-labelledby="${l.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),Ya(e,r).pipe(y(l=>a.next(l)),_(()=>a.complete()),m(l=>F({ref:e},l)))})}function oi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Lt(De(`${r}/releases/latest`).pipe(he(()=>L),m(o=>({version:o.tag_name})),Qe({})),De(r).pipe(he(()=>L),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),Qe({}))).pipe(m(([o,n])=>F(F({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return De(r).pipe(m(o=>({repositories:o.public_repos})),Qe({}))}}function ni(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return De(r).pipe(he(()=>L),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Qe({}))}function ii(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return oi(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return ni(r,o)}return L}var Ba;function Ga(e){return Ba||(Ba=H(()=>{let t=__md_get("__source",sessionStorage);if(t)return $(t);if(ne("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return L}return ii(e.href).pipe(y(o=>__md_set("__source",o,sessionStorage)))}).pipe(he(()=>L),g(t=>Object.keys(t).length>0),m(t=>({facts:t})),B(1)))}function ai(e){let t=P(":scope > :last-child",e);return H(()=>{let r=new v;return r.subscribe(({facts:o})=>{t.appendChild(bn(o)),t.classList.add("md-source__repository--active")}),Ga(e).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))})}function Ja(e,{viewport$:t,header$:r}){return Ee(document.body).pipe(b(()=>pr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),X("hidden"))}function si(e,t){return H(()=>{let r=new v;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(G("navigation.tabs.sticky")?$({hidden:!1}):Ja(e,t)).pipe(y(o=>r.next(o)),_(()=>r.complete()),m(o=>F({ref:e},o)))})}function Xa(e,{viewport$:t,header$:r}){let o=new Map,n=R(".md-nav__link",e);for(let a of n){let c=decodeURIComponent(a.hash.substring(1)),p=me(`[id="${c}"]`);typeof p!="undefined"&&o.set(a,p)}let i=r.pipe(X("height"),m(({height:a})=>{let c=Te("main"),p=P(":scope > :first-child",c);return a+.8*(p.offsetTop-c.offsetTop)}),le());return Ee(document.body).pipe(X("height"),b(a=>H(()=>{let c=[];return $([...o].reduce((p,[l,f])=>{for(;c.length&&o.get(c[c.length-1]).tagName>=f.tagName;)c.pop();let u=f.offsetTop;for(;!u&&f.parentElement;)f=f.parentElement,u=f.offsetTop;let h=f.offsetParent;for(;h;h=h.offsetParent)u+=h.offsetTop;return p.set([...c=[...c,l]].reverse(),u)},new Map))}).pipe(m(c=>new Map([...c].sort(([,p],[,l])=>p-l))),je(i),b(([c,p])=>t.pipe(Rr(([l,f],{offset:{y:u},size:h})=>{let w=u+h.height>=Math.floor(a.height);for(;f.length;){let[,A]=f[0];if(A-p<u||w)l=[...l,f.shift()];else break}for(;l.length;){let[,A]=l[l.length-1];if(A-p>=u&&!w)f=[l.pop(),...f];else break}return[l,f]},[[],[...c]]),Y((l,f)=>l[0]===f[0]&&l[1]===f[1])))))).pipe(m(([a,c])=>({prev:a.map(([p])=>p),next:c.map(([p])=>p)})),q({prev:[],next:[]}),Ke(2,1),m(([a,c])=>a.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,a.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-a.next.length)}))}function ci(e,{viewport$:t,header$:r,main$:o,target$:n}){return H(()=>{let i=new v,s=i.pipe(ee(),oe(!0));if(i.subscribe(({prev:a,next:c})=>{for(let[p]of c)p.classList.remove("md-nav__link--passed"),p.classList.remove("md-nav__link--active");for(let[p,[l]]of a.entries())l.classList.add("md-nav__link--passed"),l.classList.toggle("md-nav__link--active",p===a.length-1)}),G("toc.follow")){let a=T(t.pipe(be(1),m(()=>{})),t.pipe(be(250),m(()=>"smooth")));i.pipe(g(({prev:c})=>c.length>0),je(o.pipe(Oe(ie))),ae(a)).subscribe(([[{prev:c}],p])=>{let[l]=c[c.length-1];if(l.offsetHeight){let f=sr(l);if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=pe(f);f.scrollTo({top:u-h/2,behavior:p})}}})}return G("navigation.tracking")&&t.pipe(U(s),X("offset"),be(250),Le(1),U(n.pipe(Le(1))),at({delay:250}),ae(i)).subscribe(([,{prev:a}])=>{let c=ve(),p=a[a.length-1];if(p&&p.length){let[l]=p,{hash:f}=new URL(l.href);c.hash!==f&&(c.hash=f,history.replaceState({},"",`${c}`))}else c.hash="",history.replaceState({},"",`${c}`)}),Xa(e,{viewport$:t,header$:r}).pipe(y(a=>i.next(a)),_(()=>i.complete()),m(a=>F({ref:e},a)))})}function Za(e,{viewport$:t,main$:r,target$:o}){let n=t.pipe(m(({offset:{y:s}})=>s),Ke(2,1),m(([s,a])=>s>a&&a>0),Y()),i=r.pipe(m(({active:s})=>s));return Q([i,n]).pipe(m(([s,a])=>!(s&&a)),Y(),U(o.pipe(Le(1))),oe(!0),at({delay:250}),m(s=>({hidden:s})))}function pi(e,{viewport$:t,header$:r,main$:o,target$:n}){let i=new v,s=i.pipe(ee(),oe(!0));return i.subscribe({next({hidden:a}){e.hidden=a,a?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(U(s),X("height")).subscribe(({height:a})=>{e.style.top=`${a+16}px`}),d(e,"click").subscribe(a=>{a.preventDefault(),window.scrollTo({top:0})}),Za(e,{viewport$:t,main$:o,target$:n}).pipe(y(a=>i.next(a)),_(()=>i.complete()),m(a=>F({ref:e},a)))}function li({document$:e}){e.pipe(b(()=>R(".md-ellipsis")),re(t=>yt(t).pipe(U(e.pipe(Le(1))),g(r=>r),m(()=>t),ye(1))),g(t=>t.offsetWidth<t.scrollWidth),re(t=>{let r=t.innerText,o=t.closest("a")||t;return o.title=r,Ge(o).pipe(U(e.pipe(Le(1))),_(()=>o.removeAttribute("title")))})).subscribe(),e.pipe(b(()=>R(".md-status")),re(t=>Ge(t))).subscribe()}function mi({document$:e,tablet$:t}){e.pipe(b(()=>R(".md-toggle--indeterminate")),y(r=>{r.indeterminate=!0,r.checked=!1}),re(r=>d(r,"change").pipe(Fr(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ae(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function es(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function fi({document$:e}){e.pipe(b(()=>R("[data-md-scrollfix]")),y(t=>t.removeAttribute("data-md-scrollfix")),g(es),re(t=>d(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function ui({viewport$:e,tablet$:t}){Q([We("search"),t]).pipe(m(([r,o])=>r&&!o),b(r=>$(r).pipe(Ye(r?400:100))),ae(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));function ts(){return location.protocol==="file:"?gt(`${new URL("search/search_index.js",Yr.base)}`).pipe(m(()=>__index),B(1)):De(new URL("search/search_index.json",Yr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var rt=No(),Rt=Jo(),wt=en(Rt),Br=Go(),_e=pn(),ur=At("(min-width: 960px)"),hi=At("(min-width: 1220px)"),bi=tn(),Yr=we(),vi=document.forms.namedItem("search")?ts():qe,Gr=new v;Wn({alert$:Gr});var Jr=new v;G("navigation.instant")&&zn({location$:Rt,viewport$:_e,progress$:Jr}).subscribe(rt);var di;((di=Yr.version)==null?void 0:di.provider)==="mike"&&Gn({document$:rt});T(Rt,wt).pipe(Ye(125)).subscribe(()=>{Be("drawer",!1),Be("search",!1)});Br.pipe(g(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=me("link[rel=prev]");typeof t!="undefined"&&st(t);break;case"n":case".":let r=me("link[rel=next]");typeof r!="undefined"&&st(r);break;case"Enter":let o=Re();o instanceof HTMLLabelElement&&o.click()}});li({document$:rt});mi({document$:rt,tablet$:ur});fi({document$:rt});ui({viewport$:_e,tablet$:ur});var tt=Rn(Te("header"),{viewport$:_e}),$t=rt.pipe(m(()=>Te("main")),b(e=>Fn(e,{viewport$:_e,header$:tt})),B(1)),rs=T(...ne("consent").map(e=>fn(e,{target$:wt})),...ne("dialog").map(e=>$n(e,{alert$:Gr})),...ne("header").map(e=>Pn(e,{viewport$:_e,header$:tt,main$:$t})),...ne("palette").map(e=>jn(e)),...ne("progress").map(e=>Un(e,{progress$:Jr})),...ne("search").map(e=>ti(e,{index$:vi,keyboard$:Br})),...ne("source").map(e=>ai(e))),os=H(()=>T(...ne("announce").map(e=>mn(e)),...ne("content").map(e=>Hn(e,{viewport$:_e,target$:wt,print$:bi})),...ne("content").map(e=>G("search.highlight")?ri(e,{index$:vi,location$:Rt}):L),...ne("header-title").map(e=>In(e,{viewport$:_e,header$:tt})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Ur(hi,()=>Qr(e,{viewport$:_e,header$:tt,main$:$t})):Ur(ur,()=>Qr(e,{viewport$:_e,header$:tt,main$:$t}))),...ne("tabs").map(e=>si(e,{viewport$:_e,header$:tt})),...ne("toc").map(e=>ci(e,{viewport$:_e,header$:tt,main$:$t,target$:wt})),...ne("top").map(e=>pi(e,{viewport$:_e,header$:tt,main$:$t,target$:wt})))),gi=rt.pipe(b(()=>os),$e(rs),B(1));gi.subscribe();window.document$=rt;window.location$=Rt;window.target$=wt;window.keyboard$=Br;window.viewport$=_e;window.tablet$=ur;window.screen$=hi;window.print$=bi;window.alert$=Gr;window.progress$=Jr;window.component$=gi;})();
-//# sourceMappingURL=bundle.8fd75fb4.min.js.map
-
diff --git a/content/references/java-chassis/zh_CN/assets/javascripts/bundle.8fd75fb4.min.js.map b/content/references/java-chassis/zh_CN/assets/javascripts/bundle.8fd75fb4.min.js.map
deleted file mode 100644
index 1a28789..0000000
--- a/content/references/java-chassis/zh_CN/assets/javascripts/bundle.8fd75fb4.min.js.map
+++ /dev/null
@@ -1,7 +0,0 @@
-{
-  "version": 3,
-  "sources": ["node_modules/focus-visible/dist/focus-visible.js", "node_modules/clipboard/dist/clipboard.js", "node_modules/escape-html/index.js", "src/templates/assets/javascripts/bundle.ts", "node_modules/rxjs/node_modules/tslib/tslib.es6.js", "node_modules/rxjs/src/internal/util/isFunction.ts", "node_modules/rxjs/src/internal/util/createErrorClass.ts", "node_modules/rxjs/src/internal/util/UnsubscriptionError.ts", "node_modules/rxjs/src/internal/util/arrRemove.ts", "node_modules/rxjs/src/internal/Subscription.ts", "node_modules/rxjs/src/internal/config.ts", "node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts", "node_modules/rxjs/src/internal/util/reportUnhandledError.ts", "node_modules/rxjs/src/internal/util/noop.ts", "node_modules/rxjs/src/internal/NotificationFactories.ts", "node_modules/rxjs/src/internal/util/errorContext.ts", "node_modules/rxjs/src/internal/Subscriber.ts", "node_modules/rxjs/src/internal/symbol/observable.ts", "node_modules/rxjs/src/internal/util/identity.ts", "node_modules/rxjs/src/internal/util/pipe.ts", "node_modules/rxjs/src/internal/Observable.ts", "node_modules/rxjs/src/internal/util/lift.ts", "node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts", "node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts", "node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts", "node_modules/rxjs/src/internal/Subject.ts", "node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts", "node_modules/rxjs/src/internal/ReplaySubject.ts", "node_modules/rxjs/src/internal/scheduler/Action.ts", "node_modules/rxjs/src/internal/scheduler/intervalProvider.ts", "node_modules/rxjs/src/internal/scheduler/AsyncAction.ts", "node_modules/rxjs/src/internal/Scheduler.ts", "node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts", "node_modules/rxjs/src/internal/scheduler/async.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts", "node_modules/rxjs/src/internal/scheduler/animationFrame.ts", "node_modules/rxjs/src/internal/observable/empty.ts", "node_modules/rxjs/src/internal/util/isScheduler.ts", "node_modules/rxjs/src/internal/util/args.ts", "node_modules/rxjs/src/internal/util/isArrayLike.ts", "node_modules/rxjs/src/internal/util/isPromise.ts", "node_modules/rxjs/src/internal/util/isInteropObservable.ts", "node_modules/rxjs/src/internal/util/isAsyncIterable.ts", "node_modules/rxjs/src/internal/util/throwUnobservableError.ts", "node_modules/rxjs/src/internal/symbol/iterator.ts", "node_modules/rxjs/src/internal/util/isIterable.ts", "node_modules/rxjs/src/internal/util/isReadableStreamLike.ts", "node_modules/rxjs/src/internal/observable/innerFrom.ts", "node_modules/rxjs/src/internal/util/executeSchedule.ts", "node_modules/rxjs/src/internal/operators/observeOn.ts", "node_modules/rxjs/src/internal/operators/subscribeOn.ts", "node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts", "node_modules/rxjs/src/internal/scheduled/schedulePromise.ts", "node_modules/rxjs/src/internal/scheduled/scheduleArray.ts", "node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduled.ts", "node_modules/rxjs/src/internal/observable/from.ts", "node_modules/rxjs/src/internal/observable/of.ts", "node_modules/rxjs/src/internal/observable/throwError.ts", "node_modules/rxjs/src/internal/util/EmptyError.ts", "node_modules/rxjs/src/internal/util/isDate.ts", "node_modules/rxjs/src/internal/operators/map.ts", "node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts", "node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts", "node_modules/rxjs/src/internal/util/createObject.ts", "node_modules/rxjs/src/internal/observable/combineLatest.ts", "node_modules/rxjs/src/internal/operators/mergeInternals.ts", "node_modules/rxjs/src/internal/operators/mergeMap.ts", "node_modules/rxjs/src/internal/operators/mergeAll.ts", "node_modules/rxjs/src/internal/operators/concatAll.ts", "node_modules/rxjs/src/internal/observable/concat.ts", "node_modules/rxjs/src/internal/observable/defer.ts", "node_modules/rxjs/src/internal/observable/fromEvent.ts", "node_modules/rxjs/src/internal/observable/fromEventPattern.ts", "node_modules/rxjs/src/internal/observable/timer.ts", "node_modules/rxjs/src/internal/observable/merge.ts", "node_modules/rxjs/src/internal/observable/never.ts", "node_modules/rxjs/src/internal/util/argsOrArgArray.ts", "node_modules/rxjs/src/internal/operators/filter.ts", "node_modules/rxjs/src/internal/observable/zip.ts", "node_modules/rxjs/src/internal/operators/audit.ts", "node_modules/rxjs/src/internal/operators/auditTime.ts", "node_modules/rxjs/src/internal/operators/bufferCount.ts", "node_modules/rxjs/src/internal/operators/catchError.ts", "node_modules/rxjs/src/internal/operators/scanInternals.ts", "node_modules/rxjs/src/internal/operators/combineLatest.ts", "node_modules/rxjs/src/internal/operators/combineLatestWith.ts", "node_modules/rxjs/src/internal/operators/debounceTime.ts", "node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts", "node_modules/rxjs/src/internal/operators/take.ts", "node_modules/rxjs/src/internal/operators/ignoreElements.ts", "node_modules/rxjs/src/internal/operators/mapTo.ts", "node_modules/rxjs/src/internal/operators/delayWhen.ts", "node_modules/rxjs/src/internal/operators/delay.ts", "node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts", "node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts", "node_modules/rxjs/src/internal/operators/throwIfEmpty.ts", "node_modules/rxjs/src/internal/operators/endWith.ts", "node_modules/rxjs/src/internal/operators/finalize.ts", "node_modules/rxjs/src/internal/operators/first.ts", "node_modules/rxjs/src/internal/operators/takeLast.ts", "node_modules/rxjs/src/internal/operators/merge.ts", "node_modules/rxjs/src/internal/operators/mergeWith.ts", "node_modules/rxjs/src/internal/operators/repeat.ts", "node_modules/rxjs/src/internal/operators/scan.ts", "node_modules/rxjs/src/internal/operators/share.ts", "node_modules/rxjs/src/internal/operators/shareReplay.ts", "node_modules/rxjs/src/internal/operators/skip.ts", "node_modules/rxjs/src/internal/operators/skipUntil.ts", "node_modules/rxjs/src/internal/operators/startWith.ts", "node_modules/rxjs/src/internal/operators/switchMap.ts", "node_modules/rxjs/src/internal/operators/takeUntil.ts", "node_modules/rxjs/src/internal/operators/takeWhile.ts", "node_modules/rxjs/src/internal/operators/tap.ts", "node_modules/rxjs/src/internal/operators/throttle.ts", "node_modules/rxjs/src/internal/operators/throttleTime.ts", "node_modules/rxjs/src/internal/operators/withLatestFrom.ts", "node_modules/rxjs/src/internal/operators/zip.ts", "node_modules/rxjs/src/internal/operators/zipWith.ts", "src/templates/assets/javascripts/browser/document/index.ts", "src/templates/assets/javascripts/browser/element/_/index.ts", "src/templates/assets/javascripts/browser/element/focus/index.ts", "src/templates/assets/javascripts/browser/element/hover/index.ts", "src/templates/assets/javascripts/browser/element/offset/_/index.ts", "src/templates/assets/javascripts/browser/element/offset/content/index.ts", "src/templates/assets/javascripts/utilities/h/index.ts", "src/templates/assets/javascripts/utilities/round/index.ts", "src/templates/assets/javascripts/browser/script/index.ts", "src/templates/assets/javascripts/browser/element/size/_/index.ts", "src/templates/assets/javascripts/browser/element/size/content/index.ts", "src/templates/assets/javascripts/browser/element/visibility/index.ts", "src/templates/assets/javascripts/browser/toggle/index.ts", "src/templates/assets/javascripts/browser/keyboard/index.ts", "src/templates/assets/javascripts/browser/location/_/index.ts", "src/templates/assets/javascripts/browser/location/hash/index.ts", "src/templates/assets/javascripts/browser/media/index.ts", "src/templates/assets/javascripts/browser/request/index.ts", "src/templates/assets/javascripts/browser/viewport/offset/index.ts", "src/templates/assets/javascripts/browser/viewport/size/index.ts", "src/templates/assets/javascripts/browser/viewport/_/index.ts", "src/templates/assets/javascripts/browser/viewport/at/index.ts", "src/templates/assets/javascripts/browser/worker/index.ts", "src/templates/assets/javascripts/_/index.ts", "src/templates/assets/javascripts/components/_/index.ts", "src/templates/assets/javascripts/components/announce/index.ts", "src/templates/assets/javascripts/components/consent/index.ts", "src/templates/assets/javascripts/templates/tooltip/index.tsx", "src/templates/assets/javascripts/templates/annotation/index.tsx", "src/templates/assets/javascripts/templates/clipboard/index.tsx", "src/templates/assets/javascripts/templates/search/index.tsx", "src/templates/assets/javascripts/templates/source/index.tsx", "src/templates/assets/javascripts/templates/tabbed/index.tsx", "src/templates/assets/javascripts/templates/table/index.tsx", "src/templates/assets/javascripts/templates/version/index.tsx", "src/templates/assets/javascripts/components/tooltip/index.ts", "src/templates/assets/javascripts/components/content/annotation/_/index.ts", "src/templates/assets/javascripts/components/content/annotation/list/index.ts", "src/templates/assets/javascripts/components/content/annotation/block/index.ts", "src/templates/assets/javascripts/components/content/code/_/index.ts", "src/templates/assets/javascripts/components/content/details/index.ts", "src/templates/assets/javascripts/components/content/mermaid/index.css", "src/templates/assets/javascripts/components/content/mermaid/index.ts", "src/templates/assets/javascripts/components/content/table/index.ts", "src/templates/assets/javascripts/components/content/tabs/index.ts", "src/templates/assets/javascripts/components/content/_/index.ts", "src/templates/assets/javascripts/components/dialog/index.ts", "src/templates/assets/javascripts/components/header/_/index.ts", "src/templates/assets/javascripts/components/header/title/index.ts", "src/templates/assets/javascripts/components/main/index.ts", "src/templates/assets/javascripts/components/palette/index.ts", "src/templates/assets/javascripts/components/progress/index.ts", "src/templates/assets/javascripts/integrations/clipboard/index.ts", "src/templates/assets/javascripts/integrations/sitemap/index.ts", "src/templates/assets/javascripts/integrations/instant/index.ts", "src/templates/assets/javascripts/integrations/search/highlighter/index.ts", "src/templates/assets/javascripts/integrations/search/worker/message/index.ts", "src/templates/assets/javascripts/integrations/search/worker/_/index.ts", "src/templates/assets/javascripts/integrations/version/index.ts", "src/templates/assets/javascripts/components/search/query/index.ts", "src/templates/assets/javascripts/components/search/result/index.ts", "src/templates/assets/javascripts/components/search/share/index.ts", "src/templates/assets/javascripts/components/search/suggest/index.ts", "src/templates/assets/javascripts/components/search/_/index.ts", "src/templates/assets/javascripts/components/search/highlight/index.ts", "src/templates/assets/javascripts/components/sidebar/index.ts", "src/templates/assets/javascripts/components/source/facts/github/index.ts", "src/templates/assets/javascripts/components/source/facts/gitlab/index.ts", "src/templates/assets/javascripts/components/source/facts/_/index.ts", "src/templates/assets/javascripts/components/source/_/index.ts", "src/templates/assets/javascripts/components/tabs/index.ts", "src/templates/assets/javascripts/components/toc/index.ts", "src/templates/assets/javascripts/components/top/index.ts", "src/templates/assets/javascripts/patches/ellipsis/index.ts", "src/templates/assets/javascripts/patches/indeterminate/index.ts", "src/templates/assets/javascripts/patches/scrollfix/index.ts", "src/templates/assets/javascripts/patches/scrolllock/index.ts", "src/templates/assets/javascripts/polyfills/index.ts"],
-  "sourcesContent": ["(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  (factory());\n}(this, (function () { 'use strict';\n\n  /**\n   * Applies the :focus-visible polyfill at the given scope.\n   * A scope in this case is either the top-level Document or a Shadow Root.\n   *\n   * @param {(Document|ShadowRoot)} scope\n   * @see https://github.com/WICG/focus-visible\n   */\n  function applyFocusVisiblePolyfill(scope) {\n    var hadKeyboardEvent = true;\n    var hadFocusVisibleRecently = false;\n    var hadFocusVisibleRecentlyTimeout = null;\n\n    var inputTypesAllowlist = {\n      text: true,\n      search: true,\n      url: true,\n      tel: true,\n      email: true,\n      password: true,\n      number: true,\n      date: true,\n      month: true,\n      week: true,\n      time: true,\n      datetime: true,\n      'datetime-local': true\n    };\n\n    /**\n     * Helper function for legacy browsers and iframes which sometimes focus\n     * elements like document, body, and non-interactive SVG.\n     * @param {Element} el\n     */\n    function isValidFocusTarget(el) {\n      if (\n        el &&\n        el !== document &&\n        el.nodeName !== 'HTML' &&\n        el.nodeName !== 'BODY' &&\n        'classList' in el &&\n        'contains' in el.classList\n      ) {\n        return true;\n      }\n      return false;\n    }\n\n    /**\n     * Computes whether the given element should automatically trigger the\n     * `focus-visible` class being added, i.e. whether it should always match\n     * `:focus-visible` when focused.\n     * @param {Element} el\n     * @return {boolean}\n     */\n    function focusTriggersKeyboardModality(el) {\n      var type = el.type;\n      var tagName = el.tagName;\n\n      if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {\n        return true;\n      }\n\n      if (tagName === 'TEXTAREA' && !el.readOnly) {\n        return true;\n      }\n\n      if (el.isContentEditable) {\n        return true;\n      }\n\n      return false;\n    }\n\n    /**\n     * Add the `focus-visible` class to the given element if it was not added by\n     * the author.\n     * @param {Element} el\n     */\n    function addFocusVisibleClass(el) {\n      if (el.classList.contains('focus-visible')) {\n        return;\n      }\n      el.classList.add('focus-visible');\n      el.setAttribute('data-focus-visible-added', '');\n    }\n\n    /**\n     * Remove the `focus-visible` class from the given element if it was not\n     * originally added by the author.\n     * @param {Element} el\n     */\n    function removeFocusVisibleClass(el) {\n      if (!el.hasAttribute('data-focus-visible-added')) {\n        return;\n      }\n      el.classList.remove('focus-visible');\n      el.removeAttribute('data-focus-visible-added');\n    }\n\n    /**\n     * If the most recent user interaction was via the keyboard;\n     * and the key press did not include a meta, alt/option, or control key;\n     * then the modality is keyboard. Otherwise, the modality is not keyboard.\n     * Apply `focus-visible` to any current active element and keep track\n     * of our keyboard modality state with `hadKeyboardEvent`.\n     * @param {KeyboardEvent} e\n     */\n    function onKeyDown(e) {\n      if (e.metaKey || e.altKey || e.ctrlKey) {\n        return;\n      }\n\n      if (isValidFocusTarget(scope.activeElement)) {\n        addFocusVisibleClass(scope.activeElement);\n      }\n\n      hadKeyboardEvent = true;\n    }\n\n    /**\n     * If at any point a user clicks with a pointing device, ensure that we change\n     * the modality away from keyboard.\n     * This avoids the situation where a user presses a key on an already focused\n     * element, and then clicks on a different element, focusing it with a\n     * pointing device, while we still think we're in keyboard modality.\n     * @param {Event} e\n     */\n    function onPointerDown(e) {\n      hadKeyboardEvent = false;\n    }\n\n    /**\n     * On `focus`, add the `focus-visible` class to the target if:\n     * - the target received focus as a result of keyboard navigation, or\n     * - the event target is an element that will likely require interaction\n     *   via the keyboard (e.g. a text box)\n     * @param {Event} e\n     */\n    function onFocus(e) {\n      // Prevent IE from focusing the document or HTML element.\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {\n        addFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * On `blur`, remove the `focus-visible` class from the target.\n     * @param {Event} e\n     */\n    function onBlur(e) {\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (\n        e.target.classList.contains('focus-visible') ||\n        e.target.hasAttribute('data-focus-visible-added')\n      ) {\n        // To detect a tab/window switch, we look for a blur event followed\n        // rapidly by a visibility change.\n        // If we don't see a visibility change within 100ms, it's probably a\n        // regular focus change.\n        hadFocusVisibleRecently = true;\n        window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n        hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {\n          hadFocusVisibleRecently = false;\n        }, 100);\n        removeFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * If the user changes tabs, keep track of whether or not the previously\n     * focused element had .focus-visible.\n     * @param {Event} e\n     */\n    function onVisibilityChange(e) {\n      if (document.visibilityState === 'hidden') {\n        // If the tab becomes active again, the browser will handle calling focus\n        // on the element (Safari actually calls it twice).\n        // If this tab change caused a blur on an element with focus-visible,\n        // re-apply the class when the user switches back to the tab.\n        if (hadFocusVisibleRecently) {\n          hadKeyboardEvent = true;\n        }\n        addInitialPointerMoveListeners();\n      }\n    }\n\n    /**\n     * Add a group of listeners to detect usage of any pointing devices.\n     * These listeners will be added when the polyfill first loads, and anytime\n     * the window is blurred, so that they are active when the window regains\n     * focus.\n     */\n    function addInitialPointerMoveListeners() {\n      document.addEventListener('mousemove', onInitialPointerMove);\n      document.addEventListener('mousedown', onInitialPointerMove);\n      document.addEventListener('mouseup', onInitialPointerMove);\n      document.addEventListener('pointermove', onInitialPointerMove);\n      document.addEventListener('pointerdown', onInitialPointerMove);\n      document.addEventListener('pointerup', onInitialPointerMove);\n      document.addEventListener('touchmove', onInitialPointerMove);\n      document.addEventListener('touchstart', onInitialPointerMove);\n      document.addEventListener('touchend', onInitialPointerMove);\n    }\n\n    function removeInitialPointerMoveListeners() {\n      document.removeEventListener('mousemove', onInitialPointerMove);\n      document.removeEventListener('mousedown', onInitialPointerMove);\n      document.removeEventListener('mouseup', onInitialPointerMove);\n      document.removeEventListener('pointermove', onInitialPointerMove);\n      document.removeEventListener('pointerdown', onInitialPointerMove);\n      document.removeEventListener('pointerup', onInitialPointerMove);\n      document.removeEventListener('touchmove', onInitialPointerMove);\n      document.removeEventListener('touchstart', onInitialPointerMove);\n      document.removeEventListener('touchend', onInitialPointerMove);\n    }\n\n    /**\n     * When the polfyill first loads, assume the user is in keyboard modality.\n     * If any event is received from a pointing device (e.g. mouse, pointer,\n     * touch), turn off keyboard modality.\n     * This accounts for situations where focus enters the page from the URL bar.\n     * @param {Event} e\n     */\n    function onInitialPointerMove(e) {\n      // Work around a Safari quirk that fires a mousemove on <html> whenever the\n      // window blurs, even if you're tabbing out of the page. \u00AF\\_(\u30C4)_/\u00AF\n      if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {\n        return;\n      }\n\n      hadKeyboardEvent = false;\n      removeInitialPointerMoveListeners();\n    }\n\n    // For some kinds of state, we are interested in changes at the global scope\n    // only. For example, global pointer input, global key presses and global\n    // visibility change should affect the state at every scope:\n    document.addEventListener('keydown', onKeyDown, true);\n    document.addEventListener('mousedown', onPointerDown, true);\n    document.addEventListener('pointerdown', onPointerDown, true);\n    document.addEventListener('touchstart', onPointerDown, true);\n    document.addEventListener('visibilitychange', onVisibilityChange, true);\n\n    addInitialPointerMoveListeners();\n\n    // For focus and blur, we specifically care about state changes in the local\n    // scope. This is because focus / blur events that originate from within a\n    // shadow root are not re-dispatched from the host element if it was already\n    // the active element in its own scope:\n    scope.addEventListener('focus', onFocus, true);\n    scope.addEventListener('blur', onBlur, true);\n\n    // We detect that a node is a ShadowRoot by ensuring that it is a\n    // DocumentFragment and also has a host property. This check covers native\n    // implementation and polyfill implementation transparently. If we only cared\n    // about the native implementation, we could just check if the scope was\n    // an instance of a ShadowRoot.\n    if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {\n      // Since a ShadowRoot is a special kind of DocumentFragment, it does not\n      // have a root element to add a class to. So, we add this attribute to the\n      // host element instead:\n      scope.host.setAttribute('data-js-focus-visible', '');\n    } else if (scope.nodeType === Node.DOCUMENT_NODE) {\n      document.documentElement.classList.add('js-focus-visible');\n      document.documentElement.setAttribute('data-js-focus-visible', '');\n    }\n  }\n\n  // It is important to wrap all references to global window and document in\n  // these checks to support server-side rendering use cases\n  // @see https://github.com/WICG/focus-visible/issues/199\n  if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n    // Make the polyfill helper globally available. This can be used as a signal\n    // to interested libraries that wish to coordinate with the polyfill for e.g.,\n    // applying the polyfill to a shadow root:\n    window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;\n\n    // Notify interested libraries of the polyfill's presence, in case the\n    // polyfill was loaded lazily:\n    var event;\n\n    try {\n      event = new CustomEvent('focus-visible-polyfill-ready');\n    } catch (error) {\n      // IE11 does not support using CustomEvent as a constructor directly:\n      event = document.createEvent('CustomEvent');\n      event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});\n    }\n\n    window.dispatchEvent(event);\n  }\n\n  if (typeof document !== 'undefined') {\n    // Apply the polyfill to the global document, so that no JavaScript\n    // coordination is required to use the polyfill in the top-level document:\n    applyFocusVisiblePolyfill(document);\n  }\n\n})));\n", "/*!\n * clipboard.js v2.0.11\n * https://clipboardjs.com/\n *\n * Licensed MIT \u00A9 Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ClipboardJS\"] = factory();\n\telse\n\t\troot[\"ClipboardJS\"] = factory();\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 686:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n  \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __webpack_require__(279);\nvar tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __webpack_require__(370);\nvar listen_default = /*#__PURE__*/__webpack_require__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __webpack_require__(817);\nvar select_default = /*#__PURE__*/__webpack_require__.n(src_select);\n;// CONCATENATED MODULE: ./src/common/command.js\n/**\n * Executes a given operation type.\n * @param {String} type\n * @return {Boolean}\n */\nfunction command(type) {\n  try {\n    return document.execCommand(type);\n  } catch (err) {\n    return false;\n  }\n}\n;// CONCATENATED MODULE: ./src/actions/cut.js\n\n\n/**\n * Cut action wrapper.\n * @param {String|HTMLElement} target\n * @return {String}\n */\n\nvar ClipboardActionCut = function ClipboardActionCut(target) {\n  var selectedText = select_default()(target);\n  command('cut');\n  return selectedText;\n};\n\n/* harmony default export */ var actions_cut = (ClipboardActionCut);\n;// CONCATENATED MODULE: ./src/common/create-fake-element.js\n/**\n * Creates a fake textarea element with a value.\n * @param {String} value\n * @return {HTMLElement}\n */\nfunction createFakeElement(value) {\n  var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n  var fakeElement = document.createElement('textarea'); // Prevent zooming on iOS\n\n  fakeElement.style.fontSize = '12pt'; // Reset box model\n\n  fakeElement.style.border = '0';\n  fakeElement.style.padding = '0';\n  fakeElement.style.margin = '0'; // Move element out of screen horizontally\n\n  fakeElement.style.position = 'absolute';\n  fakeElement.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n  var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n  fakeElement.style.top = \"\".concat(yPosition, \"px\");\n  fakeElement.setAttribute('readonly', '');\n  fakeElement.value = value;\n  return fakeElement;\n}\n;// CONCATENATED MODULE: ./src/actions/copy.js\n\n\n\n/**\n * Create fake copy action wrapper using a fake element.\n * @param {String} target\n * @param {Object} options\n * @return {String}\n */\n\nvar fakeCopyAction = function fakeCopyAction(value, options) {\n  var fakeElement = createFakeElement(value);\n  options.container.appendChild(fakeElement);\n  var selectedText = select_default()(fakeElement);\n  command('copy');\n  fakeElement.remove();\n  return selectedText;\n};\n/**\n * Copy action wrapper.\n * @param {String|HTMLElement} target\n * @param {Object} options\n * @return {String}\n */\n\n\nvar ClipboardActionCopy = function ClipboardActionCopy(target) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    container: document.body\n  };\n  var selectedText = '';\n\n  if (typeof target === 'string') {\n    selectedText = fakeCopyAction(target, options);\n  } else if (target instanceof HTMLInputElement && !['text', 'search', 'url', 'tel', 'password'].includes(target === null || target === void 0 ? void 0 : target.type)) {\n    // If input type doesn't support `setSelectionRange`. Simulate it. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n    selectedText = fakeCopyAction(target.value, options);\n  } else {\n    selectedText = select_default()(target);\n    command('copy');\n  }\n\n  return selectedText;\n};\n\n/* harmony default export */ var actions_copy = (ClipboardActionCopy);\n;// CONCATENATED MODULE: ./src/actions/default.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/**\n * Inner function which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n * @param {Object} options\n */\n\nvar ClipboardActionDefault = function ClipboardActionDefault() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  // Defines base properties passed from constructor.\n  var _options$action = options.action,\n      action = _options$action === void 0 ? 'copy' : _options$action,\n      container = options.container,\n      target = options.target,\n      text = options.text; // Sets the `action` to be performed which can be either 'copy' or 'cut'.\n\n  if (action !== 'copy' && action !== 'cut') {\n    throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n  } // Sets the `target` property using an element that will be have its content copied.\n\n\n  if (target !== undefined) {\n    if (target && _typeof(target) === 'object' && target.nodeType === 1) {\n      if (action === 'copy' && target.hasAttribute('disabled')) {\n        throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n      }\n\n      if (action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n        throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n      }\n    } else {\n      throw new Error('Invalid \"target\" value, use a valid Element');\n    }\n  } // Define selection strategy based on `text` property.\n\n\n  if (text) {\n    return actions_copy(text, {\n      container: container\n    });\n  } // Defines which selection strategy based on `target` property.\n\n\n  if (target) {\n    return action === 'cut' ? actions_cut(target) : actions_copy(target, {\n      container: container\n    });\n  }\n};\n\n/* harmony default export */ var actions_default = (ClipboardActionDefault);\n;// CONCATENATED MODULE: ./src/clipboard.js\nfunction clipboard_typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { clipboard_typeof = function _typeof(obj) { return typeof obj; }; } else { clipboard_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return clipboard_typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (clipboard_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n/**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\nfunction getAttributeValue(suffix, element) {\n  var attribute = \"data-clipboard-\".concat(suffix);\n\n  if (!element.hasAttribute(attribute)) {\n    return;\n  }\n\n  return element.getAttribute(attribute);\n}\n/**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\nvar Clipboard = /*#__PURE__*/function (_Emitter) {\n  _inherits(Clipboard, _Emitter);\n\n  var _super = _createSuper(Clipboard);\n\n  /**\n   * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n   * @param {Object} options\n   */\n  function Clipboard(trigger, options) {\n    var _this;\n\n    _classCallCheck(this, Clipboard);\n\n    _this = _super.call(this);\n\n    _this.resolveOptions(options);\n\n    _this.listenClick(trigger);\n\n    return _this;\n  }\n  /**\n   * Defines if attributes would be resolved using internal setter functions\n   * or custom functions that were passed in the constructor.\n   * @param {Object} options\n   */\n\n\n  _createClass(Clipboard, [{\n    key: \"resolveOptions\",\n    value: function resolveOptions() {\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n      this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n      this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n      this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n    }\n    /**\n     * Adds a click event listener to the passed trigger.\n     * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n     */\n\n  }, {\n    key: \"listenClick\",\n    value: function listenClick(trigger) {\n      var _this2 = this;\n\n      this.listener = listen_default()(trigger, 'click', function (e) {\n        return _this2.onClick(e);\n      });\n    }\n    /**\n     * Defines a new `ClipboardAction` on each click event.\n     * @param {Event} e\n     */\n\n  }, {\n    key: \"onClick\",\n    value: function onClick(e) {\n      var trigger = e.delegateTarget || e.currentTarget;\n      var action = this.action(trigger) || 'copy';\n      var text = actions_default({\n        action: action,\n        container: this.container,\n        target: this.target(trigger),\n        text: this.text(trigger)\n      }); // Fires an event based on the copy operation result.\n\n      this.emit(text ? 'success' : 'error', {\n        action: action,\n        text: text,\n        trigger: trigger,\n        clearSelection: function clearSelection() {\n          if (trigger) {\n            trigger.focus();\n          }\n\n          window.getSelection().removeAllRanges();\n        }\n      });\n    }\n    /**\n     * Default `action` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultAction\",\n    value: function defaultAction(trigger) {\n      return getAttributeValue('action', trigger);\n    }\n    /**\n     * Default `target` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultTarget\",\n    value: function defaultTarget(trigger) {\n      var selector = getAttributeValue('target', trigger);\n\n      if (selector) {\n        return document.querySelector(selector);\n      }\n    }\n    /**\n     * Allow fire programmatically a copy action\n     * @param {String|HTMLElement} target\n     * @param {Object} options\n     * @returns Text copied.\n     */\n\n  }, {\n    key: \"defaultText\",\n\n    /**\n     * Default `text` lookup function.\n     * @param {Element} trigger\n     */\n    value: function defaultText(trigger) {\n      return getAttributeValue('text', trigger);\n    }\n    /**\n     * Destroy lifecycle.\n     */\n\n  }, {\n    key: \"destroy\",\n    value: function destroy() {\n      this.listener.destroy();\n    }\n  }], [{\n    key: \"copy\",\n    value: function copy(target) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n        container: document.body\n      };\n      return actions_copy(target, options);\n    }\n    /**\n     * Allow fire programmatically a cut action\n     * @param {String|HTMLElement} target\n     * @returns Text cutted.\n     */\n\n  }, {\n    key: \"cut\",\n    value: function cut(target) {\n      return actions_cut(target);\n    }\n    /**\n     * Returns the support of the given action, or all actions if no action is\n     * given.\n     * @param {String} [action]\n     */\n\n  }, {\n    key: \"isSupported\",\n    value: function isSupported() {\n      var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n      var actions = typeof action === 'string' ? [action] : action;\n      var support = !!document.queryCommandSupported;\n      actions.forEach(function (action) {\n        support = support && !!document.queryCommandSupported(action);\n      });\n      return support;\n    }\n  }]);\n\n  return Clipboard;\n}((tiny_emitter_default()));\n\n/* harmony default export */ var clipboard = (Clipboard);\n\n/***/ }),\n\n/***/ 828:\n/***/ (function(module) {\n\nvar DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n    var proto = Element.prototype;\n\n    proto.matches = proto.matchesSelector ||\n                    proto.mozMatchesSelector ||\n                    proto.msMatchesSelector ||\n                    proto.oMatchesSelector ||\n                    proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n    while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n        if (typeof element.matches === 'function' &&\n            element.matches(selector)) {\n          return element;\n        }\n        element = element.parentNode;\n    }\n}\n\nmodule.exports = closest;\n\n\n/***/ }),\n\n/***/ 438:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar closest = __webpack_require__(828);\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction _delegate(element, selector, type, callback, useCapture) {\n    var listenerFn = listener.apply(this, arguments);\n\n    element.addEventListener(type, listenerFn, useCapture);\n\n    return {\n        destroy: function() {\n            element.removeEventListener(type, listenerFn, useCapture);\n        }\n    }\n}\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(elements, selector, type, callback, useCapture) {\n    // Handle the regular Element usage\n    if (typeof elements.addEventListener === 'function') {\n        return _delegate.apply(null, arguments);\n    }\n\n    // Handle Element-less usage, it defaults to global delegation\n    if (typeof type === 'function') {\n        // Use `document` as the first parameter, then apply arguments\n        // This is a short way to .unshift `arguments` without running into deoptimizations\n        return _delegate.bind(null, document).apply(null, arguments);\n    }\n\n    // Handle Selector-based usage\n    if (typeof elements === 'string') {\n        elements = document.querySelectorAll(elements);\n    }\n\n    // Handle Array-like based usage\n    return Array.prototype.map.call(elements, function (element) {\n        return _delegate(element, selector, type, callback, useCapture);\n    });\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n    return function(e) {\n        e.delegateTarget = closest(e.target, selector);\n\n        if (e.delegateTarget) {\n            callback.call(element, e);\n        }\n    }\n}\n\nmodule.exports = delegate;\n\n\n/***/ }),\n\n/***/ 879:\n/***/ (function(__unused_webpack_module, exports) {\n\n/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n    return value !== undefined\n        && value instanceof HTMLElement\n        && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return value !== undefined\n        && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n        && ('length' in value)\n        && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n    return typeof value === 'string'\n        || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return type === '[object Function]';\n};\n\n\n/***/ }),\n\n/***/ 370:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar is = __webpack_require__(879);\nvar delegate = __webpack_require__(438);\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n    if (!target && !type && !callback) {\n        throw new Error('Missing required arguments');\n    }\n\n    if (!is.string(type)) {\n        throw new TypeError('Second argument must be a String');\n    }\n\n    if (!is.fn(callback)) {\n        throw new TypeError('Third argument must be a Function');\n    }\n\n    if (is.node(target)) {\n        return listenNode(target, type, callback);\n    }\n    else if (is.nodeList(target)) {\n        return listenNodeList(target, type, callback);\n    }\n    else if (is.string(target)) {\n        return listenSelector(target, type, callback);\n    }\n    else {\n        throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n    }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n    node.addEventListener(type, callback);\n\n    return {\n        destroy: function() {\n            node.removeEventListener(type, callback);\n        }\n    }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n    Array.prototype.forEach.call(nodeList, function(node) {\n        node.addEventListener(type, callback);\n    });\n\n    return {\n        destroy: function() {\n            Array.prototype.forEach.call(nodeList, function(node) {\n                node.removeEventListener(type, callback);\n            });\n        }\n    }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n    return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n\n\n/***/ }),\n\n/***/ 817:\n/***/ (function(module) {\n\nfunction select(element) {\n    var selectedText;\n\n    if (element.nodeName === 'SELECT') {\n        element.focus();\n\n        selectedText = element.value;\n    }\n    else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n        var isReadOnly = element.hasAttribute('readonly');\n\n        if (!isReadOnly) {\n            element.setAttribute('readonly', '');\n        }\n\n        element.select();\n        element.setSelectionRange(0, element.value.length);\n\n        if (!isReadOnly) {\n            element.removeAttribute('readonly');\n        }\n\n        selectedText = element.value;\n    }\n    else {\n        if (element.hasAttribute('contenteditable')) {\n            element.focus();\n        }\n\n        var selection = window.getSelection();\n        var range = document.createRange();\n\n        range.selectNodeContents(element);\n        selection.removeAllRanges();\n        selection.addRange(range);\n\n        selectedText = selection.toString();\n    }\n\n    return selectedText;\n}\n\nmodule.exports = select;\n\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module) {\n\nfunction E () {\n  // Keep this empty so it's easier to inherit from\n  // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n  on: function (name, callback, ctx) {\n    var e = this.e || (this.e = {});\n\n    (e[name] || (e[name] = [])).push({\n      fn: callback,\n      ctx: ctx\n    });\n\n    return this;\n  },\n\n  once: function (name, callback, ctx) {\n    var self = this;\n    function listener () {\n      self.off(name, listener);\n      callback.apply(ctx, arguments);\n    };\n\n    listener._ = callback\n    return this.on(name, listener, ctx);\n  },\n\n  emit: function (name) {\n    var data = [].slice.call(arguments, 1);\n    var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n    var i = 0;\n    var len = evtArr.length;\n\n    for (i; i < len; i++) {\n      evtArr[i].fn.apply(evtArr[i].ctx, data);\n    }\n\n    return this;\n  },\n\n  off: function (name, callback) {\n    var e = this.e || (this.e = {});\n    var evts = e[name];\n    var liveEvents = [];\n\n    if (evts && callback) {\n      for (var i = 0, len = evts.length; i < len; i++) {\n        if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n          liveEvents.push(evts[i]);\n      }\n    }\n\n    // Remove event from queue to prevent memory leak\n    // Suggested by https://github.com/lazd\n    // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n    (liveEvents.length)\n      ? e[name] = liveEvents\n      : delete e[name];\n\n    return this;\n  }\n};\n\nmodule.exports = E;\nmodule.exports.TinyEmitter = E;\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t!function() {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = function(module) {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\tfunction() { return module['default']; } :\n/******/ \t\t\t\tfunction() { return module; };\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(686);\n/******/ })()\n.default;\n});", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param  {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index = 0;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34: // \"\n        escape = '&quot;';\n        break;\n      case 38: // &\n        escape = '&amp;';\n        break;\n      case 39: // '\n        escape = '&#39;';\n        break;\n      case 60: // <\n        escape = '&lt;';\n        break;\n      case 62: // >\n        escape = '&gt;';\n        break;\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index\n    ? html + str.substring(lastIndex, index)\n    : html;\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport \"focus-visible\"\n\nimport {\n  EMPTY,\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  delay,\n  filter,\n  map,\n  merge,\n  mergeWith,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\nimport { configuration, feature } from \"./_\"\nimport {\n  at,\n  getActiveElement,\n  getOptionalElement,\n  requestJSON,\n  setLocation,\n  setToggle,\n  watchDocument,\n  watchKeyboard,\n  watchLocation,\n  watchLocationTarget,\n  watchMedia,\n  watchPrint,\n  watchScript,\n  watchViewport\n} from \"./browser\"\nimport {\n  getComponentElement,\n  getComponentElements,\n  mountAnnounce,\n  mountBackToTop,\n  mountConsent,\n  mountContent,\n  mountDialog,\n  mountHeader,\n  mountHeaderTitle,\n  mountPalette,\n  mountProgress,\n  mountSearch,\n  mountSearchHiglight,\n  mountSidebar,\n  mountSource,\n  mountTableOfContents,\n  mountTabs,\n  watchHeader,\n  watchMain\n} from \"./components\"\nimport {\n  SearchIndex,\n  setupClipboardJS,\n  setupInstantNavigation,\n  setupVersionSelector\n} from \"./integrations\"\nimport {\n  patchEllipsis,\n  patchIndeterminate,\n  patchScrollfix,\n  patchScrolllock\n} from \"./patches\"\nimport \"./polyfills\"\n\n/* ----------------------------------------------------------------------------\n * Functions - @todo refactor\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch search index\n *\n * @returns Search index observable\n */\nfunction fetchSearchIndex(): Observable<SearchIndex> {\n  if (location.protocol === \"file:\") {\n    return watchScript(\n      `${new URL(\"search/search_index.js\", config.base)}`\n    )\n      .pipe(\n        // @ts-ignore - @todo fix typings\n        map(() => __index),\n        shareReplay(1)\n      )\n  } else {\n    return requestJSON<SearchIndex>(\n      new URL(\"search/search_index.json\", config.base)\n    )\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\n/* Yay, JavaScript is available */\ndocument.documentElement.classList.remove(\"no-js\")\ndocument.documentElement.classList.add(\"js\")\n\n/* Set up navigation observables and subjects */\nconst document$ = watchDocument()\nconst location$ = watchLocation()\nconst target$   = watchLocationTarget(location$)\nconst keyboard$ = watchKeyboard()\n\n/* Set up media observables */\nconst viewport$ = watchViewport()\nconst tablet$   = watchMedia(\"(min-width: 960px)\")\nconst screen$   = watchMedia(\"(min-width: 1220px)\")\nconst print$    = watchPrint()\n\n/* Retrieve search index, if search is enabled */\nconst config = configuration()\nconst index$ = document.forms.namedItem(\"search\")\n  ? fetchSearchIndex()\n  : NEVER\n\n/* Set up Clipboard.js integration */\nconst alert$ = new Subject<string>()\nsetupClipboardJS({ alert$ })\n\n/* Set up progress indicator */\nconst progress$ = new Subject<number>()\n\n/* Set up instant navigation, if enabled */\nif (feature(\"navigation.instant\"))\n  setupInstantNavigation({ location$, viewport$, progress$ })\n    .subscribe(document$)\n\n/* Set up version selector */\nif (config.version?.provider === \"mike\")\n  setupVersionSelector({ document$ })\n\n/* Always close drawer and search on navigation */\nmerge(location$, target$)\n  .pipe(\n    delay(125)\n  )\n    .subscribe(() => {\n      setToggle(\"drawer\", false)\n      setToggle(\"search\", false)\n    })\n\n/* Set up global keyboard handlers */\nkeyboard$\n  .pipe(\n    filter(({ mode }) => mode === \"global\")\n  )\n    .subscribe(key => {\n      switch (key.type) {\n\n        /* Go to previous page */\n        case \"p\":\n        case \",\":\n          const prev = getOptionalElement<HTMLLinkElement>(\"link[rel=prev]\")\n          if (typeof prev !== \"undefined\")\n            setLocation(prev)\n          break\n\n        /* Go to next page */\n        case \"n\":\n        case \".\":\n          const next = getOptionalElement<HTMLLinkElement>(\"link[rel=next]\")\n          if (typeof next !== \"undefined\")\n            setLocation(next)\n          break\n\n        /* Expand navigation, see https://bit.ly/3ZjG5io */\n        case \"Enter\":\n          const active = getActiveElement()\n          if (active instanceof HTMLLabelElement)\n            active.click()\n      }\n    })\n\n/* Set up patches */\npatchEllipsis({ document$ })\npatchIndeterminate({ document$, tablet$ })\npatchScrollfix({ document$ })\npatchScrolllock({ viewport$, tablet$ })\n\n/* Set up header and main area observable */\nconst header$ = watchHeader(getComponentElement(\"header\"), { viewport$ })\nconst main$ = document$\n  .pipe(\n    map(() => getComponentElement(\"main\")),\n    switchMap(el => watchMain(el, { viewport$, header$ })),\n    shareReplay(1)\n  )\n\n/* Set up control component observables */\nconst control$ = merge(\n\n  /* Consent */\n  ...getComponentElements(\"consent\")\n    .map(el => mountConsent(el, { target$ })),\n\n  /* Dialog */\n  ...getComponentElements(\"dialog\")\n    .map(el => mountDialog(el, { alert$ })),\n\n  /* Header */\n  ...getComponentElements(\"header\")\n    .map(el => mountHeader(el, { viewport$, header$, main$ })),\n\n  /* Color palette */\n  ...getComponentElements(\"palette\")\n    .map(el => mountPalette(el)),\n\n  /* Progress bar */\n  ...getComponentElements(\"progress\")\n    .map(el => mountProgress(el, { progress$ })),\n\n  /* Search */\n  ...getComponentElements(\"search\")\n    .map(el => mountSearch(el, { index$, keyboard$ })),\n\n  /* Repository information */\n  ...getComponentElements(\"source\")\n    .map(el => mountSource(el))\n)\n\n/* Set up content component observables */\nconst content$ = defer(() => merge(\n\n  /* Announcement bar */\n  ...getComponentElements(\"announce\")\n    .map(el => mountAnnounce(el)),\n\n  /* Content */\n  ...getComponentElements(\"content\")\n    .map(el => mountContent(el, { viewport$, target$, print$ })),\n\n  /* Search highlighting */\n  ...getComponentElements(\"content\")\n    .map(el => feature(\"search.highlight\")\n      ? mountSearchHiglight(el, { index$, location$ })\n      : EMPTY\n    ),\n\n  /* Header title */\n  ...getComponentElements(\"header-title\")\n    .map(el => mountHeaderTitle(el, { viewport$, header$ })),\n\n  /* Sidebar */\n  ...getComponentElements(\"sidebar\")\n    .map(el => el.getAttribute(\"data-md-type\") === \"navigation\"\n      ? at(screen$, () => mountSidebar(el, { viewport$, header$, main$ }))\n      : at(tablet$, () => mountSidebar(el, { viewport$, header$, main$ }))\n    ),\n\n  /* Navigation tabs */\n  ...getComponentElements(\"tabs\")\n    .map(el => mountTabs(el, { viewport$, header$ })),\n\n  /* Table of contents */\n  ...getComponentElements(\"toc\")\n    .map(el => mountTableOfContents(el, {\n      viewport$, header$, main$, target$\n    })),\n\n  /* Back-to-top button */\n  ...getComponentElements(\"top\")\n    .map(el => mountBackToTop(el, { viewport$, header$, main$, target$ }))\n))\n\n/* Set up component observables */\nconst component$ = document$\n  .pipe(\n    switchMap(() => content$),\n    mergeWith(control$),\n    shareReplay(1)\n  )\n\n/* Subscribe to all components */\ncomponent$.subscribe()\n\n/* ----------------------------------------------------------------------------\n * Exports\n * ------------------------------------------------------------------------- */\n\nwindow.document$  = document$          /* Document observable */\nwindow.location$  = location$          /* Location subject */\nwindow.target$    = target$            /* Location target observable */\nwindow.keyboard$  = keyboard$          /* Keyboard observable */\nwindow.viewport$  = viewport$          /* Viewport observable */\nwindow.tablet$    = tablet$            /* Media tablet observable */\nwindow.screen$    = screen$            /* Media screen observable */\nwindow.print$     = print$             /* Media print observable */\nwindow.alert$     = alert$             /* Alert subject */\nwindow.progress$  = progress$          /* Progress indicator subject */\nwindow.component$ = component$         /* Component observable */\n", "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n    if (typeof b !== \"function\" && b !== null)\r\n        throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    }\r\n    return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n    if (m) return m.call(o);\r\n    if (o && typeof o.length === \"number\") return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n        if (ar || !(i in from)) {\r\n            if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n            ar[i] = from[i];\r\n        }\r\n    }\r\n    return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator], i;\r\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n    o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n    __setModuleDefault(result, mod);\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n    return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n    if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n    return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n", "/**\n * Returns true if the object is a function.\n * @param value The value to check\n */\nexport function isFunction(value: any): value is (...args: any[]) => any {\n  return typeof value === 'function';\n}\n", "/**\n * Used to create Error subclasses until the community moves away from ES5.\n *\n * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors\n * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123\n *\n * @param createImpl A factory function to create the actual constructor implementation. The returned\n * function should be a named function that calls `_super` internally.\n */\nexport function createErrorClass<T>(createImpl: (_super: any) => any): T {\n  const _super = (instance: any) => {\n    Error.call(instance);\n    instance.stack = new Error().stack;\n  };\n\n  const ctorFunc = createImpl(_super);\n  ctorFunc.prototype = Object.create(Error.prototype);\n  ctorFunc.prototype.constructor = ctorFunc;\n  return ctorFunc;\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface UnsubscriptionError extends Error {\n  readonly errors: any[];\n}\n\nexport interface UnsubscriptionErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (errors: any[]): UnsubscriptionError;\n}\n\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nexport const UnsubscriptionError: UnsubscriptionErrorCtor = createErrorClass(\n  (_super) =>\n    function UnsubscriptionErrorImpl(this: any, errors: (Error | string)[]) {\n      _super(this);\n      this.message = errors\n        ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n  ')}`\n        : '';\n      this.name = 'UnsubscriptionError';\n      this.errors = errors;\n    }\n);\n", "/**\n * Removes an item from an array, mutating it.\n * @param arr The array to remove the item from\n * @param item The item to remove\n */\nexport function arrRemove<T>(arr: T[] | undefined | null, item: T) {\n  if (arr) {\n    const index = arr.indexOf(item);\n    0 <= index && arr.splice(index, 1);\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { SubscriptionLike, TeardownLogic, Unsubscribable } from './types';\nimport { arrRemove } from './util/arrRemove';\n\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nexport class Subscription implements SubscriptionLike {\n  /** @nocollapse */\n  public static EMPTY = (() => {\n    const empty = new Subscription();\n    empty.closed = true;\n    return empty;\n  })();\n\n  /**\n   * A flag to indicate whether this Subscription has already been unsubscribed.\n   */\n  public closed = false;\n\n  private _parentage: Subscription[] | Subscription | null = null;\n\n  /**\n   * The list of registered finalizers to execute upon unsubscription. Adding and removing from this\n   * list occurs in the {@link #add} and {@link #remove} methods.\n   */\n  private _finalizers: Exclude<TeardownLogic, void>[] | null = null;\n\n  /**\n   * @param initialTeardown A function executed first as part of the finalization\n   * process that is kicked off when {@link #unsubscribe} is called.\n   */\n  constructor(private initialTeardown?: () => void) {}\n\n  /**\n   * Disposes the resources held by the subscription. May, for instance, cancel\n   * an ongoing Observable execution or cancel any other type of work that\n   * started when the Subscription was created.\n   * @return {void}\n   */\n  unsubscribe(): void {\n    let errors: any[] | undefined;\n\n    if (!this.closed) {\n      this.closed = true;\n\n      // Remove this from it's parents.\n      const { _parentage } = this;\n      if (_parentage) {\n        this._parentage = null;\n        if (Array.isArray(_parentage)) {\n          for (const parent of _parentage) {\n            parent.remove(this);\n          }\n        } else {\n          _parentage.remove(this);\n        }\n      }\n\n      const { initialTeardown: initialFinalizer } = this;\n      if (isFunction(initialFinalizer)) {\n        try {\n          initialFinalizer();\n        } catch (e) {\n          errors = e instanceof UnsubscriptionError ? e.errors : [e];\n        }\n      }\n\n      const { _finalizers } = this;\n      if (_finalizers) {\n        this._finalizers = null;\n        for (const finalizer of _finalizers) {\n          try {\n            execFinalizer(finalizer);\n          } catch (err) {\n            errors = errors ?? [];\n            if (err instanceof UnsubscriptionError) {\n              errors = [...errors, ...err.errors];\n            } else {\n              errors.push(err);\n            }\n          }\n        }\n      }\n\n      if (errors) {\n        throw new UnsubscriptionError(errors);\n      }\n    }\n  }\n\n  /**\n   * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called\n   * when this subscription is unsubscribed. If this subscription is already {@link #closed},\n   * because it has already been unsubscribed, then whatever finalizer is passed to it\n   * will automatically be executed (unless the finalizer itself is also a closed subscription).\n   *\n   * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed\n   * subscription to a any subscription will result in no operation. (A noop).\n   *\n   * Adding a subscription to itself, or adding `null` or `undefined` will not perform any\n   * operation at all. (A noop).\n   *\n   * `Subscription` instances that are added to this instance will automatically remove themselves\n   * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove\n   * will need to be removed manually with {@link #remove}\n   *\n   * @param teardown The finalization logic to add to this subscription.\n   */\n  add(teardown: TeardownLogic): void {\n    // Only add the finalizer if it's not undefined\n    // and don't add a subscription to itself.\n    if (teardown && teardown !== this) {\n      if (this.closed) {\n        // If this subscription is already closed,\n        // execute whatever finalizer is handed to it automatically.\n        execFinalizer(teardown);\n      } else {\n        if (teardown instanceof Subscription) {\n          // We don't add closed subscriptions, and we don't add the same subscription\n          // twice. Subscription unsubscribe is idempotent.\n          if (teardown.closed || teardown._hasParent(this)) {\n            return;\n          }\n          teardown._addParent(this);\n        }\n        (this._finalizers = this._finalizers ?? []).push(teardown);\n      }\n    }\n  }\n\n  /**\n   * Checks to see if a this subscription already has a particular parent.\n   * This will signal that this subscription has already been added to the parent in question.\n   * @param parent the parent to check for\n   */\n  private _hasParent(parent: Subscription) {\n    const { _parentage } = this;\n    return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n  }\n\n  /**\n   * Adds a parent to this subscription so it can be removed from the parent if it\n   * unsubscribes on it's own.\n   *\n   * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.\n   * @param parent The parent subscription to add\n   */\n  private _addParent(parent: Subscription) {\n    const { _parentage } = this;\n    this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n  }\n\n  /**\n   * Called on a child when it is removed via {@link #remove}.\n   * @param parent The parent to remove\n   */\n  private _removeParent(parent: Subscription) {\n    const { _parentage } = this;\n    if (_parentage === parent) {\n      this._parentage = null;\n    } else if (Array.isArray(_parentage)) {\n      arrRemove(_parentage, parent);\n    }\n  }\n\n  /**\n   * Removes a finalizer from this subscription that was previously added with the {@link #add} method.\n   *\n   * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves\n   * from every other `Subscription` they have been added to. This means that using the `remove` method\n   * is not a common thing and should be used thoughtfully.\n   *\n   * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance\n   * more than once, you will need to call `remove` the same number of times to remove all instances.\n   *\n   * All finalizer instances are removed to free up memory upon unsubscription.\n   *\n   * @param teardown The finalizer to remove from this subscription\n   */\n  remove(teardown: Exclude<TeardownLogic, void>): void {\n    const { _finalizers } = this;\n    _finalizers && arrRemove(_finalizers, teardown);\n\n    if (teardown instanceof Subscription) {\n      teardown._removeParent(this);\n    }\n  }\n}\n\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\n\nexport function isSubscription(value: any): value is Subscription {\n  return (\n    value instanceof Subscription ||\n    (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))\n  );\n}\n\nfunction execFinalizer(finalizer: Unsubscribable | (() => void)) {\n  if (isFunction(finalizer)) {\n    finalizer();\n  } else {\n    finalizer.unsubscribe();\n  }\n}\n", "import { Subscriber } from './Subscriber';\nimport { ObservableNotification } from './types';\n\n/**\n * The {@link GlobalConfig} object for RxJS. It is used to configure things\n * like how to react on unhandled errors.\n */\nexport const config: GlobalConfig = {\n  onUnhandledError: null,\n  onStoppedNotification: null,\n  Promise: undefined,\n  useDeprecatedSynchronousErrorHandling: false,\n  useDeprecatedNextContext: false,\n};\n\n/**\n * The global configuration object for RxJS, used to configure things\n * like how to react on unhandled errors. Accessible via {@link config}\n * object.\n */\nexport interface GlobalConfig {\n  /**\n   * A registration point for unhandled errors from RxJS. These are errors that\n   * cannot were not handled by consuming code in the usual subscription path. For\n   * example, if you have this configured, and you subscribe to an observable without\n   * providing an error handler, errors from that subscription will end up here. This\n   * will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onUnhandledError: ((err: any) => void) | null;\n\n  /**\n   * A registration point for notifications that cannot be sent to subscribers because they\n   * have completed, errored or have been explicitly unsubscribed. By default, next, complete\n   * and error notifications sent to stopped subscribers are noops. However, sometimes callers\n   * might want a different behavior. For example, with sources that attempt to report errors\n   * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead.\n   * This will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onStoppedNotification: ((notification: ObservableNotification<any>, subscriber: Subscriber<any>) => void) | null;\n\n  /**\n   * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach}\n   * methods.\n   *\n   * @deprecated As of version 8, RxJS will no longer support this sort of injection of a\n   * Promise constructor. If you need a Promise implementation other than native promises,\n   * please polyfill/patch Promise as you see appropriate. Will be removed in v8.\n   */\n  Promise?: PromiseConstructorLike;\n\n  /**\n   * If true, turns on synchronous error rethrowing, which is a deprecated behavior\n   * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe\n   * call in a try/catch block. It also enables producer interference, a nasty bug\n   * where a multicast can be broken for all observers by a downstream consumer with\n   * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME\n   * FOR MIGRATION REASONS.\n   *\n   * @deprecated As of version 8, RxJS will no longer support synchronous throwing\n   * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad\n   * behaviors described above. Will be removed in v8.\n   */\n  useDeprecatedSynchronousErrorHandling: boolean;\n\n  /**\n   * If true, enables an as-of-yet undocumented feature from v5: The ability to access\n   * `unsubscribe()` via `this` context in `next` functions created in observers passed\n   * to `subscribe`.\n   *\n   * This is being removed because the performance was severely problematic, and it could also cause\n   * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have\n   * their `this` context overwritten.\n   *\n   * @deprecated As of version 8, RxJS will no longer support altering the\n   * context of next functions provided as part of an observer to Subscribe. Instead,\n   * you will have access to a subscription or a signal or token that will allow you to do things like\n   * unsubscribe and test closed status. Will be removed in v8.\n   */\n  useDeprecatedNextContext: boolean;\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearTimeoutFunction = (handle: TimerHandle) => void;\n\ninterface TimeoutProvider {\n  setTimeout: SetTimeoutFunction;\n  clearTimeout: ClearTimeoutFunction;\n  delegate:\n    | {\n        setTimeout: SetTimeoutFunction;\n        clearTimeout: ClearTimeoutFunction;\n      }\n    | undefined;\n}\n\nexport const timeoutProvider: TimeoutProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setTimeout(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = timeoutProvider;\n    if (delegate?.setTimeout) {\n      return delegate.setTimeout(handler, timeout, ...args);\n    }\n    return setTimeout(handler, timeout, ...args);\n  },\n  clearTimeout(handle) {\n    const { delegate } = timeoutProvider;\n    return (delegate?.clearTimeout || clearTimeout)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\n\n/**\n * Handles an error on another job either with the user-configured {@link onUnhandledError},\n * or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc.\n *\n * This should be called whenever there is an error that is out-of-band with the subscription\n * or when an error hits a terminal boundary of the subscription and no error handler was provided.\n *\n * @param err the error to report\n */\nexport function reportUnhandledError(err: any) {\n  timeoutProvider.setTimeout(() => {\n    const { onUnhandledError } = config;\n    if (onUnhandledError) {\n      // Execute the user-configured error handler.\n      onUnhandledError(err);\n    } else {\n      // Throw so it is picked up by the runtime's uncaught error mechanism.\n      throw err;\n    }\n  });\n}\n", "/* tslint:disable:no-empty */\nexport function noop() { }\n", "import { CompleteNotification, NextNotification, ErrorNotification } from './types';\n\n/**\n * A completion object optimized for memory use and created to be the\n * same \"shape\" as other notifications in v8.\n * @internal\n */\nexport const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined) as CompleteNotification)();\n\n/**\n * Internal use only. Creates an optimized error notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function errorNotification(error: any): ErrorNotification {\n  return createNotification('E', undefined, error) as any;\n}\n\n/**\n * Internal use only. Creates an optimized next notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function nextNotification<T>(value: T) {\n  return createNotification('N', value, undefined) as NextNotification<T>;\n}\n\n/**\n * Ensures that all notifications created internally have the same \"shape\" in v8.\n *\n * TODO: This is only exported to support a crazy legacy test in `groupBy`.\n * @internal\n */\nexport function createNotification(kind: 'N' | 'E' | 'C', value: any, error: any) {\n  return {\n    kind,\n    value,\n    error,\n  };\n}\n", "import { config } from '../config';\n\nlet context: { errorThrown: boolean; error: any } | null = null;\n\n/**\n * Handles dealing with errors for super-gross mode. Creates a context, in which\n * any synchronously thrown errors will be passed to {@link captureError}. Which\n * will record the error such that it will be rethrown after the call back is complete.\n * TODO: Remove in v8\n * @param cb An immediately executed function.\n */\nexport function errorContext(cb: () => void) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    const isRoot = !context;\n    if (isRoot) {\n      context = { errorThrown: false, error: null };\n    }\n    cb();\n    if (isRoot) {\n      const { errorThrown, error } = context!;\n      context = null;\n      if (errorThrown) {\n        throw error;\n      }\n    }\n  } else {\n    // This is the general non-deprecated path for everyone that\n    // isn't crazy enough to use super-gross mode (useDeprecatedSynchronousErrorHandling)\n    cb();\n  }\n}\n\n/**\n * Captures errors only in super-gross mode.\n * @param err the error to capture\n */\nexport function captureError(err: any) {\n  if (config.useDeprecatedSynchronousErrorHandling && context) {\n    context.errorThrown = true;\n    context.error = err;\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { Observer, ObservableNotification } from './types';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\n\n/**\n * Implements the {@link Observer} interface and extends the\n * {@link Subscription} class. While the {@link Observer} is the public API for\n * consuming the values of an {@link Observable}, all Observers get converted to\n * a Subscriber, in order to provide Subscription-like capabilities such as\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\n * implementing operators, but it is rarely used as a public API.\n *\n * @class Subscriber<T>\n */\nexport class Subscriber<T> extends Subscription implements Observer<T> {\n  /**\n   * A static factory for a Subscriber, given a (potentially partial) definition\n   * of an Observer.\n   * @param next The `next` callback of an Observer.\n   * @param error The `error` callback of an\n   * Observer.\n   * @param complete The `complete` callback of an\n   * Observer.\n   * @return A Subscriber wrapping the (partially defined)\n   * Observer represented by the given arguments.\n   * @nocollapse\n   * @deprecated Do not use. Will be removed in v8. There is no replacement for this\n   * method, and there is no reason to be creating instances of `Subscriber` directly.\n   * If you have a specific use case, please file an issue.\n   */\n  static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T> {\n    return new SafeSubscriber(next, error, complete);\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected isStopped: boolean = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected destination: Subscriber<any> | Observer<any>; // this `any` is the escape hatch to erase extra type param (e.g. R)\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.\n   */\n  constructor(destination?: Subscriber<any> | Observer<any>) {\n    super();\n    if (destination) {\n      this.destination = destination;\n      // Automatically chain subscriptions together here.\n      // if destination is a Subscription, then it is a Subscriber.\n      if (isSubscription(destination)) {\n        destination.add(this);\n      }\n    } else {\n      this.destination = EMPTY_OBSERVER;\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `next` from\n   * the Observable, with a value. The Observable may call this method 0 or more\n   * times.\n   * @param {T} [value] The `next` value.\n   * @return {void}\n   */\n  next(value?: T): void {\n    if (this.isStopped) {\n      handleStoppedNotification(nextNotification(value), this);\n    } else {\n      this._next(value!);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `error` from\n   * the Observable, with an attached `Error`. Notifies the Observer that\n   * the Observable has experienced an error condition.\n   * @param {any} [err] The `error` exception.\n   * @return {void}\n   */\n  error(err?: any): void {\n    if (this.isStopped) {\n      handleStoppedNotification(errorNotification(err), this);\n    } else {\n      this.isStopped = true;\n      this._error(err);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive a valueless notification of type\n   * `complete` from the Observable. Notifies the Observer that the Observable\n   * has finished sending push-based notifications.\n   * @return {void}\n   */\n  complete(): void {\n    if (this.isStopped) {\n      handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n    } else {\n      this.isStopped = true;\n      this._complete();\n    }\n  }\n\n  unsubscribe(): void {\n    if (!this.closed) {\n      this.isStopped = true;\n      super.unsubscribe();\n      this.destination = null!;\n    }\n  }\n\n  protected _next(value: T): void {\n    this.destination.next(value);\n  }\n\n  protected _error(err: any): void {\n    try {\n      this.destination.error(err);\n    } finally {\n      this.unsubscribe();\n    }\n  }\n\n  protected _complete(): void {\n    try {\n      this.destination.complete();\n    } finally {\n      this.unsubscribe();\n    }\n  }\n}\n\n/**\n * This bind is captured here because we want to be able to have\n * compatibility with monoid libraries that tend to use a method named\n * `bind`. In particular, a library called Monio requires this.\n */\nconst _bind = Function.prototype.bind;\n\nfunction bind<Fn extends (...args: any[]) => any>(fn: Fn, thisArg: any): Fn {\n  return _bind.call(fn, thisArg);\n}\n\n/**\n * Internal optimization only, DO NOT EXPOSE.\n * @internal\n */\nclass ConsumerObserver<T> implements Observer<T> {\n  constructor(private partialObserver: Partial<Observer<T>>) {}\n\n  next(value: T): void {\n    const { partialObserver } = this;\n    if (partialObserver.next) {\n      try {\n        partialObserver.next(value);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n\n  error(err: any): void {\n    const { partialObserver } = this;\n    if (partialObserver.error) {\n      try {\n        partialObserver.error(err);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    } else {\n      handleUnhandledError(err);\n    }\n  }\n\n  complete(): void {\n    const { partialObserver } = this;\n    if (partialObserver.complete) {\n      try {\n        partialObserver.complete();\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n}\n\nexport class SafeSubscriber<T> extends Subscriber<T> {\n  constructor(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((e?: any) => void) | null,\n    complete?: (() => void) | null\n  ) {\n    super();\n\n    let partialObserver: Partial<Observer<T>>;\n    if (isFunction(observerOrNext) || !observerOrNext) {\n      // The first argument is a function, not an observer. The next\n      // two arguments *could* be observers, or they could be empty.\n      partialObserver = {\n        next: (observerOrNext ?? undefined) as (((value: T) => void) | undefined),\n        error: error ?? undefined,\n        complete: complete ?? undefined,\n      };\n    } else {\n      // The first argument is a partial observer.\n      let context: any;\n      if (this && config.useDeprecatedNextContext) {\n        // This is a deprecated path that made `this.unsubscribe()` available in\n        // next handler functions passed to subscribe. This only exists behind a flag\n        // now, as it is *very* slow.\n        context = Object.create(observerOrNext);\n        context.unsubscribe = () => this.unsubscribe();\n        partialObserver = {\n          next: observerOrNext.next && bind(observerOrNext.next, context),\n          error: observerOrNext.error && bind(observerOrNext.error, context),\n          complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n        };\n      } else {\n        // The \"normal\" path. Just use the partial observer directly.\n        partialObserver = observerOrNext;\n      }\n    }\n\n    // Wrap the partial observer to ensure it's a full observer, and\n    // make sure proper error handling is accounted for.\n    this.destination = new ConsumerObserver(partialObserver);\n  }\n}\n\nfunction handleUnhandledError(error: any) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    captureError(error);\n  } else {\n    // Ideal path, we report this as an unhandled error,\n    // which is thrown on a new call stack.\n    reportUnhandledError(error);\n  }\n}\n\n/**\n * An error handler used when no error handler was supplied\n * to the SafeSubscriber -- meaning no error handler was supplied\n * do the `subscribe` call on our observable.\n * @param err The error to handle\n */\nfunction defaultErrorHandler(err: any) {\n  throw err;\n}\n\n/**\n * A handler for notifications that cannot be sent to a stopped subscriber.\n * @param notification The notification being sent\n * @param subscriber The stopped subscriber\n */\nfunction handleStoppedNotification(notification: ObservableNotification<any>, subscriber: Subscriber<any>) {\n  const { onStoppedNotification } = config;\n  onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\n\n/**\n * The observer used as a stub for subscriptions where the user did not\n * pass any arguments to `subscribe`. Comes with the default error handling\n * behavior.\n */\nexport const EMPTY_OBSERVER: Readonly<Observer<any>> & { closed: true } = {\n  closed: true,\n  next: noop,\n  error: defaultErrorHandler,\n  complete: noop,\n};\n", "/**\n * Symbol.observable or a string \"@@observable\". Used for interop\n *\n * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS.\n * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable\n */\nexport const observable: string | symbol = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n", "/**\n * This function takes one parameter and just returns it. Simply put,\n * this is like `<T>(x: T): T => x`.\n *\n * ## Examples\n *\n * This is useful in some cases when using things like `mergeMap`\n *\n * ```ts\n * import { interval, take, map, range, mergeMap, identity } from 'rxjs';\n *\n * const source$ = interval(1000).pipe(take(5));\n *\n * const result$ = source$.pipe(\n *   map(i => range(i)),\n *   mergeMap(identity) // same as mergeMap(x => x)\n * );\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * Or when you want to selectively apply an operator\n *\n * ```ts\n * import { interval, take, identity } from 'rxjs';\n *\n * const shouldLimit = () => Math.random() < 0.5;\n *\n * const source$ = interval(1000);\n *\n * const result$ = source$.pipe(shouldLimit() ? take(5) : identity);\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * @param x Any value that is returned by this function\n * @returns The value passed as the first parameter to this function\n */\nexport function identity<T>(x: T): T {\n  return x;\n}\n", "import { identity } from './identity';\nimport { UnaryFunction } from '../types';\n\nexport function pipe(): typeof identity;\nexport function pipe<T, A>(fn1: UnaryFunction<T, A>): UnaryFunction<T, A>;\nexport function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>): UnaryFunction<T, B>;\nexport function pipe<T, A, B, C>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>): UnaryFunction<T, C>;\nexport function pipe<T, A, B, C, D>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>\n): UnaryFunction<T, D>;\nexport function pipe<T, A, B, C, D, E>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>\n): UnaryFunction<T, E>;\nexport function pipe<T, A, B, C, D, E, F>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>\n): UnaryFunction<T, F>;\nexport function pipe<T, A, B, C, D, E, F, G>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>\n): UnaryFunction<T, G>;\nexport function pipe<T, A, B, C, D, E, F, G, H>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>\n): UnaryFunction<T, H>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>\n): UnaryFunction<T, I>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>,\n  ...fns: UnaryFunction<any, any>[]\n): UnaryFunction<T, unknown>;\n\n/**\n * pipe() can be called on one or more functions, each of which can take one argument (\"UnaryFunction\")\n * and uses it to return a value.\n * It returns a function that takes one argument, passes it to the first UnaryFunction, and then\n * passes the result to the next one, passes that result to the next one, and so on.  \n */\nexport function pipe(...fns: Array<UnaryFunction<any, any>>): UnaryFunction<any, any> {\n  return pipeFromArray(fns);\n}\n\n/** @internal */\nexport function pipeFromArray<T, R>(fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {\n  if (fns.length === 0) {\n    return identity as UnaryFunction<any, any>;\n  }\n\n  if (fns.length === 1) {\n    return fns[0];\n  }\n\n  return function piped(input: T): R {\n    return fns.reduce((prev: any, fn: UnaryFunction<T, R>) => fn(prev), input as any);\n  };\n}\n", "import { Operator } from './Operator';\nimport { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription, Subscription } from './Subscription';\nimport { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A representation of any set of values over any amount of time. This is the most basic building block\n * of RxJS.\n *\n * @class Observable<T>\n */\nexport class Observable<T> implements Subscribable<T> {\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  source: Observable<any> | undefined;\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  operator: Operator<any, T> | undefined;\n\n  /**\n   * @constructor\n   * @param {Function} subscribe the function that is called when the Observable is\n   * initially subscribed to. This function is given a Subscriber, to which new values\n   * can be `next`ed, or an `error` method can be called to raise an error, or\n   * `complete` can be called to notify of a successful completion.\n   */\n  constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic) {\n    if (subscribe) {\n      this._subscribe = subscribe;\n    }\n  }\n\n  // HACK: Since TypeScript inherits static properties too, we have to\n  // fight against TypeScript here so Subject can have a different static create signature\n  /**\n   * Creates a new Observable by calling the Observable constructor\n   * @owner Observable\n   * @method create\n   * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n   * @return {Observable} a new observable\n   * @nocollapse\n   * @deprecated Use `new Observable()` instead. Will be removed in v8.\n   */\n  static create: (...args: any[]) => any = <T>(subscribe?: (subscriber: Subscriber<T>) => TeardownLogic) => {\n    return new Observable<T>(subscribe);\n  };\n\n  /**\n   * Creates a new Observable, with this Observable instance as the source, and the passed\n   * operator defined as the new observable's operator.\n   * @method lift\n   * @param operator the operator defining the operation to take on the observable\n   * @return a new observable with the Operator applied\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * If you have implemented an operator using `lift`, it is recommended that you create an\n   * operator by simply returning `new Observable()` directly. See \"Creating new operators from\n   * scratch\" section here: https://rxjs.dev/guide/operators\n   */\n  lift<R>(operator?: Operator<T, R>): Observable<R> {\n    const observable = new Observable<R>();\n    observable.source = this;\n    observable.operator = operator;\n    return observable;\n  }\n\n  subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;\n  /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\n  subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;\n  /**\n   * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.\n   *\n   * <span class=\"informal\">Use it when you have all these Observables, but still nothing is happening.</span>\n   *\n   * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It\n   * might be for example a function that you passed to Observable's constructor, but most of the time it is\n   * a library implementation, which defines what will be emitted by an Observable, and when it be will emitted. This means\n   * that calling `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often\n   * the thought.\n   *\n   * Apart from starting the execution of an Observable, this method allows you to listen for values\n   * that an Observable emits, as well as for when it completes or errors. You can achieve this in two\n   * of the following ways.\n   *\n   * The first way is creating an object that implements {@link Observer} interface. It should have methods\n   * defined by that interface, but note that it should be just a regular JavaScript object, which you can create\n   * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular, do\n   * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also\n   * that your object does not have to implement all methods. If you find yourself creating a method that doesn't\n   * do anything, you can simply omit it. Note however, if the `error` method is not provided and an error happens,\n   * it will be thrown asynchronously. Errors thrown asynchronously cannot be caught using `try`/`catch`. Instead,\n   * use the {@link onUnhandledError} configuration option or use a runtime handler (like `window.onerror` or\n   * `process.on('error)`) to be notified of unhandled errors. Because of this, it's recommended that you provide\n   * an `error` method to avoid missing thrown errors.\n   *\n   * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods.\n   * This means you can provide three functions as arguments to `subscribe`, where the first function is equivalent\n   * of a `next` method, the second of an `error` method and the third of a `complete` method. Just as in case of an Observer,\n   * if you do not need to listen for something, you can omit a function by passing `undefined` or `null`,\n   * since `subscribe` recognizes these functions by where they were placed in function call. When it comes\n   * to the `error` function, as with an Observer, if not provided, errors emitted by an Observable will be thrown asynchronously.\n   *\n   * You can, however, subscribe with no parameters at all. This may be the case where you're not interested in terminal events\n   * and you also handled emissions internally by using operators (e.g. using `tap`).\n   *\n   * Whichever style of calling `subscribe` you use, in both cases it returns a Subscription object.\n   * This object allows you to call `unsubscribe` on it, which in turn will stop the work that an Observable does and will clean\n   * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback\n   * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable.\n   *\n   * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously.\n   * It is an Observable itself that decides when these functions will be called. For example {@link of}\n   * by default emits all its values synchronously. Always check documentation for how given Observable\n   * will behave when subscribed and if its default behavior can be modified with a `scheduler`.\n   *\n   * #### Examples\n   *\n   * Subscribe with an {@link guide/observer Observer}\n   *\n   * ```ts\n   * import { of } from 'rxjs';\n   *\n   * const sumObserver = {\n   *   sum: 0,\n   *   next(value) {\n   *     console.log('Adding: ' + value);\n   *     this.sum = this.sum + value;\n   *   },\n   *   error() {\n   *     // We actually could just remove this method,\n   *     // since we do not really care about errors right now.\n   *   },\n   *   complete() {\n   *     console.log('Sum equals: ' + this.sum);\n   *   }\n   * };\n   *\n   * of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes.\n   *   .subscribe(sumObserver);\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Subscribe with functions ({@link deprecations/subscribe-arguments deprecated})\n   *\n   * ```ts\n   * import { of } from 'rxjs'\n   *\n   * let sum = 0;\n   *\n   * of(1, 2, 3).subscribe(\n   *   value => {\n   *     console.log('Adding: ' + value);\n   *     sum = sum + value;\n   *   },\n   *   undefined,\n   *   () => console.log('Sum equals: ' + sum)\n   * );\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Cancel a subscription\n   *\n   * ```ts\n   * import { interval } from 'rxjs';\n   *\n   * const subscription = interval(1000).subscribe({\n   *   next(num) {\n   *     console.log(num)\n   *   },\n   *   complete() {\n   *     // Will not be called, even when cancelling subscription.\n   *     console.log('completed!');\n   *   }\n   * });\n   *\n   * setTimeout(() => {\n   *   subscription.unsubscribe();\n   *   console.log('unsubscribed!');\n   * }, 2500);\n   *\n   * // Logs:\n   * // 0 after 1s\n   * // 1 after 2s\n   * // 'unsubscribed!' after 2.5s\n   * ```\n   *\n   * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called,\n   * or the first of three possible handlers, which is the handler for each value emitted from the subscribed\n   * Observable.\n   * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided,\n   * the error will be thrown asynchronously as unhandled.\n   * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion.\n   * @return {Subscription} a subscription reference to the registered handlers\n   * @method subscribe\n   */\n  subscribe(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((error: any) => void) | null,\n    complete?: (() => void) | null\n  ): Subscription {\n    const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n\n    errorContext(() => {\n      const { operator, source } = this;\n      subscriber.add(\n        operator\n          ? // We're dealing with a subscription in the\n            // operator chain to one of our lifted operators.\n            operator.call(subscriber, source)\n          : source\n          ? // If `source` has a value, but `operator` does not, something that\n            // had intimate knowledge of our API, like our `Subject`, must have\n            // set it. We're going to just call `_subscribe` directly.\n            this._subscribe(subscriber)\n          : // In all other cases, we're likely wrapping a user-provided initializer\n            // function, so we need to catch errors and handle them appropriately.\n            this._trySubscribe(subscriber)\n      );\n    });\n\n    return subscriber;\n  }\n\n  /** @internal */\n  protected _trySubscribe(sink: Subscriber<T>): TeardownLogic {\n    try {\n      return this._subscribe(sink);\n    } catch (err) {\n      // We don't need to return anything in this case,\n      // because it's just going to try to `add()` to a subscription\n      // above.\n      sink.error(err);\n    }\n  }\n\n  /**\n   * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with\n   * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * #### Example\n   *\n   * ```ts\n   * import { interval, take } from 'rxjs';\n   *\n   * const source$ = interval(1000).pipe(take(4));\n   *\n   * async function getTotal() {\n   *   let total = 0;\n   *\n   *   await source$.forEach(value => {\n   *     total += value;\n   *     console.log('observable -> ' + value);\n   *   });\n   *\n   *   return total;\n   * }\n   *\n   * getTotal().then(\n   *   total => console.log('Total: ' + total)\n   * );\n   *\n   * // Expected:\n   * // 'observable -> 0'\n   * // 'observable -> 1'\n   * // 'observable -> 2'\n   * // 'observable -> 3'\n   * // 'Total: 6'\n   * ```\n   *\n   * @param next a handler for each value emitted by the observable\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   */\n  forEach(next: (value: T) => void): Promise<void>;\n\n  /**\n   * @param next a handler for each value emitted by the observable\n   * @param promiseCtor a constructor function used to instantiate the Promise\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   * @deprecated Passing a Promise constructor will no longer be available\n   * in upcoming versions of RxJS. This is because it adds weight to the library, for very\n   * little benefit. If you need this functionality, it is recommended that you either\n   * polyfill Promise, or you create an adapter to convert the returned native promise\n   * to whatever promise implementation you wanted. Will be removed in v8.\n   */\n  forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;\n\n  forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise<void> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor<void>((resolve, reject) => {\n      const subscriber = new SafeSubscriber<T>({\n        next: (value) => {\n          try {\n            next(value);\n          } catch (err) {\n            reject(err);\n            subscriber.unsubscribe();\n          }\n        },\n        error: reject,\n        complete: resolve,\n      });\n      this.subscribe(subscriber);\n    }) as Promise<void>;\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<any>): TeardownLogic {\n    return this.source?.subscribe(subscriber);\n  }\n\n  /**\n   * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n   * @method Symbol.observable\n   * @return {Observable} this instance of the observable\n   */\n  [Symbol_observable]() {\n    return this;\n  }\n\n  /* tslint:disable:max-line-length */\n  pipe(): Observable<T>;\n  pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;\n  pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;\n  pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;\n  pipe<A, B, C, D>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>\n  ): Observable<D>;\n  pipe<A, B, C, D, E>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>\n  ): Observable<E>;\n  pipe<A, B, C, D, E, F>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>\n  ): Observable<F>;\n  pipe<A, B, C, D, E, F, G>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>\n  ): Observable<G>;\n  pipe<A, B, C, D, E, F, G, H>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>\n  ): Observable<H>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>\n  ): Observable<I>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>,\n    ...operations: OperatorFunction<any, any>[]\n  ): Observable<unknown>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Used to stitch together functional operators into a chain.\n   * @method pipe\n   * @return {Observable} the Observable result of all of the operators having\n   * been called in the order they were passed in.\n   *\n   * ## Example\n   *\n   * ```ts\n   * import { interval, filter, map, scan } from 'rxjs';\n   *\n   * interval(1000)\n   *   .pipe(\n   *     filter(x => x % 2 === 0),\n   *     map(x => x + x),\n   *     scan((acc, x) => acc + x)\n   *   )\n   *   .subscribe(x => console.log(x));\n   * ```\n   */\n  pipe(...operations: OperatorFunction<any, any>[]): Observable<any> {\n    return pipeFromArray(operations)(this);\n  }\n\n  /* tslint:disable:max-line-length */\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Subscribe to this Observable and get a Promise resolving on\n   * `complete` with the last emission (if any).\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * @method toPromise\n   * @param [promiseCtor] a constructor function used to instantiate\n   * the Promise\n   * @return A Promise that resolves with the last value emit, or\n   * rejects on an error. If there were no emissions, Promise\n   * resolves with undefined.\n   * @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise\n   */\n  toPromise(promiseCtor?: PromiseConstructorLike): Promise<T | undefined> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor((resolve, reject) => {\n      let value: T | undefined;\n      this.subscribe(\n        (x: T) => (value = x),\n        (err: any) => reject(err),\n        () => resolve(value)\n      );\n    }) as Promise<T | undefined>;\n  }\n}\n\n/**\n * Decides between a passed promise constructor from consuming code,\n * A default configured promise constructor, and the native promise\n * constructor and returns it. If nothing can be found, it will throw\n * an error.\n * @param promiseCtor The optional promise constructor to passed by consuming code\n */\nfunction getPromiseCtor(promiseCtor: PromiseConstructorLike | undefined) {\n  return promiseCtor ?? config.Promise ?? Promise;\n}\n\nfunction isObserver<T>(value: any): value is Observer<T> {\n  return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\n\nfunction isSubscriber<T>(value: any): value is Subscriber<T> {\n  return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../types';\nimport { isFunction } from './isFunction';\n\n/**\n * Used to determine if an object is an Observable with a lift function.\n */\nexport function hasLift(source: any): source is { lift: InstanceType<typeof Observable>['lift'] } {\n  return isFunction(source?.lift);\n}\n\n/**\n * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way.\n * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription.\n */\nexport function operate<T, R>(\n  init: (liftedSource: Observable<T>, subscriber: Subscriber<R>) => (() => void) | void\n): OperatorFunction<T, R> {\n  return (source: Observable<T>) => {\n    if (hasLift(source)) {\n      return source.lift(function (this: Subscriber<R>, liftedSource: Observable<T>) {\n        try {\n          return init(liftedSource, this);\n        } catch (err) {\n          this.error(err);\n        }\n      });\n    }\n    throw new TypeError('Unable to lift unknown Observable type');\n  };\n}\n", "import { Subscriber } from '../Subscriber';\n\n/**\n * Creates an instance of an `OperatorSubscriber`.\n * @param destination The downstream subscriber.\n * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n * and send to the `destination` error handler.\n * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n * this handler are sent to the `destination` error handler.\n * @param onFinalize Additional teardown logic here. This will only be called on teardown if the\n * subscriber itself is not already closed. This is called after all other teardown logic is executed.\n */\nexport function createOperatorSubscriber<T>(\n  destination: Subscriber<any>,\n  onNext?: (value: T) => void,\n  onComplete?: () => void,\n  onError?: (err: any) => void,\n  onFinalize?: () => void\n): Subscriber<T> {\n  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\n\n/**\n * A generic helper for allowing operators to be created with a Subscriber and\n * use closures to capture necessary state from the operator function itself.\n */\nexport class OperatorSubscriber<T> extends Subscriber<T> {\n  /**\n   * Creates an instance of an `OperatorSubscriber`.\n   * @param destination The downstream subscriber.\n   * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n   * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n   * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n   * and send to the `destination` error handler.\n   * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n   * this handler are sent to the `destination` error handler.\n   * @param onFinalize Additional finalization logic here. This will only be called on finalization if the\n   * subscriber itself is not already closed. This is called after all other finalization logic is executed.\n   * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe.\n   * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription\n   * to the resulting observable does not actually disconnect from the source if there are active subscriptions\n   * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!)\n   */\n  constructor(\n    destination: Subscriber<any>,\n    onNext?: (value: T) => void,\n    onComplete?: () => void,\n    onError?: (err: any) => void,\n    private onFinalize?: () => void,\n    private shouldUnsubscribe?: () => boolean\n  ) {\n    // It's important - for performance reasons - that all of this class's\n    // members are initialized and that they are always initialized in the same\n    // order. This will ensure that all OperatorSubscriber instances have the\n    // same hidden class in V8. This, in turn, will help keep the number of\n    // hidden classes involved in property accesses within the base class as\n    // low as possible. If the number of hidden classes involved exceeds four,\n    // the property accesses will become megamorphic and performance penalties\n    // will be incurred - i.e. inline caches won't be used.\n    //\n    // The reasons for ensuring all instances have the same hidden class are\n    // further discussed in this blog post from Benedikt Meurer:\n    // https://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/\n    super(destination);\n    this._next = onNext\n      ? function (this: OperatorSubscriber<T>, value: T) {\n          try {\n            onNext(value);\n          } catch (err) {\n            destination.error(err);\n          }\n        }\n      : super._next;\n    this._error = onError\n      ? function (this: OperatorSubscriber<T>, err: any) {\n          try {\n            onError(err);\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._error;\n    this._complete = onComplete\n      ? function (this: OperatorSubscriber<T>) {\n          try {\n            onComplete();\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._complete;\n  }\n\n  unsubscribe() {\n    if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n      const { closed } = this;\n      super.unsubscribe();\n      // Execute additional teardown if we have any and we didn't already do so.\n      !closed && this.onFinalize?.();\n    }\n  }\n}\n", "import { Subscription } from '../Subscription';\n\ninterface AnimationFrameProvider {\n  schedule(callback: FrameRequestCallback): Subscription;\n  requestAnimationFrame: typeof requestAnimationFrame;\n  cancelAnimationFrame: typeof cancelAnimationFrame;\n  delegate:\n    | {\n        requestAnimationFrame: typeof requestAnimationFrame;\n        cancelAnimationFrame: typeof cancelAnimationFrame;\n      }\n    | undefined;\n}\n\nexport const animationFrameProvider: AnimationFrameProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  schedule(callback) {\n    let request = requestAnimationFrame;\n    let cancel: typeof cancelAnimationFrame | undefined = cancelAnimationFrame;\n    const { delegate } = animationFrameProvider;\n    if (delegate) {\n      request = delegate.requestAnimationFrame;\n      cancel = delegate.cancelAnimationFrame;\n    }\n    const handle = request((timestamp) => {\n      // Clear the cancel function. The request has been fulfilled, so\n      // attempting to cancel the request upon unsubscription would be\n      // pointless.\n      cancel = undefined;\n      callback(timestamp);\n    });\n    return new Subscription(() => cancel?.(handle));\n  },\n  requestAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.requestAnimationFrame || requestAnimationFrame)(...args);\n  },\n  cancelAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.cancelAnimationFrame || cancelAnimationFrame)(...args);\n  },\n  delegate: undefined,\n};\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface ObjectUnsubscribedError extends Error {}\n\nexport interface ObjectUnsubscribedErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): ObjectUnsubscribedError;\n}\n\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nexport const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass(\n  (_super) =>\n    function ObjectUnsubscribedErrorImpl(this: any) {\n      _super(this);\n      this.name = 'ObjectUnsubscribedError';\n      this.message = 'object unsubscribed';\n    }\n);\n", "import { Operator } from './Operator';\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { Observer, SubscriptionLike, TeardownLogic } from './types';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A Subject is a special type of Observable that allows values to be\n * multicasted to many Observers. Subjects are like EventEmitters.\n *\n * Every Subject is an Observable and an Observer. You can subscribe to a\n * Subject, and you can call next to feed values as well as error and complete.\n */\nexport class Subject<T> extends Observable<T> implements SubscriptionLike {\n  closed = false;\n\n  private currentObservers: Observer<T>[] | null = null;\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  observers: Observer<T>[] = [];\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  isStopped = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  hasError = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  thrownError: any = null;\n\n  /**\n   * Creates a \"subject\" by basically gluing an observer to an observable.\n   *\n   * @nocollapse\n   * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion.\n   */\n  static create: (...args: any[]) => any = <T>(destination: Observer<T>, source: Observable<T>): AnonymousSubject<T> => {\n    return new AnonymousSubject<T>(destination, source);\n  };\n\n  constructor() {\n    // NOTE: This must be here to obscure Observable's constructor.\n    super();\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  lift<R>(operator: Operator<T, R>): Observable<R> {\n    const subject = new AnonymousSubject(this, this);\n    subject.operator = operator as any;\n    return subject as any;\n  }\n\n  /** @internal */\n  protected _throwIfClosed() {\n    if (this.closed) {\n      throw new ObjectUnsubscribedError();\n    }\n  }\n\n  next(value: T) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        if (!this.currentObservers) {\n          this.currentObservers = Array.from(this.observers);\n        }\n        for (const observer of this.currentObservers) {\n          observer.next(value);\n        }\n      }\n    });\n  }\n\n  error(err: any) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.hasError = this.isStopped = true;\n        this.thrownError = err;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.error(err);\n        }\n      }\n    });\n  }\n\n  complete() {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.isStopped = true;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.complete();\n        }\n      }\n    });\n  }\n\n  unsubscribe() {\n    this.isStopped = this.closed = true;\n    this.observers = this.currentObservers = null!;\n  }\n\n  get observed() {\n    return this.observers?.length > 0;\n  }\n\n  /** @internal */\n  protected _trySubscribe(subscriber: Subscriber<T>): TeardownLogic {\n    this._throwIfClosed();\n    return super._trySubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._checkFinalizedStatuses(subscriber);\n    return this._innerSubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _innerSubscribe(subscriber: Subscriber<any>) {\n    const { hasError, isStopped, observers } = this;\n    if (hasError || isStopped) {\n      return EMPTY_SUBSCRIPTION;\n    }\n    this.currentObservers = null;\n    observers.push(subscriber);\n    return new Subscription(() => {\n      this.currentObservers = null;\n      arrRemove(observers, subscriber);\n    });\n  }\n\n  /** @internal */\n  protected _checkFinalizedStatuses(subscriber: Subscriber<any>) {\n    const { hasError, thrownError, isStopped } = this;\n    if (hasError) {\n      subscriber.error(thrownError);\n    } else if (isStopped) {\n      subscriber.complete();\n    }\n  }\n\n  /**\n   * Creates a new Observable with this Subject as the source. You can do this\n   * to create custom Observer-side logic of the Subject and conceal it from\n   * code that uses the Observable.\n   * @return {Observable} Observable that the Subject casts to\n   */\n  asObservable(): Observable<T> {\n    const observable: any = new Observable<T>();\n    observable.source = this;\n    return observable;\n  }\n}\n\n/**\n * @class AnonymousSubject<T>\n */\nexport class AnonymousSubject<T> extends Subject<T> {\n  constructor(\n    /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n    public destination?: Observer<T>,\n    source?: Observable<T>\n  ) {\n    super();\n    this.source = source;\n  }\n\n  next(value: T) {\n    this.destination?.next?.(value);\n  }\n\n  error(err: any) {\n    this.destination?.error?.(err);\n  }\n\n  complete() {\n    this.destination?.complete?.();\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    return this.source?.subscribe(subscriber) ?? EMPTY_SUBSCRIPTION;\n  }\n}\n", "import { TimestampProvider } from '../types';\n\ninterface DateTimestampProvider extends TimestampProvider {\n  delegate: TimestampProvider | undefined;\n}\n\nexport const dateTimestampProvider: DateTimestampProvider = {\n  now() {\n    // Use the variable rather than `this` so that the function can be called\n    // without being bound to the provider.\n    return (dateTimestampProvider.delegate || Date).now();\n  },\n  delegate: undefined,\n};\n", "import { Subject } from './Subject';\nimport { TimestampProvider } from './types';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * A variant of {@link Subject} that \"replays\" old values to new subscribers by emitting them when they first subscribe.\n *\n * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`,\n * `ReplaySubject` \"observes\" values by having them passed to its `next` method. When it observes a value, it will store that\n * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor.\n *\n * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in\n * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will\n * error if it has observed an error.\n *\n * There are two main configuration items to be concerned with:\n *\n * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite.\n * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer.\n *\n * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values\n * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`.\n *\n * ### Differences with BehaviorSubject\n *\n * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions:\n *\n * 1. `BehaviorSubject` comes \"primed\" with a single value upon construction.\n * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n * @see {@link shareReplay}\n */\nexport class ReplaySubject<T> extends Subject<T> {\n  private _buffer: (T | number)[] = [];\n  private _infiniteTimeWindow = true;\n\n  /**\n   * @param bufferSize The size of the buffer to replay on subscription\n   * @param windowTime The amount of time the buffered items will stay buffered\n   * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to\n   * calculate the amount of time something has been buffered.\n   */\n  constructor(\n    private _bufferSize = Infinity,\n    private _windowTime = Infinity,\n    private _timestampProvider: TimestampProvider = dateTimestampProvider\n  ) {\n    super();\n    this._infiniteTimeWindow = _windowTime === Infinity;\n    this._bufferSize = Math.max(1, _bufferSize);\n    this._windowTime = Math.max(1, _windowTime);\n  }\n\n  next(value: T): void {\n    const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this;\n    if (!isStopped) {\n      _buffer.push(value);\n      !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n    }\n    this._trimBuffer();\n    super.next(value);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._trimBuffer();\n\n    const subscription = this._innerSubscribe(subscriber);\n\n    const { _infiniteTimeWindow, _buffer } = this;\n    // We use a copy here, so reentrant code does not mutate our array while we're\n    // emitting it to a new subscriber.\n    const copy = _buffer.slice();\n    for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n      subscriber.next(copy[i] as T);\n    }\n\n    this._checkFinalizedStatuses(subscriber);\n\n    return subscription;\n  }\n\n  private _trimBuffer() {\n    const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this;\n    // If we don't have an infinite buffer size, and we're over the length,\n    // use splice to truncate the old buffer values off. Note that we have to\n    // double the size for instances where we're not using an infinite time window\n    // because we're storing the values and the timestamps in the same array.\n    const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n    _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n\n    // Now, if we're not in an infinite time window, remove all values where the time is\n    // older than what is allowed.\n    if (!_infiniteTimeWindow) {\n      const now = _timestampProvider.now();\n      let last = 0;\n      // Search the array for the first timestamp that isn't expired and\n      // truncate the buffer up to that point.\n      for (let i = 1; i < _buffer.length && (_buffer[i] as number) <= now; i += 2) {\n        last = i;\n      }\n      last && _buffer.splice(0, last + 1);\n    }\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\nimport { SchedulerAction } from '../types';\n\n/**\n * A unit of work to be executed in a `scheduler`. An action is typically\n * created from within a {@link SchedulerLike} and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action<T> extends Subscription {\n *   new (scheduler: Scheduler, work: (state?: T) => void);\n *   schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action<T>\n */\nexport class Action<T> extends Subscription {\n  constructor(scheduler: Scheduler, work: (this: SchedulerAction<T>, state?: T) => void) {\n    super();\n  }\n  /**\n   * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed\n   * some context object, `state`. May happen at some point in the future,\n   * according to the `delay` parameter, if specified.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler.\n   * @return {void}\n   */\n  public schedule(state?: T, delay: number = 0): Subscription {\n    return this;\n  }\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearIntervalFunction = (handle: TimerHandle) => void;\n\ninterface IntervalProvider {\n  setInterval: SetIntervalFunction;\n  clearInterval: ClearIntervalFunction;\n  delegate:\n    | {\n        setInterval: SetIntervalFunction;\n        clearInterval: ClearIntervalFunction;\n      }\n    | undefined;\n}\n\nexport const intervalProvider: IntervalProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setInterval(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = intervalProvider;\n    if (delegate?.setInterval) {\n      return delegate.setInterval(handler, timeout, ...args);\n    }\n    return setInterval(handler, timeout, ...args);\n  },\n  clearInterval(handle) {\n    const { delegate } = intervalProvider;\n    return (delegate?.clearInterval || clearInterval)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { Action } from './Action';\nimport { SchedulerAction } from '../types';\nimport { Subscription } from '../Subscription';\nimport { AsyncScheduler } from './AsyncScheduler';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncAction<T> extends Action<T> {\n  public id: TimerHandle | undefined;\n  public state?: T;\n  // @ts-ignore: Property has no initializer and is not definitely assigned\n  public delay: number;\n  protected pending: boolean = false;\n\n  constructor(protected scheduler: AsyncScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  public schedule(state?: T, delay: number = 0): Subscription {\n    if (this.closed) {\n      return this;\n    }\n\n    // Always replace the current state with the new state.\n    this.state = state;\n\n    const id = this.id;\n    const scheduler = this.scheduler;\n\n    //\n    // Important implementation note:\n    //\n    // Actions only execute once by default, unless rescheduled from within the\n    // scheduled callback. This allows us to implement single and repeat\n    // actions via the same code path, without adding API surface area, as well\n    // as mimic traditional recursion but across asynchronous boundaries.\n    //\n    // However, JS runtimes and timers distinguish between intervals achieved by\n    // serial `setTimeout` calls vs. a single `setInterval` call. An interval of\n    // serial `setTimeout` calls can be individually delayed, which delays\n    // scheduling the next `setTimeout`, and so on. `setInterval` attempts to\n    // guarantee the interval callback will be invoked more precisely to the\n    // interval period, regardless of load.\n    //\n    // Therefore, we use `setInterval` to schedule single and repeat actions.\n    // If the action reschedules itself with the same delay, the interval is not\n    // canceled. If the action doesn't reschedule, or reschedules with a\n    // different delay, the interval will be canceled after scheduled callback\n    // execution.\n    //\n    if (id != null) {\n      this.id = this.recycleAsyncId(scheduler, id, delay);\n    }\n\n    // Set the pending flag indicating that this action has been scheduled, or\n    // has recursively rescheduled itself.\n    this.pending = true;\n\n    this.delay = delay;\n    // If this action has already an async Id, don't request a new one.\n    this.id = this.id ?? this.requestAsyncId(scheduler, this.id, delay);\n\n    return this;\n  }\n\n  protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay: number = 0): TimerHandle {\n    return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n  }\n\n  protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay: number | null = 0): TimerHandle | undefined {\n    // If this action is rescheduled with the same delay time, don't clear the interval id.\n    if (delay != null && this.delay === delay && this.pending === false) {\n      return id;\n    }\n    // Otherwise, if the action's delay time is different from the current delay,\n    // or the action has been rescheduled before it's executed, clear the interval id\n    if (id != null) {\n      intervalProvider.clearInterval(id);\n    }\n\n    return undefined;\n  }\n\n  /**\n   * Immediately executes this action and the `work` it contains.\n   * @return {any}\n   */\n  public execute(state: T, delay: number): any {\n    if (this.closed) {\n      return new Error('executing a cancelled action');\n    }\n\n    this.pending = false;\n    const error = this._execute(state, delay);\n    if (error) {\n      return error;\n    } else if (this.pending === false && this.id != null) {\n      // Dequeue if the action didn't reschedule itself. Don't call\n      // unsubscribe(), because the action could reschedule later.\n      // For example:\n      // ```\n      // scheduler.schedule(function doWork(counter) {\n      //   /* ... I'm a busy worker bee ... */\n      //   var originalAction = this;\n      //   /* wait 100ms before rescheduling the action */\n      //   setTimeout(function () {\n      //     originalAction.schedule(counter + 1);\n      //   }, 100);\n      // }, 1000);\n      // ```\n      this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n    }\n  }\n\n  protected _execute(state: T, _delay: number): any {\n    let errored: boolean = false;\n    let errorValue: any;\n    try {\n      this.work(state);\n    } catch (e) {\n      errored = true;\n      // HACK: Since code elsewhere is relying on the \"truthiness\" of the\n      // return here, we can't have it return \"\" or 0 or false.\n      // TODO: Clean this up when we refactor schedulers mid-version-8 or so.\n      errorValue = e ? e : new Error('Scheduled action threw falsy error');\n    }\n    if (errored) {\n      this.unsubscribe();\n      return errorValue;\n    }\n  }\n\n  unsubscribe() {\n    if (!this.closed) {\n      const { id, scheduler } = this;\n      const { actions } = scheduler;\n\n      this.work = this.state = this.scheduler = null!;\n      this.pending = false;\n\n      arrRemove(actions, this);\n      if (id != null) {\n        this.id = this.recycleAsyncId(scheduler, id, null);\n      }\n\n      this.delay = null!;\n      super.unsubscribe();\n    }\n  }\n}\n", "import { Action } from './scheduler/Action';\nimport { Subscription } from './Subscription';\nimport { SchedulerLike, SchedulerAction } from './types';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an `Action`.\n *\n * ```ts\n * class Scheduler {\n *   now(): number;\n *   schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n * @deprecated Scheduler is an internal implementation detail of RxJS, and\n * should not be used directly. Rather, create your own class and implement\n * {@link SchedulerLike}. Will be made internal in v8.\n */\nexport class Scheduler implements SchedulerLike {\n  public static now: () => number = dateTimestampProvider.now;\n\n  constructor(private schedulerActionCtor: typeof Action, now: () => number = Scheduler.now) {\n    this.now = now;\n  }\n\n  /**\n   * A getter method that returns a number representing the current time\n   * (at the time this function was called) according to the scheduler's own\n   * internal clock.\n   * @return {number} A number that represents the current time. May or may not\n   * have a relation to wall-clock time. May or may not refer to a time unit\n   * (e.g. milliseconds).\n   */\n  public now: () => number;\n\n  /**\n   * Schedules a function, `work`, for execution. May happen at some point in\n   * the future, according to the `delay` parameter, if specified. May be passed\n   * some context object, `state`, which will be passed to the `work` function.\n   *\n   * The given arguments will be processed an stored as an Action object in a\n   * queue of actions.\n   *\n   * @param {function(state: ?T): ?Subscription} work A function representing a\n   * task, or some unit of work to be executed by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler itself.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @return {Subscription} A subscription in order to be able to unsubscribe\n   * the scheduled work.\n   */\n  public schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay: number = 0, state?: T): Subscription {\n    return new this.schedulerActionCtor<T>(this, work).schedule(state, delay);\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Action } from './Action';\nimport { AsyncAction } from './AsyncAction';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncScheduler extends Scheduler {\n  public actions: Array<AsyncAction<any>> = [];\n  /**\n   * A flag to indicate whether the Scheduler is currently executing a batch of\n   * queued actions.\n   * @type {boolean}\n   * @internal\n   */\n  public _active: boolean = false;\n  /**\n   * An internal ID used to track the latest asynchronous task such as those\n   * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n   * others.\n   * @type {any}\n   * @internal\n   */\n  public _scheduled: TimerHandle | undefined;\n\n  constructor(SchedulerAction: typeof Action, now: () => number = Scheduler.now) {\n    super(SchedulerAction, now);\n  }\n\n  public flush(action: AsyncAction<any>): void {\n    const { actions } = this;\n\n    if (this._active) {\n      actions.push(action);\n      return;\n    }\n\n    let error: any;\n    this._active = true;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions.shift()!)); // exhaust the scheduler queue\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions.shift()!)) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\n/**\n *\n * Async Scheduler\n *\n * <span class=\"informal\">Schedule task as if you used setTimeout(task, duration)</span>\n *\n * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript\n * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating\n * in intervals.\n *\n * If you just want to \"defer\" task, that is to perform it right after currently\n * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),\n * better choice will be the {@link asapScheduler} scheduler.\n *\n * ## Examples\n * Use async scheduler to delay task\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * const task = () => console.log('it works!');\n *\n * asyncScheduler.schedule(task, 2000);\n *\n * // After 2 seconds logs:\n * // \"it works!\"\n * ```\n *\n * Use async scheduler to repeat task in intervals\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * function task(state) {\n *   console.log(state);\n *   this.schedule(state + 1, 1000); // `this` references currently executing Action,\n *                                   // which we reschedule with new state and delay\n * }\n *\n * asyncScheduler.schedule(task, 3000, 0);\n *\n * // Logs:\n * // 0 after 3s\n * // 1 after 4s\n * // 2 after 5s\n * // 3 after 6s\n * ```\n */\n\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\n\n/**\n * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8.\n */\nexport const async = asyncScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nimport { SchedulerAction } from '../types';\nimport { animationFrameProvider } from './animationFrameProvider';\nimport { TimerHandle } from './timerHandle';\n\nexport class AnimationFrameAction<T> extends AsyncAction<T> {\n  constructor(protected scheduler: AnimationFrameScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n    // If delay is greater than 0, request as an async action.\n    if (delay !== null && delay > 0) {\n      return super.requestAsyncId(scheduler, id, delay);\n    }\n    // Push the action to the end of the scheduler queue.\n    scheduler.actions.push(this);\n    // If an animation frame has already been requested, don't request another\n    // one. If an animation frame hasn't been requested yet, request one. Return\n    // the current animation frame request id.\n    return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n  }\n\n  protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined {\n    // If delay exists and is greater than 0, or if the delay is null (the\n    // action wasn't rescheduled) but was originally scheduled as an async\n    // action, then recycle as an async action.\n    if (delay != null ? delay > 0 : this.delay > 0) {\n      return super.recycleAsyncId(scheduler, id, delay);\n    }\n    // If the scheduler queue has no remaining actions with the same async id,\n    // cancel the requested animation frame and set the scheduled flag to\n    // undefined so the next AnimationFrameAction will request its own.\n    const { actions } = scheduler;\n    if (id != null && actions[actions.length - 1]?.id !== id) {\n      animationFrameProvider.cancelAnimationFrame(id as number);\n      scheduler._scheduled = undefined;\n    }\n    // Return undefined so the action knows to request a new async id if it's rescheduled.\n    return undefined;\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AnimationFrameScheduler extends AsyncScheduler {\n  public flush(action?: AsyncAction<any>): void {\n    this._active = true;\n    // The async id that effects a call to flush is stored in _scheduled.\n    // Before executing an action, it's necessary to check the action's async\n    // id to determine whether it's supposed to be executed in the current\n    // flush.\n    // Previous implementations of this method used a count to determine this,\n    // but that was unsound, as actions that are unsubscribed - i.e. cancelled -\n    // are removed from the actions array and that can shift actions that are\n    // scheduled to be executed in a subsequent flush into positions at which\n    // they are executed within the current flush.\n    const flushId = this._scheduled;\n    this._scheduled = undefined;\n\n    const { actions } = this;\n    let error: any;\n    action = action || actions.shift()!;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions[0]) && action.id === flushId && actions.shift());\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n *\n * Animation Frame Scheduler\n *\n * <span class=\"informal\">Perform task when `window.requestAnimationFrame` would fire</span>\n *\n * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler\n * behaviour.\n *\n * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.\n * It makes sure scheduled task will happen just before next browser content repaint,\n * thus performing animations as efficiently as possible.\n *\n * ## Example\n * Schedule div height animation\n * ```ts\n * // html: <div style=\"background: #0ff;\"></div>\n * import { animationFrameScheduler } from 'rxjs';\n *\n * const div = document.querySelector('div');\n *\n * animationFrameScheduler.schedule(function(height) {\n *   div.style.height = height + \"px\";\n *\n *   this.schedule(height + 1);  // `this` references currently executing Action,\n *                               // which we reschedule with new state\n * }, 0, 0);\n *\n * // You will see a div element growing in height\n * ```\n */\n\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\n\n/**\n * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8.\n */\nexport const animationFrame = animationFrameScheduler;\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\n/**\n * A simple Observable that emits no items to the Observer and immediately\n * emits a complete notification.\n *\n * <span class=\"informal\">Just emits 'complete', and nothing else.</span>\n *\n * ![](empty.png)\n *\n * A simple Observable that only emits the complete notification. It can be used\n * for composing with other Observables, such as in a {@link mergeMap}.\n *\n * ## Examples\n *\n * Log complete notification\n *\n * ```ts\n * import { EMPTY } from 'rxjs';\n *\n * EMPTY.subscribe({\n *   next: () => console.log('Next'),\n *   complete: () => console.log('Complete!')\n * });\n *\n * // Outputs\n * // Complete!\n * ```\n *\n * Emit the number 7, then complete\n *\n * ```ts\n * import { EMPTY, startWith } from 'rxjs';\n *\n * const result = EMPTY.pipe(startWith(7));\n * result.subscribe(x => console.log(x));\n *\n * // Outputs\n * // 7\n * ```\n *\n * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`\n *\n * ```ts\n * import { interval, mergeMap, of, EMPTY } from 'rxjs';\n *\n * const interval$ = interval(1000);\n * const result = interval$.pipe(\n *   mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following to the console:\n * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)\n * // x will occur every 1000ms\n * // if x % 2 is equal to 1, print a, b, c (each on its own)\n * // if x % 2 is not equal to 1, nothing will be output\n * ```\n *\n * @see {@link Observable}\n * @see {@link NEVER}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const EMPTY = new Observable<never>((subscriber) => subscriber.complete());\n\n/**\n * @param scheduler A {@link SchedulerLike} to use for scheduling\n * the emission of the complete notification.\n * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.\n */\nexport function empty(scheduler?: SchedulerLike) {\n  return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\n\nfunction emptyScheduled(scheduler: SchedulerLike) {\n  return new Observable<never>((subscriber) => scheduler.schedule(() => subscriber.complete()));\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport function isScheduler(value: any): value is SchedulerLike {\n  return value && isFunction(value.schedule);\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\n\nfunction last<T>(arr: T[]): T | undefined {\n  return arr[arr.length - 1];\n}\n\nexport function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined {\n  return isFunction(last(args)) ? args.pop() : undefined;\n}\n\nexport function popScheduler(args: any[]): SchedulerLike | undefined {\n  return isScheduler(last(args)) ? args.pop() : undefined;\n}\n\nexport function popNumber(args: any[], defaultValue: number): number {\n  return typeof last(args) === 'number' ? args.pop()! : defaultValue;\n}\n", "export const isArrayLike = (<T>(x: any): x is ArrayLike<T> => x && typeof x.length === 'number' && typeof x !== 'function');", "import { isFunction } from \"./isFunction\";\n\n/**\n * Tests to see if the object is \"thennable\".\n * @param value the object to test\n */\nexport function isPromise(value: any): value is PromiseLike<any> {\n  return isFunction(value?.then);\n}\n", "import { InteropObservable } from '../types';\nimport { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being Observable (but not necessary an Rx Observable) */\nexport function isInteropObservable(input: any): input is InteropObservable<any> {\n  return isFunction(input[Symbol_observable]);\n}\n", "import { isFunction } from './isFunction';\n\nexport function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> {\n  return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]);\n}\n", "/**\n * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`.\n * @param input The object that was passed.\n */\nexport function createInvalidObservableTypeError(input: any) {\n  // TODO: We should create error codes that can be looked up, so this can be less verbose.\n  return new TypeError(\n    `You provided ${\n      input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`\n    } where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`\n  );\n}\n", "export function getSymbolIterator(): symbol {\n  if (typeof Symbol !== 'function' || !Symbol.iterator) {\n    return '@@iterator' as any;\n  }\n\n  return Symbol.iterator;\n}\n\nexport const iterator = getSymbolIterator();\n", "import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being an Iterable */\nexport function isIterable(input: any): input is Iterable<any> {\n  return isFunction(input?.[Symbol_iterator]);\n}\n", "import { ReadableStreamLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport async function* readableStreamLikeToAsyncGenerator<T>(readableStream: ReadableStreamLike<T>): AsyncGenerator<T> {\n  const reader = readableStream.getReader();\n  try {\n    while (true) {\n      const { value, done } = await reader.read();\n      if (done) {\n        return;\n      }\n      yield value!;\n    }\n  } finally {\n    reader.releaseLock();\n  }\n}\n\nexport function isReadableStreamLike<T>(obj: any): obj is ReadableStreamLike<T> {\n  // We don't want to use instanceof checks because they would return\n  // false for instances from another Realm, like an <iframe>.\n  return isFunction(obj?.getReader);\n}\n", "import { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { Subscriber } from '../Subscriber';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\n\nexport function innerFrom<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\nexport function innerFrom<T>(input: ObservableInput<T>): Observable<T> {\n  if (input instanceof Observable) {\n    return input;\n  }\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return fromInteropObservable(input);\n    }\n    if (isArrayLike(input)) {\n      return fromArrayLike(input);\n    }\n    if (isPromise(input)) {\n      return fromPromise(input);\n    }\n    if (isAsyncIterable(input)) {\n      return fromAsyncIterable(input);\n    }\n    if (isIterable(input)) {\n      return fromIterable(input);\n    }\n    if (isReadableStreamLike(input)) {\n      return fromReadableStreamLike(input);\n    }\n  }\n\n  throw createInvalidObservableTypeError(input);\n}\n\n/**\n * Creates an RxJS Observable from an object that implements `Symbol.observable`.\n * @param obj An object that properly implements `Symbol.observable`.\n */\nexport function fromInteropObservable<T>(obj: any) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    const obs = obj[Symbol_observable]();\n    if (isFunction(obs.subscribe)) {\n      return obs.subscribe(subscriber);\n    }\n    // Should be caught by observable subscribe function error handling.\n    throw new TypeError('Provided object does not correctly implement Symbol.observable');\n  });\n}\n\n/**\n * Synchronously emits the values of an array like and completes.\n * This is exported because there are creation functions and operators that need to\n * make direct use of the same logic, and there's no reason to make them run through\n * `from` conditionals because we *know* they're dealing with an array.\n * @param array The array to emit values from\n */\nexport function fromArrayLike<T>(array: ArrayLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    // Loop over the array and emit each value. Note two things here:\n    // 1. We're making sure that the subscriber is not closed on each loop.\n    //    This is so we don't continue looping over a very large array after\n    //    something like a `take`, `takeWhile`, or other synchronous unsubscription\n    //    has already unsubscribed.\n    // 2. In this form, reentrant code can alter that array we're looping over.\n    //    This is a known issue, but considered an edge case. The alternative would\n    //    be to copy the array before executing the loop, but this has\n    //    performance implications.\n    for (let i = 0; i < array.length && !subscriber.closed; i++) {\n      subscriber.next(array[i]);\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromPromise<T>(promise: PromiseLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    promise\n      .then(\n        (value) => {\n          if (!subscriber.closed) {\n            subscriber.next(value);\n            subscriber.complete();\n          }\n        },\n        (err: any) => subscriber.error(err)\n      )\n      .then(null, reportUnhandledError);\n  });\n}\n\nexport function fromIterable<T>(iterable: Iterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    for (const value of iterable) {\n      subscriber.next(value);\n      if (subscriber.closed) {\n        return;\n      }\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromAsyncIterable<T>(asyncIterable: AsyncIterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n  });\n}\n\nexport function fromReadableStreamLike<T>(readableStream: ReadableStreamLike<T>) {\n  return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\n\nasync function process<T>(asyncIterable: AsyncIterable<T>, subscriber: Subscriber<T>) {\n  for await (const value of asyncIterable) {\n    subscriber.next(value);\n    // A side-effect may have closed our subscriber,\n    // check before the next iteration.\n    if (subscriber.closed) {\n      return;\n    }\n  }\n  subscriber.complete();\n}\n", "import { Subscription } from '../Subscription';\nimport { SchedulerAction, SchedulerLike } from '../types';\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay: number,\n  repeat: true\n): void;\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay?: number,\n  repeat?: false\n): Subscription;\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay = 0,\n  repeat = false\n): Subscription | void {\n  const scheduleSubscription = scheduler.schedule(function (this: SchedulerAction<any>) {\n    work();\n    if (repeat) {\n      parentSubscription.add(this.schedule(null, delay));\n    } else {\n      this.unsubscribe();\n    }\n  }, delay);\n\n  parentSubscription.add(scheduleSubscription);\n\n  if (!repeat) {\n    // Because user-land scheduler implementations are unlikely to properly reuse\n    // Actions for repeat scheduling, we can't trust that the returned subscription\n    // will control repeat subscription scenarios. So we're trying to avoid using them\n    // incorrectly within this library.\n    return scheduleSubscription;\n  }\n}\n", "/** @prettier */\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Re-emits all notifications from source Observable with specified scheduler.\n *\n * <span class=\"informal\">Ensure a specific scheduler is used, from outside of an Observable.</span>\n *\n * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule\n * notifications emitted by the source Observable. It might be useful, if you do not have control over\n * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.\n *\n * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,\n * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal\n * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits\n * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.\n * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split\n * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source\n * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a\n * little bit more, to ensure that they are emitted at expected moments.\n *\n * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications\n * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`\n * will delay all notifications - including error notifications - while `delay` will pass through error\n * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator\n * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used\n * for notification emissions in general.\n *\n * ## Example\n *\n * Ensure values in subscribe are called just before browser repaint\n *\n * ```ts\n * import { interval, observeOn, animationFrameScheduler } from 'rxjs';\n *\n * const someDiv = document.createElement('div');\n * someDiv.style.cssText = 'width: 200px;background: #09c';\n * document.body.appendChild(someDiv);\n * const intervals = interval(10);      // Intervals are scheduled\n *                                      // with async scheduler by default...\n * intervals.pipe(\n *   observeOn(animationFrameScheduler) // ...but we will observe on animationFrame\n * )                                    // scheduler to ensure smooth animation.\n * .subscribe(val => {\n *   someDiv.style.height = val + 'px';\n * });\n * ```\n *\n * @see {@link delay}\n *\n * @param scheduler Scheduler that will be used to reschedule notifications from source Observable.\n * @param delay Number of milliseconds that states with what delay every notification should be rescheduled.\n * @return A function that returns an Observable that emits the same\n * notifications as the source Observable, but with provided scheduler.\n */\nexport function observeOn<T>(scheduler: SchedulerLike, delay = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay),\n        () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay),\n        (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}.\n *\n * With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to.\n *\n * Schedulers control the speed and order of emissions to observers from an Observable stream.\n *\n * ![](subscribeOn.png)\n *\n * ## Example\n *\n * Given the following code:\n *\n * ```ts\n * import { of, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3);\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 1\n * // 2\n * // 3\n * // 4\n * // 5\n * // 6\n * ```\n *\n * Both Observable `a` and `b` will emit their values directly and synchronously once they are subscribed to.\n *\n * If we instead use the `subscribeOn` operator declaring that we want to use the {@link asyncScheduler} for values emitted by Observable `a`:\n *\n * ```ts\n * import { of, subscribeOn, asyncScheduler, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3).pipe(subscribeOn(asyncScheduler));\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 4\n * // 5\n * // 6\n * // 1\n * // 2\n * // 3\n * ```\n *\n * The reason for this is that Observable `b` emits its values directly and synchronously like before\n * but the emissions from `a` are scheduled on the event loop because we are now using the {@link asyncScheduler} for that specific Observable.\n *\n * @param scheduler The {@link SchedulerLike} to perform subscription actions on.\n * @param delay A delay to pass to the scheduler to delay subscriptions\n * @return A function that returns an Observable modified so that its\n * subscriptions happen on the specified {@link SchedulerLike}.\n */\nexport function subscribeOn<T>(scheduler: SchedulerLike, delay: number = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { InteropObservable, SchedulerLike } from '../types';\n\nexport function scheduleObservable<T>(input: InteropObservable<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { SchedulerLike } from '../types';\n\nexport function schedulePromise<T>(input: PromiseLike<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\nexport function scheduleArray<T>(input: ArrayLike<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    // The current array index.\n    let i = 0;\n    // Start iterating over the array like on a schedule.\n    return scheduler.schedule(function () {\n      if (i === input.length) {\n        // If we have hit the end of the array like in the\n        // previous job, we can complete.\n        subscriber.complete();\n      } else {\n        // Otherwise let's next the value at the current index,\n        // then increment our index.\n        subscriber.next(input[i++]);\n        // If the last emission didn't cause us to close the subscriber\n        // (via take or some side effect), reschedule the job and we'll\n        // make another pass.\n        if (!subscriber.closed) {\n          this.schedule();\n        }\n      }\n    });\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\n\n/**\n * Used in {@link scheduled} to create an observable from an Iterable.\n * @param input The iterable to create an observable from\n * @param scheduler The scheduler to use\n */\nexport function scheduleIterable<T>(input: Iterable<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    let iterator: Iterator<T, T>;\n\n    // Schedule the initial creation of the iterator from\n    // the iterable. This is so the code in the iterable is\n    // not called until the scheduled job fires.\n    executeSchedule(subscriber, scheduler, () => {\n      // Create the iterator.\n      iterator = (input as any)[Symbol_iterator]();\n\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          let value: T;\n          let done: boolean | undefined;\n          try {\n            // Pull the value out of the iterator\n            ({ value, done } = iterator.next());\n          } catch (err) {\n            // We got an error while pulling from the iterator\n            subscriber.error(err);\n            return;\n          }\n\n          if (done) {\n            // If it is \"done\" we just complete. This mimics the\n            // behavior of JavaScript's `for..of` consumption of\n            // iterables, which will not emit the value from an iterator\n            // result of `{ done: true: value: 'here' }`.\n            subscriber.complete();\n          } else {\n            // The iterable is not done, emit the value.\n            subscriber.next(value);\n          }\n        },\n        0,\n        true\n      );\n    });\n\n    // During finalization, if we see this iterator has a `return` method,\n    // then we know it is a Generator, and not just an Iterator. So we call\n    // the `return()` function. This will ensure that any `finally { }` blocks\n    // inside of the generator we can hit will be hit properly.\n    return () => isFunction(iterator?.return) && iterator.return();\n  });\n}\n", "import { SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\n\nexport function scheduleAsyncIterable<T>(input: AsyncIterable<T>, scheduler: SchedulerLike) {\n  if (!input) {\n    throw new Error('Iterable cannot be null');\n  }\n  return new Observable<T>((subscriber) => {\n    executeSchedule(subscriber, scheduler, () => {\n      const iterator = input[Symbol.asyncIterator]();\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          iterator.next().then((result) => {\n            if (result.done) {\n              // This will remove the subscriptions from\n              // the parent subscription.\n              subscriber.complete();\n            } else {\n              subscriber.next(result.value);\n            }\n          });\n        },\n        0,\n        true\n      );\n    });\n  });\n}\n", "import { SchedulerLike, ReadableStreamLike } from '../types';\nimport { Observable } from '../Observable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\n\nexport function scheduleReadableStreamLike<T>(input: ReadableStreamLike<T>, scheduler: SchedulerLike): Observable<T> {\n  return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n", "import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\n\n/**\n * Converts from a common {@link ObservableInput} type to an observable where subscription and emissions\n * are scheduled on the provided scheduler.\n *\n * @see {@link from}\n * @see {@link of}\n *\n * @param input The observable, array, promise, iterable, etc you would like to schedule\n * @param scheduler The scheduler to use to schedule the subscription and emissions from\n * the returned observable.\n */\nexport function scheduled<T>(input: ObservableInput<T>, scheduler: SchedulerLike): Observable<T> {\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return scheduleObservable(input, scheduler);\n    }\n    if (isArrayLike(input)) {\n      return scheduleArray(input, scheduler);\n    }\n    if (isPromise(input)) {\n      return schedulePromise(input, scheduler);\n    }\n    if (isAsyncIterable(input)) {\n      return scheduleAsyncIterable(input, scheduler);\n    }\n    if (isIterable(input)) {\n      return scheduleIterable(input, scheduler);\n    }\n    if (isReadableStreamLike(input)) {\n      return scheduleReadableStreamLike(input, scheduler);\n    }\n  }\n  throw createInvalidObservableTypeError(input);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf } from '../types';\nimport { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\n\nexport function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function from<O extends ObservableInput<any>>(input: O, scheduler: SchedulerLike | undefined): Observable<ObservedValueOf<O>>;\n\n/**\n * Creates an Observable from an Array, an array-like object, a Promise, an iterable object, or an Observable-like object.\n *\n * <span class=\"informal\">Converts almost anything to an Observable.</span>\n *\n * ![](from.png)\n *\n * `from` converts various other objects and data types into Observables. It also converts a Promise, an array-like, or an\n * <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable\" target=\"_blank\">iterable</a>\n * object into an Observable that emits the items in that promise, array, or iterable. A String, in this context, is treated\n * as an array of characters. Observable-like objects (contains a function named with the ES2015 Symbol for Observable) can also be\n * converted through this operator.\n *\n * ## Examples\n *\n * Converts an array to an Observable\n *\n * ```ts\n * import { from } from 'rxjs';\n *\n * const array = [10, 20, 30];\n * const result = from(array);\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 10\n * // 20\n * // 30\n * ```\n *\n * Convert an infinite iterable (from a generator) to an Observable\n *\n * ```ts\n * import { from, take } from 'rxjs';\n *\n * function* generateDoubles(seed) {\n *    let i = seed;\n *    while (true) {\n *      yield i;\n *      i = 2 * i; // double it\n *    }\n * }\n *\n * const iterator = generateDoubles(3);\n * const result = from(iterator).pipe(take(10));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 3\n * // 6\n * // 12\n * // 24\n * // 48\n * // 96\n * // 192\n * // 384\n * // 768\n * // 1536\n * ```\n *\n * With `asyncScheduler`\n *\n * ```ts\n * import { from, asyncScheduler } from 'rxjs';\n *\n * console.log('start');\n *\n * const array = [10, 20, 30];\n * const result = from(array, asyncScheduler);\n *\n * result.subscribe(x => console.log(x));\n *\n * console.log('end');\n *\n * // Logs:\n * // 'start'\n * // 'end'\n * // 10\n * // 20\n * // 30\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link fromEventPattern}\n *\n * @param {ObservableInput<T>} A subscription object, a Promise, an Observable-like,\n * an Array, an iterable, or an array-like object to be converted.\n * @param {SchedulerLike} An optional {@link SchedulerLike} on which to schedule the emission of values.\n * @return {Observable<T>}\n */\nexport function from<T>(input: ObservableInput<T>, scheduler?: SchedulerLike): Observable<T> {\n  return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n", "import { SchedulerLike, ValueFromArray } from '../types';\nimport { Observable } from '../Observable';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function of(value: null): Observable<null>;\nexport function of(value: undefined): Observable<undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of(scheduler: SchedulerLike): Observable<never>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of<A extends readonly unknown[]>(...valuesAndScheduler: [...A, SchedulerLike]): Observable<ValueFromArray<A>>;\n\nexport function of(): Observable<never>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function of<T>(): Observable<T>;\nexport function of<T>(value: T): Observable<T>;\nexport function of<A extends readonly unknown[]>(...values: A): Observable<ValueFromArray<A>>;\n\n/**\n * Converts the arguments to an observable sequence.\n *\n * <span class=\"informal\">Each argument becomes a `next` notification.</span>\n *\n * ![](of.png)\n *\n * Unlike {@link from}, it does not do any flattening and emits each argument in whole\n * as a separate `next` notification.\n *\n * ## Examples\n *\n * Emit the values `10, 20, 30`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of(10, 20, 30)\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: 10\n * // next: 20\n * // next: 30\n * // the end\n * ```\n *\n * Emit the array `[1, 2, 3]`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of([1, 2, 3])\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: [1, 2, 3]\n * // the end\n * ```\n *\n * @see {@link from}\n * @see {@link range}\n *\n * @param {...T} values A comma separated list of arguments you want to be emitted\n * @return {Observable} An Observable that emits the arguments\n * described above and then completes.\n */\nexport function of<T>(...args: Array<T | SchedulerLike>): Observable<T> {\n  const scheduler = popScheduler(args);\n  return from(args as T[], scheduler);\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { SchedulerLike } from '../types';\nimport { isFunction } from '../util/isFunction';\n\n/**\n * Creates an observable that will create an error instance and push it to the consumer as an error\n * immediately upon subscription.\n *\n * <span class=\"informal\">Just errors and does nothing else</span>\n *\n * ![](throw.png)\n *\n * This creation function is useful for creating an observable that will create an error and error every\n * time it is subscribed to. Generally, inside of most operators when you might want to return an errored\n * observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap},\n * {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick\n * that up and notify the consumer of the error.\n *\n * ## Example\n *\n * Create a simple observable that will create a new error with a timestamp and log it\n * and the message every time you subscribe to it\n *\n * ```ts\n * import { throwError } from 'rxjs';\n *\n * let errorCount = 0;\n *\n * const errorWithTimestamp$ = throwError(() => {\n *   const error: any = new Error(`This is error number ${ ++errorCount }`);\n *   error.timestamp = Date.now();\n *   return error;\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * // Logs the timestamp and a new error message for each subscription\n * ```\n *\n * ### Unnecessary usage\n *\n * Using `throwError` inside of an operator or creation function\n * with a callback, is usually not necessary\n *\n * ```ts\n * import { of, concatMap, timer, throwError } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // This is probably overkill.\n *       return throwError(() => new Error(`Invalid time ${ ms }`));\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * You can just throw the error instead\n *\n * ```ts\n * import { of, concatMap, timer } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // Cleaner and easier to read for most folks.\n *       throw new Error(`Invalid time ${ ms }`);\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * @param errorFactory A factory function that will create the error instance that is pushed.\n */\nexport function throwError(errorFactory: () => any): Observable<never>;\n\n/**\n * Returns an observable that will error with the specified error immediately upon subscription.\n *\n * @param error The error instance to emit\n * @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is\n * because it will create the error at the moment it should be created and capture a more appropriate stack trace. If\n * for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`.\n */\nexport function throwError(error: any): Observable<never>;\n\n/**\n * Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription.\n *\n * @param errorOrErrorFactory An error instance or error factory\n * @param scheduler A scheduler to use to schedule the error notification\n * @deprecated The `scheduler` parameter will be removed in v8.\n * Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`.\n * Details: https://rxjs.dev/deprecations/scheduler-argument\n */\nexport function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable<never>;\n\nexport function throwError(errorOrErrorFactory: any, scheduler?: SchedulerLike): Observable<never> {\n  const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n  const init = (subscriber: Subscriber<never>) => subscriber.error(errorFactory());\n  return new Observable(scheduler ? (subscriber) => scheduler.schedule(init as any, 0, subscriber) : init);\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface EmptyError extends Error {}\n\nexport interface EmptyErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): EmptyError;\n}\n\n/**\n * An error thrown when an Observable or a sequence was queried but has no\n * elements.\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link single}\n * @see {@link firstValueFrom}\n * @see {@link lastValueFrom}\n *\n * @class EmptyError\n */\nexport const EmptyError: EmptyErrorCtor = createErrorClass((_super) => function EmptyErrorImpl(this: any) {\n  _super(this);\n  this.name = 'EmptyError';\n  this.message = 'no elements in sequence';\n});\n", "/**\n * Checks to see if a value is not only a `Date` object,\n * but a *valid* `Date` object that can be converted to a\n * number. For example, `new Date('blah')` is indeed an\n * `instanceof Date`, however it cannot be converted to a\n * number.\n */\nexport function isValidDate(value: any): value is Date {\n  return value instanceof Date && !isNaN(value as any);\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function map<T, R>(project: (value: T, index: number) => R): OperatorFunction<T, R>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function map<T, R, A>(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction<T, R>;\n\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * ![](map.png)\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * ## Example\n *\n * Map every click to the `clientX` position of that click\n *\n * ```ts\n * import { fromEvent, map } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const positions = clicks.pipe(map(ev => ev.clientX));\n *\n * positions.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return A function that returns an Observable that emits the values from the\n * source Observable transformed by the given `project` function.\n */\nexport function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R> {\n  return operate((source, subscriber) => {\n    // The index of the value from the source. Used with projection.\n    let index = 0;\n    // Subscribe to the source, all errors and completions are sent along\n    // to the consumer.\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value: T) => {\n        // Call the projection function with the appropriate this context,\n        // and send the resulting value to the consumer.\n        subscriber.next(project.call(thisArg, value, index++));\n      })\n    );\n  });\n}\n", "import { OperatorFunction } from \"../types\";\nimport { map } from \"../operators/map\";\n\nconst { isArray } = Array;\n\nfunction callOrApply<T, R>(fn: ((...values: T[]) => R), args: T|T[]): R {\n    return isArray(args) ? fn(...args) : fn(args);\n}\n\n/**\n * Used in several -- mostly deprecated -- situations where we need to \n * apply a list of arguments or a single argument to a result selector.\n */\nexport function mapOneOrManyArgs<T, R>(fn: ((...values: T[]) => R)): OperatorFunction<T|T[], R> {\n    return map(args => callOrApply(fn, args))\n}", "const { isArray } = Array;\nconst { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object;\n\n/**\n * Used in functions where either a list of arguments, a single array of arguments, or a\n * dictionary of arguments can be returned. Returns an object with an `args` property with\n * the arguments in an array, if it is a dictionary, it will also return the `keys` in another\n * property.\n */\nexport function argsArgArrayOrObject<T, O extends Record<string, T>>(args: T[] | [O] | [T[]]): { args: T[]; keys: string[] | null } {\n  if (args.length === 1) {\n    const first = args[0];\n    if (isArray(first)) {\n      return { args: first, keys: null };\n    }\n    if (isPOJO(first)) {\n      const keys = getKeys(first);\n      return {\n        args: keys.map((key) => first[key]),\n        keys,\n      };\n    }\n  }\n\n  return { args: args as T[], keys: null };\n}\n\nfunction isPOJO(obj: any): obj is object {\n  return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n", "export function createObject(keys: string[], values: any[]) {\n  return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { Subscriber } from '../Subscriber';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { Subscription } from '../Subscription';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { AnyCatcher } from '../AnyCatcher';\nimport { executeSchedule } from '../util/executeSchedule';\n\n// combineLatest(any)\n// We put this first because we need to catch cases where the user has supplied\n// _exactly `any`_ as the argument. Since `any` literally matches _anything_,\n// we don't want it to randomly hit one of the other type signatures below,\n// as we have no idea at build-time what type we should be returning when given an any.\n\n/**\n * You have passed `any` here, we can't figure out if it is\n * an array or an object, so you're getting `unknown`. Use better types.\n * @param arg Something typed as `any`\n */\nexport function combineLatest<T extends AnyCatcher>(arg: T): Observable<unknown>;\n\n// combineLatest([a, b, c])\nexport function combineLatest(sources: []): Observable<never>;\nexport function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R,\n  scheduler: SchedulerLike\n): Observable<R>;\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  sources: readonly [...ObservableInputTuple<A>],\n  scheduler: SchedulerLike\n): Observable<A>;\n\n// combineLatest(a, b, c)\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple<A>, (...values: A) => R, SchedulerLike]\n): Observable<R>;\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): Observable<A>;\n\n// combineLatest({a, b, c})\nexport function combineLatest(sourcesObject: { [K in any]: never }): Observable<never>;\nexport function combineLatest<T extends Record<string, ObservableInput<any>>>(\n  sourcesObject: T\n): Observable<{ [K in keyof T]: ObservedValueOf<T[K]> }>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * ![](combineLatest.png)\n *\n * `combineLatest` combines the values from all the Observables passed in the\n * observables array. This is done by subscribing to each Observable in order and,\n * whenever any Observable emits, collecting an array of the most recent\n * values from each Observable. So if you pass `n` Observables to this operator,\n * the returned Observable will always emit an array of `n` values, in an order\n * corresponding to the order of the passed Observables (the value from the first Observable\n * will be at index 0 of the array and so on).\n *\n * Static version of `combineLatest` accepts an array of Observables. Note that an array of\n * Observables is a good choice, if you don't know beforehand how many Observables\n * you will combine. Passing an empty array will result in an Observable that\n * completes immediately.\n *\n * To ensure the output array always has the same length, `combineLatest` will\n * actually wait for all input Observables to emit at least once,\n * before it starts emitting results. This means if some Observable emits\n * values before other Observables started emitting, all these values but the last\n * will be lost. On the other hand, if some Observable does not emit a value but\n * completes, resulting Observable will complete at the same moment without\n * emitting anything, since it will now be impossible to include a value from the\n * completed Observable in the resulting array. Also, if some input Observable does\n * not emit any value and never completes, `combineLatest` will also never emit\n * and never complete, since, again, it will wait for all streams to emit some\n * value.\n *\n * If at least one Observable was passed to `combineLatest` and all passed Observables\n * emitted something, the resulting Observable will complete when all combined\n * streams complete. So even if some Observable completes, the result of\n * `combineLatest` will still emit values when other Observables do. In case\n * of a completed Observable, its value from now on will always be the last\n * emitted value. On the other hand, if any Observable errors, `combineLatest`\n * will error immediately as well, and all other Observables will be unsubscribed.\n *\n * ## Examples\n *\n * Combine two timer Observables\n *\n * ```ts\n * import { timer, combineLatest } from 'rxjs';\n *\n * const firstTimer = timer(0, 1000); // emit 0, 1, 2... after every second, starting from now\n * const secondTimer = timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now\n * const combinedTimers = combineLatest([firstTimer, secondTimer]);\n * combinedTimers.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0] after 0.5s\n * // [1, 0] after 1s\n * // [1, 1] after 1.5s\n * // [2, 1] after 2s\n * ```\n *\n * Combine a dictionary of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = {\n *   a: of(1).pipe(delay(1000), startWith(0)),\n *   b: of(5).pipe(delay(5000), startWith(0)),\n *   c: of(10).pipe(delay(10000), startWith(0))\n * };\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // { a: 0, b: 0, c: 0 } immediately\n * // { a: 1, b: 0, c: 0 } after 1s\n * // { a: 1, b: 5, c: 0 } after 5s\n * // { a: 1, b: 5, c: 10 } after 10s\n * ```\n *\n * Combine an array of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = [1, 5, 10].map(\n *   n => of(n).pipe(\n *     delay(n * 1000), // emit 0 and then emit n after n seconds\n *     startWith(0)\n *   )\n * );\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0, 0] immediately\n * // [1, 0, 0] after 1s\n * // [1, 5, 0] after 5s\n * // [1, 5, 10] after 10s\n * ```\n *\n * Use map operator to dynamically calculate the Body-Mass Index\n *\n * ```ts\n * import { of, combineLatest, map } from 'rxjs';\n *\n * const weight = of(70, 72, 76, 79, 75);\n * const height = of(1.76, 1.77, 1.78);\n * const bmi = combineLatest([weight, height]).pipe(\n *   map(([w, h]) => w / (h * h)),\n * );\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {ObservableInput} [observables] An array of input Observables to combine with each other.\n * An array of Observables must be given as the first argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for subscribing to\n * each input Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n */\nexport function combineLatest<O extends ObservableInput<any>, R>(...args: any[]): Observable<R> | Observable<ObservedValueOf<O>[]> {\n  const scheduler = popScheduler(args);\n  const resultSelector = popResultSelector(args);\n\n  const { args: observables, keys } = argsArgArrayOrObject(args);\n\n  if (observables.length === 0) {\n    // If no observables are passed, or someone has passed an empty array\n    // of observables, or even an empty object POJO, we need to just\n    // complete (EMPTY), but we have to honor the scheduler provided if any.\n    return from([], scheduler as any);\n  }\n\n  const result = new Observable<ObservedValueOf<O>[]>(\n    combineLatestInit(\n      observables as ObservableInput<ObservedValueOf<O>>[],\n      scheduler,\n      keys\n        ? // A handler for scrubbing the array of args into a dictionary.\n          (values) => createObject(keys, values)\n        : // A passthrough to just return the array\n          identity\n    )\n  );\n\n  return resultSelector ? (result.pipe(mapOneOrManyArgs(resultSelector)) as Observable<R>) : result;\n}\n\nexport function combineLatestInit(\n  observables: ObservableInput<any>[],\n  scheduler?: SchedulerLike,\n  valueTransform: (values: any[]) => any = identity\n) {\n  return (subscriber: Subscriber<any>) => {\n    // The outer subscription. We're capturing this in a function\n    // because we may have to schedule it.\n    maybeSchedule(\n      scheduler,\n      () => {\n        const { length } = observables;\n        // A store for the values each observable has emitted so far. We match observable to value on index.\n        const values = new Array(length);\n        // The number of currently active subscriptions, as they complete, we decrement this number to see if\n        // we are all done combining values, so we can complete the result.\n        let active = length;\n        // The number of inner sources that still haven't emitted the first value\n        // We need to track this because all sources need to emit one value in order\n        // to start emitting values.\n        let remainingFirstValues = length;\n        // The loop to kick off subscription. We're keying everything on index `i` to relate the observables passed\n        // in to the slot in the output array or the key in the array of keys in the output dictionary.\n        for (let i = 0; i < length; i++) {\n          maybeSchedule(\n            scheduler,\n            () => {\n              const source = from(observables[i], scheduler as any);\n              let hasFirstValue = false;\n              source.subscribe(\n                createOperatorSubscriber(\n                  subscriber,\n                  (value) => {\n                    // When we get a value, record it in our set of values.\n                    values[i] = value;\n                    if (!hasFirstValue) {\n                      // If this is our first value, record that.\n                      hasFirstValue = true;\n                      remainingFirstValues--;\n                    }\n                    if (!remainingFirstValues) {\n                      // We're not waiting for any more\n                      // first values, so we can emit!\n                      subscriber.next(valueTransform(values.slice()));\n                    }\n                  },\n                  () => {\n                    if (!--active) {\n                      // We only complete the result if we have no more active\n                      // inner observables.\n                      subscriber.complete();\n                    }\n                  }\n                )\n              );\n            },\n            subscriber\n          );\n        }\n      },\n      subscriber\n    );\n  };\n}\n\n/**\n * A small utility to handle the couple of locations where we want to schedule if a scheduler was provided,\n * but we don't if there was no scheduler.\n */\nfunction maybeSchedule(scheduler: SchedulerLike | undefined, execute: () => void, subscription: Subscription) {\n  if (scheduler) {\n    executeSchedule(subscription, scheduler, execute);\n  } else {\n    execute();\n  }\n}\n", "import { Observable } from '../Observable';\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subscriber } from '../Subscriber';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A process embodying the general \"merge\" strategy. This is used in\n * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical.\n * @param source The original source observable\n * @param subscriber The consumer subscriber\n * @param project The projection function to get our inner sources\n * @param concurrent The number of concurrent inner subscriptions\n * @param onBeforeNext Additional logic to apply before nexting to our consumer\n * @param expand If `true` this will perform an \"expand\" strategy, which differs only\n * in that it recurses, and the inner subscription must be schedule-able.\n * @param innerSubScheduler A scheduler to use to schedule inner subscriptions,\n * this is to support the expand strategy, mostly, and should be deprecated\n */\nexport function mergeInternals<T, R>(\n  source: Observable<T>,\n  subscriber: Subscriber<R>,\n  project: (value: T, index: number) => ObservableInput<R>,\n  concurrent: number,\n  onBeforeNext?: (innerValue: R) => void,\n  expand?: boolean,\n  innerSubScheduler?: SchedulerLike,\n  additionalFinalizer?: () => void\n) {\n  // Buffered values, in the event of going over our concurrency limit\n  const buffer: T[] = [];\n  // The number of active inner subscriptions.\n  let active = 0;\n  // An index to pass to our accumulator function\n  let index = 0;\n  // Whether or not the outer source has completed.\n  let isComplete = false;\n\n  /**\n   * Checks to see if we can complete our result or not.\n   */\n  const checkComplete = () => {\n    // If the outer has completed, and nothing is left in the buffer,\n    // and we don't have any active inner subscriptions, then we can\n    // Emit the state and complete.\n    if (isComplete && !buffer.length && !active) {\n      subscriber.complete();\n    }\n  };\n\n  // If we're under our concurrency limit, just start the inner subscription, otherwise buffer and wait.\n  const outerNext = (value: T) => (active < concurrent ? doInnerSub(value) : buffer.push(value));\n\n  const doInnerSub = (value: T) => {\n    // If we're expanding, we need to emit the outer values and the inner values\n    // as the inners will \"become outers\" in a way as they are recursively fed\n    // back to the projection mechanism.\n    expand && subscriber.next(value as any);\n\n    // Increment the number of active subscriptions so we can track it\n    // against our concurrency limit later.\n    active++;\n\n    // A flag used to show that the inner observable completed.\n    // This is checked during finalization to see if we should\n    // move to the next item in the buffer, if there is on.\n    let innerComplete = false;\n\n    // Start our inner subscription.\n    innerFrom(project(value, index++)).subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (innerValue) => {\n          // `mergeScan` has additional handling here. For example\n          // taking the inner value and updating state.\n          onBeforeNext?.(innerValue);\n\n          if (expand) {\n            // If we're expanding, then just recurse back to our outer\n            // handler. It will emit the value first thing.\n            outerNext(innerValue as any);\n          } else {\n            // Otherwise, emit the inner value.\n            subscriber.next(innerValue);\n          }\n        },\n        () => {\n          // Flag that we have completed, so we know to check the buffer\n          // during finalization.\n          innerComplete = true;\n        },\n        // Errors are passed to the destination.\n        undefined,\n        () => {\n          // During finalization, if the inner completed (it wasn't errored or\n          // cancelled), then we want to try the next item in the buffer if\n          // there is one.\n          if (innerComplete) {\n            // We have to wrap this in a try/catch because it happens during\n            // finalization, possibly asynchronously, and we want to pass\n            // any errors that happen (like in a projection function) to\n            // the outer Subscriber.\n            try {\n              // INNER SOURCE COMPLETE\n              // Decrement the active count to ensure that the next time\n              // we try to call `doInnerSub`, the number is accurate.\n              active--;\n              // If we have more values in the buffer, try to process those\n              // Note that this call will increment `active` ahead of the\n              // next conditional, if there were any more inner subscriptions\n              // to start.\n              while (buffer.length && active < concurrent) {\n                const bufferedValue = buffer.shift()!;\n                // Particularly for `expand`, we need to check to see if a scheduler was provided\n                // for when we want to start our inner subscription. Otherwise, we just start\n                // are next inner subscription.\n                if (innerSubScheduler) {\n                  executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n                } else {\n                  doInnerSub(bufferedValue);\n                }\n              }\n              // Check to see if we can complete, and complete if so.\n              checkComplete();\n            } catch (err) {\n              subscriber.error(err);\n            }\n          }\n        }\n      )\n    );\n  };\n\n  // Subscribe to our source observable.\n  source.subscribe(\n    createOperatorSubscriber(subscriber, outerNext, () => {\n      // Outer completed, make a note of it, and check to see if we can complete everything.\n      isComplete = true;\n      checkComplete();\n    })\n  );\n\n  // Additional finalization (for when the destination is torn down).\n  // Other finalization is added implicitly via subscription above.\n  return () => {\n    additionalFinalizer?.();\n  };\n}\n", "import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\n\n/* tslint:disable:max-line-length */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R,\n  concurrent?: number\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.</span>\n *\n * ![](mergeMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * ## Example\n *\n * Map and flatten each letter to an Observable ticking every 1 second\n *\n * ```ts\n * import { of, mergeMap, interval, map } from 'rxjs';\n *\n * const letters = of('a', 'b', 'c');\n * const result = letters.pipe(\n *   mergeMap(x => interval(1000).pipe(map(i => x + i)))\n * );\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a, b, c every second with respective ascending integers\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and merging\n * the results of the Observables obtained from this transformation.\n */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R) | number,\n  concurrent: number = Infinity\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  if (isFunction(resultSelector)) {\n    // DEPRECATED PATH\n    return mergeMap((a, i) => map((b: any, ii: number) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n  } else if (typeof resultSelector === 'number') {\n    concurrent = resultSelector;\n  }\n\n  return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n", "import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable which\n * concurrently delivers all values that are emitted on the inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\n *\n * ![](mergeAll.png)\n *\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\n * a higher-order Observable. Each time it observes one of these emitted inner\n * Observables, it subscribes to that and delivers all the values from the\n * inner Observable on the output Observable. The output Observable only\n * completes once all inner Observables have completed. Any error delivered by\n * a inner Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Spawn a new interval Observable for each click event, and blend their outputs as one Observable\n *\n * ```ts\n * import { fromEvent, map, interval, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(map(() => interval(1000)));\n * const firstOrder = higherOrder.pipe(mergeAll());\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers\n *\n * ```ts\n * import { fromEvent, map, interval, take, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(10)))\n * );\n * const firstOrder = higherOrder.pipe(mergeAll(2));\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concatAll}\n * @see {@link exhaustAll}\n * @see {@link merge}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @param {number} [concurrent=Infinity] Maximum number of inner\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits values coming from\n * all the inner Observables emitted by the source Observable.\n */\nexport function mergeAll<O extends ObservableInput<any>>(concurrent: number = Infinity): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeMap(identity, concurrent);\n}\n", "import { mergeAll } from './mergeAll';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * concatenating the inner Observables in order.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\n * inner Observable after the other.</span>\n *\n * ![](concatAll.svg)\n *\n * Joins every Observable emitted by the source (a higher-order Observable), in\n * a serial fashion. It subscribes to each inner Observable only after the\n * previous inner Observable has completed, and merges all of their values into\n * the returned observable.\n *\n * __Warning:__ If the source Observable emits Observables quickly and\n * endlessly, and the inner Observables it emits generally complete slower than\n * the source emits, you can run into memory issues as the incoming Observables\n * collect in an unbounded buffer.\n *\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\n * to `1`.\n *\n * ## Example\n *\n * For each click event, tick every second from 0 to 3, with no concurrency\n *\n * ```ts\n * import { fromEvent, map, interval, take, concatAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(4)))\n * );\n * const firstOrder = higherOrder.pipe(concatAll());\n * firstOrder.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concat}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link exhaustAll}\n * @see {@link mergeAll}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @return A function that returns an Observable emitting values from all the\n * inner Observables concatenated.\n */\nexport function concatAll<O extends ObservableInput<any>>(): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeAll(1);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple, SchedulerLike } from '../types';\nimport { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function concat<T extends readonly unknown[]>(...inputs: [...ObservableInputTuple<T>]): Observable<T[number]>;\nexport function concat<T extends readonly unknown[]>(\n  ...inputsAndScheduler: [...ObservableInputTuple<T>, SchedulerLike]\n): Observable<T[number]>;\n\n/**\n * Creates an output Observable which sequentially emits all values from the first given\n * Observable and then moves on to the next.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * ![](concat.png)\n *\n * `concat` joins multiple Observables together, by subscribing to them one at a time and\n * merging their results into the output Observable. You can pass either an array of\n * Observables, or put them directly as arguments. Passing an empty array will result\n * in Observable that completes immediately.\n *\n * `concat` will subscribe to first input Observable and emit all its values, without\n * changing or affecting them in any way. When that Observable completes, it will\n * subscribe to then next Observable passed and, again, emit its values. This will be\n * repeated, until the operator runs out of Observables. When last input Observable completes,\n * `concat` will complete as well. At any given moment only one Observable passed to operator\n * emits values. If you would like to emit values from passed Observables concurrently, check out\n * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact,\n * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`.\n *\n * Note that if some input Observable never completes, `concat` will also never complete\n * and Observables following the one that did not complete will never be subscribed. On the other\n * hand, if some Observable simply completes immediately after it is subscribed, it will be\n * invisible for `concat`, which will just move on to the next Observable.\n *\n * If any Observable in chain errors, instead of passing control to the next Observable,\n * `concat` will error immediately as well. Observables that would be subscribed after\n * the one that emitted error, never will.\n *\n * If you pass to `concat` the same Observable many times, its stream of values\n * will be \"replayed\" on every subscription, which means you can repeat given Observable\n * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious,\n * you can always use {@link repeat}.\n *\n * ## Examples\n *\n * Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10\n *\n * ```ts\n * import { interval, take, range, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(4));\n * const sequence = range(1, 10);\n * const result = concat(timer, sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n * ```\n *\n * Concatenate 3 Observables\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const result = concat(timer1, timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n * ```\n *\n * Concatenate the same Observable to repeat it\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(2));\n *\n * concat(timer, timer) // concatenating the same Observable!\n *   .subscribe({\n *     next: value => console.log(value),\n *     complete: () => console.log('...and it is done!')\n *   });\n *\n * // Logs:\n * // 0 after 1s\n * // 1 after 2s\n * // 0 after 3s\n * // 1 after 4s\n * // '...and it is done!' also after 4s\n * ```\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link startWith}\n * @see {@link endWith}\n *\n * @param args Input Observables to concatenate.\n */\nexport function concat(...args: any[]): Observable<unknown> {\n  return concatAll()(from(args, popScheduler(args)));\n}\n", "import { Observable } from '../Observable';\nimport { ObservedValueOf, ObservableInput } from '../types';\nimport { innerFrom } from './innerFrom';\n\n/**\n * Creates an Observable that, on subscribe, calls an Observable factory to\n * make an Observable for each new Observer.\n *\n * <span class=\"informal\">Creates the Observable lazily, that is, only when it\n * is subscribed.\n * </span>\n *\n * ![](defer.png)\n *\n * `defer` allows you to create an Observable only when the Observer\n * subscribes. It waits until an Observer subscribes to it, calls the given\n * factory function to get an Observable -- where a factory function typically\n * generates a new Observable -- and subscribes the Observer to this Observable.\n * In case the factory function returns a falsy value, then EMPTY is used as\n * Observable instead. Last but not least, an exception during the factory\n * function call is transferred to the Observer by calling `error`.\n *\n * ## Example\n *\n * Subscribe to either an Observable of clicks or an Observable of interval, at random\n *\n * ```ts\n * import { defer, fromEvent, interval } from 'rxjs';\n *\n * const clicksOrInterval = defer(() => {\n *   return Math.random() > 0.5\n *     ? fromEvent(document, 'click')\n *     : interval(1000);\n * });\n * clicksOrInterval.subscribe(x => console.log(x));\n *\n * // Results in the following behavior:\n * // If the result of Math.random() is greater than 0.5 it will listen\n * // for clicks anywhere on the \"document\"; when document is clicked it\n * // will log a MouseEvent object to the console. If the result is less\n * // than 0.5 it will emit ascending numbers, one every second(1000ms).\n * ```\n *\n * @see {@link Observable}\n *\n * @param {function(): ObservableInput} observableFactory The Observable\n * factory function to invoke for each Observer that subscribes to the output\n * Observable. May also return a Promise, which will be converted on the fly\n * to an Observable.\n * @return {Observable} An Observable whose Observers' subscriptions trigger\n * an invocation of the given Observable factory function.\n */\nexport function defer<R extends ObservableInput<any>>(observableFactory: () => R): Observable<ObservedValueOf<R>> {\n  return new Observable<ObservedValueOf<R>>((subscriber) => {\n    innerFrom(observableFactory()).subscribe(subscriber);\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n// These constants are used to create handler registry functions using array mapping below.\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'] as const;\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'] as const;\nconst jqueryMethods = ['on', 'off'] as const;\n\nexport interface NodeStyleEventEmitter {\n  addListener(eventName: string | symbol, handler: NodeEventHandler): this;\n  removeListener(eventName: string | symbol, handler: NodeEventHandler): this;\n}\n\nexport type NodeEventHandler = (...args: any[]) => void;\n\n// For APIs that implement `addListener` and `removeListener` methods that may\n// not use the same arguments or return EventEmitter values\n// such as React Native\nexport interface NodeCompatibleEventEmitter {\n  addListener(eventName: string, handler: NodeEventHandler): void | {};\n  removeListener(eventName: string, handler: NodeEventHandler): void | {};\n}\n\n// Use handler types like those in @types/jquery. See:\n// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/847731ba1d7fa6db6b911c0e43aa0afe596e7723/types/jquery/misc.d.ts#L6395\nexport interface JQueryStyleEventEmitter<TContext, T> {\n  on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n  off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n}\n\nexport interface EventListenerObject<E> {\n  handleEvent(evt: E): void;\n}\n\nexport interface HasEventTargetAddRemove<E> {\n  addEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: boolean | AddEventListenerOptions\n  ): void;\n  removeEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: EventListenerOptions | boolean\n  ): void;\n}\n\nexport interface EventListenerOptions {\n  capture?: boolean;\n  passive?: boolean;\n  once?: boolean;\n}\n\nexport interface AddEventListenerOptions extends EventListenerOptions {\n  once?: boolean;\n  passive?: boolean;\n}\n\nexport function fromEvent<T>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  resultSelector: (event: T) => R\n): Observable<R>;\nexport function fromEvent<T>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions,\n  resultSelector: (event: T) => R\n): Observable<R>;\n\nexport function fromEvent(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string\n): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent<T>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string,\n  resultSelector: (value: T, ...args: any[]) => R\n): Observable<R>;\n\n/**\n * Creates an Observable that emits events of a specific type coming from the\n * given event target.\n *\n * <span class=\"informal\">Creates an Observable from DOM events, or Node.js\n * EventEmitter events or others.</span>\n *\n * ![](fromEvent.png)\n *\n * `fromEvent` accepts as a first argument event target, which is an object with methods\n * for registering event handler functions. As a second argument it takes string that indicates\n * type of event we want to listen for. `fromEvent` supports selected types of event targets,\n * which are described in detail below. If your event target does not match any of the ones listed,\n * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.\n * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event\n * handler functions have different names, but they all accept a string describing event type\n * and function itself, which will be called whenever said event happens.\n *\n * Every time resulting Observable is subscribed, event handler function will be registered\n * to event target on given event type. When that event fires, value\n * passed as a first argument to registered function will be emitted by output Observable.\n * When Observable is unsubscribed, function will be unregistered from event target.\n *\n * Note that if event target calls registered function with more than one argument, second\n * and following arguments will not appear in resulting stream. In order to get access to them,\n * you can pass to `fromEvent` optional project function, which will be called with all arguments\n * passed to event handler. Output Observable will then emit value returned by project function,\n * instead of the usual value.\n *\n * Remember that event targets listed below are checked via duck typing. It means that\n * no matter what kind of object you have and no matter what environment you work in,\n * you can safely use `fromEvent` on that object if it exposes described methods (provided\n * of course they behave as was described above). So for example if Node.js library exposes\n * event target which has the same method names as DOM EventTarget, `fromEvent` is still\n * a good choice.\n *\n * If the API you use is more callback then event handler oriented (subscribed\n * callback function fires only once and thus there is no need to manually\n * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}\n * instead.\n *\n * `fromEvent` supports following types of event targets:\n *\n * **DOM EventTarget**\n *\n * This is an object with `addEventListener` and `removeEventListener` methods.\n *\n * In the browser, `addEventListener` accepts - apart from event type string and event\n * handler function arguments - optional third parameter, which is either an object or boolean,\n * both used for additional configuration how and when passed function will be called. When\n * `fromEvent` is used with event target of that type, you can provide this values\n * as third parameter as well.\n *\n * **Node.js EventEmitter**\n *\n * An object with `addListener` and `removeListener` methods.\n *\n * **JQuery-style event target**\n *\n * An object with `on` and `off` methods\n *\n * **DOM NodeList**\n *\n * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.\n *\n * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes\n * it contains and install event handler function in every of them. When returned Observable\n * is unsubscribed, function will be removed from all Nodes.\n *\n * **DOM HtmlCollection**\n *\n * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is\n * installed and removed in each of elements.\n *\n *\n * ## Examples\n *\n * Emit clicks happening on the DOM document\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * clicks.subscribe(x => console.log(x));\n *\n * // Results in:\n * // MouseEvent object logged to console every time a click\n * // occurs on the document.\n * ```\n *\n * Use `addEventListener` with capture option\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * // note optional configuration parameter which will be passed to addEventListener\n * const clicksInDocument = fromEvent(document, 'click', { capture: true });\n * const clicksInDiv = fromEvent(div, 'click');\n *\n * clicksInDocument.subscribe(() => console.log('document'));\n * clicksInDiv.subscribe(() => console.log('div'));\n *\n * // By default events bubble UP in DOM tree, so normally\n * // when we would click on div in document\n * // \"div\" would be logged first and then \"document\".\n * // Since we specified optional `capture` option, document\n * // will catch event when it goes DOWN DOM tree, so console\n * // will log \"document\" and then \"div\".\n * ```\n *\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n * @see {@link fromEventPattern}\n *\n * @param {FromEventTarget<T>} target The DOM EventTarget, Node.js\n * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.\n * @param {string} eventName The event name of interest, being emitted by the\n * `target`.\n * @param {EventListenerOptions} [options] Options to pass through to addEventListener\n * @return {Observable<T>}\n */\nexport function fromEvent<T>(\n  target: any,\n  eventName: string,\n  options?: EventListenerOptions | ((...args: any[]) => T),\n  resultSelector?: (...args: any[]) => T\n): Observable<T> {\n  if (isFunction(options)) {\n    resultSelector = options;\n    options = undefined;\n  }\n  if (resultSelector) {\n    return fromEvent<T>(target, eventName, options as EventListenerOptions).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  // Figure out our add and remove methods. In order to do this,\n  // we are going to analyze the target in a preferred order, if\n  // the target matches a given signature, we take the two \"add\" and \"remove\"\n  // method names and apply them to a map to create opposite versions of the\n  // same function. This is because they all operate in duplicate pairs,\n  // `addListener(name, handler)`, `removeListener(name, handler)`, for example.\n  // The call only differs by method name, as to whether or not you're adding or removing.\n  const [add, remove] =\n    // If it is an EventTarget, we need to use a slightly different method than the other two patterns.\n    isEventTarget(target)\n      ? eventTargetMethods.map((methodName) => (handler: any) => target[methodName](eventName, handler, options as EventListenerOptions))\n      : // In all other cases, the call pattern is identical with the exception of the method names.\n      isNodeStyleEventEmitter(target)\n      ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n      : isJQueryStyleEventEmitter(target)\n      ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n      : [];\n\n  // If add is falsy, it's because we didn't match a pattern above.\n  // Check to see if it is an ArrayLike, because if it is, we want to\n  // try to apply fromEvent to all of it's items. We do this check last,\n  // because there are may be some types that are both ArrayLike *and* implement\n  // event registry points, and we'd rather delegate to that when possible.\n  if (!add) {\n    if (isArrayLike(target)) {\n      return mergeMap((subTarget: any) => fromEvent(subTarget, eventName, options as EventListenerOptions))(\n        innerFrom(target)\n      ) as Observable<T>;\n    }\n  }\n\n  // If add is falsy and we made it here, it's because we didn't\n  // match any valid target objects above.\n  if (!add) {\n    throw new TypeError('Invalid event target');\n  }\n\n  return new Observable<T>((subscriber) => {\n    // The handler we are going to register. Forwards the event object, by itself, or\n    // an array of arguments to the event handler, if there is more than one argument,\n    // to the consumer.\n    const handler = (...args: any[]) => subscriber.next(1 < args.length ? args : args[0]);\n    // Do the work of adding the handler to the target.\n    add(handler);\n    // When we finalize, we want to remove the handler and free up memory.\n    return () => remove!(handler);\n  });\n}\n\n/**\n * Used to create `add` and `remove` functions to register and unregister event handlers\n * from a target in the most common handler pattern, where there are only two arguments.\n * (e.g.  `on(name, fn)`, `off(name, fn)`, `addListener(name, fn)`, or `removeListener(name, fn)`)\n * @param target The target we're calling methods on\n * @param eventName The event name for the event we're creating register or unregister functions for\n */\nfunction toCommonHandlerRegistry(target: any, eventName: string) {\n  return (methodName: string) => (handler: any) => target[methodName](eventName, handler);\n}\n\n/**\n * Checks to see if the target implements the required node-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isNodeStyleEventEmitter(target: any): target is NodeStyleEventEmitter {\n  return isFunction(target.addListener) && isFunction(target.removeListener);\n}\n\n/**\n * Checks to see if the target implements the required jQuery-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isJQueryStyleEventEmitter(target: any): target is JQueryStyleEventEmitter<any, any> {\n  return isFunction(target.on) && isFunction(target.off);\n}\n\n/**\n * Checks to see if the target implements the required EventTarget methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isEventTarget(target: any): target is HasEventTargetAddRemove<any> {\n  return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n", "import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nimport { NodeEventHandler } from './fromEvent';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n/* tslint:disable:max-line-length */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void\n): Observable<T>;\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Creates an Observable from an arbitrary API for registering event handlers.\n *\n * <span class=\"informal\">When that method for adding event handler was something {@link fromEvent}\n * was not prepared for.</span>\n *\n * ![](fromEventPattern.png)\n *\n * `fromEventPattern` allows you to convert into an Observable any API that supports registering handler functions\n * for events. It is similar to {@link fromEvent}, but far\n * more flexible. In fact, all use cases of {@link fromEvent} could be easily handled by\n * `fromEventPattern` (although in slightly more verbose way).\n *\n * This operator accepts as a first argument an `addHandler` function, which will be injected with\n * handler parameter. That handler is actually an event handler function that you now can pass\n * to API expecting it. `addHandler` will be called whenever Observable\n * returned by the operator is subscribed, so registering handler in API will not\n * necessarily happen when `fromEventPattern` is called.\n *\n * After registration, every time an event that we listen to happens,\n * Observable returned by `fromEventPattern` will emit value that event handler\n * function was called with. Note that if event handler was called with more\n * than one argument, second and following arguments will not appear in the Observable.\n *\n * If API you are using allows to unregister event handlers as well, you can pass to `fromEventPattern`\n * another function - `removeHandler` - as a second parameter. It will be injected\n * with the same handler function as before, which now you can use to unregister\n * it from the API. `removeHandler` will be called when consumer of resulting Observable\n * unsubscribes from it.\n *\n * In some APIs unregistering is actually handled differently. Method registering an event handler\n * returns some kind of token, which is later used to identify which function should\n * be unregistered or it itself has method that unregisters event handler.\n * If that is the case with your API, make sure token returned\n * by registering method is returned by `addHandler`. Then it will be passed\n * as a second argument to `removeHandler`, where you will be able to use it.\n *\n * If you need access to all event handler parameters (not only the first one),\n * or you need to transform them in any way, you can call `fromEventPattern` with optional\n * third parameter - project function which will accept all arguments passed to\n * event handler when it is called. Whatever is returned from project function will appear on\n * resulting stream instead of usual event handlers first argument. This means\n * that default project can be thought of as function that takes its first parameter\n * and ignores the rest.\n *\n * ## Examples\n *\n * Emits clicks happening on the DOM document\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * function addClickHandler(handler) {\n *   document.addEventListener('click', handler);\n * }\n *\n * function removeClickHandler(handler) {\n *   document.removeEventListener('click', handler);\n * }\n *\n * const clicks = fromEventPattern(\n *   addClickHandler,\n *   removeClickHandler\n * );\n * clicks.subscribe(x => console.log(x));\n *\n * // Whenever you click anywhere in the browser, DOM MouseEvent\n * // object will be logged.\n * ```\n *\n * Use with API that returns cancellation token\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * const token = someAPI.registerEventHandler(function() {});\n * someAPI.unregisterEventHandler(token); // this APIs cancellation method accepts\n *                                        // not handler itself, but special token.\n *\n * const someAPIObservable = fromEventPattern(\n *   function(handler) { return someAPI.registerEventHandler(handler); }, // Note that we return the token here...\n *   function(handler, token) { someAPI.unregisterEventHandler(token); }  // ...to then use it here.\n * );\n * ```\n *\n * Use with project function\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * someAPI.registerEventHandler((eventType, eventMessage) => {\n *   console.log(eventType, eventMessage); // Logs 'EVENT_TYPE' 'EVENT_MESSAGE' to console.\n * });\n *\n * const someAPIObservable = fromEventPattern(\n *   handler => someAPI.registerEventHandler(handler),\n *   handler => someAPI.unregisterEventHandler(handler)\n *   (eventType, eventMessage) => eventType + ' --- ' + eventMessage // without that function only 'EVENT_TYPE'\n * );                                                                // would be emitted by the Observable\n *\n * someAPIObservable.subscribe(value => console.log(value));\n *\n * // Logs:\n * // 'EVENT_TYPE --- EVENT_MESSAGE'\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n *\n * @param {function(handler: Function): any} addHandler A function that takes\n * a `handler` function as argument and attaches it somehow to the actual\n * source of events.\n * @param {function(handler: Function, token?: any): void} [removeHandler] A function that\n * takes a `handler` function as an argument and removes it from the event source. If `addHandler`\n * returns some kind of token, `removeHandler` function will have it as a second parameter.\n * @param {function(...args: any): T} [project] A function to\n * transform results. It takes the arguments from the event handler and\n * should return a single value.\n * @return {Observable<T>} Observable which, when an event happens, emits first parameter\n * passed to registered event handler. Alternatively it emits whatever project function returns\n * at that moment.\n */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T | T[]> {\n  if (resultSelector) {\n    return fromEventPattern<T>(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  return new Observable<T | T[]>((subscriber) => {\n    const handler = (...e: T[]) => subscriber.next(e.length === 1 ? e[0] : e);\n    const retValue = addHandler(handler);\n    return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined;\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\n\n/**\n * Creates an observable that will wait for a specified time period, or exact date, before\n * emitting the number 0.\n *\n * <span class=\"informal\">Used to emit a notification after a delay.</span>\n *\n * This observable is useful for creating delays in code, or racing against other values\n * for ad-hoc timeouts.\n *\n * The `delay` is specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Examples\n *\n * Wait 3 seconds and start another observable\n *\n * You might want to use `timer` to delay subscription to an\n * observable by a set amount of time. Here we use a timer with\n * {@link concatMapTo} or {@link concatMap} in order to wait\n * a few seconds and start a subscription to a source.\n *\n * ```ts\n * import { of, timer, concatMap } from 'rxjs';\n *\n * // This could be any observable\n * const source = of(1, 2, 3);\n *\n * timer(3000)\n *   .pipe(concatMap(() => source))\n *   .subscribe(console.log);\n * ```\n *\n * Take all values until the start of the next minute\n *\n * Using a `Date` as the trigger for the first emission, you can\n * do things like wait until midnight to fire an event, or in this case,\n * wait until a new minute starts (chosen so the example wouldn't take\n * too long to run) in order to stop watching a stream. Leveraging\n * {@link takeUntil}.\n *\n * ```ts\n * import { interval, takeUntil, timer } from 'rxjs';\n *\n * // Build a Date object that marks the\n * // next minute.\n * const currentDate = new Date();\n * const startOfNextMinute = new Date(\n *   currentDate.getFullYear(),\n *   currentDate.getMonth(),\n *   currentDate.getDate(),\n *   currentDate.getHours(),\n *   currentDate.getMinutes() + 1\n * );\n *\n * // This could be any observable stream\n * const source = interval(1000);\n *\n * const result = source.pipe(\n *   takeUntil(timer(startOfNextMinute))\n * );\n *\n * result.subscribe(console.log);\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `dueTime`.\n *\n * @param due If a `number`, the amount of time in milliseconds to wait before emitting.\n * If a `Date`, the exact time at which to emit.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>;\n\n/**\n * Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` --\n * on each interval after words.\n *\n * The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Example\n *\n * ### Start an interval that starts right away\n *\n * Since {@link interval} waits for the passed delay before starting,\n * sometimes that's not ideal. You may want to start an interval immediately.\n * `timer` works well for this. Here we have both side-by-side so you can\n * see them in comparison.\n *\n * Note that this observable will never complete.\n *\n * ```ts\n * import { timer, interval } from 'rxjs';\n *\n * timer(0, 1000).subscribe(n => console.log('timer', n));\n * interval(1000).subscribe(n => console.log('interval', n));\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `startDue`.\n * @param startDue If a `number`, is the time to wait before starting the interval.\n * If a `Date`, is the exact time at which to start the interval.\n * @param intervalDuration The delay between each value emitted in the interval. Passing a\n * negative number here will result in immediate completion after the first value is emitted, as though\n * no `intervalDuration` was passed at all.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable<number>;\n\n/**\n * @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead.\n */\nexport function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>;\n\nexport function timer(\n  dueTime: number | Date = 0,\n  intervalOrScheduler?: number | SchedulerLike,\n  scheduler: SchedulerLike = asyncScheduler\n): Observable<number> {\n  // Since negative intervalDuration is treated as though no\n  // interval was specified at all, we start with a negative number.\n  let intervalDuration = -1;\n\n  if (intervalOrScheduler != null) {\n    // If we have a second argument, and it's a scheduler,\n    // override the scheduler we had defaulted. Otherwise,\n    // it must be an interval.\n    if (isScheduler(intervalOrScheduler)) {\n      scheduler = intervalOrScheduler;\n    } else {\n      // Note that this *could* be negative, in which case\n      // it's like not passing an intervalDuration at all.\n      intervalDuration = intervalOrScheduler;\n    }\n  }\n\n  return new Observable((subscriber) => {\n    // If a valid date is passed, calculate how long to wait before\n    // executing the first value... otherwise, if it's a number just schedule\n    // that many milliseconds (or scheduler-specified unit size) in the future.\n    let due = isValidDate(dueTime) ? +dueTime - scheduler!.now() : dueTime;\n\n    if (due < 0) {\n      // Ensure we don't schedule in the future.\n      due = 0;\n    }\n\n    // The incrementing value we emit.\n    let n = 0;\n\n    // Start the timer.\n    return scheduler.schedule(function () {\n      if (!subscriber.closed) {\n        // Emit the next value and increment.\n        subscriber.next(n++);\n\n        if (0 <= intervalDuration) {\n          // If we have a interval after the initial timer,\n          // reschedule with the period.\n          this.schedule(undefined, intervalDuration);\n        } else {\n          // We didn't have an interval. So just complete.\n          subscriber.complete();\n        }\n      }\n    }, due);\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, ObservableInputTuple, SchedulerLike } from '../types';\nimport { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function merge<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;\nexport function merge<A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number?]): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike?]\n): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number?, SchedulerLike?]\n): Observable<A[number]>;\n\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * ![](merge.png)\n *\n * `merge` subscribes to each given input Observable (as arguments), and simply\n * forwards (without doing any transformation) all the values from all the input\n * Observables to the output Observable. The output Observable only completes\n * once all input Observables have completed. Any error delivered by an input\n * Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Merge together two Observables: 1s interval and clicks\n *\n * ```ts\n * import { merge, fromEvent, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const clicksOrTimer = merge(clicks, timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // timer will emit ascending values, one every second(1000ms) to console\n * // clicks logs MouseEvents to console every time the \"document\" is clicked\n * // Since the two streams are merged you see these happening\n * // as they occur.\n * ```\n *\n * Merge together 3 Observables, but run only 2 concurrently\n *\n * ```ts\n * import { interval, take, merge } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const concurrent = 2; // the argument\n * const merged = merge(timer1, timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - First timer1 and timer2 will run concurrently\n * // - timer1 will emit a value every 1000ms for 10 iterations\n * // - timer2 will emit a value every 2000ms for 6 iterations\n * // - after timer1 hits its max iteration, timer2 will\n * //   continue, and timer3 will start to run concurrently with timer2\n * // - when timer2 hits its max iteration it terminates, and\n * //   timer3 will continue to emit a value every 500ms until it is complete\n * ```\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {...ObservableInput} observables Input Observables to merge together.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for managing\n * concurrency of input Observables.\n * @return {Observable} an Observable that emits items that are the result of\n * every input Observable.\n */\nexport function merge(...args: (ObservableInput<unknown> | number | SchedulerLike)[]): Observable<unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  const sources = args as ObservableInput<unknown>[];\n  return !sources.length\n    ? // No source provided\n      EMPTY\n    : sources.length === 1\n    ? // One source? Just return it.\n      innerFrom(sources[0])\n    : // Merge all sources\n      mergeAll(concurrent)(from(sources, scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\n\n/**\n * An Observable that emits no items to the Observer and never completes.\n *\n * ![](never.png)\n *\n * A simple Observable that emits neither values nor errors nor the completion\n * notification. It can be used for testing purposes or for composing with other\n * Observables. Please note that by never emitting a complete notification, this\n * Observable keeps the subscription from being disposed automatically.\n * Subscriptions need to be manually disposed.\n *\n * ##  Example\n *\n * Emit the number 7, then never emit anything else (not even complete)\n *\n * ```ts\n * import { NEVER, startWith } from 'rxjs';\n *\n * const info = () => console.log('Will not be called');\n *\n * const result = NEVER.pipe(startWith(7));\n * result.subscribe({\n *   next: x => console.log(x),\n *   error: info,\n *   complete: info\n * });\n * ```\n *\n * @see {@link Observable}\n * @see {@link EMPTY}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const NEVER = new Observable<never>(noop);\n\n/**\n * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8.\n */\nexport function never() {\n  return NEVER;\n}\n", "const { isArray } = Array;\n\n/**\n * Used in operators and functions that accept either a list of arguments, or an array of arguments\n * as a single argument.\n */\nexport function argsOrArgArray<T>(args: (T | T[])[]): T[] {\n  return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]);\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, S extends T, A>(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction<T, S>;\nexport function filter<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function filter<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;\nexport function filter<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * ![](filter.png)\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * ## Example\n *\n * Emit only click events whose target was a DIV element\n *\n * ```ts\n * import { fromEvent, filter } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksOnDivs = clicks.pipe(filter(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * clicksOnDivs.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param thisArg An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return A function that returns an Observable that emits items from the\n * source Observable that satisfy the specified `predicate`.\n */\nexport function filter<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // An index passed to our predicate function on each call.\n    let index = 0;\n\n    // Subscribe to the source, all errors and completions are\n    // forwarded to the consumer.\n    source.subscribe(\n      // Call the predicate with the appropriate `this` context,\n      // if the predicate returns `true`, then send the value\n      // to the consumer.\n      createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value))\n    );\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple } from '../types';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { EMPTY } from './empty';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { popResultSelector } from '../util/args';\n\nexport function zip<A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\nexport function zip<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each\n * of its input Observables.\n *\n * If the last parameter is a function, this function is used to compute the created value from the input values.\n * Otherwise, an array of the input values is returned.\n *\n * ## Example\n *\n * Combine age and name from different sources\n *\n * ```ts\n * import { of, zip, map } from 'rxjs';\n *\n * const age$ = of(27, 25, 29);\n * const name$ = of('Foo', 'Bar', 'Beer');\n * const isDev$ = of(true, true, false);\n *\n * zip(age$, name$, isDev$).pipe(\n *   map(([age, name, isDev]) => ({ age, name, isDev }))\n * )\n * .subscribe(x => console.log(x));\n *\n * // Outputs\n * // { age: 27, name: 'Foo', isDev: true }\n * // { age: 25, name: 'Bar', isDev: true }\n * // { age: 29, name: 'Beer', isDev: false }\n * ```\n *\n * @param sources\n * @return {Observable<R>}\n */\nexport function zip(...args: unknown[]): Observable<unknown> {\n  const resultSelector = popResultSelector(args);\n\n  const sources = argsOrArgArray(args) as Observable<unknown>[];\n\n  return sources.length\n    ? new Observable<unknown[]>((subscriber) => {\n        // A collection of buffers of values from each source.\n        // Keyed by the same index with which the sources were passed in.\n        let buffers: unknown[][] = sources.map(() => []);\n\n        // An array of flags of whether or not the sources have completed.\n        // This is used to check to see if we should complete the result.\n        // Keyed by the same index with which the sources were passed in.\n        let completed = sources.map(() => false);\n\n        // When everything is done, release the arrays above.\n        subscriber.add(() => {\n          buffers = completed = null!;\n        });\n\n        // Loop over our sources and subscribe to each one. The index `i` is\n        // especially important here, because we use it in closures below to\n        // access the related buffers and completion properties\n        for (let sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {\n          innerFrom(sources[sourceIndex]).subscribe(\n            createOperatorSubscriber(\n              subscriber,\n              (value) => {\n                buffers[sourceIndex].push(value);\n                // if every buffer has at least one value in it, then we\n                // can shift out the oldest value from each buffer and emit\n                // them as an array.\n                if (buffers.every((buffer) => buffer.length)) {\n                  const result: any = buffers.map((buffer) => buffer.shift()!);\n                  // Emit the array. If theres' a result selector, use that.\n                  subscriber.next(resultSelector ? resultSelector(...result) : result);\n                  // If any one of the sources is both complete and has an empty buffer\n                  // then we complete the result. This is because we cannot possibly have\n                  // any more values to zip together.\n                  if (buffers.some((buffer, i) => !buffer.length && completed[i])) {\n                    subscriber.complete();\n                  }\n                }\n              },\n              () => {\n                // This source completed. Mark it as complete so we can check it later\n                // if we have to.\n                completed[sourceIndex] = true;\n                // But, if this complete source has nothing in its buffer, then we\n                // can complete the result, because we can't possibly have any more\n                // values from this to zip together with the other values.\n                !buffers[sourceIndex].length && subscriber.complete();\n              }\n            )\n          );\n        }\n\n        // When everything is done, release the arrays above.\n        return () => {\n          buffers = completed = null!;\n        };\n      })\n    : EMPTY;\n}\n", "import { Subscriber } from '../Subscriber';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\n\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](audit.svg)\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, audit, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(audit(ev => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function audit<T>(durationSelector: (value: T) => ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    let lastValue: T | null = null;\n    let durationSubscriber: Subscriber<any> | null = null;\n    let isComplete = false;\n\n    const endDuration = () => {\n      durationSubscriber?.unsubscribe();\n      durationSubscriber = null;\n      if (hasValue) {\n        hasValue = false;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n      isComplete && subscriber.complete();\n    };\n\n    const cleanupDuration = () => {\n      durationSubscriber = null;\n      isComplete && subscriber.complete();\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          lastValue = value;\n          if (!durationSubscriber) {\n            innerFrom(durationSelector(value)).subscribe(\n              (durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))\n            );\n          }\n        },\n        () => {\n          isComplete = true;\n          (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\n\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source value, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * ![](auditTime.png)\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link SchedulerLike} for managing timers.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, auditTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(auditTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function auditTime<T>(duration: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return audit(() => timer(duration, scheduler));\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\n\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * ![](bufferCount.png)\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * ## Examples\n *\n * Emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * On every click, emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2, 1));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return A function that returns an Observable of arrays of buffered values.\n */\nexport function bufferCount<T>(bufferSize: number, startBufferEvery: number | null = null): OperatorFunction<T, T[]> {\n  // If no `startBufferEvery` value was supplied, then we're\n  // opening and closing on the bufferSize itself.\n  startBufferEvery = startBufferEvery ?? bufferSize;\n\n  return operate((source, subscriber) => {\n    let buffers: T[][] = [];\n    let count = 0;\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          let toEmit: T[][] | null = null;\n\n          // Check to see if we need to start a buffer.\n          // This will start one at the first value, and then\n          // a new one every N after that.\n          if (count++ % startBufferEvery! === 0) {\n            buffers.push([]);\n          }\n\n          // Push our value into our active buffers.\n          for (const buffer of buffers) {\n            buffer.push(value);\n            // Check to see if we're over the bufferSize\n            // if we are, record it so we can emit it later.\n            // If we emitted it now and removed it, it would\n            // mutate the `buffers` array while we're looping\n            // over it.\n            if (bufferSize <= buffer.length) {\n              toEmit = toEmit ?? [];\n              toEmit.push(buffer);\n            }\n          }\n\n          if (toEmit) {\n            // We have found some buffers that are over the\n            // `bufferSize`. Emit them, and remove them from our\n            // buffers list.\n            for (const buffer of toEmit) {\n              arrRemove(buffers, buffer);\n              subscriber.next(buffer);\n            }\n          }\n        },\n        () => {\n          // When the source completes, emit all of our\n          // active buffers.\n          for (const buffer of buffers) {\n            subscriber.next(buffer);\n          }\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Clean up our memory when we finalize\n          buffers = null!;\n        }\n      )\n    );\n  });\n}\n", "import { Observable } from '../Observable';\n\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { Subscription } from '../Subscription';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\n\n/* tslint:disable:max-line-length */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>>;\n/* tslint:enable:max-line-length */\n\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\n *\n * <span class=\"informal\">\n * It only listens to the error channel and ignores notifications.\n * Handles errors from the source observable, and maps them to a new observable.\n * The error may also be rethrown, or a new error can be thrown to emit an error from the result.\n * </span>\n *\n * ![](catch.png)\n *\n * This operator handles errors, but forwards along all other events to the resulting observable.\n * If the source observable terminates with an error, it will map that error to a new observable,\n * subscribe to it, and forward all of its events to the resulting observable.\n *\n * ## Examples\n *\n * Continue with a different Observable when there's an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => of('I', 'II', 'III', 'IV', 'V'))\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, I, II, III, IV, V\n * ```\n *\n * Retry the caught source Observable again in case of error, similar to `retry()` operator\n *\n * ```ts\n * import { of, map, catchError, take } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError((err, caught) => caught),\n *     take(30)\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, 1, 2, 3, ...\n * ```\n *\n * Throw a new error when the source Observable throws an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => {\n *       throw 'error in source. Details: ' + err;\n *     })\n *   )\n *   .subscribe({\n *     next: x => console.log(x),\n *     error: err => console.log(err)\n *   });\n *   // 1, 2, 3, error in source. Details: four!\n * ```\n *\n * @see {@link onErrorResumeNext}\n * @see {@link repeat}\n * @see {@link repeatWhen}\n * @see {@link retry }\n * @see {@link retryWhen}\n *\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\n * is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\n * is returned by the `selector` will be used to continue the observable chain.\n * @return A function that returns an Observable that originates from either\n * the source or the Observable returned by the `selector` function.\n */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>> {\n  return operate((source, subscriber) => {\n    let innerSub: Subscription | null = null;\n    let syncUnsub = false;\n    let handledResult: Observable<ObservedValueOf<O>>;\n\n    innerSub = source.subscribe(\n      createOperatorSubscriber(subscriber, undefined, undefined, (err) => {\n        handledResult = innerFrom(selector(err, catchError(selector)(source)));\n        if (innerSub) {\n          innerSub.unsubscribe();\n          innerSub = null;\n          handledResult.subscribe(subscriber);\n        } else {\n          // We don't have an innerSub yet, that means the error was synchronous\n          // because the subscribe call hasn't returned yet.\n          syncUnsub = true;\n        }\n      })\n    );\n\n    if (syncUnsub) {\n      // We have a synchronous error, we need to make sure to\n      // finalize right away. This ensures that callbacks in the `finalize` operator are called\n      // at the right time, and that finalization occurs at the expected\n      // time between the source error and the subscription to the\n      // next observable.\n      innerSub.unsubscribe();\n      innerSub = null;\n      handledResult!.subscribe(subscriber);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A basic scan operation. This is used for `scan` and `reduce`.\n * @param accumulator The accumulator to use\n * @param seed The seed value for the state to accumulate\n * @param hasSeed Whether or not a seed was provided\n * @param emitOnNext Whether or not to emit the state on next\n * @param emitBeforeComplete Whether or not to emit the before completion\n */\n\nexport function scanInternals<V, A, S>(\n  accumulator: (acc: V | A | S, value: V, index: number) => A,\n  seed: S,\n  hasSeed: boolean,\n  emitOnNext: boolean,\n  emitBeforeComplete?: undefined | true\n) {\n  return (source: Observable<V>, subscriber: Subscriber<any>) => {\n    // Whether or not we have state yet. This will only be\n    // false before the first value arrives if we didn't get\n    // a seed value.\n    let hasState = hasSeed;\n    // The state that we're tracking, starting with the seed,\n    // if there is one, and then updated by the return value\n    // from the accumulator on each emission.\n    let state: any = seed;\n    // An index to pass to the accumulator function.\n    let index = 0;\n\n    // Subscribe to our source. All errors and completions are passed through.\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Always increment the index.\n          const i = index++;\n          // Set the state\n          state = hasState\n            ? // We already have state, so we can get the new state from the accumulator\n              accumulator(state, value, i)\n            : // We didn't have state yet, a seed value was not provided, so\n\n              // we set the state to the first value, and mark that we have state now\n              ((hasState = true), value);\n\n          // Maybe send it to the consumer.\n          emitOnNext && subscriber.next(state);\n        },\n        // If an onComplete was given, call it, otherwise\n        // just pass through the complete notification to the consumer.\n        emitBeforeComplete &&\n          (() => {\n            hasState && subscriber.next(state);\n            subscriber.complete();\n          })\n      )\n    );\n  };\n}\n", "import { combineLatestInit } from '../observable/combineLatest';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  project: (...values: [T, ...A]) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  ...sourcesAndProject: [...ObservableInputTuple<A>, (...values: [T, ...A]) => R]\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/**\n * @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8.\n */\nexport function combineLatest<T, R>(...args: (ObservableInput<any> | ((...values: any[]) => R))[]): OperatorFunction<T, unknown> {\n  const resultSelector = popResultSelector(args);\n  return resultSelector\n    ? pipe(combineLatest(...(args as Array<ObservableInput<any>>)), mapOneOrManyArgs(resultSelector))\n    : operate((source, subscriber) => {\n        combineLatestInit([source, ...argsOrArgArray(args)])(subscriber);\n      });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { combineLatest } from './combineLatest';\n\n/**\n * Create an observable that combines the latest values from all passed observables and the source\n * into arrays and emits them.\n *\n * Returns an observable, that when subscribed to, will subscribe to the source observable and all\n * sources provided as arguments. Once all sources emit at least one value, all of the latest values\n * will be emitted as an array. After that, every time any source emits a value, all of the latest values\n * will be emitted as an array.\n *\n * This is a useful operator for eagerly calculating values based off of changed inputs.\n *\n * ## Example\n *\n * Simple concatenation of values from two inputs\n *\n * ```ts\n * import { fromEvent, combineLatestWith, map } from 'rxjs';\n *\n * // Setup: Add two inputs to the page\n * const input1 = document.createElement('input');\n * document.body.appendChild(input1);\n * const input2 = document.createElement('input');\n * document.body.appendChild(input2);\n *\n * // Get streams of changes\n * const input1Changes$ = fromEvent(input1, 'change');\n * const input2Changes$ = fromEvent(input2, 'change');\n *\n * // Combine the changes by adding them together\n * input1Changes$.pipe(\n *   combineLatestWith(input2Changes$),\n *   map(([e1, e2]) => (<HTMLInputElement>e1.target).value + ' - ' + (<HTMLInputElement>e2.target).value)\n * )\n * .subscribe(x => console.log(x));\n * ```\n *\n * @param otherSources the other sources to subscribe to.\n * @return A function that returns an Observable that emits the latest\n * emissions from both source and provided Observables.\n */\nexport function combineLatestWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, Cons<T, A>> {\n  return combineLatest(...otherSources);\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a notification from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent notification from each burst of emissions.</span>\n *\n * ![](debounceTime.png)\n *\n * `debounceTime` delays notifications emitted by the source Observable, but drops\n * previous pending delayed emissions if a new notification arrives on the source\n * Observable. This operator keeps track of the most recent notification from the\n * source Observable, and emits that only when `dueTime` has passed\n * without any other notification appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous notification will be dropped\n * and will not be emitted and a new `dueTime` is scheduled.\n * If the completing event happens during `dueTime` the last cached notification\n * is emitted before the completion event is forwarded to the output observable.\n * If the error event happens during `dueTime` or after it only the error event is\n * forwarded to the output observable. The cache notification is not emitted in this case.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * notification to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link SchedulerLike} for\n * managing timers.\n *\n * ## Example\n *\n * Emit the most recent click after a burst of clicks\n *\n * ```ts\n * import { fromEvent, debounceTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(debounceTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link throttle}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the timeout for each value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified `dueTime`, and may drop some values\n * if they occur too frequently.\n */\nexport function debounceTime<T>(dueTime: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let activeTask: Subscription | null = null;\n    let lastValue: T | null = null;\n    let lastTime: number | null = null;\n\n    const emit = () => {\n      if (activeTask) {\n        // We have a value! Free up memory first, then emit the value.\n        activeTask.unsubscribe();\n        activeTask = null;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n    };\n    function emitWhenIdle(this: SchedulerAction<unknown>) {\n      // This is called `dueTime` after the first value\n      // but we might have received new values during this window!\n\n      const targetTime = lastTime! + dueTime;\n      const now = scheduler.now();\n      if (now < targetTime) {\n        // On that case, re-schedule to the new target\n        activeTask = this.schedule(undefined, targetTime - now);\n        subscriber.add(activeTask);\n        return;\n      }\n\n      emit();\n    }\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value: T) => {\n          lastValue = value;\n          lastTime = scheduler.now();\n\n          // Only set up a task if it's not already up\n          if (!activeTask) {\n            activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n            subscriber.add(activeTask);\n          }\n        },\n        () => {\n          // Source completed.\n          // Emit any pending debounced values then complete\n          emit();\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Finalization.\n          lastValue = activeTask = null;\n        }\n      )\n    );\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * ![](defaultIfEmpty.png)\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * ## Example\n *\n * If no clicks happen in 5 seconds, then emit 'no clicks'\n *\n * ```ts\n * import { fromEvent, takeUntil, interval, defaultIfEmpty } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000)));\n * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param defaultValue The default value used if the source\n * Observable is empty.\n * @return A function that returns an Observable that emits either the\n * specified `defaultValue` if the source Observable emits no items, or the\n * values emitted by the source Observable.\n */\nexport function defaultIfEmpty<T, R>(defaultValue: R): OperatorFunction<T, T | R> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => {\n          if (!hasValue) {\n            subscriber.next(defaultValue!);\n          }\n          subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * ![](take.png)\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * ## Example\n *\n * Take the first 5 seconds of an infinite 1-second interval Observable\n *\n * ```ts\n * import { interval, take } from 'rxjs';\n *\n * const intervalCount = interval(1000);\n * const takeFive = intervalCount.pipe(take(5));\n * takeFive.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * ```\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of `next` values to emit.\n * @return A function that returns an Observable that emits only the first\n * `count` values emitted by the source Observable, or all of the values from\n * the source if the source emits fewer than `count` values.\n */\nexport function take<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? // If we are taking no values, that's empty.\n      () => EMPTY\n    : operate((source, subscriber) => {\n        let seen = 0;\n        source.subscribe(\n          createOperatorSubscriber(subscriber, (value) => {\n            // Increment the number of values we have seen,\n            // then check it against the allowed count to see\n            // if we are still letting values through.\n            if (++seen <= count) {\n              subscriber.next(value);\n              // If we have met or passed our allowed count,\n              // we need to complete. We have to do <= here,\n              // because re-entrant code will increment `seen` twice.\n              if (count <= seen) {\n                subscriber.complete();\n              }\n            }\n          })\n        );\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\n\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * ![](ignoreElements.png)\n *\n * The `ignoreElements` operator suppresses all items emitted by the source Observable,\n * but allows its termination notification (either `error` or `complete`) to pass through unchanged.\n *\n * If you do not care about the items being emitted by an Observable, but you do want to be notified\n * when it completes or when it terminates with an error, you can apply the `ignoreElements` operator\n * to the Observable, which will ensure that it will never call its observers\u2019 `next` handlers.\n *\n * ## Example\n *\n * Ignore all `next` emissions from the source\n *\n * ```ts\n * import { of, ignoreElements } from 'rxjs';\n *\n * of('you', 'talking', 'to', 'me')\n *   .pipe(ignoreElements())\n *   .subscribe({\n *     next: word => console.log(word),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // result:\n * // 'the end'\n * ```\n *\n * @return A function that returns an empty Observable that only calls\n * `complete` or `error`, based on which one is called by the source\n * Observable.\n */\nexport function ignoreElements(): OperatorFunction<unknown, never> {\n  return operate((source, subscriber) => {\n    source.subscribe(createOperatorSubscriber(subscriber, noop));\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { map } from './map';\n\n/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R>;\n/**\n * @deprecated Do not specify explicit type parameters. Signatures with type parameters\n * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9,\n * use {@link map} instead: `map(() => value)`.\n * */\nexport function mapTo<T, R>(value: R): OperatorFunction<T, R>;\n\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * ![](mapTo.png)\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * ## Example\n *\n * Map every click to the string `'Hi'`\n *\n * ```ts\n * import { fromEvent, mapTo } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const greetings = clicks.pipe(mapTo('Hi'));\n *\n * greetings.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link map}\n *\n * @param value The value to map each source value to.\n * @return A function that returns an Observable that emits the given `value`\n * every time the source Observable emits.\n * @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`.\n */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R> {\n  return map(() => value);\n}\n", "import { Observable } from '../Observable';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\n\n/** @deprecated The `subscriptionDelay` parameter will be removed in v8. */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay: Observable<any>\n): MonoTypeOperatorFunction<T>;\nexport function delayWhen<T>(delayDurationSelector: (value: T, index: number) => ObservableInput<any>): MonoTypeOperatorFunction<T>;\n\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * ![](delayWhen.png)\n *\n * `delayWhen` operator shifts each emitted value from the source Observable by\n * a time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the value emitted from\n * the source Observable as the first argument to the `delayDurationSelector`.\n * The `delayDurationSelector` function should return an {@link ObservableInput},\n * that is internally converted to an Observable that is called the \"duration\"\n * Observable.\n *\n * The source value is emitted on the output Observable only when the \"duration\"\n * Observable emits ({@link guide/glossary-and-semantics#next next}s) any value.\n * Upon that, the \"duration\" Observable gets unsubscribed.\n *\n * Before RxJS V7, the {@link guide/glossary-and-semantics#complete completion}\n * of the \"duration\" Observable would have been triggering the emission of the\n * source value to the output Observable, but with RxJS V7, this is not the case\n * anymore.\n *\n * Only next notifications (from the \"duration\" Observable) trigger values from\n * the source Observable to be passed to the output Observable. If the \"duration\"\n * Observable only emits the complete notification (without next), the value\n * emitted by the source Observable will never get to the output Observable - it\n * will be swallowed. If the \"duration\" Observable errors, the error will be\n * propagated to the output Observable.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * ## Example\n *\n * Delay each click by a random amount of time, between 0 and 5 seconds\n *\n * ```ts\n * import { fromEvent, delayWhen, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(\n *   delayWhen(() => interval(Math.random() * 5000))\n * );\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delay}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param delayDurationSelector A function that returns an `ObservableInput` for\n * each `value` emitted by the source Observable, which is then used to delay the\n * emission of that `value` on the output Observable until the `ObservableInput`\n * returned from this function emits a next value. When called, beside `value`,\n * this function receives a zero-based `index` of the emission order.\n * @param subscriptionDelay An Observable that triggers the subscription to the\n * source Observable once it emits any value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by an amount of time specified by the Observable\n * returned by `delayDurationSelector`.\n */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay?: Observable<any>\n): MonoTypeOperatorFunction<T> {\n  if (subscriptionDelay) {\n    // DEPRECATED PATH\n    return (source: Observable<T>) =>\n      concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n  }\n\n  return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\n\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * ![](delay.svg)\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * ## Examples\n *\n * Delay each click by one second\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(delay(1000)); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * Delay all clicks until a future date happens\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const date = new Date('March 15, 2050 12:00:00'); // in the future\n * const delayedClicks = clicks.pipe(delay(date)); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delayWhen}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param {number|Date} due The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the time-shift for each item.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified timeout or Date.\n */\nexport function delay<T>(due: number | Date, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  const duration = timer(due, scheduler);\n  return delayWhen(() => duration);\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function distinctUntilChanged<T>(comparator?: (previous: T, current: T) => boolean): MonoTypeOperatorFunction<T>;\nexport function distinctUntilChanged<T, K>(\n  comparator: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a result {@link Observable} that emits all values pushed by the source observable if they\n * are distinct in comparison to the last value the result observable emitted.\n *\n * When provided without parameters or with the first parameter (`{@link distinctUntilChanged#comparator comparator}`),\n * it behaves like this:\n *\n * 1. It will always emit the first value from the source.\n * 2. For all subsequent values pushed by the source, they will be compared to the previously emitted values\n *    using the provided `comparator` or an `===` equality check.\n * 3. If the value pushed by the source is determined to be unequal by this check, that value is emitted and\n *    becomes the new \"previously emitted value\" internally.\n *\n * When the second parameter (`{@link distinctUntilChanged#keySelector keySelector}`) is provided, the behavior\n * changes:\n *\n * 1. It will always emit the first value from the source.\n * 2. The `keySelector` will be run against all values, including the first value.\n * 3. For all values after the first, the selected key will be compared against the key selected from\n *    the previously emitted value using the `comparator`.\n * 4. If the keys are determined to be unequal by this check, the value (not the key), is emitted\n *    and the selected key from that value is saved for future comparisons against other keys.\n *\n * ## Examples\n *\n * A very basic example with no `{@link distinctUntilChanged#comparator comparator}`. Note that `1` is emitted more than once,\n * because it's distinct in comparison to the _previously emitted_ value,\n * not in comparison to _all other emitted values_.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * of(1, 1, 1, 2, 2, 2, 1, 1, 3, 3)\n *   .pipe(distinctUntilChanged())\n *   .subscribe(console.log);\n * // Logs: 1, 2, 1, 3\n * ```\n *\n * With a `{@link distinctUntilChanged#comparator comparator}`, you can do custom comparisons. Let's say\n * you only want to emit a value when all of its components have\n * changed:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const totallyDifferentBuilds$ = of(\n *   { engineVersion: '1.1.0', transmissionVersion: '1.2.0' },\n *   { engineVersion: '1.1.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.5.0' },\n *   { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ).pipe(\n *   distinctUntilChanged((prev, curr) => {\n *     return (\n *       prev.engineVersion === curr.engineVersion ||\n *       prev.transmissionVersion === curr.transmissionVersion\n *     );\n *   })\n * );\n *\n * totallyDifferentBuilds$.subscribe(console.log);\n *\n * // Logs:\n * // { engineVersion: '1.1.0', transmissionVersion: '1.2.0' }\n * // { engineVersion: '1.3.0', transmissionVersion: '1.4.0' }\n * // { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ```\n *\n * You can also provide a custom `{@link distinctUntilChanged#comparator comparator}` to check that emitted\n * changes are only in one direction. Let's say you only want to get\n * the next record temperature:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const temps$ = of(30, 31, 20, 34, 33, 29, 35, 20);\n *\n * const recordHighs$ = temps$.pipe(\n *   distinctUntilChanged((prevHigh, temp) => {\n *     // If the current temp is less than\n *     // or the same as the previous record,\n *     // the record hasn't changed.\n *     return temp <= prevHigh;\n *   })\n * );\n *\n * recordHighs$.subscribe(console.log);\n * // Logs: 30, 31, 34, 35\n * ```\n *\n * Selecting update events only when the `updatedBy` field shows\n * the account changed hands.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * // A stream of updates to a given account\n * const accountUpdates$ = of(\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'blesh', data: [] }\n * );\n *\n * // We only want the events where it changed hands\n * const changedHands$ = accountUpdates$.pipe(\n *   distinctUntilChanged(undefined, update => update.updatedBy)\n * );\n *\n * changedHands$.subscribe(console.log);\n * // Logs:\n * // { updatedBy: 'blesh', data: Array[0] }\n * // { updatedBy: 'ncjamieson', data: Array[0] }\n * // { updatedBy: 'blesh', data: Array[0] }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param comparator A function used to compare the previous and current keys for\n * equality. Defaults to a `===` check.\n * @param keySelector Used to select a key value to be passed to the `comparator`.\n *\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values.\n */\nexport function distinctUntilChanged<T, K>(\n  comparator?: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K = identity as (value: T) => K\n): MonoTypeOperatorFunction<T> {\n  // We've been allowing `null` do be passed as the `compare`, so we can't do\n  // a default value for the parameter, because that will only work\n  // for `undefined`.\n  comparator = comparator ?? defaultCompare;\n\n  return operate((source, subscriber) => {\n    // The previous key, used to compare against keys selected\n    // from new arrivals to determine \"distinctiveness\".\n    let previousKey: K;\n    // Whether or not this is the first value we've gotten.\n    let first = true;\n\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        // We always call the key selector.\n        const currentKey = keySelector(value);\n\n        // If it's the first value, we always emit it.\n        // Otherwise, we compare this key to the previous key, and\n        // if the comparer returns false, we emit.\n        if (first || !comparator!(previousKey, currentKey)) {\n          // Update our state *before* we emit the value\n          // as emission can be the source of re-entrant code\n          // in functional libraries like this. We only really\n          // need to do this if it's the first value, or if the\n          // key we're tracking in previous needs to change.\n          first = false;\n          previousKey = currentKey;\n\n          // Emit the value!\n          subscriber.next(value);\n        }\n      })\n    );\n  });\n}\n\nfunction defaultCompare(a: any, b: any) {\n  return a === b;\n}\n", "import { distinctUntilChanged } from './distinctUntilChanged';\nimport { MonoTypeOperatorFunction } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function distinctUntilKeyChanged<T>(key: keyof T): MonoTypeOperatorFunction<T>;\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * ## Examples\n *\n * An example comparing the name of persons\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo' },\n *   { age: 6, name: 'Foo' }\n * ).pipe(\n *   distinctUntilKeyChanged('name')\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n * ```\n *\n * An example comparing the first letters of the name\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo1' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo2' },\n *   { age: 6, name: 'Foo3' }\n * ).pipe(\n *   distinctUntilKeyChanged('name', (x, y) => x.substring(0, 3) === y.substring(0, 3))\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo1' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo2' }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n *\n * @param {string} key String key for object property lookup on each item.\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values based on the key specified.\n */\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare?: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T> {\n  return distinctUntilChanged((x: T, y: T) => compare ? compare(x[key], y[key]) : x[key] === y[key]);\n}\n", "import { EmptyError } from '../util/EmptyError';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * If the source observable completes without emitting a value, it will emit\n * an error. The error will be created at that time by the optional\n * `errorFactory` argument, otherwise, the error will be {@link EmptyError}.\n *\n * ![](throwIfEmpty.png)\n *\n * ## Example\n *\n * Throw an error if the document wasn't clicked within 1 second\n *\n * ```ts\n * import { fromEvent, takeUntil, timer, throwIfEmpty } from 'rxjs';\n *\n * const click$ = fromEvent(document, 'click');\n *\n * click$.pipe(\n *   takeUntil(timer(1000)),\n *   throwIfEmpty(() => new Error('The document was not clicked within 1 second'))\n * )\n * .subscribe({\n *   next() {\n *    console.log('The document was clicked');\n *   },\n *   error(err) {\n *     console.error(err.message);\n *   }\n * });\n * ```\n *\n * @param errorFactory A factory function called to produce the\n * error to be thrown when the source observable completes without emitting a\n * value.\n * @return A function that returns an Observable that throws an error if the\n * source Observable completed without emitting.\n */\nexport function throwIfEmpty<T>(errorFactory: () => any = defaultErrorFactory): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))\n      )\n    );\n  });\n}\n\nfunction defaultErrorFactory() {\n  return new EmptyError();\n}\n", "/** prettier */\nimport { Observable } from '../Observable';\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nimport { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ValueFromArray } from '../types';\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T>(scheduler: SchedulerLike): MonoTypeOperatorFunction<T>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T, A extends unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\n\nexport function endWith<T, A extends unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that will emit all values from the source, then synchronously emit\n * the provided value(s) immediately after the source completes.\n *\n * NOTE: Passing a last argument of a Scheduler is _deprecated_, and may result in incorrect\n * types in TypeScript.\n *\n * This is useful for knowing when an observable ends. Particularly when paired with an\n * operator like {@link takeUntil}\n *\n * ![](endWith.png)\n *\n * ## Example\n *\n * Emit values to know when an interval starts and stops. The interval will\n * stop when a user clicks anywhere on the document.\n *\n * ```ts\n * import { interval, map, fromEvent, startWith, takeUntil, endWith } from 'rxjs';\n *\n * const ticker$ = interval(5000).pipe(\n *   map(() => 'tick')\n * );\n *\n * const documentClicks$ = fromEvent(document, 'click');\n *\n * ticker$.pipe(\n *   startWith('interval started'),\n *   takeUntil(documentClicks$),\n *   endWith('interval ended by click')\n * )\n * .subscribe(x => console.log(x));\n *\n * // Result (assuming a user clicks after 15 seconds)\n * // 'interval started'\n * // 'tick'\n * // 'tick'\n * // 'tick'\n * // 'interval ended by click'\n * ```\n *\n * @see {@link startWith}\n * @see {@link concat}\n * @see {@link takeUntil}\n *\n * @param values Items you want the modified Observable to emit last.\n * @return A function that returns an Observable that emits all values from the\n * source, then synchronously emits the provided value(s) immediately after the\n * source completes.\n */\nexport function endWith<T>(...values: Array<T | SchedulerLike>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => concat(source, of(...values)) as Observable<T>;\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * The specified function will also be called when the subscriber explicitly unsubscribes.\n *\n * ## Examples\n *\n * Execute callback function when the observable completes\n *\n * ```ts\n * import { interval, take, finalize } from 'rxjs';\n *\n * // emit value in sequence every 1 second\n * const source = interval(1000);\n * const example = source.pipe(\n *   take(5), //take only the first 5 values\n *   finalize(() => console.log('Sequence complete')) // Execute when the observable completes\n * );\n * const subscribe = example.subscribe(val => console.log(val));\n *\n * // results:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * // 'Sequence complete'\n * ```\n *\n * Execute callback function when the subscriber explicitly unsubscribes\n *\n * ```ts\n * import { interval, finalize, tap, noop, timer } from 'rxjs';\n *\n * const source = interval(100).pipe(\n *   finalize(() => console.log('[finalize] Called')),\n *   tap({\n *     next: () => console.log('[next] Called'),\n *     error: () => console.log('[error] Not called'),\n *     complete: () => console.log('[tap complete] Not called')\n *   })\n * );\n *\n * const sub = source.subscribe({\n *   next: x => console.log(x),\n *   error: noop,\n *   complete: () => console.log('[complete] Not called')\n * });\n *\n * timer(150).subscribe(() => sub.unsubscribe());\n *\n * // results:\n * // '[next] Called'\n * // 0\n * // '[finalize] Called'\n * ```\n *\n * @param {function} callback Function to be called when source terminates.\n * @return A function that returns an Observable that mirrors the source, but\n * will call the specified function on termination.\n */\nexport function finalize<T>(callback: () => void): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // TODO: This try/finally was only added for `useDeprecatedSynchronousErrorHandling`.\n    // REMOVE THIS WHEN THAT HOT GARBAGE IS REMOVED IN V8.\n    try {\n      source.subscribe(subscriber);\n    } finally {\n      subscriber.add(callback);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { EmptyError } from '../util/EmptyError';\nimport { OperatorFunction, TruthyTypesOf } from '../types';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\n\nexport function first<T, D = T>(predicate?: null, defaultValue?: D): OperatorFunction<T, T | D>;\nexport function first<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function first<T, D>(predicate: BooleanConstructor, defaultValue: D): OperatorFunction<T, TruthyTypesOf<T> | D>;\nexport function first<T, S extends T>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue?: S\n): OperatorFunction<T, S>;\nexport function first<T, S extends T, D>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue: D\n): OperatorFunction<T, S | D>;\nexport function first<T, D = T>(\n  predicate: (value: T, index: number, source: Observable<T>) => boolean,\n  defaultValue?: D\n): OperatorFunction<T, T | D>;\n\n/**\n * Emits only the first value (or the first value that meets some condition)\n * emitted by the source Observable.\n *\n * <span class=\"informal\">Emits only the first value. Or emits only the first\n * value that passes some test.</span>\n *\n * ![](first.png)\n *\n * If called with no arguments, `first` emits the first value of the source\n * Observable, then completes. If called with a `predicate` function, `first`\n * emits the first value of the source that matches the specified condition. Throws an error if\n * `defaultValue` was not provided and a matching element is not found.\n *\n * ## Examples\n *\n * Emit only the first click that happens on the DOM\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first());\n * result.subscribe(x => console.log(x));\n * ```\n *\n * Emits the first click that happens on a DIV\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link take}\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * This is how `first()` is different from {@link take}(1) which completes instead.\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\n * An optional function called with each item to test for condition matching.\n * @param {D} [defaultValue] The default value emitted in case no valid value\n * was found on the source.\n * @return A function that returns an Observable that emits the first item that\n * matches the condition.\n */\nexport function first<T, D>(\n  predicate?: ((value: T, index: number, source: Observable<T>) => boolean) | null,\n  defaultValue?: D\n): OperatorFunction<T, T | D> {\n  const hasDefaultValue = arguments.length >= 2;\n  return (source: Observable<T>) =>\n    source.pipe(\n      predicate ? filter((v, i) => predicate(v, i, source)) : identity,\n      take(1),\n      hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new EmptyError())\n    );\n}\n", "import { EMPTY } from '../observable/empty';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Waits for the source to complete, then emits the last N values from the source,\n * as specified by the `count` argument.\n *\n * ![](takeLast.png)\n *\n * `takeLast` results in an observable that will hold values up to `count` values in memory,\n * until the source completes. It then pushes all values in memory to the consumer, in the\n * order they were received from the source, then notifies the consumer that it is\n * complete.\n *\n * If for some reason the source completes before the `count` supplied to `takeLast` is reached,\n * all values received until that point are emitted, and then completion is notified.\n *\n * **Warning**: Using `takeLast` with an observable that never completes will result\n * in an observable that never emits a value.\n *\n * ## Example\n *\n * Take the last 3 values of an Observable with many values\n *\n * ```ts\n * import { range, takeLast } from 'rxjs';\n *\n * const many = range(1, 100);\n * const lastThree = many.pipe(takeLast(3));\n * lastThree.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return A function that returns an Observable that emits at most the last\n * `count` values emitted by the source Observable.\n */\nexport function takeLast<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        // This buffer will hold the values we are going to emit\n        // when the source completes. Since we only want to take the\n        // last N values, we can't emit until we're sure we're not getting\n        // any more values.\n        let buffer: T[] = [];\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              // Add the most recent value onto the end of our buffer.\n              buffer.push(value);\n              // If our buffer is now larger than the number of values we\n              // want to take, we remove the oldest value from the buffer.\n              count < buffer.length && buffer.shift();\n            },\n            () => {\n              // The source completed, we now know what are last values\n              // are, emit them in the order they were received.\n              for (const value of buffer) {\n                subscriber.next(value);\n              }\n              subscriber.complete();\n            },\n            // Errors are passed through to the consumer\n            undefined,\n            () => {\n              // During finalization release the values in our buffer.\n              buffer = null!;\n            }\n          )\n        );\n      });\n}\n", "import { ObservableInput, ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mergeAll } from './mergeAll';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from '../observable/from';\n\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrency: [...ObservableInputTuple<A>, number]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n\nexport function merge<T>(...args: unknown[]): OperatorFunction<T, unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  args = argsOrArgArray(args);\n\n  return operate((source, subscriber) => {\n    mergeAll(concurrent)(from([source, ...(args as ObservableInput<T>[])], scheduler)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction } from '../types';\nimport { merge } from './merge';\n\n/**\n * Merge the values from all observables to a single observable result.\n *\n * Creates an observable, that when subscribed to, subscribes to the source\n * observable, and all other sources provided as arguments. All values from\n * every source are emitted from the resulting subscription.\n *\n * When all sources complete, the resulting observable will complete.\n *\n * When any source errors, the resulting observable will error.\n *\n * ## Example\n *\n * Joining all outputs from multiple user input event streams\n *\n * ```ts\n * import { fromEvent, map, mergeWith } from 'rxjs';\n *\n * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click'));\n * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove'));\n * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick'));\n *\n * mousemoves$\n *   .pipe(mergeWith(clicks$, dblclicks$))\n *   .subscribe(x => console.log(x));\n *\n * // result (assuming user interactions)\n * // 'mousemove'\n * // 'mousemove'\n * // 'mousemove'\n * // 'click'\n * // 'click'\n * // 'dblclick'\n * ```\n *\n * @see {@link merge}\n *\n * @param otherSources the sources to combine the current source with.\n * @return A function that returns an Observable that merges the values from\n * all given Observables.\n */\nexport function mergeWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, T | A[number]> {\n  return merge(...otherSources);\n}\n", "import { Subscription } from '../Subscription';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\n\nexport interface RepeatConfig {\n  /**\n   * The number of times to repeat the source. Defaults to `Infinity`.\n   */\n  count?: number;\n\n  /**\n   * If a `number`, will delay the repeat of the source by that number of milliseconds.\n   * If a function, it will provide the number of times the source has been subscribed to,\n   * and the return value should be a valid observable input that will notify when the source\n   * should be repeated. If the notifier observable is empty, the result will complete.\n   */\n  delay?: number | ((count: number) => ObservableInput<any>);\n}\n\n/**\n * Returns an Observable that will resubscribe to the source stream when the source stream completes.\n *\n * <span class=\"informal\">Repeats all values emitted on the source. It's like {@link retry}, but for non error cases.</span>\n *\n * ![](repeat.png)\n *\n * Repeat will output values from a source until the source completes, then it will resubscribe to the\n * source a specified number of times, with a specified delay. Repeat can be particularly useful in\n * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile},\n * as it can be used to restart a source again from scratch.\n *\n * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but\n * `repeat` will resubscribe if the source completes.\n *\n * Note that `repeat` will _not_ catch errors. Use {@link retry} for that.\n *\n * - `repeat(0)` returns an empty observable\n * - `repeat()` will repeat forever\n * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions.\n * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions.\n * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition.\n *\n * ## Example\n *\n * Repeat a message stream\n *\n * ```ts\n * import { of, repeat } from 'rxjs';\n *\n * const source = of('Repeat message');\n * const result = source.pipe(repeat(3));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results\n * // 'Repeat message'\n * // 'Repeat message'\n * // 'Repeat message'\n * ```\n *\n * Repeat 3 values, 2 times\n *\n * ```ts\n * import { interval, take, repeat } from 'rxjs';\n *\n * const source = interval(1000);\n * const result = source.pipe(take(3), repeat(2));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results every second\n * // 0\n * // 1\n * // 2\n * // 0\n * // 1\n * // 2\n * ```\n *\n * Defining two complex repeats with delays on the same source.\n * Note that the second repeat cannot be called until the first\n * repeat as exhausted it's count.\n *\n * ```ts\n * import { defer, of, repeat } from 'rxjs';\n *\n * const source = defer(() => {\n *    return of(`Hello, it is ${new Date()}`)\n * });\n *\n * source.pipe(\n *    // Repeat 3 times with a delay of 1 second between repetitions\n *    repeat({\n *      count: 3,\n *      delay: 1000,\n *    }),\n *\n *    // *Then* repeat forever, but with an exponential step-back\n *    // maxing out at 1 minute.\n *    repeat({\n *      delay: (count) => timer(Math.min(60000, 2 ^ count * 1000))\n *    })\n * )\n * ```\n *\n * @see {@link repeatWhen}\n * @see {@link retry}\n *\n * @param count The number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n */\nexport function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T> {\n  let count = Infinity;\n  let delay: RepeatConfig['delay'];\n\n  if (countOrConfig != null) {\n    if (typeof countOrConfig === 'object') {\n      ({ count = Infinity, delay } = countOrConfig);\n    } else {\n      count = countOrConfig;\n    }\n  }\n\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        let soFar = 0;\n        let sourceSub: Subscription | null;\n\n        const resubscribe = () => {\n          sourceSub?.unsubscribe();\n          sourceSub = null;\n          if (delay != null) {\n            const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n            const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n              notifierSubscriber.unsubscribe();\n              subscribeToSource();\n            });\n            notifier.subscribe(notifierSubscriber);\n          } else {\n            subscribeToSource();\n          }\n        };\n\n        const subscribeToSource = () => {\n          let syncUnsub = false;\n          sourceSub = source.subscribe(\n            createOperatorSubscriber(subscriber, undefined, () => {\n              if (++soFar < count) {\n                if (sourceSub) {\n                  resubscribe();\n                } else {\n                  syncUnsub = true;\n                }\n              } else {\n                subscriber.complete();\n              }\n            })\n          );\n\n          if (syncUnsub) {\n            resubscribe();\n          }\n        };\n\n        subscribeToSource();\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\n\nexport function scan<V, A = V>(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction<V, V | A>;\nexport function scan<V, A>(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction<V, A>;\nexport function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction<V, A>;\n\n// TODO: link to a \"redux pattern\" section in the guide (location TBD)\n\n/**\n * Useful for encapsulating and managing state. Applies an accumulator (or \"reducer function\")\n * to each value from the source after an initial state is established -- either via\n * a `seed` value (second argument), or from the first value from the source.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation state after each update</span>\n *\n * ![](scan.png)\n *\n * This operator maintains an internal state and emits it after processing each value as follows:\n *\n * 1. First value arrives\n *   - If a `seed` value was supplied (as the second argument to `scan`), let `state = seed` and `value = firstValue`.\n *   - If NO `seed` value was supplied (no second argument), let `state = firstValue` and go to 3.\n * 2. Let `state = accumulator(state, value)`.\n *   - If an error is thrown by `accumulator`, notify the consumer of an error. The process ends.\n * 3. Emit `state`.\n * 4. Next value arrives, let `value = nextValue`, go to 2.\n *\n * ## Examples\n *\n * An average of previous numbers. This example shows how\n * not providing a `seed` can prime the stream with the\n * first value from the source.\n *\n * ```ts\n * import { of, scan, map } from 'rxjs';\n *\n * const numbers$ = of(1, 2, 3);\n *\n * numbers$\n *   .pipe(\n *     // Get the sum of the numbers coming in.\n *     scan((total, n) => total + n),\n *     // Get the average by dividing the sum by the total number\n *     // received so far (which is 1 more than the zero-based index).\n *     map((sum, index) => sum / (index + 1))\n *   )\n *   .subscribe(console.log);\n * ```\n *\n * The Fibonacci sequence. This example shows how you can use\n * a seed to prime accumulation process. Also... you know... Fibonacci.\n * So important to like, computers and stuff that its whiteboarded\n * in job interviews. Now you can show them the Rx version! (Please don't, haha)\n *\n * ```ts\n * import { interval, scan, map, startWith } from 'rxjs';\n *\n * const firstTwoFibs = [0, 1];\n * // An endless stream of Fibonacci numbers.\n * const fibonacci$ = interval(1000).pipe(\n *   // Scan to get the fibonacci numbers (after 0, 1)\n *   scan(([a, b]) => [b, a + b], firstTwoFibs),\n *   // Get the second number in the tuple, it's the one you calculated\n *   map(([, n]) => n),\n *   // Start with our first two digits :)\n *   startWith(...firstTwoFibs)\n * );\n *\n * fibonacci$.subscribe(console.log);\n * ```\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n * @see {@link switchScan}\n *\n * @param accumulator A \"reducer function\". This will be called for each value after an initial state is\n * acquired.\n * @param seed The initial state. If this is not provided, the first value from the source will\n * be used as the initial state, and emitted without going through the accumulator. All subsequent values\n * will be processed by the accumulator function. If this is provided, all values will go through\n * the accumulator function.\n * @return A function that returns an Observable of the accumulated values.\n */\nexport function scan<V, A, S>(accumulator: (acc: V | A | S, value: V, index: number) => A, seed?: S): OperatorFunction<V, V | A> {\n  // providing a seed of `undefined` *should* be valid and trigger\n  // hasSeed! so don't use `seed !== undefined` checks!\n  // For this reason, we have to check it here at the original call site\n  // otherwise inside Operator/Subscriber we won't know if `undefined`\n  // means they didn't provide anything or if they literally provided `undefined`\n  return operate(scanInternals(accumulator, seed as S, arguments.length >= 2, true));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\n\nexport interface ShareConfig<T> {\n  /**\n   * The factory used to create the subject that will connect the source observable to\n   * multicast consumers.\n   */\n  connector?: () => SubjectLike<T>;\n  /**\n   * If `true`, the resulting observable will reset internal state on error from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"retried\" in the event of an error.\n   * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent retries\n   * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however\n   * {@link ReplaySubject} will also push its buffered values before pushing the error.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnError?: boolean | ((error: any) => ObservableInput<any>);\n  /**\n   * If `true`, the resulting observable will reset internal state on completion from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"repeated\" after it is done.\n   * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent repeats\n   * or resubscriptions will resubscribe to that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnComplete?: boolean | (() => ObservableInput<any>);\n  /**\n   * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the\n   * internal state will be reset and the resulting observable will return to a \"cold\" state. This means that the next\n   * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to\n   * again.\n   * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject\n   * will remain connected to the source, and new subscriptions to the result will be connected through that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnRefCountZero?: boolean | (() => ObservableInput<any>);\n}\n\nexport function share<T>(): MonoTypeOperatorFunction<T>;\n\nexport function share<T>(options: ShareConfig<T>): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for `multicast(() => new Subject()), refCount()`.\n *\n * The subscription to the underlying source Observable can be reset (unsubscribe and resubscribe for new subscribers),\n * if the subscriber count to the shared observable drops to 0, or if the source Observable errors or completes. It is\n * possible to use notifier factories for the resets to allow for behaviors like conditional or delayed resets. Please\n * note that resetting on error or complete of the source Observable does not behave like a transparent retry or restart\n * of the source because the error or complete will be forwarded to all subscribers and their subscription will be\n * closed. Only new subscribers after a reset on error or complete happened will cause a fresh subscription to the\n * source. To achieve transparent retries or restarts pipe the source through appropriate operators before sharing.\n *\n * ![](share.png)\n *\n * ## Example\n *\n * Generate new multicast Observable from the `source` Observable value\n *\n * ```ts\n * import { interval, tap, map, take, share } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   tap(x => console.log('Processing: ', x)),\n *   map(x => x * x),\n *   take(6),\n *   share()\n * );\n *\n * source.subscribe(x => console.log('subscription 1: ', x));\n * source.subscribe(x => console.log('subscription 2: ', x));\n *\n * // Logs:\n * // Processing: 0\n * // subscription 1: 0\n * // subscription 2: 0\n * // Processing: 1\n * // subscription 1: 1\n * // subscription 2: 1\n * // Processing: 2\n * // subscription 1: 4\n * // subscription 2: 4\n * // Processing: 3\n * // subscription 1: 9\n * // subscription 2: 9\n * // Processing: 4\n * // subscription 1: 16\n * // subscription 2: 16\n * // Processing: 5\n * // subscription 1: 25\n * // subscription 2: 25\n * ```\n *\n * ## Example with notifier factory: Delayed reset\n *\n * ```ts\n * import { interval, take, share, timer } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   take(3),\n *   share({\n *     resetOnRefCountZero: () => timer(1000)\n *   })\n * );\n *\n * const subscriptionOne = source.subscribe(x => console.log('subscription 1: ', x));\n * setTimeout(() => subscriptionOne.unsubscribe(), 1300);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 2: ', x)), 1700);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 3: ', x)), 5000);\n *\n * // Logs:\n * // subscription 1:  0\n * // (subscription 1 unsubscribes here)\n * // (subscription 2 subscribes here ~400ms later, source was not reset)\n * // subscription 2:  1\n * // subscription 2:  2\n * // (subscription 2 unsubscribes here)\n * // (subscription 3 subscribes here ~2000ms later, source did reset before)\n * // subscription 3:  0\n * // subscription 3:  1\n * // subscription 3:  2\n * ```\n *\n * @see {@link shareReplay}\n *\n * @return A function that returns an Observable that mirrors the source.\n */\nexport function share<T>(options: ShareConfig<T> = {}): MonoTypeOperatorFunction<T> {\n  const { connector = () => new Subject<T>(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options;\n  // It's necessary to use a wrapper here, as the _operator_ must be\n  // referentially transparent. Otherwise, it cannot be used in calls to the\n  // static `pipe` function - to create a partial pipeline.\n  //\n  // The _operator function_ - the function returned by the _operator_ - will\n  // not be referentially transparent - as it shares its source - but the\n  // _operator function_ is called when the complete pipeline is composed via a\n  // call to a source observable's `pipe` method - not when the static `pipe`\n  // function is called.\n  return (wrapperSource) => {\n    let connection: SafeSubscriber<T> | undefined;\n    let resetConnection: Subscription | undefined;\n    let subject: SubjectLike<T> | undefined;\n    let refCount = 0;\n    let hasCompleted = false;\n    let hasErrored = false;\n\n    const cancelReset = () => {\n      resetConnection?.unsubscribe();\n      resetConnection = undefined;\n    };\n    // Used to reset the internal state to a \"cold\"\n    // state, as though it had never been subscribed to.\n    const reset = () => {\n      cancelReset();\n      connection = subject = undefined;\n      hasCompleted = hasErrored = false;\n    };\n    const resetAndUnsubscribe = () => {\n      // We need to capture the connection before\n      // we reset (if we need to reset).\n      const conn = connection;\n      reset();\n      conn?.unsubscribe();\n    };\n\n    return operate<T, T>((source, subscriber) => {\n      refCount++;\n      if (!hasErrored && !hasCompleted) {\n        cancelReset();\n      }\n\n      // Create the subject if we don't have one yet. Grab a local reference to\n      // it as well, which avoids non-null assertions when using it and, if we\n      // connect to it now, then error/complete need a reference after it was\n      // reset.\n      const dest = (subject = subject ?? connector());\n\n      // Add the finalization directly to the subscriber - instead of returning it -\n      // so that the handling of the subscriber's unsubscription will be wired\n      // up _before_ the subscription to the source occurs. This is done so that\n      // the assignment to the source connection's `closed` property will be seen\n      // by synchronous firehose sources.\n      subscriber.add(() => {\n        refCount--;\n\n        // If we're resetting on refCount === 0, and it's 0, we only want to do\n        // that on \"unsubscribe\", really. Resetting on error or completion is a different\n        // configuration.\n        if (refCount === 0 && !hasErrored && !hasCompleted) {\n          resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n        }\n      });\n\n      // The following line adds the subscription to the subscriber passed.\n      // Basically, `subscriber === dest.subscribe(subscriber)` is `true`.\n      dest.subscribe(subscriber);\n\n      if (\n        !connection &&\n        // Check this shareReplay is still activate - it can be reset to 0\n        // and be \"unsubscribed\" _before_ it actually subscribes.\n        // If we were to subscribe then, it'd leak and get stuck.\n        refCount > 0\n      ) {\n        // We need to create a subscriber here - rather than pass an observer and\n        // assign the returned subscription to connection - because it's possible\n        // for reentrant subscriptions to the shared observable to occur and in\n        // those situations we want connection to be already-assigned so that we\n        // don't create another connection to the source.\n        connection = new SafeSubscriber({\n          next: (value) => dest.next(value),\n          error: (err) => {\n            hasErrored = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnError, err);\n            dest.error(err);\n          },\n          complete: () => {\n            hasCompleted = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnComplete);\n            dest.complete();\n          },\n        });\n        innerFrom(source).subscribe(connection);\n      }\n    })(wrapperSource);\n  };\n}\n\nfunction handleReset<T extends unknown[] = never[]>(\n  reset: () => void,\n  on: boolean | ((...args: T) => ObservableInput<any>),\n  ...args: T\n): Subscription | undefined {\n  if (on === true) {\n    reset();\n    return;\n  }\n\n  if (on === false) {\n    return;\n  }\n\n  const onSubscriber = new SafeSubscriber({\n    next: () => {\n      onSubscriber.unsubscribe();\n      reset();\n    },\n  });\n\n  return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n", "import { ReplaySubject } from '../ReplaySubject';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { share } from './share';\n\nexport interface ShareReplayConfig {\n  bufferSize?: number;\n  windowTime?: number;\n  refCount: boolean;\n  scheduler?: SchedulerLike;\n}\n\nexport function shareReplay<T>(config: ShareReplayConfig): MonoTypeOperatorFunction<T>;\nexport function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;\n\n/**\n * Share source and replay specified number of emissions on subscription.\n *\n * This operator is a specialization of `replay` that connects to a source observable\n * and multicasts through a `ReplaySubject` constructed with the specified arguments.\n * A successfully completed source will stay cached in the `shareReplay`ed observable forever,\n * but an errored source can be retried.\n *\n * ## Why use `shareReplay`?\n *\n * You generally want to use `shareReplay` when you have side-effects or taxing computations\n * that you do not wish to be executed amongst multiple subscribers.\n * It may also be valuable in situations where you know you will have late subscribers to\n * a stream that need access to previously emitted values.\n * This ability to replay values on subscription is what differentiates {@link share} and `shareReplay`.\n *\n * ## Reference counting\n *\n * By default `shareReplay` will use `refCount` of false, meaning that it will _not_ unsubscribe the\n * source when the reference counter drops to zero, i.e. the inner `ReplaySubject` will _not_ be unsubscribed\n * (and potentially run for ever).\n * This is the default as it is expected that `shareReplay` is often used to keep around expensive to setup\n * observables which we want to keep running instead of having to do the expensive setup again.\n *\n * As of RXJS version 6.4.0 a new overload signature was added to allow for manual control over what\n * happens when the operators internal reference counter drops to zero.\n * If `refCount` is true, the source will be unsubscribed from once the reference count drops to zero, i.e.\n * the inner `ReplaySubject` will be unsubscribed. All new subscribers will receive value emissions from a\n * new `ReplaySubject` which in turn will cause a new subscription to the source observable.\n *\n * ## Examples\n *\n * Example with a third subscriber coming late to the party\n *\n * ```ts\n * import { interval, take, shareReplay } from 'rxjs';\n *\n * const shared$ = interval(2000).pipe(\n *   take(6),\n *   shareReplay(3)\n * );\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * setTimeout(() => {\n *   shared$.subscribe(y => console.log('sub C: ', y));\n * }, 11000);\n *\n * // Logs:\n * // (after ~2000 ms)\n * // sub A: 0\n * // sub B: 0\n * // (after ~4000 ms)\n * // sub A: 1\n * // sub B: 1\n * // (after ~6000 ms)\n * // sub A: 2\n * // sub B: 2\n * // (after ~8000 ms)\n * // sub A: 3\n * // sub B: 3\n * // (after ~10000 ms)\n * // sub A: 4\n * // sub B: 4\n * // (after ~11000 ms, sub C gets the last 3 values)\n * // sub C: 2\n * // sub C: 3\n * // sub C: 4\n * // (after ~12000 ms)\n * // sub A: 5\n * // sub B: 5\n * // sub C: 5\n * ```\n *\n * Example for `refCount` usage\n *\n * ```ts\n * import { Observable, tap, interval, shareReplay, take } from 'rxjs';\n *\n * const log = <T>(name: string, source: Observable<T>) => source.pipe(\n *   tap({\n *     subscribe: () => console.log(`${ name }: subscribed`),\n *     next: value => console.log(`${ name }: ${ value }`),\n *     complete: () => console.log(`${ name }: completed`),\n *     finalize: () => console.log(`${ name }: unsubscribed`)\n *   })\n * );\n *\n * const obs$ = log('source', interval(1000));\n *\n * const shared$ = log('shared', obs$.pipe(\n *   shareReplay({ bufferSize: 1, refCount: true }),\n *   take(2)\n * ));\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * // PRINTS:\n * // shared: subscribed <-- reference count = 1\n * // source: subscribed\n * // shared: subscribed <-- reference count = 2\n * // source: 0\n * // shared: 0\n * // sub A: 0\n * // shared: 0\n * // sub B: 0\n * // source: 1\n * // shared: 1\n * // sub A: 1\n * // shared: completed <-- take(2) completes the subscription for sub A\n * // shared: unsubscribed <-- reference count = 1\n * // shared: 1\n * // sub B: 1\n * // shared: completed <-- take(2) completes the subscription for sub B\n * // shared: unsubscribed <-- reference count = 0\n * // source: unsubscribed <-- replaySubject unsubscribes from source observable because the reference count dropped to 0 and refCount is true\n *\n * // In case of refCount being false, the unsubscribe is never called on the source and the source would keep on emitting, even if no subscribers\n * // are listening.\n * // source: 2\n * // source: 3\n * // source: 4\n * // ...\n * ```\n *\n * @see {@link publish}\n * @see {@link share}\n * @see {@link publishReplay}\n *\n * @param configOrBufferSize Maximum element count of the replay buffer or {@link ShareReplayConfig configuration}\n * object.\n * @param windowTime Maximum time length of the replay buffer in milliseconds.\n * @param scheduler Scheduler where connected observers within the selector function\n * will be invoked on.\n * @return A function that returns an Observable sequence that contains the\n * elements of a sequence produced by multicasting the source sequence within a\n * selector function.\n */\nexport function shareReplay<T>(\n  configOrBufferSize?: ShareReplayConfig | number,\n  windowTime?: number,\n  scheduler?: SchedulerLike\n): MonoTypeOperatorFunction<T> {\n  let bufferSize: number;\n  let refCount = false;\n  if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n    ({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize);\n  } else {\n    bufferSize = (configOrBufferSize ?? Infinity) as number;\n  }\n  return share<T>({\n    connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n    resetOnError: true,\n    resetOnComplete: false,\n    resetOnRefCountZero: refCount,\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { filter } from './filter';\n\n/**\n * Returns an Observable that skips the first `count` items emitted by the source Observable.\n *\n * ![](skip.png)\n *\n * Skips the values until the sent notifications are equal or less than provided skip count. It raises\n * an error if skip count is equal or more than the actual number of emits and source raises an error.\n *\n * ## Example\n *\n * Skip the values before the emission\n *\n * ```ts\n * import { interval, skip } from 'rxjs';\n *\n * // emit every half second\n * const source = interval(500);\n * // skip the first 10 emitted values\n * const result = source.pipe(skip(10));\n *\n * result.subscribe(value => console.log(value));\n * // output: 10...11...12...13...\n * ```\n *\n * @see {@link last}\n * @see {@link skipWhile}\n * @see {@link skipUntil}\n * @see {@link skipLast}\n *\n * @param {Number} count - The number of times, items emitted by source Observable should be skipped.\n * @return A function that returns an Observable that skips the first `count`\n * values emitted by the source Observable.\n */\nexport function skip<T>(count: number): MonoTypeOperatorFunction<T> {\n  return filter((_, index) => count <= index);\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable\n * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP\n * requests or waiting for specific times to pass by.\n *\n * ![](skipUntil.png)\n *\n * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted\n * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator\n * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It\n * will never let the *source* observable emit any values if the `notifier` completes or throws an error without\n * emitting a value before.\n *\n * ## Example\n *\n * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere\n * within the page\n *\n * ```ts\n * import { interval, fromEvent, skipUntil } from 'rxjs';\n *\n * const intervalObservable = interval(1000);\n * const click = fromEvent(document, 'click');\n *\n * const emitAfterClick = intervalObservable.pipe(\n *   skipUntil(click)\n * );\n * // clicked at 4.6s. output: 5...6...7...8........ or\n * // clicked at 7.3s. output: 8...9...10..11.......\n * emitAfterClick.subscribe(value => console.log(value));\n * ```\n *\n * @see {@link last}\n * @see {@link skip}\n * @see {@link skipWhile}\n * @see {@link skipLast}\n *\n * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to\n * be mirrored by the resulting Observable.\n * @return A function that returns an Observable that skips items from the\n * source Observable until the `notifier` Observable emits an item, then emits the\n * remaining items.\n */\nexport function skipUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let taking = false;\n\n    const skipSubscriber = createOperatorSubscriber(\n      subscriber,\n      () => {\n        skipSubscriber?.unsubscribe();\n        taking = true;\n      },\n      noop\n    );\n\n    innerFrom(notifier).subscribe(skipSubscriber);\n\n    source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value)));\n  });\n}\n", "import { concat } from '../observable/concat';\nimport { OperatorFunction, SchedulerLike, ValueFromArray } from '../types';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function startWith<T>(value: null): OperatorFunction<T, T | null>;\nexport function startWith<T>(value: undefined): OperatorFunction<T, T | undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function startWith<T, A extends readonly unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\nexport function startWith<T, A extends readonly unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that, at the moment of subscription, will synchronously emit all\n * values provided to this operator, then subscribe to the source and mirror all of its emissions\n * to subscribers.\n *\n * This is a useful way to know when subscription has occurred on an existing observable.\n *\n * <span class=\"informal\">First emits its arguments in order, and then any\n * emissions from the source.</span>\n *\n * ![](startWith.png)\n *\n * ## Examples\n *\n * Emit a value when a timer starts.\n *\n * ```ts\n * import { timer, map, startWith } from 'rxjs';\n *\n * timer(1000)\n *   .pipe(\n *     map(() => 'timer emit'),\n *     startWith('timer start')\n *   )\n *   .subscribe(x => console.log(x));\n *\n * // results:\n * // 'timer start'\n * // 'timer emit'\n * ```\n *\n * @param values Items you want the modified Observable to emit first.\n * @return A function that returns an Observable that synchronously emits\n * provided values before subscribing to the source Observable.\n *\n * @see {@link endWith}\n * @see {@link finalize}\n * @see {@link concat}\n */\nexport function startWith<T, D>(...values: D[]): OperatorFunction<T, T | D> {\n  const scheduler = popScheduler(values);\n  return operate((source, subscriber) => {\n    // Here we can't pass `undefined` as a scheduler, because if we did, the\n    // code inside of `concat` would be confused by the `undefined`, and treat it\n    // like an invalid observable. So we have to split it two different ways.\n    (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n  });\n}\n", "import { Subscriber } from '../Subscriber';\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/* tslint:disable:max-line-length */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switchAll}.</span>\n *\n * ![](switchMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * ## Example\n *\n * Generate new Observable according to source Observable values\n *\n * ```ts\n * import { of, switchMap } from 'rxjs';\n *\n * const switched = of(1, 2, 3).pipe(switchMap(x => of(x, x ** 2, x ** 3)));\n * switched.subscribe(x => console.log(x));\n * // outputs\n * // 1\n * // 1\n * // 1\n * // 2\n * // 4\n * // 8\n * // 3\n * // 9\n * // 27\n * ```\n *\n * Restart an interval Observable on every click event\n *\n * ```ts\n * import { fromEvent, switchMap, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(switchMap(() => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switchAll}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and taking\n * only the values from the most recently projected inner Observable.\n */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  return operate((source, subscriber) => {\n    let innerSubscriber: Subscriber<ObservedValueOf<O>> | null = null;\n    let index = 0;\n    // Whether or not the source subscription has completed\n    let isComplete = false;\n\n    // We only complete the result if the source is complete AND we don't have an active inner subscription.\n    // This is called both when the source completes and when the inners complete.\n    const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Cancel the previous inner subscription if there was one\n          innerSubscriber?.unsubscribe();\n          let innerIndex = 0;\n          const outerIndex = index++;\n          // Start the next inner subscription\n          innerFrom(project(value, outerIndex)).subscribe(\n            (innerSubscriber = createOperatorSubscriber(\n              subscriber,\n              // When we get a new inner value, next it through. Note that this is\n              // handling the deprecate result selector here. This is because with this architecture\n              // it ends up being smaller than using the map operator.\n              (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue),\n              () => {\n                // The inner has completed. Null out the inner subscriber to\n                // free up memory and to signal that we have no inner subscription\n                // currently.\n                innerSubscriber = null!;\n                checkComplete();\n              }\n            ))\n          );\n        },\n        () => {\n          isComplete = true;\n          checkComplete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits a value. Then, it completes.</span>\n *\n * ![](takeUntil.png)\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value, the output Observable stops mirroring the source Observable\n * and completes. If the `notifier` doesn't emit any value and completes\n * then `takeUntil` will pass all values.\n *\n * ## Example\n *\n * Tick every second until the first click happens\n *\n * ```ts\n * import { interval, fromEvent, takeUntil } from 'rxjs';\n *\n * const source = interval(1000);\n * const clicks = fromEvent(document, 'click');\n * const result = source.pipe(takeUntil(clicks));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return A function that returns an Observable that emits the values from the\n * source Observable until `notifier` emits its first value.\n */\nexport function takeUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n    !subscriber.closed && source.subscribe(subscriber);\n  });\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: true): MonoTypeOperatorFunction<T>;\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: false): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S, inclusive: false): OperatorFunction<T, S>;\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive?: boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * ![](takeWhile.png)\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * ## Example\n *\n * Emit click events only while the clientX property is greater than 200\n *\n * ```ts\n * import { fromEvent, takeWhile } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const result = clicks.pipe(takeWhile(ev => ev.clientX > 200));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @param {boolean} inclusive When set to `true` the value that caused\n * `predicate` to return `false` will also be emitted.\n * @return A function that returns an Observable that emits values from the\n * source Observable so long as each value satisfies the condition defined by\n * the `predicate`, then completes.\n */\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive = false): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let index = 0;\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        const result = predicate(value, index++);\n        (result || inclusive) && subscriber.next(value);\n        !result && subscriber.complete();\n      })\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, Observer } from '../types';\nimport { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\n\n/**\n * An extension to the {@link Observer} interface used only by the {@link tap} operator.\n *\n * It provides a useful set of callbacks a user can register to do side-effects in\n * cases other than what the usual {@link Observer} callbacks are\n * ({@link guide/glossary-and-semantics#next next},\n * {@link guide/glossary-and-semantics#error error} and/or\n * {@link guide/glossary-and-semantics#complete complete}).\n *\n * ## Example\n *\n * ```ts\n * import { fromEvent, switchMap, tap, interval, take } from 'rxjs';\n *\n * const source$ = fromEvent(document, 'click');\n * const result$ = source$.pipe(\n *   switchMap((_, i) => i % 2 === 0\n *     ? fromEvent(document, 'mousemove').pipe(\n *         tap({\n *           subscribe: () => console.log('Subscribed to the mouse move events after click #' + i),\n *           unsubscribe: () => console.log('Mouse move events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('Mouse move events #' + i + ' finalized')\n *         })\n *       )\n *     : interval(1_000).pipe(\n *         take(5),\n *         tap({\n *           subscribe: () => console.log('Subscribed to the 1-second interval events after click #' + i),\n *           unsubscribe: () => console.log('1-second interval events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('1-second interval events #' + i + ' finalized')\n *         })\n *       )\n *   )\n * );\n *\n * const subscription = result$.subscribe({\n *   next: console.log\n * });\n *\n * setTimeout(() => {\n *   console.log('Unsubscribe after 60 seconds');\n *   subscription.unsubscribe();\n * }, 60_000);\n * ```\n */\nexport interface TapObserver<T> extends Observer<T> {\n  /**\n   * The callback that `tap` operator invokes at the moment when the source Observable\n   * gets subscribed to.\n   */\n  subscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when an explicit\n   * {@link guide/glossary-and-semantics#unsubscription unsubscribe} happens. It won't get invoked on\n   * `error` or `complete` events.\n   */\n  unsubscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when any kind of\n   * {@link guide/glossary-and-semantics#finalization finalization} happens - either when\n   * the source Observable `error`s or `complete`s or when it gets explicitly unsubscribed\n   * by the user. There is no difference in using this callback or the {@link finalize}\n   * operator, but if you're already using `tap` operator, you can use this callback\n   * instead. You'd get the same result in either case.\n   */\n  finalize: () => void;\n}\nexport function tap<T>(observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void)): MonoTypeOperatorFunction<T>;\n/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\nexport function tap<T>(\n  next?: ((value: T) => void) | null,\n  error?: ((error: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Used to perform side-effects for notifications from the source observable\n *\n * <span class=\"informal\">Used when you want to affect outside state with a notification without altering the notification</span>\n *\n * ![](tap.png)\n *\n * Tap is designed to allow the developer a designated place to perform side effects. While you _could_ perform side-effects\n * inside of a `map` or a `mergeMap`, that would make their mapping functions impure, which isn't always a big deal, but will\n * make it so you can't do things like memoize those functions. The `tap` operator is designed solely for such side-effects to\n * help you remove side-effects from other operations.\n *\n * For any notification, next, error, or complete, `tap` will call the appropriate callback you have provided to it, via a function\n * reference, or a partial observer, then pass that notification down the stream.\n *\n * The observable returned by `tap` is an exact mirror of the source, with one exception: Any error that occurs -- synchronously -- in a handler\n * provided to `tap` will be emitted as an error from the returned observable.\n *\n * > Be careful! You can mutate objects as they pass through the `tap` operator's handlers.\n *\n * The most common use of `tap` is actually for debugging. You can place a `tap(console.log)` anywhere\n * in your observable `pipe`, log out the notifications as they are emitted by the source returned by the previous\n * operation.\n *\n * ## Examples\n *\n * Check a random number before it is handled. Below is an observable that will use a random number between 0 and 1,\n * and emit `'big'` or `'small'` depending on the size of that number. But we wanted to log what the original number\n * was, so we have added a `tap(console.log)`.\n *\n * ```ts\n * import { of, tap, map } from 'rxjs';\n *\n * of(Math.random()).pipe(\n *   tap(console.log),\n *   map(n => n > 0.5 ? 'big' : 'small')\n * ).subscribe(console.log);\n * ```\n *\n * Using `tap` to analyze a value and force an error. Below is an observable where in our system we only\n * want to emit numbers 3 or less we get from another source. We can force our observable to error\n * using `tap`.\n *\n * ```ts\n * import { of, tap } from 'rxjs';\n *\n * const source = of(1, 2, 3, 4, 5);\n *\n * source.pipe(\n *   tap(n => {\n *     if (n > 3) {\n *       throw new TypeError(`Value ${ n } is greater than 3`);\n *     }\n *   })\n * )\n * .subscribe({ next: console.log, error: err => console.log(err.message) });\n * ```\n *\n * We want to know when an observable completes before moving on to the next observable. The system\n * below will emit a random series of `'X'` characters from 3 different observables in sequence. The\n * only way we know when one observable completes and moves to the next one, in this case, is because\n * we have added a `tap` with the side effect of logging to console.\n *\n * ```ts\n * import { of, concatMap, interval, take, map, tap } from 'rxjs';\n *\n * of(1, 2, 3).pipe(\n *   concatMap(n => interval(1000).pipe(\n *     take(Math.round(Math.random() * 10)),\n *     map(() => 'X'),\n *     tap({ complete: () => console.log(`Done with ${ n }`) })\n *   ))\n * )\n * .subscribe(console.log);\n * ```\n *\n * @see {@link finalize}\n * @see {@link TapObserver}\n *\n * @param observerOrNext A next handler or partial observer\n * @param error An error handler\n * @param complete A completion handler\n * @return A function that returns an Observable identical to the source, but\n * runs the specified Observer or callback(s) for each item.\n */\nexport function tap<T>(\n  observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void) | null,\n  error?: ((e: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T> {\n  // We have to check to see not only if next is a function,\n  // but if error or complete were passed. This is because someone\n  // could technically call tap like `tap(null, fn)` or `tap(null, null, fn)`.\n  const tapObserver =\n    isFunction(observerOrNext) || error || complete\n      ? // tslint:disable-next-line: no-object-literal-type-assertion\n        ({ next: observerOrNext as Exclude<typeof observerOrNext, Partial<TapObserver<T>>>, error, complete } as Partial<TapObserver<T>>)\n      : observerOrNext;\n\n  return tapObserver\n    ? operate((source, subscriber) => {\n        tapObserver.subscribe?.();\n        let isUnsub = true;\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              tapObserver.next?.(value);\n              subscriber.next(value);\n            },\n            () => {\n              isUnsub = false;\n              tapObserver.complete?.();\n              subscriber.complete();\n            },\n            (err) => {\n              isUnsub = false;\n              tapObserver.error?.(err);\n              subscriber.error(err);\n            },\n            () => {\n              if (isUnsub) {\n                tapObserver.unsubscribe?.();\n              }\n              tapObserver.finalize?.();\n            }\n          )\n        );\n      })\n    : // Tap was called with no valid tap observer or handler\n      // (e.g. `tap(null, null, null)` or `tap(null)` or `tap()`)\n      // so we're going to just mirror the source.\n      identity;\n}\n", "import { Subscription } from '../Subscription';\n\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\n\n/**\n * An object interface used by {@link throttle} or {@link throttleTime} that ensure\n * configuration options of these operators.\n *\n * @see {@link throttle}\n * @see {@link throttleTime}\n */\nexport interface ThrottleConfig {\n  /**\n   * If `true`, the resulting Observable will emit the first value from the source\n   * Observable at the **start** of the \"throttling\" process (when starting an\n   * internal timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the first value from the source Observable at the\n   * start of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `true`.\n   */\n  leading?: boolean;\n  /**\n   * If `true`, the resulting Observable will emit the last value from the source\n   * Observable at the **end** of the \"throttling\" process (when ending an internal\n   * timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the last value from the source Observable at the\n   * end of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `false`.\n   */\n  trailing?: boolean;\n}\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](throttle.svg)\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttle, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttle(() => interval(1000)));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param durationSelector A function that receives a value from the source\n * Observable, for computing the silencing duration for each source value,\n * returned as an `ObservableInput`.\n * @param config A configuration object to define `leading` and `trailing`\n * behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttle<T>(durationSelector: (value: T) => ObservableInput<any>, config?: ThrottleConfig): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    const { leading = true, trailing = false } = config ?? {};\n    let hasValue = false;\n    let sendValue: T | null = null;\n    let throttled: Subscription | null = null;\n    let isComplete = false;\n\n    const endThrottling = () => {\n      throttled?.unsubscribe();\n      throttled = null;\n      if (trailing) {\n        send();\n        isComplete && subscriber.complete();\n      }\n    };\n\n    const cleanupThrottling = () => {\n      throttled = null;\n      isComplete && subscriber.complete();\n    };\n\n    const startThrottle = (value: T) =>\n      (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));\n\n    const send = () => {\n      if (hasValue) {\n        // Ensure we clear out our value and hasValue flag\n        // before we emit, otherwise reentrant code can cause\n        // issues here.\n        hasValue = false;\n        const value = sendValue!;\n        sendValue = null;\n        // Emit the value.\n        subscriber.next(value);\n        !isComplete && startThrottle(value);\n      }\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        // Regarding the presence of throttled.closed in the following\n        // conditions, if a synchronous duration selector is specified - weird,\n        // but legal - an already-closed subscription will be assigned to\n        // throttled, so the subscription's closed property needs to be checked,\n        // too.\n        (value) => {\n          hasValue = true;\n          sendValue = value;\n          !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n        },\n        () => {\n          isComplete = true;\n          !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { throttle, ThrottleConfig } from './throttle';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { timer } from '../observable/timer';\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * ![](throttleTime.png)\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link SchedulerLike} for managing timers.\n *\n * ## Examples\n *\n * ### Limit click rate\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttleTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttleTime(1000));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param scheduler The {@link SchedulerLike} to use for\n * managing the timers that handle the throttling. Defaults to {@link asyncScheduler}.\n * @param config A configuration object to define `leading` and\n * `trailing` behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttleTime<T>(\n  duration: number,\n  scheduler: SchedulerLike = asyncScheduler,\n  config?: ThrottleConfig\n): MonoTypeOperatorFunction<T> {\n  const duration$ = timer(duration, scheduler);\n  return throttle(() => duration$, config);\n}\n", "import { OperatorFunction, ObservableInputTuple } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\n\nexport function withLatestFrom<T, O extends unknown[]>(...inputs: [...ObservableInputTuple<O>]): OperatorFunction<T, [T, ...O]>;\n\nexport function withLatestFrom<T, O extends unknown[], R>(\n  ...inputs: [...ObservableInputTuple<O>, (...value: [T, ...O]) => R]\n): OperatorFunction<T, R>;\n\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * ![](withLatestFrom.png)\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * ## Example\n *\n * On every click event, emit an array with the latest timer event plus the click event\n *\n * ```ts\n * import { fromEvent, interval, withLatestFrom } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const result = clicks.pipe(withLatestFrom(timer));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatest}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.pipe(withLatestFrom(b, c), map(([a1, b1, c1]) => a1 + b1 + c1))`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return A function that returns an Observable of projected values from the\n * most recent values from each input Observable, or an array of the most\n * recent values from each input Observable.\n */\nexport function withLatestFrom<T, R>(...inputs: any[]): OperatorFunction<T, R | any[]> {\n  const project = popResultSelector(inputs) as ((...args: any[]) => R) | undefined;\n\n  return operate((source, subscriber) => {\n    const len = inputs.length;\n    const otherValues = new Array(len);\n    // An array of whether or not the other sources have emitted. Matched with them by index.\n    // TODO: At somepoint, we should investigate the performance implications here, and look\n    // into using a `Set()` and checking the `size` to see if we're ready.\n    let hasValue = inputs.map(() => false);\n    // Flipped true when we have at least one value from all other sources and\n    // we are ready to start emitting values.\n    let ready = false;\n\n    // Other sources. Note that here we are not checking `subscriber.closed`,\n    // this causes all inputs to be subscribed to, even if nothing can be emitted\n    // from them. This is an important distinction because subscription constitutes\n    // a side-effect.\n    for (let i = 0; i < len; i++) {\n      innerFrom(inputs[i]).subscribe(\n        createOperatorSubscriber(\n          subscriber,\n          (value) => {\n            otherValues[i] = value;\n            if (!ready && !hasValue[i]) {\n              // If we're not ready yet, flag to show this observable has emitted.\n              hasValue[i] = true;\n              // Intentionally terse code.\n              // If all of our other observables have emitted, set `ready` to `true`,\n              // so we know we can start emitting values, then clean up the `hasValue` array,\n              // because we don't need it anymore.\n              (ready = hasValue.every(identity)) && (hasValue = null!);\n            }\n          },\n          // Completing one of the other sources has\n          // no bearing on the completion of our result.\n          noop\n        )\n      );\n    }\n\n    // Source subscription\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        if (ready) {\n          // We have at least one value from the other sources. Go ahead and emit.\n          const values = [value, ...otherValues];\n          subscriber.next(project ? project(...values) : values);\n        }\n      })\n    );\n  });\n}\n", "import { zip as zipStatic } from '../observable/zip';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { operate } from '../util/lift';\n\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  otherInputsAndProject: [...ObservableInputTuple<A>],\n  project: (...values: Cons<T, A>) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  ...otherInputsAndProject: [...ObservableInputTuple<A>, (...values: Cons<T, A>) => R]\n): OperatorFunction<T, R>;\n\n/**\n * @deprecated Replaced with {@link zipWith}. Will be removed in v8.\n */\nexport function zip<T, R>(...sources: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, any> {\n  return operate((source, subscriber) => {\n    zipStatic(source as ObservableInput<any>, ...(sources as Array<ObservableInput<any>>)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { zip } from './zip';\n\n/**\n * Subscribes to the source, and the observable inputs provided as arguments, and combines their values, by index, into arrays.\n *\n * What is meant by \"combine by index\": The first value from each will be made into a single array, then emitted,\n * then the second value from each will be combined into a single array and emitted, then the third value\n * from each will be combined into a single array and emitted, and so on.\n *\n * This will continue until it is no longer able to combine values of the same index into an array.\n *\n * After the last value from any one completed source is emitted in an array, the resulting observable will complete,\n * as there is no way to continue \"zipping\" values together by index.\n *\n * Use-cases for this operator are limited. There are memory concerns if one of the streams is emitting\n * values at a much faster rate than the others. Usage should likely be limited to streams that emit\n * at a similar pace, or finite streams of known length.\n *\n * In many cases, authors want `combineLatestWith` and not `zipWith`.\n *\n * @param otherInputs other observable inputs to collate values from.\n * @return A function that returns an Observable that emits items by index\n * combined from the source Observable and provided Observables, in form of an\n * array.\n */\nexport function zipWith<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>> {\n  return zip(...otherInputs);\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ReplaySubject,\n  Subject,\n  fromEvent\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch document\n *\n * Documents are implemented as subjects, so all downstream observables are\n * automatically updated when a new document is emitted.\n *\n * @returns Document subject\n */\nexport function watchDocument(): Subject<Document> {\n  const document$ = new ReplaySubject<Document>(1)\n  fromEvent(document, \"DOMContentLoaded\", { once: true })\n    .subscribe(() => document$.next(document))\n\n  /* Return document */\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve all elements matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getElements<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T][]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T[]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T[] {\n  return Array.from(node.querySelectorAll<T>(selector))\n}\n\n/**\n * Retrieve an element matching a query selector or throw a reference error\n *\n * Note that this function assumes that the element is present. If unsure if an\n * element is existent, use the `getOptionalElement` function instead.\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T]\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T {\n  const el = getOptionalElement<T>(selector, node)\n  if (typeof el === \"undefined\")\n    throw new ReferenceError(\n      `Missing element: expected \"${selector}\" to be present`\n    )\n\n  /* Return element */\n  return el\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Retrieve an optional element matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element or nothing\n */\nexport function getOptionalElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T] | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T | undefined {\n  return node.querySelector<T>(selector) || undefined\n}\n\n/**\n * Retrieve the currently active element\n *\n * @returns Element or nothing\n */\nexport function getActiveElement(): HTMLElement | undefined {\n  return (\n    document.activeElement?.shadowRoot?.activeElement as HTMLElement ??\n    document.activeElement as HTMLElement ??\n    undefined\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounceTime,\n  distinctUntilChanged,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Focus observable\n *\n * Previously, this observer used `focus` and `blur` events to determine whether\n * an element is focused, but this doesn't work if there are focusable elements\n * within the elements itself. A better solutions are `focusin` and `focusout`\n * events, which bubble up the tree and allow for more fine-grained control.\n *\n * `debounceTime` is necessary, because when a focus change happens inside an\n * element, the observable would first emit `false` and then `true` again.\n */\nconst observer$ = merge(\n  fromEvent(document.body, \"focusin\"),\n  fromEvent(document.body, \"focusout\")\n)\n  .pipe(\n    debounceTime(1),\n    startWith(undefined),\n    map(() => getActiveElement() || document.body),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element focus\n *\n * @param el - Element\n *\n * @returns Element focus observable\n */\nexport function watchElementFocus(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      map(active => el.contains(active)),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounceTime,\n  fromEvent,\n  identity,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element hover\n *\n * @param el - Element\n * @param duration - Debounce duration\n *\n * @returns Element hover observable\n */\nexport function watchElementHover(\n  el: HTMLElement, duration?: number\n): Observable<boolean> {\n  return merge(\n    fromEvent(el, \"mouseenter\").pipe(map(() => true)),\n    fromEvent(el, \"mouseleave\").pipe(map(() => false))\n  )\n    .pipe(\n      duration ? debounceTime(duration) : identity,\n      startWith(false)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.offsetLeft,\n    y: el.offsetTop\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(window, \"load\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementOffset(el)),\n      startWith(getElementOffset(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\nimport { ElementOffset } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content offset (= scroll offset)\n *\n * @param el - Element\n *\n * @returns Element content offset\n */\nexport function getElementContentOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.scrollLeft,\n    y: el.scrollTop\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element content offset\n *\n * @param el - Element\n *\n * @returns Element content offset observable\n */\nexport function watchElementContentOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(el, \"scroll\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementContentOffset(el)),\n      startWith(getElementContentOffset(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { JSX as JSXInternal } from \"preact\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * HTML attributes\n */\ntype Attributes =\n  & JSXInternal.HTMLAttributes\n  & JSXInternal.SVGAttributes\n  & Record<string, any>\n\n/**\n * Child element\n */\ntype Child =\n  | ChildNode\n  | HTMLElement\n  | Text\n  | string\n  | number\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Append a child node to an element\n *\n * @param el - Element\n * @param child - Child node(s)\n */\nfunction appendChild(el: HTMLElement, child: Child | Child[]): void {\n\n  /* Handle primitive types (including raw HTML) */\n  if (typeof child === \"string\" || typeof child === \"number\") {\n    el.innerHTML += child.toString()\n\n  /* Handle nodes */\n  } else if (child instanceof Node) {\n    el.appendChild(child)\n\n  /* Handle nested children */\n  } else if (Array.isArray(child)) {\n    for (const node of child)\n      appendChild(el, node)\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * JSX factory\n *\n * @template T - Element type\n *\n * @param tag - HTML tag\n * @param attributes - HTML attributes\n * @param children - Child elements\n *\n * @returns Element\n */\nexport function h<T extends keyof HTMLElementTagNameMap>(\n  tag: T, attributes?: Attributes | null, ...children: Child[]\n): HTMLElementTagNameMap[T]\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T {\n  const el = document.createElement(tag)\n\n  /* Set attributes, if any */\n  if (attributes)\n    for (const attr of Object.keys(attributes)) {\n      if (typeof attributes[attr] === \"undefined\")\n        continue\n\n      /* Set default attribute or boolean */\n      if (typeof attributes[attr] !== \"boolean\")\n        el.setAttribute(attr, attributes[attr])\n      else\n        el.setAttribute(attr, \"\")\n    }\n\n  /* Append child nodes */\n  for (const child of children)\n    appendChild(el, child)\n\n  /* Return element */\n  return el as T\n}\n\n/* ----------------------------------------------------------------------------\n * Namespace\n * ------------------------------------------------------------------------- */\n\nexport declare namespace h {\n  namespace JSX {\n    type Element = HTMLElement\n    type IntrinsicElements = JSXInternal.IntrinsicElements\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Round a number for display with repository facts\n *\n * This is a reverse-engineered version of GitHub's weird rounding algorithm\n * for stars, forks and all other numbers. While all numbers below `1,000` are\n * returned as-is, bigger numbers are converted to fixed numbers:\n *\n * - `1,049` => `1k`\n * - `1,050` => `1.1k`\n * - `1,949` => `1.9k`\n * - `1,950` => `2k`\n *\n * @param value - Original value\n *\n * @returns Rounded value\n */\nexport function round(value: number): string {\n  if (value > 999) {\n    const digits = +((value - 950) % 1000 > 99)\n    return `${((value + 0.000001) / 1000).toFixed(digits)}k`\n  } else {\n    return value.toString()\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  switchMap,\n  take,\n  throwError\n} from \"rxjs\"\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create and load a `script` element\n *\n * This function returns an observable that will emit when the script was\n * successfully loaded, or throw an error if it wasn't.\n *\n * @param src - Script URL\n *\n * @returns Script observable\n */\nexport function watchScript(src: string): Observable<void> {\n  const script = h(\"script\", { src })\n  return defer(() => {\n    document.head.appendChild(script)\n    return merge(\n      fromEvent(script, \"load\"),\n      fromEvent(script, \"error\")\n        .pipe(\n          switchMap(() => (\n            throwError(() => new ReferenceError(`Invalid script: ${src}`))\n          ))\n        )\n    )\n      .pipe(\n        map(() => undefined),\n        finalize(() => document.head.removeChild(script)),\n        take(1)\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"../../../script\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementSize {\n  width: number                        /* Element width */\n  height: number                       /* Element height */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Resize observer entry subject\n */\nconst entry$ = new Subject<ResizeObserverEntry>()\n\n/**\n * Resize observer observable\n *\n * This observable will create a `ResizeObserver` on the first subscription\n * and will automatically terminate it when there are no more subscribers.\n * It's quite important to centralize observation in a single `ResizeObserver`,\n * as the performance difference can be quite dramatic, as the link shows.\n *\n * If the browser doesn't have a `ResizeObserver` implementation available, a\n * polyfill is automatically downloaded from unpkg.com. This is also compatible\n * with the built-in privacy plugin, which will download the polyfill and put\n * it alongside the built site for self-hosting.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => (\n  typeof ResizeObserver === \"undefined\"\n    ? watchScript(\"https://unpkg.com/resize-observer-polyfill\")\n    : of(undefined)\n))\n  .pipe(\n    map(() => new ResizeObserver(entries => {\n      for (const entry of entries)\n        entry$.next(entry)\n    })),\n    switchMap(observer => merge(NEVER, of(observer))\n      .pipe(\n        finalize(() => observer.disconnect())\n      )\n    ),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element size\n *\n * @param el - Element\n *\n * @returns Element size\n */\nexport function getElementSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.offsetWidth,\n    height: el.offsetHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element size\n *\n * This function returns an observable that subscribes to a single internal\n * instance of `ResizeObserver` upon subscription, and emit resize events until\n * termination. Note that this function should not be called with the same\n * element twice, as the first unsubscription will terminate observation.\n *\n * Sadly, we can't use the `DOMRect` objects returned by the observer, because\n * we need the emitted values to be consistent with `getElementSize`, which will\n * return the used values (rounded) and not actual values (unrounded). Thus, we\n * use the `offset*` properties. See the linked GitHub issue.\n *\n * @see https://bit.ly/3m0k3he - GitHub issue\n *\n * @param el - Element\n *\n * @returns Element size observable\n */\nexport function watchElementSize(\n  el: HTMLElement\n): Observable<ElementSize> {\n  return observer$\n    .pipe(\n      tap(observer => observer.observe(el)),\n      switchMap(observer => entry$\n        .pipe(\n          filter(({ target }) => target === el),\n          finalize(() => observer.unobserve(el)),\n          map(() => getElementSize(el))\n        )\n      ),\n      startWith(getElementSize(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ElementSize } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content size (= scroll width and height)\n *\n * @param el - Element\n *\n * @returns Element content size\n */\nexport function getElementContentSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.scrollWidth,\n    height: el.scrollHeight\n  }\n}\n\n/**\n * Retrieve the overflowing container of an element, if any\n *\n * @param el - Element\n *\n * @returns Overflowing container or nothing\n */\nexport function getElementContainer(\n  el: HTMLElement\n): HTMLElement | undefined {\n  let parent = el.parentElement\n  while (parent)\n    if (\n      el.scrollWidth  <= parent.scrollWidth &&\n      el.scrollHeight <= parent.scrollHeight\n    )\n      parent = (el = parent).parentElement\n    else\n      break\n\n  /* Return overflowing container */\n  return parent ? el : undefined\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElementContentSize,\n  getElementSize,\n  watchElementContentOffset\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Intersection observer entry subject\n */\nconst entry$ = new Subject<IntersectionObserverEntry>()\n\n/**\n * Intersection observer observable\n *\n * This observable will create an `IntersectionObserver` on first subscription\n * and will automatically terminate it when there are no more subscribers.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => of(\n  new IntersectionObserver(entries => {\n    for (const entry of entries)\n      entry$.next(entry)\n  }, {\n    threshold: 0\n  })\n))\n  .pipe(\n    switchMap(observer => merge(NEVER, of(observer))\n      .pipe(\n        finalize(() => observer.disconnect())\n      )\n    ),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element visibility\n *\n * @param el - Element\n *\n * @returns Element visibility observable\n */\nexport function watchElementVisibility(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      tap(observer => observer.observe(el)),\n      switchMap(observer => entry$\n        .pipe(\n          filter(({ target }) => target === el),\n          finalize(() => observer.unobserve(el)),\n          map(({ isIntersecting }) => isIntersecting)\n        )\n      )\n    )\n}\n\n/**\n * Watch element boundary\n *\n * This function returns an observable which emits whether the bottom content\n * boundary (= scroll offset) of an element is within a certain threshold.\n *\n * @param el - Element\n * @param threshold - Threshold\n *\n * @returns Element boundary observable\n */\nexport function watchElementBoundary(\n  el: HTMLElement, threshold = 16\n): Observable<boolean> {\n  return watchElementContentOffset(el)\n    .pipe(\n      map(({ y }) => {\n        const visible = getElementSize(el)\n        const content = getElementContentSize(el)\n        return y >= (\n          content.height - visible.height - threshold\n        )\n      }),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getElement } from \"../element\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle\n */\nexport type Toggle =\n  | \"drawer\"                           /* Toggle for drawer */\n  | \"search\"                           /* Toggle for search */\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle map\n */\nconst toggles: Record<Toggle, HTMLInputElement> = {\n  drawer: getElement(\"[data-md-toggle=drawer]\"),\n  search: getElement(\"[data-md-toggle=search]\")\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the value of a toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value\n */\nexport function getToggle(name: Toggle): boolean {\n  return toggles[name].checked\n}\n\n/**\n * Set toggle\n *\n * Simulating a click event seems to be the most cross-browser compatible way\n * of changing the value while also emitting a `change` event. Before, Material\n * used `CustomEvent` to programmatically change the value of a toggle, but this\n * is a much simpler and cleaner solution which doesn't require a polyfill.\n *\n * @param name - Toggle\n * @param value - Toggle value\n */\nexport function setToggle(name: Toggle, value: boolean): void {\n  if (toggles[name].checked !== value)\n    toggles[name].click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value observable\n */\nexport function watchToggle(name: Toggle): Observable<boolean> {\n  const el = toggles[name]\n  return fromEvent(el, \"change\")\n    .pipe(\n      map(() => el.checked),\n      startWith(el.checked)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  share,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../element\"\nimport { getToggle } from \"../toggle\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Keyboard mode\n */\nexport type KeyboardMode =\n  | \"global\"                           /* Global */\n  | \"search\"                           /* Search is open */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Keyboard\n */\nexport interface Keyboard {\n  mode: KeyboardMode                   /* Keyboard mode */\n  type: string                         /* Key type */\n  claim(): void                        /* Key claim */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether an element may receive keyboard input\n *\n * @param el - Element\n * @param type - Key type\n *\n * @returns Test result\n */\nfunction isSusceptibleToKeyboard(\n  el: HTMLElement, type: string\n): boolean {\n  switch (el.constructor) {\n\n    /* Input elements */\n    case HTMLInputElement:\n      /* @ts-expect-error - omit unnecessary type cast */\n      if (el.type === \"radio\")\n        return /^Arrow/.test(type)\n      else\n        return true\n\n    /* Select element and textarea */\n    case HTMLSelectElement:\n    case HTMLTextAreaElement:\n      return true\n\n    /* Everything else */\n    default:\n      return el.isContentEditable\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch composition events\n *\n * @returns Composition observable\n */\nexport function watchComposition(): Observable<boolean> {\n  return merge(\n    fromEvent(window, \"compositionstart\").pipe(map(() => true)),\n    fromEvent(window, \"compositionend\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(false)\n    )\n}\n\n/**\n * Watch keyboard\n *\n * @returns Keyboard observable\n */\nexport function watchKeyboard(): Observable<Keyboard> {\n  const keyboard$ = fromEvent<KeyboardEvent>(window, \"keydown\")\n    .pipe(\n      filter(ev => !(ev.metaKey || ev.ctrlKey)),\n      map(ev => ({\n        mode: getToggle(\"search\") ? \"search\" : \"global\",\n        type: ev.key,\n        claim() {\n          ev.preventDefault()\n          ev.stopPropagation()\n        }\n      } as Keyboard)),\n      filter(({ mode, type }) => {\n        if (mode === \"global\") {\n          const active = getActiveElement()\n          if (typeof active !== \"undefined\")\n            return !isSusceptibleToKeyboard(active, type)\n        }\n        return true\n      }),\n      share()\n    )\n\n  /* Don't emit during composition events - see https://bit.ly/3te3Wl8 */\n  return watchComposition()\n    .pipe(\n      switchMap(active => !active ? keyboard$ : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Subject } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location\n *\n * This function returns a `URL` object (and not `Location`) to normalize the\n * typings across the application. Furthermore, locations need to be tracked\n * without setting them and `Location` is a singleton which represents the\n * current location.\n *\n * @returns URL\n */\nexport function getLocation(): URL {\n  return new URL(location.href)\n}\n\n/**\n * Set location\n *\n * If instant navigation is enabled, this function creates a temporary anchor\n * element, sets the `href` attribute, appends it to the body, clicks it, and\n * then removes it again. The event will bubble up the DOM and trigger be\n * intercepted by the instant loading business logic.\n *\n * Note that we must append and remove the anchor element, or the event will\n * not bubble up the DOM, making it impossible to intercept it.\n *\n * @param url - URL to navigate to\n * @param navigate - Force navigation\n */\nexport function setLocation(\n  url: URL | HTMLLinkElement, navigate = false\n): void {\n  if (feature(\"navigation.instant\") && !navigate) {\n    const el = h(\"a\", { href: url.href })\n    document.body.appendChild(el)\n    el.click()\n    el.remove()\n\n  // If we're not using instant navigation, and the page should not be reloaded\n  // just instruct the browser to navigate to the given URL\n  } else {\n    location.href = url.href\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location\n *\n * @returns Location subject\n */\nexport function watchLocation(): Subject<URL> {\n  return new Subject<URL>()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getOptionalElement } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location hash\n *\n * @returns Location hash\n */\nexport function getLocationHash(): string {\n  return location.hash.slice(1)\n}\n\n/**\n * Set location hash\n *\n * Setting a new fragment identifier via `location.hash` will have no effect\n * if the value doesn't change. When a new fragment identifier is set, we want\n * the browser to target the respective element at all times, which is why we\n * use this dirty little trick.\n *\n * @param hash - Location hash\n */\nexport function setLocationHash(hash: string): void {\n  const el = h(\"a\", { href: hash })\n  el.addEventListener(\"click\", ev => ev.stopPropagation())\n  el.click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location hash\n *\n * @param location$ - Location observable\n *\n * @returns Location hash observable\n */\nexport function watchLocationHash(\n  location$: Observable<URL>\n): Observable<string> {\n  return merge(\n    fromEvent<HashChangeEvent>(window, \"hashchange\"),\n    location$\n  )\n    .pipe(\n      map(getLocationHash),\n      startWith(getLocationHash()),\n      filter(hash => hash.length > 0),\n      shareReplay(1)\n    )\n}\n\n/**\n * Watch location target\n *\n * @param location$ - Location observable\n *\n * @returns Location target observable\n */\nexport function watchLocationTarget(\n  location$: Observable<URL>\n): Observable<HTMLElement> {\n  return watchLocationHash(location$)\n    .pipe(\n      map(id => getOptionalElement(`[id=\"${id}\"]`)!),\n      filter(el => typeof el !== \"undefined\")\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  fromEvent,\n  fromEventPattern,\n  map,\n  merge,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch media query\n *\n * Note that although `MediaQueryList.addListener` is deprecated we have to\n * use it, because it's the only way to ensure proper downward compatibility.\n *\n * @see https://bit.ly/3dUBH2m - GitHub issue\n *\n * @param query - Media query\n *\n * @returns Media observable\n */\nexport function watchMedia(query: string): Observable<boolean> {\n  const media = matchMedia(query)\n  return fromEventPattern<boolean>(next => (\n    media.addListener(() => next(media.matches))\n  ))\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/**\n * Watch print mode\n *\n * @returns Print observable\n */\nexport function watchPrint(): Observable<boolean> {\n  const media = matchMedia(\"print\")\n  return merge(\n    fromEvent(window, \"beforeprint\").pipe(map(() => true)),\n    fromEvent(window, \"afterprint\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Toggle an observable with a media observable\n *\n * @template T - Data type\n *\n * @param query$ - Media observable\n * @param factory - Observable factory\n *\n * @returns Toggled observable\n */\nexport function at<T>(\n  query$: Observable<boolean>, factory: () => Observable<T>\n): Observable<T> {\n  return query$\n    .pipe(\n      switchMap(active => active ? factory() : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  map,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Options\n */\ninterface Options {\n  progress$?: Subject<number>          // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the given URL\n *\n * This function returns an observable that emits the response as a blob and\n * completes, or emits an error if the request failed. The caller can cancel\n * the request by unsubscribing at any time, which will automatically abort\n * the inflight request and complete the observable.\n *\n * Note that we use `XMLHTTPRequest` not because we're nostalgic, but because\n * it's the only way to get progress events for downloads and also allow for\n * cancellation of requests, as the official Fetch API does not support this\n * yet, even though we're already in 2024.\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function request(\n  url: URL | string, options?: Options\n): Observable<Blob> {\n  return new Observable<Blob>(observer => {\n    const req = new XMLHttpRequest()\n    req.open(\"GET\", `${url}`)\n    req.responseType = \"blob\"\n\n    // Handle response\n    req.addEventListener(\"load\", () => {\n      if (req.status >= 200 && req.status < 300) {\n        observer.next(req.response)\n        observer.complete()\n\n      // Every response that is not in the 2xx range is considered an error\n      } else {\n        observer.error(new Error(req.statusText))\n      }\n    })\n\n    // Handle network errors\n    req.addEventListener(\"error\", () => {\n      observer.error(new Error(\"Network error\"))\n    })\n\n    // Handle aborted requests\n    req.addEventListener(\"abort\", () => {\n      observer.complete()\n    })\n\n    // Handle download progress\n    if (typeof options?.progress$ !== \"undefined\") {\n      req.addEventListener(\"progress\", event => {\n        if (event.lengthComputable) {\n          options.progress$!.next((event.loaded / event.total) * 100)\n\n        // Hack: Chromium doesn't report the total number of bytes if content\n        // is compressed, so we need this fallback - see https://t.ly/ZXofI\n        } else {\n          const length = req.getResponseHeader(\"Content-Length\") ?? 0\n          options.progress$!.next((event.loaded / +length) * 100)\n        }\n      })\n\n      // Immediately set progress to 5% to indicate that we're loading\n      options.progress$.next(5)\n    }\n\n    // Send request and automatically abort request upon unsubscription\n    req.send()\n    return () => req.abort()\n  })\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Fetch JSON from the given URL\n *\n * @template T - Data type\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestJSON<T>(\n  url: URL | string, options?: Options\n): Observable<T> {\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(body => JSON.parse(body) as T),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch HTML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestHTML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/html\")),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch XML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestXML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/xml\")),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport offset\n */\nexport interface ViewportOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport offset\n *\n * On iOS Safari, viewport offset can be negative due to overflow scrolling.\n * As this may induce strange behaviors downstream, we'll just limit it to 0.\n *\n * @returns Viewport offset\n */\nexport function getViewportOffset(): ViewportOffset {\n  return {\n    x: Math.max(0, scrollX),\n    y: Math.max(0, scrollY)\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport offset\n *\n * @returns Viewport offset observable\n */\nexport function watchViewportOffset(): Observable<ViewportOffset> {\n  return merge(\n    fromEvent(window, \"scroll\", { passive: true }),\n    fromEvent(window, \"resize\", { passive: true })\n  )\n    .pipe(\n      map(getViewportOffset),\n      startWith(getViewportOffset())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport size\n */\nexport interface ViewportSize {\n  width: number                        /* Viewport width */\n  height: number                       /* Viewport height */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport size\n *\n * @returns Viewport size\n */\nexport function getViewportSize(): ViewportSize {\n  return {\n    width:  innerWidth,\n    height: innerHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport size\n *\n * @returns Viewport size observable\n */\nexport function watchViewportSize(): Observable<ViewportSize> {\n  return fromEvent(window, \"resize\", { passive: true })\n    .pipe(\n      map(getViewportSize),\n      startWith(getViewportSize())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  map,\n  shareReplay\n} from \"rxjs\"\n\nimport {\n  ViewportOffset,\n  watchViewportOffset\n} from \"../offset\"\nimport {\n  ViewportSize,\n  watchViewportSize\n} from \"../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport\n */\nexport interface Viewport {\n  offset: ViewportOffset               /* Viewport offset */\n  size: ViewportSize                   /* Viewport size */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport\n *\n * @returns Viewport observable\n */\nexport function watchViewport(): Observable<Viewport> {\n  return combineLatest([\n    watchViewportOffset(),\n    watchViewportSize()\n  ])\n    .pipe(\n      map(([offset, size]) => ({ offset, size })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilKeyChanged,\n  map\n} from \"rxjs\"\n\nimport { Header } from \"~/components\"\n\nimport { getElementOffset } from \"../../element\"\nimport { Viewport } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport relative to element\n *\n * @param el - Element\n * @param options - Options\n *\n * @returns Viewport observable\n */\nexport function watchViewportAt(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Viewport> {\n  const size$ = viewport$\n    .pipe(\n      distinctUntilKeyChanged(\"size\")\n    )\n\n  /* Compute element offset */\n  const offset$ = combineLatest([size$, header$])\n    .pipe(\n      map(() => getElementOffset(el))\n    )\n\n  /* Compute relative viewport, return hot observable */\n  return combineLatest([header$, viewport$, offset$])\n    .pipe(\n      map(([{ height }, { offset, size }, { x, y }]) => ({\n        offset: {\n          x: offset.x - x,\n          y: offset.y - y + height\n        },\n        size\n      }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  mergeWith,\n  share,\n  takeUntil\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Worker message\n */\nexport interface WorkerMessage {\n  type: unknown                        /* Message type */\n  data?: unknown                       /* Message data */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create an observable for receiving from a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message observable\n */\nfunction recv<T>(worker: Worker): Observable<T> {\n  return fromEvent<MessageEvent<T>, T>(worker, \"message\", ev => ev.data)\n}\n\n/**\n * Create a subject for sending to a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message subject\n */\nfunction send<T>(worker: Worker): Subject<T> {\n  const send$ = new Subject<T>()\n  send$.subscribe(data => worker.postMessage(data))\n\n  /* Return message subject */\n  return send$\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a bidirectional communication channel to a web worker\n *\n * @template T - Data type\n *\n * @param url - Worker URL\n * @param worker - Worker\n *\n * @returns Worker subject\n */\nexport function watchWorker<T extends WorkerMessage>(\n  url: string, worker = new Worker(url)\n): Subject<T> {\n  const recv$ = recv<T>(worker)\n  const send$ = send<T>(worker)\n\n  /* Create worker subject and forward messages */\n  const worker$ = new Subject<T>()\n  worker$.subscribe(send$)\n\n  /* Return worker subject */\n  const done$ = send$.pipe(ignoreElements(), endWith(true))\n  return worker$\n    .pipe(\n      ignoreElements(),\n      mergeWith(recv$.pipe(takeUntil(done$))),\n      share()\n    ) as Subject<T>\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getLocation } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Feature flag\n */\nexport type Flag =\n  | \"announce.dismiss\"                 /* Dismissable announcement bar */\n  | \"content.code.annotate\"            /* Code annotations */\n  | \"content.code.copy\"                /* Code copy button */\n  | \"content.lazy\"                     /* Lazy content elements */\n  | \"content.tabs.link\"                /* Link content tabs */\n  | \"content.tooltips\"                 /* Tooltips */\n  | \"header.autohide\"                  /* Hide header */\n  | \"navigation.expand\"                /* Automatic expansion */\n  | \"navigation.indexes\"               /* Section pages */\n  | \"navigation.instant\"               /* Instant navigation */\n  | \"navigation.instant.progress\"      /* Instant navigation progress */\n  | \"navigation.sections\"              /* Section navigation */\n  | \"navigation.tabs\"                  /* Tabs navigation */\n  | \"navigation.tabs.sticky\"           /* Tabs navigation (sticky) */\n  | \"navigation.top\"                   /* Back-to-top button */\n  | \"navigation.tracking\"              /* Anchor tracking */\n  | \"search.highlight\"                 /* Search highlighting */\n  | \"search.share\"                     /* Search sharing */\n  | \"search.suggest\"                   /* Search suggestions */\n  | \"toc.follow\"                       /* Following table of contents */\n  | \"toc.integrate\"                    /* Integrated table of contents */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Translation\n */\nexport type Translation =\n  | \"clipboard.copy\"                   /* Copy to clipboard */\n  | \"clipboard.copied\"                 /* Copied to clipboard */\n  | \"search.result.placeholder\"        /* Type to start searching */\n  | \"search.result.none\"               /* No matching documents */\n  | \"search.result.one\"                /* 1 matching document */\n  | \"search.result.other\"              /* # matching documents */\n  | \"search.result.more.one\"           /* 1 more on this page */\n  | \"search.result.more.other\"         /* # more on this page */\n  | \"search.result.term.missing\"       /* Missing */\n  | \"select.version\"                   /* Version selector */\n\n/**\n * Translations\n */\nexport type Translations =\n  Record<Translation, string>\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Versioning\n */\nexport interface Versioning {\n  provider: \"mike\"                     /* Version provider */\n  default?: string | string[]          /* Default version */\n}\n\n/**\n * Configuration\n */\nexport interface Config {\n  base: string                         /* Base URL */\n  features: Flag[]                     /* Feature flags */\n  translations: Translations           /* Translations */\n  search: string                       /* Search worker URL */\n  tags?: Record<string, string>        /* Tags mapping */\n  version?: Versioning                 /* Versioning */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration and make base URL absolute\n */\nconst script = getElement(\"#__config\")\nconst config: Config = JSON.parse(script.textContent!)\nconfig.base = `${new URL(config.base, getLocation())}`\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration\n *\n * @returns Global configuration\n */\nexport function configuration(): Config {\n  return config\n}\n\n/**\n * Check whether a feature flag is enabled\n *\n * @param flag - Feature flag\n *\n * @returns Test result\n */\nexport function feature(flag: Flag): boolean {\n  return config.features.includes(flag)\n}\n\n/**\n * Retrieve the translation for the given key\n *\n * @param key - Key to be translated\n * @param value - Positional value, if any\n *\n * @returns Translation\n */\nexport function translation(\n  key: Translation, value?: string | number\n): string {\n  return typeof value !== \"undefined\"\n    ? config.translations[key].replace(\"#\", value.toString())\n    : config.translations[key]\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type\n */\nexport type ComponentType =\n  | \"announce\"                         /* Announcement bar */\n  | \"container\"                        /* Container */\n  | \"consent\"                          /* Consent */\n  | \"content\"                          /* Content */\n  | \"dialog\"                           /* Dialog */\n  | \"header\"                           /* Header */\n  | \"header-title\"                     /* Header title */\n  | \"header-topic\"                     /* Header topic */\n  | \"main\"                             /* Main area */\n  | \"outdated\"                         /* Version warning */\n  | \"palette\"                          /* Color palette */\n  | \"progress\"                         /* Progress indicator */\n  | \"search\"                           /* Search */\n  | \"search-query\"                     /* Search input */\n  | \"search-result\"                    /* Search results */\n  | \"search-share\"                     /* Search sharing */\n  | \"search-suggest\"                   /* Search suggestions */\n  | \"sidebar\"                          /* Sidebar */\n  | \"skip\"                             /* Skip link */\n  | \"source\"                           /* Repository information */\n  | \"tabs\"                             /* Navigation tabs */\n  | \"toc\"                              /* Table of contents */\n  | \"top\"                              /* Back-to-top button */\n\n/**\n * Component\n *\n * @template T - Component type\n * @template U - Reference type\n */\nexport type Component<\n  T extends {} = {},\n  U extends HTMLElement = HTMLElement\n> =\n  T & {\n    ref: U                             /* Component reference */\n  }\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type map\n */\ninterface ComponentTypeMap {\n  \"announce\": HTMLElement              /* Announcement bar */\n  \"container\": HTMLElement             /* Container */\n  \"consent\": HTMLElement               /* Consent */\n  \"content\": HTMLElement               /* Content */\n  \"dialog\": HTMLElement                /* Dialog */\n  \"header\": HTMLElement                /* Header */\n  \"header-title\": HTMLElement          /* Header title */\n  \"header-topic\": HTMLElement          /* Header topic */\n  \"main\": HTMLElement                  /* Main area */\n  \"outdated\": HTMLElement              /* Version warning */\n  \"palette\": HTMLElement               /* Color palette */\n  \"progress\": HTMLElement              /* Progress indicator */\n  \"search\": HTMLElement                /* Search */\n  \"search-query\": HTMLInputElement     /* Search input */\n  \"search-result\": HTMLElement         /* Search results */\n  \"search-share\": HTMLAnchorElement    /* Search sharing */\n  \"search-suggest\": HTMLElement        /* Search suggestions */\n  \"sidebar\": HTMLElement               /* Sidebar */\n  \"skip\": HTMLAnchorElement            /* Skip link */\n  \"source\": HTMLAnchorElement          /* Repository information */\n  \"tabs\": HTMLElement                  /* Navigation tabs */\n  \"toc\": HTMLElement                   /* Table of contents */\n  \"top\": HTMLAnchorElement             /* Back-to-top button */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the element for a given component or throw a reference error\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getComponentElement<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T] {\n  return getElement(`[data-md-component=${type}]`, node)\n}\n\n/**\n * Retrieve all elements for a given component\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getComponentElements<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T][] {\n  return getElements(`[data-md-component=${type}]`, node)\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Announcement bar\n */\nexport interface Announce {\n  hash: number                        /* Content hash */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar observable\n */\nexport function watchAnnounce(\n  el: HTMLElement\n): Observable<Announce> {\n  const button = getElement(\".md-typeset > :first-child\", el)\n  return fromEvent(button, \"click\", { once: true })\n    .pipe(\n      map(() => getElement(\".md-typeset\", el)),\n      map(content => ({ hash: __md_hash(content.innerHTML) }))\n    )\n}\n\n/**\n * Mount announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar component observable\n */\nexport function mountAnnounce(\n  el: HTMLElement\n): Observable<Component<Announce>> {\n  if (!feature(\"announce.dismiss\") || !el.childElementCount)\n    return EMPTY\n\n  /* Support instant navigation - see https://t.ly/3FTme */\n  if (!el.hidden) {\n    const content = getElement(\".md-typeset\", el)\n    if (__md_hash(content.innerHTML) === __md_get(\"__announce\"))\n      el.hidden = true\n  }\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Announce>()\n    push$.subscribe(({ hash }) => {\n      el.hidden = true\n\n      /* Persist preference in local storage */\n      __md_set<number>(\"__announce\", hash)\n    })\n\n    /* Create and return component */\n    return watchAnnounce(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Consent\n */\nexport interface Consent {\n  hidden: boolean                      /* Consent is hidden */\n}\n\n/**\n * Consent defaults\n */\nexport interface ConsentDefaults {\n  analytics?: boolean                  /* Consent for Analytics */\n  github?: boolean                     /* Consent for GitHub */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent observable\n */\nexport function watchConsent(\n  el: HTMLElement, { target$ }: WatchOptions\n): Observable<Consent> {\n  return target$\n    .pipe(\n      map(target => ({ hidden: target !== el }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent component observable\n */\nexport function mountConsent(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Consent>> {\n  const internal$ = new Subject<Consent>()\n  internal$.subscribe(({ hidden }) => {\n    el.hidden = hidden\n  })\n\n  /* Create and return component */\n  return watchConsent(el, options)\n    .pipe(\n      tap(state => internal$.next(state)),\n      finalize(() => internal$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip style\n */\nexport type TooltipStyle =\n  | \"inline\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a tooltip\n *\n * @param id - Tooltip identifier\n * @param style - Tooltip style\n *\n * @returns Element\n */\nexport function renderTooltip(\n  id?: string, style?: TooltipStyle\n): HTMLElement {\n  if (style === \"inline\") { // @todo refactor control flow\n    return (\n      <div class=\"md-tooltip md-tooltip--inline\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  } else {\n    return (\n      <div class=\"md-tooltip\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\nimport { renderTooltip } from \"../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render an annotation\n *\n * @param id - Annotation identifier\n * @param prefix - Tooltip identifier prefix\n *\n * @returns Element\n */\nexport function renderAnnotation(\n  id: string | number, prefix?: string\n): HTMLElement {\n  prefix = prefix ? `${prefix}_annotation_${id}` : undefined\n\n  /* Render tooltip with anchor, if given */\n  if (prefix) {\n    const anchor = prefix ? `#${prefix}` : undefined\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <a href={anchor} class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </a>\n      </aside>\n    )\n  } else {\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <span class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </span>\n      </aside>\n    )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a 'copy-to-clipboard' button\n *\n * @param id - Unique identifier\n *\n * @returns Element\n */\nexport function renderClipboardButton(id: string): HTMLElement {\n  return (\n    <button\n      class=\"md-clipboard md-icon\"\n      title={translation(\"clipboard.copy\")}\n      data-clipboard-target={`#${id} > code`}\n    ></button>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ComponentChild } from \"preact\"\n\nimport { configuration, feature, translation } from \"~/_\"\nimport { SearchItem } from \"~/integrations/search\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Render flag\n */\nconst enum Flag {\n  TEASER = 1,                          /* Render teaser */\n  PARENT = 2                           /* Render as parent */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper function\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search document\n *\n * @param document - Search document\n * @param flag - Render flags\n *\n * @returns Element\n */\nfunction renderSearchDocument(\n  document: SearchItem, flag: Flag\n): HTMLElement {\n  const parent = flag & Flag.PARENT\n  const teaser = flag & Flag.TEASER\n\n  /* Render missing query terms */\n  const missing = Object.keys(document.terms)\n    .filter(key => !document.terms[key])\n    .reduce<ComponentChild[]>((list, key) => [\n      ...list, <del>{key}</del>, \" \"\n    ], [])\n    .slice(0, -1)\n\n  /* Assemble query string for highlighting */\n  const config = configuration()\n  const url = new URL(document.location, config.base)\n  if (feature(\"search.highlight\"))\n    url.searchParams.set(\"h\", Object.entries(document.terms)\n      .filter(([, match]) => match)\n      .reduce((highlight, [value]) => `${highlight} ${value}`.trim(), \"\")\n    )\n\n  /* Render article or section, depending on flags */\n  const { tags } = configuration()\n  return (\n    <a href={`${url}`} class=\"md-search-result__link\" tabIndex={-1}>\n      <article\n        class=\"md-search-result__article md-typeset\"\n        data-md-score={document.score.toFixed(2)}\n      >\n        {parent > 0 && <div class=\"md-search-result__icon md-icon\"></div>}\n        {parent > 0 && <h1>{document.title}</h1>}\n        {parent <= 0 && <h2>{document.title}</h2>}\n        {teaser > 0 && document.text.length > 0 &&\n          document.text\n        }\n        {document.tags && document.tags.map(tag => {\n          const type = tags\n            ? tag in tags\n              ? `md-tag-icon md-tag--${tags[tag]}`\n              : \"md-tag-icon\"\n            : \"\"\n          return (\n            <span class={`md-tag ${type}`}>{tag}</span>\n          )\n        })}\n        {teaser > 0 && missing.length > 0 &&\n          <p class=\"md-search-result__terms\">\n            {translation(\"search.result.term.missing\")}: {...missing}\n          </p>\n        }\n      </article>\n    </a>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search result\n *\n * @param result - Search result\n *\n * @returns Element\n */\nexport function renderSearchResultItem(\n  result: SearchItem[]\n): HTMLElement {\n  const threshold = result[0].score\n  const docs = [...result]\n\n  const config = configuration()\n\n  /* Find and extract parent article */\n  const parent = docs.findIndex(doc => {\n    const l = `${new URL(doc.location, config.base)}` // @todo hacky\n    return !l.includes(\"#\")\n  })\n  const [article] = docs.splice(parent, 1)\n\n  /* Determine last index above threshold */\n  let index = docs.findIndex(doc => doc.score < threshold)\n  if (index === -1)\n    index = docs.length\n\n  /* Partition sections */\n  const best = docs.slice(0, index)\n  const more = docs.slice(index)\n\n  /* Render children */\n  const children = [\n    renderSearchDocument(article, Flag.PARENT | +(!parent && index === 0)),\n    ...best.map(section => renderSearchDocument(section, Flag.TEASER)),\n    ...more.length ? [\n      <details class=\"md-search-result__more\">\n        <summary tabIndex={-1}>\n          <div>\n            {more.length > 0 && more.length === 1\n              ? translation(\"search.result.more.one\")\n              : translation(\"search.result.more.other\", more.length)\n            }\n          </div>\n        </summary>\n        {...more.map(section => renderSearchDocument(section, Flag.TEASER))}\n      </details>\n    ] : []\n  ]\n\n  /* Render search result */\n  return (\n    <li class=\"md-search-result__item\">\n      {children}\n    </li>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SourceFacts } from \"~/components\"\nimport { h, round } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render repository facts\n *\n * @param facts - Repository facts\n *\n * @returns Element\n */\nexport function renderSourceFacts(facts: SourceFacts): HTMLElement {\n  return (\n    <ul class=\"md-source__facts\">\n      {Object.entries(facts).map(([key, value]) => (\n        <li class={`md-source__fact md-source__fact--${key}`}>\n          {typeof value === \"number\" ? round(value) : value}\n        </li>\n      ))}\n    </ul>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tabbed control type\n */\ntype TabbedControlType =\n  | \"prev\"\n  | \"next\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render control for content tabs\n *\n * @param type - Control type\n *\n * @returns Element\n */\nexport function renderTabbedControl(\n  type: TabbedControlType\n): HTMLElement {\n  const classes = `tabbed-control tabbed-control--${type}`\n  return (\n    <div class={classes} hidden>\n      <button class=\"tabbed-button\" tabIndex={-1} aria-hidden=\"true\"></button>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a table inside a wrapper to improve scrolling on mobile\n *\n * @param table - Table element\n *\n * @returns Element\n */\nexport function renderTable(table: HTMLElement): HTMLElement {\n  return (\n    <div class=\"md-typeset__scrollwrap\">\n      <div class=\"md-typeset__table\">\n        {table}\n      </div>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { configuration, translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Version\n */\nexport interface Version {\n  version: string                      /* Version identifier */\n  title: string                        /* Version title */\n  aliases: string[]                    /* Version aliases */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version\n *\n * @param version - Version\n *\n * @returns Element\n */\nfunction renderVersion(version: Version): HTMLElement {\n  const config = configuration()\n\n  /* Ensure trailing slash - see https://bit.ly/3rL5u3f */\n  const url = new URL(`../${version.version}/`, config.base)\n  return (\n    <li class=\"md-version__item\">\n      <a href={`${url}`} class=\"md-version__link\">\n        {version.title}\n      </a>\n    </li>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version selector\n *\n * @param versions - Versions\n * @param active - Active version\n *\n * @returns Element\n */\nexport function renderVersionSelector(\n  versions: Version[], active: Version\n): HTMLElement {\n  return (\n    <div class=\"md-version\">\n      <button\n        class=\"md-version__current\"\n        aria-label={translation(\"select.version\")}\n      >\n        {active.title}\n      </button>\n      <ul class=\"md-version__list\">\n        {versions.map(renderVersion)}\n      </ul>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  subscribeOn,\n  tap,\n  throttleTime\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getElement,\n  getElementContainer,\n  getElementOffset,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementHover\n} from \"~/browser\"\nimport { renderTooltip } from \"~/templates\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip\n */\nexport interface Tooltip {\n  active: boolean                      /* Tooltip is active */\n  offset: ElementOffset                /* Tooltip offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for tooltips\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch tooltip\n *\n * This function will append the tooltip temporarily to compute its width,\n * which is necessary for correct centering, and then removing it again.\n *\n * @param el - Tooltip element\n * @param host - Host element\n *\n * @returns Tooltip observable\n */\nexport function watchTooltip(\n  el: HTMLElement, host: HTMLElement\n): Observable<Tooltip> {\n  document.body.append(el)\n\n  /* Compute width and remove tooltip immediately */\n  const { width } = getElementSize(el)\n  el.style.setProperty(\"--md-tooltip-width\", `${width}px`)\n  el.remove()\n\n  /* Retrieve and watch containing element */\n  const container = getElementContainer(host)\n  const scroll$ =\n    typeof container !== \"undefined\"\n      ? watchElementContentOffset(container)\n      : of({ x: 0, y: 0 })\n\n  /* Compute tooltip visibility */\n  const active$ = merge(\n    watchElementFocus(host),\n    watchElementHover(host)\n  )\n    .pipe(\n      distinctUntilChanged()\n    )\n\n  /* Compute tooltip offset */\n  return combineLatest([active$, scroll$])\n    .pipe(\n      map(([active, scroll]) => {\n        let { x, y } = getElementOffset(host)\n        const size = getElementSize(host)\n\n        /**\n         * Experimental: fix handling of tables - see https://bit.ly/3TQEj5O\n         *\n         * If this proves to be a viable fix, we should refactor tooltip\n         * positioning and somehow streamline the current process. This might\n         * also fix positioning for annotations inside tables, which is another\n         * limitation.\n         */\n        const table = host.closest(\"table\")\n        if (table && host.parentElement) {\n          x += table.offsetLeft + host.parentElement.offsetLeft\n          y += table.offsetTop  + host.parentElement.offsetTop\n        }\n        return {\n          active,\n          offset: {\n            x: x - scroll.x + size.width  / 2 - width / 2,\n            y: y - scroll.y + size.height + 8\n          }\n        }\n      })\n    )\n}\n\n/**\n * Mount tooltip\n *\n * @param el - Host element\n *\n * @returns Tooltip component observable\n */\nexport function mountTooltip(\n  el: HTMLElement\n): Observable<Component<Tooltip>> {\n  const title = el.title\n  if (!title.length)\n    return EMPTY\n\n  /* Render tooltip and set title from host element */\n  const id = `__tooltip_${sequence++}`\n  const tooltip = renderTooltip(id, \"inline\")\n  const typeset = getElement(\".md-typeset\", tooltip)\n  typeset.innerHTML = title\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Tooltip>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        tooltip.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        tooltip.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        tooltip.style.removeProperty(\"--md-tooltip-x\")\n        tooltip.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active) {\n            el.insertAdjacentElement(\"afterend\", tooltip)\n            el.setAttribute(\"aria-describedby\", id)\n            el.removeAttribute(\"title\")\n          } else {\n            tooltip.remove()\n            el.removeAttribute(\"aria-describedby\")\n            el.setAttribute(\"title\", title)\n          }\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.remove()\n          el.removeAttribute(\"aria-describedby\")\n          el.setAttribute(\"title\", title)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    // @todo - refactor positioning together with annotations \u2013 there are\n    // several things that overlap and are identical in handling\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n      .subscribe({\n\n        /* Handle emission */\n        next(origin) {\n          if (origin)\n            tooltip.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n          else\n            tooltip.style.removeProperty(\"--md-tooltip-0\")\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.style.removeProperty(\"--md-tooltip-0\")\n        }\n      })\n\n    /* Create and return component */\n    return watchTooltip(tooltip, el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  delay,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  switchMap,\n  take,\n  takeUntil,\n  tap,\n  throttleTime,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getActiveElement,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementOffset,\n  watchElementVisibility\n} from \"~/browser\"\n\nimport { Component } from \"../../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Annotation\n */\nexport interface Annotation {\n  active: boolean                      /* Annotation is active */\n  offset: ElementOffset                /* Annotation offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n *\n * @returns Annotation observable\n */\nexport function watchAnnotation(\n  el: HTMLElement, container: HTMLElement\n): Observable<Annotation> {\n  const offset$ = defer(() => combineLatest([\n    watchElementOffset(el),\n    watchElementContentOffset(container)\n  ]))\n    .pipe(\n      map(([{ x, y }, scroll]): ElementOffset => {\n        const { width, height } = getElementSize(el)\n        return ({\n          x: x - scroll.x + width  / 2,\n          y: y - scroll.y + height / 2\n        })\n      })\n    )\n\n  /* Actively watch annotation on focus */\n  return watchElementFocus(el)\n    .pipe(\n      switchMap(active => offset$\n        .pipe(\n          map(offset => ({ active, offset })),\n          take(+!active || Infinity)\n        )\n      )\n    )\n}\n\n/**\n * Mount annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotation(\n  el: HTMLElement, container: HTMLElement, { target$ }: MountOptions\n): Observable<Component<Annotation>> {\n  const [tooltip, index] = Array.from(el.children)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Annotation>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        el.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        el.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.style.removeProperty(\"--md-tooltip-x\")\n        el.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Start animation only when annotation is visible */\n    watchElementVisibility(el)\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(visible => {\n          el.toggleAttribute(\"data-md-visible\", visible)\n        })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active)\n            el.prepend(tooltip)\n          else\n            tooltip.remove()\n        },\n\n        /* Handle complete */\n        complete() {\n          el.prepend(tooltip)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next(origin) {\n            if (origin)\n              el.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n            else\n              el.style.removeProperty(\"--md-tooltip-0\")\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-tooltip-0\")\n          }\n        })\n\n    /* Allow to copy link without scrolling to anchor */\n    fromEvent<MouseEvent>(index, \"click\")\n      .pipe(\n        takeUntil(done$),\n        filter(ev => !(ev.metaKey || ev.ctrlKey))\n      )\n        .subscribe(ev => {\n          ev.stopPropagation()\n          ev.preventDefault()\n        })\n\n    /* Allow to open link in new tab or blur on close */\n    fromEvent<MouseEvent>(index, \"mousedown\")\n      .pipe(\n        takeUntil(done$),\n        withLatestFrom(push$)\n      )\n        .subscribe(([ev, { active }]) => {\n\n          /* Open in new tab */\n          if (ev.button !== 0 || ev.metaKey || ev.ctrlKey) {\n            ev.preventDefault()\n\n          /* Close annotation */\n          } else if (active) {\n            ev.preventDefault()\n\n            /* Focus parent annotation, if any */\n            const parent = el.parentElement!.closest(\".md-annotation\")\n            if (parent instanceof HTMLElement)\n              parent.focus()\n            else\n              getActiveElement()?.blur()\n          }\n        })\n\n    /* Open and focus annotation on location target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(target => target === tooltip),\n        delay(125)\n      )\n        .subscribe(() => el.focus())\n\n    /* Create and return component */\n    return watchAnnotation(el, container)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  endWith,\n  finalize,\n  ignoreElements,\n  merge,\n  share,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  getOptionalElement\n} from \"~/browser\"\nimport { renderAnnotation } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Annotation,\n  mountAnnotation\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find all annotation hosts in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation hosts\n */\nfunction findHosts(container: HTMLElement): HTMLElement[] {\n  return container.tagName === \"CODE\"\n    ? getElements(\".c, .c1, .cm\", container)\n    : [container]\n}\n\n/**\n * Find all annotation markers in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation markers\n */\nfunction findMarkers(container: HTMLElement): Text[] {\n  const markers: Text[] = []\n  for (const el of findHosts(container)) {\n    const nodes: Text[] = []\n\n    /* Find all text nodes in current element */\n    const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n    for (let node = it.nextNode(); node; node = it.nextNode())\n      nodes.push(node as Text)\n\n    /* Find all markers in each text node */\n    for (let text of nodes) {\n      let match: RegExpExecArray | null\n\n      /* Split text at marker and add to list */\n      while ((match = /(\\(\\d+\\))(!)?/.exec(text.textContent!))) {\n        const [, id, force] = match\n        if (typeof force === \"undefined\") {\n          const marker = text.splitText(match.index)\n          text = marker.splitText(id.length)\n          markers.push(marker)\n\n        /* Replace entire text with marker */\n        } else {\n          text.textContent = id\n          markers.push(text)\n          break\n        }\n      }\n    }\n  }\n  return markers\n}\n\n/**\n * Swap the child nodes of two elements\n *\n * @param source - Source element\n * @param target - Target element\n */\nfunction swap(source: HTMLElement, target: HTMLElement): void {\n  target.append(...Array.from(source.childNodes))\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation list\n *\n * This function analyzes the containing code block and checks for markers\n * referring to elements in the given annotation list. If no markers are found,\n * the list is left untouched. Otherwise, list elements are rendered as\n * annotations inside the code block.\n *\n * @param el - Annotation list element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationList(\n  el: HTMLElement, container: HTMLElement, { target$, print$ }: MountOptions\n): Observable<Component<Annotation>> {\n\n  /* Compute prefix for tooltip anchors */\n  const parent = container.closest(\"[id]\")\n  const prefix = parent?.id\n\n  /* Find and replace all markers with empty annotations */\n  const annotations = new Map<string, HTMLElement>()\n  for (const marker of findMarkers(container)) {\n    const [, id] = marker.textContent!.match(/\\((\\d+)\\)/)!\n    if (getOptionalElement(`:scope > li:nth-child(${id})`, el)) {\n      annotations.set(id, renderAnnotation(id, prefix))\n      marker.replaceWith(annotations.get(id)!)\n    }\n  }\n\n  /* Keep list if there are no annotations to render */\n  if (annotations.size === 0)\n    return EMPTY\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n    /* Retrieve container pairs for swapping */\n    const pairs: [HTMLElement, HTMLElement][] = []\n    for (const [id, annotation] of annotations)\n      pairs.push([\n        getElement(\".md-typeset\", annotation),\n        getElement(`:scope > li:nth-child(${id})`, el)\n      ])\n\n    /* Handle print mode - see https://bit.ly/3rgPdpt */\n    print$.pipe(takeUntil(done$))\n      .subscribe(active => {\n        el.hidden = !active\n\n        /* Add class to discern list element */\n        el.classList.toggle(\"md-annotation-list\", active)\n\n        /* Show annotations in code block or list (print) */\n        for (const [inner, child] of pairs)\n          if (!active)\n            swap(child, inner)\n          else\n            swap(inner, child)\n      })\n\n    /* Create and return component */\n    return merge(...[...annotations]\n      .map(([, annotation]) => (\n        mountAnnotation(annotation, container, { target$ })\n      ))\n    )\n      .pipe(\n        finalize(() => push$.complete()),\n        share()\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable, defer } from \"rxjs\"\n\nimport { Component } from \"../../../_\"\nimport { Annotation } from \"../_\"\nimport { mountAnnotationList } from \"../list\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find list element directly following a block\n *\n * @param el - Annotation block element\n *\n * @returns List element or nothing\n */\nfunction findList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation block\n *\n * @param el - Annotation block element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Annotation>> {\n  return defer(() => {\n    const list = findList(el)\n    return typeof list !== \"undefined\"\n      ? mountAnnotationList(list, el, options)\n      : EMPTY\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  filter,\n  finalize,\n  map,\n  mergeWith,\n  switchMap,\n  take,\n  takeLast,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  getElementContentSize,\n  watchElementSize,\n  watchElementVisibility\n} from \"~/browser\"\nimport { renderClipboardButton } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../../tooltip\"\nimport {\n  Annotation,\n  mountAnnotationList\n} from \"../../annotation\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Code block overflow\n */\nexport interface Overflow {\n  scrollable: boolean                  /* Code block overflows */\n}\n\n/**\n * Code block\n */\nexport type CodeBlock =\n  | Overflow\n  | Annotation\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for code blocks\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find candidate list element directly following a code block\n *\n * @param el - Code block element\n *\n * @returns List element or nothing\n */\nfunction findCandidateList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findCandidateList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch code block\n *\n * This function monitors size changes of the viewport, as well as switches of\n * content tabs with embedded code blocks, as both may trigger overflow.\n *\n * @param el - Code block element\n *\n * @returns Code block observable\n */\nexport function watchCodeBlock(\n  el: HTMLElement\n): Observable<Overflow> {\n  return watchElementSize(el)\n    .pipe(\n      map(({ width }) => {\n        const content = getElementContentSize(el)\n        return {\n          scrollable: content.width > width\n        }\n      }),\n      distinctUntilKeyChanged(\"scrollable\")\n    )\n}\n\n/**\n * Mount code block\n *\n * This function ensures that an overflowing code block is focusable through\n * keyboard, so it can be scrolled without a mouse to improve on accessibility.\n * Furthermore, if code annotations are enabled, they are mounted if and only\n * if the code block is currently visible, e.g., not in a hidden content tab.\n *\n * Note that code blocks may be mounted eagerly or lazily. If they're mounted\n * lazily (on first visibility), code annotation anchor links will not work,\n * as they are evaluated on initial page load, and code annotations in general\n * might feel a little bumpier.\n *\n * @param el - Code block element\n * @param options - Options\n *\n * @returns Code block and annotation component observable\n */\nexport function mountCodeBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<CodeBlock>> {\n  const { matches: hover } = matchMedia(\"(hover)\")\n\n  /* Defer mounting of code block - see https://bit.ly/3vHVoVD */\n  const factory$ = defer(() => {\n    const push$ = new Subject<Overflow>()\n    const done$ = push$.pipe(takeLast(1))\n    push$.subscribe(({ scrollable }) => {\n      if (scrollable && hover)\n        el.setAttribute(\"tabindex\", \"0\")\n      else\n        el.removeAttribute(\"tabindex\")\n    })\n\n    /* Render button for Clipboard.js integration */\n    const content$: Array<Observable<Component<CodeBlock>>> = []\n    if (ClipboardJS.isSupported()) {\n      if (el.closest(\".copy\") || (\n        feature(\"content.code.copy\") && !el.closest(\".no-copy\")\n      )) {\n        const parent = el.closest(\"pre\")!\n        parent.id = `__code_${sequence++}`\n\n        /* Mount tooltip, if enabled */\n        const button = renderClipboardButton(parent.id)\n        parent.insertBefore(button, el)\n        if (feature(\"content.tooltips\"))\n          content$.push(mountTooltip(button))\n      }\n    }\n\n    /* Handle code annotations */\n    const container = el.closest(\".highlight\")\n    if (container instanceof HTMLElement) {\n      const list = findCandidateList(container)\n\n      /* Mount code annotations, if enabled */\n      if (typeof list !== \"undefined\" && (\n        container.classList.contains(\"annotate\") ||\n        feature(\"content.code.annotate\")\n      )) {\n        const annotations$ = mountAnnotationList(list, el, options)\n        content$.push(\n          watchElementSize(container)\n            .pipe(\n              takeUntil(done$),\n              map(({ width, height }) => width && height),\n              distinctUntilChanged(),\n              switchMap(active => active ? annotations$ : EMPTY)\n            )\n        )\n      }\n    }\n\n    /* Create and return component */\n    return watchCodeBlock(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(...content$)\n      )\n  })\n\n  /* Mount code block lazily */\n  if (feature(\"content.lazy\"))\n    return watchElementVisibility(el)\n      .pipe(\n        filter(visible => visible),\n        take(1),\n        switchMap(() => factory$)\n      )\n\n  /* Mount code block */\n  return factory$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Details\n */\nexport interface Details {\n  action: \"open\" | \"close\"             /* Details state */\n  reveal?: boolean                     /* Details is revealed */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch details\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details observable\n */\nexport function watchDetails(\n  el: HTMLDetailsElement, { target$, print$ }: WatchOptions\n): Observable<Details> {\n  let open = true\n  return merge(\n\n    /* Open and focus details on location target */\n    target$\n      .pipe(\n        map(target => target.closest(\"details:not([open])\")!),\n        filter(details => el === details),\n        map(() => ({\n          action: \"open\", reveal: true\n        }) as Details)\n      ),\n\n    /* Open details on print and close afterwards */\n    print$\n      .pipe(\n        filter(active => active || !open),\n        tap(() => open = el.open),\n        map(active => ({\n          action: active ? \"open\" : \"close\"\n        }) as Details)\n      )\n  )\n}\n\n/**\n * Mount details\n *\n * This function ensures that `details` tags are opened on anchor jumps and\n * prior to printing, so the whole content of the page is visible.\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details component observable\n */\nexport function mountDetails(\n  el: HTMLDetailsElement, options: MountOptions\n): Observable<Component<Details>> {\n  return defer(() => {\n    const push$ = new Subject<Details>()\n    push$.subscribe(({ action, reveal }) => {\n      el.toggleAttribute(\"open\", action === \"open\")\n      if (reveal)\n        el.scrollIntoView()\n    })\n\n    /* Create and return component */\n    return watchDetails(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", ".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\nimport themeCSS from \"./index.css\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid diagram\n */\nexport interface Mermaid {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid instance observable\n */\nlet mermaid$: Observable<void>\n\n/**\n * Global sequence number for diagrams\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch Mermaid script\n *\n * @returns Mermaid scripts observable\n */\nfunction fetchScripts(): Observable<void> {\n  return typeof mermaid === \"undefined\" || mermaid instanceof Element\n    ? watchScript(\"https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js\")\n    : of(undefined)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount Mermaid diagram\n *\n * @param el - Code block element\n *\n * @returns Mermaid diagram component observable\n */\nexport function mountMermaid(\n  el: HTMLElement\n): Observable<Component<Mermaid>> {\n  el.classList.remove(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n  mermaid$ ||= fetchScripts()\n    .pipe(\n      tap(() => mermaid.initialize({\n        startOnLoad: false,\n        themeCSS,\n        sequence: {\n          actorFontSize: \"16px\", // Hack: mitigate https://bit.ly/3y0NEi3\n          messageFontSize: \"16px\",\n          noteFontSize: \"16px\"\n        }\n      })),\n      map(() => undefined),\n      shareReplay(1)\n    )\n\n  /* Render diagram */\n  mermaid$.subscribe(async () => {\n    el.classList.add(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n    const id = `__mermaid_${sequence++}`\n\n    /* Create host element to replace code block */\n    const host = h(\"div\", { class: \"mermaid\" })\n    const text = el.textContent\n\n    /* Render and inject diagram */\n    const { svg, fn } = await mermaid.render(id, text)\n\n    /* Create a shadow root and inject diagram */\n    const shadow = host.attachShadow({ mode: \"closed\" })\n    shadow.innerHTML = svg\n\n    /* Replace code block with diagram and bind functions */\n    el.replaceWith(host)\n    fn?.(shadow)\n  })\n\n  /* Create and return component */\n  return mermaid$\n    .pipe(\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, of } from \"rxjs\"\n\nimport { renderTable } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Data table\n */\nexport interface DataTable {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Sentinel for replacement\n */\nconst sentinel = h(\"table\")\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount data table\n *\n * This function wraps a data table in another scrollable container, so it can\n * be smoothly scrolled on smaller screen sizes and won't break the layout.\n *\n * @param el - Data table element\n *\n * @returns Data table component observable\n */\nexport function mountDataTable(\n  el: HTMLElement\n): Observable<Component<DataTable>> {\n  el.replaceWith(sentinel)\n  sentinel.replaceWith(renderTable(el))\n\n  /* Create and return component */\n  return of({ ref: el })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  skip,\n  startWith,\n  subscribeOn,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContentOffset,\n  getElementContentSize,\n  getElementOffset,\n  getElementSize,\n  getElements,\n  watchElementContentOffset,\n  watchElementSize\n} from \"~/browser\"\nimport { renderTabbedControl } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content tabs\n */\nexport interface ContentTabs {\n  active: HTMLLabelElement             /* Active tab label */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch content tabs\n *\n * @param inputs - Content tabs input elements\n *\n * @returns Content tabs observable\n */\nexport function watchContentTabs(\n  inputs: HTMLInputElement[]\n): Observable<ContentTabs> {\n  const initial = inputs.find(input => input.checked) || inputs[0]\n  return merge(...inputs.map(input => fromEvent(input, \"change\")\n    .pipe(\n      map(() => getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`))\n    )\n  ))\n    .pipe(\n      startWith(getElement<HTMLLabelElement>(`label[for=\"${initial.id}\"]`)),\n      map(active => ({ active }))\n    )\n}\n\n/**\n * Mount content tabs\n *\n * @param el - Content tabs element\n * @param options - Options\n *\n * @returns Content tabs component observable\n */\nexport function mountContentTabs(\n  el: HTMLElement, { viewport$, target$ }: MountOptions\n): Observable<Component<ContentTabs>> {\n  const container = getElement(\".tabbed-labels\", el)\n  const inputs = getElements<HTMLInputElement>(\":scope > input\", el)\n\n  /* Render content tab previous button for pagination */\n  const prev = renderTabbedControl(\"prev\")\n  el.append(prev)\n\n  /* Render content tab next button for pagination */\n  const next = renderTabbedControl(\"next\")\n  el.append(next)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<ContentTabs>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    combineLatest([push$, watchElementSize(el)])\n      .pipe(\n        takeUntil(done$),\n        auditTime(1, animationFrameScheduler)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next([{ active }, size]) {\n            const offset = getElementOffset(active)\n            const { width } = getElementSize(active)\n\n            /* Set tab indicator offset and width */\n            el.style.setProperty(\"--md-indicator-x\", `${offset.x}px`)\n            el.style.setProperty(\"--md-indicator-width\", `${width}px`)\n\n            /* Scroll container to active content tab */\n            const content = getElementContentOffset(container)\n            if (\n              offset.x         < content.x              ||\n              offset.x + width > content.x + size.width\n            )\n              container.scrollTo({\n                left: Math.max(0, offset.x - 16),\n                behavior: \"smooth\"\n              })\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-indicator-x\")\n            el.style.removeProperty(\"--md-indicator-width\")\n          }\n        })\n\n    /* Hide content tab buttons on borders */\n    combineLatest([\n      watchElementContentOffset(container),\n      watchElementSize(container)\n    ])\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(([offset, size]) => {\n          const content = getElementContentSize(container)\n          prev.hidden = offset.x < 16\n          next.hidden = offset.x > content.width - size.width - 16\n        })\n\n    /* Paginate content tab container on click */\n    merge(\n      fromEvent(prev, \"click\").pipe(map(() => -1)),\n      fromEvent(next, \"click\").pipe(map(() => +1))\n    )\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(direction => {\n          const { width } = getElementSize(container)\n          container.scrollBy({\n            left: width * direction,\n            behavior: \"smooth\"\n          })\n        })\n\n    /* Switch to content tab target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(input => inputs.includes(input as HTMLInputElement))\n      )\n        .subscribe(input => input.click())\n\n    /* Add link to each content tab label */\n    container.classList.add(\"tabbed-labels--linked\")\n    for (const input of inputs) {\n      const label = getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`)\n      label.replaceChildren(h(\"a\", {\n        href: `#${label.htmlFor}`,\n        tabIndex: -1\n      }, ...Array.from(label.childNodes)))\n\n      /* Allow to copy link without scrolling to anchor */\n      fromEvent<MouseEvent>(label.firstElementChild!, \"click\")\n        .pipe(\n          takeUntil(done$),\n          filter(ev => !(ev.metaKey || ev.ctrlKey)),\n          tap(ev => {\n            ev.preventDefault()\n            ev.stopPropagation()\n          })\n        )\n          // @todo we might need to remove the anchor link on complete\n          .subscribe(() => {\n            history.replaceState({}, \"\", `#${label.htmlFor}`)\n            label.click()\n          })\n    }\n\n    /* Set up linking of content tabs, if enabled */\n    if (feature(\"content.tabs.link\"))\n      push$.pipe(\n        skip(1),\n        withLatestFrom(viewport$)\n      )\n        .subscribe(([{ active }, { offset }]) => {\n          const tab = active.innerText.trim()\n          if (active.hasAttribute(\"data-md-switching\")) {\n            active.removeAttribute(\"data-md-switching\")\n\n          /* Determine viewport offset of active tab */\n          } else {\n            const y = el.offsetTop - offset.y\n\n            /* Passively activate other tabs */\n            for (const set of getElements(\"[data-tabs]\"))\n              for (const input of getElements<HTMLInputElement>(\n                \":scope > input\", set\n              )) {\n                const label = getElement(`label[for=\"${input.id}\"]`)\n                if (\n                  label !== active &&\n                  label.innerText.trim() === tab\n                ) {\n                  label.setAttribute(\"data-md-switching\", \"\")\n                  input.click()\n                  break\n                }\n              }\n\n            /* Bring active tab into view */\n            window.scrollTo({\n              top: el.offsetTop - y\n            })\n\n            /* Persist active tabs in local storage */\n            const tabs = __md_get<string[]>(\"__tabs\") || []\n            __md_set(\"__tabs\", [...new Set([tab, ...tabs])])\n          }\n        })\n\n    /* Pause media (audio, video) on switch - see https://bit.ly/3Bk6cel */\n    push$.pipe(takeUntil(done$))\n      .subscribe(() => {\n        for (const media of getElements<HTMLAudioElement>(\"audio, video\", el))\n          media.pause()\n      })\n\n    /* Create and return component */\n    return watchContentTabs(inputs)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, merge } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { Viewport, getElements } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../tooltip\"\nimport {\n  Annotation,\n  mountAnnotationBlock\n} from \"../annotation\"\nimport {\n  CodeBlock,\n  mountCodeBlock\n} from \"../code\"\nimport {\n  Details,\n  mountDetails\n} from \"../details\"\nimport {\n  Mermaid,\n  mountMermaid\n} from \"../mermaid\"\nimport {\n  DataTable,\n  mountDataTable\n} from \"../table\"\nimport {\n  ContentTabs,\n  mountContentTabs\n} from \"../tabs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content\n */\nexport type Content =\n  | Annotation\n  | CodeBlock\n  | ContentTabs\n  | DataTable\n  | Details\n  | Mermaid\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount content\n *\n * This function mounts all components that are found in the content of the\n * actual article, including code blocks, data tables and details.\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Content component observable\n */\nexport function mountContent(\n  el: HTMLElement, { viewport$, target$, print$ }: MountOptions\n): Observable<Component<Content>> {\n  return merge(\n\n    /* Annotations */\n    ...getElements(\".annotate:not(.highlight)\", el)\n      .map(child => mountAnnotationBlock(child, { target$, print$ })),\n\n    /* Code blocks */\n    ...getElements(\"pre:not(.mermaid) > code\", el)\n      .map(child => mountCodeBlock(child, { target$, print$ })),\n\n    /* Mermaid diagrams */\n    ...getElements(\"pre.mermaid\", el)\n      .map(child => mountMermaid(child)),\n\n    /* Data tables */\n    ...getElements(\"table:not([class])\", el)\n      .map(child => mountDataTable(child)),\n\n    /* Details */\n    ...getElements(\"details\", el)\n      .map(child => mountDetails(child, { target$, print$ })),\n\n    /* Content tabs */\n    ...getElements(\"[data-tabs]\", el)\n      .map(child => mountContentTabs(child, { viewport$, target$ })),\n\n    /* Tooltips */\n    ...getElements(\"[title]\", el)\n      .filter(() => feature(\"content.tooltips\"))\n      .map(child => mountTooltip(child))\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  delay,\n  finalize,\n  map,\n  merge,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dialog\n */\nexport interface Dialog {\n  message: string                      /* Dialog message */\n  active: boolean                      /* Dialog is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch dialog\n *\n * @param _el - Dialog element\n * @param options - Options\n *\n * @returns Dialog observable\n */\nexport function watchDialog(\n  _el: HTMLElement, { alert$ }: WatchOptions\n): Observable<Dialog> {\n  return alert$\n    .pipe(\n      switchMap(message => merge(\n        of(true),\n        of(false).pipe(delay(2000))\n      )\n        .pipe(\n          map(active => ({ message, active }))\n        )\n      )\n    )\n}\n\n/**\n * Mount dialog\n *\n * This function reveals the dialog in the right corner when a new alert is\n * emitted through the subject that is passed as part of the options.\n *\n * @param el - Dialog element\n * @param options - Options\n *\n * @returns Dialog component observable\n */\nexport function mountDialog(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Dialog>> {\n  const inner = getElement(\".md-typeset\", el)\n  return defer(() => {\n    const push$ = new Subject<Dialog>()\n    push$.subscribe(({ message, active }) => {\n      el.classList.toggle(\"md-dialog--active\", active)\n      inner.textContent = message\n    })\n\n    /* Create and return component */\n    return watchDialog(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  combineLatestWith,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  from,\n  ignoreElements,\n  map,\n  mergeMap,\n  mergeWith,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  takeUntil\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  watchElementSize,\n  watchToggle\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Main } from \"../../main\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface Header {\n  height: number                       /* Header visible height */\n  hidden: boolean                      /* Header is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Compute whether the header is hidden\n *\n * If the user scrolls past a certain threshold, the header can be hidden when\n * scrolling down, and shown when scrolling up.\n *\n * @param options - Options\n *\n * @returns Toggle observable\n */\nfunction isHidden({ viewport$ }: WatchOptions): Observable<boolean> {\n  if (!feature(\"header.autohide\"))\n    return of(false)\n\n  /* Compute direction and turning point */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => [a < b, b] as const),\n      distinctUntilKeyChanged(0)\n    )\n\n  /* Compute whether header should be hidden */\n  const hidden$ = combineLatest([viewport$, direction$])\n    .pipe(\n      filter(([{ offset }, [, y]]) => Math.abs(y - offset.y) > 100),\n      map(([, [direction]]) => direction),\n      distinctUntilChanged()\n    )\n\n  /* Compute threshold for hiding */\n  const search$ = watchToggle(\"search\")\n  return combineLatest([viewport$, search$])\n    .pipe(\n      map(([{ offset }, search]) => offset.y > 400 && !search),\n      distinctUntilChanged(),\n      switchMap(active => active ? hidden$ : of(false)),\n      startWith(false)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header observable\n */\nexport function watchHeader(\n  el: HTMLElement, options: WatchOptions\n): Observable<Header> {\n  return defer(() => combineLatest([\n    watchElementSize(el),\n    isHidden(options)\n  ]))\n    .pipe(\n      map(([{ height }, hidden]) => ({\n        height,\n        hidden\n      })),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.hidden === b.hidden\n      )),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount header\n *\n * This function manages the different states of the header, i.e. whether it's\n * hidden or rendered with a shadow. This depends heavily on the main area.\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header component observable\n */\nexport function mountHeader(\n  el: HTMLElement, { header$, main$ }: MountOptions\n): Observable<Component<Header | Tooltip>> {\n  return defer(() => {\n    const push$ = new Subject<Main>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$\n      .pipe(\n        distinctUntilKeyChanged(\"active\"),\n        combineLatestWith(header$)\n      )\n        .subscribe(([{ active }, { hidden }]) => {\n          el.classList.toggle(\"md-header--shadow\", active && !hidden)\n          el.hidden = hidden\n        })\n\n    /* Mount tooltips, if enabled */\n    const tooltips = from(getElements(\"[title]\", el))\n      .pipe(\n        filter(() => feature(\"content.tooltips\")),\n        mergeMap(child => mountTooltip(child))\n      )\n\n    /* Link to main area */\n    main$.subscribe(push$)\n\n    /* Create and return component */\n    return header$\n      .pipe(\n        takeUntil(done$),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(tooltips.pipe(takeUntil(done$)))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElementSize,\n  getOptionalElement,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Header } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface HeaderTitle {\n  active: boolean                      /* Header title is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header title\n *\n * @param el - Heading element\n * @param options - Options\n *\n * @returns Header title observable\n */\nexport function watchHeaderTitle(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<HeaderTitle> {\n  return watchViewportAt(el, { viewport$, header$ })\n    .pipe(\n      map(({ offset: { y } }) => {\n        const { height } = getElementSize(el)\n        return {\n          active: y >= height\n        }\n      }),\n      distinctUntilKeyChanged(\"active\")\n    )\n}\n\n/**\n * Mount header title\n *\n * This function swaps the header title from the site title to the title of the\n * current page when the user scrolls past the first headline.\n *\n * @param el - Header title element\n * @param options - Options\n *\n * @returns Header title component observable\n */\nexport function mountHeaderTitle(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<HeaderTitle>> {\n  return defer(() => {\n    const push$ = new Subject<HeaderTitle>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ active }) {\n        el.classList.toggle(\"md-header__title--active\", active)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.classList.remove(\"md-header__title--active\")\n      }\n    })\n\n    /* Obtain headline, if any */\n    const heading = getOptionalElement(\".md-content h1\")\n    if (typeof heading === \"undefined\")\n      return EMPTY\n\n    /* Create and return component */\n    return watchHeaderTitle(heading, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  map,\n  switchMap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchElementSize\n} from \"~/browser\"\n\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Main area\n */\nexport interface Main {\n  offset: number                       /* Main area top offset */\n  height: number                       /* Main area visible height */\n  active: boolean                      /* Main area is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch main area\n *\n * This function returns an observable that computes the visual parameters of\n * the main area which depends on the viewport vertical offset and height, as\n * well as the height of the header element, if the header is fixed.\n *\n * @param el - Main area element\n * @param options - Options\n *\n * @returns Main area observable\n */\nexport function watchMain(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Main> {\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      map(({ height }) => height),\n      distinctUntilChanged()\n    )\n\n  /* Compute the main area's top and bottom borders */\n  const border$ = adjust$\n    .pipe(\n      switchMap(() => watchElementSize(el)\n        .pipe(\n          map(({ height }) => ({\n            top:    el.offsetTop,\n            bottom: el.offsetTop + height\n          })),\n          distinctUntilKeyChanged(\"bottom\")\n        )\n      )\n    )\n\n  /* Compute the main area's offset, visible height and if we scrolled past */\n  return combineLatest([adjust$, border$, viewport$])\n    .pipe(\n      map(([header, { top, bottom }, { offset: { y }, size: { height } }]) => {\n        height = Math.max(0, height\n          - Math.max(0, top    - y,  header)\n          - Math.max(0, height + y - bottom)\n        )\n        return {\n          offset: top - header,\n          height,\n          active: top - header <= y\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.offset === b.offset &&\n        a.height === b.height &&\n        a.active === b.active\n      ))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  mergeMap,\n  observeOn,\n  of,\n  repeat,\n  shareReplay,\n  skip,\n  startWith,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { getElements, watchMedia } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Palette colors\n */\nexport interface PaletteColor {\n  media?: string                       /* Media query */\n  scheme?: string                      /* Color scheme */\n  primary?: string                     /* Primary color */\n  accent?: string                      /* Accent color */\n}\n\n/**\n * Palette\n */\nexport interface Palette {\n  index: number                        /* Palette index */\n  color: PaletteColor                  /* Palette colors */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch color palette\n *\n * @param inputs - Color palette element\n *\n * @returns Color palette observable\n */\nexport function watchPalette(\n  inputs: HTMLInputElement[]\n): Observable<Palette> {\n  const current = __md_get<Palette>(\"__palette\") || {\n    index: inputs.findIndex(input => matchMedia(\n      input.getAttribute(\"data-md-color-media\")!\n    ).matches)\n  }\n\n  /* Emit changes in color palette */\n  const index = Math.max(0, Math.min(current.index, inputs.length - 1))\n  return of(...inputs)\n    .pipe(\n      mergeMap(input => fromEvent(input, \"change\").pipe(map(() => input))),\n      startWith(inputs[index]),\n      map(input => ({\n        index: inputs.indexOf(input),\n        color: {\n          media:   input.getAttribute(\"data-md-color-media\"),\n          scheme:  input.getAttribute(\"data-md-color-scheme\"),\n          primary: input.getAttribute(\"data-md-color-primary\"),\n          accent:  input.getAttribute(\"data-md-color-accent\")\n        }\n      } as Palette)),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount color palette\n *\n * @param el - Color palette element\n *\n * @returns Color palette component observable\n */\nexport function mountPalette(\n  el: HTMLElement\n): Observable<Component<Palette>> {\n  const inputs = getElements<HTMLInputElement>(\"input\", el)\n  const meta = h(\"meta\", { name: \"theme-color\" })\n  document.head.appendChild(meta)\n\n  // Add color scheme meta tag\n  const scheme = h(\"meta\", { name: \"color-scheme\" })\n  document.head.appendChild(scheme)\n\n  /* Mount component on subscription */\n  const media$ = watchMedia(\"(prefers-color-scheme: light)\")\n  return defer(() => {\n    const push$ = new Subject<Palette>()\n    push$.subscribe(palette => {\n      document.body.setAttribute(\"data-md-color-switching\", \"\")\n\n      /* Retrieve color palette for system preference */\n      if (palette.color.media === \"(prefers-color-scheme)\") {\n        const media = matchMedia(\"(prefers-color-scheme: light)\")\n        const input = document.querySelector(media.matches\n          ? \"[data-md-color-media='(prefers-color-scheme: light)']\"\n          : \"[data-md-color-media='(prefers-color-scheme: dark)']\"\n        )!\n\n        /* Retrieve colors for system preference */\n        palette.color.scheme  = input.getAttribute(\"data-md-color-scheme\")!\n        palette.color.primary = input.getAttribute(\"data-md-color-primary\")!\n        palette.color.accent  = input.getAttribute(\"data-md-color-accent\")!\n      }\n\n      /* Set color palette */\n      for (const [key, value] of Object.entries(palette.color))\n        document.body.setAttribute(`data-md-color-${key}`, value)\n\n      /* Set toggle visibility */\n      for (let index = 0; index < inputs.length; index++) {\n        const label = inputs[index].nextElementSibling\n        if (label instanceof HTMLElement)\n          label.hidden = palette.index !== index\n      }\n\n      /* Persist preference in local storage */\n      __md_set(\"__palette\", palette)\n    })\n\n    /* Update theme-color meta tag */\n    push$\n      .pipe(\n        map(() => {\n          const header = getComponentElement(\"header\")\n          const style  = window.getComputedStyle(header)\n\n          // Set color scheme\n          scheme.content = style.colorScheme\n\n          /* Return color in hexadecimal format */\n          return style.backgroundColor.match(/\\d+/g)!\n            .map(value => (+value).toString(16).padStart(2, \"0\"))\n            .join(\"\")\n        })\n      )\n        .subscribe(color => meta.content = `#${color}`)\n\n    /* Revert transition durations after color switch */\n    push$.pipe(observeOn(asyncScheduler))\n      .subscribe(() => {\n        document.body.removeAttribute(\"data-md-color-switching\")\n      })\n\n    /* Create and return component */\n    return watchPalette(inputs)\n      .pipe(\n        takeUntil(media$.pipe(skip(1))),\n        repeat(),\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Progress indicator\n */\nexport interface Progress {\n  value: number                        // Progress value\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount progress indicator\n *\n * @param el - Progress indicator element\n * @param options - Options\n *\n * @returns Progress indicator component observable\n */\nexport function mountProgress(\n  el: HTMLElement, { progress$ }: MountOptions\n): Observable<Component<Progress>> {\n\n  // Mount component on subscription\n  return defer(() => {\n    const push$ = new Subject<Progress>()\n    push$.subscribe(({ value }) => {\n      el.style.setProperty(\"--md-progress-value\", `${value}`)\n    })\n\n    // Create and return component\n    return progress$\n      .pipe(\n        tap(value => push$.next({ value })),\n        finalize(() => push$.complete()),\n        map(value => ({ ref: el, value }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  Observable,\n  Subject,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Extract text to copy\n *\n * @param el - HTML element\n *\n * @returns Extracted text\n */\nfunction extract(el: HTMLElement): string {\n  el.setAttribute(\"data-md-copying\", \"\")\n  const copy = el.closest(\"[data-copy]\")\n  const text = copy\n    ? copy.getAttribute(\"data-copy\")!\n    : el.innerText\n  el.removeAttribute(\"data-md-copying\")\n  return text.trimEnd()\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up Clipboard.js integration\n *\n * @param options - Options\n */\nexport function setupClipboardJS(\n  { alert$ }: SetupOptions\n): void {\n  if (ClipboardJS.isSupported()) {\n    new Observable<ClipboardJS.Event>(subscriber => {\n      new ClipboardJS(\"[data-clipboard-target], [data-clipboard-text]\", {\n        text: el => (\n          el.getAttribute(\"data-clipboard-text\")! ||\n          extract(getElement(\n            el.getAttribute(\"data-clipboard-target\")!\n          ))\n        )\n      })\n        .on(\"success\", ev => subscriber.next(ev))\n    })\n      .pipe(\n        tap(ev => {\n          const trigger = ev.trigger as HTMLElement\n          trigger.focus()\n        }),\n        map(() => translation(\"clipboard.copied\"))\n      )\n        .subscribe(alert$)\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  catchError,\n  map,\n  of\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  requestXML\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sitemap, i.e. a list of URLs\n */\nexport type Sitemap = Map<string, URL[]>\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Resolve URL to the given base URL\n *\n * When serving the site with instant navigation, MkDocs will set the hostname\n * to the value as specified in `dev_addr`, but the browser allows for several\n * hostnames to be used: `localhost`, `127.0.0.1` or even `0.0.0.0`, depending\n * on configuration. This function resolves the URL to the given hostname.\n *\n * @param url - URL\n * @param base - Base URL\n *\n * @returns Resolved URL\n */\nfunction resolve(url: URL, base: URL) {\n  url.protocol = base.protocol\n  url.hostname = base.hostname\n  return url\n}\n\n/**\n * Extract sitemap from document\n *\n * This function extracts the URLs and alternate links from the document, and\n * associates alternate links to the original URL as found in `loc`, allowing\n * the browser to navigate to the correct page when switching languages. The\n * format of the sitemap is expected to adhere to:\n *\n * ``` xml\n * <urlset>\n *   <url>\n *     <loc>...</loc>\n *     <xhtml:link rel=\"alternate\" hreflang=\"en\" href=\"...\"/>\n *     <xhtml:link rel=\"alternate\" hreflang=\"de\" href=\"...\"/>\n *     ...\n *   </url>\n *   ...\n * </urlset>\n * ```\n *\n * @param document - Document\n * @param base - Base URL\n *\n * @returns Sitemap\n */\nfunction extract(document: Document, base: URL): Sitemap {\n  const sitemap: Sitemap = new Map()\n  for (const el of getElements(\"url\", document)) {\n    const url = getElement(\"loc\", el)\n\n    // Create entry for location and add it to the list of links\n    const links = [resolve(new URL(url.textContent!), base)]\n    sitemap.set(`${links[0]}`, links)\n\n    // Attach alternate links to current entry\n    for (const link of getElements(\"[rel=alternate]\", el)) {\n      const href = link.getAttribute(\"href\")\n      if (href != null)\n        links.push(resolve(new URL(href), base))\n    }\n  }\n\n  // Return sitemap\n  return sitemap\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the sitemap for the given base URL\n *\n * If a network or parsing error occurs, we just default to an empty sitemap,\n * which means the caller should fall back to regular navigation.\n *\n * @param base - Base URL\n *\n * @returns Sitemap observable\n */\nexport function fetchSitemap(base: URL | string): Observable<Sitemap> {\n  return requestXML(new URL(\"sitemap.xml\", base))\n    .pipe(\n      map(document => extract(document, new URL(base))),\n      catchError(() => of(new Map())),\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  combineLatestWith,\n  concat,\n  debounceTime,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  of,\n  share,\n  switchMap,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration, feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  requestHTML,\n  setLocation,\n  setLocationHash\n} from \"~/browser\"\nimport { getComponentElement } from \"~/components\"\n\nimport { Sitemap, fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  location$: Subject<URL>              // Location subject\n  viewport$: Observable<Viewport>      // Viewport observable\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Handle clicks on internal URLs while skipping external URLs\n *\n * @param ev - Mouse event\n * @param sitemap - Sitemap\n *\n * @returns URL observable\n */\nfunction handle(\n  ev: MouseEvent, sitemap: Sitemap\n): Observable<URL> {\n  if (!(ev.target instanceof Element))\n    return EMPTY\n\n  // Skip, as target is not within a link - clicks on non-link elements are\n  // also captured, which we need to exclude from processing\n  const el = ev.target.closest(\"a\")\n  if (el === null)\n    return EMPTY\n\n  // Skip, as link opens in new window - we now know we have captured a click\n  // on a link, but the link either has a `target` property defined, or the\n  // user pressed the `meta` or `ctrl` key to open it in a new window. Thus,\n  // we need to filter this event as well.\n  if (el.target || ev.metaKey || ev.ctrlKey)\n    return EMPTY\n\n  // Next, we must check if the URL is relevant for us, i.e., if it's an\n  // internal link to a page that is managed by MkDocs. Only then we can be\n  // sure that the structure of the page to be loaded adheres to the current\n  // document structure and can subsequently be injected into it without doing\n  // a full reload. For this reason, we must canonicalize the URL by removing\n  // all search parameters and hash fragments.\n  const url = new URL(el.href)\n  url.search = url.hash = \"\"\n\n  // Skip, if URL is not included in the sitemap - this could be the case when\n  // linking between versions or languages, or to another page that the author\n  // included as part of the build, but that is not managed by MkDocs. In that\n  // case we must not continue with instant navigation.\n  if (!sitemap.has(`${url}`))\n    return EMPTY\n\n  // We now know that we have a link to an internal page, so we prevent the\n  // browser from navigation and emit the URL for instant navigation. Note that\n  // this also includes anchor links, which means we need to implement anchor\n  // positioning ourselves. The reason for this is that if we wouldn't manage\n  // anchor links as well, scroll restoration will not work correctly (e.g.\n  // following an anchor link and scrolling).\n  ev.preventDefault()\n  return of(new URL(el.href))\n}\n\n/**\n * Create a map of head elements for lookup and replacement\n *\n * @param document - Document\n *\n * @returns Tag map\n */\nfunction head(document: Document): Map<string, HTMLElement> {\n  const tags = new Map<string, HTMLElement>()\n  for (const el of getElements(\":scope > *\", document.head))\n    tags.set(el.outerHTML, el)\n\n  // Return tag map\n  return tags\n}\n\n/**\n * Resolve relative URLs in the given document\n *\n * This function resolves relative `href` and `src` attributes, which can belong\n * to all sorts of tags, like meta tags, links, images, scripts and more.\n *\n * @param document - Document\n *\n * @returns Document observable\n */\nfunction resolve(document: Document): Observable<Document> {\n  for (const el of getElements(\"[href], [src]\", document))\n    for (const key of [\"href\", \"src\"]) {\n      const value = el.getAttribute(key)\n      if (value && !/^(?:[a-z]+:)?\\/\\//i.test(value)) {\n        // @ts-expect-error - trick: self-assign to resolve URL\n        el[key] = el[key]\n        break\n      }\n    }\n\n  // Return document observable\n  return of(document)\n}\n\n/**\n * Create a map of head elements for lookup and replacement\n *\n * @param next - Next document\n *\n * @returns Document observable\n */\nfunction inject(next: Document): Observable<Document> {\n  for (const selector of [\n    \"[data-md-component=announce]\",\n    \"[data-md-component=container]\",\n    \"[data-md-component=header-topic]\",\n    \"[data-md-component=outdated]\",\n    \"[data-md-component=logo]\",\n    \"[data-md-component=skip]\",\n    ...feature(\"navigation.tabs.sticky\")\n      ? [\"[data-md-component=tabs]\"]\n      : []\n  ]) {\n    const source = getOptionalElement(selector)\n    const target = getOptionalElement(selector, next)\n    if (\n      typeof source !== \"undefined\" &&\n      typeof target !== \"undefined\"\n    ) {\n      source.replaceWith(target)\n    }\n  }\n\n  // Update meta tags\n  const tags = head(document)\n  for (const [html, el] of head(next))\n    if (tags.has(html))\n      tags.delete(html)\n    else\n      document.head.appendChild(el)\n\n  // Remove meta tags that are not present in the new document\n  for (const el of tags.values())\n    el.remove()\n\n  // After components and meta tags were replaced, re-evaluate scripts\n  // that were provided by the author as part of Markdown files\n  const container = getComponentElement(\"container\")\n  return concat(getElements(\"script\", container))\n    .pipe(\n      switchMap(el => {\n        const script = next.createElement(\"script\")\n        if (el.src) {\n          for (const name of el.getAttributeNames())\n            script.setAttribute(name, el.getAttribute(name)!)\n          el.replaceWith(script)\n\n          // Complete when script is loaded\n          return new Observable(observer => {\n            script.onload = () => observer.complete()\n          })\n\n        // Complete immediately\n        } else {\n          script.textContent = el.textContent\n          el.replaceWith(script)\n          return EMPTY\n        }\n      }),\n      ignoreElements(),\n      endWith(next)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up instant navigation\n *\n * This is a heavily orchestrated operation - see inline comments to learn how\n * this works with Material for MkDocs, and how you can hook into it.\n *\n * @param options - Options\n *\n * @returns Document observable\n */\nexport function setupInstantNavigation(\n  { location$, viewport$, progress$ }: SetupOptions\n): Observable<Document> {\n  const config = configuration()\n  if (location.protocol === \"file:\")\n    return EMPTY\n\n  // Load sitemap immediately, so we have it available when the user initiates\n  // the first navigation request without any perceivable delay\n  const sitemap$ = fetchSitemap(config.base)\n\n  // Since we might be on a slow connection, the user might trigger multiple\n  // instant navigation events that overlap. MkDocs produces relative URLs for\n  // all internal links, which becomes a problem in this case, because we need\n  // to change the base URL the moment the user clicks a link that should be\n  // intercepted in order to be consistent with popstate, which means that the\n  // base URL would now be incorrect when resolving another relative link from\n  // the same site. For this reason we always resolve all relative links to\n  // absolute links, so we can be sure this never happens.\n  of(document)\n    .subscribe(resolve)\n\n  // --------------------------------------------------------------------------\n  // Navigation interception\n  // --------------------------------------------------------------------------\n\n  // Intercept navigation - to keep the number of event listeners down we use\n  // the fact that uncaptured events bubble up to the body. This has the nice\n  // property that we don't need to detach and then re-attach event listeners\n  // when the document is replaced after a navigation event.\n  const instant$ =\n    fromEvent<MouseEvent>(document.body, \"click\")\n      .pipe(\n        combineLatestWith(sitemap$),\n        switchMap(([ev, sitemap]) => handle(ev, sitemap)),\n        share()\n      )\n\n  // Intercept history change events, e.g. when the user uses the browser's\n  // back or forward buttons, and emit new location for fetching and parsing\n  const history$ =\n    fromEvent<PopStateEvent>(window, \"popstate\")\n      .pipe(\n        map(getLocation),\n        share()\n      )\n\n  // While it would be better UX to defer navigation events until the document\n  // is fully fetched and parsed, we must schedule it here to synchronize with\n  // popstate events, as they are emitted immediately. Moreover we need to\n  // store the current viewport offset for scroll restoration later on.\n  instant$.pipe(withLatestFrom(viewport$))\n    .subscribe(([url, { offset }]) => {\n      history.replaceState(offset, \"\")\n      history.pushState(null, \"\", url)\n    })\n\n  // Emit URLs that should be fetched via instant navigation on location subject\n  // which was passed into this function. The state of instant navigation can be\n  // intercepted by other parts of the application, which can synchronously back\n  // up or restore state before or after instant navigation happens.\n  merge(instant$, history$)\n    .subscribe(location$)\n\n  // --------------------------------------------------------------------------\n  // Fetching and parsing\n  // --------------------------------------------------------------------------\n\n  // Fetch document - we deduplicate requests to the same location, so we don't\n  // end up with multiple requests for the same page. We use `switchMap`, since\n  // we want to cancel the previous request when a new one is triggered, which\n  // is automatically handled by the observable returned by `request`. This is\n  // essential to ensure a good user experience, as we don't want to load pages\n  // that are not needed anymore, e.g., when the user clicks multiple links in\n  // quick succession or on slow connections. If the request fails for some\n  // reason, we fall back and use regular navigation, forcing a reload.\n  const document$ = location$\n    .pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(url => requestHTML(url, { progress$ })\n        .pipe(\n          catchError(() => {\n            setLocation(url, true)\n            return EMPTY\n          })\n        )\n      ),\n\n      // The document was successfully fetched and parsed, so we can inject its\n      // contents into the currently active document\n      switchMap(resolve),\n      switchMap(inject),\n      share()\n    )\n\n  // --------------------------------------------------------------------------\n  // Scroll restoration\n  // --------------------------------------------------------------------------\n\n  // Handle scroll restoration - we must restore the viewport offset after the\n  // document has been fetched and injected, and every time the user clicks an\n  // anchor that leads to an element on the same page, which might also happen\n  // when the user uses the back or forward button.\n  merge(\n    document$.pipe(withLatestFrom(location$, (_, url) => url)),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with a hash fragment different from the current one, as\n    // well as from popstate events, which are emitted when the user navigates\n    // back and forth between pages. We use a two-layered subscription to scope\n    // the scroll restoration to the current page, as we don't need to restore\n    // the viewport offset when the user navigates to a different page, as this\n    // is already handled by the previous observable.\n    location$.pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(() => location$),\n      distinctUntilKeyChanged(\"hash\"),\n    ),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with the same hash fragment as the current one in the\n    // URL. Is is essential that we only intercept those from instant navigation\n    // events and not from history change events, or we'll end up in and endless\n    // loop. The top-level history entry must be removed, as it will be replaced\n    // with a new one, which would otherwise lead to a duplicate entry.\n    location$.pipe(\n      distinctUntilChanged((a, b) => (\n        a.pathname === b.pathname &&\n        a.hash     === b.hash\n      )),\n      switchMap(() => instant$),\n      tap(() => history.back())\n    )\n  )\n    .subscribe(url => {\n\n      // Check if the current history entry has a state, which happens when the\n      // user presses the back or forward button to visit a page we've already\n      // seen. If there's no state, it means a new page was visited and we must\n      // scroll to the top, unless an anchor is given.\n      if (history.state !== null || !url.hash) {\n        window.scrollTo(0, history.state?.y ?? 0)\n      } else {\n        history.scrollRestoration = \"auto\"\n        setLocationHash(url.hash)\n        history.scrollRestoration = \"manual\"\n      }\n    })\n\n  // Disable scroll restoration when an instant navigation event occurs, so the\n  // browser does not immediately set the viewport offset to the prior history\n  // entry, scrolling to the position on the same page, which would look odd.\n  // Instead, we manually restore the position once the page has loaded.\n  location$.subscribe(() => {\n    history.scrollRestoration = \"manual\"\n  })\n\n  // Enable scroll restoration before window unloads - this is essential to\n  // ensure that full reloads (F5) restore the viewport offset correctly. If\n  // only popstate events wouldn't reset the viewport offset prior to their\n  // emission, we could just reset this in popstate. Meh.\n  fromEvent(window, \"beforeunload\")\n    .subscribe(() => {\n      history.scrollRestoration = \"auto\"\n    })\n\n  // Track viewport offset, so we can restore it when the user navigates back\n  // and forth between pages. Note that this must be debounced and cannot be\n  // done in popstate, as popstate has already removed the entry from the\n  // history, which means it is too late.\n  viewport$\n    .pipe(\n      distinctUntilKeyChanged(\"offset\"),\n      debounceTime(100)\n    )\n      .subscribe(({ offset }) => {\n        history.replaceState(offset, \"\")\n      })\n\n  // Return document\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport escapeHTML from \"escape-html\"\n\nimport { SearchConfig } from \"../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlight function\n *\n * @param value - Value\n *\n * @returns Highlighted value\n */\nexport type SearchHighlightFn = (value: string) => string\n\n/**\n * Search highlight factory function\n *\n * @param query - Query value\n *\n * @returns Search highlight function\n */\nexport type SearchHighlightFactoryFn = (query: string) => SearchHighlightFn\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search highlighter\n *\n * @param config - Search configuration\n *\n * @returns Search highlight factory function\n */\nexport function setupSearchHighlighter(\n  config: SearchConfig\n): SearchHighlightFactoryFn {\n  // Hack: temporarily remove pure lookaheads and lookbehinds\n  const regex = config.separator.split(\"|\").map(term => {\n    const temp = term.replace(/(\\(\\?[!=<][^)]+\\))/g, \"\")\n    return temp.length === 0 ? \"\uFFFD\" : term\n  })\n    .join(\"|\")\n\n  const separator = new RegExp(regex, \"img\")\n  const highlight = (_: unknown, data: string, term: string) => {\n    return `${data}<mark data-md-highlight>${term}</mark>`\n  }\n\n  /* Return factory function */\n  return (query: string) => {\n    query = query\n      .replace(/[\\s*+\\-:~^]+/g, \" \")\n      .trim()\n\n    /* Create search term match expression */\n    const match = new RegExp(`(^|${config.separator}|)(${\n      query\n        .replace(/[|\\\\{}()[\\]^$+*?.-]/g, \"\\\\$&\")\n        .replace(separator, \"|\")\n    })`, \"img\")\n\n    /* Highlight string value */\n    return value => escapeHTML(value)\n      .replace(match, highlight)\n      .replace(/<\\/mark>(\\s+)<mark[^>]*>/img, \"$1\")\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchResult } from \"../../_\"\nimport { SearchIndex } from \"../../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search message type\n */\nexport const enum SearchMessageType {\n  SETUP,                               /* Search index setup */\n  READY,                               /* Search index ready */\n  QUERY,                               /* Search query */\n  RESULT                               /* Search results */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message containing the data necessary to setup the search index\n */\nexport interface SearchSetupMessage {\n  type: SearchMessageType.SETUP        /* Message type */\n  data: SearchIndex                    /* Message data */\n}\n\n/**\n * Message indicating the search index is ready\n */\nexport interface SearchReadyMessage {\n  type: SearchMessageType.READY        /* Message type */\n}\n\n/**\n * Message containing a search query\n */\nexport interface SearchQueryMessage {\n  type: SearchMessageType.QUERY        /* Message type */\n  data: string                         /* Message data */\n}\n\n/**\n * Message containing results for a search query\n */\nexport interface SearchResultMessage {\n  type: SearchMessageType.RESULT       /* Message type */\n  data: SearchResult                   /* Message data */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message exchanged with the search worker\n */\nexport type SearchMessage =\n  | SearchSetupMessage\n  | SearchReadyMessage\n  | SearchQueryMessage\n  | SearchResultMessage\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Type guard for search ready messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchReadyMessage(\n  message: SearchMessage\n): message is SearchReadyMessage {\n  return message.type === SearchMessageType.READY\n}\n\n/**\n * Type guard for search result messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchResultMessage(\n  message: SearchMessage\n): message is SearchResultMessage {\n  return message.type === SearchMessageType.RESULT\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ObservableInput,\n  Subject,\n  first,\n  merge,\n  of,\n  switchMap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { watchToggle, watchWorker } from \"~/browser\"\n\nimport { SearchIndex } from \"../../config\"\nimport {\n  SearchMessage,\n  SearchMessageType\n} from \"../message\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up search worker\n *\n * This function creates and initializes a web worker that is used for search,\n * so that the user interface doesn't freeze. In general, the application does\n * not care how search is implemented, as long as the web worker conforms to\n * the format expected by the application as defined in `SearchMessage`. This\n * allows the author to implement custom search functionality, by providing a\n * custom web worker via configuration.\n *\n * Material for MkDocs' built-in search implementation makes use of Lunr.js, an\n * efficient and fast implementation for client-side search. Leveraging a tiny\n * iframe-based web worker shim, search is even supported for the `file://`\n * protocol, enabling search for local non-hosted builds.\n *\n * If the protocol is `file://`, search initialization is deferred to mitigate\n * freezing, as it's now synchronous by design - see https://bit.ly/3C521EO\n *\n * @see https://bit.ly/3igvtQv - How to implement custom search\n *\n * @param url - Worker URL\n * @param index$ - Search index observable input\n *\n * @returns Search worker\n */\nexport function setupSearchWorker(\n  url: string, index$: ObservableInput<SearchIndex>\n): Subject<SearchMessage> {\n  const worker$ = watchWorker<SearchMessage>(url)\n  merge(\n    of(location.protocol !== \"file:\"),\n    watchToggle(\"search\")\n  )\n    .pipe(\n      first(active => active),\n      switchMap(() => index$)\n    )\n      .subscribe(({ config, docs }) => worker$.next({\n        type: SearchMessageType.SETUP,\n        data: {\n          config,\n          docs,\n          options: {\n            suggest: feature(\"search.suggest\")\n          }\n        }\n      }))\n\n  /* Return search worker */\n  return worker$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Subject,\n  catchError,\n  combineLatest,\n  filter,\n  fromEvent,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  getElement,\n  getLocation,\n  requestJSON,\n  setLocation\n} from \"~/browser\"\nimport { getComponentElements } from \"~/components\"\nimport {\n  Version,\n  renderVersionSelector\n} from \"~/templates\"\n\nimport { fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  document$: Subject<Document>         /* Document subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up version selector\n *\n * @param options - Options\n */\nexport function setupVersionSelector(\n  { document$ }: SetupOptions\n): void {\n  const config = configuration()\n  const versions$ = requestJSON<Version[]>(\n    new URL(\"../versions.json\", config.base)\n  )\n    .pipe(\n      catchError(() => EMPTY) // @todo refactor instant loading\n    )\n\n  /* Determine current version */\n  const current$ = versions$\n    .pipe(\n      map(versions => {\n        const [, current] = config.base.match(/([^/]+)\\/?$/)!\n        return versions.find(({ version, aliases }) => (\n          version === current || aliases.includes(current)\n        )) || versions[0]\n      })\n    )\n\n  /* Intercept inter-version navigation */\n  versions$\n    .pipe(\n      map(versions => new Map(versions.map(version => [\n        `${new URL(`../${version.version}/`, config.base)}`,\n        version\n      ]))),\n      switchMap(urls => fromEvent<MouseEvent>(document.body, \"click\")\n        .pipe(\n          filter(ev => !ev.metaKey && !ev.ctrlKey),\n          withLatestFrom(current$),\n          switchMap(([ev, current]) => {\n            if (ev.target instanceof Element) {\n              const el = ev.target.closest(\"a\")\n              if (el && !el.target && urls.has(el.href)) {\n                const url = el.href\n                // This is a temporary hack to detect if a version inside the\n                // version selector or on another part of the site was clicked.\n                // If we're inside the version selector, we definitely want to\n                // find the same page, as we might have different deployments\n                // due to aliases. However, if we're outside the version\n                // selector, we must abort here, because we might otherwise\n                // interfere with instant navigation. We need to refactor this\n                // at some point together with instant navigation.\n                //\n                // See https://github.com/squidfunk/mkdocs-material/issues/4012\n                if (!ev.target.closest(\".md-version\")) {\n                  const version = urls.get(url)!\n                  if (version === current)\n                    return EMPTY\n                }\n                ev.preventDefault()\n                return of(url)\n              }\n            }\n            return EMPTY\n          }),\n          switchMap(url => {\n            const { version } = urls.get(url)!\n            return fetchSitemap(new URL(url))\n              .pipe(\n                map(sitemap => {\n                  const location = getLocation()\n                  const path = location.href.replace(config.base, \"\")\n                  return sitemap.has(path.split(\"#\")[0])\n                    ? new URL(`../${version}/${path}`, config.base)\n                    : new URL(url)\n                })\n              )\n          })\n        )\n      )\n    )\n      .subscribe(url => setLocation(url, true))\n\n  /* Render version selector and warning */\n  combineLatest([versions$, current$])\n    .subscribe(([versions, current]) => {\n      const topic = getElement(\".md-header__topic\")\n      topic.appendChild(renderVersionSelector(versions, current))\n    })\n\n  /* Integrate outdated version banner with instant navigation */\n  document$.pipe(switchMap(() => current$))\n    .subscribe(current => {\n\n      /* Check if version state was already determined */\n      let outdated = __md_get(\"__outdated\", sessionStorage)\n      if (outdated === null) {\n        outdated = true\n\n        /* Obtain and normalize default versions */\n        let ignored = config.version?.default || \"latest\"\n        if (!Array.isArray(ignored))\n          ignored = [ignored]\n\n        /* Check if version is considered a default */\n        main: for (const ignore of ignored)\n          for (const version of current.aliases.concat(current.version))\n            if (new RegExp(ignore, \"i\").test(version)) {\n              outdated = false\n              break main\n            }\n\n        /* Persist version state in session storage */\n        __md_set(\"__outdated\", outdated, sessionStorage)\n      }\n\n      /* Unhide outdated version banner */\n      if (outdated)\n        for (const warning of getComponentElements(\"outdated\"))\n          warning.hidden = false\n    })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  first,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  shareReplay,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getLocation,\n  setToggle,\n  watchElementFocus,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchMessageType,\n  isSearchReadyMessage\n} from \"~/integrations\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search query\n */\nexport interface SearchQuery {\n  value: string                        /* Query value */\n  focus: boolean                       /* Query focus */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch search query\n *\n * Note that the focus event which triggers re-reading the current query value\n * is delayed by `1ms` so the input's empty state is allowed to propagate.\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query observable\n */\nexport function watchSearchQuery(\n  el: HTMLInputElement, { worker$ }: WatchOptions\n): Observable<SearchQuery> {\n\n  /* Support search deep linking */\n  const { searchParams } = getLocation()\n  if (searchParams.has(\"q\")) {\n    setToggle(\"search\", true)\n\n    /* Set query from parameter */\n    el.value = searchParams.get(\"q\")!\n    el.focus()\n\n    /* Remove query parameter on close */\n    watchToggle(\"search\")\n      .pipe(\n        first(active => !active)\n      )\n        .subscribe(() => {\n          const url = getLocation()\n          url.searchParams.delete(\"q\")\n          history.replaceState({}, \"\", `${url}`)\n        })\n  }\n\n  /* Intercept focus and input events */\n  const focus$ = watchElementFocus(el)\n  const value$ = merge(\n    worker$.pipe(first(isSearchReadyMessage)),\n    fromEvent(el, \"keyup\"),\n    focus$\n  )\n    .pipe(\n      map(() => el.value),\n      distinctUntilChanged()\n    )\n\n  /* Combine into single observable */\n  return combineLatest([value$, focus$])\n    .pipe(\n      map(([value, focus]) => ({ value, focus })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount search query\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query component observable\n */\nexport function mountSearchQuery(\n  el: HTMLInputElement, { worker$ }: MountOptions\n): Observable<Component<SearchQuery, HTMLInputElement>> {\n  const push$ = new Subject<SearchQuery>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n  /* Handle value change */\n  combineLatest([\n    worker$.pipe(first(isSearchReadyMessage)),\n    push$\n  ], (_, query) => query)\n    .pipe(\n      distinctUntilKeyChanged(\"value\")\n    )\n      .subscribe(({ value }) => worker$.next({\n        type: SearchMessageType.QUERY,\n        data: value\n      }))\n\n  /* Handle focus change */\n  push$\n    .pipe(\n      distinctUntilKeyChanged(\"focus\")\n    )\n      .subscribe(({ focus }) => {\n        if (focus)\n          setToggle(\"search\", focus)\n      })\n\n  /* Handle reset */\n  fromEvent(el.form!, \"reset\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(() => el.focus())\n\n  // Focus search query on label click - note that this is necessary to bring\n  // up the keyboard on iOS and other mobile platforms, as the search dialog is\n  // not visible at first, and programatically focusing an input element must\n  // be triggered by a user interaction - see https://t.ly/Cb30n\n  const label = getElement(\"header [for=__search]\")\n  fromEvent(label, \"click\")\n    .subscribe(() => el.focus())\n\n  /* Create and return component */\n  return watchSearchQuery(el, { worker$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  bufferCount,\n  filter,\n  finalize,\n  first,\n  fromEvent,\n  map,\n  merge,\n  mergeMap,\n  of,\n  share,\n  skipUntil,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom,\n  zipWith\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport {\n  getElement,\n  getOptionalElement,\n  watchElementBoundary,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchReadyMessage,\n  isSearchResultMessage\n} from \"~/integrations\"\nimport { renderSearchResultItem } from \"~/templates\"\nimport { round } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search result list\n *\n * This function performs a lazy rendering of the search results, depending on\n * the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchResult(\n  el: HTMLElement, { worker$, query$ }: MountOptions\n): Observable<Component<SearchResult>> {\n  const push$ = new Subject<SearchResult>()\n  const boundary$ = watchElementBoundary(el.parentElement!)\n    .pipe(\n      filter(Boolean)\n    )\n\n  /* Retrieve container */\n  const container = el.parentElement!\n\n  /* Retrieve nested components */\n  const meta = getElement(\":scope > :first-child\", el)\n  const list = getElement(\":scope > :last-child\", el)\n\n  /* Reveal to accessibility tree \u2013 see https://bit.ly/3iAA7t8 */\n  watchToggle(\"search\")\n    .subscribe(active => list.setAttribute(\n      \"role\", active ? \"list\" : \"presentation\"\n    ))\n\n  /* Update search result metadata */\n  push$\n    .pipe(\n      withLatestFrom(query$),\n      skipUntil(worker$.pipe(first(isSearchReadyMessage)))\n    )\n      .subscribe(([{ items }, { value }]) => {\n        switch (items.length) {\n\n          /* No results */\n          case 0:\n            meta.textContent = value.length\n              ? translation(\"search.result.none\")\n              : translation(\"search.result.placeholder\")\n            break\n\n          /* One result */\n          case 1:\n            meta.textContent = translation(\"search.result.one\")\n            break\n\n          /* Multiple result */\n          default:\n            const count = round(items.length)\n            meta.textContent = translation(\"search.result.other\", count)\n        }\n      })\n\n  /* Render search result item */\n  const render$ = push$\n    .pipe(\n      tap(() => list.innerHTML = \"\"),\n      switchMap(({ items }) => merge(\n        of(...items.slice(0, 10)),\n        of(...items.slice(10))\n          .pipe(\n            bufferCount(4),\n            zipWith(boundary$),\n            switchMap(([chunk]) => chunk)\n          )\n      )),\n      map(renderSearchResultItem),\n      share()\n    )\n\n  /* Update search result list */\n  render$.subscribe(item => list.appendChild(item))\n  render$\n    .pipe(\n      mergeMap(item => {\n        const details = getOptionalElement(\"details\", item)\n        if (typeof details === \"undefined\")\n          return EMPTY\n\n        /* Keep position of details element stable */\n        return fromEvent(details, \"toggle\")\n          .pipe(\n            takeUntil(push$),\n            map(() => details)\n          )\n      })\n    )\n      .subscribe(details => {\n        if (\n          details.open === false &&\n          details.offsetTop <= container.scrollTop\n        )\n          container.scrollTo({ top: details.offsetTop })\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search sharing\n */\nexport interface SearchShare {\n  url: URL                             /* Deep link for sharing */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search sharing\n *\n * @param _el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing observable\n */\nexport function watchSearchShare(\n  _el: HTMLElement, { query$ }: WatchOptions\n): Observable<SearchShare> {\n  return query$\n    .pipe(\n      map(({ value }) => {\n        const url = getLocation()\n        url.hash = \"\"\n\n        /* Compute readable query strings */\n        value = value\n          .replace(/\\s+/g, \"+\")        /* Collapse whitespace */\n          .replace(/&/g, \"%26\")        /* Escape '&' character */\n          .replace(/=/g, \"%3D\")        /* Escape '=' character */\n\n        /* Replace query string */\n        url.search = `q=${value}`\n        return { url }\n      })\n    )\n}\n\n/**\n * Mount search sharing\n *\n * @param el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing component observable\n */\nexport function mountSearchShare(\n  el: HTMLAnchorElement, options: MountOptions\n): Observable<Component<SearchShare>> {\n  const push$ = new Subject<SearchShare>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe(({ url }) => {\n    el.setAttribute(\"data-clipboard-text\", el.href)\n    el.href = `${url}`\n  })\n\n  /* Prevent following of link */\n  fromEvent(el, \"click\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(ev => ev.preventDefault())\n\n  /* Create and return component */\n  return watchSearchShare(el, options)\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  combineLatestWith,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  observeOn,\n  tap\n} from \"rxjs\"\n\nimport { Keyboard } from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchResultMessage\n} from \"~/integrations\"\n\nimport { Component, getComponentElement } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search suggestions\n */\nexport interface SearchSuggest {}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search suggestions\n *\n * This function will perform a lazy rendering of the search results, depending\n * on the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchSuggest(\n  el: HTMLElement, { worker$, keyboard$ }: MountOptions\n): Observable<Component<SearchSuggest>> {\n  const push$ = new Subject<SearchResult>()\n\n  /* Retrieve query component and track all changes */\n  const query  = getComponentElement(\"search-query\")\n  const query$ = merge(\n    fromEvent(query, \"keydown\"),\n    fromEvent(query, \"focus\")\n  )\n    .pipe(\n      observeOn(asyncScheduler),\n      map(() => query.value),\n      distinctUntilChanged(),\n    )\n\n  /* Update search suggestions */\n  push$\n    .pipe(\n      combineLatestWith(query$),\n      map(([{ suggest }, value]) => {\n        const words = value.split(/([\\s-]+)/)\n        if (suggest?.length && words[words.length - 1]) {\n          const last = suggest[suggest.length - 1]\n          if (last.startsWith(words[words.length - 1]))\n            words[words.length - 1] = last\n        } else {\n          words.length = 0\n        }\n        return words\n      })\n    )\n      .subscribe(words => el.innerHTML = words\n        .join(\"\")\n        .replace(/\\s/g, \"&nbsp;\")\n      )\n\n  /* Set up search keyboard handlers */\n  keyboard$\n    .pipe(\n      filter(({ mode }) => mode === \"search\")\n    )\n      .subscribe(key => {\n        switch (key.type) {\n\n          /* Right arrow: accept current suggestion */\n          case \"ArrowRight\":\n            if (\n              el.innerText.length &&\n              query.selectionStart === query.value.length\n            )\n              query.value = el.innerText\n            break\n        }\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  ObservableInput,\n  filter,\n  fromEvent,\n  merge,\n  mergeWith\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  Keyboard,\n  getActiveElement,\n  getElements,\n  setToggle\n} from \"~/browser\"\nimport {\n  SearchIndex,\n  SearchResult,\n  setupSearchWorker\n} from \"~/integrations\"\n\nimport {\n  Component,\n  getComponentElement,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SearchQuery,\n  mountSearchQuery\n} from \"../query\"\nimport { mountSearchResult } from \"../result\"\nimport {\n  SearchShare,\n  mountSearchShare\n} from \"../share\"\nimport {\n  SearchSuggest,\n  mountSearchSuggest\n} from \"../suggest\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search\n */\nexport type Search =\n  | SearchQuery\n  | SearchResult\n  | SearchShare\n  | SearchSuggest\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search\n *\n * This function sets up the search functionality, including the underlying\n * web worker and all keyboard bindings.\n *\n * @param el - Search element\n * @param options - Options\n *\n * @returns Search component observable\n */\nexport function mountSearch(\n  el: HTMLElement, { index$, keyboard$ }: MountOptions\n): Observable<Component<Search>> {\n  const config = configuration()\n  try {\n    const worker$ = setupSearchWorker(config.search, index$)\n\n    /* Retrieve query and result components */\n    const query  = getComponentElement(\"search-query\", el)\n    const result = getComponentElement(\"search-result\", el)\n\n    /* Always close search on result selection */\n    fromEvent<PointerEvent>(el, \"click\")\n      .pipe(\n        filter(({ target }) => (\n          target instanceof Element && !!target.closest(\"a\")\n        ))\n      )\n        .subscribe(() => setToggle(\"search\", false))\n\n    /* Set up search keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"search\")\n      )\n        .subscribe(key => {\n          const active = getActiveElement()\n          switch (key.type) {\n\n            /* Enter: go to first (best) result */\n            case \"Enter\":\n              if (active === query) {\n                const anchors = new Map<HTMLAnchorElement, number>()\n                for (const anchor of getElements<HTMLAnchorElement>(\n                  \":first-child [href]\", result\n                )) {\n                  const article = anchor.firstElementChild!\n                  anchors.set(anchor, parseFloat(\n                    article.getAttribute(\"data-md-score\")!\n                  ))\n                }\n\n                /* Go to result with highest score, if any */\n                if (anchors.size) {\n                  const [[best]] = [...anchors].sort(([, a], [, b]) => b - a)\n                  best.click()\n                }\n\n                /* Otherwise omit form submission */\n                key.claim()\n              }\n              break\n\n            /* Escape or Tab: close search */\n            case \"Escape\":\n            case \"Tab\":\n              setToggle(\"search\", false)\n              query.blur()\n              break\n\n            /* Vertical arrows: select previous or next search result */\n            case \"ArrowUp\":\n            case \"ArrowDown\":\n              if (typeof active === \"undefined\") {\n                query.focus()\n              } else {\n                const els = [query, ...getElements(\n                  \":not(details) > [href], summary, details[open] [href]\",\n                  result\n                )]\n                const i = Math.max(0, (\n                  Math.max(0, els.indexOf(active)) + els.length + (\n                    key.type === \"ArrowUp\" ? -1 : +1\n                  )\n                ) % els.length)\n                els[i].focus()\n              }\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n\n            /* All other keys: hand to search query */\n            default:\n              if (query !== getActiveElement())\n                query.focus()\n          }\n        })\n\n    /* Set up global keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"global\")\n      )\n        .subscribe(key => {\n          switch (key.type) {\n\n            /* Open search and select query */\n            case \"f\":\n            case \"s\":\n            case \"/\":\n              query.focus()\n              query.select()\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n          }\n        })\n\n    /* Create and return component */\n    const query$ = mountSearchQuery(query, { worker$ })\n    return merge(\n      query$,\n      mountSearchResult(result, { worker$, query$ })\n    )\n      .pipe(\n        mergeWith(\n\n          /* Search sharing */\n          ...getComponentElements(\"search-share\", el)\n            .map(child => mountSearchShare(child, { query$ })),\n\n          /* Search suggestions */\n          ...getComponentElements(\"search-suggest\", el)\n            .map(child => mountSearchSuggest(child, { worker$, keyboard$ }))\n        )\n      )\n\n  /* Gracefully handle broken search */\n  } catch (err) {\n    el.hidden = true\n    return NEVER\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  ObservableInput,\n  combineLatest,\n  filter,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\nimport {\n  SearchIndex,\n  setupSearchHighlighter\n} from \"~/integrations\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlighting\n */\nexport interface SearchHighlight {\n  nodes: Map<ChildNode, string>        /* Map of replacements */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  location$: Observable<URL>           /* Location observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search highlighting\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Search highlighting component observable\n */\nexport function mountSearchHiglight(\n  el: HTMLElement, { index$, location$ }: MountOptions\n): Observable<Component<SearchHighlight>> {\n  return combineLatest([\n    index$,\n    location$\n      .pipe(\n        startWith(getLocation()),\n        filter(url => !!url.searchParams.get(\"h\"))\n      )\n  ])\n    .pipe(\n      map(([index, url]) => setupSearchHighlighter(index.config)(\n        url.searchParams.get(\"h\")!\n      )),\n      map(fn => {\n        const nodes = new Map<ChildNode, string>()\n\n        /* Traverse text nodes and collect matches */\n        const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n        for (let node = it.nextNode(); node; node = it.nextNode()) {\n          if (node.parentElement?.offsetHeight) {\n            const original = node.textContent!\n            const replaced = fn(original)\n            if (replaced.length > original.length)\n              nodes.set(node as ChildNode, replaced)\n          }\n        }\n\n        /* Replace original nodes with matches */\n        for (const [node, text] of nodes) {\n          const { childNodes } = h(\"span\", null, text)\n          node.replaceWith(...Array.from(childNodes))\n        }\n\n        /* Return component */\n        return { ref: el, nodes }\n      })\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  distinctUntilChanged,\n  endWith,\n  finalize,\n  first,\n  from,\n  fromEvent,\n  ignoreElements,\n  map,\n  mergeMap,\n  observeOn,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElement,\n  getElementOffset,\n  getElementSize,\n  getElements\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sidebar\n */\nexport interface Sidebar {\n  height: number                       /* Sidebar height */\n  locked: boolean                      /* Sidebar is locked */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch sidebar\n *\n * This function returns an observable that computes the visual parameters of\n * the sidebar which depends on the vertical viewport offset, as well as the\n * height of the main area. When the page is scrolled beyond the header, the\n * sidebar is locked and fills the remaining space.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar observable\n */\nexport function watchSidebar(\n  el: HTMLElement, { viewport$, main$ }: WatchOptions\n): Observable<Sidebar> {\n  const parent = el.closest<HTMLElement>(\".md-grid\")!\n  const adjust =\n    parent.offsetTop -\n    parent.parentElement!.offsetTop\n\n  /* Compute the sidebar's available height and if it should be locked */\n  return combineLatest([main$, viewport$])\n    .pipe(\n      map(([{ offset, height }, { offset: { y } }]) => {\n        height = height\n          + Math.min(adjust, Math.max(0, y - offset))\n          - adjust\n        return {\n          height,\n          locked: y >= offset + adjust\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.locked === b.locked\n      ))\n    )\n}\n\n/**\n * Mount sidebar\n *\n * This function doesn't set the height of the actual sidebar, but of its first\n * child \u2013 the `.md-sidebar__scrollwrap` element in order to mitigiate jittery\n * sidebars when the footer is scrolled into view. At some point we switched\n * from `absolute` / `fixed` positioning to `sticky` positioning, significantly\n * reducing jitter in some browsers (respectively Firefox and Safari) when\n * scrolling from the top. However, top-aligned sticky positioning means that\n * the sidebar snaps to the bottom when the end of the container is reached.\n * This is what leads to the mentioned jitter, as the sidebar's height may be\n * updated too slowly.\n *\n * This behaviour can be mitigiated by setting the height of the sidebar to `0`\n * while preserving the padding, and the height on its first element.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar component observable\n */\nexport function mountSidebar(\n  el: HTMLElement, { header$, ...options }: MountOptions\n): Observable<Component<Sidebar>> {\n  const inner = getElement(\".md-sidebar__scrollwrap\", el)\n  const { y } = getElementOffset(inner)\n  return defer(() => {\n    const push$ = new Subject<Sidebar>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    const next$ = push$\n      .pipe(\n        auditTime(0, animationFrameScheduler)\n      )\n\n    /* Update sidebar height and offset */\n    next$.pipe(withLatestFrom(header$))\n      .subscribe({\n\n        /* Handle emission */\n        next([{ height }, { height: offset }]) {\n          inner.style.height = `${height - 2 * y}px`\n          el.style.top       = `${offset}px`\n        },\n\n        /* Handle complete */\n        complete() {\n          inner.style.height = \"\"\n          el.style.top       = \"\"\n        }\n      })\n\n    /* Bring active item into view on initial load */\n    next$.pipe(first())\n      .subscribe(() => {\n        for (const item of getElements(\".md-nav__link--active[href]\", el)) {\n          if (!item.clientHeight) // skip invisible toc in left sidebar\n            continue\n          const container = item.closest<HTMLElement>(\".md-sidebar__scrollwrap\")!\n          if (typeof container !== \"undefined\") {\n            const offset = item.offsetTop - container.offsetTop\n            const { height } = getElementSize(container)\n            container.scrollTo({\n              top: offset - height / 2\n            })\n          }\n        }\n      })\n\n    /* Handle accessibility for expandable items, see https://bit.ly/3jaod9p */\n    from(getElements<HTMLLabelElement>(\"label[tabindex]\", el))\n      .pipe(\n        mergeMap(label => fromEvent(label, \"click\")\n          .pipe(\n            observeOn(asyncScheduler),\n            map(() => label),\n            takeUntil(done$)\n          )\n        )\n      )\n        .subscribe(label => {\n          const input = getElement<HTMLInputElement>(`[id=\"${label.htmlFor}\"]`)\n          const nav = getElement(`[aria-labelledby=\"${label.id}\"]`)\n          nav.setAttribute(\"aria-expanded\", `${input.checked}`)\n        })\n\n    /* Create and return component */\n    return watchSidebar(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Repo, User } from \"github-types\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map,\n  zip\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * GitHub release (partial)\n */\ninterface Release {\n  tag_name: string                     /* Tag name */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitHub repository facts\n *\n * @param user - GitHub user or organization\n * @param repo - GitHub repository\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitHub(\n  user: string, repo?: string\n): Observable<SourceFacts> {\n  if (typeof repo !== \"undefined\") {\n    const url = `https://api.github.com/repos/${user}/${repo}`\n    return zip(\n\n      /* Fetch version */\n      requestJSON<Release>(`${url}/releases/latest`)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(release => ({\n            version: release.tag_name\n          })),\n          defaultIfEmpty({})\n        ),\n\n      /* Fetch stars and forks */\n      requestJSON<Repo>(url)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(info => ({\n            stars: info.stargazers_count,\n            forks: info.forks_count\n          })),\n          defaultIfEmpty({})\n        )\n    )\n      .pipe(\n        map(([release, info]) => ({ ...release, ...info }))\n      )\n\n  /* User or organization */\n  } else {\n    const url = `https://api.github.com/users/${user}`\n    return requestJSON<User>(url)\n      .pipe(\n        map(info => ({\n          repositories: info.public_repos\n        })),\n        defaultIfEmpty({})\n      )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ProjectSchema } from \"gitlab\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitLab repository facts\n *\n * @param base - GitLab base\n * @param project - GitLab project\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitLab(\n  base: string, project: string\n): Observable<SourceFacts> {\n  const url = `https://${base}/api/v4/projects/${encodeURIComponent(project)}`\n  return requestJSON<ProjectSchema>(url)\n    .pipe(\n      catchError(() => EMPTY), // @todo refactor instant loading\n      map(({ star_count, forks_count }) => ({\n        stars: star_count,\n        forks: forks_count\n      })),\n      defaultIfEmpty({})\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable } from \"rxjs\"\n\nimport { fetchSourceFactsFromGitHub } from \"../github\"\nimport { fetchSourceFactsFromGitLab } from \"../gitlab\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository facts for repositories\n */\nexport interface RepositoryFacts {\n  stars?: number                       /* Number of stars */\n  forks?: number                       /* Number of forks */\n  version?: string                     /* Latest version */\n}\n\n/**\n * Repository facts for organizations\n */\nexport interface OrganizationFacts {\n  repositories?: number                /* Number of repositories */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Repository facts\n */\nexport type SourceFacts =\n  | RepositoryFacts\n  | OrganizationFacts\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch repository facts\n *\n * @param url - Repository URL\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFacts(\n  url: string\n): Observable<SourceFacts> {\n\n  /* Try to match GitHub repository */\n  let match = url.match(/^.+github\\.com\\/([^/]+)\\/?([^/]+)?/i)\n  if (match) {\n    const [, user, repo] = match\n    return fetchSourceFactsFromGitHub(user, repo)\n  }\n\n  /* Try to match GitLab repository */\n  match = url.match(/^.+?([^/]*gitlab[^/]+)\\/(.+?)\\/?$/i)\n  if (match) {\n    const [, base, slug] = match\n    return fetchSourceFactsFromGitLab(base, slug)\n  }\n\n  /* Fallback */\n  return EMPTY\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  defer,\n  filter,\n  finalize,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\nimport { ConsentDefaults } from \"~/components/consent\"\nimport { renderSourceFacts } from \"~/templates\"\n\nimport {\n  Component,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SourceFacts,\n  fetchSourceFacts\n} from \"../facts\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information\n */\nexport interface Source {\n  facts: SourceFacts                   /* Repository facts */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information observable\n */\nlet fetch$: Observable<Source>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch repository information\n *\n * This function tries to read the repository facts from session storage, and\n * if unsuccessful, fetches them from the underlying provider.\n *\n * @param el - Repository information element\n *\n * @returns Repository information observable\n */\nexport function watchSource(\n  el: HTMLAnchorElement\n): Observable<Source> {\n  return fetch$ ||= defer(() => {\n    const cached = __md_get<SourceFacts>(\"__source\", sessionStorage)\n    if (cached) {\n      return of(cached)\n    } else {\n\n      /* Check if consent is configured and was given */\n      const els = getComponentElements(\"consent\")\n      if (els.length) {\n        const consent = __md_get<ConsentDefaults>(\"__consent\")\n        if (!(consent && consent.github))\n          return EMPTY\n      }\n\n      /* Fetch repository facts */\n      return fetchSourceFacts(el.href)\n        .pipe(\n          tap(facts => __md_set(\"__source\", facts, sessionStorage))\n        )\n    }\n  })\n    .pipe(\n      catchError(() => EMPTY),\n      filter(facts => Object.keys(facts).length > 0),\n      map(facts => ({ facts })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount repository information\n *\n * @param el - Repository information element\n *\n * @returns Repository information component observable\n */\nexport function mountSource(\n  el: HTMLAnchorElement\n): Observable<Component<Source>> {\n  const inner = getElement(\":scope > :last-child\", el)\n  return defer(() => {\n    const push$ = new Subject<Source>()\n    push$.subscribe(({ facts }) => {\n      inner.appendChild(renderSourceFacts(facts))\n      inner.classList.add(\"md-source__repository--active\")\n    })\n\n    /* Create and return component */\n    return watchSource(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  watchElementSize,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Navigation tabs\n */\nexport interface Tabs {\n  hidden: boolean                      /* Navigation tabs are hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch navigation tabs\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs observable\n */\nexport function watchTabs(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Tabs> {\n  return watchElementSize(document.body)\n    .pipe(\n      switchMap(() => watchViewportAt(el, { header$, viewport$ })),\n      map(({ offset: { y } }) => {\n        return {\n          hidden: y >= 10\n        }\n      }),\n      distinctUntilKeyChanged(\"hidden\")\n    )\n}\n\n/**\n * Mount navigation tabs\n *\n * This function hides the navigation tabs when scrolling past the threshold\n * and makes them reappear in a nice CSS animation when scrolling back up.\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs component observable\n */\nexport function mountTabs(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Tabs>> {\n  return defer(() => {\n    const push$ = new Subject<Tabs>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ hidden }) {\n        el.hidden = hidden\n      },\n\n      /* Handle complete */\n      complete() {\n        el.hidden = false\n      }\n    })\n\n    /* Create and return component */\n    return (\n      feature(\"navigation.tabs.sticky\")\n        ? of({ hidden: false })\n        : watchTabs(el, options)\n    )\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  bufferCount,\n  combineLatestWith,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  finalize,\n  ignoreElements,\n  map,\n  merge,\n  observeOn,\n  of,\n  repeat,\n  scan,\n  share,\n  skip,\n  startWith,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContainer,\n  getElementSize,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  watchElementSize\n} from \"~/browser\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Table of contents\n */\nexport interface TableOfContents {\n  prev: HTMLAnchorElement[][]          /* Anchors (previous) */\n  next: HTMLAnchorElement[][]          /* Anchors (next) */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch table of contents\n *\n * This is effectively a scroll spy implementation which will account for the\n * fixed header and automatically re-calculate anchor offsets when the viewport\n * is resized. The returned observable will only emit if the table of contents\n * needs to be repainted.\n *\n * This implementation tracks an anchor element's entire path starting from its\n * level up to the top-most anchor element, e.g. `[h3, h2, h1]`. Although the\n * Material theme currently doesn't make use of this information, it enables\n * the styling of the entire hierarchy through customization.\n *\n * Note that the current anchor is the last item of the `prev` anchor list.\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents observable\n */\nexport function watchTableOfContents(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<TableOfContents> {\n  const table = new Map<HTMLAnchorElement, HTMLElement>()\n\n  /* Compute anchor-to-target mapping */\n  const anchors = getElements<HTMLAnchorElement>(\".md-nav__link\", el)\n  for (const anchor of anchors) {\n    const id = decodeURIComponent(anchor.hash.substring(1))\n    const target = getOptionalElement(`[id=\"${id}\"]`)\n    if (typeof target !== \"undefined\")\n      table.set(anchor, target)\n  }\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n      map(({ height }) => {\n        const main = getComponentElement(\"main\")\n        const grid = getElement(\":scope > :first-child\", main)\n        return height + 0.8 * (\n          grid.offsetTop -\n          main.offsetTop\n        )\n      }),\n      share()\n    )\n\n  /* Compute partition of previous and next anchors */\n  const partition$ = watchElementSize(document.body)\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n\n      /* Build index to map anchor paths to vertical offsets */\n      switchMap(body => defer(() => {\n        let path: HTMLAnchorElement[] = []\n        return of([...table].reduce((index, [anchor, target]) => {\n          while (path.length) {\n            const last = table.get(path[path.length - 1])!\n            if (last.tagName >= target.tagName) {\n              path.pop()\n            } else {\n              break\n            }\n          }\n\n          /* If the current anchor is hidden, continue with its parent */\n          let offset = target.offsetTop\n          while (!offset && target.parentElement) {\n            target = target.parentElement\n            offset = target.offsetTop\n          }\n\n          /* Fix anchor offsets in tables - see https://bit.ly/3CUFOcn */\n          let parent = target.offsetParent as HTMLElement\n          for (; parent; parent = parent.offsetParent as HTMLElement)\n            offset += parent.offsetTop\n\n          /* Map reversed anchor path to vertical offset */\n          return index.set(\n            [...path = [...path, anchor]].reverse(),\n            offset\n          )\n        }, new Map<HTMLAnchorElement[], number>()))\n      })\n        .pipe(\n\n          /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */\n          map(index => new Map([...index].sort(([, a], [, b]) => a - b))),\n          combineLatestWith(adjust$),\n\n          /* Re-compute partition when viewport offset changes */\n          switchMap(([index, adjust]) => viewport$\n            .pipe(\n              scan(([prev, next], { offset: { y }, size }) => {\n                const last = y + size.height >= Math.floor(body.height)\n\n                /* Look forward */\n                while (next.length) {\n                  const [, offset] = next[0]\n                  if (offset - adjust < y || last) {\n                    prev = [...prev, next.shift()!]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Look backward */\n                while (prev.length) {\n                  const [, offset] = prev[prev.length - 1]\n                  if (offset - adjust >= y && !last) {\n                    next = [prev.pop()!, ...next]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Return partition */\n                return [prev, next]\n              }, [[], [...index]]),\n              distinctUntilChanged((a, b) => (\n                a[0] === b[0] &&\n                a[1] === b[1]\n              ))\n            )\n          )\n        )\n      )\n    )\n\n  /* Compute and return anchor list migrations */\n  return partition$\n    .pipe(\n      map(([prev, next]) => ({\n        prev: prev.map(([path]) => path),\n        next: next.map(([path]) => path)\n      })),\n\n      /* Extract anchor list migrations */\n      startWith({ prev: [], next: [] }),\n      bufferCount(2, 1),\n      map(([a, b]) => {\n\n        /* Moving down */\n        if (a.prev.length < b.prev.length) {\n          return {\n            prev: b.prev.slice(Math.max(0, a.prev.length - 1), b.prev.length),\n            next: []\n          }\n\n        /* Moving up */\n        } else {\n          return {\n            prev: b.prev.slice(-1),\n            next: b.next.slice(0, b.next.length - a.next.length)\n          }\n        }\n      })\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount table of contents\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents component observable\n */\nexport function mountTableOfContents(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<TableOfContents>> {\n  return defer(() => {\n    const push$ = new Subject<TableOfContents>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe(({ prev, next }) => {\n\n      /* Look forward */\n      for (const [anchor] of next) {\n        anchor.classList.remove(\"md-nav__link--passed\")\n        anchor.classList.remove(\"md-nav__link--active\")\n      }\n\n      /* Look backward */\n      for (const [index, [anchor]] of prev.entries()) {\n        anchor.classList.add(\"md-nav__link--passed\")\n        anchor.classList.toggle(\n          \"md-nav__link--active\",\n          index === prev.length - 1\n        )\n      }\n    })\n\n    /* Set up following, if enabled */\n    if (feature(\"toc.follow\")) {\n\n      /* Toggle smooth scrolling only for anchor clicks */\n      const smooth$ = merge(\n        viewport$.pipe(debounceTime(1), map(() => undefined)),\n        viewport$.pipe(debounceTime(250), map(() => \"smooth\" as const))\n      )\n\n      /* Bring active anchor into view */ // @todo: refactor\n      push$\n        .pipe(\n          filter(({ prev }) => prev.length > 0),\n          combineLatestWith(main$.pipe(observeOn(asyncScheduler))),\n          withLatestFrom(smooth$)\n        )\n          .subscribe(([[{ prev }], behavior]) => {\n            const [anchor] = prev[prev.length - 1]\n            if (anchor.offsetHeight) {\n\n              /* Retrieve overflowing container and scroll */\n              const container = getElementContainer(anchor)\n              if (typeof container !== \"undefined\") {\n                const offset = anchor.offsetTop - container.offsetTop\n                const { height } = getElementSize(container)\n                container.scrollTo({\n                  top: offset - height / 2,\n                  behavior\n                })\n              }\n            }\n          })\n    }\n\n    /* Set up anchor tracking, if enabled */\n    if (feature(\"navigation.tracking\"))\n      viewport$\n        .pipe(\n          takeUntil(done$),\n          distinctUntilKeyChanged(\"offset\"),\n          debounceTime(250),\n          skip(1),\n          takeUntil(target$.pipe(skip(1))),\n          repeat({ delay: 250 }),\n          withLatestFrom(push$)\n        )\n          .subscribe(([, { prev }]) => {\n            const url = getLocation()\n\n            /* Set hash fragment to active anchor */\n            const anchor = prev[prev.length - 1]\n            if (anchor && anchor.length) {\n              const [active] = anchor\n              const { hash } = new URL(active.href)\n              if (url.hash !== hash) {\n                url.hash = hash\n                history.replaceState({}, \"\", `${url}`)\n              }\n\n            /* Reset anchor when at the top */\n            } else {\n              url.hash = \"\"\n              history.replaceState({}, \"\", `${url}`)\n            }\n          })\n\n    /* Create and return component */\n    return watchTableOfContents(el, { viewport$, header$ })\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  repeat,\n  skip,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { Viewport } from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Back-to-top button\n */\nexport interface BackToTop {\n  hidden: boolean                      /* Back-to-top button is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch back-to-top\n *\n * @param _el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top observable\n */\nexport function watchBackToTop(\n  _el: HTMLElement, { viewport$, main$, target$ }: WatchOptions\n): Observable<BackToTop> {\n\n  /* Compute direction */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => a > b && b > 0),\n      distinctUntilChanged()\n    )\n\n  /* Compute whether main area is active */\n  const active$ = main$\n    .pipe(\n      map(({ active }) => active)\n    )\n\n  /* Compute threshold for hiding */\n  return combineLatest([active$, direction$])\n    .pipe(\n      map(([active, direction]) => !(active && direction)),\n      distinctUntilChanged(),\n      takeUntil(target$.pipe(skip(1))),\n      endWith(true),\n      repeat({ delay: 250 }),\n      map(hidden => ({ hidden }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount back-to-top\n *\n * @param el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top component observable\n */\nexport function mountBackToTop(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<BackToTop>> {\n  const push$ = new Subject<BackToTop>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe({\n\n    /* Handle emission */\n    next({ hidden }) {\n      el.hidden = hidden\n      if (hidden) {\n        el.setAttribute(\"tabindex\", \"-1\")\n        el.blur()\n      } else {\n        el.removeAttribute(\"tabindex\")\n      }\n    },\n\n    /* Handle complete */\n    complete() {\n      el.style.top = \"\"\n      el.hidden = true\n      el.removeAttribute(\"tabindex\")\n    }\n  })\n\n  /* Watch header height */\n  header$\n    .pipe(\n      takeUntil(done$),\n      distinctUntilKeyChanged(\"height\")\n    )\n      .subscribe(({ height }) => {\n        el.style.top = `${height + 16}px`\n      })\n\n  /* Go back to top */\n  fromEvent(el, \"click\")\n    .subscribe(ev => {\n      ev.preventDefault()\n      window.scrollTo({ top: 0 })\n    })\n\n  /* Create and return component */\n  return watchBackToTop(el, { viewport$, main$, target$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  finalize,\n  map,\n  mergeMap,\n  skip,\n  switchMap,\n  take,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  getElements,\n  watchElementVisibility\n} from \"~/browser\"\nimport { mountTooltip } from \"~/components\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch ellipsis\n *\n * This function will fetch all elements that are shortened with ellipsis, and\n * filter those which are visible. Once they become visible, they stay in that\n * state, even though they may be hidden again. This optimization is necessary\n * to reduce pressure on the browser, with elements fading in and out of view.\n *\n * @param options - Options\n */\nexport function patchEllipsis(\n  { document$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-ellipsis\")),\n      mergeMap(el => watchElementVisibility(el)\n        .pipe(\n          takeUntil(document$.pipe(skip(1))),\n          filter(visible => visible),\n          map(() => el),\n          take(1)\n        )\n      ),\n      filter(el => el.offsetWidth < el.scrollWidth),\n      mergeMap(el => {\n        const text = el.innerText\n        const host = el.closest(\"a\") || el\n        host.title = text\n\n        /* Mount tooltip */\n        return mountTooltip(host)\n          .pipe(\n            takeUntil(document$.pipe(skip(1))),\n            finalize(() => host.removeAttribute(\"title\"))\n          )\n      })\n    )\n      .subscribe()\n\n  // @todo move this outside of here and fix memleaks\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-status\")),\n      mergeMap(el => mountTooltip(el))\n    )\n      .subscribe()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  takeWhile,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch indeterminate checkboxes\n *\n * This function replaces the indeterminate \"pseudo state\" with the actual\n * indeterminate state, which is used to keep navigation always expanded.\n *\n * @param options - Options\n */\nexport function patchIndeterminate(\n  { document$, tablet$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements<HTMLInputElement>(\n        \".md-toggle--indeterminate\"\n      )),\n      tap(el => {\n        el.indeterminate = true\n        el.checked = false\n      }),\n      mergeMap(el => fromEvent(el, \"change\")\n        .pipe(\n          takeWhile(() => el.classList.contains(\"md-toggle--indeterminate\")),\n          map(() => el)\n        )\n      ),\n      withLatestFrom(tablet$)\n    )\n      .subscribe(([el, tablet]) => {\n        el.classList.remove(\"md-toggle--indeterminate\")\n        if (tablet)\n          el.checked = false\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether the given device is an Apple device\n *\n * @returns Test result\n */\nfunction isAppleDevice(): boolean {\n  return /(iPad|iPhone|iPod)/.test(navigator.userAgent)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch all elements with `data-md-scrollfix` attributes\n *\n * This is a year-old patch which ensures that overflow scrolling works at the\n * top and bottom of containers on iOS by ensuring a `1px` scroll offset upon\n * the start of a touch event.\n *\n * @see https://bit.ly/2SCtAOO - Original source\n *\n * @param options - Options\n */\nexport function patchScrollfix(\n  { document$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\"[data-md-scrollfix]\")),\n      tap(el => el.removeAttribute(\"data-md-scrollfix\")),\n      filter(isAppleDevice),\n      mergeMap(el => fromEvent(el, \"touchstart\")\n        .pipe(\n          map(() => el)\n        )\n      )\n    )\n      .subscribe(el => {\n        const top = el.scrollTop\n\n        /* We're at the top of the container */\n        if (top === 0) {\n          el.scrollTop = 1\n\n        /* We're at the bottom of the container */\n        } else if (top + el.offsetHeight === el.scrollHeight) {\n          el.scrollTop = top - 1\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  delay,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchToggle\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch the document body to lock when search is open\n *\n * For mobile and tablet viewports, the search is rendered full screen, which\n * leads to scroll leaking when at the top or bottom of the search result. This\n * function locks the body when the search is in full screen mode, and restores\n * the scroll position when leaving.\n *\n * @param options - Options\n */\nexport function patchScrolllock(\n  { viewport$, tablet$ }: PatchOptions\n): void {\n  combineLatest([watchToggle(\"search\"), tablet$])\n    .pipe(\n      map(([active, tablet]) => active && !tablet),\n      switchMap(active => of(active)\n        .pipe(\n          delay(active ? 400 : 100)\n        )\n      ),\n      withLatestFrom(viewport$)\n    )\n      .subscribe(([active, { offset: { y }}]) => {\n        if (active) {\n          document.body.setAttribute(\"data-md-scrolllock\", \"\")\n          document.body.style.top = `-${y}px`\n        } else {\n          const value = -1 * parseInt(document.body.style.top, 10)\n          document.body.removeAttribute(\"data-md-scrolllock\")\n          document.body.style.top = \"\"\n          if (value)\n            window.scrollTo(0, value)\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Polyfills\n * ------------------------------------------------------------------------- */\n\n/* Polyfill `Object.entries` */\nif (!Object.entries)\n  Object.entries = function (obj: object) {\n    const data: [string, string][] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push([key, obj[key]])\n\n    /* Return entries */\n    return data\n  }\n\n/* Polyfill `Object.values` */\nif (!Object.values)\n  Object.values = function (obj: object) {\n    const data: string[] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push(obj[key])\n\n    /* Return values */\n    return data\n  }\n\n/* ------------------------------------------------------------------------- */\n\n/* Polyfills for `Element` */\nif (typeof Element !== \"undefined\") {\n\n  /* Polyfill `Element.scrollTo` */\n  if (!Element.prototype.scrollTo)\n    Element.prototype.scrollTo = function (\n      x?: ScrollToOptions | number, y?: number\n    ): void {\n      if (typeof x === \"object\") {\n        this.scrollLeft = x.left!\n        this.scrollTop = x.top!\n      } else {\n        this.scrollLeft = x!\n        this.scrollTop = y!\n      }\n    }\n\n  /* Polyfill `Element.replaceWith` */\n  if (!Element.prototype.replaceWith)\n    Element.prototype.replaceWith = function (\n      ...nodes: Array<string | Node>\n    ): void {\n      const parent = this.parentNode\n      if (parent) {\n        if (nodes.length === 0)\n          parent.removeChild(this)\n\n        /* Replace children and create text nodes */\n        for (let i = nodes.length - 1; i >= 0; i--) {\n          let node = nodes[i]\n          if (typeof node === \"string\")\n            node = document.createTextNode(node)\n          else if (node.parentNode)\n            node.parentNode.removeChild(node)\n\n          /* Replace child or insert before previous sibling */\n          if (!i)\n            parent.replaceChild(node, this)\n          else\n            parent.insertBefore(this.previousSibling!, node)\n        }\n      }\n    }\n}\n"],
-  "mappings": "2rCAAA,IAAAA,GAAAC,GAAA,CAAAC,GAAAC,KAAA,EAAC,SAAUC,EAAQC,EAAS,CAC1B,OAAOH,IAAY,UAAY,OAAOC,IAAW,YAAcE,EAAQ,EACvE,OAAO,QAAW,YAAc,OAAO,IAAM,OAAOA,CAAO,EAC1DA,EAAQ,CACX,GAAEH,GAAO,UAAY,CAAE,aASrB,SAASI,EAA0BC,EAAO,CACxC,IAAIC,EAAmB,GACnBC,EAA0B,GAC1BC,EAAiC,KAEjCC,EAAsB,CACxB,KAAM,GACN,OAAQ,GACR,IAAK,GACL,IA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"factory", "applyFocusVisiblePolyfill", "scope", "hadKeyboardEvent", "hadFocusVisibleRecently", "hadFocusVisibleRecentlyTimeout", "inputTypesAllowlist", "isValidFocusTarget", "el", "focusTriggersKeyboardModality", "type", "tagName", "addFocusVisibleClass", "removeFocusVisibleClass", "onKeyDown", "e", "onPointerDown", "onFocus", "onBlur", "onVisibilityChange", "addInitialPointerMoveListeners", "onInitialPointerMove", "removeInitialPointerMoveListeners", "event", "error", "require_clipboard", "__commonJSMin", "exports", "module", "root", "factory", "__webpack_modules__", "__unused_webpack_module", "__webpack_exports__", "__webpack_require__", "clipboard", "tiny_emitter", "tiny_emitter_default", "listen", "listen_default", "src_select", "select_default", "command", "type", "err", "ClipboardActionCut", "target", "selectedText", "actions_cut", "createFakeElement", "value", "isRTL", "fakeElement", "yPosition", "fakeCopyAction", "options", "ClipboardActionCopy", "actions_copy", "_typeof", "obj", "ClipboardActionDefault", "_options$action", "action", "container", "text", "actions_default", "clipboard_typeof", "_classCallCheck", "instance", "Constructor", "_defineProperties", "props", "i", "descriptor", "_createClass", "protoProps", "staticProps", "_inherits", "subClass", "superClass", "_setPrototypeOf", "o", "p", "_createSuper", "Derived", "hasNativeReflectConstruct", "_isNativeReflectConstruct", "Super", "_getPrototypeOf", "result", "NewTarget", "_possibleConstructorReturn", "self", "call", "_assertThisInitialized", "e", "getAttributeValue", "suffix", "element", "attribute", "Clipboard", "_Emitter", "_super", "trigger", "_this", "_this2", "selector", "actions", "support", "DOCUMENT_NODE_TYPE", "proto", "closest", "__unused_webpack_exports", "_delegate", "callback", "useCapture", "listenerFn", "listener", "delegate", "elements", "is", "listenNode", "listenNodeList", "listenSelector", "node", "nodeList", "select", "isReadOnly", "selection", "range", "E", "name", "ctx", "data", "evtArr", "len", "evts", "liveEvents", "__webpack_module_cache__", "moduleId", "getter", "definition", "key", "prop", "require_escape_html", "__commonJSMin", "exports", "module", "matchHtmlRegExp", "escapeHtml", "string", "str", "match", "escape", "html", "index", "lastIndex", "import_focus_visible", "extendStatics", "d", "b", "p", "__extends", "__", "__awaiter", "thisArg", "_arguments", "P", "generator", "adopt", "value", "resolve", "reject", "fulfilled", "step", "e", "rejected", "result", "__generator", "body", "_", "t", "f", "y", "g", "verb", "n", "v", "op", "__values", "o", "s", "m", "i", "__read", "n", "r", "ar", "e", "error", "__spreadArray", "to", "from", "pack", "i", "l", "ar", "__await", "v", "__asyncGenerator", "thisArg", "_arguments", "generator", "g", "q", "verb", "n", "a", "b", "resume", "step", "e", "settle", "r", "fulfill", "reject", "value", "f", "__asyncValues", "o", "m", "i", "__values", "verb", "n", "v", "resolve", "reject", "settle", "d", "isFunction", "value", "createErrorClass", "createImpl", "_super", "instance", "ctorFunc", "UnsubscriptionError", "createErrorClass", "_super", "errors", "err", "i", "arrRemove", "arr", "item", "index", "Subscription", "initialTeardown", "errors", "_parentage", "_parentage_1", "__values", "_parentage_1_1", "parent_1", "initialFinalizer", "isFunction", "e", "UnsubscriptionError", "_finalizers", "_finalizers_1", "_finalizers_1_1", "finalizer", "execFinalizer", "err", "__spreadArray", "__read", "teardown", "_a", "parent", "arrRemove", "empty", "EMPTY_SUBSCRIPTION", "Subscription", "isSubscription", "value", "isFunction", "execFinalizer", "finalizer", "config", "timeoutProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "reportUnhandledError", "err", "timeoutProvider", "onUnhandledError", "config", "noop", "COMPLETE_NOTIFICATION", "createNotification", "errorNotification", "error", "nextNotification", "value", "kind", "context", "errorContext", "cb", "config", "isRoot", "_a", "errorThrown", "error", "captureError", "err", "Subscriber", "_super", "__extends", "destination", "_this", "isSubscription", "EMPTY_OBSERVER", "next", "error", "complete", "SafeSubscriber", "value", "handleStoppedNotification", "nextNotification", "err", "errorNotification", "COMPLETE_NOTIFICATION", "Subscription", "_bind", "bind", "fn", "thisArg", "ConsumerObserver", "partialObserver", "value", "error", "handleUnhandledError", "err", "SafeSubscriber", "_super", "__extends", "observerOrNext", "complete", "_this", "isFunction", "context_1", "config", "Subscriber", "handleUnhandledError", "error", "config", "captureError", "reportUnhandledError", "defaultErrorHandler", "err", "handleStoppedNotification", "notification", "subscriber", "onStoppedNotification", "timeoutProvider", "EMPTY_OBSERVER", "noop", "observable", "identity", "x", "pipe", "fns", "_i", "pipeFromArray", "identity", "input", "prev", "fn", "Observable", "subscribe", "operator", "observable", "observerOrNext", "error", "complete", "_this", "subscriber", "isSubscriber", "SafeSubscriber", "errorContext", "_a", "source", "sink", "err", "next", "promiseCtor", "getPromiseCtor", "resolve", "reject", "value", "operations", "_i", "pipeFromArray", "x", "getPromiseCtor", "promiseCtor", "_a", "config", "isObserver", "value", "isFunction", "isSubscriber", "Subscriber", "isSubscription", "hasLift", "source", "isFunction", "operate", "init", "liftedSource", "err", "createOperatorSubscriber", "destination", "onNext", "onComplete", "onError", "onFinalize", "OperatorSubscriber", "_super", "__extends", "shouldUnsubscribe", "_this", "value", "err", "closed_1", "_a", "Subscriber", "animationFrameProvider", "callback", "request", "cancel", "delegate", "handle", "timestamp", "Subscription", "args", "_i", "__spreadArray", "__read", "ObjectUnsubscribedError", "createErrorClass", "_super", "Subject", "_super", "__extends", "_this", "operator", "subject", "AnonymousSubject", "ObjectUnsubscribedError", "value", "errorContext", "_b", "__values", "_c", "observer", "err", "observers", "_a", "subscriber", "hasError", "isStopped", "EMPTY_SUBSCRIPTION", "Subscription", "arrRemove", "thrownError", "observable", "Observable", "destination", "source", "AnonymousSubject", "_super", "__extends", "destination", "source", "_this", "value", "_b", "_a", "err", "subscriber", "EMPTY_SUBSCRIPTION", "Subject", "dateTimestampProvider", "ReplaySubject", "_super", "__extends", "_bufferSize", "_windowTime", "_timestampProvider", "dateTimestampProvider", "_this", "value", "_a", "isStopped", "_buffer", "_infiniteTimeWindow", "subscriber", "subscription", "copy", "i", "adjustedBufferSize", "now", "last", "Subject", "Action", "_super", "__extends", "scheduler", "work", "state", "delay", "Subscription", "intervalProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "AsyncAction", "_super", "__extends", "scheduler", "work", "_this", "state", "delay", "id", "_a", "_id", "intervalProvider", "_scheduler", "error", "_delay", "errored", "errorValue", "e", "actions", "arrRemove", "Action", "Scheduler", "schedulerActionCtor", "now", "work", "delay", "state", "dateTimestampProvider", "AsyncScheduler", "_super", "__extends", "SchedulerAction", "now", "Scheduler", "_this", "action", "actions", "error", "asyncScheduler", "AsyncScheduler", "AsyncAction", "async", "AnimationFrameAction", "_super", "__extends", "scheduler", "work", "_this", "id", "delay", "animationFrameProvider", "actions", "_a", "AsyncAction", "AnimationFrameScheduler", "_super", "__extends", "action", "flushId", "actions", "error", "AsyncScheduler", "animationFrameScheduler", "AnimationFrameScheduler", "AnimationFrameAction", "EMPTY", "Observable", "subscriber", "isScheduler", "value", "isFunction", "last", "arr", "popResultSelector", "args", "isFunction", "popScheduler", "isScheduler", "popNumber", "defaultValue", "isArrayLike", "x", "isPromise", "value", "isFunction", "isInteropObservable", "input", "isFunction", "observable", "isAsyncIterable", "obj", "isFunction", "createInvalidObservableTypeError", "input", "getSymbolIterator", "iterator", "isIterable", "input", "isFunction", "iterator", "readableStreamLikeToAsyncGenerator", "readableStream", "reader", "__await", "_a", "_b", "value", "done", "isReadableStreamLike", "obj", "isFunction", "innerFrom", "input", "Observable", "isInteropObservable", "fromInteropObservable", "isArrayLike", "fromArrayLike", "isPromise", "fromPromise", "isAsyncIterable", "fromAsyncIterable", "isIterable", "fromIterable", "isReadableStreamLike", "fromReadableStreamLike", "createInvalidObservableTypeError", "obj", "subscriber", "obs", "observable", "isFunction", "array", "i", "promise", "value", "err", "reportUnhandledError", "iterable", "iterable_1", "__values", "iterable_1_1", "asyncIterable", "process", "readableStream", "readableStreamLikeToAsyncGenerator", "asyncIterable_1", "__asyncValues", "asyncIterable_1_1", "executeSchedule", "parentSubscription", "scheduler", "work", "delay", "repeat", "scheduleSubscription", "observeOn", "scheduler", "delay", "operate", "source", "subscriber", "createOperatorSubscriber", "value", "executeSchedule", "err", "subscribeOn", "scheduler", "delay", "operate", "source", "subscriber", "scheduleObservable", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "schedulePromise", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "scheduleArray", "input", "scheduler", "Observable", "subscriber", "i", "scheduleIterable", "input", "scheduler", "Observable", "subscriber", "iterator", "executeSchedule", "value", "done", "_a", "err", "isFunction", "scheduleAsyncIterable", "input", "scheduler", "Observable", "subscriber", "executeSchedule", "iterator", "result", "scheduleReadableStreamLike", "input", "scheduler", "scheduleAsyncIterable", "readableStreamLikeToAsyncGenerator", "scheduled", "input", "scheduler", "isInteropObservable", "scheduleObservable", "isArrayLike", "scheduleArray", "isPromise", "schedulePromise", "isAsyncIterable", "scheduleAsyncIterable", "isIterable", "scheduleIterable", "isReadableStreamLike", "scheduleReadableStreamLike", "createInvalidObservableTypeError", "from", "input", "scheduler", "scheduled", "innerFrom", "of", "args", "_i", "scheduler", "popScheduler", "from", "throwError", "errorOrErrorFactory", "scheduler", "errorFactory", "isFunction", "init", "subscriber", "Observable", "EmptyError", "createErrorClass", "_super", "isValidDate", "value", "map", "project", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "isArray", "callOrApply", "fn", "args", "__spreadArray", "__read", "mapOneOrManyArgs", "map", "isArray", "getPrototypeOf", "objectProto", "getKeys", "argsArgArrayOrObject", "args", "first_1", "isPOJO", "keys", "key", "obj", "createObject", "keys", "values", "result", "key", "i", "combineLatest", "args", "_i", "scheduler", "popScheduler", "resultSelector", "popResultSelector", "_a", "argsArgArrayOrObject", "observables", "keys", "from", "result", "Observable", "combineLatestInit", "values", "createObject", "identity", "mapOneOrManyArgs", "valueTransform", "subscriber", "maybeSchedule", "length", "active", "remainingFirstValues", "i", "source", "hasFirstValue", "createOperatorSubscriber", "value", "execute", "subscription", "executeSchedule", "mergeInternals", "source", "subscriber", "project", "concurrent", "onBeforeNext", "expand", "innerSubScheduler", "additionalFinalizer", "buffer", "active", "index", "isComplete", "checkComplete", "outerNext", "value", "doInnerSub", "innerComplete", "innerFrom", "createOperatorSubscriber", "innerValue", "bufferedValue", "executeSchedule", "err", "mergeMap", "project", "resultSelector", "concurrent", "isFunction", "a", "i", "map", "b", "ii", "innerFrom", "operate", "source", "subscriber", "mergeInternals", "mergeAll", "concurrent", "mergeMap", "identity", "concatAll", "mergeAll", "concat", "args", "_i", "concatAll", "from", "popScheduler", "defer", "observableFactory", "Observable", "subscriber", "innerFrom", "nodeEventEmitterMethods", "eventTargetMethods", "jqueryMethods", "fromEvent", "target", "eventName", "options", "resultSelector", "isFunction", "mapOneOrManyArgs", "_a", "__read", "isEventTarget", "methodName", "handler", "isNodeStyleEventEmitter", "toCommonHandlerRegistry", "isJQueryStyleEventEmitter", "add", "remove", "isArrayLike", "mergeMap", "subTarget", "innerFrom", "Observable", "subscriber", "args", "_i", "fromEventPattern", "addHandler", "removeHandler", "resultSelector", "mapOneOrManyArgs", "Observable", "subscriber", "handler", "e", "_i", "retValue", "isFunction", "timer", "dueTime", "intervalOrScheduler", "scheduler", "async", "intervalDuration", "isScheduler", "Observable", "subscriber", "due", "isValidDate", "n", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "sources", "innerFrom", "mergeAll", "from", "EMPTY", "NEVER", "Observable", "noop", "isArray", "argsOrArgArray", "args", "filter", "predicate", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "zip", "args", "_i", "resultSelector", "popResultSelector", "sources", "argsOrArgArray", "Observable", "subscriber", "buffers", "completed", "sourceIndex", "innerFrom", "createOperatorSubscriber", "value", "buffer", "result", "__spreadArray", "__read", "i", "EMPTY", "audit", "durationSelector", "operate", "source", "subscriber", "hasValue", "lastValue", "durationSubscriber", "isComplete", "endDuration", "value", "cleanupDuration", "createOperatorSubscriber", "innerFrom", "auditTime", "duration", "scheduler", "asyncScheduler", "audit", "timer", "bufferCount", "bufferSize", "startBufferEvery", "operate", "source", "subscriber", "buffers", "count", "createOperatorSubscriber", "value", "toEmit", "buffers_1", "__values", "buffers_1_1", "buffer", "toEmit_1", "toEmit_1_1", "arrRemove", "buffers_2", "buffers_2_1", "catchError", "selector", "operate", "source", "subscriber", "innerSub", "syncUnsub", "handledResult", "createOperatorSubscriber", "err", "innerFrom", "scanInternals", "accumulator", "seed", "hasSeed", "emitOnNext", "emitBeforeComplete", "source", "subscriber", "hasState", "state", "index", "createOperatorSubscriber", "value", "i", "combineLatest", "args", "_i", "resultSelector", "popResultSelector", "pipe", "__spreadArray", "__read", "mapOneOrManyArgs", "operate", "source", "subscriber", "combineLatestInit", "argsOrArgArray", "combineLatestWith", "otherSources", "_i", "combineLatest", "__spreadArray", "__read", "debounceTime", "dueTime", "scheduler", "asyncScheduler", "operate", "source", "subscriber", "activeTask", "lastValue", "lastTime", "emit", "value", "emitWhenIdle", "targetTime", "now", "createOperatorSubscriber", "defaultIfEmpty", "defaultValue", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "take", "count", "EMPTY", "operate", "source", "subscriber", "seen", "createOperatorSubscriber", "value", "ignoreElements", "operate", "source", "subscriber", "createOperatorSubscriber", "noop", "mapTo", "value", "map", "delayWhen", "delayDurationSelector", "subscriptionDelay", "source", "concat", "take", "ignoreElements", "mergeMap", "value", "index", "innerFrom", "mapTo", "delay", "due", "scheduler", "asyncScheduler", "duration", "timer", "delayWhen", "distinctUntilChanged", "comparator", "keySelector", "identity", "defaultCompare", "operate", "source", "subscriber", "previousKey", "first", "createOperatorSubscriber", "value", "currentKey", "a", "b", "distinctUntilKeyChanged", "key", "compare", "distinctUntilChanged", "x", "y", "throwIfEmpty", "errorFactory", "defaultErrorFactory", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "EmptyError", "endWith", "values", "_i", "source", "concat", "of", "__spreadArray", "__read", "finalize", "callback", "operate", "source", "subscriber", "first", "predicate", "defaultValue", "hasDefaultValue", "source", "filter", "v", "identity", "take", "defaultIfEmpty", "throwIfEmpty", "EmptyError", "takeLast", "count", "EMPTY", "operate", "source", "subscriber", "buffer", "createOperatorSubscriber", "value", "buffer_1", "__values", "buffer_1_1", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "argsOrArgArray", "operate", "source", "subscriber", "mergeAll", "from", "__spreadArray", "__read", "mergeWith", "otherSources", "_i", "merge", "__spreadArray", "__read", "repeat", "countOrConfig", "count", "delay", "_a", "EMPTY", "operate", "source", "subscriber", "soFar", "sourceSub", "resubscribe", "notifier", "timer", "innerFrom", "notifierSubscriber_1", "createOperatorSubscriber", "subscribeToSource", "syncUnsub", "scan", "accumulator", "seed", "operate", "scanInternals", "share", "options", "_a", "connector", "Subject", "_b", "resetOnError", "_c", "resetOnComplete", "_d", "resetOnRefCountZero", "wrapperSource", "connection", "resetConnection", "subject", "refCount", "hasCompleted", "hasErrored", "cancelReset", "reset", "resetAndUnsubscribe", "conn", "operate", "source", "subscriber", "dest", "handleReset", "SafeSubscriber", "value", "err", "innerFrom", "on", "args", "_i", "onSubscriber", "__spreadArray", "__read", "shareReplay", "configOrBufferSize", "windowTime", "scheduler", "bufferSize", "refCount", "_a", "_b", "_c", "share", "ReplaySubject", "skip", "count", "filter", "_", "index", "skipUntil", "notifier", "operate", "source", "subscriber", "taking", "skipSubscriber", "createOperatorSubscriber", "noop", "innerFrom", "value", "startWith", "values", "_i", "scheduler", "popScheduler", "operate", "source", "subscriber", "concat", "switchMap", "project", "resultSelector", "operate", "source", "subscriber", "innerSubscriber", "index", "isComplete", "checkComplete", "createOperatorSubscriber", "value", "innerIndex", "outerIndex", "innerFrom", "innerValue", "takeUntil", "notifier", "operate", "source", "subscriber", "innerFrom", "createOperatorSubscriber", "noop", "takeWhile", "predicate", "inclusive", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "result", "tap", "observerOrNext", "error", "complete", "tapObserver", "isFunction", "operate", "source", "subscriber", "_a", "isUnsub", "createOperatorSubscriber", "value", "err", "_b", "identity", "throttle", "durationSelector", "config", "operate", "source", "subscriber", "_a", "_b", "leading", "_c", "trailing", "hasValue", "sendValue", "throttled", "isComplete", "endThrottling", "send", "cleanupThrottling", "startThrottle", "value", "innerFrom", "createOperatorSubscriber", "throttleTime", "duration", "scheduler", "config", "asyncScheduler", "duration$", "timer", "throttle", "withLatestFrom", "inputs", "_i", "project", "popResultSelector", "operate", "source", "subscriber", "len", "otherValues", "hasValue", "ready", "i", "innerFrom", "createOperatorSubscriber", "value", "identity", "noop", "values", "__spreadArray", "__read", "zip", "sources", "_i", "operate", "source", "subscriber", "__spreadArray", "__read", "zipWith", "otherInputs", "_i", "zip", "__spreadArray", "__read", "watchDocument", "document$", "ReplaySubject", "fromEvent", "getElements", "selector", "node", "getElement", "el", "getOptionalElement", "getActiveElement", "_a", "_b", "_c", "_d", "observer$", "merge", "fromEvent", "debounceTime", "startWith", "map", "getActiveElement", "shareReplay", "watchElementFocus", "el", "active", "distinctUntilChanged", "watchElementHover", "el", "duration", "merge", "fromEvent", "map", "debounceTime", "identity", "startWith", "getElementOffset", "el", "watchElementOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "getElementContentOffset", "el", "watchElementContentOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "appendChild", "el", "child", "node", "h", "tag", "attributes", "children", "attr", "round", "value", "digits", "watchScript", "src", "script", "h", "defer", "merge", "fromEvent", "switchMap", "throwError", "map", "finalize", "take", "entry$", "Subject", "observer$", "defer", "watchScript", "of", "map", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "getElementSize", "el", "watchElementSize", "tap", "filter", "target", "startWith", "getElementContentSize", "el", "getElementContainer", "parent", "entry$", "Subject", "observer$", "defer", "of", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "watchElementVisibility", "el", "tap", "filter", "target", "map", "isIntersecting", "watchElementBoundary", "threshold", "watchElementContentOffset", "y", "visible", "getElementSize", "content", "getElementContentSize", "distinctUntilChanged", "toggles", "getElement", "getToggle", "name", "setToggle", "value", "watchToggle", "el", "fromEvent", "map", "startWith", "isSusceptibleToKeyboard", "el", "type", "watchComposition", "merge", "fromEvent", "map", "startWith", "watchKeyboard", "keyboard$", "filter", "ev", "getToggle", "mode", "active", "getActiveElement", "share", "switchMap", "EMPTY", "getLocation", "setLocation", "url", "navigate", "feature", "el", "h", "watchLocation", "Subject", "getLocationHash", "setLocationHash", "hash", "el", "h", "ev", "watchLocationHash", "location$", "merge", "fromEvent", "map", "startWith", "filter", "shareReplay", "watchLocationTarget", "id", "getOptionalElement", "watchMedia", "query", "media", "fromEventPattern", "next", "startWith", "watchPrint", "merge", "fromEvent", "map", "at", "query$", "factory", "switchMap", "active", "EMPTY", "request", "url", "options", "Observable", "observer", "req", "event", "_a", "length", "requestJSON", "switchMap", "res", "map", "body", "shareReplay", "requestHTML", "dom", "requestXML", "getViewportOffset", "watchViewportOffset", "merge", "fromEvent", "map", "startWith", "getViewportSize", "watchViewportSize", "fromEvent", "map", "startWith", "watchViewport", "combineLatest", "watchViewportOffset", "watchViewportSize", "map", "offset", "size", "shareReplay", "watchViewportAt", "el", "viewport$", "header$", "size$", "distinctUntilKeyChanged", "offset$", "combineLatest", "map", "getElementOffset", "height", "offset", "size", "x", "y", "recv", "worker", "fromEvent", "ev", "send", "send$", "Subject", "data", "watchWorker", "url", "recv$", "worker$", "done$", "ignoreElements", "endWith", "mergeWith", "takeUntil", "share", "script", "getElement", "config", "getLocation", "configuration", "feature", "flag", "translation", "key", "value", "getComponentElement", "type", "node", "getElement", "getComponentElements", "getElements", "watchAnnounce", "el", "button", "getElement", "fromEvent", "map", "content", "mountAnnounce", "feature", "EMPTY", "defer", "push$", "Subject", "hash", "tap", "state", "finalize", "__spreadValues", "watchConsent", "el", "target$", "map", "target", "mountConsent", "options", "internal$", "Subject", "hidden", "tap", "state", "finalize", "__spreadValues", "renderTooltip", "id", "style", "h", "renderAnnotation", "id", "prefix", "anchor", "h", "renderTooltip", "renderClipboardButton", "id", "h", "translation", "renderSearchDocument", "document", "flag", "parent", "teaser", "missing", "key", "list", "h", "config", "configuration", "url", "feature", "match", "highlight", "value", "tags", "tag", "type", "translation", "renderSearchResultItem", "result", "threshold", "docs", "doc", "article", "index", "best", "more", "children", "section", "renderSourceFacts", "facts", "h", "key", "value", "round", "renderTabbedControl", "type", "classes", "h", "renderTable", "table", "h", "renderVersion", "version", "config", "configuration", "url", "h", "renderVersionSelector", "versions", "active", "translation", "sequence", "watchTooltip", "el", "host", "width", "getElementSize", "container", "getElementContainer", "scroll$", "watchElementContentOffset", "of", "active$", "merge", "watchElementFocus", "watchElementHover", "distinctUntilChanged", "combineLatest", "map", "active", "scroll", "x", "y", "getElementOffset", "size", "table", "mountTooltip", "title", "EMPTY", "id", "tooltip", "renderTooltip", "typeset", "getElement", "defer", "push$", "Subject", "offset", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "tap", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "watchAnnotation", "el", "container", "offset$", "defer", "combineLatest", "watchElementOffset", "watchElementContentOffset", "map", "x", "y", "scroll", "width", "height", "getElementSize", "watchElementFocus", "switchMap", "active", "offset", "take", "mountAnnotation", "target$", "tooltip", "index", "push$", "Subject", "done$", "ignoreElements", "endWith", "watchElementVisibility", "takeUntil", "visible", "merge", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "fromEvent", "ev", "withLatestFrom", "_a", "parent", "getActiveElement", "target", "delay", "tap", "state", "finalize", "__spreadValues", "findHosts", "container", "getElements", "findMarkers", "markers", "el", "nodes", "it", "node", "text", "match", "id", "force", "marker", "swap", "source", "target", "mountAnnotationList", "target$", "print$", "parent", "prefix", "annotations", "getOptionalElement", "renderAnnotation", "EMPTY", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "pairs", "annotation", "getElement", "takeUntil", "active", "inner", "child", "merge", "mountAnnotation", "finalize", "share", "findList", "el", "sibling", "mountAnnotationBlock", "options", "defer", "list", "mountAnnotationList", "EMPTY", "import_clipboard", "sequence", "findCandidateList", "el", "sibling", "watchCodeBlock", "watchElementSize", "map", "width", "getElementContentSize", "distinctUntilKeyChanged", "mountCodeBlock", "options", "hover", "factory$", "defer", "push$", "Subject", "done$", "takeLast", "scrollable", "content$", "ClipboardJS", "feature", "parent", "button", "renderClipboardButton", "mountTooltip", "container", "list", "annotations$", "mountAnnotationList", "takeUntil", "height", "distinctUntilChanged", "switchMap", "active", "EMPTY", "tap", "state", "finalize", "__spreadValues", "mergeWith", "watchElementVisibility", "filter", "visible", "take", "watchDetails", "el", "target$", "print$", "open", "merge", "map", "target", "filter", "details", "active", "tap", "mountDetails", "options", "defer", "push$", "Subject", "action", "reveal", "state", "finalize", "__spreadValues", "mermaid_default", "mermaid$", "sequence", "fetchScripts", "watchScript", "of", "mountMermaid", "el", "tap", "mermaid_default", "map", "shareReplay", "__async", "id", "host", "h", "text", "svg", "fn", "shadow", "sentinel", "h", "mountDataTable", "el", "renderTable", "of", "watchContentTabs", "inputs", "initial", "input", "merge", "fromEvent", "map", "getElement", "startWith", "active", "mountContentTabs", "el", "viewport$", "target$", "container", "getElements", "prev", "renderTabbedControl", "next", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatest", "watchElementSize", "takeUntil", "auditTime", "animationFrameScheduler", "size", "offset", "getElementOffset", "width", "getElementSize", "content", "getElementContentOffset", "watchElementContentOffset", "getElementContentSize", "direction", "filter", "label", "h", "ev", "tap", "feature", "skip", "withLatestFrom", "tab", "y", "set", "tabs", "media", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "mountContent", "el", "viewport$", "target$", "print$", "merge", "getElements", "child", "mountAnnotationBlock", "mountCodeBlock", "mountMermaid", "mountDataTable", "mountDetails", "mountContentTabs", "feature", "mountTooltip", "watchDialog", "_el", "alert$", "switchMap", "message", "merge", "of", "delay", "map", "active", "mountDialog", "el", "options", "inner", "getElement", "defer", "push$", "Subject", "tap", "state", "finalize", "__spreadValues", "isHidden", "viewport$", "feature", "of", "direction$", "map", "y", "bufferCount", "a", "b", "distinctUntilKeyChanged", "hidden$", "combineLatest", "filter", "offset", "direction", "distinctUntilChanged", "search$", "watchToggle", "search", "switchMap", "active", "startWith", "watchHeader", "el", "options", "defer", "watchElementSize", "height", "hidden", "shareReplay", "mountHeader", "header$", "main$", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatestWith", "tooltips", "from", "getElements", "mergeMap", "child", "mountTooltip", "takeUntil", "state", "__spreadValues", "mergeWith", "watchHeaderTitle", "el", "viewport$", "header$", "watchViewportAt", "map", "y", "height", "getElementSize", "distinctUntilKeyChanged", "mountHeaderTitle", "options", "defer", "push$", "Subject", "active", "heading", "getOptionalElement", "EMPTY", "tap", "state", "finalize", "__spreadValues", "watchMain", "el", "viewport$", "header$", "adjust$", "map", "height", "distinctUntilChanged", "border$", "switchMap", "watchElementSize", "distinctUntilKeyChanged", "combineLatest", "header", "top", "bottom", "y", "a", "b", "watchPalette", "inputs", "current", "input", "index", "of", "mergeMap", "fromEvent", "map", "startWith", "shareReplay", "mountPalette", "el", "getElements", "meta", "h", "scheme", "media$", "watchMedia", "defer", "push$", "Subject", "palette", "media", "key", "value", "label", "header", "getComponentElement", "style", "color", "observeOn", "asyncScheduler", "takeUntil", "skip", "repeat", "tap", "state", "finalize", "__spreadValues", "mountProgress", "el", "progress$", "defer", "push$", "Subject", "value", "tap", "finalize", "map", "import_clipboard", "extract", "el", "copy", "text", "setupClipboardJS", "alert$", "ClipboardJS", "Observable", "subscriber", "getElement", "ev", "tap", "map", "translation", "resolve", "url", "base", "extract", "document", "sitemap", "el", "getElements", "getElement", "links", "link", "href", "fetchSitemap", "requestXML", "map", "catchError", "of", "handle", "ev", "sitemap", "EMPTY", "el", "url", "of", "head", "document", "tags", "getElements", "resolve", "key", "value", "inject", "next", "selector", "feature", "source", "getOptionalElement", "target", "html", "container", "getComponentElement", "concat", "switchMap", "script", "name", "Observable", "observer", "ignoreElements", "endWith", "setupInstantNavigation", "location$", "viewport$", "progress$", "config", "configuration", "sitemap$", "fetchSitemap", "instant$", "fromEvent", "combineLatestWith", "share", "history$", "map", "getLocation", "withLatestFrom", "offset", "merge", "document$", "distinctUntilKeyChanged", "requestHTML", "catchError", "setLocation", "_", "distinctUntilChanged", "a", "b", "tap", "_a", "_b", "setLocationHash", "debounceTime", "import_escape_html", "setupSearchHighlighter", "config", "regex", "term", "separator", "highlight", "_", "data", "query", "match", "value", "escapeHTML", "isSearchReadyMessage", "message", "isSearchResultMessage", "setupSearchWorker", "url", "index$", "worker$", "watchWorker", "merge", "of", "watchToggle", "first", "active", "switchMap", "config", "docs", "feature", "setupVersionSelector", "document$", "config", "configuration", "versions$", "requestJSON", "catchError", "EMPTY", "current$", "map", "versions", "current", "version", "aliases", "switchMap", "urls", "fromEvent", "filter", "ev", "withLatestFrom", "el", "url", "of", "fetchSitemap", "sitemap", "path", "getLocation", "setLocation", "combineLatest", "getElement", "renderVersionSelector", "_a", "outdated", "ignored", "main", "ignore", "warning", "getComponentElements", "watchSearchQuery", "el", "worker$", "searchParams", "getLocation", "setToggle", "watchToggle", "first", "active", "url", "focus$", "watchElementFocus", "value$", "merge", "isSearchReadyMessage", "fromEvent", "map", "distinctUntilChanged", "combineLatest", "value", "focus", "shareReplay", "mountSearchQuery", "push$", "Subject", "done$", "ignoreElements", "endWith", "_", "query", "distinctUntilKeyChanged", "takeUntil", "label", "getElement", "tap", "state", "finalize", "__spreadValues", "mountSearchResult", "el", "worker$", "query$", "push$", "Subject", "boundary$", "watchElementBoundary", "filter", "container", "meta", "getElement", "list", "watchToggle", "active", "withLatestFrom", "skipUntil", "first", "isSearchReadyMessage", "items", "value", "translation", "count", "round", "render$", "tap", "switchMap", "merge", "of", "bufferCount", "zipWith", "chunk", "map", "renderSearchResultItem", "share", "item", "mergeMap", "details", "getOptionalElement", "EMPTY", "fromEvent", "takeUntil", "isSearchResultMessage", "data", "state", "finalize", "__spreadValues", "watchSearchShare", "_el", "query$", "map", "value", "url", "getLocation", "mountSearchShare", "el", "options", "push$", "Subject", "done$", "ignoreElements", "endWith", "fromEvent", "takeUntil", "ev", "tap", "state", "finalize", "__spreadValues", "mountSearchSuggest", "el", "worker$", "keyboard$", "push$", "Subject", "query", "getComponentElement", "query$", "merge", "fromEvent", "observeOn", "asyncScheduler", "map", "distinctUntilChanged", "combineLatestWith", "suggest", "value", "words", "last", "filter", "mode", "key", "isSearchResultMessage", "data", "tap", "state", "finalize", "mountSearch", "el", "index$", "keyboard$", "config", "configuration", "worker$", "setupSearchWorker", "query", "getComponentElement", "result", "fromEvent", "filter", "target", "setToggle", "mode", "key", "active", "getActiveElement", "anchors", "anchor", "getElements", "article", "best", "a", "b", "els", "i", "query$", "mountSearchQuery", "merge", "mountSearchResult", "mergeWith", "getComponentElements", "child", "mountSearchShare", "mountSearchSuggest", "err", "NEVER", "mountSearchHiglight", "el", "index$", "location$", "combineLatest", "startWith", "getLocation", "filter", "url", "map", "index", "setupSearchHighlighter", "fn", "_a", "nodes", "it", "node", "original", "replaced", "text", "childNodes", "h", "watchSidebar", "el", "viewport$", "main$", "parent", "adjust", "combineLatest", "map", "offset", "height", "y", "distinctUntilChanged", "a", "b", "mountSidebar", "_a", "_b", "header$", "options", "__objRest", "inner", "getElement", "getElementOffset", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "next$", "auditTime", "animationFrameScheduler", "withLatestFrom", "first", "item", "getElements", "container", "getElementSize", "from", "mergeMap", "label", "fromEvent", "observeOn", "asyncScheduler", "takeUntil", "input", "tap", "state", "finalize", "__spreadValues", "fetchSourceFactsFromGitHub", "user", "repo", "url", "zip", "requestJSON", "catchError", "EMPTY", "map", "release", "defaultIfEmpty", "info", "__spreadValues", "fetchSourceFactsFromGitLab", "base", "project", "url", "requestJSON", "catchError", "EMPTY", "map", "star_count", "forks_count", "defaultIfEmpty", "fetchSourceFacts", "url", "match", "user", "repo", "fetchSourceFactsFromGitHub", "base", "slug", "fetchSourceFactsFromGitLab", "EMPTY", "fetch$", "watchSource", "el", "defer", "cached", "of", "getComponentElements", "consent", "EMPTY", "fetchSourceFacts", "tap", "facts", "catchError", "filter", "map", "shareReplay", "mountSource", "inner", "getElement", "push$", "Subject", "renderSourceFacts", "state", "finalize", "__spreadValues", "watchTabs", "el", "viewport$", "header$", "watchElementSize", "switchMap", "watchViewportAt", "map", "y", "distinctUntilKeyChanged", "mountTabs", "options", "defer", "push$", "Subject", "hidden", "feature", "of", "tap", "state", "finalize", "__spreadValues", "watchTableOfContents", "el", "viewport$", "header$", "table", "anchors", "getElements", "anchor", "id", "target", "getOptionalElement", "adjust$", "distinctUntilKeyChanged", "map", "height", "main", "getComponentElement", "grid", "getElement", "share", "watchElementSize", "switchMap", "body", "defer", "path", "of", "index", "offset", "parent", "a", "b", "combineLatestWith", "adjust", "scan", "prev", "next", "y", "size", "last", "distinctUntilChanged", "startWith", "bufferCount", "mountTableOfContents", "main$", "target$", "push$", "Subject", "done$", "ignoreElements", "endWith", "feature", "smooth$", "merge", "debounceTime", "filter", "observeOn", "asyncScheduler", "withLatestFrom", "behavior", "container", "getElementContainer", "getElementSize", "takeUntil", "skip", "repeat", "url", "getLocation", "active", "hash", "tap", "state", "finalize", "__spreadValues", "watchBackToTop", "_el", "viewport$", "main$", "target$", "direction$", "map", "y", "bufferCount", "a", "b", "distinctUntilChanged", "active$", "active", "combineLatest", "direction", "takeUntil", "skip", "endWith", "repeat", "hidden", "mountBackToTop", "el", "header$", "push$", "Subject", "done$", "ignoreElements", "distinctUntilKeyChanged", "height", "fromEvent", "ev", "tap", "state", "finalize", "__spreadValues", "patchEllipsis", "document$", "switchMap", "getElements", "mergeMap", "el", "watchElementVisibility", "takeUntil", "skip", "filter", "visible", "map", "take", "text", "host", "mountTooltip", "finalize", "patchIndeterminate", "document$", "tablet$", "switchMap", "getElements", "tap", "el", "mergeMap", "fromEvent", "takeWhile", "map", "withLatestFrom", "tablet", "isAppleDevice", "patchScrollfix", "document$", "switchMap", "getElements", "tap", "el", "filter", "mergeMap", "fromEvent", "map", "top", "patchScrolllock", "viewport$", "tablet$", "combineLatest", "watchToggle", "map", "active", "tablet", "switchMap", "of", "delay", "withLatestFrom", "y", "value", "obj", "data", "key", "x", "y", "nodes", "parent", "i", "node", "fetchSearchIndex", "watchScript", "config", "map", "shareReplay", "requestJSON", "document$", "watchDocument", "location$", "watchLocation", "target$", "watchLocationTarget", "keyboard$", "watchKeyboard", "viewport$", "watchViewport", "tablet$", "watchMedia", "screen$", "print$", "watchPrint", "configuration", "index$", "NEVER", "alert$", "Subject", "setupClipboardJS", "progress$", "feature", "setupInstantNavigation", "_a", "setupVersionSelector", "merge", "delay", "setToggle", "filter", "mode", "key", "prev", "getOptionalElement", "setLocation", "next", "active", "getActiveElement", "patchEllipsis", "patchIndeterminate", "patchScrollfix", "patchScrolllock", "header$", "watchHeader", "getComponentElement", "main$", "switchMap", "el", "watchMain", "control$", "getComponentElements", "mountConsent", "mountDialog", "mountHeader", "mountPalette", "mountProgress", "mountSearch", "mountSource", "content$", "defer", "mountAnnounce", "mountContent", "mountSearchHiglight", "EMPTY", "mountHeaderTitle", "at", "mountSidebar", "mountTabs", "mountTableOfContents", "mountBackToTop", "component$", "mergeWith"]
-}
diff --git a/content/references/java-chassis/zh_CN/assets/javascripts/bundle.dd8806f2.min.js b/content/references/java-chassis/zh_CN/assets/javascripts/bundle.dd8806f2.min.js
new file mode 100644
index 0000000..e22d189
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/assets/javascripts/bundle.dd8806f2.min.js
@@ -0,0 +1,29 @@
+"use strict";(()=>{var Fi=Object.create;var gr=Object.defineProperty;var ji=Object.getOwnPropertyDescriptor;var Wi=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Ui=Object.getPrototypeOf,xr=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable;var oo=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))xr.call(t,r)&&oo(e,r,t[r]);if(Dt)for(var r of Dt(t))no.call(t,r)&&oo(e,r,t[r]);return e};var io=(e,t)=>{var r={};for(var o in e)xr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Dt)for(var o of Dt(e))t.indexOf(o)<0&&no.call(e,o)&&(r[o]=e[o]);return r};var yr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Di=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Wi(t))!xr.call(e,n)&&n!==r&&gr(e,n,{get:()=>t[n],enumerable:!(o=ji(t,n))||o.enumerable});return e};var Vt=(e,t,r)=>(r=e!=null?Fi(Ui(e)):{},Di(t||!e||!e.__esModule?gr(r,"default",{value:e,enumerable:!0}):r,e));var ao=(e,t,r)=>new Promise((o,n)=>{var i=p=>{try{s(r.next(p))}catch(c){n(c)}},a=p=>{try{s(r.throw(p))}catch(c){n(c)}},s=p=>p.done?o(p.value):Promise.resolve(p.value).then(i,a);s((r=r.apply(e,t)).next())});var co=yr((Er,so)=>{(function(e,t){typeof Er=="object"&&typeof so!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Er,function(){"use strict";function e(r){var o=!0,n=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(H){return!!(H&&H!==document&&H.nodeName!=="HTML"&&H.nodeName!=="BODY"&&"classList"in H&&"contains"in H.classList)}function p(H){var mt=H.type,ze=H.tagName;return!!(ze==="INPUT"&&a[mt]&&!H.readOnly||ze==="TEXTAREA"&&!H.readOnly||H.isContentEditable)}function c(H){H.classList.contains("focus-visible")||(H.classList.add("focus-visible"),H.setAttribute("data-focus-visible-added",""))}function l(H){H.hasAttribute("data-focus-visible-added")&&(H.classList.remove("focus-visible"),H.removeAttribute("data-focus-visible-added"))}function f(H){H.metaKey||H.altKey||H.ctrlKey||(s(r.activeElement)&&c(r.activeElement),o=!0)}function u(H){o=!1}function h(H){s(H.target)&&(o||p(H.target))&&c(H.target)}function w(H){s(H.target)&&(H.target.classList.contains("focus-visible")||H.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),l(H.target))}function A(H){document.visibilityState==="hidden"&&(n&&(o=!0),te())}function te(){document.addEventListener("mousemove",J),document.addEventListener("mousedown",J),document.addEventListener("mouseup",J),document.addEventListener("pointermove",J),document.addEventListener("pointerdown",J),document.addEventListener("pointerup",J),document.addEventListener("touchmove",J),document.addEventListener("touchstart",J),document.addEventListener("touchend",J)}function ie(){document.removeEventListener("mousemove",J),document.removeEventListener("mousedown",J),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",J),document.removeEventListener("pointerdown",J),document.removeEventListener("pointerup",J),document.removeEventListener("touchmove",J),document.removeEventListener("touchstart",J),document.removeEventListener("touchend",J)}function J(H){H.target.nodeName&&H.target.nodeName.toLowerCase()==="html"||(o=!1,ie())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",A,!0),te(),r.addEventListener("focus",h,!0),r.addEventListener("blur",w,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var Yr=yr((Rt,Kr)=>{/*!
+ * clipboard.js v2.0.11
+ * https://clipboardjs.com/
+ *
+ * Licensed MIT © Zeno Rocha
+ */(function(t,r){typeof Rt=="object"&&typeof Kr=="object"?Kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Rt=="object"?Rt.ClipboardJS=r():t.ClipboardJS=r()})(Rt,function(){return function(){var e={686:function(o,n,i){"use strict";i.d(n,{default:function(){return Ii}});var a=i(279),s=i.n(a),p=i(370),c=i.n(p),l=i(817),f=i.n(l);function u(V){try{return document.execCommand(V)}catch(_){return!1}}var h=function(_){var O=f()(_);return u("cut"),O},w=h;function A(V){var _=document.documentElement.getAttribute("dir")==="rtl",O=document.createElement("textarea");O.style.fontSize="12pt",O.style.border="0",O.style.padding="0",O.style.margin="0",O.style.position="absolute",O.style[_?"right":"left"]="-9999px";var j=window.pageYOffset||document.documentElement.scrollTop;return O.style.top="".concat(j,"px"),O.setAttribute("readonly",""),O.value=V,O}var te=function(_,O){var j=A(_);O.container.appendChild(j);var D=f()(j);return u("copy"),j.remove(),D},ie=function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},j="";return typeof _=="string"?j=te(_,O):_ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(_==null?void 0:_.type)?j=te(_.value,O):(j=f()(_),u("copy")),j},J=ie;function H(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(O){return typeof O}:H=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},H(V)}var mt=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=_.action,j=O===void 0?"copy":O,D=_.container,Y=_.target,ke=_.text;if(j!=="copy"&&j!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Y!==void 0)if(Y&&H(Y)==="object"&&Y.nodeType===1){if(j==="copy"&&Y.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(j==="cut"&&(Y.hasAttribute("readonly")||Y.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ke)return J(ke,{container:D});if(Y)return j==="cut"?w(Y):J(Y,{container:D})},ze=mt;function Ie(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(O){return typeof O}:Ie=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},Ie(V)}function _i(V,_){if(!(V instanceof _))throw new TypeError("Cannot call a class as a function")}function ro(V,_){for(var O=0;O<_.length;O++){var j=_[O];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(V,j.key,j)}}function Ai(V,_,O){return _&&ro(V.prototype,_),O&&ro(V,O),V}function Ci(V,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(_&&_.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),_&&br(V,_)}function br(V,_){return br=Object.setPrototypeOf||function(j,D){return j.__proto__=D,j},br(V,_)}function Hi(V){var _=Pi();return function(){var j=Wt(V),D;if(_){var Y=Wt(this).constructor;D=Reflect.construct(j,arguments,Y)}else D=j.apply(this,arguments);return ki(this,D)}}function ki(V,_){return _&&(Ie(_)==="object"||typeof _=="function")?_:$i(V)}function $i(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function Pi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(V){return!1}}function Wt(V){return Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},Wt(V)}function vr(V,_){var O="data-clipboard-".concat(V);if(_.hasAttribute(O))return _.getAttribute(O)}var Ri=function(V){Ci(O,V);var _=Hi(O);function O(j,D){var Y;return _i(this,O),Y=_.call(this),Y.resolveOptions(D),Y.listenClick(j),Y}return Ai(O,[{key:"resolveOptions",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof D.action=="function"?D.action:this.defaultAction,this.target=typeof D.target=="function"?D.target:this.defaultTarget,this.text=typeof D.text=="function"?D.text:this.defaultText,this.container=Ie(D.container)==="object"?D.container:document.body}},{key:"listenClick",value:function(D){var Y=this;this.listener=c()(D,"click",function(ke){return Y.onClick(ke)})}},{key:"onClick",value:function(D){var Y=D.delegateTarget||D.currentTarget,ke=this.action(Y)||"copy",Ut=ze({action:ke,container:this.container,target:this.target(Y),text:this.text(Y)});this.emit(Ut?"success":"error",{action:ke,text:Ut,trigger:Y,clearSelection:function(){Y&&Y.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(D){return vr("action",D)}},{key:"defaultTarget",value:function(D){var Y=vr("target",D);if(Y)return document.querySelector(Y)}},{key:"defaultText",value:function(D){return vr("text",D)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(D){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return J(D,Y)}},{key:"cut",value:function(D){return w(D)}},{key:"isSupported",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Y=typeof D=="string"?[D]:D,ke=!!document.queryCommandSupported;return Y.forEach(function(Ut){ke=ke&&!!document.queryCommandSupported(Ut)}),ke}}]),O}(s()),Ii=Ri},828:function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,p){for(;s&&s.nodeType!==n;){if(typeof s.matches=="function"&&s.matches(p))return s;s=s.parentNode}}o.exports=a},438:function(o,n,i){var a=i(828);function s(l,f,u,h,w){var A=c.apply(this,arguments);return l.addEventListener(u,A,w),{destroy:function(){l.removeEventListener(u,A,w)}}}function p(l,f,u,h,w){return typeof l.addEventListener=="function"?s.apply(null,arguments):typeof u=="function"?s.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(A){return s(A,f,u,h,w)}))}function c(l,f,u,h){return function(w){w.delegateTarget=a(w.target,f),w.delegateTarget&&h.call(l,w)}}o.exports=p},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(o,n,i){var a=i(879),s=i(438);function p(u,h,w){if(!u&&!h&&!w)throw new Error("Missing required arguments");if(!a.string(h))throw new TypeError("Second argument must be a String");if(!a.fn(w))throw new TypeError("Third argument must be a Function");if(a.node(u))return c(u,h,w);if(a.nodeList(u))return l(u,h,w);if(a.string(u))return f(u,h,w);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(u,h,w){return u.addEventListener(h,w),{destroy:function(){u.removeEventListener(h,w)}}}function l(u,h,w){return Array.prototype.forEach.call(u,function(A){A.addEventListener(h,w)}),{destroy:function(){Array.prototype.forEach.call(u,function(A){A.removeEventListener(h,w)})}}}function f(u,h,w){return s(document.body,u,h,w)}o.exports=p},817:function(o){function n(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var p=window.getSelection(),c=document.createRange();c.selectNodeContents(i),p.removeAllRanges(),p.addRange(c),a=p.toString()}return a}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,a,s){var p=this.e||(this.e={});return(p[i]||(p[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var p=this;function c(){p.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),p=0,c=s.length;for(p;p<c;p++)s[p].fn.apply(s[p].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),p=s[i],c=[];if(p&&a)for(var l=0,f=p.length;l<f;l++)p[l].fn!==a&&p[l].fn._!==a&&c.push(p[l]);return c.length?s[i]=c:delete s[i],this}},o.exports=n,o.exports.TinyEmitter=n}},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}}(),function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}}(),function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),r(686)}().default})});var ti=yr((gT,ei)=>{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var ts=/["'&<>]/;ei.exports=rs;function rs(e){var t=""+e,r=ts.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==i&&(n+=t.substring(a,i)),a=i+1,n+=o}return a!==i?n+t.substring(a,i):n}});var e0=Vt(co());/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var wr=function(e,t){return wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},wr(e,t)};function re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function po(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(l){try{c(o.next(l))}catch(f){a(f)}}function p(l){try{c(o.throw(l))}catch(f){a(f)}}function c(l){l.done?i(l.value):n(l.value).then(s,p)}c((o=o.apply(e,t||[])).next())})}function Nt(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return p([c,l])}}function p(c){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function de(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],a;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function q(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function nt(e){return this instanceof nt?(this.v=e,this):new nt(e)}function lo(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(u){o[u]&&(n[u]=function(h){return new Promise(function(w,A){i.push([u,h,w,A])>1||s(u,h)})})}function s(u,h){try{p(o[u](h))}catch(w){f(i[0][3],w)}}function p(u){u.value instanceof nt?Promise.resolve(u.value.v).then(c,l):f(i[0][2],u)}function c(u){s("next",u)}function l(u){s("throw",u)}function f(u,h){u(h),i.shift(),i.length&&s(i[0][0],i[0][1])}}function mo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof de=="function"?de(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(a){return new Promise(function(s,p){a=e[i](a),n(s,p,a.done,a.value)})}}function n(i,a,s,p){Promise.resolve(p).then(function(c){i({value:c,done:s})},a)}}function k(e){return typeof e=="function"}function ft(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zt=ft(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
+`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
+  `):"",this.name="UnsubscriptionError",this.errors=r}});function qe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=de(a),p=s.next();!p.done;p=s.next()){var c=p.value;c.remove(this)}}catch(A){t={error:A}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var l=this.initialTeardown;if(k(l))try{l()}catch(A){i=A instanceof zt?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var u=de(f),h=u.next();!h.done;h=u.next()){var w=h.value;try{fo(w)}catch(A){i=i!=null?i:[],A instanceof zt?i=q(q([],N(i)),N(A.errors)):i.push(A)}}}catch(A){o={error:A}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new zt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&qe(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&qe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Tr=Fe.EMPTY;function qt(e){return e instanceof Fe||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function fo(e){k(e)?e():e.unsubscribe()}var $e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ut={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=ut.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,q([e,t],N(r))):setTimeout.apply(void 0,q([e,t],N(r)))},clearTimeout:function(e){var t=ut.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Qt(e){ut.setTimeout(function(){var t=$e.onUnhandledError;if(t)t(e);else throw e})}function he(){}var uo=function(){return Sr("C",void 0,void 0)}();function ho(e){return Sr("E",void 0,e)}function bo(e){return Sr("N",e,void 0)}function Sr(e,t,r){return{kind:e,value:t,error:r}}var it=null;function dt(e){if($e.useDeprecatedSynchronousErrorHandling){var t=!it;if(t&&(it={errorThrown:!1,error:null}),e(),t){var r=it,o=r.errorThrown,n=r.error;if(it=null,o)throw n}}else e()}function vo(e){$e.useDeprecatedSynchronousErrorHandling&&it&&(it.errorThrown=!0,it.error=e)}var Mt=function(e){re(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,qt(r)&&r.add(o)):o.destination=qi,o}return t.create=function(r,o,n){return new at(r,o,n)},t.prototype.next=function(r){this.isStopped?Mr(bo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Mr(ho(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Mr(uo,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Fe);var Vi=Function.prototype.bind;function Or(e,t){return Vi.call(e,t)}var Ni=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(o){Kt(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){Kt(o)}else Kt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Kt(r)}},e}(),at=function(e){re(t,e);function t(r,o,n){var i=e.call(this)||this,a;if(k(r)||!r)a={next:r!=null?r:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var s;i&&$e.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Or(r.next,s),error:r.error&&Or(r.error,s),complete:r.complete&&Or(r.complete,s)}):a=r}return i.destination=new Ni(a),i}return t}(Mt);function Kt(e){$e.useDeprecatedSynchronousErrorHandling?vo(e):Qt(e)}function zi(e){throw e}function Mr(e,t){var r=$e.onStoppedNotification;r&&ut.setTimeout(function(){return r(e,t)})}var qi={closed:!0,next:he,error:zi,complete:he};var ht=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function le(e){return e}function go(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Lr(e)}function Lr(e){return e.length===0?le:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var F=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,o){var n=this,i=Ki(t)?t:new at(t,r,o);return dt(function(){var a=n,s=a.operator,p=a.source;i.add(s?s.call(i,p):p?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=xo(r),new r(function(n,i){var a=new at({next:function(s){try{t(s)}catch(p){i(p),a.unsubscribe()}},error:i,complete:n});o.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ht]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Lr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=xo(t),new t(function(o,n){var i;r.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(t){return new e(t)},e}();function xo(e){var t;return(t=e!=null?e:$e.Promise)!==null&&t!==void 0?t:Promise}function Qi(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function Ki(e){return e&&e instanceof Mt||Qi(e)&&qt(e)}function Yi(e){return k(e==null?void 0:e.lift)}function x(e){return function(t){if(Yi(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,t,r,o,n){return new Bi(e,t,r,o,n)}var Bi=function(e){re(t,e);function t(r,o,n,i,a,s){var p=e.call(this,r)||this;return p.onFinalize=a,p.shouldUnsubscribe=s,p._next=o?function(c){try{o(c)}catch(l){r.error(l)}}:e.prototype._next,p._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,p._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,p}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(Mt);var bt={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=bt.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new Fe(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bt.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,q([],N(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bt.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,q([],N(e)))},delegate:void 0};var yo=ft(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var g=function(e){re(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new Eo(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new yo},t.prototype.next=function(r){var o=this;dt(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var a=de(o.currentObservers),s=a.next();!s.done;s=a.next()){var p=s.value;p.next(r)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;dt(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;dt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?Tr:(this.currentObservers=null,s.push(r),new Fe(function(){o.currentObservers=null,qe(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,o){return new Eo(r,o)},t}(F);var Eo=function(e){re(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:Tr},t}(g);var _r=function(e){re(t,e);function t(r){var o=e.call(this)||this;return o._value=r,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var o=e.prototype._subscribe.call(this,r);return!o.closed&&r.next(this._value),o},t.prototype.getValue=function(){var r=this,o=r.hasError,n=r.thrownError,i=r._value;if(o)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(g);var Lt={now:function(){return(Lt.delegate||Date).now()},delegate:void 0};var _t=function(e){re(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Lt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,s=o._timestampProvider,p=o._windowTime;n||(i.push(r),!a&&i.push(s.now()+p)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),p=0;p<s.length&&!r.closed;p+=i?1:2)r.next(s[p]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*o;if(o<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var p=n.now(),c=0,l=1;l<i.length&&i[l]<=p;l+=2)c=l;c&&i.splice(0,c+1)}},t}(g);var wo=function(e){re(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t}(Fe);var At={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=At.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,q([e,t],N(r))):setInterval.apply(void 0,q([e,t],N(r)))},clearInterval:function(e){var t=At.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var vt=function(e){re(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(a,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),At.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&At.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,qe(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(wo);var Ar=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=Lt.now,e}();var gt=function(e){re(t,e);function t(r,o){o===void 0&&(o=Ar.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t}(Ar);var se=new gt(vt),Cr=se;var To=function(e){re(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),o>0?e.prototype.schedule.call(this,r,o):(this.delay=o,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,o){return o>0||this.closed?e.prototype.execute.call(this,r,o):this._execute(r,o)},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.flush(this),0)},t}(vt);var So=function(e){re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(gt);var Hr=new So(To);var Oo=function(e){re(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=bt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var a=r.actions;o!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==o&&(bt.cancelAnimationFrame(o),r._scheduled=void 0)},t}(vt);var Mo=function(e){re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t}(gt);var me=new Mo(Oo);var M=new F(function(e){return e.complete()});function Yt(e){return e&&k(e.schedule)}function kr(e){return e[e.length-1]}function Xe(e){return k(kr(e))?e.pop():void 0}function He(e){return Yt(kr(e))?e.pop():void 0}function Bt(e,t){return typeof kr(e)=="number"?e.pop():t}var xt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Gt(e){return k(e==null?void 0:e.then)}function Jt(e){return k(e[ht])}function Xt(e){return Symbol.asyncIterator&&k(e==null?void 0:e[Symbol.asyncIterator])}function Zt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Gi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var er=Gi();function tr(e){return k(e==null?void 0:e[er])}function rr(e){return lo(this,arguments,function(){var r,o,n,i;return Nt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,nt(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,nt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,nt(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function or(e){return k(e==null?void 0:e.getReader)}function W(e){if(e instanceof F)return e;if(e!=null){if(Jt(e))return Ji(e);if(xt(e))return Xi(e);if(Gt(e))return Zi(e);if(Xt(e))return Lo(e);if(tr(e))return ea(e);if(or(e))return ta(e)}throw Zt(e)}function Ji(e){return new F(function(t){var r=e[ht]();if(k(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xi(e){return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Zi(e){return new F(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Qt)})}function ea(e){return new F(function(t){var r,o;try{for(var n=de(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Lo(e){return new F(function(t){ra(e,t).catch(function(r){return t.error(r)})})}function ta(e){return Lo(rr(e))}function ra(e,t){var r,o,n,i;return po(this,void 0,void 0,function(){var a,s;return Nt(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),r=mo(e),p.label=1;case 1:return[4,r.next()];case 2:if(o=p.sent(),!!o.done)return[3,4];if(a=o.value,t.next(a),t.closed)return[2];p.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=p.sent(),n={error:s},[3,11];case 6:return p.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ee(e,t,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function be(e,t){return t===void 0&&(t=0),x(function(r,o){r.subscribe(T(o,function(n){return Ee(o,e,function(){return o.next(n)},t)},function(){return Ee(o,e,function(){return o.complete()},t)},function(n){return Ee(o,e,function(){return o.error(n)},t)}))})}function Qe(e,t){return t===void 0&&(t=0),x(function(r,o){o.add(e.schedule(function(){return r.subscribe(o)},t))})}function _o(e,t){return W(e).pipe(Qe(t),be(t))}function Ao(e,t){return W(e).pipe(Qe(t),be(t))}function Co(e,t){return new F(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}function Ho(e,t){return new F(function(r){var o;return Ee(r,t,function(){o=e[er](),Ee(r,t,function(){var n,i,a;try{n=o.next(),i=n.value,a=n.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return k(o==null?void 0:o.return)&&o.return()}})}function nr(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(r){Ee(r,t,function(){var o=e[Symbol.asyncIterator]();Ee(r,t,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function ko(e,t){return nr(rr(e),t)}function $o(e,t){if(e!=null){if(Jt(e))return _o(e,t);if(xt(e))return Co(e,t);if(Gt(e))return Ao(e,t);if(Xt(e))return nr(e,t);if(tr(e))return Ho(e,t);if(or(e))return ko(e,t)}throw Zt(e)}function ue(e,t){return t?$o(e,t):W(e)}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e);return ue(e,r)}function $r(e,t){var r=k(e)?e:function(){return e},o=function(n){return n.error(r())};return new F(t?function(n){return t.schedule(o,0,n)}:o)}var ir=ft(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Po(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return x(function(r,o){var n=0;r.subscribe(T(o,function(i){o.next(e.call(t,i,n++))}))})}var oa=Array.isArray;function na(e,t){return oa(t)?e.apply(void 0,q([],N(t))):e(t)}function Ze(e){return m(function(t){return na(e,t)})}var ia=Array.isArray,aa=Object.getPrototypeOf,sa=Object.prototype,ca=Object.keys;function Ro(e){if(e.length===1){var t=e[0];if(ia(t))return{args:t,keys:null};if(pa(t)){var r=ca(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function pa(e){return e&&typeof e=="object"&&aa(e)===sa}function Io(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=Xe(e),n=Ro(e),i=n.args,a=n.keys;if(i.length===0)return ue([],r);var s=new F(Pr(i,r,a?function(p){return Io(a,p)}:le));return o?s.pipe(Ze(o)):s}function Pr(e,t,r){return r===void 0&&(r=le),function(o){Fo(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,p=function(l){Fo(t,function(){var f=ue(e[l],t),u=!1;f.subscribe(T(o,function(h){i[l]=h,u||(u=!0,s--),s||o.next(r(i.slice()))},function(){--a||o.complete()}))},o)},c=0;c<n;c++)p(c)},o)}}function Fo(e,t,r){e?Ee(r,e,t):t()}function jo(e,t,r,o,n,i,a,s){var p=[],c=0,l=0,f=!1,u=function(){f&&!p.length&&!c&&t.complete()},h=function(A){return c<o?w(A):p.push(A)},w=function(A){i&&t.next(A),c++;var te=!1;W(r(A,l++)).subscribe(T(t,function(ie){n==null||n(ie),i?h(ie):t.next(ie)},function(){te=!0},void 0,function(){if(te)try{c--;for(var ie=function(){var J=p.shift();a?Ee(t,a,function(){return w(J)}):w(J)};p.length&&c<o;)ie();u()}catch(J){t.error(J)}}))};return e.subscribe(T(t,h,function(){f=!0,u()})),function(){s==null||s()}}function oe(e,t,r){return r===void 0&&(r=1/0),k(t)?oe(function(o,n){return m(function(i,a){return t(o,i,n,a)})(W(e(o,n)))},r):(typeof t=="number"&&(r=t),x(function(o,n){return jo(o,n,e,r)}))}function yt(e){return e===void 0&&(e=1/0),oe(le,e)}function Wo(){return yt(1)}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Wo()(ue(e,He(e)))}function C(e){return new F(function(t){W(e()).subscribe(t)})}var la=["addListener","removeListener"],ma=["addEventListener","removeEventListener"],fa=["on","off"];function d(e,t,r,o){if(k(r)&&(o=r,r=void 0),o)return d(e,t,r).pipe(Ze(o));var n=N(ha(e)?ma.map(function(s){return function(p){return e[s](t,p,r)}}):ua(e)?la.map(Uo(e,t)):da(e)?fa.map(Uo(e,t)):[],2),i=n[0],a=n[1];if(!i&&xt(e))return oe(function(s){return d(s,t,r)})(W(e));if(!i)throw new TypeError("Invalid event target");return new F(function(s){var p=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return s.next(1<c.length?c:c[0])};return i(p),function(){return a(p)}})}function Uo(e,t){return function(r){return function(o){return e[r](t,o)}}}function ua(e){return k(e.addListener)&&k(e.removeListener)}function da(e){return k(e.on)&&k(e.off)}function ha(e){return k(e.addEventListener)&&k(e.removeEventListener)}function ar(e,t,r){return r?ar(e,t).pipe(Ze(r)):new F(function(o){var n=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.next(a.length===1?a[0]:a)},i=e(n);return k(t)?function(){return t(n,i)}:void 0})}function Me(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Cr);var o=-1;return t!=null&&(Yt(t)?r=t:o=t),new F(function(n){var i=Po(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=Bt(e,1/0),n=e;return n.length?n.length===1?W(n[0]):yt(o)(ue(n,r)):M}var Ke=new F(he);var ba=Array.isArray;function Et(e){return e.length===1&&ba(e[0])?e[0]:e}function b(e,t){return x(function(r,o){var n=0;r.subscribe(T(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe(e),o=Et(e);return o.length?new F(function(n){var i=o.map(function(){return[]}),a=o.map(function(){return!1});n.add(function(){i=a=null});for(var s=function(c){W(o[c]).subscribe(T(n,function(l){if(i[c].push(l),i.every(function(u){return u.length})){var f=i.map(function(u){return u.shift()});n.next(r?r.apply(void 0,q([],N(f))):f),i.some(function(u,h){return!u.length&&a[h]})&&n.complete()}},function(){a[c]=!0,!i[c].length&&n.complete()}))},p=0;!n.closed&&p<o.length;p++)s(p);return function(){i=a=null}}):M}function Do(e){return x(function(t,r){var o=!1,n=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var c=n;n=null,r.next(c)}a&&r.complete()},p=function(){i=null,a&&r.complete()};t.subscribe(T(r,function(c){o=!0,n=c,i||W(e(c)).subscribe(i=T(r,s,p))},function(){a=!0,(!o||!i||i.closed)&&r.complete()}))})}function Le(e,t){return t===void 0&&(t=se),Do(function(){return Me(e,t)})}function Ye(e,t){return t===void 0&&(t=null),t=t!=null?t:e,x(function(r,o){var n=[],i=0;r.subscribe(T(o,function(a){var s,p,c,l,f=null;i++%t===0&&n.push([]);try{for(var u=de(n),h=u.next();!h.done;h=u.next()){var w=h.value;w.push(a),e<=w.length&&(f=f!=null?f:[],f.push(w))}}catch(ie){s={error:ie}}finally{try{h&&!h.done&&(p=u.return)&&p.call(u)}finally{if(s)throw s.error}}if(f)try{for(var A=de(f),te=A.next();!te.done;te=A.next()){var w=te.value;qe(n,w),o.next(w)}}catch(ie){c={error:ie}}finally{try{te&&!te.done&&(l=A.return)&&l.call(A)}finally{if(c)throw c.error}}},function(){var a,s;try{for(var p=de(n),c=p.next();!c.done;c=p.next()){var l=c.value;o.next(l)}}catch(f){a={error:f}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}o.complete()},void 0,function(){n=null}))})}function ve(e){return x(function(t,r){var o=null,n=!1,i;o=t.subscribe(T(r,void 0,void 0,function(a){i=W(e(a,ve(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function Vo(e,t,r,o,n){return function(i,a){var s=r,p=t,c=0;i.subscribe(T(a,function(l){var f=c++;p=s?e(p,l,f):(s=!0,l),o&&a.next(p)},n&&function(){s&&a.next(p),a.complete()}))}}function Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe(e);return r?go(Rr.apply(void 0,q([],N(e))),Ze(r)):x(function(o,n){Pr(q([o],N(Et(e))))(n)})}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rr.apply(void 0,q([],N(e)))}function Ht(e){return x(function(t,r){var o=!1,n=null,i=null,a=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var s=n;n=null,r.next(s)}};t.subscribe(T(r,function(s){i==null||i.unsubscribe(),o=!0,n=s,i=T(r,a,he),W(e(s)).subscribe(i)},function(){a(),r.complete()},void 0,function(){n=i=null}))})}function _e(e,t){return t===void 0&&(t=se),x(function(r,o){var n=null,i=null,a=null,s=function(){if(n){n.unsubscribe(),n=null;var c=i;i=null,o.next(c)}};function p(){var c=a+e,l=t.now();if(l<c){n=this.schedule(void 0,c-l),o.add(n);return}s()}r.subscribe(T(o,function(c){i=c,a=t.now(),n||(n=t.schedule(p,e),o.add(n))},function(){s(),o.complete()},void 0,function(){i=n=null}))})}function Be(e){return x(function(t,r){var o=!1;t.subscribe(T(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function we(e){return e<=0?function(){return M}:x(function(t,r){var o=0;t.subscribe(T(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function X(){return x(function(e,t){e.subscribe(T(t,he))})}function No(e){return m(function(){return e})}function Ir(e,t){return t?function(r){return je(t.pipe(we(1),X()),r.pipe(Ir(e)))}:oe(function(r,o){return W(e(r,o)).pipe(we(1),No(r))})}function Ge(e,t){t===void 0&&(t=se);var r=Me(e,t);return Ir(function(){return r})}function K(e,t){return t===void 0&&(t=le),e=e!=null?e:va,x(function(r,o){var n,i=!0;r.subscribe(T(o,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,o.next(a))}))})}function va(e,t){return e===t}function Z(e,t){return K(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function zo(e){return e===void 0&&(e=ga),x(function(t,r){var o=!1;t.subscribe(T(r,function(n){o=!0,r.next(n)},function(){return o?r.complete():r.error(e())}))})}function ga(){return new ir}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return je(r,I.apply(void 0,q([],N(e))))}}function L(e){return x(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Ae(e,t){var r=arguments.length>=2;return function(o){return o.pipe(e?b(function(n,i){return e(n,i,o)}):le,we(1),r?Be(t):zo(function(){return new ir}))}}function Fr(e){return e<=0?function(){return M}:x(function(t,r){var o=[];t.subscribe(T(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var a=de(o),s=a.next();!s.done;s=a.next()){var p=s.value;r.next(p)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function qo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=Bt(e,1/0);return e=Et(e),x(function(n,i){yt(o)(ue(q([n],N(e)),r)).subscribe(i)})}function Pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qo.apply(void 0,q([],N(e)))}function st(e){var t,r=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,o=e.delay):r=e),r<=0?function(){return M}:x(function(n,i){var a=0,s,p=function(){if(s==null||s.unsubscribe(),s=null,o!=null){var l=typeof o=="number"?Me(o):W(o(a)),f=T(i,function(){f.unsubscribe(),c()});l.subscribe(f)}else c()},c=function(){var l=!1;s=n.subscribe(T(i,void 0,function(){++a<r?s?p():l=!0:i.complete()})),l&&p()};c()})}function jr(e,t){return x(Vo(e,t,arguments.length>=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new g}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,p=s===void 0?!0:s;return function(c){var l,f,u,h=0,w=!1,A=!1,te=function(){f==null||f.unsubscribe(),f=void 0},ie=function(){te(),l=u=void 0,w=A=!1},J=function(){var H=l;ie(),H==null||H.unsubscribe()};return x(function(H,mt){h++,!A&&!w&&te();var ze=u=u!=null?u:r();mt.add(function(){h--,h===0&&!A&&!w&&(f=Wr(J,p))}),ze.subscribe(mt),!l&&h>0&&(l=new at({next:function(Ie){return ze.next(Ie)},error:function(Ie){A=!0,te(),f=Wr(ie,n,Ie),ze.error(Ie)},complete:function(){w=!0,te(),f=Wr(ie,a),ze.complete()}}),W(H).subscribe(l))})(c)}}function Wr(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var n=new at({next:function(){n.unsubscribe(),e()}});return W(t.apply(void 0,q([],N(r)))).subscribe(n)}}function B(e,t,r){var o,n,i,a,s=!1;return e&&typeof e=="object"?(o=e.bufferSize,a=o===void 0?1/0:o,n=e.windowTime,t=n===void 0?1/0:n,i=e.refCount,s=i===void 0?!1:i,r=e.scheduler):a=e!=null?e:1/0,pe({connector:function(){return new _t(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Ce(e){return b(function(t,r){return e<=r})}function Ur(e){return x(function(t,r){var o=!1,n=T(r,function(){n==null||n.unsubscribe(),o=!0},he);W(e).subscribe(n),t.subscribe(T(r,function(i){return o&&r.next(i)}))})}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e);return x(function(o,n){(r?je(e,o,r):je(e,o)).subscribe(n)})}function v(e,t){return x(function(r,o){var n=null,i=0,a=!1,s=function(){return a&&!n&&o.complete()};r.subscribe(T(o,function(p){n==null||n.unsubscribe();var c=0,l=i++;W(e(p,l)).subscribe(n=T(o,function(f){return o.next(t?t(p,f,l,c++):f)},function(){n=null,s()}))},function(){a=!0,s()}))})}function U(e){return x(function(t,r){W(e).subscribe(T(r,function(){return r.complete()},he)),!r.closed&&t.subscribe(r)})}function Dr(e,t){return t===void 0&&(t=!1),x(function(r,o){var n=0;r.subscribe(T(o,function(i){var a=e(i,n++);(a||t)&&o.next(i),!a&&o.complete()}))})}function y(e,t,r){var o=k(e)||t||r?{next:e,error:t,complete:r}:e;return o?x(function(n,i){var a;(a=o.subscribe)===null||a===void 0||a.call(o);var s=!0;n.subscribe(T(i,function(p){var c;(c=o.next)===null||c===void 0||c.call(o,p),i.next(p)},function(){var p;s=!1,(p=o.complete)===null||p===void 0||p.call(o),i.complete()},function(p){var c;s=!1,(c=o.error)===null||c===void 0||c.call(o,p),i.error(p)},function(){var p,c;s&&((p=o.unsubscribe)===null||p===void 0||p.call(o)),(c=o.finalize)===null||c===void 0||c.call(o)}))}):le}function Qo(e,t){return x(function(r,o){var n=t!=null?t:{},i=n.leading,a=i===void 0?!0:i,s=n.trailing,p=s===void 0?!1:s,c=!1,l=null,f=null,u=!1,h=function(){f==null||f.unsubscribe(),f=null,p&&(te(),u&&o.complete())},w=function(){f=null,u&&o.complete()},A=function(ie){return f=W(e(ie)).subscribe(T(o,h,w))},te=function(){if(c){c=!1;var ie=l;l=null,o.next(ie),!u&&A(ie)}};r.subscribe(T(o,function(ie){c=!0,l=ie,!(f&&!f.closed)&&(a?te():A(ie))},function(){u=!0,!(p&&c&&f&&!f.closed)&&o.complete()}))})}function ct(e,t,r){t===void 0&&(t=se);var o=Me(e,t);return Qo(function(){return o},r)}function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe(e);return x(function(o,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),p=!1,c=function(f){W(e[f]).subscribe(T(n,function(u){a[f]=u,!p&&!s[f]&&(s[f]=!0,(p=s.every(le))&&(s=null))},he))},l=0;l<i;l++)c(l);o.subscribe(T(n,function(f){if(p){var u=q([f],N(a));n.next(r?r.apply(void 0,q([],N(u))):u)}}))})}function Ko(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(function(r,o){Ct.apply(void 0,q([r],N(e))).subscribe(o)})}function Vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ko.apply(void 0,q([],N(e)))}function Yo(){let e=new _t(1);return d(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function P(e,t=document){let r=fe(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function fe(e,t=document){return t.querySelector(e)||void 0}function Re(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var xa=S(d(document.body,"focusin"),d(document.body,"focusout")).pipe(_e(1),Q(void 0),m(()=>Re()||document.body),B(1));function et(e){return xa.pipe(m(t=>e.contains(t)),K())}function kt(e,t){return C(()=>S(d(e,"mouseenter").pipe(m(()=>!0)),d(e,"mouseleave").pipe(m(()=>!1))).pipe(t?Ht(r=>Me(+!r*t)):le,Q(e.matches(":hover"))))}function Bo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Bo(e,r)}function E(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)Bo(o,n);return o}function sr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function wt(e){let t=E("script",{src:e});return C(()=>(document.head.appendChild(t),S(d(t,"load"),d(t,"error").pipe(v(()=>$r(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),L(()=>document.head.removeChild(t)),we(1))))}var Go=new g,ya=C(()=>typeof ResizeObserver=="undefined"?wt("https://unpkg.com/resize-observer-polyfill"):I(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Go.next(t)))),v(e=>S(Ke,I(e)).pipe(L(()=>e.disconnect()))),B(1));function ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return ya.pipe(y(r=>r.observe(t)),v(r=>Go.pipe(b(o=>o.target===t),L(()=>r.unobserve(t)))),m(()=>ce(e)),Q(ce(e)))}function Tt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function cr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Jo(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Ue(e){return{x:e.offsetLeft,y:e.offsetTop}}function Xo(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Zo(e){return S(d(window,"load"),d(window,"resize")).pipe(Le(0,me),m(()=>Ue(e)),Q(Ue(e)))}function pr(e){return{x:e.scrollLeft,y:e.scrollTop}}function De(e){return S(d(e,"scroll"),d(window,"scroll"),d(window,"resize")).pipe(Le(0,me),m(()=>pr(e)),Q(pr(e)))}var en=new g,Ea=C(()=>I(new IntersectionObserver(e=>{for(let t of e)en.next(t)},{threshold:0}))).pipe(v(e=>S(Ke,I(e)).pipe(L(()=>e.disconnect()))),B(1));function tt(e){return Ea.pipe(y(t=>t.observe(e)),v(t=>en.pipe(b(({target:r})=>r===e),L(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function tn(e,t=16){return De(e).pipe(m(({y:r})=>{let o=ce(e),n=Tt(e);return r>=n.height-o.height-t}),K())}var lr={drawer:P("[data-md-toggle=drawer]"),search:P("[data-md-toggle=search]")};function rn(e){return lr[e].checked}function Je(e,t){lr[e].checked!==t&&lr[e].click()}function Ve(e){let t=lr[e];return d(t,"change").pipe(m(()=>t.checked),Q(t.checked))}function wa(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ta(){return S(d(window,"compositionstart").pipe(m(()=>!0)),d(window,"compositionend").pipe(m(()=>!1))).pipe(Q(!1))}function on(){let e=d(window,"keydown").pipe(b(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:rn("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),b(({mode:t,type:r})=>{if(t==="global"){let o=Re();if(typeof o!="undefined")return!wa(o,r)}return!0}),pe());return Ta().pipe(v(t=>t?M:e))}function xe(){return new URL(location.href)}function pt(e,t=!1){if(G("navigation.instant")&&!t){let r=E("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function nn(){return new g}function an(){return location.hash.slice(1)}function sn(e){let t=E("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Sa(e){return S(d(window,"hashchange"),e).pipe(m(an),Q(an()),b(t=>t.length>0),B(1))}function cn(e){return Sa(e).pipe(m(t=>fe(`[id="${t}"]`)),b(t=>typeof t!="undefined"))}function $t(e){let t=matchMedia(e);return ar(r=>t.addListener(()=>r(t.matches))).pipe(Q(t.matches))}function pn(){let e=matchMedia("print");return S(d(window,"beforeprint").pipe(m(()=>!0)),d(window,"afterprint").pipe(m(()=>!1))).pipe(Q(e.matches))}function Nr(e,t){return e.pipe(v(r=>r?t():M))}function zr(e,t){return new F(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let a=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+a*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function Ne(e,t){return zr(e,t).pipe(v(r=>r.text()),m(r=>JSON.parse(r)),B(1))}function ln(e,t){let r=new DOMParser;return zr(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),B(1))}function mn(e,t){let r=new DOMParser;return zr(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),B(1))}function fn(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function un(){return S(d(window,"scroll",{passive:!0}),d(window,"resize",{passive:!0})).pipe(m(fn),Q(fn()))}function dn(){return{width:innerWidth,height:innerHeight}}function hn(){return d(window,"resize",{passive:!0}).pipe(m(dn),Q(dn()))}function bn(){return z([un(),hn()]).pipe(m(([e,t])=>({offset:e,size:t})),B(1))}function mr(e,{viewport$:t,header$:r}){let o=t.pipe(Z("size")),n=z([o,r]).pipe(m(()=>Ue(e)));return z([r,t,n]).pipe(m(([{height:i},{offset:a,size:s},{x:p,y:c}])=>({offset:{x:a.x-p,y:a.y-c+i},size:s})))}function Oa(e){return d(e,"message",t=>t.data)}function Ma(e){let t=new g;return t.subscribe(r=>e.postMessage(r)),t}function vn(e,t=new Worker(e)){let r=Oa(t),o=Ma(t),n=new g;n.subscribe(o);let i=o.pipe(X(),ne(!0));return n.pipe(X(),Pe(r.pipe(U(i))),pe())}var La=P("#__config"),St=JSON.parse(La.textContent);St.base=`${new URL(St.base,xe())}`;function Te(){return St}function G(e){return St.features.includes(e)}function ye(e,t){return typeof t!="undefined"?St.translations[e].replace("#",t.toString()):St.translations[e]}function Se(e,t=document){return P(`[data-md-component=${e}]`,t)}function ae(e,t=document){return $(`[data-md-component=${e}]`,t)}function _a(e){let t=P(".md-typeset > :first-child",e);return d(t,"click",{once:!0}).pipe(m(()=>P(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function gn(e){if(!G("announce.dismiss")||!e.childElementCount)return M;if(!e.hidden){let t=P(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return C(()=>{let t=new g;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),_a(e).pipe(y(r=>t.next(r)),L(()=>t.complete()),m(r=>R({ref:e},r)))})}function Aa(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function xn(e,t){let r=new g;return r.subscribe(({hidden:o})=>{e.hidden=o}),Aa(e,t).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))}function Pt(e,t){return t==="inline"?E("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"})):E("div",{class:"md-tooltip",id:e,role:"tooltip"},E("div",{class:"md-tooltip__inner md-typeset"}))}function yn(...e){return E("div",{class:"md-tooltip2",role:"tooltip"},E("div",{class:"md-tooltip2__inner md-typeset"},e))}function En(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return E("aside",{class:"md-annotation",tabIndex:0},Pt(t),E("a",{href:r,class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}else return E("aside",{class:"md-annotation",tabIndex:0},Pt(t),E("span",{class:"md-annotation__index",tabIndex:-1},E("span",{"data-md-annotation-id":e})))}function wn(e){return E("button",{class:"md-clipboard md-icon",title:ye("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function qr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(p=>!e.terms[p]).reduce((p,c)=>[...p,E("del",null,c)," "],[]).slice(0,-1),i=Te(),a=new URL(e.location,i.base);G("search.highlight")&&a.searchParams.set("h",Object.entries(e.terms).filter(([,p])=>p).reduce((p,[c])=>`${p} ${c}`.trim(),""));let{tags:s}=Te();return E("a",{href:`${a}`,class:"md-search-result__link",tabIndex:-1},E("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&E("div",{class:"md-search-result__icon md-icon"}),r>0&&E("h1",null,e.title),r<=0&&E("h2",null,e.title),o>0&&e.text.length>0&&e.text,e.tags&&e.tags.map(p=>{let c=s?p in s?`md-tag-icon md-tag--${s[p]}`:"md-tag-icon":"";return E("span",{class:`md-tag ${c}`},p)}),o>0&&n.length>0&&E("p",{class:"md-search-result__terms"},ye("search.result.term.missing"),": ",...n)))}function Tn(e){let t=e[0].score,r=[...e],o=Te(),n=r.findIndex(l=>!`${new URL(l.location,o.base)}`.includes("#")),[i]=r.splice(n,1),a=r.findIndex(l=>l.score<t);a===-1&&(a=r.length);let s=r.slice(0,a),p=r.slice(a),c=[qr(i,2|+(!n&&a===0)),...s.map(l=>qr(l,1)),...p.length?[E("details",{class:"md-search-result__more"},E("summary",{tabIndex:-1},E("div",null,p.length>0&&p.length===1?ye("search.result.more.one"):ye("search.result.more.other",p.length))),...p.map(l=>qr(l,1)))]:[]];return E("li",{class:"md-search-result__item"},c)}function Sn(e){return E("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>E("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?sr(r):r)))}function Qr(e){let t=`tabbed-control tabbed-control--${e}`;return E("div",{class:t,hidden:!0},E("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function On(e){return E("div",{class:"md-typeset__scrollwrap"},E("div",{class:"md-typeset__table"},e))}function Ca(e){let t=Te(),r=new URL(`../${e.version}/`,t.base);return E("li",{class:"md-version__item"},E("a",{href:`${r}`,class:"md-version__link"},e.title))}function Mn(e,t){return e=e.filter(r=>{var o;return!((o=r.properties)!=null&&o.hidden)}),E("div",{class:"md-version"},E("button",{class:"md-version__current","aria-label":ye("select.version")},t.title),E("ul",{class:"md-version__list"},e.map(Ca)))}var Ha=0;function ka(e){let t=z([et(e),kt(e)]).pipe(m(([o,n])=>o||n),K()),r=C(()=>Jo(e)).pipe(oe(De),ct(1),m(()=>Xo(e)));return t.pipe(Ae(o=>o),v(()=>z([t,r])),m(([o,n])=>({active:o,offset:n})),pe())}function $a(e,t){let{content$:r,viewport$:o}=t,n=`__tooltip2_${Ha++}`;return C(()=>{let i=new g,a=new _r(!1);i.pipe(X(),ne(!1)).subscribe(a);let s=a.pipe(Ht(c=>Me(+!c*250,Hr)),K(),v(c=>c?r:M),y(c=>c.id=n),pe());z([i.pipe(m(({active:c})=>c)),s.pipe(v(c=>kt(c,250)),Q(!1))]).pipe(m(c=>c.some(l=>l))).subscribe(a);let p=a.pipe(b(c=>c),ee(s,o),m(([c,l,{size:f}])=>{let u=e.getBoundingClientRect(),h=u.width/2;if(l.role==="tooltip")return{x:h,y:8+u.height};if(u.y>=f.height/2){let{height:w}=ce(l);return{x:h,y:-16-w}}else return{x:h,y:16+u.height}}));return z([s,i,p]).subscribe(([c,{offset:l},f])=>{c.style.setProperty("--md-tooltip-host-x",`${l.x}px`),c.style.setProperty("--md-tooltip-host-y",`${l.y}px`),c.style.setProperty("--md-tooltip-x",`${f.x}px`),c.style.setProperty("--md-tooltip-y",`${f.y}px`),c.classList.toggle("md-tooltip2--top",f.y<0),c.classList.toggle("md-tooltip2--bottom",f.y>=0)}),a.pipe(b(c=>c),ee(s,(c,l)=>l),b(c=>c.role==="tooltip")).subscribe(c=>{let l=ce(P(":scope > *",c));c.style.setProperty("--md-tooltip-width",`${l.width}px`),c.style.setProperty("--md-tooltip-tail","0px")}),a.pipe(K(),be(me),ee(s)).subscribe(([c,l])=>{l.classList.toggle("md-tooltip2--active",c)}),z([a.pipe(b(c=>c)),s]).subscribe(([c,l])=>{l.role==="dialog"?(e.setAttribute("aria-controls",n),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",n)}),a.pipe(b(c=>!c)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),ka(e).pipe(y(c=>i.next(c)),L(()=>i.complete()),m(c=>R({ref:e},c)))})}function lt(e,{viewport$:t},r=document.body){return $a(e,{content$:new F(o=>{let n=e.title,i=yn(n);return o.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",n)}}),viewport$:t})}function Pa(e,t){let r=C(()=>z([Zo(e),De(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:a,height:s}=ce(e);return{x:o-i.x+a/2,y:n-i.y+s/2}}));return et(e).pipe(v(o=>r.pipe(m(n=>({active:o,offset:n})),we(+!o||1/0))))}function Ln(e,t,{target$:r}){let[o,n]=Array.from(e.children);return C(()=>{let i=new g,a=i.pipe(X(),ne(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),tt(e).pipe(U(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),S(i.pipe(b(({active:s})=>s)),i.pipe(_e(250),b(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Le(16,me)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(ct(125,me),b(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),d(n,"click").pipe(U(a),b(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),d(n,"mousedown").pipe(U(a),ee(i)).subscribe(([s,{active:p}])=>{var c;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(p){s.preventDefault();let l=e.parentElement.closest(".md-annotation");l instanceof HTMLElement?l.focus():(c=Re())==null||c.blur()}}),r.pipe(U(a),b(s=>s===o),Ge(125)).subscribe(()=>e.focus()),Pa(e,t).pipe(y(s=>i.next(s)),L(()=>i.complete()),m(s=>R({ref:e},s)))})}function Ra(e){return e.tagName==="CODE"?$(".c, .c1, .cm",e):[e]}function Ia(e){let t=[];for(let r of Ra(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,p]=a;if(typeof p=="undefined"){let c=i.splitText(a.index);i=c.splitText(s.length),t.push(c)}else{i.textContent=s,t.push(i);break}}}}return t}function _n(e,t){t.append(...Array.from(e.childNodes))}function fr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,a=new Map;for(let s of Ia(t)){let[,p]=s.textContent.match(/\((\d+)\)/);fe(`:scope > li:nth-child(${p})`,e)&&(a.set(p,En(p,i)),s.replaceWith(a.get(p)))}return a.size===0?M:C(()=>{let s=new g,p=s.pipe(X(),ne(!0)),c=[];for(let[l,f]of a)c.push([P(".md-typeset",f),P(`:scope > li:nth-child(${l})`,e)]);return o.pipe(U(p)).subscribe(l=>{e.hidden=!l,e.classList.toggle("md-annotation-list",l);for(let[f,u]of c)l?_n(f,u):_n(u,f)}),S(...[...a].map(([,l])=>Ln(l,t,{target$:r}))).pipe(L(()=>s.complete()),pe())})}function An(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return An(t)}}function Cn(e,t){return C(()=>{let r=An(e);return typeof r!="undefined"?fr(r,e,t):M})}var Hn=Vt(Yr());var Fa=0;function kn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return kn(t)}}function ja(e){return ge(e).pipe(m(({width:t})=>({scrollable:Tt(e).width>t})),Z("scrollable"))}function $n(e,t){let{matches:r}=matchMedia("(hover)"),o=C(()=>{let n=new g,i=n.pipe(Fr(1));n.subscribe(({scrollable:c})=>{c&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[];if(Hn.default.isSupported()&&(e.closest(".copy")||G("content.code.copy")&&!e.closest(".no-copy"))){let c=e.closest("pre");c.id=`__code_${Fa++}`;let l=wn(c.id);c.insertBefore(l,e),G("content.tooltips")&&a.push(lt(l,{viewport$}))}let s=e.closest(".highlight");if(s instanceof HTMLElement){let c=kn(s);if(typeof c!="undefined"&&(s.classList.contains("annotate")||G("content.code.annotate"))){let l=fr(c,e,t);a.push(ge(s).pipe(U(i),m(({width:f,height:u})=>f&&u),K(),v(f=>f?l:M)))}}return $(":scope > span[id]",e).length&&e.classList.add("md-code__content"),ja(e).pipe(y(c=>n.next(c)),L(()=>n.complete()),m(c=>R({ref:e},c)),Pe(...a))});return G("content.lazy")?tt(e).pipe(b(n=>n),we(1),v(()=>o)):o}function Wa(e,{target$:t,print$:r}){let o=!0;return S(t.pipe(m(n=>n.closest("details:not([open])")),b(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(b(n=>n||!o),y(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function Pn(e,t){return C(()=>{let r=new g;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),Wa(e,t).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))})}var Rn=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var Br,Da=0;function Va(){return typeof mermaid=="undefined"||mermaid instanceof Element?wt("https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js"):I(void 0)}function In(e){return e.classList.remove("mermaid"),Br||(Br=Va().pipe(y(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Rn,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),B(1))),Br.subscribe(()=>ao(this,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${Da++}`,r=E("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),a=r.attachShadow({mode:"closed"});a.innerHTML=n,e.replaceWith(r),i==null||i(a)})),Br.pipe(m(()=>({ref:e})))}var Fn=E("table");function jn(e){return e.replaceWith(Fn),Fn.replaceWith(On(e)),I({ref:e})}function Na(e){let t=e.find(r=>r.checked)||e[0];return S(...e.map(r=>d(r,"change").pipe(m(()=>P(`label[for="${r.id}"]`))))).pipe(Q(P(`label[for="${t.id}"]`)),m(r=>({active:r})))}function Wn(e,{viewport$:t,target$:r}){let o=P(".tabbed-labels",e),n=$(":scope > input",e),i=Qr("prev");e.append(i);let a=Qr("next");return e.append(a),C(()=>{let s=new g,p=s.pipe(X(),ne(!0));z([s,ge(e)]).pipe(U(p),Le(1,me)).subscribe({next([{active:c},l]){let f=Ue(c),{width:u}=ce(c);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let h=pr(o);(f.x<h.x||f.x+u>h.x+l.width)&&o.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),z([De(o),ge(o)]).pipe(U(p)).subscribe(([c,l])=>{let f=Tt(o);i.hidden=c.x<16,a.hidden=c.x>f.width-l.width-16}),S(d(i,"click").pipe(m(()=>-1)),d(a,"click").pipe(m(()=>1))).pipe(U(p)).subscribe(c=>{let{width:l}=ce(o);o.scrollBy({left:l*c,behavior:"smooth"})}),r.pipe(U(p),b(c=>n.includes(c))).subscribe(c=>c.click()),o.classList.add("tabbed-labels--linked");for(let c of n){let l=P(`label[for="${c.id}"]`);l.replaceChildren(E("a",{href:`#${l.htmlFor}`,tabIndex:-1},...Array.from(l.childNodes))),d(l.firstElementChild,"click").pipe(U(p),b(f=>!(f.metaKey||f.ctrlKey)),y(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${l.htmlFor}`),l.click()})}return G("content.tabs.link")&&s.pipe(Ce(1),ee(t)).subscribe(([{active:c},{offset:l}])=>{let f=c.innerText.trim();if(c.hasAttribute("data-md-switching"))c.removeAttribute("data-md-switching");else{let u=e.offsetTop-l.y;for(let w of $("[data-tabs]"))for(let A of $(":scope > input",w)){let te=P(`label[for="${A.id}"]`);if(te!==c&&te.innerText.trim()===f){te.setAttribute("data-md-switching",""),A.click();break}}window.scrollTo({top:e.offsetTop-u});let h=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...h])])}}),s.pipe(U(p)).subscribe(()=>{for(let c of $("audio, video",e))c.pause()}),tt(e).pipe(v(()=>Na(n)),y(c=>s.next(c)),L(()=>s.complete()),m(c=>R({ref:e},c)))}).pipe(Qe(se))}function Un(e,{viewport$:t,target$:r,print$:o}){return S(...$(".annotate:not(.highlight)",e).map(n=>Cn(n,{target$:r,print$:o})),...$("pre:not(.mermaid) > code",e).map(n=>$n(n,{target$:r,print$:o})),...$("pre.mermaid",e).map(n=>In(n)),...$("table:not([class])",e).map(n=>jn(n)),...$("details",e).map(n=>Pn(n,{target$:r,print$:o})),...$("[data-tabs]",e).map(n=>Wn(n,{viewport$:t,target$:r})),...$("[title]",e).filter(()=>G("content.tooltips")).map(n=>lt(n,{viewport$:t})))}function za(e,{alert$:t}){return t.pipe(v(r=>S(I(!0),I(!1).pipe(Ge(2e3))).pipe(m(o=>({message:r,active:o})))))}function Dn(e,t){let r=P(".md-typeset",e);return C(()=>{let o=new g;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),za(e,t).pipe(y(n=>o.next(n)),L(()=>o.complete()),m(n=>R({ref:e},n)))})}var qa=0;function Qa(e,t){document.body.append(e);let{width:r}=ce(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=cr(t),n=typeof o!="undefined"?De(o):I({x:0,y:0}),i=S(et(t),kt(t)).pipe(K());return z([i,n]).pipe(m(([a,s])=>{let{x:p,y:c}=Ue(t),l=ce(t),f=t.closest("table");return f&&t.parentElement&&(p+=f.offsetLeft+t.parentElement.offsetLeft,c+=f.offsetTop+t.parentElement.offsetTop),{active:a,offset:{x:p-s.x+l.width/2-r/2,y:c-s.y+l.height+8}}}))}function Vn(e){let t=e.title;if(!t.length)return M;let r=`__tooltip_${qa++}`,o=Pt(r,"inline"),n=P(".md-typeset",o);return n.innerHTML=t,C(()=>{let i=new g;return i.subscribe({next({offset:a}){o.style.setProperty("--md-tooltip-x",`${a.x}px`),o.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),S(i.pipe(b(({active:a})=>a)),i.pipe(_e(250),b(({active:a})=>!a))).subscribe({next({active:a}){a?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Le(16,me)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(ct(125,me),b(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?o.style.setProperty("--md-tooltip-0",`${-a}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Qa(o,e).pipe(y(a=>i.next(a)),L(()=>i.complete()),m(a=>R({ref:e},a)))}).pipe(Qe(se))}function Ka({viewport$:e}){if(!G("header.autohide"))return I(!1);let t=e.pipe(m(({offset:{y:n}})=>n),Ye(2,1),m(([n,i])=>[n<i,i]),Z(0)),r=z([e,t]).pipe(b(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),m(([,[n]])=>n),K()),o=Ve("search");return z([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),K(),v(n=>n?r:I(!1)),Q(!1))}function Nn(e,t){return C(()=>z([ge(e),Ka(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),K((r,o)=>r.height===o.height&&r.hidden===o.hidden),B(1))}function zn(e,{header$:t,main$:r}){return C(()=>{let o=new g,n=o.pipe(X(),ne(!0));o.pipe(Z("active"),We(t)).subscribe(([{active:a},{hidden:s}])=>{e.classList.toggle("md-header--shadow",a&&!s),e.hidden=s});let i=ue($("[title]",e)).pipe(b(()=>G("content.tooltips")),oe(a=>Vn(a)));return r.subscribe(o),t.pipe(U(n),m(a=>R({ref:e},a)),Pe(i.pipe(U(n))))})}function Ya(e,{viewport$:t,header$:r}){return mr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=ce(e);return{active:o>=n}}),Z("active"))}function qn(e,t){return C(()=>{let r=new g;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=fe(".md-content h1");return typeof o=="undefined"?M:Ya(o,t).pipe(y(n=>r.next(n)),L(()=>r.complete()),m(n=>R({ref:e},n)))})}function Qn(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),K()),n=o.pipe(v(()=>ge(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),Z("bottom"))));return z([o,n,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:p},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-p,i)-Math.max(0,c+p-s)),{offset:a-i,height:c,active:a-i<=p})),K((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Ba(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return I(...e).pipe(oe(o=>d(o,"change").pipe(m(()=>o))),Q(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),B(1))}function Kn(e){let t=$("input",e),r=E("meta",{name:"theme-color"});document.head.appendChild(r);let o=E("meta",{name:"color-scheme"});document.head.appendChild(o);let n=$t("(prefers-color-scheme: light)");return C(()=>{let i=new g;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),p=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=p.getAttribute("data-md-color-scheme"),a.color.primary=p.getAttribute("data-md-color-primary"),a.color.accent=p.getAttribute("data-md-color-accent")}for(let[s,p]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,p);for(let s=0;s<t.length;s++){let p=t[s].nextElementSibling;p instanceof HTMLElement&&(p.hidden=a.index!==s)}__md_set("__palette",a)}),d(e,"keydown").pipe(b(a=>a.key==="Enter"),ee(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=Se("header"),s=window.getComputedStyle(a);return o.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(p=>(+p).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(be(se)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Ba(t).pipe(U(n.pipe(Ce(1))),st(),y(a=>i.next(a)),L(()=>i.complete()),m(a=>R({ref:e},a)))})}function Yn(e,{progress$:t}){return C(()=>{let r=new g;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(y(o=>r.next({value:o})),L(()=>r.complete()),m(o=>({ref:e,value:o})))})}var Gr=Vt(Yr());function Ga(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function Bn({alert$:e}){Gr.default.isSupported()&&new F(t=>{new Gr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Ga(P(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(y(t=>{t.trigger.focus()}),m(()=>ye("clipboard.copied"))).subscribe(e)}function Gn(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function Ja(e,t){let r=new Map;for(let o of $("url",e)){let n=P("loc",o),i=[Gn(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",o)){let s=a.getAttribute("href");s!=null&&i.push(Gn(new URL(s),t))}}return r}function ur(e){return mn(new URL("sitemap.xml",e)).pipe(m(t=>Ja(t,new URL(e))),ve(()=>I(new Map)))}function Xa(e,t){if(!(e.target instanceof Element))return M;let r=e.target.closest("a");if(r===null)return M;if(r.target||e.metaKey||e.ctrlKey)return M;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),I(new URL(r.href))):M}function Jn(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Xn(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return I(e)}function Za(e){for(let o of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...G("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=fe(o),i=fe(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=Jn(document);for(let[o,n]of Jn(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values()){let n=o.getAttribute("name");n!=="theme-color"&&n!=="color-scheme"&&o.remove()}let r=Se("container");return je($("script",r)).pipe(v(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new F(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),M}),X(),ne(document))}function Zn({location$:e,viewport$:t,progress$:r}){let o=Te();if(location.protocol==="file:")return M;let n=ur(o.base);I(document).subscribe(Xn);let i=d(document.body,"click").pipe(We(n),v(([p,c])=>Xa(p,c)),pe()),a=d(window,"popstate").pipe(m(xe),pe());i.pipe(ee(t)).subscribe(([p,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",p)}),S(i,a).subscribe(e);let s=e.pipe(Z("pathname"),v(p=>ln(p,{progress$:r}).pipe(ve(()=>(pt(p,!0),M)))),v(Xn),v(Za),pe());return S(s.pipe(ee(e,(p,c)=>c)),e.pipe(Z("pathname"),v(()=>e),Z("hash")),e.pipe(K((p,c)=>p.pathname===c.pathname&&p.hash===c.hash),v(()=>i),y(()=>history.back()))).subscribe(p=>{var c,l;history.state!==null||!p.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",sn(p.hash),history.scrollRestoration="manual")}),e.subscribe(()=>{history.scrollRestoration="manual"}),d(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),t.pipe(Z("offset"),_e(100)).subscribe(({offset:p})=>{history.replaceState(p,"")}),s}var ri=Vt(ti());function oi(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(0,ri.default)(a).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function It(e){return e.type===1}function dr(e){return e.type===3}function ni(e,t){let r=vn(e);return S(I(location.protocol!=="file:"),Ve("search")).pipe(Ae(o=>o),v(()=>t)).subscribe(({config:o,docs:n})=>r.next({type:0,data:{config:o,docs:n,options:{suggest:G("search.suggest")}}})),r}function ii({document$:e}){let t=Te(),r=Ne(new URL("../versions.json",t.base)).pipe(ve(()=>M)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:a,aliases:s})=>a===i||s.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),v(n=>d(document.body,"click").pipe(b(i=>!i.metaKey&&!i.ctrlKey),ee(o),v(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&n.has(s.href)){let p=s.href;return!i.target.closest(".md-version")&&n.get(p)===a?M:(i.preventDefault(),I(p))}}return M}),v(i=>{let{version:a}=n.get(i);return ur(new URL(i)).pipe(m(s=>{let c=xe().href.replace(t.base,"");return s.has(c.split("#")[0])?new URL(`../${a}/${c}`,t.base):new URL(i)}))})))).subscribe(n=>pt(n,!0)),z([r,o]).subscribe(([n,i])=>{P(".md-header__topic").appendChild(Mn(n,i))}),e.pipe(v(()=>o)).subscribe(n=>{var a;let i=__md_get("__outdated",sessionStorage);if(i===null){i=!0;let s=((a=t.version)==null?void 0:a.default)||"latest";Array.isArray(s)||(s=[s]);e:for(let p of s)for(let c of n.aliases.concat(n.version))if(new RegExp(p,"i").test(c)){i=!1;break e}__md_set("__outdated",i,sessionStorage)}if(i)for(let s of ae("outdated"))s.hidden=!1})}function ns(e,{worker$:t}){let{searchParams:r}=xe();r.has("q")&&(Je("search",!0),e.value=r.get("q"),e.focus(),Ve("search").pipe(Ae(i=>!i)).subscribe(()=>{let i=xe();i.searchParams.delete("q"),history.replaceState({},"",`${i}`)}));let o=et(e),n=S(t.pipe(Ae(It)),d(e,"keyup"),o).pipe(m(()=>e.value),K());return z([n,o]).pipe(m(([i,a])=>({value:i,focus:a})),B(1))}function ai(e,{worker$:t}){let r=new g,o=r.pipe(X(),ne(!0));z([t.pipe(Ae(It)),r],(i,a)=>a).pipe(Z("value")).subscribe(({value:i})=>t.next({type:2,data:i})),r.pipe(Z("focus")).subscribe(({focus:i})=>{i&&Je("search",i)}),d(e.form,"reset").pipe(U(o)).subscribe(()=>e.focus());let n=P("header [for=__search]");return d(n,"click").subscribe(()=>e.focus()),ns(e,{worker$:t}).pipe(y(i=>r.next(i)),L(()=>r.complete()),m(i=>R({ref:e},i)),B(1))}function si(e,{worker$:t,query$:r}){let o=new g,n=tn(e.parentElement).pipe(b(Boolean)),i=e.parentElement,a=P(":scope > :first-child",e),s=P(":scope > :last-child",e);Ve("search").subscribe(l=>s.setAttribute("role",l?"list":"presentation")),o.pipe(ee(r),Ur(t.pipe(Ae(It)))).subscribe(([{items:l},{value:f}])=>{switch(l.length){case 0:a.textContent=f.length?ye("search.result.none"):ye("search.result.placeholder");break;case 1:a.textContent=ye("search.result.one");break;default:let u=sr(l.length);a.textContent=ye("search.result.other",u)}});let p=o.pipe(y(()=>s.innerHTML=""),v(({items:l})=>S(I(...l.slice(0,10)),I(...l.slice(10)).pipe(Ye(4),Vr(n),v(([f])=>f)))),m(Tn),pe());return p.subscribe(l=>s.appendChild(l)),p.pipe(oe(l=>{let f=fe("details",l);return typeof f=="undefined"?M:d(f,"toggle").pipe(U(o),m(()=>f))})).subscribe(l=>{l.open===!1&&l.offsetTop<=i.scrollTop&&i.scrollTo({top:l.offsetTop})}),t.pipe(b(dr),m(({data:l})=>l)).pipe(y(l=>o.next(l)),L(()=>o.complete()),m(l=>R({ref:e},l)))}function is(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=xe();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function ci(e,t){let r=new g,o=r.pipe(X(),ne(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),d(e,"click").pipe(U(o)).subscribe(n=>n.preventDefault()),is(e,t).pipe(y(n=>r.next(n)),L(()=>r.complete()),m(n=>R({ref:e},n)))}function pi(e,{worker$:t,keyboard$:r}){let o=new g,n=Se("search-query"),i=S(d(n,"keydown"),d(n,"focus")).pipe(be(se),m(()=>n.value),K());return o.pipe(We(i),m(([{suggest:s},p])=>{let c=p.split(/([\s-]+)/);if(s!=null&&s.length&&c[c.length-1]){let l=s[s.length-1];l.startsWith(c[c.length-1])&&(c[c.length-1]=l)}else c.length=0;return c})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g,"&nbsp;")),r.pipe(b(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(b(dr),m(({data:s})=>s)).pipe(y(s=>o.next(s)),L(()=>o.complete()),m(()=>({ref:e})))}function li(e,{index$:t,keyboard$:r}){let o=Te();try{let n=ni(o.search,t),i=Se("search-query",e),a=Se("search-result",e);d(e,"click").pipe(b(({target:p})=>p instanceof Element&&!!p.closest("a"))).subscribe(()=>Je("search",!1)),r.pipe(b(({mode:p})=>p==="search")).subscribe(p=>{let c=Re();switch(p.type){case"Enter":if(c===i){let l=new Map;for(let f of $(":first-child [href]",a)){let u=f.firstElementChild;l.set(f,parseFloat(u.getAttribute("data-md-score")))}if(l.size){let[[f]]=[...l].sort(([,u],[,h])=>h-u);f.click()}p.claim()}break;case"Escape":case"Tab":Je("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof c=="undefined")i.focus();else{let l=[i,...$(":not(details) > [href], summary, details[open] [href]",a)],f=Math.max(0,(Math.max(0,l.indexOf(c))+l.length+(p.type==="ArrowUp"?-1:1))%l.length);l[f].focus()}p.claim();break;default:i!==Re()&&i.focus()}}),r.pipe(b(({mode:p})=>p==="global")).subscribe(p=>{switch(p.type){case"f":case"s":case"/":i.focus(),i.select(),p.claim();break}});let s=ai(i,{worker$:n});return S(s,si(a,{worker$:n,query$:s})).pipe(Pe(...ae("search-share",e).map(p=>ci(p,{query$:s})),...ae("search-suggest",e).map(p=>pi(p,{worker$:n,keyboard$:r}))))}catch(n){return e.hidden=!0,Ke}}function mi(e,{index$:t,location$:r}){return z([t,r.pipe(Q(xe()),b(o=>!!o.searchParams.get("h")))]).pipe(m(([o,n])=>oi(o.config)(n.searchParams.get("h"))),m(o=>{var a;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let p=s.textContent,c=o(p);c.length>p.length&&n.set(s,c)}for(let[s,p]of n){let{childNodes:c}=E("span",null,p);s.replaceWith(...Array.from(c))}return{ref:e,nodes:n}}))}function as(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return z([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(n,Math.max(0,s-i))-n,{height:a,locked:s>=i+n})),K((i,a)=>i.height===a.height&&i.locked===a.locked))}function Jr(e,o){var n=o,{header$:t}=n,r=io(n,["header$"]);let i=P(".md-sidebar__scrollwrap",e),{y:a}=Ue(i);return C(()=>{let s=new g,p=s.pipe(X(),ne(!0)),c=s.pipe(Le(0,me));return c.pipe(ee(t)).subscribe({next([{height:l},{height:f}]){i.style.height=`${l-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),c.pipe(Ae()).subscribe(()=>{for(let l of $(".md-nav__link--active[href]",e)){if(!l.clientHeight)continue;let f=l.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=ce(f);f.scrollTo({top:u-h/2})}}}),ue($("label[tabindex]",e)).pipe(oe(l=>d(l,"click").pipe(be(se),m(()=>l),U(p)))).subscribe(l=>{let f=P(`[id="${l.htmlFor}"]`);P(`[aria-labelledby="${l.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),as(e,r).pipe(y(l=>s.next(l)),L(()=>s.complete()),m(l=>R({ref:e},l)))})}function fi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Ct(Ne(`${r}/releases/latest`).pipe(ve(()=>M),m(o=>({version:o.tag_name})),Be({})),Ne(r).pipe(ve(()=>M),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),Be({}))).pipe(m(([o,n])=>R(R({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return Ne(r).pipe(m(o=>({repositories:o.public_repos})),Be({}))}}function ui(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Ne(r).pipe(ve(()=>M),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Be({}))}function di(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return fi(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return ui(r,o)}return M}var ss;function cs(e){return ss||(ss=C(()=>{let t=__md_get("__source",sessionStorage);if(t)return I(t);if(ae("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return M}return di(e.href).pipe(y(o=>__md_set("__source",o,sessionStorage)))}).pipe(ve(()=>M),b(t=>Object.keys(t).length>0),m(t=>({facts:t})),B(1)))}function hi(e){let t=P(":scope > :last-child",e);return C(()=>{let r=new g;return r.subscribe(({facts:o})=>{t.appendChild(Sn(o)),t.classList.add("md-source__repository--active")}),cs(e).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))})}function ps(e,{viewport$:t,header$:r}){return ge(document.body).pipe(v(()=>mr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),Z("hidden"))}function bi(e,t){return C(()=>{let r=new g;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(G("navigation.tabs.sticky")?I({hidden:!1}):ps(e,t)).pipe(y(o=>r.next(o)),L(()=>r.complete()),m(o=>R({ref:e},o)))})}function ls(e,{viewport$:t,header$:r}){let o=new Map,n=$(".md-nav__link",e);for(let s of n){let p=decodeURIComponent(s.hash.substring(1)),c=fe(`[id="${p}"]`);typeof c!="undefined"&&o.set(s,c)}let i=r.pipe(Z("height"),m(({height:s})=>{let p=Se("main"),c=P(":scope > :first-child",p);return s+.8*(c.offsetTop-p.offsetTop)}),pe());return ge(document.body).pipe(Z("height"),v(s=>C(()=>{let p=[];return I([...o].reduce((c,[l,f])=>{for(;p.length&&o.get(p[p.length-1]).tagName>=f.tagName;)p.pop();let u=f.offsetTop;for(;!u&&f.parentElement;)f=f.parentElement,u=f.offsetTop;let h=f.offsetParent;for(;h;h=h.offsetParent)u+=h.offsetTop;return c.set([...p=[...p,l]].reverse(),u)},new Map))}).pipe(m(p=>new Map([...p].sort(([,c],[,l])=>c-l))),We(i),v(([p,c])=>t.pipe(jr(([l,f],{offset:{y:u},size:h})=>{let w=u+h.height>=Math.floor(s.height);for(;f.length;){let[,A]=f[0];if(A-c<u||w)l=[...l,f.shift()];else break}for(;l.length;){let[,A]=l[l.length-1];if(A-c>=u&&!w)f=[l.pop(),...f];else break}return[l,f]},[[],[...p]]),K((l,f)=>l[0]===f[0]&&l[1]===f[1])))))).pipe(m(([s,p])=>({prev:s.map(([c])=>c),next:p.map(([c])=>c)})),Q({prev:[],next:[]}),Ye(2,1),m(([s,p])=>s.prev.length<p.prev.length?{prev:p.prev.slice(Math.max(0,s.prev.length-1),p.prev.length),next:[]}:{prev:p.prev.slice(-1),next:p.next.slice(0,p.next.length-s.next.length)}))}function vi(e,{viewport$:t,header$:r,main$:o,target$:n}){return C(()=>{let i=new g,a=i.pipe(X(),ne(!0));if(i.subscribe(({prev:s,next:p})=>{for(let[c]of p)c.classList.remove("md-nav__link--passed"),c.classList.remove("md-nav__link--active");for(let[c,[l]]of s.entries())l.classList.add("md-nav__link--passed"),l.classList.toggle("md-nav__link--active",c===s.length-1)}),G("toc.follow")){let s=S(t.pipe(_e(1),m(()=>{})),t.pipe(_e(250),m(()=>"smooth")));i.pipe(b(({prev:p})=>p.length>0),We(o.pipe(be(se))),ee(s)).subscribe(([[{prev:p}],c])=>{let[l]=p[p.length-1];if(l.offsetHeight){let f=cr(l);if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:h}=ce(f);f.scrollTo({top:u-h/2,behavior:c})}}})}return G("navigation.tracking")&&t.pipe(U(a),Z("offset"),_e(250),Ce(1),U(n.pipe(Ce(1))),st({delay:250}),ee(i)).subscribe(([,{prev:s}])=>{let p=xe(),c=s[s.length-1];if(c&&c.length){let[l]=c,{hash:f}=new URL(l.href);p.hash!==f&&(p.hash=f,history.replaceState({},"",`${p}`))}else p.hash="",history.replaceState({},"",`${p}`)}),ls(e,{viewport$:t,header$:r}).pipe(y(s=>i.next(s)),L(()=>i.complete()),m(s=>R({ref:e},s)))})}function ms(e,{viewport$:t,main$:r,target$:o}){let n=t.pipe(m(({offset:{y:a}})=>a),Ye(2,1),m(([a,s])=>a>s&&s>0),K()),i=r.pipe(m(({active:a})=>a));return z([i,n]).pipe(m(([a,s])=>!(a&&s)),K(),U(o.pipe(Ce(1))),ne(!0),st({delay:250}),m(a=>({hidden:a})))}function gi(e,{viewport$:t,header$:r,main$:o,target$:n}){let i=new g,a=i.pipe(X(),ne(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(U(a),Z("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),d(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),ms(e,{viewport$:t,main$:o,target$:n}).pipe(y(s=>i.next(s)),L(()=>i.complete()),m(s=>R({ref:e},s)))}function xi({document$:e,viewport$:t}){e.pipe(v(()=>$(".md-ellipsis")),oe(r=>tt(r).pipe(U(e.pipe(Ce(1))),b(o=>o),m(()=>r),we(1))),b(r=>r.offsetWidth<r.scrollWidth),oe(r=>{let o=r.innerText,n=r.closest("a")||r;return n.title=o,lt(n,{viewport$:t}).pipe(U(e.pipe(Ce(1))),L(()=>n.removeAttribute("title")))})).subscribe(),e.pipe(v(()=>$(".md-status")),oe(r=>lt(r,{viewport$:t}))).subscribe()}function yi({document$:e,tablet$:t}){e.pipe(v(()=>$(".md-toggle--indeterminate")),y(r=>{r.indeterminate=!0,r.checked=!1}),oe(r=>d(r,"change").pipe(Dr(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ee(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function fs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ei({document$:e}){e.pipe(v(()=>$("[data-md-scrollfix]")),y(t=>t.removeAttribute("data-md-scrollfix")),b(fs),oe(t=>d(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function wi({viewport$:e,tablet$:t}){z([Ve("search"),t]).pipe(m(([r,o])=>r&&!o),v(r=>I(r).pipe(Ge(r?400:100))),ee(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));function us(){return location.protocol==="file:"?wt(`${new URL("search/search_index.js",Xr.base)}`).pipe(m(()=>__index),B(1)):Ne(new URL("search/search_index.json",Xr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var ot=Yo(),jt=nn(),Ot=cn(jt),Zr=on(),Oe=bn(),hr=$t("(min-width: 960px)"),Si=$t("(min-width: 1220px)"),Oi=pn(),Xr=Te(),Mi=document.forms.namedItem("search")?us():Ke,eo=new g;Bn({alert$:eo});var to=new g;G("navigation.instant")&&Zn({location$:jt,viewport$:Oe,progress$:to}).subscribe(ot);var Ti;((Ti=Xr.version)==null?void 0:Ti.provider)==="mike"&&ii({document$:ot});S(jt,Ot).pipe(Ge(125)).subscribe(()=>{Je("drawer",!1),Je("search",!1)});Zr.pipe(b(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=fe("link[rel=prev]");typeof t!="undefined"&&pt(t);break;case"n":case".":let r=fe("link[rel=next]");typeof r!="undefined"&&pt(r);break;case"Enter":let o=Re();o instanceof HTMLLabelElement&&o.click()}});xi({viewport$:Oe,document$:ot});yi({document$:ot,tablet$:hr});Ei({document$:ot});wi({viewport$:Oe,tablet$:hr});var rt=Nn(Se("header"),{viewport$:Oe}),Ft=ot.pipe(m(()=>Se("main")),v(e=>Qn(e,{viewport$:Oe,header$:rt})),B(1)),ds=S(...ae("consent").map(e=>xn(e,{target$:Ot})),...ae("dialog").map(e=>Dn(e,{alert$:eo})),...ae("header").map(e=>zn(e,{viewport$:Oe,header$:rt,main$:Ft})),...ae("palette").map(e=>Kn(e)),...ae("progress").map(e=>Yn(e,{progress$:to})),...ae("search").map(e=>li(e,{index$:Mi,keyboard$:Zr})),...ae("source").map(e=>hi(e))),hs=C(()=>S(...ae("announce").map(e=>gn(e)),...ae("content").map(e=>Un(e,{viewport$:Oe,target$:Ot,print$:Oi})),...ae("content").map(e=>G("search.highlight")?mi(e,{index$:Mi,location$:jt}):M),...ae("header-title").map(e=>qn(e,{viewport$:Oe,header$:rt})),...ae("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Nr(Si,()=>Jr(e,{viewport$:Oe,header$:rt,main$:Ft})):Nr(hr,()=>Jr(e,{viewport$:Oe,header$:rt,main$:Ft}))),...ae("tabs").map(e=>bi(e,{viewport$:Oe,header$:rt})),...ae("toc").map(e=>vi(e,{viewport$:Oe,header$:rt,main$:Ft,target$:Ot})),...ae("top").map(e=>gi(e,{viewport$:Oe,header$:rt,main$:Ft,target$:Ot})))),Li=ot.pipe(v(()=>hs),Pe(ds),B(1));Li.subscribe();window.document$=ot;window.location$=jt;window.target$=Ot;window.keyboard$=Zr;window.viewport$=Oe;window.tablet$=hr;window.screen$=Si;window.print$=Oi;window.alert$=eo;window.progress$=to;window.component$=Li;})();
+//# sourceMappingURL=bundle.dd8806f2.min.js.map
+
diff --git a/content/references/java-chassis/zh_CN/assets/javascripts/bundle.dd8806f2.min.js.map b/content/references/java-chassis/zh_CN/assets/javascripts/bundle.dd8806f2.min.js.map
new file mode 100644
index 0000000..17bf025
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/assets/javascripts/bundle.dd8806f2.min.js.map
@@ -0,0 +1,7 @@
+{
+  "version": 3,
+  "sources": ["node_modules/focus-visible/dist/focus-visible.js", "node_modules/clipboard/dist/clipboard.js", "node_modules/escape-html/index.js", "src/templates/assets/javascripts/bundle.ts", "node_modules/rxjs/node_modules/tslib/tslib.es6.js", "node_modules/rxjs/src/internal/util/isFunction.ts", "node_modules/rxjs/src/internal/util/createErrorClass.ts", "node_modules/rxjs/src/internal/util/UnsubscriptionError.ts", "node_modules/rxjs/src/internal/util/arrRemove.ts", "node_modules/rxjs/src/internal/Subscription.ts", "node_modules/rxjs/src/internal/config.ts", "node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts", "node_modules/rxjs/src/internal/util/reportUnhandledError.ts", "node_modules/rxjs/src/internal/util/noop.ts", "node_modules/rxjs/src/internal/NotificationFactories.ts", "node_modules/rxjs/src/internal/util/errorContext.ts", "node_modules/rxjs/src/internal/Subscriber.ts", "node_modules/rxjs/src/internal/symbol/observable.ts", "node_modules/rxjs/src/internal/util/identity.ts", "node_modules/rxjs/src/internal/util/pipe.ts", "node_modules/rxjs/src/internal/Observable.ts", "node_modules/rxjs/src/internal/util/lift.ts", "node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts", "node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts", "node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts", "node_modules/rxjs/src/internal/Subject.ts", "node_modules/rxjs/src/internal/BehaviorSubject.ts", "node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts", "node_modules/rxjs/src/internal/ReplaySubject.ts", "node_modules/rxjs/src/internal/scheduler/Action.ts", "node_modules/rxjs/src/internal/scheduler/intervalProvider.ts", "node_modules/rxjs/src/internal/scheduler/AsyncAction.ts", "node_modules/rxjs/src/internal/Scheduler.ts", "node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts", "node_modules/rxjs/src/internal/scheduler/async.ts", "node_modules/rxjs/src/internal/scheduler/QueueAction.ts", "node_modules/rxjs/src/internal/scheduler/QueueScheduler.ts", "node_modules/rxjs/src/internal/scheduler/queue.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts", "node_modules/rxjs/src/internal/scheduler/animationFrame.ts", "node_modules/rxjs/src/internal/observable/empty.ts", "node_modules/rxjs/src/internal/util/isScheduler.ts", "node_modules/rxjs/src/internal/util/args.ts", "node_modules/rxjs/src/internal/util/isArrayLike.ts", "node_modules/rxjs/src/internal/util/isPromise.ts", "node_modules/rxjs/src/internal/util/isInteropObservable.ts", "node_modules/rxjs/src/internal/util/isAsyncIterable.ts", "node_modules/rxjs/src/internal/util/throwUnobservableError.ts", "node_modules/rxjs/src/internal/symbol/iterator.ts", "node_modules/rxjs/src/internal/util/isIterable.ts", "node_modules/rxjs/src/internal/util/isReadableStreamLike.ts", "node_modules/rxjs/src/internal/observable/innerFrom.ts", "node_modules/rxjs/src/internal/util/executeSchedule.ts", "node_modules/rxjs/src/internal/operators/observeOn.ts", "node_modules/rxjs/src/internal/operators/subscribeOn.ts", "node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts", "node_modules/rxjs/src/internal/scheduled/schedulePromise.ts", "node_modules/rxjs/src/internal/scheduled/scheduleArray.ts", "node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduled.ts", "node_modules/rxjs/src/internal/observable/from.ts", "node_modules/rxjs/src/internal/observable/of.ts", "node_modules/rxjs/src/internal/observable/throwError.ts", "node_modules/rxjs/src/internal/util/EmptyError.ts", "node_modules/rxjs/src/internal/util/isDate.ts", "node_modules/rxjs/src/internal/operators/map.ts", "node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts", "node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts", "node_modules/rxjs/src/internal/util/createObject.ts", "node_modules/rxjs/src/internal/observable/combineLatest.ts", "node_modules/rxjs/src/internal/operators/mergeInternals.ts", "node_modules/rxjs/src/internal/operators/mergeMap.ts", "node_modules/rxjs/src/internal/operators/mergeAll.ts", "node_modules/rxjs/src/internal/operators/concatAll.ts", "node_modules/rxjs/src/internal/observable/concat.ts", "node_modules/rxjs/src/internal/observable/defer.ts", "node_modules/rxjs/src/internal/observable/fromEvent.ts", "node_modules/rxjs/src/internal/observable/fromEventPattern.ts", "node_modules/rxjs/src/internal/observable/timer.ts", "node_modules/rxjs/src/internal/observable/merge.ts", "node_modules/rxjs/src/internal/observable/never.ts", "node_modules/rxjs/src/internal/util/argsOrArgArray.ts", "node_modules/rxjs/src/internal/operators/filter.ts", "node_modules/rxjs/src/internal/observable/zip.ts", "node_modules/rxjs/src/internal/operators/audit.ts", "node_modules/rxjs/src/internal/operators/auditTime.ts", "node_modules/rxjs/src/internal/operators/bufferCount.ts", "node_modules/rxjs/src/internal/operators/catchError.ts", "node_modules/rxjs/src/internal/operators/scanInternals.ts", "node_modules/rxjs/src/internal/operators/combineLatest.ts", "node_modules/rxjs/src/internal/operators/combineLatestWith.ts", "node_modules/rxjs/src/internal/operators/debounce.ts", "node_modules/rxjs/src/internal/operators/debounceTime.ts", "node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts", "node_modules/rxjs/src/internal/operators/take.ts", "node_modules/rxjs/src/internal/operators/ignoreElements.ts", "node_modules/rxjs/src/internal/operators/mapTo.ts", "node_modules/rxjs/src/internal/operators/delayWhen.ts", "node_modules/rxjs/src/internal/operators/delay.ts", "node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts", "node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts", "node_modules/rxjs/src/internal/operators/throwIfEmpty.ts", "node_modules/rxjs/src/internal/operators/endWith.ts", "node_modules/rxjs/src/internal/operators/finalize.ts", "node_modules/rxjs/src/internal/operators/first.ts", "node_modules/rxjs/src/internal/operators/takeLast.ts", "node_modules/rxjs/src/internal/operators/merge.ts", "node_modules/rxjs/src/internal/operators/mergeWith.ts", "node_modules/rxjs/src/internal/operators/repeat.ts", "node_modules/rxjs/src/internal/operators/scan.ts", "node_modules/rxjs/src/internal/operators/share.ts", "node_modules/rxjs/src/internal/operators/shareReplay.ts", "node_modules/rxjs/src/internal/operators/skip.ts", "node_modules/rxjs/src/internal/operators/skipUntil.ts", "node_modules/rxjs/src/internal/operators/startWith.ts", "node_modules/rxjs/src/internal/operators/switchMap.ts", "node_modules/rxjs/src/internal/operators/takeUntil.ts", "node_modules/rxjs/src/internal/operators/takeWhile.ts", "node_modules/rxjs/src/internal/operators/tap.ts", "node_modules/rxjs/src/internal/operators/throttle.ts", "node_modules/rxjs/src/internal/operators/throttleTime.ts", "node_modules/rxjs/src/internal/operators/withLatestFrom.ts", "node_modules/rxjs/src/internal/operators/zip.ts", "node_modules/rxjs/src/internal/operators/zipWith.ts", "src/templates/assets/javascripts/browser/document/index.ts", "src/templates/assets/javascripts/browser/element/_/index.ts", "src/templates/assets/javascripts/browser/element/focus/index.ts", "src/templates/assets/javascripts/browser/element/hover/index.ts", "src/templates/assets/javascripts/utilities/h/index.ts", "src/templates/assets/javascripts/utilities/round/index.ts", "src/templates/assets/javascripts/browser/script/index.ts", "src/templates/assets/javascripts/browser/element/size/_/index.ts", "src/templates/assets/javascripts/browser/element/size/content/index.ts", "src/templates/assets/javascripts/browser/element/offset/_/index.ts", "src/templates/assets/javascripts/browser/element/offset/content/index.ts", "src/templates/assets/javascripts/browser/element/visibility/index.ts", "src/templates/assets/javascripts/browser/toggle/index.ts", "src/templates/assets/javascripts/browser/keyboard/index.ts", "src/templates/assets/javascripts/browser/location/_/index.ts", "src/templates/assets/javascripts/browser/location/hash/index.ts", "src/templates/assets/javascripts/browser/media/index.ts", "src/templates/assets/javascripts/browser/request/index.ts", "src/templates/assets/javascripts/browser/viewport/offset/index.ts", "src/templates/assets/javascripts/browser/viewport/size/index.ts", "src/templates/assets/javascripts/browser/viewport/_/index.ts", "src/templates/assets/javascripts/browser/viewport/at/index.ts", "src/templates/assets/javascripts/browser/worker/index.ts", "src/templates/assets/javascripts/_/index.ts", "src/templates/assets/javascripts/components/_/index.ts", "src/templates/assets/javascripts/components/announce/index.ts", "src/templates/assets/javascripts/components/consent/index.ts", "src/templates/assets/javascripts/templates/tooltip/index.tsx", "src/templates/assets/javascripts/templates/annotation/index.tsx", "src/templates/assets/javascripts/templates/clipboard/index.tsx", "src/templates/assets/javascripts/templates/search/index.tsx", "src/templates/assets/javascripts/templates/source/index.tsx", "src/templates/assets/javascripts/templates/tabbed/index.tsx", "src/templates/assets/javascripts/templates/table/index.tsx", "src/templates/assets/javascripts/templates/version/index.tsx", "src/templates/assets/javascripts/components/tooltip2/index.ts", "src/templates/assets/javascripts/components/content/annotation/_/index.ts", "src/templates/assets/javascripts/components/content/annotation/list/index.ts", "src/templates/assets/javascripts/components/content/annotation/block/index.ts", "src/templates/assets/javascripts/components/content/code/_/index.ts", "src/templates/assets/javascripts/components/content/details/index.ts", "src/templates/assets/javascripts/components/content/mermaid/index.css", "src/templates/assets/javascripts/components/content/mermaid/index.ts", "src/templates/assets/javascripts/components/content/table/index.ts", "src/templates/assets/javascripts/components/content/tabs/index.ts", "src/templates/assets/javascripts/components/content/_/index.ts", "src/templates/assets/javascripts/components/dialog/index.ts", "src/templates/assets/javascripts/components/tooltip/index.ts", "src/templates/assets/javascripts/components/header/_/index.ts", "src/templates/assets/javascripts/components/header/title/index.ts", "src/templates/assets/javascripts/components/main/index.ts", "src/templates/assets/javascripts/components/palette/index.ts", "src/templates/assets/javascripts/components/progress/index.ts", "src/templates/assets/javascripts/integrations/clipboard/index.ts", "src/templates/assets/javascripts/integrations/sitemap/index.ts", "src/templates/assets/javascripts/integrations/instant/index.ts", "src/templates/assets/javascripts/integrations/search/highlighter/index.ts", "src/templates/assets/javascripts/integrations/search/worker/message/index.ts", "src/templates/assets/javascripts/integrations/search/worker/_/index.ts", "src/templates/assets/javascripts/integrations/version/index.ts", "src/templates/assets/javascripts/components/search/query/index.ts", "src/templates/assets/javascripts/components/search/result/index.ts", "src/templates/assets/javascripts/components/search/share/index.ts", "src/templates/assets/javascripts/components/search/suggest/index.ts", "src/templates/assets/javascripts/components/search/_/index.ts", "src/templates/assets/javascripts/components/search/highlight/index.ts", "src/templates/assets/javascripts/components/sidebar/index.ts", "src/templates/assets/javascripts/components/source/facts/github/index.ts", "src/templates/assets/javascripts/components/source/facts/gitlab/index.ts", "src/templates/assets/javascripts/components/source/facts/_/index.ts", "src/templates/assets/javascripts/components/source/_/index.ts", "src/templates/assets/javascripts/components/tabs/index.ts", "src/templates/assets/javascripts/components/toc/index.ts", "src/templates/assets/javascripts/components/top/index.ts", "src/templates/assets/javascripts/patches/ellipsis/index.ts", "src/templates/assets/javascripts/patches/indeterminate/index.ts", "src/templates/assets/javascripts/patches/scrollfix/index.ts", "src/templates/assets/javascripts/patches/scrolllock/index.ts", "src/templates/assets/javascripts/polyfills/index.ts"],
+  "sourcesContent": ["(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  (factory());\n}(this, (function () { 'use strict';\n\n  /**\n   * Applies the :focus-visible polyfill at the given scope.\n   * A scope in this case is either the top-level Document or a Shadow Root.\n   *\n   * @param {(Document|ShadowRoot)} scope\n   * @see https://github.com/WICG/focus-visible\n   */\n  function applyFocusVisiblePolyfill(scope) {\n    var hadKeyboardEvent = true;\n    var hadFocusVisibleRecently = false;\n    var hadFocusVisibleRecentlyTimeout = null;\n\n    var inputTypesAllowlist = {\n      text: true,\n      search: true,\n      url: true,\n      tel: true,\n      email: true,\n      password: true,\n      number: true,\n      date: true,\n      month: true,\n      week: true,\n      time: true,\n      datetime: true,\n      'datetime-local': true\n    };\n\n    /**\n     * Helper function for legacy browsers and iframes which sometimes focus\n     * elements like document, body, and non-interactive SVG.\n     * @param {Element} el\n     */\n    function isValidFocusTarget(el) {\n      if (\n        el &&\n        el !== document &&\n        el.nodeName !== 'HTML' &&\n        el.nodeName !== 'BODY' &&\n        'classList' in el &&\n        'contains' in el.classList\n      ) {\n        return true;\n      }\n      return false;\n    }\n\n    /**\n     * Computes whether the given element should automatically trigger the\n     * `focus-visible` class being added, i.e. whether it should always match\n     * `:focus-visible` when focused.\n     * @param {Element} el\n     * @return {boolean}\n     */\n    function focusTriggersKeyboardModality(el) {\n      var type = el.type;\n      var tagName = el.tagName;\n\n      if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {\n        return true;\n      }\n\n      if (tagName === 'TEXTAREA' && !el.readOnly) {\n        return true;\n      }\n\n      if (el.isContentEditable) {\n        return true;\n      }\n\n      return false;\n    }\n\n    /**\n     * Add the `focus-visible` class to the given element if it was not added by\n     * the author.\n     * @param {Element} el\n     */\n    function addFocusVisibleClass(el) {\n      if (el.classList.contains('focus-visible')) {\n        return;\n      }\n      el.classList.add('focus-visible');\n      el.setAttribute('data-focus-visible-added', '');\n    }\n\n    /**\n     * Remove the `focus-visible` class from the given element if it was not\n     * originally added by the author.\n     * @param {Element} el\n     */\n    function removeFocusVisibleClass(el) {\n      if (!el.hasAttribute('data-focus-visible-added')) {\n        return;\n      }\n      el.classList.remove('focus-visible');\n      el.removeAttribute('data-focus-visible-added');\n    }\n\n    /**\n     * If the most recent user interaction was via the keyboard;\n     * and the key press did not include a meta, alt/option, or control key;\n     * then the modality is keyboard. Otherwise, the modality is not keyboard.\n     * Apply `focus-visible` to any current active element and keep track\n     * of our keyboard modality state with `hadKeyboardEvent`.\n     * @param {KeyboardEvent} e\n     */\n    function onKeyDown(e) {\n      if (e.metaKey || e.altKey || e.ctrlKey) {\n        return;\n      }\n\n      if (isValidFocusTarget(scope.activeElement)) {\n        addFocusVisibleClass(scope.activeElement);\n      }\n\n      hadKeyboardEvent = true;\n    }\n\n    /**\n     * If at any point a user clicks with a pointing device, ensure that we change\n     * the modality away from keyboard.\n     * This avoids the situation where a user presses a key on an already focused\n     * element, and then clicks on a different element, focusing it with a\n     * pointing device, while we still think we're in keyboard modality.\n     * @param {Event} e\n     */\n    function onPointerDown(e) {\n      hadKeyboardEvent = false;\n    }\n\n    /**\n     * On `focus`, add the `focus-visible` class to the target if:\n     * - the target received focus as a result of keyboard navigation, or\n     * - the event target is an element that will likely require interaction\n     *   via the keyboard (e.g. a text box)\n     * @param {Event} e\n     */\n    function onFocus(e) {\n      // Prevent IE from focusing the document or HTML element.\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {\n        addFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * On `blur`, remove the `focus-visible` class from the target.\n     * @param {Event} e\n     */\n    function onBlur(e) {\n      if (!isValidFocusTarget(e.target)) {\n        return;\n      }\n\n      if (\n        e.target.classList.contains('focus-visible') ||\n        e.target.hasAttribute('data-focus-visible-added')\n      ) {\n        // To detect a tab/window switch, we look for a blur event followed\n        // rapidly by a visibility change.\n        // If we don't see a visibility change within 100ms, it's probably a\n        // regular focus change.\n        hadFocusVisibleRecently = true;\n        window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n        hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {\n          hadFocusVisibleRecently = false;\n        }, 100);\n        removeFocusVisibleClass(e.target);\n      }\n    }\n\n    /**\n     * If the user changes tabs, keep track of whether or not the previously\n     * focused element had .focus-visible.\n     * @param {Event} e\n     */\n    function onVisibilityChange(e) {\n      if (document.visibilityState === 'hidden') {\n        // If the tab becomes active again, the browser will handle calling focus\n        // on the element (Safari actually calls it twice).\n        // If this tab change caused a blur on an element with focus-visible,\n        // re-apply the class when the user switches back to the tab.\n        if (hadFocusVisibleRecently) {\n          hadKeyboardEvent = true;\n        }\n        addInitialPointerMoveListeners();\n      }\n    }\n\n    /**\n     * Add a group of listeners to detect usage of any pointing devices.\n     * These listeners will be added when the polyfill first loads, and anytime\n     * the window is blurred, so that they are active when the window regains\n     * focus.\n     */\n    function addInitialPointerMoveListeners() {\n      document.addEventListener('mousemove', onInitialPointerMove);\n      document.addEventListener('mousedown', onInitialPointerMove);\n      document.addEventListener('mouseup', onInitialPointerMove);\n      document.addEventListener('pointermove', onInitialPointerMove);\n      document.addEventListener('pointerdown', onInitialPointerMove);\n      document.addEventListener('pointerup', onInitialPointerMove);\n      document.addEventListener('touchmove', onInitialPointerMove);\n      document.addEventListener('touchstart', onInitialPointerMove);\n      document.addEventListener('touchend', onInitialPointerMove);\n    }\n\n    function removeInitialPointerMoveListeners() {\n      document.removeEventListener('mousemove', onInitialPointerMove);\n      document.removeEventListener('mousedown', onInitialPointerMove);\n      document.removeEventListener('mouseup', onInitialPointerMove);\n      document.removeEventListener('pointermove', onInitialPointerMove);\n      document.removeEventListener('pointerdown', onInitialPointerMove);\n      document.removeEventListener('pointerup', onInitialPointerMove);\n      document.removeEventListener('touchmove', onInitialPointerMove);\n      document.removeEventListener('touchstart', onInitialPointerMove);\n      document.removeEventListener('touchend', onInitialPointerMove);\n    }\n\n    /**\n     * When the polfyill first loads, assume the user is in keyboard modality.\n     * If any event is received from a pointing device (e.g. mouse, pointer,\n     * touch), turn off keyboard modality.\n     * This accounts for situations where focus enters the page from the URL bar.\n     * @param {Event} e\n     */\n    function onInitialPointerMove(e) {\n      // Work around a Safari quirk that fires a mousemove on <html> whenever the\n      // window blurs, even if you're tabbing out of the page. \u00AF\\_(\u30C4)_/\u00AF\n      if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {\n        return;\n      }\n\n      hadKeyboardEvent = false;\n      removeInitialPointerMoveListeners();\n    }\n\n    // For some kinds of state, we are interested in changes at the global scope\n    // only. For example, global pointer input, global key presses and global\n    // visibility change should affect the state at every scope:\n    document.addEventListener('keydown', onKeyDown, true);\n    document.addEventListener('mousedown', onPointerDown, true);\n    document.addEventListener('pointerdown', onPointerDown, true);\n    document.addEventListener('touchstart', onPointerDown, true);\n    document.addEventListener('visibilitychange', onVisibilityChange, true);\n\n    addInitialPointerMoveListeners();\n\n    // For focus and blur, we specifically care about state changes in the local\n    // scope. This is because focus / blur events that originate from within a\n    // shadow root are not re-dispatched from the host element if it was already\n    // the active element in its own scope:\n    scope.addEventListener('focus', onFocus, true);\n    scope.addEventListener('blur', onBlur, true);\n\n    // We detect that a node is a ShadowRoot by ensuring that it is a\n    // DocumentFragment and also has a host property. This check covers native\n    // implementation and polyfill implementation transparently. If we only cared\n    // about the native implementation, we could just check if the scope was\n    // an instance of a ShadowRoot.\n    if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {\n      // Since a ShadowRoot is a special kind of DocumentFragment, it does not\n      // have a root element to add a class to. So, we add this attribute to the\n      // host element instead:\n      scope.host.setAttribute('data-js-focus-visible', '');\n    } else if (scope.nodeType === Node.DOCUMENT_NODE) {\n      document.documentElement.classList.add('js-focus-visible');\n      document.documentElement.setAttribute('data-js-focus-visible', '');\n    }\n  }\n\n  // It is important to wrap all references to global window and document in\n  // these checks to support server-side rendering use cases\n  // @see https://github.com/WICG/focus-visible/issues/199\n  if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n    // Make the polyfill helper globally available. This can be used as a signal\n    // to interested libraries that wish to coordinate with the polyfill for e.g.,\n    // applying the polyfill to a shadow root:\n    window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;\n\n    // Notify interested libraries of the polyfill's presence, in case the\n    // polyfill was loaded lazily:\n    var event;\n\n    try {\n      event = new CustomEvent('focus-visible-polyfill-ready');\n    } catch (error) {\n      // IE11 does not support using CustomEvent as a constructor directly:\n      event = document.createEvent('CustomEvent');\n      event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});\n    }\n\n    window.dispatchEvent(event);\n  }\n\n  if (typeof document !== 'undefined') {\n    // Apply the polyfill to the global document, so that no JavaScript\n    // coordination is required to use the polyfill in the top-level document:\n    applyFocusVisiblePolyfill(document);\n  }\n\n})));\n", "/*!\n * clipboard.js v2.0.11\n * https://clipboardjs.com/\n *\n * Licensed MIT \u00A9 Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ClipboardJS\"] = factory();\n\telse\n\t\troot[\"ClipboardJS\"] = factory();\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 686:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n  \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __webpack_require__(279);\nvar tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __webpack_require__(370);\nvar listen_default = /*#__PURE__*/__webpack_require__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __webpack_require__(817);\nvar select_default = /*#__PURE__*/__webpack_require__.n(src_select);\n;// CONCATENATED MODULE: ./src/common/command.js\n/**\n * Executes a given operation type.\n * @param {String} type\n * @return {Boolean}\n */\nfunction command(type) {\n  try {\n    return document.execCommand(type);\n  } catch (err) {\n    return false;\n  }\n}\n;// CONCATENATED MODULE: ./src/actions/cut.js\n\n\n/**\n * Cut action wrapper.\n * @param {String|HTMLElement} target\n * @return {String}\n */\n\nvar ClipboardActionCut = function ClipboardActionCut(target) {\n  var selectedText = select_default()(target);\n  command('cut');\n  return selectedText;\n};\n\n/* harmony default export */ var actions_cut = (ClipboardActionCut);\n;// CONCATENATED MODULE: ./src/common/create-fake-element.js\n/**\n * Creates a fake textarea element with a value.\n * @param {String} value\n * @return {HTMLElement}\n */\nfunction createFakeElement(value) {\n  var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n  var fakeElement = document.createElement('textarea'); // Prevent zooming on iOS\n\n  fakeElement.style.fontSize = '12pt'; // Reset box model\n\n  fakeElement.style.border = '0';\n  fakeElement.style.padding = '0';\n  fakeElement.style.margin = '0'; // Move element out of screen horizontally\n\n  fakeElement.style.position = 'absolute';\n  fakeElement.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n  var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n  fakeElement.style.top = \"\".concat(yPosition, \"px\");\n  fakeElement.setAttribute('readonly', '');\n  fakeElement.value = value;\n  return fakeElement;\n}\n;// CONCATENATED MODULE: ./src/actions/copy.js\n\n\n\n/**\n * Create fake copy action wrapper using a fake element.\n * @param {String} target\n * @param {Object} options\n * @return {String}\n */\n\nvar fakeCopyAction = function fakeCopyAction(value, options) {\n  var fakeElement = createFakeElement(value);\n  options.container.appendChild(fakeElement);\n  var selectedText = select_default()(fakeElement);\n  command('copy');\n  fakeElement.remove();\n  return selectedText;\n};\n/**\n * Copy action wrapper.\n * @param {String|HTMLElement} target\n * @param {Object} options\n * @return {String}\n */\n\n\nvar ClipboardActionCopy = function ClipboardActionCopy(target) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    container: document.body\n  };\n  var selectedText = '';\n\n  if (typeof target === 'string') {\n    selectedText = fakeCopyAction(target, options);\n  } else if (target instanceof HTMLInputElement && !['text', 'search', 'url', 'tel', 'password'].includes(target === null || target === void 0 ? void 0 : target.type)) {\n    // If input type doesn't support `setSelectionRange`. Simulate it. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n    selectedText = fakeCopyAction(target.value, options);\n  } else {\n    selectedText = select_default()(target);\n    command('copy');\n  }\n\n  return selectedText;\n};\n\n/* harmony default export */ var actions_copy = (ClipboardActionCopy);\n;// CONCATENATED MODULE: ./src/actions/default.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/**\n * Inner function which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n * @param {Object} options\n */\n\nvar ClipboardActionDefault = function ClipboardActionDefault() {\n  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  // Defines base properties passed from constructor.\n  var _options$action = options.action,\n      action = _options$action === void 0 ? 'copy' : _options$action,\n      container = options.container,\n      target = options.target,\n      text = options.text; // Sets the `action` to be performed which can be either 'copy' or 'cut'.\n\n  if (action !== 'copy' && action !== 'cut') {\n    throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n  } // Sets the `target` property using an element that will be have its content copied.\n\n\n  if (target !== undefined) {\n    if (target && _typeof(target) === 'object' && target.nodeType === 1) {\n      if (action === 'copy' && target.hasAttribute('disabled')) {\n        throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n      }\n\n      if (action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n        throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n      }\n    } else {\n      throw new Error('Invalid \"target\" value, use a valid Element');\n    }\n  } // Define selection strategy based on `text` property.\n\n\n  if (text) {\n    return actions_copy(text, {\n      container: container\n    });\n  } // Defines which selection strategy based on `target` property.\n\n\n  if (target) {\n    return action === 'cut' ? actions_cut(target) : actions_copy(target, {\n      container: container\n    });\n  }\n};\n\n/* harmony default export */ var actions_default = (ClipboardActionDefault);\n;// CONCATENATED MODULE: ./src/clipboard.js\nfunction clipboard_typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { clipboard_typeof = function _typeof(obj) { return typeof obj; }; } else { clipboard_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return clipboard_typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (clipboard_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n/**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\nfunction getAttributeValue(suffix, element) {\n  var attribute = \"data-clipboard-\".concat(suffix);\n\n  if (!element.hasAttribute(attribute)) {\n    return;\n  }\n\n  return element.getAttribute(attribute);\n}\n/**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\nvar Clipboard = /*#__PURE__*/function (_Emitter) {\n  _inherits(Clipboard, _Emitter);\n\n  var _super = _createSuper(Clipboard);\n\n  /**\n   * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n   * @param {Object} options\n   */\n  function Clipboard(trigger, options) {\n    var _this;\n\n    _classCallCheck(this, Clipboard);\n\n    _this = _super.call(this);\n\n    _this.resolveOptions(options);\n\n    _this.listenClick(trigger);\n\n    return _this;\n  }\n  /**\n   * Defines if attributes would be resolved using internal setter functions\n   * or custom functions that were passed in the constructor.\n   * @param {Object} options\n   */\n\n\n  _createClass(Clipboard, [{\n    key: \"resolveOptions\",\n    value: function resolveOptions() {\n      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n      this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n      this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n      this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n    }\n    /**\n     * Adds a click event listener to the passed trigger.\n     * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n     */\n\n  }, {\n    key: \"listenClick\",\n    value: function listenClick(trigger) {\n      var _this2 = this;\n\n      this.listener = listen_default()(trigger, 'click', function (e) {\n        return _this2.onClick(e);\n      });\n    }\n    /**\n     * Defines a new `ClipboardAction` on each click event.\n     * @param {Event} e\n     */\n\n  }, {\n    key: \"onClick\",\n    value: function onClick(e) {\n      var trigger = e.delegateTarget || e.currentTarget;\n      var action = this.action(trigger) || 'copy';\n      var text = actions_default({\n        action: action,\n        container: this.container,\n        target: this.target(trigger),\n        text: this.text(trigger)\n      }); // Fires an event based on the copy operation result.\n\n      this.emit(text ? 'success' : 'error', {\n        action: action,\n        text: text,\n        trigger: trigger,\n        clearSelection: function clearSelection() {\n          if (trigger) {\n            trigger.focus();\n          }\n\n          window.getSelection().removeAllRanges();\n        }\n      });\n    }\n    /**\n     * Default `action` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultAction\",\n    value: function defaultAction(trigger) {\n      return getAttributeValue('action', trigger);\n    }\n    /**\n     * Default `target` lookup function.\n     * @param {Element} trigger\n     */\n\n  }, {\n    key: \"defaultTarget\",\n    value: function defaultTarget(trigger) {\n      var selector = getAttributeValue('target', trigger);\n\n      if (selector) {\n        return document.querySelector(selector);\n      }\n    }\n    /**\n     * Allow fire programmatically a copy action\n     * @param {String|HTMLElement} target\n     * @param {Object} options\n     * @returns Text copied.\n     */\n\n  }, {\n    key: \"defaultText\",\n\n    /**\n     * Default `text` lookup function.\n     * @param {Element} trigger\n     */\n    value: function defaultText(trigger) {\n      return getAttributeValue('text', trigger);\n    }\n    /**\n     * Destroy lifecycle.\n     */\n\n  }, {\n    key: \"destroy\",\n    value: function destroy() {\n      this.listener.destroy();\n    }\n  }], [{\n    key: \"copy\",\n    value: function copy(target) {\n      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n        container: document.body\n      };\n      return actions_copy(target, options);\n    }\n    /**\n     * Allow fire programmatically a cut action\n     * @param {String|HTMLElement} target\n     * @returns Text cutted.\n     */\n\n  }, {\n    key: \"cut\",\n    value: function cut(target) {\n      return actions_cut(target);\n    }\n    /**\n     * Returns the support of the given action, or all actions if no action is\n     * given.\n     * @param {String} [action]\n     */\n\n  }, {\n    key: \"isSupported\",\n    value: function isSupported() {\n      var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n      var actions = typeof action === 'string' ? [action] : action;\n      var support = !!document.queryCommandSupported;\n      actions.forEach(function (action) {\n        support = support && !!document.queryCommandSupported(action);\n      });\n      return support;\n    }\n  }]);\n\n  return Clipboard;\n}((tiny_emitter_default()));\n\n/* harmony default export */ var clipboard = (Clipboard);\n\n/***/ }),\n\n/***/ 828:\n/***/ (function(module) {\n\nvar DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n    var proto = Element.prototype;\n\n    proto.matches = proto.matchesSelector ||\n                    proto.mozMatchesSelector ||\n                    proto.msMatchesSelector ||\n                    proto.oMatchesSelector ||\n                    proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n    while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n        if (typeof element.matches === 'function' &&\n            element.matches(selector)) {\n          return element;\n        }\n        element = element.parentNode;\n    }\n}\n\nmodule.exports = closest;\n\n\n/***/ }),\n\n/***/ 438:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar closest = __webpack_require__(828);\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction _delegate(element, selector, type, callback, useCapture) {\n    var listenerFn = listener.apply(this, arguments);\n\n    element.addEventListener(type, listenerFn, useCapture);\n\n    return {\n        destroy: function() {\n            element.removeEventListener(type, listenerFn, useCapture);\n        }\n    }\n}\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(elements, selector, type, callback, useCapture) {\n    // Handle the regular Element usage\n    if (typeof elements.addEventListener === 'function') {\n        return _delegate.apply(null, arguments);\n    }\n\n    // Handle Element-less usage, it defaults to global delegation\n    if (typeof type === 'function') {\n        // Use `document` as the first parameter, then apply arguments\n        // This is a short way to .unshift `arguments` without running into deoptimizations\n        return _delegate.bind(null, document).apply(null, arguments);\n    }\n\n    // Handle Selector-based usage\n    if (typeof elements === 'string') {\n        elements = document.querySelectorAll(elements);\n    }\n\n    // Handle Array-like based usage\n    return Array.prototype.map.call(elements, function (element) {\n        return _delegate(element, selector, type, callback, useCapture);\n    });\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n    return function(e) {\n        e.delegateTarget = closest(e.target, selector);\n\n        if (e.delegateTarget) {\n            callback.call(element, e);\n        }\n    }\n}\n\nmodule.exports = delegate;\n\n\n/***/ }),\n\n/***/ 879:\n/***/ (function(__unused_webpack_module, exports) {\n\n/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n    return value !== undefined\n        && value instanceof HTMLElement\n        && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return value !== undefined\n        && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n        && ('length' in value)\n        && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n    return typeof value === 'string'\n        || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n    var type = Object.prototype.toString.call(value);\n\n    return type === '[object Function]';\n};\n\n\n/***/ }),\n\n/***/ 370:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar is = __webpack_require__(879);\nvar delegate = __webpack_require__(438);\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n    if (!target && !type && !callback) {\n        throw new Error('Missing required arguments');\n    }\n\n    if (!is.string(type)) {\n        throw new TypeError('Second argument must be a String');\n    }\n\n    if (!is.fn(callback)) {\n        throw new TypeError('Third argument must be a Function');\n    }\n\n    if (is.node(target)) {\n        return listenNode(target, type, callback);\n    }\n    else if (is.nodeList(target)) {\n        return listenNodeList(target, type, callback);\n    }\n    else if (is.string(target)) {\n        return listenSelector(target, type, callback);\n    }\n    else {\n        throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n    }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n    node.addEventListener(type, callback);\n\n    return {\n        destroy: function() {\n            node.removeEventListener(type, callback);\n        }\n    }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n    Array.prototype.forEach.call(nodeList, function(node) {\n        node.addEventListener(type, callback);\n    });\n\n    return {\n        destroy: function() {\n            Array.prototype.forEach.call(nodeList, function(node) {\n                node.removeEventListener(type, callback);\n            });\n        }\n    }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n    return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n\n\n/***/ }),\n\n/***/ 817:\n/***/ (function(module) {\n\nfunction select(element) {\n    var selectedText;\n\n    if (element.nodeName === 'SELECT') {\n        element.focus();\n\n        selectedText = element.value;\n    }\n    else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n        var isReadOnly = element.hasAttribute('readonly');\n\n        if (!isReadOnly) {\n            element.setAttribute('readonly', '');\n        }\n\n        element.select();\n        element.setSelectionRange(0, element.value.length);\n\n        if (!isReadOnly) {\n            element.removeAttribute('readonly');\n        }\n\n        selectedText = element.value;\n    }\n    else {\n        if (element.hasAttribute('contenteditable')) {\n            element.focus();\n        }\n\n        var selection = window.getSelection();\n        var range = document.createRange();\n\n        range.selectNodeContents(element);\n        selection.removeAllRanges();\n        selection.addRange(range);\n\n        selectedText = selection.toString();\n    }\n\n    return selectedText;\n}\n\nmodule.exports = select;\n\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module) {\n\nfunction E () {\n  // Keep this empty so it's easier to inherit from\n  // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n  on: function (name, callback, ctx) {\n    var e = this.e || (this.e = {});\n\n    (e[name] || (e[name] = [])).push({\n      fn: callback,\n      ctx: ctx\n    });\n\n    return this;\n  },\n\n  once: function (name, callback, ctx) {\n    var self = this;\n    function listener () {\n      self.off(name, listener);\n      callback.apply(ctx, arguments);\n    };\n\n    listener._ = callback\n    return this.on(name, listener, ctx);\n  },\n\n  emit: function (name) {\n    var data = [].slice.call(arguments, 1);\n    var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n    var i = 0;\n    var len = evtArr.length;\n\n    for (i; i < len; i++) {\n      evtArr[i].fn.apply(evtArr[i].ctx, data);\n    }\n\n    return this;\n  },\n\n  off: function (name, callback) {\n    var e = this.e || (this.e = {});\n    var evts = e[name];\n    var liveEvents = [];\n\n    if (evts && callback) {\n      for (var i = 0, len = evts.length; i < len; i++) {\n        if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n          liveEvents.push(evts[i]);\n      }\n    }\n\n    // Remove event from queue to prevent memory leak\n    // Suggested by https://github.com/lazd\n    // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n    (liveEvents.length)\n      ? e[name] = liveEvents\n      : delete e[name];\n\n    return this;\n  }\n};\n\nmodule.exports = E;\nmodule.exports.TinyEmitter = E;\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t!function() {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = function(module) {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\tfunction() { return module['default']; } :\n/******/ \t\t\t\tfunction() { return module; };\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(686);\n/******/ })()\n.default;\n});", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param  {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n  var str = '' + string;\n  var match = matchHtmlRegExp.exec(str);\n\n  if (!match) {\n    return str;\n  }\n\n  var escape;\n  var html = '';\n  var index = 0;\n  var lastIndex = 0;\n\n  for (index = match.index; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34: // \"\n        escape = '&quot;';\n        break;\n      case 38: // &\n        escape = '&amp;';\n        break;\n      case 39: // '\n        escape = '&#39;';\n        break;\n      case 60: // <\n        escape = '&lt;';\n        break;\n      case 62: // >\n        escape = '&gt;';\n        break;\n      default:\n        continue;\n    }\n\n    if (lastIndex !== index) {\n      html += str.substring(lastIndex, index);\n    }\n\n    lastIndex = index + 1;\n    html += escape;\n  }\n\n  return lastIndex !== index\n    ? html + str.substring(lastIndex, index)\n    : html;\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport \"focus-visible\"\n\nimport {\n  EMPTY,\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  delay,\n  filter,\n  map,\n  merge,\n  mergeWith,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\nimport { configuration, feature } from \"./_\"\nimport {\n  at,\n  getActiveElement,\n  getOptionalElement,\n  requestJSON,\n  setLocation,\n  setToggle,\n  watchDocument,\n  watchKeyboard,\n  watchLocation,\n  watchLocationTarget,\n  watchMedia,\n  watchPrint,\n  watchScript,\n  watchViewport\n} from \"./browser\"\nimport {\n  getComponentElement,\n  getComponentElements,\n  mountAnnounce,\n  mountBackToTop,\n  mountConsent,\n  mountContent,\n  mountDialog,\n  mountHeader,\n  mountHeaderTitle,\n  mountPalette,\n  mountProgress,\n  mountSearch,\n  mountSearchHiglight,\n  mountSidebar,\n  mountSource,\n  mountTableOfContents,\n  mountTabs,\n  watchHeader,\n  watchMain\n} from \"./components\"\nimport {\n  SearchIndex,\n  setupClipboardJS,\n  setupInstantNavigation,\n  setupVersionSelector\n} from \"./integrations\"\nimport {\n  patchEllipsis,\n  patchIndeterminate,\n  patchScrollfix,\n  patchScrolllock\n} from \"./patches\"\nimport \"./polyfills\"\n\n/* ----------------------------------------------------------------------------\n * Functions - @todo refactor\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch search index\n *\n * @returns Search index observable\n */\nfunction fetchSearchIndex(): Observable<SearchIndex> {\n  if (location.protocol === \"file:\") {\n    return watchScript(\n      `${new URL(\"search/search_index.js\", config.base)}`\n    )\n      .pipe(\n        // @ts-ignore - @todo fix typings\n        map(() => __index),\n        shareReplay(1)\n      )\n  } else {\n    return requestJSON<SearchIndex>(\n      new URL(\"search/search_index.json\", config.base)\n    )\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\n/* Yay, JavaScript is available */\ndocument.documentElement.classList.remove(\"no-js\")\ndocument.documentElement.classList.add(\"js\")\n\n/* Set up navigation observables and subjects */\nconst document$ = watchDocument()\nconst location$ = watchLocation()\nconst target$   = watchLocationTarget(location$)\nconst keyboard$ = watchKeyboard()\n\n/* Set up media observables */\nconst viewport$ = watchViewport()\nconst tablet$   = watchMedia(\"(min-width: 960px)\")\nconst screen$   = watchMedia(\"(min-width: 1220px)\")\nconst print$    = watchPrint()\n\n/* Retrieve search index, if search is enabled */\nconst config = configuration()\nconst index$ = document.forms.namedItem(\"search\")\n  ? fetchSearchIndex()\n  : NEVER\n\n/* Set up Clipboard.js integration */\nconst alert$ = new Subject<string>()\nsetupClipboardJS({ alert$ })\n\n/* Set up progress indicator */\nconst progress$ = new Subject<number>()\n\n/* Set up instant navigation, if enabled */\nif (feature(\"navigation.instant\"))\n  setupInstantNavigation({ location$, viewport$, progress$ })\n    .subscribe(document$)\n\n/* Set up version selector */\nif (config.version?.provider === \"mike\")\n  setupVersionSelector({ document$ })\n\n/* Always close drawer and search on navigation */\nmerge(location$, target$)\n  .pipe(\n    delay(125)\n  )\n    .subscribe(() => {\n      setToggle(\"drawer\", false)\n      setToggle(\"search\", false)\n    })\n\n/* Set up global keyboard handlers */\nkeyboard$\n  .pipe(\n    filter(({ mode }) => mode === \"global\")\n  )\n    .subscribe(key => {\n      switch (key.type) {\n\n        /* Go to previous page */\n        case \"p\":\n        case \",\":\n          const prev = getOptionalElement<HTMLLinkElement>(\"link[rel=prev]\")\n          if (typeof prev !== \"undefined\")\n            setLocation(prev)\n          break\n\n        /* Go to next page */\n        case \"n\":\n        case \".\":\n          const next = getOptionalElement<HTMLLinkElement>(\"link[rel=next]\")\n          if (typeof next !== \"undefined\")\n            setLocation(next)\n          break\n\n        /* Expand navigation, see https://bit.ly/3ZjG5io */\n        case \"Enter\":\n          const active = getActiveElement()\n          if (active instanceof HTMLLabelElement)\n            active.click()\n      }\n    })\n\n/* Set up patches */\npatchEllipsis({ viewport$, document$ })\npatchIndeterminate({ document$, tablet$ })\npatchScrollfix({ document$ })\npatchScrolllock({ viewport$, tablet$ })\n\n/* Set up header and main area observable */\nconst header$ = watchHeader(getComponentElement(\"header\"), { viewport$ })\nconst main$ = document$\n  .pipe(\n    map(() => getComponentElement(\"main\")),\n    switchMap(el => watchMain(el, { viewport$, header$ })),\n    shareReplay(1)\n  )\n\n/* Set up control component observables */\nconst control$ = merge(\n\n  /* Consent */\n  ...getComponentElements(\"consent\")\n    .map(el => mountConsent(el, { target$ })),\n\n  /* Dialog */\n  ...getComponentElements(\"dialog\")\n    .map(el => mountDialog(el, { alert$ })),\n\n  /* Header */\n  ...getComponentElements(\"header\")\n    .map(el => mountHeader(el, { viewport$, header$, main$ })),\n\n  /* Color palette */\n  ...getComponentElements(\"palette\")\n    .map(el => mountPalette(el)),\n\n  /* Progress bar */\n  ...getComponentElements(\"progress\")\n    .map(el => mountProgress(el, { progress$ })),\n\n  /* Search */\n  ...getComponentElements(\"search\")\n    .map(el => mountSearch(el, { index$, keyboard$ })),\n\n  /* Repository information */\n  ...getComponentElements(\"source\")\n    .map(el => mountSource(el))\n)\n\n/* Set up content component observables */\nconst content$ = defer(() => merge(\n\n  /* Announcement bar */\n  ...getComponentElements(\"announce\")\n    .map(el => mountAnnounce(el)),\n\n  /* Content */\n  ...getComponentElements(\"content\")\n    .map(el => mountContent(el, { viewport$, target$, print$ })),\n\n  /* Search highlighting */\n  ...getComponentElements(\"content\")\n    .map(el => feature(\"search.highlight\")\n      ? mountSearchHiglight(el, { index$, location$ })\n      : EMPTY\n    ),\n\n  /* Header title */\n  ...getComponentElements(\"header-title\")\n    .map(el => mountHeaderTitle(el, { viewport$, header$ })),\n\n  /* Sidebar */\n  ...getComponentElements(\"sidebar\")\n    .map(el => el.getAttribute(\"data-md-type\") === \"navigation\"\n      ? at(screen$, () => mountSidebar(el, { viewport$, header$, main$ }))\n      : at(tablet$, () => mountSidebar(el, { viewport$, header$, main$ }))\n    ),\n\n  /* Navigation tabs */\n  ...getComponentElements(\"tabs\")\n    .map(el => mountTabs(el, { viewport$, header$ })),\n\n  /* Table of contents */\n  ...getComponentElements(\"toc\")\n    .map(el => mountTableOfContents(el, {\n      viewport$, header$, main$, target$\n    })),\n\n  /* Back-to-top button */\n  ...getComponentElements(\"top\")\n    .map(el => mountBackToTop(el, { viewport$, header$, main$, target$ }))\n))\n\n/* Set up component observables */\nconst component$ = document$\n  .pipe(\n    switchMap(() => content$),\n    mergeWith(control$),\n    shareReplay(1)\n  )\n\n/* Subscribe to all components */\ncomponent$.subscribe()\n\n/* ----------------------------------------------------------------------------\n * Exports\n * ------------------------------------------------------------------------- */\n\nwindow.document$  = document$          /* Document observable */\nwindow.location$  = location$          /* Location subject */\nwindow.target$    = target$            /* Location target observable */\nwindow.keyboard$  = keyboard$          /* Keyboard observable */\nwindow.viewport$  = viewport$          /* Viewport observable */\nwindow.tablet$    = tablet$            /* Media tablet observable */\nwindow.screen$    = screen$            /* Media screen observable */\nwindow.print$     = print$             /* Media print observable */\nwindow.alert$     = alert$             /* Alert subject */\nwindow.progress$  = progress$          /* Progress indicator subject */\nwindow.component$ = component$         /* Component observable */\n", "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n    if (typeof b !== \"function\" && b !== null)\r\n        throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    }\r\n    return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n    if (m) return m.call(o);\r\n    if (o && typeof o.length === \"number\") return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n        if (ar || !(i in from)) {\r\n            if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n            ar[i] = from[i];\r\n        }\r\n    }\r\n    return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator], i;\r\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n    o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n    __setModuleDefault(result, mod);\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n    return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n    if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n    if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n    if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n    return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n", "/**\n * Returns true if the object is a function.\n * @param value The value to check\n */\nexport function isFunction(value: any): value is (...args: any[]) => any {\n  return typeof value === 'function';\n}\n", "/**\n * Used to create Error subclasses until the community moves away from ES5.\n *\n * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors\n * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123\n *\n * @param createImpl A factory function to create the actual constructor implementation. The returned\n * function should be a named function that calls `_super` internally.\n */\nexport function createErrorClass<T>(createImpl: (_super: any) => any): T {\n  const _super = (instance: any) => {\n    Error.call(instance);\n    instance.stack = new Error().stack;\n  };\n\n  const ctorFunc = createImpl(_super);\n  ctorFunc.prototype = Object.create(Error.prototype);\n  ctorFunc.prototype.constructor = ctorFunc;\n  return ctorFunc;\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface UnsubscriptionError extends Error {\n  readonly errors: any[];\n}\n\nexport interface UnsubscriptionErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (errors: any[]): UnsubscriptionError;\n}\n\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nexport const UnsubscriptionError: UnsubscriptionErrorCtor = createErrorClass(\n  (_super) =>\n    function UnsubscriptionErrorImpl(this: any, errors: (Error | string)[]) {\n      _super(this);\n      this.message = errors\n        ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n  ')}`\n        : '';\n      this.name = 'UnsubscriptionError';\n      this.errors = errors;\n    }\n);\n", "/**\n * Removes an item from an array, mutating it.\n * @param arr The array to remove the item from\n * @param item The item to remove\n */\nexport function arrRemove<T>(arr: T[] | undefined | null, item: T) {\n  if (arr) {\n    const index = arr.indexOf(item);\n    0 <= index && arr.splice(index, 1);\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { SubscriptionLike, TeardownLogic, Unsubscribable } from './types';\nimport { arrRemove } from './util/arrRemove';\n\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nexport class Subscription implements SubscriptionLike {\n  /** @nocollapse */\n  public static EMPTY = (() => {\n    const empty = new Subscription();\n    empty.closed = true;\n    return empty;\n  })();\n\n  /**\n   * A flag to indicate whether this Subscription has already been unsubscribed.\n   */\n  public closed = false;\n\n  private _parentage: Subscription[] | Subscription | null = null;\n\n  /**\n   * The list of registered finalizers to execute upon unsubscription. Adding and removing from this\n   * list occurs in the {@link #add} and {@link #remove} methods.\n   */\n  private _finalizers: Exclude<TeardownLogic, void>[] | null = null;\n\n  /**\n   * @param initialTeardown A function executed first as part of the finalization\n   * process that is kicked off when {@link #unsubscribe} is called.\n   */\n  constructor(private initialTeardown?: () => void) {}\n\n  /**\n   * Disposes the resources held by the subscription. May, for instance, cancel\n   * an ongoing Observable execution or cancel any other type of work that\n   * started when the Subscription was created.\n   * @return {void}\n   */\n  unsubscribe(): void {\n    let errors: any[] | undefined;\n\n    if (!this.closed) {\n      this.closed = true;\n\n      // Remove this from it's parents.\n      const { _parentage } = this;\n      if (_parentage) {\n        this._parentage = null;\n        if (Array.isArray(_parentage)) {\n          for (const parent of _parentage) {\n            parent.remove(this);\n          }\n        } else {\n          _parentage.remove(this);\n        }\n      }\n\n      const { initialTeardown: initialFinalizer } = this;\n      if (isFunction(initialFinalizer)) {\n        try {\n          initialFinalizer();\n        } catch (e) {\n          errors = e instanceof UnsubscriptionError ? e.errors : [e];\n        }\n      }\n\n      const { _finalizers } = this;\n      if (_finalizers) {\n        this._finalizers = null;\n        for (const finalizer of _finalizers) {\n          try {\n            execFinalizer(finalizer);\n          } catch (err) {\n            errors = errors ?? [];\n            if (err instanceof UnsubscriptionError) {\n              errors = [...errors, ...err.errors];\n            } else {\n              errors.push(err);\n            }\n          }\n        }\n      }\n\n      if (errors) {\n        throw new UnsubscriptionError(errors);\n      }\n    }\n  }\n\n  /**\n   * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called\n   * when this subscription is unsubscribed. If this subscription is already {@link #closed},\n   * because it has already been unsubscribed, then whatever finalizer is passed to it\n   * will automatically be executed (unless the finalizer itself is also a closed subscription).\n   *\n   * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed\n   * subscription to a any subscription will result in no operation. (A noop).\n   *\n   * Adding a subscription to itself, or adding `null` or `undefined` will not perform any\n   * operation at all. (A noop).\n   *\n   * `Subscription` instances that are added to this instance will automatically remove themselves\n   * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove\n   * will need to be removed manually with {@link #remove}\n   *\n   * @param teardown The finalization logic to add to this subscription.\n   */\n  add(teardown: TeardownLogic): void {\n    // Only add the finalizer if it's not undefined\n    // and don't add a subscription to itself.\n    if (teardown && teardown !== this) {\n      if (this.closed) {\n        // If this subscription is already closed,\n        // execute whatever finalizer is handed to it automatically.\n        execFinalizer(teardown);\n      } else {\n        if (teardown instanceof Subscription) {\n          // We don't add closed subscriptions, and we don't add the same subscription\n          // twice. Subscription unsubscribe is idempotent.\n          if (teardown.closed || teardown._hasParent(this)) {\n            return;\n          }\n          teardown._addParent(this);\n        }\n        (this._finalizers = this._finalizers ?? []).push(teardown);\n      }\n    }\n  }\n\n  /**\n   * Checks to see if a this subscription already has a particular parent.\n   * This will signal that this subscription has already been added to the parent in question.\n   * @param parent the parent to check for\n   */\n  private _hasParent(parent: Subscription) {\n    const { _parentage } = this;\n    return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n  }\n\n  /**\n   * Adds a parent to this subscription so it can be removed from the parent if it\n   * unsubscribes on it's own.\n   *\n   * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.\n   * @param parent The parent subscription to add\n   */\n  private _addParent(parent: Subscription) {\n    const { _parentage } = this;\n    this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n  }\n\n  /**\n   * Called on a child when it is removed via {@link #remove}.\n   * @param parent The parent to remove\n   */\n  private _removeParent(parent: Subscription) {\n    const { _parentage } = this;\n    if (_parentage === parent) {\n      this._parentage = null;\n    } else if (Array.isArray(_parentage)) {\n      arrRemove(_parentage, parent);\n    }\n  }\n\n  /**\n   * Removes a finalizer from this subscription that was previously added with the {@link #add} method.\n   *\n   * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves\n   * from every other `Subscription` they have been added to. This means that using the `remove` method\n   * is not a common thing and should be used thoughtfully.\n   *\n   * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance\n   * more than once, you will need to call `remove` the same number of times to remove all instances.\n   *\n   * All finalizer instances are removed to free up memory upon unsubscription.\n   *\n   * @param teardown The finalizer to remove from this subscription\n   */\n  remove(teardown: Exclude<TeardownLogic, void>): void {\n    const { _finalizers } = this;\n    _finalizers && arrRemove(_finalizers, teardown);\n\n    if (teardown instanceof Subscription) {\n      teardown._removeParent(this);\n    }\n  }\n}\n\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\n\nexport function isSubscription(value: any): value is Subscription {\n  return (\n    value instanceof Subscription ||\n    (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))\n  );\n}\n\nfunction execFinalizer(finalizer: Unsubscribable | (() => void)) {\n  if (isFunction(finalizer)) {\n    finalizer();\n  } else {\n    finalizer.unsubscribe();\n  }\n}\n", "import { Subscriber } from './Subscriber';\nimport { ObservableNotification } from './types';\n\n/**\n * The {@link GlobalConfig} object for RxJS. It is used to configure things\n * like how to react on unhandled errors.\n */\nexport const config: GlobalConfig = {\n  onUnhandledError: null,\n  onStoppedNotification: null,\n  Promise: undefined,\n  useDeprecatedSynchronousErrorHandling: false,\n  useDeprecatedNextContext: false,\n};\n\n/**\n * The global configuration object for RxJS, used to configure things\n * like how to react on unhandled errors. Accessible via {@link config}\n * object.\n */\nexport interface GlobalConfig {\n  /**\n   * A registration point for unhandled errors from RxJS. These are errors that\n   * cannot were not handled by consuming code in the usual subscription path. For\n   * example, if you have this configured, and you subscribe to an observable without\n   * providing an error handler, errors from that subscription will end up here. This\n   * will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onUnhandledError: ((err: any) => void) | null;\n\n  /**\n   * A registration point for notifications that cannot be sent to subscribers because they\n   * have completed, errored or have been explicitly unsubscribed. By default, next, complete\n   * and error notifications sent to stopped subscribers are noops. However, sometimes callers\n   * might want a different behavior. For example, with sources that attempt to report errors\n   * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead.\n   * This will _always_ be called asynchronously on another job in the runtime. This is because\n   * we do not want errors thrown in this user-configured handler to interfere with the\n   * behavior of the library.\n   */\n  onStoppedNotification: ((notification: ObservableNotification<any>, subscriber: Subscriber<any>) => void) | null;\n\n  /**\n   * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach}\n   * methods.\n   *\n   * @deprecated As of version 8, RxJS will no longer support this sort of injection of a\n   * Promise constructor. If you need a Promise implementation other than native promises,\n   * please polyfill/patch Promise as you see appropriate. Will be removed in v8.\n   */\n  Promise?: PromiseConstructorLike;\n\n  /**\n   * If true, turns on synchronous error rethrowing, which is a deprecated behavior\n   * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe\n   * call in a try/catch block. It also enables producer interference, a nasty bug\n   * where a multicast can be broken for all observers by a downstream consumer with\n   * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME\n   * FOR MIGRATION REASONS.\n   *\n   * @deprecated As of version 8, RxJS will no longer support synchronous throwing\n   * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad\n   * behaviors described above. Will be removed in v8.\n   */\n  useDeprecatedSynchronousErrorHandling: boolean;\n\n  /**\n   * If true, enables an as-of-yet undocumented feature from v5: The ability to access\n   * `unsubscribe()` via `this` context in `next` functions created in observers passed\n   * to `subscribe`.\n   *\n   * This is being removed because the performance was severely problematic, and it could also cause\n   * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have\n   * their `this` context overwritten.\n   *\n   * @deprecated As of version 8, RxJS will no longer support altering the\n   * context of next functions provided as part of an observer to Subscribe. Instead,\n   * you will have access to a subscription or a signal or token that will allow you to do things like\n   * unsubscribe and test closed status. Will be removed in v8.\n   */\n  useDeprecatedNextContext: boolean;\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearTimeoutFunction = (handle: TimerHandle) => void;\n\ninterface TimeoutProvider {\n  setTimeout: SetTimeoutFunction;\n  clearTimeout: ClearTimeoutFunction;\n  delegate:\n    | {\n        setTimeout: SetTimeoutFunction;\n        clearTimeout: ClearTimeoutFunction;\n      }\n    | undefined;\n}\n\nexport const timeoutProvider: TimeoutProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setTimeout(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = timeoutProvider;\n    if (delegate?.setTimeout) {\n      return delegate.setTimeout(handler, timeout, ...args);\n    }\n    return setTimeout(handler, timeout, ...args);\n  },\n  clearTimeout(handle) {\n    const { delegate } = timeoutProvider;\n    return (delegate?.clearTimeout || clearTimeout)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\n\n/**\n * Handles an error on another job either with the user-configured {@link onUnhandledError},\n * or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc.\n *\n * This should be called whenever there is an error that is out-of-band with the subscription\n * or when an error hits a terminal boundary of the subscription and no error handler was provided.\n *\n * @param err the error to report\n */\nexport function reportUnhandledError(err: any) {\n  timeoutProvider.setTimeout(() => {\n    const { onUnhandledError } = config;\n    if (onUnhandledError) {\n      // Execute the user-configured error handler.\n      onUnhandledError(err);\n    } else {\n      // Throw so it is picked up by the runtime's uncaught error mechanism.\n      throw err;\n    }\n  });\n}\n", "/* tslint:disable:no-empty */\nexport function noop() { }\n", "import { CompleteNotification, NextNotification, ErrorNotification } from './types';\n\n/**\n * A completion object optimized for memory use and created to be the\n * same \"shape\" as other notifications in v8.\n * @internal\n */\nexport const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined) as CompleteNotification)();\n\n/**\n * Internal use only. Creates an optimized error notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function errorNotification(error: any): ErrorNotification {\n  return createNotification('E', undefined, error) as any;\n}\n\n/**\n * Internal use only. Creates an optimized next notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function nextNotification<T>(value: T) {\n  return createNotification('N', value, undefined) as NextNotification<T>;\n}\n\n/**\n * Ensures that all notifications created internally have the same \"shape\" in v8.\n *\n * TODO: This is only exported to support a crazy legacy test in `groupBy`.\n * @internal\n */\nexport function createNotification(kind: 'N' | 'E' | 'C', value: any, error: any) {\n  return {\n    kind,\n    value,\n    error,\n  };\n}\n", "import { config } from '../config';\n\nlet context: { errorThrown: boolean; error: any } | null = null;\n\n/**\n * Handles dealing with errors for super-gross mode. Creates a context, in which\n * any synchronously thrown errors will be passed to {@link captureError}. Which\n * will record the error such that it will be rethrown after the call back is complete.\n * TODO: Remove in v8\n * @param cb An immediately executed function.\n */\nexport function errorContext(cb: () => void) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    const isRoot = !context;\n    if (isRoot) {\n      context = { errorThrown: false, error: null };\n    }\n    cb();\n    if (isRoot) {\n      const { errorThrown, error } = context!;\n      context = null;\n      if (errorThrown) {\n        throw error;\n      }\n    }\n  } else {\n    // This is the general non-deprecated path for everyone that\n    // isn't crazy enough to use super-gross mode (useDeprecatedSynchronousErrorHandling)\n    cb();\n  }\n}\n\n/**\n * Captures errors only in super-gross mode.\n * @param err the error to capture\n */\nexport function captureError(err: any) {\n  if (config.useDeprecatedSynchronousErrorHandling && context) {\n    context.errorThrown = true;\n    context.error = err;\n  }\n}\n", "import { isFunction } from './util/isFunction';\nimport { Observer, ObservableNotification } from './types';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\n\n/**\n * Implements the {@link Observer} interface and extends the\n * {@link Subscription} class. While the {@link Observer} is the public API for\n * consuming the values of an {@link Observable}, all Observers get converted to\n * a Subscriber, in order to provide Subscription-like capabilities such as\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\n * implementing operators, but it is rarely used as a public API.\n *\n * @class Subscriber<T>\n */\nexport class Subscriber<T> extends Subscription implements Observer<T> {\n  /**\n   * A static factory for a Subscriber, given a (potentially partial) definition\n   * of an Observer.\n   * @param next The `next` callback of an Observer.\n   * @param error The `error` callback of an\n   * Observer.\n   * @param complete The `complete` callback of an\n   * Observer.\n   * @return A Subscriber wrapping the (partially defined)\n   * Observer represented by the given arguments.\n   * @nocollapse\n   * @deprecated Do not use. Will be removed in v8. There is no replacement for this\n   * method, and there is no reason to be creating instances of `Subscriber` directly.\n   * If you have a specific use case, please file an issue.\n   */\n  static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T> {\n    return new SafeSubscriber(next, error, complete);\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected isStopped: boolean = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  protected destination: Subscriber<any> | Observer<any>; // this `any` is the escape hatch to erase extra type param (e.g. R)\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.\n   */\n  constructor(destination?: Subscriber<any> | Observer<any>) {\n    super();\n    if (destination) {\n      this.destination = destination;\n      // Automatically chain subscriptions together here.\n      // if destination is a Subscription, then it is a Subscriber.\n      if (isSubscription(destination)) {\n        destination.add(this);\n      }\n    } else {\n      this.destination = EMPTY_OBSERVER;\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `next` from\n   * the Observable, with a value. The Observable may call this method 0 or more\n   * times.\n   * @param {T} [value] The `next` value.\n   * @return {void}\n   */\n  next(value?: T): void {\n    if (this.isStopped) {\n      handleStoppedNotification(nextNotification(value), this);\n    } else {\n      this._next(value!);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive notifications of type `error` from\n   * the Observable, with an attached `Error`. Notifies the Observer that\n   * the Observable has experienced an error condition.\n   * @param {any} [err] The `error` exception.\n   * @return {void}\n   */\n  error(err?: any): void {\n    if (this.isStopped) {\n      handleStoppedNotification(errorNotification(err), this);\n    } else {\n      this.isStopped = true;\n      this._error(err);\n    }\n  }\n\n  /**\n   * The {@link Observer} callback to receive a valueless notification of type\n   * `complete` from the Observable. Notifies the Observer that the Observable\n   * has finished sending push-based notifications.\n   * @return {void}\n   */\n  complete(): void {\n    if (this.isStopped) {\n      handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n    } else {\n      this.isStopped = true;\n      this._complete();\n    }\n  }\n\n  unsubscribe(): void {\n    if (!this.closed) {\n      this.isStopped = true;\n      super.unsubscribe();\n      this.destination = null!;\n    }\n  }\n\n  protected _next(value: T): void {\n    this.destination.next(value);\n  }\n\n  protected _error(err: any): void {\n    try {\n      this.destination.error(err);\n    } finally {\n      this.unsubscribe();\n    }\n  }\n\n  protected _complete(): void {\n    try {\n      this.destination.complete();\n    } finally {\n      this.unsubscribe();\n    }\n  }\n}\n\n/**\n * This bind is captured here because we want to be able to have\n * compatibility with monoid libraries that tend to use a method named\n * `bind`. In particular, a library called Monio requires this.\n */\nconst _bind = Function.prototype.bind;\n\nfunction bind<Fn extends (...args: any[]) => any>(fn: Fn, thisArg: any): Fn {\n  return _bind.call(fn, thisArg);\n}\n\n/**\n * Internal optimization only, DO NOT EXPOSE.\n * @internal\n */\nclass ConsumerObserver<T> implements Observer<T> {\n  constructor(private partialObserver: Partial<Observer<T>>) {}\n\n  next(value: T): void {\n    const { partialObserver } = this;\n    if (partialObserver.next) {\n      try {\n        partialObserver.next(value);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n\n  error(err: any): void {\n    const { partialObserver } = this;\n    if (partialObserver.error) {\n      try {\n        partialObserver.error(err);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    } else {\n      handleUnhandledError(err);\n    }\n  }\n\n  complete(): void {\n    const { partialObserver } = this;\n    if (partialObserver.complete) {\n      try {\n        partialObserver.complete();\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n}\n\nexport class SafeSubscriber<T> extends Subscriber<T> {\n  constructor(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((e?: any) => void) | null,\n    complete?: (() => void) | null\n  ) {\n    super();\n\n    let partialObserver: Partial<Observer<T>>;\n    if (isFunction(observerOrNext) || !observerOrNext) {\n      // The first argument is a function, not an observer. The next\n      // two arguments *could* be observers, or they could be empty.\n      partialObserver = {\n        next: (observerOrNext ?? undefined) as (((value: T) => void) | undefined),\n        error: error ?? undefined,\n        complete: complete ?? undefined,\n      };\n    } else {\n      // The first argument is a partial observer.\n      let context: any;\n      if (this && config.useDeprecatedNextContext) {\n        // This is a deprecated path that made `this.unsubscribe()` available in\n        // next handler functions passed to subscribe. This only exists behind a flag\n        // now, as it is *very* slow.\n        context = Object.create(observerOrNext);\n        context.unsubscribe = () => this.unsubscribe();\n        partialObserver = {\n          next: observerOrNext.next && bind(observerOrNext.next, context),\n          error: observerOrNext.error && bind(observerOrNext.error, context),\n          complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n        };\n      } else {\n        // The \"normal\" path. Just use the partial observer directly.\n        partialObserver = observerOrNext;\n      }\n    }\n\n    // Wrap the partial observer to ensure it's a full observer, and\n    // make sure proper error handling is accounted for.\n    this.destination = new ConsumerObserver(partialObserver);\n  }\n}\n\nfunction handleUnhandledError(error: any) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    captureError(error);\n  } else {\n    // Ideal path, we report this as an unhandled error,\n    // which is thrown on a new call stack.\n    reportUnhandledError(error);\n  }\n}\n\n/**\n * An error handler used when no error handler was supplied\n * to the SafeSubscriber -- meaning no error handler was supplied\n * do the `subscribe` call on our observable.\n * @param err The error to handle\n */\nfunction defaultErrorHandler(err: any) {\n  throw err;\n}\n\n/**\n * A handler for notifications that cannot be sent to a stopped subscriber.\n * @param notification The notification being sent\n * @param subscriber The stopped subscriber\n */\nfunction handleStoppedNotification(notification: ObservableNotification<any>, subscriber: Subscriber<any>) {\n  const { onStoppedNotification } = config;\n  onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\n\n/**\n * The observer used as a stub for subscriptions where the user did not\n * pass any arguments to `subscribe`. Comes with the default error handling\n * behavior.\n */\nexport const EMPTY_OBSERVER: Readonly<Observer<any>> & { closed: true } = {\n  closed: true,\n  next: noop,\n  error: defaultErrorHandler,\n  complete: noop,\n};\n", "/**\n * Symbol.observable or a string \"@@observable\". Used for interop\n *\n * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS.\n * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable\n */\nexport const observable: string | symbol = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n", "/**\n * This function takes one parameter and just returns it. Simply put,\n * this is like `<T>(x: T): T => x`.\n *\n * ## Examples\n *\n * This is useful in some cases when using things like `mergeMap`\n *\n * ```ts\n * import { interval, take, map, range, mergeMap, identity } from 'rxjs';\n *\n * const source$ = interval(1000).pipe(take(5));\n *\n * const result$ = source$.pipe(\n *   map(i => range(i)),\n *   mergeMap(identity) // same as mergeMap(x => x)\n * );\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * Or when you want to selectively apply an operator\n *\n * ```ts\n * import { interval, take, identity } from 'rxjs';\n *\n * const shouldLimit = () => Math.random() < 0.5;\n *\n * const source$ = interval(1000);\n *\n * const result$ = source$.pipe(shouldLimit() ? take(5) : identity);\n *\n * result$.subscribe({\n *   next: console.log\n * });\n * ```\n *\n * @param x Any value that is returned by this function\n * @returns The value passed as the first parameter to this function\n */\nexport function identity<T>(x: T): T {\n  return x;\n}\n", "import { identity } from './identity';\nimport { UnaryFunction } from '../types';\n\nexport function pipe(): typeof identity;\nexport function pipe<T, A>(fn1: UnaryFunction<T, A>): UnaryFunction<T, A>;\nexport function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>): UnaryFunction<T, B>;\nexport function pipe<T, A, B, C>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>): UnaryFunction<T, C>;\nexport function pipe<T, A, B, C, D>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>\n): UnaryFunction<T, D>;\nexport function pipe<T, A, B, C, D, E>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>\n): UnaryFunction<T, E>;\nexport function pipe<T, A, B, C, D, E, F>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>\n): UnaryFunction<T, F>;\nexport function pipe<T, A, B, C, D, E, F, G>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>\n): UnaryFunction<T, G>;\nexport function pipe<T, A, B, C, D, E, F, G, H>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>\n): UnaryFunction<T, H>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>\n): UnaryFunction<T, I>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(\n  fn1: UnaryFunction<T, A>,\n  fn2: UnaryFunction<A, B>,\n  fn3: UnaryFunction<B, C>,\n  fn4: UnaryFunction<C, D>,\n  fn5: UnaryFunction<D, E>,\n  fn6: UnaryFunction<E, F>,\n  fn7: UnaryFunction<F, G>,\n  fn8: UnaryFunction<G, H>,\n  fn9: UnaryFunction<H, I>,\n  ...fns: UnaryFunction<any, any>[]\n): UnaryFunction<T, unknown>;\n\n/**\n * pipe() can be called on one or more functions, each of which can take one argument (\"UnaryFunction\")\n * and uses it to return a value.\n * It returns a function that takes one argument, passes it to the first UnaryFunction, and then\n * passes the result to the next one, passes that result to the next one, and so on.  \n */\nexport function pipe(...fns: Array<UnaryFunction<any, any>>): UnaryFunction<any, any> {\n  return pipeFromArray(fns);\n}\n\n/** @internal */\nexport function pipeFromArray<T, R>(fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {\n  if (fns.length === 0) {\n    return identity as UnaryFunction<any, any>;\n  }\n\n  if (fns.length === 1) {\n    return fns[0];\n  }\n\n  return function piped(input: T): R {\n    return fns.reduce((prev: any, fn: UnaryFunction<T, R>) => fn(prev), input as any);\n  };\n}\n", "import { Operator } from './Operator';\nimport { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription, Subscription } from './Subscription';\nimport { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A representation of any set of values over any amount of time. This is the most basic building block\n * of RxJS.\n *\n * @class Observable<T>\n */\nexport class Observable<T> implements Subscribable<T> {\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  source: Observable<any> | undefined;\n\n  /**\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   */\n  operator: Operator<any, T> | undefined;\n\n  /**\n   * @constructor\n   * @param {Function} subscribe the function that is called when the Observable is\n   * initially subscribed to. This function is given a Subscriber, to which new values\n   * can be `next`ed, or an `error` method can be called to raise an error, or\n   * `complete` can be called to notify of a successful completion.\n   */\n  constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic) {\n    if (subscribe) {\n      this._subscribe = subscribe;\n    }\n  }\n\n  // HACK: Since TypeScript inherits static properties too, we have to\n  // fight against TypeScript here so Subject can have a different static create signature\n  /**\n   * Creates a new Observable by calling the Observable constructor\n   * @owner Observable\n   * @method create\n   * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n   * @return {Observable} a new observable\n   * @nocollapse\n   * @deprecated Use `new Observable()` instead. Will be removed in v8.\n   */\n  static create: (...args: any[]) => any = <T>(subscribe?: (subscriber: Subscriber<T>) => TeardownLogic) => {\n    return new Observable<T>(subscribe);\n  };\n\n  /**\n   * Creates a new Observable, with this Observable instance as the source, and the passed\n   * operator defined as the new observable's operator.\n   * @method lift\n   * @param operator the operator defining the operation to take on the observable\n   * @return a new observable with the Operator applied\n   * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n   * If you have implemented an operator using `lift`, it is recommended that you create an\n   * operator by simply returning `new Observable()` directly. See \"Creating new operators from\n   * scratch\" section here: https://rxjs.dev/guide/operators\n   */\n  lift<R>(operator?: Operator<T, R>): Observable<R> {\n    const observable = new Observable<R>();\n    observable.source = this;\n    observable.operator = operator;\n    return observable;\n  }\n\n  subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;\n  /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\n  subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;\n  /**\n   * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.\n   *\n   * <span class=\"informal\">Use it when you have all these Observables, but still nothing is happening.</span>\n   *\n   * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It\n   * might be for example a function that you passed to Observable's constructor, but most of the time it is\n   * a library implementation, which defines what will be emitted by an Observable, and when it be will emitted. This means\n   * that calling `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often\n   * the thought.\n   *\n   * Apart from starting the execution of an Observable, this method allows you to listen for values\n   * that an Observable emits, as well as for when it completes or errors. You can achieve this in two\n   * of the following ways.\n   *\n   * The first way is creating an object that implements {@link Observer} interface. It should have methods\n   * defined by that interface, but note that it should be just a regular JavaScript object, which you can create\n   * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular, do\n   * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also\n   * that your object does not have to implement all methods. If you find yourself creating a method that doesn't\n   * do anything, you can simply omit it. Note however, if the `error` method is not provided and an error happens,\n   * it will be thrown asynchronously. Errors thrown asynchronously cannot be caught using `try`/`catch`. Instead,\n   * use the {@link onUnhandledError} configuration option or use a runtime handler (like `window.onerror` or\n   * `process.on('error)`) to be notified of unhandled errors. Because of this, it's recommended that you provide\n   * an `error` method to avoid missing thrown errors.\n   *\n   * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods.\n   * This means you can provide three functions as arguments to `subscribe`, where the first function is equivalent\n   * of a `next` method, the second of an `error` method and the third of a `complete` method. Just as in case of an Observer,\n   * if you do not need to listen for something, you can omit a function by passing `undefined` or `null`,\n   * since `subscribe` recognizes these functions by where they were placed in function call. When it comes\n   * to the `error` function, as with an Observer, if not provided, errors emitted by an Observable will be thrown asynchronously.\n   *\n   * You can, however, subscribe with no parameters at all. This may be the case where you're not interested in terminal events\n   * and you also handled emissions internally by using operators (e.g. using `tap`).\n   *\n   * Whichever style of calling `subscribe` you use, in both cases it returns a Subscription object.\n   * This object allows you to call `unsubscribe` on it, which in turn will stop the work that an Observable does and will clean\n   * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback\n   * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable.\n   *\n   * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously.\n   * It is an Observable itself that decides when these functions will be called. For example {@link of}\n   * by default emits all its values synchronously. Always check documentation for how given Observable\n   * will behave when subscribed and if its default behavior can be modified with a `scheduler`.\n   *\n   * #### Examples\n   *\n   * Subscribe with an {@link guide/observer Observer}\n   *\n   * ```ts\n   * import { of } from 'rxjs';\n   *\n   * const sumObserver = {\n   *   sum: 0,\n   *   next(value) {\n   *     console.log('Adding: ' + value);\n   *     this.sum = this.sum + value;\n   *   },\n   *   error() {\n   *     // We actually could just remove this method,\n   *     // since we do not really care about errors right now.\n   *   },\n   *   complete() {\n   *     console.log('Sum equals: ' + this.sum);\n   *   }\n   * };\n   *\n   * of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes.\n   *   .subscribe(sumObserver);\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Subscribe with functions ({@link deprecations/subscribe-arguments deprecated})\n   *\n   * ```ts\n   * import { of } from 'rxjs'\n   *\n   * let sum = 0;\n   *\n   * of(1, 2, 3).subscribe(\n   *   value => {\n   *     console.log('Adding: ' + value);\n   *     sum = sum + value;\n   *   },\n   *   undefined,\n   *   () => console.log('Sum equals: ' + sum)\n   * );\n   *\n   * // Logs:\n   * // 'Adding: 1'\n   * // 'Adding: 2'\n   * // 'Adding: 3'\n   * // 'Sum equals: 6'\n   * ```\n   *\n   * Cancel a subscription\n   *\n   * ```ts\n   * import { interval } from 'rxjs';\n   *\n   * const subscription = interval(1000).subscribe({\n   *   next(num) {\n   *     console.log(num)\n   *   },\n   *   complete() {\n   *     // Will not be called, even when cancelling subscription.\n   *     console.log('completed!');\n   *   }\n   * });\n   *\n   * setTimeout(() => {\n   *   subscription.unsubscribe();\n   *   console.log('unsubscribed!');\n   * }, 2500);\n   *\n   * // Logs:\n   * // 0 after 1s\n   * // 1 after 2s\n   * // 'unsubscribed!' after 2.5s\n   * ```\n   *\n   * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called,\n   * or the first of three possible handlers, which is the handler for each value emitted from the subscribed\n   * Observable.\n   * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided,\n   * the error will be thrown asynchronously as unhandled.\n   * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion.\n   * @return {Subscription} a subscription reference to the registered handlers\n   * @method subscribe\n   */\n  subscribe(\n    observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null,\n    error?: ((error: any) => void) | null,\n    complete?: (() => void) | null\n  ): Subscription {\n    const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n\n    errorContext(() => {\n      const { operator, source } = this;\n      subscriber.add(\n        operator\n          ? // We're dealing with a subscription in the\n            // operator chain to one of our lifted operators.\n            operator.call(subscriber, source)\n          : source\n          ? // If `source` has a value, but `operator` does not, something that\n            // had intimate knowledge of our API, like our `Subject`, must have\n            // set it. We're going to just call `_subscribe` directly.\n            this._subscribe(subscriber)\n          : // In all other cases, we're likely wrapping a user-provided initializer\n            // function, so we need to catch errors and handle them appropriately.\n            this._trySubscribe(subscriber)\n      );\n    });\n\n    return subscriber;\n  }\n\n  /** @internal */\n  protected _trySubscribe(sink: Subscriber<T>): TeardownLogic {\n    try {\n      return this._subscribe(sink);\n    } catch (err) {\n      // We don't need to return anything in this case,\n      // because it's just going to try to `add()` to a subscription\n      // above.\n      sink.error(err);\n    }\n  }\n\n  /**\n   * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with\n   * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * #### Example\n   *\n   * ```ts\n   * import { interval, take } from 'rxjs';\n   *\n   * const source$ = interval(1000).pipe(take(4));\n   *\n   * async function getTotal() {\n   *   let total = 0;\n   *\n   *   await source$.forEach(value => {\n   *     total += value;\n   *     console.log('observable -> ' + value);\n   *   });\n   *\n   *   return total;\n   * }\n   *\n   * getTotal().then(\n   *   total => console.log('Total: ' + total)\n   * );\n   *\n   * // Expected:\n   * // 'observable -> 0'\n   * // 'observable -> 1'\n   * // 'observable -> 2'\n   * // 'observable -> 3'\n   * // 'Total: 6'\n   * ```\n   *\n   * @param next a handler for each value emitted by the observable\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   */\n  forEach(next: (value: T) => void): Promise<void>;\n\n  /**\n   * @param next a handler for each value emitted by the observable\n   * @param promiseCtor a constructor function used to instantiate the Promise\n   * @return a promise that either resolves on observable completion or\n   *  rejects with the handled error\n   * @deprecated Passing a Promise constructor will no longer be available\n   * in upcoming versions of RxJS. This is because it adds weight to the library, for very\n   * little benefit. If you need this functionality, it is recommended that you either\n   * polyfill Promise, or you create an adapter to convert the returned native promise\n   * to whatever promise implementation you wanted. Will be removed in v8.\n   */\n  forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;\n\n  forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise<void> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor<void>((resolve, reject) => {\n      const subscriber = new SafeSubscriber<T>({\n        next: (value) => {\n          try {\n            next(value);\n          } catch (err) {\n            reject(err);\n            subscriber.unsubscribe();\n          }\n        },\n        error: reject,\n        complete: resolve,\n      });\n      this.subscribe(subscriber);\n    }) as Promise<void>;\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<any>): TeardownLogic {\n    return this.source?.subscribe(subscriber);\n  }\n\n  /**\n   * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n   * @method Symbol.observable\n   * @return {Observable} this instance of the observable\n   */\n  [Symbol_observable]() {\n    return this;\n  }\n\n  /* tslint:disable:max-line-length */\n  pipe(): Observable<T>;\n  pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;\n  pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;\n  pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;\n  pipe<A, B, C, D>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>\n  ): Observable<D>;\n  pipe<A, B, C, D, E>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>\n  ): Observable<E>;\n  pipe<A, B, C, D, E, F>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>\n  ): Observable<F>;\n  pipe<A, B, C, D, E, F, G>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>\n  ): Observable<G>;\n  pipe<A, B, C, D, E, F, G, H>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>\n  ): Observable<H>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>\n  ): Observable<I>;\n  pipe<A, B, C, D, E, F, G, H, I>(\n    op1: OperatorFunction<T, A>,\n    op2: OperatorFunction<A, B>,\n    op3: OperatorFunction<B, C>,\n    op4: OperatorFunction<C, D>,\n    op5: OperatorFunction<D, E>,\n    op6: OperatorFunction<E, F>,\n    op7: OperatorFunction<F, G>,\n    op8: OperatorFunction<G, H>,\n    op9: OperatorFunction<H, I>,\n    ...operations: OperatorFunction<any, any>[]\n  ): Observable<unknown>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Used to stitch together functional operators into a chain.\n   * @method pipe\n   * @return {Observable} the Observable result of all of the operators having\n   * been called in the order they were passed in.\n   *\n   * ## Example\n   *\n   * ```ts\n   * import { interval, filter, map, scan } from 'rxjs';\n   *\n   * interval(1000)\n   *   .pipe(\n   *     filter(x => x % 2 === 0),\n   *     map(x => x + x),\n   *     scan((acc, x) => acc + x)\n   *   )\n   *   .subscribe(x => console.log(x));\n   * ```\n   */\n  pipe(...operations: OperatorFunction<any, any>[]): Observable<any> {\n    return pipeFromArray(operations)(this);\n  }\n\n  /* tslint:disable:max-line-length */\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;\n  /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n  toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;\n  /* tslint:enable:max-line-length */\n\n  /**\n   * Subscribe to this Observable and get a Promise resolving on\n   * `complete` with the last emission (if any).\n   *\n   * **WARNING**: Only use this with observables you *know* will complete. If the source\n   * observable does not complete, you will end up with a promise that is hung up, and\n   * potentially all of the state of an async function hanging out in memory. To avoid\n   * this situation, look into adding something like {@link timeout}, {@link take},\n   * {@link takeWhile}, or {@link takeUntil} amongst others.\n   *\n   * @method toPromise\n   * @param [promiseCtor] a constructor function used to instantiate\n   * the Promise\n   * @return A Promise that resolves with the last value emit, or\n   * rejects on an error. If there were no emissions, Promise\n   * resolves with undefined.\n   * @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise\n   */\n  toPromise(promiseCtor?: PromiseConstructorLike): Promise<T | undefined> {\n    promiseCtor = getPromiseCtor(promiseCtor);\n\n    return new promiseCtor((resolve, reject) => {\n      let value: T | undefined;\n      this.subscribe(\n        (x: T) => (value = x),\n        (err: any) => reject(err),\n        () => resolve(value)\n      );\n    }) as Promise<T | undefined>;\n  }\n}\n\n/**\n * Decides between a passed promise constructor from consuming code,\n * A default configured promise constructor, and the native promise\n * constructor and returns it. If nothing can be found, it will throw\n * an error.\n * @param promiseCtor The optional promise constructor to passed by consuming code\n */\nfunction getPromiseCtor(promiseCtor: PromiseConstructorLike | undefined) {\n  return promiseCtor ?? config.Promise ?? Promise;\n}\n\nfunction isObserver<T>(value: any): value is Observer<T> {\n  return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\n\nfunction isSubscriber<T>(value: any): value is Subscriber<T> {\n  return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../types';\nimport { isFunction } from './isFunction';\n\n/**\n * Used to determine if an object is an Observable with a lift function.\n */\nexport function hasLift(source: any): source is { lift: InstanceType<typeof Observable>['lift'] } {\n  return isFunction(source?.lift);\n}\n\n/**\n * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way.\n * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription.\n */\nexport function operate<T, R>(\n  init: (liftedSource: Observable<T>, subscriber: Subscriber<R>) => (() => void) | void\n): OperatorFunction<T, R> {\n  return (source: Observable<T>) => {\n    if (hasLift(source)) {\n      return source.lift(function (this: Subscriber<R>, liftedSource: Observable<T>) {\n        try {\n          return init(liftedSource, this);\n        } catch (err) {\n          this.error(err);\n        }\n      });\n    }\n    throw new TypeError('Unable to lift unknown Observable type');\n  };\n}\n", "import { Subscriber } from '../Subscriber';\n\n/**\n * Creates an instance of an `OperatorSubscriber`.\n * @param destination The downstream subscriber.\n * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n * and send to the `destination` error handler.\n * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n * this handler are sent to the `destination` error handler.\n * @param onFinalize Additional teardown logic here. This will only be called on teardown if the\n * subscriber itself is not already closed. This is called after all other teardown logic is executed.\n */\nexport function createOperatorSubscriber<T>(\n  destination: Subscriber<any>,\n  onNext?: (value: T) => void,\n  onComplete?: () => void,\n  onError?: (err: any) => void,\n  onFinalize?: () => void\n): Subscriber<T> {\n  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\n\n/**\n * A generic helper for allowing operators to be created with a Subscriber and\n * use closures to capture necessary state from the operator function itself.\n */\nexport class OperatorSubscriber<T> extends Subscriber<T> {\n  /**\n   * Creates an instance of an `OperatorSubscriber`.\n   * @param destination The downstream subscriber.\n   * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n   * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n   * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n   * and send to the `destination` error handler.\n   * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n   * this handler are sent to the `destination` error handler.\n   * @param onFinalize Additional finalization logic here. This will only be called on finalization if the\n   * subscriber itself is not already closed. This is called after all other finalization logic is executed.\n   * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe.\n   * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription\n   * to the resulting observable does not actually disconnect from the source if there are active subscriptions\n   * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!)\n   */\n  constructor(\n    destination: Subscriber<any>,\n    onNext?: (value: T) => void,\n    onComplete?: () => void,\n    onError?: (err: any) => void,\n    private onFinalize?: () => void,\n    private shouldUnsubscribe?: () => boolean\n  ) {\n    // It's important - for performance reasons - that all of this class's\n    // members are initialized and that they are always initialized in the same\n    // order. This will ensure that all OperatorSubscriber instances have the\n    // same hidden class in V8. This, in turn, will help keep the number of\n    // hidden classes involved in property accesses within the base class as\n    // low as possible. If the number of hidden classes involved exceeds four,\n    // the property accesses will become megamorphic and performance penalties\n    // will be incurred - i.e. inline caches won't be used.\n    //\n    // The reasons for ensuring all instances have the same hidden class are\n    // further discussed in this blog post from Benedikt Meurer:\n    // https://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/\n    super(destination);\n    this._next = onNext\n      ? function (this: OperatorSubscriber<T>, value: T) {\n          try {\n            onNext(value);\n          } catch (err) {\n            destination.error(err);\n          }\n        }\n      : super._next;\n    this._error = onError\n      ? function (this: OperatorSubscriber<T>, err: any) {\n          try {\n            onError(err);\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._error;\n    this._complete = onComplete\n      ? function (this: OperatorSubscriber<T>) {\n          try {\n            onComplete();\n          } catch (err) {\n            // Send any errors that occur down stream.\n            destination.error(err);\n          } finally {\n            // Ensure finalization.\n            this.unsubscribe();\n          }\n        }\n      : super._complete;\n  }\n\n  unsubscribe() {\n    if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n      const { closed } = this;\n      super.unsubscribe();\n      // Execute additional teardown if we have any and we didn't already do so.\n      !closed && this.onFinalize?.();\n    }\n  }\n}\n", "import { Subscription } from '../Subscription';\n\ninterface AnimationFrameProvider {\n  schedule(callback: FrameRequestCallback): Subscription;\n  requestAnimationFrame: typeof requestAnimationFrame;\n  cancelAnimationFrame: typeof cancelAnimationFrame;\n  delegate:\n    | {\n        requestAnimationFrame: typeof requestAnimationFrame;\n        cancelAnimationFrame: typeof cancelAnimationFrame;\n      }\n    | undefined;\n}\n\nexport const animationFrameProvider: AnimationFrameProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  schedule(callback) {\n    let request = requestAnimationFrame;\n    let cancel: typeof cancelAnimationFrame | undefined = cancelAnimationFrame;\n    const { delegate } = animationFrameProvider;\n    if (delegate) {\n      request = delegate.requestAnimationFrame;\n      cancel = delegate.cancelAnimationFrame;\n    }\n    const handle = request((timestamp) => {\n      // Clear the cancel function. The request has been fulfilled, so\n      // attempting to cancel the request upon unsubscription would be\n      // pointless.\n      cancel = undefined;\n      callback(timestamp);\n    });\n    return new Subscription(() => cancel?.(handle));\n  },\n  requestAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.requestAnimationFrame || requestAnimationFrame)(...args);\n  },\n  cancelAnimationFrame(...args) {\n    const { delegate } = animationFrameProvider;\n    return (delegate?.cancelAnimationFrame || cancelAnimationFrame)(...args);\n  },\n  delegate: undefined,\n};\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface ObjectUnsubscribedError extends Error {}\n\nexport interface ObjectUnsubscribedErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): ObjectUnsubscribedError;\n}\n\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nexport const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass(\n  (_super) =>\n    function ObjectUnsubscribedErrorImpl(this: any) {\n      _super(this);\n      this.name = 'ObjectUnsubscribedError';\n      this.message = 'object unsubscribed';\n    }\n);\n", "import { Operator } from './Operator';\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { Observer, SubscriptionLike, TeardownLogic } from './types';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A Subject is a special type of Observable that allows values to be\n * multicasted to many Observers. Subjects are like EventEmitters.\n *\n * Every Subject is an Observable and an Observer. You can subscribe to a\n * Subject, and you can call next to feed values as well as error and complete.\n */\nexport class Subject<T> extends Observable<T> implements SubscriptionLike {\n  closed = false;\n\n  private currentObservers: Observer<T>[] | null = null;\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  observers: Observer<T>[] = [];\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  isStopped = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  hasError = false;\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  thrownError: any = null;\n\n  /**\n   * Creates a \"subject\" by basically gluing an observer to an observable.\n   *\n   * @nocollapse\n   * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion.\n   */\n  static create: (...args: any[]) => any = <T>(destination: Observer<T>, source: Observable<T>): AnonymousSubject<T> => {\n    return new AnonymousSubject<T>(destination, source);\n  };\n\n  constructor() {\n    // NOTE: This must be here to obscure Observable's constructor.\n    super();\n  }\n\n  /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n  lift<R>(operator: Operator<T, R>): Observable<R> {\n    const subject = new AnonymousSubject(this, this);\n    subject.operator = operator as any;\n    return subject as any;\n  }\n\n  /** @internal */\n  protected _throwIfClosed() {\n    if (this.closed) {\n      throw new ObjectUnsubscribedError();\n    }\n  }\n\n  next(value: T) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        if (!this.currentObservers) {\n          this.currentObservers = Array.from(this.observers);\n        }\n        for (const observer of this.currentObservers) {\n          observer.next(value);\n        }\n      }\n    });\n  }\n\n  error(err: any) {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.hasError = this.isStopped = true;\n        this.thrownError = err;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.error(err);\n        }\n      }\n    });\n  }\n\n  complete() {\n    errorContext(() => {\n      this._throwIfClosed();\n      if (!this.isStopped) {\n        this.isStopped = true;\n        const { observers } = this;\n        while (observers.length) {\n          observers.shift()!.complete();\n        }\n      }\n    });\n  }\n\n  unsubscribe() {\n    this.isStopped = this.closed = true;\n    this.observers = this.currentObservers = null!;\n  }\n\n  get observed() {\n    return this.observers?.length > 0;\n  }\n\n  /** @internal */\n  protected _trySubscribe(subscriber: Subscriber<T>): TeardownLogic {\n    this._throwIfClosed();\n    return super._trySubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._checkFinalizedStatuses(subscriber);\n    return this._innerSubscribe(subscriber);\n  }\n\n  /** @internal */\n  protected _innerSubscribe(subscriber: Subscriber<any>) {\n    const { hasError, isStopped, observers } = this;\n    if (hasError || isStopped) {\n      return EMPTY_SUBSCRIPTION;\n    }\n    this.currentObservers = null;\n    observers.push(subscriber);\n    return new Subscription(() => {\n      this.currentObservers = null;\n      arrRemove(observers, subscriber);\n    });\n  }\n\n  /** @internal */\n  protected _checkFinalizedStatuses(subscriber: Subscriber<any>) {\n    const { hasError, thrownError, isStopped } = this;\n    if (hasError) {\n      subscriber.error(thrownError);\n    } else if (isStopped) {\n      subscriber.complete();\n    }\n  }\n\n  /**\n   * Creates a new Observable with this Subject as the source. You can do this\n   * to create custom Observer-side logic of the Subject and conceal it from\n   * code that uses the Observable.\n   * @return {Observable} Observable that the Subject casts to\n   */\n  asObservable(): Observable<T> {\n    const observable: any = new Observable<T>();\n    observable.source = this;\n    return observable;\n  }\n}\n\n/**\n * @class AnonymousSubject<T>\n */\nexport class AnonymousSubject<T> extends Subject<T> {\n  constructor(\n    /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n    public destination?: Observer<T>,\n    source?: Observable<T>\n  ) {\n    super();\n    this.source = source;\n  }\n\n  next(value: T) {\n    this.destination?.next?.(value);\n  }\n\n  error(err: any) {\n    this.destination?.error?.(err);\n  }\n\n  complete() {\n    this.destination?.complete?.();\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    return this.source?.subscribe(subscriber) ?? EMPTY_SUBSCRIPTION;\n  }\n}\n", "import { Subject } from './Subject';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\n\n/**\n * A variant of Subject that requires an initial value and emits its current\n * value whenever it is subscribed to.\n *\n * @class BehaviorSubject<T>\n */\nexport class BehaviorSubject<T> extends Subject<T> {\n  constructor(private _value: T) {\n    super();\n  }\n\n  get value(): T {\n    return this.getValue();\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    const subscription = super._subscribe(subscriber);\n    !subscription.closed && subscriber.next(this._value);\n    return subscription;\n  }\n\n  getValue(): T {\n    const { hasError, thrownError, _value } = this;\n    if (hasError) {\n      throw thrownError;\n    }\n    this._throwIfClosed();\n    return _value;\n  }\n\n  next(value: T): void {\n    super.next((this._value = value));\n  }\n}\n", "import { TimestampProvider } from '../types';\n\ninterface DateTimestampProvider extends TimestampProvider {\n  delegate: TimestampProvider | undefined;\n}\n\nexport const dateTimestampProvider: DateTimestampProvider = {\n  now() {\n    // Use the variable rather than `this` so that the function can be called\n    // without being bound to the provider.\n    return (dateTimestampProvider.delegate || Date).now();\n  },\n  delegate: undefined,\n};\n", "import { Subject } from './Subject';\nimport { TimestampProvider } from './types';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * A variant of {@link Subject} that \"replays\" old values to new subscribers by emitting them when they first subscribe.\n *\n * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`,\n * `ReplaySubject` \"observes\" values by having them passed to its `next` method. When it observes a value, it will store that\n * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor.\n *\n * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in\n * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will\n * error if it has observed an error.\n *\n * There are two main configuration items to be concerned with:\n *\n * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite.\n * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer.\n *\n * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values\n * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`.\n *\n * ### Differences with BehaviorSubject\n *\n * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions:\n *\n * 1. `BehaviorSubject` comes \"primed\" with a single value upon construction.\n * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n * @see {@link shareReplay}\n */\nexport class ReplaySubject<T> extends Subject<T> {\n  private _buffer: (T | number)[] = [];\n  private _infiniteTimeWindow = true;\n\n  /**\n   * @param bufferSize The size of the buffer to replay on subscription\n   * @param windowTime The amount of time the buffered items will stay buffered\n   * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to\n   * calculate the amount of time something has been buffered.\n   */\n  constructor(\n    private _bufferSize = Infinity,\n    private _windowTime = Infinity,\n    private _timestampProvider: TimestampProvider = dateTimestampProvider\n  ) {\n    super();\n    this._infiniteTimeWindow = _windowTime === Infinity;\n    this._bufferSize = Math.max(1, _bufferSize);\n    this._windowTime = Math.max(1, _windowTime);\n  }\n\n  next(value: T): void {\n    const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this;\n    if (!isStopped) {\n      _buffer.push(value);\n      !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n    }\n    this._trimBuffer();\n    super.next(value);\n  }\n\n  /** @internal */\n  protected _subscribe(subscriber: Subscriber<T>): Subscription {\n    this._throwIfClosed();\n    this._trimBuffer();\n\n    const subscription = this._innerSubscribe(subscriber);\n\n    const { _infiniteTimeWindow, _buffer } = this;\n    // We use a copy here, so reentrant code does not mutate our array while we're\n    // emitting it to a new subscriber.\n    const copy = _buffer.slice();\n    for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n      subscriber.next(copy[i] as T);\n    }\n\n    this._checkFinalizedStatuses(subscriber);\n\n    return subscription;\n  }\n\n  private _trimBuffer() {\n    const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this;\n    // If we don't have an infinite buffer size, and we're over the length,\n    // use splice to truncate the old buffer values off. Note that we have to\n    // double the size for instances where we're not using an infinite time window\n    // because we're storing the values and the timestamps in the same array.\n    const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n    _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n\n    // Now, if we're not in an infinite time window, remove all values where the time is\n    // older than what is allowed.\n    if (!_infiniteTimeWindow) {\n      const now = _timestampProvider.now();\n      let last = 0;\n      // Search the array for the first timestamp that isn't expired and\n      // truncate the buffer up to that point.\n      for (let i = 1; i < _buffer.length && (_buffer[i] as number) <= now; i += 2) {\n        last = i;\n      }\n      last && _buffer.splice(0, last + 1);\n    }\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\nimport { SchedulerAction } from '../types';\n\n/**\n * A unit of work to be executed in a `scheduler`. An action is typically\n * created from within a {@link SchedulerLike} and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action<T> extends Subscription {\n *   new (scheduler: Scheduler, work: (state?: T) => void);\n *   schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action<T>\n */\nexport class Action<T> extends Subscription {\n  constructor(scheduler: Scheduler, work: (this: SchedulerAction<T>, state?: T) => void) {\n    super();\n  }\n  /**\n   * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed\n   * some context object, `state`. May happen at some point in the future,\n   * according to the `delay` parameter, if specified.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler.\n   * @return {void}\n   */\n  public schedule(state?: T, delay: number = 0): Subscription {\n    return this;\n  }\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearIntervalFunction = (handle: TimerHandle) => void;\n\ninterface IntervalProvider {\n  setInterval: SetIntervalFunction;\n  clearInterval: ClearIntervalFunction;\n  delegate:\n    | {\n        setInterval: SetIntervalFunction;\n        clearInterval: ClearIntervalFunction;\n      }\n    | undefined;\n}\n\nexport const intervalProvider: IntervalProvider = {\n  // When accessing the delegate, use the variable rather than `this` so that\n  // the functions can be called without being bound to the provider.\n  setInterval(handler: () => void, timeout?: number, ...args) {\n    const { delegate } = intervalProvider;\n    if (delegate?.setInterval) {\n      return delegate.setInterval(handler, timeout, ...args);\n    }\n    return setInterval(handler, timeout, ...args);\n  },\n  clearInterval(handle) {\n    const { delegate } = intervalProvider;\n    return (delegate?.clearInterval || clearInterval)(handle as any);\n  },\n  delegate: undefined,\n};\n", "import { Action } from './Action';\nimport { SchedulerAction } from '../types';\nimport { Subscription } from '../Subscription';\nimport { AsyncScheduler } from './AsyncScheduler';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncAction<T> extends Action<T> {\n  public id: TimerHandle | undefined;\n  public state?: T;\n  // @ts-ignore: Property has no initializer and is not definitely assigned\n  public delay: number;\n  protected pending: boolean = false;\n\n  constructor(protected scheduler: AsyncScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  public schedule(state?: T, delay: number = 0): Subscription {\n    if (this.closed) {\n      return this;\n    }\n\n    // Always replace the current state with the new state.\n    this.state = state;\n\n    const id = this.id;\n    const scheduler = this.scheduler;\n\n    //\n    // Important implementation note:\n    //\n    // Actions only execute once by default, unless rescheduled from within the\n    // scheduled callback. This allows us to implement single and repeat\n    // actions via the same code path, without adding API surface area, as well\n    // as mimic traditional recursion but across asynchronous boundaries.\n    //\n    // However, JS runtimes and timers distinguish between intervals achieved by\n    // serial `setTimeout` calls vs. a single `setInterval` call. An interval of\n    // serial `setTimeout` calls can be individually delayed, which delays\n    // scheduling the next `setTimeout`, and so on. `setInterval` attempts to\n    // guarantee the interval callback will be invoked more precisely to the\n    // interval period, regardless of load.\n    //\n    // Therefore, we use `setInterval` to schedule single and repeat actions.\n    // If the action reschedules itself with the same delay, the interval is not\n    // canceled. If the action doesn't reschedule, or reschedules with a\n    // different delay, the interval will be canceled after scheduled callback\n    // execution.\n    //\n    if (id != null) {\n      this.id = this.recycleAsyncId(scheduler, id, delay);\n    }\n\n    // Set the pending flag indicating that this action has been scheduled, or\n    // has recursively rescheduled itself.\n    this.pending = true;\n\n    this.delay = delay;\n    // If this action has already an async Id, don't request a new one.\n    this.id = this.id ?? this.requestAsyncId(scheduler, this.id, delay);\n\n    return this;\n  }\n\n  protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay: number = 0): TimerHandle {\n    return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n  }\n\n  protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay: number | null = 0): TimerHandle | undefined {\n    // If this action is rescheduled with the same delay time, don't clear the interval id.\n    if (delay != null && this.delay === delay && this.pending === false) {\n      return id;\n    }\n    // Otherwise, if the action's delay time is different from the current delay,\n    // or the action has been rescheduled before it's executed, clear the interval id\n    if (id != null) {\n      intervalProvider.clearInterval(id);\n    }\n\n    return undefined;\n  }\n\n  /**\n   * Immediately executes this action and the `work` it contains.\n   * @return {any}\n   */\n  public execute(state: T, delay: number): any {\n    if (this.closed) {\n      return new Error('executing a cancelled action');\n    }\n\n    this.pending = false;\n    const error = this._execute(state, delay);\n    if (error) {\n      return error;\n    } else if (this.pending === false && this.id != null) {\n      // Dequeue if the action didn't reschedule itself. Don't call\n      // unsubscribe(), because the action could reschedule later.\n      // For example:\n      // ```\n      // scheduler.schedule(function doWork(counter) {\n      //   /* ... I'm a busy worker bee ... */\n      //   var originalAction = this;\n      //   /* wait 100ms before rescheduling the action */\n      //   setTimeout(function () {\n      //     originalAction.schedule(counter + 1);\n      //   }, 100);\n      // }, 1000);\n      // ```\n      this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n    }\n  }\n\n  protected _execute(state: T, _delay: number): any {\n    let errored: boolean = false;\n    let errorValue: any;\n    try {\n      this.work(state);\n    } catch (e) {\n      errored = true;\n      // HACK: Since code elsewhere is relying on the \"truthiness\" of the\n      // return here, we can't have it return \"\" or 0 or false.\n      // TODO: Clean this up when we refactor schedulers mid-version-8 or so.\n      errorValue = e ? e : new Error('Scheduled action threw falsy error');\n    }\n    if (errored) {\n      this.unsubscribe();\n      return errorValue;\n    }\n  }\n\n  unsubscribe() {\n    if (!this.closed) {\n      const { id, scheduler } = this;\n      const { actions } = scheduler;\n\n      this.work = this.state = this.scheduler = null!;\n      this.pending = false;\n\n      arrRemove(actions, this);\n      if (id != null) {\n        this.id = this.recycleAsyncId(scheduler, id, null);\n      }\n\n      this.delay = null!;\n      super.unsubscribe();\n    }\n  }\n}\n", "import { Action } from './scheduler/Action';\nimport { Subscription } from './Subscription';\nimport { SchedulerLike, SchedulerAction } from './types';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an `Action`.\n *\n * ```ts\n * class Scheduler {\n *   now(): number;\n *   schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n * @deprecated Scheduler is an internal implementation detail of RxJS, and\n * should not be used directly. Rather, create your own class and implement\n * {@link SchedulerLike}. Will be made internal in v8.\n */\nexport class Scheduler implements SchedulerLike {\n  public static now: () => number = dateTimestampProvider.now;\n\n  constructor(private schedulerActionCtor: typeof Action, now: () => number = Scheduler.now) {\n    this.now = now;\n  }\n\n  /**\n   * A getter method that returns a number representing the current time\n   * (at the time this function was called) according to the scheduler's own\n   * internal clock.\n   * @return {number} A number that represents the current time. May or may not\n   * have a relation to wall-clock time. May or may not refer to a time unit\n   * (e.g. milliseconds).\n   */\n  public now: () => number;\n\n  /**\n   * Schedules a function, `work`, for execution. May happen at some point in\n   * the future, according to the `delay` parameter, if specified. May be passed\n   * some context object, `state`, which will be passed to the `work` function.\n   *\n   * The given arguments will be processed an stored as an Action object in a\n   * queue of actions.\n   *\n   * @param {function(state: ?T): ?Subscription} work A function representing a\n   * task, or some unit of work to be executed by the Scheduler.\n   * @param {number} [delay] Time to wait before executing the work, where the\n   * time unit is implicit and defined by the Scheduler itself.\n   * @param {T} [state] Some contextual data that the `work` function uses when\n   * called by the Scheduler.\n   * @return {Subscription} A subscription in order to be able to unsubscribe\n   * the scheduled work.\n   */\n  public schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay: number = 0, state?: T): Subscription {\n    return new this.schedulerActionCtor<T>(this, work).schedule(state, delay);\n  }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Action } from './Action';\nimport { AsyncAction } from './AsyncAction';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncScheduler extends Scheduler {\n  public actions: Array<AsyncAction<any>> = [];\n  /**\n   * A flag to indicate whether the Scheduler is currently executing a batch of\n   * queued actions.\n   * @type {boolean}\n   * @internal\n   */\n  public _active: boolean = false;\n  /**\n   * An internal ID used to track the latest asynchronous task such as those\n   * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n   * others.\n   * @type {any}\n   * @internal\n   */\n  public _scheduled: TimerHandle | undefined;\n\n  constructor(SchedulerAction: typeof Action, now: () => number = Scheduler.now) {\n    super(SchedulerAction, now);\n  }\n\n  public flush(action: AsyncAction<any>): void {\n    const { actions } = this;\n\n    if (this._active) {\n      actions.push(action);\n      return;\n    }\n\n    let error: any;\n    this._active = true;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions.shift()!)); // exhaust the scheduler queue\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions.shift()!)) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\n/**\n *\n * Async Scheduler\n *\n * <span class=\"informal\">Schedule task as if you used setTimeout(task, duration)</span>\n *\n * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript\n * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating\n * in intervals.\n *\n * If you just want to \"defer\" task, that is to perform it right after currently\n * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),\n * better choice will be the {@link asapScheduler} scheduler.\n *\n * ## Examples\n * Use async scheduler to delay task\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * const task = () => console.log('it works!');\n *\n * asyncScheduler.schedule(task, 2000);\n *\n * // After 2 seconds logs:\n * // \"it works!\"\n * ```\n *\n * Use async scheduler to repeat task in intervals\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * function task(state) {\n *   console.log(state);\n *   this.schedule(state + 1, 1000); // `this` references currently executing Action,\n *                                   // which we reschedule with new state and delay\n * }\n *\n * asyncScheduler.schedule(task, 3000, 0);\n *\n * // Logs:\n * // 0 after 3s\n * // 1 after 4s\n * // 2 after 5s\n * // 3 after 6s\n * ```\n */\n\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\n\n/**\n * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8.\n */\nexport const async = asyncScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { Subscription } from '../Subscription';\nimport { QueueScheduler } from './QueueScheduler';\nimport { SchedulerAction } from '../types';\nimport { TimerHandle } from './timerHandle';\n\nexport class QueueAction<T> extends AsyncAction<T> {\n  constructor(protected scheduler: QueueScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  public schedule(state?: T, delay: number = 0): Subscription {\n    if (delay > 0) {\n      return super.schedule(state, delay);\n    }\n    this.delay = delay;\n    this.state = state;\n    this.scheduler.flush(this);\n    return this;\n  }\n\n  public execute(state: T, delay: number): any {\n    return delay > 0 || this.closed ? super.execute(state, delay) : this._execute(state, delay);\n  }\n\n  protected requestAsyncId(scheduler: QueueScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n    // If delay exists and is greater than 0, or if the delay is null (the\n    // action wasn't rescheduled) but was originally scheduled as an async\n    // action, then recycle as an async action.\n\n    if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) {\n      return super.requestAsyncId(scheduler, id, delay);\n    }\n\n    // Otherwise flush the scheduler starting with this action.\n    scheduler.flush(this);\n\n    // HACK: In the past, this was returning `void`. However, `void` isn't a valid\n    // `TimerHandle`, and generally the return value here isn't really used. So the\n    // compromise is to return `0` which is both \"falsy\" and a valid `TimerHandle`,\n    // as opposed to refactoring every other instanceo of `requestAsyncId`.\n    return 0;\n  }\n}\n", "import { AsyncScheduler } from './AsyncScheduler';\n\nexport class QueueScheduler extends AsyncScheduler {\n}\n", "import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\n\n/**\n *\n * Queue Scheduler\n *\n * <span class=\"informal\">Put every next task on a queue, instead of executing it immediately</span>\n *\n * `queue` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler.\n *\n * When used without delay, it schedules given task synchronously - executes it right when\n * it is scheduled. However when called recursively, that is when inside the scheduled task,\n * another task is scheduled with queue scheduler, instead of executing immediately as well,\n * that task will be put on a queue and wait for current one to finish.\n *\n * This means that when you execute task with `queue` scheduler, you are sure it will end\n * before any other task scheduled with that scheduler will start.\n *\n * ## Examples\n * Schedule recursively first, then do something\n * ```ts\n * import { queueScheduler } from 'rxjs';\n *\n * queueScheduler.schedule(() => {\n *   queueScheduler.schedule(() => console.log('second')); // will not happen now, but will be put on a queue\n *\n *   console.log('first');\n * });\n *\n * // Logs:\n * // \"first\"\n * // \"second\"\n * ```\n *\n * Reschedule itself recursively\n * ```ts\n * import { queueScheduler } from 'rxjs';\n *\n * queueScheduler.schedule(function(state) {\n *   if (state !== 0) {\n *     console.log('before', state);\n *     this.schedule(state - 1); // `this` references currently executing Action,\n *                               // which we reschedule with new state\n *     console.log('after', state);\n *   }\n * }, 0, 3);\n *\n * // In scheduler that runs recursively, you would expect:\n * // \"before\", 3\n * // \"before\", 2\n * // \"before\", 1\n * // \"after\", 1\n * // \"after\", 2\n * // \"after\", 3\n *\n * // But with queue it logs:\n * // \"before\", 3\n * // \"after\", 3\n * // \"before\", 2\n * // \"after\", 2\n * // \"before\", 1\n * // \"after\", 1\n * ```\n */\n\nexport const queueScheduler = new QueueScheduler(QueueAction);\n\n/**\n * @deprecated Renamed to {@link queueScheduler}. Will be removed in v8.\n */\nexport const queue = queueScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nimport { SchedulerAction } from '../types';\nimport { animationFrameProvider } from './animationFrameProvider';\nimport { TimerHandle } from './timerHandle';\n\nexport class AnimationFrameAction<T> extends AsyncAction<T> {\n  constructor(protected scheduler: AnimationFrameScheduler, protected work: (this: SchedulerAction<T>, state?: T) => void) {\n    super(scheduler, work);\n  }\n\n  protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n    // If delay is greater than 0, request as an async action.\n    if (delay !== null && delay > 0) {\n      return super.requestAsyncId(scheduler, id, delay);\n    }\n    // Push the action to the end of the scheduler queue.\n    scheduler.actions.push(this);\n    // If an animation frame has already been requested, don't request another\n    // one. If an animation frame hasn't been requested yet, request one. Return\n    // the current animation frame request id.\n    return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n  }\n\n  protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined {\n    // If delay exists and is greater than 0, or if the delay is null (the\n    // action wasn't rescheduled) but was originally scheduled as an async\n    // action, then recycle as an async action.\n    if (delay != null ? delay > 0 : this.delay > 0) {\n      return super.recycleAsyncId(scheduler, id, delay);\n    }\n    // If the scheduler queue has no remaining actions with the same async id,\n    // cancel the requested animation frame and set the scheduled flag to\n    // undefined so the next AnimationFrameAction will request its own.\n    const { actions } = scheduler;\n    if (id != null && actions[actions.length - 1]?.id !== id) {\n      animationFrameProvider.cancelAnimationFrame(id as number);\n      scheduler._scheduled = undefined;\n    }\n    // Return undefined so the action knows to request a new async id if it's rescheduled.\n    return undefined;\n  }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AnimationFrameScheduler extends AsyncScheduler {\n  public flush(action?: AsyncAction<any>): void {\n    this._active = true;\n    // The async id that effects a call to flush is stored in _scheduled.\n    // Before executing an action, it's necessary to check the action's async\n    // id to determine whether it's supposed to be executed in the current\n    // flush.\n    // Previous implementations of this method used a count to determine this,\n    // but that was unsound, as actions that are unsubscribed - i.e. cancelled -\n    // are removed from the actions array and that can shift actions that are\n    // scheduled to be executed in a subsequent flush into positions at which\n    // they are executed within the current flush.\n    const flushId = this._scheduled;\n    this._scheduled = undefined;\n\n    const { actions } = this;\n    let error: any;\n    action = action || actions.shift()!;\n\n    do {\n      if ((error = action.execute(action.state, action.delay))) {\n        break;\n      }\n    } while ((action = actions[0]) && action.id === flushId && actions.shift());\n\n    this._active = false;\n\n    if (error) {\n      while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n", "import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n *\n * Animation Frame Scheduler\n *\n * <span class=\"informal\">Perform task when `window.requestAnimationFrame` would fire</span>\n *\n * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler\n * behaviour.\n *\n * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.\n * It makes sure scheduled task will happen just before next browser content repaint,\n * thus performing animations as efficiently as possible.\n *\n * ## Example\n * Schedule div height animation\n * ```ts\n * // html: <div style=\"background: #0ff;\"></div>\n * import { animationFrameScheduler } from 'rxjs';\n *\n * const div = document.querySelector('div');\n *\n * animationFrameScheduler.schedule(function(height) {\n *   div.style.height = height + \"px\";\n *\n *   this.schedule(height + 1);  // `this` references currently executing Action,\n *                               // which we reschedule with new state\n * }, 0, 0);\n *\n * // You will see a div element growing in height\n * ```\n */\n\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\n\n/**\n * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8.\n */\nexport const animationFrame = animationFrameScheduler;\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\n/**\n * A simple Observable that emits no items to the Observer and immediately\n * emits a complete notification.\n *\n * <span class=\"informal\">Just emits 'complete', and nothing else.</span>\n *\n * ![](empty.png)\n *\n * A simple Observable that only emits the complete notification. It can be used\n * for composing with other Observables, such as in a {@link mergeMap}.\n *\n * ## Examples\n *\n * Log complete notification\n *\n * ```ts\n * import { EMPTY } from 'rxjs';\n *\n * EMPTY.subscribe({\n *   next: () => console.log('Next'),\n *   complete: () => console.log('Complete!')\n * });\n *\n * // Outputs\n * // Complete!\n * ```\n *\n * Emit the number 7, then complete\n *\n * ```ts\n * import { EMPTY, startWith } from 'rxjs';\n *\n * const result = EMPTY.pipe(startWith(7));\n * result.subscribe(x => console.log(x));\n *\n * // Outputs\n * // 7\n * ```\n *\n * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`\n *\n * ```ts\n * import { interval, mergeMap, of, EMPTY } from 'rxjs';\n *\n * const interval$ = interval(1000);\n * const result = interval$.pipe(\n *   mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following to the console:\n * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)\n * // x will occur every 1000ms\n * // if x % 2 is equal to 1, print a, b, c (each on its own)\n * // if x % 2 is not equal to 1, nothing will be output\n * ```\n *\n * @see {@link Observable}\n * @see {@link NEVER}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const EMPTY = new Observable<never>((subscriber) => subscriber.complete());\n\n/**\n * @param scheduler A {@link SchedulerLike} to use for scheduling\n * the emission of the complete notification.\n * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.\n */\nexport function empty(scheduler?: SchedulerLike) {\n  return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\n\nfunction emptyScheduled(scheduler: SchedulerLike) {\n  return new Observable<never>((subscriber) => scheduler.schedule(() => subscriber.complete()));\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport function isScheduler(value: any): value is SchedulerLike {\n  return value && isFunction(value.schedule);\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\n\nfunction last<T>(arr: T[]): T | undefined {\n  return arr[arr.length - 1];\n}\n\nexport function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined {\n  return isFunction(last(args)) ? args.pop() : undefined;\n}\n\nexport function popScheduler(args: any[]): SchedulerLike | undefined {\n  return isScheduler(last(args)) ? args.pop() : undefined;\n}\n\nexport function popNumber(args: any[], defaultValue: number): number {\n  return typeof last(args) === 'number' ? args.pop()! : defaultValue;\n}\n", "export const isArrayLike = (<T>(x: any): x is ArrayLike<T> => x && typeof x.length === 'number' && typeof x !== 'function');", "import { isFunction } from \"./isFunction\";\n\n/**\n * Tests to see if the object is \"thennable\".\n * @param value the object to test\n */\nexport function isPromise(value: any): value is PromiseLike<any> {\n  return isFunction(value?.then);\n}\n", "import { InteropObservable } from '../types';\nimport { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being Observable (but not necessary an Rx Observable) */\nexport function isInteropObservable(input: any): input is InteropObservable<any> {\n  return isFunction(input[Symbol_observable]);\n}\n", "import { isFunction } from './isFunction';\n\nexport function isAsyncIterable<T>(obj: any): obj is AsyncIterable<T> {\n  return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]);\n}\n", "/**\n * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`.\n * @param input The object that was passed.\n */\nexport function createInvalidObservableTypeError(input: any) {\n  // TODO: We should create error codes that can be looked up, so this can be less verbose.\n  return new TypeError(\n    `You provided ${\n      input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`\n    } where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`\n  );\n}\n", "export function getSymbolIterator(): symbol {\n  if (typeof Symbol !== 'function' || !Symbol.iterator) {\n    return '@@iterator' as any;\n  }\n\n  return Symbol.iterator;\n}\n\nexport const iterator = getSymbolIterator();\n", "import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being an Iterable */\nexport function isIterable(input: any): input is Iterable<any> {\n  return isFunction(input?.[Symbol_iterator]);\n}\n", "import { ReadableStreamLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport async function* readableStreamLikeToAsyncGenerator<T>(readableStream: ReadableStreamLike<T>): AsyncGenerator<T> {\n  const reader = readableStream.getReader();\n  try {\n    while (true) {\n      const { value, done } = await reader.read();\n      if (done) {\n        return;\n      }\n      yield value!;\n    }\n  } finally {\n    reader.releaseLock();\n  }\n}\n\nexport function isReadableStreamLike<T>(obj: any): obj is ReadableStreamLike<T> {\n  // We don't want to use instanceof checks because they would return\n  // false for instances from another Realm, like an <iframe>.\n  return isFunction(obj?.getReader);\n}\n", "import { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { Subscriber } from '../Subscriber';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\n\nexport function innerFrom<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\nexport function innerFrom<T>(input: ObservableInput<T>): Observable<T> {\n  if (input instanceof Observable) {\n    return input;\n  }\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return fromInteropObservable(input);\n    }\n    if (isArrayLike(input)) {\n      return fromArrayLike(input);\n    }\n    if (isPromise(input)) {\n      return fromPromise(input);\n    }\n    if (isAsyncIterable(input)) {\n      return fromAsyncIterable(input);\n    }\n    if (isIterable(input)) {\n      return fromIterable(input);\n    }\n    if (isReadableStreamLike(input)) {\n      return fromReadableStreamLike(input);\n    }\n  }\n\n  throw createInvalidObservableTypeError(input);\n}\n\n/**\n * Creates an RxJS Observable from an object that implements `Symbol.observable`.\n * @param obj An object that properly implements `Symbol.observable`.\n */\nexport function fromInteropObservable<T>(obj: any) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    const obs = obj[Symbol_observable]();\n    if (isFunction(obs.subscribe)) {\n      return obs.subscribe(subscriber);\n    }\n    // Should be caught by observable subscribe function error handling.\n    throw new TypeError('Provided object does not correctly implement Symbol.observable');\n  });\n}\n\n/**\n * Synchronously emits the values of an array like and completes.\n * This is exported because there are creation functions and operators that need to\n * make direct use of the same logic, and there's no reason to make them run through\n * `from` conditionals because we *know* they're dealing with an array.\n * @param array The array to emit values from\n */\nexport function fromArrayLike<T>(array: ArrayLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    // Loop over the array and emit each value. Note two things here:\n    // 1. We're making sure that the subscriber is not closed on each loop.\n    //    This is so we don't continue looping over a very large array after\n    //    something like a `take`, `takeWhile`, or other synchronous unsubscription\n    //    has already unsubscribed.\n    // 2. In this form, reentrant code can alter that array we're looping over.\n    //    This is a known issue, but considered an edge case. The alternative would\n    //    be to copy the array before executing the loop, but this has\n    //    performance implications.\n    for (let i = 0; i < array.length && !subscriber.closed; i++) {\n      subscriber.next(array[i]);\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromPromise<T>(promise: PromiseLike<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    promise\n      .then(\n        (value) => {\n          if (!subscriber.closed) {\n            subscriber.next(value);\n            subscriber.complete();\n          }\n        },\n        (err: any) => subscriber.error(err)\n      )\n      .then(null, reportUnhandledError);\n  });\n}\n\nexport function fromIterable<T>(iterable: Iterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    for (const value of iterable) {\n      subscriber.next(value);\n      if (subscriber.closed) {\n        return;\n      }\n    }\n    subscriber.complete();\n  });\n}\n\nexport function fromAsyncIterable<T>(asyncIterable: AsyncIterable<T>) {\n  return new Observable((subscriber: Subscriber<T>) => {\n    process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n  });\n}\n\nexport function fromReadableStreamLike<T>(readableStream: ReadableStreamLike<T>) {\n  return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\n\nasync function process<T>(asyncIterable: AsyncIterable<T>, subscriber: Subscriber<T>) {\n  for await (const value of asyncIterable) {\n    subscriber.next(value);\n    // A side-effect may have closed our subscriber,\n    // check before the next iteration.\n    if (subscriber.closed) {\n      return;\n    }\n  }\n  subscriber.complete();\n}\n", "import { Subscription } from '../Subscription';\nimport { SchedulerAction, SchedulerLike } from '../types';\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay: number,\n  repeat: true\n): void;\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay?: number,\n  repeat?: false\n): Subscription;\n\nexport function executeSchedule(\n  parentSubscription: Subscription,\n  scheduler: SchedulerLike,\n  work: () => void,\n  delay = 0,\n  repeat = false\n): Subscription | void {\n  const scheduleSubscription = scheduler.schedule(function (this: SchedulerAction<any>) {\n    work();\n    if (repeat) {\n      parentSubscription.add(this.schedule(null, delay));\n    } else {\n      this.unsubscribe();\n    }\n  }, delay);\n\n  parentSubscription.add(scheduleSubscription);\n\n  if (!repeat) {\n    // Because user-land scheduler implementations are unlikely to properly reuse\n    // Actions for repeat scheduling, we can't trust that the returned subscription\n    // will control repeat subscription scenarios. So we're trying to avoid using them\n    // incorrectly within this library.\n    return scheduleSubscription;\n  }\n}\n", "/** @prettier */\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Re-emits all notifications from source Observable with specified scheduler.\n *\n * <span class=\"informal\">Ensure a specific scheduler is used, from outside of an Observable.</span>\n *\n * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule\n * notifications emitted by the source Observable. It might be useful, if you do not have control over\n * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.\n *\n * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,\n * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal\n * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits\n * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.\n * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split\n * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source\n * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a\n * little bit more, to ensure that they are emitted at expected moments.\n *\n * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications\n * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`\n * will delay all notifications - including error notifications - while `delay` will pass through error\n * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator\n * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used\n * for notification emissions in general.\n *\n * ## Example\n *\n * Ensure values in subscribe are called just before browser repaint\n *\n * ```ts\n * import { interval, observeOn, animationFrameScheduler } from 'rxjs';\n *\n * const someDiv = document.createElement('div');\n * someDiv.style.cssText = 'width: 200px;background: #09c';\n * document.body.appendChild(someDiv);\n * const intervals = interval(10);      // Intervals are scheduled\n *                                      // with async scheduler by default...\n * intervals.pipe(\n *   observeOn(animationFrameScheduler) // ...but we will observe on animationFrame\n * )                                    // scheduler to ensure smooth animation.\n * .subscribe(val => {\n *   someDiv.style.height = val + 'px';\n * });\n * ```\n *\n * @see {@link delay}\n *\n * @param scheduler Scheduler that will be used to reschedule notifications from source Observable.\n * @param delay Number of milliseconds that states with what delay every notification should be rescheduled.\n * @return A function that returns an Observable that emits the same\n * notifications as the source Observable, but with provided scheduler.\n */\nexport function observeOn<T>(scheduler: SchedulerLike, delay = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay),\n        () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay),\n        (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}.\n *\n * With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to.\n *\n * Schedulers control the speed and order of emissions to observers from an Observable stream.\n *\n * ![](subscribeOn.png)\n *\n * ## Example\n *\n * Given the following code:\n *\n * ```ts\n * import { of, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3);\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 1\n * // 2\n * // 3\n * // 4\n * // 5\n * // 6\n * ```\n *\n * Both Observable `a` and `b` will emit their values directly and synchronously once they are subscribed to.\n *\n * If we instead use the `subscribeOn` operator declaring that we want to use the {@link asyncScheduler} for values emitted by Observable `a`:\n *\n * ```ts\n * import { of, subscribeOn, asyncScheduler, merge } from 'rxjs';\n *\n * const a = of(1, 2, 3).pipe(subscribeOn(asyncScheduler));\n * const b = of(4, 5, 6);\n *\n * merge(a, b).subscribe(console.log);\n *\n * // Outputs\n * // 4\n * // 5\n * // 6\n * // 1\n * // 2\n * // 3\n * ```\n *\n * The reason for this is that Observable `b` emits its values directly and synchronously like before\n * but the emissions from `a` are scheduled on the event loop because we are now using the {@link asyncScheduler} for that specific Observable.\n *\n * @param scheduler The {@link SchedulerLike} to perform subscription actions on.\n * @param delay A delay to pass to the scheduler to delay subscriptions\n * @return A function that returns an Observable modified so that its\n * subscriptions happen on the specified {@link SchedulerLike}.\n */\nexport function subscribeOn<T>(scheduler: SchedulerLike, delay: number = 0): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { InteropObservable, SchedulerLike } from '../types';\n\nexport function scheduleObservable<T>(input: InteropObservable<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { SchedulerLike } from '../types';\n\nexport function schedulePromise<T>(input: PromiseLike<T>, scheduler: SchedulerLike) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\nexport function scheduleArray<T>(input: ArrayLike<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    // The current array index.\n    let i = 0;\n    // Start iterating over the array like on a schedule.\n    return scheduler.schedule(function () {\n      if (i === input.length) {\n        // If we have hit the end of the array like in the\n        // previous job, we can complete.\n        subscriber.complete();\n      } else {\n        // Otherwise let's next the value at the current index,\n        // then increment our index.\n        subscriber.next(input[i++]);\n        // If the last emission didn't cause us to close the subscriber\n        // (via take or some side effect), reschedule the job and we'll\n        // make another pass.\n        if (!subscriber.closed) {\n          this.schedule();\n        }\n      }\n    });\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\n\n/**\n * Used in {@link scheduled} to create an observable from an Iterable.\n * @param input The iterable to create an observable from\n * @param scheduler The scheduler to use\n */\nexport function scheduleIterable<T>(input: Iterable<T>, scheduler: SchedulerLike) {\n  return new Observable<T>((subscriber) => {\n    let iterator: Iterator<T, T>;\n\n    // Schedule the initial creation of the iterator from\n    // the iterable. This is so the code in the iterable is\n    // not called until the scheduled job fires.\n    executeSchedule(subscriber, scheduler, () => {\n      // Create the iterator.\n      iterator = (input as any)[Symbol_iterator]();\n\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          let value: T;\n          let done: boolean | undefined;\n          try {\n            // Pull the value out of the iterator\n            ({ value, done } = iterator.next());\n          } catch (err) {\n            // We got an error while pulling from the iterator\n            subscriber.error(err);\n            return;\n          }\n\n          if (done) {\n            // If it is \"done\" we just complete. This mimics the\n            // behavior of JavaScript's `for..of` consumption of\n            // iterables, which will not emit the value from an iterator\n            // result of `{ done: true: value: 'here' }`.\n            subscriber.complete();\n          } else {\n            // The iterable is not done, emit the value.\n            subscriber.next(value);\n          }\n        },\n        0,\n        true\n      );\n    });\n\n    // During finalization, if we see this iterator has a `return` method,\n    // then we know it is a Generator, and not just an Iterator. So we call\n    // the `return()` function. This will ensure that any `finally { }` blocks\n    // inside of the generator we can hit will be hit properly.\n    return () => isFunction(iterator?.return) && iterator.return();\n  });\n}\n", "import { SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\n\nexport function scheduleAsyncIterable<T>(input: AsyncIterable<T>, scheduler: SchedulerLike) {\n  if (!input) {\n    throw new Error('Iterable cannot be null');\n  }\n  return new Observable<T>((subscriber) => {\n    executeSchedule(subscriber, scheduler, () => {\n      const iterator = input[Symbol.asyncIterator]();\n      executeSchedule(\n        subscriber,\n        scheduler,\n        () => {\n          iterator.next().then((result) => {\n            if (result.done) {\n              // This will remove the subscriptions from\n              // the parent subscription.\n              subscriber.complete();\n            } else {\n              subscriber.next(result.value);\n            }\n          });\n        },\n        0,\n        true\n      );\n    });\n  });\n}\n", "import { SchedulerLike, ReadableStreamLike } from '../types';\nimport { Observable } from '../Observable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\n\nexport function scheduleReadableStreamLike<T>(input: ReadableStreamLike<T>, scheduler: SchedulerLike): Observable<T> {\n  return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n", "import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\n\n/**\n * Converts from a common {@link ObservableInput} type to an observable where subscription and emissions\n * are scheduled on the provided scheduler.\n *\n * @see {@link from}\n * @see {@link of}\n *\n * @param input The observable, array, promise, iterable, etc you would like to schedule\n * @param scheduler The scheduler to use to schedule the subscription and emissions from\n * the returned observable.\n */\nexport function scheduled<T>(input: ObservableInput<T>, scheduler: SchedulerLike): Observable<T> {\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return scheduleObservable(input, scheduler);\n    }\n    if (isArrayLike(input)) {\n      return scheduleArray(input, scheduler);\n    }\n    if (isPromise(input)) {\n      return schedulePromise(input, scheduler);\n    }\n    if (isAsyncIterable(input)) {\n      return scheduleAsyncIterable(input, scheduler);\n    }\n    if (isIterable(input)) {\n      return scheduleIterable(input, scheduler);\n    }\n    if (isReadableStreamLike(input)) {\n      return scheduleReadableStreamLike(input, scheduler);\n    }\n  }\n  throw createInvalidObservableTypeError(input);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf } from '../types';\nimport { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\n\nexport function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function from<O extends ObservableInput<any>>(input: O, scheduler: SchedulerLike | undefined): Observable<ObservedValueOf<O>>;\n\n/**\n * Creates an Observable from an Array, an array-like object, a Promise, an iterable object, or an Observable-like object.\n *\n * <span class=\"informal\">Converts almost anything to an Observable.</span>\n *\n * ![](from.png)\n *\n * `from` converts various other objects and data types into Observables. It also converts a Promise, an array-like, or an\n * <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable\" target=\"_blank\">iterable</a>\n * object into an Observable that emits the items in that promise, array, or iterable. A String, in this context, is treated\n * as an array of characters. Observable-like objects (contains a function named with the ES2015 Symbol for Observable) can also be\n * converted through this operator.\n *\n * ## Examples\n *\n * Converts an array to an Observable\n *\n * ```ts\n * import { from } from 'rxjs';\n *\n * const array = [10, 20, 30];\n * const result = from(array);\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 10\n * // 20\n * // 30\n * ```\n *\n * Convert an infinite iterable (from a generator) to an Observable\n *\n * ```ts\n * import { from, take } from 'rxjs';\n *\n * function* generateDoubles(seed) {\n *    let i = seed;\n *    while (true) {\n *      yield i;\n *      i = 2 * i; // double it\n *    }\n * }\n *\n * const iterator = generateDoubles(3);\n * const result = from(iterator).pipe(take(10));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 3\n * // 6\n * // 12\n * // 24\n * // 48\n * // 96\n * // 192\n * // 384\n * // 768\n * // 1536\n * ```\n *\n * With `asyncScheduler`\n *\n * ```ts\n * import { from, asyncScheduler } from 'rxjs';\n *\n * console.log('start');\n *\n * const array = [10, 20, 30];\n * const result = from(array, asyncScheduler);\n *\n * result.subscribe(x => console.log(x));\n *\n * console.log('end');\n *\n * // Logs:\n * // 'start'\n * // 'end'\n * // 10\n * // 20\n * // 30\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link fromEventPattern}\n *\n * @param {ObservableInput<T>} A subscription object, a Promise, an Observable-like,\n * an Array, an iterable, or an array-like object to be converted.\n * @param {SchedulerLike} An optional {@link SchedulerLike} on which to schedule the emission of values.\n * @return {Observable<T>}\n */\nexport function from<T>(input: ObservableInput<T>, scheduler?: SchedulerLike): Observable<T> {\n  return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n", "import { SchedulerLike, ValueFromArray } from '../types';\nimport { Observable } from '../Observable';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function of(value: null): Observable<null>;\nexport function of(value: undefined): Observable<undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of(scheduler: SchedulerLike): Observable<never>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function of<A extends readonly unknown[]>(...valuesAndScheduler: [...A, SchedulerLike]): Observable<ValueFromArray<A>>;\n\nexport function of(): Observable<never>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function of<T>(): Observable<T>;\nexport function of<T>(value: T): Observable<T>;\nexport function of<A extends readonly unknown[]>(...values: A): Observable<ValueFromArray<A>>;\n\n/**\n * Converts the arguments to an observable sequence.\n *\n * <span class=\"informal\">Each argument becomes a `next` notification.</span>\n *\n * ![](of.png)\n *\n * Unlike {@link from}, it does not do any flattening and emits each argument in whole\n * as a separate `next` notification.\n *\n * ## Examples\n *\n * Emit the values `10, 20, 30`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of(10, 20, 30)\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: 10\n * // next: 20\n * // next: 30\n * // the end\n * ```\n *\n * Emit the array `[1, 2, 3]`\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * of([1, 2, 3])\n *   .subscribe({\n *     next: value => console.log('next:', value),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // Outputs\n * // next: [1, 2, 3]\n * // the end\n * ```\n *\n * @see {@link from}\n * @see {@link range}\n *\n * @param {...T} values A comma separated list of arguments you want to be emitted\n * @return {Observable} An Observable that emits the arguments\n * described above and then completes.\n */\nexport function of<T>(...args: Array<T | SchedulerLike>): Observable<T> {\n  const scheduler = popScheduler(args);\n  return from(args as T[], scheduler);\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { SchedulerLike } from '../types';\nimport { isFunction } from '../util/isFunction';\n\n/**\n * Creates an observable that will create an error instance and push it to the consumer as an error\n * immediately upon subscription.\n *\n * <span class=\"informal\">Just errors and does nothing else</span>\n *\n * ![](throw.png)\n *\n * This creation function is useful for creating an observable that will create an error and error every\n * time it is subscribed to. Generally, inside of most operators when you might want to return an errored\n * observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap},\n * {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick\n * that up and notify the consumer of the error.\n *\n * ## Example\n *\n * Create a simple observable that will create a new error with a timestamp and log it\n * and the message every time you subscribe to it\n *\n * ```ts\n * import { throwError } from 'rxjs';\n *\n * let errorCount = 0;\n *\n * const errorWithTimestamp$ = throwError(() => {\n *   const error: any = new Error(`This is error number ${ ++errorCount }`);\n *   error.timestamp = Date.now();\n *   return error;\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * errorWithTimestamp$.subscribe({\n *   error: err => console.log(err.timestamp, err.message)\n * });\n *\n * // Logs the timestamp and a new error message for each subscription\n * ```\n *\n * ### Unnecessary usage\n *\n * Using `throwError` inside of an operator or creation function\n * with a callback, is usually not necessary\n *\n * ```ts\n * import { of, concatMap, timer, throwError } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // This is probably overkill.\n *       return throwError(() => new Error(`Invalid time ${ ms }`));\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * You can just throw the error instead\n *\n * ```ts\n * import { of, concatMap, timer } from 'rxjs';\n *\n * const delays$ = of(1000, 2000, Infinity, 3000);\n *\n * delays$.pipe(\n *   concatMap(ms => {\n *     if (ms < 10000) {\n *       return timer(ms);\n *     } else {\n *       // Cleaner and easier to read for most folks.\n *       throw new Error(`Invalid time ${ ms }`);\n *     }\n *   })\n * )\n * .subscribe({\n *   next: console.log,\n *   error: console.error\n * });\n * ```\n *\n * @param errorFactory A factory function that will create the error instance that is pushed.\n */\nexport function throwError(errorFactory: () => any): Observable<never>;\n\n/**\n * Returns an observable that will error with the specified error immediately upon subscription.\n *\n * @param error The error instance to emit\n * @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is\n * because it will create the error at the moment it should be created and capture a more appropriate stack trace. If\n * for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`.\n */\nexport function throwError(error: any): Observable<never>;\n\n/**\n * Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription.\n *\n * @param errorOrErrorFactory An error instance or error factory\n * @param scheduler A scheduler to use to schedule the error notification\n * @deprecated The `scheduler` parameter will be removed in v8.\n * Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`.\n * Details: https://rxjs.dev/deprecations/scheduler-argument\n */\nexport function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable<never>;\n\nexport function throwError(errorOrErrorFactory: any, scheduler?: SchedulerLike): Observable<never> {\n  const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n  const init = (subscriber: Subscriber<never>) => subscriber.error(errorFactory());\n  return new Observable(scheduler ? (subscriber) => scheduler.schedule(init as any, 0, subscriber) : init);\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface EmptyError extends Error {}\n\nexport interface EmptyErrorCtor {\n  /**\n   * @deprecated Internal implementation detail. Do not construct error instances.\n   * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n   */\n  new (): EmptyError;\n}\n\n/**\n * An error thrown when an Observable or a sequence was queried but has no\n * elements.\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link single}\n * @see {@link firstValueFrom}\n * @see {@link lastValueFrom}\n *\n * @class EmptyError\n */\nexport const EmptyError: EmptyErrorCtor = createErrorClass((_super) => function EmptyErrorImpl(this: any) {\n  _super(this);\n  this.name = 'EmptyError';\n  this.message = 'no elements in sequence';\n});\n", "/**\n * Checks to see if a value is not only a `Date` object,\n * but a *valid* `Date` object that can be converted to a\n * number. For example, `new Date('blah')` is indeed an\n * `instanceof Date`, however it cannot be converted to a\n * number.\n */\nexport function isValidDate(value: any): value is Date {\n  return value instanceof Date && !isNaN(value as any);\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function map<T, R>(project: (value: T, index: number) => R): OperatorFunction<T, R>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function map<T, R, A>(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction<T, R>;\n\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * ![](map.png)\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * ## Example\n *\n * Map every click to the `clientX` position of that click\n *\n * ```ts\n * import { fromEvent, map } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const positions = clicks.pipe(map(ev => ev.clientX));\n *\n * positions.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return A function that returns an Observable that emits the values from the\n * source Observable transformed by the given `project` function.\n */\nexport function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R> {\n  return operate((source, subscriber) => {\n    // The index of the value from the source. Used with projection.\n    let index = 0;\n    // Subscribe to the source, all errors and completions are sent along\n    // to the consumer.\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value: T) => {\n        // Call the projection function with the appropriate this context,\n        // and send the resulting value to the consumer.\n        subscriber.next(project.call(thisArg, value, index++));\n      })\n    );\n  });\n}\n", "import { OperatorFunction } from \"../types\";\nimport { map } from \"../operators/map\";\n\nconst { isArray } = Array;\n\nfunction callOrApply<T, R>(fn: ((...values: T[]) => R), args: T|T[]): R {\n    return isArray(args) ? fn(...args) : fn(args);\n}\n\n/**\n * Used in several -- mostly deprecated -- situations where we need to \n * apply a list of arguments or a single argument to a result selector.\n */\nexport function mapOneOrManyArgs<T, R>(fn: ((...values: T[]) => R)): OperatorFunction<T|T[], R> {\n    return map(args => callOrApply(fn, args))\n}", "const { isArray } = Array;\nconst { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object;\n\n/**\n * Used in functions where either a list of arguments, a single array of arguments, or a\n * dictionary of arguments can be returned. Returns an object with an `args` property with\n * the arguments in an array, if it is a dictionary, it will also return the `keys` in another\n * property.\n */\nexport function argsArgArrayOrObject<T, O extends Record<string, T>>(args: T[] | [O] | [T[]]): { args: T[]; keys: string[] | null } {\n  if (args.length === 1) {\n    const first = args[0];\n    if (isArray(first)) {\n      return { args: first, keys: null };\n    }\n    if (isPOJO(first)) {\n      const keys = getKeys(first);\n      return {\n        args: keys.map((key) => first[key]),\n        keys,\n      };\n    }\n  }\n\n  return { args: args as T[], keys: null };\n}\n\nfunction isPOJO(obj: any): obj is object {\n  return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n", "export function createObject(keys: string[], values: any[]) {\n  return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { Subscriber } from '../Subscriber';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { Subscription } from '../Subscription';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { AnyCatcher } from '../AnyCatcher';\nimport { executeSchedule } from '../util/executeSchedule';\n\n// combineLatest(any)\n// We put this first because we need to catch cases where the user has supplied\n// _exactly `any`_ as the argument. Since `any` literally matches _anything_,\n// we don't want it to randomly hit one of the other type signatures below,\n// as we have no idea at build-time what type we should be returning when given an any.\n\n/**\n * You have passed `any` here, we can't figure out if it is\n * an array or an object, so you're getting `unknown`. Use better types.\n * @param arg Something typed as `any`\n */\nexport function combineLatest<T extends AnyCatcher>(arg: T): Observable<unknown>;\n\n// combineLatest([a, b, c])\nexport function combineLatest(sources: []): Observable<never>;\nexport function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R,\n  scheduler: SchedulerLike\n): Observable<R>;\nexport function combineLatest<A extends readonly unknown[], R>(\n  sources: readonly [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  sources: readonly [...ObservableInputTuple<A>],\n  scheduler: SchedulerLike\n): Observable<A>;\n\n// combineLatest(a, b, c)\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple<A>, (...values: A) => R, SchedulerLike]\n): Observable<R>;\n/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */\nexport function combineLatest<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function combineLatest<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): Observable<A>;\n\n// combineLatest({a, b, c})\nexport function combineLatest(sourcesObject: { [K in any]: never }): Observable<never>;\nexport function combineLatest<T extends Record<string, ObservableInput<any>>>(\n  sourcesObject: T\n): Observable<{ [K in keyof T]: ObservedValueOf<T[K]> }>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * ![](combineLatest.png)\n *\n * `combineLatest` combines the values from all the Observables passed in the\n * observables array. This is done by subscribing to each Observable in order and,\n * whenever any Observable emits, collecting an array of the most recent\n * values from each Observable. So if you pass `n` Observables to this operator,\n * the returned Observable will always emit an array of `n` values, in an order\n * corresponding to the order of the passed Observables (the value from the first Observable\n * will be at index 0 of the array and so on).\n *\n * Static version of `combineLatest` accepts an array of Observables. Note that an array of\n * Observables is a good choice, if you don't know beforehand how many Observables\n * you will combine. Passing an empty array will result in an Observable that\n * completes immediately.\n *\n * To ensure the output array always has the same length, `combineLatest` will\n * actually wait for all input Observables to emit at least once,\n * before it starts emitting results. This means if some Observable emits\n * values before other Observables started emitting, all these values but the last\n * will be lost. On the other hand, if some Observable does not emit a value but\n * completes, resulting Observable will complete at the same moment without\n * emitting anything, since it will now be impossible to include a value from the\n * completed Observable in the resulting array. Also, if some input Observable does\n * not emit any value and never completes, `combineLatest` will also never emit\n * and never complete, since, again, it will wait for all streams to emit some\n * value.\n *\n * If at least one Observable was passed to `combineLatest` and all passed Observables\n * emitted something, the resulting Observable will complete when all combined\n * streams complete. So even if some Observable completes, the result of\n * `combineLatest` will still emit values when other Observables do. In case\n * of a completed Observable, its value from now on will always be the last\n * emitted value. On the other hand, if any Observable errors, `combineLatest`\n * will error immediately as well, and all other Observables will be unsubscribed.\n *\n * ## Examples\n *\n * Combine two timer Observables\n *\n * ```ts\n * import { timer, combineLatest } from 'rxjs';\n *\n * const firstTimer = timer(0, 1000); // emit 0, 1, 2... after every second, starting from now\n * const secondTimer = timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now\n * const combinedTimers = combineLatest([firstTimer, secondTimer]);\n * combinedTimers.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0] after 0.5s\n * // [1, 0] after 1s\n * // [1, 1] after 1.5s\n * // [2, 1] after 2s\n * ```\n *\n * Combine a dictionary of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = {\n *   a: of(1).pipe(delay(1000), startWith(0)),\n *   b: of(5).pipe(delay(5000), startWith(0)),\n *   c: of(10).pipe(delay(10000), startWith(0))\n * };\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // { a: 0, b: 0, c: 0 } immediately\n * // { a: 1, b: 0, c: 0 } after 1s\n * // { a: 1, b: 5, c: 0 } after 5s\n * // { a: 1, b: 5, c: 10 } after 10s\n * ```\n *\n * Combine an array of Observables\n *\n * ```ts\n * import { of, delay, startWith, combineLatest } from 'rxjs';\n *\n * const observables = [1, 5, 10].map(\n *   n => of(n).pipe(\n *     delay(n * 1000), // emit 0 and then emit n after n seconds\n *     startWith(0)\n *   )\n * );\n * const combined = combineLatest(observables);\n * combined.subscribe(value => console.log(value));\n * // Logs\n * // [0, 0, 0] immediately\n * // [1, 0, 0] after 1s\n * // [1, 5, 0] after 5s\n * // [1, 5, 10] after 10s\n * ```\n *\n * Use map operator to dynamically calculate the Body-Mass Index\n *\n * ```ts\n * import { of, combineLatest, map } from 'rxjs';\n *\n * const weight = of(70, 72, 76, 79, 75);\n * const height = of(1.76, 1.77, 1.78);\n * const bmi = combineLatest([weight, height]).pipe(\n *   map(([w, h]) => w / (h * h)),\n * );\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {ObservableInput} [observables] An array of input Observables to combine with each other.\n * An array of Observables must be given as the first argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for subscribing to\n * each input Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n */\nexport function combineLatest<O extends ObservableInput<any>, R>(...args: any[]): Observable<R> | Observable<ObservedValueOf<O>[]> {\n  const scheduler = popScheduler(args);\n  const resultSelector = popResultSelector(args);\n\n  const { args: observables, keys } = argsArgArrayOrObject(args);\n\n  if (observables.length === 0) {\n    // If no observables are passed, or someone has passed an empty array\n    // of observables, or even an empty object POJO, we need to just\n    // complete (EMPTY), but we have to honor the scheduler provided if any.\n    return from([], scheduler as any);\n  }\n\n  const result = new Observable<ObservedValueOf<O>[]>(\n    combineLatestInit(\n      observables as ObservableInput<ObservedValueOf<O>>[],\n      scheduler,\n      keys\n        ? // A handler for scrubbing the array of args into a dictionary.\n          (values) => createObject(keys, values)\n        : // A passthrough to just return the array\n          identity\n    )\n  );\n\n  return resultSelector ? (result.pipe(mapOneOrManyArgs(resultSelector)) as Observable<R>) : result;\n}\n\nexport function combineLatestInit(\n  observables: ObservableInput<any>[],\n  scheduler?: SchedulerLike,\n  valueTransform: (values: any[]) => any = identity\n) {\n  return (subscriber: Subscriber<any>) => {\n    // The outer subscription. We're capturing this in a function\n    // because we may have to schedule it.\n    maybeSchedule(\n      scheduler,\n      () => {\n        const { length } = observables;\n        // A store for the values each observable has emitted so far. We match observable to value on index.\n        const values = new Array(length);\n        // The number of currently active subscriptions, as they complete, we decrement this number to see if\n        // we are all done combining values, so we can complete the result.\n        let active = length;\n        // The number of inner sources that still haven't emitted the first value\n        // We need to track this because all sources need to emit one value in order\n        // to start emitting values.\n        let remainingFirstValues = length;\n        // The loop to kick off subscription. We're keying everything on index `i` to relate the observables passed\n        // in to the slot in the output array or the key in the array of keys in the output dictionary.\n        for (let i = 0; i < length; i++) {\n          maybeSchedule(\n            scheduler,\n            () => {\n              const source = from(observables[i], scheduler as any);\n              let hasFirstValue = false;\n              source.subscribe(\n                createOperatorSubscriber(\n                  subscriber,\n                  (value) => {\n                    // When we get a value, record it in our set of values.\n                    values[i] = value;\n                    if (!hasFirstValue) {\n                      // If this is our first value, record that.\n                      hasFirstValue = true;\n                      remainingFirstValues--;\n                    }\n                    if (!remainingFirstValues) {\n                      // We're not waiting for any more\n                      // first values, so we can emit!\n                      subscriber.next(valueTransform(values.slice()));\n                    }\n                  },\n                  () => {\n                    if (!--active) {\n                      // We only complete the result if we have no more active\n                      // inner observables.\n                      subscriber.complete();\n                    }\n                  }\n                )\n              );\n            },\n            subscriber\n          );\n        }\n      },\n      subscriber\n    );\n  };\n}\n\n/**\n * A small utility to handle the couple of locations where we want to schedule if a scheduler was provided,\n * but we don't if there was no scheduler.\n */\nfunction maybeSchedule(scheduler: SchedulerLike | undefined, execute: () => void, subscription: Subscription) {\n  if (scheduler) {\n    executeSchedule(subscription, scheduler, execute);\n  } else {\n    execute();\n  }\n}\n", "import { Observable } from '../Observable';\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subscriber } from '../Subscriber';\nimport { ObservableInput, SchedulerLike } from '../types';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A process embodying the general \"merge\" strategy. This is used in\n * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical.\n * @param source The original source observable\n * @param subscriber The consumer subscriber\n * @param project The projection function to get our inner sources\n * @param concurrent The number of concurrent inner subscriptions\n * @param onBeforeNext Additional logic to apply before nexting to our consumer\n * @param expand If `true` this will perform an \"expand\" strategy, which differs only\n * in that it recurses, and the inner subscription must be schedule-able.\n * @param innerSubScheduler A scheduler to use to schedule inner subscriptions,\n * this is to support the expand strategy, mostly, and should be deprecated\n */\nexport function mergeInternals<T, R>(\n  source: Observable<T>,\n  subscriber: Subscriber<R>,\n  project: (value: T, index: number) => ObservableInput<R>,\n  concurrent: number,\n  onBeforeNext?: (innerValue: R) => void,\n  expand?: boolean,\n  innerSubScheduler?: SchedulerLike,\n  additionalFinalizer?: () => void\n) {\n  // Buffered values, in the event of going over our concurrency limit\n  const buffer: T[] = [];\n  // The number of active inner subscriptions.\n  let active = 0;\n  // An index to pass to our accumulator function\n  let index = 0;\n  // Whether or not the outer source has completed.\n  let isComplete = false;\n\n  /**\n   * Checks to see if we can complete our result or not.\n   */\n  const checkComplete = () => {\n    // If the outer has completed, and nothing is left in the buffer,\n    // and we don't have any active inner subscriptions, then we can\n    // Emit the state and complete.\n    if (isComplete && !buffer.length && !active) {\n      subscriber.complete();\n    }\n  };\n\n  // If we're under our concurrency limit, just start the inner subscription, otherwise buffer and wait.\n  const outerNext = (value: T) => (active < concurrent ? doInnerSub(value) : buffer.push(value));\n\n  const doInnerSub = (value: T) => {\n    // If we're expanding, we need to emit the outer values and the inner values\n    // as the inners will \"become outers\" in a way as they are recursively fed\n    // back to the projection mechanism.\n    expand && subscriber.next(value as any);\n\n    // Increment the number of active subscriptions so we can track it\n    // against our concurrency limit later.\n    active++;\n\n    // A flag used to show that the inner observable completed.\n    // This is checked during finalization to see if we should\n    // move to the next item in the buffer, if there is on.\n    let innerComplete = false;\n\n    // Start our inner subscription.\n    innerFrom(project(value, index++)).subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (innerValue) => {\n          // `mergeScan` has additional handling here. For example\n          // taking the inner value and updating state.\n          onBeforeNext?.(innerValue);\n\n          if (expand) {\n            // If we're expanding, then just recurse back to our outer\n            // handler. It will emit the value first thing.\n            outerNext(innerValue as any);\n          } else {\n            // Otherwise, emit the inner value.\n            subscriber.next(innerValue);\n          }\n        },\n        () => {\n          // Flag that we have completed, so we know to check the buffer\n          // during finalization.\n          innerComplete = true;\n        },\n        // Errors are passed to the destination.\n        undefined,\n        () => {\n          // During finalization, if the inner completed (it wasn't errored or\n          // cancelled), then we want to try the next item in the buffer if\n          // there is one.\n          if (innerComplete) {\n            // We have to wrap this in a try/catch because it happens during\n            // finalization, possibly asynchronously, and we want to pass\n            // any errors that happen (like in a projection function) to\n            // the outer Subscriber.\n            try {\n              // INNER SOURCE COMPLETE\n              // Decrement the active count to ensure that the next time\n              // we try to call `doInnerSub`, the number is accurate.\n              active--;\n              // If we have more values in the buffer, try to process those\n              // Note that this call will increment `active` ahead of the\n              // next conditional, if there were any more inner subscriptions\n              // to start.\n              while (buffer.length && active < concurrent) {\n                const bufferedValue = buffer.shift()!;\n                // Particularly for `expand`, we need to check to see if a scheduler was provided\n                // for when we want to start our inner subscription. Otherwise, we just start\n                // are next inner subscription.\n                if (innerSubScheduler) {\n                  executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n                } else {\n                  doInnerSub(bufferedValue);\n                }\n              }\n              // Check to see if we can complete, and complete if so.\n              checkComplete();\n            } catch (err) {\n              subscriber.error(err);\n            }\n          }\n        }\n      )\n    );\n  };\n\n  // Subscribe to our source observable.\n  source.subscribe(\n    createOperatorSubscriber(subscriber, outerNext, () => {\n      // Outer completed, make a note of it, and check to see if we can complete everything.\n      isComplete = true;\n      checkComplete();\n    })\n  );\n\n  // Additional finalization (for when the destination is torn down).\n  // Other finalization is added implicitly via subscription above.\n  return () => {\n    additionalFinalizer?.();\n  };\n}\n", "import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\n\n/* tslint:disable:max-line-length */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined,\n  concurrent?: number\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R,\n  concurrent?: number\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.</span>\n *\n * ![](mergeMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * ## Example\n *\n * Map and flatten each letter to an Observable ticking every 1 second\n *\n * ```ts\n * import { of, mergeMap, interval, map } from 'rxjs';\n *\n * const letters = of('a', 'b', 'c');\n * const result = letters.pipe(\n *   mergeMap(x => interval(1000).pipe(map(i => x + i)))\n * );\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a, b, c every second with respective ascending integers\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and merging\n * the results of the Observables obtained from this transformation.\n */\nexport function mergeMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: ((outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R) | number,\n  concurrent: number = Infinity\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  if (isFunction(resultSelector)) {\n    // DEPRECATED PATH\n    return mergeMap((a, i) => map((b: any, ii: number) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n  } else if (typeof resultSelector === 'number') {\n    concurrent = resultSelector;\n  }\n\n  return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n", "import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable which\n * concurrently delivers all values that are emitted on the inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\n *\n * ![](mergeAll.png)\n *\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\n * a higher-order Observable. Each time it observes one of these emitted inner\n * Observables, it subscribes to that and delivers all the values from the\n * inner Observable on the output Observable. The output Observable only\n * completes once all inner Observables have completed. Any error delivered by\n * a inner Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Spawn a new interval Observable for each click event, and blend their outputs as one Observable\n *\n * ```ts\n * import { fromEvent, map, interval, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(map(() => interval(1000)));\n * const firstOrder = higherOrder.pipe(mergeAll());\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers\n *\n * ```ts\n * import { fromEvent, map, interval, take, mergeAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(10)))\n * );\n * const firstOrder = higherOrder.pipe(mergeAll(2));\n *\n * firstOrder.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concatAll}\n * @see {@link exhaustAll}\n * @see {@link merge}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @param {number} [concurrent=Infinity] Maximum number of inner\n * Observables being subscribed to concurrently.\n * @return A function that returns an Observable that emits values coming from\n * all the inner Observables emitted by the source Observable.\n */\nexport function mergeAll<O extends ObservableInput<any>>(concurrent: number = Infinity): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeMap(identity, concurrent);\n}\n", "import { mergeAll } from './mergeAll';\nimport { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';\n\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * concatenating the inner Observables in order.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\n * inner Observable after the other.</span>\n *\n * ![](concatAll.svg)\n *\n * Joins every Observable emitted by the source (a higher-order Observable), in\n * a serial fashion. It subscribes to each inner Observable only after the\n * previous inner Observable has completed, and merges all of their values into\n * the returned observable.\n *\n * __Warning:__ If the source Observable emits Observables quickly and\n * endlessly, and the inner Observables it emits generally complete slower than\n * the source emits, you can run into memory issues as the incoming Observables\n * collect in an unbounded buffer.\n *\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\n * to `1`.\n *\n * ## Example\n *\n * For each click event, tick every second from 0 to 3, with no concurrency\n *\n * ```ts\n * import { fromEvent, map, interval, take, concatAll } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n *   map(() => interval(1000).pipe(take(4)))\n * );\n * const firstOrder = higherOrder.pipe(concatAll());\n * firstOrder.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n * ```\n *\n * @see {@link combineLatestAll}\n * @see {@link concat}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link exhaustAll}\n * @see {@link mergeAll}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link zipAll}\n *\n * @return A function that returns an Observable emitting values from all the\n * inner Observables concatenated.\n */\nexport function concatAll<O extends ObservableInput<any>>(): OperatorFunction<O, ObservedValueOf<O>> {\n  return mergeAll(1);\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple, SchedulerLike } from '../types';\nimport { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function concat<T extends readonly unknown[]>(...inputs: [...ObservableInputTuple<T>]): Observable<T[number]>;\nexport function concat<T extends readonly unknown[]>(\n  ...inputsAndScheduler: [...ObservableInputTuple<T>, SchedulerLike]\n): Observable<T[number]>;\n\n/**\n * Creates an output Observable which sequentially emits all values from the first given\n * Observable and then moves on to the next.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * ![](concat.png)\n *\n * `concat` joins multiple Observables together, by subscribing to them one at a time and\n * merging their results into the output Observable. You can pass either an array of\n * Observables, or put them directly as arguments. Passing an empty array will result\n * in Observable that completes immediately.\n *\n * `concat` will subscribe to first input Observable and emit all its values, without\n * changing or affecting them in any way. When that Observable completes, it will\n * subscribe to then next Observable passed and, again, emit its values. This will be\n * repeated, until the operator runs out of Observables. When last input Observable completes,\n * `concat` will complete as well. At any given moment only one Observable passed to operator\n * emits values. If you would like to emit values from passed Observables concurrently, check out\n * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact,\n * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`.\n *\n * Note that if some input Observable never completes, `concat` will also never complete\n * and Observables following the one that did not complete will never be subscribed. On the other\n * hand, if some Observable simply completes immediately after it is subscribed, it will be\n * invisible for `concat`, which will just move on to the next Observable.\n *\n * If any Observable in chain errors, instead of passing control to the next Observable,\n * `concat` will error immediately as well. Observables that would be subscribed after\n * the one that emitted error, never will.\n *\n * If you pass to `concat` the same Observable many times, its stream of values\n * will be \"replayed\" on every subscription, which means you can repeat given Observable\n * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious,\n * you can always use {@link repeat}.\n *\n * ## Examples\n *\n * Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10\n *\n * ```ts\n * import { interval, take, range, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(4));\n * const sequence = range(1, 10);\n * const result = concat(timer, sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n * ```\n *\n * Concatenate 3 Observables\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const result = concat(timer1, timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n * ```\n *\n * Concatenate the same Observable to repeat it\n *\n * ```ts\n * import { interval, take, concat } from 'rxjs';\n *\n * const timer = interval(1000).pipe(take(2));\n *\n * concat(timer, timer) // concatenating the same Observable!\n *   .subscribe({\n *     next: value => console.log(value),\n *     complete: () => console.log('...and it is done!')\n *   });\n *\n * // Logs:\n * // 0 after 1s\n * // 1 after 2s\n * // 0 after 3s\n * // 1 after 4s\n * // '...and it is done!' also after 4s\n * ```\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link startWith}\n * @see {@link endWith}\n *\n * @param args Input Observables to concatenate.\n */\nexport function concat(...args: any[]): Observable<unknown> {\n  return concatAll()(from(args, popScheduler(args)));\n}\n", "import { Observable } from '../Observable';\nimport { ObservedValueOf, ObservableInput } from '../types';\nimport { innerFrom } from './innerFrom';\n\n/**\n * Creates an Observable that, on subscribe, calls an Observable factory to\n * make an Observable for each new Observer.\n *\n * <span class=\"informal\">Creates the Observable lazily, that is, only when it\n * is subscribed.\n * </span>\n *\n * ![](defer.png)\n *\n * `defer` allows you to create an Observable only when the Observer\n * subscribes. It waits until an Observer subscribes to it, calls the given\n * factory function to get an Observable -- where a factory function typically\n * generates a new Observable -- and subscribes the Observer to this Observable.\n * In case the factory function returns a falsy value, then EMPTY is used as\n * Observable instead. Last but not least, an exception during the factory\n * function call is transferred to the Observer by calling `error`.\n *\n * ## Example\n *\n * Subscribe to either an Observable of clicks or an Observable of interval, at random\n *\n * ```ts\n * import { defer, fromEvent, interval } from 'rxjs';\n *\n * const clicksOrInterval = defer(() => {\n *   return Math.random() > 0.5\n *     ? fromEvent(document, 'click')\n *     : interval(1000);\n * });\n * clicksOrInterval.subscribe(x => console.log(x));\n *\n * // Results in the following behavior:\n * // If the result of Math.random() is greater than 0.5 it will listen\n * // for clicks anywhere on the \"document\"; when document is clicked it\n * // will log a MouseEvent object to the console. If the result is less\n * // than 0.5 it will emit ascending numbers, one every second(1000ms).\n * ```\n *\n * @see {@link Observable}\n *\n * @param {function(): ObservableInput} observableFactory The Observable\n * factory function to invoke for each Observer that subscribes to the output\n * Observable. May also return a Promise, which will be converted on the fly\n * to an Observable.\n * @return {Observable} An Observable whose Observers' subscriptions trigger\n * an invocation of the given Observable factory function.\n */\nexport function defer<R extends ObservableInput<any>>(observableFactory: () => R): Observable<ObservedValueOf<R>> {\n  return new Observable<ObservedValueOf<R>>((subscriber) => {\n    innerFrom(observableFactory()).subscribe(subscriber);\n  });\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n// These constants are used to create handler registry functions using array mapping below.\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'] as const;\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'] as const;\nconst jqueryMethods = ['on', 'off'] as const;\n\nexport interface NodeStyleEventEmitter {\n  addListener(eventName: string | symbol, handler: NodeEventHandler): this;\n  removeListener(eventName: string | symbol, handler: NodeEventHandler): this;\n}\n\nexport type NodeEventHandler = (...args: any[]) => void;\n\n// For APIs that implement `addListener` and `removeListener` methods that may\n// not use the same arguments or return EventEmitter values\n// such as React Native\nexport interface NodeCompatibleEventEmitter {\n  addListener(eventName: string, handler: NodeEventHandler): void | {};\n  removeListener(eventName: string, handler: NodeEventHandler): void | {};\n}\n\n// Use handler types like those in @types/jquery. See:\n// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/847731ba1d7fa6db6b911c0e43aa0afe596e7723/types/jquery/misc.d.ts#L6395\nexport interface JQueryStyleEventEmitter<TContext, T> {\n  on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n  off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void;\n}\n\nexport interface EventListenerObject<E> {\n  handleEvent(evt: E): void;\n}\n\nexport interface HasEventTargetAddRemove<E> {\n  addEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: boolean | AddEventListenerOptions\n  ): void;\n  removeEventListener(\n    type: string,\n    listener: ((evt: E) => void) | EventListenerObject<E> | null,\n    options?: EventListenerOptions | boolean\n  ): void;\n}\n\nexport interface EventListenerOptions {\n  capture?: boolean;\n  passive?: boolean;\n  once?: boolean;\n}\n\nexport interface AddEventListenerOptions extends EventListenerOptions {\n  once?: boolean;\n  passive?: boolean;\n}\n\nexport function fromEvent<T>(target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>, eventName: string): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  resultSelector: (event: T) => R\n): Observable<R>;\nexport function fromEvent<T>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: HasEventTargetAddRemove<T> | ArrayLike<HasEventTargetAddRemove<T>>,\n  eventName: string,\n  options: EventListenerOptions,\n  resultSelector: (event: T) => R\n): Observable<R>;\n\nexport function fromEvent(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeStyleEventEmitter | ArrayLike<NodeStyleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string\n): Observable<unknown>;\n/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */\nexport function fromEvent<T>(target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>, eventName: string): Observable<T>;\nexport function fromEvent<R>(\n  target: NodeCompatibleEventEmitter | ArrayLike<NodeCompatibleEventEmitter>,\n  eventName: string,\n  resultSelector: (...args: any[]) => R\n): Observable<R>;\n\nexport function fromEvent<T>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string\n): Observable<T>;\nexport function fromEvent<T, R>(\n  target: JQueryStyleEventEmitter<any, T> | ArrayLike<JQueryStyleEventEmitter<any, T>>,\n  eventName: string,\n  resultSelector: (value: T, ...args: any[]) => R\n): Observable<R>;\n\n/**\n * Creates an Observable that emits events of a specific type coming from the\n * given event target.\n *\n * <span class=\"informal\">Creates an Observable from DOM events, or Node.js\n * EventEmitter events or others.</span>\n *\n * ![](fromEvent.png)\n *\n * `fromEvent` accepts as a first argument event target, which is an object with methods\n * for registering event handler functions. As a second argument it takes string that indicates\n * type of event we want to listen for. `fromEvent` supports selected types of event targets,\n * which are described in detail below. If your event target does not match any of the ones listed,\n * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.\n * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event\n * handler functions have different names, but they all accept a string describing event type\n * and function itself, which will be called whenever said event happens.\n *\n * Every time resulting Observable is subscribed, event handler function will be registered\n * to event target on given event type. When that event fires, value\n * passed as a first argument to registered function will be emitted by output Observable.\n * When Observable is unsubscribed, function will be unregistered from event target.\n *\n * Note that if event target calls registered function with more than one argument, second\n * and following arguments will not appear in resulting stream. In order to get access to them,\n * you can pass to `fromEvent` optional project function, which will be called with all arguments\n * passed to event handler. Output Observable will then emit value returned by project function,\n * instead of the usual value.\n *\n * Remember that event targets listed below are checked via duck typing. It means that\n * no matter what kind of object you have and no matter what environment you work in,\n * you can safely use `fromEvent` on that object if it exposes described methods (provided\n * of course they behave as was described above). So for example if Node.js library exposes\n * event target which has the same method names as DOM EventTarget, `fromEvent` is still\n * a good choice.\n *\n * If the API you use is more callback then event handler oriented (subscribed\n * callback function fires only once and thus there is no need to manually\n * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}\n * instead.\n *\n * `fromEvent` supports following types of event targets:\n *\n * **DOM EventTarget**\n *\n * This is an object with `addEventListener` and `removeEventListener` methods.\n *\n * In the browser, `addEventListener` accepts - apart from event type string and event\n * handler function arguments - optional third parameter, which is either an object or boolean,\n * both used for additional configuration how and when passed function will be called. When\n * `fromEvent` is used with event target of that type, you can provide this values\n * as third parameter as well.\n *\n * **Node.js EventEmitter**\n *\n * An object with `addListener` and `removeListener` methods.\n *\n * **JQuery-style event target**\n *\n * An object with `on` and `off` methods\n *\n * **DOM NodeList**\n *\n * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.\n *\n * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes\n * it contains and install event handler function in every of them. When returned Observable\n * is unsubscribed, function will be removed from all Nodes.\n *\n * **DOM HtmlCollection**\n *\n * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is\n * installed and removed in each of elements.\n *\n *\n * ## Examples\n *\n * Emit clicks happening on the DOM document\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * clicks.subscribe(x => console.log(x));\n *\n * // Results in:\n * // MouseEvent object logged to console every time a click\n * // occurs on the document.\n * ```\n *\n * Use `addEventListener` with capture option\n *\n * ```ts\n * import { fromEvent } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * // note optional configuration parameter which will be passed to addEventListener\n * const clicksInDocument = fromEvent(document, 'click', { capture: true });\n * const clicksInDiv = fromEvent(div, 'click');\n *\n * clicksInDocument.subscribe(() => console.log('document'));\n * clicksInDiv.subscribe(() => console.log('div'));\n *\n * // By default events bubble UP in DOM tree, so normally\n * // when we would click on div in document\n * // \"div\" would be logged first and then \"document\".\n * // Since we specified optional `capture` option, document\n * // will catch event when it goes DOWN DOM tree, so console\n * // will log \"document\" and then \"div\".\n * ```\n *\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n * @see {@link fromEventPattern}\n *\n * @param {FromEventTarget<T>} target The DOM EventTarget, Node.js\n * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.\n * @param {string} eventName The event name of interest, being emitted by the\n * `target`.\n * @param {EventListenerOptions} [options] Options to pass through to addEventListener\n * @return {Observable<T>}\n */\nexport function fromEvent<T>(\n  target: any,\n  eventName: string,\n  options?: EventListenerOptions | ((...args: any[]) => T),\n  resultSelector?: (...args: any[]) => T\n): Observable<T> {\n  if (isFunction(options)) {\n    resultSelector = options;\n    options = undefined;\n  }\n  if (resultSelector) {\n    return fromEvent<T>(target, eventName, options as EventListenerOptions).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  // Figure out our add and remove methods. In order to do this,\n  // we are going to analyze the target in a preferred order, if\n  // the target matches a given signature, we take the two \"add\" and \"remove\"\n  // method names and apply them to a map to create opposite versions of the\n  // same function. This is because they all operate in duplicate pairs,\n  // `addListener(name, handler)`, `removeListener(name, handler)`, for example.\n  // The call only differs by method name, as to whether or not you're adding or removing.\n  const [add, remove] =\n    // If it is an EventTarget, we need to use a slightly different method than the other two patterns.\n    isEventTarget(target)\n      ? eventTargetMethods.map((methodName) => (handler: any) => target[methodName](eventName, handler, options as EventListenerOptions))\n      : // In all other cases, the call pattern is identical with the exception of the method names.\n      isNodeStyleEventEmitter(target)\n      ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n      : isJQueryStyleEventEmitter(target)\n      ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n      : [];\n\n  // If add is falsy, it's because we didn't match a pattern above.\n  // Check to see if it is an ArrayLike, because if it is, we want to\n  // try to apply fromEvent to all of it's items. We do this check last,\n  // because there are may be some types that are both ArrayLike *and* implement\n  // event registry points, and we'd rather delegate to that when possible.\n  if (!add) {\n    if (isArrayLike(target)) {\n      return mergeMap((subTarget: any) => fromEvent(subTarget, eventName, options as EventListenerOptions))(\n        innerFrom(target)\n      ) as Observable<T>;\n    }\n  }\n\n  // If add is falsy and we made it here, it's because we didn't\n  // match any valid target objects above.\n  if (!add) {\n    throw new TypeError('Invalid event target');\n  }\n\n  return new Observable<T>((subscriber) => {\n    // The handler we are going to register. Forwards the event object, by itself, or\n    // an array of arguments to the event handler, if there is more than one argument,\n    // to the consumer.\n    const handler = (...args: any[]) => subscriber.next(1 < args.length ? args : args[0]);\n    // Do the work of adding the handler to the target.\n    add(handler);\n    // When we finalize, we want to remove the handler and free up memory.\n    return () => remove!(handler);\n  });\n}\n\n/**\n * Used to create `add` and `remove` functions to register and unregister event handlers\n * from a target in the most common handler pattern, where there are only two arguments.\n * (e.g.  `on(name, fn)`, `off(name, fn)`, `addListener(name, fn)`, or `removeListener(name, fn)`)\n * @param target The target we're calling methods on\n * @param eventName The event name for the event we're creating register or unregister functions for\n */\nfunction toCommonHandlerRegistry(target: any, eventName: string) {\n  return (methodName: string) => (handler: any) => target[methodName](eventName, handler);\n}\n\n/**\n * Checks to see if the target implements the required node-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isNodeStyleEventEmitter(target: any): target is NodeStyleEventEmitter {\n  return isFunction(target.addListener) && isFunction(target.removeListener);\n}\n\n/**\n * Checks to see if the target implements the required jQuery-style EventEmitter methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isJQueryStyleEventEmitter(target: any): target is JQueryStyleEventEmitter<any, any> {\n  return isFunction(target.on) && isFunction(target.off);\n}\n\n/**\n * Checks to see if the target implements the required EventTarget methods\n * for adding and removing event handlers.\n * @param target the object to check\n */\nfunction isEventTarget(target: any): target is HasEventTargetAddRemove<any> {\n  return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n", "import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nimport { NodeEventHandler } from './fromEvent';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\n\n/* tslint:disable:max-line-length */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void\n): Observable<T>;\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Creates an Observable from an arbitrary API for registering event handlers.\n *\n * <span class=\"informal\">When that method for adding event handler was something {@link fromEvent}\n * was not prepared for.</span>\n *\n * ![](fromEventPattern.png)\n *\n * `fromEventPattern` allows you to convert into an Observable any API that supports registering handler functions\n * for events. It is similar to {@link fromEvent}, but far\n * more flexible. In fact, all use cases of {@link fromEvent} could be easily handled by\n * `fromEventPattern` (although in slightly more verbose way).\n *\n * This operator accepts as a first argument an `addHandler` function, which will be injected with\n * handler parameter. That handler is actually an event handler function that you now can pass\n * to API expecting it. `addHandler` will be called whenever Observable\n * returned by the operator is subscribed, so registering handler in API will not\n * necessarily happen when `fromEventPattern` is called.\n *\n * After registration, every time an event that we listen to happens,\n * Observable returned by `fromEventPattern` will emit value that event handler\n * function was called with. Note that if event handler was called with more\n * than one argument, second and following arguments will not appear in the Observable.\n *\n * If API you are using allows to unregister event handlers as well, you can pass to `fromEventPattern`\n * another function - `removeHandler` - as a second parameter. It will be injected\n * with the same handler function as before, which now you can use to unregister\n * it from the API. `removeHandler` will be called when consumer of resulting Observable\n * unsubscribes from it.\n *\n * In some APIs unregistering is actually handled differently. Method registering an event handler\n * returns some kind of token, which is later used to identify which function should\n * be unregistered or it itself has method that unregisters event handler.\n * If that is the case with your API, make sure token returned\n * by registering method is returned by `addHandler`. Then it will be passed\n * as a second argument to `removeHandler`, where you will be able to use it.\n *\n * If you need access to all event handler parameters (not only the first one),\n * or you need to transform them in any way, you can call `fromEventPattern` with optional\n * third parameter - project function which will accept all arguments passed to\n * event handler when it is called. Whatever is returned from project function will appear on\n * resulting stream instead of usual event handlers first argument. This means\n * that default project can be thought of as function that takes its first parameter\n * and ignores the rest.\n *\n * ## Examples\n *\n * Emits clicks happening on the DOM document\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * function addClickHandler(handler) {\n *   document.addEventListener('click', handler);\n * }\n *\n * function removeClickHandler(handler) {\n *   document.removeEventListener('click', handler);\n * }\n *\n * const clicks = fromEventPattern(\n *   addClickHandler,\n *   removeClickHandler\n * );\n * clicks.subscribe(x => console.log(x));\n *\n * // Whenever you click anywhere in the browser, DOM MouseEvent\n * // object will be logged.\n * ```\n *\n * Use with API that returns cancellation token\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * const token = someAPI.registerEventHandler(function() {});\n * someAPI.unregisterEventHandler(token); // this APIs cancellation method accepts\n *                                        // not handler itself, but special token.\n *\n * const someAPIObservable = fromEventPattern(\n *   function(handler) { return someAPI.registerEventHandler(handler); }, // Note that we return the token here...\n *   function(handler, token) { someAPI.unregisterEventHandler(token); }  // ...to then use it here.\n * );\n * ```\n *\n * Use with project function\n *\n * ```ts\n * import { fromEventPattern } from 'rxjs';\n *\n * someAPI.registerEventHandler((eventType, eventMessage) => {\n *   console.log(eventType, eventMessage); // Logs 'EVENT_TYPE' 'EVENT_MESSAGE' to console.\n * });\n *\n * const someAPIObservable = fromEventPattern(\n *   handler => someAPI.registerEventHandler(handler),\n *   handler => someAPI.unregisterEventHandler(handler)\n *   (eventType, eventMessage) => eventType + ' --- ' + eventMessage // without that function only 'EVENT_TYPE'\n * );                                                                // would be emitted by the Observable\n *\n * someAPIObservable.subscribe(value => console.log(value));\n *\n * // Logs:\n * // 'EVENT_TYPE --- EVENT_MESSAGE'\n * ```\n *\n * @see {@link fromEvent}\n * @see {@link bindCallback}\n * @see {@link bindNodeCallback}\n *\n * @param {function(handler: Function): any} addHandler A function that takes\n * a `handler` function as argument and attaches it somehow to the actual\n * source of events.\n * @param {function(handler: Function, token?: any): void} [removeHandler] A function that\n * takes a `handler` function as an argument and removes it from the event source. If `addHandler`\n * returns some kind of token, `removeHandler` function will have it as a second parameter.\n * @param {function(...args: any): T} [project] A function to\n * transform results. It takes the arguments from the event handler and\n * should return a single value.\n * @return {Observable<T>} Observable which, when an event happens, emits first parameter\n * passed to registered event handler. Alternatively it emits whatever project function returns\n * at that moment.\n */\nexport function fromEventPattern<T>(\n  addHandler: (handler: NodeEventHandler) => any,\n  removeHandler?: (handler: NodeEventHandler, signal?: any) => void,\n  resultSelector?: (...args: any[]) => T\n): Observable<T | T[]> {\n  if (resultSelector) {\n    return fromEventPattern<T>(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));\n  }\n\n  return new Observable<T | T[]>((subscriber) => {\n    const handler = (...e: T[]) => subscriber.next(e.length === 1 ? e[0] : e);\n    const retValue = addHandler(handler);\n    return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined;\n  });\n}\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\n\n/**\n * Creates an observable that will wait for a specified time period, or exact date, before\n * emitting the number 0.\n *\n * <span class=\"informal\">Used to emit a notification after a delay.</span>\n *\n * This observable is useful for creating delays in code, or racing against other values\n * for ad-hoc timeouts.\n *\n * The `delay` is specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Examples\n *\n * Wait 3 seconds and start another observable\n *\n * You might want to use `timer` to delay subscription to an\n * observable by a set amount of time. Here we use a timer with\n * {@link concatMapTo} or {@link concatMap} in order to wait\n * a few seconds and start a subscription to a source.\n *\n * ```ts\n * import { of, timer, concatMap } from 'rxjs';\n *\n * // This could be any observable\n * const source = of(1, 2, 3);\n *\n * timer(3000)\n *   .pipe(concatMap(() => source))\n *   .subscribe(console.log);\n * ```\n *\n * Take all values until the start of the next minute\n *\n * Using a `Date` as the trigger for the first emission, you can\n * do things like wait until midnight to fire an event, or in this case,\n * wait until a new minute starts (chosen so the example wouldn't take\n * too long to run) in order to stop watching a stream. Leveraging\n * {@link takeUntil}.\n *\n * ```ts\n * import { interval, takeUntil, timer } from 'rxjs';\n *\n * // Build a Date object that marks the\n * // next minute.\n * const currentDate = new Date();\n * const startOfNextMinute = new Date(\n *   currentDate.getFullYear(),\n *   currentDate.getMonth(),\n *   currentDate.getDate(),\n *   currentDate.getHours(),\n *   currentDate.getMinutes() + 1\n * );\n *\n * // This could be any observable stream\n * const source = interval(1000);\n *\n * const result = source.pipe(\n *   takeUntil(timer(startOfNextMinute))\n * );\n *\n * result.subscribe(console.log);\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `dueTime`.\n *\n * @param due If a `number`, the amount of time in milliseconds to wait before emitting.\n * If a `Date`, the exact time at which to emit.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>;\n\n/**\n * Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` --\n * on each interval after words.\n *\n * The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could\n * create a different behavior.\n *\n * ## Example\n *\n * ### Start an interval that starts right away\n *\n * Since {@link interval} waits for the passed delay before starting,\n * sometimes that's not ideal. You may want to start an interval immediately.\n * `timer` works well for this. Here we have both side-by-side so you can\n * see them in comparison.\n *\n * Note that this observable will never complete.\n *\n * ```ts\n * import { timer, interval } from 'rxjs';\n *\n * timer(0, 1000).subscribe(n => console.log('timer', n));\n * interval(1000).subscribe(n => console.log('interval', n));\n * ```\n *\n * ### Known Limitations\n *\n * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.\n *\n * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and\n * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission\n * should occur will be incorrect. In this case, it would be best to do your own calculations\n * ahead of time, and pass a `number` in as the `startDue`.\n * @param startDue If a `number`, is the time to wait before starting the interval.\n * If a `Date`, is the exact time at which to start the interval.\n * @param intervalDuration The delay between each value emitted in the interval. Passing a\n * negative number here will result in immediate completion after the first value is emitted, as though\n * no `intervalDuration` was passed at all.\n * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.\n */\nexport function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable<number>;\n\n/**\n * @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead.\n */\nexport function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>;\n\nexport function timer(\n  dueTime: number | Date = 0,\n  intervalOrScheduler?: number | SchedulerLike,\n  scheduler: SchedulerLike = asyncScheduler\n): Observable<number> {\n  // Since negative intervalDuration is treated as though no\n  // interval was specified at all, we start with a negative number.\n  let intervalDuration = -1;\n\n  if (intervalOrScheduler != null) {\n    // If we have a second argument, and it's a scheduler,\n    // override the scheduler we had defaulted. Otherwise,\n    // it must be an interval.\n    if (isScheduler(intervalOrScheduler)) {\n      scheduler = intervalOrScheduler;\n    } else {\n      // Note that this *could* be negative, in which case\n      // it's like not passing an intervalDuration at all.\n      intervalDuration = intervalOrScheduler;\n    }\n  }\n\n  return new Observable((subscriber) => {\n    // If a valid date is passed, calculate how long to wait before\n    // executing the first value... otherwise, if it's a number just schedule\n    // that many milliseconds (or scheduler-specified unit size) in the future.\n    let due = isValidDate(dueTime) ? +dueTime - scheduler!.now() : dueTime;\n\n    if (due < 0) {\n      // Ensure we don't schedule in the future.\n      due = 0;\n    }\n\n    // The incrementing value we emit.\n    let n = 0;\n\n    // Start the timer.\n    return scheduler.schedule(function () {\n      if (!subscriber.closed) {\n        // Emit the next value and increment.\n        subscriber.next(n++);\n\n        if (0 <= intervalDuration) {\n          // If we have a interval after the initial timer,\n          // reschedule with the period.\n          this.schedule(undefined, intervalDuration);\n        } else {\n          // We didn't have an interval. So just complete.\n          subscriber.complete();\n        }\n      }\n    }, due);\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInput, ObservableInputTuple, SchedulerLike } from '../types';\nimport { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\n\nexport function merge<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;\nexport function merge<A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number?]): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike?]\n): Observable<A[number]>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function merge<A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number?, SchedulerLike?]\n): Observable<A[number]>;\n\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * ![](merge.png)\n *\n * `merge` subscribes to each given input Observable (as arguments), and simply\n * forwards (without doing any transformation) all the values from all the input\n * Observables to the output Observable. The output Observable only completes\n * once all input Observables have completed. Any error delivered by an input\n * Observable will be immediately emitted on the output Observable.\n *\n * ## Examples\n *\n * Merge together two Observables: 1s interval and clicks\n *\n * ```ts\n * import { merge, fromEvent, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const clicksOrTimer = merge(clicks, timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // timer will emit ascending values, one every second(1000ms) to console\n * // clicks logs MouseEvents to console every time the \"document\" is clicked\n * // Since the two streams are merged you see these happening\n * // as they occur.\n * ```\n *\n * Merge together 3 Observables, but run only 2 concurrently\n *\n * ```ts\n * import { interval, take, merge } from 'rxjs';\n *\n * const timer1 = interval(1000).pipe(take(10));\n * const timer2 = interval(2000).pipe(take(6));\n * const timer3 = interval(500).pipe(take(10));\n *\n * const concurrent = 2; // the argument\n * const merged = merge(timer1, timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - First timer1 and timer2 will run concurrently\n * // - timer1 will emit a value every 1000ms for 10 iterations\n * // - timer2 will emit a value every 2000ms for 6 iterations\n * // - after timer1 hits its max iteration, timer2 will\n * //   continue, and timer3 will start to run concurrently with timer2\n * // - when timer2 hits its max iteration it terminates, and\n * //   timer3 will continue to emit a value every 500ms until it is complete\n * ```\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {...ObservableInput} observables Input Observables to merge together.\n * @param {number} [concurrent=Infinity] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for managing\n * concurrency of input Observables.\n * @return {Observable} an Observable that emits items that are the result of\n * every input Observable.\n */\nexport function merge(...args: (ObservableInput<unknown> | number | SchedulerLike)[]): Observable<unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  const sources = args as ObservableInput<unknown>[];\n  return !sources.length\n    ? // No source provided\n      EMPTY\n    : sources.length === 1\n    ? // One source? Just return it.\n      innerFrom(sources[0])\n    : // Merge all sources\n      mergeAll(concurrent)(from(sources, scheduler));\n}\n", "import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\n\n/**\n * An Observable that emits no items to the Observer and never completes.\n *\n * ![](never.png)\n *\n * A simple Observable that emits neither values nor errors nor the completion\n * notification. It can be used for testing purposes or for composing with other\n * Observables. Please note that by never emitting a complete notification, this\n * Observable keeps the subscription from being disposed automatically.\n * Subscriptions need to be manually disposed.\n *\n * ##  Example\n *\n * Emit the number 7, then never emit anything else (not even complete)\n *\n * ```ts\n * import { NEVER, startWith } from 'rxjs';\n *\n * const info = () => console.log('Will not be called');\n *\n * const result = NEVER.pipe(startWith(7));\n * result.subscribe({\n *   next: x => console.log(x),\n *   error: info,\n *   complete: info\n * });\n * ```\n *\n * @see {@link Observable}\n * @see {@link EMPTY}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const NEVER = new Observable<never>(noop);\n\n/**\n * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8.\n */\nexport function never() {\n  return NEVER;\n}\n", "const { isArray } = Array;\n\n/**\n * Used in operators and functions that accept either a list of arguments, or an array of arguments\n * as a single argument.\n */\nexport function argsOrArgArray<T>(args: (T | T[])[]): T[] {\n  return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]);\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, S extends T, A>(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction<T, S>;\nexport function filter<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function filter<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\n/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */\nexport function filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;\nexport function filter<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * ![](filter.png)\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * ## Example\n *\n * Emit only click events whose target was a DIV element\n *\n * ```ts\n * import { fromEvent, filter } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksOnDivs = clicks.pipe(filter(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * clicksOnDivs.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param thisArg An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return A function that returns an Observable that emits items from the\n * source Observable that satisfy the specified `predicate`.\n */\nexport function filter<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // An index passed to our predicate function on each call.\n    let index = 0;\n\n    // Subscribe to the source, all errors and completions are\n    // forwarded to the consumer.\n    source.subscribe(\n      // Call the predicate with the appropriate `this` context,\n      // if the predicate returns `true`, then send the value\n      // to the consumer.\n      createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value))\n    );\n  });\n}\n", "import { Observable } from '../Observable';\nimport { ObservableInputTuple } from '../types';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { EMPTY } from './empty';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { popResultSelector } from '../util/args';\n\nexport function zip<A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  resultSelector: (...values: A) => R\n): Observable<R>;\nexport function zip<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;\nexport function zip<A extends readonly unknown[], R>(\n  ...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]\n): Observable<R>;\n\n/**\n * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each\n * of its input Observables.\n *\n * If the last parameter is a function, this function is used to compute the created value from the input values.\n * Otherwise, an array of the input values is returned.\n *\n * ## Example\n *\n * Combine age and name from different sources\n *\n * ```ts\n * import { of, zip, map } from 'rxjs';\n *\n * const age$ = of(27, 25, 29);\n * const name$ = of('Foo', 'Bar', 'Beer');\n * const isDev$ = of(true, true, false);\n *\n * zip(age$, name$, isDev$).pipe(\n *   map(([age, name, isDev]) => ({ age, name, isDev }))\n * )\n * .subscribe(x => console.log(x));\n *\n * // Outputs\n * // { age: 27, name: 'Foo', isDev: true }\n * // { age: 25, name: 'Bar', isDev: true }\n * // { age: 29, name: 'Beer', isDev: false }\n * ```\n *\n * @param sources\n * @return {Observable<R>}\n */\nexport function zip(...args: unknown[]): Observable<unknown> {\n  const resultSelector = popResultSelector(args);\n\n  const sources = argsOrArgArray(args) as Observable<unknown>[];\n\n  return sources.length\n    ? new Observable<unknown[]>((subscriber) => {\n        // A collection of buffers of values from each source.\n        // Keyed by the same index with which the sources were passed in.\n        let buffers: unknown[][] = sources.map(() => []);\n\n        // An array of flags of whether or not the sources have completed.\n        // This is used to check to see if we should complete the result.\n        // Keyed by the same index with which the sources were passed in.\n        let completed = sources.map(() => false);\n\n        // When everything is done, release the arrays above.\n        subscriber.add(() => {\n          buffers = completed = null!;\n        });\n\n        // Loop over our sources and subscribe to each one. The index `i` is\n        // especially important here, because we use it in closures below to\n        // access the related buffers and completion properties\n        for (let sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {\n          innerFrom(sources[sourceIndex]).subscribe(\n            createOperatorSubscriber(\n              subscriber,\n              (value) => {\n                buffers[sourceIndex].push(value);\n                // if every buffer has at least one value in it, then we\n                // can shift out the oldest value from each buffer and emit\n                // them as an array.\n                if (buffers.every((buffer) => buffer.length)) {\n                  const result: any = buffers.map((buffer) => buffer.shift()!);\n                  // Emit the array. If theres' a result selector, use that.\n                  subscriber.next(resultSelector ? resultSelector(...result) : result);\n                  // If any one of the sources is both complete and has an empty buffer\n                  // then we complete the result. This is because we cannot possibly have\n                  // any more values to zip together.\n                  if (buffers.some((buffer, i) => !buffer.length && completed[i])) {\n                    subscriber.complete();\n                  }\n                }\n              },\n              () => {\n                // This source completed. Mark it as complete so we can check it later\n                // if we have to.\n                completed[sourceIndex] = true;\n                // But, if this complete source has nothing in its buffer, then we\n                // can complete the result, because we can't possibly have any more\n                // values from this to zip together with the other values.\n                !buffers[sourceIndex].length && subscriber.complete();\n              }\n            )\n          );\n        }\n\n        // When everything is done, release the arrays above.\n        return () => {\n          buffers = completed = null!;\n        };\n      })\n    : EMPTY;\n}\n", "import { Subscriber } from '../Subscriber';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\n\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](audit.svg)\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, audit, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(audit(ev => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function audit<T>(durationSelector: (value: T) => ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    let lastValue: T | null = null;\n    let durationSubscriber: Subscriber<any> | null = null;\n    let isComplete = false;\n\n    const endDuration = () => {\n      durationSubscriber?.unsubscribe();\n      durationSubscriber = null;\n      if (hasValue) {\n        hasValue = false;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n      isComplete && subscriber.complete();\n    };\n\n    const cleanupDuration = () => {\n      durationSubscriber = null;\n      isComplete && subscriber.complete();\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          lastValue = value;\n          if (!durationSubscriber) {\n            innerFrom(durationSelector(value)).subscribe(\n              (durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))\n            );\n          }\n        },\n        () => {\n          isComplete = true;\n          (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\n\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source value, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * ![](auditTime.png)\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link SchedulerLike} for managing timers.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, auditTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(auditTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return A function that returns an Observable that performs rate-limiting of\n * emissions from the source Observable.\n */\nexport function auditTime<T>(duration: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return audit(() => timer(duration, scheduler));\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\n\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * ![](bufferCount.png)\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * ## Examples\n *\n * Emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * On every click, emit the last two click events as an array\n *\n * ```ts\n * import { fromEvent, bufferCount } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const buffered = clicks.pipe(bufferCount(2, 1));\n * buffered.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return A function that returns an Observable of arrays of buffered values.\n */\nexport function bufferCount<T>(bufferSize: number, startBufferEvery: number | null = null): OperatorFunction<T, T[]> {\n  // If no `startBufferEvery` value was supplied, then we're\n  // opening and closing on the bufferSize itself.\n  startBufferEvery = startBufferEvery ?? bufferSize;\n\n  return operate((source, subscriber) => {\n    let buffers: T[][] = [];\n    let count = 0;\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          let toEmit: T[][] | null = null;\n\n          // Check to see if we need to start a buffer.\n          // This will start one at the first value, and then\n          // a new one every N after that.\n          if (count++ % startBufferEvery! === 0) {\n            buffers.push([]);\n          }\n\n          // Push our value into our active buffers.\n          for (const buffer of buffers) {\n            buffer.push(value);\n            // Check to see if we're over the bufferSize\n            // if we are, record it so we can emit it later.\n            // If we emitted it now and removed it, it would\n            // mutate the `buffers` array while we're looping\n            // over it.\n            if (bufferSize <= buffer.length) {\n              toEmit = toEmit ?? [];\n              toEmit.push(buffer);\n            }\n          }\n\n          if (toEmit) {\n            // We have found some buffers that are over the\n            // `bufferSize`. Emit them, and remove them from our\n            // buffers list.\n            for (const buffer of toEmit) {\n              arrRemove(buffers, buffer);\n              subscriber.next(buffer);\n            }\n          }\n        },\n        () => {\n          // When the source completes, emit all of our\n          // active buffers.\n          for (const buffer of buffers) {\n            subscriber.next(buffer);\n          }\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Clean up our memory when we finalize\n          buffers = null!;\n        }\n      )\n    );\n  });\n}\n", "import { Observable } from '../Observable';\n\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { Subscription } from '../Subscription';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\n\n/* tslint:disable:max-line-length */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>>;\n/* tslint:enable:max-line-length */\n\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\n *\n * <span class=\"informal\">\n * It only listens to the error channel and ignores notifications.\n * Handles errors from the source observable, and maps them to a new observable.\n * The error may also be rethrown, or a new error can be thrown to emit an error from the result.\n * </span>\n *\n * ![](catch.png)\n *\n * This operator handles errors, but forwards along all other events to the resulting observable.\n * If the source observable terminates with an error, it will map that error to a new observable,\n * subscribe to it, and forward all of its events to the resulting observable.\n *\n * ## Examples\n *\n * Continue with a different Observable when there's an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => of('I', 'II', 'III', 'IV', 'V'))\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, I, II, III, IV, V\n * ```\n *\n * Retry the caught source Observable again in case of error, similar to `retry()` operator\n *\n * ```ts\n * import { of, map, catchError, take } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError((err, caught) => caught),\n *     take(30)\n *   )\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, 1, 2, 3, ...\n * ```\n *\n * Throw a new error when the source Observable throws an error\n *\n * ```ts\n * import { of, map, catchError } from 'rxjs';\n *\n * of(1, 2, 3, 4, 5)\n *   .pipe(\n *     map(n => {\n *       if (n === 4) {\n *         throw 'four!';\n *       }\n *       return n;\n *     }),\n *     catchError(err => {\n *       throw 'error in source. Details: ' + err;\n *     })\n *   )\n *   .subscribe({\n *     next: x => console.log(x),\n *     error: err => console.log(err)\n *   });\n *   // 1, 2, 3, error in source. Details: four!\n * ```\n *\n * @see {@link onErrorResumeNext}\n * @see {@link repeat}\n * @see {@link repeatWhen}\n * @see {@link retry }\n * @see {@link retryWhen}\n *\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\n * is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\n * is returned by the `selector` will be used to continue the observable chain.\n * @return A function that returns an Observable that originates from either\n * the source or the Observable returned by the `selector` function.\n */\nexport function catchError<T, O extends ObservableInput<any>>(\n  selector: (err: any, caught: Observable<T>) => O\n): OperatorFunction<T, T | ObservedValueOf<O>> {\n  return operate((source, subscriber) => {\n    let innerSub: Subscription | null = null;\n    let syncUnsub = false;\n    let handledResult: Observable<ObservedValueOf<O>>;\n\n    innerSub = source.subscribe(\n      createOperatorSubscriber(subscriber, undefined, undefined, (err) => {\n        handledResult = innerFrom(selector(err, catchError(selector)(source)));\n        if (innerSub) {\n          innerSub.unsubscribe();\n          innerSub = null;\n          handledResult.subscribe(subscriber);\n        } else {\n          // We don't have an innerSub yet, that means the error was synchronous\n          // because the subscribe call hasn't returned yet.\n          syncUnsub = true;\n        }\n      })\n    );\n\n    if (syncUnsub) {\n      // We have a synchronous error, we need to make sure to\n      // finalize right away. This ensures that callbacks in the `finalize` operator are called\n      // at the right time, and that finalization occurs at the expected\n      // time between the source error and the subscription to the\n      // next observable.\n      innerSub.unsubscribe();\n      innerSub = null;\n      handledResult!.subscribe(subscriber);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * A basic scan operation. This is used for `scan` and `reduce`.\n * @param accumulator The accumulator to use\n * @param seed The seed value for the state to accumulate\n * @param hasSeed Whether or not a seed was provided\n * @param emitOnNext Whether or not to emit the state on next\n * @param emitBeforeComplete Whether or not to emit the before completion\n */\n\nexport function scanInternals<V, A, S>(\n  accumulator: (acc: V | A | S, value: V, index: number) => A,\n  seed: S,\n  hasSeed: boolean,\n  emitOnNext: boolean,\n  emitBeforeComplete?: undefined | true\n) {\n  return (source: Observable<V>, subscriber: Subscriber<any>) => {\n    // Whether or not we have state yet. This will only be\n    // false before the first value arrives if we didn't get\n    // a seed value.\n    let hasState = hasSeed;\n    // The state that we're tracking, starting with the seed,\n    // if there is one, and then updated by the return value\n    // from the accumulator on each emission.\n    let state: any = seed;\n    // An index to pass to the accumulator function.\n    let index = 0;\n\n    // Subscribe to our source. All errors and completions are passed through.\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Always increment the index.\n          const i = index++;\n          // Set the state\n          state = hasState\n            ? // We already have state, so we can get the new state from the accumulator\n              accumulator(state, value, i)\n            : // We didn't have state yet, a seed value was not provided, so\n\n              // we set the state to the first value, and mark that we have state now\n              ((hasState = true), value);\n\n          // Maybe send it to the consumer.\n          emitOnNext && subscriber.next(state);\n        },\n        // If an onComplete was given, call it, otherwise\n        // just pass through the complete notification to the consumer.\n        emitBeforeComplete &&\n          (() => {\n            hasState && subscriber.next(state);\n            subscriber.complete();\n          })\n      )\n    );\n  };\n}\n", "import { combineLatestInit } from '../observable/combineLatest';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  sources: [...ObservableInputTuple<A>],\n  project: (...values: [T, ...A]) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(\n  ...sourcesAndProject: [...ObservableInputTuple<A>, (...values: [T, ...A]) => R]\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */\nexport function combineLatest<T, A extends readonly unknown[], R>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, [T, ...A]>;\n\n/**\n * @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8.\n */\nexport function combineLatest<T, R>(...args: (ObservableInput<any> | ((...values: any[]) => R))[]): OperatorFunction<T, unknown> {\n  const resultSelector = popResultSelector(args);\n  return resultSelector\n    ? pipe(combineLatest(...(args as Array<ObservableInput<any>>)), mapOneOrManyArgs(resultSelector))\n    : operate((source, subscriber) => {\n        combineLatestInit([source, ...argsOrArgArray(args)])(subscriber);\n      });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { combineLatest } from './combineLatest';\n\n/**\n * Create an observable that combines the latest values from all passed observables and the source\n * into arrays and emits them.\n *\n * Returns an observable, that when subscribed to, will subscribe to the source observable and all\n * sources provided as arguments. Once all sources emit at least one value, all of the latest values\n * will be emitted as an array. After that, every time any source emits a value, all of the latest values\n * will be emitted as an array.\n *\n * This is a useful operator for eagerly calculating values based off of changed inputs.\n *\n * ## Example\n *\n * Simple concatenation of values from two inputs\n *\n * ```ts\n * import { fromEvent, combineLatestWith, map } from 'rxjs';\n *\n * // Setup: Add two inputs to the page\n * const input1 = document.createElement('input');\n * document.body.appendChild(input1);\n * const input2 = document.createElement('input');\n * document.body.appendChild(input2);\n *\n * // Get streams of changes\n * const input1Changes$ = fromEvent(input1, 'change');\n * const input2Changes$ = fromEvent(input2, 'change');\n *\n * // Combine the changes by adding them together\n * input1Changes$.pipe(\n *   combineLatestWith(input2Changes$),\n *   map(([e1, e2]) => (<HTMLInputElement>e1.target).value + ' - ' + (<HTMLInputElement>e2.target).value)\n * )\n * .subscribe(x => console.log(x));\n * ```\n *\n * @param otherSources the other sources to subscribe to.\n * @return A function that returns an Observable that emits the latest\n * emissions from both source and provided Observables.\n */\nexport function combineLatestWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, Cons<T, A>> {\n  return combineLatest(...otherSources);\n}\n", "import { Subscriber } from '../Subscriber';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\n\n/**\n * Emits a notification from the source Observable only after a particular time span\n * determined by another Observable has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link debounceTime}, but the time span of\n * emission silence is determined by a second Observable.</span>\n *\n * ![](debounce.svg)\n *\n * `debounce` delays notifications emitted by the source Observable, but drops previous\n * pending delayed emissions if a new notification arrives on the source Observable.\n * This operator keeps track of the most recent notification from the source\n * Observable, and spawns a duration Observable by calling the\n * `durationSelector` function. The notification is emitted only when the duration\n * Observable emits a next notification, and if no other notification was emitted on\n * the source Observable since the duration Observable was spawned. If a new\n * notification appears before the duration Observable emits, the previous notification will\n * not be emitted and a new duration is scheduled from `durationSelector` is scheduled.\n * If the completing event happens during the scheduled duration the last cached notification\n * is emitted before the completion event is forwarded to the output observable.\n * If the error event happens during the scheduled duration or after it only the error event is\n * forwarded to the output observable. The cache notification is not emitted in this case.\n *\n * Like {@link debounceTime}, this is a rate-limiting operator, and also a\n * delay-like operator since output emissions do not necessarily occur at the\n * same time as they did on the source Observable.\n *\n * ## Example\n *\n * Emit the most recent click after a burst of clicks\n *\n * ```ts\n * import { fromEvent, scan, debounce, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(\n *   scan(i => ++i, 1),\n *   debounce(i => interval(200 * i))\n * );\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link throttle}\n * @see {@link throttleTime}\n *\n * @param durationSelector A function\n * that receives a value from the source Observable, for computing the timeout\n * duration for each source value, returned as an Observable or a Promise.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified duration Observable returned by\n * `durationSelector`, and may drop some values if they occur too frequently.\n */\nexport function debounce<T>(durationSelector: (value: T) => ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    let lastValue: T | null = null;\n    // The subscriber/subscription for the current debounce, if there is one.\n    let durationSubscriber: Subscriber<any> | null = null;\n\n    const emit = () => {\n      // Unsubscribe any current debounce subscription we have,\n      // we only cared about the first notification from it, and we\n      // want to clean that subscription up as soon as possible.\n      durationSubscriber?.unsubscribe();\n      durationSubscriber = null;\n      if (hasValue) {\n        // We have a value! Free up memory first, then emit the value.\n        hasValue = false;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value: T) => {\n          // Cancel any pending debounce duration. We don't\n          // need to null it out here yet tho, because we're just going\n          // to create another one in a few lines.\n          durationSubscriber?.unsubscribe();\n          hasValue = true;\n          lastValue = value;\n          // Capture our duration subscriber, so we can unsubscribe it when we're notified\n          // and we're going to emit the value.\n          durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);\n          // Subscribe to the duration.\n          innerFrom(durationSelector(value)).subscribe(durationSubscriber);\n        },\n        () => {\n          // Source completed.\n          // Emit any pending debounced values then complete\n          emit();\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer\n        undefined,\n        () => {\n          // Finalization.\n          lastValue = durationSubscriber = null;\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a notification from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent notification from each burst of emissions.</span>\n *\n * ![](debounceTime.png)\n *\n * `debounceTime` delays notifications emitted by the source Observable, but drops\n * previous pending delayed emissions if a new notification arrives on the source\n * Observable. This operator keeps track of the most recent notification from the\n * source Observable, and emits that only when `dueTime` has passed\n * without any other notification appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous notification will be dropped\n * and will not be emitted and a new `dueTime` is scheduled.\n * If the completing event happens during `dueTime` the last cached notification\n * is emitted before the completion event is forwarded to the output observable.\n * If the error event happens during `dueTime` or after it only the error event is\n * forwarded to the output observable. The cache notification is not emitted in this case.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * notification to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link SchedulerLike} for\n * managing timers.\n *\n * ## Example\n *\n * Emit the most recent click after a burst of clicks\n *\n * ```ts\n * import { fromEvent, debounceTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(debounceTime(1000));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link throttle}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the timeout for each value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified `dueTime`, and may drop some values\n * if they occur too frequently.\n */\nexport function debounceTime<T>(dueTime: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let activeTask: Subscription | null = null;\n    let lastValue: T | null = null;\n    let lastTime: number | null = null;\n\n    const emit = () => {\n      if (activeTask) {\n        // We have a value! Free up memory first, then emit the value.\n        activeTask.unsubscribe();\n        activeTask = null;\n        const value = lastValue!;\n        lastValue = null;\n        subscriber.next(value);\n      }\n    };\n    function emitWhenIdle(this: SchedulerAction<unknown>) {\n      // This is called `dueTime` after the first value\n      // but we might have received new values during this window!\n\n      const targetTime = lastTime! + dueTime;\n      const now = scheduler.now();\n      if (now < targetTime) {\n        // On that case, re-schedule to the new target\n        activeTask = this.schedule(undefined, targetTime - now);\n        subscriber.add(activeTask);\n        return;\n      }\n\n      emit();\n    }\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value: T) => {\n          lastValue = value;\n          lastTime = scheduler.now();\n\n          // Only set up a task if it's not already up\n          if (!activeTask) {\n            activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n            subscriber.add(activeTask);\n          }\n        },\n        () => {\n          // Source completed.\n          // Emit any pending debounced values then complete\n          emit();\n          subscriber.complete();\n        },\n        // Pass all errors through to consumer.\n        undefined,\n        () => {\n          // Finalization.\n          lastValue = activeTask = null;\n        }\n      )\n    );\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * ![](defaultIfEmpty.png)\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * ## Example\n *\n * If no clicks happen in 5 seconds, then emit 'no clicks'\n *\n * ```ts\n * import { fromEvent, takeUntil, interval, defaultIfEmpty } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000)));\n * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param defaultValue The default value used if the source\n * Observable is empty.\n * @return A function that returns an Observable that emits either the\n * specified `defaultValue` if the source Observable emits no items, or the\n * values emitted by the source Observable.\n */\nexport function defaultIfEmpty<T, R>(defaultValue: R): OperatorFunction<T, T | R> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => {\n          if (!hasValue) {\n            subscriber.next(defaultValue!);\n          }\n          subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * ![](take.png)\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * ## Example\n *\n * Take the first 5 seconds of an infinite 1-second interval Observable\n *\n * ```ts\n * import { interval, take } from 'rxjs';\n *\n * const intervalCount = interval(1000);\n * const takeFive = intervalCount.pipe(take(5));\n * takeFive.subscribe(x => console.log(x));\n *\n * // Logs:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * ```\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of `next` values to emit.\n * @return A function that returns an Observable that emits only the first\n * `count` values emitted by the source Observable, or all of the values from\n * the source if the source emits fewer than `count` values.\n */\nexport function take<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? // If we are taking no values, that's empty.\n      () => EMPTY\n    : operate((source, subscriber) => {\n        let seen = 0;\n        source.subscribe(\n          createOperatorSubscriber(subscriber, (value) => {\n            // Increment the number of values we have seen,\n            // then check it against the allowed count to see\n            // if we are still letting values through.\n            if (++seen <= count) {\n              subscriber.next(value);\n              // If we have met or passed our allowed count,\n              // we need to complete. We have to do <= here,\n              // because re-entrant code will increment `seen` twice.\n              if (count <= seen) {\n                subscriber.complete();\n              }\n            }\n          })\n        );\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\n\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * ![](ignoreElements.png)\n *\n * The `ignoreElements` operator suppresses all items emitted by the source Observable,\n * but allows its termination notification (either `error` or `complete`) to pass through unchanged.\n *\n * If you do not care about the items being emitted by an Observable, but you do want to be notified\n * when it completes or when it terminates with an error, you can apply the `ignoreElements` operator\n * to the Observable, which will ensure that it will never call its observers\u2019 `next` handlers.\n *\n * ## Example\n *\n * Ignore all `next` emissions from the source\n *\n * ```ts\n * import { of, ignoreElements } from 'rxjs';\n *\n * of('you', 'talking', 'to', 'me')\n *   .pipe(ignoreElements())\n *   .subscribe({\n *     next: word => console.log(word),\n *     error: err => console.log('error:', err),\n *     complete: () => console.log('the end'),\n *   });\n *\n * // result:\n * // 'the end'\n * ```\n *\n * @return A function that returns an empty Observable that only calls\n * `complete` or `error`, based on which one is called by the source\n * Observable.\n */\nexport function ignoreElements(): OperatorFunction<unknown, never> {\n  return operate((source, subscriber) => {\n    source.subscribe(createOperatorSubscriber(subscriber, noop));\n  });\n}\n", "import { OperatorFunction } from '../types';\nimport { map } from './map';\n\n/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R>;\n/**\n * @deprecated Do not specify explicit type parameters. Signatures with type parameters\n * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9,\n * use {@link map} instead: `map(() => value)`.\n * */\nexport function mapTo<T, R>(value: R): OperatorFunction<T, R>;\n\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * ![](mapTo.png)\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * ## Example\n *\n * Map every click to the string `'Hi'`\n *\n * ```ts\n * import { fromEvent, mapTo } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const greetings = clicks.pipe(mapTo('Hi'));\n *\n * greetings.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link map}\n *\n * @param value The value to map each source value to.\n * @return A function that returns an Observable that emits the given `value`\n * every time the source Observable emits.\n * @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`.\n */\nexport function mapTo<R>(value: R): OperatorFunction<unknown, R> {\n  return map(() => value);\n}\n", "import { Observable } from '../Observable';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\n\n/** @deprecated The `subscriptionDelay` parameter will be removed in v8. */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay: Observable<any>\n): MonoTypeOperatorFunction<T>;\nexport function delayWhen<T>(delayDurationSelector: (value: T, index: number) => ObservableInput<any>): MonoTypeOperatorFunction<T>;\n\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * ![](delayWhen.png)\n *\n * `delayWhen` operator shifts each emitted value from the source Observable by\n * a time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the value emitted from\n * the source Observable as the first argument to the `delayDurationSelector`.\n * The `delayDurationSelector` function should return an {@link ObservableInput},\n * that is internally converted to an Observable that is called the \"duration\"\n * Observable.\n *\n * The source value is emitted on the output Observable only when the \"duration\"\n * Observable emits ({@link guide/glossary-and-semantics#next next}s) any value.\n * Upon that, the \"duration\" Observable gets unsubscribed.\n *\n * Before RxJS V7, the {@link guide/glossary-and-semantics#complete completion}\n * of the \"duration\" Observable would have been triggering the emission of the\n * source value to the output Observable, but with RxJS V7, this is not the case\n * anymore.\n *\n * Only next notifications (from the \"duration\" Observable) trigger values from\n * the source Observable to be passed to the output Observable. If the \"duration\"\n * Observable only emits the complete notification (without next), the value\n * emitted by the source Observable will never get to the output Observable - it\n * will be swallowed. If the \"duration\" Observable errors, the error will be\n * propagated to the output Observable.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * ## Example\n *\n * Delay each click by a random amount of time, between 0 and 5 seconds\n *\n * ```ts\n * import { fromEvent, delayWhen, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(\n *   delayWhen(() => interval(Math.random() * 5000))\n * );\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delay}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param delayDurationSelector A function that returns an `ObservableInput` for\n * each `value` emitted by the source Observable, which is then used to delay the\n * emission of that `value` on the output Observable until the `ObservableInput`\n * returned from this function emits a next value. When called, beside `value`,\n * this function receives a zero-based `index` of the emission order.\n * @param subscriptionDelay An Observable that triggers the subscription to the\n * source Observable once it emits any value.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by an amount of time specified by the Observable\n * returned by `delayDurationSelector`.\n */\nexport function delayWhen<T>(\n  delayDurationSelector: (value: T, index: number) => ObservableInput<any>,\n  subscriptionDelay?: Observable<any>\n): MonoTypeOperatorFunction<T> {\n  if (subscriptionDelay) {\n    // DEPRECATED PATH\n    return (source: Observable<T>) =>\n      concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n  }\n\n  return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\n\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * ![](delay.svg)\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * ## Examples\n *\n * Delay each click by one second\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const delayedClicks = clicks.pipe(delay(1000)); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * Delay all clicks until a future date happens\n *\n * ```ts\n * import { fromEvent, delay } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const date = new Date('March 15, 2050 12:00:00'); // in the future\n * const delayedClicks = clicks.pipe(delay(date)); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link delayWhen}\n * @see {@link throttle}\n * @see {@link throttleTime}\n * @see {@link debounce}\n * @see {@link debounceTime}\n * @see {@link sample}\n * @see {@link sampleTime}\n * @see {@link audit}\n * @see {@link auditTime}\n *\n * @param {number|Date} due The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for\n * managing the timers that handle the time-shift for each item.\n * @return A function that returns an Observable that delays the emissions of\n * the source Observable by the specified timeout or Date.\n */\nexport function delay<T>(due: number | Date, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction<T> {\n  const duration = timer(due, scheduler);\n  return delayWhen(() => duration);\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function distinctUntilChanged<T>(comparator?: (previous: T, current: T) => boolean): MonoTypeOperatorFunction<T>;\nexport function distinctUntilChanged<T, K>(\n  comparator: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a result {@link Observable} that emits all values pushed by the source observable if they\n * are distinct in comparison to the last value the result observable emitted.\n *\n * When provided without parameters or with the first parameter (`{@link distinctUntilChanged#comparator comparator}`),\n * it behaves like this:\n *\n * 1. It will always emit the first value from the source.\n * 2. For all subsequent values pushed by the source, they will be compared to the previously emitted values\n *    using the provided `comparator` or an `===` equality check.\n * 3. If the value pushed by the source is determined to be unequal by this check, that value is emitted and\n *    becomes the new \"previously emitted value\" internally.\n *\n * When the second parameter (`{@link distinctUntilChanged#keySelector keySelector}`) is provided, the behavior\n * changes:\n *\n * 1. It will always emit the first value from the source.\n * 2. The `keySelector` will be run against all values, including the first value.\n * 3. For all values after the first, the selected key will be compared against the key selected from\n *    the previously emitted value using the `comparator`.\n * 4. If the keys are determined to be unequal by this check, the value (not the key), is emitted\n *    and the selected key from that value is saved for future comparisons against other keys.\n *\n * ## Examples\n *\n * A very basic example with no `{@link distinctUntilChanged#comparator comparator}`. Note that `1` is emitted more than once,\n * because it's distinct in comparison to the _previously emitted_ value,\n * not in comparison to _all other emitted values_.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * of(1, 1, 1, 2, 2, 2, 1, 1, 3, 3)\n *   .pipe(distinctUntilChanged())\n *   .subscribe(console.log);\n * // Logs: 1, 2, 1, 3\n * ```\n *\n * With a `{@link distinctUntilChanged#comparator comparator}`, you can do custom comparisons. Let's say\n * you only want to emit a value when all of its components have\n * changed:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const totallyDifferentBuilds$ = of(\n *   { engineVersion: '1.1.0', transmissionVersion: '1.2.0' },\n *   { engineVersion: '1.1.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.4.0' },\n *   { engineVersion: '1.3.0', transmissionVersion: '1.5.0' },\n *   { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ).pipe(\n *   distinctUntilChanged((prev, curr) => {\n *     return (\n *       prev.engineVersion === curr.engineVersion ||\n *       prev.transmissionVersion === curr.transmissionVersion\n *     );\n *   })\n * );\n *\n * totallyDifferentBuilds$.subscribe(console.log);\n *\n * // Logs:\n * // { engineVersion: '1.1.0', transmissionVersion: '1.2.0' }\n * // { engineVersion: '1.3.0', transmissionVersion: '1.4.0' }\n * // { engineVersion: '2.0.0', transmissionVersion: '1.5.0' }\n * ```\n *\n * You can also provide a custom `{@link distinctUntilChanged#comparator comparator}` to check that emitted\n * changes are only in one direction. Let's say you only want to get\n * the next record temperature:\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * const temps$ = of(30, 31, 20, 34, 33, 29, 35, 20);\n *\n * const recordHighs$ = temps$.pipe(\n *   distinctUntilChanged((prevHigh, temp) => {\n *     // If the current temp is less than\n *     // or the same as the previous record,\n *     // the record hasn't changed.\n *     return temp <= prevHigh;\n *   })\n * );\n *\n * recordHighs$.subscribe(console.log);\n * // Logs: 30, 31, 34, 35\n * ```\n *\n * Selecting update events only when the `updatedBy` field shows\n * the account changed hands.\n *\n * ```ts\n * import { of, distinctUntilChanged } from 'rxjs';\n *\n * // A stream of updates to a given account\n * const accountUpdates$ = of(\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'blesh', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'ncjamieson', data: [] },\n *   { updatedBy: 'blesh', data: [] }\n * );\n *\n * // We only want the events where it changed hands\n * const changedHands$ = accountUpdates$.pipe(\n *   distinctUntilChanged(undefined, update => update.updatedBy)\n * );\n *\n * changedHands$.subscribe(console.log);\n * // Logs:\n * // { updatedBy: 'blesh', data: Array[0] }\n * // { updatedBy: 'ncjamieson', data: Array[0] }\n * // { updatedBy: 'blesh', data: Array[0] }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param comparator A function used to compare the previous and current keys for\n * equality. Defaults to a `===` check.\n * @param keySelector Used to select a key value to be passed to the `comparator`.\n *\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values.\n */\nexport function distinctUntilChanged<T, K>(\n  comparator?: (previous: K, current: K) => boolean,\n  keySelector: (value: T) => K = identity as (value: T) => K\n): MonoTypeOperatorFunction<T> {\n  // We've been allowing `null` do be passed as the `compare`, so we can't do\n  // a default value for the parameter, because that will only work\n  // for `undefined`.\n  comparator = comparator ?? defaultCompare;\n\n  return operate((source, subscriber) => {\n    // The previous key, used to compare against keys selected\n    // from new arrivals to determine \"distinctiveness\".\n    let previousKey: K;\n    // Whether or not this is the first value we've gotten.\n    let first = true;\n\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        // We always call the key selector.\n        const currentKey = keySelector(value);\n\n        // If it's the first value, we always emit it.\n        // Otherwise, we compare this key to the previous key, and\n        // if the comparer returns false, we emit.\n        if (first || !comparator!(previousKey, currentKey)) {\n          // Update our state *before* we emit the value\n          // as emission can be the source of re-entrant code\n          // in functional libraries like this. We only really\n          // need to do this if it's the first value, or if the\n          // key we're tracking in previous needs to change.\n          first = false;\n          previousKey = currentKey;\n\n          // Emit the value!\n          subscriber.next(value);\n        }\n      })\n    );\n  });\n}\n\nfunction defaultCompare(a: any, b: any) {\n  return a === b;\n}\n", "import { distinctUntilChanged } from './distinctUntilChanged';\nimport { MonoTypeOperatorFunction } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function distinctUntilKeyChanged<T>(key: keyof T): MonoTypeOperatorFunction<T>;\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * ## Examples\n *\n * An example comparing the name of persons\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo' },\n *   { age: 6, name: 'Foo' }\n * ).pipe(\n *   distinctUntilKeyChanged('name')\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n * ```\n *\n * An example comparing the first letters of the name\n *\n * ```ts\n * import { of, distinctUntilKeyChanged } from 'rxjs';\n *\n * of(\n *   { age: 4, name: 'Foo1' },\n *   { age: 7, name: 'Bar' },\n *   { age: 5, name: 'Foo2' },\n *   { age: 6, name: 'Foo3' }\n * ).pipe(\n *   distinctUntilKeyChanged('name', (x, y) => x.substring(0, 3) === y.substring(0, 3))\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo1' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo2' }\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n *\n * @param {string} key String key for object property lookup on each item.\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return A function that returns an Observable that emits items from the\n * source Observable with distinct values based on the key specified.\n */\nexport function distinctUntilKeyChanged<T, K extends keyof T>(key: K, compare?: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction<T> {\n  return distinctUntilChanged((x: T, y: T) => compare ? compare(x[key], y[key]) : x[key] === y[key]);\n}\n", "import { EmptyError } from '../util/EmptyError';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * If the source observable completes without emitting a value, it will emit\n * an error. The error will be created at that time by the optional\n * `errorFactory` argument, otherwise, the error will be {@link EmptyError}.\n *\n * ![](throwIfEmpty.png)\n *\n * ## Example\n *\n * Throw an error if the document wasn't clicked within 1 second\n *\n * ```ts\n * import { fromEvent, takeUntil, timer, throwIfEmpty } from 'rxjs';\n *\n * const click$ = fromEvent(document, 'click');\n *\n * click$.pipe(\n *   takeUntil(timer(1000)),\n *   throwIfEmpty(() => new Error('The document was not clicked within 1 second'))\n * )\n * .subscribe({\n *   next() {\n *    console.log('The document was clicked');\n *   },\n *   error(err) {\n *     console.error(err.message);\n *   }\n * });\n * ```\n *\n * @param errorFactory A factory function called to produce the\n * error to be thrown when the source observable completes without emitting a\n * value.\n * @return A function that returns an Observable that throws an error if the\n * source Observable completed without emitting.\n */\nexport function throwIfEmpty<T>(errorFactory: () => any = defaultErrorFactory): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          hasValue = true;\n          subscriber.next(value);\n        },\n        () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))\n      )\n    );\n  });\n}\n\nfunction defaultErrorFactory() {\n  return new EmptyError();\n}\n", "/** prettier */\nimport { Observable } from '../Observable';\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nimport { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ValueFromArray } from '../types';\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T>(scheduler: SchedulerLike): MonoTypeOperatorFunction<T>;\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function endWith<T, A extends unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\n\nexport function endWith<T, A extends unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that will emit all values from the source, then synchronously emit\n * the provided value(s) immediately after the source completes.\n *\n * NOTE: Passing a last argument of a Scheduler is _deprecated_, and may result in incorrect\n * types in TypeScript.\n *\n * This is useful for knowing when an observable ends. Particularly when paired with an\n * operator like {@link takeUntil}\n *\n * ![](endWith.png)\n *\n * ## Example\n *\n * Emit values to know when an interval starts and stops. The interval will\n * stop when a user clicks anywhere on the document.\n *\n * ```ts\n * import { interval, map, fromEvent, startWith, takeUntil, endWith } from 'rxjs';\n *\n * const ticker$ = interval(5000).pipe(\n *   map(() => 'tick')\n * );\n *\n * const documentClicks$ = fromEvent(document, 'click');\n *\n * ticker$.pipe(\n *   startWith('interval started'),\n *   takeUntil(documentClicks$),\n *   endWith('interval ended by click')\n * )\n * .subscribe(x => console.log(x));\n *\n * // Result (assuming a user clicks after 15 seconds)\n * // 'interval started'\n * // 'tick'\n * // 'tick'\n * // 'tick'\n * // 'interval ended by click'\n * ```\n *\n * @see {@link startWith}\n * @see {@link concat}\n * @see {@link takeUntil}\n *\n * @param values Items you want the modified Observable to emit last.\n * @return A function that returns an Observable that emits all values from the\n * source, then synchronously emits the provided value(s) immediately after the\n * source completes.\n */\nexport function endWith<T>(...values: Array<T | SchedulerLike>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => concat(source, of(...values)) as Observable<T>;\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\n\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * The specified function will also be called when the subscriber explicitly unsubscribes.\n *\n * ## Examples\n *\n * Execute callback function when the observable completes\n *\n * ```ts\n * import { interval, take, finalize } from 'rxjs';\n *\n * // emit value in sequence every 1 second\n * const source = interval(1000);\n * const example = source.pipe(\n *   take(5), //take only the first 5 values\n *   finalize(() => console.log('Sequence complete')) // Execute when the observable completes\n * );\n * const subscribe = example.subscribe(val => console.log(val));\n *\n * // results:\n * // 0\n * // 1\n * // 2\n * // 3\n * // 4\n * // 'Sequence complete'\n * ```\n *\n * Execute callback function when the subscriber explicitly unsubscribes\n *\n * ```ts\n * import { interval, finalize, tap, noop, timer } from 'rxjs';\n *\n * const source = interval(100).pipe(\n *   finalize(() => console.log('[finalize] Called')),\n *   tap({\n *     next: () => console.log('[next] Called'),\n *     error: () => console.log('[error] Not called'),\n *     complete: () => console.log('[tap complete] Not called')\n *   })\n * );\n *\n * const sub = source.subscribe({\n *   next: x => console.log(x),\n *   error: noop,\n *   complete: () => console.log('[complete] Not called')\n * });\n *\n * timer(150).subscribe(() => sub.unsubscribe());\n *\n * // results:\n * // '[next] Called'\n * // 0\n * // '[finalize] Called'\n * ```\n *\n * @param {function} callback Function to be called when source terminates.\n * @return A function that returns an Observable that mirrors the source, but\n * will call the specified function on termination.\n */\nexport function finalize<T>(callback: () => void): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    // TODO: This try/finally was only added for `useDeprecatedSynchronousErrorHandling`.\n    // REMOVE THIS WHEN THAT HOT GARBAGE IS REMOVED IN V8.\n    try {\n      source.subscribe(subscriber);\n    } finally {\n      subscriber.add(callback);\n    }\n  });\n}\n", "import { Observable } from '../Observable';\nimport { EmptyError } from '../util/EmptyError';\nimport { OperatorFunction, TruthyTypesOf } from '../types';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\n\nexport function first<T, D = T>(predicate?: null, defaultValue?: D): OperatorFunction<T, T | D>;\nexport function first<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function first<T, D>(predicate: BooleanConstructor, defaultValue: D): OperatorFunction<T, TruthyTypesOf<T> | D>;\nexport function first<T, S extends T>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue?: S\n): OperatorFunction<T, S>;\nexport function first<T, S extends T, D>(\n  predicate: (value: T, index: number, source: Observable<T>) => value is S,\n  defaultValue: D\n): OperatorFunction<T, S | D>;\nexport function first<T, D = T>(\n  predicate: (value: T, index: number, source: Observable<T>) => boolean,\n  defaultValue?: D\n): OperatorFunction<T, T | D>;\n\n/**\n * Emits only the first value (or the first value that meets some condition)\n * emitted by the source Observable.\n *\n * <span class=\"informal\">Emits only the first value. Or emits only the first\n * value that passes some test.</span>\n *\n * ![](first.png)\n *\n * If called with no arguments, `first` emits the first value of the source\n * Observable, then completes. If called with a `predicate` function, `first`\n * emits the first value of the source that matches the specified condition. Throws an error if\n * `defaultValue` was not provided and a matching element is not found.\n *\n * ## Examples\n *\n * Emit only the first click that happens on the DOM\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first());\n * result.subscribe(x => console.log(x));\n * ```\n *\n * Emits the first click that happens on a DIV\n *\n * ```ts\n * import { fromEvent, first } from 'rxjs';\n *\n * const div = document.createElement('div');\n * div.style.cssText = 'width: 200px; height: 200px; background: #09c;';\n * document.body.appendChild(div);\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(first(ev => (<HTMLElement>ev.target).tagName === 'DIV'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link take}\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * This is how `first()` is different from {@link take}(1) which completes instead.\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\n * An optional function called with each item to test for condition matching.\n * @param {D} [defaultValue] The default value emitted in case no valid value\n * was found on the source.\n * @return A function that returns an Observable that emits the first item that\n * matches the condition.\n */\nexport function first<T, D>(\n  predicate?: ((value: T, index: number, source: Observable<T>) => boolean) | null,\n  defaultValue?: D\n): OperatorFunction<T, T | D> {\n  const hasDefaultValue = arguments.length >= 2;\n  return (source: Observable<T>) =>\n    source.pipe(\n      predicate ? filter((v, i) => predicate(v, i, source)) : identity,\n      take(1),\n      hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new EmptyError())\n    );\n}\n", "import { EMPTY } from '../observable/empty';\nimport { MonoTypeOperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/**\n * Waits for the source to complete, then emits the last N values from the source,\n * as specified by the `count` argument.\n *\n * ![](takeLast.png)\n *\n * `takeLast` results in an observable that will hold values up to `count` values in memory,\n * until the source completes. It then pushes all values in memory to the consumer, in the\n * order they were received from the source, then notifies the consumer that it is\n * complete.\n *\n * If for some reason the source completes before the `count` supplied to `takeLast` is reached,\n * all values received until that point are emitted, and then completion is notified.\n *\n * **Warning**: Using `takeLast` with an observable that never completes will result\n * in an observable that never emits a value.\n *\n * ## Example\n *\n * Take the last 3 values of an Observable with many values\n *\n * ```ts\n * import { range, takeLast } from 'rxjs';\n *\n * const many = range(1, 100);\n * const lastThree = many.pipe(takeLast(3));\n * lastThree.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return A function that returns an Observable that emits at most the last\n * `count` values emitted by the source Observable.\n */\nexport function takeLast<T>(count: number): MonoTypeOperatorFunction<T> {\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        // This buffer will hold the values we are going to emit\n        // when the source completes. Since we only want to take the\n        // last N values, we can't emit until we're sure we're not getting\n        // any more values.\n        let buffer: T[] = [];\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              // Add the most recent value onto the end of our buffer.\n              buffer.push(value);\n              // If our buffer is now larger than the number of values we\n              // want to take, we remove the oldest value from the buffer.\n              count < buffer.length && buffer.shift();\n            },\n            () => {\n              // The source completed, we now know what are last values\n              // are, emit them in the order they were received.\n              for (const value of buffer) {\n                subscriber.next(value);\n              }\n              subscriber.complete();\n            },\n            // Errors are passed through to the consumer\n            undefined,\n            () => {\n              // During finalization release the values in our buffer.\n              buffer = null!;\n            }\n          )\n        );\n      });\n}\n", "import { ObservableInput, ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mergeAll } from './mergeAll';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from '../observable/from';\n\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrency: [...ObservableInputTuple<A>, number]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */\nexport function merge<T, A extends readonly unknown[]>(\n  ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number, SchedulerLike]\n): OperatorFunction<T, T | A[number]>;\n\nexport function merge<T>(...args: unknown[]): OperatorFunction<T, unknown> {\n  const scheduler = popScheduler(args);\n  const concurrent = popNumber(args, Infinity);\n  args = argsOrArgArray(args);\n\n  return operate((source, subscriber) => {\n    mergeAll(concurrent)(from([source, ...(args as ObservableInput<T>[])], scheduler)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction } from '../types';\nimport { merge } from './merge';\n\n/**\n * Merge the values from all observables to a single observable result.\n *\n * Creates an observable, that when subscribed to, subscribes to the source\n * observable, and all other sources provided as arguments. All values from\n * every source are emitted from the resulting subscription.\n *\n * When all sources complete, the resulting observable will complete.\n *\n * When any source errors, the resulting observable will error.\n *\n * ## Example\n *\n * Joining all outputs from multiple user input event streams\n *\n * ```ts\n * import { fromEvent, map, mergeWith } from 'rxjs';\n *\n * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click'));\n * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove'));\n * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick'));\n *\n * mousemoves$\n *   .pipe(mergeWith(clicks$, dblclicks$))\n *   .subscribe(x => console.log(x));\n *\n * // result (assuming user interactions)\n * // 'mousemove'\n * // 'mousemove'\n * // 'mousemove'\n * // 'click'\n * // 'click'\n * // 'dblclick'\n * ```\n *\n * @see {@link merge}\n *\n * @param otherSources the sources to combine the current source with.\n * @return A function that returns an Observable that merges the values from\n * all given Observables.\n */\nexport function mergeWith<T, A extends readonly unknown[]>(\n  ...otherSources: [...ObservableInputTuple<A>]\n): OperatorFunction<T, T | A[number]> {\n  return merge(...otherSources);\n}\n", "import { Subscription } from '../Subscription';\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\n\nexport interface RepeatConfig {\n  /**\n   * The number of times to repeat the source. Defaults to `Infinity`.\n   */\n  count?: number;\n\n  /**\n   * If a `number`, will delay the repeat of the source by that number of milliseconds.\n   * If a function, it will provide the number of times the source has been subscribed to,\n   * and the return value should be a valid observable input that will notify when the source\n   * should be repeated. If the notifier observable is empty, the result will complete.\n   */\n  delay?: number | ((count: number) => ObservableInput<any>);\n}\n\n/**\n * Returns an Observable that will resubscribe to the source stream when the source stream completes.\n *\n * <span class=\"informal\">Repeats all values emitted on the source. It's like {@link retry}, but for non error cases.</span>\n *\n * ![](repeat.png)\n *\n * Repeat will output values from a source until the source completes, then it will resubscribe to the\n * source a specified number of times, with a specified delay. Repeat can be particularly useful in\n * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile},\n * as it can be used to restart a source again from scratch.\n *\n * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but\n * `repeat` will resubscribe if the source completes.\n *\n * Note that `repeat` will _not_ catch errors. Use {@link retry} for that.\n *\n * - `repeat(0)` returns an empty observable\n * - `repeat()` will repeat forever\n * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions.\n * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions.\n * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition.\n *\n * ## Example\n *\n * Repeat a message stream\n *\n * ```ts\n * import { of, repeat } from 'rxjs';\n *\n * const source = of('Repeat message');\n * const result = source.pipe(repeat(3));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results\n * // 'Repeat message'\n * // 'Repeat message'\n * // 'Repeat message'\n * ```\n *\n * Repeat 3 values, 2 times\n *\n * ```ts\n * import { interval, take, repeat } from 'rxjs';\n *\n * const source = interval(1000);\n * const result = source.pipe(take(3), repeat(2));\n *\n * result.subscribe(x => console.log(x));\n *\n * // Results every second\n * // 0\n * // 1\n * // 2\n * // 0\n * // 1\n * // 2\n * ```\n *\n * Defining two complex repeats with delays on the same source.\n * Note that the second repeat cannot be called until the first\n * repeat as exhausted it's count.\n *\n * ```ts\n * import { defer, of, repeat } from 'rxjs';\n *\n * const source = defer(() => {\n *    return of(`Hello, it is ${new Date()}`)\n * });\n *\n * source.pipe(\n *    // Repeat 3 times with a delay of 1 second between repetitions\n *    repeat({\n *      count: 3,\n *      delay: 1000,\n *    }),\n *\n *    // *Then* repeat forever, but with an exponential step-back\n *    // maxing out at 1 minute.\n *    repeat({\n *      delay: (count) => timer(Math.min(60000, 2 ^ count * 1000))\n *    })\n * )\n * ```\n *\n * @see {@link repeatWhen}\n * @see {@link retry}\n *\n * @param count The number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n */\nexport function repeat<T>(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction<T> {\n  let count = Infinity;\n  let delay: RepeatConfig['delay'];\n\n  if (countOrConfig != null) {\n    if (typeof countOrConfig === 'object') {\n      ({ count = Infinity, delay } = countOrConfig);\n    } else {\n      count = countOrConfig;\n    }\n  }\n\n  return count <= 0\n    ? () => EMPTY\n    : operate((source, subscriber) => {\n        let soFar = 0;\n        let sourceSub: Subscription | null;\n\n        const resubscribe = () => {\n          sourceSub?.unsubscribe();\n          sourceSub = null;\n          if (delay != null) {\n            const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n            const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n              notifierSubscriber.unsubscribe();\n              subscribeToSource();\n            });\n            notifier.subscribe(notifierSubscriber);\n          } else {\n            subscribeToSource();\n          }\n        };\n\n        const subscribeToSource = () => {\n          let syncUnsub = false;\n          sourceSub = source.subscribe(\n            createOperatorSubscriber(subscriber, undefined, () => {\n              if (++soFar < count) {\n                if (sourceSub) {\n                  resubscribe();\n                } else {\n                  syncUnsub = true;\n                }\n              } else {\n                subscriber.complete();\n              }\n            })\n          );\n\n          if (syncUnsub) {\n            resubscribe();\n          }\n        };\n\n        subscribeToSource();\n      });\n}\n", "import { OperatorFunction } from '../types';\nimport { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\n\nexport function scan<V, A = V>(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction<V, V | A>;\nexport function scan<V, A>(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction<V, A>;\nexport function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction<V, A>;\n\n// TODO: link to a \"redux pattern\" section in the guide (location TBD)\n\n/**\n * Useful for encapsulating and managing state. Applies an accumulator (or \"reducer function\")\n * to each value from the source after an initial state is established -- either via\n * a `seed` value (second argument), or from the first value from the source.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation state after each update</span>\n *\n * ![](scan.png)\n *\n * This operator maintains an internal state and emits it after processing each value as follows:\n *\n * 1. First value arrives\n *   - If a `seed` value was supplied (as the second argument to `scan`), let `state = seed` and `value = firstValue`.\n *   - If NO `seed` value was supplied (no second argument), let `state = firstValue` and go to 3.\n * 2. Let `state = accumulator(state, value)`.\n *   - If an error is thrown by `accumulator`, notify the consumer of an error. The process ends.\n * 3. Emit `state`.\n * 4. Next value arrives, let `value = nextValue`, go to 2.\n *\n * ## Examples\n *\n * An average of previous numbers. This example shows how\n * not providing a `seed` can prime the stream with the\n * first value from the source.\n *\n * ```ts\n * import { of, scan, map } from 'rxjs';\n *\n * const numbers$ = of(1, 2, 3);\n *\n * numbers$\n *   .pipe(\n *     // Get the sum of the numbers coming in.\n *     scan((total, n) => total + n),\n *     // Get the average by dividing the sum by the total number\n *     // received so far (which is 1 more than the zero-based index).\n *     map((sum, index) => sum / (index + 1))\n *   )\n *   .subscribe(console.log);\n * ```\n *\n * The Fibonacci sequence. This example shows how you can use\n * a seed to prime accumulation process. Also... you know... Fibonacci.\n * So important to like, computers and stuff that its whiteboarded\n * in job interviews. Now you can show them the Rx version! (Please don't, haha)\n *\n * ```ts\n * import { interval, scan, map, startWith } from 'rxjs';\n *\n * const firstTwoFibs = [0, 1];\n * // An endless stream of Fibonacci numbers.\n * const fibonacci$ = interval(1000).pipe(\n *   // Scan to get the fibonacci numbers (after 0, 1)\n *   scan(([a, b]) => [b, a + b], firstTwoFibs),\n *   // Get the second number in the tuple, it's the one you calculated\n *   map(([, n]) => n),\n *   // Start with our first two digits :)\n *   startWith(...firstTwoFibs)\n * );\n *\n * fibonacci$.subscribe(console.log);\n * ```\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n * @see {@link switchScan}\n *\n * @param accumulator A \"reducer function\". This will be called for each value after an initial state is\n * acquired.\n * @param seed The initial state. If this is not provided, the first value from the source will\n * be used as the initial state, and emitted without going through the accumulator. All subsequent values\n * will be processed by the accumulator function. If this is provided, all values will go through\n * the accumulator function.\n * @return A function that returns an Observable of the accumulated values.\n */\nexport function scan<V, A, S>(accumulator: (acc: V | A | S, value: V, index: number) => A, seed?: S): OperatorFunction<V, V | A> {\n  // providing a seed of `undefined` *should* be valid and trigger\n  // hasSeed! so don't use `seed !== undefined` checks!\n  // For this reason, we have to check it here at the original call site\n  // otherwise inside Operator/Subscriber we won't know if `undefined`\n  // means they didn't provide anything or if they literally provided `undefined`\n  return operate(scanInternals(accumulator, seed as S, arguments.length >= 2, true));\n}\n", "import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\n\nexport interface ShareConfig<T> {\n  /**\n   * The factory used to create the subject that will connect the source observable to\n   * multicast consumers.\n   */\n  connector?: () => SubjectLike<T>;\n  /**\n   * If `true`, the resulting observable will reset internal state on error from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"retried\" in the event of an error.\n   * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent retries\n   * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however\n   * {@link ReplaySubject} will also push its buffered values before pushing the error.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnError?: boolean | ((error: any) => ObservableInput<any>);\n  /**\n   * If `true`, the resulting observable will reset internal state on completion from source and return to a \"cold\" state. This\n   * allows the resulting observable to be \"repeated\" after it is done.\n   * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject\n   * will remain the connecting subject, meaning the resulting observable will not go \"cold\" again, and subsequent repeats\n   * or resubscriptions will resubscribe to that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnComplete?: boolean | (() => ObservableInput<any>);\n  /**\n   * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the\n   * internal state will be reset and the resulting observable will return to a \"cold\" state. This means that the next\n   * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to\n   * again.\n   * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject\n   * will remain connected to the source, and new subscriptions to the result will be connected through that same subject.\n   * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained\n   * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets.\n   */\n  resetOnRefCountZero?: boolean | (() => ObservableInput<any>);\n}\n\nexport function share<T>(): MonoTypeOperatorFunction<T>;\n\nexport function share<T>(options: ShareConfig<T>): MonoTypeOperatorFunction<T>;\n\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for `multicast(() => new Subject()), refCount()`.\n *\n * The subscription to the underlying source Observable can be reset (unsubscribe and resubscribe for new subscribers),\n * if the subscriber count to the shared observable drops to 0, or if the source Observable errors or completes. It is\n * possible to use notifier factories for the resets to allow for behaviors like conditional or delayed resets. Please\n * note that resetting on error or complete of the source Observable does not behave like a transparent retry or restart\n * of the source because the error or complete will be forwarded to all subscribers and their subscription will be\n * closed. Only new subscribers after a reset on error or complete happened will cause a fresh subscription to the\n * source. To achieve transparent retries or restarts pipe the source through appropriate operators before sharing.\n *\n * ![](share.png)\n *\n * ## Example\n *\n * Generate new multicast Observable from the `source` Observable value\n *\n * ```ts\n * import { interval, tap, map, take, share } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   tap(x => console.log('Processing: ', x)),\n *   map(x => x * x),\n *   take(6),\n *   share()\n * );\n *\n * source.subscribe(x => console.log('subscription 1: ', x));\n * source.subscribe(x => console.log('subscription 2: ', x));\n *\n * // Logs:\n * // Processing: 0\n * // subscription 1: 0\n * // subscription 2: 0\n * // Processing: 1\n * // subscription 1: 1\n * // subscription 2: 1\n * // Processing: 2\n * // subscription 1: 4\n * // subscription 2: 4\n * // Processing: 3\n * // subscription 1: 9\n * // subscription 2: 9\n * // Processing: 4\n * // subscription 1: 16\n * // subscription 2: 16\n * // Processing: 5\n * // subscription 1: 25\n * // subscription 2: 25\n * ```\n *\n * ## Example with notifier factory: Delayed reset\n *\n * ```ts\n * import { interval, take, share, timer } from 'rxjs';\n *\n * const source = interval(1000).pipe(\n *   take(3),\n *   share({\n *     resetOnRefCountZero: () => timer(1000)\n *   })\n * );\n *\n * const subscriptionOne = source.subscribe(x => console.log('subscription 1: ', x));\n * setTimeout(() => subscriptionOne.unsubscribe(), 1300);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 2: ', x)), 1700);\n *\n * setTimeout(() => source.subscribe(x => console.log('subscription 3: ', x)), 5000);\n *\n * // Logs:\n * // subscription 1:  0\n * // (subscription 1 unsubscribes here)\n * // (subscription 2 subscribes here ~400ms later, source was not reset)\n * // subscription 2:  1\n * // subscription 2:  2\n * // (subscription 2 unsubscribes here)\n * // (subscription 3 subscribes here ~2000ms later, source did reset before)\n * // subscription 3:  0\n * // subscription 3:  1\n * // subscription 3:  2\n * ```\n *\n * @see {@link shareReplay}\n *\n * @return A function that returns an Observable that mirrors the source.\n */\nexport function share<T>(options: ShareConfig<T> = {}): MonoTypeOperatorFunction<T> {\n  const { connector = () => new Subject<T>(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options;\n  // It's necessary to use a wrapper here, as the _operator_ must be\n  // referentially transparent. Otherwise, it cannot be used in calls to the\n  // static `pipe` function - to create a partial pipeline.\n  //\n  // The _operator function_ - the function returned by the _operator_ - will\n  // not be referentially transparent - as it shares its source - but the\n  // _operator function_ is called when the complete pipeline is composed via a\n  // call to a source observable's `pipe` method - not when the static `pipe`\n  // function is called.\n  return (wrapperSource) => {\n    let connection: SafeSubscriber<T> | undefined;\n    let resetConnection: Subscription | undefined;\n    let subject: SubjectLike<T> | undefined;\n    let refCount = 0;\n    let hasCompleted = false;\n    let hasErrored = false;\n\n    const cancelReset = () => {\n      resetConnection?.unsubscribe();\n      resetConnection = undefined;\n    };\n    // Used to reset the internal state to a \"cold\"\n    // state, as though it had never been subscribed to.\n    const reset = () => {\n      cancelReset();\n      connection = subject = undefined;\n      hasCompleted = hasErrored = false;\n    };\n    const resetAndUnsubscribe = () => {\n      // We need to capture the connection before\n      // we reset (if we need to reset).\n      const conn = connection;\n      reset();\n      conn?.unsubscribe();\n    };\n\n    return operate<T, T>((source, subscriber) => {\n      refCount++;\n      if (!hasErrored && !hasCompleted) {\n        cancelReset();\n      }\n\n      // Create the subject if we don't have one yet. Grab a local reference to\n      // it as well, which avoids non-null assertions when using it and, if we\n      // connect to it now, then error/complete need a reference after it was\n      // reset.\n      const dest = (subject = subject ?? connector());\n\n      // Add the finalization directly to the subscriber - instead of returning it -\n      // so that the handling of the subscriber's unsubscription will be wired\n      // up _before_ the subscription to the source occurs. This is done so that\n      // the assignment to the source connection's `closed` property will be seen\n      // by synchronous firehose sources.\n      subscriber.add(() => {\n        refCount--;\n\n        // If we're resetting on refCount === 0, and it's 0, we only want to do\n        // that on \"unsubscribe\", really. Resetting on error or completion is a different\n        // configuration.\n        if (refCount === 0 && !hasErrored && !hasCompleted) {\n          resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n        }\n      });\n\n      // The following line adds the subscription to the subscriber passed.\n      // Basically, `subscriber === dest.subscribe(subscriber)` is `true`.\n      dest.subscribe(subscriber);\n\n      if (\n        !connection &&\n        // Check this shareReplay is still activate - it can be reset to 0\n        // and be \"unsubscribed\" _before_ it actually subscribes.\n        // If we were to subscribe then, it'd leak and get stuck.\n        refCount > 0\n      ) {\n        // We need to create a subscriber here - rather than pass an observer and\n        // assign the returned subscription to connection - because it's possible\n        // for reentrant subscriptions to the shared observable to occur and in\n        // those situations we want connection to be already-assigned so that we\n        // don't create another connection to the source.\n        connection = new SafeSubscriber({\n          next: (value) => dest.next(value),\n          error: (err) => {\n            hasErrored = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnError, err);\n            dest.error(err);\n          },\n          complete: () => {\n            hasCompleted = true;\n            cancelReset();\n            resetConnection = handleReset(reset, resetOnComplete);\n            dest.complete();\n          },\n        });\n        innerFrom(source).subscribe(connection);\n      }\n    })(wrapperSource);\n  };\n}\n\nfunction handleReset<T extends unknown[] = never[]>(\n  reset: () => void,\n  on: boolean | ((...args: T) => ObservableInput<any>),\n  ...args: T\n): Subscription | undefined {\n  if (on === true) {\n    reset();\n    return;\n  }\n\n  if (on === false) {\n    return;\n  }\n\n  const onSubscriber = new SafeSubscriber({\n    next: () => {\n      onSubscriber.unsubscribe();\n      reset();\n    },\n  });\n\n  return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n", "import { ReplaySubject } from '../ReplaySubject';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { share } from './share';\n\nexport interface ShareReplayConfig {\n  bufferSize?: number;\n  windowTime?: number;\n  refCount: boolean;\n  scheduler?: SchedulerLike;\n}\n\nexport function shareReplay<T>(config: ShareReplayConfig): MonoTypeOperatorFunction<T>;\nexport function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;\n\n/**\n * Share source and replay specified number of emissions on subscription.\n *\n * This operator is a specialization of `replay` that connects to a source observable\n * and multicasts through a `ReplaySubject` constructed with the specified arguments.\n * A successfully completed source will stay cached in the `shareReplay`ed observable forever,\n * but an errored source can be retried.\n *\n * ## Why use `shareReplay`?\n *\n * You generally want to use `shareReplay` when you have side-effects or taxing computations\n * that you do not wish to be executed amongst multiple subscribers.\n * It may also be valuable in situations where you know you will have late subscribers to\n * a stream that need access to previously emitted values.\n * This ability to replay values on subscription is what differentiates {@link share} and `shareReplay`.\n *\n * ## Reference counting\n *\n * By default `shareReplay` will use `refCount` of false, meaning that it will _not_ unsubscribe the\n * source when the reference counter drops to zero, i.e. the inner `ReplaySubject` will _not_ be unsubscribed\n * (and potentially run for ever).\n * This is the default as it is expected that `shareReplay` is often used to keep around expensive to setup\n * observables which we want to keep running instead of having to do the expensive setup again.\n *\n * As of RXJS version 6.4.0 a new overload signature was added to allow for manual control over what\n * happens when the operators internal reference counter drops to zero.\n * If `refCount` is true, the source will be unsubscribed from once the reference count drops to zero, i.e.\n * the inner `ReplaySubject` will be unsubscribed. All new subscribers will receive value emissions from a\n * new `ReplaySubject` which in turn will cause a new subscription to the source observable.\n *\n * ## Examples\n *\n * Example with a third subscriber coming late to the party\n *\n * ```ts\n * import { interval, take, shareReplay } from 'rxjs';\n *\n * const shared$ = interval(2000).pipe(\n *   take(6),\n *   shareReplay(3)\n * );\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * setTimeout(() => {\n *   shared$.subscribe(y => console.log('sub C: ', y));\n * }, 11000);\n *\n * // Logs:\n * // (after ~2000 ms)\n * // sub A: 0\n * // sub B: 0\n * // (after ~4000 ms)\n * // sub A: 1\n * // sub B: 1\n * // (after ~6000 ms)\n * // sub A: 2\n * // sub B: 2\n * // (after ~8000 ms)\n * // sub A: 3\n * // sub B: 3\n * // (after ~10000 ms)\n * // sub A: 4\n * // sub B: 4\n * // (after ~11000 ms, sub C gets the last 3 values)\n * // sub C: 2\n * // sub C: 3\n * // sub C: 4\n * // (after ~12000 ms)\n * // sub A: 5\n * // sub B: 5\n * // sub C: 5\n * ```\n *\n * Example for `refCount` usage\n *\n * ```ts\n * import { Observable, tap, interval, shareReplay, take } from 'rxjs';\n *\n * const log = <T>(name: string, source: Observable<T>) => source.pipe(\n *   tap({\n *     subscribe: () => console.log(`${ name }: subscribed`),\n *     next: value => console.log(`${ name }: ${ value }`),\n *     complete: () => console.log(`${ name }: completed`),\n *     finalize: () => console.log(`${ name }: unsubscribed`)\n *   })\n * );\n *\n * const obs$ = log('source', interval(1000));\n *\n * const shared$ = log('shared', obs$.pipe(\n *   shareReplay({ bufferSize: 1, refCount: true }),\n *   take(2)\n * ));\n *\n * shared$.subscribe(x => console.log('sub A: ', x));\n * shared$.subscribe(y => console.log('sub B: ', y));\n *\n * // PRINTS:\n * // shared: subscribed <-- reference count = 1\n * // source: subscribed\n * // shared: subscribed <-- reference count = 2\n * // source: 0\n * // shared: 0\n * // sub A: 0\n * // shared: 0\n * // sub B: 0\n * // source: 1\n * // shared: 1\n * // sub A: 1\n * // shared: completed <-- take(2) completes the subscription for sub A\n * // shared: unsubscribed <-- reference count = 1\n * // shared: 1\n * // sub B: 1\n * // shared: completed <-- take(2) completes the subscription for sub B\n * // shared: unsubscribed <-- reference count = 0\n * // source: unsubscribed <-- replaySubject unsubscribes from source observable because the reference count dropped to 0 and refCount is true\n *\n * // In case of refCount being false, the unsubscribe is never called on the source and the source would keep on emitting, even if no subscribers\n * // are listening.\n * // source: 2\n * // source: 3\n * // source: 4\n * // ...\n * ```\n *\n * @see {@link publish}\n * @see {@link share}\n * @see {@link publishReplay}\n *\n * @param configOrBufferSize Maximum element count of the replay buffer or {@link ShareReplayConfig configuration}\n * object.\n * @param windowTime Maximum time length of the replay buffer in milliseconds.\n * @param scheduler Scheduler where connected observers within the selector function\n * will be invoked on.\n * @return A function that returns an Observable sequence that contains the\n * elements of a sequence produced by multicasting the source sequence within a\n * selector function.\n */\nexport function shareReplay<T>(\n  configOrBufferSize?: ShareReplayConfig | number,\n  windowTime?: number,\n  scheduler?: SchedulerLike\n): MonoTypeOperatorFunction<T> {\n  let bufferSize: number;\n  let refCount = false;\n  if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n    ({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize);\n  } else {\n    bufferSize = (configOrBufferSize ?? Infinity) as number;\n  }\n  return share<T>({\n    connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n    resetOnError: true,\n    resetOnComplete: false,\n    resetOnRefCountZero: refCount,\n  });\n}\n", "import { MonoTypeOperatorFunction } from '../types';\nimport { filter } from './filter';\n\n/**\n * Returns an Observable that skips the first `count` items emitted by the source Observable.\n *\n * ![](skip.png)\n *\n * Skips the values until the sent notifications are equal or less than provided skip count. It raises\n * an error if skip count is equal or more than the actual number of emits and source raises an error.\n *\n * ## Example\n *\n * Skip the values before the emission\n *\n * ```ts\n * import { interval, skip } from 'rxjs';\n *\n * // emit every half second\n * const source = interval(500);\n * // skip the first 10 emitted values\n * const result = source.pipe(skip(10));\n *\n * result.subscribe(value => console.log(value));\n * // output: 10...11...12...13...\n * ```\n *\n * @see {@link last}\n * @see {@link skipWhile}\n * @see {@link skipUntil}\n * @see {@link skipLast}\n *\n * @param {Number} count - The number of times, items emitted by source Observable should be skipped.\n * @return A function that returns an Observable that skips the first `count`\n * values emitted by the source Observable.\n */\nexport function skip<T>(count: number): MonoTypeOperatorFunction<T> {\n  return filter((_, index) => count <= index);\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable\n * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP\n * requests or waiting for specific times to pass by.\n *\n * ![](skipUntil.png)\n *\n * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted\n * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator\n * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It\n * will never let the *source* observable emit any values if the `notifier` completes or throws an error without\n * emitting a value before.\n *\n * ## Example\n *\n * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere\n * within the page\n *\n * ```ts\n * import { interval, fromEvent, skipUntil } from 'rxjs';\n *\n * const intervalObservable = interval(1000);\n * const click = fromEvent(document, 'click');\n *\n * const emitAfterClick = intervalObservable.pipe(\n *   skipUntil(click)\n * );\n * // clicked at 4.6s. output: 5...6...7...8........ or\n * // clicked at 7.3s. output: 8...9...10..11.......\n * emitAfterClick.subscribe(value => console.log(value));\n * ```\n *\n * @see {@link last}\n * @see {@link skip}\n * @see {@link skipWhile}\n * @see {@link skipLast}\n *\n * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to\n * be mirrored by the resulting Observable.\n * @return A function that returns an Observable that skips items from the\n * source Observable until the `notifier` Observable emits an item, then emits the\n * remaining items.\n */\nexport function skipUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let taking = false;\n\n    const skipSubscriber = createOperatorSubscriber(\n      subscriber,\n      () => {\n        skipSubscriber?.unsubscribe();\n        taking = true;\n      },\n      noop\n    );\n\n    innerFrom(notifier).subscribe(skipSubscriber);\n\n    source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value)));\n  });\n}\n", "import { concat } from '../observable/concat';\nimport { OperatorFunction, SchedulerLike, ValueFromArray } from '../types';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\n\n// Devs are more likely to pass null or undefined than they are a scheduler\n// without accompanying values. To make things easier for (naughty) devs who\n// use the `strictNullChecks: false` TypeScript compiler option, these\n// overloads with explicit null and undefined values are included.\n\nexport function startWith<T>(value: null): OperatorFunction<T, T | null>;\nexport function startWith<T>(value: undefined): OperatorFunction<T, T | undefined>;\n\n/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */\nexport function startWith<T, A extends readonly unknown[] = T[]>(\n  ...valuesAndScheduler: [...A, SchedulerLike]\n): OperatorFunction<T, T | ValueFromArray<A>>;\nexport function startWith<T, A extends readonly unknown[] = T[]>(...values: A): OperatorFunction<T, T | ValueFromArray<A>>;\n\n/**\n * Returns an observable that, at the moment of subscription, will synchronously emit all\n * values provided to this operator, then subscribe to the source and mirror all of its emissions\n * to subscribers.\n *\n * This is a useful way to know when subscription has occurred on an existing observable.\n *\n * <span class=\"informal\">First emits its arguments in order, and then any\n * emissions from the source.</span>\n *\n * ![](startWith.png)\n *\n * ## Examples\n *\n * Emit a value when a timer starts.\n *\n * ```ts\n * import { timer, map, startWith } from 'rxjs';\n *\n * timer(1000)\n *   .pipe(\n *     map(() => 'timer emit'),\n *     startWith('timer start')\n *   )\n *   .subscribe(x => console.log(x));\n *\n * // results:\n * // 'timer start'\n * // 'timer emit'\n * ```\n *\n * @param values Items you want the modified Observable to emit first.\n * @return A function that returns an Observable that synchronously emits\n * provided values before subscribing to the source Observable.\n *\n * @see {@link endWith}\n * @see {@link finalize}\n * @see {@link concat}\n */\nexport function startWith<T, D>(...values: D[]): OperatorFunction<T, T | D> {\n  const scheduler = popScheduler(values);\n  return operate((source, subscriber) => {\n    // Here we can't pass `undefined` as a scheduler, because if we did, the\n    // code inside of `concat` would be confused by the `undefined`, and treat it\n    // like an invalid observable. So we have to split it two different ways.\n    (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n  });\n}\n", "import { Subscriber } from '../Subscriber';\nimport { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\n/* tslint:disable:max-line-length */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: undefined\n): OperatorFunction<T, ObservedValueOf<O>>;\n/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switchAll}.</span>\n *\n * ![](switchMap.png)\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * ## Example\n *\n * Generate new Observable according to source Observable values\n *\n * ```ts\n * import { of, switchMap } from 'rxjs';\n *\n * const switched = of(1, 2, 3).pipe(switchMap(x => of(x, x ** 2, x ** 3)));\n * switched.subscribe(x => console.log(x));\n * // outputs\n * // 1\n * // 1\n * // 1\n * // 2\n * // 4\n * // 8\n * // 3\n * // 9\n * // 27\n * ```\n *\n * Restart an interval Observable on every click event\n *\n * ```ts\n * import { fromEvent, switchMap, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(switchMap(() => interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switchAll}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @return A function that returns an Observable that emits the result of\n * applying the projection function (and the optional deprecated\n * `resultSelector`) to each item emitted by the source Observable and taking\n * only the values from the most recently projected inner Observable.\n */\nexport function switchMap<T, R, O extends ObservableInput<any>>(\n  project: (value: T, index: number) => O,\n  resultSelector?: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, ObservedValueOf<O> | R> {\n  return operate((source, subscriber) => {\n    let innerSubscriber: Subscriber<ObservedValueOf<O>> | null = null;\n    let index = 0;\n    // Whether or not the source subscription has completed\n    let isComplete = false;\n\n    // We only complete the result if the source is complete AND we don't have an active inner subscription.\n    // This is called both when the source completes and when the inners complete.\n    const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        (value) => {\n          // Cancel the previous inner subscription if there was one\n          innerSubscriber?.unsubscribe();\n          let innerIndex = 0;\n          const outerIndex = index++;\n          // Start the next inner subscription\n          innerFrom(project(value, outerIndex)).subscribe(\n            (innerSubscriber = createOperatorSubscriber(\n              subscriber,\n              // When we get a new inner value, next it through. Note that this is\n              // handling the deprecate result selector here. This is because with this architecture\n              // it ends up being smaller than using the map operator.\n              (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue),\n              () => {\n                // The inner has completed. Null out the inner subscriber to\n                // free up memory and to signal that we have no inner subscription\n                // currently.\n                innerSubscriber = null!;\n                checkComplete();\n              }\n            ))\n          );\n        },\n        () => {\n          isComplete = true;\n          checkComplete();\n        }\n      )\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\n\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits a value. Then, it completes.</span>\n *\n * ![](takeUntil.png)\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value, the output Observable stops mirroring the source Observable\n * and completes. If the `notifier` doesn't emit any value and completes\n * then `takeUntil` will pass all values.\n *\n * ## Example\n *\n * Tick every second until the first click happens\n *\n * ```ts\n * import { interval, fromEvent, takeUntil } from 'rxjs';\n *\n * const source = interval(1000);\n * const clicks = fromEvent(document, 'click');\n * const result = source.pipe(takeUntil(clicks));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return A function that returns an Observable that emits the values from the\n * source Observable until `notifier` emits its first value.\n */\nexport function takeUntil<T>(notifier: ObservableInput<any>): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n    !subscriber.closed && source.subscribe(subscriber);\n  });\n}\n", "import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\n\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: true): MonoTypeOperatorFunction<T>;\nexport function takeWhile<T>(predicate: BooleanConstructor, inclusive: false): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T>(predicate: BooleanConstructor): OperatorFunction<T, TruthyTypesOf<T>>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;\nexport function takeWhile<T, S extends T>(predicate: (value: T, index: number) => value is S, inclusive: false): OperatorFunction<T, S>;\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive?: boolean): MonoTypeOperatorFunction<T>;\n\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * ![](takeWhile.png)\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * ## Example\n *\n * Emit click events only while the clientX property is greater than 200\n *\n * ```ts\n * import { fromEvent, takeWhile } from 'rxjs';\n *\n * const clicks = fromEvent<PointerEvent>(document, 'click');\n * const result = clicks.pipe(takeWhile(ev => ev.clientX > 200));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @param {boolean} inclusive When set to `true` the value that caused\n * `predicate` to return `false` will also be emitted.\n * @return A function that returns an Observable that emits values from the\n * source Observable so long as each value satisfies the condition defined by\n * the `predicate`, then completes.\n */\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean, inclusive = false): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    let index = 0;\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        const result = predicate(value, index++);\n        (result || inclusive) && subscriber.next(value);\n        !result && subscriber.complete();\n      })\n    );\n  });\n}\n", "import { MonoTypeOperatorFunction, Observer } from '../types';\nimport { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\n\n/**\n * An extension to the {@link Observer} interface used only by the {@link tap} operator.\n *\n * It provides a useful set of callbacks a user can register to do side-effects in\n * cases other than what the usual {@link Observer} callbacks are\n * ({@link guide/glossary-and-semantics#next next},\n * {@link guide/glossary-and-semantics#error error} and/or\n * {@link guide/glossary-and-semantics#complete complete}).\n *\n * ## Example\n *\n * ```ts\n * import { fromEvent, switchMap, tap, interval, take } from 'rxjs';\n *\n * const source$ = fromEvent(document, 'click');\n * const result$ = source$.pipe(\n *   switchMap((_, i) => i % 2 === 0\n *     ? fromEvent(document, 'mousemove').pipe(\n *         tap({\n *           subscribe: () => console.log('Subscribed to the mouse move events after click #' + i),\n *           unsubscribe: () => console.log('Mouse move events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('Mouse move events #' + i + ' finalized')\n *         })\n *       )\n *     : interval(1_000).pipe(\n *         take(5),\n *         tap({\n *           subscribe: () => console.log('Subscribed to the 1-second interval events after click #' + i),\n *           unsubscribe: () => console.log('1-second interval events #' + i + ' unsubscribed'),\n *           finalize: () => console.log('1-second interval events #' + i + ' finalized')\n *         })\n *       )\n *   )\n * );\n *\n * const subscription = result$.subscribe({\n *   next: console.log\n * });\n *\n * setTimeout(() => {\n *   console.log('Unsubscribe after 60 seconds');\n *   subscription.unsubscribe();\n * }, 60_000);\n * ```\n */\nexport interface TapObserver<T> extends Observer<T> {\n  /**\n   * The callback that `tap` operator invokes at the moment when the source Observable\n   * gets subscribed to.\n   */\n  subscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when an explicit\n   * {@link guide/glossary-and-semantics#unsubscription unsubscribe} happens. It won't get invoked on\n   * `error` or `complete` events.\n   */\n  unsubscribe: () => void;\n  /**\n   * The callback that `tap` operator invokes when any kind of\n   * {@link guide/glossary-and-semantics#finalization finalization} happens - either when\n   * the source Observable `error`s or `complete`s or when it gets explicitly unsubscribed\n   * by the user. There is no difference in using this callback or the {@link finalize}\n   * operator, but if you're already using `tap` operator, you can use this callback\n   * instead. You'd get the same result in either case.\n   */\n  finalize: () => void;\n}\nexport function tap<T>(observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void)): MonoTypeOperatorFunction<T>;\n/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\nexport function tap<T>(\n  next?: ((value: T) => void) | null,\n  error?: ((error: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T>;\n\n/**\n * Used to perform side-effects for notifications from the source observable\n *\n * <span class=\"informal\">Used when you want to affect outside state with a notification without altering the notification</span>\n *\n * ![](tap.png)\n *\n * Tap is designed to allow the developer a designated place to perform side effects. While you _could_ perform side-effects\n * inside of a `map` or a `mergeMap`, that would make their mapping functions impure, which isn't always a big deal, but will\n * make it so you can't do things like memoize those functions. The `tap` operator is designed solely for such side-effects to\n * help you remove side-effects from other operations.\n *\n * For any notification, next, error, or complete, `tap` will call the appropriate callback you have provided to it, via a function\n * reference, or a partial observer, then pass that notification down the stream.\n *\n * The observable returned by `tap` is an exact mirror of the source, with one exception: Any error that occurs -- synchronously -- in a handler\n * provided to `tap` will be emitted as an error from the returned observable.\n *\n * > Be careful! You can mutate objects as they pass through the `tap` operator's handlers.\n *\n * The most common use of `tap` is actually for debugging. You can place a `tap(console.log)` anywhere\n * in your observable `pipe`, log out the notifications as they are emitted by the source returned by the previous\n * operation.\n *\n * ## Examples\n *\n * Check a random number before it is handled. Below is an observable that will use a random number between 0 and 1,\n * and emit `'big'` or `'small'` depending on the size of that number. But we wanted to log what the original number\n * was, so we have added a `tap(console.log)`.\n *\n * ```ts\n * import { of, tap, map } from 'rxjs';\n *\n * of(Math.random()).pipe(\n *   tap(console.log),\n *   map(n => n > 0.5 ? 'big' : 'small')\n * ).subscribe(console.log);\n * ```\n *\n * Using `tap` to analyze a value and force an error. Below is an observable where in our system we only\n * want to emit numbers 3 or less we get from another source. We can force our observable to error\n * using `tap`.\n *\n * ```ts\n * import { of, tap } from 'rxjs';\n *\n * const source = of(1, 2, 3, 4, 5);\n *\n * source.pipe(\n *   tap(n => {\n *     if (n > 3) {\n *       throw new TypeError(`Value ${ n } is greater than 3`);\n *     }\n *   })\n * )\n * .subscribe({ next: console.log, error: err => console.log(err.message) });\n * ```\n *\n * We want to know when an observable completes before moving on to the next observable. The system\n * below will emit a random series of `'X'` characters from 3 different observables in sequence. The\n * only way we know when one observable completes and moves to the next one, in this case, is because\n * we have added a `tap` with the side effect of logging to console.\n *\n * ```ts\n * import { of, concatMap, interval, take, map, tap } from 'rxjs';\n *\n * of(1, 2, 3).pipe(\n *   concatMap(n => interval(1000).pipe(\n *     take(Math.round(Math.random() * 10)),\n *     map(() => 'X'),\n *     tap({ complete: () => console.log(`Done with ${ n }`) })\n *   ))\n * )\n * .subscribe(console.log);\n * ```\n *\n * @see {@link finalize}\n * @see {@link TapObserver}\n *\n * @param observerOrNext A next handler or partial observer\n * @param error An error handler\n * @param complete A completion handler\n * @return A function that returns an Observable identical to the source, but\n * runs the specified Observer or callback(s) for each item.\n */\nexport function tap<T>(\n  observerOrNext?: Partial<TapObserver<T>> | ((value: T) => void) | null,\n  error?: ((e: any) => void) | null,\n  complete?: (() => void) | null\n): MonoTypeOperatorFunction<T> {\n  // We have to check to see not only if next is a function,\n  // but if error or complete were passed. This is because someone\n  // could technically call tap like `tap(null, fn)` or `tap(null, null, fn)`.\n  const tapObserver =\n    isFunction(observerOrNext) || error || complete\n      ? // tslint:disable-next-line: no-object-literal-type-assertion\n        ({ next: observerOrNext as Exclude<typeof observerOrNext, Partial<TapObserver<T>>>, error, complete } as Partial<TapObserver<T>>)\n      : observerOrNext;\n\n  return tapObserver\n    ? operate((source, subscriber) => {\n        tapObserver.subscribe?.();\n        let isUnsub = true;\n        source.subscribe(\n          createOperatorSubscriber(\n            subscriber,\n            (value) => {\n              tapObserver.next?.(value);\n              subscriber.next(value);\n            },\n            () => {\n              isUnsub = false;\n              tapObserver.complete?.();\n              subscriber.complete();\n            },\n            (err) => {\n              isUnsub = false;\n              tapObserver.error?.(err);\n              subscriber.error(err);\n            },\n            () => {\n              if (isUnsub) {\n                tapObserver.unsubscribe?.();\n              }\n              tapObserver.finalize?.();\n            }\n          )\n        );\n      })\n    : // Tap was called with no valid tap observer or handler\n      // (e.g. `tap(null, null, null)` or `tap(null)` or `tap()`)\n      // so we're going to just mirror the source.\n      identity;\n}\n", "import { Subscription } from '../Subscription';\n\nimport { MonoTypeOperatorFunction, ObservableInput } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\n\n/**\n * An object interface used by {@link throttle} or {@link throttleTime} that ensure\n * configuration options of these operators.\n *\n * @see {@link throttle}\n * @see {@link throttleTime}\n */\nexport interface ThrottleConfig {\n  /**\n   * If `true`, the resulting Observable will emit the first value from the source\n   * Observable at the **start** of the \"throttling\" process (when starting an\n   * internal timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the first value from the source Observable at the\n   * start of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `true`.\n   */\n  leading?: boolean;\n  /**\n   * If `true`, the resulting Observable will emit the last value from the source\n   * Observable at the **end** of the \"throttling\" process (when ending an internal\n   * timer that prevents other emissions from the source to pass through).\n   * If `false`, it will not emit the last value from the source Observable at the\n   * end of the \"throttling\" process.\n   *\n   * If not provided, defaults to: `false`.\n   */\n  trailing?: boolean;\n}\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * ![](throttle.svg)\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * ## Example\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttle, interval } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttle(() => interval(1000)));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param durationSelector A function that receives a value from the source\n * Observable, for computing the silencing duration for each source value,\n * returned as an `ObservableInput`.\n * @param config A configuration object to define `leading` and `trailing`\n * behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttle<T>(durationSelector: (value: T) => ObservableInput<any>, config?: ThrottleConfig): MonoTypeOperatorFunction<T> {\n  return operate((source, subscriber) => {\n    const { leading = true, trailing = false } = config ?? {};\n    let hasValue = false;\n    let sendValue: T | null = null;\n    let throttled: Subscription | null = null;\n    let isComplete = false;\n\n    const endThrottling = () => {\n      throttled?.unsubscribe();\n      throttled = null;\n      if (trailing) {\n        send();\n        isComplete && subscriber.complete();\n      }\n    };\n\n    const cleanupThrottling = () => {\n      throttled = null;\n      isComplete && subscriber.complete();\n    };\n\n    const startThrottle = (value: T) =>\n      (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));\n\n    const send = () => {\n      if (hasValue) {\n        // Ensure we clear out our value and hasValue flag\n        // before we emit, otherwise reentrant code can cause\n        // issues here.\n        hasValue = false;\n        const value = sendValue!;\n        sendValue = null;\n        // Emit the value.\n        subscriber.next(value);\n        !isComplete && startThrottle(value);\n      }\n    };\n\n    source.subscribe(\n      createOperatorSubscriber(\n        subscriber,\n        // Regarding the presence of throttled.closed in the following\n        // conditions, if a synchronous duration selector is specified - weird,\n        // but legal - an already-closed subscription will be assigned to\n        // throttled, so the subscription's closed property needs to be checked,\n        // too.\n        (value) => {\n          hasValue = true;\n          sendValue = value;\n          !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n        },\n        () => {\n          isComplete = true;\n          !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n        }\n      )\n    );\n  });\n}\n", "import { asyncScheduler } from '../scheduler/async';\nimport { throttle, ThrottleConfig } from './throttle';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\nimport { timer } from '../observable/timer';\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * ![](throttleTime.png)\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link SchedulerLike} for managing timers.\n *\n * ## Examples\n *\n * ### Limit click rate\n *\n * Emit clicks at a rate of at most one click per second\n *\n * ```ts\n * import { fromEvent, throttleTime } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(throttleTime(1000));\n *\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param scheduler The {@link SchedulerLike} to use for\n * managing the timers that handle the throttling. Defaults to {@link asyncScheduler}.\n * @param config A configuration object to define `leading` and\n * `trailing` behavior. Defaults to `{ leading: true, trailing: false }`.\n * @return A function that returns an Observable that performs the throttle\n * operation to limit the rate of emissions from the source.\n */\nexport function throttleTime<T>(\n  duration: number,\n  scheduler: SchedulerLike = asyncScheduler,\n  config?: ThrottleConfig\n): MonoTypeOperatorFunction<T> {\n  const duration$ = timer(duration, scheduler);\n  return throttle(() => duration$, config);\n}\n", "import { OperatorFunction, ObservableInputTuple } from '../types';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\n\nexport function withLatestFrom<T, O extends unknown[]>(...inputs: [...ObservableInputTuple<O>]): OperatorFunction<T, [T, ...O]>;\n\nexport function withLatestFrom<T, O extends unknown[], R>(\n  ...inputs: [...ObservableInputTuple<O>, (...value: [T, ...O]) => R]\n): OperatorFunction<T, R>;\n\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * ![](withLatestFrom.png)\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * ## Example\n *\n * On every click event, emit an array with the latest timer event plus the click event\n *\n * ```ts\n * import { fromEvent, interval, withLatestFrom } from 'rxjs';\n *\n * const clicks = fromEvent(document, 'click');\n * const timer = interval(1000);\n * const result = clicks.pipe(withLatestFrom(timer));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineLatest}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.pipe(withLatestFrom(b, c), map(([a1, b1, c1]) => a1 + b1 + c1))`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return A function that returns an Observable of projected values from the\n * most recent values from each input Observable, or an array of the most\n * recent values from each input Observable.\n */\nexport function withLatestFrom<T, R>(...inputs: any[]): OperatorFunction<T, R | any[]> {\n  const project = popResultSelector(inputs) as ((...args: any[]) => R) | undefined;\n\n  return operate((source, subscriber) => {\n    const len = inputs.length;\n    const otherValues = new Array(len);\n    // An array of whether or not the other sources have emitted. Matched with them by index.\n    // TODO: At somepoint, we should investigate the performance implications here, and look\n    // into using a `Set()` and checking the `size` to see if we're ready.\n    let hasValue = inputs.map(() => false);\n    // Flipped true when we have at least one value from all other sources and\n    // we are ready to start emitting values.\n    let ready = false;\n\n    // Other sources. Note that here we are not checking `subscriber.closed`,\n    // this causes all inputs to be subscribed to, even if nothing can be emitted\n    // from them. This is an important distinction because subscription constitutes\n    // a side-effect.\n    for (let i = 0; i < len; i++) {\n      innerFrom(inputs[i]).subscribe(\n        createOperatorSubscriber(\n          subscriber,\n          (value) => {\n            otherValues[i] = value;\n            if (!ready && !hasValue[i]) {\n              // If we're not ready yet, flag to show this observable has emitted.\n              hasValue[i] = true;\n              // Intentionally terse code.\n              // If all of our other observables have emitted, set `ready` to `true`,\n              // so we know we can start emitting values, then clean up the `hasValue` array,\n              // because we don't need it anymore.\n              (ready = hasValue.every(identity)) && (hasValue = null!);\n            }\n          },\n          // Completing one of the other sources has\n          // no bearing on the completion of our result.\n          noop\n        )\n      );\n    }\n\n    // Source subscription\n    source.subscribe(\n      createOperatorSubscriber(subscriber, (value) => {\n        if (ready) {\n          // We have at least one value from the other sources. Go ahead and emit.\n          const values = [value, ...otherValues];\n          subscriber.next(project ? project(...values) : values);\n        }\n      })\n    );\n  });\n}\n", "import { zip as zipStatic } from '../observable/zip';\nimport { ObservableInput, ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { operate } from '../util/lift';\n\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  otherInputsAndProject: [...ObservableInputTuple<A>],\n  project: (...values: Cons<T, A>) => R\n): OperatorFunction<T, R>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>>;\n/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */\nexport function zip<T, A extends readonly unknown[], R>(\n  ...otherInputsAndProject: [...ObservableInputTuple<A>, (...values: Cons<T, A>) => R]\n): OperatorFunction<T, R>;\n\n/**\n * @deprecated Replaced with {@link zipWith}. Will be removed in v8.\n */\nexport function zip<T, R>(...sources: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, any> {\n  return operate((source, subscriber) => {\n    zipStatic(source as ObservableInput<any>, ...(sources as Array<ObservableInput<any>>)).subscribe(subscriber);\n  });\n}\n", "import { ObservableInputTuple, OperatorFunction, Cons } from '../types';\nimport { zip } from './zip';\n\n/**\n * Subscribes to the source, and the observable inputs provided as arguments, and combines their values, by index, into arrays.\n *\n * What is meant by \"combine by index\": The first value from each will be made into a single array, then emitted,\n * then the second value from each will be combined into a single array and emitted, then the third value\n * from each will be combined into a single array and emitted, and so on.\n *\n * This will continue until it is no longer able to combine values of the same index into an array.\n *\n * After the last value from any one completed source is emitted in an array, the resulting observable will complete,\n * as there is no way to continue \"zipping\" values together by index.\n *\n * Use-cases for this operator are limited. There are memory concerns if one of the streams is emitting\n * values at a much faster rate than the others. Usage should likely be limited to streams that emit\n * at a similar pace, or finite streams of known length.\n *\n * In many cases, authors want `combineLatestWith` and not `zipWith`.\n *\n * @param otherInputs other observable inputs to collate values from.\n * @return A function that returns an Observable that emits items by index\n * combined from the source Observable and provided Observables, in form of an\n * array.\n */\nexport function zipWith<T, A extends readonly unknown[]>(...otherInputs: [...ObservableInputTuple<A>]): OperatorFunction<T, Cons<T, A>> {\n  return zip(...otherInputs);\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ReplaySubject,\n  Subject,\n  fromEvent\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch document\n *\n * Documents are implemented as subjects, so all downstream observables are\n * automatically updated when a new document is emitted.\n *\n * @returns Document subject\n */\nexport function watchDocument(): Subject<Document> {\n  const document$ = new ReplaySubject<Document>(1)\n  fromEvent(document, \"DOMContentLoaded\", { once: true })\n    .subscribe(() => document$.next(document))\n\n  /* Return document */\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve all elements matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getElements<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T][]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T[]\n\nexport function getElements<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T[] {\n  return Array.from(node.querySelectorAll<T>(selector))\n}\n\n/**\n * Retrieve an element matching a query selector or throw a reference error\n *\n * Note that this function assumes that the element is present. If unsure if an\n * element is existent, use the `getOptionalElement` function instead.\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T]\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T\n\nexport function getElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T {\n  const el = getOptionalElement<T>(selector, node)\n  if (typeof el === \"undefined\")\n    throw new ReferenceError(\n      `Missing element: expected \"${selector}\" to be present`\n    )\n\n  /* Return element */\n  return el\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Retrieve an optional element matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element or nothing\n */\nexport function getOptionalElement<T extends keyof HTMLElementTagNameMap>(\n  selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T] | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node?: ParentNode\n): T | undefined\n\nexport function getOptionalElement<T extends HTMLElement>(\n  selector: string, node: ParentNode = document\n): T | undefined {\n  return node.querySelector<T>(selector) || undefined\n}\n\n/**\n * Retrieve the currently active element\n *\n * @returns Element or nothing\n */\nexport function getActiveElement(): HTMLElement | undefined {\n  return (\n    document.activeElement?.shadowRoot?.activeElement as HTMLElement ??\n    document.activeElement as HTMLElement ??\n    undefined\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounceTime,\n  distinctUntilChanged,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Focus observable\n *\n * Previously, this observer used `focus` and `blur` events to determine whether\n * an element is focused, but this doesn't work if there are focusable elements\n * within the elements itself. A better solutions are `focusin` and `focusout`\n * events, which bubble up the tree and allow for more fine-grained control.\n *\n * `debounceTime` is necessary, because when a focus change happens inside an\n * element, the observable would first emit `false` and then `true` again.\n */\nconst observer$ = merge(\n  fromEvent(document.body, \"focusin\"),\n  fromEvent(document.body, \"focusout\")\n)\n  .pipe(\n    debounceTime(1),\n    startWith(undefined),\n    map(() => getActiveElement() || document.body),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element focus\n *\n * @param el - Element\n *\n * @returns Element focus observable\n */\nexport function watchElementFocus(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      map(active => el.contains(active)),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  debounce,\n  defer,\n  fromEvent,\n  identity,\n  map,\n  merge,\n  startWith,\n  timer\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element hover\n *\n * The second parameter allows to specify a timeout in milliseconds after which\n * the hover state will be reset to `false`. This is useful for tooltips which\n * should disappear after a certain amount of time, in order to allow the user\n * to move the cursor from the host to the tooltip.\n *\n * @param el - Element\n * @param timeout - Timeout\n *\n * @returns Element hover observable\n */\nexport function watchElementHover(\n  el: HTMLElement, timeout?: number\n): Observable<boolean> {\n  return defer(() => merge(\n    fromEvent(el, \"mouseenter\").pipe(map(() => true)),\n    fromEvent(el, \"mouseleave\").pipe(map(() => false))\n  )\n    .pipe(\n      timeout ? debounce(active => timer(+!active * timeout)) : identity,\n      startWith(el.matches(\":hover\"))\n    )\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { JSX as JSXInternal } from \"preact\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * HTML attributes\n */\ntype Attributes =\n  & JSXInternal.HTMLAttributes\n  & JSXInternal.SVGAttributes\n  & Record<string, any>\n\n/**\n * Child element\n */\ntype Child =\n  | ChildNode\n  | HTMLElement\n  | Text\n  | string\n  | number\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Append a child node to an element\n *\n * @param el - Element\n * @param child - Child node(s)\n */\nfunction appendChild(el: HTMLElement, child: Child | Child[]): void {\n\n  /* Handle primitive types (including raw HTML) */\n  if (typeof child === \"string\" || typeof child === \"number\") {\n    el.innerHTML += child.toString()\n\n  /* Handle nodes */\n  } else if (child instanceof Node) {\n    el.appendChild(child)\n\n  /* Handle nested children */\n  } else if (Array.isArray(child)) {\n    for (const node of child)\n      appendChild(el, node)\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * JSX factory\n *\n * @template T - Element type\n *\n * @param tag - HTML tag\n * @param attributes - HTML attributes\n * @param children - Child elements\n *\n * @returns Element\n */\nexport function h<T extends keyof HTMLElementTagNameMap>(\n  tag: T, attributes?: Attributes | null, ...children: Child[]\n): HTMLElementTagNameMap[T]\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T\n\nexport function h<T extends h.JSX.Element>(\n  tag: string, attributes?: Attributes | null, ...children: Child[]\n): T {\n  const el = document.createElement(tag)\n\n  /* Set attributes, if any */\n  if (attributes)\n    for (const attr of Object.keys(attributes)) {\n      if (typeof attributes[attr] === \"undefined\")\n        continue\n\n      /* Set default attribute or boolean */\n      if (typeof attributes[attr] !== \"boolean\")\n        el.setAttribute(attr, attributes[attr])\n      else\n        el.setAttribute(attr, \"\")\n    }\n\n  /* Append child nodes */\n  for (const child of children)\n    appendChild(el, child)\n\n  /* Return element */\n  return el as T\n}\n\n/* ----------------------------------------------------------------------------\n * Namespace\n * ------------------------------------------------------------------------- */\n\nexport declare namespace h {\n  namespace JSX {\n    type Element = HTMLElement\n    type IntrinsicElements = JSXInternal.IntrinsicElements\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Round a number for display with repository facts\n *\n * This is a reverse-engineered version of GitHub's weird rounding algorithm\n * for stars, forks and all other numbers. While all numbers below `1,000` are\n * returned as-is, bigger numbers are converted to fixed numbers:\n *\n * - `1,049` => `1k`\n * - `1,050` => `1.1k`\n * - `1,949` => `1.9k`\n * - `1,950` => `2k`\n *\n * @param value - Original value\n *\n * @returns Rounded value\n */\nexport function round(value: number): string {\n  if (value > 999) {\n    const digits = +((value - 950) % 1000 > 99)\n    return `${((value + 0.000001) / 1000).toFixed(digits)}k`\n  } else {\n    return value.toString()\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  switchMap,\n  take,\n  throwError\n} from \"rxjs\"\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create and load a `script` element\n *\n * This function returns an observable that will emit when the script was\n * successfully loaded, or throw an error if it wasn't.\n *\n * @param src - Script URL\n *\n * @returns Script observable\n */\nexport function watchScript(src: string): Observable<void> {\n  const script = h(\"script\", { src })\n  return defer(() => {\n    document.head.appendChild(script)\n    return merge(\n      fromEvent(script, \"load\"),\n      fromEvent(script, \"error\")\n        .pipe(\n          switchMap(() => (\n            throwError(() => new ReferenceError(`Invalid script: ${src}`))\n          ))\n        )\n    )\n      .pipe(\n        map(() => undefined),\n        finalize(() => document.head.removeChild(script)),\n        take(1)\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"../../../script\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementSize {\n  width: number                        /* Element width */\n  height: number                       /* Element height */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Resize observer entry subject\n */\nconst entry$ = new Subject<ResizeObserverEntry>()\n\n/**\n * Resize observer observable\n *\n * This observable will create a `ResizeObserver` on the first subscription\n * and will automatically terminate it when there are no more subscribers.\n * It's quite important to centralize observation in a single `ResizeObserver`,\n * as the performance difference can be quite dramatic, as the link shows.\n *\n * If the browser doesn't have a `ResizeObserver` implementation available, a\n * polyfill is automatically downloaded from unpkg.com. This is also compatible\n * with the built-in privacy plugin, which will download the polyfill and put\n * it alongside the built site for self-hosting.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => (\n  typeof ResizeObserver === \"undefined\"\n    ? watchScript(\"https://unpkg.com/resize-observer-polyfill\")\n    : of(undefined)\n))\n  .pipe(\n    map(() => new ResizeObserver(entries => (\n      entries.forEach(entry => entry$.next(entry))\n    ))),\n    switchMap(observer => merge(NEVER, of(observer)).pipe(\n      finalize(() => observer.disconnect())\n    )),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element size\n *\n * @param el - Element\n *\n * @returns Element size\n */\nexport function getElementSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.offsetWidth,\n    height: el.offsetHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element size\n *\n * This function returns an observable that subscribes to a single internal\n * instance of `ResizeObserver` upon subscription, and emit resize events until\n * termination. Note that this function should not be called with the same\n * element twice, as the first unsubscription will terminate observation.\n *\n * Sadly, we can't use the `DOMRect` objects returned by the observer, because\n * we need the emitted values to be consistent with `getElementSize`, which will\n * return the used values (rounded) and not actual values (unrounded). Thus, we\n * use the `offset*` properties. See the linked GitHub issue.\n *\n * @see https://bit.ly/3m0k3he - GitHub issue\n *\n * @param el - Element\n *\n * @returns Element size observable\n */\nexport function watchElementSize(\n  el: HTMLElement\n): Observable<ElementSize> {\n\n  // Compute target element - since inline elements cannot be observed by the\n  // current `ResizeObserver` implementation as provided by browsers, we need\n  // to determine the first containing parent element and use that one as a\n  // target, while we always compute the actual size from the element.\n  let target = el\n  while (target.clientWidth === 0)\n    if (target.parentElement)\n      target = target.parentElement\n    else\n      break\n\n  // Observe target element and recompute element size on resize - as described\n  // above, the target element is not necessarily the element of interest\n  return observer$.pipe(\n    tap(observer => observer.observe(target)),\n    switchMap(observer => entry$.pipe(\n      filter(entry => entry.target === target),\n      finalize(() => observer.unobserve(target))\n    )),\n    map(() => getElementSize(el)),\n    startWith(getElementSize(el))\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ElementSize } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content size (= scroll width and height)\n *\n * @param el - Element\n *\n * @returns Element content size\n */\nexport function getElementContentSize(\n  el: HTMLElement\n): ElementSize {\n  return {\n    width:  el.scrollWidth,\n    height: el.scrollHeight\n  }\n}\n\n/**\n * Retrieve the overflowing container of an element, if any\n *\n * @param el - Element\n *\n * @returns Overflowing container or nothing\n */\nexport function getElementContainer(\n  el: HTMLElement\n): HTMLElement | undefined {\n  let parent = el.parentElement\n  while (parent)\n    if (\n      el.scrollWidth  <= parent.scrollWidth &&\n      el.scrollHeight <= parent.scrollHeight\n    )\n      parent = (el = parent).parentElement\n    else\n      break\n\n  /* Return overflowing container */\n  return parent ? el : undefined\n}\n\n/**\n * Retrieve all overflowing containers of an element, if any\n *\n * Note that this function has a slightly different behavior, so we should at\n * some point consider refactoring how overflowing containers are handled.\n *\n * @param el - Element\n *\n * @returns Overflowing containers\n */\nexport function getElementContainers(\n  el: HTMLElement\n): HTMLElement[] {\n  const containers: HTMLElement[] = []\n\n  // Walk up the DOM tree until we find an overflowing container\n  let parent = el.parentElement\n  while (parent) {\n    if (\n      el.clientWidth  > parent.clientWidth ||\n      el.clientHeight > parent.clientHeight\n    )\n      containers.push(parent)\n\n    // Continue with parent element\n    parent = (el = parent).parentElement\n  }\n\n  // If the page is short, the body might not be overflowing and there might be\n  // no other containers, which is why we need to make sure the body is present\n  if (containers.length === 0)\n    containers.push(document.documentElement)\n\n  // Return overflowing containers\n  return containers\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\nimport { watchElementSize } from \"../../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.offsetLeft,\n    y: el.offsetTop\n  }\n}\n\n/**\n * Retrieve absolute element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffsetAbsolute(\n  el: HTMLElement\n): ElementOffset {\n  const rect = el.getBoundingClientRect()\n  return {\n    x: rect.x + window.scrollX,\n    y: rect.y + window.scrollY\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(window, \"load\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementOffset(el)),\n      startWith(getElementOffset(el))\n    )\n}\n\n/**\n * Watch absolute element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffsetAbsolute(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    watchElementOffset(el),\n    watchElementSize(document.body) // @todo find a better way for this\n  )\n    .pipe(\n      map(() => getElementOffsetAbsolute(el)),\n      startWith(getElementOffsetAbsolute(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  animationFrameScheduler,\n  auditTime,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\nimport { ElementOffset } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element content offset (= scroll offset)\n *\n * @param el - Element\n *\n * @returns Element content offset\n */\nexport function getElementContentOffset(\n  el: HTMLElement\n): ElementOffset {\n  return {\n    x: el.scrollLeft,\n    y: el.scrollTop\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element content offset\n *\n * @param el - Element\n *\n * @returns Element content offset observable\n */\nexport function watchElementContentOffset(\n  el: HTMLElement\n): Observable<ElementOffset> {\n  return merge(\n    fromEvent(el, \"scroll\"),\n    fromEvent(window, \"scroll\"),\n    fromEvent(window, \"resize\")\n  )\n    .pipe(\n      auditTime(0, animationFrameScheduler),\n      map(() => getElementContentOffset(el)),\n      startWith(getElementContentOffset(el))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  shareReplay,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElementContentSize,\n  getElementSize,\n  watchElementContentOffset\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Intersection observer entry subject\n */\nconst entry$ = new Subject<IntersectionObserverEntry>()\n\n/**\n * Intersection observer observable\n *\n * This observable will create an `IntersectionObserver` on first subscription\n * and will automatically terminate it when there are no more subscribers.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => of(\n  new IntersectionObserver(entries => {\n    for (const entry of entries)\n      entry$.next(entry)\n  }, {\n    threshold: 0\n  })\n))\n  .pipe(\n    switchMap(observer => merge(NEVER, of(observer))\n      .pipe(\n        finalize(() => observer.disconnect())\n      )\n    ),\n    shareReplay(1)\n  )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch element visibility\n *\n * @param el - Element\n *\n * @returns Element visibility observable\n */\nexport function watchElementVisibility(\n  el: HTMLElement\n): Observable<boolean> {\n  return observer$\n    .pipe(\n      tap(observer => observer.observe(el)),\n      switchMap(observer => entry$\n        .pipe(\n          filter(({ target }) => target === el),\n          finalize(() => observer.unobserve(el)),\n          map(({ isIntersecting }) => isIntersecting)\n        )\n      )\n    )\n}\n\n/**\n * Watch element boundary\n *\n * This function returns an observable which emits whether the bottom content\n * boundary (= scroll offset) of an element is within a certain threshold.\n *\n * @param el - Element\n * @param threshold - Threshold\n *\n * @returns Element boundary observable\n */\nexport function watchElementBoundary(\n  el: HTMLElement, threshold = 16\n): Observable<boolean> {\n  return watchElementContentOffset(el)\n    .pipe(\n      map(({ y }) => {\n        const visible = getElementSize(el)\n        const content = getElementContentSize(el)\n        return y >= (\n          content.height - visible.height - threshold\n        )\n      }),\n      distinctUntilChanged()\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getElement } from \"../element\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle\n */\nexport type Toggle =\n  | \"drawer\"                           /* Toggle for drawer */\n  | \"search\"                           /* Toggle for search */\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle map\n */\nconst toggles: Record<Toggle, HTMLInputElement> = {\n  drawer: getElement(\"[data-md-toggle=drawer]\"),\n  search: getElement(\"[data-md-toggle=search]\")\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the value of a toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value\n */\nexport function getToggle(name: Toggle): boolean {\n  return toggles[name].checked\n}\n\n/**\n * Set toggle\n *\n * Simulating a click event seems to be the most cross-browser compatible way\n * of changing the value while also emitting a `change` event. Before, Material\n * used `CustomEvent` to programmatically change the value of a toggle, but this\n * is a much simpler and cleaner solution which doesn't require a polyfill.\n *\n * @param name - Toggle\n * @param value - Toggle value\n */\nexport function setToggle(name: Toggle, value: boolean): void {\n  if (toggles[name].checked !== value)\n    toggles[name].click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value observable\n */\nexport function watchToggle(name: Toggle): Observable<boolean> {\n  const el = toggles[name]\n  return fromEvent(el, \"change\")\n    .pipe(\n      map(() => el.checked),\n      startWith(el.checked)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  share,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\nimport { getActiveElement } from \"../element\"\nimport { getToggle } from \"../toggle\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Keyboard mode\n */\nexport type KeyboardMode =\n  | \"global\"                           /* Global */\n  | \"search\"                           /* Search is open */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Keyboard\n */\nexport interface Keyboard {\n  mode: KeyboardMode                   /* Keyboard mode */\n  type: string                         /* Key type */\n  claim(): void                        /* Key claim */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether an element may receive keyboard input\n *\n * @param el - Element\n * @param type - Key type\n *\n * @returns Test result\n */\nfunction isSusceptibleToKeyboard(\n  el: HTMLElement, type: string\n): boolean {\n  switch (el.constructor) {\n\n    /* Input elements */\n    case HTMLInputElement:\n      /* @ts-expect-error - omit unnecessary type cast */\n      if (el.type === \"radio\")\n        return /^Arrow/.test(type)\n      else\n        return true\n\n    /* Select element and textarea */\n    case HTMLSelectElement:\n    case HTMLTextAreaElement:\n      return true\n\n    /* Everything else */\n    default:\n      return el.isContentEditable\n  }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch composition events\n *\n * @returns Composition observable\n */\nexport function watchComposition(): Observable<boolean> {\n  return merge(\n    fromEvent(window, \"compositionstart\").pipe(map(() => true)),\n    fromEvent(window, \"compositionend\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(false)\n    )\n}\n\n/**\n * Watch keyboard\n *\n * @returns Keyboard observable\n */\nexport function watchKeyboard(): Observable<Keyboard> {\n  const keyboard$ = fromEvent<KeyboardEvent>(window, \"keydown\")\n    .pipe(\n      filter(ev => !(ev.metaKey || ev.ctrlKey)),\n      map(ev => ({\n        mode: getToggle(\"search\") ? \"search\" : \"global\",\n        type: ev.key,\n        claim() {\n          ev.preventDefault()\n          ev.stopPropagation()\n        }\n      } as Keyboard)),\n      filter(({ mode, type }) => {\n        if (mode === \"global\") {\n          const active = getActiveElement()\n          if (typeof active !== \"undefined\")\n            return !isSusceptibleToKeyboard(active, type)\n        }\n        return true\n      }),\n      share()\n    )\n\n  /* Don't emit during composition events - see https://bit.ly/3te3Wl8 */\n  return watchComposition()\n    .pipe(\n      switchMap(active => !active ? keyboard$ : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Subject } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location\n *\n * This function returns a `URL` object (and not `Location`) to normalize the\n * typings across the application. Furthermore, locations need to be tracked\n * without setting them and `Location` is a singleton which represents the\n * current location.\n *\n * @returns URL\n */\nexport function getLocation(): URL {\n  return new URL(location.href)\n}\n\n/**\n * Set location\n *\n * If instant navigation is enabled, this function creates a temporary anchor\n * element, sets the `href` attribute, appends it to the body, clicks it, and\n * then removes it again. The event will bubble up the DOM and trigger be\n * intercepted by the instant loading business logic.\n *\n * Note that we must append and remove the anchor element, or the event will\n * not bubble up the DOM, making it impossible to intercept it.\n *\n * @param url - URL to navigate to\n * @param navigate - Force navigation\n */\nexport function setLocation(\n  url: URL | HTMLLinkElement, navigate = false\n): void {\n  if (feature(\"navigation.instant\") && !navigate) {\n    const el = h(\"a\", { href: url.href })\n    document.body.appendChild(el)\n    el.click()\n    el.remove()\n\n  // If we're not using instant navigation, and the page should not be reloaded\n  // just instruct the browser to navigate to the given URL\n  } else {\n    location.href = url.href\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location\n *\n * @returns Location subject\n */\nexport function watchLocation(): Subject<URL> {\n  return new Subject<URL>()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  merge,\n  shareReplay,\n  startWith\n} from \"rxjs\"\n\nimport { getOptionalElement } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location hash\n *\n * @returns Location hash\n */\nexport function getLocationHash(): string {\n  return location.hash.slice(1)\n}\n\n/**\n * Set location hash\n *\n * Setting a new fragment identifier via `location.hash` will have no effect\n * if the value doesn't change. When a new fragment identifier is set, we want\n * the browser to target the respective element at all times, which is why we\n * use this dirty little trick.\n *\n * @param hash - Location hash\n */\nexport function setLocationHash(hash: string): void {\n  const el = h(\"a\", { href: hash })\n  el.addEventListener(\"click\", ev => ev.stopPropagation())\n  el.click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location hash\n *\n * @param location$ - Location observable\n *\n * @returns Location hash observable\n */\nexport function watchLocationHash(\n  location$: Observable<URL>\n): Observable<string> {\n  return merge(\n    fromEvent<HashChangeEvent>(window, \"hashchange\"),\n    location$\n  )\n    .pipe(\n      map(getLocationHash),\n      startWith(getLocationHash()),\n      filter(hash => hash.length > 0),\n      shareReplay(1)\n    )\n}\n\n/**\n * Watch location target\n *\n * @param location$ - Location observable\n *\n * @returns Location target observable\n */\nexport function watchLocationTarget(\n  location$: Observable<URL>\n): Observable<HTMLElement> {\n  return watchLocationHash(location$)\n    .pipe(\n      map(id => getOptionalElement(`[id=\"${id}\"]`)!),\n      filter(el => typeof el !== \"undefined\")\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  fromEvent,\n  fromEventPattern,\n  map,\n  merge,\n  startWith,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch media query\n *\n * Note that although `MediaQueryList.addListener` is deprecated we have to\n * use it, because it's the only way to ensure proper downward compatibility.\n *\n * @see https://bit.ly/3dUBH2m - GitHub issue\n *\n * @param query - Media query\n *\n * @returns Media observable\n */\nexport function watchMedia(query: string): Observable<boolean> {\n  const media = matchMedia(query)\n  return fromEventPattern<boolean>(next => (\n    media.addListener(() => next(media.matches))\n  ))\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/**\n * Watch print mode\n *\n * @returns Print observable\n */\nexport function watchPrint(): Observable<boolean> {\n  const media = matchMedia(\"print\")\n  return merge(\n    fromEvent(window, \"beforeprint\").pipe(map(() => true)),\n    fromEvent(window, \"afterprint\").pipe(map(() => false))\n  )\n    .pipe(\n      startWith(media.matches)\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Toggle an observable with a media observable\n *\n * @template T - Data type\n *\n * @param query$ - Media observable\n * @param factory - Observable factory\n *\n * @returns Toggled observable\n */\nexport function at<T>(\n  query$: Observable<boolean>, factory: () => Observable<T>\n): Observable<T> {\n  return query$\n    .pipe(\n      switchMap(active => active ? factory() : EMPTY)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  map,\n  shareReplay,\n  switchMap\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Options\n */\ninterface Options {\n  progress$?: Subject<number>          // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the given URL\n *\n * This function returns an observable that emits the response as a blob and\n * completes, or emits an error if the request failed. The caller can cancel\n * the request by unsubscribing at any time, which will automatically abort\n * the inflight request and complete the observable.\n *\n * Note that we use `XMLHTTPRequest` not because we're nostalgic, but because\n * it's the only way to get progress events for downloads and also allow for\n * cancellation of requests, as the official Fetch API does not support this\n * yet, even though we're already in 2024.\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function request(\n  url: URL | string, options?: Options\n): Observable<Blob> {\n  return new Observable<Blob>(observer => {\n    const req = new XMLHttpRequest()\n    req.open(\"GET\", `${url}`)\n    req.responseType = \"blob\"\n\n    // Handle response\n    req.addEventListener(\"load\", () => {\n      if (req.status >= 200 && req.status < 300) {\n        observer.next(req.response)\n        observer.complete()\n\n      // Every response that is not in the 2xx range is considered an error\n      } else {\n        observer.error(new Error(req.statusText))\n      }\n    })\n\n    // Handle network errors\n    req.addEventListener(\"error\", () => {\n      observer.error(new Error(\"Network error\"))\n    })\n\n    // Handle aborted requests\n    req.addEventListener(\"abort\", () => {\n      observer.complete()\n    })\n\n    // Handle download progress\n    if (typeof options?.progress$ !== \"undefined\") {\n      req.addEventListener(\"progress\", event => {\n        if (event.lengthComputable) {\n          options.progress$!.next((event.loaded / event.total) * 100)\n\n        // Hack: Chromium doesn't report the total number of bytes if content\n        // is compressed, so we need this fallback - see https://t.ly/ZXofI\n        } else {\n          const length = req.getResponseHeader(\"Content-Length\") ?? 0\n          options.progress$!.next((event.loaded / +length) * 100)\n        }\n      })\n\n      // Immediately set progress to 5% to indicate that we're loading\n      options.progress$.next(5)\n    }\n\n    // Send request and automatically abort request upon unsubscription\n    req.send()\n    return () => req.abort()\n  })\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Fetch JSON from the given URL\n *\n * @template T - Data type\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestJSON<T>(\n  url: URL | string, options?: Options\n): Observable<T> {\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(body => JSON.parse(body) as T),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch HTML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestHTML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/html\")),\n      shareReplay(1)\n    )\n}\n\n/**\n * Fetch XML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestXML(\n  url: URL | string, options?: Options\n): Observable<Document> {\n  const dom = new DOMParser()\n  return request(url, options)\n    .pipe(\n      switchMap(res => res.text()),\n      map(res => dom.parseFromString(res, \"text/xml\")),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  merge,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport offset\n */\nexport interface ViewportOffset {\n  x: number                            /* Horizontal offset */\n  y: number                            /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport offset\n *\n * On iOS Safari, viewport offset can be negative due to overflow scrolling.\n * As this may induce strange behaviors downstream, we'll just limit it to 0.\n *\n * @returns Viewport offset\n */\nexport function getViewportOffset(): ViewportOffset {\n  return {\n    x: Math.max(0, scrollX),\n    y: Math.max(0, scrollY)\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport offset\n *\n * @returns Viewport offset observable\n */\nexport function watchViewportOffset(): Observable<ViewportOffset> {\n  return merge(\n    fromEvent(window, \"scroll\", { passive: true }),\n    fromEvent(window, \"resize\", { passive: true })\n  )\n    .pipe(\n      map(getViewportOffset),\n      startWith(getViewportOffset())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  startWith\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport size\n */\nexport interface ViewportSize {\n  width: number                        /* Viewport width */\n  height: number                       /* Viewport height */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport size\n *\n * @returns Viewport size\n */\nexport function getViewportSize(): ViewportSize {\n  return {\n    width:  innerWidth,\n    height: innerHeight\n  }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport size\n *\n * @returns Viewport size observable\n */\nexport function watchViewportSize(): Observable<ViewportSize> {\n  return fromEvent(window, \"resize\", { passive: true })\n    .pipe(\n      map(getViewportSize),\n      startWith(getViewportSize())\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  map,\n  shareReplay\n} from \"rxjs\"\n\nimport {\n  ViewportOffset,\n  watchViewportOffset\n} from \"../offset\"\nimport {\n  ViewportSize,\n  watchViewportSize\n} from \"../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport\n */\nexport interface Viewport {\n  offset: ViewportOffset               /* Viewport offset */\n  size: ViewportSize                   /* Viewport size */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport\n *\n * @returns Viewport observable\n */\nexport function watchViewport(): Observable<Viewport> {\n  return combineLatest([\n    watchViewportOffset(),\n    watchViewportSize()\n  ])\n    .pipe(\n      map(([offset, size]) => ({ offset, size })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilKeyChanged,\n  map\n} from \"rxjs\"\n\nimport { Header } from \"~/components\"\n\nimport { getElementOffset } from \"../../element\"\nimport { Viewport } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport relative to element\n *\n * @param el - Element\n * @param options - Options\n *\n * @returns Viewport observable\n */\nexport function watchViewportAt(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Viewport> {\n  const size$ = viewport$\n    .pipe(\n      distinctUntilKeyChanged(\"size\")\n    )\n\n  /* Compute element offset */\n  const offset$ = combineLatest([size$, header$])\n    .pipe(\n      map(() => getElementOffset(el))\n    )\n\n  /* Compute relative viewport, return hot observable */\n  return combineLatest([header$, viewport$, offset$])\n    .pipe(\n      map(([{ height }, { offset, size }, { x, y }]) => ({\n        offset: {\n          x: offset.x - x,\n          y: offset.y - y + height\n        },\n        size\n      }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  mergeWith,\n  share,\n  takeUntil\n} from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Worker message\n */\nexport interface WorkerMessage {\n  type: unknown                        /* Message type */\n  data?: unknown                       /* Message data */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create an observable for receiving from a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message observable\n */\nfunction recv<T>(worker: Worker): Observable<T> {\n  return fromEvent<MessageEvent<T>, T>(worker, \"message\", ev => ev.data)\n}\n\n/**\n * Create a subject for sending to a web worker\n *\n * @template T - Data type\n *\n * @param worker - Web worker\n *\n * @returns Message subject\n */\nfunction send<T>(worker: Worker): Subject<T> {\n  const send$ = new Subject<T>()\n  send$.subscribe(data => worker.postMessage(data))\n\n  /* Return message subject */\n  return send$\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a bidirectional communication channel to a web worker\n *\n * @template T - Data type\n *\n * @param url - Worker URL\n * @param worker - Worker\n *\n * @returns Worker subject\n */\nexport function watchWorker<T extends WorkerMessage>(\n  url: string, worker = new Worker(url)\n): Subject<T> {\n  const recv$ = recv<T>(worker)\n  const send$ = send<T>(worker)\n\n  /* Create worker subject and forward messages */\n  const worker$ = new Subject<T>()\n  worker$.subscribe(send$)\n\n  /* Return worker subject */\n  const done$ = send$.pipe(ignoreElements(), endWith(true))\n  return worker$\n    .pipe(\n      ignoreElements(),\n      mergeWith(recv$.pipe(takeUntil(done$))),\n      share()\n    ) as Subject<T>\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getLocation } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Feature flag\n */\nexport type Flag =\n  | \"announce.dismiss\"                 /* Dismissable announcement bar */\n  | \"content.code.annotate\"            /* Code annotations */\n  | \"content.code.copy\"                /* Code copy button */\n  | \"content.lazy\"                     /* Lazy content elements */\n  | \"content.tabs.link\"                /* Link content tabs */\n  | \"content.tooltips\"                 /* Tooltips */\n  | \"header.autohide\"                  /* Hide header */\n  | \"navigation.expand\"                /* Automatic expansion */\n  | \"navigation.indexes\"               /* Section pages */\n  | \"navigation.instant\"               /* Instant navigation */\n  | \"navigation.instant.progress\"      /* Instant navigation progress */\n  | \"navigation.sections\"              /* Section navigation */\n  | \"navigation.tabs\"                  /* Tabs navigation */\n  | \"navigation.tabs.sticky\"           /* Tabs navigation (sticky) */\n  | \"navigation.top\"                   /* Back-to-top button */\n  | \"navigation.tracking\"              /* Anchor tracking */\n  | \"search.highlight\"                 /* Search highlighting */\n  | \"search.share\"                     /* Search sharing */\n  | \"search.suggest\"                   /* Search suggestions */\n  | \"toc.follow\"                       /* Following table of contents */\n  | \"toc.integrate\"                    /* Integrated table of contents */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Translation\n */\nexport type Translation =\n  | \"clipboard.copy\"                   /* Copy to clipboard */\n  | \"clipboard.copied\"                 /* Copied to clipboard */\n  | \"search.result.placeholder\"        /* Type to start searching */\n  | \"search.result.none\"               /* No matching documents */\n  | \"search.result.one\"                /* 1 matching document */\n  | \"search.result.other\"              /* # matching documents */\n  | \"search.result.more.one\"           /* 1 more on this page */\n  | \"search.result.more.other\"         /* # more on this page */\n  | \"search.result.term.missing\"       /* Missing */\n  | \"select.version\"                   /* Version selector */\n\n/**\n * Translations\n */\nexport type Translations =\n  Record<Translation, string>\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Versioning\n */\nexport interface Versioning {\n  provider: \"mike\"                     /* Version provider */\n  default?: string | string[]          /* Default version */\n}\n\n/**\n * Configuration\n */\nexport interface Config {\n  base: string                         /* Base URL */\n  features: Flag[]                     /* Feature flags */\n  translations: Translations           /* Translations */\n  search: string                       /* Search worker URL */\n  tags?: Record<string, string>        /* Tags mapping */\n  version?: Versioning                 /* Versioning */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration and make base URL absolute\n */\nconst script = getElement(\"#__config\")\nconst config: Config = JSON.parse(script.textContent!)\nconfig.base = `${new URL(config.base, getLocation())}`\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration\n *\n * @returns Global configuration\n */\nexport function configuration(): Config {\n  return config\n}\n\n/**\n * Check whether a feature flag is enabled\n *\n * @param flag - Feature flag\n *\n * @returns Test result\n */\nexport function feature(flag: Flag): boolean {\n  return config.features.includes(flag)\n}\n\n/**\n * Retrieve the translation for the given key\n *\n * @param key - Key to be translated\n * @param value - Positional value, if any\n *\n * @returns Translation\n */\nexport function translation(\n  key: Translation, value?: string | number\n): string {\n  return typeof value !== \"undefined\"\n    ? config.translations[key].replace(\"#\", value.toString())\n    : config.translations[key]\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElement, getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type\n */\nexport type ComponentType =\n  | \"announce\"                         /* Announcement bar */\n  | \"container\"                        /* Container */\n  | \"consent\"                          /* Consent */\n  | \"content\"                          /* Content */\n  | \"dialog\"                           /* Dialog */\n  | \"header\"                           /* Header */\n  | \"header-title\"                     /* Header title */\n  | \"header-topic\"                     /* Header topic */\n  | \"main\"                             /* Main area */\n  | \"outdated\"                         /* Version warning */\n  | \"palette\"                          /* Color palette */\n  | \"progress\"                         /* Progress indicator */\n  | \"search\"                           /* Search */\n  | \"search-query\"                     /* Search input */\n  | \"search-result\"                    /* Search results */\n  | \"search-share\"                     /* Search sharing */\n  | \"search-suggest\"                   /* Search suggestions */\n  | \"sidebar\"                          /* Sidebar */\n  | \"skip\"                             /* Skip link */\n  | \"source\"                           /* Repository information */\n  | \"tabs\"                             /* Navigation tabs */\n  | \"toc\"                              /* Table of contents */\n  | \"top\"                              /* Back-to-top button */\n\n/**\n * Component\n *\n * @template T - Component type\n * @template U - Reference type\n */\nexport type Component<\n  T extends {} = {},\n  U extends HTMLElement = HTMLElement\n> =\n  T & {\n    ref: U                             /* Component reference */\n  }\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type map\n */\ninterface ComponentTypeMap {\n  \"announce\": HTMLElement              /* Announcement bar */\n  \"container\": HTMLElement             /* Container */\n  \"consent\": HTMLElement               /* Consent */\n  \"content\": HTMLElement               /* Content */\n  \"dialog\": HTMLElement                /* Dialog */\n  \"header\": HTMLElement                /* Header */\n  \"header-title\": HTMLElement          /* Header title */\n  \"header-topic\": HTMLElement          /* Header topic */\n  \"main\": HTMLElement                  /* Main area */\n  \"outdated\": HTMLElement              /* Version warning */\n  \"palette\": HTMLElement               /* Color palette */\n  \"progress\": HTMLElement              /* Progress indicator */\n  \"search\": HTMLElement                /* Search */\n  \"search-query\": HTMLInputElement     /* Search input */\n  \"search-result\": HTMLElement         /* Search results */\n  \"search-share\": HTMLAnchorElement    /* Search sharing */\n  \"search-suggest\": HTMLElement        /* Search suggestions */\n  \"sidebar\": HTMLElement               /* Sidebar */\n  \"skip\": HTMLAnchorElement            /* Skip link */\n  \"source\": HTMLAnchorElement          /* Repository information */\n  \"tabs\": HTMLElement                  /* Navigation tabs */\n  \"toc\": HTMLElement                   /* Table of contents */\n  \"top\": HTMLAnchorElement             /* Back-to-top button */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the element for a given component or throw a reference error\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getComponentElement<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T] {\n  return getElement(`[data-md-component=${type}]`, node)\n}\n\n/**\n * Retrieve all elements for a given component\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getComponentElements<T extends ComponentType>(\n  type: T, node: ParentNode = document\n): ComponentTypeMap[T][] {\n  return getElements(`[data-md-component=${type}]`, node)\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  fromEvent,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Announcement bar\n */\nexport interface Announce {\n  hash: number                        /* Content hash */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar observable\n */\nexport function watchAnnounce(\n  el: HTMLElement\n): Observable<Announce> {\n  const button = getElement(\".md-typeset > :first-child\", el)\n  return fromEvent(button, \"click\", { once: true })\n    .pipe(\n      map(() => getElement(\".md-typeset\", el)),\n      map(content => ({ hash: __md_hash(content.innerHTML) }))\n    )\n}\n\n/**\n * Mount announcement bar\n *\n * @param el - Announcement bar element\n *\n * @returns Announcement bar component observable\n */\nexport function mountAnnounce(\n  el: HTMLElement\n): Observable<Component<Announce>> {\n  if (!feature(\"announce.dismiss\") || !el.childElementCount)\n    return EMPTY\n\n  /* Support instant navigation - see https://t.ly/3FTme */\n  if (!el.hidden) {\n    const content = getElement(\".md-typeset\", el)\n    if (__md_hash(content.innerHTML) === __md_get(\"__announce\"))\n      el.hidden = true\n  }\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Announce>()\n    push$.subscribe(({ hash }) => {\n      el.hidden = true\n\n      /* Persist preference in local storage */\n      __md_set<number>(\"__announce\", hash)\n    })\n\n    /* Create and return component */\n    return watchAnnounce(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Consent\n */\nexport interface Consent {\n  hidden: boolean                      /* Consent is hidden */\n}\n\n/**\n * Consent defaults\n */\nexport interface ConsentDefaults {\n  analytics?: boolean                  /* Consent for Analytics */\n  github?: boolean                     /* Consent for GitHub */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent observable\n */\nexport function watchConsent(\n  el: HTMLElement, { target$ }: WatchOptions\n): Observable<Consent> {\n  return target$\n    .pipe(\n      map(target => ({ hidden: target !== el }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount consent\n *\n * @param el - Consent element\n * @param options - Options\n *\n * @returns Consent component observable\n */\nexport function mountConsent(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Consent>> {\n  const internal$ = new Subject<Consent>()\n  internal$.subscribe(({ hidden }) => {\n    el.hidden = hidden\n  })\n\n  /* Create and return component */\n  return watchConsent(el, options)\n    .pipe(\n      tap(state => internal$.next(state)),\n      finalize(() => internal$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ComponentChild } from \"preact\"\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip style\n */\nexport type TooltipStyle =\n  | \"inline\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a tooltip\n *\n * @param id - Tooltip identifier\n * @param style - Tooltip style\n *\n * @returns Element\n */\nexport function renderTooltip(\n  id?: string, style?: TooltipStyle\n): HTMLElement {\n  if (style === \"inline\") { // @todo refactor control flow\n    return (\n      <div class=\"md-tooltip md-tooltip--inline\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  } else {\n    return (\n      <div class=\"md-tooltip\" id={id} role=\"tooltip\">\n        <div class=\"md-tooltip__inner md-typeset\"></div>\n      </div>\n    )\n  }\n}\n\n// @todo: rename\nexport function renderInlineTooltip2(\n  ...children: ComponentChild[]\n): HTMLElement {\n  return (\n    <div class=\"md-tooltip2\" role=\"tooltip\">\n      <div class=\"md-tooltip2__inner md-typeset\">\n        {children}\n      </div>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\nimport { renderTooltip } from \"../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render an annotation\n *\n * @param id - Annotation identifier\n * @param prefix - Tooltip identifier prefix\n *\n * @returns Element\n */\nexport function renderAnnotation(\n  id: string | number, prefix?: string\n): HTMLElement {\n  prefix = prefix ? `${prefix}_annotation_${id}` : undefined\n\n  /* Render tooltip with anchor, if given */\n  if (prefix) {\n    const anchor = prefix ? `#${prefix}` : undefined\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <a href={anchor} class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </a>\n      </aside>\n    )\n  } else {\n    return (\n      <aside class=\"md-annotation\" tabIndex={0}>\n        {renderTooltip(prefix)}\n        <span class=\"md-annotation__index\" tabIndex={-1}>\n          <span data-md-annotation-id={id}></span>\n        </span>\n      </aside>\n    )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a 'copy-to-clipboard' button\n *\n * @param id - Unique identifier\n *\n * @returns Element\n */\nexport function renderClipboardButton(id: string): HTMLElement {\n  return (\n    <button\n      class=\"md-clipboard md-icon\"\n      title={translation(\"clipboard.copy\")}\n      data-clipboard-target={`#${id} > code`}\n    ></button>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ComponentChild } from \"preact\"\n\nimport { configuration, feature, translation } from \"~/_\"\nimport { SearchItem } from \"~/integrations/search\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Render flag\n */\nconst enum Flag {\n  TEASER = 1,                          /* Render teaser */\n  PARENT = 2                           /* Render as parent */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper function\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search document\n *\n * @param document - Search document\n * @param flag - Render flags\n *\n * @returns Element\n */\nfunction renderSearchDocument(\n  document: SearchItem, flag: Flag\n): HTMLElement {\n  const parent = flag & Flag.PARENT\n  const teaser = flag & Flag.TEASER\n\n  /* Render missing query terms */\n  const missing = Object.keys(document.terms)\n    .filter(key => !document.terms[key])\n    .reduce<ComponentChild[]>((list, key) => [\n      ...list, <del>{key}</del>, \" \"\n    ], [])\n    .slice(0, -1)\n\n  /* Assemble query string for highlighting */\n  const config = configuration()\n  const url = new URL(document.location, config.base)\n  if (feature(\"search.highlight\"))\n    url.searchParams.set(\"h\", Object.entries(document.terms)\n      .filter(([, match]) => match)\n      .reduce((highlight, [value]) => `${highlight} ${value}`.trim(), \"\")\n    )\n\n  /* Render article or section, depending on flags */\n  const { tags } = configuration()\n  return (\n    <a href={`${url}`} class=\"md-search-result__link\" tabIndex={-1}>\n      <article\n        class=\"md-search-result__article md-typeset\"\n        data-md-score={document.score.toFixed(2)}\n      >\n        {parent > 0 && <div class=\"md-search-result__icon md-icon\"></div>}\n        {parent > 0 && <h1>{document.title}</h1>}\n        {parent <= 0 && <h2>{document.title}</h2>}\n        {teaser > 0 && document.text.length > 0 &&\n          document.text\n        }\n        {document.tags && document.tags.map(tag => {\n          const type = tags\n            ? tag in tags\n              ? `md-tag-icon md-tag--${tags[tag]}`\n              : \"md-tag-icon\"\n            : \"\"\n          return (\n            <span class={`md-tag ${type}`}>{tag}</span>\n          )\n        })}\n        {teaser > 0 && missing.length > 0 &&\n          <p class=\"md-search-result__terms\">\n            {translation(\"search.result.term.missing\")}: {...missing}\n          </p>\n        }\n      </article>\n    </a>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search result\n *\n * @param result - Search result\n *\n * @returns Element\n */\nexport function renderSearchResultItem(\n  result: SearchItem[]\n): HTMLElement {\n  const threshold = result[0].score\n  const docs = [...result]\n\n  const config = configuration()\n\n  /* Find and extract parent article */\n  const parent = docs.findIndex(doc => {\n    const l = `${new URL(doc.location, config.base)}` // @todo hacky\n    return !l.includes(\"#\")\n  })\n  const [article] = docs.splice(parent, 1)\n\n  /* Determine last index above threshold */\n  let index = docs.findIndex(doc => doc.score < threshold)\n  if (index === -1)\n    index = docs.length\n\n  /* Partition sections */\n  const best = docs.slice(0, index)\n  const more = docs.slice(index)\n\n  /* Render children */\n  const children = [\n    renderSearchDocument(article, Flag.PARENT | +(!parent && index === 0)),\n    ...best.map(section => renderSearchDocument(section, Flag.TEASER)),\n    ...more.length ? [\n      <details class=\"md-search-result__more\">\n        <summary tabIndex={-1}>\n          <div>\n            {more.length > 0 && more.length === 1\n              ? translation(\"search.result.more.one\")\n              : translation(\"search.result.more.other\", more.length)\n            }\n          </div>\n        </summary>\n        {...more.map(section => renderSearchDocument(section, Flag.TEASER))}\n      </details>\n    ] : []\n  ]\n\n  /* Render search result */\n  return (\n    <li class=\"md-search-result__item\">\n      {children}\n    </li>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SourceFacts } from \"~/components\"\nimport { h, round } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render repository facts\n *\n * @param facts - Repository facts\n *\n * @returns Element\n */\nexport function renderSourceFacts(facts: SourceFacts): HTMLElement {\n  return (\n    <ul class=\"md-source__facts\">\n      {Object.entries(facts).map(([key, value]) => (\n        <li class={`md-source__fact md-source__fact--${key}`}>\n          {typeof value === \"number\" ? round(value) : value}\n        </li>\n      ))}\n    </ul>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tabbed control type\n */\ntype TabbedControlType =\n  | \"prev\"\n  | \"next\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render control for content tabs\n *\n * @param type - Control type\n *\n * @returns Element\n */\nexport function renderTabbedControl(\n  type: TabbedControlType\n): HTMLElement {\n  const classes = `tabbed-control tabbed-control--${type}`\n  return (\n    <div class={classes} hidden>\n      <button class=\"tabbed-button\" tabIndex={-1} aria-hidden=\"true\"></button>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a table inside a wrapper to improve scrolling on mobile\n *\n * @param table - Table element\n *\n * @returns Element\n */\nexport function renderTable(table: HTMLElement): HTMLElement {\n  return (\n    <div class=\"md-typeset__scrollwrap\">\n      <div class=\"md-typeset__table\">\n        {table}\n      </div>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { configuration, translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Version properties\n */\nexport interface VersionProperties {\n  hidden?: boolean                     /* Version is hidden */\n}\n\n/**\n * Version\n */\nexport interface Version {\n  version: string                      /* Version identifier */\n  title: string                        /* Version title */\n  aliases: string[]                    /* Version aliases */\n  properties?: VersionProperties       /* Version properties */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version\n *\n * @param version - Version\n *\n * @returns Element\n */\nfunction renderVersion(version: Version): HTMLElement {\n  const config = configuration()\n\n  /* Ensure trailing slash - see https://bit.ly/3rL5u3f */\n  const url = new URL(`../${version.version}/`, config.base)\n  return (\n    <li class=\"md-version__item\">\n      <a href={`${url}`} class=\"md-version__link\">\n        {version.title}\n      </a>\n    </li>\n  )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version selector\n *\n * @param versions - Versions\n * @param active - Active version\n *\n * @returns Element\n */\nexport function renderVersionSelector(\n  versions: Version[], active: Version\n): HTMLElement {\n  versions = versions.filter(version => !version.properties?.hidden)\n  return (\n    <div class=\"md-version\">\n      <button\n        class=\"md-version__current\"\n        aria-label={translation(\"select.version\")}\n      >\n        {active.title}\n      </button>\n      <ul class=\"md-version__list\">\n        {versions.map(renderVersion)}\n      </ul>\n    </div>\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  BehaviorSubject,\n  EMPTY,\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  combineLatest,\n  debounce,\n  defer,\n  distinctUntilChanged,\n  endWith,\n  filter,\n  finalize,\n  first,\n  ignoreElements,\n  map,\n  mergeMap,\n  observeOn,\n  queueScheduler,\n  share,\n  startWith,\n  switchMap,\n  tap,\n  throttleTime,\n  timer,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  Viewport,\n  getElement,\n  getElementContainers,\n  getElementOffsetAbsolute,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementHover\n} from \"~/browser\"\nimport { renderInlineTooltip2 } from \"~/templates\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip\n */\nexport interface Tooltip {\n  active: boolean                      // Tooltip is active\n  offset: ElementOffset                // Tooltip offset\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dependencies\n */\ninterface Dependencies {\n  content$: Observable<HTMLElement>    // Tooltip content observable\n  viewport$: Observable<Viewport>      // Viewport observable\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for tooltips\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch tooltip\n *\n * This function tracks the tooltip host element, and deduces the active state\n * and offset of the tooltip from it. The active state is determined by whether\n * the host element is focused or hovered, and the offset is determined by the\n * host element's absolute position in the document.\n *\n * @param el - Tooltip host element\n *\n * @returns Tooltip observable\n */\nexport function watchTooltip2(\n  el: HTMLElement\n): Observable<Tooltip> {\n\n  // Compute whether tooltip should be shown - we need to watch both focus and\n  // hover events on the host element and emit if one of them is active. In case\n  // of a hover event, we keep the element visible for a short amount of time\n  // after the pointer left the host element for a better user experience.\n  const active$ =\n    combineLatest([\n      watchElementFocus(el),\n      watchElementHover(el)\n    ])\n      .pipe(\n        map(([focus, hover]) => focus || hover),\n        distinctUntilChanged()\n      )\n\n  // We need to determine all parent elements of the host element that are\n  // currently scrollable, as they might affect the position of the tooltip\n  // depending on their horizontal of vertical offset. We must track all of\n  // them and recompute the position of the tooltip if they change.\n  const offset$ =\n    defer(() => getElementContainers(el)).pipe(\n      mergeMap(watchElementContentOffset),\n      throttleTime(1),\n      map(() => getElementOffsetAbsolute(el))\n    )\n\n  // Only track parent elements and compute offset of the tooltip host if the\n  // tooltip should be shown - we defer the computation of the offset until the\n  // tooltip becomes active for the first time. This is necessary, because we\n  // must also keep the tooltip active as long as it is focused or hovered.\n  return active$.pipe(\n    first(active => active),\n    switchMap(() => combineLatest([active$, offset$])),\n    map(([active, offset]) => ({ active, offset })),\n    share()\n  )\n}\n\n/**\n * Mount tooltip\n *\n * This function renders a tooltip with the content from the provided `content$`\n * observable as passed via the dependencies. If the returned element has a role\n * of type `dialog`, the tooltip is considered to be interactive, and rendered\n * either above or below the host element, depending on the available space.\n *\n * If the returned element has a role of type `tooltip`, the tooltip is always\n * rendered below the host element and considered to be non-interactive. This\n * allows us to reuse the same positioning logic for both interactive and\n * non-interactive tooltips, as it is largely the same.\n *\n * @param el - Tooltip host element\n * @param dependencies - Dependencies\n *\n * @returns Tooltip component observable\n */\nexport function mountTooltip2(\n  el: HTMLElement, dependencies: Dependencies\n): Observable<Component<Tooltip>> {\n  const { content$, viewport$ } = dependencies\n\n  // Compute unique tooltip id - this is necessary to associate the tooltip host\n  // element with the tooltip element for ARIA purposes\n  const id = `__tooltip2_${sequence++}`\n\n  // Create component on subscription\n  return defer(() => {\n    const push$ = new Subject<Tooltip>()\n\n    // Create subject to track tooltip presence and visibility - we use another\n    // purely internal subject to track the tooltip's presence and visibility,\n    // as the tooltip should be visible if the host element or tooltip itself\n    // is focused or hovered to allow for smooth pointer migration\n    const show$ = new BehaviorSubject(false)\n    push$.pipe(ignoreElements(), endWith(false))\n      .subscribe(show$)\n\n    // Create observable controlling tooltip element - we create and attach the\n    // tooltip only if it is actually present, in order to keep the number of\n    // elements low. We need to keep the tooltip visible for a short time after\n    // the pointer left the host element or tooltip itself. For this, we use an\n    // inner subscription to the tooltip observable, which we terminate when the\n    // tooltip should not be shown, automatically removing the element. Moreover\n    // we use the queue scheduler, which will schedule synchronously in case the\n    // tooltip should be shown, and asynchronously if it should be hidden.\n    const node$ = show$.pipe(\n      debounce(active => timer(+!active * 250, queueScheduler)),\n      distinctUntilChanged(),\n      switchMap(active => active ? content$ : EMPTY),\n      tap(node => node.id = id),\n      share()\n    )\n\n    // Compute tooltip presence and visibility - the tooltip should be shown if\n    // the host element or the tooltip itself is focused or hovered\n    combineLatest([\n      push$.pipe(map(({ active }) => active)),\n      node$.pipe(\n        switchMap(node => watchElementHover(node, 250)),\n        startWith(false)\n      )\n    ])\n      .pipe(map(states => states.some(active => active)))\n      .subscribe(show$)\n\n    // Compute tooltip origin - we need to compute the tooltip origin depending\n    // on the position of the host element, the viewport size, as well as the\n    // actual size of the tooltip, if positioned above. The tooltip must about\n    // to be rendered for this to be correct, which is why we do it here.\n    const origin$ = show$.pipe(\n      filter(active => active),\n      withLatestFrom(node$, viewport$),\n      map(([_, node, { size }]) => {\n        const host = el.getBoundingClientRect()\n        const x = host.width / 2\n\n        // If the tooltip is non-interactive, we always render it below the\n        // actual element because all operating systems do it that way\n        if (node.role === \"tooltip\") {\n          return { x, y: 8 + host.height }\n\n        // Otherwise, we determine where there is more space, and render the\n        // tooltip either above or below the host element\n        } else if (host.y >= size.height / 2) {\n          const { height } = getElementSize(node)\n          return { x, y: -16 - height }\n        } else {\n          return { x, y: +16 + host.height }\n        }\n      })\n    )\n\n    // Update tooltip position - we always need to update the position of the\n    // tooltip, as it might change depending on the viewport offset of the host\n    combineLatest([node$, push$, origin$])\n      .subscribe(([node, { offset }, origin]) => {\n        node.style.setProperty(\"--md-tooltip-host-x\", `${offset.x}px`)\n        node.style.setProperty(\"--md-tooltip-host-y\", `${offset.y}px`)\n\n        // Update tooltip origin - this is mainly set to determine the position\n        // of the tooltip tail, to show the direction it is originating from\n        node.style.setProperty(\"--md-tooltip-x\", `${origin.x}px`)\n        node.style.setProperty(\"--md-tooltip-y\", `${origin.y}px`)\n\n        // Update tooltip render location, i.e., whether the tooltip is shown\n        // above or below the host element, depending on the available space\n        node.classList.toggle(\"md-tooltip2--top\",    origin.y <  0)\n        node.classList.toggle(\"md-tooltip2--bottom\", origin.y >= 0)\n      })\n\n    // Update tooltip width - we only explicitly set the width of the tooltip\n    // if it is non-interactive, in case it should always be rendered centered\n    show$.pipe(\n      filter(active => active),\n      withLatestFrom(node$, (_, node) => node),\n      filter(node => node.role === \"tooltip\")\n    )\n      .subscribe(node => {\n        const size = getElementSize(getElement(\":scope > *\", node))\n\n        // Set tooltip width and remove tail by setting it to a width of zero -\n        // if authors want to keep the tail, we can move this to CSS later\n        node.style.setProperty(\"--md-tooltip-width\", `${size.width}px`)\n        node.style.setProperty(\"--md-tooltip-tail\",  `${0}px`)\n      })\n\n    // Update tooltip visibility - we defer to the next animation frame, because\n    // the tooltip must first be added to the document before we make it appear,\n    // or it will appear instantly without delay. Additionally, we need to keep\n    // the tooltip visible for a short time after the pointer left the host.\n    show$.pipe(\n      distinctUntilChanged(),\n      observeOn(animationFrameScheduler),\n      withLatestFrom(node$)\n    )\n      .subscribe(([active, node]) => {\n        node.classList.toggle(\"md-tooltip2--active\", active)\n      })\n\n    // Set up ARIA attributes when tooltip is visible\n    combineLatest([\n      show$.pipe(filter(active => active)),\n      node$\n    ])\n      .subscribe(([_, node]) => {\n        if (node.role === \"dialog\") {\n          el.setAttribute(\"aria-controls\", id)\n          el.setAttribute(\"aria-haspopup\", \"dialog\")\n        } else {\n          el.setAttribute(\"aria-describedby\", id)\n        }\n      })\n\n    // Remove ARIA attributes when tooltip is hidden\n    show$.pipe(filter(active => !active))\n      .subscribe(() => {\n        el.removeAttribute(\"aria-controls\")\n        el.removeAttribute(\"aria-describedby\")\n        el.removeAttribute(\"aria-haspopup\")\n      })\n\n    // Create and return component\n    return watchTooltip2(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n\n// ----------------------------------------------------------------------------\n\n/**\n * Mount inline tooltip\n *\n * @todo refactor this function\n *\n * @param el - Tooltip host element\n * @param dependencies - Dependencies\n * @param container - Container\n *\n * @returns Tooltip component observable\n */\nexport function mountInlineTooltip2(\n  el: HTMLElement, { viewport$ }: { viewport$: Observable<Viewport> },\n  container = document.body\n): Observable<Component<Tooltip>> {\n  return mountTooltip2(el, {\n    content$: new Observable<HTMLElement>(observer => {\n      const title = el.title\n      const node = renderInlineTooltip2(title)\n      observer.next(node)\n      el.removeAttribute(\"title\")\n      // Append tooltip and remove on unsubscription\n      container.append(node)\n      return () => {\n        node.remove()\n        el.setAttribute(\"title\", title)\n      }\n    }),\n    viewport$\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  delay,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  switchMap,\n  take,\n  takeUntil,\n  tap,\n  throttleTime,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getActiveElement,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementOffset,\n  watchElementVisibility\n} from \"~/browser\"\n\nimport { Component } from \"../../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Annotation\n */\nexport interface Annotation {\n  active: boolean                      /* Annotation is active */\n  offset: ElementOffset                /* Annotation offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n *\n * @returns Annotation observable\n */\nexport function watchAnnotation(\n  el: HTMLElement, container: HTMLElement\n): Observable<Annotation> {\n  const offset$ = defer(() => combineLatest([\n    watchElementOffset(el),\n    watchElementContentOffset(container)\n  ]))\n    .pipe(\n      map(([{ x, y }, scroll]): ElementOffset => {\n        const { width, height } = getElementSize(el)\n        return ({\n          x: x - scroll.x + width  / 2,\n          y: y - scroll.y + height / 2\n        })\n      })\n    )\n\n  /* Actively watch annotation on focus */\n  return watchElementFocus(el)\n    .pipe(\n      switchMap(active => offset$\n        .pipe(\n          map(offset => ({ active, offset })),\n          take(+!active || Infinity)\n        )\n      )\n    )\n}\n\n/**\n * Mount annotation\n *\n * @param el - Annotation element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotation(\n  el: HTMLElement, container: HTMLElement, { target$ }: MountOptions\n): Observable<Component<Annotation>> {\n  const [tooltip, index] = Array.from(el.children)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Annotation>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        el.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        el.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.style.removeProperty(\"--md-tooltip-x\")\n        el.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Start animation only when annotation is visible */\n    watchElementVisibility(el)\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(visible => {\n          el.toggleAttribute(\"data-md-visible\", visible)\n        })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active)\n            el.prepend(tooltip)\n          else\n            tooltip.remove()\n        },\n\n        /* Handle complete */\n        complete() {\n          el.prepend(tooltip)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next(origin) {\n            if (origin)\n              el.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n            else\n              el.style.removeProperty(\"--md-tooltip-0\")\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-tooltip-0\")\n          }\n        })\n\n    /* Allow to copy link without scrolling to anchor */\n    fromEvent<MouseEvent>(index, \"click\")\n      .pipe(\n        takeUntil(done$),\n        filter(ev => !(ev.metaKey || ev.ctrlKey))\n      )\n        .subscribe(ev => {\n          ev.stopPropagation()\n          ev.preventDefault()\n        })\n\n    /* Allow to open link in new tab or blur on close */\n    fromEvent<MouseEvent>(index, \"mousedown\")\n      .pipe(\n        takeUntil(done$),\n        withLatestFrom(push$)\n      )\n        .subscribe(([ev, { active }]) => {\n\n          /* Open in new tab */\n          if (ev.button !== 0 || ev.metaKey || ev.ctrlKey) {\n            ev.preventDefault()\n\n          /* Close annotation */\n          } else if (active) {\n            ev.preventDefault()\n\n            /* Focus parent annotation, if any */\n            const parent = el.parentElement!.closest(\".md-annotation\")\n            if (parent instanceof HTMLElement)\n              parent.focus()\n            else\n              getActiveElement()?.blur()\n          }\n        })\n\n    /* Open and focus annotation on location target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(target => target === tooltip),\n        delay(125)\n      )\n        .subscribe(() => el.focus())\n\n    /* Create and return component */\n    return watchAnnotation(el, container)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  endWith,\n  finalize,\n  ignoreElements,\n  merge,\n  share,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  getOptionalElement\n} from \"~/browser\"\nimport { renderAnnotation } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Annotation,\n  mountAnnotation\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find all annotation hosts in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation hosts\n */\nfunction findHosts(container: HTMLElement): HTMLElement[] {\n  return container.tagName === \"CODE\"\n    ? getElements(\".c, .c1, .cm\", container)\n    : [container]\n}\n\n/**\n * Find all annotation markers in the containing element\n *\n * @param container - Containing element\n *\n * @returns Annotation markers\n */\nfunction findMarkers(container: HTMLElement): Text[] {\n  const markers: Text[] = []\n  for (const el of findHosts(container)) {\n    const nodes: Text[] = []\n\n    /* Find all text nodes in current element */\n    const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n    for (let node = it.nextNode(); node; node = it.nextNode())\n      nodes.push(node as Text)\n\n    /* Find all markers in each text node */\n    for (let text of nodes) {\n      let match: RegExpExecArray | null\n\n      /* Split text at marker and add to list */\n      while ((match = /(\\(\\d+\\))(!)?/.exec(text.textContent!))) {\n        const [, id, force] = match\n        if (typeof force === \"undefined\") {\n          const marker = text.splitText(match.index)\n          text = marker.splitText(id.length)\n          markers.push(marker)\n\n        /* Replace entire text with marker */\n        } else {\n          text.textContent = id\n          markers.push(text)\n          break\n        }\n      }\n    }\n  }\n  return markers\n}\n\n/**\n * Swap the child nodes of two elements\n *\n * @param source - Source element\n * @param target - Target element\n */\nfunction swap(source: HTMLElement, target: HTMLElement): void {\n  target.append(...Array.from(source.childNodes))\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation list\n *\n * This function analyzes the containing code block and checks for markers\n * referring to elements in the given annotation list. If no markers are found,\n * the list is left untouched. Otherwise, list elements are rendered as\n * annotations inside the code block.\n *\n * @param el - Annotation list element\n * @param container - Containing element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationList(\n  el: HTMLElement, container: HTMLElement, { target$, print$ }: MountOptions\n): Observable<Component<Annotation>> {\n\n  /* Compute prefix for tooltip anchors */\n  const parent = container.closest(\"[id]\")\n  const prefix = parent?.id\n\n  /* Find and replace all markers with empty annotations */\n  const annotations = new Map<string, HTMLElement>()\n  for (const marker of findMarkers(container)) {\n    const [, id] = marker.textContent!.match(/\\((\\d+)\\)/)!\n    if (getOptionalElement(`:scope > li:nth-child(${id})`, el)) {\n      annotations.set(id, renderAnnotation(id, prefix))\n      marker.replaceWith(annotations.get(id)!)\n    }\n  }\n\n  /* Keep list if there are no annotations to render */\n  if (annotations.size === 0)\n    return EMPTY\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n    /* Retrieve container pairs for swapping */\n    const pairs: [HTMLElement, HTMLElement][] = []\n    for (const [id, annotation] of annotations)\n      pairs.push([\n        getElement(\".md-typeset\", annotation),\n        getElement(`:scope > li:nth-child(${id})`, el)\n      ])\n\n    /* Handle print mode - see https://bit.ly/3rgPdpt */\n    print$.pipe(takeUntil(done$))\n      .subscribe(active => {\n        el.hidden = !active\n\n        /* Add class to discern list element */\n        el.classList.toggle(\"md-annotation-list\", active)\n\n        /* Show annotations in code block or list (print) */\n        for (const [inner, child] of pairs)\n          if (!active)\n            swap(child, inner)\n          else\n            swap(inner, child)\n      })\n\n    /* Create and return component */\n    return merge(...[...annotations]\n      .map(([, annotation]) => (\n        mountAnnotation(annotation, container, { target$ })\n      ))\n    )\n      .pipe(\n        finalize(() => push$.complete()),\n        share()\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable, defer } from \"rxjs\"\n\nimport { Component } from \"../../../_\"\nimport { Annotation } from \"../_\"\nimport { mountAnnotationList } from \"../list\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find list element directly following a block\n *\n * @param el - Annotation block element\n *\n * @returns List element or nothing\n */\nfunction findList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount annotation block\n *\n * @param el - Annotation block element\n * @param options - Options\n *\n * @returns Annotation component observable\n */\nexport function mountAnnotationBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Annotation>> {\n  return defer(() => {\n    const list = findList(el)\n    return typeof list !== \"undefined\"\n      ? mountAnnotationList(list, el, options)\n      : EMPTY\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  filter,\n  finalize,\n  map,\n  mergeWith,\n  switchMap,\n  take,\n  takeLast,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  getElementContentSize,\n  getElements,\n  watchElementSize,\n  watchElementVisibility\n} from \"~/browser\"\nimport {\n  Tooltip,\n  mountInlineTooltip2\n} from \"~/components/tooltip2\"\nimport { renderClipboardButton } from \"~/templates\"\n\nimport { Component } from \"../../../_\"\nimport {\n  Annotation,\n  mountAnnotationList\n} from \"../../annotation\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Code block overflow\n */\nexport interface Overflow {\n  scrollable: boolean                  /* Code block overflows */\n}\n\n/**\n * Code block\n */\nexport type CodeBlock =\n  | Overflow\n  | Annotation\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for code blocks\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Find candidate list element directly following a code block\n *\n * @param el - Code block element\n *\n * @returns List element or nothing\n */\nfunction findCandidateList(el: HTMLElement): HTMLElement | undefined {\n  if (el.nextElementSibling) {\n    const sibling = el.nextElementSibling as HTMLElement\n    if (sibling.tagName === \"OL\")\n      return sibling\n\n    /* Skip empty paragraphs - see https://bit.ly/3r4ZJ2O */\n    else if (sibling.tagName === \"P\" && !sibling.children.length)\n      return findCandidateList(sibling)\n  }\n\n  /* Everything else */\n  return undefined\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch code block\n *\n * This function monitors size changes of the viewport, as well as switches of\n * content tabs with embedded code blocks, as both may trigger overflow.\n *\n * @param el - Code block element\n *\n * @returns Code block observable\n */\nexport function watchCodeBlock(\n  el: HTMLElement\n): Observable<Overflow> {\n  return watchElementSize(el)\n    .pipe(\n      map(({ width }) => {\n        const content = getElementContentSize(el)\n        return {\n          scrollable: content.width > width\n        }\n      }),\n      distinctUntilKeyChanged(\"scrollable\")\n    )\n}\n\n/**\n * Mount code block\n *\n * This function ensures that an overflowing code block is focusable through\n * keyboard, so it can be scrolled without a mouse to improve on accessibility.\n * Furthermore, if code annotations are enabled, they are mounted if and only\n * if the code block is currently visible, e.g., not in a hidden content tab.\n *\n * Note that code blocks may be mounted eagerly or lazily. If they're mounted\n * lazily (on first visibility), code annotation anchor links will not work,\n * as they are evaluated on initial page load, and code annotations in general\n * might feel a little bumpier.\n *\n * @param el - Code block element\n * @param options - Options\n *\n * @returns Code block and annotation component observable\n */\nexport function mountCodeBlock(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<CodeBlock>> {\n  const { matches: hover } = matchMedia(\"(hover)\")\n\n  /* Defer mounting of code block - see https://bit.ly/3vHVoVD */\n  const factory$ = defer(() => {\n    const push$ = new Subject<Overflow>()\n    const done$ = push$.pipe(takeLast(1))\n    push$.subscribe(({ scrollable }) => {\n      if (scrollable && hover)\n        el.setAttribute(\"tabindex\", \"0\")\n      else\n        el.removeAttribute(\"tabindex\")\n    })\n\n    /* Render button for Clipboard.js integration */\n    const content$: Array<Observable<Component<CodeBlock>>> = []\n    if (ClipboardJS.isSupported()) {\n      if (el.closest(\".copy\") || (\n        feature(\"content.code.copy\") && !el.closest(\".no-copy\")\n      )) {\n        const parent = el.closest(\"pre\")!\n        parent.id = `__code_${sequence++}`\n\n        /* Mount tooltip, if enabled */\n        const button = renderClipboardButton(parent.id)\n        parent.insertBefore(button, el)\n        if (feature(\"content.tooltips\"))\n          content$.push(mountInlineTooltip2(button, { viewport$ }))\n      }\n    }\n\n    /* Handle code annotations */\n    const container = el.closest(\".highlight\")\n    if (container instanceof HTMLElement) {\n      const list = findCandidateList(container)\n\n      /* Mount code annotations, if enabled */\n      if (typeof list !== \"undefined\" && (\n        container.classList.contains(\"annotate\") ||\n        feature(\"content.code.annotate\")\n      )) {\n        const annotations$ = mountAnnotationList(list, el, options)\n        content$.push(\n          watchElementSize(container)\n            .pipe(\n              takeUntil(done$),\n              map(({ width, height }) => width && height),\n              distinctUntilChanged(),\n              switchMap(active => active ? annotations$ : EMPTY)\n            )\n        )\n      }\n    }\n\n    // If the code block has line spans, we can add this additional class to\n    // the code block element, which fixes the problem for highlighted code\n    // lines not stretching to the entirety of the screen when the code block\n    // overflows, e.g., on mobile - see\n    const spans = getElements(\":scope > span[id]\", el)\n    if (spans.length)\n      el.classList.add(\"md-code__content\")\n\n    /* Create and return component */\n    return watchCodeBlock(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(...content$)\n      )\n  })\n\n  /* Mount code block lazily */\n  if (feature(\"content.lazy\"))\n    return watchElementVisibility(el)\n      .pipe(\n        filter(visible => visible),\n        take(1),\n        switchMap(() => factory$)\n      )\n\n  /* Mount code block */\n  return factory$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  filter,\n  finalize,\n  map,\n  merge,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Details\n */\nexport interface Details {\n  action: \"open\" | \"close\"             /* Details state */\n  reveal?: boolean                     /* Details is revealed */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch details\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details observable\n */\nexport function watchDetails(\n  el: HTMLDetailsElement, { target$, print$ }: WatchOptions\n): Observable<Details> {\n  let open = true\n  return merge(\n\n    /* Open and focus details on location target */\n    target$\n      .pipe(\n        map(target => target.closest(\"details:not([open])\")!),\n        filter(details => el === details),\n        map(() => ({\n          action: \"open\", reveal: true\n        }) as Details)\n      ),\n\n    /* Open details on print and close afterwards */\n    print$\n      .pipe(\n        filter(active => active || !open),\n        tap(() => open = el.open),\n        map(active => ({\n          action: active ? \"open\" : \"close\"\n        }) as Details)\n      )\n  )\n}\n\n/**\n * Mount details\n *\n * This function ensures that `details` tags are opened on anchor jumps and\n * prior to printing, so the whole content of the page is visible.\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details component observable\n */\nexport function mountDetails(\n  el: HTMLDetailsElement, options: MountOptions\n): Observable<Component<Details>> {\n  return defer(() => {\n    const push$ = new Subject<Details>()\n    push$.subscribe(({ action, reveal }) => {\n      el.toggleAttribute(\"open\", action === \"open\")\n      if (reveal)\n        el.scrollIntoView()\n    })\n\n    /* Create and return component */\n    return watchDetails(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", ".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel rect,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel rect{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { watchScript } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\nimport themeCSS from \"./index.css\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid diagram\n */\nexport interface Mermaid {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Mermaid instance observable\n */\nlet mermaid$: Observable<void>\n\n/**\n * Global sequence number for diagrams\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch Mermaid script\n *\n * @returns Mermaid scripts observable\n */\nfunction fetchScripts(): Observable<void> {\n  return typeof mermaid === \"undefined\" || mermaid instanceof Element\n    ? watchScript(\"https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js\")\n    : of(undefined)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount Mermaid diagram\n *\n * @param el - Code block element\n *\n * @returns Mermaid diagram component observable\n */\nexport function mountMermaid(\n  el: HTMLElement\n): Observable<Component<Mermaid>> {\n  el.classList.remove(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n  mermaid$ ||= fetchScripts()\n    .pipe(\n      tap(() => mermaid.initialize({\n        startOnLoad: false,\n        themeCSS,\n        sequence: {\n          actorFontSize: \"16px\", // Hack: mitigate https://bit.ly/3y0NEi3\n          messageFontSize: \"16px\",\n          noteFontSize: \"16px\"\n        }\n      })),\n      map(() => undefined),\n      shareReplay(1)\n    )\n\n  /* Render diagram */\n  mermaid$.subscribe(async () => {\n    el.classList.add(\"mermaid\") // Hack: mitigate https://bit.ly/3CiN6Du\n    const id = `__mermaid_${sequence++}`\n\n    /* Create host element to replace code block */\n    const host = h(\"div\", { class: \"mermaid\" })\n    const text = el.textContent\n\n    /* Render and inject diagram */\n    const { svg, fn } = await mermaid.render(id, text)\n\n    /* Create a shadow root and inject diagram */\n    const shadow = host.attachShadow({ mode: \"closed\" })\n    shadow.innerHTML = svg\n\n    /* Replace code block with diagram and bind functions */\n    el.replaceWith(host)\n    fn?.(shadow)\n  })\n\n  /* Create and return component */\n  return mermaid$\n    .pipe(\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, of } from \"rxjs\"\n\nimport { renderTable } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Data table\n */\nexport interface DataTable {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Sentinel for replacement\n */\nconst sentinel = h(\"table\")\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount data table\n *\n * This function wraps a data table in another scrollable container, so it can\n * be smoothly scrolled on smaller screen sizes and won't break the layout.\n *\n * @param el - Data table element\n *\n * @returns Data table component observable\n */\nexport function mountDataTable(\n  el: HTMLElement\n): Observable<Component<DataTable>> {\n  el.replaceWith(sentinel)\n  sentinel.replaceWith(renderTable(el))\n\n  /* Create and return component */\n  return of({ ref: el })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  endWith,\n  filter,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  skip,\n  startWith,\n  subscribeOn,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContentOffset,\n  getElementContentSize,\n  getElementOffset,\n  getElementSize,\n  getElements,\n  watchElementContentOffset,\n  watchElementSize,\n  watchElementVisibility\n} from \"~/browser\"\nimport { renderTabbedControl } from \"~/templates\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content tabs\n */\nexport interface ContentTabs {\n  active: HTMLLabelElement             /* Active tab label */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch content tabs\n *\n * @param inputs - Content tabs input elements\n *\n * @returns Content tabs observable\n */\nexport function watchContentTabs(\n  inputs: HTMLInputElement[]\n): Observable<ContentTabs> {\n  const initial = inputs.find(input => input.checked) || inputs[0]\n  return merge(...inputs.map(input => fromEvent(input, \"change\")\n    .pipe(\n      map(() => getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`))\n    )\n  ))\n    .pipe(\n      startWith(getElement<HTMLLabelElement>(`label[for=\"${initial.id}\"]`)),\n      map(active => ({ active }))\n    )\n}\n\n/**\n * Mount content tabs\n *\n * @param el - Content tabs element\n * @param options - Options\n *\n * @returns Content tabs component observable\n */\nexport function mountContentTabs(\n  el: HTMLElement, { viewport$, target$ }: MountOptions\n): Observable<Component<ContentTabs>> {\n  const container = getElement(\".tabbed-labels\", el)\n  const inputs = getElements<HTMLInputElement>(\":scope > input\", el)\n\n  /* Render content tab previous button for pagination */\n  const prev = renderTabbedControl(\"prev\")\n  el.append(prev)\n\n  /* Render content tab next button for pagination */\n  const next = renderTabbedControl(\"next\")\n  el.append(next)\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<ContentTabs>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    combineLatest([push$, watchElementSize(el)])\n      .pipe(\n        takeUntil(done$),\n        auditTime(1, animationFrameScheduler)\n      )\n        .subscribe({\n\n          /* Handle emission */\n          next([{ active }, size]) {\n            const offset = getElementOffset(active)\n            const { width } = getElementSize(active)\n\n            /* Set tab indicator offset and width */\n            el.style.setProperty(\"--md-indicator-x\", `${offset.x}px`)\n            el.style.setProperty(\"--md-indicator-width\", `${width}px`)\n\n            /* Scroll container to active content tab */\n            const content = getElementContentOffset(container)\n            if (\n              offset.x         < content.x              ||\n              offset.x + width > content.x + size.width\n            )\n              container.scrollTo({\n                left: Math.max(0, offset.x - 16),\n                behavior: \"smooth\"\n              })\n          },\n\n          /* Handle complete */\n          complete() {\n            el.style.removeProperty(\"--md-indicator-x\")\n            el.style.removeProperty(\"--md-indicator-width\")\n          }\n        })\n\n    /* Hide content tab buttons on borders */\n    combineLatest([\n      watchElementContentOffset(container),\n      watchElementSize(container)\n    ])\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(([offset, size]) => {\n          const content = getElementContentSize(container)\n          prev.hidden = offset.x < 16\n          next.hidden = offset.x > content.width - size.width - 16\n        })\n\n    /* Paginate content tab container on click */\n    merge(\n      fromEvent(prev, \"click\").pipe(map(() => -1)),\n      fromEvent(next, \"click\").pipe(map(() => +1))\n    )\n      .pipe(\n        takeUntil(done$)\n      )\n        .subscribe(direction => {\n          const { width } = getElementSize(container)\n          container.scrollBy({\n            left: width * direction,\n            behavior: \"smooth\"\n          })\n        })\n\n    /* Switch to content tab target */\n    target$\n      .pipe(\n        takeUntil(done$),\n        filter(input => inputs.includes(input as HTMLInputElement))\n      )\n        .subscribe(input => input.click())\n\n    /* Add link to each content tab label */\n    container.classList.add(\"tabbed-labels--linked\")\n    for (const input of inputs) {\n      const label = getElement<HTMLLabelElement>(`label[for=\"${input.id}\"]`)\n      label.replaceChildren(h(\"a\", {\n        href: `#${label.htmlFor}`,\n        tabIndex: -1\n      }, ...Array.from(label.childNodes)))\n\n      /* Allow to copy link without scrolling to anchor */\n      fromEvent<MouseEvent>(label.firstElementChild!, \"click\")\n        .pipe(\n          takeUntil(done$),\n          filter(ev => !(ev.metaKey || ev.ctrlKey)),\n          tap(ev => {\n            ev.preventDefault()\n            ev.stopPropagation()\n          })\n        )\n          // @todo we might need to remove the anchor link on complete\n          .subscribe(() => {\n            history.replaceState({}, \"\", `#${label.htmlFor}`)\n            label.click()\n          })\n    }\n\n    /* Set up linking of content tabs, if enabled */\n    if (feature(\"content.tabs.link\"))\n      push$.pipe(\n        skip(1),\n        withLatestFrom(viewport$)\n      )\n        .subscribe(([{ active }, { offset }]) => {\n          const tab = active.innerText.trim()\n          if (active.hasAttribute(\"data-md-switching\")) {\n            active.removeAttribute(\"data-md-switching\")\n\n          /* Determine viewport offset of active tab */\n          } else {\n            const y = el.offsetTop - offset.y\n\n            /* Passively activate other tabs */\n            for (const set of getElements(\"[data-tabs]\"))\n              for (const input of getElements<HTMLInputElement>(\n                \":scope > input\", set\n              )) {\n                const label = getElement(`label[for=\"${input.id}\"]`)\n                if (\n                  label !== active &&\n                  label.innerText.trim() === tab\n                ) {\n                  label.setAttribute(\"data-md-switching\", \"\")\n                  input.click()\n                  break\n                }\n              }\n\n            /* Bring active tab into view */\n            window.scrollTo({\n              top: el.offsetTop - y\n            })\n\n            /* Persist active tabs in local storage */\n            const tabs = __md_get<string[]>(\"__tabs\") || []\n            __md_set(\"__tabs\", [...new Set([tab, ...tabs])])\n          }\n        })\n\n    /* Pause media (audio, video) on switch - see https://bit.ly/3Bk6cel */\n    push$.pipe(takeUntil(done$))\n      .subscribe(() => {\n        for (const media of getElements<HTMLAudioElement>(\"audio, video\", el))\n          media.pause()\n      })\n\n    /* Create and return component */\n    return watchElementVisibility(el)\n      .pipe(\n        switchMap(() => watchContentTabs(inputs)),\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, merge } from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { Viewport, getElements } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport {\n  Tooltip,\n  mountInlineTooltip2\n} from \"../../tooltip2\"\nimport {\n  Annotation,\n  mountAnnotationBlock\n} from \"../annotation\"\nimport {\n  CodeBlock,\n  mountCodeBlock\n} from \"../code\"\nimport {\n  Details,\n  mountDetails\n} from \"../details\"\nimport {\n  Mermaid,\n  mountMermaid\n} from \"../mermaid\"\nimport {\n  DataTable,\n  mountDataTable\n} from \"../table\"\nimport {\n  ContentTabs,\n  mountContentTabs\n} from \"../tabs\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content\n */\nexport type Content =\n  | Annotation\n  | CodeBlock\n  | ContentTabs\n  | DataTable\n  | Details\n  | Mermaid\n  | Tooltip\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n  print$: Observable<boolean>          /* Media print observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount content\n *\n * This function mounts all components that are found in the content of the\n * actual article, including code blocks, data tables and details.\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Content component observable\n */\nexport function mountContent(\n  el: HTMLElement, { viewport$, target$, print$ }: MountOptions\n): Observable<Component<Content>> {\n  return merge(\n\n    /* Annotations */\n    ...getElements(\".annotate:not(.highlight)\", el)\n      .map(child => mountAnnotationBlock(child, { target$, print$ })),\n\n    /* Code blocks */\n    ...getElements(\"pre:not(.mermaid) > code\", el)\n      .map(child => mountCodeBlock(child, { target$, print$ })),\n\n    /* Mermaid diagrams */\n    ...getElements(\"pre.mermaid\", el)\n      .map(child => mountMermaid(child)),\n\n    /* Data tables */\n    ...getElements(\"table:not([class])\", el)\n      .map(child => mountDataTable(child)),\n\n    /* Details */\n    ...getElements(\"details\", el)\n      .map(child => mountDetails(child, { target$, print$ })),\n\n    /* Content tabs */\n    ...getElements(\"[data-tabs]\", el)\n      .map(child => mountContentTabs(child, { viewport$, target$ })),\n\n    /* Tooltips */\n    ...getElements(\"[title]\", el)\n      .filter(() => feature(\"content.tooltips\"))\n      .map(child => mountInlineTooltip2(child, { viewport$ }))\n  )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  delay,\n  finalize,\n  map,\n  merge,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dialog\n */\nexport interface Dialog {\n  message: string                      /* Dialog message */\n  active: boolean                      /* Dialog is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch dialog\n *\n * @param _el - Dialog element\n * @param options - Options\n *\n * @returns Dialog observable\n */\nexport function watchDialog(\n  _el: HTMLElement, { alert$ }: WatchOptions\n): Observable<Dialog> {\n  return alert$\n    .pipe(\n      switchMap(message => merge(\n        of(true),\n        of(false).pipe(delay(2000))\n      )\n        .pipe(\n          map(active => ({ message, active }))\n        )\n      )\n    )\n}\n\n/**\n * Mount dialog\n *\n * This function reveals the dialog in the right corner when a new alert is\n * emitted through the subject that is passed as part of the options.\n *\n * @param el - Dialog element\n * @param options - Options\n *\n * @returns Dialog component observable\n */\nexport function mountDialog(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Dialog>> {\n  const inner = getElement(\".md-typeset\", el)\n  return defer(() => {\n    const push$ = new Subject<Dialog>()\n    push$.subscribe(({ message, active }) => {\n      el.classList.toggle(\"md-dialog--active\", active)\n      inner.textContent = message\n    })\n\n    /* Create and return component */\n    return watchDialog(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  map,\n  merge,\n  of,\n  subscribeOn,\n  tap,\n  throttleTime\n} from \"rxjs\"\n\nimport {\n  ElementOffset,\n  getElement,\n  getElementContainer,\n  getElementOffset,\n  getElementSize,\n  watchElementContentOffset,\n  watchElementFocus,\n  watchElementHover\n} from \"~/browser\"\nimport { renderTooltip } from \"~/templates\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Tooltip\n */\nexport interface Tooltip {\n  active: boolean                      /* Tooltip is active */\n  offset: ElementOffset                /* Tooltip offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global sequence number for tooltips\n */\nlet sequence = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch tooltip\n *\n * This function will append the tooltip temporarily to compute its width,\n * which is necessary for correct centering, and then removing it again.\n *\n * @param el - Tooltip element\n * @param host - Host element\n *\n * @returns Tooltip observable\n */\nexport function watchTooltip(\n  el: HTMLElement, host: HTMLElement\n): Observable<Tooltip> {\n  document.body.append(el)\n\n  /* Compute width and remove tooltip immediately */\n  const { width } = getElementSize(el)\n  el.style.setProperty(\"--md-tooltip-width\", `${width}px`)\n  el.remove()\n\n  /* Retrieve and watch containing element */\n  const container = getElementContainer(host)\n  const scroll$ =\n    typeof container !== \"undefined\"\n      ? watchElementContentOffset(container)\n      : of({ x: 0, y: 0 })\n\n  /* Compute tooltip visibility */\n  const active$ = merge(\n    watchElementFocus(host),\n    watchElementHover(host)\n  )\n    .pipe(\n      distinctUntilChanged()\n    )\n\n  /* Compute tooltip offset */\n  return combineLatest([active$, scroll$])\n    .pipe(\n      map(([active, scroll]) => {\n        let { x, y } = getElementOffset(host)\n        const size = getElementSize(host)\n\n        /**\n         * Experimental: fix handling of tables - see https://bit.ly/3TQEj5O\n         *\n         * If this proves to be a viable fix, we should refactor tooltip\n         * positioning and somehow streamline the current process. This might\n         * also fix positioning for annotations inside tables, which is another\n         * limitation.\n         */\n        const table = host.closest(\"table\")\n        if (table && host.parentElement) {\n          x += table.offsetLeft + host.parentElement.offsetLeft\n          y += table.offsetTop  + host.parentElement.offsetTop\n        }\n        return {\n          active,\n          offset: {\n            x: x - scroll.x + size.width  / 2 - width / 2,\n            y: y - scroll.y + size.height + 8\n          }\n        }\n      })\n    )\n}\n\n/**\n * Mount tooltip\n *\n * @param el - Host element\n *\n * @returns Tooltip component observable\n */\nexport function mountTooltip(\n  el: HTMLElement\n): Observable<Component<Tooltip>> {\n  const title = el.title\n  if (!title.length)\n    return EMPTY\n\n  /* Render tooltip and set title from host element */\n  const id = `__tooltip_${sequence++}`\n  const tooltip = renderTooltip(id, \"inline\")\n  const typeset = getElement(\".md-typeset\", tooltip)\n  typeset.innerHTML = title\n\n  /* Mount component on subscription */\n  return defer(() => {\n    const push$ = new Subject<Tooltip>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ offset }) {\n        tooltip.style.setProperty(\"--md-tooltip-x\", `${offset.x}px`)\n        tooltip.style.setProperty(\"--md-tooltip-y\", `${offset.y}px`)\n      },\n\n      /* Handle complete */\n      complete() {\n        tooltip.style.removeProperty(\"--md-tooltip-x\")\n        tooltip.style.removeProperty(\"--md-tooltip-y\")\n      }\n    })\n\n    /* Toggle tooltip presence to mitigate empty lines when copying */\n    merge(\n      push$.pipe(filter(({ active }) => active)),\n      push$.pipe(debounceTime(250), filter(({ active }) => !active))\n    )\n      .subscribe({\n\n        /* Handle emission */\n        next({ active }) {\n          if (active) {\n            el.insertAdjacentElement(\"afterend\", tooltip)\n            el.setAttribute(\"aria-describedby\", id)\n            el.removeAttribute(\"title\")\n          } else {\n            tooltip.remove()\n            el.removeAttribute(\"aria-describedby\")\n            el.setAttribute(\"title\", title)\n          }\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.remove()\n          el.removeAttribute(\"aria-describedby\")\n          el.setAttribute(\"title\", title)\n        }\n      })\n\n    /* Toggle tooltip visibility */\n    push$\n      .pipe(\n        auditTime(16, animationFrameScheduler)\n      )\n        .subscribe(({ active }) => {\n          tooltip.classList.toggle(\"md-tooltip--active\", active)\n        })\n\n    // @todo - refactor positioning together with annotations \u2013 there are\n    // several things that overlap and are identical in handling\n\n    /* Track relative origin of tooltip */\n    push$\n      .pipe(\n        throttleTime(125, animationFrameScheduler),\n        filter(() => !!el.offsetParent),\n        map(() => el.offsetParent!.getBoundingClientRect()),\n        map(({ x }) => x)\n      )\n      .subscribe({\n\n        /* Handle emission */\n        next(origin) {\n          if (origin)\n            tooltip.style.setProperty(\"--md-tooltip-0\", `${-origin}px`)\n          else\n            tooltip.style.removeProperty(\"--md-tooltip-0\")\n        },\n\n        /* Handle complete */\n        complete() {\n          tooltip.style.removeProperty(\"--md-tooltip-0\")\n        }\n      })\n\n    /* Create and return component */\n    return watchTooltip(tooltip, el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n    .pipe(\n      subscribeOn(asyncScheduler)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  combineLatestWith,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  from,\n  ignoreElements,\n  map,\n  mergeMap,\n  mergeWith,\n  of,\n  shareReplay,\n  startWith,\n  switchMap,\n  takeUntil\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  watchElementSize,\n  watchToggle\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Main } from \"../../main\"\nimport {\n  Tooltip,\n  mountTooltip\n} from \"../../tooltip\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface Header {\n  height: number                       /* Header visible height */\n  hidden: boolean                      /* Header is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Compute whether the header is hidden\n *\n * If the user scrolls past a certain threshold, the header can be hidden when\n * scrolling down, and shown when scrolling up.\n *\n * @param options - Options\n *\n * @returns Toggle observable\n */\nfunction isHidden({ viewport$ }: WatchOptions): Observable<boolean> {\n  if (!feature(\"header.autohide\"))\n    return of(false)\n\n  /* Compute direction and turning point */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => [a < b, b] as const),\n      distinctUntilKeyChanged(0)\n    )\n\n  /* Compute whether header should be hidden */\n  const hidden$ = combineLatest([viewport$, direction$])\n    .pipe(\n      filter(([{ offset }, [, y]]) => Math.abs(y - offset.y) > 100),\n      map(([, [direction]]) => direction),\n      distinctUntilChanged()\n    )\n\n  /* Compute threshold for hiding */\n  const search$ = watchToggle(\"search\")\n  return combineLatest([viewport$, search$])\n    .pipe(\n      map(([{ offset }, search]) => offset.y > 400 && !search),\n      distinctUntilChanged(),\n      switchMap(active => active ? hidden$ : of(false)),\n      startWith(false)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header observable\n */\nexport function watchHeader(\n  el: HTMLElement, options: WatchOptions\n): Observable<Header> {\n  return defer(() => combineLatest([\n    watchElementSize(el),\n    isHidden(options)\n  ]))\n    .pipe(\n      map(([{ height }, hidden]) => ({\n        height,\n        hidden\n      })),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.hidden === b.hidden\n      )),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount header\n *\n * This function manages the different states of the header, i.e. whether it's\n * hidden or rendered with a shadow. This depends heavily on the main area.\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header component observable\n */\nexport function mountHeader(\n  el: HTMLElement, { header$, main$ }: MountOptions\n): Observable<Component<Header | Tooltip>> {\n  return defer(() => {\n    const push$ = new Subject<Main>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$\n      .pipe(\n        distinctUntilKeyChanged(\"active\"),\n        combineLatestWith(header$)\n      )\n        .subscribe(([{ active }, { hidden }]) => {\n          el.classList.toggle(\"md-header--shadow\", active && !hidden)\n          el.hidden = hidden\n        })\n\n    /* Mount tooltips, if enabled */\n    const tooltips = from(getElements(\"[title]\", el))\n      .pipe(\n        filter(() => feature(\"content.tooltips\")),\n        mergeMap(child => mountTooltip(child))\n      )\n\n    /* Link to main area */\n    main$.subscribe(push$)\n\n    /* Create and return component */\n    return header$\n      .pipe(\n        takeUntil(done$),\n        map(state => ({ ref: el, ...state })),\n        mergeWith(tooltips.pipe(takeUntil(done$)))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElementSize,\n  getOptionalElement,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Header } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface HeaderTitle {\n  active: boolean                      /* Header title is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header title\n *\n * @param el - Heading element\n * @param options - Options\n *\n * @returns Header title observable\n */\nexport function watchHeaderTitle(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<HeaderTitle> {\n  return watchViewportAt(el, { viewport$, header$ })\n    .pipe(\n      map(({ offset: { y } }) => {\n        const { height } = getElementSize(el)\n        return {\n          active: y >= height\n        }\n      }),\n      distinctUntilKeyChanged(\"active\")\n    )\n}\n\n/**\n * Mount header title\n *\n * This function swaps the header title from the site title to the title of the\n * current page when the user scrolls past the first headline.\n *\n * @param el - Header title element\n * @param options - Options\n *\n * @returns Header title component observable\n */\nexport function mountHeaderTitle(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<HeaderTitle>> {\n  return defer(() => {\n    const push$ = new Subject<HeaderTitle>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ active }) {\n        el.classList.toggle(\"md-header__title--active\", active)\n      },\n\n      /* Handle complete */\n      complete() {\n        el.classList.remove(\"md-header__title--active\")\n      }\n    })\n\n    /* Obtain headline, if any */\n    const heading = getOptionalElement(\".md-content h1\")\n    if (typeof heading === \"undefined\")\n      return EMPTY\n\n    /* Create and return component */\n    return watchHeaderTitle(heading, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  map,\n  switchMap\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchElementSize\n} from \"~/browser\"\n\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Main area\n */\nexport interface Main {\n  offset: number                       /* Main area top offset */\n  height: number                       /* Main area visible height */\n  active: boolean                      /* Main area is active */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch main area\n *\n * This function returns an observable that computes the visual parameters of\n * the main area which depends on the viewport vertical offset and height, as\n * well as the height of the header element, if the header is fixed.\n *\n * @param el - Main area element\n * @param options - Options\n *\n * @returns Main area observable\n */\nexport function watchMain(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Main> {\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      map(({ height }) => height),\n      distinctUntilChanged()\n    )\n\n  /* Compute the main area's top and bottom borders */\n  const border$ = adjust$\n    .pipe(\n      switchMap(() => watchElementSize(el)\n        .pipe(\n          map(({ height }) => ({\n            top:    el.offsetTop,\n            bottom: el.offsetTop + height\n          })),\n          distinctUntilKeyChanged(\"bottom\")\n        )\n      )\n    )\n\n  /* Compute the main area's offset, visible height and if we scrolled past */\n  return combineLatest([adjust$, border$, viewport$])\n    .pipe(\n      map(([header, { top, bottom }, { offset: { y }, size: { height } }]) => {\n        height = Math.max(0, height\n          - Math.max(0, top    - y,  header)\n          - Math.max(0, height + y - bottom)\n        )\n        return {\n          offset: top - header,\n          height,\n          active: top - header <= y\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.offset === b.offset &&\n        a.height === b.height &&\n        a.active === b.active\n      ))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  defer,\n  filter,\n  finalize,\n  fromEvent,\n  map,\n  mergeMap,\n  observeOn,\n  of,\n  repeat,\n  shareReplay,\n  skip,\n  startWith,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { getElements, watchMedia } from \"~/browser\"\nimport { h } from \"~/utilities\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Palette colors\n */\nexport interface PaletteColor {\n  media?: string                       /* Media query */\n  scheme?: string                      /* Color scheme */\n  primary?: string                     /* Primary color */\n  accent?: string                      /* Accent color */\n}\n\n/**\n * Palette\n */\nexport interface Palette {\n  index: number                        /* Palette index */\n  color: PaletteColor                  /* Palette colors */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch color palette\n *\n * @param inputs - Color palette element\n *\n * @returns Color palette observable\n */\nexport function watchPalette(\n  inputs: HTMLInputElement[]\n): Observable<Palette> {\n  const current = __md_get<Palette>(\"__palette\") || {\n    index: inputs.findIndex(input => matchMedia(\n      input.getAttribute(\"data-md-color-media\")!\n    ).matches)\n  }\n\n  /* Emit changes in color palette */\n  const index = Math.max(0, Math.min(current.index, inputs.length - 1))\n  return of(...inputs)\n    .pipe(\n      mergeMap(input => fromEvent(input, \"change\").pipe(map(() => input))),\n      startWith(inputs[index]),\n      map(input => ({\n        index: inputs.indexOf(input),\n        color: {\n          media:   input.getAttribute(\"data-md-color-media\"),\n          scheme:  input.getAttribute(\"data-md-color-scheme\"),\n          primary: input.getAttribute(\"data-md-color-primary\"),\n          accent:  input.getAttribute(\"data-md-color-accent\")\n        }\n      } as Palette)),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount color palette\n *\n * @param el - Color palette element\n *\n * @returns Color palette component observable\n */\nexport function mountPalette(\n  el: HTMLElement\n): Observable<Component<Palette>> {\n  const inputs = getElements<HTMLInputElement>(\"input\", el)\n  const meta = h(\"meta\", { name: \"theme-color\" })\n  document.head.appendChild(meta)\n\n  // Add color scheme meta tag\n  const scheme = h(\"meta\", { name: \"color-scheme\" })\n  document.head.appendChild(scheme)\n\n  /* Mount component on subscription */\n  const media$ = watchMedia(\"(prefers-color-scheme: light)\")\n  return defer(() => {\n    const push$ = new Subject<Palette>()\n    push$.subscribe(palette => {\n      document.body.setAttribute(\"data-md-color-switching\", \"\")\n\n      /* Retrieve color palette for system preference */\n      if (palette.color.media === \"(prefers-color-scheme)\") {\n        const media = matchMedia(\"(prefers-color-scheme: light)\")\n        const input = document.querySelector(media.matches\n          ? \"[data-md-color-media='(prefers-color-scheme: light)']\"\n          : \"[data-md-color-media='(prefers-color-scheme: dark)']\"\n        )!\n\n        /* Retrieve colors for system preference */\n        palette.color.scheme  = input.getAttribute(\"data-md-color-scheme\")!\n        palette.color.primary = input.getAttribute(\"data-md-color-primary\")!\n        palette.color.accent  = input.getAttribute(\"data-md-color-accent\")!\n      }\n\n      /* Set color palette */\n      for (const [key, value] of Object.entries(palette.color))\n        document.body.setAttribute(`data-md-color-${key}`, value)\n\n      /* Set toggle visibility */\n      for (let index = 0; index < inputs.length; index++) {\n        const label = inputs[index].nextElementSibling\n        if (label instanceof HTMLElement)\n          label.hidden = palette.index !== index\n      }\n\n      /* Persist preference in local storage */\n      __md_set(\"__palette\", palette)\n    })\n\n    // Handle color switch on Enter or Space - see https://t.ly/YIhVj\n    fromEvent<KeyboardEvent>(el, \"keydown\").pipe(\n      filter(ev => ev.key === \"Enter\"),\n      withLatestFrom(push$, (_, palette) => palette)\n    )\n      .subscribe(({ index }) => {\n        index = (index + 1) % inputs.length\n        inputs[index].click()\n        inputs[index].focus()\n      })\n\n    /* Update theme-color meta tag */\n    push$\n      .pipe(\n        map(() => {\n          const header = getComponentElement(\"header\")\n          const style  = window.getComputedStyle(header)\n\n          // Set color scheme\n          scheme.content = style.colorScheme\n\n          /* Return color in hexadecimal format */\n          return style.backgroundColor.match(/\\d+/g)!\n            .map(value => (+value).toString(16).padStart(2, \"0\"))\n            .join(\"\")\n        })\n      )\n        .subscribe(color => meta.content = `#${color}`)\n\n    /* Revert transition durations after color switch */\n    push$.pipe(observeOn(asyncScheduler))\n      .subscribe(() => {\n        document.body.removeAttribute(\"data-md-color-switching\")\n      })\n\n    /* Create and return component */\n    return watchPalette(inputs)\n      .pipe(\n        takeUntil(media$.pipe(skip(1))),\n        repeat(),\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  finalize,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Progress indicator\n */\nexport interface Progress {\n  value: number                        // Progress value\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount progress indicator\n *\n * @param el - Progress indicator element\n * @param options - Options\n *\n * @returns Progress indicator component observable\n */\nexport function mountProgress(\n  el: HTMLElement, { progress$ }: MountOptions\n): Observable<Component<Progress>> {\n\n  // Mount component on subscription\n  return defer(() => {\n    const push$ = new Subject<Progress>()\n    push$.subscribe(({ value }) => {\n      el.style.setProperty(\"--md-progress-value\", `${value}`)\n    })\n\n    // Create and return component\n    return progress$\n      .pipe(\n        tap(value => push$.next({ value })),\n        finalize(() => push$.complete()),\n        map(value => ({ ref: el, value }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n  Observable,\n  Subject,\n  map,\n  tap\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport { getElement } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  alert$: Subject<string>              /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Extract text to copy\n *\n * @param el - HTML element\n *\n * @returns Extracted text\n */\nfunction extract(el: HTMLElement): string {\n  el.setAttribute(\"data-md-copying\", \"\")\n  const copy = el.closest(\"[data-copy]\")\n  const text = copy\n    ? copy.getAttribute(\"data-copy\")!\n    : el.innerText\n  el.removeAttribute(\"data-md-copying\")\n  return text.trimEnd()\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up Clipboard.js integration\n *\n * @param options - Options\n */\nexport function setupClipboardJS(\n  { alert$ }: SetupOptions\n): void {\n  if (ClipboardJS.isSupported()) {\n    new Observable<ClipboardJS.Event>(subscriber => {\n      new ClipboardJS(\"[data-clipboard-target], [data-clipboard-text]\", {\n        text: el => (\n          el.getAttribute(\"data-clipboard-text\")! ||\n          extract(getElement(\n            el.getAttribute(\"data-clipboard-target\")!\n          ))\n        )\n      })\n        .on(\"success\", ev => subscriber.next(ev))\n    })\n      .pipe(\n        tap(ev => {\n          const trigger = ev.trigger as HTMLElement\n          trigger.focus()\n        }),\n        map(() => translation(\"clipboard.copied\"))\n      )\n        .subscribe(alert$)\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  catchError,\n  map,\n  of\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getElements,\n  requestXML\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sitemap, i.e. a list of URLs\n */\nexport type Sitemap = Map<string, URL[]>\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Resolve URL to the given base URL\n *\n * When serving the site with instant navigation, MkDocs will set the hostname\n * to the value as specified in `dev_addr`, but the browser allows for several\n * hostnames to be used: `localhost`, `127.0.0.1` or even `0.0.0.0`, depending\n * on configuration. This function resolves the URL to the given hostname.\n *\n * @param url - URL\n * @param base - Base URL\n *\n * @returns Resolved URL\n */\nfunction resolve(url: URL, base: URL) {\n  url.protocol = base.protocol\n  url.hostname = base.hostname\n  return url\n}\n\n/**\n * Extract sitemap from document\n *\n * This function extracts the URLs and alternate links from the document, and\n * associates alternate links to the original URL as found in `loc`, allowing\n * the browser to navigate to the correct page when switching languages. The\n * format of the sitemap is expected to adhere to:\n *\n * ``` xml\n * <urlset>\n *   <url>\n *     <loc>...</loc>\n *     <xhtml:link rel=\"alternate\" hreflang=\"en\" href=\"...\"/>\n *     <xhtml:link rel=\"alternate\" hreflang=\"de\" href=\"...\"/>\n *     ...\n *   </url>\n *   ...\n * </urlset>\n * ```\n *\n * @param document - Document\n * @param base - Base URL\n *\n * @returns Sitemap\n */\nfunction extract(document: Document, base: URL): Sitemap {\n  const sitemap: Sitemap = new Map()\n  for (const el of getElements(\"url\", document)) {\n    const url = getElement(\"loc\", el)\n\n    // Create entry for location and add it to the list of links\n    const links = [resolve(new URL(url.textContent!), base)]\n    sitemap.set(`${links[0]}`, links)\n\n    // Attach alternate links to current entry\n    for (const link of getElements(\"[rel=alternate]\", el)) {\n      const href = link.getAttribute(\"href\")\n      if (href != null)\n        links.push(resolve(new URL(href), base))\n    }\n  }\n\n  // Return sitemap\n  return sitemap\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the sitemap for the given base URL\n *\n * If a network or parsing error occurs, we just default to an empty sitemap,\n * which means the caller should fall back to regular navigation.\n *\n * @param base - Base URL\n *\n * @returns Sitemap observable\n */\nexport function fetchSitemap(base: URL | string): Observable<Sitemap> {\n  return requestXML(new URL(\"sitemap.xml\", base))\n    .pipe(\n      map(document => extract(document, new URL(base))),\n      catchError(() => of(new Map())),\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  combineLatestWith,\n  concat,\n  debounceTime,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  of,\n  share,\n  switchMap,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration, feature } from \"~/_\"\nimport {\n  Viewport,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  requestHTML,\n  setLocation,\n  setLocationHash\n} from \"~/browser\"\nimport { getComponentElement } from \"~/components\"\n\nimport { Sitemap, fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  location$: Subject<URL>              // Location subject\n  viewport$: Observable<Viewport>      // Viewport observable\n  progress$: Subject<number>           // Progress subject\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Handle clicks on internal URLs while skipping external URLs\n *\n * @param ev - Mouse event\n * @param sitemap - Sitemap\n *\n * @returns URL observable\n */\nfunction handle(\n  ev: MouseEvent, sitemap: Sitemap\n): Observable<URL> {\n  if (!(ev.target instanceof Element))\n    return EMPTY\n\n  // Skip, as target is not within a link - clicks on non-link elements are\n  // also captured, which we need to exclude from processing\n  const el = ev.target.closest(\"a\")\n  if (el === null)\n    return EMPTY\n\n  // Skip, as link opens in new window - we now know we have captured a click\n  // on a link, but the link either has a `target` property defined, or the\n  // user pressed the `meta` or `ctrl` key to open it in a new window. Thus,\n  // we need to filter this event as well.\n  if (el.target || ev.metaKey || ev.ctrlKey)\n    return EMPTY\n\n  // Next, we must check if the URL is relevant for us, i.e., if it's an\n  // internal link to a page that is managed by MkDocs. Only then we can be\n  // sure that the structure of the page to be loaded adheres to the current\n  // document structure and can subsequently be injected into it without doing\n  // a full reload. For this reason, we must canonicalize the URL by removing\n  // all search parameters and hash fragments.\n  const url = new URL(el.href)\n  url.search = url.hash = \"\"\n\n  // Skip, if URL is not included in the sitemap - this could be the case when\n  // linking between versions or languages, or to another page that the author\n  // included as part of the build, but that is not managed by MkDocs. In that\n  // case we must not continue with instant navigation.\n  if (!sitemap.has(`${url}`))\n    return EMPTY\n\n  // We now know that we have a link to an internal page, so we prevent the\n  // browser from navigation and emit the URL for instant navigation. Note that\n  // this also includes anchor links, which means we need to implement anchor\n  // positioning ourselves. The reason for this is that if we wouldn't manage\n  // anchor links as well, scroll restoration will not work correctly (e.g.\n  // following an anchor link and scrolling).\n  ev.preventDefault()\n  return of(new URL(el.href))\n}\n\n/**\n * Create a map of head elements for lookup and replacement\n *\n * @param document - Document\n *\n * @returns Tag map\n */\nfunction head(document: Document): Map<string, HTMLElement> {\n  const tags = new Map<string, HTMLElement>()\n  for (const el of getElements(\":scope > *\", document.head))\n    tags.set(el.outerHTML, el)\n\n  // Return tag map\n  return tags\n}\n\n/**\n * Resolve relative URLs in the given document\n *\n * This function resolves relative `href` and `src` attributes, which can belong\n * to all sorts of tags, like meta tags, links, images, scripts and more.\n *\n * @param document - Document\n *\n * @returns Document observable\n */\nfunction resolve(document: Document): Observable<Document> {\n  for (const el of getElements(\"[href], [src]\", document))\n    for (const key of [\"href\", \"src\"]) {\n      const value = el.getAttribute(key)\n      if (value && !/^(?:[a-z]+:)?\\/\\//i.test(value)) {\n        // @ts-expect-error - trick: self-assign to resolve URL\n        el[key] = el[key]\n        break\n      }\n    }\n\n  // Return document observable\n  return of(document)\n}\n\n/**\n * Inject the contents of a document into the current one\n *\n * @param next - Next document\n *\n * @returns Document observable\n */\nfunction inject(next: Document): Observable<Document> {\n  for (const selector of [\n    \"[data-md-component=announce]\",\n    \"[data-md-component=container]\",\n    \"[data-md-component=header-topic]\",\n    \"[data-md-component=outdated]\",\n    \"[data-md-component=logo]\",\n    \"[data-md-component=skip]\",\n    ...feature(\"navigation.tabs.sticky\")\n      ? [\"[data-md-component=tabs]\"]\n      : []\n  ]) {\n    const source = getOptionalElement(selector)\n    const target = getOptionalElement(selector, next)\n    if (\n      typeof source !== \"undefined\" &&\n      typeof target !== \"undefined\"\n    ) {\n      source.replaceWith(target)\n    }\n  }\n\n  // Update meta tags\n  const tags = head(document)\n  for (const [html, el] of head(next))\n    if (tags.has(html))\n      tags.delete(html)\n    else\n      document.head.appendChild(el)\n\n  // Remove meta tags that are not present in the new document\n  for (const el of tags.values()) {\n    const name = el.getAttribute(\"name\")\n    // @todo - find a better way to handle attributes we add dynamically in\n    // other components without mounting components on every navigation, as\n    // this might impact overall performance - see https://t.ly/ehp_O\n    if (name !== \"theme-color\" && name !== \"color-scheme\")\n      el.remove()\n  }\n\n  // After components and meta tags were replaced, re-evaluate scripts\n  // that were provided by the author as part of Markdown files\n  const container = getComponentElement(\"container\")\n  return concat(getElements(\"script\", container))\n    .pipe(\n      switchMap(el => {\n        const script = next.createElement(\"script\")\n        if (el.src) {\n          for (const name of el.getAttributeNames())\n            script.setAttribute(name, el.getAttribute(name)!)\n          el.replaceWith(script)\n\n          // Complete when script is loaded\n          return new Observable(observer => {\n            script.onload = () => observer.complete()\n          })\n\n        // Complete immediately\n        } else {\n          script.textContent = el.textContent\n          el.replaceWith(script)\n          return EMPTY\n        }\n      }),\n      ignoreElements(),\n      endWith(document)\n    )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up instant navigation\n *\n * This is a heavily orchestrated operation - see inline comments to learn how\n * this works with Material for MkDocs, and how you can hook into it.\n *\n * @param options - Options\n *\n * @returns Document observable\n */\nexport function setupInstantNavigation(\n  { location$, viewport$, progress$ }: SetupOptions\n): Observable<Document> {\n  const config = configuration()\n  if (location.protocol === \"file:\")\n    return EMPTY\n\n  // Load sitemap immediately, so we have it available when the user initiates\n  // the first navigation request without any perceivable delay\n  const sitemap$ = fetchSitemap(config.base)\n\n  // Since we might be on a slow connection, the user might trigger multiple\n  // instant navigation events that overlap. MkDocs produces relative URLs for\n  // all internal links, which becomes a problem in this case, because we need\n  // to change the base URL the moment the user clicks a link that should be\n  // intercepted in order to be consistent with popstate, which means that the\n  // base URL would now be incorrect when resolving another relative link from\n  // the same site. For this reason we always resolve all relative links to\n  // absolute links, so we can be sure this never happens.\n  of(document)\n    .subscribe(resolve)\n\n  // --------------------------------------------------------------------------\n  // Navigation interception\n  // --------------------------------------------------------------------------\n\n  // Intercept navigation - to keep the number of event listeners down we use\n  // the fact that uncaptured events bubble up to the body. This has the nice\n  // property that we don't need to detach and then re-attach event listeners\n  // when the document is replaced after a navigation event.\n  const instant$ =\n    fromEvent<MouseEvent>(document.body, \"click\")\n      .pipe(\n        combineLatestWith(sitemap$),\n        switchMap(([ev, sitemap]) => handle(ev, sitemap)),\n        share()\n      )\n\n  // Intercept history change events, e.g. when the user uses the browser's\n  // back or forward buttons, and emit new location for fetching and parsing\n  const history$ =\n    fromEvent<PopStateEvent>(window, \"popstate\")\n      .pipe(\n        map(getLocation),\n        share()\n      )\n\n  // While it would be better UX to defer navigation events until the document\n  // is fully fetched and parsed, we must schedule it here to synchronize with\n  // popstate events, as they are emitted immediately. Moreover we need to\n  // store the current viewport offset for scroll restoration later on.\n  instant$.pipe(withLatestFrom(viewport$))\n    .subscribe(([url, { offset }]) => {\n      history.replaceState(offset, \"\")\n      history.pushState(null, \"\", url)\n    })\n\n  // Emit URLs that should be fetched via instant navigation on location subject\n  // which was passed into this function. The state of instant navigation can be\n  // intercepted by other parts of the application, which can synchronously back\n  // up or restore state before or after instant navigation happens.\n  merge(instant$, history$)\n    .subscribe(location$)\n\n  // --------------------------------------------------------------------------\n  // Fetching and parsing\n  // --------------------------------------------------------------------------\n\n  // Fetch document - we deduplicate requests to the same location, so we don't\n  // end up with multiple requests for the same page. We use `switchMap`, since\n  // we want to cancel the previous request when a new one is triggered, which\n  // is automatically handled by the observable returned by `request`. This is\n  // essential to ensure a good user experience, as we don't want to load pages\n  // that are not needed anymore, e.g., when the user clicks multiple links in\n  // quick succession or on slow connections. If the request fails for some\n  // reason, we fall back and use regular navigation, forcing a reload.\n  const document$ =\n    location$.pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(url => requestHTML(url, { progress$ })\n        .pipe(\n          catchError(() => {\n            setLocation(url, true)\n            return EMPTY\n          })\n        )\n      ),\n\n      // The document was successfully fetched and parsed, so we can inject its\n      // contents into the currently active document\n      switchMap(resolve),\n      switchMap(inject),\n      share()\n    )\n\n  // --------------------------------------------------------------------------\n  // Scroll restoration\n  // --------------------------------------------------------------------------\n\n  // Handle scroll restoration - we must restore the viewport offset after the\n  // document has been fetched and injected, and every time the user clicks an\n  // anchor that leads to an element on the same page, which might also happen\n  // when the user uses the back or forward button.\n  merge(\n    document$.pipe(withLatestFrom(location$, (_, url) => url)),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with a hash fragment different from the current one, as\n    // well as from popstate events, which are emitted when the user navigates\n    // back and forth between pages. We use a two-layered subscription to scope\n    // the scroll restoration to the current page, as we don't need to restore\n    // the viewport offset when the user navigates to a different page, as this\n    // is already handled by the previous observable.\n    location$.pipe(\n      distinctUntilKeyChanged(\"pathname\"),\n      switchMap(() => location$),\n      distinctUntilKeyChanged(\"hash\"),\n    ),\n\n    // Handle instant navigation events that are triggered by the user clicking\n    // on an anchor link with the same hash fragment as the current one in the\n    // URL. It is essential that we only intercept those from instant navigation\n    // events and not from history change events, or we'll end up in and endless\n    // loop. The top-level history entry must be removed, as it will be replaced\n    // with a new one, which would otherwise lead to a duplicate entry.\n    location$.pipe(\n      distinctUntilChanged((a, b) => (\n        a.pathname === b.pathname &&\n        a.hash     === b.hash\n      )),\n      switchMap(() => instant$),\n      tap(() => history.back())\n    )\n  )\n    .subscribe(url => {\n\n      // Check if the current history entry has a state, which happens when the\n      // user presses the back or forward button to visit a page we've already\n      // seen. If there's no state, it means a new page was visited and we must\n      // scroll to the top, unless an anchor is given.\n      if (history.state !== null || !url.hash) {\n        window.scrollTo(0, history.state?.y ?? 0)\n      } else {\n        history.scrollRestoration = \"auto\"\n        setLocationHash(url.hash)\n        history.scrollRestoration = \"manual\"\n      }\n    })\n\n  // Disable scroll restoration when an instant navigation event occurs, so the\n  // browser does not immediately set the viewport offset to the prior history\n  // entry, scrolling to the position on the same page, which would look odd.\n  // Instead, we manually restore the position once the page has loaded.\n  location$.subscribe(() => {\n    history.scrollRestoration = \"manual\"\n  })\n\n  // Enable scroll restoration before window unloads - this is essential to\n  // ensure that full reloads (F5) restore the viewport offset correctly. If\n  // only popstate events wouldn't reset the viewport offset prior to their\n  // emission, we could just reset this in popstate. Meh.\n  fromEvent(window, \"beforeunload\")\n    .subscribe(() => {\n      history.scrollRestoration = \"auto\"\n    })\n\n  // Track viewport offset, so we can restore it when the user navigates back\n  // and forth between pages. Note that this must be debounced and cannot be\n  // done in popstate, as popstate has already removed the entry from the\n  // history, which means it is too late.\n  viewport$.pipe(\n    distinctUntilKeyChanged(\"offset\"),\n    debounceTime(100)\n  )\n    .subscribe(({ offset }) => {\n      history.replaceState(offset, \"\")\n    })\n\n  // Return document observable\n  return document$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport escapeHTML from \"escape-html\"\n\nimport { SearchConfig } from \"../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlight function\n *\n * @param value - Value\n *\n * @returns Highlighted value\n */\nexport type SearchHighlightFn = (value: string) => string\n\n/**\n * Search highlight factory function\n *\n * @param query - Query value\n *\n * @returns Search highlight function\n */\nexport type SearchHighlightFactoryFn = (query: string) => SearchHighlightFn\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search highlighter\n *\n * @param config - Search configuration\n *\n * @returns Search highlight factory function\n */\nexport function setupSearchHighlighter(\n  config: SearchConfig\n): SearchHighlightFactoryFn {\n  // Hack: temporarily remove pure lookaheads and lookbehinds\n  const regex = config.separator.split(\"|\").map(term => {\n    const temp = term.replace(/(\\(\\?[!=<][^)]+\\))/g, \"\")\n    return temp.length === 0 ? \"\uFFFD\" : term\n  })\n    .join(\"|\")\n\n  const separator = new RegExp(regex, \"img\")\n  const highlight = (_: unknown, data: string, term: string) => {\n    return `${data}<mark data-md-highlight>${term}</mark>`\n  }\n\n  /* Return factory function */\n  return (query: string) => {\n    query = query\n      .replace(/[\\s*+\\-:~^]+/g, \" \")\n      .trim()\n\n    /* Create search term match expression */\n    const match = new RegExp(`(^|${config.separator}|)(${\n      query\n        .replace(/[|\\\\{}()[\\]^$+*?.-]/g, \"\\\\$&\")\n        .replace(separator, \"|\")\n    })`, \"img\")\n\n    /* Highlight string value */\n    return value => escapeHTML(value)\n      .replace(match, highlight)\n      .replace(/<\\/mark>(\\s+)<mark[^>]*>/img, \"$1\")\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchResult } from \"../../_\"\nimport { SearchIndex } from \"../../config\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search message type\n */\nexport const enum SearchMessageType {\n  SETUP,                               /* Search index setup */\n  READY,                               /* Search index ready */\n  QUERY,                               /* Search query */\n  RESULT                               /* Search results */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message containing the data necessary to setup the search index\n */\nexport interface SearchSetupMessage {\n  type: SearchMessageType.SETUP        /* Message type */\n  data: SearchIndex                    /* Message data */\n}\n\n/**\n * Message indicating the search index is ready\n */\nexport interface SearchReadyMessage {\n  type: SearchMessageType.READY        /* Message type */\n}\n\n/**\n * Message containing a search query\n */\nexport interface SearchQueryMessage {\n  type: SearchMessageType.QUERY        /* Message type */\n  data: string                         /* Message data */\n}\n\n/**\n * Message containing results for a search query\n */\nexport interface SearchResultMessage {\n  type: SearchMessageType.RESULT       /* Message type */\n  data: SearchResult                   /* Message data */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Message exchanged with the search worker\n */\nexport type SearchMessage =\n  | SearchSetupMessage\n  | SearchReadyMessage\n  | SearchQueryMessage\n  | SearchResultMessage\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Type guard for search ready messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchReadyMessage(\n  message: SearchMessage\n): message is SearchReadyMessage {\n  return message.type === SearchMessageType.READY\n}\n\n/**\n * Type guard for search result messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchResultMessage(\n  message: SearchMessage\n): message is SearchResultMessage {\n  return message.type === SearchMessageType.RESULT\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  ObservableInput,\n  Subject,\n  first,\n  merge,\n  of,\n  switchMap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport { watchToggle, watchWorker } from \"~/browser\"\n\nimport { SearchIndex } from \"../../config\"\nimport {\n  SearchMessage,\n  SearchMessageType\n} from \"../message\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up search worker\n *\n * This function creates and initializes a web worker that is used for search,\n * so that the user interface doesn't freeze. In general, the application does\n * not care how search is implemented, as long as the web worker conforms to\n * the format expected by the application as defined in `SearchMessage`. This\n * allows the author to implement custom search functionality, by providing a\n * custom web worker via configuration.\n *\n * Material for MkDocs' built-in search implementation makes use of Lunr.js, an\n * efficient and fast implementation for client-side search. Leveraging a tiny\n * iframe-based web worker shim, search is even supported for the `file://`\n * protocol, enabling search for local non-hosted builds.\n *\n * If the protocol is `file://`, search initialization is deferred to mitigate\n * freezing, as it's now synchronous by design - see https://bit.ly/3C521EO\n *\n * @see https://bit.ly/3igvtQv - How to implement custom search\n *\n * @param url - Worker URL\n * @param index$ - Search index observable input\n *\n * @returns Search worker\n */\nexport function setupSearchWorker(\n  url: string, index$: ObservableInput<SearchIndex>\n): Subject<SearchMessage> {\n  const worker$ = watchWorker<SearchMessage>(url)\n  merge(\n    of(location.protocol !== \"file:\"),\n    watchToggle(\"search\")\n  )\n    .pipe(\n      first(active => active),\n      switchMap(() => index$)\n    )\n      .subscribe(({ config, docs }) => worker$.next({\n        type: SearchMessageType.SETUP,\n        data: {\n          config,\n          docs,\n          options: {\n            suggest: feature(\"search.suggest\")\n          }\n        }\n      }))\n\n  /* Return search worker */\n  return worker$\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Subject,\n  catchError,\n  combineLatest,\n  filter,\n  fromEvent,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  getElement,\n  getLocation,\n  requestJSON,\n  setLocation\n} from \"~/browser\"\nimport { getComponentElements } from \"~/components\"\nimport {\n  Version,\n  renderVersionSelector\n} from \"~/templates\"\n\nimport { fetchSitemap } from \"../sitemap\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n  document$: Subject<Document>         /* Document subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up version selector\n *\n * @param options - Options\n */\nexport function setupVersionSelector(\n  { document$ }: SetupOptions\n): void {\n  const config = configuration()\n  const versions$ = requestJSON<Version[]>(\n    new URL(\"../versions.json\", config.base)\n  )\n    .pipe(\n      catchError(() => EMPTY) // @todo refactor instant loading\n    )\n\n  /* Determine current version */\n  const current$ = versions$\n    .pipe(\n      map(versions => {\n        const [, current] = config.base.match(/([^/]+)\\/?$/)!\n        return versions.find(({ version, aliases }) => (\n          version === current || aliases.includes(current)\n        )) || versions[0]\n      })\n    )\n\n  /* Intercept inter-version navigation */\n  versions$\n    .pipe(\n      map(versions => new Map(versions.map(version => [\n        `${new URL(`../${version.version}/`, config.base)}`,\n        version\n      ]))),\n      switchMap(urls => fromEvent<MouseEvent>(document.body, \"click\")\n        .pipe(\n          filter(ev => !ev.metaKey && !ev.ctrlKey),\n          withLatestFrom(current$),\n          switchMap(([ev, current]) => {\n            if (ev.target instanceof Element) {\n              const el = ev.target.closest(\"a\")\n              if (el && !el.target && urls.has(el.href)) {\n                const url = el.href\n                // This is a temporary hack to detect if a version inside the\n                // version selector or on another part of the site was clicked.\n                // If we're inside the version selector, we definitely want to\n                // find the same page, as we might have different deployments\n                // due to aliases. However, if we're outside the version\n                // selector, we must abort here, because we might otherwise\n                // interfere with instant navigation. We need to refactor this\n                // at some point together with instant navigation.\n                //\n                // See https://github.com/squidfunk/mkdocs-material/issues/4012\n                if (!ev.target.closest(\".md-version\")) {\n                  const version = urls.get(url)!\n                  if (version === current)\n                    return EMPTY\n                }\n                ev.preventDefault()\n                return of(url)\n              }\n            }\n            return EMPTY\n          }),\n          switchMap(url => {\n            const { version } = urls.get(url)!\n            return fetchSitemap(new URL(url))\n              .pipe(\n                map(sitemap => {\n                  const location = getLocation()\n                  const path = location.href.replace(config.base, \"\")\n                  return sitemap.has(path.split(\"#\")[0])\n                    ? new URL(`../${version}/${path}`, config.base)\n                    : new URL(url)\n                })\n              )\n          })\n        )\n      )\n    )\n      .subscribe(url => setLocation(url, true))\n\n  /* Render version selector and warning */\n  combineLatest([versions$, current$])\n    .subscribe(([versions, current]) => {\n      const topic = getElement(\".md-header__topic\")\n      topic.appendChild(renderVersionSelector(versions, current))\n    })\n\n  /* Integrate outdated version banner with instant navigation */\n  document$.pipe(switchMap(() => current$))\n    .subscribe(current => {\n\n      /* Check if version state was already determined */\n      let outdated = __md_get(\"__outdated\", sessionStorage)\n      if (outdated === null) {\n        outdated = true\n\n        /* Obtain and normalize default versions */\n        let ignored = config.version?.default || \"latest\"\n        if (!Array.isArray(ignored))\n          ignored = [ignored]\n\n        /* Check if version is considered a default */\n        main: for (const ignore of ignored)\n          for (const version of current.aliases.concat(current.version))\n            if (new RegExp(ignore, \"i\").test(version)) {\n              outdated = false\n              break main\n            }\n\n        /* Persist version state in session storage */\n        __md_set(\"__outdated\", outdated, sessionStorage)\n      }\n\n      /* Unhide outdated version banner */\n      if (outdated)\n        for (const warning of getComponentElements(\"outdated\"))\n          warning.hidden = false\n    })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  first,\n  fromEvent,\n  ignoreElements,\n  map,\n  merge,\n  shareReplay,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport {\n  getElement,\n  getLocation,\n  setToggle,\n  watchElementFocus,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchMessageType,\n  isSearchReadyMessage\n} from \"~/integrations\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search query\n */\nexport interface SearchQuery {\n  value: string                        /* Query value */\n  focus: boolean                       /* Query focus */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch search query\n *\n * Note that the focus event which triggers re-reading the current query value\n * is delayed by `1ms` so the input's empty state is allowed to propagate.\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query observable\n */\nexport function watchSearchQuery(\n  el: HTMLInputElement, { worker$ }: WatchOptions\n): Observable<SearchQuery> {\n\n  /* Support search deep linking */\n  const { searchParams } = getLocation()\n  if (searchParams.has(\"q\")) {\n    setToggle(\"search\", true)\n\n    /* Set query from parameter */\n    el.value = searchParams.get(\"q\")!\n    el.focus()\n\n    /* Remove query parameter on close */\n    watchToggle(\"search\")\n      .pipe(\n        first(active => !active)\n      )\n        .subscribe(() => {\n          const url = getLocation()\n          url.searchParams.delete(\"q\")\n          history.replaceState({}, \"\", `${url}`)\n        })\n  }\n\n  /* Intercept focus and input events */\n  const focus$ = watchElementFocus(el)\n  const value$ = merge(\n    worker$.pipe(first(isSearchReadyMessage)),\n    fromEvent(el, \"keyup\"),\n    focus$\n  )\n    .pipe(\n      map(() => el.value),\n      distinctUntilChanged()\n    )\n\n  /* Combine into single observable */\n  return combineLatest([value$, focus$])\n    .pipe(\n      map(([value, focus]) => ({ value, focus })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount search query\n *\n * @param el - Search query element\n * @param options - Options\n *\n * @returns Search query component observable\n */\nexport function mountSearchQuery(\n  el: HTMLInputElement, { worker$ }: MountOptions\n): Observable<Component<SearchQuery, HTMLInputElement>> {\n  const push$ = new Subject<SearchQuery>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n\n  /* Handle value change */\n  combineLatest([\n    worker$.pipe(first(isSearchReadyMessage)),\n    push$\n  ], (_, query) => query)\n    .pipe(\n      distinctUntilKeyChanged(\"value\")\n    )\n      .subscribe(({ value }) => worker$.next({\n        type: SearchMessageType.QUERY,\n        data: value\n      }))\n\n  /* Handle focus change */\n  push$\n    .pipe(\n      distinctUntilKeyChanged(\"focus\")\n    )\n      .subscribe(({ focus }) => {\n        if (focus)\n          setToggle(\"search\", focus)\n      })\n\n  /* Handle reset */\n  fromEvent(el.form!, \"reset\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(() => el.focus())\n\n  // Focus search query on label click - note that this is necessary to bring\n  // up the keyboard on iOS and other mobile platforms, as the search dialog is\n  // not visible at first, and programatically focusing an input element must\n  // be triggered by a user interaction - see https://t.ly/Cb30n\n  const label = getElement(\"header [for=__search]\")\n  fromEvent(label, \"click\")\n    .subscribe(() => el.focus())\n\n  /* Create and return component */\n  return watchSearchQuery(el, { worker$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state })),\n      shareReplay(1)\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  bufferCount,\n  filter,\n  finalize,\n  first,\n  fromEvent,\n  map,\n  merge,\n  mergeMap,\n  of,\n  share,\n  skipUntil,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom,\n  zipWith\n} from \"rxjs\"\n\nimport { translation } from \"~/_\"\nimport {\n  getElement,\n  getOptionalElement,\n  watchElementBoundary,\n  watchToggle\n} from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchReadyMessage,\n  isSearchResultMessage\n} from \"~/integrations\"\nimport { renderSearchResultItem } from \"~/templates\"\nimport { round } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search result list\n *\n * This function performs a lazy rendering of the search results, depending on\n * the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchResult(\n  el: HTMLElement, { worker$, query$ }: MountOptions\n): Observable<Component<SearchResult>> {\n  const push$ = new Subject<SearchResult>()\n  const boundary$ = watchElementBoundary(el.parentElement!)\n    .pipe(\n      filter(Boolean)\n    )\n\n  /* Retrieve container */\n  const container = el.parentElement!\n\n  /* Retrieve nested components */\n  const meta = getElement(\":scope > :first-child\", el)\n  const list = getElement(\":scope > :last-child\", el)\n\n  /* Reveal to accessibility tree \u2013 see https://bit.ly/3iAA7t8 */\n  watchToggle(\"search\")\n    .subscribe(active => list.setAttribute(\n      \"role\", active ? \"list\" : \"presentation\"\n    ))\n\n  /* Update search result metadata */\n  push$\n    .pipe(\n      withLatestFrom(query$),\n      skipUntil(worker$.pipe(first(isSearchReadyMessage)))\n    )\n      .subscribe(([{ items }, { value }]) => {\n        switch (items.length) {\n\n          /* No results */\n          case 0:\n            meta.textContent = value.length\n              ? translation(\"search.result.none\")\n              : translation(\"search.result.placeholder\")\n            break\n\n          /* One result */\n          case 1:\n            meta.textContent = translation(\"search.result.one\")\n            break\n\n          /* Multiple result */\n          default:\n            const count = round(items.length)\n            meta.textContent = translation(\"search.result.other\", count)\n        }\n      })\n\n  /* Render search result item */\n  const render$ = push$\n    .pipe(\n      tap(() => list.innerHTML = \"\"),\n      switchMap(({ items }) => merge(\n        of(...items.slice(0, 10)),\n        of(...items.slice(10))\n          .pipe(\n            bufferCount(4),\n            zipWith(boundary$),\n            switchMap(([chunk]) => chunk)\n          )\n      )),\n      map(renderSearchResultItem),\n      share()\n    )\n\n  /* Update search result list */\n  render$.subscribe(item => list.appendChild(item))\n  render$\n    .pipe(\n      mergeMap(item => {\n        const details = getOptionalElement(\"details\", item)\n        if (typeof details === \"undefined\")\n          return EMPTY\n\n        /* Keep position of details element stable */\n        return fromEvent(details, \"toggle\")\n          .pipe(\n            takeUntil(push$),\n            map(() => details)\n          )\n      })\n    )\n      .subscribe(details => {\n        if (\n          details.open === false &&\n          details.offsetTop <= container.scrollTop\n        )\n          container.scrollTo({ top: details.offsetTop })\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search sharing\n */\nexport interface SearchShare {\n  url: URL                             /* Deep link for sharing */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  query$: Observable<SearchQuery>      /* Search query observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search sharing\n *\n * @param _el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing observable\n */\nexport function watchSearchShare(\n  _el: HTMLElement, { query$ }: WatchOptions\n): Observable<SearchShare> {\n  return query$\n    .pipe(\n      map(({ value }) => {\n        const url = getLocation()\n        url.hash = \"\"\n\n        /* Compute readable query strings */\n        value = value\n          .replace(/\\s+/g, \"+\")        /* Collapse whitespace */\n          .replace(/&/g, \"%26\")        /* Escape '&' character */\n          .replace(/=/g, \"%3D\")        /* Escape '=' character */\n\n        /* Replace query string */\n        url.search = `q=${value}`\n        return { url }\n      })\n    )\n}\n\n/**\n * Mount search sharing\n *\n * @param el - Search sharing element\n * @param options - Options\n *\n * @returns Search sharing component observable\n */\nexport function mountSearchShare(\n  el: HTMLAnchorElement, options: MountOptions\n): Observable<Component<SearchShare>> {\n  const push$ = new Subject<SearchShare>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe(({ url }) => {\n    el.setAttribute(\"data-clipboard-text\", el.href)\n    el.href = `${url}`\n  })\n\n  /* Prevent following of link */\n  fromEvent(el, \"click\")\n    .pipe(\n      takeUntil(done$)\n    )\n      .subscribe(ev => ev.preventDefault())\n\n  /* Create and return component */\n  return watchSearchShare(el, options)\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  combineLatestWith,\n  distinctUntilChanged,\n  filter,\n  finalize,\n  fromEvent,\n  map,\n  merge,\n  observeOn,\n  tap\n} from \"rxjs\"\n\nimport { Keyboard } from \"~/browser\"\nimport {\n  SearchMessage,\n  SearchResult,\n  isSearchResultMessage\n} from \"~/integrations\"\n\nimport { Component, getComponentElement } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search suggestions\n */\nexport interface SearchSuggest {}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n  worker$: Subject<SearchMessage>      /* Search worker */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search suggestions\n *\n * This function will perform a lazy rendering of the search results, depending\n * on the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchSuggest(\n  el: HTMLElement, { worker$, keyboard$ }: MountOptions\n): Observable<Component<SearchSuggest>> {\n  const push$ = new Subject<SearchResult>()\n\n  /* Retrieve query component and track all changes */\n  const query  = getComponentElement(\"search-query\")\n  const query$ = merge(\n    fromEvent(query, \"keydown\"),\n    fromEvent(query, \"focus\")\n  )\n    .pipe(\n      observeOn(asyncScheduler),\n      map(() => query.value),\n      distinctUntilChanged(),\n    )\n\n  /* Update search suggestions */\n  push$\n    .pipe(\n      combineLatestWith(query$),\n      map(([{ suggest }, value]) => {\n        const words = value.split(/([\\s-]+)/)\n        if (suggest?.length && words[words.length - 1]) {\n          const last = suggest[suggest.length - 1]\n          if (last.startsWith(words[words.length - 1]))\n            words[words.length - 1] = last\n        } else {\n          words.length = 0\n        }\n        return words\n      })\n    )\n      .subscribe(words => el.innerHTML = words\n        .join(\"\")\n        .replace(/\\s/g, \"&nbsp;\")\n      )\n\n  /* Set up search keyboard handlers */\n  keyboard$\n    .pipe(\n      filter(({ mode }) => mode === \"search\")\n    )\n      .subscribe(key => {\n        switch (key.type) {\n\n          /* Right arrow: accept current suggestion */\n          case \"ArrowRight\":\n            if (\n              el.innerText.length &&\n              query.selectionStart === query.value.length\n            )\n              query.value = el.innerText\n            break\n        }\n      })\n\n  /* Filter search result message */\n  const result$ = worker$\n    .pipe(\n      filter(isSearchResultMessage),\n      map(({ data }) => data)\n    )\n\n  /* Create and return component */\n  return result$\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(() => ({ ref: el }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  NEVER,\n  Observable,\n  ObservableInput,\n  filter,\n  fromEvent,\n  merge,\n  mergeWith\n} from \"rxjs\"\n\nimport { configuration } from \"~/_\"\nimport {\n  Keyboard,\n  getActiveElement,\n  getElements,\n  setToggle\n} from \"~/browser\"\nimport {\n  SearchIndex,\n  SearchResult,\n  setupSearchWorker\n} from \"~/integrations\"\n\nimport {\n  Component,\n  getComponentElement,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SearchQuery,\n  mountSearchQuery\n} from \"../query\"\nimport { mountSearchResult } from \"../result\"\nimport {\n  SearchShare,\n  mountSearchShare\n} from \"../share\"\nimport {\n  SearchSuggest,\n  mountSearchSuggest\n} from \"../suggest\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search\n */\nexport type Search =\n  | SearchQuery\n  | SearchResult\n  | SearchShare\n  | SearchSuggest\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  keyboard$: Observable<Keyboard>      /* Keyboard observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search\n *\n * This function sets up the search functionality, including the underlying\n * web worker and all keyboard bindings.\n *\n * @param el - Search element\n * @param options - Options\n *\n * @returns Search component observable\n */\nexport function mountSearch(\n  el: HTMLElement, { index$, keyboard$ }: MountOptions\n): Observable<Component<Search>> {\n  const config = configuration()\n  try {\n    const worker$ = setupSearchWorker(config.search, index$)\n\n    /* Retrieve query and result components */\n    const query  = getComponentElement(\"search-query\", el)\n    const result = getComponentElement(\"search-result\", el)\n\n    /* Always close search on result selection */\n    fromEvent<PointerEvent>(el, \"click\")\n      .pipe(\n        filter(({ target }) => (\n          target instanceof Element && !!target.closest(\"a\")\n        ))\n      )\n        .subscribe(() => setToggle(\"search\", false))\n\n    /* Set up search keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"search\")\n      )\n        .subscribe(key => {\n          const active = getActiveElement()\n          switch (key.type) {\n\n            /* Enter: go to first (best) result */\n            case \"Enter\":\n              if (active === query) {\n                const anchors = new Map<HTMLAnchorElement, number>()\n                for (const anchor of getElements<HTMLAnchorElement>(\n                  \":first-child [href]\", result\n                )) {\n                  const article = anchor.firstElementChild!\n                  anchors.set(anchor, parseFloat(\n                    article.getAttribute(\"data-md-score\")!\n                  ))\n                }\n\n                /* Go to result with highest score, if any */\n                if (anchors.size) {\n                  const [[best]] = [...anchors].sort(([, a], [, b]) => b - a)\n                  best.click()\n                }\n\n                /* Otherwise omit form submission */\n                key.claim()\n              }\n              break\n\n            /* Escape or Tab: close search */\n            case \"Escape\":\n            case \"Tab\":\n              setToggle(\"search\", false)\n              query.blur()\n              break\n\n            /* Vertical arrows: select previous or next search result */\n            case \"ArrowUp\":\n            case \"ArrowDown\":\n              if (typeof active === \"undefined\") {\n                query.focus()\n              } else {\n                const els = [query, ...getElements(\n                  \":not(details) > [href], summary, details[open] [href]\",\n                  result\n                )]\n                const i = Math.max(0, (\n                  Math.max(0, els.indexOf(active)) + els.length + (\n                    key.type === \"ArrowUp\" ? -1 : +1\n                  )\n                ) % els.length)\n                els[i].focus()\n              }\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n\n            /* All other keys: hand to search query */\n            default:\n              if (query !== getActiveElement())\n                query.focus()\n          }\n        })\n\n    /* Set up global keyboard handlers */\n    keyboard$\n      .pipe(\n        filter(({ mode }) => mode === \"global\")\n      )\n        .subscribe(key => {\n          switch (key.type) {\n\n            /* Open search and select query */\n            case \"f\":\n            case \"s\":\n            case \"/\":\n              query.focus()\n              query.select()\n\n              /* Prevent scrolling of page */\n              key.claim()\n              break\n          }\n        })\n\n    /* Create and return component */\n    const query$ = mountSearchQuery(query, { worker$ })\n    return merge(\n      query$,\n      mountSearchResult(result, { worker$, query$ })\n    )\n      .pipe(\n        mergeWith(\n\n          /* Search sharing */\n          ...getComponentElements(\"search-share\", el)\n            .map(child => mountSearchShare(child, { query$ })),\n\n          /* Search suggestions */\n          ...getComponentElements(\"search-suggest\", el)\n            .map(child => mountSearchSuggest(child, { worker$, keyboard$ }))\n        )\n      )\n\n  /* Gracefully handle broken search */\n  } catch (err) {\n    el.hidden = true\n    return NEVER\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  ObservableInput,\n  combineLatest,\n  filter,\n  map,\n  startWith\n} from \"rxjs\"\n\nimport { getLocation } from \"~/browser\"\nimport {\n  SearchIndex,\n  setupSearchHighlighter\n} from \"~/integrations\"\nimport { h } from \"~/utilities\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlighting\n */\nexport interface SearchHighlight {\n  nodes: Map<ChildNode, string>        /* Map of replacements */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  index$: ObservableInput<SearchIndex> /* Search index observable */\n  location$: Observable<URL>           /* Location observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search highlighting\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Search highlighting component observable\n */\nexport function mountSearchHiglight(\n  el: HTMLElement, { index$, location$ }: MountOptions\n): Observable<Component<SearchHighlight>> {\n  return combineLatest([\n    index$,\n    location$\n      .pipe(\n        startWith(getLocation()),\n        filter(url => !!url.searchParams.get(\"h\"))\n      )\n  ])\n    .pipe(\n      map(([index, url]) => setupSearchHighlighter(index.config)(\n        url.searchParams.get(\"h\")!\n      )),\n      map(fn => {\n        const nodes = new Map<ChildNode, string>()\n\n        /* Traverse text nodes and collect matches */\n        const it = document.createNodeIterator(el, NodeFilter.SHOW_TEXT)\n        for (let node = it.nextNode(); node; node = it.nextNode()) {\n          if (node.parentElement?.offsetHeight) {\n            const original = node.textContent!\n            const replaced = fn(original)\n            if (replaced.length > original.length)\n              nodes.set(node as ChildNode, replaced)\n          }\n        }\n\n        /* Replace original nodes with matches */\n        for (const [node, text] of nodes) {\n          const { childNodes } = h(\"span\", null, text)\n          node.replaceWith(...Array.from(childNodes))\n        }\n\n        /* Return component */\n        return { ref: el, nodes }\n      })\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  animationFrameScheduler,\n  asyncScheduler,\n  auditTime,\n  combineLatest,\n  defer,\n  distinctUntilChanged,\n  endWith,\n  finalize,\n  first,\n  from,\n  fromEvent,\n  ignoreElements,\n  map,\n  mergeMap,\n  observeOn,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElement,\n  getElementOffset,\n  getElementSize,\n  getElements\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sidebar\n */\nexport interface Sidebar {\n  height: number                       /* Sidebar height */\n  locked: boolean                      /* Sidebar is locked */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch sidebar\n *\n * This function returns an observable that computes the visual parameters of\n * the sidebar which depends on the vertical viewport offset, as well as the\n * height of the main area. When the page is scrolled beyond the header, the\n * sidebar is locked and fills the remaining space.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar observable\n */\nexport function watchSidebar(\n  el: HTMLElement, { viewport$, main$ }: WatchOptions\n): Observable<Sidebar> {\n  const parent = el.closest<HTMLElement>(\".md-grid\")!\n  const adjust =\n    parent.offsetTop -\n    parent.parentElement!.offsetTop\n\n  /* Compute the sidebar's available height and if it should be locked */\n  return combineLatest([main$, viewport$])\n    .pipe(\n      map(([{ offset, height }, { offset: { y } }]) => {\n        height = height\n          + Math.min(adjust, Math.max(0, y - offset))\n          - adjust\n        return {\n          height,\n          locked: y >= offset + adjust\n        }\n      }),\n      distinctUntilChanged((a, b) => (\n        a.height === b.height &&\n        a.locked === b.locked\n      ))\n    )\n}\n\n/**\n * Mount sidebar\n *\n * This function doesn't set the height of the actual sidebar, but of its first\n * child \u2013 the `.md-sidebar__scrollwrap` element in order to mitigiate jittery\n * sidebars when the footer is scrolled into view. At some point we switched\n * from `absolute` / `fixed` positioning to `sticky` positioning, significantly\n * reducing jitter in some browsers (respectively Firefox and Safari) when\n * scrolling from the top. However, top-aligned sticky positioning means that\n * the sidebar snaps to the bottom when the end of the container is reached.\n * This is what leads to the mentioned jitter, as the sidebar's height may be\n * updated too slowly.\n *\n * This behaviour can be mitigiated by setting the height of the sidebar to `0`\n * while preserving the padding, and the height on its first element.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar component observable\n */\nexport function mountSidebar(\n  el: HTMLElement, { header$, ...options }: MountOptions\n): Observable<Component<Sidebar>> {\n  const inner = getElement(\".md-sidebar__scrollwrap\", el)\n  const { y } = getElementOffset(inner)\n  return defer(() => {\n    const push$ = new Subject<Sidebar>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    const next$ = push$\n      .pipe(\n        auditTime(0, animationFrameScheduler)\n      )\n\n    /* Update sidebar height and offset */\n    next$.pipe(withLatestFrom(header$))\n      .subscribe({\n\n        /* Handle emission */\n        next([{ height }, { height: offset }]) {\n          inner.style.height = `${height - 2 * y}px`\n          el.style.top       = `${offset}px`\n        },\n\n        /* Handle complete */\n        complete() {\n          inner.style.height = \"\"\n          el.style.top       = \"\"\n        }\n      })\n\n    /* Bring active item into view on initial load */\n    next$.pipe(first())\n      .subscribe(() => {\n        for (const item of getElements(\".md-nav__link--active[href]\", el)) {\n          if (!item.clientHeight) // skip invisible toc in left sidebar\n            continue\n          const container = item.closest<HTMLElement>(\".md-sidebar__scrollwrap\")!\n          if (typeof container !== \"undefined\") {\n            const offset = item.offsetTop - container.offsetTop\n            const { height } = getElementSize(container)\n            container.scrollTo({\n              top: offset - height / 2\n            })\n          }\n        }\n      })\n\n    /* Handle accessibility for expandable items, see https://bit.ly/3jaod9p */\n    from(getElements<HTMLLabelElement>(\"label[tabindex]\", el))\n      .pipe(\n        mergeMap(label => fromEvent(label, \"click\")\n          .pipe(\n            observeOn(asyncScheduler),\n            map(() => label),\n            takeUntil(done$)\n          )\n        )\n      )\n        .subscribe(label => {\n          const input = getElement<HTMLInputElement>(`[id=\"${label.htmlFor}\"]`)\n          const nav = getElement(`[aria-labelledby=\"${label.id}\"]`)\n          nav.setAttribute(\"aria-expanded\", `${input.checked}`)\n        })\n\n    /* Create and return component */\n    return watchSidebar(el, options)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Repo, User } from \"github-types\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map,\n  zip\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * GitHub release (partial)\n */\ninterface Release {\n  tag_name: string                     /* Tag name */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitHub repository facts\n *\n * @param user - GitHub user or organization\n * @param repo - GitHub repository\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitHub(\n  user: string, repo?: string\n): Observable<SourceFacts> {\n  if (typeof repo !== \"undefined\") {\n    const url = `https://api.github.com/repos/${user}/${repo}`\n    return zip(\n\n      /* Fetch version */\n      requestJSON<Release>(`${url}/releases/latest`)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(release => ({\n            version: release.tag_name\n          })),\n          defaultIfEmpty({})\n        ),\n\n      /* Fetch stars and forks */\n      requestJSON<Repo>(url)\n        .pipe(\n          catchError(() => EMPTY), // @todo refactor instant loading\n          map(info => ({\n            stars: info.stargazers_count,\n            forks: info.forks_count\n          })),\n          defaultIfEmpty({})\n        )\n    )\n      .pipe(\n        map(([release, info]) => ({ ...release, ...info }))\n      )\n\n  /* User or organization */\n  } else {\n    const url = `https://api.github.com/users/${user}`\n    return requestJSON<User>(url)\n      .pipe(\n        map(info => ({\n          repositories: info.public_repos\n        })),\n        defaultIfEmpty({})\n      )\n  }\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ProjectSchema } from \"gitlab\"\nimport {\n  EMPTY,\n  Observable,\n  catchError,\n  defaultIfEmpty,\n  map\n} from \"rxjs\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitLab repository facts\n *\n * @param base - GitLab base\n * @param project - GitLab project\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitLab(\n  base: string, project: string\n): Observable<SourceFacts> {\n  const url = `https://${base}/api/v4/projects/${encodeURIComponent(project)}`\n  return requestJSON<ProjectSchema>(url)\n    .pipe(\n      catchError(() => EMPTY), // @todo refactor instant loading\n      map(({ star_count, forks_count }) => ({\n        stars: star_count,\n        forks: forks_count\n      })),\n      defaultIfEmpty({})\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { EMPTY, Observable } from \"rxjs\"\n\nimport { fetchSourceFactsFromGitHub } from \"../github\"\nimport { fetchSourceFactsFromGitLab } from \"../gitlab\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository facts for repositories\n */\nexport interface RepositoryFacts {\n  stars?: number                       /* Number of stars */\n  forks?: number                       /* Number of forks */\n  version?: string                     /* Latest version */\n}\n\n/**\n * Repository facts for organizations\n */\nexport interface OrganizationFacts {\n  repositories?: number                /* Number of repositories */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Repository facts\n */\nexport type SourceFacts =\n  | RepositoryFacts\n  | OrganizationFacts\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch repository facts\n *\n * @param url - Repository URL\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFacts(\n  url: string\n): Observable<SourceFacts> {\n\n  /* Try to match GitHub repository */\n  let match = url.match(/^.+github\\.com\\/([^/]+)\\/?([^/]+)?/i)\n  if (match) {\n    const [, user, repo] = match\n    return fetchSourceFactsFromGitHub(user, repo)\n  }\n\n  /* Try to match GitLab repository */\n  match = url.match(/^.+?([^/]*gitlab[^/]+)\\/(.+?)\\/?$/i)\n  if (match) {\n    const [, base, slug] = match\n    return fetchSourceFactsFromGitLab(base, slug)\n  }\n\n  /* Fallback */\n  return EMPTY\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  EMPTY,\n  Observable,\n  Subject,\n  catchError,\n  defer,\n  filter,\n  finalize,\n  map,\n  of,\n  shareReplay,\n  tap\n} from \"rxjs\"\n\nimport { getElement } from \"~/browser\"\nimport { ConsentDefaults } from \"~/components/consent\"\nimport { renderSourceFacts } from \"~/templates\"\n\nimport {\n  Component,\n  getComponentElements\n} from \"../../_\"\nimport {\n  SourceFacts,\n  fetchSourceFacts\n} from \"../facts\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information\n */\nexport interface Source {\n  facts: SourceFacts                   /* Repository facts */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information observable\n */\nlet fetch$: Observable<Source>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch repository information\n *\n * This function tries to read the repository facts from session storage, and\n * if unsuccessful, fetches them from the underlying provider.\n *\n * @param el - Repository information element\n *\n * @returns Repository information observable\n */\nexport function watchSource(\n  el: HTMLAnchorElement\n): Observable<Source> {\n  return fetch$ ||= defer(() => {\n    const cached = __md_get<SourceFacts>(\"__source\", sessionStorage)\n    if (cached) {\n      return of(cached)\n    } else {\n\n      /* Check if consent is configured and was given */\n      const els = getComponentElements(\"consent\")\n      if (els.length) {\n        const consent = __md_get<ConsentDefaults>(\"__consent\")\n        if (!(consent && consent.github))\n          return EMPTY\n      }\n\n      /* Fetch repository facts */\n      return fetchSourceFacts(el.href)\n        .pipe(\n          tap(facts => __md_set(\"__source\", facts, sessionStorage))\n        )\n    }\n  })\n    .pipe(\n      catchError(() => EMPTY),\n      filter(facts => Object.keys(facts).length > 0),\n      map(facts => ({ facts })),\n      shareReplay(1)\n    )\n}\n\n/**\n * Mount repository information\n *\n * @param el - Repository information element\n *\n * @returns Repository information component observable\n */\nexport function mountSource(\n  el: HTMLAnchorElement\n): Observable<Component<Source>> {\n  const inner = getElement(\":scope > :last-child\", el)\n  return defer(() => {\n    const push$ = new Subject<Source>()\n    push$.subscribe(({ facts }) => {\n      inner.appendChild(renderSourceFacts(facts))\n      inner.classList.add(\"md-source__repository--active\")\n    })\n\n    /* Create and return component */\n    return watchSource(el)\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  defer,\n  distinctUntilKeyChanged,\n  finalize,\n  map,\n  of,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  watchElementSize,\n  watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Navigation tabs\n */\nexport interface Tabs {\n  hidden: boolean                      /* Navigation tabs are hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch navigation tabs\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs observable\n */\nexport function watchTabs(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Tabs> {\n  return watchElementSize(document.body)\n    .pipe(\n      switchMap(() => watchViewportAt(el, { header$, viewport$ })),\n      map(({ offset: { y } }) => {\n        return {\n          hidden: y >= 10\n        }\n      }),\n      distinctUntilKeyChanged(\"hidden\")\n    )\n}\n\n/**\n * Mount navigation tabs\n *\n * This function hides the navigation tabs when scrolling past the threshold\n * and makes them reappear in a nice CSS animation when scrolling back up.\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs component observable\n */\nexport function mountTabs(\n  el: HTMLElement, options: MountOptions\n): Observable<Component<Tabs>> {\n  return defer(() => {\n    const push$ = new Subject<Tabs>()\n    push$.subscribe({\n\n      /* Handle emission */\n      next({ hidden }) {\n        el.hidden = hidden\n      },\n\n      /* Handle complete */\n      complete() {\n        el.hidden = false\n      }\n    })\n\n    /* Create and return component */\n    return (\n      feature(\"navigation.tabs.sticky\")\n        ? of({ hidden: false })\n        : watchTabs(el, options)\n    )\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  asyncScheduler,\n  bufferCount,\n  combineLatestWith,\n  debounceTime,\n  defer,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  filter,\n  finalize,\n  ignoreElements,\n  map,\n  merge,\n  observeOn,\n  of,\n  repeat,\n  scan,\n  share,\n  skip,\n  startWith,\n  switchMap,\n  takeUntil,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { feature } from \"~/_\"\nimport {\n  Viewport,\n  getElement,\n  getElementContainer,\n  getElementSize,\n  getElements,\n  getLocation,\n  getOptionalElement,\n  watchElementSize\n} from \"~/browser\"\n\nimport {\n  Component,\n  getComponentElement\n} from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Table of contents\n */\nexport interface TableOfContents {\n  prev: HTMLAnchorElement[][]          /* Anchors (previous) */\n  next: HTMLAnchorElement[][]          /* Anchors (next) */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch table of contents\n *\n * This is effectively a scroll spy implementation which will account for the\n * fixed header and automatically re-calculate anchor offsets when the viewport\n * is resized. The returned observable will only emit if the table of contents\n * needs to be repainted.\n *\n * This implementation tracks an anchor element's entire path starting from its\n * level up to the top-most anchor element, e.g. `[h3, h2, h1]`. Although the\n * Material theme currently doesn't make use of this information, it enables\n * the styling of the entire hierarchy through customization.\n *\n * Note that the current anchor is the last item of the `prev` anchor list.\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents observable\n */\nexport function watchTableOfContents(\n  el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<TableOfContents> {\n  const table = new Map<HTMLAnchorElement, HTMLElement>()\n\n  /* Compute anchor-to-target mapping */\n  const anchors = getElements<HTMLAnchorElement>(\".md-nav__link\", el)\n  for (const anchor of anchors) {\n    const id = decodeURIComponent(anchor.hash.substring(1))\n    const target = getOptionalElement(`[id=\"${id}\"]`)\n    if (typeof target !== \"undefined\")\n      table.set(anchor, target)\n  }\n\n  /* Compute necessary adjustment for header */\n  const adjust$ = header$\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n      map(({ height }) => {\n        const main = getComponentElement(\"main\")\n        const grid = getElement(\":scope > :first-child\", main)\n        return height + 0.8 * (\n          grid.offsetTop -\n          main.offsetTop\n        )\n      }),\n      share()\n    )\n\n  /* Compute partition of previous and next anchors */\n  const partition$ = watchElementSize(document.body)\n    .pipe(\n      distinctUntilKeyChanged(\"height\"),\n\n      /* Build index to map anchor paths to vertical offsets */\n      switchMap(body => defer(() => {\n        let path: HTMLAnchorElement[] = []\n        return of([...table].reduce((index, [anchor, target]) => {\n          while (path.length) {\n            const last = table.get(path[path.length - 1])!\n            if (last.tagName >= target.tagName) {\n              path.pop()\n            } else {\n              break\n            }\n          }\n\n          /* If the current anchor is hidden, continue with its parent */\n          let offset = target.offsetTop\n          while (!offset && target.parentElement) {\n            target = target.parentElement\n            offset = target.offsetTop\n          }\n\n          /* Fix anchor offsets in tables - see https://bit.ly/3CUFOcn */\n          let parent = target.offsetParent as HTMLElement\n          for (; parent; parent = parent.offsetParent as HTMLElement)\n            offset += parent.offsetTop\n\n          /* Map reversed anchor path to vertical offset */\n          return index.set(\n            [...path = [...path, anchor]].reverse(),\n            offset\n          )\n        }, new Map<HTMLAnchorElement[], number>()))\n      })\n        .pipe(\n\n          /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */\n          map(index => new Map([...index].sort(([, a], [, b]) => a - b))),\n          combineLatestWith(adjust$),\n\n          /* Re-compute partition when viewport offset changes */\n          switchMap(([index, adjust]) => viewport$\n            .pipe(\n              scan(([prev, next], { offset: { y }, size }) => {\n                const last = y + size.height >= Math.floor(body.height)\n\n                /* Look forward */\n                while (next.length) {\n                  const [, offset] = next[0]\n                  if (offset - adjust < y || last) {\n                    prev = [...prev, next.shift()!]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Look backward */\n                while (prev.length) {\n                  const [, offset] = prev[prev.length - 1]\n                  if (offset - adjust >= y && !last) {\n                    next = [prev.pop()!, ...next]\n                  } else {\n                    break\n                  }\n                }\n\n                /* Return partition */\n                return [prev, next]\n              }, [[], [...index]]),\n              distinctUntilChanged((a, b) => (\n                a[0] === b[0] &&\n                a[1] === b[1]\n              ))\n            )\n          )\n        )\n      )\n    )\n\n  /* Compute and return anchor list migrations */\n  return partition$\n    .pipe(\n      map(([prev, next]) => ({\n        prev: prev.map(([path]) => path),\n        next: next.map(([path]) => path)\n      })),\n\n      /* Extract anchor list migrations */\n      startWith({ prev: [], next: [] }),\n      bufferCount(2, 1),\n      map(([a, b]) => {\n\n        /* Moving down */\n        if (a.prev.length < b.prev.length) {\n          return {\n            prev: b.prev.slice(Math.max(0, a.prev.length - 1), b.prev.length),\n            next: []\n          }\n\n        /* Moving up */\n        } else {\n          return {\n            prev: b.prev.slice(-1),\n            next: b.next.slice(0, b.next.length - a.next.length)\n          }\n        }\n      })\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount table of contents\n *\n * @param el - Table of contents element\n * @param options - Options\n *\n * @returns Table of contents component observable\n */\nexport function mountTableOfContents(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<TableOfContents>> {\n  return defer(() => {\n    const push$ = new Subject<TableOfContents>()\n    const done$ = push$.pipe(ignoreElements(), endWith(true))\n    push$.subscribe(({ prev, next }) => {\n\n      /* Look forward */\n      for (const [anchor] of next) {\n        anchor.classList.remove(\"md-nav__link--passed\")\n        anchor.classList.remove(\"md-nav__link--active\")\n      }\n\n      /* Look backward */\n      for (const [index, [anchor]] of prev.entries()) {\n        anchor.classList.add(\"md-nav__link--passed\")\n        anchor.classList.toggle(\n          \"md-nav__link--active\",\n          index === prev.length - 1\n        )\n      }\n    })\n\n    /* Set up following, if enabled */\n    if (feature(\"toc.follow\")) {\n\n      /* Toggle smooth scrolling only for anchor clicks */\n      const smooth$ = merge(\n        viewport$.pipe(debounceTime(1), map(() => undefined)),\n        viewport$.pipe(debounceTime(250), map(() => \"smooth\" as const))\n      )\n\n      /* Bring active anchor into view */ // @todo: refactor\n      push$\n        .pipe(\n          filter(({ prev }) => prev.length > 0),\n          combineLatestWith(main$.pipe(observeOn(asyncScheduler))),\n          withLatestFrom(smooth$)\n        )\n          .subscribe(([[{ prev }], behavior]) => {\n            const [anchor] = prev[prev.length - 1]\n            if (anchor.offsetHeight) {\n\n              /* Retrieve overflowing container and scroll */\n              const container = getElementContainer(anchor)\n              if (typeof container !== \"undefined\") {\n                const offset = anchor.offsetTop - container.offsetTop\n                const { height } = getElementSize(container)\n                container.scrollTo({\n                  top: offset - height / 2,\n                  behavior\n                })\n              }\n            }\n          })\n    }\n\n    /* Set up anchor tracking, if enabled */\n    if (feature(\"navigation.tracking\"))\n      viewport$\n        .pipe(\n          takeUntil(done$),\n          distinctUntilKeyChanged(\"offset\"),\n          debounceTime(250),\n          skip(1),\n          takeUntil(target$.pipe(skip(1))),\n          repeat({ delay: 250 }),\n          withLatestFrom(push$)\n        )\n          .subscribe(([, { prev }]) => {\n            const url = getLocation()\n\n            /* Set hash fragment to active anchor */\n            const anchor = prev[prev.length - 1]\n            if (anchor && anchor.length) {\n              const [active] = anchor\n              const { hash } = new URL(active.href)\n              if (url.hash !== hash) {\n                url.hash = hash\n                history.replaceState({}, \"\", `${url}`)\n              }\n\n            /* Reset anchor when at the top */\n            } else {\n              url.hash = \"\"\n              history.replaceState({}, \"\", `${url}`)\n            }\n          })\n\n    /* Create and return component */\n    return watchTableOfContents(el, { viewport$, header$ })\n      .pipe(\n        tap(state => push$.next(state)),\n        finalize(() => push$.complete()),\n        map(state => ({ ref: el, ...state }))\n      )\n  })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  Subject,\n  bufferCount,\n  combineLatest,\n  distinctUntilChanged,\n  distinctUntilKeyChanged,\n  endWith,\n  finalize,\n  fromEvent,\n  ignoreElements,\n  map,\n  repeat,\n  skip,\n  takeUntil,\n  tap\n} from \"rxjs\"\n\nimport { Viewport } from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Back-to-top button\n */\nexport interface BackToTop {\n  hidden: boolean                      /* Back-to-top button is hidden */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  header$: Observable<Header>          /* Header observable */\n  main$: Observable<Main>              /* Main area observable */\n  target$: Observable<HTMLElement>     /* Location target observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch back-to-top\n *\n * @param _el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top observable\n */\nexport function watchBackToTop(\n  _el: HTMLElement, { viewport$, main$, target$ }: WatchOptions\n): Observable<BackToTop> {\n\n  /* Compute direction */\n  const direction$ = viewport$\n    .pipe(\n      map(({ offset: { y } }) => y),\n      bufferCount(2, 1),\n      map(([a, b]) => a > b && b > 0),\n      distinctUntilChanged()\n    )\n\n  /* Compute whether main area is active */\n  const active$ = main$\n    .pipe(\n      map(({ active }) => active)\n    )\n\n  /* Compute threshold for hiding */\n  return combineLatest([active$, direction$])\n    .pipe(\n      map(([active, direction]) => !(active && direction)),\n      distinctUntilChanged(),\n      takeUntil(target$.pipe(skip(1))),\n      endWith(true),\n      repeat({ delay: 250 }),\n      map(hidden => ({ hidden }))\n    )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount back-to-top\n *\n * @param el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top component observable\n */\nexport function mountBackToTop(\n  el: HTMLElement, { viewport$, header$, main$, target$ }: MountOptions\n): Observable<Component<BackToTop>> {\n  const push$ = new Subject<BackToTop>()\n  const done$ = push$.pipe(ignoreElements(), endWith(true))\n  push$.subscribe({\n\n    /* Handle emission */\n    next({ hidden }) {\n      el.hidden = hidden\n      if (hidden) {\n        el.setAttribute(\"tabindex\", \"-1\")\n        el.blur()\n      } else {\n        el.removeAttribute(\"tabindex\")\n      }\n    },\n\n    /* Handle complete */\n    complete() {\n      el.style.top = \"\"\n      el.hidden = true\n      el.removeAttribute(\"tabindex\")\n    }\n  })\n\n  /* Watch header height */\n  header$\n    .pipe(\n      takeUntil(done$),\n      distinctUntilKeyChanged(\"height\")\n    )\n      .subscribe(({ height }) => {\n        el.style.top = `${height + 16}px`\n      })\n\n  /* Go back to top */\n  fromEvent(el, \"click\")\n    .subscribe(ev => {\n      ev.preventDefault()\n      window.scrollTo({ top: 0 })\n    })\n\n  /* Create and return component */\n  return watchBackToTop(el, { viewport$, main$, target$ })\n    .pipe(\n      tap(state => push$.next(state)),\n      finalize(() => push$.complete()),\n      map(state => ({ ref: el, ...state }))\n    )\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  finalize,\n  map,\n  mergeMap,\n  skip,\n  switchMap,\n  take,\n  takeUntil\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  getElements,\n  watchElementVisibility\n} from \"~/browser\"\nimport { mountInlineTooltip2 } from \"~/components/tooltip2\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n  viewport$: Observable<Viewport>      /* Viewport observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch ellipsis\n *\n * This function will fetch all elements that are shortened with ellipsis, and\n * filter those which are visible. Once they become visible, they stay in that\n * state, even though they may be hidden again. This optimization is necessary\n * to reduce pressure on the browser, with elements fading in and out of view.\n *\n * @param options - Options\n */\nexport function patchEllipsis(\n  { document$, viewport$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-ellipsis\")),\n      mergeMap(el => watchElementVisibility(el)\n        .pipe(\n          takeUntil(document$.pipe(skip(1))),\n          filter(visible => visible),\n          map(() => el),\n          take(1)\n        )\n      ),\n      filter(el => el.offsetWidth < el.scrollWidth),\n      mergeMap(el => {\n        const text = el.innerText\n        const host = el.closest(\"a\") || el\n        host.title = text\n\n        /* Mount tooltip */\n        return mountInlineTooltip2(host, { viewport$ })\n          .pipe(\n            takeUntil(document$.pipe(skip(1))),\n            finalize(() => host.removeAttribute(\"title\"))\n          )\n      })\n    )\n      .subscribe()\n\n  // @todo move this outside of here and fix memleaks\n  document$\n    .pipe(\n      switchMap(() => getElements(\".md-status\")),\n      mergeMap(el => mountInlineTooltip2(el, { viewport$ }))\n    )\n      .subscribe()\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  takeWhile,\n  tap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch indeterminate checkboxes\n *\n * This function replaces the indeterminate \"pseudo state\" with the actual\n * indeterminate state, which is used to keep navigation always expanded.\n *\n * @param options - Options\n */\nexport function patchIndeterminate(\n  { document$, tablet$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements<HTMLInputElement>(\n        \".md-toggle--indeterminate\"\n      )),\n      tap(el => {\n        el.indeterminate = true\n        el.checked = false\n      }),\n      mergeMap(el => fromEvent(el, \"change\")\n        .pipe(\n          takeWhile(() => el.classList.contains(\"md-toggle--indeterminate\")),\n          map(() => el)\n        )\n      ),\n      withLatestFrom(tablet$)\n    )\n      .subscribe(([el, tablet]) => {\n        el.classList.remove(\"md-toggle--indeterminate\")\n        if (tablet)\n          el.checked = false\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  filter,\n  fromEvent,\n  map,\n  mergeMap,\n  switchMap,\n  tap\n} from \"rxjs\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  document$: Observable<Document>      /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether the given device is an Apple device\n *\n * @returns Test result\n */\nfunction isAppleDevice(): boolean {\n  return /(iPad|iPhone|iPod)/.test(navigator.userAgent)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch all elements with `data-md-scrollfix` attributes\n *\n * This is a year-old patch which ensures that overflow scrolling works at the\n * top and bottom of containers on iOS by ensuring a `1px` scroll offset upon\n * the start of a touch event.\n *\n * @see https://bit.ly/2SCtAOO - Original source\n *\n * @param options - Options\n */\nexport function patchScrollfix(\n  { document$ }: PatchOptions\n): void {\n  document$\n    .pipe(\n      switchMap(() => getElements(\"[data-md-scrollfix]\")),\n      tap(el => el.removeAttribute(\"data-md-scrollfix\")),\n      filter(isAppleDevice),\n      mergeMap(el => fromEvent(el, \"touchstart\")\n        .pipe(\n          map(() => el)\n        )\n      )\n    )\n      .subscribe(el => {\n        const top = el.scrollTop\n\n        /* We're at the top of the container */\n        if (top === 0) {\n          el.scrollTop = 1\n\n        /* We're at the bottom of the container */\n        } else if (top + el.offsetHeight === el.scrollHeight) {\n          el.scrollTop = top - 1\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n  Observable,\n  combineLatest,\n  delay,\n  map,\n  of,\n  switchMap,\n  withLatestFrom\n} from \"rxjs\"\n\nimport {\n  Viewport,\n  watchToggle\n} from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n  viewport$: Observable<Viewport>      /* Viewport observable */\n  tablet$: Observable<boolean>         /* Media tablet observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch the document body to lock when search is open\n *\n * For mobile and tablet viewports, the search is rendered full screen, which\n * leads to scroll leaking when at the top or bottom of the search result. This\n * function locks the body when the search is in full screen mode, and restores\n * the scroll position when leaving.\n *\n * @param options - Options\n */\nexport function patchScrolllock(\n  { viewport$, tablet$ }: PatchOptions\n): void {\n  combineLatest([watchToggle(\"search\"), tablet$])\n    .pipe(\n      map(([active, tablet]) => active && !tablet),\n      switchMap(active => of(active)\n        .pipe(\n          delay(active ? 400 : 100)\n        )\n      ),\n      withLatestFrom(viewport$)\n    )\n      .subscribe(([active, { offset: { y }}]) => {\n        if (active) {\n          document.body.setAttribute(\"data-md-scrolllock\", \"\")\n          document.body.style.top = `-${y}px`\n        } else {\n          const value = -1 * parseInt(document.body.style.top, 10)\n          document.body.removeAttribute(\"data-md-scrolllock\")\n          document.body.style.top = \"\"\n          if (value)\n            window.scrollTo(0, value)\n        }\n      })\n}\n", "/*\n * Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Polyfills\n * ------------------------------------------------------------------------- */\n\n/* Polyfill `Object.entries` */\nif (!Object.entries)\n  Object.entries = function (obj: object) {\n    const data: [string, string][] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push([key, obj[key]])\n\n    /* Return entries */\n    return data\n  }\n\n/* Polyfill `Object.values` */\nif (!Object.values)\n  Object.values = function (obj: object) {\n    const data: string[] = []\n    for (const key of Object.keys(obj))\n      // @ts-expect-error - ignore property access warning\n      data.push(obj[key])\n\n    /* Return values */\n    return data\n  }\n\n/* ------------------------------------------------------------------------- */\n\n/* Polyfills for `Element` */\nif (typeof Element !== \"undefined\") {\n\n  /* Polyfill `Element.scrollTo` */\n  if (!Element.prototype.scrollTo)\n    Element.prototype.scrollTo = function (\n      x?: ScrollToOptions | number, y?: number\n    ): void {\n      if (typeof x === \"object\") {\n        this.scrollLeft = x.left!\n        this.scrollTop = x.top!\n      } else {\n        this.scrollLeft = x!\n        this.scrollTop = y!\n      }\n    }\n\n  /* Polyfill `Element.replaceWith` */\n  if (!Element.prototype.replaceWith)\n    Element.prototype.replaceWith = function (\n      ...nodes: Array<string | Node>\n    ): void {\n      const parent = this.parentNode\n      if (parent) {\n        if (nodes.length === 0)\n          parent.removeChild(this)\n\n        /* Replace children and create text nodes */\n        for (let i = nodes.length - 1; i >= 0; i--) {\n          let node = nodes[i]\n          if (typeof node === \"string\")\n            node = document.createTextNode(node)\n          else if (node.parentNode)\n            node.parentNode.removeChild(node)\n\n          /* Replace child or insert before previous sibling */\n          if (!i)\n            parent.replaceChild(node, this)\n          else\n            parent.insertBefore(this.previousSibling!, node)\n        }\n      }\n    }\n}\n"],
+  "mappings": "2rCAAA,IAAAA,GAAAC,GAAA,CAAAC,GAAAC,KAAA,EAAC,SAAUC,EAAQC,EAAS,CAC1B,OAAOH,IAAY,UAAY,OAAOC,IAAW,YAAcE,EAAQ,EACvE,OAAO,QAAW,YAAc,OAAO,IAAM,OAAOA,CAAO,EAC1DA,EAAQ,CACX,GAAEH,GAAO,UAAY,CAAE,aASrB,SAASI,EAA0BC,EAAO,CACx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,CAAC,CAAC,CACzE,CAAC,EAGKkE,GAAatE,GAChB,KACC8C,EAAU,IAAMY,EAAQ,EACxBa,GAAUtB,EAAQ,EAClBnD,EAAY,CAAC,CACf,EAGFwE,GAAW,UAAU,EAMrB,OAAO,UAAatE,GACpB,OAAO,UAAaE,GACpB,OAAO,QAAaE,GACpB,OAAO,UAAaE,GACpB,OAAO,UAAaE,GACpB,OAAO,QAAaE,GACpB,OAAO,QAAaE,GACpB,OAAO,OAAaC,GACpB,OAAO,OAAaK,GACpB,OAAO,UAAaG,GACpB,OAAO,WAAaiD",
+  "names": ["require_focus_visible", "__commonJSMin", "exports", "module", "global", "factory", "applyFocusVisiblePolyfill", "scope", "hadKeyboardEvent", "hadFocusVisibleRecently", "hadFocusVisibleRecentlyTimeout", "inputTypesAllowlist", "isValidFocusTarget", "el", "focusTriggersKeyboardModality", "type", "tagName", "addFocusVisibleClass", "removeFocusVisibleClass", "onKeyDown", "e", "onPointerDown", "onFocus", "onBlur", "onVisibilityChange", "addInitialPointerMoveListeners", "onInitialPointerMove", "removeInitialPointerMoveListeners", "event", "error", "require_clipboard", "__commonJSMin", "exports", "module", "root", "factory", "__webpack_modules__", "__unused_webpack_module", "__webpack_exports__", "__webpack_require__", "clipboard", "tiny_emitter", "tiny_emitter_default", "listen", "listen_default", "src_select", "select_default", "command", "type", "err", "ClipboardActionCut", "target", "selectedText", "actions_cut", "createFakeElement", "value", "isRTL", "fakeElement", "yPosition", "fakeCopyAction", "options", "ClipboardActionCopy", "actions_copy", "_typeof", "obj", "ClipboardActionDefault", "_options$action", "action", "container", "text", "actions_default", "clipboard_typeof", "_classCallCheck", "instance", "Constructor", "_defineProperties", "props", "i", "descriptor", "_createClass", "protoProps", "staticProps", "_inherits", "subClass", "superClass", "_setPrototypeOf", "o", "p", "_createSuper", "Derived", "hasNativeReflectConstruct", "_isNativeReflectConstruct", "Super", "_getPrototypeOf", "result", "NewTarget", "_possibleConstructorReturn", "self", "call", "_assertThisInitialized", "e", "getAttributeValue", "suffix", "element", "attribute", "Clipboard", "_Emitter", "_super", "trigger", "_this", "_this2", "selector", "actions", "support", "DOCUMENT_NODE_TYPE", "proto", "closest", "__unused_webpack_exports", "_delegate", "callback", "useCapture", "listenerFn", "listener", "delegate", "elements", "is", "listenNode", "listenNodeList", "listenSelector", "node", "nodeList", "select", "isReadOnly", "selection", "range", "E", "name", "ctx", "data", "evtArr", "len", "evts", "liveEvents", "__webpack_module_cache__", "moduleId", "getter", "definition", "key", "prop", "require_escape_html", "__commonJSMin", "exports", "module", "matchHtmlRegExp", "escapeHtml", "string", "str", "match", "escape", "html", "index", "lastIndex", "import_focus_visible", "extendStatics", "d", "b", "p", "__extends", "__", "__awaiter", "thisArg", "_arguments", "P", "generator", "adopt", "value", "resolve", "reject", "fulfilled", "step", "e", "rejected", "result", "__generator", "body", "_", "t", "f", "y", "g", "verb", "n", "v", "op", "__values", "o", "s", "m", "i", "__read", "n", "r", "ar", "e", "error", "__spreadArray", "to", "from", "pack", "i", "l", "ar", "__await", "v", "__asyncGenerator", "thisArg", "_arguments", "generator", "g", "q", "verb", "n", "a", "b", "resume", "step", "e", "settle", "r", "fulfill", "reject", "value", "f", "__asyncValues", "o", "m", "i", "__values", "verb", "n", "v", "resolve", "reject", "settle", "d", "isFunction", "value", "createErrorClass", "createImpl", "_super", "instance", "ctorFunc", "UnsubscriptionError", "createErrorClass", "_super", "errors", "err", "i", "arrRemove", "arr", "item", "index", "Subscription", "initialTeardown", "errors", "_parentage", "_parentage_1", "__values", "_parentage_1_1", "parent_1", "initialFinalizer", "isFunction", "e", "UnsubscriptionError", "_finalizers", "_finalizers_1", "_finalizers_1_1", "finalizer", "execFinalizer", "err", "__spreadArray", "__read", "teardown", "_a", "parent", "arrRemove", "empty", "EMPTY_SUBSCRIPTION", "Subscription", "isSubscription", "value", "isFunction", "execFinalizer", "finalizer", "config", "timeoutProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "reportUnhandledError", "err", "timeoutProvider", "onUnhandledError", "config", "noop", "COMPLETE_NOTIFICATION", "createNotification", "errorNotification", "error", "nextNotification", "value", "kind", "context", "errorContext", "cb", "config", "isRoot", "_a", "errorThrown", "error", "captureError", "err", "Subscriber", "_super", "__extends", "destination", "_this", "isSubscription", "EMPTY_OBSERVER", "next", "error", "complete", "SafeSubscriber", "value", "handleStoppedNotification", "nextNotification", "err", "errorNotification", "COMPLETE_NOTIFICATION", "Subscription", "_bind", "bind", "fn", "thisArg", "ConsumerObserver", "partialObserver", "value", "error", "handleUnhandledError", "err", "SafeSubscriber", "_super", "__extends", "observerOrNext", "complete", "_this", "isFunction", "context_1", "config", "Subscriber", "handleUnhandledError", "error", "config", "captureError", "reportUnhandledError", "defaultErrorHandler", "err", "handleStoppedNotification", "notification", "subscriber", "onStoppedNotification", "timeoutProvider", "EMPTY_OBSERVER", "noop", "observable", "identity", "x", "pipe", "fns", "_i", "pipeFromArray", "identity", "input", "prev", "fn", "Observable", "subscribe", "operator", "observable", "observerOrNext", "error", "complete", "_this", "subscriber", "isSubscriber", "SafeSubscriber", "errorContext", "_a", "source", "sink", "err", "next", "promiseCtor", "getPromiseCtor", "resolve", "reject", "value", "operations", "_i", "pipeFromArray", "x", "getPromiseCtor", "promiseCtor", "_a", "config", "isObserver", "value", "isFunction", "isSubscriber", "Subscriber", "isSubscription", "hasLift", "source", "isFunction", "operate", "init", "liftedSource", "err", "createOperatorSubscriber", "destination", "onNext", "onComplete", "onError", "onFinalize", "OperatorSubscriber", "_super", "__extends", "shouldUnsubscribe", "_this", "value", "err", "closed_1", "_a", "Subscriber", "animationFrameProvider", "callback", "request", "cancel", "delegate", "handle", "timestamp", "Subscription", "args", "_i", "__spreadArray", "__read", "ObjectUnsubscribedError", "createErrorClass", "_super", "Subject", "_super", "__extends", "_this", "operator", "subject", "AnonymousSubject", "ObjectUnsubscribedError", "value", "errorContext", "_b", "__values", "_c", "observer", "err", "observers", "_a", "subscriber", "hasError", "isStopped", "EMPTY_SUBSCRIPTION", "Subscription", "arrRemove", "thrownError", "observable", "Observable", "destination", "source", "AnonymousSubject", "_super", "__extends", "destination", "source", "_this", "value", "_b", "_a", "err", "subscriber", "EMPTY_SUBSCRIPTION", "Subject", "BehaviorSubject", "_super", "__extends", "_value", "_this", "subscriber", "subscription", "_a", "hasError", "thrownError", "value", "Subject", "dateTimestampProvider", "ReplaySubject", "_super", "__extends", "_bufferSize", "_windowTime", "_timestampProvider", "dateTimestampProvider", "_this", "value", "_a", "isStopped", "_buffer", "_infiniteTimeWindow", "subscriber", "subscription", "copy", "i", "adjustedBufferSize", "now", "last", "Subject", "Action", "_super", "__extends", "scheduler", "work", "state", "delay", "Subscription", "intervalProvider", "handler", "timeout", "args", "_i", "delegate", "__spreadArray", "__read", "handle", "AsyncAction", "_super", "__extends", "scheduler", "work", "_this", "state", "delay", "id", "_a", "_id", "intervalProvider", "_scheduler", "error", "_delay", "errored", "errorValue", "e", "actions", "arrRemove", "Action", "Scheduler", "schedulerActionCtor", "now", "work", "delay", "state", "dateTimestampProvider", "AsyncScheduler", "_super", "__extends", "SchedulerAction", "now", "Scheduler", "_this", "action", "actions", "error", "asyncScheduler", "AsyncScheduler", "AsyncAction", "async", "QueueAction", "_super", "__extends", "scheduler", "work", "_this", "state", "delay", "id", "AsyncAction", "QueueScheduler", "_super", "__extends", "AsyncScheduler", "queueScheduler", "QueueScheduler", "QueueAction", "AnimationFrameAction", "_super", "__extends", "scheduler", "work", "_this", "id", "delay", "animationFrameProvider", "actions", "_a", "AsyncAction", "AnimationFrameScheduler", "_super", "__extends", "action", "flushId", "actions", "error", "AsyncScheduler", "animationFrameScheduler", "AnimationFrameScheduler", "AnimationFrameAction", "EMPTY", "Observable", "subscriber", "isScheduler", "value", "isFunction", "last", "arr", "popResultSelector", "args", "isFunction", "popScheduler", "isScheduler", "popNumber", "defaultValue", "isArrayLike", "x", "isPromise", "value", "isFunction", "isInteropObservable", "input", "isFunction", "observable", "isAsyncIterable", "obj", "isFunction", "createInvalidObservableTypeError", "input", "getSymbolIterator", "iterator", "isIterable", "input", "isFunction", "iterator", "readableStreamLikeToAsyncGenerator", "readableStream", "reader", "__await", "_a", "_b", "value", "done", "isReadableStreamLike", "obj", "isFunction", "innerFrom", "input", "Observable", "isInteropObservable", "fromInteropObservable", "isArrayLike", "fromArrayLike", "isPromise", "fromPromise", "isAsyncIterable", "fromAsyncIterable", "isIterable", "fromIterable", "isReadableStreamLike", "fromReadableStreamLike", "createInvalidObservableTypeError", "obj", "subscriber", "obs", "observable", "isFunction", "array", "i", "promise", "value", "err", "reportUnhandledError", "iterable", "iterable_1", "__values", "iterable_1_1", "asyncIterable", "process", "readableStream", "readableStreamLikeToAsyncGenerator", "asyncIterable_1", "__asyncValues", "asyncIterable_1_1", "executeSchedule", "parentSubscription", "scheduler", "work", "delay", "repeat", "scheduleSubscription", "observeOn", "scheduler", "delay", "operate", "source", "subscriber", "createOperatorSubscriber", "value", "executeSchedule", "err", "subscribeOn", "scheduler", "delay", "operate", "source", "subscriber", "scheduleObservable", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "schedulePromise", "input", "scheduler", "innerFrom", "subscribeOn", "observeOn", "scheduleArray", "input", "scheduler", "Observable", "subscriber", "i", "scheduleIterable", "input", "scheduler", "Observable", "subscriber", "iterator", "executeSchedule", "value", "done", "_a", "err", "isFunction", "scheduleAsyncIterable", "input", "scheduler", "Observable", "subscriber", "executeSchedule", "iterator", "result", "scheduleReadableStreamLike", "input", "scheduler", "scheduleAsyncIterable", "readableStreamLikeToAsyncGenerator", "scheduled", "input", "scheduler", "isInteropObservable", "scheduleObservable", "isArrayLike", "scheduleArray", "isPromise", "schedulePromise", "isAsyncIterable", "scheduleAsyncIterable", "isIterable", "scheduleIterable", "isReadableStreamLike", "scheduleReadableStreamLike", "createInvalidObservableTypeError", "from", "input", "scheduler", "scheduled", "innerFrom", "of", "args", "_i", "scheduler", "popScheduler", "from", "throwError", "errorOrErrorFactory", "scheduler", "errorFactory", "isFunction", "init", "subscriber", "Observable", "EmptyError", "createErrorClass", "_super", "isValidDate", "value", "map", "project", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "isArray", "callOrApply", "fn", "args", "__spreadArray", "__read", "mapOneOrManyArgs", "map", "isArray", "getPrototypeOf", "objectProto", "getKeys", "argsArgArrayOrObject", "args", "first_1", "isPOJO", "keys", "key", "obj", "createObject", "keys", "values", "result", "key", "i", "combineLatest", "args", "_i", "scheduler", "popScheduler", "resultSelector", "popResultSelector", "_a", "argsArgArrayOrObject", "observables", "keys", "from", "result", "Observable", "combineLatestInit", "values", "createObject", "identity", "mapOneOrManyArgs", "valueTransform", "subscriber", "maybeSchedule", "length", "active", "remainingFirstValues", "i", "source", "hasFirstValue", "createOperatorSubscriber", "value", "execute", "subscription", "executeSchedule", "mergeInternals", "source", "subscriber", "project", "concurrent", "onBeforeNext", "expand", "innerSubScheduler", "additionalFinalizer", "buffer", "active", "index", "isComplete", "checkComplete", "outerNext", "value", "doInnerSub", "innerComplete", "innerFrom", "createOperatorSubscriber", "innerValue", "bufferedValue", "executeSchedule", "err", "mergeMap", "project", "resultSelector", "concurrent", "isFunction", "a", "i", "map", "b", "ii", "innerFrom", "operate", "source", "subscriber", "mergeInternals", "mergeAll", "concurrent", "mergeMap", "identity", "concatAll", "mergeAll", "concat", "args", "_i", "concatAll", "from", "popScheduler", "defer", "observableFactory", "Observable", "subscriber", "innerFrom", "nodeEventEmitterMethods", "eventTargetMethods", "jqueryMethods", "fromEvent", "target", "eventName", "options", "resultSelector", "isFunction", "mapOneOrManyArgs", "_a", "__read", "isEventTarget", "methodName", "handler", "isNodeStyleEventEmitter", "toCommonHandlerRegistry", "isJQueryStyleEventEmitter", "add", "remove", "isArrayLike", "mergeMap", "subTarget", "innerFrom", "Observable", "subscriber", "args", "_i", "fromEventPattern", "addHandler", "removeHandler", "resultSelector", "mapOneOrManyArgs", "Observable", "subscriber", "handler", "e", "_i", "retValue", "isFunction", "timer", "dueTime", "intervalOrScheduler", "scheduler", "async", "intervalDuration", "isScheduler", "Observable", "subscriber", "due", "isValidDate", "n", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "sources", "innerFrom", "mergeAll", "from", "EMPTY", "NEVER", "Observable", "noop", "isArray", "argsOrArgArray", "args", "filter", "predicate", "thisArg", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "zip", "args", "_i", "resultSelector", "popResultSelector", "sources", "argsOrArgArray", "Observable", "subscriber", "buffers", "completed", "sourceIndex", "innerFrom", "createOperatorSubscriber", "value", "buffer", "result", "__spreadArray", "__read", "i", "EMPTY", "audit", "durationSelector", "operate", "source", "subscriber", "hasValue", "lastValue", "durationSubscriber", "isComplete", "endDuration", "value", "cleanupDuration", "createOperatorSubscriber", "innerFrom", "auditTime", "duration", "scheduler", "asyncScheduler", "audit", "timer", "bufferCount", "bufferSize", "startBufferEvery", "operate", "source", "subscriber", "buffers", "count", "createOperatorSubscriber", "value", "toEmit", "buffers_1", "__values", "buffers_1_1", "buffer", "toEmit_1", "toEmit_1_1", "arrRemove", "buffers_2", "buffers_2_1", "catchError", "selector", "operate", "source", "subscriber", "innerSub", "syncUnsub", "handledResult", "createOperatorSubscriber", "err", "innerFrom", "scanInternals", "accumulator", "seed", "hasSeed", "emitOnNext", "emitBeforeComplete", "source", "subscriber", "hasState", "state", "index", "createOperatorSubscriber", "value", "i", "combineLatest", "args", "_i", "resultSelector", "popResultSelector", "pipe", "__spreadArray", "__read", "mapOneOrManyArgs", "operate", "source", "subscriber", "combineLatestInit", "argsOrArgArray", "combineLatestWith", "otherSources", "_i", "combineLatest", "__spreadArray", "__read", "debounce", "durationSelector", "operate", "source", "subscriber", "hasValue", "lastValue", "durationSubscriber", "emit", "value", "createOperatorSubscriber", "noop", "innerFrom", "debounceTime", "dueTime", "scheduler", "asyncScheduler", "operate", "source", "subscriber", "activeTask", "lastValue", "lastTime", "emit", "value", "emitWhenIdle", "targetTime", "now", "createOperatorSubscriber", "defaultIfEmpty", "defaultValue", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "take", "count", "EMPTY", "operate", "source", "subscriber", "seen", "createOperatorSubscriber", "value", "ignoreElements", "operate", "source", "subscriber", "createOperatorSubscriber", "noop", "mapTo", "value", "map", "delayWhen", "delayDurationSelector", "subscriptionDelay", "source", "concat", "take", "ignoreElements", "mergeMap", "value", "index", "innerFrom", "mapTo", "delay", "due", "scheduler", "asyncScheduler", "duration", "timer", "delayWhen", "distinctUntilChanged", "comparator", "keySelector", "identity", "defaultCompare", "operate", "source", "subscriber", "previousKey", "first", "createOperatorSubscriber", "value", "currentKey", "a", "b", "distinctUntilKeyChanged", "key", "compare", "distinctUntilChanged", "x", "y", "throwIfEmpty", "errorFactory", "defaultErrorFactory", "operate", "source", "subscriber", "hasValue", "createOperatorSubscriber", "value", "EmptyError", "endWith", "values", "_i", "source", "concat", "of", "__spreadArray", "__read", "finalize", "callback", "operate", "source", "subscriber", "first", "predicate", "defaultValue", "hasDefaultValue", "source", "filter", "v", "identity", "take", "defaultIfEmpty", "throwIfEmpty", "EmptyError", "takeLast", "count", "EMPTY", "operate", "source", "subscriber", "buffer", "createOperatorSubscriber", "value", "buffer_1", "__values", "buffer_1_1", "merge", "args", "_i", "scheduler", "popScheduler", "concurrent", "popNumber", "argsOrArgArray", "operate", "source", "subscriber", "mergeAll", "from", "__spreadArray", "__read", "mergeWith", "otherSources", "_i", "merge", "__spreadArray", "__read", "repeat", "countOrConfig", "count", "delay", "_a", "EMPTY", "operate", "source", "subscriber", "soFar", "sourceSub", "resubscribe", "notifier", "timer", "innerFrom", "notifierSubscriber_1", "createOperatorSubscriber", "subscribeToSource", "syncUnsub", "scan", "accumulator", "seed", "operate", "scanInternals", "share", "options", "_a", "connector", "Subject", "_b", "resetOnError", "_c", "resetOnComplete", "_d", "resetOnRefCountZero", "wrapperSource", "connection", "resetConnection", "subject", "refCount", "hasCompleted", "hasErrored", "cancelReset", "reset", "resetAndUnsubscribe", "conn", "operate", "source", "subscriber", "dest", "handleReset", "SafeSubscriber", "value", "err", "innerFrom", "on", "args", "_i", "onSubscriber", "__spreadArray", "__read", "shareReplay", "configOrBufferSize", "windowTime", "scheduler", "bufferSize", "refCount", "_a", "_b", "_c", "share", "ReplaySubject", "skip", "count", "filter", "_", "index", "skipUntil", "notifier", "operate", "source", "subscriber", "taking", "skipSubscriber", "createOperatorSubscriber", "noop", "innerFrom", "value", "startWith", "values", "_i", "scheduler", "popScheduler", "operate", "source", "subscriber", "concat", "switchMap", "project", "resultSelector", "operate", "source", "subscriber", "innerSubscriber", "index", "isComplete", "checkComplete", "createOperatorSubscriber", "value", "innerIndex", "outerIndex", "innerFrom", "innerValue", "takeUntil", "notifier", "operate", "source", "subscriber", "innerFrom", "createOperatorSubscriber", "noop", "takeWhile", "predicate", "inclusive", "operate", "source", "subscriber", "index", "createOperatorSubscriber", "value", "result", "tap", "observerOrNext", "error", "complete", "tapObserver", "isFunction", "operate", "source", "subscriber", "_a", "isUnsub", "createOperatorSubscriber", "value", "err", "_b", "identity", "throttle", "durationSelector", "config", "operate", "source", "subscriber", "_a", "_b", "leading", "_c", "trailing", "hasValue", "sendValue", "throttled", "isComplete", "endThrottling", "send", "cleanupThrottling", "startThrottle", "value", "innerFrom", "createOperatorSubscriber", "throttleTime", "duration", "scheduler", "config", "asyncScheduler", "duration$", "timer", "throttle", "withLatestFrom", "inputs", "_i", "project", "popResultSelector", "operate", "source", "subscriber", "len", "otherValues", "hasValue", "ready", "i", "innerFrom", "createOperatorSubscriber", "value", "identity", "noop", "values", "__spreadArray", "__read", "zip", "sources", "_i", "operate", "source", "subscriber", "__spreadArray", "__read", "zipWith", "otherInputs", "_i", "zip", "__spreadArray", "__read", "watchDocument", "document$", "ReplaySubject", "fromEvent", "getElements", "selector", "node", "getElement", "el", "getOptionalElement", "getActiveElement", "_a", "_b", "_c", "_d", "observer$", "merge", "fromEvent", "debounceTime", "startWith", "map", "getActiveElement", "shareReplay", "watchElementFocus", "el", "active", "distinctUntilChanged", "watchElementHover", "el", "timeout", "defer", "merge", "fromEvent", "map", "debounce", "active", "timer", "identity", "startWith", "appendChild", "el", "child", "node", "h", "tag", "attributes", "children", "attr", "round", "value", "digits", "watchScript", "src", "script", "h", "defer", "merge", "fromEvent", "switchMap", "throwError", "map", "finalize", "take", "entry$", "Subject", "observer$", "defer", "watchScript", "of", "map", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "getElementSize", "el", "watchElementSize", "target", "tap", "filter", "startWith", "getElementContentSize", "el", "getElementContainer", "parent", "getElementContainers", "containers", "getElementOffset", "el", "getElementOffsetAbsolute", "rect", "watchElementOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "getElementContentOffset", "el", "watchElementContentOffset", "merge", "fromEvent", "auditTime", "animationFrameScheduler", "map", "startWith", "entry$", "Subject", "observer$", "defer", "of", "entries", "entry", "switchMap", "observer", "merge", "NEVER", "finalize", "shareReplay", "watchElementVisibility", "el", "tap", "filter", "target", "map", "isIntersecting", "watchElementBoundary", "threshold", "watchElementContentOffset", "y", "visible", "getElementSize", "content", "getElementContentSize", "distinctUntilChanged", "toggles", "getElement", "getToggle", "name", "setToggle", "value", "watchToggle", "el", "fromEvent", "map", "startWith", "isSusceptibleToKeyboard", "el", "type", "watchComposition", "merge", "fromEvent", "map", "startWith", "watchKeyboard", "keyboard$", "filter", "ev", "getToggle", "mode", "active", "getActiveElement", "share", "switchMap", "EMPTY", "getLocation", "setLocation", "url", "navigate", "feature", "el", "h", "watchLocation", "Subject", "getLocationHash", "setLocationHash", "hash", "el", "h", "ev", "watchLocationHash", "location$", "merge", "fromEvent", "map", "startWith", "filter", "shareReplay", "watchLocationTarget", "id", "getOptionalElement", "watchMedia", "query", "media", "fromEventPattern", "next", "startWith", "watchPrint", "merge", "fromEvent", "map", "at", "query$", "factory", "switchMap", "active", "EMPTY", "request", "url", "options", "Observable", "observer", "req", "event", "_a", "length", "requestJSON", "switchMap", "res", "map", "body", "shareReplay", "requestHTML", "dom", "requestXML", "getViewportOffset", "watchViewportOffset", "merge", "fromEvent", "map", "startWith", "getViewportSize", "watchViewportSize", "fromEvent", "map", "startWith", "watchViewport", "combineLatest", "watchViewportOffset", "watchViewportSize", "map", "offset", "size", "shareReplay", "watchViewportAt", "el", "viewport$", "header$", "size$", "distinctUntilKeyChanged", "offset$", "combineLatest", "map", "getElementOffset", "height", "offset", "size", "x", "y", "recv", "worker", "fromEvent", "ev", "send", "send$", "Subject", "data", "watchWorker", "url", "recv$", "worker$", "done$", "ignoreElements", "endWith", "mergeWith", "takeUntil", "share", "script", "getElement", "config", "getLocation", "configuration", "feature", "flag", "translation", "key", "value", "getComponentElement", "type", "node", "getElement", "getComponentElements", "getElements", "watchAnnounce", "el", "button", "getElement", "fromEvent", "map", "content", "mountAnnounce", "feature", "EMPTY", "defer", "push$", "Subject", "hash", "tap", "state", "finalize", "__spreadValues", "watchConsent", "el", "target$", "map", "target", "mountConsent", "options", "internal$", "Subject", "hidden", "tap", "state", "finalize", "__spreadValues", "renderTooltip", "id", "style", "h", "renderInlineTooltip2", "children", "renderAnnotation", "id", "prefix", "anchor", "h", "renderTooltip", "renderClipboardButton", "id", "h", "translation", "renderSearchDocument", "document", "flag", "parent", "teaser", "missing", "key", "list", "h", "config", "configuration", "url", "feature", "match", "highlight", "value", "tags", "tag", "type", "translation", "renderSearchResultItem", "result", "threshold", "docs", "doc", "article", "index", "best", "more", "children", "section", "renderSourceFacts", "facts", "h", "key", "value", "round", "renderTabbedControl", "type", "classes", "h", "renderTable", "table", "h", "renderVersion", "version", "config", "configuration", "url", "h", "renderVersionSelector", "versions", "active", "_a", "translation", "sequence", "watchTooltip2", "el", "active$", "combineLatest", "watchElementFocus", "watchElementHover", "map", "focus", "hover", "distinctUntilChanged", "offset$", "defer", "getElementContainers", "mergeMap", "watchElementContentOffset", "throttleTime", "getElementOffsetAbsolute", "first", "active", "switchMap", "offset", "share", "mountTooltip2", "dependencies", "content$", "viewport$", "id", "push$", "Subject", "show$", "BehaviorSubject", "ignoreElements", "endWith", "node$", "debounce", "timer", "queueScheduler", "EMPTY", "tap", "node", "startWith", "states", "origin$", "filter", "withLatestFrom", "_", "size", "host", "x", "height", "getElementSize", "origin", "getElement", "observeOn", "animationFrameScheduler", "state", "finalize", "__spreadValues", "mountInlineTooltip2", "container", "Observable", "observer", "title", "renderInlineTooltip2", "watchAnnotation", "el", "container", "offset$", "defer", "combineLatest", "watchElementOffset", "watchElementContentOffset", "map", "x", "y", "scroll", "width", "height", "getElementSize", "watchElementFocus", "switchMap", "active", "offset", "take", "mountAnnotation", "target$", "tooltip", "index", "push$", "Subject", "done$", "ignoreElements", "endWith", "watchElementVisibility", "takeUntil", "visible", "merge", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "fromEvent", "ev", "withLatestFrom", "_a", "parent", "getActiveElement", "target", "delay", "tap", "state", "finalize", "__spreadValues", "findHosts", "container", "getElements", "findMarkers", "markers", "el", "nodes", "it", "node", "text", "match", "id", "force", "marker", "swap", "source", "target", "mountAnnotationList", "target$", "print$", "parent", "prefix", "annotations", "getOptionalElement", "renderAnnotation", "EMPTY", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "pairs", "annotation", "getElement", "takeUntil", "active", "inner", "child", "merge", "mountAnnotation", "finalize", "share", "findList", "el", "sibling", "mountAnnotationBlock", "options", "defer", "list", "mountAnnotationList", "EMPTY", "import_clipboard", "sequence", "findCandidateList", "el", "sibling", "watchCodeBlock", "watchElementSize", "map", "width", "getElementContentSize", "distinctUntilKeyChanged", "mountCodeBlock", "options", "hover", "factory$", "defer", "push$", "Subject", "done$", "takeLast", "scrollable", "content$", "ClipboardJS", "feature", "parent", "button", "renderClipboardButton", "mountInlineTooltip2", "container", "list", "annotations$", "mountAnnotationList", "takeUntil", "height", "distinctUntilChanged", "switchMap", "active", "EMPTY", "getElements", "tap", "state", "finalize", "__spreadValues", "mergeWith", "watchElementVisibility", "filter", "visible", "take", "watchDetails", "el", "target$", "print$", "open", "merge", "map", "target", "filter", "details", "active", "tap", "mountDetails", "options", "defer", "push$", "Subject", "action", "reveal", "state", "finalize", "__spreadValues", "mermaid_default", "mermaid$", "sequence", "fetchScripts", "watchScript", "of", "mountMermaid", "el", "tap", "mermaid_default", "map", "shareReplay", "__async", "id", "host", "h", "text", "svg", "fn", "shadow", "sentinel", "h", "mountDataTable", "el", "renderTable", "of", "watchContentTabs", "inputs", "initial", "input", "merge", "fromEvent", "map", "getElement", "startWith", "active", "mountContentTabs", "el", "viewport$", "target$", "container", "getElements", "prev", "renderTabbedControl", "next", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatest", "watchElementSize", "takeUntil", "auditTime", "animationFrameScheduler", "size", "offset", "getElementOffset", "width", "getElementSize", "content", "getElementContentOffset", "watchElementContentOffset", "getElementContentSize", "direction", "filter", "label", "h", "ev", "tap", "feature", "skip", "withLatestFrom", "tab", "y", "set", "tabs", "media", "watchElementVisibility", "switchMap", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "mountContent", "el", "viewport$", "target$", "print$", "merge", "getElements", "child", "mountAnnotationBlock", "mountCodeBlock", "mountMermaid", "mountDataTable", "mountDetails", "mountContentTabs", "feature", "mountInlineTooltip2", "watchDialog", "_el", "alert$", "switchMap", "message", "merge", "of", "delay", "map", "active", "mountDialog", "el", "options", "inner", "getElement", "defer", "push$", "Subject", "tap", "state", "finalize", "__spreadValues", "sequence", "watchTooltip", "el", "host", "width", "getElementSize", "container", "getElementContainer", "scroll$", "watchElementContentOffset", "of", "active$", "merge", "watchElementFocus", "watchElementHover", "distinctUntilChanged", "combineLatest", "map", "active", "scroll", "x", "y", "getElementOffset", "size", "table", "mountTooltip", "title", "EMPTY", "id", "tooltip", "renderTooltip", "typeset", "getElement", "defer", "push$", "Subject", "offset", "filter", "debounceTime", "auditTime", "animationFrameScheduler", "throttleTime", "origin", "tap", "state", "finalize", "__spreadValues", "subscribeOn", "asyncScheduler", "isHidden", "viewport$", "feature", "of", "direction$", "map", "y", "bufferCount", "a", "b", "distinctUntilKeyChanged", "hidden$", "combineLatest", "filter", "offset", "direction", "distinctUntilChanged", "search$", "watchToggle", "search", "switchMap", "active", "startWith", "watchHeader", "el", "options", "defer", "watchElementSize", "height", "hidden", "shareReplay", "mountHeader", "header$", "main$", "push$", "Subject", "done$", "ignoreElements", "endWith", "combineLatestWith", "tooltips", "from", "getElements", "mergeMap", "child", "mountTooltip", "takeUntil", "state", "__spreadValues", "mergeWith", "watchHeaderTitle", "el", "viewport$", "header$", "watchViewportAt", "map", "y", "height", "getElementSize", "distinctUntilKeyChanged", "mountHeaderTitle", "options", "defer", "push$", "Subject", "active", "heading", "getOptionalElement", "EMPTY", "tap", "state", "finalize", "__spreadValues", "watchMain", "el", "viewport$", "header$", "adjust$", "map", "height", "distinctUntilChanged", "border$", "switchMap", "watchElementSize", "distinctUntilKeyChanged", "combineLatest", "header", "top", "bottom", "y", "a", "b", "watchPalette", "inputs", "current", "input", "index", "of", "mergeMap", "fromEvent", "map", "startWith", "shareReplay", "mountPalette", "el", "getElements", "meta", "h", "scheme", "media$", "watchMedia", "defer", "push$", "Subject", "palette", "media", "key", "value", "label", "filter", "ev", "withLatestFrom", "_", "header", "getComponentElement", "style", "color", "observeOn", "asyncScheduler", "takeUntil", "skip", "repeat", "tap", "state", "finalize", "__spreadValues", "mountProgress", "el", "progress$", "defer", "push$", "Subject", "value", "tap", "finalize", "map", "import_clipboard", "extract", "el", "copy", "text", "setupClipboardJS", "alert$", "ClipboardJS", "Observable", "subscriber", "getElement", "ev", "tap", "map", "translation", "resolve", "url", "base", "extract", "document", "sitemap", "el", "getElements", "getElement", "links", "link", "href", "fetchSitemap", "requestXML", "map", "catchError", "of", "handle", "ev", "sitemap", "EMPTY", "el", "url", "of", "head", "document", "tags", "getElements", "resolve", "key", "value", "inject", "next", "selector", "feature", "source", "getOptionalElement", "target", "html", "name", "container", "getComponentElement", "concat", "switchMap", "script", "Observable", "observer", "ignoreElements", "endWith", "setupInstantNavigation", "location$", "viewport$", "progress$", "config", "configuration", "sitemap$", "fetchSitemap", "instant$", "fromEvent", "combineLatestWith", "share", "history$", "map", "getLocation", "withLatestFrom", "offset", "merge", "document$", "distinctUntilKeyChanged", "requestHTML", "catchError", "setLocation", "_", "distinctUntilChanged", "a", "b", "tap", "_a", "_b", "setLocationHash", "debounceTime", "import_escape_html", "setupSearchHighlighter", "config", "regex", "term", "separator", "highlight", "_", "data", "query", "match", "value", "escapeHTML", "isSearchReadyMessage", "message", "isSearchResultMessage", "setupSearchWorker", "url", "index$", "worker$", "watchWorker", "merge", "of", "watchToggle", "first", "active", "switchMap", "config", "docs", "feature", "setupVersionSelector", "document$", "config", "configuration", "versions$", "requestJSON", "catchError", "EMPTY", "current$", "map", "versions", "current", "version", "aliases", "switchMap", "urls", "fromEvent", "filter", "ev", "withLatestFrom", "el", "url", "of", "fetchSitemap", "sitemap", "path", "getLocation", "setLocation", "combineLatest", "getElement", "renderVersionSelector", "_a", "outdated", "ignored", "main", "ignore", "warning", "getComponentElements", "watchSearchQuery", "el", "worker$", "searchParams", "getLocation", "setToggle", "watchToggle", "first", "active", "url", "focus$", "watchElementFocus", "value$", "merge", "isSearchReadyMessage", "fromEvent", "map", "distinctUntilChanged", "combineLatest", "value", "focus", "shareReplay", "mountSearchQuery", "push$", "Subject", "done$", "ignoreElements", "endWith", "_", "query", "distinctUntilKeyChanged", "takeUntil", "label", "getElement", "tap", "state", "finalize", "__spreadValues", "mountSearchResult", "el", "worker$", "query$", "push$", "Subject", "boundary$", "watchElementBoundary", "filter", "container", "meta", "getElement", "list", "watchToggle", "active", "withLatestFrom", "skipUntil", "first", "isSearchReadyMessage", "items", "value", "translation", "count", "round", "render$", "tap", "switchMap", "merge", "of", "bufferCount", "zipWith", "chunk", "map", "renderSearchResultItem", "share", "item", "mergeMap", "details", "getOptionalElement", "EMPTY", "fromEvent", "takeUntil", "isSearchResultMessage", "data", "state", "finalize", "__spreadValues", "watchSearchShare", "_el", "query$", "map", "value", "url", "getLocation", "mountSearchShare", "el", "options", "push$", "Subject", "done$", "ignoreElements", "endWith", "fromEvent", "takeUntil", "ev", "tap", "state", "finalize", "__spreadValues", "mountSearchSuggest", "el", "worker$", "keyboard$", "push$", "Subject", "query", "getComponentElement", "query$", "merge", "fromEvent", "observeOn", "asyncScheduler", "map", "distinctUntilChanged", "combineLatestWith", "suggest", "value", "words", "last", "filter", "mode", "key", "isSearchResultMessage", "data", "tap", "state", "finalize", "mountSearch", "el", "index$", "keyboard$", "config", "configuration", "worker$", "setupSearchWorker", "query", "getComponentElement", "result", "fromEvent", "filter", "target", "setToggle", "mode", "key", "active", "getActiveElement", "anchors", "anchor", "getElements", "article", "best", "a", "b", "els", "i", "query$", "mountSearchQuery", "merge", "mountSearchResult", "mergeWith", "getComponentElements", "child", "mountSearchShare", "mountSearchSuggest", "err", "NEVER", "mountSearchHiglight", "el", "index$", "location$", "combineLatest", "startWith", "getLocation", "filter", "url", "map", "index", "setupSearchHighlighter", "fn", "_a", "nodes", "it", "node", "original", "replaced", "text", "childNodes", "h", "watchSidebar", "el", "viewport$", "main$", "parent", "adjust", "combineLatest", "map", "offset", "height", "y", "distinctUntilChanged", "a", "b", "mountSidebar", "_a", "_b", "header$", "options", "__objRest", "inner", "getElement", "getElementOffset", "defer", "push$", "Subject", "done$", "ignoreElements", "endWith", "next$", "auditTime", "animationFrameScheduler", "withLatestFrom", "first", "item", "getElements", "container", "getElementSize", "from", "mergeMap", "label", "fromEvent", "observeOn", "asyncScheduler", "takeUntil", "input", "tap", "state", "finalize", "__spreadValues", "fetchSourceFactsFromGitHub", "user", "repo", "url", "zip", "requestJSON", "catchError", "EMPTY", "map", "release", "defaultIfEmpty", "info", "__spreadValues", "fetchSourceFactsFromGitLab", "base", "project", "url", "requestJSON", "catchError", "EMPTY", "map", "star_count", "forks_count", "defaultIfEmpty", "fetchSourceFacts", "url", "match", "user", "repo", "fetchSourceFactsFromGitHub", "base", "slug", "fetchSourceFactsFromGitLab", "EMPTY", "fetch$", "watchSource", "el", "defer", "cached", "of", "getComponentElements", "consent", "EMPTY", "fetchSourceFacts", "tap", "facts", "catchError", "filter", "map", "shareReplay", "mountSource", "inner", "getElement", "push$", "Subject", "renderSourceFacts", "state", "finalize", "__spreadValues", "watchTabs", "el", "viewport$", "header$", "watchElementSize", "switchMap", "watchViewportAt", "map", "y", "distinctUntilKeyChanged", "mountTabs", "options", "defer", "push$", "Subject", "hidden", "feature", "of", "tap", "state", "finalize", "__spreadValues", "watchTableOfContents", "el", "viewport$", "header$", "table", "anchors", "getElements", "anchor", "id", "target", "getOptionalElement", "adjust$", "distinctUntilKeyChanged", "map", "height", "main", "getComponentElement", "grid", "getElement", "share", "watchElementSize", "switchMap", "body", "defer", "path", "of", "index", "offset", "parent", "a", "b", "combineLatestWith", "adjust", "scan", "prev", "next", "y", "size", "last", "distinctUntilChanged", "startWith", "bufferCount", "mountTableOfContents", "main$", "target$", "push$", "Subject", "done$", "ignoreElements", "endWith", "feature", "smooth$", "merge", "debounceTime", "filter", "observeOn", "asyncScheduler", "withLatestFrom", "behavior", "container", "getElementContainer", "getElementSize", "takeUntil", "skip", "repeat", "url", "getLocation", "active", "hash", "tap", "state", "finalize", "__spreadValues", "watchBackToTop", "_el", "viewport$", "main$", "target$", "direction$", "map", "y", "bufferCount", "b", "distinctUntilChanged", "active$", "active", "combineLatest", "direction", "takeUntil", "skip", "endWith", "repeat", "hidden", "mountBackToTop", "el", "header$", "push$", "Subject", "done$", "ignoreElements", "distinctUntilKeyChanged", "height", "fromEvent", "ev", "tap", "state", "finalize", "__spreadValues", "patchEllipsis", "document$", "viewport$", "switchMap", "getElements", "mergeMap", "el", "watchElementVisibility", "takeUntil", "skip", "filter", "visible", "map", "take", "text", "host", "mountInlineTooltip2", "finalize", "patchIndeterminate", "document$", "tablet$", "switchMap", "getElements", "tap", "el", "mergeMap", "fromEvent", "takeWhile", "map", "withLatestFrom", "tablet", "isAppleDevice", "patchScrollfix", "document$", "switchMap", "getElements", "tap", "el", "filter", "mergeMap", "fromEvent", "map", "top", "patchScrolllock", "viewport$", "tablet$", "combineLatest", "watchToggle", "map", "active", "tablet", "switchMap", "of", "delay", "withLatestFrom", "y", "value", "obj", "data", "key", "x", "y", "nodes", "parent", "i", "node", "fetchSearchIndex", "watchScript", "config", "map", "shareReplay", "requestJSON", "document$", "watchDocument", "location$", "watchLocation", "target$", "watchLocationTarget", "keyboard$", "watchKeyboard", "viewport$", "watchViewport", "tablet$", "watchMedia", "screen$", "print$", "watchPrint", "configuration", "index$", "NEVER", "alert$", "Subject", "setupClipboardJS", "progress$", "feature", "setupInstantNavigation", "_a", "setupVersionSelector", "merge", "delay", "setToggle", "filter", "mode", "key", "prev", "getOptionalElement", "setLocation", "next", "active", "getActiveElement", "patchEllipsis", "patchIndeterminate", "patchScrollfix", "patchScrolllock", "header$", "watchHeader", "getComponentElement", "main$", "switchMap", "el", "watchMain", "control$", "getComponentElements", "mountConsent", "mountDialog", "mountHeader", "mountPalette", "mountProgress", "mountSearch", "mountSource", "content$", "defer", "mountAnnounce", "mountContent", "mountSearchHiglight", "EMPTY", "mountHeaderTitle", "at", "mountSidebar", "mountTabs", "mountTableOfContents", "mountBackToTop", "component$", "mergeWith"]
+}
diff --git a/content/references/java-chassis/zh_CN/assets/stylesheets/main.66ac8b77.min.css b/content/references/java-chassis/zh_CN/assets/stylesheets/main.66ac8b77.min.css
new file mode 100644
index 0000000..da13c22
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/assets/stylesheets/main.66ac8b77.min.css
@@ -0,0 +1 @@
+@charset "UTF-8";html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box}*,:after,:before{box-sizing:inherit}@media (prefers-reduced-motion){*,:after,:before{transition:none!important}}body{margin:0}a,button,input,label{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}hr{border:0;box-sizing:initial;display:block;height:.05rem;overflow:visible;padding:0}small{font-size:80%}sub,sup{line-height:1em}img{border-style:none}table{border-collapse:initial;border-spacing:0}td,th{font-weight:400;vertical-align:top}button{background:#0000;border:0;font-family:inherit;font-size:inherit;margin:0;padding:0}input{border:0;outline:none}:root{--md-primary-fg-color:#4051b5;--md-primary-fg-color--light:#5d6cc0;--md-primary-fg-color--dark:#303fa1;--md-primary-bg-color:#fff;--md-primary-bg-color--light:#ffffffb3;--md-accent-fg-color:#526cfe;--md-accent-fg-color--transparent:#526cfe1a;--md-accent-bg-color:#fff;--md-accent-bg-color--light:#ffffffb3}[data-md-color-scheme=default]{color-scheme:light}[data-md-color-scheme=default] img[src$="#gh-dark-mode-only"],[data-md-color-scheme=default] img[src$="#only-dark"]{display:none}:root,[data-md-color-scheme=default]{--md-hue:225deg;--md-default-fg-color:#000000de;--md-default-fg-color--light:#0000008a;--md-default-fg-color--lighter:#00000052;--md-default-fg-color--lightest:#00000012;--md-default-bg-color:#fff;--md-default-bg-color--light:#ffffffb3;--md-default-bg-color--lighter:#ffffff4d;--md-default-bg-color--lightest:#ffffff1f;--md-code-fg-color:#36464e;--md-code-bg-color:#f5f5f5;--md-code-hl-color:#4287ff;--md-code-hl-color--light:#4287ff1a;--md-code-hl-number-color:#d52a2a;--md-code-hl-special-color:#db1457;--md-code-hl-function-color:#a846b9;--md-code-hl-constant-color:#6e59d9;--md-code-hl-keyword-color:#3f6ec6;--md-code-hl-string-color:#1c7d4d;--md-code-hl-name-color:var(--md-code-fg-color);--md-code-hl-operator-color:var(--md-default-fg-color--light);--md-code-hl-punctuation-color:var(--md-default-fg-color--light);--md-code-hl-comment-color:var(--md-default-fg-color--light);--md-code-hl-generic-color:var(--md-default-fg-color--light);--md-code-hl-variable-color:var(--md-default-fg-color--light);--md-typeset-color:var(--md-default-fg-color);--md-typeset-a-color:var(--md-primary-fg-color);--md-typeset-del-color:#f5503d26;--md-typeset-ins-color:#0bd57026;--md-typeset-kbd-color:#fafafa;--md-typeset-kbd-accent-color:#fff;--md-typeset-kbd-border-color:#b8b8b8;--md-typeset-mark-color:#ffff0080;--md-typeset-table-color:#0000001f;--md-typeset-table-color--light:rgba(0,0,0,.035);--md-admonition-fg-color:var(--md-default-fg-color);--md-admonition-bg-color:var(--md-default-bg-color);--md-warning-fg-color:#000000de;--md-warning-bg-color:#ff9;--md-footer-fg-color:#fff;--md-footer-fg-color--light:#ffffffb3;--md-footer-fg-color--lighter:#ffffff73;--md-footer-bg-color:#000000de;--md-footer-bg-color--dark:#00000052;--md-shadow-z1:0 0.2rem 0.5rem #0000000d,0 0 0.05rem #0000001a;--md-shadow-z2:0 0.2rem 0.5rem #0000001a,0 0 0.05rem #00000040;--md-shadow-z3:0 0.2rem 0.5rem #0003,0 0 0.05rem #00000059}.md-icon svg{fill:currentcolor;display:block;height:1.2rem;width:1.2rem}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--md-text-font-family:var(--md-text-font,_),-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;--md-code-font-family:var(--md-code-font,_),SFMono-Regular,Consolas,Menlo,monospace}aside,body,input{font-feature-settings:"kern","liga";color:var(--md-typeset-color);font-family:var(--md-text-font-family)}code,kbd,pre{font-feature-settings:"kern";font-family:var(--md-code-font-family)}:root{--md-typeset-table-sort-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m18 21-4-4h3V7h-3l4-4 4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/></svg>');--md-typeset-table-sort-icon--asc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 17h3l-4 4-4-4h3V3h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>');--md-typeset-table-sort-icon--desc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7h3l-4-4-4 4h3v14h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>')}.md-typeset{-webkit-print-color-adjust:exact;color-adjust:exact;font-size:.8rem;line-height:1.6}@media print{.md-typeset{font-size:.68rem}}.md-typeset blockquote,.md-typeset dl,.md-typeset figure,.md-typeset ol,.md-typeset pre,.md-typeset ul{margin-bottom:1em;margin-top:1em}.md-typeset h1{color:var(--md-default-fg-color--light);font-size:2em;line-height:1.3;margin:0 0 1.25em}.md-typeset h1,.md-typeset h2{font-weight:300;letter-spacing:-.01em}.md-typeset h2{font-size:1.5625em;line-height:1.4;margin:1.6em 0 .64em}.md-typeset h3{font-size:1.25em;font-weight:400;letter-spacing:-.01em;line-height:1.5;margin:1.6em 0 .8em}.md-typeset h2+h3{margin-top:.8em}.md-typeset h4{font-weight:700;letter-spacing:-.01em;margin:1em 0}.md-typeset h5,.md-typeset h6{color:var(--md-default-fg-color--light);font-size:.8em;font-weight:700;letter-spacing:-.01em;margin:1.25em 0}.md-typeset h5{text-transform:uppercase}.md-typeset hr{border-bottom:.05rem solid var(--md-default-fg-color--lightest);display:flow-root;margin:1.5em 0}.md-typeset a{color:var(--md-typeset-a-color);word-break:break-word}.md-typeset a,.md-typeset a:before{transition:color 125ms}.md-typeset a:focus,.md-typeset a:hover{color:var(--md-accent-fg-color)}.md-typeset a:focus code,.md-typeset a:hover code{background-color:var(--md-accent-fg-color--transparent)}.md-typeset a code{color:currentcolor;transition:background-color 125ms}.md-typeset a.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset code,.md-typeset kbd,.md-typeset pre{color:var(--md-code-fg-color);direction:ltr;font-variant-ligatures:none}@media print{.md-typeset code,.md-typeset kbd,.md-typeset pre{white-space:pre-wrap}}.md-typeset code{background-color:var(--md-code-bg-color);border-radius:.1rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;font-size:.85em;padding:0 .2941176471em;word-break:break-word}.md-typeset code:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-typeset pre{display:flow-root;line-height:1.4;position:relative}.md-typeset pre>code{-webkit-box-decoration-break:slice;box-decoration-break:slice;box-shadow:none;display:block;margin:0;outline-color:var(--md-accent-fg-color);overflow:auto;padding:.7720588235em 1.1764705882em;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin;touch-action:auto;word-break:normal}.md-typeset pre>code:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-typeset pre>code::-webkit-scrollbar{height:.2rem;width:.2rem}.md-typeset pre>code::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-typeset pre>code::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}.md-typeset kbd{background-color:var(--md-typeset-kbd-color);border-radius:.1rem;box-shadow:0 .1rem 0 .05rem var(--md-typeset-kbd-border-color),0 .1rem 0 var(--md-typeset-kbd-border-color),0 -.1rem .2rem var(--md-typeset-kbd-accent-color) inset;color:var(--md-default-fg-color);display:inline-block;font-size:.75em;padding:0 .6666666667em;vertical-align:text-top;word-break:break-word}.md-typeset mark{background-color:var(--md-typeset-mark-color);-webkit-box-decoration-break:clone;box-decoration-break:clone;color:inherit;word-break:break-word}.md-typeset abbr{border-bottom:.05rem dotted var(--md-default-fg-color--light);cursor:help;text-decoration:none}.md-typeset small{opacity:.75}[dir=ltr] .md-typeset sub,[dir=ltr] .md-typeset sup{margin-left:.078125em}[dir=rtl] .md-typeset sub,[dir=rtl] .md-typeset sup{margin-right:.078125em}[dir=ltr] .md-typeset blockquote{padding-left:.6rem}[dir=rtl] .md-typeset blockquote{padding-right:.6rem}[dir=ltr] .md-typeset blockquote{border-left:.2rem solid var(--md-default-fg-color--lighter)}[dir=rtl] .md-typeset blockquote{border-right:.2rem solid var(--md-default-fg-color--lighter)}.md-typeset blockquote{color:var(--md-default-fg-color--light);margin-left:0;margin-right:0}.md-typeset ul{list-style-type:disc}[dir=ltr] .md-typeset ol,[dir=ltr] .md-typeset ul{margin-left:.625em}[dir=rtl] .md-typeset ol,[dir=rtl] .md-typeset ul{margin-right:.625em}.md-typeset ol,.md-typeset ul{padding:0}.md-typeset ol:not([hidden]),.md-typeset ul:not([hidden]){display:flow-root}.md-typeset ol ol,.md-typeset ul ol{list-style-type:lower-alpha}.md-typeset ol ol ol,.md-typeset ul ol ol{list-style-type:lower-roman}[dir=ltr] .md-typeset ol li,[dir=ltr] .md-typeset ul li{margin-left:1.25em}[dir=rtl] .md-typeset ol li,[dir=rtl] .md-typeset ul li{margin-right:1.25em}.md-typeset ol li,.md-typeset ul li{margin-bottom:.5em}.md-typeset ol li blockquote,.md-typeset ol li p,.md-typeset ul li blockquote,.md-typeset ul li p{margin:.5em 0}.md-typeset ol li:last-child,.md-typeset ul li:last-child{margin-bottom:0}[dir=ltr] .md-typeset ol li ol,[dir=ltr] .md-typeset ol li ul,[dir=ltr] .md-typeset ul li ol,[dir=ltr] .md-typeset ul li ul{margin-left:.625em}[dir=rtl] .md-typeset ol li ol,[dir=rtl] .md-typeset ol li ul,[dir=rtl] .md-typeset ul li ol,[dir=rtl] .md-typeset ul li ul{margin-right:.625em}.md-typeset ol li ol,.md-typeset ol li ul,.md-typeset ul li ol,.md-typeset ul li ul{margin-bottom:.5em;margin-top:.5em}[dir=ltr] .md-typeset dd{margin-left:1.875em}[dir=rtl] .md-typeset dd{margin-right:1.875em}.md-typeset dd{margin-bottom:1.5em;margin-top:1em}.md-typeset img,.md-typeset svg,.md-typeset video{height:auto;max-width:100%}.md-typeset img[align=left]{margin:1em 1em 1em 0}.md-typeset img[align=right]{margin:1em 0 1em 1em}.md-typeset img[align]:only-child{margin-top:0}.md-typeset figure{display:flow-root;margin:1em auto;max-width:100%;text-align:center;width:-moz-fit-content;width:fit-content}.md-typeset figure img{display:block;margin:0 auto}.md-typeset figcaption{font-style:italic;margin:1em auto;max-width:24rem}.md-typeset iframe{max-width:100%}.md-typeset table:not([class]){background-color:var(--md-default-bg-color);border:.05rem solid var(--md-typeset-table-color);border-radius:.1rem;display:inline-block;font-size:.64rem;max-width:100%;overflow:auto;touch-action:auto}@media print{.md-typeset table:not([class]){display:table}}.md-typeset table:not([class])+*{margin-top:1.5em}.md-typeset table:not([class]) td>:first-child,.md-typeset table:not([class]) th>:first-child{margin-top:0}.md-typeset table:not([class]) td>:last-child,.md-typeset table:not([class]) th>:last-child{margin-bottom:0}.md-typeset table:not([class]) td:not([align]),.md-typeset table:not([class]) th:not([align]){text-align:left}[dir=rtl] .md-typeset table:not([class]) td:not([align]),[dir=rtl] .md-typeset table:not([class]) th:not([align]){text-align:right}.md-typeset table:not([class]) th{font-weight:700;min-width:5rem;padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) td{border-top:.05rem solid var(--md-typeset-table-color);padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) tbody tr{transition:background-color 125ms}.md-typeset table:not([class]) tbody tr:hover{background-color:var(--md-typeset-table-color--light);box-shadow:0 .05rem 0 var(--md-default-bg-color) inset}.md-typeset table:not([class]) a{word-break:normal}.md-typeset table th[role=columnheader]{cursor:pointer}[dir=ltr] .md-typeset table th[role=columnheader]:after{margin-left:.5em}[dir=rtl] .md-typeset table th[role=columnheader]:after{margin-right:.5em}.md-typeset table th[role=columnheader]:after{content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-typeset-table-sort-icon);mask-image:var(--md-typeset-table-sort-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset table th[role=columnheader]:hover:after{background-color:var(--md-default-fg-color--lighter)}.md-typeset table th[role=columnheader][aria-sort=ascending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--asc);mask-image:var(--md-typeset-table-sort-icon--asc)}.md-typeset table th[role=columnheader][aria-sort=descending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--desc);mask-image:var(--md-typeset-table-sort-icon--desc)}.md-typeset__scrollwrap{margin:1em -.8rem;overflow-x:auto;touch-action:auto}.md-typeset__table{display:inline-block;margin-bottom:.5em;padding:0 .8rem}@media print{.md-typeset__table{display:block}}html .md-typeset__table table{display:table;margin:0;overflow:hidden;width:100%}@media screen and (max-width:44.984375em){.md-content__inner>pre{margin:1em -.8rem}.md-content__inner>pre code{border-radius:0}}.md-typeset .md-author{border-radius:100%;display:block;flex-shrink:0;height:1.6rem;overflow:hidden;position:relative;transition:color 125ms,transform 125ms;width:1.6rem}.md-typeset .md-author img{display:block}.md-typeset .md-author--more{background:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--lighter);font-size:.6rem;font-weight:700;line-height:1.6rem;text-align:center}.md-typeset .md-author--long{height:2.4rem;width:2.4rem}.md-typeset a.md-author{transform:scale(1)}.md-typeset a.md-author img{border-radius:100%;filter:grayscale(100%) opacity(75%);transition:filter 125ms}.md-typeset a.md-author:focus,.md-typeset a.md-author:hover{transform:scale(1.1);z-index:1}.md-typeset a.md-author:focus img,.md-typeset a.md-author:hover img{filter:grayscale(0)}.md-banner{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color);overflow:auto}@media print{.md-banner{display:none}}.md-banner--warning{background-color:var(--md-warning-bg-color);color:var(--md-warning-fg-color)}.md-banner__inner{font-size:.7rem;margin:.6rem auto;padding:0 .8rem}[dir=ltr] .md-banner__button{float:right}[dir=rtl] .md-banner__button{float:left}.md-banner__button{color:inherit;cursor:pointer;transition:opacity .25s}.no-js .md-banner__button{display:none}.md-banner__button:hover{opacity:.7}html{font-size:125%;height:100%;overflow-x:hidden}@media screen and (min-width:100em){html{font-size:137.5%}}@media screen and (min-width:125em){html{font-size:150%}}body{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;font-size:.5rem;min-height:100%;position:relative;width:100%}@media print{body{display:block}}@media screen and (max-width:59.984375em){body[data-md-scrolllock]{position:fixed}}.md-grid{margin-left:auto;margin-right:auto;max-width:61rem}.md-container{display:flex;flex-direction:column;flex-grow:1}@media print{.md-container{display:block}}.md-main{flex-grow:1}.md-main__inner{display:flex;height:100%;margin-top:1.5rem}.md-ellipsis{overflow:hidden;text-overflow:ellipsis}.md-toggle{display:none}.md-option{height:0;opacity:0;position:absolute;width:0}.md-option:checked+label:not([hidden]){display:block}.md-option.focus-visible+label{outline-color:var(--md-accent-fg-color);outline-style:auto}.md-skip{background-color:var(--md-default-fg-color);border-radius:.1rem;color:var(--md-default-bg-color);font-size:.64rem;margin:.5rem;opacity:0;outline-color:var(--md-accent-fg-color);padding:.3rem .5rem;position:fixed;transform:translateY(.4rem);z-index:-1}.md-skip:focus{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 175ms 75ms;z-index:10}@page{margin:25mm}:root{--md-clipboard-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z"/></svg>')}.md-clipboard{border-radius:.1rem;color:var(--md-default-fg-color--lightest);cursor:pointer;height:1.5em;outline-color:var(--md-accent-fg-color);outline-offset:.1rem;position:absolute;right:.5em;top:.5em;transition:color .25s;width:1.5em;z-index:1}@media print{.md-clipboard{display:none}}.md-clipboard:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}:hover>.md-clipboard{color:var(--md-default-fg-color--light)}.md-clipboard:focus,.md-clipboard:hover{color:var(--md-accent-fg-color)}.md-clipboard:after{background-color:currentcolor;content:"";display:block;height:1.125em;margin:0 auto;-webkit-mask-image:var(--md-clipboard-icon);mask-image:var(--md-clipboard-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1.125em}.md-clipboard--inline{cursor:pointer}.md-clipboard--inline code{transition:color .25s,background-color .25s}.md-clipboard--inline:focus code,.md-clipboard--inline:hover code{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-typeset .md-code__content{display:grid}@keyframes consent{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes overlay{0%{opacity:0}to{opacity:1}}.md-consent__overlay{animation:overlay .25s both;-webkit-backdrop-filter:blur(.1rem);backdrop-filter:blur(.1rem);background-color:#0000008a;height:100%;opacity:1;position:fixed;top:0;width:100%;z-index:5}.md-consent__inner{animation:consent .5s cubic-bezier(.1,.7,.1,1) both;background-color:var(--md-default-bg-color);border:0;border-radius:.1rem;bottom:0;box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;max-height:100%;overflow:auto;padding:0;position:fixed;width:100%;z-index:5}.md-consent__form{padding:.8rem}.md-consent__settings{display:none;margin:1em 0}input:checked+.md-consent__settings{display:block}.md-consent__controls{margin-bottom:.8rem}.md-typeset .md-consent__controls .md-button{display:inline}@media screen and (max-width:44.984375em){.md-typeset .md-consent__controls .md-button{display:block;margin-top:.4rem;text-align:center;width:100%}}.md-consent label{cursor:pointer}.md-content{flex-grow:1;min-width:0}.md-content__inner{margin:0 .8rem 1.2rem;padding-top:.6rem}@media screen and (min-width:76.25em){[dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}[dir=ltr] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner,[dir=rtl] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-right:1.2rem}[dir=rtl] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}}.md-content__inner:before{content:"";display:block;height:.4rem}.md-content__inner>:last-child{margin-bottom:0}[dir=ltr] .md-content__button{float:right}[dir=rtl] .md-content__button{float:left}[dir=ltr] .md-content__button{margin-left:.4rem}[dir=rtl] .md-content__button{margin-right:.4rem}.md-content__button{margin:.4rem 0;padding:0}@media print{.md-content__button{display:none}}.md-typeset .md-content__button{color:var(--md-default-fg-color--lighter)}.md-content__button svg{display:inline;vertical-align:top}[dir=rtl] .md-content__button svg{transform:scaleX(-1)}[dir=ltr] .md-dialog{right:.8rem}[dir=rtl] .md-dialog{left:.8rem}.md-dialog{background-color:var(--md-default-fg-color);border-radius:.1rem;bottom:.8rem;box-shadow:var(--md-shadow-z3);min-width:11.1rem;opacity:0;padding:.4rem .6rem;pointer-events:none;position:fixed;transform:translateY(100%);transition:transform 0ms .4s,opacity .4s;z-index:4}@media print{.md-dialog{display:none}}.md-dialog--active{opacity:1;pointer-events:auto;transform:translateY(0);transition:transform .4s cubic-bezier(.075,.85,.175,1),opacity .4s}.md-dialog__inner{color:var(--md-default-bg-color);font-size:.7rem}.md-feedback{margin:2em 0 1em;text-align:center}.md-feedback fieldset{border:none;margin:0;padding:0}.md-feedback__title{font-weight:700;margin:1em auto}.md-feedback__inner{position:relative}.md-feedback__list{display:flex;flex-wrap:wrap;place-content:baseline center;position:relative}.md-feedback__list:hover .md-icon:not(:disabled){color:var(--md-default-fg-color--lighter)}:disabled .md-feedback__list{min-height:1.8rem}.md-feedback__icon{color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;margin:0 .1rem;transition:color 125ms}.md-feedback__icon:not(:disabled).md-icon:hover{color:var(--md-accent-fg-color)}.md-feedback__icon:disabled{color:var(--md-default-fg-color--lightest);pointer-events:none}.md-feedback__note{opacity:0;position:relative;transform:translateY(.4rem);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-feedback__note>*{margin:0 auto;max-width:16rem}:disabled .md-feedback__note{opacity:1;transform:translateY(0)}.md-footer{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color)}@media print{.md-footer{display:none}}.md-footer__inner{justify-content:space-between;overflow:auto;padding:.2rem}.md-footer__inner:not([hidden]){display:flex}.md-footer__link{align-items:end;display:flex;flex-grow:0.01;margin-bottom:.4rem;margin-top:1rem;max-width:100%;outline-color:var(--md-accent-fg-color);overflow:hidden;transition:opacity .25s}.md-footer__link:focus,.md-footer__link:hover{opacity:.7}[dir=rtl] .md-footer__link svg{transform:scaleX(-1)}@media screen and (max-width:44.984375em){.md-footer__link--prev{flex-shrink:0}.md-footer__link--prev .md-footer__title{display:none}}[dir=ltr] .md-footer__link--next{margin-left:auto}[dir=rtl] .md-footer__link--next{margin-right:auto}.md-footer__link--next{text-align:right}[dir=rtl] .md-footer__link--next{text-align:left}.md-footer__title{flex-grow:1;font-size:.9rem;margin-bottom:.7rem;max-width:calc(100% - 2.4rem);padding:0 1rem;white-space:nowrap}.md-footer__button{margin:.2rem;padding:.4rem}.md-footer__direction{font-size:.64rem;opacity:.7}.md-footer-meta{background-color:var(--md-footer-bg-color--dark)}.md-footer-meta__inner{display:flex;flex-wrap:wrap;justify-content:space-between;padding:.2rem}html .md-footer-meta.md-typeset a{color:var(--md-footer-fg-color--light)}html .md-footer-meta.md-typeset a:focus,html .md-footer-meta.md-typeset a:hover{color:var(--md-footer-fg-color)}.md-copyright{color:var(--md-footer-fg-color--lighter);font-size:.64rem;margin:auto .6rem;padding:.4rem 0;width:100%}@media screen and (min-width:45em){.md-copyright{width:auto}}.md-copyright__highlight{color:var(--md-footer-fg-color--light)}.md-social{display:inline-flex;gap:.2rem;margin:0 .4rem;padding:.2rem 0 .6rem}@media screen and (min-width:45em){.md-social{padding:.6rem 0}}.md-social__link{display:inline-block;height:1.6rem;text-align:center;width:1.6rem}.md-social__link:before{line-height:1.9}.md-social__link svg{fill:currentcolor;max-height:.8rem;vertical-align:-25%}.md-typeset .md-button{border:.1rem solid;border-radius:.1rem;color:var(--md-primary-fg-color);cursor:pointer;display:inline-block;font-weight:700;padding:.625em 2em;transition:color 125ms,background-color 125ms,border-color 125ms}.md-typeset .md-button--primary{background-color:var(--md-primary-fg-color);border-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color)}.md-typeset .md-button:focus,.md-typeset .md-button:hover{background-color:var(--md-accent-fg-color);border-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[dir=ltr] .md-typeset .md-input{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .md-input,[dir=rtl] .md-typeset .md-input{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .md-input{border-top-left-radius:.1rem}.md-typeset .md-input{border-bottom:.1rem solid var(--md-default-fg-color--lighter);box-shadow:var(--md-shadow-z1);font-size:.8rem;height:1.8rem;padding:0 .6rem;transition:border .25s,box-shadow .25s}.md-typeset .md-input:focus,.md-typeset .md-input:hover{border-bottom-color:var(--md-accent-fg-color);box-shadow:var(--md-shadow-z2)}.md-typeset .md-input--stretch{width:100%}.md-header{background-color:var(--md-primary-fg-color);box-shadow:0 0 .2rem #0000,0 .2rem .4rem #0000;color:var(--md-primary-bg-color);display:block;left:0;position:sticky;right:0;top:0;z-index:4}@media print{.md-header{display:none}}.md-header[hidden]{transform:translateY(-100%);transition:transform .25s cubic-bezier(.8,0,.6,1),box-shadow .25s}.md-header--shadow{box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;transition:transform .25s cubic-bezier(.1,.7,.1,1),box-shadow .25s}.md-header__inner{align-items:center;display:flex;padding:0 .2rem}.md-header__button{color:currentcolor;cursor:pointer;margin:.2rem;outline-color:var(--md-accent-fg-color);padding:.4rem;position:relative;transition:opacity .25s;vertical-align:middle;z-index:1}.md-header__button:hover{opacity:.7}.md-header__button:not([hidden]){display:inline-block}.md-header__button:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-header__button.md-logo{margin:.2rem;padding:.4rem}@media screen and (max-width:76.234375em){.md-header__button.md-logo{display:none}}.md-header__button.md-logo img,.md-header__button.md-logo svg{fill:currentcolor;display:block;height:1.2rem;width:auto}@media screen and (min-width:60em){.md-header__button[for=__search]{display:none}}.no-js .md-header__button[for=__search]{display:none}[dir=rtl] .md-header__button[for=__search] svg{transform:scaleX(-1)}@media screen and (min-width:76.25em){.md-header__button[for=__drawer]{display:none}}.md-header__topic{display:flex;max-width:100%;position:absolute;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;white-space:nowrap}.md-header__topic+.md-header__topic{opacity:0;pointer-events:none;transform:translateX(1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__topic+.md-header__topic{transform:translateX(-1.25rem)}.md-header__topic:first-child{font-weight:700}[dir=ltr] .md-header__title{margin-left:1rem;margin-right:.4rem}[dir=rtl] .md-header__title{margin-left:.4rem;margin-right:1rem}.md-header__title{flex-grow:1;font-size:.9rem;height:2.4rem;line-height:2.4rem}.md-header__title--active .md-header__topic{opacity:0;pointer-events:none;transform:translateX(-1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__title--active .md-header__topic{transform:translateX(1.25rem)}.md-header__title--active .md-header__topic+.md-header__topic{opacity:1;pointer-events:auto;transform:translateX(0);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;z-index:0}.md-header__title>.md-header__ellipsis{height:100%;position:relative;width:100%}.md-header__option{display:flex;flex-shrink:0;max-width:100%;transition:max-width 0ms .25s,opacity .25s .25s;white-space:nowrap}[data-md-toggle=search]:checked~.md-header .md-header__option{max-width:0;opacity:0;transition:max-width 0ms,opacity 0ms}.md-header__option>input{bottom:0}.md-header__source{display:none}@media screen and (min-width:60em){[dir=ltr] .md-header__source{margin-left:1rem}[dir=rtl] .md-header__source{margin-right:1rem}.md-header__source{display:block;max-width:11.7rem;width:11.7rem}}@media screen and (min-width:76.25em){[dir=ltr] .md-header__source{margin-left:1.4rem}[dir=rtl] .md-header__source{margin-right:1.4rem}}.md-meta{color:var(--md-default-fg-color--light);font-size:.7rem;line-height:1.3}.md-meta__list{display:inline-flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.md-meta__item:not(:last-child):after{content:"·";margin-left:.2rem;margin-right:.2rem}.md-meta__link{color:var(--md-typeset-a-color)}.md-meta__link:focus,.md-meta__link:hover{color:var(--md-accent-fg-color)}.md-draft{background-color:#ff1744;border-radius:.125em;color:#fff;display:inline-block;font-weight:700;padding-left:.5714285714em;padding-right:.5714285714em}:root{--md-nav-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>');--md-nav-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>');--md-toc-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2Z"/></svg>')}.md-nav{font-size:.7rem;line-height:1.3}.md-nav__title{color:var(--md-default-fg-color--light);display:block;font-weight:700;overflow:hidden;padding:0 .6rem;text-overflow:ellipsis}.md-nav__title .md-nav__button{display:none}.md-nav__title .md-nav__button img{height:100%;width:auto}.md-nav__title .md-nav__button.md-logo img,.md-nav__title .md-nav__button.md-logo svg{fill:currentcolor;display:block;height:2.4rem;max-width:100%;object-fit:contain;width:auto}.md-nav__list{list-style:none;margin:0;padding:0}.md-nav__link{align-items:flex-start;display:flex;gap:.4rem;margin-top:.625em;scroll-snap-align:start;transition:color 125ms}.md-nav__link--passed{color:var(--md-default-fg-color--light)}.md-nav__item .md-nav__link--active,.md-nav__item .md-nav__link--active code{color:var(--md-typeset-a-color)}.md-nav__link .md-ellipsis{position:relative}[dir=ltr] .md-nav__link .md-icon:last-child{margin-left:auto}[dir=rtl] .md-nav__link .md-icon:last-child{margin-right:auto}.md-nav__link svg{fill:currentcolor;flex-shrink:0;height:1.3em}.md-nav__link[for]:focus,.md-nav__link[for]:hover,.md-nav__link[href]:focus,.md-nav__link[href]:hover{color:var(--md-accent-fg-color);cursor:pointer}.md-nav__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-nav--primary .md-nav__link[for=__toc]{display:none}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{background-color:currentcolor;display:block;height:100%;-webkit-mask-image:var(--md-toc-icon);mask-image:var(--md-toc-icon);width:100%}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:none}.md-nav__container>.md-nav__link{margin-top:0}.md-nav__container>.md-nav__link:first-child{flex-grow:1;min-width:0}.md-nav__icon{flex-shrink:0}.md-nav__source{display:none}@media screen and (max-width:76.234375em){.md-nav--primary,.md-nav--primary .md-nav{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;z-index:1}.md-nav--primary .md-nav__item,.md-nav--primary .md-nav__title{font-size:.8rem;line-height:1.5}.md-nav--primary .md-nav__title{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);cursor:pointer;height:5.6rem;line-height:2.4rem;padding:3rem .8rem .2rem;position:relative;white-space:nowrap}[dir=ltr] .md-nav--primary .md-nav__title .md-nav__icon{left:.4rem}[dir=rtl] .md-nav--primary .md-nav__title .md-nav__icon{right:.4rem}.md-nav--primary .md-nav__title .md-nav__icon{display:block;height:1.2rem;margin:.2rem;position:absolute;top:.4rem;width:1.2rem}.md-nav--primary .md-nav__title .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--prev);mask-image:var(--md-nav-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.md-nav--primary .md-nav__title~.md-nav__list{background-color:var(--md-default-bg-color);box-shadow:0 .05rem 0 var(--md-default-fg-color--lightest) inset;overflow-y:auto;scroll-snap-type:y mandatory;touch-action:pan-y}.md-nav--primary .md-nav__title~.md-nav__list>:first-child{border-top:0}.md-nav--primary .md-nav__title[for=__drawer]{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);font-weight:700}.md-nav--primary .md-nav__title .md-logo{display:block;left:.2rem;margin:.2rem;padding:.4rem;position:absolute;right:.2rem;top:.2rem}.md-nav--primary .md-nav__list{flex:1}.md-nav--primary .md-nav__item{border-top:.05rem solid var(--md-default-fg-color--lightest)}.md-nav--primary .md-nav__item--active>.md-nav__link{color:var(--md-typeset-a-color)}.md-nav--primary .md-nav__item--active>.md-nav__link:focus,.md-nav--primary .md-nav__item--active>.md-nav__link:hover{color:var(--md-accent-fg-color)}.md-nav--primary .md-nav__link{margin-top:0;padding:.6rem .8rem}.md-nav--primary .md-nav__link svg{margin-top:.1em}.md-nav--primary .md-nav__link>.md-nav__link{padding:0}[dir=ltr] .md-nav--primary .md-nav__link .md-nav__icon{margin-right:-.2rem}[dir=rtl] .md-nav--primary .md-nav__link .md-nav__icon{margin-left:-.2rem}.md-nav--primary .md-nav__link .md-nav__icon{font-size:1.2rem;height:1.2rem;width:1.2rem}.md-nav--primary .md-nav__link .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-nav--primary .md-nav__icon:after{transform:scale(-1)}.md-nav--primary .md-nav--secondary .md-nav{background-color:initial;position:static}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:1.4rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-right:1.4rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-right:2rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:2.6rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-right:2.6rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:3.2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-right:3.2rem}.md-nav--secondary{background-color:initial}.md-nav__toggle~.md-nav{display:flex;opacity:0;transform:translateX(100%);transition:transform .25s cubic-bezier(.8,0,.6,1),opacity 125ms 50ms}[dir=rtl] .md-nav__toggle~.md-nav{transform:translateX(-100%)}.md-nav__toggle:checked~.md-nav{opacity:1;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 125ms 125ms}.md-nav__toggle:checked~.md-nav>.md-nav__list{-webkit-backface-visibility:hidden;backface-visibility:hidden}}@media screen and (max-width:59.984375em){.md-nav--primary .md-nav__link[for=__toc]{display:flex}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--primary .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:flex}.md-nav__source{background-color:var(--md-primary-fg-color--dark);color:var(--md-primary-bg-color);display:block;padding:0 .2rem}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-nav--integrated .md-nav__link[for=__toc]{display:flex}.md-nav--integrated .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--integrated .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav{display:flex}}@media screen and (min-width:60em){.md-nav{margin-bottom:-.4rem}.md-nav--secondary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--secondary .md-nav__title[for=__toc]{scroll-snap-align:start}.md-nav--secondary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--secondary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--secondary .md-nav__list{padding-right:.6rem}.md-nav--secondary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--secondary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--secondary .md-nav__item>.md-nav__link{margin-left:.4rem}}@media screen and (min-width:76.25em){.md-nav{margin-bottom:-.4rem;transition:max-height .25s cubic-bezier(.86,0,.07,1)}.md-nav--primary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--primary .md-nav__title[for=__drawer]{scroll-snap-align:start}.md-nav--primary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--primary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--primary .md-nav__list{padding-right:.6rem}.md-nav--primary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--primary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--primary .md-nav__item>.md-nav__link{margin-left:.4rem}.md-nav__toggle~.md-nav{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .25s,visibility 0ms .25s;visibility:collapse}.md-nav__toggle~.md-nav>.md-nav__list{overflow:hidden}.md-nav__toggle.md-toggle--indeterminate~.md-nav,.md-nav__toggle:checked~.md-nav{grid-template-rows:1fr;opacity:1;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .15s .1s,visibility 0ms;visibility:visible}.md-nav__toggle.md-toggle--indeterminate~.md-nav{transition:none}.md-nav__item--nested>.md-nav>.md-nav__title{display:none}.md-nav__item--section{display:block;margin:1.25em 0}.md-nav__item--section:last-child{margin-bottom:0}.md-nav__item--section>.md-nav__link{font-weight:700}.md-nav__item--section>.md-nav__link[for]{color:var(--md-default-fg-color--light)}.md-nav__item--section>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav__item--section>.md-nav__link .md-icon,.md-nav__item--section>.md-nav__link>[for]{display:none}[dir=ltr] .md-nav__item--section>.md-nav{margin-left:-.6rem}[dir=rtl] .md-nav__item--section>.md-nav{margin-right:-.6rem}.md-nav__item--section>.md-nav{display:block;opacity:1;visibility:visible}.md-nav__item--section>.md-nav>.md-nav__list>.md-nav__item{padding:0}.md-nav__icon{border-radius:100%;height:.9rem;transition:background-color .25s;width:.9rem}.md-nav__icon:hover{background-color:var(--md-accent-fg-color--transparent)}.md-nav__icon:after{background-color:currentcolor;border-radius:100%;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:transform .25s;vertical-align:-.1rem;width:100%}[dir=rtl] .md-nav__icon:after{transform:rotate(180deg)}.md-nav__item--nested .md-nav__toggle:checked~.md-nav__link .md-nav__icon:after,.md-nav__item--nested .md-toggle--indeterminate~.md-nav__link .md-nav__icon:after{transform:rotate(90deg)}.md-nav--lifted>.md-nav__list>.md-nav__item,.md-nav--lifted>.md-nav__title{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active{display:block}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);margin-top:0;position:sticky;top:0;z-index:1}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active.md-nav__item--section{margin:0}[dir=ltr] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-left:-.6rem}[dir=rtl] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-right:-.6rem}.md-nav--lifted>.md-nav__list>.md-nav__item>[for]{color:var(--md-default-fg-color--light)}.md-nav--lifted .md-nav[data-md-level="1"]{grid-template-rows:1fr;opacity:1;visibility:visible}[dir=ltr] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-left:.05rem solid var(--md-primary-fg-color)}[dir=rtl] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-right:.05rem solid var(--md-primary-fg-color)}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{display:block;margin-bottom:1.25em;opacity:1;visibility:visible}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__list{overflow:visible;padding-bottom:0}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__title{display:none}}.md-pagination{font-size:.8rem;font-weight:700;gap:.4rem}.md-pagination,.md-pagination>*{align-items:center;display:flex;justify-content:center}.md-pagination>*{border-radius:.2rem;height:1.8rem;min-width:1.8rem;text-align:center}.md-pagination__current{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light)}.md-pagination__link{transition:color 125ms,background-color 125ms}.md-pagination__link:focus,.md-pagination__link:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-pagination__link:focus svg,.md-pagination__link:hover svg{color:var(--md-accent-fg-color)}.md-pagination__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-pagination__link svg{fill:currentcolor;color:var(--md-default-fg-color--lighter);display:block;max-height:100%;width:1.2rem}.md-post__back{border-bottom:.05rem solid var(--md-default-fg-color--lightest);margin-bottom:1.2rem;padding-bottom:1.2rem}@media screen and (max-width:76.234375em){.md-post__back{display:none}}[dir=rtl] .md-post__back svg{transform:scaleX(-1)}.md-post__authors{display:flex;flex-direction:column;gap:.6rem;margin:0 .6rem 1.2rem}.md-post .md-post__meta a{transition:color 125ms}.md-post .md-post__meta a:focus,.md-post .md-post__meta a:hover{color:var(--md-accent-fg-color)}.md-post__title{color:var(--md-default-fg-color--light);font-weight:700}.md-post--excerpt{margin-bottom:3.2rem}.md-post--excerpt .md-post__header{align-items:center;display:flex;gap:.6rem;min-height:1.6rem}.md-post--excerpt .md-post__authors{align-items:center;display:inline-flex;flex-direction:row;gap:.2rem;margin:0;min-height:2.4rem}[dir=ltr] .md-post--excerpt .md-post__meta .md-meta__list{margin-right:.4rem}[dir=rtl] .md-post--excerpt .md-post__meta .md-meta__list{margin-left:.4rem}.md-post--excerpt .md-post__content>:first-child{--md-scroll-margin:6rem;margin-top:0}.md-post>.md-nav--secondary{margin:1em 0}.md-profile{align-items:center;display:flex;font-size:.7rem;gap:.6rem;line-height:1.4;width:100%}.md-profile__description{flex-grow:1}.md-content--post{display:flex}@media screen and (max-width:76.234375em){.md-content--post{flex-flow:column-reverse}}.md-content--post>.md-content__inner{min-width:0}@media screen and (min-width:76.25em){[dir=ltr] .md-content--post>.md-content__inner{margin-left:1.2rem}[dir=rtl] .md-content--post>.md-content__inner{margin-right:1.2rem}}@media screen and (max-width:76.234375em){.md-sidebar.md-sidebar--post{padding:0;position:static;width:100%}.md-sidebar.md-sidebar--post .md-sidebar__scrollwrap{overflow:visible}.md-sidebar.md-sidebar--post .md-sidebar__inner{padding:0}.md-sidebar.md-sidebar--post .md-post__meta{margin-left:.6rem;margin-right:.6rem}.md-sidebar.md-sidebar--post .md-nav__item{border:none;display:inline}.md-sidebar.md-sidebar--post .md-nav__list{display:inline-flex;flex-wrap:wrap;gap:.6rem;padding-bottom:.6rem;padding-top:.6rem}.md-sidebar.md-sidebar--post .md-nav__link{padding:0}.md-sidebar.md-sidebar--post .md-nav{height:auto;margin-bottom:0;position:static}}:root{--md-progress-value:0;--md-progress-delay:400ms}.md-progress{background:var(--md-primary-bg-color);height:.075rem;opacity:min(clamp(0,var(--md-progress-value),1),clamp(0,100 - var(--md-progress-value),1));position:fixed;top:0;transform:scaleX(calc(var(--md-progress-value)*1%));transform-origin:left;transition:transform .5s cubic-bezier(.19,1,.22,1),opacity .25s var(--md-progress-delay);width:100%;z-index:4}:root{--md-search-result-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5Z"/></svg>')}.md-search{position:relative}@media screen and (min-width:60em){.md-search{padding:.2rem 0}}.no-js .md-search{display:none}.md-search__overlay{opacity:0;z-index:1}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__overlay{left:-2.2rem}[dir=rtl] .md-search__overlay{right:-2.2rem}.md-search__overlay{background-color:var(--md-default-bg-color);border-radius:1rem;height:2rem;overflow:hidden;pointer-events:none;position:absolute;top:-1rem;transform-origin:center;transition:transform .3s .1s,opacity .2s .2s;width:2rem}[data-md-toggle=search]:checked~.md-header .md-search__overlay{opacity:1;transition:transform .4s,opacity .1s}}@media screen and (min-width:60em){[dir=ltr] .md-search__overlay{left:0}[dir=rtl] .md-search__overlay{right:0}.md-search__overlay{background-color:#0000008a;cursor:pointer;height:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0}[data-md-toggle=search]:checked~.md-header .md-search__overlay{height:200vh;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@media screen and (max-width:29.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(45)}}@media screen and (min-width:30em) and (max-width:44.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(60)}}@media screen and (min-width:45em) and (max-width:59.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(75)}}.md-search__inner{-webkit-backface-visibility:hidden;backface-visibility:hidden}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__inner{left:0}[dir=rtl] .md-search__inner{right:0}.md-search__inner{height:0;opacity:0;overflow:hidden;position:fixed;top:0;transform:translateX(5%);transition:width 0ms .3s,height 0ms .3s,transform .15s cubic-bezier(.4,0,.2,1) .15s,opacity .15s .15s;width:0;z-index:2}[dir=rtl] .md-search__inner{transform:translateX(-5%)}[data-md-toggle=search]:checked~.md-header .md-search__inner{height:100%;opacity:1;transform:translateX(0);transition:width 0ms 0ms,height 0ms 0ms,transform .15s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__inner{float:right}[dir=rtl] .md-search__inner{float:left}.md-search__inner{padding:.1rem 0;position:relative;transition:width .25s cubic-bezier(.1,.7,.1,1);width:11.7rem}}@media screen and (min-width:60em) and (max-width:76.234375em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:23.4rem}}@media screen and (min-width:76.25em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:34.4rem}}.md-search__form{background-color:var(--md-default-bg-color);box-shadow:0 0 .6rem #0000;height:2.4rem;position:relative;transition:color .25s,background-color .25s;z-index:2}@media screen and (min-width:60em){.md-search__form{background-color:#00000042;border-radius:.1rem;height:1.8rem}.md-search__form:hover{background-color:#ffffff1f}}[data-md-toggle=search]:checked~.md-header .md-search__form{background-color:var(--md-default-bg-color);border-radius:.1rem .1rem 0 0;box-shadow:0 0 .6rem #00000012;color:var(--md-default-fg-color)}[dir=ltr] .md-search__input{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__input{padding-left:2.2rem;padding-right:3.6rem}.md-search__input{background:#0000;font-size:.9rem;height:100%;position:relative;text-overflow:ellipsis;width:100%;z-index:2}.md-search__input::placeholder{transition:color .25s}.md-search__input::placeholder,.md-search__input~.md-search__icon{color:var(--md-default-fg-color--light)}.md-search__input::-ms-clear{display:none}@media screen and (max-width:59.984375em){.md-search__input{font-size:.9rem;height:2.4rem;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__input{padding-left:2.2rem}[dir=rtl] .md-search__input{padding-right:2.2rem}.md-search__input{color:inherit;font-size:.8rem}.md-search__input::placeholder{color:var(--md-primary-bg-color--light)}.md-search__input+.md-search__icon{color:var(--md-primary-bg-color)}[data-md-toggle=search]:checked~.md-header .md-search__input{text-overflow:clip}[data-md-toggle=search]:checked~.md-header .md-search__input+.md-search__icon{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input::placeholder{color:#0000}}.md-search__icon{cursor:pointer;display:inline-block;height:1.2rem;transition:color .25s,opacity .25s;width:1.2rem}.md-search__icon:hover{opacity:.7}[dir=ltr] .md-search__icon[for=__search]{left:.5rem}[dir=rtl] .md-search__icon[for=__search]{right:.5rem}.md-search__icon[for=__search]{position:absolute;top:.3rem;z-index:2}[dir=rtl] .md-search__icon[for=__search] svg{transform:scaleX(-1)}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__icon[for=__search]{left:.8rem}[dir=rtl] .md-search__icon[for=__search]{right:.8rem}.md-search__icon[for=__search]{top:.6rem}.md-search__icon[for=__search] svg:first-child{display:none}}@media screen and (min-width:60em){.md-search__icon[for=__search]{pointer-events:none}.md-search__icon[for=__search] svg:last-child{display:none}}[dir=ltr] .md-search__options{right:.5rem}[dir=rtl] .md-search__options{left:.5rem}.md-search__options{pointer-events:none;position:absolute;top:.3rem;z-index:2}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__options{right:.8rem}[dir=rtl] .md-search__options{left:.8rem}.md-search__options{top:.6rem}}[dir=ltr] .md-search__options>.md-icon{margin-left:.2rem}[dir=rtl] .md-search__options>.md-icon{margin-right:.2rem}.md-search__options>.md-icon{color:var(--md-default-fg-color--light);opacity:0;transform:scale(.75);transition:transform .15s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-search__options>.md-icon:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon{opacity:1;pointer-events:auto;transform:scale(1)}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon:hover{opacity:.7}[dir=ltr] .md-search__suggest{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__suggest{padding-left:2.2rem;padding-right:3.6rem}.md-search__suggest{align-items:center;color:var(--md-default-fg-color--lighter);display:flex;font-size:.9rem;height:100%;opacity:0;position:absolute;top:0;transition:opacity 50ms;white-space:nowrap;width:100%}@media screen and (min-width:60em){[dir=ltr] .md-search__suggest{padding-left:2.2rem}[dir=rtl] .md-search__suggest{padding-right:2.2rem}.md-search__suggest{font-size:.8rem}}[data-md-toggle=search]:checked~.md-header .md-search__suggest{opacity:1;transition:opacity .3s .1s}[dir=ltr] .md-search__output{border-bottom-left-radius:.1rem}[dir=ltr] .md-search__output,[dir=rtl] .md-search__output{border-bottom-right-radius:.1rem}[dir=rtl] .md-search__output{border-bottom-left-radius:.1rem}.md-search__output{overflow:hidden;position:absolute;width:100%;z-index:1}@media screen and (max-width:59.984375em){.md-search__output{bottom:0;top:2.4rem}}@media screen and (min-width:60em){.md-search__output{opacity:0;top:1.9rem;transition:opacity .4s}[data-md-toggle=search]:checked~.md-header .md-search__output{box-shadow:var(--md-shadow-z3);opacity:1}}.md-search__scrollwrap{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);height:100%;overflow-y:auto;touch-action:pan-y}@media (-webkit-max-device-pixel-ratio:1),(max-resolution:1dppx){.md-search__scrollwrap{transform:translateZ(0)}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-search__scrollwrap{width:23.4rem}}@media screen and (min-width:76.25em){.md-search__scrollwrap{width:34.4rem}}@media screen and (min-width:60em){.md-search__scrollwrap{max-height:0;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}[data-md-toggle=search]:checked~.md-header .md-search__scrollwrap{max-height:75vh}.md-search__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-search__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-search__scrollwrap::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-search__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}}.md-search-result{color:var(--md-default-fg-color);word-break:break-word}.md-search-result__meta{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.8rem;padding:0 .8rem;scroll-snap-align:start}@media screen and (min-width:60em){[dir=ltr] .md-search-result__meta{padding-left:2.2rem}[dir=rtl] .md-search-result__meta{padding-right:2.2rem}}.md-search-result__list{list-style:none;margin:0;padding:0;-webkit-user-select:none;user-select:none}.md-search-result__item{box-shadow:0 -.05rem var(--md-default-fg-color--lightest)}.md-search-result__item:first-child{box-shadow:none}.md-search-result__link{display:block;outline:none;scroll-snap-align:start;transition:background-color .25s}.md-search-result__link:focus,.md-search-result__link:hover{background-color:var(--md-accent-fg-color--transparent)}.md-search-result__link:last-child p:last-child{margin-bottom:.6rem}.md-search-result__more>summary{cursor:pointer;display:block;outline:none;position:sticky;scroll-snap-align:start;top:0;z-index:1}.md-search-result__more>summary::marker{display:none}.md-search-result__more>summary::-webkit-details-marker{display:none}.md-search-result__more>summary>div{color:var(--md-typeset-a-color);font-size:.64rem;padding:.75em .8rem;transition:color .25s,background-color .25s}@media screen and (min-width:60em){[dir=ltr] .md-search-result__more>summary>div{padding-left:2.2rem}[dir=rtl] .md-search-result__more>summary>div{padding-right:2.2rem}}.md-search-result__more>summary:focus>div,.md-search-result__more>summary:hover>div{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-search-result__more[open]>summary{background-color:var(--md-default-bg-color)}.md-search-result__article{overflow:hidden;padding:0 .8rem;position:relative}@media screen and (min-width:60em){[dir=ltr] .md-search-result__article{padding-left:2.2rem}[dir=rtl] .md-search-result__article{padding-right:2.2rem}}[dir=ltr] .md-search-result__icon{left:0}[dir=rtl] .md-search-result__icon{right:0}.md-search-result__icon{color:var(--md-default-fg-color--light);height:1.2rem;margin:.5rem;position:absolute;width:1.2rem}@media screen and (max-width:59.984375em){.md-search-result__icon{display:none}}.md-search-result__icon:after{background-color:currentcolor;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-search-result-icon);mask-image:var(--md-search-result-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-search-result__icon:after{transform:scaleX(-1)}.md-search-result .md-typeset{color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.6}.md-search-result .md-typeset h1{color:var(--md-default-fg-color);font-size:.8rem;font-weight:400;line-height:1.4;margin:.55rem 0}.md-search-result .md-typeset h1 mark{text-decoration:none}.md-search-result .md-typeset h2{color:var(--md-default-fg-color);font-size:.64rem;font-weight:700;line-height:1.6;margin:.5em 0}.md-search-result .md-typeset h2 mark{text-decoration:none}.md-search-result__terms{color:var(--md-default-fg-color);display:block;font-size:.64rem;font-style:italic;margin:.5em 0}.md-search-result mark{background-color:initial;color:var(--md-accent-fg-color);text-decoration:underline}.md-select{position:relative;z-index:1}.md-select__inner{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);left:50%;margin-top:.2rem;max-height:0;opacity:0;position:absolute;top:calc(100% - .2rem);transform:translate3d(-50%,.3rem,0);transition:transform .25s 375ms,opacity .25s .25s,max-height 0ms .5s}.md-select:focus-within .md-select__inner,.md-select:hover .md-select__inner{max-height:10rem;opacity:1;transform:translate3d(-50%,0,0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,max-height 0ms}.md-select__inner:after{border-bottom:.2rem solid #0000;border-bottom-color:var(--md-default-bg-color);border-left:.2rem solid #0000;border-right:.2rem solid #0000;border-top:0;content:"";height:0;left:50%;margin-left:-.2rem;margin-top:-.2rem;position:absolute;top:0;width:0}.md-select__list{border-radius:.1rem;font-size:.8rem;list-style-type:none;margin:0;max-height:inherit;overflow:auto;padding:0}.md-select__item{line-height:1.8rem}[dir=ltr] .md-select__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-select__link{padding-left:1.2rem;padding-right:.6rem}.md-select__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:background-color .25s,color .25s;width:100%}.md-select__link:focus,.md-select__link:hover{color:var(--md-accent-fg-color)}.md-select__link:focus{background-color:var(--md-default-fg-color--lightest)}.md-sidebar{align-self:flex-start;flex-shrink:0;padding:1.2rem 0;position:sticky;top:2.4rem;width:12.1rem}@media print{.md-sidebar{display:none}}@media screen and (max-width:76.234375em){[dir=ltr] .md-sidebar--primary{left:-12.1rem}[dir=rtl] .md-sidebar--primary{right:-12.1rem}.md-sidebar--primary{background-color:var(--md-default-bg-color);display:block;height:100%;position:fixed;top:0;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;width:12.1rem;z-index:5}[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{box-shadow:var(--md-shadow-z3);transform:translateX(12.1rem)}[dir=rtl] [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{transform:translateX(-12.1rem)}.md-sidebar--primary .md-sidebar__scrollwrap{bottom:0;left:0;margin:0;overflow:hidden;position:absolute;right:0;scroll-snap-type:none;top:0}}@media screen and (min-width:76.25em){.md-sidebar{height:0}.no-js .md-sidebar{height:auto}.md-header--lifted~.md-container .md-sidebar{top:4.8rem}}.md-sidebar--secondary{display:none;order:2}@media screen and (min-width:60em){.md-sidebar--secondary{height:0}.no-js .md-sidebar--secondary{height:auto}.md-sidebar--secondary:not([hidden]){display:block}.md-sidebar--secondary .md-sidebar__scrollwrap{touch-action:pan-y}}.md-sidebar__scrollwrap{scrollbar-gutter:stable;-webkit-backface-visibility:hidden;backface-visibility:hidden;margin:0 .2rem;overflow-y:auto;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}.md-sidebar__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-sidebar__scrollwrap:focus-within,.md-sidebar__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb:hover,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}@supports selector(::-webkit-scrollbar){.md-sidebar__scrollwrap{scrollbar-gutter:auto}[dir=ltr] .md-sidebar__inner{padding-right:calc(100% - 11.5rem)}[dir=rtl] .md-sidebar__inner{padding-left:calc(100% - 11.5rem)}}@media screen and (max-width:76.234375em){.md-overlay{background-color:#0000008a;height:0;opacity:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0;z-index:5}[data-md-toggle=drawer]:checked~.md-overlay{height:100%;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@keyframes facts{0%{height:0}to{height:.65rem}}@keyframes fact{0%{opacity:0;transform:translateY(100%)}50%{opacity:0}to{opacity:1;transform:translateY(0)}}:root{--md-source-forks-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"/></svg>');--md-source-repositories-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"/></svg>');--md-source-stars-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"/></svg>');--md-source-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"/></svg>')}.md-source{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;font-size:.65rem;line-height:1.2;outline-color:var(--md-accent-fg-color);transition:opacity .25s;white-space:nowrap}.md-source:hover{opacity:.7}.md-source__icon{display:inline-block;height:2.4rem;vertical-align:middle;width:2rem}[dir=ltr] .md-source__icon svg{margin-left:.6rem}[dir=rtl] .md-source__icon svg{margin-right:.6rem}.md-source__icon svg{margin-top:.6rem}[dir=ltr] .md-source__icon+.md-source__repository{padding-left:2rem}[dir=rtl] .md-source__icon+.md-source__repository{padding-right:2rem}[dir=ltr] .md-source__icon+.md-source__repository{margin-left:-2rem}[dir=rtl] .md-source__icon+.md-source__repository{margin-right:-2rem}[dir=ltr] .md-source__repository{margin-left:.6rem}[dir=rtl] .md-source__repository{margin-right:.6rem}.md-source__repository{display:inline-block;max-width:calc(100% - 1.2rem);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.md-source__facts{display:flex;font-size:.55rem;gap:.4rem;list-style-type:none;margin:.1rem 0 0;opacity:.75;overflow:hidden;padding:0;width:100%}.md-source__repository--active .md-source__facts{animation:facts .25s ease-in}.md-source__fact{overflow:hidden;text-overflow:ellipsis}.md-source__repository--active .md-source__fact{animation:fact .4s ease-out}[dir=ltr] .md-source__fact:before{margin-right:.1rem}[dir=rtl] .md-source__fact:before{margin-left:.1rem}.md-source__fact:before{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-top;width:.6rem}.md-source__fact:nth-child(1n+2){flex-shrink:0}.md-source__fact--version:before{-webkit-mask-image:var(--md-source-version-icon);mask-image:var(--md-source-version-icon)}.md-source__fact--stars:before{-webkit-mask-image:var(--md-source-stars-icon);mask-image:var(--md-source-stars-icon)}.md-source__fact--forks:before{-webkit-mask-image:var(--md-source-forks-icon);mask-image:var(--md-source-forks-icon)}.md-source__fact--repositories:before{-webkit-mask-image:var(--md-source-repositories-icon);mask-image:var(--md-source-repositories-icon)}.md-source-file{margin:1em 0}[dir=ltr] .md-source-file__fact{margin-right:.6rem}[dir=rtl] .md-source-file__fact{margin-left:.6rem}.md-source-file__fact{align-items:center;color:var(--md-default-fg-color--light);display:inline-flex;font-size:.68rem;gap:.3rem}.md-source-file__fact .md-icon{flex-shrink:0;margin-bottom:.05rem}[dir=ltr] .md-source-file__fact .md-author{float:left}[dir=rtl] .md-source-file__fact .md-author{float:right}.md-source-file__fact .md-author{margin-right:.2rem}.md-source-file__fact svg{width:.9rem}:root{--md-status:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/></svg>');--md-status--new:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-10 5h-2v-2h2v2m0-4h-2V7h2v6Z"/></svg>');--md-status--deprecated:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/></svg>');--md-status--encrypted:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4m0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3Z"/></svg>')}.md-status:after{background-color:var(--md-default-fg-color--light);content:"";display:inline-block;height:1.125em;-webkit-mask-image:var(--md-status);mask-image:var(--md-status);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-bottom;width:1.125em}.md-status:hover:after{background-color:currentcolor}.md-status--new:after{-webkit-mask-image:var(--md-status--new);mask-image:var(--md-status--new)}.md-status--deprecated:after{-webkit-mask-image:var(--md-status--deprecated);mask-image:var(--md-status--deprecated)}.md-status--encrypted:after{-webkit-mask-image:var(--md-status--encrypted);mask-image:var(--md-status--encrypted)}.md-tabs{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);display:block;line-height:1.3;overflow:auto;width:100%;z-index:3}@media print{.md-tabs{display:none}}@media screen and (max-width:76.234375em){.md-tabs{display:none}}.md-tabs[hidden]{pointer-events:none}[dir=ltr] .md-tabs__list{margin-left:.2rem}[dir=rtl] .md-tabs__list{margin-right:.2rem}.md-tabs__list{contain:content;display:flex;list-style:none;margin:0;overflow:auto;padding:0;scrollbar-width:none;white-space:nowrap}.md-tabs__list::-webkit-scrollbar{display:none}.md-tabs__item{height:2.4rem;padding-left:.6rem;padding-right:.6rem}.md-tabs__item--active .md-tabs__link{color:inherit;opacity:1}.md-tabs__link{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;font-size:.7rem;margin-top:.8rem;opacity:.7;outline-color:var(--md-accent-fg-color);outline-offset:.2rem;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .25s}.md-tabs__link:focus,.md-tabs__link:hover{color:inherit;opacity:1}[dir=ltr] .md-tabs__link svg{margin-right:.4rem}[dir=rtl] .md-tabs__link svg{margin-left:.4rem}.md-tabs__link svg{fill:currentcolor;height:1.3em}.md-tabs__item:nth-child(2) .md-tabs__link{transition-delay:20ms}.md-tabs__item:nth-child(3) .md-tabs__link{transition-delay:40ms}.md-tabs__item:nth-child(4) .md-tabs__link{transition-delay:60ms}.md-tabs__item:nth-child(5) .md-tabs__link{transition-delay:80ms}.md-tabs__item:nth-child(6) .md-tabs__link{transition-delay:.1s}.md-tabs__item:nth-child(7) .md-tabs__link{transition-delay:.12s}.md-tabs__item:nth-child(8) .md-tabs__link{transition-delay:.14s}.md-tabs__item:nth-child(9) .md-tabs__link{transition-delay:.16s}.md-tabs__item:nth-child(10) .md-tabs__link{transition-delay:.18s}.md-tabs__item:nth-child(11) .md-tabs__link{transition-delay:.2s}.md-tabs__item:nth-child(12) .md-tabs__link{transition-delay:.22s}.md-tabs__item:nth-child(13) .md-tabs__link{transition-delay:.24s}.md-tabs__item:nth-child(14) .md-tabs__link{transition-delay:.26s}.md-tabs__item:nth-child(15) .md-tabs__link{transition-delay:.28s}.md-tabs__item:nth-child(16) .md-tabs__link{transition-delay:.3s}.md-tabs[hidden] .md-tabs__link{opacity:0;transform:translateY(50%);transition:transform 0ms .1s,opacity .1s}:root{--md-tag-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5.41 21 .71-4h-4l.35-2h4l1.06-6h-4l.35-2h4l.71-4h2l-.71 4h6l.71-4h2l-.71 4h4l-.35 2h-4l-1.06 6h4l-.35 2h-4l-.71 4h-2l.71-4h-6l-.71 4h-2M9.53 9l-1.06 6h6l1.06-6h-6Z"/></svg>')}.md-typeset .md-tags:not([hidden]){display:inline-flex;flex-wrap:wrap;gap:.5em;margin-bottom:.75em;margin-top:-.125em}.md-typeset .md-tag{align-items:center;background:var(--md-default-fg-color--lightest);border-radius:2.4rem;display:inline-flex;font-size:.64rem;font-size:min(.8em,.64rem);font-weight:700;gap:.5em;letter-spacing:normal;line-height:1.6;padding:.3125em .78125em}.md-typeset .md-tag[href]{-webkit-tap-highlight-color:transparent;color:inherit;outline:none;transition:color 125ms,background-color 125ms}.md-typeset .md-tag[href]:focus,.md-typeset .md-tag[href]:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[id]>.md-typeset .md-tag{vertical-align:text-top}.md-typeset .md-tag-icon:before{background-color:var(--md-default-fg-color--lighter);content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-tag-icon);mask-image:var(--md-tag-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset .md-tag-icon[href]:focus:before,.md-typeset .md-tag-icon[href]:hover:before{background-color:var(--md-accent-bg-color)}@keyframes pulse{0%{transform:scale(.95)}75%{transform:scale(1)}to{transform:scale(.95)}}:root{--md-annotation-bg-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-annotation-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 13h-4v4h-2v-4H7v-2h4V7h2v4h4m-5-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>')}.md-tooltip{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);font-family:var(--md-text-font-family);left:clamp(var(--md-tooltip-0,0rem) + .8rem,var(--md-tooltip-x),100vw + var(--md-tooltip-0,0rem) + .8rem - var(--md-tooltip-width) - 2 * .8rem);max-width:calc(100vw - 1.6rem);opacity:0;position:absolute;top:var(--md-tooltip-y);transform:translateY(-.4rem);transition:transform 0ms .25s,opacity .25s,z-index .25s;width:var(--md-tooltip-width);z-index:0}.md-tooltip--active{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,z-index 0ms;z-index:2}.md-tooltip--inline{font-weight:700;-webkit-user-select:none;user-select:none;width:auto}.md-tooltip--inline:not(.md-tooltip--active){transform:translateY(.2rem) scale(.9)}.md-tooltip--inline .md-tooltip__inner{font-size:.5rem;padding:.2rem .4rem}[hidden]+.md-tooltip--inline{display:none}.focus-visible>.md-tooltip,.md-tooltip:target{outline:var(--md-accent-fg-color) auto}.md-tooltip__inner{font-size:.64rem;padding:.8rem}.md-tooltip__inner.md-typeset>:first-child{margin-top:0}.md-tooltip__inner.md-typeset>:last-child{margin-bottom:0}.md-annotation{font-weight:400;outline:none;vertical-align:text-bottom;white-space:normal}[dir=rtl] .md-annotation{direction:rtl}code .md-annotation{font-family:var(--md-code-font-family);font-size:inherit}.md-annotation:not([hidden]){display:inline-block;line-height:1.25}.md-annotation__index{border-radius:.01px;cursor:pointer;display:inline-block;margin-left:.4ch;margin-right:.4ch;outline:none;overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;vertical-align:text-top;z-index:0}.md-annotation .md-annotation__index{transition:z-index .25s}@media screen{.md-annotation__index{width:2.2ch}[data-md-visible]>.md-annotation__index{animation:pulse 2s infinite}.md-annotation__index:before{background:var(--md-default-bg-color);-webkit-mask-image:var(--md-annotation-bg-icon);mask-image:var(--md-annotation-bg-icon)}.md-annotation__index:after,.md-annotation__index:before{content:"";height:2.2ch;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:-.1ch;width:2.2ch;z-index:-1}.md-annotation__index:after{background-color:var(--md-default-fg-color--lighter);-webkit-mask-image:var(--md-annotation-icon);mask-image:var(--md-annotation-icon);transform:scale(1.0001);transition:background-color .25s,transform .25s}.md-tooltip--active+.md-annotation__index:after{transform:rotate(45deg)}.md-tooltip--active+.md-annotation__index:after,:hover>.md-annotation__index:after{background-color:var(--md-accent-fg-color)}}.md-tooltip--active+.md-annotation__index{animation-play-state:paused;transition-duration:0ms;z-index:2}.md-annotation__index [data-md-annotation-id]{display:inline-block}@media print{.md-annotation__index [data-md-annotation-id]{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);font-weight:700;padding:0 .6ch;white-space:nowrap}.md-annotation__index [data-md-annotation-id]:after{content:attr(data-md-annotation-id)}}.md-typeset .md-annotation-list{counter-reset:xxx;list-style:none}.md-typeset .md-annotation-list li{position:relative}[dir=ltr] .md-typeset .md-annotation-list li:before{left:-2.125em}[dir=rtl] .md-typeset .md-annotation-list li:before{right:-2.125em}.md-typeset .md-annotation-list li:before{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);content:counter(xxx);counter-increment:xxx;font-size:.8875em;font-weight:700;height:2ch;line-height:1.25;min-width:2ch;padding:0 .6ch;position:absolute;text-align:center;top:.25em}:root{--md-tooltip-width:20rem;--md-tooltip-tail:0.3rem}.md-tooltip2{-webkit-backface-visibility:hidden;backface-visibility:hidden;color:var(--md-default-fg-color);font-family:var(--md-text-font-family);opacity:0;pointer-events:none;position:absolute;top:calc(var(--md-tooltip-host-y) + var(--md-tooltip-y));transform:translateY(-.4rem);transform-origin:calc(var(--md-tooltip-host-x) + var(--md-tooltip-x)) 0;transition:transform 0ms .25s,opacity .25s,z-index .25s;width:100%;z-index:0}.md-tooltip2:before{border-left:var(--md-tooltip-tail) solid #0000;border-right:var(--md-tooltip-tail) solid #0000;content:"";display:block;left:clamp(1.5 * .8rem,var(--md-tooltip-host-x) + var(--md-tooltip-x) - var(--md-tooltip-tail),100vw - 2 * var(--md-tooltip-tail) - 1.5 * .8rem);position:absolute;z-index:1}.md-tooltip2--top:before{border-top:var(--md-tooltip-tail) solid var(--md-default-bg-color);bottom:calc(var(--md-tooltip-tail)*-1 + .025rem);filter:drop-shadow(0 1px 0 hsla(0,0%,0%,.05))}.md-tooltip2--bottom:before{border-bottom:var(--md-tooltip-tail) solid var(--md-default-bg-color);filter:drop-shadow(0 -1px 0 hsla(0,0%,0%,.05));top:calc(var(--md-tooltip-tail)*-1 + .025rem)}.md-tooltip2--active{opacity:1;transform:translateY(0);transition:transform .4s cubic-bezier(0,1,.5,1),opacity .25s,z-index 0ms;z-index:2}.md-tooltip2__inner{scrollbar-gutter:stable;background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);left:clamp(.8rem,var(--md-tooltip-host-x) - .8rem,100vw - var(--md-tooltip-width) - .8rem);max-height:40vh;max-width:calc(100vw - 1.6rem);position:relative;scrollbar-width:thin}.md-tooltip2__inner::-webkit-scrollbar{height:.2rem;width:.2rem}.md-tooltip2__inner::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-tooltip2__inner::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}[role=tooltip]>.md-tooltip2__inner{font-size:.5rem;font-weight:700;left:clamp(.8rem,var(--md-tooltip-host-x) + var(--md-tooltip-x) - var(--md-tooltip-width)/2,100vw - var(--md-tooltip-width) - .8rem);max-width:min(100vw - 2 * .8rem,400px);padding:.2rem .4rem;-webkit-user-select:none;user-select:none;width:-moz-fit-content;width:fit-content}.md-tooltip2__inner.md-typeset>:first-child{margin-top:0}.md-tooltip2__inner.md-typeset>:last-child{margin-bottom:0}[dir=ltr] .md-top{margin-left:50%}[dir=rtl] .md-top{margin-right:50%}.md-top{background-color:var(--md-default-bg-color);border-radius:1.6rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color--light);cursor:pointer;display:block;font-size:.7rem;outline:none;padding:.4rem .8rem;position:fixed;top:3.2rem;transform:translate(-50%);transition:color 125ms,background-color 125ms,transform 125ms cubic-bezier(.4,0,.2,1),opacity 125ms;z-index:2}@media print{.md-top{display:none}}[dir=rtl] .md-top{transform:translate(50%)}.md-top[hidden]{opacity:0;pointer-events:none;transform:translate(-50%,.2rem);transition-duration:0ms}[dir=rtl] .md-top[hidden]{transform:translate(50%,.2rem)}.md-top:focus,.md-top:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}.md-top svg{display:inline-block;vertical-align:-.5em}@keyframes hoverfix{0%{pointer-events:none}}:root{--md-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301 191.9 288 191.9L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>')}.md-version{flex-shrink:0;font-size:.8rem;height:2.4rem}[dir=ltr] .md-version__current{margin-left:1.4rem;margin-right:.4rem}[dir=rtl] .md-version__current{margin-left:.4rem;margin-right:1.4rem}.md-version__current{color:inherit;cursor:pointer;outline:none;position:relative;top:.05rem}[dir=ltr] .md-version__current:after{margin-left:.4rem}[dir=rtl] .md-version__current:after{margin-right:.4rem}.md-version__current:after{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-image:var(--md-version-icon);mask-image:var(--md-version-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.4rem}.md-version__list{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);list-style-type:none;margin:.2rem .8rem;max-height:0;opacity:0;overflow:auto;padding:0;position:absolute;scroll-snap-type:y mandatory;top:.15rem;transition:max-height 0ms .5s,opacity .25s .25s;z-index:3}.md-version:focus-within .md-version__list,.md-version:hover .md-version__list{max-height:10rem;opacity:1;transition:max-height 0ms,opacity .25s}@media (hover:none),(pointer:coarse){.md-version:hover .md-version__list{animation:hoverfix .25s forwards}.md-version:focus-within .md-version__list{animation:none}}.md-version__item{line-height:1.8rem}[dir=ltr] .md-version__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-version__link{padding-left:1.2rem;padding-right:.6rem}.md-version__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:color .25s,background-color .25s;white-space:nowrap;width:100%}.md-version__link:focus,.md-version__link:hover{color:var(--md-accent-fg-color)}.md-version__link:focus{background-color:var(--md-default-fg-color--lightest)}:root{--md-admonition-icon--note:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m3.1 5.07c.14 0 .28.05.4.16l1.27 1.27c.23.22.23.57 0 .78l-1 1-2.05-2.05 1-1c.1-.11.24-.16.38-.16m-1.97 1.74 2.06 2.06-6.06 6.06H7.07v-2.06l6.06-6.06Z"/></svg>');--md-admonition-icon--abstract:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/></svg>');--md-admonition-icon--info:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-admonition-icon--tip:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27Z"/></svg>');--md-admonition-icon--success:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59 21 7Z"/></svg>');--md-admonition-icon--question:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10Z"/></svg>');--md-admonition-icon--warning:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21Z"/></svg>');--md-admonition-icon--failure:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>');--md-admonition-icon--danger:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2Z"/></svg>');--md-admonition-icon--bug:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 13h2v1h-2v-1m10-8v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4 9 4m-4 5h-2.2c-.2-.6-.6-1.1-1.1-1.5l1.2-1.2-.7-.7L12.8 8H12c-.2 0-.5 0-.7.1L9.9 6.6l-.8.8 1.2 1.2c-.5.3-.9.8-1.1 1.4H7v1h2v1H7v1h2v1H7v1h2.2c.4 1.2 1.5 2 2.8 2s2.4-.8 2.8-2H17v-1h-2v-1h2v-1h-2v-1h2v-1m-6 2h2v-1h-2v1Z"/></svg>');--md-admonition-icon--example:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v2h1v14a4 4 0 0 0 4 4 4 4 0 0 0 4-4V4h1V2H7m4 14c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m2-4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m1-5h-4V4h4v3Z"/></svg>');--md-admonition-icon--quote:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4Z"/></svg>')}.md-typeset .admonition,.md-typeset details{background-color:var(--md-admonition-bg-color);border:.075rem solid #448aff;border-radius:.2rem;box-shadow:var(--md-shadow-z1);color:var(--md-admonition-fg-color);display:flow-root;font-size:.64rem;margin:1.5625em 0;padding:0 .6rem;page-break-inside:avoid;transition:box-shadow 125ms}@media print{.md-typeset .admonition,.md-typeset details{box-shadow:none}}.md-typeset .admonition:focus-within,.md-typeset details:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .admonition>*,.md-typeset details>*{box-sizing:border-box}.md-typeset .admonition .admonition,.md-typeset .admonition details,.md-typeset details .admonition,.md-typeset details details{margin-bottom:1em;margin-top:1em}.md-typeset .admonition .md-typeset__scrollwrap,.md-typeset details .md-typeset__scrollwrap{margin:1em -.6rem}.md-typeset .admonition .md-typeset__table,.md-typeset details .md-typeset__table{padding:0 .6rem}.md-typeset .admonition>.tabbed-set:only-child,.md-typeset details>.tabbed-set:only-child{margin-top:0}html .md-typeset .admonition>:last-child,html .md-typeset details>:last-child{margin-bottom:.6rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{padding-left:2rem;padding-right:.6rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{padding-left:.6rem;padding-right:2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-left-width:.2rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-right-width:.2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset .admonition-title,.md-typeset summary{background-color:#448aff1a;border:none;font-weight:700;margin:0 -.6rem;padding-bottom:.4rem;padding-top:.4rem;position:relative}html .md-typeset .admonition-title:last-child,html .md-typeset summary:last-child{margin-bottom:0}[dir=ltr] .md-typeset .admonition-title:before,[dir=ltr] .md-typeset summary:before{left:.6rem}[dir=rtl] .md-typeset .admonition-title:before,[dir=rtl] .md-typeset summary:before{right:.6rem}.md-typeset .admonition-title:before,.md-typeset summary:before{background-color:#448aff;content:"";height:1rem;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;width:1rem}.md-typeset .admonition-title code,.md-typeset summary code{box-shadow:0 0 0 .05rem var(--md-default-fg-color--lightest)}.md-typeset .admonition.note,.md-typeset details.note{border-color:#448aff}.md-typeset .admonition.note:focus-within,.md-typeset details.note:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .note>.admonition-title,.md-typeset .note>summary{background-color:#448aff1a}.md-typeset .note>.admonition-title:before,.md-typeset .note>summary:before{background-color:#448aff;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note)}.md-typeset .note>.admonition-title:after,.md-typeset .note>summary:after{color:#448aff}.md-typeset .admonition.abstract,.md-typeset details.abstract{border-color:#00b0ff}.md-typeset .admonition.abstract:focus-within,.md-typeset details.abstract:focus-within{box-shadow:0 0 0 .2rem #00b0ff1a}.md-typeset .abstract>.admonition-title,.md-typeset .abstract>summary{background-color:#00b0ff1a}.md-typeset .abstract>.admonition-title:before,.md-typeset .abstract>summary:before{background-color:#00b0ff;-webkit-mask-image:var(--md-admonition-icon--abstract);mask-image:var(--md-admonition-icon--abstract)}.md-typeset .abstract>.admonition-title:after,.md-typeset .abstract>summary:after{color:#00b0ff}.md-typeset .admonition.info,.md-typeset details.info{border-color:#00b8d4}.md-typeset .admonition.info:focus-within,.md-typeset details.info:focus-within{box-shadow:0 0 0 .2rem #00b8d41a}.md-typeset .info>.admonition-title,.md-typeset .info>summary{background-color:#00b8d41a}.md-typeset .info>.admonition-title:before,.md-typeset .info>summary:before{background-color:#00b8d4;-webkit-mask-image:var(--md-admonition-icon--info);mask-image:var(--md-admonition-icon--info)}.md-typeset .info>.admonition-title:after,.md-typeset .info>summary:after{color:#00b8d4}.md-typeset .admonition.tip,.md-typeset details.tip{border-color:#00bfa5}.md-typeset .admonition.tip:focus-within,.md-typeset details.tip:focus-within{box-shadow:0 0 0 .2rem #00bfa51a}.md-typeset .tip>.admonition-title,.md-typeset .tip>summary{background-color:#00bfa51a}.md-typeset .tip>.admonition-title:before,.md-typeset .tip>summary:before{background-color:#00bfa5;-webkit-mask-image:var(--md-admonition-icon--tip);mask-image:var(--md-admonition-icon--tip)}.md-typeset .tip>.admonition-title:after,.md-typeset .tip>summary:after{color:#00bfa5}.md-typeset .admonition.success,.md-typeset details.success{border-color:#00c853}.md-typeset .admonition.success:focus-within,.md-typeset details.success:focus-within{box-shadow:0 0 0 .2rem #00c8531a}.md-typeset .success>.admonition-title,.md-typeset .success>summary{background-color:#00c8531a}.md-typeset .success>.admonition-title:before,.md-typeset .success>summary:before{background-color:#00c853;-webkit-mask-image:var(--md-admonition-icon--success);mask-image:var(--md-admonition-icon--success)}.md-typeset .success>.admonition-title:after,.md-typeset .success>summary:after{color:#00c853}.md-typeset .admonition.question,.md-typeset details.question{border-color:#64dd17}.md-typeset .admonition.question:focus-within,.md-typeset details.question:focus-within{box-shadow:0 0 0 .2rem #64dd171a}.md-typeset .question>.admonition-title,.md-typeset .question>summary{background-color:#64dd171a}.md-typeset .question>.admonition-title:before,.md-typeset .question>summary:before{background-color:#64dd17;-webkit-mask-image:var(--md-admonition-icon--question);mask-image:var(--md-admonition-icon--question)}.md-typeset .question>.admonition-title:after,.md-typeset .question>summary:after{color:#64dd17}.md-typeset .admonition.warning,.md-typeset details.warning{border-color:#ff9100}.md-typeset .admonition.warning:focus-within,.md-typeset details.warning:focus-within{box-shadow:0 0 0 .2rem #ff91001a}.md-typeset .warning>.admonition-title,.md-typeset .warning>summary{background-color:#ff91001a}.md-typeset .warning>.admonition-title:before,.md-typeset .warning>summary:before{background-color:#ff9100;-webkit-mask-image:var(--md-admonition-icon--warning);mask-image:var(--md-admonition-icon--warning)}.md-typeset .warning>.admonition-title:after,.md-typeset .warning>summary:after{color:#ff9100}.md-typeset .admonition.failure,.md-typeset details.failure{border-color:#ff5252}.md-typeset .admonition.failure:focus-within,.md-typeset details.failure:focus-within{box-shadow:0 0 0 .2rem #ff52521a}.md-typeset .failure>.admonition-title,.md-typeset .failure>summary{background-color:#ff52521a}.md-typeset .failure>.admonition-title:before,.md-typeset .failure>summary:before{background-color:#ff5252;-webkit-mask-image:var(--md-admonition-icon--failure);mask-image:var(--md-admonition-icon--failure)}.md-typeset .failure>.admonition-title:after,.md-typeset .failure>summary:after{color:#ff5252}.md-typeset .admonition.danger,.md-typeset details.danger{border-color:#ff1744}.md-typeset .admonition.danger:focus-within,.md-typeset details.danger:focus-within{box-shadow:0 0 0 .2rem #ff17441a}.md-typeset .danger>.admonition-title,.md-typeset .danger>summary{background-color:#ff17441a}.md-typeset .danger>.admonition-title:before,.md-typeset .danger>summary:before{background-color:#ff1744;-webkit-mask-image:var(--md-admonition-icon--danger);mask-image:var(--md-admonition-icon--danger)}.md-typeset .danger>.admonition-title:after,.md-typeset .danger>summary:after{color:#ff1744}.md-typeset .admonition.bug,.md-typeset details.bug{border-color:#f50057}.md-typeset .admonition.bug:focus-within,.md-typeset details.bug:focus-within{box-shadow:0 0 0 .2rem #f500571a}.md-typeset .bug>.admonition-title,.md-typeset .bug>summary{background-color:#f500571a}.md-typeset .bug>.admonition-title:before,.md-typeset .bug>summary:before{background-color:#f50057;-webkit-mask-image:var(--md-admonition-icon--bug);mask-image:var(--md-admonition-icon--bug)}.md-typeset .bug>.admonition-title:after,.md-typeset .bug>summary:after{color:#f50057}.md-typeset .admonition.example,.md-typeset details.example{border-color:#7c4dff}.md-typeset .admonition.example:focus-within,.md-typeset details.example:focus-within{box-shadow:0 0 0 .2rem #7c4dff1a}.md-typeset .example>.admonition-title,.md-typeset .example>summary{background-color:#7c4dff1a}.md-typeset .example>.admonition-title:before,.md-typeset .example>summary:before{background-color:#7c4dff;-webkit-mask-image:var(--md-admonition-icon--example);mask-image:var(--md-admonition-icon--example)}.md-typeset .example>.admonition-title:after,.md-typeset .example>summary:after{color:#7c4dff}.md-typeset .admonition.quote,.md-typeset details.quote{border-color:#9e9e9e}.md-typeset .admonition.quote:focus-within,.md-typeset details.quote:focus-within{box-shadow:0 0 0 .2rem #9e9e9e1a}.md-typeset .quote>.admonition-title,.md-typeset .quote>summary{background-color:#9e9e9e1a}.md-typeset .quote>.admonition-title:before,.md-typeset .quote>summary:before{background-color:#9e9e9e;-webkit-mask-image:var(--md-admonition-icon--quote);mask-image:var(--md-admonition-icon--quote)}.md-typeset .quote>.admonition-title:after,.md-typeset .quote>summary:after{color:#9e9e9e}:root{--md-footnotes-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2Z"/></svg>')}.md-typeset .footnote{color:var(--md-default-fg-color--light);font-size:.64rem}[dir=ltr] .md-typeset .footnote>ol{margin-left:0}[dir=rtl] .md-typeset .footnote>ol{margin-right:0}.md-typeset .footnote>ol>li{transition:color 125ms}.md-typeset .footnote>ol>li:target{color:var(--md-default-fg-color)}.md-typeset .footnote>ol>li:focus-within .footnote-backref{opacity:1;transform:translateX(0);transition:none}.md-typeset .footnote>ol>li:hover .footnote-backref,.md-typeset .footnote>ol>li:target .footnote-backref{opacity:1;transform:translateX(0)}.md-typeset .footnote>ol>li>:first-child{margin-top:0}.md-typeset .footnote-ref{font-size:.75em;font-weight:700}html .md-typeset .footnote-ref{outline-offset:.1rem}.md-typeset [id^="fnref:"]:target>.footnote-ref{outline:auto}.md-typeset .footnote-backref{color:var(--md-typeset-a-color);display:inline-block;font-size:0;opacity:0;transform:translateX(.25rem);transition:color .25s,transform .25s .25s,opacity 125ms .25s;vertical-align:text-bottom}@media print{.md-typeset .footnote-backref{color:var(--md-typeset-a-color);opacity:1;transform:translateX(0)}}[dir=rtl] .md-typeset .footnote-backref{transform:translateX(-.25rem)}.md-typeset .footnote-backref:hover{color:var(--md-accent-fg-color)}.md-typeset .footnote-backref:before{background-color:currentcolor;content:"";display:inline-block;height:.8rem;-webkit-mask-image:var(--md-footnotes-icon);mask-image:var(--md-footnotes-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.8rem}[dir=rtl] .md-typeset .footnote-backref:before svg{transform:scaleX(-1)}[dir=ltr] .md-typeset .headerlink{margin-left:.5rem}[dir=rtl] .md-typeset .headerlink{margin-right:.5rem}.md-typeset .headerlink{color:var(--md-default-fg-color--lighter);display:inline-block;opacity:0;transition:color .25s,opacity 125ms}@media print{.md-typeset .headerlink{display:none}}.md-typeset .headerlink:focus,.md-typeset :hover>.headerlink,.md-typeset :target>.headerlink{opacity:1;transition:color .25s,opacity 125ms}.md-typeset .headerlink:focus,.md-typeset .headerlink:hover,.md-typeset :target>.headerlink{color:var(--md-accent-fg-color)}.md-typeset :target{--md-scroll-margin:3.6rem;--md-scroll-offset:0rem;scroll-margin-top:calc(var(--md-scroll-margin) - var(--md-scroll-offset))}@media screen and (min-width:76.25em){.md-header--lifted~.md-container .md-typeset :target{--md-scroll-margin:6rem}}.md-typeset h1:target,.md-typeset h2:target,.md-typeset h3:target{--md-scroll-offset:0.2rem}.md-typeset h4:target{--md-scroll-offset:0.15rem}.md-typeset div.arithmatex{overflow:auto}@media screen and (max-width:44.984375em){.md-typeset div.arithmatex{margin:0 -.8rem}.md-typeset div.arithmatex>*{width:min-content}}.md-typeset div.arithmatex>*{margin-left:auto!important;margin-right:auto!important;padding:0 .8rem;touch-action:auto}.md-typeset div.arithmatex>* mjx-container{margin:0!important}.md-typeset div.arithmatex mjx-assistive-mml{height:0}.md-typeset del.critic{background-color:var(--md-typeset-del-color)}.md-typeset del.critic,.md-typeset ins.critic{-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-typeset ins.critic{background-color:var(--md-typeset-ins-color)}.md-typeset .critic.comment{-webkit-box-decoration-break:clone;box-decoration-break:clone;color:var(--md-code-hl-comment-color)}.md-typeset .critic.comment:before{content:"/* "}.md-typeset .critic.comment:after{content:" */"}.md-typeset .critic.block{box-shadow:none;display:block;margin:1em 0;overflow:auto;padding-left:.8rem;padding-right:.8rem}.md-typeset .critic.block>:first-child{margin-top:.5em}.md-typeset .critic.block>:last-child{margin-bottom:.5em}:root{--md-details-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset details{display:flow-root;overflow:visible;padding-top:0}.md-typeset details[open]>summary:after{transform:rotate(90deg)}.md-typeset details:not([open]){box-shadow:none;padding-bottom:0}.md-typeset details:not([open])>summary{border-radius:.1rem}[dir=ltr] .md-typeset summary{padding-right:1.8rem}[dir=rtl] .md-typeset summary{padding-left:1.8rem}[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset summary{cursor:pointer;display:block;min-height:1rem;overflow:hidden}.md-typeset summary.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset summary:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[dir=ltr] .md-typeset summary:after{right:.4rem}[dir=rtl] .md-typeset summary:after{left:.4rem}.md-typeset summary:after{background-color:currentcolor;content:"";height:1rem;-webkit-mask-image:var(--md-details-icon);mask-image:var(--md-details-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;transform:rotate(0deg);transition:transform .25s;width:1rem}[dir=rtl] .md-typeset summary:after{transform:rotate(180deg)}.md-typeset summary::marker{display:none}.md-typeset summary::-webkit-details-marker{display:none}.md-typeset .emojione,.md-typeset .gemoji,.md-typeset .twemoji{--md-icon-size:1.125em;display:inline-flex;height:var(--md-icon-size);vertical-align:text-top}.md-typeset .emojione svg,.md-typeset .gemoji svg,.md-typeset .twemoji svg{fill:currentcolor;max-height:100%;width:var(--md-icon-size)}.md-typeset .lg,.md-typeset .xl,.md-typeset .xxl,.md-typeset .xxxl{vertical-align:text-bottom}.md-typeset .middle{vertical-align:middle}.md-typeset .lg{--md-icon-size:1.5em}.md-typeset .xl{--md-icon-size:2.25em}.md-typeset .xxl{--md-icon-size:3em}.md-typeset .xxxl{--md-icon-size:4em}.highlight .o,.highlight .ow{color:var(--md-code-hl-operator-color)}.highlight .p{color:var(--md-code-hl-punctuation-color)}.highlight .cpf,.highlight .l,.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .si,.highlight .ss{color:var(--md-code-hl-string-color)}.highlight .cp,.highlight .se,.highlight .sh,.highlight .sr,.highlight .sx{color:var(--md-code-hl-special-color)}.highlight .il,.highlight .m,.highlight .mb,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:var(--md-code-hl-number-color)}.highlight .k,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kt{color:var(--md-code-hl-keyword-color)}.highlight .kc,.highlight .n{color:var(--md-code-hl-name-color)}.highlight .bp,.highlight .nb,.highlight .no{color:var(--md-code-hl-constant-color)}.highlight .nc,.highlight .ne,.highlight .nf,.highlight .nn{color:var(--md-code-hl-function-color)}.highlight .nd,.highlight .ni,.highlight .nl,.highlight .nt{color:var(--md-code-hl-keyword-color)}.highlight .c,.highlight .c1,.highlight .ch,.highlight .cm,.highlight .cs,.highlight .sd{color:var(--md-code-hl-comment-color)}.highlight .na,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:var(--md-code-hl-variable-color)}.highlight .ge,.highlight .gh,.highlight .go,.highlight .gp,.highlight .gr,.highlight .gs,.highlight .gt,.highlight .gu{color:var(--md-code-hl-generic-color)}.highlight .gd,.highlight .gi{border-radius:.1rem;margin:0 -.125em;padding:0 .125em}.highlight .gd{background-color:var(--md-typeset-del-color)}.highlight .gi{background-color:var(--md-typeset-ins-color)}.highlight .hll{background-color:var(--md-code-hl-color--light);box-shadow:2px 0 0 0 var(--md-code-hl-color) inset;display:block;margin:0 -1.1764705882em;padding:0 1.1764705882em}.highlight span.filename{background-color:var(--md-code-bg-color);border-bottom:.05rem solid var(--md-default-fg-color--lightest);border-top-left-radius:.1rem;border-top-right-radius:.1rem;display:flow-root;font-size:.85em;font-weight:700;margin-top:1em;padding:.6617647059em 1.1764705882em;position:relative}.highlight span.filename+pre{margin-top:0}.highlight span.filename+pre>code{border-top-left-radius:0;border-top-right-radius:0}.highlight [data-linenos]:before{background-color:var(--md-code-bg-color);box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;color:var(--md-default-fg-color--light);content:attr(data-linenos);float:left;left:-1.1764705882em;margin-left:-1.1764705882em;margin-right:1.1764705882em;padding-left:1.1764705882em;position:sticky;-webkit-user-select:none;user-select:none;z-index:3}.highlight code a[id]{position:absolute;visibility:hidden}.highlight code[data-md-copying] .hll{display:contents}.highlight code[data-md-copying] .md-annotation{display:none}.highlighttable{display:flow-root}.highlighttable tbody,.highlighttable td{display:block;padding:0}.highlighttable tr{display:flex}.highlighttable pre{margin:0}.highlighttable th.filename{flex-grow:1;padding:0;text-align:left}.highlighttable th.filename span.filename{margin-top:0}.highlighttable .linenos{background-color:var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-top-left-radius:.1rem;font-size:.85em;padding:.7720588235em 0 .7720588235em 1.1764705882em;-webkit-user-select:none;user-select:none}.highlighttable .linenodiv{box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;padding-right:.5882352941em}.highlighttable .linenodiv pre{color:var(--md-default-fg-color--light);text-align:right}.highlighttable .code{flex:1;min-width:0}.linenodiv a{color:inherit}.md-typeset .highlighttable{direction:ltr;margin:1em 0}.md-typeset .highlighttable>tbody>tr>.code>div>pre>code{border-bottom-left-radius:0;border-top-left-radius:0}.md-typeset .highlight+.result{border:.05rem solid var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-bottom-right-radius:.1rem;border-top-width:.1rem;margin-top:-1.125em;overflow:visible;padding:0 1em}.md-typeset .highlight+.result:after{clear:both;content:"";display:block}@media screen and (max-width:44.984375em){.md-content__inner>.highlight{margin:1em -.8rem}.md-content__inner>.highlight>.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.code>div>pre>code,.md-content__inner>.highlight>.highlighttable>tbody>tr>.filename span.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.linenos,.md-content__inner>.highlight>pre>code{border-radius:0}.md-content__inner>.highlight+.result{border-left-width:0;border-radius:0;border-right-width:0;margin-left:-.8rem;margin-right:-.8rem}}.md-typeset .keys kbd:after,.md-typeset .keys kbd:before{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;color:inherit;margin:0;position:relative}.md-typeset .keys span{color:var(--md-default-fg-color--light);padding:0 .2em}.md-typeset .keys .key-alt:before,.md-typeset .keys .key-left-alt:before,.md-typeset .keys .key-right-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-command:before,.md-typeset .keys .key-left-command:before,.md-typeset .keys .key-right-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-control:before,.md-typeset .keys .key-left-control:before,.md-typeset .keys .key-right-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-left-meta:before,.md-typeset .keys .key-meta:before,.md-typeset .keys .key-right-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-left-option:before,.md-typeset .keys .key-option:before,.md-typeset .keys .key-right-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-left-shift:before,.md-typeset .keys .key-right-shift:before,.md-typeset .keys .key-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-left-super:before,.md-typeset .keys .key-right-super:before,.md-typeset .keys .key-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-left-windows:before,.md-typeset .keys .key-right-windows:before,.md-typeset .keys .key-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-arrow-down:before{content:"↓";padding-right:.4em}.md-typeset .keys .key-arrow-left:before{content:"←";padding-right:.4em}.md-typeset .keys .key-arrow-right:before{content:"→";padding-right:.4em}.md-typeset .keys .key-arrow-up:before{content:"↑";padding-right:.4em}.md-typeset .keys .key-backspace:before{content:"⌫";padding-right:.4em}.md-typeset .keys .key-backtab:before{content:"⇤";padding-right:.4em}.md-typeset .keys .key-caps-lock:before{content:"⇪";padding-right:.4em}.md-typeset .keys .key-clear:before{content:"⌧";padding-right:.4em}.md-typeset .keys .key-context-menu:before{content:"☰";padding-right:.4em}.md-typeset .keys .key-delete:before{content:"⌦";padding-right:.4em}.md-typeset .keys .key-eject:before{content:"⏏";padding-right:.4em}.md-typeset .keys .key-end:before{content:"⤓";padding-right:.4em}.md-typeset .keys .key-escape:before{content:"⎋";padding-right:.4em}.md-typeset .keys .key-home:before{content:"⤒";padding-right:.4em}.md-typeset .keys .key-insert:before{content:"⎀";padding-right:.4em}.md-typeset .keys .key-page-down:before{content:"⇟";padding-right:.4em}.md-typeset .keys .key-page-up:before{content:"⇞";padding-right:.4em}.md-typeset .keys .key-print-screen:before{content:"⎙";padding-right:.4em}.md-typeset .keys .key-tab:after{content:"⇥";padding-left:.4em}.md-typeset .keys .key-num-enter:after{content:"⌤";padding-left:.4em}.md-typeset .keys .key-enter:after{content:"⏎";padding-left:.4em}:root{--md-tabbed-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 16.58 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42Z"/></svg>');--md-tabbed-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset .tabbed-set{border-radius:.1rem;display:flex;flex-flow:column wrap;margin:1em 0;position:relative}.md-typeset .tabbed-set>input{height:0;opacity:0;position:absolute;width:0}.md-typeset .tabbed-set>input:target{--md-scroll-offset:0.625em}.md-typeset .tabbed-set>input.focus-visible~.tabbed-labels:before{background-color:var(--md-accent-fg-color)}.md-typeset .tabbed-labels{-ms-overflow-style:none;box-shadow:0 -.05rem var(--md-default-fg-color--lightest) inset;display:flex;max-width:100%;overflow:auto;scrollbar-width:none}@media print{.md-typeset .tabbed-labels{display:contents}}@media screen{.js .md-typeset .tabbed-labels{position:relative}.js .md-typeset .tabbed-labels:before{background:var(--md-default-fg-color);bottom:0;content:"";display:block;height:2px;left:0;position:absolute;transform:translateX(var(--md-indicator-x));transition:width 225ms,background-color .25s,transform .25s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--md-indicator-width)}}.md-typeset .tabbed-labels::-webkit-scrollbar{display:none}.md-typeset .tabbed-labels>label{border-bottom:.1rem solid #0000;border-radius:.1rem .1rem 0 0;color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;font-size:.64rem;font-weight:700;padding:.78125em 1.25em .625em;scroll-margin-inline-start:1rem;transition:background-color .25s,color .25s;white-space:nowrap;width:auto}@media print{.md-typeset .tabbed-labels>label:first-child{order:1}.md-typeset .tabbed-labels>label:nth-child(2){order:2}.md-typeset .tabbed-labels>label:nth-child(3){order:3}.md-typeset .tabbed-labels>label:nth-child(4){order:4}.md-typeset .tabbed-labels>label:nth-child(5){order:5}.md-typeset .tabbed-labels>label:nth-child(6){order:6}.md-typeset .tabbed-labels>label:nth-child(7){order:7}.md-typeset .tabbed-labels>label:nth-child(8){order:8}.md-typeset .tabbed-labels>label:nth-child(9){order:9}.md-typeset .tabbed-labels>label:nth-child(10){order:10}.md-typeset .tabbed-labels>label:nth-child(11){order:11}.md-typeset .tabbed-labels>label:nth-child(12){order:12}.md-typeset .tabbed-labels>label:nth-child(13){order:13}.md-typeset .tabbed-labels>label:nth-child(14){order:14}.md-typeset .tabbed-labels>label:nth-child(15){order:15}.md-typeset .tabbed-labels>label:nth-child(16){order:16}.md-typeset .tabbed-labels>label:nth-child(17){order:17}.md-typeset .tabbed-labels>label:nth-child(18){order:18}.md-typeset .tabbed-labels>label:nth-child(19){order:19}.md-typeset .tabbed-labels>label:nth-child(20){order:20}}.md-typeset .tabbed-labels>label:hover{color:var(--md-default-fg-color)}.md-typeset .tabbed-labels>label>[href]:first-child{color:inherit}.md-typeset .tabbed-labels--linked>label{padding:0}.md-typeset .tabbed-labels--linked>label>a{display:block;padding:.78125em 1.25em .625em}.md-typeset .tabbed-content{width:100%}@media print{.md-typeset .tabbed-content{display:contents}}.md-typeset .tabbed-block{display:none}@media print{.md-typeset .tabbed-block{display:block}.md-typeset .tabbed-block:first-child{order:1}.md-typeset .tabbed-block:nth-child(2){order:2}.md-typeset .tabbed-block:nth-child(3){order:3}.md-typeset .tabbed-block:nth-child(4){order:4}.md-typeset .tabbed-block:nth-child(5){order:5}.md-typeset .tabbed-block:nth-child(6){order:6}.md-typeset .tabbed-block:nth-child(7){order:7}.md-typeset .tabbed-block:nth-child(8){order:8}.md-typeset .tabbed-block:nth-child(9){order:9}.md-typeset .tabbed-block:nth-child(10){order:10}.md-typeset .tabbed-block:nth-child(11){order:11}.md-typeset .tabbed-block:nth-child(12){order:12}.md-typeset .tabbed-block:nth-child(13){order:13}.md-typeset .tabbed-block:nth-child(14){order:14}.md-typeset .tabbed-block:nth-child(15){order:15}.md-typeset .tabbed-block:nth-child(16){order:16}.md-typeset .tabbed-block:nth-child(17){order:17}.md-typeset .tabbed-block:nth-child(18){order:18}.md-typeset .tabbed-block:nth-child(19){order:19}.md-typeset .tabbed-block:nth-child(20){order:20}}.md-typeset .tabbed-block>.highlight:first-child>pre,.md-typeset .tabbed-block>pre:first-child{margin:0}.md-typeset .tabbed-block>.highlight:first-child>pre>code,.md-typeset .tabbed-block>pre:first-child>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child>.filename{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable{margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.filename span.filename,.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.linenos{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.code>div>pre>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child+.result{margin-top:-.125em}.md-typeset .tabbed-block>.tabbed-set{margin:0}.md-typeset .tabbed-button{align-self:center;border-radius:100%;color:var(--md-default-fg-color--light);cursor:pointer;display:block;height:.9rem;margin-top:.1rem;pointer-events:auto;transition:background-color .25s;width:.9rem}.md-typeset .tabbed-button:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-typeset .tabbed-button:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-tabbed-icon--prev);mask-image:var(--md-tabbed-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color .25s,transform .25s;width:100%}.md-typeset .tabbed-control{background:linear-gradient(to right,var(--md-default-bg-color) 60%,#0000);display:flex;height:1.9rem;justify-content:start;pointer-events:none;position:absolute;transition:opacity 125ms;width:1.2rem}[dir=rtl] .md-typeset .tabbed-control{transform:rotate(180deg)}.md-typeset .tabbed-control[hidden]{opacity:0}.md-typeset .tabbed-control--next{background:linear-gradient(to left,var(--md-default-bg-color) 60%,#0000);justify-content:end;right:0}.md-typeset .tabbed-control--next .tabbed-button:after{-webkit-mask-image:var(--md-tabbed-icon--next);mask-image:var(--md-tabbed-icon--next)}@media screen and (max-width:44.984375em){[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels{padding-right:.8rem}.md-content__inner>.tabbed-set .tabbed-labels{margin:0 -.8rem;max-width:100vw;scroll-padding-inline-start:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-left:.8rem}.md-content__inner>.tabbed-set .tabbed-labels:after{content:""}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-right:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-left:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-right:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{width:2rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-left:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-right:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-left:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{width:2rem}}@media screen{.md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){color:var(--md-default-fg-color)}.md-typeset .no-js .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .no-js .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .no-js .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .no-js .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .no-js .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .no-js .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .no-js .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .no-js .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .no-js .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .no-js .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .no-js .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .no-js .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .no-js .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .no-js .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .no-js .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .no-js .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .no-js .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .no-js .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .no-js .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .no-js .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),.no-js .md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.no-js .md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.no-js .md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.no-js .md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.no-js .md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.no-js .md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.no-js .md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.no-js .md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.no-js .md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.no-js .md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.no-js .md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.no-js .md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.no-js .md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.no-js .md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.no-js .md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.no-js .md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.no-js .md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.no-js .md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.no-js .md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.no-js .md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){border-color:var(--md-default-fg-color)}}.md-typeset .tabbed-set>input:first-child.focus-visible~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10).focus-visible~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11).focus-visible~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12).focus-visible~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13).focus-visible~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14).focus-visible~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15).focus-visible~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16).focus-visible~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17).focus-visible~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18).focus-visible~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19).focus-visible~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2).focus-visible~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20).focus-visible~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3).focus-visible~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4).focus-visible~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5).focus-visible~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6).focus-visible~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7).focus-visible~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8).focus-visible~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9).focus-visible~.tabbed-labels>:nth-child(9){color:var(--md-accent-fg-color)}.md-typeset .tabbed-set>input:first-child:checked~.tabbed-content>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-content>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-content>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-content>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-content>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-content>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-content>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-content>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-content>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-content>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-content>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-content>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-content>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-content>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-content>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-content>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-content>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-content>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-content>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-content>:nth-child(9){display:block}:root{--md-tasklist-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>');--md-tasklist-icon--checked:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>')}.md-typeset .task-list-item{list-style-type:none;position:relative}[dir=ltr] .md-typeset .task-list-item [type=checkbox]{left:-2em}[dir=rtl] .md-typeset .task-list-item [type=checkbox]{right:-2em}.md-typeset .task-list-item [type=checkbox]{position:absolute;top:.45em}.md-typeset .task-list-control [type=checkbox]{opacity:0;z-index:-1}[dir=ltr] .md-typeset .task-list-indicator:before{left:-1.5em}[dir=rtl] .md-typeset .task-list-indicator:before{right:-1.5em}.md-typeset .task-list-indicator:before{background-color:var(--md-default-fg-color--lightest);content:"";height:1.25em;-webkit-mask-image:var(--md-tasklist-icon);mask-image:var(--md-tasklist-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.15em;width:1.25em}.md-typeset [type=checkbox]:checked+.task-list-indicator:before{background-color:#00e676;-webkit-mask-image:var(--md-tasklist-icon--checked);mask-image:var(--md-tasklist-icon--checked)}:root>*{--md-mermaid-font-family:var(--md-text-font-family),sans-serif;--md-mermaid-edge-color:var(--md-code-fg-color);--md-mermaid-node-bg-color:var(--md-accent-fg-color--transparent);--md-mermaid-node-fg-color:var(--md-accent-fg-color);--md-mermaid-label-bg-color:var(--md-default-bg-color);--md-mermaid-label-fg-color:var(--md-code-fg-color);--md-mermaid-sequence-actor-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actor-fg-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-actor-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-actor-line-color:var(--md-default-fg-color--lighter);--md-mermaid-sequence-actorman-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actorman-line-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-box-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-box-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-label-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-label-fg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-loop-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-loop-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-loop-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-message-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-message-line-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-note-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-border-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-number-bg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-number-fg-color:var(--md-accent-bg-color)}.mermaid{line-height:normal;margin:1em 0}.md-typeset .grid{grid-gap:.4rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));margin:1em 0}.md-typeset .grid.cards>ol,.md-typeset .grid.cards>ul{display:contents}.md-typeset .grid.cards>ol>li,.md-typeset .grid.cards>ul>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>ol>li:focus-within,.md-typeset .grid.cards>ol>li:hover,.md-typeset .grid.cards>ul>li:focus-within,.md-typeset .grid.cards>ul>li:hover,.md-typeset .grid>.card:focus-within,.md-typeset .grid>.card:hover{border-color:#0000;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>ol>li>hr,.md-typeset .grid.cards>ul>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>ol>li>:first-child,.md-typeset .grid.cards>ul>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>ol>li>:last-child,.md-typeset .grid.cards>ul>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid>*,.md-typeset .grid>.admonition,.md-typeset .grid>.highlight>*,.md-typeset .grid>.highlighttable,.md-typeset .grid>.md-typeset details,.md-typeset .grid>details,.md-typeset .grid>pre{margin-bottom:0;margin-top:0}.md-typeset .grid>.highlight>pre:only-child,.md-typeset .grid>.highlight>pre>code,.md-typeset .grid>.highlighttable,.md-typeset .grid>.highlighttable>tbody,.md-typeset .grid>.highlighttable>tbody>tr,.md-typeset .grid>.highlighttable>tbody>tr>.code,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre>code{height:100%}.md-typeset .grid>.tabbed-set{margin-bottom:0;margin-top:0}@media screen and (min-width:45em){[dir=ltr] .md-typeset .inline{float:left}[dir=rtl] .md-typeset .inline{float:right}[dir=ltr] .md-typeset .inline{margin-right:.8rem}[dir=rtl] .md-typeset .inline{margin-left:.8rem}.md-typeset .inline{margin-bottom:.8rem;margin-top:0;width:11.7rem}[dir=ltr] .md-typeset .inline.end{float:right}[dir=rtl] .md-typeset .inline.end{float:left}[dir=ltr] .md-typeset .inline.end{margin-left:.8rem;margin-right:0}[dir=rtl] .md-typeset .inline.end{margin-left:0;margin-right:.8rem}}
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/assets/stylesheets/main.66ac8b77.min.css.map b/content/references/java-chassis/zh_CN/assets/stylesheets/main.66ac8b77.min.css.map
new file mode 100644
index 0000000..315eaed
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/assets/stylesheets/main.66ac8b77.min.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["src/templates/assets/stylesheets/main/components/_meta.scss","../../../../src/templates/assets/stylesheets/main.scss","src/templates/assets/stylesheets/main/_resets.scss","src/templates/assets/stylesheets/main/_colors.scss","src/templates/assets/stylesheets/main/_icons.scss","src/templates/assets/stylesheets/main/_typeset.scss","src/templates/assets/stylesheets/utilities/_break.scss","src/templates/assets/stylesheets/main/components/_author.scss","src/templates/assets/stylesheets/main/components/_banner.scss","src/templates/assets/stylesheets/main/components/_base.scss","src/templates/assets/stylesheets/main/components/_clipboard.scss","src/templates/assets/stylesheets/main/components/_code.scss","src/templates/assets/stylesheets/main/components/_consent.scss","src/templates/assets/stylesheets/main/components/_content.scss","src/templates/assets/stylesheets/main/components/_dialog.scss","src/templates/assets/stylesheets/main/components/_feedback.scss","src/templates/assets/stylesheets/main/components/_footer.scss","src/templates/assets/stylesheets/main/components/_form.scss","src/templates/assets/stylesheets/main/components/_header.scss","node_modules/material-design-color/material-color.scss","src/templates/assets/stylesheets/main/components/_nav.scss","src/templates/assets/stylesheets/main/components/_pagination.scss","src/templates/assets/stylesheets/main/components/_post.scss","src/templates/assets/stylesheets/main/components/_progress.scss","src/templates/assets/stylesheets/main/components/_search.scss","src/templates/assets/stylesheets/main/components/_select.scss","src/templates/assets/stylesheets/main/components/_sidebar.scss","src/templates/assets/stylesheets/main/components/_source.scss","src/templates/assets/stylesheets/main/components/_status.scss","src/templates/assets/stylesheets/main/components/_tabs.scss","src/templates/assets/stylesheets/main/components/_tag.scss","src/templates/assets/stylesheets/main/components/_tooltip.scss","src/templates/assets/stylesheets/main/components/_tooltip2.scss","src/templates/assets/stylesheets/main/components/_top.scss","src/templates/assets/stylesheets/main/components/_version.scss","src/templates/assets/stylesheets/main/extensions/markdown/_admonition.scss","src/templates/assets/stylesheets/main/extensions/markdown/_footnotes.scss","src/templates/assets/stylesheets/main/extensions/markdown/_toc.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_critic.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_details.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_emoji.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_highlight.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_keys.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tasklist.scss","src/templates/assets/stylesheets/main/integrations/_mermaid.scss","src/templates/assets/stylesheets/main/modifiers/_grid.scss","src/templates/assets/stylesheets/main/modifiers/_inline.scss"],"names":[],"mappings":"AA0CE,gBCqxCF,CCnyCA,KAEE,6BAAA,CAAA,0BAAA,CAAA,qBAAA,CADA,qBDzBF,CC8BA,iBAGE,kBD3BF,CC8BE,gCANF,iBAOI,yBDzBF,CACF,CC6BA,KACE,QD1BF,CC8BA,qBAIE,uCD3BF,CC+BA,EACE,aAAA,CACA,oBD5BF,CCgCA,GAME,QAAA,CALA,kBAAA,CACA,aAAA,CACA,aAAA,CAEA,gBAAA,CADA,SD3BF,CCiCA,MACE,aD9BF,CCkCA,QAEE,eD/BF,CCmCA,IACE,iBDhCF,CCoCA,MAEE,uBAAA,CADA,gBDhCF,CCqCA,MAEE,eAAA,CACA,kBDlCF,CCsCA,OAKE,gBAAA,CACA,QAAA,CAHA,mBAAA,CACA,iBAAA,CAFA,QAAA,CADA,SD9BF,CCuCA,MACE,QAAA,CACA,YDpCF,CErDA,MAIE,6BAAA,CACA,oCAAA,CACA,mCAAA,CACA,0BAAA,CACA,sCAAA,CAGA,4BAAA,CACA,2CAAA,CACA,yBAAA,CACA,qCFmDF,CE7CA,+BAIE,kBF6CF,CE1CE,oHAEE,YF4CJ,CEnCA,qCAIE,eAAA,CAGA,+BAAA,CACA,sCAAA,CACA,wCAAA,CACA,yCAAA,CACA,0BAAA,CACA,sCAAA,CACA,wCAAA,CACA,yCAAA,CAG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AKE,wDAAA,CACA,mBAAA,CAJA,aAAA,CAEA,QAAA,CADA,aAAA,CAIA,sC9C8oJN,C8CzoJM,iOACE,kBAAA,CACA,8B9C4oJR,C8CxoJM,6FACE,iBAAA,CAAA,c9C2oJR,C8CvoJM,2HACE,Y9C0oJR,C8CtoJM,wHACE,e9CyoJR,C8C1nJI,yMAGE,eAAA,CAAA,Y9CkoJN,C8CpnJI,ybAOE,W9C0nJN,C8CtnJI,8BACE,eAAA,CAAA,Y9CwnJN,CKpjJI,mC0ChKA,8BACE,U/C4tJJ,C+C7tJE,8BACE,W/C4tJJ,C+C7tJE,8BAGE,kB/C0tJJ,C+C7tJE,8BAGE,iB/C0tJJ,C+C7tJE,oBAKE,mBAAA,CADA,YAAA,CAFA,a/C2tJJ,C+CrtJI,kCACE,W/CwtJN,C+CztJI,kCACE,U/CwtJN,C+CztJI,kCAEE,iBAAA,CAAA,c/CutJN,C+CztJI,kCAEE,aAAA,CAAA,kB/CutJN,CACF","file":"main.css"}
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/assets/stylesheets/main.7e359304.min.css b/content/references/java-chassis/zh_CN/assets/stylesheets/main.7e359304.min.css
deleted file mode 100644
index e5a7e3a..0000000
--- a/content/references/java-chassis/zh_CN/assets/stylesheets/main.7e359304.min.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box}*,:after,:before{box-sizing:inherit}@media (prefers-reduced-motion){*,:after,:before{transition:none!important}}body{margin:0}a,button,input,label{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}hr{border:0;box-sizing:initial;display:block;height:.05rem;overflow:visible;padding:0}small{font-size:80%}sub,sup{line-height:1em}img{border-style:none}table{border-collapse:initial;border-spacing:0}td,th{font-weight:400;vertical-align:top}button{background:#0000;border:0;font-family:inherit;font-size:inherit;margin:0;padding:0}input{border:0;outline:none}:root{--md-primary-fg-color:#4051b5;--md-primary-fg-color--light:#5d6cc0;--md-primary-fg-color--dark:#303fa1;--md-primary-bg-color:#fff;--md-primary-bg-color--light:#ffffffb3;--md-accent-fg-color:#526cfe;--md-accent-fg-color--transparent:#526cfe1a;--md-accent-bg-color:#fff;--md-accent-bg-color--light:#ffffffb3}[data-md-color-scheme=default]{color-scheme:light}[data-md-color-scheme=default] img[src$="#gh-dark-mode-only"],[data-md-color-scheme=default] img[src$="#only-dark"]{display:none}:root,[data-md-color-scheme=default]{--md-hue:225deg;--md-default-fg-color:#000000de;--md-default-fg-color--light:#0000008a;--md-default-fg-color--lighter:#00000052;--md-default-fg-color--lightest:#00000012;--md-default-bg-color:#fff;--md-default-bg-color--light:#ffffffb3;--md-default-bg-color--lighter:#ffffff4d;--md-default-bg-color--lightest:#ffffff1f;--md-code-fg-color:#36464e;--md-code-bg-color:#f5f5f5;--md-code-hl-color:#4287ff;--md-code-hl-color--light:#4287ff1a;--md-code-hl-number-color:#d52a2a;--md-code-hl-special-color:#db1457;--md-code-hl-function-color:#a846b9;--md-code-hl-constant-color:#6e59d9;--md-code-hl-keyword-color:#3f6ec6;--md-code-hl-string-color:#1c7d4d;--md-code-hl-name-color:var(--md-code-fg-color);--md-code-hl-operator-color:var(--md-default-fg-color--light);--md-code-hl-punctuation-color:var(--md-default-fg-color--light);--md-code-hl-comment-color:var(--md-default-fg-color--light);--md-code-hl-generic-color:var(--md-default-fg-color--light);--md-code-hl-variable-color:var(--md-default-fg-color--light);--md-typeset-color:var(--md-default-fg-color);--md-typeset-a-color:var(--md-primary-fg-color);--md-typeset-del-color:#f5503d26;--md-typeset-ins-color:#0bd57026;--md-typeset-kbd-color:#fafafa;--md-typeset-kbd-accent-color:#fff;--md-typeset-kbd-border-color:#b8b8b8;--md-typeset-mark-color:#ffff0080;--md-typeset-table-color:#0000001f;--md-typeset-table-color--light:rgba(0,0,0,.035);--md-admonition-fg-color:var(--md-default-fg-color);--md-admonition-bg-color:var(--md-default-bg-color);--md-warning-fg-color:#000000de;--md-warning-bg-color:#ff9;--md-footer-fg-color:#fff;--md-footer-fg-color--light:#ffffffb3;--md-footer-fg-color--lighter:#ffffff73;--md-footer-bg-color:#000000de;--md-footer-bg-color--dark:#00000052;--md-shadow-z1:0 0.2rem 0.5rem #0000000d,0 0 0.05rem #0000001a;--md-shadow-z2:0 0.2rem 0.5rem #0000001a,0 0 0.05rem #00000040;--md-shadow-z3:0 0.2rem 0.5rem #0003,0 0 0.05rem #00000059}.md-icon svg{fill:currentcolor;display:block;height:1.2rem;width:1.2rem}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--md-text-font-family:var(--md-text-font,_),-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;--md-code-font-family:var(--md-code-font,_),SFMono-Regular,Consolas,Menlo,monospace}aside,body,input{font-feature-settings:"kern","liga";color:var(--md-typeset-color);font-family:var(--md-text-font-family)}code,kbd,pre{font-feature-settings:"kern";font-family:var(--md-code-font-family)}:root{--md-typeset-table-sort-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m18 21-4-4h3V7h-3l4-4 4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/></svg>');--md-typeset-table-sort-icon--asc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 17h3l-4 4-4-4h3V3h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>');--md-typeset-table-sort-icon--desc:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7h3l-4-4-4 4h3v14h2M2 17h10v2H2M6 5v2H2V5m0 6h7v2H2v-2Z"/></svg>')}.md-typeset{-webkit-print-color-adjust:exact;color-adjust:exact;font-size:.8rem;line-height:1.6}@media print{.md-typeset{font-size:.68rem}}.md-typeset blockquote,.md-typeset dl,.md-typeset figure,.md-typeset ol,.md-typeset pre,.md-typeset ul{margin-bottom:1em;margin-top:1em}.md-typeset h1{color:var(--md-default-fg-color--light);font-size:2em;line-height:1.3;margin:0 0 1.25em}.md-typeset h1,.md-typeset h2{font-weight:300;letter-spacing:-.01em}.md-typeset h2{font-size:1.5625em;line-height:1.4;margin:1.6em 0 .64em}.md-typeset h3{font-size:1.25em;font-weight:400;letter-spacing:-.01em;line-height:1.5;margin:1.6em 0 .8em}.md-typeset h2+h3{margin-top:.8em}.md-typeset h4{font-weight:700;letter-spacing:-.01em;margin:1em 0}.md-typeset h5,.md-typeset h6{color:var(--md-default-fg-color--light);font-size:.8em;font-weight:700;letter-spacing:-.01em;margin:1.25em 0}.md-typeset h5{text-transform:uppercase}.md-typeset hr{border-bottom:.05rem solid var(--md-default-fg-color--lightest);display:flow-root;margin:1.5em 0}.md-typeset a{color:var(--md-typeset-a-color);word-break:break-word}.md-typeset a,.md-typeset a:before{transition:color 125ms}.md-typeset a:focus,.md-typeset a:hover{color:var(--md-accent-fg-color)}.md-typeset a:focus code,.md-typeset a:hover code{background-color:var(--md-accent-fg-color--transparent)}.md-typeset a code{color:currentcolor;transition:background-color 125ms}.md-typeset a.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset code,.md-typeset kbd,.md-typeset pre{color:var(--md-code-fg-color);direction:ltr;font-variant-ligatures:none}@media print{.md-typeset code,.md-typeset kbd,.md-typeset pre{white-space:pre-wrap}}.md-typeset code{background-color:var(--md-code-bg-color);border-radius:.1rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;font-size:.85em;padding:0 .2941176471em;word-break:break-word}.md-typeset code:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-typeset pre{display:flow-root;line-height:1.4;position:relative}.md-typeset pre>code{-webkit-box-decoration-break:slice;box-decoration-break:slice;box-shadow:none;display:block;margin:0;outline-color:var(--md-accent-fg-color);overflow:auto;padding:.7720588235em 1.1764705882em;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin;touch-action:auto;word-break:normal}.md-typeset pre>code:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-typeset pre>code::-webkit-scrollbar{height:.2rem;width:.2rem}.md-typeset pre>code::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-typeset pre>code::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}.md-typeset kbd{background-color:var(--md-typeset-kbd-color);border-radius:.1rem;box-shadow:0 .1rem 0 .05rem var(--md-typeset-kbd-border-color),0 .1rem 0 var(--md-typeset-kbd-border-color),0 -.1rem .2rem var(--md-typeset-kbd-accent-color) inset;color:var(--md-default-fg-color);display:inline-block;font-size:.75em;padding:0 .6666666667em;vertical-align:text-top;word-break:break-word}.md-typeset mark{background-color:var(--md-typeset-mark-color);-webkit-box-decoration-break:clone;box-decoration-break:clone;color:inherit;word-break:break-word}.md-typeset abbr{border-bottom:.05rem dotted var(--md-default-fg-color--light);cursor:help;text-decoration:none}.md-typeset small{opacity:.75}[dir=ltr] .md-typeset sub,[dir=ltr] .md-typeset sup{margin-left:.078125em}[dir=rtl] .md-typeset sub,[dir=rtl] .md-typeset sup{margin-right:.078125em}[dir=ltr] .md-typeset blockquote{padding-left:.6rem}[dir=rtl] .md-typeset blockquote{padding-right:.6rem}[dir=ltr] .md-typeset blockquote{border-left:.2rem solid var(--md-default-fg-color--lighter)}[dir=rtl] .md-typeset blockquote{border-right:.2rem solid var(--md-default-fg-color--lighter)}.md-typeset blockquote{color:var(--md-default-fg-color--light);margin-left:0;margin-right:0}.md-typeset ul{list-style-type:disc}[dir=ltr] .md-typeset ol,[dir=ltr] .md-typeset ul{margin-left:.625em}[dir=rtl] .md-typeset ol,[dir=rtl] .md-typeset ul{margin-right:.625em}.md-typeset ol,.md-typeset ul{padding:0}.md-typeset ol:not([hidden]),.md-typeset ul:not([hidden]){display:flow-root}.md-typeset ol ol,.md-typeset ul ol{list-style-type:lower-alpha}.md-typeset ol ol ol,.md-typeset ul ol ol{list-style-type:lower-roman}[dir=ltr] .md-typeset ol li,[dir=ltr] .md-typeset ul li{margin-left:1.25em}[dir=rtl] .md-typeset ol li,[dir=rtl] .md-typeset ul li{margin-right:1.25em}.md-typeset ol li,.md-typeset ul li{margin-bottom:.5em}.md-typeset ol li blockquote,.md-typeset ol li p,.md-typeset ul li blockquote,.md-typeset ul li p{margin:.5em 0}.md-typeset ol li:last-child,.md-typeset ul li:last-child{margin-bottom:0}[dir=ltr] .md-typeset ol li ol,[dir=ltr] .md-typeset ol li ul,[dir=ltr] .md-typeset ul li ol,[dir=ltr] .md-typeset ul li ul{margin-left:.625em}[dir=rtl] .md-typeset ol li ol,[dir=rtl] .md-typeset ol li ul,[dir=rtl] .md-typeset ul li ol,[dir=rtl] .md-typeset ul li ul{margin-right:.625em}.md-typeset ol li ol,.md-typeset ol li ul,.md-typeset ul li ol,.md-typeset ul li ul{margin-bottom:.5em;margin-top:.5em}[dir=ltr] .md-typeset dd{margin-left:1.875em}[dir=rtl] .md-typeset dd{margin-right:1.875em}.md-typeset dd{margin-bottom:1.5em;margin-top:1em}.md-typeset img,.md-typeset svg,.md-typeset video{height:auto;max-width:100%}.md-typeset img[align=left]{margin:1em 1em 1em 0}.md-typeset img[align=right]{margin:1em 0 1em 1em}.md-typeset img[align]:only-child{margin-top:0}.md-typeset figure{display:flow-root;margin:1em auto;max-width:100%;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.md-typeset figure img{display:block;margin:0 auto}.md-typeset figcaption{font-style:italic;margin:1em auto;max-width:24rem}.md-typeset iframe{max-width:100%}.md-typeset table:not([class]){background-color:var(--md-default-bg-color);border:.05rem solid var(--md-typeset-table-color);border-radius:.1rem;display:inline-block;font-size:.64rem;max-width:100%;overflow:auto;touch-action:auto}@media print{.md-typeset table:not([class]){display:table}}.md-typeset table:not([class])+*{margin-top:1.5em}.md-typeset table:not([class]) td>:first-child,.md-typeset table:not([class]) th>:first-child{margin-top:0}.md-typeset table:not([class]) td>:last-child,.md-typeset table:not([class]) th>:last-child{margin-bottom:0}.md-typeset table:not([class]) td:not([align]),.md-typeset table:not([class]) th:not([align]){text-align:left}[dir=rtl] .md-typeset table:not([class]) td:not([align]),[dir=rtl] .md-typeset table:not([class]) th:not([align]){text-align:right}.md-typeset table:not([class]) th{font-weight:700;min-width:5rem;padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) td{border-top:.05rem solid var(--md-typeset-table-color);padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) tbody tr{transition:background-color 125ms}.md-typeset table:not([class]) tbody tr:hover{background-color:var(--md-typeset-table-color--light);box-shadow:0 .05rem 0 var(--md-default-bg-color) inset}.md-typeset table:not([class]) a{word-break:normal}.md-typeset table th[role=columnheader]{cursor:pointer}[dir=ltr] .md-typeset table th[role=columnheader]:after{margin-left:.5em}[dir=rtl] .md-typeset table th[role=columnheader]:after{margin-right:.5em}.md-typeset table th[role=columnheader]:after{content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-typeset-table-sort-icon);mask-image:var(--md-typeset-table-sort-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset table th[role=columnheader]:hover:after{background-color:var(--md-default-fg-color--lighter)}.md-typeset table th[role=columnheader][aria-sort=ascending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--asc);mask-image:var(--md-typeset-table-sort-icon--asc)}.md-typeset table th[role=columnheader][aria-sort=descending]:after{background-color:var(--md-default-fg-color--light);-webkit-mask-image:var(--md-typeset-table-sort-icon--desc);mask-image:var(--md-typeset-table-sort-icon--desc)}.md-typeset__scrollwrap{margin:1em -.8rem;overflow-x:auto;touch-action:auto}.md-typeset__table{display:inline-block;margin-bottom:.5em;padding:0 .8rem}@media print{.md-typeset__table{display:block}}html .md-typeset__table table{display:table;margin:0;overflow:hidden;width:100%}@media screen and (max-width:44.984375em){.md-content__inner>pre{margin:1em -.8rem}.md-content__inner>pre code{border-radius:0}}.md-typeset .md-author{border-radius:100%;display:block;flex-shrink:0;height:1.6rem;overflow:hidden;position:relative;transition:color 125ms,transform 125ms;width:1.6rem}.md-typeset .md-author img{display:block}.md-typeset .md-author--more{background:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--lighter);font-size:.6rem;font-weight:700;line-height:1.6rem;text-align:center}.md-typeset .md-author--long{height:2.4rem;width:2.4rem}.md-typeset a.md-author{transform:scale(1)}.md-typeset a.md-author img{filter:grayscale(100%) opacity(75%);transition:filter 125ms}.md-typeset a.md-author:focus,.md-typeset a.md-author:hover{transform:scale(1.1);z-index:1}.md-typeset a.md-author:focus img,.md-typeset a.md-author:hover img{filter:grayscale(0)}.md-banner{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color);overflow:auto}@media print{.md-banner{display:none}}.md-banner--warning{background-color:var(--md-warning-bg-color);color:var(--md-warning-fg-color)}.md-banner__inner{font-size:.7rem;margin:.6rem auto;padding:0 .8rem}[dir=ltr] .md-banner__button{float:right}[dir=rtl] .md-banner__button{float:left}.md-banner__button{color:inherit;cursor:pointer;transition:opacity .25s}.no-js .md-banner__button{display:none}.md-banner__button:hover{opacity:.7}html{font-size:125%;height:100%;overflow-x:hidden}@media screen and (min-width:100em){html{font-size:137.5%}}@media screen and (min-width:125em){html{font-size:150%}}body{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;font-size:.5rem;min-height:100%;position:relative;width:100%}@media print{body{display:block}}@media screen and (max-width:59.984375em){body[data-md-scrolllock]{position:fixed}}.md-grid{margin-left:auto;margin-right:auto;max-width:61rem}.md-container{display:flex;flex-direction:column;flex-grow:1}@media print{.md-container{display:block}}.md-main{flex-grow:1}.md-main__inner{display:flex;height:100%;margin-top:1.5rem}.md-ellipsis{overflow:hidden;text-overflow:ellipsis}.md-toggle{display:none}.md-option{height:0;opacity:0;position:absolute;width:0}.md-option:checked+label:not([hidden]){display:block}.md-option.focus-visible+label{outline-color:var(--md-accent-fg-color);outline-style:auto}.md-skip{background-color:var(--md-default-fg-color);border-radius:.1rem;color:var(--md-default-bg-color);font-size:.64rem;margin:.5rem;opacity:0;outline-color:var(--md-accent-fg-color);padding:.3rem .5rem;position:fixed;transform:translateY(.4rem);z-index:-1}.md-skip:focus{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 175ms 75ms;z-index:10}@page{margin:25mm}:root{--md-clipboard-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z"/></svg>')}.md-clipboard{border-radius:.1rem;color:var(--md-default-fg-color--lightest);cursor:pointer;height:1.5em;outline-color:var(--md-accent-fg-color);outline-offset:.1rem;position:absolute;right:.5em;top:.5em;transition:color .25s;width:1.5em;z-index:1}@media print{.md-clipboard{display:none}}.md-clipboard:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}:hover>.md-clipboard{color:var(--md-default-fg-color--light)}.md-clipboard:focus,.md-clipboard:hover{color:var(--md-accent-fg-color)}.md-clipboard:after{background-color:currentcolor;content:"";display:block;height:1.125em;margin:0 auto;-webkit-mask-image:var(--md-clipboard-icon);mask-image:var(--md-clipboard-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1.125em}.md-clipboard--inline{cursor:pointer}.md-clipboard--inline code{transition:color .25s,background-color .25s}.md-clipboard--inline:focus code,.md-clipboard--inline:hover code{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}@keyframes consent{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes overlay{0%{opacity:0}to{opacity:1}}.md-consent__overlay{animation:overlay .25s both;-webkit-backdrop-filter:blur(.1rem);backdrop-filter:blur(.1rem);background-color:#0000008a;height:100%;opacity:1;position:fixed;top:0;width:100%;z-index:5}.md-consent__inner{animation:consent .5s cubic-bezier(.1,.7,.1,1) both;background-color:var(--md-default-bg-color);border:0;border-radius:.1rem;bottom:0;box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;max-height:100%;overflow:auto;padding:0;position:fixed;width:100%;z-index:5}.md-consent__form{padding:.8rem}.md-consent__settings{display:none;margin:1em 0}input:checked+.md-consent__settings{display:block}.md-consent__controls{margin-bottom:.8rem}.md-typeset .md-consent__controls .md-button{display:inline}@media screen and (max-width:44.984375em){.md-typeset .md-consent__controls .md-button{display:block;margin-top:.4rem;text-align:center;width:100%}}.md-consent label{cursor:pointer}.md-content{flex-grow:1;min-width:0}.md-content__inner{margin:0 .8rem 1.2rem;padding-top:.6rem}@media screen and (min-width:76.25em){[dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}[dir=ltr] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner,[dir=rtl] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-right:1.2rem}[dir=rtl] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}}.md-content__inner:before{content:"";display:block;height:.4rem}.md-content__inner>:last-child{margin-bottom:0}[dir=ltr] .md-content__button{float:right}[dir=rtl] .md-content__button{float:left}[dir=ltr] .md-content__button{margin-left:.4rem}[dir=rtl] .md-content__button{margin-right:.4rem}.md-content__button{margin:.4rem 0;padding:0}@media print{.md-content__button{display:none}}.md-typeset .md-content__button{color:var(--md-default-fg-color--lighter)}.md-content__button svg{display:inline;vertical-align:top}[dir=rtl] .md-content__button svg{transform:scaleX(-1)}[dir=ltr] .md-dialog{right:.8rem}[dir=rtl] .md-dialog{left:.8rem}.md-dialog{background-color:var(--md-default-fg-color);border-radius:.1rem;bottom:.8rem;box-shadow:var(--md-shadow-z3);min-width:11.1rem;opacity:0;padding:.4rem .6rem;pointer-events:none;position:fixed;transform:translateY(100%);transition:transform 0ms .4s,opacity .4s;z-index:4}@media print{.md-dialog{display:none}}.md-dialog--active{opacity:1;pointer-events:auto;transform:translateY(0);transition:transform .4s cubic-bezier(.075,.85,.175,1),opacity .4s}.md-dialog__inner{color:var(--md-default-bg-color);font-size:.7rem}.md-feedback{margin:2em 0 1em;text-align:center}.md-feedback fieldset{border:none;margin:0;padding:0}.md-feedback__title{font-weight:700;margin:1em auto}.md-feedback__inner{position:relative}.md-feedback__list{display:flex;flex-wrap:wrap;place-content:baseline center;position:relative}.md-feedback__list:hover .md-icon:not(:disabled){color:var(--md-default-fg-color--lighter)}:disabled .md-feedback__list{min-height:1.8rem}.md-feedback__icon{color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;margin:0 .1rem;transition:color 125ms}.md-feedback__icon:not(:disabled).md-icon:hover{color:var(--md-accent-fg-color)}.md-feedback__icon:disabled{color:var(--md-default-fg-color--lightest);pointer-events:none}.md-feedback__note{opacity:0;position:relative;transform:translateY(.4rem);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-feedback__note>*{margin:0 auto;max-width:16rem}:disabled .md-feedback__note{opacity:1;transform:translateY(0)}.md-footer{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color)}@media print{.md-footer{display:none}}.md-footer__inner{justify-content:space-between;overflow:auto;padding:.2rem}.md-footer__inner:not([hidden]){display:flex}.md-footer__link{align-items:end;display:flex;flex-grow:0.01;margin-bottom:.4rem;margin-top:1rem;max-width:100%;outline-color:var(--md-accent-fg-color);overflow:hidden;transition:opacity .25s}.md-footer__link:focus,.md-footer__link:hover{opacity:.7}[dir=rtl] .md-footer__link svg{transform:scaleX(-1)}@media screen and (max-width:44.984375em){.md-footer__link--prev{flex-shrink:0}.md-footer__link--prev .md-footer__title{display:none}}[dir=ltr] .md-footer__link--next{margin-left:auto}[dir=rtl] .md-footer__link--next{margin-right:auto}.md-footer__link--next{text-align:right}[dir=rtl] .md-footer__link--next{text-align:left}.md-footer__title{flex-grow:1;font-size:.9rem;margin-bottom:.7rem;max-width:calc(100% - 2.4rem);padding:0 1rem;white-space:nowrap}.md-footer__button{margin:.2rem;padding:.4rem}.md-footer__direction{font-size:.64rem;opacity:.7}.md-footer-meta{background-color:var(--md-footer-bg-color--dark)}.md-footer-meta__inner{display:flex;flex-wrap:wrap;justify-content:space-between;padding:.2rem}html .md-footer-meta.md-typeset a{color:var(--md-footer-fg-color--light)}html .md-footer-meta.md-typeset a:focus,html .md-footer-meta.md-typeset a:hover{color:var(--md-footer-fg-color)}.md-copyright{color:var(--md-footer-fg-color--lighter);font-size:.64rem;margin:auto .6rem;padding:.4rem 0;width:100%}@media screen and (min-width:45em){.md-copyright{width:auto}}.md-copyright__highlight{color:var(--md-footer-fg-color--light)}.md-social{display:inline-flex;gap:.2rem;margin:0 .4rem;padding:.2rem 0 .6rem}@media screen and (min-width:45em){.md-social{padding:.6rem 0}}.md-social__link{display:inline-block;height:1.6rem;text-align:center;width:1.6rem}.md-social__link:before{line-height:1.9}.md-social__link svg{fill:currentcolor;max-height:.8rem;vertical-align:-25%}.md-typeset .md-button{border:.1rem solid;border-radius:.1rem;color:var(--md-primary-fg-color);cursor:pointer;display:inline-block;font-weight:700;padding:.625em 2em;transition:color 125ms,background-color 125ms,border-color 125ms}.md-typeset .md-button--primary{background-color:var(--md-primary-fg-color);border-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color)}.md-typeset .md-button:focus,.md-typeset .md-button:hover{background-color:var(--md-accent-fg-color);border-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[dir=ltr] .md-typeset .md-input{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .md-input,[dir=rtl] .md-typeset .md-input{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .md-input{border-top-left-radius:.1rem}.md-typeset .md-input{border-bottom:.1rem solid var(--md-default-fg-color--lighter);box-shadow:var(--md-shadow-z1);font-size:.8rem;height:1.8rem;padding:0 .6rem;transition:border .25s,box-shadow .25s}.md-typeset .md-input:focus,.md-typeset .md-input:hover{border-bottom-color:var(--md-accent-fg-color);box-shadow:var(--md-shadow-z2)}.md-typeset .md-input--stretch{width:100%}.md-header{background-color:var(--md-primary-fg-color);box-shadow:0 0 .2rem #0000,0 .2rem .4rem #0000;color:var(--md-primary-bg-color);display:block;left:0;position:sticky;right:0;top:0;z-index:4}@media print{.md-header{display:none}}.md-header[hidden]{transform:translateY(-100%);transition:transform .25s cubic-bezier(.8,0,.6,1),box-shadow .25s}.md-header--shadow{box-shadow:0 0 .2rem #0000001a,0 .2rem .4rem #0003;transition:transform .25s cubic-bezier(.1,.7,.1,1),box-shadow .25s}.md-header__inner{align-items:center;display:flex;padding:0 .2rem}.md-header__button{color:currentcolor;cursor:pointer;margin:.2rem;outline-color:var(--md-accent-fg-color);padding:.4rem;position:relative;transition:opacity .25s;vertical-align:middle;z-index:1}.md-header__button:hover{opacity:.7}.md-header__button:not([hidden]){display:inline-block}.md-header__button:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-header__button.md-logo{margin:.2rem;padding:.4rem}@media screen and (max-width:76.234375em){.md-header__button.md-logo{display:none}}.md-header__button.md-logo img,.md-header__button.md-logo svg{fill:currentcolor;display:block;height:1.2rem;width:auto}@media screen and (min-width:60em){.md-header__button[for=__search]{display:none}}.no-js .md-header__button[for=__search]{display:none}[dir=rtl] .md-header__button[for=__search] svg{transform:scaleX(-1)}@media screen and (min-width:76.25em){.md-header__button[for=__drawer]{display:none}}.md-header__topic{display:flex;max-width:100%;position:absolute;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;white-space:nowrap}.md-header__topic+.md-header__topic{opacity:0;pointer-events:none;transform:translateX(1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__topic+.md-header__topic{transform:translateX(-1.25rem)}.md-header__topic:first-child{font-weight:700}[dir=ltr] .md-header__title{margin-left:1rem;margin-right:.4rem}[dir=rtl] .md-header__title{margin-left:.4rem;margin-right:1rem}.md-header__title{flex-grow:1;font-size:.9rem;height:2.4rem;line-height:2.4rem}.md-header__title--active .md-header__topic{opacity:0;pointer-events:none;transform:translateX(-1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__title--active .md-header__topic{transform:translateX(1.25rem)}.md-header__title--active .md-header__topic+.md-header__topic{opacity:1;pointer-events:auto;transform:translateX(0);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;z-index:0}.md-header__title>.md-header__ellipsis{height:100%;position:relative;width:100%}.md-header__option{display:flex;flex-shrink:0;max-width:100%;transition:max-width 0ms .25s,opacity .25s .25s;white-space:nowrap}[data-md-toggle=search]:checked~.md-header .md-header__option{max-width:0;opacity:0;transition:max-width 0ms,opacity 0ms}.md-header__option>input{bottom:0}.md-header__source{display:none}@media screen and (min-width:60em){[dir=ltr] .md-header__source{margin-left:1rem}[dir=rtl] .md-header__source{margin-right:1rem}.md-header__source{display:block;max-width:11.7rem;width:11.7rem}}@media screen and (min-width:76.25em){[dir=ltr] .md-header__source{margin-left:1.4rem}[dir=rtl] .md-header__source{margin-right:1.4rem}}.md-meta{color:var(--md-default-fg-color--light);font-size:.7rem;line-height:1.3}.md-meta__list{display:inline-flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.md-meta__item:not(:last-child):after{content:"·";margin-left:.2rem;margin-right:.2rem}.md-meta__link{color:var(--md-typeset-a-color)}.md-meta__link:focus,.md-meta__link:hover{color:var(--md-accent-fg-color)}.md-draft{background-color:#ff1744;border-radius:.125em;color:#fff;display:inline-block;font-weight:700;padding-left:.5714285714em;padding-right:.5714285714em}:root{--md-nav-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>');--md-nav-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>');--md-toc-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2Z"/></svg>')}.md-nav{font-size:.7rem;line-height:1.3}.md-nav__title{color:var(--md-default-fg-color--light);display:block;font-weight:700;overflow:hidden;padding:0 .6rem;text-overflow:ellipsis}.md-nav__title .md-nav__button{display:none}.md-nav__title .md-nav__button img{height:100%;width:auto}.md-nav__title .md-nav__button.md-logo img,.md-nav__title .md-nav__button.md-logo svg{fill:currentcolor;display:block;height:2.4rem;max-width:100%;object-fit:contain;width:auto}.md-nav__list{list-style:none;margin:0;padding:0}.md-nav__link{align-items:flex-start;display:flex;gap:.4rem;margin-top:.625em;scroll-snap-align:start;transition:color 125ms}.md-nav__link--passed{color:var(--md-default-fg-color--light)}.md-nav__item .md-nav__link--active,.md-nav__item .md-nav__link--active code{color:var(--md-typeset-a-color)}.md-nav__link .md-ellipsis{position:relative}[dir=ltr] .md-nav__link .md-icon:last-child{margin-left:auto}[dir=rtl] .md-nav__link .md-icon:last-child{margin-right:auto}.md-nav__link svg{fill:currentcolor;flex-shrink:0;height:1.3em}.md-nav__link[for]:focus,.md-nav__link[for]:hover,.md-nav__link[href]:focus,.md-nav__link[href]:hover{color:var(--md-accent-fg-color);cursor:pointer}.md-nav__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-nav--primary .md-nav__link[for=__toc]{display:none}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{background-color:currentcolor;display:block;height:100%;-webkit-mask-image:var(--md-toc-icon);mask-image:var(--md-toc-icon);width:100%}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:none}.md-nav__container>.md-nav__link{margin-top:0}.md-nav__container>.md-nav__link:first-child{flex-grow:1;min-width:0}.md-nav__icon{flex-shrink:0}.md-nav__source{display:none}@media screen and (max-width:76.234375em){.md-nav--primary,.md-nav--primary .md-nav{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;z-index:1}.md-nav--primary .md-nav__item,.md-nav--primary .md-nav__title{font-size:.8rem;line-height:1.5}.md-nav--primary .md-nav__title{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);cursor:pointer;height:5.6rem;line-height:2.4rem;padding:3rem .8rem .2rem;position:relative;white-space:nowrap}[dir=ltr] .md-nav--primary .md-nav__title .md-nav__icon{left:.4rem}[dir=rtl] .md-nav--primary .md-nav__title .md-nav__icon{right:.4rem}.md-nav--primary .md-nav__title .md-nav__icon{display:block;height:1.2rem;margin:.2rem;position:absolute;top:.4rem;width:1.2rem}.md-nav--primary .md-nav__title .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--prev);mask-image:var(--md-nav-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.md-nav--primary .md-nav__title~.md-nav__list{background-color:var(--md-default-bg-color);box-shadow:0 .05rem 0 var(--md-default-fg-color--lightest) inset;overflow-y:auto;scroll-snap-type:y mandatory;touch-action:pan-y}.md-nav--primary .md-nav__title~.md-nav__list>:first-child{border-top:0}.md-nav--primary .md-nav__title[for=__drawer]{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);font-weight:700}.md-nav--primary .md-nav__title .md-logo{display:block;left:.2rem;margin:.2rem;padding:.4rem;position:absolute;right:.2rem;top:.2rem}.md-nav--primary .md-nav__list{flex:1}.md-nav--primary .md-nav__item{border-top:.05rem solid var(--md-default-fg-color--lightest)}.md-nav--primary .md-nav__item--active>.md-nav__link{color:var(--md-typeset-a-color)}.md-nav--primary .md-nav__item--active>.md-nav__link:focus,.md-nav--primary .md-nav__item--active>.md-nav__link:hover{color:var(--md-accent-fg-color)}.md-nav--primary .md-nav__link{margin-top:0;padding:.6rem .8rem}.md-nav--primary .md-nav__link svg{margin-top:.1em}.md-nav--primary .md-nav__link>.md-nav__link{padding:0}[dir=ltr] .md-nav--primary .md-nav__link .md-nav__icon{margin-right:-.2rem}[dir=rtl] .md-nav--primary .md-nav__link .md-nav__icon{margin-left:-.2rem}.md-nav--primary .md-nav__link .md-nav__icon{font-size:1.2rem;height:1.2rem;width:1.2rem}.md-nav--primary .md-nav__link .md-nav__icon:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-nav--primary .md-nav__icon:after{transform:scale(-1)}.md-nav--primary .md-nav--secondary .md-nav{background-color:initial;position:static}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:1.4rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-right:1.4rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-right:2rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:2.6rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-right:2.6rem}[dir=ltr] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:3.2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-right:3.2rem}.md-nav--secondary{background-color:initial}.md-nav__toggle~.md-nav{display:flex;opacity:0;transform:translateX(100%);transition:transform .25s cubic-bezier(.8,0,.6,1),opacity 125ms 50ms}[dir=rtl] .md-nav__toggle~.md-nav{transform:translateX(-100%)}.md-nav__toggle:checked~.md-nav{opacity:1;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 125ms 125ms}.md-nav__toggle:checked~.md-nav>.md-nav__list{-webkit-backface-visibility:hidden;backface-visibility:hidden}}@media screen and (max-width:59.984375em){.md-nav--primary .md-nav__link[for=__toc]{display:flex}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--primary .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:flex}.md-nav__source{background-color:var(--md-primary-fg-color--dark);color:var(--md-primary-bg-color);display:block;padding:0 .2rem}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-nav--integrated .md-nav__link[for=__toc]{display:flex}.md-nav--integrated .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--integrated .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav{display:flex}}@media screen and (min-width:60em){.md-nav{margin-bottom:-.4rem}.md-nav--secondary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--secondary .md-nav__title[for=__toc]{scroll-snap-align:start}.md-nav--secondary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--secondary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--secondary .md-nav__list{padding-right:.6rem}.md-nav--secondary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--secondary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--secondary .md-nav__item>.md-nav__link{margin-left:.4rem}}@media screen and (min-width:76.25em){.md-nav{margin-bottom:-.4rem;transition:max-height .25s cubic-bezier(.86,0,.07,1)}.md-nav--primary .md-nav__title{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);position:sticky;top:0;z-index:1}.md-nav--primary .md-nav__title[for=__drawer]{scroll-snap-align:start}.md-nav--primary .md-nav__title .md-nav__icon{display:none}[dir=ltr] .md-nav--primary .md-nav__list{padding-left:.6rem}[dir=rtl] .md-nav--primary .md-nav__list{padding-right:.6rem}.md-nav--primary .md-nav__list{padding-bottom:.4rem}[dir=ltr] .md-nav--primary .md-nav__item>.md-nav__link{margin-right:.4rem}[dir=rtl] .md-nav--primary .md-nav__item>.md-nav__link{margin-left:.4rem}.md-nav__toggle~.md-nav{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .25s,visibility 0ms .25s;visibility:collapse}.md-nav__toggle~.md-nav>.md-nav__list{overflow:hidden}.md-nav__toggle.md-toggle--indeterminate~.md-nav,.md-nav__toggle:checked~.md-nav{grid-template-rows:1fr;opacity:1;transition:grid-template-rows .25s cubic-bezier(.86,0,.07,1),opacity .15s .1s,visibility 0ms;visibility:visible}.md-nav__toggle.md-toggle--indeterminate~.md-nav{transition:none}.md-nav__item--nested>.md-nav>.md-nav__title{display:none}.md-nav__item--section{display:block;margin:1.25em 0}.md-nav__item--section:last-child{margin-bottom:0}.md-nav__item--section>.md-nav__link{font-weight:700}.md-nav__item--section>.md-nav__link[for]{color:var(--md-default-fg-color--light)}.md-nav__item--section>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav__item--section>.md-nav__link .md-icon,.md-nav__item--section>.md-nav__link>[for]{display:none}[dir=ltr] .md-nav__item--section>.md-nav{margin-left:-.6rem}[dir=rtl] .md-nav__item--section>.md-nav{margin-right:-.6rem}.md-nav__item--section>.md-nav{display:block;opacity:1;visibility:visible}.md-nav__item--section>.md-nav>.md-nav__list>.md-nav__item{padding:0}.md-nav__icon{border-radius:100%;height:.9rem;transition:background-color .25s;width:.9rem}.md-nav__icon:hover{background-color:var(--md-accent-fg-color--transparent)}.md-nav__icon:after{background-color:currentcolor;border-radius:100%;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:transform .25s;vertical-align:-.1rem;width:100%}[dir=rtl] .md-nav__icon:after{transform:rotate(180deg)}.md-nav__item--nested .md-nav__toggle:checked~.md-nav__link .md-nav__icon:after,.md-nav__item--nested .md-toggle--indeterminate~.md-nav__link .md-nav__icon:after{transform:rotate(90deg)}.md-nav--lifted>.md-nav__list>.md-nav__item,.md-nav--lifted>.md-nav__title{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active{display:block}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link{background:var(--md-default-bg-color);box-shadow:0 0 .4rem .4rem var(--md-default-bg-color);margin-top:0;position:sticky;top:0;z-index:1}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link:not(.md-nav__container){pointer-events:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active.md-nav__item--section{margin:0}[dir=ltr] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-left:-.6rem}[dir=rtl] .md-nav--lifted>.md-nav__list>.md-nav__item>.md-nav:not(.md-nav--secondary){margin-right:-.6rem}.md-nav--lifted>.md-nav__list>.md-nav__item>[for]{color:var(--md-default-fg-color--light)}.md-nav--lifted .md-nav[data-md-level="1"]{grid-template-rows:1fr;opacity:1;visibility:visible}[dir=ltr] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-left:.05rem solid var(--md-primary-fg-color)}[dir=rtl] .md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{border-right:.05rem solid var(--md-primary-fg-color)}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary{display:block;margin-bottom:1.25em;opacity:1;visibility:visible}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__list{overflow:visible;padding-bottom:0}.md-nav--integrated>.md-nav__list>.md-nav__item--active .md-nav--secondary>.md-nav__title{display:none}}.md-pagination{font-size:.8rem;font-weight:700;gap:.4rem}.md-pagination,.md-pagination>*{align-items:center;display:flex;justify-content:center}.md-pagination>*{border-radius:.2rem;height:1.8rem;min-width:1.8rem;text-align:center}.md-pagination__current{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light)}.md-pagination__link{transition:color 125ms,background-color 125ms}.md-pagination__link:focus,.md-pagination__link:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-pagination__link:focus svg,.md-pagination__link:hover svg{color:var(--md-accent-fg-color)}.md-pagination__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-pagination__link svg{fill:currentcolor;color:var(--md-default-fg-color--lighter);display:block;max-height:100%;width:1.2rem}.md-post__back{border-bottom:.05rem solid var(--md-default-fg-color--lightest);margin-bottom:1.2rem;padding-bottom:1.2rem}@media screen and (max-width:76.234375em){.md-post__back{display:none}}[dir=rtl] .md-post__back svg{transform:scaleX(-1)}.md-post__authors{display:flex;flex-direction:column;gap:.6rem;margin:0 .6rem 1.2rem}.md-post .md-post__meta a{transition:color 125ms}.md-post .md-post__meta a:focus,.md-post .md-post__meta a:hover{color:var(--md-accent-fg-color)}.md-post__title{color:var(--md-default-fg-color--light);font-weight:700}.md-post--excerpt{margin-bottom:3.2rem}.md-post--excerpt .md-post__header{align-items:center;display:flex;gap:.6rem;min-height:1.6rem}.md-post--excerpt .md-post__authors{align-items:center;display:inline-flex;flex-direction:row;gap:.2rem;margin:0;min-height:2.4rem}[dir=ltr] .md-post--excerpt .md-post__meta .md-meta__list{margin-right:.4rem}[dir=rtl] .md-post--excerpt .md-post__meta .md-meta__list{margin-left:.4rem}.md-post--excerpt .md-post__content>:first-child{--md-scroll-margin:6rem;margin-top:0}.md-post>.md-nav--secondary{margin:1em 0}.md-profile{align-items:center;display:flex;font-size:.7rem;gap:.6rem;line-height:1.4;width:100%}.md-profile__description{flex-grow:1}.md-content--post{display:flex}@media screen and (max-width:76.234375em){.md-content--post{flex-flow:column-reverse}}.md-content--post>.md-content__inner{min-width:0}@media screen and (min-width:76.25em){[dir=ltr] .md-content--post>.md-content__inner{margin-left:1.2rem}[dir=rtl] .md-content--post>.md-content__inner{margin-right:1.2rem}}@media screen and (max-width:76.234375em){.md-sidebar.md-sidebar--post{padding:0;position:static;width:100%}.md-sidebar.md-sidebar--post .md-sidebar__scrollwrap{overflow:visible}.md-sidebar.md-sidebar--post .md-sidebar__inner{padding:0}.md-sidebar.md-sidebar--post .md-post__meta{margin-left:.6rem;margin-right:.6rem}.md-sidebar.md-sidebar--post .md-nav__item{border:none;display:inline}.md-sidebar.md-sidebar--post .md-nav__list{display:inline-flex;flex-wrap:wrap;gap:.6rem;padding-bottom:.6rem;padding-top:.6rem}.md-sidebar.md-sidebar--post .md-nav__link{padding:0}.md-sidebar.md-sidebar--post .md-nav{height:auto;margin-bottom:0;position:static}}:root{--md-progress-value:0;--md-progress-delay:400ms}.md-progress{background:var(--md-primary-bg-color);height:.075rem;opacity:min(clamp(0,var(--md-progress-value),1),clamp(0,100 - var(--md-progress-value),1));position:fixed;top:0;transform:scaleX(calc(var(--md-progress-value)*1%));transform-origin:left;transition:transform .5s cubic-bezier(.19,1,.22,1),opacity .25s var(--md-progress-delay);width:100%;z-index:4}:root{--md-search-result-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5Z"/></svg>')}.md-search{position:relative}@media screen and (min-width:60em){.md-search{padding:.2rem 0}}.no-js .md-search{display:none}.md-search__overlay{opacity:0;z-index:1}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__overlay{left:-2.2rem}[dir=rtl] .md-search__overlay{right:-2.2rem}.md-search__overlay{background-color:var(--md-default-bg-color);border-radius:1rem;height:2rem;overflow:hidden;pointer-events:none;position:absolute;top:-1rem;transform-origin:center;transition:transform .3s .1s,opacity .2s .2s;width:2rem}[data-md-toggle=search]:checked~.md-header .md-search__overlay{opacity:1;transition:transform .4s,opacity .1s}}@media screen and (min-width:60em){[dir=ltr] .md-search__overlay{left:0}[dir=rtl] .md-search__overlay{right:0}.md-search__overlay{background-color:#0000008a;cursor:pointer;height:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0}[data-md-toggle=search]:checked~.md-header .md-search__overlay{height:200vh;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@media screen and (max-width:29.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(45)}}@media screen and (min-width:30em) and (max-width:44.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(60)}}@media screen and (min-width:45em) and (max-width:59.984375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(75)}}.md-search__inner{-webkit-backface-visibility:hidden;backface-visibility:hidden}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__inner{left:0}[dir=rtl] .md-search__inner{right:0}.md-search__inner{height:0;opacity:0;overflow:hidden;position:fixed;top:0;transform:translateX(5%);transition:width 0ms .3s,height 0ms .3s,transform .15s cubic-bezier(.4,0,.2,1) .15s,opacity .15s .15s;width:0;z-index:2}[dir=rtl] .md-search__inner{transform:translateX(-5%)}[data-md-toggle=search]:checked~.md-header .md-search__inner{height:100%;opacity:1;transform:translateX(0);transition:width 0ms 0ms,height 0ms 0ms,transform .15s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__inner{float:right}[dir=rtl] .md-search__inner{float:left}.md-search__inner{padding:.1rem 0;position:relative;transition:width .25s cubic-bezier(.1,.7,.1,1);width:11.7rem}}@media screen and (min-width:60em) and (max-width:76.234375em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:23.4rem}}@media screen and (min-width:76.25em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:34.4rem}}.md-search__form{background-color:var(--md-default-bg-color);box-shadow:0 0 .6rem #0000;height:2.4rem;position:relative;transition:color .25s,background-color .25s;z-index:2}@media screen and (min-width:60em){.md-search__form{background-color:#00000042;border-radius:.1rem;height:1.8rem}.md-search__form:hover{background-color:#ffffff1f}}[data-md-toggle=search]:checked~.md-header .md-search__form{background-color:var(--md-default-bg-color);border-radius:.1rem .1rem 0 0;box-shadow:0 0 .6rem #00000012;color:var(--md-default-fg-color)}[dir=ltr] .md-search__input{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__input{padding-left:2.2rem;padding-right:3.6rem}.md-search__input{background:#0000;font-size:.9rem;height:100%;position:relative;text-overflow:ellipsis;width:100%;z-index:2}.md-search__input::placeholder{transition:color .25s}.md-search__input::placeholder,.md-search__input~.md-search__icon{color:var(--md-default-fg-color--light)}.md-search__input::-ms-clear{display:none}@media screen and (max-width:59.984375em){.md-search__input{font-size:.9rem;height:2.4rem;width:100%}}@media screen and (min-width:60em){[dir=ltr] .md-search__input{padding-left:2.2rem}[dir=rtl] .md-search__input{padding-right:2.2rem}.md-search__input{color:inherit;font-size:.8rem}.md-search__input::placeholder{color:var(--md-primary-bg-color--light)}.md-search__input+.md-search__icon{color:var(--md-primary-bg-color)}[data-md-toggle=search]:checked~.md-header .md-search__input{text-overflow:clip}[data-md-toggle=search]:checked~.md-header .md-search__input+.md-search__icon{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input::placeholder{color:#0000}}.md-search__icon{cursor:pointer;display:inline-block;height:1.2rem;transition:color .25s,opacity .25s;width:1.2rem}.md-search__icon:hover{opacity:.7}[dir=ltr] .md-search__icon[for=__search]{left:.5rem}[dir=rtl] .md-search__icon[for=__search]{right:.5rem}.md-search__icon[for=__search]{position:absolute;top:.3rem;z-index:2}[dir=rtl] .md-search__icon[for=__search] svg{transform:scaleX(-1)}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__icon[for=__search]{left:.8rem}[dir=rtl] .md-search__icon[for=__search]{right:.8rem}.md-search__icon[for=__search]{top:.6rem}.md-search__icon[for=__search] svg:first-child{display:none}}@media screen and (min-width:60em){.md-search__icon[for=__search]{pointer-events:none}.md-search__icon[for=__search] svg:last-child{display:none}}[dir=ltr] .md-search__options{right:.5rem}[dir=rtl] .md-search__options{left:.5rem}.md-search__options{pointer-events:none;position:absolute;top:.3rem;z-index:2}@media screen and (max-width:59.984375em){[dir=ltr] .md-search__options{right:.8rem}[dir=rtl] .md-search__options{left:.8rem}.md-search__options{top:.6rem}}[dir=ltr] .md-search__options>.md-icon{margin-left:.2rem}[dir=rtl] .md-search__options>.md-icon{margin-right:.2rem}.md-search__options>.md-icon{color:var(--md-default-fg-color--light);opacity:0;transform:scale(.75);transition:transform .15s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-search__options>.md-icon:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon{opacity:1;pointer-events:auto;transform:scale(1)}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__options>.md-icon:hover{opacity:.7}[dir=ltr] .md-search__suggest{padding-left:3.6rem;padding-right:2.2rem}[dir=rtl] .md-search__suggest{padding-left:2.2rem;padding-right:3.6rem}.md-search__suggest{align-items:center;color:var(--md-default-fg-color--lighter);display:flex;font-size:.9rem;height:100%;opacity:0;position:absolute;top:0;transition:opacity 50ms;white-space:nowrap;width:100%}@media screen and (min-width:60em){[dir=ltr] .md-search__suggest{padding-left:2.2rem}[dir=rtl] .md-search__suggest{padding-right:2.2rem}.md-search__suggest{font-size:.8rem}}[data-md-toggle=search]:checked~.md-header .md-search__suggest{opacity:1;transition:opacity .3s .1s}[dir=ltr] .md-search__output{border-bottom-left-radius:.1rem}[dir=ltr] .md-search__output,[dir=rtl] .md-search__output{border-bottom-right-radius:.1rem}[dir=rtl] .md-search__output{border-bottom-left-radius:.1rem}.md-search__output{overflow:hidden;position:absolute;width:100%;z-index:1}@media screen and (max-width:59.984375em){.md-search__output{bottom:0;top:2.4rem}}@media screen and (min-width:60em){.md-search__output{opacity:0;top:1.9rem;transition:opacity .4s}[data-md-toggle=search]:checked~.md-header .md-search__output{box-shadow:var(--md-shadow-z3);opacity:1}}.md-search__scrollwrap{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);height:100%;overflow-y:auto;touch-action:pan-y}@media (-webkit-max-device-pixel-ratio:1),(max-resolution:1dppx){.md-search__scrollwrap{transform:translateZ(0)}}@media screen and (min-width:60em) and (max-width:76.234375em){.md-search__scrollwrap{width:23.4rem}}@media screen and (min-width:76.25em){.md-search__scrollwrap{width:34.4rem}}@media screen and (min-width:60em){.md-search__scrollwrap{max-height:0;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}[data-md-toggle=search]:checked~.md-header .md-search__scrollwrap{max-height:75vh}.md-search__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-search__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-search__scrollwrap::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-search__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}}.md-search-result{color:var(--md-default-fg-color);word-break:break-word}.md-search-result__meta{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.8rem;padding:0 .8rem;scroll-snap-align:start}@media screen and (min-width:60em){[dir=ltr] .md-search-result__meta{padding-left:2.2rem}[dir=rtl] .md-search-result__meta{padding-right:2.2rem}}.md-search-result__list{list-style:none;margin:0;padding:0;-webkit-user-select:none;user-select:none}.md-search-result__item{box-shadow:0 -.05rem var(--md-default-fg-color--lightest)}.md-search-result__item:first-child{box-shadow:none}.md-search-result__link{display:block;outline:none;scroll-snap-align:start;transition:background-color .25s}.md-search-result__link:focus,.md-search-result__link:hover{background-color:var(--md-accent-fg-color--transparent)}.md-search-result__link:last-child p:last-child{margin-bottom:.6rem}.md-search-result__more>summary{cursor:pointer;display:block;outline:none;position:sticky;scroll-snap-align:start;top:0;z-index:1}.md-search-result__more>summary::marker{display:none}.md-search-result__more>summary::-webkit-details-marker{display:none}.md-search-result__more>summary>div{color:var(--md-typeset-a-color);font-size:.64rem;padding:.75em .8rem;transition:color .25s,background-color .25s}@media screen and (min-width:60em){[dir=ltr] .md-search-result__more>summary>div{padding-left:2.2rem}[dir=rtl] .md-search-result__more>summary>div{padding-right:2.2rem}}.md-search-result__more>summary:focus>div,.md-search-result__more>summary:hover>div{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-search-result__more[open]>summary{background-color:var(--md-default-bg-color)}.md-search-result__article{overflow:hidden;padding:0 .8rem;position:relative}@media screen and (min-width:60em){[dir=ltr] .md-search-result__article{padding-left:2.2rem}[dir=rtl] .md-search-result__article{padding-right:2.2rem}}[dir=ltr] .md-search-result__icon{left:0}[dir=rtl] .md-search-result__icon{right:0}.md-search-result__icon{color:var(--md-default-fg-color--light);height:1.2rem;margin:.5rem;position:absolute;width:1.2rem}@media screen and (max-width:59.984375em){.md-search-result__icon{display:none}}.md-search-result__icon:after{background-color:currentcolor;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-search-result-icon);mask-image:var(--md-search-result-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-search-result__icon:after{transform:scaleX(-1)}.md-search-result .md-typeset{color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.6}.md-search-result .md-typeset h1{color:var(--md-default-fg-color);font-size:.8rem;font-weight:400;line-height:1.4;margin:.55rem 0}.md-search-result .md-typeset h1 mark{text-decoration:none}.md-search-result .md-typeset h2{color:var(--md-default-fg-color);font-size:.64rem;font-weight:700;line-height:1.6;margin:.5em 0}.md-search-result .md-typeset h2 mark{text-decoration:none}.md-search-result__terms{color:var(--md-default-fg-color);display:block;font-size:.64rem;font-style:italic;margin:.5em 0}.md-search-result mark{background-color:initial;color:var(--md-accent-fg-color);text-decoration:underline}.md-select{position:relative;z-index:1}.md-select__inner{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);left:50%;margin-top:.2rem;max-height:0;opacity:0;position:absolute;top:calc(100% - .2rem);transform:translate3d(-50%,.3rem,0);transition:transform .25s 375ms,opacity .25s .25s,max-height 0ms .5s}.md-select:focus-within .md-select__inner,.md-select:hover .md-select__inner{max-height:10rem;opacity:1;transform:translate3d(-50%,0,0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,max-height 0ms}.md-select__inner:after{border-bottom:.2rem solid #0000;border-bottom-color:var(--md-default-bg-color);border-left:.2rem solid #0000;border-right:.2rem solid #0000;border-top:0;content:"";height:0;left:50%;margin-left:-.2rem;margin-top:-.2rem;position:absolute;top:0;width:0}.md-select__list{border-radius:.1rem;font-size:.8rem;list-style-type:none;margin:0;max-height:inherit;overflow:auto;padding:0}.md-select__item{line-height:1.8rem}[dir=ltr] .md-select__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-select__link{padding-left:1.2rem;padding-right:.6rem}.md-select__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:background-color .25s,color .25s;width:100%}.md-select__link:focus,.md-select__link:hover{color:var(--md-accent-fg-color)}.md-select__link:focus{background-color:var(--md-default-fg-color--lightest)}.md-sidebar{align-self:flex-start;flex-shrink:0;padding:1.2rem 0;position:sticky;top:2.4rem;width:12.1rem}@media print{.md-sidebar{display:none}}@media screen and (max-width:76.234375em){[dir=ltr] .md-sidebar--primary{left:-12.1rem}[dir=rtl] .md-sidebar--primary{right:-12.1rem}.md-sidebar--primary{background-color:var(--md-default-bg-color);display:block;height:100%;position:fixed;top:0;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;width:12.1rem;z-index:5}[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{box-shadow:var(--md-shadow-z3);transform:translateX(12.1rem)}[dir=rtl] [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{transform:translateX(-12.1rem)}.md-sidebar--primary .md-sidebar__scrollwrap{bottom:0;left:0;margin:0;overflow:hidden;position:absolute;right:0;scroll-snap-type:none;top:0}}@media screen and (min-width:76.25em){.md-sidebar{height:0}.no-js .md-sidebar{height:auto}.md-header--lifted~.md-container .md-sidebar{top:4.8rem}}.md-sidebar--secondary{display:none;order:2}@media screen and (min-width:60em){.md-sidebar--secondary{height:0}.no-js .md-sidebar--secondary{height:auto}.md-sidebar--secondary:not([hidden]){display:block}.md-sidebar--secondary .md-sidebar__scrollwrap{touch-action:pan-y}}.md-sidebar__scrollwrap{scrollbar-gutter:stable;-webkit-backface-visibility:hidden;backface-visibility:hidden;margin:0 .2rem;overflow-y:auto;scrollbar-color:var(--md-default-fg-color--lighter) #0000;scrollbar-width:thin}.md-sidebar__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-sidebar__scrollwrap:focus-within,.md-sidebar__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) #0000}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb:hover,.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}@supports selector(::-webkit-scrollbar){.md-sidebar__scrollwrap{scrollbar-gutter:auto}[dir=ltr] .md-sidebar__inner{padding-right:calc(100% - 11.5rem)}[dir=rtl] .md-sidebar__inner{padding-left:calc(100% - 11.5rem)}}@media screen and (max-width:76.234375em){.md-overlay{background-color:#0000008a;height:0;opacity:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0;z-index:5}[data-md-toggle=drawer]:checked~.md-overlay{height:100%;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@keyframes facts{0%{height:0}to{height:.65rem}}@keyframes fact{0%{opacity:0;transform:translateY(100%)}50%{opacity:0}to{opacity:1;transform:translateY(0)}}:root{--md-source-forks-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"/></svg>');--md-source-repositories-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"/></svg>');--md-source-stars-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"/></svg>');--md-source-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"/></svg>')}.md-source{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;font-size:.65rem;line-height:1.2;outline-color:var(--md-accent-fg-color);transition:opacity .25s;white-space:nowrap}.md-source:hover{opacity:.7}.md-source__icon{display:inline-block;height:2.4rem;vertical-align:middle;width:2rem}[dir=ltr] .md-source__icon svg{margin-left:.6rem}[dir=rtl] .md-source__icon svg{margin-right:.6rem}.md-source__icon svg{margin-top:.6rem}[dir=ltr] .md-source__icon+.md-source__repository{padding-left:2rem}[dir=rtl] .md-source__icon+.md-source__repository{padding-right:2rem}[dir=ltr] .md-source__icon+.md-source__repository{margin-left:-2rem}[dir=rtl] .md-source__icon+.md-source__repository{margin-right:-2rem}[dir=ltr] .md-source__repository{margin-left:.6rem}[dir=rtl] .md-source__repository{margin-right:.6rem}.md-source__repository{display:inline-block;max-width:calc(100% - 1.2rem);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.md-source__facts{display:flex;font-size:.55rem;gap:.4rem;list-style-type:none;margin:.1rem 0 0;opacity:.75;overflow:hidden;padding:0;width:100%}.md-source__repository--active .md-source__facts{animation:facts .25s ease-in}.md-source__fact{overflow:hidden;text-overflow:ellipsis}.md-source__repository--active .md-source__fact{animation:fact .4s ease-out}[dir=ltr] .md-source__fact:before{margin-right:.1rem}[dir=rtl] .md-source__fact:before{margin-left:.1rem}.md-source__fact:before{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-top;width:.6rem}.md-source__fact:nth-child(1n+2){flex-shrink:0}.md-source__fact--version:before{-webkit-mask-image:var(--md-source-version-icon);mask-image:var(--md-source-version-icon)}.md-source__fact--stars:before{-webkit-mask-image:var(--md-source-stars-icon);mask-image:var(--md-source-stars-icon)}.md-source__fact--forks:before{-webkit-mask-image:var(--md-source-forks-icon);mask-image:var(--md-source-forks-icon)}.md-source__fact--repositories:before{-webkit-mask-image:var(--md-source-repositories-icon);mask-image:var(--md-source-repositories-icon)}.md-source-file{margin:1em 0}[dir=ltr] .md-source-file__fact{margin-right:.6rem}[dir=rtl] .md-source-file__fact{margin-left:.6rem}.md-source-file__fact{align-items:center;color:var(--md-default-fg-color--light);display:inline-flex;font-size:.68rem;gap:.3rem}.md-source-file__fact .md-icon{flex-shrink:0;margin-bottom:.05rem}[dir=ltr] .md-source-file__fact .md-author{float:left}[dir=rtl] .md-source-file__fact .md-author{float:right}.md-source-file__fact .md-author{margin-right:.2rem}.md-source-file__fact svg{width:.9rem}:root{--md-status:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/></svg>');--md-status--new:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-10 5h-2v-2h2v2m0-4h-2V7h2v6Z"/></svg>');--md-status--deprecated:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/></svg>');--md-status--encrypted:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4m0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3Z"/></svg>')}.md-status:after{background-color:var(--md-default-fg-color--light);content:"";display:inline-block;height:1.125em;-webkit-mask-image:var(--md-status);mask-image:var(--md-status);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-bottom;width:1.125em}.md-status:hover:after{background-color:currentcolor}.md-status--new:after{-webkit-mask-image:var(--md-status--new);mask-image:var(--md-status--new)}.md-status--deprecated:after{-webkit-mask-image:var(--md-status--deprecated);mask-image:var(--md-status--deprecated)}.md-status--encrypted:after{-webkit-mask-image:var(--md-status--encrypted);mask-image:var(--md-status--encrypted)}.md-tabs{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);display:block;line-height:1.3;overflow:auto;width:100%;z-index:3}@media print{.md-tabs{display:none}}@media screen and (max-width:76.234375em){.md-tabs{display:none}}.md-tabs[hidden]{pointer-events:none}[dir=ltr] .md-tabs__list{margin-left:.2rem}[dir=rtl] .md-tabs__list{margin-right:.2rem}.md-tabs__list{contain:content;display:flex;list-style:none;margin:0;overflow:auto;padding:0;scrollbar-width:none;white-space:nowrap}.md-tabs__list::-webkit-scrollbar{display:none}.md-tabs__item{height:2.4rem;padding-left:.6rem;padding-right:.6rem}.md-tabs__item--active .md-tabs__link{color:inherit;opacity:1}.md-tabs__link{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;font-size:.7rem;margin-top:.8rem;opacity:.7;outline-color:var(--md-accent-fg-color);outline-offset:.2rem;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .25s}.md-tabs__link:focus,.md-tabs__link:hover{color:inherit;opacity:1}[dir=ltr] .md-tabs__link svg{margin-right:.4rem}[dir=rtl] .md-tabs__link svg{margin-left:.4rem}.md-tabs__link svg{fill:currentcolor;height:1.3em}.md-tabs__item:nth-child(2) .md-tabs__link{transition-delay:20ms}.md-tabs__item:nth-child(3) .md-tabs__link{transition-delay:40ms}.md-tabs__item:nth-child(4) .md-tabs__link{transition-delay:60ms}.md-tabs__item:nth-child(5) .md-tabs__link{transition-delay:80ms}.md-tabs__item:nth-child(6) .md-tabs__link{transition-delay:.1s}.md-tabs__item:nth-child(7) .md-tabs__link{transition-delay:.12s}.md-tabs__item:nth-child(8) .md-tabs__link{transition-delay:.14s}.md-tabs__item:nth-child(9) .md-tabs__link{transition-delay:.16s}.md-tabs__item:nth-child(10) .md-tabs__link{transition-delay:.18s}.md-tabs__item:nth-child(11) .md-tabs__link{transition-delay:.2s}.md-tabs__item:nth-child(12) .md-tabs__link{transition-delay:.22s}.md-tabs__item:nth-child(13) .md-tabs__link{transition-delay:.24s}.md-tabs__item:nth-child(14) .md-tabs__link{transition-delay:.26s}.md-tabs__item:nth-child(15) .md-tabs__link{transition-delay:.28s}.md-tabs__item:nth-child(16) .md-tabs__link{transition-delay:.3s}.md-tabs[hidden] .md-tabs__link{opacity:0;transform:translateY(50%);transition:transform 0ms .1s,opacity .1s}:root{--md-tag-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5.41 21 .71-4h-4l.35-2h4l1.06-6h-4l.35-2h4l.71-4h2l-.71 4h6l.71-4h2l-.71 4h4l-.35 2h-4l-1.06 6h4l-.35 2h-4l-.71 4h-2l.71-4h-6l-.71 4h-2M9.53 9l-1.06 6h6l1.06-6h-6Z"/></svg>')}.md-typeset .md-tags:not([hidden]){display:inline-flex;flex-wrap:wrap;gap:.5em;margin-bottom:.75em;margin-top:-.125em}.md-typeset .md-tag{align-items:center;background:var(--md-default-fg-color--lightest);border-radius:2.4rem;display:inline-flex;font-size:.64rem;font-size:min(.8em,.64rem);font-weight:700;gap:.5em;letter-spacing:normal;line-height:1.6;padding:.3125em .78125em}.md-typeset .md-tag[href]{-webkit-tap-highlight-color:transparent;color:inherit;outline:none;transition:color 125ms,background-color 125ms}.md-typeset .md-tag[href]:focus,.md-typeset .md-tag[href]:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}[id]>.md-typeset .md-tag{vertical-align:text-top}.md-typeset .md-tag-icon:before{background-color:var(--md-default-fg-color--lighter);content:"";display:inline-block;height:1.2em;-webkit-mask-image:var(--md-tag-icon);mask-image:var(--md-tag-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color 125ms;vertical-align:text-bottom;width:1.2em}.md-typeset .md-tag-icon[href]:focus:before,.md-typeset .md-tag-icon[href]:hover:before{background-color:var(--md-accent-bg-color)}@keyframes pulse{0%{transform:scale(.95)}75%{transform:scale(1)}to{transform:scale(.95)}}:root{--md-annotation-bg-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-annotation-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 13h-4v4h-2v-4H7v-2h4V7h2v4h4m-5-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-tooltip-width:20rem}.md-tooltip{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);font-family:var(--md-text-font-family);left:clamp(var(--md-tooltip-0,0rem) + .8rem,var(--md-tooltip-x),100vw + var(--md-tooltip-0,0rem) + .8rem - var(--md-tooltip-width) - 2 * .8rem);max-width:calc(100vw - 1.6rem);opacity:0;position:absolute;top:var(--md-tooltip-y);transform:translateY(-.4rem);transition:transform 0ms .25s,opacity .25s,z-index .25s;width:var(--md-tooltip-width);z-index:0}.md-tooltip--active{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,z-index 0ms;z-index:2}.md-tooltip--inline{font-weight:700;-webkit-user-select:none;user-select:none;width:auto}.md-tooltip--inline:not(.md-tooltip--active){transform:translateY(.2rem) scale(.9)}.md-tooltip--inline .md-tooltip__inner{font-size:.5rem;padding:.2rem .4rem}[hidden]+.md-tooltip--inline{display:none}.focus-visible>.md-tooltip,.md-tooltip:target{outline:var(--md-accent-fg-color) auto}.md-tooltip__inner{font-size:.64rem;padding:.8rem}.md-tooltip__inner.md-typeset>:first-child{margin-top:0}.md-tooltip__inner.md-typeset>:last-child{margin-bottom:0}.md-annotation{font-weight:400;outline:none;vertical-align:text-bottom;white-space:normal}[dir=rtl] .md-annotation{direction:rtl}code .md-annotation{font-family:var(--md-code-font-family);font-size:inherit}.md-annotation:not([hidden]){display:inline-block;line-height:1.25}.md-annotation__index{border-radius:.01px;cursor:pointer;display:inline-block;margin-left:.4ch;margin-right:.4ch;outline:none;overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;vertical-align:text-top;z-index:0}.md-annotation .md-annotation__index{transition:z-index .25s}@media screen{.md-annotation__index{width:2.2ch}[data-md-visible]>.md-annotation__index{animation:pulse 2s infinite}.md-annotation__index:before{background:var(--md-default-bg-color);-webkit-mask-image:var(--md-annotation-bg-icon);mask-image:var(--md-annotation-bg-icon)}.md-annotation__index:after,.md-annotation__index:before{content:"";height:2.2ch;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:-.1ch;width:2.2ch;z-index:-1}.md-annotation__index:after{background-color:var(--md-default-fg-color--lighter);-webkit-mask-image:var(--md-annotation-icon);mask-image:var(--md-annotation-icon);transform:scale(1.0001);transition:background-color .25s,transform .25s}.md-tooltip--active+.md-annotation__index:after{transform:rotate(45deg)}.md-tooltip--active+.md-annotation__index:after,:hover>.md-annotation__index:after{background-color:var(--md-accent-fg-color)}}.md-tooltip--active+.md-annotation__index{animation-play-state:paused;transition-duration:0ms;z-index:2}.md-annotation__index [data-md-annotation-id]{display:inline-block}@media print{.md-annotation__index [data-md-annotation-id]{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);font-weight:700;padding:0 .6ch;white-space:nowrap}.md-annotation__index [data-md-annotation-id]:after{content:attr(data-md-annotation-id)}}.md-typeset .md-annotation-list{counter-reset:xxx;list-style:none}.md-typeset .md-annotation-list li{position:relative}[dir=ltr] .md-typeset .md-annotation-list li:before{left:-2.125em}[dir=rtl] .md-typeset .md-annotation-list li:before{right:-2.125em}.md-typeset .md-annotation-list li:before{background:var(--md-default-fg-color--lighter);border-radius:2ch;color:var(--md-default-bg-color);content:counter(xxx);counter-increment:xxx;font-size:.8875em;font-weight:700;height:2ch;line-height:1.25;min-width:2ch;padding:0 .6ch;position:absolute;text-align:center;top:.25em}[dir=ltr] .md-top{margin-left:50%}[dir=rtl] .md-top{margin-right:50%}.md-top{background-color:var(--md-default-bg-color);border-radius:1.6rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color--light);cursor:pointer;display:block;font-size:.7rem;outline:none;padding:.4rem .8rem;position:fixed;top:3.2rem;transform:translate(-50%);transition:color 125ms,background-color 125ms,transform 125ms cubic-bezier(.4,0,.2,1),opacity 125ms;z-index:2}@media print{.md-top{display:none}}[dir=rtl] .md-top{transform:translate(50%)}.md-top[hidden]{opacity:0;pointer-events:none;transform:translate(-50%,.2rem);transition-duration:0ms}[dir=rtl] .md-top[hidden]{transform:translate(50%,.2rem)}.md-top:focus,.md-top:hover{background-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}.md-top svg{display:inline-block;vertical-align:-.5em}@keyframes hoverfix{0%{pointer-events:none}}:root{--md-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301 191.9 288 191.9L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>')}.md-version{flex-shrink:0;font-size:.8rem;height:2.4rem}[dir=ltr] .md-version__current{margin-left:1.4rem;margin-right:.4rem}[dir=rtl] .md-version__current{margin-left:.4rem;margin-right:1.4rem}.md-version__current{color:inherit;cursor:pointer;outline:none;position:relative;top:.05rem}[dir=ltr] .md-version__current:after{margin-left:.4rem}[dir=rtl] .md-version__current:after{margin-right:.4rem}.md-version__current:after{background-color:currentcolor;content:"";display:inline-block;height:.6rem;-webkit-mask-image:var(--md-version-icon);mask-image:var(--md-version-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.4rem}.md-version__list{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:var(--md-shadow-z2);color:var(--md-default-fg-color);list-style-type:none;margin:.2rem .8rem;max-height:0;opacity:0;overflow:auto;padding:0;position:absolute;scroll-snap-type:y mandatory;top:.15rem;transition:max-height 0ms .5s,opacity .25s .25s;z-index:3}.md-version:focus-within .md-version__list,.md-version:hover .md-version__list{max-height:10rem;opacity:1;transition:max-height 0ms,opacity .25s}@media (hover:none),(pointer:coarse){.md-version:hover .md-version__list{animation:hoverfix .25s forwards}.md-version:focus-within .md-version__list{animation:none}}.md-version__item{line-height:1.8rem}[dir=ltr] .md-version__link{padding-left:.6rem;padding-right:1.2rem}[dir=rtl] .md-version__link{padding-left:1.2rem;padding-right:.6rem}.md-version__link{cursor:pointer;display:block;outline:none;scroll-snap-align:start;transition:color .25s,background-color .25s;white-space:nowrap;width:100%}.md-version__link:focus,.md-version__link:hover{color:var(--md-accent-fg-color)}.md-version__link:focus{background-color:var(--md-default-fg-color--lightest)}:root{--md-admonition-icon--note:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m3.1 5.07c.14 0 .28.05.4.16l1.27 1.27c.23.22.23.57 0 .78l-1 1-2.05-2.05 1-1c.1-.11.24-.16.38-.16m-1.97 1.74 2.06 2.06-6.06 6.06H7.07v-2.06l6.06-6.06Z"/></svg>');--md-admonition-icon--abstract:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/></svg>');--md-admonition-icon--info:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/></svg>');--md-admonition-icon--tip:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27Z"/></svg>');--md-admonition-icon--success:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59 21 7Z"/></svg>');--md-admonition-icon--question:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10Z"/></svg>');--md-admonition-icon--warning:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21Z"/></svg>');--md-admonition-icon--failure:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>');--md-admonition-icon--danger:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2Z"/></svg>');--md-admonition-icon--bug:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 13h2v1h-2v-1m10-8v6c0 5.5-3.8 10.7-9 12-5.2-1.3-9-6.5-9-12V5l9-4 9 4m-4 5h-2.2c-.2-.6-.6-1.1-1.1-1.5l1.2-1.2-.7-.7L12.8 8H12c-.2 0-.5 0-.7.1L9.9 6.6l-.8.8 1.2 1.2c-.5.3-.9.8-1.1 1.4H7v1h2v1H7v1h2v1H7v1h2.2c.4 1.2 1.5 2 2.8 2s2.4-.8 2.8-2H17v-1h-2v-1h2v-1h-2v-1h2v-1m-6 2h2v-1h-2v1Z"/></svg>');--md-admonition-icon--example:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v2h1v14a4 4 0 0 0 4 4 4 4 0 0 0 4-4V4h1V2H7m4 14c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m2-4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1m1-5h-4V4h4v3Z"/></svg>');--md-admonition-icon--quote:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4Z"/></svg>')}.md-typeset .admonition,.md-typeset details{background-color:var(--md-admonition-bg-color);border:.075rem solid #448aff;border-radius:.2rem;box-shadow:var(--md-shadow-z1);color:var(--md-admonition-fg-color);display:flow-root;font-size:.64rem;margin:1.5625em 0;padding:0 .6rem;page-break-inside:avoid;transition:box-shadow 125ms}@media print{.md-typeset .admonition,.md-typeset details{box-shadow:none}}.md-typeset .admonition:focus-within,.md-typeset details:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .admonition>*,.md-typeset details>*{box-sizing:border-box}.md-typeset .admonition .admonition,.md-typeset .admonition details,.md-typeset details .admonition,.md-typeset details details{margin-bottom:1em;margin-top:1em}.md-typeset .admonition .md-typeset__scrollwrap,.md-typeset details .md-typeset__scrollwrap{margin:1em -.6rem}.md-typeset .admonition .md-typeset__table,.md-typeset details .md-typeset__table{padding:0 .6rem}.md-typeset .admonition>.tabbed-set:only-child,.md-typeset details>.tabbed-set:only-child{margin-top:0}html .md-typeset .admonition>:last-child,html .md-typeset details>:last-child{margin-bottom:.6rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{padding-left:2rem;padding-right:.6rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{padding-left:.6rem;padding-right:2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-left-width:.2rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-right-width:.2rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset .admonition-title,[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset .admonition-title,.md-typeset summary{background-color:#448aff1a;border:none;font-weight:700;margin:0 -.6rem;padding-bottom:.4rem;padding-top:.4rem;position:relative}html .md-typeset .admonition-title:last-child,html .md-typeset summary:last-child{margin-bottom:0}[dir=ltr] .md-typeset .admonition-title:before,[dir=ltr] .md-typeset summary:before{left:.6rem}[dir=rtl] .md-typeset .admonition-title:before,[dir=rtl] .md-typeset summary:before{right:.6rem}.md-typeset .admonition-title:before,.md-typeset summary:before{background-color:#448aff;content:"";height:1rem;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;width:1rem}.md-typeset .admonition-title code,.md-typeset summary code{box-shadow:0 0 0 .05rem var(--md-default-fg-color--lightest)}.md-typeset .admonition.note,.md-typeset details.note{border-color:#448aff}.md-typeset .admonition.note:focus-within,.md-typeset details.note:focus-within{box-shadow:0 0 0 .2rem #448aff1a}.md-typeset .note>.admonition-title,.md-typeset .note>summary{background-color:#448aff1a}.md-typeset .note>.admonition-title:before,.md-typeset .note>summary:before{background-color:#448aff;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note)}.md-typeset .note>.admonition-title:after,.md-typeset .note>summary:after{color:#448aff}.md-typeset .admonition.abstract,.md-typeset details.abstract{border-color:#00b0ff}.md-typeset .admonition.abstract:focus-within,.md-typeset details.abstract:focus-within{box-shadow:0 0 0 .2rem #00b0ff1a}.md-typeset .abstract>.admonition-title,.md-typeset .abstract>summary{background-color:#00b0ff1a}.md-typeset .abstract>.admonition-title:before,.md-typeset .abstract>summary:before{background-color:#00b0ff;-webkit-mask-image:var(--md-admonition-icon--abstract);mask-image:var(--md-admonition-icon--abstract)}.md-typeset .abstract>.admonition-title:after,.md-typeset .abstract>summary:after{color:#00b0ff}.md-typeset .admonition.info,.md-typeset details.info{border-color:#00b8d4}.md-typeset .admonition.info:focus-within,.md-typeset details.info:focus-within{box-shadow:0 0 0 .2rem #00b8d41a}.md-typeset .info>.admonition-title,.md-typeset .info>summary{background-color:#00b8d41a}.md-typeset .info>.admonition-title:before,.md-typeset .info>summary:before{background-color:#00b8d4;-webkit-mask-image:var(--md-admonition-icon--info);mask-image:var(--md-admonition-icon--info)}.md-typeset .info>.admonition-title:after,.md-typeset .info>summary:after{color:#00b8d4}.md-typeset .admonition.tip,.md-typeset details.tip{border-color:#00bfa5}.md-typeset .admonition.tip:focus-within,.md-typeset details.tip:focus-within{box-shadow:0 0 0 .2rem #00bfa51a}.md-typeset .tip>.admonition-title,.md-typeset .tip>summary{background-color:#00bfa51a}.md-typeset .tip>.admonition-title:before,.md-typeset .tip>summary:before{background-color:#00bfa5;-webkit-mask-image:var(--md-admonition-icon--tip);mask-image:var(--md-admonition-icon--tip)}.md-typeset .tip>.admonition-title:after,.md-typeset .tip>summary:after{color:#00bfa5}.md-typeset .admonition.success,.md-typeset details.success{border-color:#00c853}.md-typeset .admonition.success:focus-within,.md-typeset details.success:focus-within{box-shadow:0 0 0 .2rem #00c8531a}.md-typeset .success>.admonition-title,.md-typeset .success>summary{background-color:#00c8531a}.md-typeset .success>.admonition-title:before,.md-typeset .success>summary:before{background-color:#00c853;-webkit-mask-image:var(--md-admonition-icon--success);mask-image:var(--md-admonition-icon--success)}.md-typeset .success>.admonition-title:after,.md-typeset .success>summary:after{color:#00c853}.md-typeset .admonition.question,.md-typeset details.question{border-color:#64dd17}.md-typeset .admonition.question:focus-within,.md-typeset details.question:focus-within{box-shadow:0 0 0 .2rem #64dd171a}.md-typeset .question>.admonition-title,.md-typeset .question>summary{background-color:#64dd171a}.md-typeset .question>.admonition-title:before,.md-typeset .question>summary:before{background-color:#64dd17;-webkit-mask-image:var(--md-admonition-icon--question);mask-image:var(--md-admonition-icon--question)}.md-typeset .question>.admonition-title:after,.md-typeset .question>summary:after{color:#64dd17}.md-typeset .admonition.warning,.md-typeset details.warning{border-color:#ff9100}.md-typeset .admonition.warning:focus-within,.md-typeset details.warning:focus-within{box-shadow:0 0 0 .2rem #ff91001a}.md-typeset .warning>.admonition-title,.md-typeset .warning>summary{background-color:#ff91001a}.md-typeset .warning>.admonition-title:before,.md-typeset .warning>summary:before{background-color:#ff9100;-webkit-mask-image:var(--md-admonition-icon--warning);mask-image:var(--md-admonition-icon--warning)}.md-typeset .warning>.admonition-title:after,.md-typeset .warning>summary:after{color:#ff9100}.md-typeset .admonition.failure,.md-typeset details.failure{border-color:#ff5252}.md-typeset .admonition.failure:focus-within,.md-typeset details.failure:focus-within{box-shadow:0 0 0 .2rem #ff52521a}.md-typeset .failure>.admonition-title,.md-typeset .failure>summary{background-color:#ff52521a}.md-typeset .failure>.admonition-title:before,.md-typeset .failure>summary:before{background-color:#ff5252;-webkit-mask-image:var(--md-admonition-icon--failure);mask-image:var(--md-admonition-icon--failure)}.md-typeset .failure>.admonition-title:after,.md-typeset .failure>summary:after{color:#ff5252}.md-typeset .admonition.danger,.md-typeset details.danger{border-color:#ff1744}.md-typeset .admonition.danger:focus-within,.md-typeset details.danger:focus-within{box-shadow:0 0 0 .2rem #ff17441a}.md-typeset .danger>.admonition-title,.md-typeset .danger>summary{background-color:#ff17441a}.md-typeset .danger>.admonition-title:before,.md-typeset .danger>summary:before{background-color:#ff1744;-webkit-mask-image:var(--md-admonition-icon--danger);mask-image:var(--md-admonition-icon--danger)}.md-typeset .danger>.admonition-title:after,.md-typeset .danger>summary:after{color:#ff1744}.md-typeset .admonition.bug,.md-typeset details.bug{border-color:#f50057}.md-typeset .admonition.bug:focus-within,.md-typeset details.bug:focus-within{box-shadow:0 0 0 .2rem #f500571a}.md-typeset .bug>.admonition-title,.md-typeset .bug>summary{background-color:#f500571a}.md-typeset .bug>.admonition-title:before,.md-typeset .bug>summary:before{background-color:#f50057;-webkit-mask-image:var(--md-admonition-icon--bug);mask-image:var(--md-admonition-icon--bug)}.md-typeset .bug>.admonition-title:after,.md-typeset .bug>summary:after{color:#f50057}.md-typeset .admonition.example,.md-typeset details.example{border-color:#7c4dff}.md-typeset .admonition.example:focus-within,.md-typeset details.example:focus-within{box-shadow:0 0 0 .2rem #7c4dff1a}.md-typeset .example>.admonition-title,.md-typeset .example>summary{background-color:#7c4dff1a}.md-typeset .example>.admonition-title:before,.md-typeset .example>summary:before{background-color:#7c4dff;-webkit-mask-image:var(--md-admonition-icon--example);mask-image:var(--md-admonition-icon--example)}.md-typeset .example>.admonition-title:after,.md-typeset .example>summary:after{color:#7c4dff}.md-typeset .admonition.quote,.md-typeset details.quote{border-color:#9e9e9e}.md-typeset .admonition.quote:focus-within,.md-typeset details.quote:focus-within{box-shadow:0 0 0 .2rem #9e9e9e1a}.md-typeset .quote>.admonition-title,.md-typeset .quote>summary{background-color:#9e9e9e1a}.md-typeset .quote>.admonition-title:before,.md-typeset .quote>summary:before{background-color:#9e9e9e;-webkit-mask-image:var(--md-admonition-icon--quote);mask-image:var(--md-admonition-icon--quote)}.md-typeset .quote>.admonition-title:after,.md-typeset .quote>summary:after{color:#9e9e9e}:root{--md-footnotes-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2Z"/></svg>')}.md-typeset .footnote{color:var(--md-default-fg-color--light);font-size:.64rem}[dir=ltr] .md-typeset .footnote>ol{margin-left:0}[dir=rtl] .md-typeset .footnote>ol{margin-right:0}.md-typeset .footnote>ol>li{transition:color 125ms}.md-typeset .footnote>ol>li:target{color:var(--md-default-fg-color)}.md-typeset .footnote>ol>li:focus-within .footnote-backref{opacity:1;transform:translateX(0);transition:none}.md-typeset .footnote>ol>li:hover .footnote-backref,.md-typeset .footnote>ol>li:target .footnote-backref{opacity:1;transform:translateX(0)}.md-typeset .footnote>ol>li>:first-child{margin-top:0}.md-typeset .footnote-ref{font-size:.75em;font-weight:700}html .md-typeset .footnote-ref{outline-offset:.1rem}.md-typeset [id^="fnref:"]:target>.footnote-ref{outline:auto}.md-typeset .footnote-backref{color:var(--md-typeset-a-color);display:inline-block;font-size:0;opacity:0;transform:translateX(.25rem);transition:color .25s,transform .25s .25s,opacity 125ms .25s;vertical-align:text-bottom}@media print{.md-typeset .footnote-backref{color:var(--md-typeset-a-color);opacity:1;transform:translateX(0)}}[dir=rtl] .md-typeset .footnote-backref{transform:translateX(-.25rem)}.md-typeset .footnote-backref:hover{color:var(--md-accent-fg-color)}.md-typeset .footnote-backref:before{background-color:currentcolor;content:"";display:inline-block;height:.8rem;-webkit-mask-image:var(--md-footnotes-icon);mask-image:var(--md-footnotes-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.8rem}[dir=rtl] .md-typeset .footnote-backref:before svg{transform:scaleX(-1)}[dir=ltr] .md-typeset .headerlink{margin-left:.5rem}[dir=rtl] .md-typeset .headerlink{margin-right:.5rem}.md-typeset .headerlink{color:var(--md-default-fg-color--lighter);display:inline-block;opacity:0;transition:color .25s,opacity 125ms}@media print{.md-typeset .headerlink{display:none}}.md-typeset .headerlink:focus,.md-typeset :hover>.headerlink,.md-typeset :target>.headerlink{opacity:1;transition:color .25s,opacity 125ms}.md-typeset .headerlink:focus,.md-typeset .headerlink:hover,.md-typeset :target>.headerlink{color:var(--md-accent-fg-color)}.md-typeset :target{--md-scroll-margin:3.6rem;--md-scroll-offset:0rem;scroll-margin-top:calc(var(--md-scroll-margin) - var(--md-scroll-offset))}@media screen and (min-width:76.25em){.md-header--lifted~.md-container .md-typeset :target{--md-scroll-margin:6rem}}.md-typeset h1:target,.md-typeset h2:target,.md-typeset h3:target{--md-scroll-offset:0.2rem}.md-typeset h4:target{--md-scroll-offset:0.15rem}.md-typeset div.arithmatex{overflow:auto}@media screen and (max-width:44.984375em){.md-typeset div.arithmatex{margin:0 -.8rem}.md-typeset div.arithmatex>*{width:-webkit-min-content;width:min-content}}.md-typeset div.arithmatex>*{margin-left:auto!important;margin-right:auto!important;padding:0 .8rem;touch-action:auto}.md-typeset div.arithmatex>* mjx-container{margin:0!important}.md-typeset div.arithmatex mjx-assistive-mml{height:0}.md-typeset del.critic{background-color:var(--md-typeset-del-color)}.md-typeset del.critic,.md-typeset ins.critic{-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-typeset ins.critic{background-color:var(--md-typeset-ins-color)}.md-typeset .critic.comment{-webkit-box-decoration-break:clone;box-decoration-break:clone;color:var(--md-code-hl-comment-color)}.md-typeset .critic.comment:before{content:"/* "}.md-typeset .critic.comment:after{content:" */"}.md-typeset .critic.block{box-shadow:none;display:block;margin:1em 0;overflow:auto;padding-left:.8rem;padding-right:.8rem}.md-typeset .critic.block>:first-child{margin-top:.5em}.md-typeset .critic.block>:last-child{margin-bottom:.5em}:root{--md-details-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset details{display:flow-root;overflow:visible;padding-top:0}.md-typeset details[open]>summary:after{transform:rotate(90deg)}.md-typeset details:not([open]){box-shadow:none;padding-bottom:0}.md-typeset details:not([open])>summary{border-radius:.1rem}[dir=ltr] .md-typeset summary{padding-right:1.8rem}[dir=rtl] .md-typeset summary{padding-left:1.8rem}[dir=ltr] .md-typeset summary{border-top-left-radius:.1rem}[dir=ltr] .md-typeset summary,[dir=rtl] .md-typeset summary{border-top-right-radius:.1rem}[dir=rtl] .md-typeset summary{border-top-left-radius:.1rem}.md-typeset summary{cursor:pointer;display:block;min-height:1rem;overflow:hidden}.md-typeset summary.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset summary:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}[dir=ltr] .md-typeset summary:after{right:.4rem}[dir=rtl] .md-typeset summary:after{left:.4rem}.md-typeset summary:after{background-color:currentcolor;content:"";height:1rem;-webkit-mask-image:var(--md-details-icon);mask-image:var(--md-details-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.625em;transform:rotate(0deg);transition:transform .25s;width:1rem}[dir=rtl] .md-typeset summary:after{transform:rotate(180deg)}.md-typeset summary::marker{display:none}.md-typeset summary::-webkit-details-marker{display:none}.md-typeset .emojione,.md-typeset .gemoji,.md-typeset .twemoji{--md-icon-size:1.125em;display:inline-flex;height:var(--md-icon-size);vertical-align:text-top}.md-typeset .emojione svg,.md-typeset .gemoji svg,.md-typeset .twemoji svg{fill:currentcolor;max-height:100%;width:var(--md-icon-size)}.md-typeset .lg,.md-typeset .xl,.md-typeset .xxl,.md-typeset .xxxl{vertical-align:text-bottom}.md-typeset .middle{vertical-align:middle}.md-typeset .lg{--md-icon-size:1.5em}.md-typeset .xl{--md-icon-size:2.25em}.md-typeset .xxl{--md-icon-size:3em}.md-typeset .xxxl{--md-icon-size:4em}.highlight .o,.highlight .ow{color:var(--md-code-hl-operator-color)}.highlight .p{color:var(--md-code-hl-punctuation-color)}.highlight .cpf,.highlight .l,.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .si,.highlight .ss{color:var(--md-code-hl-string-color)}.highlight .cp,.highlight .se,.highlight .sh,.highlight .sr,.highlight .sx{color:var(--md-code-hl-special-color)}.highlight .il,.highlight .m,.highlight .mb,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:var(--md-code-hl-number-color)}.highlight .k,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kt{color:var(--md-code-hl-keyword-color)}.highlight .kc,.highlight .n{color:var(--md-code-hl-name-color)}.highlight .bp,.highlight .nb,.highlight .no{color:var(--md-code-hl-constant-color)}.highlight .nc,.highlight .ne,.highlight .nf,.highlight .nn{color:var(--md-code-hl-function-color)}.highlight .nd,.highlight .ni,.highlight .nl,.highlight .nt{color:var(--md-code-hl-keyword-color)}.highlight .c,.highlight .c1,.highlight .ch,.highlight .cm,.highlight .cs,.highlight .sd{color:var(--md-code-hl-comment-color)}.highlight .na,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:var(--md-code-hl-variable-color)}.highlight .ge,.highlight .gh,.highlight .go,.highlight .gp,.highlight .gr,.highlight .gs,.highlight .gt,.highlight .gu{color:var(--md-code-hl-generic-color)}.highlight .gd,.highlight .gi{border-radius:.1rem;margin:0 -.125em;padding:0 .125em}.highlight .gd{background-color:var(--md-typeset-del-color)}.highlight .gi{background-color:var(--md-typeset-ins-color)}.highlight .hll{background-color:var(--md-code-hl-color--light);box-shadow:2px 0 0 0 var(--md-code-hl-color) inset;display:block;margin:0 -1.1764705882em;padding:0 1.1764705882em}.highlight span.filename{background-color:var(--md-code-bg-color);border-bottom:.05rem solid var(--md-default-fg-color--lightest);border-top-left-radius:.1rem;border-top-right-radius:.1rem;display:flow-root;font-size:.85em;font-weight:700;margin-top:1em;padding:.6617647059em 1.1764705882em;position:relative}.highlight span.filename+pre{margin-top:0}.highlight span.filename+pre>code{border-top-left-radius:0;border-top-right-radius:0}.highlight [data-linenos]:before{background-color:var(--md-code-bg-color);box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;color:var(--md-default-fg-color--light);content:attr(data-linenos);float:left;left:-1.1764705882em;margin-left:-1.1764705882em;margin-right:1.1764705882em;padding-left:1.1764705882em;position:sticky;-webkit-user-select:none;user-select:none;z-index:3}.highlight code a[id]{position:absolute;visibility:hidden}.highlight code[data-md-copying] .hll{display:contents}.highlight code[data-md-copying] .md-annotation{display:none}.highlighttable{display:flow-root}.highlighttable tbody,.highlighttable td{display:block;padding:0}.highlighttable tr{display:flex}.highlighttable pre{margin:0}.highlighttable th.filename{flex-grow:1;padding:0;text-align:left}.highlighttable th.filename span.filename{margin-top:0}.highlighttable .linenos{background-color:var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-top-left-radius:.1rem;font-size:.85em;padding:.7720588235em 0 .7720588235em 1.1764705882em;-webkit-user-select:none;user-select:none}.highlighttable .linenodiv{box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;padding-right:.5882352941em}.highlighttable .linenodiv pre{color:var(--md-default-fg-color--light);text-align:right}.highlighttable .code{flex:1;min-width:0}.linenodiv a{color:inherit}.md-typeset .highlighttable{direction:ltr;margin:1em 0}.md-typeset .highlighttable>tbody>tr>.code>div>pre>code{border-bottom-left-radius:0;border-top-left-radius:0}.md-typeset .highlight+.result{border:.05rem solid var(--md-code-bg-color);border-bottom-left-radius:.1rem;border-bottom-right-radius:.1rem;border-top-width:.1rem;margin-top:-1.125em;overflow:visible;padding:0 1em}.md-typeset .highlight+.result:after{clear:both;content:"";display:block}@media screen and (max-width:44.984375em){.md-content__inner>.highlight{margin:1em -.8rem}.md-content__inner>.highlight>.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.code>div>pre>code,.md-content__inner>.highlight>.highlighttable>tbody>tr>.filename span.filename,.md-content__inner>.highlight>.highlighttable>tbody>tr>.linenos,.md-content__inner>.highlight>pre>code{border-radius:0}.md-content__inner>.highlight+.result{border-left-width:0;border-radius:0;border-right-width:0;margin-left:-.8rem;margin-right:-.8rem}}.md-typeset .keys kbd:after,.md-typeset .keys kbd:before{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;color:inherit;margin:0;position:relative}.md-typeset .keys span{color:var(--md-default-fg-color--light);padding:0 .2em}.md-typeset .keys .key-alt:before,.md-typeset .keys .key-left-alt:before,.md-typeset .keys .key-right-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-command:before,.md-typeset .keys .key-left-command:before,.md-typeset .keys .key-right-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-control:before,.md-typeset .keys .key-left-control:before,.md-typeset .keys .key-right-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-left-meta:before,.md-typeset .keys .key-meta:before,.md-typeset .keys .key-right-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-left-option:before,.md-typeset .keys .key-option:before,.md-typeset .keys .key-right-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-left-shift:before,.md-typeset .keys .key-right-shift:before,.md-typeset .keys .key-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-left-super:before,.md-typeset .keys .key-right-super:before,.md-typeset .keys .key-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-left-windows:before,.md-typeset .keys .key-right-windows:before,.md-typeset .keys .key-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-arrow-down:before{content:"↓";padding-right:.4em}.md-typeset .keys .key-arrow-left:before{content:"←";padding-right:.4em}.md-typeset .keys .key-arrow-right:before{content:"→";padding-right:.4em}.md-typeset .keys .key-arrow-up:before{content:"↑";padding-right:.4em}.md-typeset .keys .key-backspace:before{content:"⌫";padding-right:.4em}.md-typeset .keys .key-backtab:before{content:"⇤";padding-right:.4em}.md-typeset .keys .key-caps-lock:before{content:"⇪";padding-right:.4em}.md-typeset .keys .key-clear:before{content:"⌧";padding-right:.4em}.md-typeset .keys .key-context-menu:before{content:"☰";padding-right:.4em}.md-typeset .keys .key-delete:before{content:"⌦";padding-right:.4em}.md-typeset .keys .key-eject:before{content:"⏏";padding-right:.4em}.md-typeset .keys .key-end:before{content:"⤓";padding-right:.4em}.md-typeset .keys .key-escape:before{content:"⎋";padding-right:.4em}.md-typeset .keys .key-home:before{content:"⤒";padding-right:.4em}.md-typeset .keys .key-insert:before{content:"⎀";padding-right:.4em}.md-typeset .keys .key-page-down:before{content:"⇟";padding-right:.4em}.md-typeset .keys .key-page-up:before{content:"⇞";padding-right:.4em}.md-typeset .keys .key-print-screen:before{content:"⎙";padding-right:.4em}.md-typeset .keys .key-tab:after{content:"⇥";padding-left:.4em}.md-typeset .keys .key-num-enter:after{content:"⌤";padding-left:.4em}.md-typeset .keys .key-enter:after{content:"⏎";padding-left:.4em}:root{--md-tabbed-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 16.58 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42Z"/></svg>');--md-tabbed-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>')}.md-typeset .tabbed-set{border-radius:.1rem;display:flex;flex-flow:column wrap;margin:1em 0;position:relative}.md-typeset .tabbed-set>input{height:0;opacity:0;position:absolute;width:0}.md-typeset .tabbed-set>input:target{--md-scroll-offset:0.625em}.md-typeset .tabbed-set>input.focus-visible~.tabbed-labels:before{background-color:var(--md-accent-fg-color)}.md-typeset .tabbed-labels{-ms-overflow-style:none;box-shadow:0 -.05rem var(--md-default-fg-color--lightest) inset;display:flex;max-width:100%;overflow:auto;scrollbar-width:none}@media print{.md-typeset .tabbed-labels{display:contents}}@media screen{.js .md-typeset .tabbed-labels{position:relative}.js .md-typeset .tabbed-labels:before{background:var(--md-default-fg-color);bottom:0;content:"";display:block;height:2px;left:0;position:absolute;transform:translateX(var(--md-indicator-x));transition:width 225ms,background-color .25s,transform .25s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--md-indicator-width)}}.md-typeset .tabbed-labels::-webkit-scrollbar{display:none}.md-typeset .tabbed-labels>label{border-bottom:.1rem solid #0000;border-radius:.1rem .1rem 0 0;color:var(--md-default-fg-color--light);cursor:pointer;flex-shrink:0;font-size:.64rem;font-weight:700;padding:.78125em 1.25em .625em;scroll-margin-inline-start:1rem;transition:background-color .25s,color .25s;white-space:nowrap;width:auto}@media print{.md-typeset .tabbed-labels>label:first-child{order:1}.md-typeset .tabbed-labels>label:nth-child(2){order:2}.md-typeset .tabbed-labels>label:nth-child(3){order:3}.md-typeset .tabbed-labels>label:nth-child(4){order:4}.md-typeset .tabbed-labels>label:nth-child(5){order:5}.md-typeset .tabbed-labels>label:nth-child(6){order:6}.md-typeset .tabbed-labels>label:nth-child(7){order:7}.md-typeset .tabbed-labels>label:nth-child(8){order:8}.md-typeset .tabbed-labels>label:nth-child(9){order:9}.md-typeset .tabbed-labels>label:nth-child(10){order:10}.md-typeset .tabbed-labels>label:nth-child(11){order:11}.md-typeset .tabbed-labels>label:nth-child(12){order:12}.md-typeset .tabbed-labels>label:nth-child(13){order:13}.md-typeset .tabbed-labels>label:nth-child(14){order:14}.md-typeset .tabbed-labels>label:nth-child(15){order:15}.md-typeset .tabbed-labels>label:nth-child(16){order:16}.md-typeset .tabbed-labels>label:nth-child(17){order:17}.md-typeset .tabbed-labels>label:nth-child(18){order:18}.md-typeset .tabbed-labels>label:nth-child(19){order:19}.md-typeset .tabbed-labels>label:nth-child(20){order:20}}.md-typeset .tabbed-labels>label:hover{color:var(--md-default-fg-color)}.md-typeset .tabbed-labels>label>[href]:first-child{color:inherit}.md-typeset .tabbed-labels--linked>label{padding:0}.md-typeset .tabbed-labels--linked>label>a{display:block;padding:.78125em 1.25em .625em}.md-typeset .tabbed-content{width:100%}@media print{.md-typeset .tabbed-content{display:contents}}.md-typeset .tabbed-block{display:none}@media print{.md-typeset .tabbed-block{display:block}.md-typeset .tabbed-block:first-child{order:1}.md-typeset .tabbed-block:nth-child(2){order:2}.md-typeset .tabbed-block:nth-child(3){order:3}.md-typeset .tabbed-block:nth-child(4){order:4}.md-typeset .tabbed-block:nth-child(5){order:5}.md-typeset .tabbed-block:nth-child(6){order:6}.md-typeset .tabbed-block:nth-child(7){order:7}.md-typeset .tabbed-block:nth-child(8){order:8}.md-typeset .tabbed-block:nth-child(9){order:9}.md-typeset .tabbed-block:nth-child(10){order:10}.md-typeset .tabbed-block:nth-child(11){order:11}.md-typeset .tabbed-block:nth-child(12){order:12}.md-typeset .tabbed-block:nth-child(13){order:13}.md-typeset .tabbed-block:nth-child(14){order:14}.md-typeset .tabbed-block:nth-child(15){order:15}.md-typeset .tabbed-block:nth-child(16){order:16}.md-typeset .tabbed-block:nth-child(17){order:17}.md-typeset .tabbed-block:nth-child(18){order:18}.md-typeset .tabbed-block:nth-child(19){order:19}.md-typeset .tabbed-block:nth-child(20){order:20}}.md-typeset .tabbed-block>.highlight:first-child>pre,.md-typeset .tabbed-block>pre:first-child{margin:0}.md-typeset .tabbed-block>.highlight:first-child>pre>code,.md-typeset .tabbed-block>pre:first-child>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child>.filename{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable{margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.filename span.filename,.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.linenos{border-top-left-radius:0;border-top-right-radius:0;margin:0}.md-typeset .tabbed-block>.highlight:first-child>.highlighttable>tbody>tr>.code>div>pre>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-block>.highlight:first-child+.result{margin-top:-.125em}.md-typeset .tabbed-block>.tabbed-set{margin:0}.md-typeset .tabbed-button{align-self:center;border-radius:100%;color:var(--md-default-fg-color--light);cursor:pointer;display:block;height:.9rem;margin-top:.1rem;pointer-events:auto;transition:background-color .25s;width:.9rem}.md-typeset .tabbed-button:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-typeset .tabbed-button:after{background-color:currentcolor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-tabbed-icon--prev);mask-image:var(--md-tabbed-icon--prev);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition:background-color .25s,transform .25s;width:100%}.md-typeset .tabbed-control{background:linear-gradient(to right,var(--md-default-bg-color) 60%,#0000);display:flex;height:1.9rem;justify-content:start;pointer-events:none;position:absolute;transition:opacity 125ms;width:1.2rem}[dir=rtl] .md-typeset .tabbed-control{transform:rotate(180deg)}.md-typeset .tabbed-control[hidden]{opacity:0}.md-typeset .tabbed-control--next{background:linear-gradient(to left,var(--md-default-bg-color) 60%,#0000);justify-content:end;right:0}.md-typeset .tabbed-control--next .tabbed-button:after{-webkit-mask-image:var(--md-tabbed-icon--next);mask-image:var(--md-tabbed-icon--next)}@media screen and (max-width:44.984375em){[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels{padding-right:.8rem}.md-content__inner>.tabbed-set .tabbed-labels{margin:0 -.8rem;max-width:100vw;scroll-padding-inline-start:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels:after{padding-left:.8rem}.md-content__inner>.tabbed-set .tabbed-labels:after{content:""}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-left:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{padding-right:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-left:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{margin-right:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--prev{width:2rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-right:.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{padding-left:.8rem}[dir=ltr] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-right:-.8rem}[dir=rtl] .md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{margin-left:-.8rem}.md-content__inner>.tabbed-set .tabbed-labels~.tabbed-control--next{width:2rem}}@media screen{.md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){color:var(--md-default-fg-color)}.md-typeset .no-js .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.md-typeset .no-js .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.md-typeset .no-js .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.md-typeset .no-js .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.md-typeset .no-js .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.md-typeset .no-js .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.md-typeset .no-js .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.md-typeset .no-js .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.md-typeset .no-js .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.md-typeset .no-js .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.md-typeset .no-js .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.md-typeset .no-js .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.md-typeset .no-js .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.md-typeset .no-js .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.md-typeset .no-js .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.md-typeset .no-js .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.md-typeset .no-js .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.md-typeset .no-js .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.md-typeset .no-js .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.md-typeset .no-js .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),.no-js .md-typeset .tabbed-set>input:first-child:checked~.tabbed-labels>:first-child,.no-js .md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),.no-js .md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),.no-js .md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),.no-js .md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),.no-js .md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),.no-js .md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),.no-js .md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),.no-js .md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),.no-js .md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),.no-js .md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),.no-js .md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),.no-js .md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20),.no-js .md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),.no-js .md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),.no-js .md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),.no-js .md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),.no-js .md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),.no-js .md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),.no-js .md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9){border-color:var(--md-default-fg-color)}}.md-typeset .tabbed-set>input:first-child.focus-visible~.tabbed-labels>:first-child,.md-typeset .tabbed-set>input:nth-child(10).focus-visible~.tabbed-labels>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11).focus-visible~.tabbed-labels>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12).focus-visible~.tabbed-labels>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13).focus-visible~.tabbed-labels>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14).focus-visible~.tabbed-labels>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15).focus-visible~.tabbed-labels>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16).focus-visible~.tabbed-labels>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17).focus-visible~.tabbed-labels>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18).focus-visible~.tabbed-labels>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19).focus-visible~.tabbed-labels>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2).focus-visible~.tabbed-labels>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20).focus-visible~.tabbed-labels>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3).focus-visible~.tabbed-labels>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4).focus-visible~.tabbed-labels>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5).focus-visible~.tabbed-labels>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6).focus-visible~.tabbed-labels>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7).focus-visible~.tabbed-labels>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8).focus-visible~.tabbed-labels>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9).focus-visible~.tabbed-labels>:nth-child(9){color:var(--md-accent-fg-color)}.md-typeset .tabbed-set>input:first-child:checked~.tabbed-content>:first-child,.md-typeset .tabbed-set>input:nth-child(10):checked~.tabbed-content>:nth-child(10),.md-typeset .tabbed-set>input:nth-child(11):checked~.tabbed-content>:nth-child(11),.md-typeset .tabbed-set>input:nth-child(12):checked~.tabbed-content>:nth-child(12),.md-typeset .tabbed-set>input:nth-child(13):checked~.tabbed-content>:nth-child(13),.md-typeset .tabbed-set>input:nth-child(14):checked~.tabbed-content>:nth-child(14),.md-typeset .tabbed-set>input:nth-child(15):checked~.tabbed-content>:nth-child(15),.md-typeset .tabbed-set>input:nth-child(16):checked~.tabbed-content>:nth-child(16),.md-typeset .tabbed-set>input:nth-child(17):checked~.tabbed-content>:nth-child(17),.md-typeset .tabbed-set>input:nth-child(18):checked~.tabbed-content>:nth-child(18),.md-typeset .tabbed-set>input:nth-child(19):checked~.tabbed-content>:nth-child(19),.md-typeset .tabbed-set>input:nth-child(2):checked~.tabbed-content>:nth-child(2),.md-typeset .tabbed-set>input:nth-child(20):checked~.tabbed-content>:nth-child(20),.md-typeset .tabbed-set>input:nth-child(3):checked~.tabbed-content>:nth-child(3),.md-typeset .tabbed-set>input:nth-child(4):checked~.tabbed-content>:nth-child(4),.md-typeset .tabbed-set>input:nth-child(5):checked~.tabbed-content>:nth-child(5),.md-typeset .tabbed-set>input:nth-child(6):checked~.tabbed-content>:nth-child(6),.md-typeset .tabbed-set>input:nth-child(7):checked~.tabbed-content>:nth-child(7),.md-typeset .tabbed-set>input:nth-child(8):checked~.tabbed-content>:nth-child(8),.md-typeset .tabbed-set>input:nth-child(9):checked~.tabbed-content>:nth-child(9){display:block}:root{--md-tasklist-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>');--md-tasklist-icon--checked:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"/></svg>')}.md-typeset .task-list-item{list-style-type:none;position:relative}[dir=ltr] .md-typeset .task-list-item [type=checkbox]{left:-2em}[dir=rtl] .md-typeset .task-list-item [type=checkbox]{right:-2em}.md-typeset .task-list-item [type=checkbox]{position:absolute;top:.45em}.md-typeset .task-list-control [type=checkbox]{opacity:0;z-index:-1}[dir=ltr] .md-typeset .task-list-indicator:before{left:-1.5em}[dir=rtl] .md-typeset .task-list-indicator:before{right:-1.5em}.md-typeset .task-list-indicator:before{background-color:var(--md-default-fg-color--lightest);content:"";height:1.25em;-webkit-mask-image:var(--md-tasklist-icon);mask-image:var(--md-tasklist-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.15em;width:1.25em}.md-typeset [type=checkbox]:checked+.task-list-indicator:before{background-color:#00e676;-webkit-mask-image:var(--md-tasklist-icon--checked);mask-image:var(--md-tasklist-icon--checked)}:root>*{--md-mermaid-font-family:var(--md-text-font-family),sans-serif;--md-mermaid-edge-color:var(--md-code-fg-color);--md-mermaid-node-bg-color:var(--md-accent-fg-color--transparent);--md-mermaid-node-fg-color:var(--md-accent-fg-color);--md-mermaid-label-bg-color:var(--md-default-bg-color);--md-mermaid-label-fg-color:var(--md-code-fg-color);--md-mermaid-sequence-actor-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actor-fg-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-actor-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-actor-line-color:var(--md-default-fg-color--lighter);--md-mermaid-sequence-actorman-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-actorman-line-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-box-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-box-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-label-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-label-fg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-loop-bg-color:var(--md-mermaid-node-bg-color);--md-mermaid-sequence-loop-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-loop-border-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-message-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-message-line-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-bg-color:var(--md-mermaid-label-bg-color);--md-mermaid-sequence-note-fg-color:var(--md-mermaid-edge-color);--md-mermaid-sequence-note-border-color:var(--md-mermaid-label-fg-color);--md-mermaid-sequence-number-bg-color:var(--md-mermaid-node-fg-color);--md-mermaid-sequence-number-fg-color:var(--md-accent-bg-color)}.mermaid{line-height:normal;margin:1em 0}.md-typeset .grid{grid-gap:.4rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));margin:1em 0}.md-typeset .grid.cards>ol,.md-typeset .grid.cards>ul{display:contents}.md-typeset .grid.cards>ol>li,.md-typeset .grid.cards>ul>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>ol>li:focus-within,.md-typeset .grid.cards>ol>li:hover,.md-typeset .grid.cards>ul>li:focus-within,.md-typeset .grid.cards>ul>li:hover,.md-typeset .grid>.card:focus-within,.md-typeset .grid>.card:hover{border-color:#0000;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>ol>li>hr,.md-typeset .grid.cards>ul>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>ol>li>:first-child,.md-typeset .grid.cards>ul>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>ol>li>:last-child,.md-typeset .grid.cards>ul>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid>*,.md-typeset .grid>.admonition,.md-typeset .grid>.highlight>*,.md-typeset .grid>.highlighttable,.md-typeset .grid>.md-typeset details,.md-typeset .grid>details,.md-typeset .grid>pre{margin-bottom:0;margin-top:0}.md-typeset .grid>.highlight>pre:only-child,.md-typeset .grid>.highlight>pre>code,.md-typeset .grid>.highlighttable,.md-typeset .grid>.highlighttable>tbody,.md-typeset .grid>.highlighttable>tbody>tr,.md-typeset .grid>.highlighttable>tbody>tr>.code,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre>code{height:100%}.md-typeset .grid>.tabbed-set{margin-bottom:0;margin-top:0}@media screen and (min-width:45em){[dir=ltr] .md-typeset .inline{float:left}[dir=rtl] .md-typeset .inline{float:right}[dir=ltr] .md-typeset .inline{margin-right:.8rem}[dir=rtl] .md-typeset .inline{margin-left:.8rem}.md-typeset .inline{margin-bottom:.8rem;margin-top:0;width:11.7rem}[dir=ltr] .md-typeset .inline.end{float:right}[dir=rtl] .md-typeset .inline.end{float:left}[dir=ltr] .md-typeset .inline.end{margin-left:.8rem;margin-right:0}[dir=rtl] .md-typeset .inline.end{margin-left:0;margin-right:.8rem}}
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/assets/stylesheets/main.7e359304.min.css.map b/content/references/java-chassis/zh_CN/assets/stylesheets/main.7e359304.min.css.map
deleted file mode 100644
index 15b8fcf..0000000
--- a/content/references/java-chassis/zh_CN/assets/stylesheets/main.7e359304.min.css.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["src/templates/assets/stylesheets/main/components/_meta.scss","../../../../src/templates/assets/stylesheets/main.scss","src/templates/assets/stylesheets/main/_resets.scss","src/templates/assets/stylesheets/main/_colors.scss","src/templates/assets/stylesheets/main/_icons.scss","src/templates/assets/stylesheets/main/_typeset.scss","src/templates/assets/stylesheets/utilities/_break.scss","src/templates/assets/stylesheets/main/components/_author.scss","src/templates/assets/stylesheets/main/components/_banner.scss","src/templates/assets/stylesheets/main/components/_base.scss","src/templates/assets/stylesheets/main/components/_clipboard.scss","src/templates/assets/stylesheets/main/components/_consent.scss","src/templates/assets/stylesheets/main/components/_content.scss","src/templates/assets/stylesheets/main/components/_dialog.scss","src/templates/assets/stylesheets/main/components/_feedback.scss","src/templates/assets/stylesheets/main/components/_footer.scss","src/templates/assets/stylesheets/main/components/_form.scss","src/templates/assets/stylesheets/main/components/_header.scss","node_modules/material-design-color/material-color.scss","src/templates/assets/stylesheets/main/components/_nav.scss","src/templates/assets/stylesheets/main/components/_pagination.scss","src/templates/assets/stylesheets/main/components/_post.scss","src/templates/assets/stylesheets/main/components/_progress.scss","src/templates/assets/stylesheets/main/components/_search.scss","src/templates/assets/stylesheets/main/components/_select.scss","src/templates/assets/stylesheets/main/components/_sidebar.scss","src/templates/assets/stylesheets/main/components/_source.scss","src/templates/assets/stylesheets/main/components/_status.scss","src/templates/assets/stylesheets/main/components/_tabs.scss","src/templates/assets/stylesheets/main/components/_tag.scss","src/templates/assets/stylesheets/main/components/_tooltip.scss","src/templates/assets/stylesheets/main/components/_top.scss","src/templates/assets/stylesheets/main/components/_version.scss","src/templates/assets/stylesheets/main/extensions/markdown/_admonition.scss","src/templates/assets/stylesheets/main/extensions/markdown/_footnotes.scss","src/templates/assets/stylesheets/main/extensions/markdown/_toc.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_critic.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_details.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_emoji.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_highlight.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_keys.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss","src/templates/assets/stylesheets/main/extensions/pymdownx/_tasklist.scss","src/templates/assets/stylesheets/main/integrations/_mermaid.scss","src/templates/assets/stylesheets/main/modifiers/_grid.scss","src/templates/assets/stylesheets/main/modifiers/_inline.scss"],"names":[],"mappings":"AA0CE,gBCgxCF,CC9xCA,KAE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ACE,eAAA,CAAA,Y5CmiJN,CK/9II,mCwChKA,8BACE,U7CuoJJ,C6CxoJE,8BACE,W7CuoJJ,C6CxoJE,8BAGE,kB7CqoJJ,C6CxoJE,8BAGE,iB7CqoJJ,C6CxoJE,oBAKE,mBAAA,CADA,YAAA,CAFA,a7CsoJJ,C6ChoJI,kCACE,W7CmoJN,C6CpoJI,kCACE,U7CmoJN,C6CpoJI,kCAEE,iBAAA,CAAA,c7CkoJN,C6CpoJI,kCAEE,aAAA,CAAA,kB7CkoJN,CACF","file":"main.css"}
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/build-consumer/3rd-party-service-invoke.html b/content/references/java-chassis/zh_CN/build-consumer/3rd-party-service-invoke.html
index e3e4a09..b8b4eaf 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/3rd-party-service-invoke.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/3rd-party-service-invoke.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3031,7 +3094,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/basics.html b/content/references/java-chassis/zh_CN/build-consumer/basics.html
index 31b2868..0b661ba 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/basics.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/basics.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3028,7 +3091,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/code-first.html b/content/references/java-chassis/zh_CN/build-consumer/code-first.html
index 1203cfc..0f1c50f 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/code-first.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/code-first.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2910,7 +2973,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/develop-consumer-using-rpc.html b/content/references/java-chassis/zh_CN/build-consumer/develop-consumer-using-rpc.html
index 926698c..f79a29a 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/develop-consumer-using-rpc.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/develop-consumer-using-rpc.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1879,7 +1879,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1900,7 +1900,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2043,11 +2064,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2106,6 +2211,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2190,27 +2337,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2666,69 +2792,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3006,7 +3069,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/diao-yong-kong-zhi.html b/content/references/java-chassis/zh_CN/build-consumer/diao-yong-kong-zhi.html
index f05c071..b130303 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/diao-yong-kong-zhi.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/diao-yong-kong-zhi.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/invoke-control.html b/content/references/java-chassis/zh_CN/build-consumer/invoke-control.html
index 5853546..ca0ac71 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/invoke-control.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/invoke-control.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/invoker.html b/content/references/java-chassis/zh_CN/build-consumer/invoker.html
index e5e7b7c..6d79be2 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/invoker.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/invoker.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3021,7 +3084,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-consumer/using-resttemplate.html b/content/references/java-chassis/zh_CN/build-consumer/using-resttemplate.html
index 12afbdb..42979a4 100644
--- a/content/references/java-chassis/zh_CN/build-consumer/using-resttemplate.html
+++ b/content/references/java-chassis/zh_CN/build-consumer/using-resttemplate.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3008,7 +3071,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/access-log-configuration.html b/content/references/java-chassis/zh_CN/build-provider/access-log-configuration.html
index 7c0b608..38d7a1b 100644
--- a/content/references/java-chassis/zh_CN/build-provider/access-log-configuration.html
+++ b/content/references/java-chassis/zh_CN/build-provider/access-log-configuration.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1945,7 +1945,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1966,7 +1966,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2109,11 +2130,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2172,6 +2277,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2256,27 +2403,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2732,69 +2858,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3660,7 +3723,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/basics.html b/content/references/java-chassis/zh_CN/build-provider/basics.html
index 4843c9d..a85adc6 100644
--- a/content/references/java-chassis/zh_CN/build-provider/basics.html
+++ b/content/references/java-chassis/zh_CN/build-provider/basics.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3016,7 +3079,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/bootup.html b/content/references/java-chassis/zh_CN/build-provider/bootup.html
index cd2b3c6..fee547b 100644
--- a/content/references/java-chassis/zh_CN/build-provider/bootup.html
+++ b/content/references/java-chassis/zh_CN/build-provider/bootup.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1848,7 +1848,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1869,7 +1869,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2012,11 +2033,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2075,6 +2180,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2159,27 +2306,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2635,69 +2761,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2927,7 +2990,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/context-param.html b/content/references/java-chassis/zh_CN/build-provider/context-param.html
index 9fc0f81..f13f1ed 100644
--- a/content/references/java-chassis/zh_CN/build-provider/context-param.html
+++ b/content/references/java-chassis/zh_CN/build-provider/context-param.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2925,7 +2988,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/define-contract.html b/content/references/java-chassis/zh_CN/build-provider/define-contract.html
index 443dce9..86fa762 100644
--- a/content/references/java-chassis/zh_CN/build-provider/define-contract.html
+++ b/content/references/java-chassis/zh_CN/build-provider/define-contract.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2944,7 +3007,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/definition/heartbeats.html b/content/references/java-chassis/zh_CN/build-provider/definition/heartbeats.html
index 7cfa0d8..1ff001e 100644
--- a/content/references/java-chassis/zh_CN/build-provider/definition/heartbeats.html
+++ b/content/references/java-chassis/zh_CN/build-provider/definition/heartbeats.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2893,7 +2956,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/definition/isolate-relationship.html b/content/references/java-chassis/zh_CN/build-provider/definition/isolate-relationship.html
index ef354aa..ce628ca 100644
--- a/content/references/java-chassis/zh_CN/build-provider/definition/isolate-relationship.html
+++ b/content/references/java-chassis/zh_CN/build-provider/definition/isolate-relationship.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2920,7 +2983,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/definition/service-definition.html b/content/references/java-chassis/zh_CN/build-provider/definition/service-definition.html
index a6be901..842b3d2 100644
--- a/content/references/java-chassis/zh_CN/build-provider/definition/service-definition.html
+++ b/content/references/java-chassis/zh_CN/build-provider/definition/service-definition.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1850,7 +1850,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1871,7 +1871,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2014,11 +2035,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2077,6 +2182,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2161,27 +2308,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2637,69 +2763,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2990,7 +3053,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/event-listener.html b/content/references/java-chassis/zh_CN/build-provider/event-listener.html
index f99c608..6d8d2b9 100644
--- a/content/references/java-chassis/zh_CN/build-provider/event-listener.html
+++ b/content/references/java-chassis/zh_CN/build-provider/event-listener.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2894,7 +2957,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/http-mapping.html b/content/references/java-chassis/zh_CN/build-provider/http-mapping.html
index 64fcc5b..deeb84a 100644
--- a/content/references/java-chassis/zh_CN/build-provider/http-mapping.html
+++ b/content/references/java-chassis/zh_CN/build-provider/http-mapping.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1990,7 +1990,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -2011,7 +2011,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2154,11 +2175,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2217,6 +2322,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2301,27 +2448,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2777,69 +2903,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3601,7 +3664,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/interface-constraints.html b/content/references/java-chassis/zh_CN/build-provider/interface-constraints.html
index 0b75090..09b380f 100644
--- a/content/references/java-chassis/zh_CN/build-provider/interface-constraints.html
+++ b/content/references/java-chassis/zh_CN/build-provider/interface-constraints.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1912,7 +1912,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1933,7 +1933,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2076,11 +2097,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2139,6 +2244,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2223,27 +2370,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2699,69 +2825,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3561,7 +3624,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/ipv6-configuration.html b/content/references/java-chassis/zh_CN/build-provider/ipv6-configuration.html
index 208e7b9..41c5261 100644
--- a/content/references/java-chassis/zh_CN/build-provider/ipv6-configuration.html
+++ b/content/references/java-chassis/zh_CN/build-provider/ipv6-configuration.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1857,7 +1857,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1878,7 +1878,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2021,11 +2042,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2084,6 +2189,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2168,27 +2315,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2644,69 +2770,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2952,7 +3015,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/jaxrs.html b/content/references/java-chassis/zh_CN/build-provider/jaxrs.html
index 99071fe..bf40fd9 100644
--- a/content/references/java-chassis/zh_CN/build-provider/jaxrs.html
+++ b/content/references/java-chassis/zh_CN/build-provider/jaxrs.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1984,7 +1984,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -2005,7 +2005,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2148,11 +2169,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2211,6 +2316,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2295,27 +2442,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2771,69 +2897,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3408,7 +3471,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/listen-address-and-publish-address.html b/content/references/java-chassis/zh_CN/build-provider/listen-address-and-publish-address.html
index 38f7767..52b851e 100644
--- a/content/references/java-chassis/zh_CN/build-provider/listen-address-and-publish-address.html
+++ b/content/references/java-chassis/zh_CN/build-provider/listen-address-and-publish-address.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1879,7 +1879,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1900,7 +1900,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2043,11 +2064,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2106,6 +2211,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2190,27 +2337,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2666,69 +2792,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3040,7 +3103,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/multi-code.html b/content/references/java-chassis/zh_CN/build-provider/multi-code.html
index 755ca24..a3d5461 100644
--- a/content/references/java-chassis/zh_CN/build-provider/multi-code.html
+++ b/content/references/java-chassis/zh_CN/build-provider/multi-code.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2976,7 +3039,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/parameter-validator.html b/content/references/java-chassis/zh_CN/build-provider/parameter-validator.html
index 44d5ab6..51986e2 100644
--- a/content/references/java-chassis/zh_CN/build-provider/parameter-validator.html
+++ b/content/references/java-chassis/zh_CN/build-provider/parameter-validator.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1875,7 +1875,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1896,7 +1896,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2039,11 +2060,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2102,6 +2207,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2186,27 +2333,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2662,69 +2788,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3074,7 +3137,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/reactive.html b/content/references/java-chassis/zh_CN/build-provider/reactive.html
index 7bae199..6fd3794 100644
--- a/content/references/java-chassis/zh_CN/build-provider/reactive.html
+++ b/content/references/java-chassis/zh_CN/build-provider/reactive.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2982,7 +3045,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/service-configuration.html b/content/references/java-chassis/zh_CN/build-provider/service-configuration.html
deleted file mode 100644
index 19035c1..0000000
--- a/content/references/java-chassis/zh_CN/build-provider/service-configuration.html
+++ /dev/null
@@ -1,2900 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Service configuration - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#_1" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Service configuration
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#_1" class="md-nav__link">
-    <span class="md-ellipsis">
-      负载均衡策略
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_2" class="md-nav__link">
-    <span class="md-ellipsis">
-      限流策略
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      降级策略
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      参数效验
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Service configuration</h1>
-
-<h2 id="_1"><a href="/build-provider/configuration/lb-strategy.html">负载均衡策略</a></h2>
-<p>• ServiceComb提供了基于Ribbon的负载均衡方案,用户可以通过配置文件配置负载均衡策略,当前支持随机、顺序、基于响应时间的权值等多种负载均衡路由策略## <a href="https://github.com/apache/incubator-servicecomb-saga">Service Center</a>{:target="_blank"}  </p>
-<h2 id="_2"><a href="/build-provider/configuration/ratelimite-strategy.html">限流策略</a></h2>
-<p>• 用户在provider端使用限流策略,可以限制指定微服务向其发送请求的频率,达到限制每秒钟最大请求数量的效果。  </p>
-<h2 id="_3"><a href="/build-provider/configuration/parameter-validator.html">降级策略</a></h2>
-<p>• 降级策略是当服务请求异常时,微服务所采用的异常处理策略。</p>
-<h2 id="_4"><a href="/build-provider/configuration/parameter-validator.html">参数效验</a></h2>
-<p>• 用户在provider端使用参数效验,可以对相应的参数输入要求预先进行设置,在接口实际调用前进行效验处理,达到控制参数输入标准的效果。</p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/build-provider/springmvc.html b/content/references/java-chassis/zh_CN/build-provider/springmvc.html
index 781a920..1bcdf26 100644
--- a/content/references/java-chassis/zh_CN/build-provider/springmvc.html
+++ b/content/references/java-chassis/zh_CN/build-provider/springmvc.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -647,7 +647,7 @@
         <li class="md-nav__item">
   <a href="#http-header" class="md-nav__link">
     <span class="md-ellipsis">
-      在响应中包含  HTTP header
+      在响应中包含 HTTP header
     </span>
   </a>
   
@@ -1927,7 +1927,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1948,7 +1948,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2091,11 +2112,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2154,6 +2259,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2238,27 +2385,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2714,69 +2840,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2936,7 +2999,7 @@
         <li class="md-nav__item">
   <a href="#http-header" class="md-nav__link">
     <span class="md-ellipsis">
-      在响应中包含  HTTP header
+      在响应中包含 HTTP header
     </span>
   </a>
   
@@ -3437,7 +3500,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/swagger-annotation.html b/content/references/java-chassis/zh_CN/build-provider/swagger-annotation.html
index 597c2c9..4150a0d 100644
--- a/content/references/java-chassis/zh_CN/build-provider/swagger-annotation.html
+++ b/content/references/java-chassis/zh_CN/build-provider/swagger-annotation.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1906,7 +1906,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1927,7 +1927,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2070,11 +2091,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2133,6 +2238,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2217,27 +2364,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2693,69 +2819,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3365,7 +3428,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/thread-pool.html b/content/references/java-chassis/zh_CN/build-provider/thread-pool.html
index 09e7c48..572eaad 100644
--- a/content/references/java-chassis/zh_CN/build-provider/thread-pool.html
+++ b/content/references/java-chassis/zh_CN/build-provider/thread-pool.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1885,7 +1885,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1906,7 +1906,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2049,11 +2070,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2112,6 +2217,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2196,27 +2343,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2672,69 +2798,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3088,7 +3151,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/transparent-rpc.html b/content/references/java-chassis/zh_CN/build-provider/transparent-rpc.html
index 176778d..2ba1db3 100644
--- a/content/references/java-chassis/zh_CN/build-provider/transparent-rpc.html
+++ b/content/references/java-chassis/zh_CN/build-provider/transparent-rpc.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1903,7 +1903,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1924,7 +1924,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2067,11 +2088,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2130,6 +2235,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2214,27 +2361,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2690,69 +2816,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3112,7 +3175,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/build-provider/use-interface.html b/content/references/java-chassis/zh_CN/build-provider/use-interface.html
index 92c63af..0f50afc 100644
--- a/content/references/java-chassis/zh_CN/build-provider/use-interface.html
+++ b/content/references/java-chassis/zh_CN/build-provider/use-interface.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3002,7 +3065,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/catalog/build-consumer.html b/content/references/java-chassis/zh_CN/catalog/build-consumer.html
deleted file mode 100644
index 3107e3f..0000000
--- a/content/references/java-chassis/zh_CN/catalog/build-consumer.html
+++ /dev/null
@@ -1,2960 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Build consumer - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#resttemplate" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Build consumer
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#resttemplate" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用RestTemplate开发服务消费者
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#asyncresttemplate" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用AsyncRestTemplate开发服务消费者
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#rpc" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用透明RPC方式开发服务消费者
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_1" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用服务契约
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_2" class="md-nav__link">
-    <span class="md-ellipsis">
-      调用控制
-    </span>
-  </a>
-  
-    <nav class="md-nav" aria-label="调用控制">
-      <ul class="md-nav__list">
-        
-          <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      实例级故障隔离
-    </span>
-  </a>
-  
-</li>
-        
-          <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      熔断策略
-    </span>
-  </a>
-  
-</li>
-        
-          <li class="md-nav__item">
-  <a href="#_5" class="md-nav__link">
-    <span class="md-ellipsis">
-      限流策略
-    </span>
-  </a>
-  
-</li>
-        
-          <li class="md-nav__item">
-  <a href="#_6" class="md-nav__link">
-    <span class="md-ellipsis">
-      故障注入
-    </span>
-  </a>
-  
-</li>
-        
-      </ul>
-    </nav>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Build consumer</h1>
-
-<h2 id="resttemplate">使用RestTemplate开发服务消费者</h2>
-<p>RestTemplate是Spring提供的RESTful访问接口,ServiceComb提供该接口的实现类用于服务的调用。</p>
-<h2 id="asyncresttemplate">使用AsyncRestTemplate开发服务消费者</h2>
-<p>AsyncRestTemplate 开发方式允许用户异步的进行服务调用。具体的业务流程和 RestTemplate 类似,只是这里以异步的形式进行服务的调用。</p>
-<h2 id="rpc">使用透明RPC方式开发服务消费者</h2>
-<p>透明RPC开发模式允许用户通过简单的java interface像本地调用一样进行服务调用。</p>
-<h2 id="_1">使用服务契约</h2>
-<p>当服务消费者调用服务提供者的服务时,需要获取服务契约。消费者有两种方式获取提供者的服务契约,一种是从服务的提供方离线获取契约文件,手工配置到项目中;另一种是从服务中心自动下载契约。</p>
-<h2 id="_2">调用控制</h2>
-<h3 id="_3">实例级故障隔离</h3>
-<p>实例级故障隔离功能允许在微服务的部分实例调用失败时,停止向故障实例发送请求,从而达到隔离故障实例的功能。</p>
-<h3 id="_4">熔断策略</h3>
-<p>熔断策略是对ServiceComb熔断功能的设置,用户通过配置熔断策略可以指定在何种条件下ServiceComb框架将终止发送请求。</p>
-<h3 id="_5">限流策略</h3>
-<p>用户在consumer端使用限流策略,可以限制发往指定微服务的请求的频率。</p>
-<h3 id="_6">故障注入</h3>
-<p>用户在consumer端使用故障注入,可以设置发往指定微服务的请求的时延和错误及其触发概率。</p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/config.html b/content/references/java-chassis/zh_CN/catalog/config.html
deleted file mode 100644
index c15cc8f..0000000
--- a/content/references/java-chassis/zh_CN/catalog/config.html
+++ /dev/null
@@ -1,2867 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Config - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#_1" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Config
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#_1" class="md-nav__link">
-    <span class="md-ellipsis">
-      通用配置说明
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Config</h1>
-
-<h2 id="_1">通用配置说明</h2>
-<p>说明ServiceComb-Java-Chassis的配置项层级关系、配置读取方法。</p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/data-conform.html b/content/references/java-chassis/zh_CN/catalog/data-conform.html
deleted file mode 100644
index 85659c5..0000000
--- a/content/references/java-chassis/zh_CN/catalog/data-conform.html
+++ /dev/null
@@ -1,2844 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Data conform - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Data conform
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Data conform</h1>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/general-develop.html b/content/references/java-chassis/zh_CN/catalog/general-develop.html
deleted file mode 100644
index 4bb829e..0000000
--- a/content/references/java-chassis/zh_CN/catalog/general-develop.html
+++ /dev/null
@@ -1,3060 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>General develop - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#_1" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              General develop
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#_1" class="md-nav__link">
-    <span class="md-ellipsis">
-      访问服务中心
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_2" class="md-nav__link">
-    <span class="md-ellipsis">
-      应用性能监控
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      微服务调用链
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      自定义调用链打点
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_5" class="md-nav__link">
-    <span class="md-ellipsis">
-      本地开发和测试
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#http-filter" class="md-nav__link">
-    <span class="md-ellipsis">
-      Http Filter
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_6" class="md-nav__link">
-    <span class="md-ellipsis">
-      文件上传
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_7" class="md-nav__link">
-    <span class="md-ellipsis">
-      文件下载
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#reactive" class="md-nav__link">
-    <span class="md-ellipsis">
-      Reactive
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#dns" class="md-nav__link">
-    <span class="md-ellipsis">
-      DNS自定义配置
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_8" class="md-nav__link">
-    <span class="md-ellipsis">
-      代理设置
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_9" class="md-nav__link">
-    <span class="md-ellipsis">
-      框架上报版本号
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_10" class="md-nav__link">
-    <span class="md-ellipsis">
-      跨应用调用
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_11" class="md-nav__link">
-    <span class="md-ellipsis">
-      定制序列化和反序列化方法
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#context" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用Context传递控制消息
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_12" class="md-nav__link">
-    <span class="md-ellipsis">
-      返回值序列化扩展
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#cors" class="md-nav__link">
-    <span class="md-ellipsis">
-      CORS机制
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_13" class="md-nav__link">
-    <span class="md-ellipsis">
-      获取熔断与实例隔离告警事件信息
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>General develop</h1>
-
-<h2 id="_1">访问服务中心</h2>
-<p>系统通过服务中心实现服务之间的发现。服务启动过程中,会向服务中心进行注册。在调用其他服务的时候,会从服务中心查询其他服务的实例信息,比如访问地址、使用的协议以及其他参数。服务中心支持使用PULL和PUSH两种模式通知实例变化。</p>
-<h2 id="_2">应用性能监控</h2>
-<p>一、Metrics介绍<br />
- 二、统计项汇总<br />
- 三、使用方法  </p>
-<h2 id="_3">微服务调用链</h2>
-<p>微服务架构解决了很多单体应用带来的问题,但同时也需要我们付出额外的代价。由于网络的不稳定性带来的请求处理延迟就是代价之一。  </p>
-<p>在单体应用中,所有模块都在同一个进程中运行,所以并没有模块间互通的问题。但微服务架构中,服务间通过网络沟通,因此我们不得不处理和网络有关的 问题,例如:延迟、超时、网络分区等。  </p>
-<p>另外,随着业务的扩展服务增多,我们很难洞察数据如何在蛛网般复杂的服务结构中流转。我们如何才能有效的监控网络延迟并且可视化服务中的数据流转呢?  </p>
-<p>分布式调用链追踪用于有效地监控微服务的网络延时并可视化微服务中的数据流转。  </p>
-<h2 id="_4">自定义调用链打点</h2>
-<p>分布式调用链追踪提供了服务间调用的时序信息,但服务内部的链路调用信息对开发者同样重要,如果能将两者合二为一,就能提供更完整的调用链,更容易定位错误和潜在性能问题。</p>
-<h2 id="_5">本地开发和测试</h2>
-<p>本小节介绍如何在开发者本地进行消费者/提供者应用的开发调试。开发服务提供者请参考3 开发服务提供者章节,开发服务消费者请参考4 开发服务消费者。服务提供者和消费提供者均需要连接到在远程的服务中心,为了本地微服务的开发和调试,本小节介绍了两种搭建本地服务中心的方法进行本地微服务调试:  </p>
-<h2 id="http-filter">Http Filter</h2>
-<p>某些场景中,业务使用http而不是https,作为网络传输通道,此时为了防止被伪造或篡改请求,需要提供consumer、producer之间对http码流的签名功能。</p>
-<h2 id="_6">文件上传</h2>
-<p>文件上传,当前支持在vertx rest通道和servlet rest中使用。<br />
-文件上传使用标准的http form格式,可与浏览器的上传直接对接。  </p>
-<h2 id="_7">文件下载</h2>
-<p>文件下载,当前在vertx rest通道和servlet rest中可用。</p>
-<h2 id="reactive">Reactive</h2>
-<p>简单同步模式、嵌套同步调用、纯Reactive机制、混合Reactive机制之间的对比及说明。</p>
-<h2 id="dns">DNS自定义配置</h2>
-<p>用户使用域名连接华为公有云或者三方系统时,需要使用到域名解析系统。在不同的系统、不同的框架使用的域名解析机制都可能不太一样。所以我们有必要提供一个统一的配置入口,以便开发运维人员可以自定义DNS解析机制,而不完全受制于系统配置。  </p>
-<h2 id="_8">代理设置</h2>
-<p>作为一名开发者,在公司开发环境,可能是通过公司代理网络接入到因特网。如果调试服务时还必须依赖网上资源,比如直接连接华为共有云服务中心,那么就必须配置代理。</p>
-<h2 id="_9">框架上报版本号</h2>
-<p>为方便治理,使用ServiceComb进行开发,会将当前使用的ServiceComb版本号上报至服务中心,并且支持其他框架集成ServiceComb时上报其他框架的版本号。</p>
-<h2 id="_10">跨应用调用</h2>
-<p>应用是微服务实例隔离层次中的一层,一个应用包含多个微服务。默认情况下,只允许同应用的微服务实例相互调用。</p>
-<h2 id="_11">定制序列化和反序列化方法</h2>
-<p>由于HTTP协议的非安全性,在网络中传输的数据能轻易被各种抓包工具监听。在实际应用中,业务对应用或服务间传输的敏感数据有较高的安全要求,这类数据需要特别的加密保护(业务不同对算法要求不同),这样即使内容被截获,也可以保护其中的敏感数据不被轻易获取。</p>
-<h2 id="context">使用Context传递控制消息</h2>
-<p>ServiceComb提供了Context在微服务之间传递数据。Context是key/value对,只能够使用String类型的数据。由于Context会序列化为json格式并通过HTTP Header传递,因此也不支持ASCII之外的字符,其他字符需要开发者先自行编码再传递。Context在一次请求中,会在请求链上传递,不需要重新设置。access log的trace id等功能都基于这个特性实现的。</p>
-<h2 id="_12">返回值序列化扩展</h2>
-<p>当前REST通道返回值支持application/json和text/plain两种格式,支持开发人员扩展和重写,服务提供者通过produces声明可提供序列化能力,服务消费者通过请求的Accept头指明返回值序列化方式,默认返回application/json格式的数据。</p>
-<h2 id="cors">CORS机制</h2>
-<p>跨域资源共享(CORS, Cross-Origin Resource Sharing)允许Web服务器进行跨域访问控制,使浏览器可以更安全地进行跨域数据传输。</p>
-<h2 id="_13">获取熔断与实例隔离告警事件信息</h2>
-<p>在微服务运行期间熔断或实例隔离状态发生变化时,需要监听到相关事件,获取相关信息并进行处理</p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/securety.html b/content/references/java-chassis/zh_CN/catalog/securety.html
deleted file mode 100644
index 4b64a31..0000000
--- a/content/references/java-chassis/zh_CN/catalog/securety.html
+++ /dev/null
@@ -1,2844 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Securety - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Securety
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Securety</h1>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/security.html b/content/references/java-chassis/zh_CN/catalog/security.html
deleted file mode 100644
index dfa9836..0000000
--- a/content/references/java-chassis/zh_CN/catalog/security.html
+++ /dev/null
@@ -1,2878 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Security - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#tls" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Security
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#tls" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用TLS通信
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#rsa" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用RSA认证
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Security</h1>
-
-<h2 id="tls">使用TLS通信</h2>
-<p>用户通过简单的配置即可启用TLS通信,以保障数据的传输安全。  </p>
-<h2 id="rsa">使用RSA认证</h2>
-<p>用户通过简单的配置即可启用服务间RSA认证,以保障服务接口的安全性。详细介绍参考公钥认证  </p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/use-tool.html b/content/references/java-chassis/zh_CN/catalog/use-tool.html
deleted file mode 100644
index 09a801c..0000000
--- a/content/references/java-chassis/zh_CN/catalog/use-tool.html
+++ /dev/null
@@ -1,2844 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Use tool - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Use tool
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-  <h1>Use tool</h1>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/config-reference/kie-client.html b/content/references/java-chassis/zh_CN/config-reference/kie-client.html
deleted file mode 100644
index d3df95e..0000000
--- a/content/references/java-chassis/zh_CN/config-reference/kie-client.html
+++ /dev/null
@@ -1,2916 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-        <link rel="prev" href="service-center-client.html">
-      
-      
-        <link rel="next" href="../question-and-answer/faq.html">
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>ServiceComb Kie Client 配置项 - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#servicecomb-kie-client" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              ServiceComb Kie Client 配置项
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-    
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" checked>
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="true">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-    
-  
-  
-  
-    <li class="md-nav__item md-nav__item--active">
-      
-      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
-      
-      
-        
-      
-      
-      <a href="kie-client.html" class="md-nav__link md-nav__link--active">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-      
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-    
-  
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-<h1 id="servicecomb-kie-client">ServiceComb Kie Client 配置项</h1>
-<ul>
-<li>基本配置</li>
-</ul>
-<table>
-<thead>
-<tr>
-<th>配置项名称</th>
-<th>版本</th>
-<th>缺省值</th>
-<th>功能描述</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>servicecomb.kie.client.eventLoopSize</td>
-<td></td>
-<td>2</td>
-<td>event loop 线程数</td>
-</tr>
-<tr>
-<td>servicecomb.kie.client.verticalInstanceCount</td>
-<td></td>
-<td>1</td>
-<td>verticle instances 数量</td>
-</tr>
-<tr>
-<td>servicecomb.kie.client.timeout.connection</td>
-<td></td>
-<td>1000</td>
-<td>连接超时时间</td>
-</tr>
-<tr>
-<td>servicecomb.kie.client.idleTimeoutInSeconds</td>
-<td></td>
-<td>60</td>
-<td>HTTP 连接闲置超时时间</td>
-</tr>
-</tbody>
-</table>
-<ul>
-<li>请求超时配置</li>
-</ul>
-<p>不支持。</p>
-<ul>
-<li>SSL 配置</li>
-</ul>
-<p>参考 <a href="../security/tls.html">使用TLS通信</a>。 tag 为 <code>kie.consumer</code>。</p>
-<ul>
-<li>Proxy 配置</li>
-</ul>
-<p>参考 <a href="../general-development/proxy.html">代理设置</a></p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/config-reference/rest-transport-client.html b/content/references/java-chassis/zh_CN/config-reference/rest-transport-client.html
index 4e53780..9768662 100644
--- a/content/references/java-chassis/zh_CN/config-reference/rest-transport-client.html
+++ b/content/references/java-chassis/zh_CN/config-reference/rest-transport-client.html
@@ -12,11 +12,11 @@
         <link rel="prev" href="../featured-topics/performance.html">
       
       
-        <link rel="next" href="config-center-client.html">
+        <link rel="next" href="../question-and-answer/faq.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3003,7 +3066,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/config-reference/service-center-client.html b/content/references/java-chassis/zh_CN/config-reference/service-center-client.html
deleted file mode 100644
index 3388467..0000000
--- a/content/references/java-chassis/zh_CN/config-reference/service-center-client.html
+++ /dev/null
@@ -1,2929 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-        <link rel="prev" href="config-center-client.html">
-      
-      
-        <link rel="next" href="kie-client.html">
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>Service Center Client 配置项 - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#service-center-client" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              Service Center Client 配置项
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-    
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" checked>
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="true">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-    
-  
-  
-  
-    <li class="md-nav__item md-nav__item--active">
-      
-      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
-      
-      
-        
-      
-      
-      <a href="service-center-client.html" class="md-nav__link md-nav__link--active">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-      
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-    
-  
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-<h1 id="service-center-client">Service Center Client 配置项</h1>
-<ul>
-<li>基本配置</li>
-</ul>
-<table>
-<thead>
-<tr>
-<th>配置项名称</th>
-<th>版本</th>
-<th>缺省值</th>
-<th>功能描述</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>servicecomb.service.registry.client.eventLoopPoolSize</td>
-<td></td>
-<td>4</td>
-<td>event loop 线程数</td>
-</tr>
-<tr>
-<td>servicecomb.service.registry.client.instances</td>
-<td></td>
-<td>1</td>
-<td>verticle instances 数量</td>
-</tr>
-<tr>
-<td>servicecomb.service.registry.client.httpVersion</td>
-<td></td>
-<td>1.1</td>
-<td>HTTP协议版本</td>
-</tr>
-<tr>
-<td>servicecomb.service.registry.client.timeout.connection</td>
-<td></td>
-<td>1000</td>
-<td>连接超时时间</td>
-</tr>
-<tr>
-<td>servicecomb.service.registry.client.timeout.idle</td>
-<td></td>
-<td>60</td>
-<td>HTTP 连接闲置超时时间</td>
-</tr>
-<tr>
-<td>servicecomb.service.registry.client.workerPoolSize</td>
-<td></td>
-<td>4</td>
-<td>work线程池大小,仅供 web socket 使用</td>
-</tr>
-</tbody>
-</table>
-<ul>
-<li>请求超时配置</li>
-</ul>
-<p><code>servicecomb.service.registry.client.timeout.heartbeat</code> 设置心跳请求超时时间,默认为 3, 000 毫秒;
-  <code>servicecomb.service.registry.client.timeout.request</code> 设置其他请求超时时间,默认为 30, 000 毫秒。</p>
-<ul>
-<li>SSL 配置</li>
-</ul>
-<p>参考 <a href="../security/tls.html">使用TLS通信</a>。 tag 为 <code>sc.consumer</code>。</p>
-<ul>
-<li>Proxy 配置</li>
-</ul>
-<p>参考 <a href="../general-development/proxy.html">代理设置</a></p>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/catalog/service-package-run.html b/content/references/java-chassis/zh_CN/config/apollo.html
similarity index 93%
rename from content/references/java-chassis/zh_CN/catalog/service-package-run.html
rename to content/references/java-chassis/zh_CN/config/apollo.html
index 91f0f8b..d6c78e7 100644
--- a/content/references/java-chassis/zh_CN/catalog/service-package-run.html
+++ b/content/references/java-chassis/zh_CN/config/apollo.html
@@ -9,18 +9,22 @@
       
       
       
+        <link rel="prev" href="zookeeper.html">
+      
+      
+        <link rel="next" href="cse1.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Service package run - Java Chassis 3 开发指南</title>
+        <title>使用Apollo - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -58,7 +62,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#standalone" class="md-skip">
+        <a href="#apollo" class="md-skip">
           Skip to content
         </a>
       
@@ -94,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Service package run
+              使用Apollo
             
           </span>
         </div>
@@ -1797,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1881,17 +1906,19 @@
       
   
   
+    
+  
   
   
     
     
     
     
-    <li class="md-nav__item md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" checked>
         
           
           <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
@@ -1905,7 +1932,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="true">
           <label class="md-nav__title" for="__nav_13">
             <span class="md-nav__icon md-icon"></span>
             多样化的配置管理功能
@@ -1919,7 +1946,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1940,7 +1967,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1961,11 +1988,105 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+      <a href="apollo.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2776,32 +2855,8 @@
   
   
   
+    
   
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#standalone" class="md-nav__link">
-    <span class="md-ellipsis">
-      以standalone模式打包
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#web" class="md-nav__link">
-    <span class="md-ellipsis">
-      以WEB容器模式打包
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
   
 </nav>
                   </div>
@@ -2816,12 +2871,32 @@
                   
 
 
-  <h1>Service package run</h1>
-
-<h2 id="standalone">以standalone模式打包</h2>
-<p>一个Standalone的容器,以简单的Main加载Spring启动,因为服务通常不需要Tomcat/JBoss等Web容器的特性,没必要用Web容器去加载服务。微框架提供了standalone部署运行模式,服务容器只是一个简单的Main方法,并加载一个简单的Spring容器,用于暴露服务。</p>
-<h2 id="web">以WEB容器模式打包</h2>
-<p>如果需要将该微服务加载到web容器中启动运行时,需要新建一个servlet工程包装一下,该servlet工程,根据需要,可以不写或写少量的引导代码即可。</p>
+<h1 id="apollo">使用 Apollo</h1>
+<blockquote>
+<blockquote>
+<blockquote>
+<p>注意:本实现作为适配 Apollo 的参考,整体逻辑功能和设计规格不完善,不建议在生产环境使用。 如果在生产环境使用,建议基于 Apollo 提供的 SDK 自行扩展实现。</p>
+</blockquote>
+</blockquote>
+</blockquote>
+<p><a href="https://github.com/ctripcorp/apollo">Apollo</a> 是携程框架部门研发的分布式配置中心。 Apollo的下载安装请参考官网介绍。</p>
+<pre><code class="language-xml">&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
+  &lt;artifactId&gt;config-apollo&lt;/artifactId&gt;
+&lt;/dependency&gt;
+</code></pre>
+<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
+<pre><code class="language-yaml">apollo:
+  config:
+    serverUri: http://127.0.0.1:8070
+    serviceName: apollo-test
+    env: DEV
+    clusters: test-cluster
+    namespace: application
+    token: xxx
+    refreshInterval: 30
+    firstRefreshInterval: 0
+</code></pre>
 
 
 
@@ -2871,7 +2946,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/config/config-service.html b/content/references/java-chassis/zh_CN/config/config-service.html
deleted file mode 100644
index 5e06aa9..0000000
--- a/content/references/java-chassis/zh_CN/config/config-service.html
+++ /dev/null
@@ -1,3205 +0,0 @@
-
-<!doctype html>
-<html lang="en" class="no-js">
-  <head>
-    
-      <meta charset="utf-8">
-      <meta name="viewport" content="width=device-width,initial-scale=1">
-      
-      
-      
-      
-        <link rel="prev" href="read-config.html">
-      
-      
-        <link rel="next" href="../references-handlers/loadbalance.html">
-      
-      
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
-    
-    
-      
-        <title>配置中心参考 - Java Chassis 3 开发指南</title>
-      
-    
-    
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
-      
-      
-
-
-    
-    
-      
-    
-    
-      
-        
-        
-        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
-        <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
-      
-    
-    
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
-    
-      
-
-    
-    
-    
-  </head>
-  
-  
-    <body dir="ltr">
-  
-    
-    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
-    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
-    <label class="md-overlay" for="__drawer"></label>
-    <div data-md-component="skip">
-      
-        
-        <a href="#_1" class="md-skip">
-          Skip to content
-        </a>
-      
-    </div>
-    <div data-md-component="announce">
-      
-    </div>
-    
-    
-      
-
-  
-
-<header class="md-header md-header--shadow" data-md-component="header">
-  <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    <label class="md-header__button md-icon" for="__drawer">
-      
-      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
-    </label>
-    <div class="md-header__title" data-md-component="header-title">
-      <div class="md-header__ellipsis">
-        <div class="md-header__topic">
-          <span class="md-ellipsis">
-            Java Chassis 3 开发指南
-          </span>
-        </div>
-        <div class="md-header__topic" data-md-component="header-topic">
-          <span class="md-ellipsis">
-            
-              配置中心参考
-            
-          </span>
-        </div>
-      </div>
-    </div>
-    
-    
-      <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
-    
-    
-    
-      <label class="md-header__button md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-      </label>
-      <div class="md-search" data-md-component="search" role="dialog">
-  <label class="md-search__overlay" for="__search"></label>
-  <div class="md-search__inner" role="search">
-    <form class="md-search__form" name="search">
-      <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
-      <label class="md-search__icon md-icon" for="__search">
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
-        
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
-      </label>
-      <nav class="md-search__options" aria-label="Search">
-        
-        <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
-          
-          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
-        </button>
-      </nav>
-      
-    </form>
-    <div class="md-search__output">
-      <div class="md-search__scrollwrap" data-md-scrollfix>
-        <div class="md-search-result" data-md-component="search-result">
-          <div class="md-search-result__meta">
-            Initializing search
-          </div>
-          <ol class="md-search-result__list" role="presentation"></ol>
-        </div>
-      </div>
-    </div>
-  </div>
-</div>
-    
-    
-  </nav>
-  
-</header>
-    
-    <div class="md-container" data-md-component="container">
-      
-      
-        
-          
-        
-      
-      <main class="md-main" data-md-component="main">
-        <div class="md-main__inner md-grid">
-          
-            
-              
-              <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-
-
-<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
-  <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
-      
-  
-  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
-
-    </a>
-    Java Chassis 3 开发指南
-  </label>
-  
-  <ul class="md-nav__list" data-md-scrollfix>
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    概述
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis设计参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Java Chassis 3版本介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
-        
-          
-          <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    快速入门
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_4">
-            <span class="md-nav__icon md-icon"></span>
-            快速入门
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    安装本地开发环境
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    开发第一个微服务应用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    BMI应用-使用服务治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    PORTER应用-典型开发场景
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务定义
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
-        
-          
-          <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_6">
-            <span class="md-nav__icon md-icon"></span>
-            Spring Boot集成Java Chassis
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Spring Boot集成Java Chassis介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    与Spring Web MVC开发习惯的差异
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
-        
-          
-          <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务提供者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_7">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务提供者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    HTTP参数映射参考
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用JAX-RS开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用SpringMVC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    用透明RPC开发微服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    只发布interface的方法为服务接口
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异步处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Context 参数
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多个返回值和错误码
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Swagger注解
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    接口定义和数据类型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务监听地址和发布地址
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程池
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务启动事件
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    参数效验
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    程序启动逻辑
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    IPV6配置和使用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Access Log配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
-        
-          
-          <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    开发服务消费者
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_8">
-            <span class="md-nav__icon md-icon"></span>
-            开发服务消费者
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    基础概念
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Restful风格 - 使用 RestOperations
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    RPC风格
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    泛化调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    调用第三方REST服务
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
-        
-          
-          <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    定制请求处理流程
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_9">
-            <span class="md-nav__icon md-icon"></span>
-            定制请求处理流程
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    处理链介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
-        
-          
-          <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    通用功能开发
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_10">
-            <span class="md-nav__icon md-icon"></span>
-            通用功能开发
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    应用性能监控
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务调用链
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    自定义调用链打点
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地开发和测试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    文件上传下载
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Reactive
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    DNS自定义配置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    代理设置
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    框架上报版本号
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨应用调用
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    定制序列化和反序列化方法
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用Context传递控制消息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    返回值序列化扩展
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    跨域资源共享(CORS)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    获取熔断与实例隔离告警事件信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    优雅停机
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    异常处理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务实例间多环境隔离
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    线程模型
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    配置日志
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
-        
-          
-          <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的通信协议功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_11">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的通信协议功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    多协议介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over HTTP2(Vert.x)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(Spring Boot Embedded)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST over Servlet(WAR)
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Highway
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
-        
-          
-          <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的服务注册与发现功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_12">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的服务注册与发现功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    注册发现介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用service-center
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用nacos
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    本地注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    去中心化注册发现
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-    
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" checked>
-        
-          
-          <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    多样化的配置管理功能
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="true">
-          <label class="md-nav__title" for="__nav_13">
-            <span class="md-nav__icon md-icon"></span>
-            多样化的配置管理功能
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="general-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    服务配置介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="read-config.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    在程序中读取配置信息
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-    
-  
-  
-  
-    <li class="md-nav__item md-nav__item--active">
-      
-      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
-      
-      
-        
-      
-      
-        <label class="md-nav__link md-nav__link--active" for="__toc">
-          
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-          <span class="md-nav__icon md-icon"></span>
-        </label>
-      
-      <a href="config-service.html" class="md-nav__link md-nav__link--active">
-        
-  
-  <span class="md-ellipsis">
-    配置中心参考
-  </span>
-  
-
-      </a>
-      
-        
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-    
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#kie" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 Kie
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#nacos" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 nacos
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#apollo" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 Apollo
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#cse10" class="md-nav__link">
-    <span class="md-ellipsis">
-      华为云CSE1.0配置中心
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-      
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_14" >
-        
-          
-          <label class="md-nav__link" for="__nav_14" id="__nav_14_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    服务治理功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_14">
-            <span class="md-nav__icon md-icon"></span>
-            服务治理功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    快速失败和重试
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_15" >
-        
-          
-          <label class="md-nav__link" for="__nav_15" id="__nav_15_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    网关功能参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_15">
-            <span class="md-nav__icon md-icon"></span>
-            网关功能参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 Edge Service 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用 `zuul` 和 `spring cloud gateway` 做网关
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    nginx 网关简单介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_16" >
-        
-          
-          <label class="md-nav__link" for="__nav_16" id="__nav_16_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    安全特性参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_16">
-            <span class="md-nav__icon md-icon"></span>
-            安全特性参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    公钥认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用TLS通信
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    使用RSA认证
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_17" >
-        
-          
-          <label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    专题文章
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_17">
-            <span class="md-nav__icon md-icon"></span>
-            专题文章
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    特性介绍
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    技术解密
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    升级指导
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    兼容问题和兼容性策略
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    性能问题分析和调优
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
-        
-          
-          <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常用配置项参考
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_18">
-            <span class="md-nav__icon md-icon"></span>
-            常用配置项参考
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    REST Transport Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-      
-      
-  
-  
-  
-  
-    
-    
-    
-    
-    <li class="md-nav__item md-nav__item--nested">
-      
-        
-        
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_19" >
-        
-          
-          <label class="md-nav__link" for="__nav_19" id="__nav_19_label" tabindex="0">
-            
-  
-  <span class="md-ellipsis">
-    常见问题
-  </span>
-  
-
-            <span class="md-nav__icon md-icon"></span>
-          </label>
-        
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_19_label" aria-expanded="false">
-          <label class="md-nav__title" for="__nav_19">
-            <span class="md-nav__icon md-icon"></span>
-            常见问题
-          </label>
-          <ul class="md-nav__list" data-md-scrollfix>
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    FAQ
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Q & A
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    微服务接口兼容常见问题
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-          </ul>
-        </nav>
-      
-    </li>
-  
-
-    
-  </ul>
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-            
-              
-              <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
-                <div class="md-sidebar__scrollwrap">
-                  <div class="md-sidebar__inner">
-                    
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-    
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#kie" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 Kie
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#nacos" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 nacos
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#apollo" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 Apollo
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#cse10" class="md-nav__link">
-    <span class="md-ellipsis">
-      华为云CSE1.0配置中心
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-                  </div>
-                </div>
-              </div>
-            
-          
-          
-            <div class="md-content" data-md-component="content">
-              <article class="md-content__inner md-typeset">
-                
-                  
-
-
-<h1 id="_1">配置中心参考</h1>
-<p>配置中心是微服务架构下一个非常重要的中间件,通过配置中心用户可以增加和删除配置信息,配置信息会通过不同的通知机制, 将配置的变化推送到微服务实例。 Java Chassis 允许用户使用不同的配置中心, 并支持多个配置中心共存。</p>
-<h2 id="kie">使用 Kie</h2>
-<ul>
-<li>下载安装</li>
-</ul>
-<p>可以通过 <a href="https://kie.readthedocs.io/en/latest/get-started.html">Kie官网</a> 下载和安装Kie。华为云提供了一个集成注册中心的本地版本,并提供了友好的界面,可以通过 <a href="https://support.huaweicloud.com/devg-cse/cse_04_0046.html">华为云</a> 下载和使用。 </p>
-<p><br/>
-* 开发使用</p>
-<p>在 java-chassis 中使用 Kie, 需要引入下面的依赖:</p>
-<pre><code>```xml
-&lt;dependency&gt;
-  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
-  &lt;artifactId&gt;config-kie&lt;/artifactId&gt;
-&lt;/dependency&gt;
-```
-</code></pre>
-<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
-<pre><code>```yaml
-servicecomb:
-  kie:
-    serverUri: http://127.0.0.1:30110
-```
-</code></pre>
-<p><br/>
-* 使用配置中心增加配置</p>
-<p>客户端默认会读取下面几个层次的配置:</p>
-<ul>
-<li>应用级配置:Label只包含environment、app,并且与微服务的环境、应用匹配的配置。</li>
-<li>服务级配置:Label只包含environment、app、service,并且与微服务的环境、应用、微服务名称匹配的配置。</li>
-<li>版本级配置:Label只包含environment、app、service、version,并且与微服务的环境、应用、微服务名称、版本匹配的配置。</li>
-<li>自定义配置:Label包含custom-label, 并且与 custom-value匹配的配置。 </li>
-</ul>
-<p>上述的配置级别,优先级从低到高。 Kie 的 yaml 和 properties 类型会映射为多个配置项, 其他类型,比如 json, text, 只会映射为一个配置项。开发者需要读取配置项自己解析内容。</p>
-<p><br/>
-* 配置项参考</p>
-<pre><code>|配置项名| 含义                      | 缺省值     |
-|------------------------|---------|---|
-|servicecomb.kie.serverUri| servicecomb-kie访问地址,格式为`http(s)://{ip}:{port}`,以`,`分隔多个地址 | 空       |
-|servicecomb.kie.enableLongPolling| Long Polling 模式是否开启                                       | true    |
-|servicecomb.kie.pollingWaitTime| Long Polling 模式下等待时间,单位为秒                                 | 10      |
-|servicecomb.kie.firstPullRequired| 启动的时候第一次查询配置失败,是否终止启动。                                    | true    |
-|servicecomb.kie.domainName| 区域名称                                                      | default |
-|servicecomb.kie.refresh_interval| Pull 模式下刷新配置项的时间间隔,单位为毫秒。                                 | 15000   |
-|servicecomb.kie.firstRefreshInterval| Pull 模式下启动过程中首次刷新时间间隔,单位为毫秒。                              | 3000    |
-|servicecomb.kie.enableAppConfig| 是否开启应用配置  | true    |
-|servicecomb.kie.enableServiceConfig| 是否开启服务配置     | true    |
-|servicecomb.kie.enableVersionConfig| 是否开启版本配置     | true    |
-|servicecomb.kie.enableVersionConfig| 是否开启自定义配置     | true    |
-|servicecomb.kie.customLabel| 自定义配置的Label     | public    |
-|servicecomb.kie.customLabelValue| 自定义配置的Value     | 空    |
-</code></pre>
-<h2 id="nacos">使用 nacos</h2>
-<ul>
-<li>下载安装</li>
-</ul>
-<p>可以通过 <a href="https://github.com/alibaba/nacos">nacos官网</a> 下载和安装 Nacos。</p>
-<p><br/></p>
-<ul>
-<li>开发使用
-使用nacos,需要在项目中引入如下依赖:</li>
-</ul>
-<pre><code class="language-xml">&lt;dependency&gt;
-  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
-  &lt;artifactId&gt;config-nacos&lt;/artifactId&gt;
-&lt;/dependency&gt;
-</code></pre>
-<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
-<pre><code class="language-yaml">servicecomb:
-  nacos:
-    serverAddr: http://127.0.0.1:8848
-</code></pre>
-<p><br/></p>
-<ul>
-<li>使用配置中心增加配置</li>
-</ul>
-<p>Nacos的namespace对应于Java Chassis Environment, group对应于application。 客户端默认会读取下面几个层次的配置:</p>
-<pre><code>* 应用级配置:group为application名称,data-id为application名称,并且类型为yaml的配置。
-* 服务级配置:group为application名称,data-id为微服务名称,并且类型为yaml的配置。
-* 版本级配置:group为application名称,data-id为微服务名称+版本号,并且类型为yaml的配置, 比如: service-0.1
-* Profile级配置:group为application名称,data-id为微服务名称+Profile名称,并且类型为yaml的配置, 比如: service-dev
-* 自定义配置:可以通过配置项定义group、data-id、类型等信息,详情参考配置项。。
-</code></pre>
-<p>上述的配置级别,优先级从低到高。 </p>
-<p><br/></p>
-<ul>
-<li>配置项参考</li>
-</ul>
-<table>
-<thead>
-<tr>
-<th>配置项名</th>
-<th>含义</th>
-<th>缺省值</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>servicecomb.nacos.serverAddr</td>
-<td>NACOS访问地址,格式为<code>http(s)://{ip}:{port}</code>,以<code>,</code>分隔多个地址</td>
-<td>空</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.group</td>
-<td>自定义group</td>
-<td>空</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.dataId</td>
-<td>自定义data-id</td>
-<td>空</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.addPrefix</td>
-<td>是否使用group+data-id作为配置项前缀</td>
-<td>false</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.contentType</td>
-<td>自定义类型</td>
-<td><em>yaml</em></td>
-</tr>
-<tr>
-<td>servicecomb.nacos.username</td>
-<td>连接Nacos的用户名</td>
-<td>空</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.password</td>
-<td>连接Nacos的密码</td>
-<td>空</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.accessKey</td>
-<td>连接Nacos的Access Key</td>
-<td>空</td>
-</tr>
-<tr>
-<td>servicecomb.nacos.secretKey</td>
-<td>连接Nacos的Secret Key</td>
-<td>空</td>
-</tr>
-</tbody>
-</table>
-<h2 id="apollo">使用 Apollo</h2>
-<blockquote>
-<blockquote>
-<blockquote>
-<p>注意:本实现作为适配 Apollo 的参考,整体逻辑功能和设计规格不完善,不建议在生产环境使用。 如果在生产环境使用,建议基于 Apollo 提供的 SDK 自行扩展实现。 </p>
-</blockquote>
-</blockquote>
-</blockquote>
-<p><a href="https://github.com/ctripcorp/apollo">Apollo</a> 是携程框架部门研发的分布式配置中心。 Apollo的下载安装请参考官网介绍。</p>
-<pre><code class="language-xml">&lt;dependency&gt;
-  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
-  &lt;artifactId&gt;config-apollo&lt;/artifactId&gt;
-&lt;/dependency&gt;
-</code></pre>
-<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
-<pre><code class="language-yaml">apollo:
-  config:
-    serverUri: http://127.0.0.1:8070
-    serviceName: apollo-test
-    env: DEV
-    clusters: test-cluster
-    namespace: application
-    token: xxx
-    refreshInterval: 30
-    firstRefreshInterval: 0
-</code></pre>
-<h2 id="cse10">华为云CSE1.0配置中心</h2>
-<blockquote>
-<blockquote>
-<blockquote>
-<p>注意:CSE1.0配置中心已经逐步下线, 本实现仅供遗留功能使用,新功能不建议使用。</p>
-</blockquote>
-</blockquote>
-</blockquote>
-<p>华为云CSE1.0配置中心是华为云CSE产品的一个部件,java-chassis 最早使用它作为配置中心。 对接这个配置中心的代码在 config-cc 模块实现。</p>
-<p>可以从 <a href="https://cse-bucket.obs.myhwclouds.com/LocalCSE/Local-CSE-1.0.3.zip">轻量化微服务引擎</a> 下载本地使用的版本。也可以
-直接访问华为云 <a href="https://console.huaweicloud.com/servicestage">ServiceStage</a> 产品,使用在线的版本。</p>
-<p>使用华为云配置中心,需要在项目中引入如下依赖:</p>
-<pre><code class="language-xml">&lt;dependency&gt;
-  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
-  &lt;artifactId&gt;config-cc&lt;/artifactId&gt;
-&lt;/dependency&gt;
-</code></pre>
-<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
-<pre><code class="language-yaml">servicecomb:
-  config:
-    client:
-      serverUri: http://127.0.0.1:30113
-      refreshMode: 0
-      refresh_interval: 5000
-      refreshPort: 30114
-</code></pre>
-<p>华为云配置中心的其他配置项含义如下:</p>
-<table>
-<thead>
-<tr>
-<th>配置项名</th>
-<th>描述</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td>servicecomb.config.client.refreshMode</td>
-<td>应用配置的刷新方式,<code>0</code>为config-center主动push,<code>1</code>为client周期pull,默认为<code>0</code></td>
-</tr>
-<tr>
-<td>servicecomb.config.client.refreshPort</td>
-<td>config-center推送配置的端口</td>
-</tr>
-<tr>
-<td>servicecomb.config.client.tenantName</td>
-<td>应用的租户名称</td>
-</tr>
-<tr>
-<td>servicecomb.config.client.serverUri</td>
-<td>config-center访问地址,格式为<code>http(s)://{ip}:{port}</code>,以<code>,</code>分隔多个地址</td>
-</tr>
-<tr>
-<td>servicecomb.config.client.refresh_interval</td>
-<td>pull模式下刷新配置项的时间间隔,单位为毫秒,默认值为15000</td>
-</tr>
-<tr>
-<td>servicecomb.config.client.fileSource</td>
-<td>指定该配置项的内容为yaml文件,多个配置文件可以用<code>,</code>分隔</td>
-</tr>
-</tbody>
-</table>
-
-
-
-
-
-
-
-
-
-
-
-
-                
-              </article>
-            </div>
-          
-          
-<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
-        </div>
-        
-      </main>
-      
-        <footer class="md-footer">
-  
-  <div class="md-footer-meta md-typeset">
-    <div class="md-footer-meta__inner md-grid">
-      <div class="md-copyright">
-  
-  
-    Made with
-    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
-      Material for MkDocs
-    </a>
-  
-</div>
-      
-    </div>
-  </div>
-</footer>
-      
-    </div>
-    <div class="md-dialog" data-md-component="dialog">
-      <div class="md-dialog__inner md-typeset"></div>
-    </div>
-    
-    
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
-    
-    
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
-      
-    
-  </body>
-</html>
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/config-reference/config-center-client.html b/content/references/java-chassis/zh_CN/config/cse1.html
similarity index 91%
rename from content/references/java-chassis/zh_CN/config-reference/config-center-client.html
rename to content/references/java-chassis/zh_CN/config/cse1.html
index 0ef9689..3688455 100644
--- a/content/references/java-chassis/zh_CN/config-reference/config-center-client.html
+++ b/content/references/java-chassis/zh_CN/config/cse1.html
@@ -9,22 +9,22 @@
       
       
       
-        <link rel="prev" href="rest-transport-client.html">
+        <link rel="prev" href="apollo.html">
       
       
-        <link rel="next" href="service-center-client.html">
+        <link rel="next" href="../references-handlers/rule-governance.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Config Center Client 配置项 - Java Chassis 3 开发指南</title>
+        <title>使用CSE1.0配置中心 - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -62,7 +62,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#config-center-client" class="md-skip">
+        <a href="#cse10" class="md-skip">
           Skip to content
         </a>
       
@@ -98,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Config Center Client 配置项
+              使用CSE1.0配置中心
             
           </span>
         </div>
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1885,17 +1906,19 @@
       
   
   
+    
+  
   
   
     
     
     
     
-    <li class="md-nav__item md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" checked>
         
           
           <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
@@ -1909,7 +1932,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="true">
           <label class="md-nav__title" for="__nav_13">
             <span class="md-nav__icon md-icon"></span>
             多样化的配置管理功能
@@ -1923,7 +1946,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1944,7 +1967,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1965,11 +1988,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
   </span>
   
 
@@ -1979,6 +2002,100 @@
 
               
             
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+      <a href="cse1.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
+  </span>
+  
+
+      </a>
+      
+    </li>
+  
+
+              
+            
           </ul>
         </nav>
       
@@ -2028,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2536,19 +2674,17 @@
       
   
   
-    
   
   
-  
     
     
     
     
-    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" checked>
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_18" >
         
           
           <label class="md-nav__link" for="__nav_18" id="__nav_18_label" tabindex="0">
@@ -2562,7 +2698,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="true">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_18_label" aria-expanded="false">
           <label class="md-nav__title" for="__nav_18">
             <span class="md-nav__icon md-icon"></span>
             常用配置项参考
@@ -2576,7 +2712,7 @@
   
   
     <li class="md-nav__item">
-      <a href="rest-transport-client.html" class="md-nav__link">
+      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2590,79 +2726,6 @@
 
               
             
-              
-                
-  
-  
-    
-  
-  
-  
-    <li class="md-nav__item md-nav__item--active">
-      
-      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
-      
-      
-        
-      
-      
-      <a href="config-center-client.html" class="md-nav__link md-nav__link--active">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-      
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2808,58 +2871,67 @@
                   
 
 
-<h1 id="config-center-client">Config Center Client 配置项</h1>
-<ul>
-<li>基本配置</li>
-</ul>
+<h1 id="cse10">华为云CSE1.0配置中心</h1>
+<blockquote>
+<blockquote>
+<blockquote>
+<p>注意:CSE1.0配置中心已经逐步下线, 本实现仅供遗留功能使用,新功能不建议使用。</p>
+</blockquote>
+</blockquote>
+</blockquote>
+<p>华为云CSE1.0配置中心是华为云CSE产品的一个部件,java-chassis 最早使用它作为配置中心。 对接这个配置中心的代码在 config-cc 模块实现。</p>
+<p>可以从 <a href="https://cse-bucket.obs.myhwclouds.com/LocalCSE/Local-CSE-1.0.3.zip">轻量化微服务引擎</a> 下载本地使用的版本。也可以
+直接访问华为云 <a href="https://console.huaweicloud.com/servicestage">ServiceStage</a> 产品,使用在线的版本。</p>
+<p>使用华为云配置中心,需要在项目中引入如下依赖:</p>
+<pre><code class="language-xml">&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
+  &lt;artifactId&gt;config-cc&lt;/artifactId&gt;
+&lt;/dependency&gt;
+</code></pre>
+<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
+<pre><code class="language-yaml">servicecomb:
+  config:
+    client:
+      serverUri: http://127.0.0.1:30113
+      refreshMode: 0
+      refresh_interval: 5000
+      refreshPort: 30114
+</code></pre>
+<p>华为云配置中心的其他配置项含义如下:</p>
 <table>
 <thead>
 <tr>
-<th>配置项名称</th>
-<th>版本</th>
-<th>缺省值</th>
-<th>功能描述</th>
+<th>配置项名</th>
+<th>描述</th>
 </tr>
 </thead>
 <tbody>
 <tr>
-<td>servicecomb.config.client.eventLoopSize</td>
-<td>2.0.2</td>
-<td>2</td>
-<td>event loop 线程数</td>
+<td>servicecomb.config.client.refreshMode</td>
+<td>应用配置的刷新方式,<code>0</code>为config-center主动push,<code>1</code>为client周期pull,默认为<code>0</code></td>
 </tr>
 <tr>
-<td>servicecomb.config.client.verticalInstanceCount</td>
-<td>2.0.2</td>
-<td>1</td>
-<td>verticle instances 数量</td>
+<td>servicecomb.config.client.refreshPort</td>
+<td>config-center推送配置的端口</td>
 </tr>
 <tr>
-<td>servicecomb.config.client.timeout.connection</td>
-<td>2.0.2</td>
-<td>1000</td>
-<td>连接超时时间</td>
+<td>servicecomb.config.client.tenantName</td>
+<td>应用的租户名称</td>
 </tr>
 <tr>
-<td>servicecomb.config.client.idleTimeoutInSeconds</td>
-<td>2.0.2</td>
-<td>60</td>
-<td>HTTP 连接闲置超时时间</td>
+<td>servicecomb.config.client.serverUri</td>
+<td>config-center访问地址,格式为<code>http(s)://{ip}:{port}</code>,以<code>,</code>分隔多个地址</td>
+</tr>
+<tr>
+<td>servicecomb.config.client.refresh_interval</td>
+<td>pull模式下刷新配置项的时间间隔,单位为毫秒,默认值为15000</td>
+</tr>
+<tr>
+<td>servicecomb.config.client.fileSource</td>
+<td>指定该配置项的内容为yaml文件,多个配置文件可以用<code>,</code>分隔</td>
 </tr>
 </tbody>
 </table>
-<ul>
-<li>请求超时配置</li>
-</ul>
-<p>不支持。</p>
-<ul>
-<li>SSL 配置</li>
-</ul>
-<p>参考 <a href="../security/tls.html">使用TLS通信</a>。 tag 为 <code>cc.consumer</code>。</p>
-<ul>
-<li>Proxy 配置</li>
-</ul>
-<p>参考 <a href="../general-development/proxy.html">代理设置</a></p>
 
 
 
@@ -2909,7 +2981,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/config/general-config.html b/content/references/java-chassis/zh_CN/config/general-config.html
index 04bd959..8583a12 100644
--- a/content/references/java-chassis/zh_CN/config/general-config.html
+++ b/content/references/java-chassis/zh_CN/config/general-config.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2052,11 +2073,95 @@
   
   
     <li class="md-nav__item">
-      <a href="config-service.html" class="md-nav__link">
+      <a href="kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2115,6 +2220,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2199,27 +2346,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2675,69 +2801,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2968,7 +3031,8 @@
 <p>可以在环境变量中设置 <code>servicecomb_rest_address=0.0.0.0:9090</code> 来将服务监听的端口覆写为9090。这种下划线转点号的机制也适用于其他的配置层级。</p>
 <p>由于上述限制,最好的方式是在启动参数里面使用 Java System Property。 比如 <code>-Dservicecomb.rest.address=${LISTEN_ADDRESS}</code>, 设置的环境变量 LISTEN_ADDRESS 符合操作系统的命名规范。</p>
 <h2 id="_5">配置中心(动态配置)</h2>
-<p>Java Chassis支持多个不同的配置中心实现,并支持同时使用多个配置中心。 配置中心的优先级高于文件配置。 </p>
+<p>配置中心是微服务架构下一个非常重要的中间件,通过配置中心用户可以增加和删除配置信息,配置信息会通过不同的通知机制, 将配置的变化推送到微服务实例。 Java Chassis 允许用户使用不同的配置中心, 并支持多个配置中心共存。</p>
+<p>配置中心的优先级高于文件配置。 </p>
 <h2 id="_6">进行配置项映射</h2>
 <p>配置项映射可以用于给配置项取一个别名,在使用环境变量覆盖业务配置、兼容性场景广泛使用。
 进行配置项映射通过 classpath 下的 mapping.yaml 定义:</p>
@@ -3032,7 +3096,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/catalog/start.html b/content/references/java-chassis/zh_CN/config/kie.html
similarity index 88%
copy from content/references/java-chassis/zh_CN/catalog/start.html
copy to content/references/java-chassis/zh_CN/config/kie.html
index 0a616ea..bba55ff 100644
--- a/content/references/java-chassis/zh_CN/catalog/start.html
+++ b/content/references/java-chassis/zh_CN/config/kie.html
@@ -9,18 +9,22 @@
       
       
       
+        <link rel="prev" href="read-config.html">
+      
+      
+        <link rel="next" href="nacos.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Start - Java Chassis 3 开发指南</title>
+        <title>使用Kie - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -58,7 +62,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#_1" class="md-skip">
+        <a href="#kie" class="md-skip">
           Skip to content
         </a>
       
@@ -94,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Start
+              使用Kie
             
           </span>
         </div>
@@ -1797,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1881,17 +1906,19 @@
       
   
   
+    
+  
   
   
     
     
     
     
-    <li class="md-nav__item md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" checked>
         
           
           <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
@@ -1905,7 +1932,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="true">
           <label class="md-nav__title" for="__nav_13">
             <span class="md-nav__icon md-icon"></span>
             多样化的配置管理功能
@@ -1919,7 +1946,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1940,7 +1967,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1958,14 +1985,156 @@
                 
   
   
+    
   
   
-    <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+        <label class="md-nav__link md-nav__link--active" for="__toc">
+          
+  
+  <span class="md-ellipsis">
+    使用Kie
+  </span>
+  
+
+          <span class="md-nav__icon md-icon"></span>
+        </label>
+      
+      <a href="kie.html" class="md-nav__link md-nav__link--active">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+      
+        
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+  
+  
+  
+    
+  
+  
+    <label class="md-nav__title" for="__toc">
+      <span class="md-nav__icon md-icon"></span>
+      Table of contents
+    </label>
+    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+      
+        <li class="md-nav__item">
+  <a href="#_1" class="md-nav__link">
+    <span class="md-ellipsis">
+      下载安装
+    </span>
+  </a>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_2" class="md-nav__link">
+    <span class="md-ellipsis">
+      开发使用
+    </span>
+  </a>
+  
+</li>
+      
+    </ul>
+  
+</nav>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2776,6 +2903,8 @@
   
   
   
+    
+  
   
     <label class="md-nav__title" for="__toc">
       <span class="md-nav__icon md-icon"></span>
@@ -2786,7 +2915,7 @@
         <li class="md-nav__item">
   <a href="#_1" class="md-nav__link">
     <span class="md-ellipsis">
-      术语表
+      下载安装
     </span>
   </a>
   
@@ -2795,25 +2924,7 @@
         <li class="md-nav__item">
   <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      微服务系统架构
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      安装本地开发环境
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      开发第一个微服务
+      开发使用
     </span>
   </a>
   
@@ -2834,16 +2945,110 @@
                   
 
 
-  <h1>Start</h1>
-
-<h3 id="_1"><a href="/start/terminology.html">术语表</a></h3>
-<h3 id="_2"><a href="/start/architecture.html">微服务系统架构</a></h3>
-<h3 id="_3"><a href="/build-provider/definition/service-definition.html">安装本地开发环境</a></h3>
-<p>• 服务定义信息是微服务的身份标识,它定义了服务从属于哪个应用,以及名字和版本。服务定义信息中也可以有扩展信息,用于定义服务的属性元数据。</p>
-<h3 id="_4"><a href="/start/first-sample.html">开发第一个微服务</a></h3>
-<p>开发者可以通过两种方式快速构建一个项目:  </p>
-<p>• 下载samples项目。建议把整个项目都下载下来,按照例子 SpringMVC 或者 JAX RS进行初始化配置。<br />
-• 使用archetypes生成项目  </p>
+<h1 id="kie">使用 Kie</h1>
+<h2 id="_1">下载安装</h2>
+<p>可以通过 <a href="https://kie.readthedocs.io/en/latest/get-started.html">Kie官网</a> 下载和安装Kie。华为云提供了一个集成注册中心的本地版本,并提供了友好的界面,可以通过 <a href="https://support.huaweicloud.com/devg-cse/cse_04_0046.html">华为云</a> 下载和使用。</p>
+<h2 id="_2">开发使用</h2>
+<p>使用 Kie, 需要引入下面的依赖:</p>
+<pre><code class="language-xml">&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
+  &lt;artifactId&gt;config-kie&lt;/artifactId&gt;
+&lt;/dependency&gt;
+</code></pre>
+<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
+<pre><code class="language-yaml">servicecomb:
+  kie:
+    serverUri: http://127.0.0.1:30110
+</code></pre>
+<ul>
+<li>使用配置中心增加配置</li>
+</ul>
+<p>客户端默认会读取下面几个层次的配置:</p>
+<pre><code>* 应用级配置:Label只包含environment、app,并且与微服务的环境、应用匹配的配置。
+* 服务级配置:Label只包含environment、app、service,并且与微服务的环境、应用、微服务名称匹配的配置。
+* 版本级配置:Label只包含environment、app、service、version,并且与微服务的环境、应用、微服务名称、版本匹配的配置。
+* 自定义配置:Label包含custom-label, 并且与 custom-value匹配的配置。
+</code></pre>
+<p>上述的配置级别,优先级从低到高。 Kie 的 yaml 和 properties 类型会映射为多个配置项, 其他类型,比如 json, text, 只会映射为一个配置项。开发者需要读取配置项自己解析内容。</p>
+<ul>
+<li>配置项参考</li>
+</ul>
+<table>
+<thead>
+<tr>
+<th>配置项名</th>
+<th>含义</th>
+<th>缺省值</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>servicecomb.kie.serverUri</td>
+<td>servicecomb-kie访问地址,格式为<code>http(s)://{ip}:{port}</code>,以<code>,</code>分隔多个地址</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.kie.enableLongPolling</td>
+<td>Long Polling 模式是否开启</td>
+<td>true</td>
+</tr>
+<tr>
+<td>servicecomb.kie.pollingWaitTime</td>
+<td>Long Polling 模式下等待时间,单位为秒</td>
+<td>10</td>
+</tr>
+<tr>
+<td>servicecomb.kie.firstPullRequired</td>
+<td>启动的时候第一次查询配置失败,是否终止启动。</td>
+<td>true</td>
+</tr>
+<tr>
+<td>servicecomb.kie.domainName</td>
+<td>区域名称</td>
+<td>default</td>
+</tr>
+<tr>
+<td>servicecomb.kie.refresh_interval</td>
+<td>Pull 模式下刷新配置项的时间间隔,单位为毫秒。</td>
+<td>15000</td>
+</tr>
+<tr>
+<td>servicecomb.kie.firstRefreshInterval</td>
+<td>Pull 模式下启动过程中首次刷新时间间隔,单位为毫秒。</td>
+<td>3000</td>
+</tr>
+<tr>
+<td>servicecomb.kie.enableAppConfig</td>
+<td>是否开启应用配置</td>
+<td>true</td>
+</tr>
+<tr>
+<td>servicecomb.kie.enableServiceConfig</td>
+<td>是否开启服务配置</td>
+<td>true</td>
+</tr>
+<tr>
+<td>servicecomb.kie.enableVersionConfig</td>
+<td>是否开启版本配置</td>
+<td>true</td>
+</tr>
+<tr>
+<td>servicecomb.kie.enableVersionConfig</td>
+<td>是否开启自定义配置</td>
+<td>true</td>
+</tr>
+<tr>
+<td>servicecomb.kie.customLabel</td>
+<td>自定义配置的Label</td>
+<td>public</td>
+</tr>
+<tr>
+<td>servicecomb.kie.customLabelValue</td>
+<td>自定义配置的Value</td>
+<td>空</td>
+</tr>
+</tbody>
+</table>
 
 
 
@@ -2893,7 +3098,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/catalog/start.html b/content/references/java-chassis/zh_CN/config/nacos.html
similarity index 89%
rename from content/references/java-chassis/zh_CN/catalog/start.html
rename to content/references/java-chassis/zh_CN/config/nacos.html
index 0a616ea..bceca3d 100644
--- a/content/references/java-chassis/zh_CN/catalog/start.html
+++ b/content/references/java-chassis/zh_CN/config/nacos.html
@@ -9,18 +9,22 @@
       
       
       
+        <link rel="prev" href="kie.html">
+      
+      
+        <link rel="next" href="zookeeper.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Start - Java Chassis 3 开发指南</title>
+        <title>使用Nacos - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -58,7 +62,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#_1" class="md-skip">
+        <a href="#nacos" class="md-skip">
           Skip to content
         </a>
       
@@ -94,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Start
+              使用Nacos
             
           </span>
         </div>
@@ -1797,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1881,17 +1906,19 @@
       
   
   
+    
+  
   
   
     
     
     
     
-    <li class="md-nav__item md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" checked>
         
           
           <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
@@ -1905,7 +1932,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="true">
           <label class="md-nav__title" for="__nav_13">
             <span class="md-nav__icon md-icon"></span>
             多样化的配置管理功能
@@ -1919,7 +1946,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1940,7 +1967,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1961,11 +1988,153 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+        <label class="md-nav__link md-nav__link--active" for="__toc">
+          
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+          <span class="md-nav__icon md-icon"></span>
+        </label>
+      
+      <a href="nacos.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+      
+        
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+  
+  
+  
+    
+  
+  
+    <label class="md-nav__title" for="__toc">
+      <span class="md-nav__icon md-icon"></span>
+      Table of contents
+    </label>
+    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+      
+        <li class="md-nav__item">
+  <a href="#_1" class="md-nav__link">
+    <span class="md-ellipsis">
+      下载安装
+    </span>
+  </a>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_2" class="md-nav__link">
+    <span class="md-ellipsis">
+      开发使用
+    </span>
+  </a>
+  
+</li>
+      
+    </ul>
+  
+</nav>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2776,6 +2903,8 @@
   
   
   
+    
+  
   
     <label class="md-nav__title" for="__toc">
       <span class="md-nav__icon md-icon"></span>
@@ -2786,7 +2915,7 @@
         <li class="md-nav__item">
   <a href="#_1" class="md-nav__link">
     <span class="md-ellipsis">
-      术语表
+      下载安装
     </span>
   </a>
   
@@ -2795,25 +2924,7 @@
         <li class="md-nav__item">
   <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      微服务系统架构
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      安装本地开发环境
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      开发第一个微服务
+      开发使用
     </span>
   </a>
   
@@ -2834,16 +2945,91 @@
                   
 
 
-  <h1>Start</h1>
-
-<h3 id="_1"><a href="/start/terminology.html">术语表</a></h3>
-<h3 id="_2"><a href="/start/architecture.html">微服务系统架构</a></h3>
-<h3 id="_3"><a href="/build-provider/definition/service-definition.html">安装本地开发环境</a></h3>
-<p>• 服务定义信息是微服务的身份标识,它定义了服务从属于哪个应用,以及名字和版本。服务定义信息中也可以有扩展信息,用于定义服务的属性元数据。</p>
-<h3 id="_4"><a href="/start/first-sample.html">开发第一个微服务</a></h3>
-<p>开发者可以通过两种方式快速构建一个项目:  </p>
-<p>• 下载samples项目。建议把整个项目都下载下来,按照例子 SpringMVC 或者 JAX RS进行初始化配置。<br />
-• 使用archetypes生成项目  </p>
+<h1 id="nacos">使用 Nacos</h1>
+<h2 id="_1">下载安装</h2>
+<p>可以通过 <a href="https://github.com/alibaba/nacos">Nacos官网</a> 下载和安装 Nacos。</p>
+<h2 id="_2">开发使用</h2>
+<p>使用Nacos,需要在项目中引入如下依赖:</p>
+<pre><code class="language-xml">&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
+  &lt;artifactId&gt;config-nacos&lt;/artifactId&gt;
+&lt;/dependency&gt;
+</code></pre>
+<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
+<pre><code class="language-yaml">servicecomb:
+  nacos:
+    serverAddr: http://127.0.0.1:8848
+</code></pre>
+<ul>
+<li>配置中心增加配置</li>
+</ul>
+<p>Nacos的namespace对应于Java Chassis Environment, group对应于application。 客户端默认会读取下面几个层次的配置:</p>
+<pre><code>* 应用级配置:group为application名称,data-id为application名称,并且类型为yaml的配置。
+* 服务级配置:group为application名称,data-id为微服务名称,并且类型为yaml的配置。
+* 版本级配置:group为application名称,data-id为微服务名称+版本号,并且类型为yaml的配置, 比如: service-0.1
+* Profile级配置:group为application名称,data-id为微服务名称+Profile名称,并且类型为yaml的配置, 比如: service-dev
+* 自定义配置:可以通过配置项定义group、data-id、类型等信息,详情参考配置项。。
+</code></pre>
+<p>上述的配置级别,优先级从低到高。</p>
+<ul>
+<li>配置项参考</li>
+</ul>
+<table>
+<thead>
+<tr>
+<th>配置项名</th>
+<th>含义</th>
+<th>缺省值</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>servicecomb.nacos.serverAddr</td>
+<td>NACOS访问地址,格式为<code>http(s)://{ip}:{port}</code>,以<code>,</code>分隔多个地址</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.group</td>
+<td>自定义group</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.dataId</td>
+<td>自定义data-id</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.addPrefix</td>
+<td>是否使用group+data-id作为配置项前缀</td>
+<td>false</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.contentType</td>
+<td>自定义类型</td>
+<td><em>yaml</em></td>
+</tr>
+<tr>
+<td>servicecomb.nacos.username</td>
+<td>连接Nacos的用户名</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.password</td>
+<td>连接Nacos的密码</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.accessKey</td>
+<td>连接Nacos的Access Key</td>
+<td>空</td>
+</tr>
+<tr>
+<td>servicecomb.nacos.secretKey</td>
+<td>连接Nacos的Secret Key</td>
+<td>空</td>
+</tr>
+</tbody>
+</table>
 
 
 
@@ -2893,7 +3079,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/config/read-config.html b/content/references/java-chassis/zh_CN/config/read-config.html
index 400d2b6..f2bb2b0 100644
--- a/content/references/java-chassis/zh_CN/config/read-config.html
+++ b/content/references/java-chassis/zh_CN/config/read-config.html
@@ -12,11 +12,11 @@
         <link rel="prev" href="general-config.html">
       
       
-        <link rel="next" href="config-service.html">
+        <link rel="next" href="kie.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="config-service.html" class="md-nav__link">
+      <a href="kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3088,7 +3151,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/catalog/start.html b/content/references/java-chassis/zh_CN/config/zookeeper.html
similarity index 88%
copy from content/references/java-chassis/zh_CN/catalog/start.html
copy to content/references/java-chassis/zh_CN/config/zookeeper.html
index 0a616ea..11fb99e 100644
--- a/content/references/java-chassis/zh_CN/catalog/start.html
+++ b/content/references/java-chassis/zh_CN/config/zookeeper.html
@@ -9,18 +9,22 @@
       
       
       
+        <link rel="prev" href="nacos.html">
+      
+      
+        <link rel="next" href="apollo.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Start - Java Chassis 3 开发指南</title>
+        <title>使用Zookeeper - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -58,7 +62,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#_1" class="md-skip">
+        <a href="#zookeeper" class="md-skip">
           Skip to content
         </a>
       
@@ -94,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Start
+              使用Zookeeper
             
           </span>
         </div>
@@ -1797,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1881,17 +1906,19 @@
       
   
   
+    
+  
   
   
     
     
     
     
-    <li class="md-nav__item md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" >
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_13" checked>
         
           
           <label class="md-nav__link" for="__nav_13" id="__nav_13_label" tabindex="0">
@@ -1905,7 +1932,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="true">
           <label class="md-nav__title" for="__nav_13">
             <span class="md-nav__icon md-icon"></span>
             多样化的配置管理功能
@@ -1919,7 +1946,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1940,7 +1967,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1961,11 +1988,153 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+        <label class="md-nav__link md-nav__link--active" for="__toc">
+          
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+          <span class="md-nav__icon md-icon"></span>
+        </label>
+      
+      <a href="zookeeper.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+      
+        
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+  
+  
+  
+    
+  
+  
+    <label class="md-nav__title" for="__toc">
+      <span class="md-nav__icon md-icon"></span>
+      Table of contents
+    </label>
+    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+      
+        <li class="md-nav__item">
+  <a href="#_1" class="md-nav__link">
+    <span class="md-ellipsis">
+      下载安装
+    </span>
+  </a>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_2" class="md-nav__link">
+    <span class="md-ellipsis">
+      开发使用
+    </span>
+  </a>
+  
+</li>
+      
+    </ul>
+  
+</nav>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2776,6 +2903,8 @@
   
   
   
+    
+  
   
     <label class="md-nav__title" for="__toc">
       <span class="md-nav__icon md-icon"></span>
@@ -2786,7 +2915,7 @@
         <li class="md-nav__item">
   <a href="#_1" class="md-nav__link">
     <span class="md-ellipsis">
-      术语表
+      下载安装
     </span>
   </a>
   
@@ -2795,25 +2924,7 @@
         <li class="md-nav__item">
   <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      微服务系统架构
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      安装本地开发环境
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      开发第一个微服务
+      开发使用
     </span>
   </a>
   
@@ -2834,16 +2945,113 @@
                   
 
 
-  <h1>Start</h1>
-
-<h3 id="_1"><a href="/start/terminology.html">术语表</a></h3>
-<h3 id="_2"><a href="/start/architecture.html">微服务系统架构</a></h3>
-<h3 id="_3"><a href="/build-provider/definition/service-definition.html">安装本地开发环境</a></h3>
-<p>• 服务定义信息是微服务的身份标识,它定义了服务从属于哪个应用,以及名字和版本。服务定义信息中也可以有扩展信息,用于定义服务的属性元数据。</p>
-<h3 id="_4"><a href="/start/first-sample.html">开发第一个微服务</a></h3>
-<p>开发者可以通过两种方式快速构建一个项目:  </p>
-<p>• 下载samples项目。建议把整个项目都下载下来,按照例子 SpringMVC 或者 JAX RS进行初始化配置。<br />
-• 使用archetypes生成项目  </p>
+<h1 id="zookeeper">使用 Zookeeper</h1>
+<h2 id="_1">下载安装</h2>
+<p>可以通过 <a href="https://zookeeper.apache.org/index.html">ZooKeeper官网</a> 下载和安装 ZooKeeper。</p>
+<h2 id="_2">开发使用</h2>
+<p>使用ZooKeeper,需要在项目中引入如下依赖:</p>
+<pre><code class="language-xml">&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
+  &lt;artifactId&gt;config-zookeeper&lt;/artifactId&gt;
+&lt;/dependency&gt;
+</code></pre>
+<p>然后在配置文件 microservice.yaml 中增加如下配置项:</p>
+<pre><code class="language-yaml">servicecomb:
+  config:
+    zk:
+      connectString: 127.0.0.1:2181
+</code></pre>
+<ul>
+<li>配置中心增加配置</li>
+</ul>
+<p>ZooKeeper 使用下面的配置结构和环境(Environment)、应用(Application)、服务(Service)、版本(Version)、Tag对应, 配置级别优先级从低到高。 </p>
+<pre><code class="language-yaml">servicecomb:
+  config:
+    environment:  
+      ${environment}:
+        exampleText: exampleTextValue
+        exampleYaml.yaml: exampleYamlValue
+        exampleYaml.yml: exampleYamlValue
+        exampleProperties.properties: examplePropertiesValue
+    application:
+      ${environment}:
+        ${application}:
+          exampleText: exampleTextValue
+          exampleYaml.yaml: exampleYamlValue
+          exampleYaml.yml: exampleYamlValue
+          exampleProperties.properties: examplePropertiesValue
+    service:
+      ${environment}:
+        ${application}:
+          ${service}:
+            exampleText: exampleTextValue
+            exampleYaml.yaml: exampleYamlValue
+            exampleYaml.yml: exampleYamlValue
+            exampleProperties.properties: examplePropertiesValue
+    version:
+      ${environment}:
+        ${application}:
+          ${service}:
+            ${version}:
+              exampleText: exampleTextValue
+              exampleYaml.yaml: exampleYamlValue
+              exampleYaml.yml: exampleYamlValue
+              exampleProperties.properties: examplePropertiesValue
+    tag:
+      ${environment}:
+        ${application}:
+          ${service}:
+            ${tag}:
+              exampleText: exampleTextValue
+              exampleYaml.yaml: exampleYamlValue
+              exampleYaml.yml: exampleYamlValue
+              exampleProperties.properties: examplePropertiesValue
+</code></pre>
+<ul>
+<li>配置项参考</li>
+</ul>
+<table>
+<thead>
+<tr>
+<th>配置项名</th>
+<th>默认值</th>
+<th>是否必须</th>
+<th>含义</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>servicecomb.config.zk.connect-string</td>
+<td>127.0.0.1:2181</td>
+<td>是</td>
+<td>ZooKeeper的地址信息,可以配置多个,用逗号分隔。</td>
+</tr>
+<tr>
+<td>servicecomb.config.zk.authenticationSchema</td>
+<td>空</td>
+<td>否</td>
+<td>认证方式,目前只能配置为 digest。</td>
+</tr>
+<tr>
+<td>servicecomb.config.zk.authenticationInfo</td>
+<td>空</td>
+<td>否</td>
+<td>当认证方式为 digest 的时候,配置用户名密码信息,比如: user:password</td>
+</tr>
+<tr>
+<td>servicecomb.config.zk.connectionTimeoutMillis</td>
+<td>1000</td>
+<td>否</td>
+<td>连接超时时间</td>
+</tr>
+<tr>
+<td>servicecomb.config.zk.sessionTimeoutMillis</td>
+<td>60000</td>
+<td>否</td>
+<td>会话超时时间</td>
+</tr>
+</tbody>
+</table>
 
 
 
@@ -2893,7 +3101,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/edge/by-servicecomb-sdk.html b/content/references/java-chassis/zh_CN/edge/by-servicecomb-sdk.html
index 3766ed1..5521e0a 100644
--- a/content/references/java-chassis/zh_CN/edge/by-servicecomb-sdk.html
+++ b/content/references/java-chassis/zh_CN/edge/by-servicecomb-sdk.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2693,69 +2819,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3353,7 +3416,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/edge/nginx.html b/content/references/java-chassis/zh_CN/edge/nginx.html
index d8f0379..e4519c2 100644
--- a/content/references/java-chassis/zh_CN/edge/nginx.html
+++ b/content/references/java-chassis/zh_CN/edge/nginx.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2672,69 +2798,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3067,7 +3130,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/edge/open-service.html b/content/references/java-chassis/zh_CN/edge/open-service.html
index 34272fe..687239a 100644
--- a/content/references/java-chassis/zh_CN/edge/open-service.html
+++ b/content/references/java-chassis/zh_CN/edge/open-service.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2864,7 +2927,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/edge/zuul.html b/content/references/java-chassis/zh_CN/edge/zuul.html
index 70580f9..3d533a6 100644
--- a/content/references/java-chassis/zh_CN/edge/zuul.html
+++ b/content/references/java-chassis/zh_CN/edge/zuul.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2876,7 +2939,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi.html
index 6215d3f..f0ce2e7 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2877,7 +2940,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/flow-control.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/flow-control.html
index 0b11236..45925cd 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/flow-control.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/flow-control.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2899,7 +2962,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/gray-release.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/gray-release.html
index a0d0a86..a385763 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/gray-release.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/gray-release.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2967,7 +3030,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/load-balance.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/load-balance.html
index 9d3178a..5d09119 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/load-balance.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/load-balance.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2889,7 +2952,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-advance.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-advance.html
index 4579ea7..406963b 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-advance.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-advance.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2857,7 +2920,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-bmi.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-bmi.html
index a7459a0..5a701b2 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-bmi.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start-bmi.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3170,7 +3233,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start.html
index 6fff478..738998a 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/quick-start.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2919,7 +2982,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/service-management.html b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/service-management.html
index 350f9ee..82cbd8d 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-bmi/service-management.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-bmi/service-management.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2925,7 +2988,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter.html
index dcee8b3..752e98e 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2894,7 +2957,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/authentication.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/authentication.html
index 1e2a228..a85fefc 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/authentication.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/authentication.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3035,7 +3098,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/design.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/design.html
index 6ace1cf..c1db85f 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/design.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/design.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2852,7 +2915,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/file-service.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/file-service.html
index 4ddda2f..053a063 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/file-service.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/file-service.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2916,7 +2979,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/gateway-service.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/gateway-service.html
index 3789a19..99385b3 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/gateway-service.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/gateway-service.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2918,7 +2981,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/https.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/https.html
index fbf5bc7..4dbe8e9 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/https.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/https.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2865,7 +2928,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/porter-website.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/porter-website.html
index 1852e0f..1d39589 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/porter-website.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/porter-website.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2892,7 +2955,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-service.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-service.html
index c4dd8d6..675ab19 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-service.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-service.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2968,7 +3031,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-story.html b/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-story.html
index 8f02c4d..ef55459 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-story.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/application-porter/user-story.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2849,7 +2912,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/compatibility.html b/content/references/java-chassis/zh_CN/featured-topics/compatibility.html
index d33892c..6a00a34 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/compatibility.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/compatibility.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3024,7 +3087,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/features.html b/content/references/java-chassis/zh_CN/featured-topics/features.html
index 97c51ce..b2a0d8b 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/features.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/features.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2862,7 +2925,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/features/date-time.html b/content/references/java-chassis/zh_CN/featured-topics/features/date-time.html
index 69edc91..18aad05 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/features/date-time.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/features/date-time.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2960,7 +3023,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/features/http-dispatcher.html b/content/references/java-chassis/zh_CN/featured-topics/features/http-dispatcher.html
index 36c83b6..1886b0b 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/features/http-dispatcher.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/features/http-dispatcher.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2906,7 +2969,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/performance.html b/content/references/java-chassis/zh_CN/featured-topics/performance.html
index 0a0891f..2c377f6 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/performance.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/performance.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2684,69 +2810,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3079,7 +3142,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets.html b/content/references/java-chassis/zh_CN/featured-topics/secrets.html
index b823b5f..5e778c7 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2818,6 +2881,8 @@
 <li><a href="secrets/applied-config.html">Java Chassis 3技术解密:应用视角的配置管理</a></li>
 <li><a href="secrets/registries.html">Java Chassis 3技术解密:易扩展的多种注册中心支持</a></li>
 <li><a href="secrets/interoperability.html">Java Chassis 3技术解密:与Spring Cloud的互操作</a></li>
+<li><a href="secrets/zookeeper.html">Java Chassis 3技术解密:ZooKeeper注册和配置中心</a></li>
+<li><a href="secrets/api-first.html">Java Chassis 3技术解密:契约优先(API First)开发</a></li>
 </ul>
 
 
@@ -2868,7 +2933,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/api-first-flow.png b/content/references/java-chassis/zh_CN/featured-topics/secrets/api-first-flow.png
new file mode 100644
index 0000000..54178ac
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/api-first-flow.png
Binary files differ
diff --git a/content/references/java-chassis/zh_CN/catalog/service-package-run.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/api-first.html
similarity index 72%
copy from content/references/java-chassis/zh_CN/catalog/service-package-run.html
copy to content/references/java-chassis/zh_CN/featured-topics/secrets/api-first.html
index 91f0f8b..41e5b31 100644
--- a/content/references/java-chassis/zh_CN/catalog/service-package-run.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/api-first.html
@@ -11,16 +11,16 @@
       
       
       
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <link rel="icon" href="../../assets/images/favicon.png">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Service package run - Java Chassis 3 开发指南</title>
+        <title>Java Chassis 3技术解密:契约优先(API First)开发 - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -39,7 +39,7 @@
       
     
     
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
+    <script>__md_scope=new URL("../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
     
       
 
@@ -58,7 +58,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#standalone" class="md-skip">
+        <a href="#java-chassis-3api-first" class="md-skip">
           Skip to content
         </a>
       
@@ -74,7 +74,7 @@
 
 <header class="md-header md-header--shadow" data-md-component="header">
   <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
+    <a href="../../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
       
   
   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
@@ -94,7 +94,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Service package run
+              Java Chassis 3技术解密:契约优先(API First)开发
             
           </span>
         </div>
@@ -169,7 +169,7 @@
 
 <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
   <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
+    <a href="../../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
       
   
   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
@@ -187,7 +187,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
+      <a href="../../index.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -207,7 +207,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
+      <a href="../../start/design.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -227,7 +227,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
+      <a href="../../introduce3.x.x.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -282,7 +282,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
+      <a href="../../start/development-environment.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -303,7 +303,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
+      <a href="../../start/first-sample.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -324,7 +324,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
+      <a href="../application-bmi.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -345,7 +345,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
+      <a href="../application-porter.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -373,7 +373,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
+      <a href="../../build-provider/definition/service-definition.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -428,7 +428,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
+      <a href="../../spring-boot/introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -449,7 +449,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
+      <a href="../../spring-boot/diff-spring-mvc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -512,7 +512,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
+      <a href="../../build-provider/basics.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -533,7 +533,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
+      <a href="../../build-provider/http-mapping.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -554,7 +554,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
+      <a href="../../build-provider/jaxrs.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -575,7 +575,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
+      <a href="../../build-provider/springmvc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -596,7 +596,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
+      <a href="../../build-provider/transparent-rpc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -617,7 +617,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
+      <a href="../../build-provider/use-interface.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -638,7 +638,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
+      <a href="../../build-provider/reactive.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -659,7 +659,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
+      <a href="../../build-provider/context-param.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -680,7 +680,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
+      <a href="../../build-provider/multi-code.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -701,7 +701,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
+      <a href="../../build-provider/swagger-annotation.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -722,7 +722,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
+      <a href="../../build-provider/interface-constraints.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -743,7 +743,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
+      <a href="../../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -764,7 +764,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
+      <a href="../../build-provider/thread-pool.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -785,7 +785,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
+      <a href="../../build-provider/event-listener.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -806,7 +806,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
+      <a href="../../build-provider/parameter-validator.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -827,7 +827,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
+      <a href="../../build-provider/bootup.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -848,7 +848,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
+      <a href="../../build-provider/ipv6-configuration.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -869,7 +869,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
+      <a href="../../build-provider/access-log-configuration.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -932,7 +932,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
+      <a href="../../build-consumer/basics.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -953,7 +953,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
+      <a href="../../build-consumer/using-resttemplate.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -974,7 +974,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
+      <a href="../../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -995,7 +995,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
+      <a href="../../build-consumer/invoker.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1016,7 +1016,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
+      <a href="../../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1079,7 +1079,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
+      <a href="../../references-handlers/intruduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1142,7 +1142,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
+      <a href="../../general-development/metrics.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1163,7 +1163,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
+      <a href="../../general-development/microservice-invocation-chain.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1184,7 +1184,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
+      <a href="../../general-development/customized-tracing.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1205,7 +1205,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
+      <a href="../../general-development/local-develop-test.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1226,7 +1226,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
+      <a href="../../general-development/upload-download.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1247,7 +1247,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
+      <a href="../../general-development/reactive.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1268,7 +1268,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
+      <a href="../../general-development/dnsconfig.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1289,7 +1289,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
+      <a href="../../general-development/proxy.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1310,7 +1310,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
+      <a href="../../general-development/report-framework-version.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1331,7 +1331,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
+      <a href="../../general-development/cross-app-invocation.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1352,7 +1352,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
+      <a href="../../general-development/secret-field.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1373,7 +1373,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
+      <a href="../../general-development/context.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1394,7 +1394,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
+      <a href="../../general-development/produceprocess.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1415,7 +1415,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
+      <a href="../../general-development/CORS.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1436,7 +1436,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
+      <a href="../../general-development/AlarmEvent.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1457,7 +1457,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
+      <a href="../../general-development/shutdown.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1478,7 +1478,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
+      <a href="../../general-development/error-handling.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1499,7 +1499,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
+      <a href="../../general-development/multienvironment.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1520,7 +1520,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
+      <a href="../../general-development/thread-model.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1541,7 +1541,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
+      <a href="../../general-development/config-logs.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1604,7 +1604,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
+      <a href="../../transports/introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1625,7 +1625,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
+      <a href="../../transports/rest-over-vertx.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1646,7 +1646,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
+      <a href="../../transports/http2.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1667,7 +1667,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
+      <a href="../../transports/rest-over-servlet-embedded.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1688,7 +1688,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
+      <a href="../../transports/rest-over-servlet.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1709,7 +1709,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
+      <a href="../../transports/highway-rpc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1772,7 +1772,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
+      <a href="../../registry/introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1793,11 +1793,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
+      <a href="../../registry/service-center.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1814,11 +1814,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
+      <a href="../../registry/nacos.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
   </span>
   
 
@@ -1835,7 +1835,28 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/local-registry.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1856,7 +1877,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
+      <a href="../../registry/distributed.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1919,7 +1940,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="../../config/general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1940,7 +1961,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="../../config/read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,91 +2129,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2129,7 +2150,112 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    负载均衡
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/ratelimit.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    限流
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/router.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    灰度发布
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/fault-injection.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    故障注入
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2192,7 +2318,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
+      <a href="../../edge/open-service.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2213,7 +2339,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
+      <a href="../../edge/by-servicecomb-sdk.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2234,7 +2360,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
+      <a href="../../edge/zuul.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2255,7 +2381,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
+      <a href="../../edge/nginx.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2318,7 +2444,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
+      <a href="../../references-handlers/publickey.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2339,7 +2465,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
+      <a href="../../security/tls.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2360,7 +2486,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
+      <a href="../../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2423,7 +2549,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
+      <a href="../features.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2444,7 +2570,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
+      <a href="../secrets.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2465,7 +2591,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
+      <a href="../upgrading.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2486,7 +2612,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
+      <a href="../compatibility.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2507,7 +2633,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
+      <a href="../performance.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2570,7 +2696,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
+      <a href="../../config-reference/rest-transport-client.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2696,7 +2759,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
+      <a href="../../question-and-answer/faq.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2717,7 +2780,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
+      <a href="../../question-and-answer/question_answer.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2738,7 +2801,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
+      <a href="../../question-and-answer/interface-compatibility.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2776,6 +2839,8 @@
   
   
   
+    
+  
   
     <label class="md-nav__title" for="__toc">
       <span class="md-nav__icon md-icon"></span>
@@ -2784,18 +2849,36 @@
     <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
       
         <li class="md-nav__item">
-  <a href="#standalone" class="md-nav__link">
+  <a href="#_1" class="md-nav__link">
     <span class="md-ellipsis">
-      以standalone模式打包
+      契约优先开发的过程
     </span>
   </a>
   
 </li>
       
         <li class="md-nav__item">
-  <a href="#web" class="md-nav__link">
+  <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      以WEB容器模式打包
+      服务治理
+    </span>
+  </a>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_3" class="md-nav__link">
+    <span class="md-ellipsis">
+      契约优先开发的其他方面
+    </span>
+  </a>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_4" class="md-nav__link">
+    <span class="md-ellipsis">
+      总结
     </span>
   </a>
   
@@ -2816,12 +2899,130 @@
                   
 
 
-  <h1>Service package run</h1>
+<h1 id="java-chassis-3api-first">Java Chassis 3技术解密:契约优先(API First)开发</h1>
+<p>契约优先(API First)开发是指应用程序开发过程中,将API设计作为第一优先级的任务。契约优先开发随着Web Services概念的发展而不断得到重视,特别是微服务架构出现以后,API设计成为影响功能开放、性能优化等问题的关键因素。常见的契约优先开发框架和模式有如下几种:</p>
+<ul>
+<li>Web Services技术可以由设计人员先编写WSDL描述WEB服务内容,然后结合工具生成代码。WSDL可以进行分发,不同的语言都可以结合WSDL生成客户端。</li>
+<li>gRPC技术可以由设计人员先编写IDL描述RPC服务内容,然后结合工具生成代码。gRPC主要解决服务内部之间的调用。</li>
+<li>Spring Boot允许开发人员利用swagger工具,先编写Open API接口,然后通过工具生成RESTFul的服务端代码。</li>
+</ul>
+<p>这些技术都要求设计人员掌握一种语言无关的描述语言(WSDL、IDL、Swagger等),并且通过工具生成具体语言的代码。它们支持的应用场景也有所差异,Web Service适合对外的WEB服务,gRPC适合对内的RPC服务。Java Chassis契约优先开发具备下面的几个改进:</p>
+<ul>
+<li>允许直接使用Java语言定义服务接口,不需要设计者掌握新的描述语言。</li>
+<li>同时定义Web服务接口和内部RPC接口。</li>
+</ul>
+<p>和Spring Boot一样, Java Chassis的语言无关性描述语言仍然是Open API,通过Open API,可以满足跨语言和服务分发的要求。</p>
+<h2 id="_1">契约优先开发的过程</h2>
+<p>契约优先开发可以涵盖设计、开发、测试、部署、运维等软件开发的全流程,通过契约可以实现不同环节的并行工作,从而提高开发效率。 一个简单的契约开发过程如下:</p>
+<p><img alt="" src="api-first-flow.png" /></p>
+<p>下面通过代码简单展示通过Java语义定义契约,并实现提供者和消费者的过程。</p>
+<ul>
+<li>定义服务契约</li>
+</ul>
+<pre><code class="language-java">@RequestMapping(path = &quot;/provider&quot;)
+public interface ProviderService {
+  @GetMapping(&quot;/sayHello&quot;)
+  String sayHello(@RequestParam(&quot;name&quot;) String name);
+}
+</code></pre>
+<ul>
+<li>定义提供者</li>
+</ul>
+<pre><code class="language-java">@RestSchema(schemaId = &quot;ProviderController&quot;, schemaInterface = ProviderService.class)
+public class ProviderController implements ProviderService {
+  @Override
+  public String sayHello(String name) {
+    return &quot;Hello &quot; + name;
+  }
+}
+</code></pre>
+<ul>
+<li>定义消费者</li>
+</ul>
+<pre><code class="language-java">@Configuration
+public class ProviderServiceConfiguration {
+  @Bean
+  public ProviderService providerService() {
+    return Invoker.createProxy(&quot;provider&quot;, &quot;ProviderController&quot;, ProviderService.class);
+  }
+}
+</code></pre>
+<p>使用RPC方式访问提供者。</p>
+<pre><code class="language-java">@RestSchema(schemaId = &quot;ConsumerController&quot;, schemaInterface = ConsumerService.class)
+public class ConsumerController implements ConsumerService {
+  private ProviderService providerService;
 
-<h2 id="standalone">以standalone模式打包</h2>
-<p>一个Standalone的容器,以简单的Main加载Spring启动,因为服务通常不需要Tomcat/JBoss等Web容器的特性,没必要用Web容器去加载服务。微框架提供了standalone部署运行模式,服务容器只是一个简单的Main方法,并加载一个简单的Spring容器,用于暴露服务。</p>
-<h2 id="web">以WEB容器模式打包</h2>
-<p>如果需要将该微服务加载到web容器中启动运行时,需要新建一个servlet工程包装一下,该servlet工程,根据需要,可以不写或写少量的引导代码即可。</p>
+  @Autowired
+  public void setProviderService(ProviderService providerService) {
+    this.providerService = providerService;
+  }
+
+  @Override
+  public String sayHello(String name) {
+    return providerService.sayHello(name);
+  }
+}
+</code></pre>
+<ul>
+<li>服务分发和Web服务访问</li>
+</ul>
+<p>提供者的服务定义会生成如下Open API信息</p>
+<pre><code class="language-yaml">openapi: 3.0.1
+info:
+  title: swagger definition for org.apache.servicecomb.samples.api.ProviderService
+  version: 1.0.0
+servers:
+- url: /provider
+paths:
+  /sayHello:
+    get:
+      operationId: sayHello
+      parameters:
+      - name: name
+        in: query
+        required: true
+        schema:
+          type: string
+      responses:
+        &quot;200&quot;:
+          description: response of 200
+          content:
+            application/json:
+              schema:
+                type: string
+            application/protobuf:
+              schema:
+                type: string
+            text/plain:
+              schema:
+                type: string
+components: {}
+</code></pre>
+<p>这个信息可以用于WEB服务访问,比如上面的信息可以使用</p>
+<pre><code class="language-text">GET /providers/sayHello?name=World
+</code></pre>
+<p>的HTTP请求来访问。 对于其他框架或者语言,也可以使用Open API生成对应的代码来访问。 </p>
+<h2 id="_2">服务治理</h2>
+<p>服务治理被设计为独立于开发过程,结合Open API和服务治理规则描述语言,能够对API进行服务治理配置。</p>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    helloOperation: |
+      matches:
+        - apiPath:
+            prefix: &quot;/provider/sayHello&quot;
+  rateLimiting:
+    ## 限流器每10毫秒允许通过100个请求,如果一个请求超过1000毫秒没有获取到
+    ## 许可,将被拒绝
+    helloOperation: |
+      rate: 100
+      limitRefreshPeriod: 10
+      timeoutDuration: 1000
+</code></pre>
+<p>上述规则对API接口进行限流控制。 </p>
+<h2 id="_3">契约优先开发的其他方面</h2>
+<p>测试方面,可以通过契约生成自动化测试代码,以覆盖API的测试。 部署实施方面,可以将Open API信息导入网关,实现API能力开放、认证鉴权、计费等。 此外,契约还可以用于文档生成、应用监控统计等各个方面。</p>
+<h2 id="_4">总结</h2>
+<p>Java Chassis基于JAVA语言的接口定义,可以同时满足Native语言和平台无关描述语言两种情况的SDK分发,并且不需要使用工具生成额外的运行代码,给外部服务开发和内部服务开发提供了统一一致的开发体验。 契约优先开发是面向服务化/微服务化非常高效的过程方法,Java Chassis给支持契约优先开发提供了很好的工具支持。 </p>
 
 
 
@@ -2868,10 +3069,10 @@
     </div>
     
     
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
+    <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/applied-config.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/applied-config.html
index a36dfcb..d41de6d 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/applied-config.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/applied-config.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2966,7 +3029,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/circuit-breaker.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/circuit-breaker.html
index 949657c..44818ea 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/circuit-breaker.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/circuit-breaker.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2993,7 +3056,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/fail-fast.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/fail-fast.html
index f42b8e0..d9df10f 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/fail-fast.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/fail-fast.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2947,7 +3010,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/interoperability.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/interoperability.html
index 26342e4..124398d 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/interoperability.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/interoperability.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2931,7 +2994,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/load-balancer.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/load-balancer.html
index 7884eaa..ad11f84 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/load-balancer.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/load-balancer.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2897,7 +2960,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/registries.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/registries.html
index cabdc83..721c4ba 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/registries.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/registries.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3085,7 +3148,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/serialization.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/serialization.html
index 8187116..94d83fb 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/serialization.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/serialization.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3171,7 +3234,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/zone-isolation.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/zone-isolation.html
index 389a613..39ab04b 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/secrets/zone-isolation.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/zone-isolation.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2907,7 +2970,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/secrets/zookeeper-scale.png b/content/references/java-chassis/zh_CN/featured-topics/secrets/zookeeper-scale.png
new file mode 100644
index 0000000..2921e26
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/zookeeper-scale.png
Binary files differ
diff --git a/content/references/java-chassis/zh_CN/catalog/build-provider.html b/content/references/java-chassis/zh_CN/featured-topics/secrets/zookeeper.html
similarity index 72%
rename from content/references/java-chassis/zh_CN/catalog/build-provider.html
rename to content/references/java-chassis/zh_CN/featured-topics/secrets/zookeeper.html
index 89471e6..54e7a09 100644
--- a/content/references/java-chassis/zh_CN/catalog/build-provider.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/secrets/zookeeper.html
@@ -11,16 +11,16 @@
       
       
       
-      <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <link rel="icon" href="../../assets/images/favicon.png">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Build provider - Java Chassis 3 开发指南</title>
+        <title>Java Chassis 3技术解密:ZooKeeper注册和配置中心 - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -39,7 +39,7 @@
       
     
     
-    <script>__md_scope=new URL("..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
+    <script>__md_scope=new URL("../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
     
       
 
@@ -58,7 +58,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#_1" class="md-skip">
+        <a href="#java-chassis-3zookeeper" class="md-skip">
           Skip to content
         </a>
       
@@ -74,7 +74,7 @@
 
 <header class="md-header md-header--shadow" data-md-component="header">
   <nav class="md-header__inner md-grid" aria-label="Header">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
+    <a href="../../index.html" title="Java Chassis 3 开发指南" class="md-header__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
       
   
   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
@@ -94,7 +94,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Build provider
+              Java Chassis 3技术解密:ZooKeeper注册和配置中心
             
           </span>
         </div>
@@ -169,7 +169,7 @@
 
 <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
   <label class="md-nav__title" for="__drawer">
-    <a href="../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
+    <a href="../../index.html" title="Java Chassis 3 开发指南" class="md-nav__button md-logo" aria-label="Java Chassis 3 开发指南" data-md-component="logo">
       
   
   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
@@ -187,7 +187,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../index.html" class="md-nav__link">
+      <a href="../../index.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -207,7 +207,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../start/design.html" class="md-nav__link">
+      <a href="../../start/design.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -227,7 +227,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../introduce3.x.x.html" class="md-nav__link">
+      <a href="../../introduce3.x.x.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -282,7 +282,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../start/development-environment.html" class="md-nav__link">
+      <a href="../../start/development-environment.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -303,7 +303,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../start/first-sample.html" class="md-nav__link">
+      <a href="../../start/first-sample.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -324,7 +324,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/application-bmi.html" class="md-nav__link">
+      <a href="../application-bmi.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -345,7 +345,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/application-porter.html" class="md-nav__link">
+      <a href="../application-porter.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -373,7 +373,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/definition/service-definition.html" class="md-nav__link">
+      <a href="../../build-provider/definition/service-definition.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -428,7 +428,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../spring-boot/introduction.html" class="md-nav__link">
+      <a href="../../spring-boot/introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -449,7 +449,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../spring-boot/diff-spring-mvc.html" class="md-nav__link">
+      <a href="../../spring-boot/diff-spring-mvc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -512,7 +512,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/basics.html" class="md-nav__link">
+      <a href="../../build-provider/basics.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -533,7 +533,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/http-mapping.html" class="md-nav__link">
+      <a href="../../build-provider/http-mapping.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -554,7 +554,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/jaxrs.html" class="md-nav__link">
+      <a href="../../build-provider/jaxrs.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -575,7 +575,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/springmvc.html" class="md-nav__link">
+      <a href="../../build-provider/springmvc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -596,7 +596,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/transparent-rpc.html" class="md-nav__link">
+      <a href="../../build-provider/transparent-rpc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -617,7 +617,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/use-interface.html" class="md-nav__link">
+      <a href="../../build-provider/use-interface.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -638,7 +638,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/reactive.html" class="md-nav__link">
+      <a href="../../build-provider/reactive.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -659,7 +659,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/context-param.html" class="md-nav__link">
+      <a href="../../build-provider/context-param.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -680,7 +680,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/multi-code.html" class="md-nav__link">
+      <a href="../../build-provider/multi-code.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -701,7 +701,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/swagger-annotation.html" class="md-nav__link">
+      <a href="../../build-provider/swagger-annotation.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -722,7 +722,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/interface-constraints.html" class="md-nav__link">
+      <a href="../../build-provider/interface-constraints.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -743,7 +743,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
+      <a href="../../build-provider/listen-address-and-publish-address.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -764,7 +764,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/thread-pool.html" class="md-nav__link">
+      <a href="../../build-provider/thread-pool.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -785,7 +785,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/event-listener.html" class="md-nav__link">
+      <a href="../../build-provider/event-listener.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -806,7 +806,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/parameter-validator.html" class="md-nav__link">
+      <a href="../../build-provider/parameter-validator.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -827,7 +827,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/bootup.html" class="md-nav__link">
+      <a href="../../build-provider/bootup.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -848,7 +848,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/ipv6-configuration.html" class="md-nav__link">
+      <a href="../../build-provider/ipv6-configuration.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -869,7 +869,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-provider/access-log-configuration.html" class="md-nav__link">
+      <a href="../../build-provider/access-log-configuration.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -932,7 +932,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/basics.html" class="md-nav__link">
+      <a href="../../build-consumer/basics.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -953,7 +953,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/using-resttemplate.html" class="md-nav__link">
+      <a href="../../build-consumer/using-resttemplate.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -974,7 +974,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
+      <a href="../../build-consumer/develop-consumer-using-rpc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -995,7 +995,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/invoker.html" class="md-nav__link">
+      <a href="../../build-consumer/invoker.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1016,7 +1016,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
+      <a href="../../build-consumer/3rd-party-service-invoke.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1079,7 +1079,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/intruduction.html" class="md-nav__link">
+      <a href="../../references-handlers/intruduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1142,7 +1142,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/metrics.html" class="md-nav__link">
+      <a href="../../general-development/metrics.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1163,7 +1163,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/microservice-invocation-chain.html" class="md-nav__link">
+      <a href="../../general-development/microservice-invocation-chain.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1184,7 +1184,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/customized-tracing.html" class="md-nav__link">
+      <a href="../../general-development/customized-tracing.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1205,7 +1205,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/local-develop-test.html" class="md-nav__link">
+      <a href="../../general-development/local-develop-test.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1226,7 +1226,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/upload-download.html" class="md-nav__link">
+      <a href="../../general-development/upload-download.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1247,7 +1247,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/reactive.html" class="md-nav__link">
+      <a href="../../general-development/reactive.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1268,7 +1268,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/dnsconfig.html" class="md-nav__link">
+      <a href="../../general-development/dnsconfig.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1289,7 +1289,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/proxy.html" class="md-nav__link">
+      <a href="../../general-development/proxy.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1310,7 +1310,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/report-framework-version.html" class="md-nav__link">
+      <a href="../../general-development/report-framework-version.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1331,7 +1331,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/cross-app-invocation.html" class="md-nav__link">
+      <a href="../../general-development/cross-app-invocation.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1352,7 +1352,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/secret-field.html" class="md-nav__link">
+      <a href="../../general-development/secret-field.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1373,7 +1373,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/context.html" class="md-nav__link">
+      <a href="../../general-development/context.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1394,7 +1394,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/produceprocess.html" class="md-nav__link">
+      <a href="../../general-development/produceprocess.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1415,7 +1415,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/CORS.html" class="md-nav__link">
+      <a href="../../general-development/CORS.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1436,7 +1436,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/AlarmEvent.html" class="md-nav__link">
+      <a href="../../general-development/AlarmEvent.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1457,7 +1457,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/shutdown.html" class="md-nav__link">
+      <a href="../../general-development/shutdown.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1478,7 +1478,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/error-handling.html" class="md-nav__link">
+      <a href="../../general-development/error-handling.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1499,7 +1499,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/multienvironment.html" class="md-nav__link">
+      <a href="../../general-development/multienvironment.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1520,7 +1520,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/thread-model.html" class="md-nav__link">
+      <a href="../../general-development/thread-model.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1541,7 +1541,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../general-development/config-logs.html" class="md-nav__link">
+      <a href="../../general-development/config-logs.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1604,7 +1604,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/introduction.html" class="md-nav__link">
+      <a href="../../transports/introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1625,7 +1625,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/rest-over-vertx.html" class="md-nav__link">
+      <a href="../../transports/rest-over-vertx.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1646,7 +1646,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/http2.html" class="md-nav__link">
+      <a href="../../transports/http2.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1667,7 +1667,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet-embedded.html" class="md-nav__link">
+      <a href="../../transports/rest-over-servlet-embedded.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1688,7 +1688,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/rest-over-servlet.html" class="md-nav__link">
+      <a href="../../transports/rest-over-servlet.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1709,7 +1709,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../transports/highway-rpc.html" class="md-nav__link">
+      <a href="../../transports/highway-rpc.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1772,7 +1772,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
+      <a href="../../registry/introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1793,11 +1793,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
+      <a href="../../registry/service-center.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1814,11 +1814,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
+      <a href="../../registry/nacos.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
   </span>
   
 
@@ -1835,7 +1835,28 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/local-registry.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1856,7 +1877,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
+      <a href="../../registry/distributed.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1919,7 +1940,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/general-config.html" class="md-nav__link">
+      <a href="../../config/general-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1940,7 +1961,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/read-config.html" class="md-nav__link">
+      <a href="../../config/read-config.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,91 +2129,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/loadbalance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    负载均衡
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/ratelimit.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    限流
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/router.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    灰度发布
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/fault-injection.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    故障注入
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2129,7 +2150,112 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/fail-retry.html" class="md-nav__link">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    负载均衡
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/ratelimit.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    限流
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/router.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    灰度发布
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/fault-injection.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    故障注入
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2192,7 +2318,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/open-service.html" class="md-nav__link">
+      <a href="../../edge/open-service.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2213,7 +2339,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/by-servicecomb-sdk.html" class="md-nav__link">
+      <a href="../../edge/by-servicecomb-sdk.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2234,7 +2360,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/zuul.html" class="md-nav__link">
+      <a href="../../edge/zuul.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2255,7 +2381,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../edge/nginx.html" class="md-nav__link">
+      <a href="../../edge/nginx.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2318,7 +2444,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/publickey.html" class="md-nav__link">
+      <a href="../../references-handlers/publickey.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2339,7 +2465,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../security/tls.html" class="md-nav__link">
+      <a href="../../security/tls.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2360,7 +2486,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
+      <a href="../../security/shi-yong-rsa-ren-zheng.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2423,7 +2549,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/features.html" class="md-nav__link">
+      <a href="../features.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2444,7 +2570,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/secrets.html" class="md-nav__link">
+      <a href="../secrets.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2465,7 +2591,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/upgrading.html" class="md-nav__link">
+      <a href="../upgrading.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2486,7 +2612,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/compatibility.html" class="md-nav__link">
+      <a href="../compatibility.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2507,7 +2633,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../featured-topics/performance.html" class="md-nav__link">
+      <a href="../performance.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2570,7 +2696,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../config-reference/rest-transport-client.html" class="md-nav__link">
+      <a href="../../config-reference/rest-transport-client.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2696,7 +2759,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../question-and-answer/faq.html" class="md-nav__link">
+      <a href="../../question-and-answer/faq.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2717,7 +2780,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../question-and-answer/question_answer.html" class="md-nav__link">
+      <a href="../../question-and-answer/question_answer.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2738,7 +2801,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../question-and-answer/interface-compatibility.html" class="md-nav__link">
+      <a href="../../question-and-answer/interface-compatibility.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -2776,6 +2839,8 @@
   
   
   
+    
+  
   
     <label class="md-nav__title" for="__toc">
       <span class="md-nav__icon md-icon"></span>
@@ -2786,7 +2851,7 @@
         <li class="md-nav__item">
   <a href="#_1" class="md-nav__link">
     <span class="md-ellipsis">
-      服务定义
+      注册和配置基本原理
     </span>
   </a>
   
@@ -2795,79 +2860,49 @@
         <li class="md-nav__item">
   <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      定义服务契约
+      可靠性设计
     </span>
   </a>
   
 </li>
       
         <li class="md-nav__item">
+  <a href="#zookeeper" class="md-nav__link">
+    <span class="md-ellipsis">
+      关于 Zookeeper 作为注册中心的深入讨论
+    </span>
+  </a>
+  
+    <nav class="md-nav" aria-label="关于 Zookeeper 作为注册中心的深入讨论">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
   <a href="#_3" class="md-nav__link">
     <span class="md-ellipsis">
-      使用隐式契约
+      关于网络分区隔离
     </span>
   </a>
   
 </li>
-      
-        <li class="md-nav__item">
-  <a href="#swagger" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用 Swagger 注解
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#springmvc" class="md-nav__link">
-    <span class="md-ellipsis">
-      用SpringMVC 开发微服务
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#jax-rs" class="md-nav__link">
-    <span class="md-ellipsis">
-      用JAX-RS开发微服务
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#rpc" class="md-nav__link">
-    <span class="md-ellipsis">
-      用透明RPC开发微服务
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
+        
+          <li class="md-nav__item">
   <a href="#_4" class="md-nav__link">
     <span class="md-ellipsis">
-      接口定义和数据类型
+      关于性能
     </span>
   </a>
   
 </li>
+        
+      </ul>
+    </nav>
+  
+</li>
       
         <li class="md-nav__item">
   <a href="#_5" class="md-nav__link">
     <span class="md-ellipsis">
-      服务监听地址和发布地址
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_6" class="md-nav__link">
-    <span class="md-ellipsis">
-      服务配置
+      总结
     </span>
   </a>
   
@@ -2888,33 +2923,67 @@
                   
 
 
-  <h1>Build provider</h1>
-
-<h2 id="_1"><a href="/build-provider/definition/service-definition.html">服务定义</a></h2>
-<p>• 服务定义信息是微服务的身份标识,它定义了服务从属于哪个应用,以及名字和版本。服务定义信息中也可以有扩展信息,用于定义服务的属性元数据。</p>
-<h2 id="_2"><a href="/build-provider/define-contract.html">定义服务契约</a></h2>
-<p>• 服务契约,指基于OpenAPI规范的微服务接口契约,是服务端与消费端对于接口的定义。java chassis提供了两种方式定义契约:code first和contract first。</p>
-<h2 id="_3"><a href="/build-provider/code-first.html">使用隐式契约</a></h2>
-<p>• 降级策略是当服务请求异常时,微服务所采用的异常处理策略。</p>
-<h2 id="swagger"><a href="/build-provider/swagger-annotation.html">使用 Swagger 注解</a></h2>
-<p>• Swagger提供了一套注解用于描述接口契约,用户使用注解,可以在代码中增加对于契约的描述信息。ServiceComb支持其中的部分注解。</p>
-<h2 id="springmvc"><a href="/build-provider/springmvc.html">用SpringMVC 开发微服务</a></h2>
-<p>• ServiceComb支持SpringMVC注解,允许使用SpringMVC风格开发微服务。建议参照着项目 SpringMVC进行详细阅读。</p>
-<h2 id="jax-rs"><a href="/build-provider/jaxrs.html">用JAX-RS开发微服务</a></h2>
-<p>• ServiceComb支持开发者使用JAX-RS注解,使用JAX-RS模式开发服务。</p>
-<h2 id="rpc"><a href="/build-provider/transparent-rpc.html">用透明RPC开发微服务</a></h2>
-<p>• 透明RPC开发模式是一种基于接口和接口实现的开发模式,服务的开发者不需要使用Spring MVC和JAX-RS注解。</p>
-<h2 id="_4"><a href="/build-provider/swagger-annotation.html">接口定义和数据类型</a></h2>
-<p>• ServiceComb-Java-Chassis建议接口定义遵循一个简单的原则:接口定义即接口使用说明,不用通过查看代码实现,就能识别如何调用这个接口。可以看出,这个原则站在使用者这边,以更容易被使用作为参考。ServiceComb会根据接口定义生成接口契约,符合这个原则的接口,生成的契约也是用户容易阅读的。</p>
-<h2 id="_5"><a href="/build-provider/listen-address-and-publish-address.html">服务监听地址和发布地址</a></h2>
-<p>•在JavaChassis中,服务的监听地址和发布地址是两个独立的概念,可以独立配置:</p>
-<pre><code>监听地址:指微服务实例启动时监听的地址。该配置项决定了可以通过哪些IP访问此服务。
-发布地址:指微服务实例注册到服务中心的地址。其他的微服务实例会通过服务中心获取此实例的信息,根据发布地址访问此服务实例,所以该配置项决定了其他服务实际上会使用哪个IP访问此服务。
+<h1 id="java-chassis-3zookeeper">Java Chassis 3技术解密:ZooKeeper注册和配置中心</h1>
+<p><a href="https://zookeeper.apache.org/">ZooKeeper</a> 是一个高可用的分布式协调系统,它也被广泛用于服务注册发现、服务配置等场景。 </p>
+<p>Java Chassis 3 使用 <a href="https://curator.apache.org/docs/service-discovery">Curator Service Discovery Extensions</a> 实现注册发现。 </p>
+<h2 id="_1">注册和配置基本原理</h2>
+<p>使用ZooKeeper实现注册配置的原理比较简单,只需要将实例信息和配置信息作为合适的 key-value 对写入。注册场景使用下面的结构:</p>
+<pre><code>servicecomb:
+  registry:
+    ${environment}
+      ${application}:
+        ${service}:
+          ${instance-id}: 详细的注册内容
 </code></pre>
-<h2 id="_6"><a href="/build-provider/service-configuration.html">服务配置</a></h2>
-<p>• <a href="/build-provider/configuration/lb-strategy.html">负载均衡策略</a><br />
-• <a href="/build-provider/configuration/ratelimite-strategy.html">限流策略</a><br />
-• <a href="/build-provider/configuration/parameter-validator.html">参数教研</a>  </p>
+<p>配置场景使用下面的结构:</p>
+<pre><code>servicecomb:
+  config:
+    environment:  
+      ${environment}: 详细的配置内容
+    application:
+      ${environment}:
+        ${application}: 详细的配置内容
+    service:
+      ${environment}:
+        ${application}:
+          ${service}: 详细的配置内容
+    version:
+      ${environment}:
+        ${application}:
+          ${service}:
+            ${version}: 详细的配置内容
+    tag:
+      ${environment}:
+        ${application}:
+          ${service}:
+            ${tag}: 详细的配置内容
+</code></pre>
+<h2 id="_2">可靠性设计</h2>
+<p>ZooKeeper自身被设计为一个高可靠的中间件,Java Chassis 3进一步增强了其作为注册中心的可靠性,即使在ZooKeeper自身不可用的情况下,仍然不影响服务之间的调用,详细了解这个机制,可以参考<a href="zone-isolation.html">Java Chassis 3技术解密:注册中心分区隔离</a>。 </p>
+<p>为了验证这部分可靠性,可以设计一个简单的测试场景:</p>
+<pre><code>测试工具 -&gt; edge service -&gt; consumer -&gt; provider
+</code></pre>
+<p>启动 edge service、 consumer 和 provider, 通过测试工具请求接口。 然后停止 ZooKeeper, 并使用测试工具持续调用,可以发现这个过程中没有请求失败。 启动 Zookeeper, 服务注册信息恢复,这个过程中仍然没有请求失败。 </p>
+<p>当然,在ZooKeeper不可用的过程中,无法注册新的实例。</p>
+<h2 id="zookeeper">关于 Zookeeper 作为注册中心的深入讨论</h2>
+<p>有观点认为, ZooKeeper不适合作为注册中心,一般的,CP系统都不适合作为注册中心,而AP作为注册中心才是最佳选择。 个人觉得这样的观点是片面而且非常不恰当的。 </p>
+<p>从<a href="https://blog.csdn.net/looook/article/details/109168239?spm=1001.2014.3001.5501">ZooKeeper 并不适合做注册中心</a> 和 <a href="https://blog.csdn.net/u012921921/article/details/106521181/?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1--blog-109168239.235^v43^pc_blog_bottom_relevance_base3&amp;spm=1001.2101.3001.4242.">为什么我们要把服务注册发现改为阿里巴巴的Nacos而不用 ZooKeeper?</a> 摘取了几个核心观点(后面简称“观点文章”):</p>
+<ul>
+<li>网络分区隔离情况下,ZooKeeper会导致服务间调用错误,也会导致新的服务无法注册,不适合作为注册中心。</li>
+<li>ZooKeeper所有写操作都在Leader进行,无法支持大规模微服务实例,不适合作为注册中心。</li>
+</ul>
+<p>下面简单讨论下这两个观点。</p>
+<h3 id="_3">关于网络分区隔离</h3>
+<p>网络分区隔离的场景比较多,在<a href="zone-isolation.html">Java Chassis 3技术解密:注册中心分区隔离</a>描述的场景下,Java Chassis能够保证服务之间的调用不受影响。在观点文章提到的场景中,Java Chassis也能够保证服务之间的调用不受影响,但是服务无法注册。网络分区隔离场景下,核心需要讨论的问题变成是否需要允许服务进行注册/扩容?尽管可能存在争议,但我们的观点是系统出现部分故障的情况下,系统不应该扩容,而是尽可能维持处理能力不变,这样会使得故障恢复更加可控,从而减少系统恢复时间。</p>
+<p>观点文章提到的场景相对于实际部署场景还过于简单,我们把它扩展到实际场景:</p>
+<p><img alt="" src="zookeeper-scale.png" /></p>
+<p>实际场景除了保障单AZ内的请求闭环,还需要保证不同AZ的实例能够分担流量。当出现AZ网络隔离,由于每个AZ实例感知到的总的实例数减少,会触发弹性扩缩容,从而需要注册中心支持新实例注册。 但是本质上,这个场景系统的处理能力并没有降低,弹性扩缩容将会是一个错误的行为,这个错误的行为,会给系统资源的使用和故障恢复带来更多的不可预测因素。</p>
+<h3 id="_4">关于性能</h3>
+<p>ZooKeeper只有Leader可以写入,通过扩容Learner(Follower/Observer)提升读取性能。注册配置中心的场景实际上是一个读要求高,写要求不高的场景, ZooKeeper很好的满足了写不频繁,读很频繁的要求。 最复杂的业务系统,ZooKeeper管理的实例个数在10000以下,即使这些系统被设计为允许动态弹性扩缩容。超大规模的业务系统,一般微服务网关来提升系统韧性,并防止未知故障带来的爆炸半径扩大。 在前期<a href="interoperability.html">Java Chassis 3技术解密:与Spring Cloud的互操作</a>分享了架构韧性的一些内容。</p>
+<p><img alt="" src="serialization-arch.png" /></p>
+<p>因此,支持超大规模服务注册的场景,不具备大的现实意义。 关于超大规模实例管理的问题,可能更多来自于不恰当的架构设计或者微服务发现机制(比如早期Dubbo版本使用的基于接口的服务发现,实例个数和接口数量成正比)。</p>
+<h2 id="_5">总结</h2>
+<p>Java Chassis 3使用ZooKeeper作为注册中心是非常好的选择,ZooKeeper可以在应用系统中同时扮演注册、配置和选举等功能,能够极大的简化应用部署和服务依赖。CP一致性也使得常见故障场景下应用程序的行为具备更好的预测性。大规模系统可以采用微服务网关来提升系统韧性,降低系统爆炸半径。</p>
 
 
 
@@ -2961,10 +3030,10 @@
     </div>
     
     
-    <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
+    <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/upgrading.html b/content/references/java-chassis/zh_CN/featured-topics/upgrading.html
index 76c994e..1799377 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/upgrading.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/upgrading.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2861,7 +2924,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/featured-topics/upgrading/2_8_0T3_0_0.html b/content/references/java-chassis/zh_CN/featured-topics/upgrading/2_8_0T3_0_0.html
index 812fefc..785334d 100644
--- a/content/references/java-chassis/zh_CN/featured-topics/upgrading/2_8_0T3_0_0.html
+++ b/content/references/java-chassis/zh_CN/featured-topics/upgrading/2_8_0T3_0_0.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2947,7 +3010,7 @@
         <li class="md-nav__item">
   <a href="#springmvc" class="md-nav__link">
     <span class="md-ellipsis">
-      SpringMVC 变更项
+      SpringMVC 变更项
     </span>
   </a>
   
@@ -3220,7 +3283,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/AlarmEvent.html b/content/references/java-chassis/zh_CN/general-development/AlarmEvent.html
index 6ff41f4..b8f0c3e 100644
--- a/content/references/java-chassis/zh_CN/general-development/AlarmEvent.html
+++ b/content/references/java-chassis/zh_CN/general-development/AlarmEvent.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3090,7 +3153,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/CORS.html b/content/references/java-chassis/zh_CN/general-development/CORS.html
index bb6f5a4..41dad65 100644
--- a/content/references/java-chassis/zh_CN/general-development/CORS.html
+++ b/content/references/java-chassis/zh_CN/general-development/CORS.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1879,7 +1879,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1900,7 +1900,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2043,11 +2064,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2106,6 +2211,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2190,27 +2337,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2666,69 +2792,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3072,7 +3135,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/QPS.html b/content/references/java-chassis/zh_CN/general-development/QPS.html
index b4a6268..c249a5b 100644
--- a/content/references/java-chassis/zh_CN/general-development/QPS.html
+++ b/content/references/java-chassis/zh_CN/general-development/QPS.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/config-logs.html b/content/references/java-chassis/zh_CN/general-development/config-logs.html
index 0f11e88..2c67b81 100644
--- a/content/references/java-chassis/zh_CN/general-development/config-logs.html
+++ b/content/references/java-chassis/zh_CN/general-development/config-logs.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1852,7 +1852,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1873,7 +1873,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2016,11 +2037,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2079,6 +2184,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2163,27 +2310,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2639,69 +2765,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2963,7 +3026,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/context.html b/content/references/java-chassis/zh_CN/general-development/context.html
index 82b3fde..3c1e13c 100644
--- a/content/references/java-chassis/zh_CN/general-development/context.html
+++ b/content/references/java-chassis/zh_CN/general-development/context.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3093,7 +3156,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/cross-app-invocation.html b/content/references/java-chassis/zh_CN/general-development/cross-app-invocation.html
index 7dbb708..f11aec8 100644
--- a/content/references/java-chassis/zh_CN/general-development/cross-app-invocation.html
+++ b/content/references/java-chassis/zh_CN/general-development/cross-app-invocation.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1879,7 +1879,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1900,7 +1900,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2043,11 +2064,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2106,6 +2211,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2190,27 +2337,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2666,69 +2792,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3007,7 +3070,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/customized-tracing.html b/content/references/java-chassis/zh_CN/general-development/customized-tracing.html
index a52c22f..39b1b73 100644
--- a/content/references/java-chassis/zh_CN/general-development/customized-tracing.html
+++ b/content/references/java-chassis/zh_CN/general-development/customized-tracing.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1926,7 +1926,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1947,7 +1947,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2090,11 +2111,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2153,6 +2258,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2237,27 +2384,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2713,69 +2839,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3147,7 +3210,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa.html b/content/references/java-chassis/zh_CN/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa.html
index 29841c8..bba0491 100644
--- a/content/references/java-chassis/zh_CN/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa.html
+++ b/content/references/java-chassis/zh_CN/general-development/ding-zhi-xu-lie-hua-he-fan-xu-lie-hua-fang-fa.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/dnsconfig.html b/content/references/java-chassis/zh_CN/general-development/dnsconfig.html
index 9046513..a6eb321 100644
--- a/content/references/java-chassis/zh_CN/general-development/dnsconfig.html
+++ b/content/references/java-chassis/zh_CN/general-development/dnsconfig.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1866,7 +1866,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1887,7 +1887,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2030,11 +2051,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2093,6 +2198,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2177,27 +2324,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2653,69 +2779,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3003,7 +3066,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/error-handling.html b/content/references/java-chassis/zh_CN/general-development/error-handling.html
index 6580030..b022fa2 100644
--- a/content/references/java-chassis/zh_CN/general-development/error-handling.html
+++ b/content/references/java-chassis/zh_CN/general-development/error-handling.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3103,7 +3166,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/file-download.html b/content/references/java-chassis/zh_CN/general-development/file-download.html
index ae103fe..060a977 100644
--- a/content/references/java-chassis/zh_CN/general-development/file-download.html
+++ b/content/references/java-chassis/zh_CN/general-development/file-download.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3035,7 +3098,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/file-upload.html b/content/references/java-chassis/zh_CN/general-development/file-upload.html
index f1314cb..d70a38c 100644
--- a/content/references/java-chassis/zh_CN/general-development/file-upload.html
+++ b/content/references/java-chassis/zh_CN/general-development/file-upload.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3087,7 +3150,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/gated-launch.html b/content/references/java-chassis/zh_CN/general-development/gated-launch.html
index 90e0a8b..0b54387 100644
--- a/content/references/java-chassis/zh_CN/general-development/gated-launch.html
+++ b/content/references/java-chassis/zh_CN/general-development/gated-launch.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/kuang-jia-shang-bao-ban-ben-hao.html b/content/references/java-chassis/zh_CN/general-development/kuang-jia-shang-bao-ban-ben-hao.html
index a2af17e..176bbf5 100644
--- a/content/references/java-chassis/zh_CN/general-development/kuang-jia-shang-bao-ban-ben-hao.html
+++ b/content/references/java-chassis/zh_CN/general-development/kuang-jia-shang-bao-ban-ben-hao.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/local-develop-test.html b/content/references/java-chassis/zh_CN/general-development/local-develop-test.html
index b9139ba..3e3d2ff 100644
--- a/content/references/java-chassis/zh_CN/general-development/local-develop-test.html
+++ b/content/references/java-chassis/zh_CN/general-development/local-develop-test.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1890,7 +1890,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1911,7 +1911,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2054,11 +2075,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2117,6 +2222,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2201,27 +2348,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2677,69 +2803,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3114,7 +3177,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/metrics.html b/content/references/java-chassis/zh_CN/general-development/metrics.html
index c412547..9035315 100644
--- a/content/references/java-chassis/zh_CN/general-development/metrics.html
+++ b/content/references/java-chassis/zh_CN/general-development/metrics.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1888,7 +1888,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1909,7 +1909,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2052,11 +2073,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2115,6 +2220,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2199,27 +2346,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2675,69 +2801,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3771,7 +3834,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/microservice-invocation-chain.html b/content/references/java-chassis/zh_CN/general-development/microservice-invocation-chain.html
index 68cbd26..0bc57aa 100644
--- a/content/references/java-chassis/zh_CN/general-development/microservice-invocation-chain.html
+++ b/content/references/java-chassis/zh_CN/general-development/microservice-invocation-chain.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1890,7 +1890,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1911,7 +1911,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2054,11 +2075,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2117,6 +2222,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2201,27 +2348,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2677,69 +2803,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3033,7 +3096,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/multienvironment.html b/content/references/java-chassis/zh_CN/general-development/multienvironment.html
index 5aacfab..a2ab8cb 100644
--- a/content/references/java-chassis/zh_CN/general-development/multienvironment.html
+++ b/content/references/java-chassis/zh_CN/general-development/multienvironment.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2951,7 +3014,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/produceprocess.html b/content/references/java-chassis/zh_CN/general-development/produceprocess.html
index 2dcf1bf..698e5c8 100644
--- a/content/references/java-chassis/zh_CN/general-development/produceprocess.html
+++ b/content/references/java-chassis/zh_CN/general-development/produceprocess.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3003,7 +3066,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/proxy.html b/content/references/java-chassis/zh_CN/general-development/proxy.html
index 766b864..3ce4ae8 100644
--- a/content/references/java-chassis/zh_CN/general-development/proxy.html
+++ b/content/references/java-chassis/zh_CN/general-development/proxy.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2869,7 +2932,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/reactive.html b/content/references/java-chassis/zh_CN/general-development/reactive.html
index 46c5825..f9c59fe 100644
--- a/content/references/java-chassis/zh_CN/general-development/reactive.html
+++ b/content/references/java-chassis/zh_CN/general-development/reactive.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1893,7 +1893,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1914,7 +1914,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2057,11 +2078,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2120,6 +2225,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2204,27 +2351,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2680,69 +2806,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3153,7 +3216,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/report-framework-version.html b/content/references/java-chassis/zh_CN/general-development/report-framework-version.html
index 374c246..d3d7a3e 100644
--- a/content/references/java-chassis/zh_CN/general-development/report-framework-version.html
+++ b/content/references/java-chassis/zh_CN/general-development/report-framework-version.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1857,7 +1857,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1878,7 +1878,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2021,11 +2042,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2084,6 +2189,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2168,27 +2315,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2644,69 +2770,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2969,7 +3032,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/secret-field.html b/content/references/java-chassis/zh_CN/general-development/secret-field.html
index 35ec337..0d1f754 100644
--- a/content/references/java-chassis/zh_CN/general-development/secret-field.html
+++ b/content/references/java-chassis/zh_CN/general-development/secret-field.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1866,7 +1866,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1887,7 +1887,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2030,11 +2051,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2093,6 +2198,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2177,27 +2324,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2653,69 +2779,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3012,7 +3075,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/service-information-printer.html b/content/references/java-chassis/zh_CN/general-development/service-information-printer.html
index eda4242..5c2772d 100644
--- a/content/references/java-chassis/zh_CN/general-development/service-information-printer.html
+++ b/content/references/java-chassis/zh_CN/general-development/service-information-printer.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2969,7 +3032,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/shutdown.html b/content/references/java-chassis/zh_CN/general-development/shutdown.html
index cd95411..77b2f7a 100644
--- a/content/references/java-chassis/zh_CN/general-development/shutdown.html
+++ b/content/references/java-chassis/zh_CN/general-development/shutdown.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2974,7 +3037,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/thread-model.html b/content/references/java-chassis/zh_CN/general-development/thread-model.html
index f99c391..60fdd73 100644
--- a/content/references/java-chassis/zh_CN/general-development/thread-model.html
+++ b/content/references/java-chassis/zh_CN/general-development/thread-model.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2962,7 +3025,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/types.html b/content/references/java-chassis/zh_CN/general-development/types.html
index ca89fd8..9959118 100644
--- a/content/references/java-chassis/zh_CN/general-development/types.html
+++ b/content/references/java-chassis/zh_CN/general-development/types.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/upload-download.html b/content/references/java-chassis/zh_CN/general-development/upload-download.html
index 453821f..9e596e1 100644
--- a/content/references/java-chassis/zh_CN/general-development/upload-download.html
+++ b/content/references/java-chassis/zh_CN/general-development/upload-download.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2877,7 +2940,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/general-development/using-inspector.html b/content/references/java-chassis/zh_CN/general-development/using-inspector.html
index aec8390..ed75f78 100644
--- a/content/references/java-chassis/zh_CN/general-development/using-inspector.html
+++ b/content/references/java-chassis/zh_CN/general-development/using-inspector.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2914,7 +2977,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/index.html b/content/references/java-chassis/zh_CN/index.html
index b9498f3..51b1a00 100644
--- a/content/references/java-chassis/zh_CN/index.html
+++ b/content/references/java-chassis/zh_CN/index.html
@@ -14,7 +14,7 @@
       
       
       <link rel="icon" href="assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -22,7 +22,7 @@
       
     
     
-      <link rel="stylesheet" href="assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1857,7 +1857,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1878,7 +1878,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2021,11 +2042,95 @@
   
   
     <li class="md-nav__item">
-      <a href="config/config-service.html" class="md-nav__link">
+      <a href="config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2084,6 +2189,48 @@
   
   
     <li class="md-nav__item">
+      <a href="references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2168,27 +2315,6 @@
   
   
     <li class="md-nav__item">
-      <a href="references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2644,69 +2770,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3082,7 +3145,7 @@
     <script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/introduce3.x.x.html b/content/references/java-chassis/zh_CN/introduce3.x.x.html
index 898886e..76d3fff 100644
--- a/content/references/java-chassis/zh_CN/introduce3.x.x.html
+++ b/content/references/java-chassis/zh_CN/introduce3.x.x.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1811,7 +1811,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1832,7 +1832,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1975,11 +1996,95 @@
   
   
     <li class="md-nav__item">
-      <a href="config/config-service.html" class="md-nav__link">
+      <a href="config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2038,6 +2143,48 @@
   
   
     <li class="md-nav__item">
+      <a href="references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2122,27 +2269,6 @@
   
   
     <li class="md-nav__item">
-      <a href="references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2598,69 +2724,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2866,7 +2929,7 @@
     <script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/question-and-answer/faq.html b/content/references/java-chassis/zh_CN/question-and-answer/faq.html
index 9a8a924..8c2ae9c 100644
--- a/content/references/java-chassis/zh_CN/question-and-answer/faq.html
+++ b/content/references/java-chassis/zh_CN/question-and-answer/faq.html
@@ -9,14 +9,14 @@
       
       
       
-        <link rel="prev" href="../config-reference/kie-client.html">
+        <link rel="prev" href="../config-reference/rest-transport-client.html">
       
       
         <link rel="next" href="question_answer.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2588,69 +2714,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3213,7 +3276,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/question-and-answer/interface-compatibility.html b/content/references/java-chassis/zh_CN/question-and-answer/interface-compatibility.html
index fcb1816..5851844 100644
--- a/content/references/java-chassis/zh_CN/question-and-answer/interface-compatibility.html
+++ b/content/references/java-chassis/zh_CN/question-and-answer/interface-compatibility.html
@@ -14,7 +14,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -22,7 +22,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1799,7 +1799,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1820,7 +1820,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1963,11 +1984,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2026,6 +2131,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2110,27 +2257,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2586,69 +2712,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3068,7 +3131,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/question-and-answer/question_answer.html b/content/references/java-chassis/zh_CN/question-and-answer/question_answer.html
index 67d6879..34dc183 100644
--- a/content/references/java-chassis/zh_CN/question-and-answer/question_answer.html
+++ b/content/references/java-chassis/zh_CN/question-and-answer/question_answer.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2588,69 +2714,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3063,7 +3126,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/fail-retry.html b/content/references/java-chassis/zh_CN/references-handlers/fail-retry.html
index 1c81cc9..2a038c6 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/fail-retry.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/fail-retry.html
@@ -9,14 +9,14 @@
       
       
       
-        <link rel="prev" href="governance.html">
+        <link rel="prev" href="fault-injection.html">
       
       
         <link rel="next" href="../edge/open-service.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2030,6 +2135,48 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2111,27 +2258,6 @@
                 
   
   
-  
-  
-    <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
     
   
   
@@ -2639,69 +2765,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2984,7 +3047,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/fault-injection.html b/content/references/java-chassis/zh_CN/references-handlers/fault-injection.html
index 1bc85f6..0288e67 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/fault-injection.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/fault-injection.html
@@ -12,11 +12,11 @@
         <link rel="prev" href="router.html">
       
       
-        <link rel="next" href="governance.html">
+        <link rel="next" href="fail-retry.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2030,6 +2135,48 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3096,7 +3159,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/gateway-governance.png b/content/references/java-chassis/zh_CN/references-handlers/gateway-governance.png
new file mode 100644
index 0000000..3e78d7c
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/references-handlers/gateway-governance.png
Binary files differ
diff --git a/content/references/java-chassis/zh_CN/references-handlers/governance.html b/content/references/java-chassis/zh_CN/references-handlers/governance-best-practise.html
similarity index 80%
rename from content/references/java-chassis/zh_CN/references-handlers/governance.html
rename to content/references/java-chassis/zh_CN/references-handlers/governance-best-practise.html
index d8372d8..7890e0f 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/governance.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/governance-best-practise.html
@@ -9,22 +9,22 @@
       
       
       
-        <link rel="prev" href="fault-injection.html">
+        <link rel="prev" href="rule-governance.html">
       
       
-        <link rel="next" href="fail-retry.html">
+        <link rel="next" href="loadbalance.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>流量特征治理 - Java Chassis 3 开发指南</title>
+        <title>流量特征治理最佳实践 - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -98,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              流量特征治理
+              流量特征治理最佳实践
             
           </span>
         </div>
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2030,6 +2135,163 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+        <label class="md-nav__link md-nav__link--active" for="__toc">
+          
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+          <span class="md-nav__icon md-icon"></span>
+        </label>
+      
+      <a href="governance-best-practise.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+      
+        
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+  
+  
+  
+    
+  
+  
+    <label class="md-nav__title" for="__toc">
+      <span class="md-nav__icon md-icon"></span>
+      Table of contents
+    </label>
+    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+      
+        <li class="md-nav__item">
+  <a href="#_2" class="md-nav__link">
+    <span class="md-ellipsis">
+      应用网关治理设计
+    </span>
+  </a>
+  
+    <nav class="md-nav" aria-label="应用网关治理设计">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
+  <a href="#_3" class="md-nav__link">
+    <span class="md-ellipsis">
+      配置
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_4" class="md-nav__link">
+    <span class="md-ellipsis">
+      持续演进
+    </span>
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_5" class="md-nav__link">
+    <span class="md-ellipsis">
+      微服务治理设计
+    </span>
+  </a>
+  
+    <nav class="md-nav" aria-label="微服务治理设计">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
+  <a href="#_6" class="md-nav__link">
+    <span class="md-ellipsis">
+      配置
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_7" class="md-nav__link">
+    <span class="md-ellipsis">
+      持续演进
+    </span>
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_8" class="md-nav__link">
+    <span class="md-ellipsis">
+      关于最佳实践的说明
+    </span>
+  </a>
+  
+</li>
+      
+    </ul>
+  
+</nav>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2111,103 +2373,6 @@
                 
   
   
-    
-  
-  
-  
-    <li class="md-nav__item md-nav__item--active">
-      
-      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
-      
-      
-        
-      
-      
-        <label class="md-nav__link md-nav__link--active" for="__toc">
-          
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-          <span class="md-nav__icon md-icon"></span>
-        </label>
-      
-      <a href="governance.html" class="md-nav__link md-nav__link--active">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-      
-        
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-    
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#_2" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用客户端熔断
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用客户端隔离仓
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用重试
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_5" class="md-nav__link">
-    <span class="md-ellipsis">
-      组合使用
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-      
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
   
   
     <li class="md-nav__item">
@@ -2666,69 +2831,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2870,34 +2972,73 @@
         <li class="md-nav__item">
   <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      使用客户端熔断
+      应用网关治理设计
     </span>
   </a>
   
-</li>
-      
-        <li class="md-nav__item">
+    <nav class="md-nav" aria-label="应用网关治理设计">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
   <a href="#_3" class="md-nav__link">
     <span class="md-ellipsis">
-      使用客户端隔离仓
+      配置
     </span>
   </a>
   
 </li>
-      
-        <li class="md-nav__item">
+        
+          <li class="md-nav__item">
   <a href="#_4" class="md-nav__link">
     <span class="md-ellipsis">
-      使用重试
+      持续演进
     </span>
   </a>
   
 </li>
+        
+      </ul>
+    </nav>
+  
+</li>
       
         <li class="md-nav__item">
   <a href="#_5" class="md-nav__link">
     <span class="md-ellipsis">
-      组合使用
+      微服务治理设计
+    </span>
+  </a>
+  
+    <nav class="md-nav" aria-label="微服务治理设计">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
+  <a href="#_6" class="md-nav__link">
+    <span class="md-ellipsis">
+      配置
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_7" class="md-nav__link">
+    <span class="md-ellipsis">
+      持续演进
+    </span>
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_8" class="md-nav__link">
+    <span class="md-ellipsis">
+      关于最佳实践的说明
     </span>
   </a>
   
@@ -2918,74 +3059,154 @@
                   
 
 
-<h1 id="_1">流量特征治理</h1>
-<p>流量特征治理旨在提供一种通用的,适合不同语言、不同微服务开发框架的治理规则。治理规则规定了微服务治理的过程、治理的策略,
-可以使用不同的开发框架、技术实现治理规则约定的治理能力。</p>
-<p>开发者可以在 <a href="https://github.com/apache/servicecomb-java-chassis">ServiceComb Java Chassis</a>, <a href="https://github.com/go-chassis/go-chassis">Go Chassis</a>,<a href="https://github.com/huaweicloud/spring-cloud-huawei">Spring Cloud</a>,
-<a href="https://github.com/huaweicloud/dubbo-servicecomb">Dubbo</a> 中使用该功能。</p>
-<p><a href="https://github.com/apache/servicecomb-java-chassis">ServiceComb Java Chassis</a> 提供了实现 SDK,可以将其用于其他开发框架。SDK 默认采用 <a href="https://github.com/resilience4j">Resilience4j</a>
-实现治理过程。规范没有约束治理过程的实现框架,可以很方便的使用其他的治理框架实现治理过程。 </p>
-<p>流量特征治理<a href="https://github.com/huaweicloud/spring-cloud-huawei/wiki/using-governance">概念和规范参考</a></p>
-<h2 id="_2">使用客户端熔断</h2>
-<p>配置参数:</p>
-<pre><code>servicecomb:
-  instanceIsolation:
-    allOperation: |
-      minimumNumberOfCalls: 10
-      slidingWindowSize: 20
-      slidingWindowType: COUNT_BASED
-      failureRateThreshold: 50
-      slowCallRateThreshold: 100
-      slowCallDurationThreshold: 3000
-      waitDurationInOpenState: 10000 
-      permittedNumberOfCallsInHalfOpenState: 10
-</code></pre>
-<p>上诉参数使用计算滑动窗口,如果错误率超过50%,就会进行熔断。</p>
-<h2 id="_3">使用客户端隔离仓</h2>
-<p>配置参数:</p>
-<pre><code>servicecomb:
-  instanceBulkhead:
-    allOperation: |
-      maxConcurrentCalls: 20
-      maxWaitDuration: 1000
-</code></pre>
-<p>上诉参数控制最大并发数为20,超过的请求会等待1000毫秒以获取许可,如果得到许可,可以继续处理,否则会拒绝请求。</p>
-<h2 id="_4">使用重试</h2>
-<p>配置参数:</p>
+<h1 id="_1">流量特征治理最佳实践</h1>
+<p>在<a href="../start/design.html">Java Chassis设计参考</a>中总结了典型的微服务应用架构:</p>
+<p><img alt="" src="../start/application-architect.png" /></p>
+<p>参考这个架构,微服务系统有两个比较重要的微服务部件:应用网关和微服务。 这两个部件是微服务治理的重点对象,它们所处的位置和作用存在一些差异,因此应用服务治理的策略也会有所不同。 本文以这个两个部件说明常见的治理策略设计。 </p>
+<p>首先,对应系统的所有API访问,做一个全局的业务定义。 </p>
 <pre><code class="language-yaml">servicecomb:
-  retry:
+  matchGroup:
     allOperation: |
-      maxAttempts: 2
-      retryOnSame: 0
+      matches:
+        - apiPath:
+            prefix: &quot;/&quot;
 </code></pre>
-<p>maxAttempts表示最大重试次数(不包括第1次调用),retryOnSame表示使用第1次调用的实例进行重试次数。后续的重试会根据负载均衡策略,重新选择一个新的实例重试(也可能选择到同一个实例)。 </p>
-<p><strong>注意事项:</strong></p>
+<h2 id="_2">应用网关治理设计</h2>
+<p>应用网关需要根据系统能够处理的最大流量,配置限流器,快速拒绝超过系统的流量,由用户(前端脚本)发起重试,在保证系统可用性的同时,尽可能降低对于用户体验的影响。还需要提供一定的基于背压的服务治理能力,比如如果后端服务某个实例不可用,或者某个服务刚刚启动完毕,需要初始化,发往这些服务的请求会表现为时延增加,如果不根据时延增加的反馈进行流量控制,就会导致用户体验极速下降。</p>
+<p><img alt="" src="gateway-governance.png" /></p>
+<p>应用网关配置限流器、熔断器和隔离仓。</p>
 <ul>
-<li>并不是所有的异常都会触发重试。缺省的情况,只有网络异常,或者 502,503 错误码才会触发重试。 详细可以参考 <code>ServiceCombRetryExtension</code> 的定义。</li>
+<li>服务端限流器:超过系统最大处理能力的请求场景,限流值的依据是压测的真实能力数据,可以控制在最大处理能力的80%左右。在系统上线初始阶段,默认设置全局限流器。在无法估算限流大小的时候,可以将流量限制设置为一个最大值,限流器也可以起到流量梳理平滑流量的作用。</li>
+<li>客户端熔断器:主要解决实例异常下线,本地缓存感知不及时的问题。实例熔断后会触发实例查询。因此,应用网关的熔断器的隔离时间会设置的比较短。</li>
+<li>客户端隔离仓:主要解决故障场景,比如数据库故障恢复、实例重启等,系统吞吐量下降的情况;或者微服务第一次启动、微服务长期没有请求突然进来大量请求的场景,这些场景可以限制并发连接,避免造成微服务和网关CPU大量使用,请求超时。</li>
+<li>应用网关可选客户端容错配置。最佳的方案是由小程序、WEB端应用发起重试,进行客户端容错。 </li>
 </ul>
-<h2 id="_5">组合使用</h2>
-<p>一个比较好的实践是组合使用 <code>重试</code> 、 <code>客户端熔断</code> 和 <code>客户端隔离仓</code>。</p>
-<p>这种组合可以防止偶然的实例错误导致的失败,也可以防止单个实例处理能力下降(比如刚刚启动的实例、故障的实例等场景)导致的整体故障。</p>
-<pre><code>servicecomb:
-  retry:
+<h3 id="_3">配置</h3>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
     allOperation: |
-      maxAttempts: 2
-      retryOnSame: 0
+      matches:
+       - apiPath:
+           prefix: &quot;/&quot;
+  rateLimiting:
+  ## 限流器每10毫秒允许通过100个请求,如果一个请求超过1000毫秒没有获取到
+  ## 许可,将被拒绝
+    allOperation: |
+      rate: 100
+      limitRefreshPeriod: 10
+      timeoutDuration: 1000
   instanceIsolation:
+  ## 熔断器错误率达到50%或者耗时请求达到100%,将开启。
+  ## 开启时间为5000毫秒,然后会放通10个请求。
     allOperation: |
       minimumNumberOfCalls: 10
       slidingWindowSize: 20
       slidingWindowType: COUNT_BASED
       failureRateThreshold: 50
       slowCallRateThreshold: 100
-      slowCallDurationThreshold: 3000
-      waitDurationInOpenState: 10000 
+      slowCallDurationThreshold: 1000
+      waitDurationInOpenState: 5000
       permittedNumberOfCallsInHalfOpenState: 10
   instanceBulkhead:
+  ## 隔离仓限制正在处理的请求数为20个,新来的请求等待1000毫秒没有获取到
+  ## 许可,将被拒绝。
     allOperation: |
       maxConcurrentCalls: 20
       maxWaitDuration: 1000
 </code></pre>
+<h3 id="_4">持续演进</h3>
+<p>场景一:耗时请求需要配置独立的限流策略。需要结合业务的持续演进,进行配置增加。</p>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    timeConsumingOperation: |
+      matches:
+        - apiPath:
+            prefix: &quot;/timeConsumingOperation&quot;
+  rateLimiting:
+  ## 限流器每100毫秒允许通过1个请求,如果一个请求超过1000毫秒没有获取到
+  ## 许可,将被拒绝
+  timeConsumingOperation: |
+      rate: 1
+      limitRefreshPeriod: 100
+      timeoutDuration: 1000
+</code></pre>
+<p>场景二:需要防止机器人的场景,或者需要防止DDOS的场景,需要先考虑应用网关的扩容,然后根据用户ID或者请求端IP进行分布式限流。应用系统在规划的时候,需要考虑将用户ID通过HTTP HEADER的方式传递;或者ELB需要将客户的IP通过x-real-ip HTTP HEADER传递。</p>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    allOperation: |
+      matches:
+        - apiPath:
+            prefix: &quot;/&quot;
+  identifierRateLimiting:
+  ## 限流器每100毫秒允许通过1个请求,如果一个请求超过1000毫秒没有获取到
+  ## 许可,将被拒绝。相当于限制每个用户1秒钟10个请求。
+    allOperation: |
+      rate: 1
+      limitRefreshPeriod: 100
+      timeoutDuration: 1000
+      identifier: user-id
+</code></pre>
+<h2 id="_5">微服务治理设计</h2>
+<p>微服务治理设计和网关设计有很多类似之处,也有少量的差异。 </p>
+<p><img alt="" src="service-governance.png" /></p>
+<p>微服务配置服务端限流、服务端隔离仓、客户端容错、客户端熔断和客户端隔离仓。</p>
+<ul>
+<li>服务端限流器:超过系统最大处理能力的请求场景,限流值的依据是压测的真实能力数据,可以控制在最大处理能力的80%左右。在系统上线初始阶段,默认设置全局限流器。在无法估算限流大小的时候,可以将流量限制设置为一个最大值,限流器也可以起到流量梳理平滑流量的作用。</li>
+<li>服务端隔离仓:主要针对耗时请求进行配置,防止耗时请求占用其他请求的处理资源。</li>
+<li>客户端重试器:主要解决网络错误、服务上下线的短暂故障等进行快速重试,降低错误率。该重试器只针对发送请求失败的场景,不涉及接口幂等问题。</li>
+<li>客户端熔断器:主要解决实例故障客户端没感知的场景,实现实例的快速刷新和同步。</li>
+<li>客户端隔离仓:主要解决故障场景,比如数据库故障恢复、实例重启等,系统吞吐量下降的情况;或者微服务第一次启动、微服务长期没有请求突然进来大量请求的场景,这些场景可以限制并发连接,避免造成微服务和网关CPU大量使用,请求超时。</li>
+</ul>
+<h3 id="_6">配置</h3>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    allOperation: |
+      matches:
+       - apiPath:
+           prefix: &quot;/&quot;
+  rateLimiting:
+  ## 限流器每10毫秒允许通过100个请求,如果一个请求超过1000毫秒没有获取到
+  ## 许可,将被拒绝
+    allOperation: |
+      rate: 100
+      limitRefreshPeriod: 10
+      timeoutDuration: 1000
+  instanceIsolation:
+  ## 熔断器错误率达到50%或者耗时请求达到100%,将开启。
+  ## 开启时间为5000毫秒,然后会放通10个请求。
+    allOperation: |
+      minimumNumberOfCalls: 10
+      slidingWindowSize: 20
+      slidingWindowType: COUNT_BASED
+      failureRateThreshold: 50
+      slowCallRateThreshold: 100
+      slowCallDurationThreshold: 1000
+      waitDurationInOpenState: 5000
+      permittedNumberOfCallsInHalfOpenState: 10
+  instanceBulkhead:
+  ## 隔离仓限制正在处理的请求数为20个,新来的请求等待1000毫秒没有获取到
+  ## 许可,将被拒绝。
+    allOperation: |
+      maxConcurrentCalls: 20
+      maxWaitDuration: 1000
+</code></pre>
+<h3 id="_7">持续演进</h3>
+<p>场景一:服务端耗时请求,需要增加隔离仓配置。</p>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    timeConsumingOperation: |
+      matches:
+        - apiPath:
+            prefix: &quot;/timeConsumingOperation&quot;
+  bulkhead:
+  ## 隔离仓限制正在处理的请求数为2个,新来的请求等待1000毫秒没有获取到
+  ## 许可,将被拒绝。
+    timeConsumingOperation: |
+      maxConcurrentCalls: 2
+      maxWaitDuration: 1000
+</code></pre>
+<h2 id="_8">关于最佳实践的说明</h2>
+<p>任何的服务治理策略,都无法保证所有场景都能够优雅的工作,需要在成功率、可靠性、用户体验等多方面进行权衡,最佳实践提到的策略也不例外。最佳实践总体上倾向于设计一个准实时、优先保证用户体验的策略,并且尽可能的防止系统产生雪崩效应。这个策略在检测到系统过载的条件下,优先使用快速失败的策略,降低对于系统资源的占用,并通过重试来降低快速失败对于用户体验的影响。这种策略对于追求用户体验的互联网系统是非常棒的选择。这种策略会导致较多的请求失败(虽然通过重试可以成功),所以它不太适合对于成功率要求高于用户体验影响的场景,对于这些场景,在隔离仓上面应该配置更大的并发数限制,并设置较长的请求等待时间。</p>
 
 
 
@@ -3035,7 +3256,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/intruduction.html b/content/references/java-chassis/zh_CN/references-handlers/intruduction.html
index d2570ae..f67ac58 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/intruduction.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/intruduction.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1852,7 +1852,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1873,7 +1873,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2016,11 +2037,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2079,6 +2184,48 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2163,27 +2310,6 @@
   
   
     <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="fail-retry.html" class="md-nav__link">
         
   
@@ -2639,69 +2765,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2971,7 +3034,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/loadbalance.html b/content/references/java-chassis/zh_CN/references-handlers/loadbalance.html
index 00f6d5f..589bfe7 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/loadbalance.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/loadbalance.html
@@ -9,14 +9,14 @@
       
       
       
-        <link rel="prev" href="../config/config-service.html">
+        <link rel="prev" href="governance-best-practise.html">
       
       
         <link rel="next" href="ratelimit.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2027,6 +2132,48 @@
                 
   
   
+  
+  
+    <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
     
   
   
@@ -2199,27 +2346,6 @@
   
   
     <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="fail-retry.html" class="md-nav__link">
         
   
@@ -2675,69 +2801,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3108,7 +3171,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/publickey.html b/content/references/java-chassis/zh_CN/references-handlers/publickey.html
index 34f915e..bd01123 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/publickey.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/publickey.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2960,7 +3023,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/ratelimit.html b/content/references/java-chassis/zh_CN/references-handlers/ratelimit.html
index 9246803..6d74c5c 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/ratelimit.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/ratelimit.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2030,6 +2135,48 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2211,27 +2358,6 @@
   
   
     <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="fail-retry.html" class="md-nav__link">
         
   
@@ -2687,69 +2813,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2968,7 +3031,7 @@
 <li>流量控制是业务层面的功能,不是安全意义上的流量控制,如需防止DDoS攻击,需要结合其他的一系列措施。</li>
 <li>流量控制是微服务级的,不是实例级的。例如一个consumer服务有三个实例,当对它们依赖的provider实例配置限流策略后,
   provider不会区分consumer的请求具体是由哪个实例发出的,而是汇总成微服务级的统计数据进行限流判断。</li>
-<li>本模块介绍的限流机制是基于 <code>operation</code> 的, 使用起来比较简单。后续推荐使用<a href="governance.html">流量特征治理</a> 来限制流量。 </li>
+<li>本模块介绍的限流机制是基于 <code>operation</code> 的, 使用起来比较简单。后续推荐使用<a href="using-governance.md">流量特征治理</a> 来限制流量。 </li>
 </ol>
 <h2 id="_2">流控算法说明</h2>
 <ul>
@@ -3178,7 +3241,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/router.html b/content/references/java-chassis/zh_CN/references-handlers/router.html
index ccd91dc..46fe8b9 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/router.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/router.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2030,6 +2135,48 @@
   
   
     <li class="md-nav__item">
+      <a href="rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2954,7 +3017,7 @@
 </code></pre>
 <h4 id="_2">规则说明</h4>
 <ul>
-<li>匹配特定请求由match配置,  match的配置逻辑和 <a href="governance.html">流量特征治理</a> 一致。</li>
+<li>匹配特定请求由match配置,  match的配置逻辑和 <a href="governance.md">流量特征治理</a> 一致。</li>
 <li>转发权重定义在routeRule.{targetServiceName}.route下,由weight配置,weight数值表示百分数,需要满足加和等于100,不满足100的部分会用最新版本填充。</li>
 <li>服务分组定义在routeRule.{targetServiceName}.route下,由tags配置,配置内容有version和app。</li>
 <li>优先级数量越大优先级越高。</li>
@@ -3015,7 +3078,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/governance.html b/content/references/java-chassis/zh_CN/references-handlers/rule-governance.html
similarity index 74%
copy from content/references/java-chassis/zh_CN/references-handlers/governance.html
copy to content/references/java-chassis/zh_CN/references-handlers/rule-governance.html
index d8372d8..778e6f8 100644
--- a/content/references/java-chassis/zh_CN/references-handlers/governance.html
+++ b/content/references/java-chassis/zh_CN/references-handlers/rule-governance.html
@@ -9,14 +9,14 @@
       
       
       
-        <link rel="prev" href="fault-injection.html">
+        <link rel="prev" href="../config/cse1.html">
       
       
-        <link rel="next" href="fail-retry.html">
+        <link rel="next" href="governance-best-practise.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2027,6 +2132,202 @@
                 
   
   
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+        <label class="md-nav__link md-nav__link--active" for="__toc">
+          
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+          <span class="md-nav__icon md-icon"></span>
+        </label>
+      
+      <a href="rule-governance.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+      
+        
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+  
+  
+  
+    
+  
+  
+    <label class="md-nav__title" for="__toc">
+      <span class="md-nav__icon md-icon"></span>
+      Table of contents
+    </label>
+    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+      
+        <li class="md-nav__item">
+  <a href="#_2" class="md-nav__link">
+    <span class="md-ellipsis">
+      概念定义
+    </span>
+  </a>
+  
+</li>
+      
+        <li class="md-nav__item">
+  <a href="#_3" class="md-nav__link">
+    <span class="md-ellipsis">
+      规范参考
+    </span>
+  </a>
+  
+    <nav class="md-nav" aria-label="规范参考">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
+  <a href="#_4" class="md-nav__link">
+    <span class="md-ellipsis">
+      业务定义
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_5" class="md-nav__link">
+    <span class="md-ellipsis">
+      限流
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#header" class="md-nav__link">
+    <span class="md-ellipsis">
+      基于header的限流
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_6" class="md-nav__link">
+    <span class="md-ellipsis">
+      重试
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_7" class="md-nav__link">
+    <span class="md-ellipsis">
+      熔断
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_8" class="md-nav__link">
+    <span class="md-ellipsis">
+      实例级熔断
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_9" class="md-nav__link">
+    <span class="md-ellipsis">
+      隔离仓
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_10" class="md-nav__link">
+    <span class="md-ellipsis">
+      实例级隔离仓
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_11" class="md-nav__link">
+    <span class="md-ellipsis">
+      错误注入
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_12" class="md-nav__link">
+    <span class="md-ellipsis">
+      公共参数
+    </span>
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
+</li>
+      
+    </ul>
+  
+</nav>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
   
   
     <li class="md-nav__item">
@@ -2111,103 +2412,6 @@
                 
   
   
-    
-  
-  
-  
-    <li class="md-nav__item md-nav__item--active">
-      
-      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
-      
-      
-        
-      
-      
-        <label class="md-nav__link md-nav__link--active" for="__toc">
-          
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-          <span class="md-nav__icon md-icon"></span>
-        </label>
-      
-      <a href="governance.html" class="md-nav__link md-nav__link--active">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-      
-        
-
-<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
-  
-  
-  
-    
-  
-  
-    <label class="md-nav__title" for="__toc">
-      <span class="md-nav__icon md-icon"></span>
-      Table of contents
-    </label>
-    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
-      
-        <li class="md-nav__item">
-  <a href="#_2" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用客户端熔断
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_3" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用客户端隔离仓
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_4" class="md-nav__link">
-    <span class="md-ellipsis">
-      使用重试
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#_5" class="md-nav__link">
-    <span class="md-ellipsis">
-      组合使用
-    </span>
-  </a>
-  
-</li>
-      
-    </ul>
-  
-</nav>
-      
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
   
   
     <li class="md-nav__item">
@@ -2666,69 +2870,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2870,7 +3011,7 @@
         <li class="md-nav__item">
   <a href="#_2" class="md-nav__link">
     <span class="md-ellipsis">
-      使用客户端熔断
+      概念定义
     </span>
   </a>
   
@@ -2879,29 +3020,107 @@
         <li class="md-nav__item">
   <a href="#_3" class="md-nav__link">
     <span class="md-ellipsis">
-      使用客户端隔离仓
+      规范参考
     </span>
   </a>
   
-</li>
-      
-        <li class="md-nav__item">
+    <nav class="md-nav" aria-label="规范参考">
+      <ul class="md-nav__list">
+        
+          <li class="md-nav__item">
   <a href="#_4" class="md-nav__link">
     <span class="md-ellipsis">
-      使用重试
+      业务定义
     </span>
   </a>
   
 </li>
-      
-        <li class="md-nav__item">
+        
+          <li class="md-nav__item">
   <a href="#_5" class="md-nav__link">
     <span class="md-ellipsis">
-      组合使用
+      限流
     </span>
   </a>
   
 </li>
+        
+          <li class="md-nav__item">
+  <a href="#header" class="md-nav__link">
+    <span class="md-ellipsis">
+      基于header的限流
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_6" class="md-nav__link">
+    <span class="md-ellipsis">
+      重试
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_7" class="md-nav__link">
+    <span class="md-ellipsis">
+      熔断
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_8" class="md-nav__link">
+    <span class="md-ellipsis">
+      实例级熔断
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_9" class="md-nav__link">
+    <span class="md-ellipsis">
+      隔离仓
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_10" class="md-nav__link">
+    <span class="md-ellipsis">
+      实例级隔离仓
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_11" class="md-nav__link">
+    <span class="md-ellipsis">
+      错误注入
+    </span>
+  </a>
+  
+</li>
+        
+          <li class="md-nav__item">
+  <a href="#_12" class="md-nav__link">
+    <span class="md-ellipsis">
+      公共参数
+    </span>
+  </a>
+  
+</li>
+        
+      </ul>
+    </nav>
+  
+</li>
       
     </ul>
   
@@ -2919,73 +3138,245 @@
 
 
 <h1 id="_1">流量特征治理</h1>
-<p>流量特征治理旨在提供一种通用的,适合不同语言、不同微服务开发框架的治理规则。治理规则规定了微服务治理的过程、治理的策略,
-可以使用不同的开发框架、技术实现治理规则约定的治理能力。</p>
-<p>开发者可以在 <a href="https://github.com/apache/servicecomb-java-chassis">ServiceComb Java Chassis</a>, <a href="https://github.com/go-chassis/go-chassis">Go Chassis</a>,<a href="https://github.com/huaweicloud/spring-cloud-huawei">Spring Cloud</a>,
-<a href="https://github.com/huaweicloud/dubbo-servicecomb">Dubbo</a> 中使用该功能。</p>
-<p><a href="https://github.com/apache/servicecomb-java-chassis">ServiceComb Java Chassis</a> 提供了实现 SDK,可以将其用于其他开发框架。SDK 默认采用 <a href="https://github.com/resilience4j">Resilience4j</a>
-实现治理过程。规范没有约束治理过程的实现框架,可以很方便的使用其他的治理框架实现治理过程。 </p>
-<p>流量特征治理<a href="https://github.com/huaweicloud/spring-cloud-huawei/wiki/using-governance">概念和规范参考</a></p>
-<h2 id="_2">使用客户端熔断</h2>
-<p>配置参数:</p>
-<pre><code>servicecomb:
-  instanceIsolation:
-    allOperation: |
-      minimumNumberOfCalls: 10
-      slidingWindowSize: 20
-      slidingWindowType: COUNT_BASED
-      failureRateThreshold: 50
-      slowCallRateThreshold: 100
-      slowCallDurationThreshold: 3000
-      waitDurationInOpenState: 10000 
-      permittedNumberOfCallsInHalfOpenState: 10
+<p>流量特征治理旨在提供一种通用的,适合不同语言、不同微服务开发框架的治理规则。治理规则规定了微服务治理的过程、治理的策略,可以使用不同的开发框架、技术实现治理规则约定的治理能力。</p>
+<p>开发者可以在 Java Chassis, <a href="https://github.com/huaweicloud/spring-cloud-huawei">Spring Cloud</a>, <a href="https://github.com/go-chassis/go-chassis">Go Chassis</a> 中使用该功能。</p>
+<p>Java Chassis提供了实现 SDK,可以将其用于其他开发框架。SDK 默认采用 <a href="https://github.com/resilience4j">Resilience4j</a> 实现治理过程,并在规范中参考引用了很多其设计理念。规范没有约束治理过程的实现框架,可以很方便的使用其他的治理框架实现治理过程。 </p>
+<h2 id="_2">概念定义</h2>
+<p>流量特征治理可以从两个不同的角度进行描述。</p>
+<p>从管理流程上,可以分为进行 <code>业务定义</code> 和设置 <code>治理规则</code> 两个步骤。系统架构师将请求流量根据特征打上标记,用于区分一个或者一组代表具体含义的业务,然后对这些业务设置治理规则。</p>
+<p>从处理过程上,可以分为 <code>下发配置</code> 和 应用 <code>治理规则</code> 两个步骤。 可以通过配置文件、配置中心、环境变量等常见的配置管理手段下发配置。微服务 SDK 负责读取配置,解析治理规则,实现治理效果。</p>
+<ul>
+<li><code>业务定义</code></li>
+</ul>
+<p>可以根据请求的特征进行业务定义。</p>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    userLoginAction: |
+      matches:
+        - apiPath:
+            exact: &quot;/login&quot;
+          method:
+            - POST
+        - headers:
+          Authentication: 
+            prefix: Basic
 </code></pre>
-<p>上诉参数使用计算滑动窗口,如果错误率超过50%,就会进行熔断。</p>
-<h2 id="_3">使用客户端隔离仓</h2>
-<p>配置参数:</p>
-<pre><code>servicecomb:
-  instanceBulkhead:
-    allOperation: |
-      maxConcurrentCalls: 20
-      maxWaitDuration: 1000
+<p>比如上面的示例定义了一个业务 <code>userLoginAction</code>,如果流量的 <code>apiPath=/login&amp;method=POST</code>, 或者 请求头 <code>Authentication=Basic*</code> 那么认为这个流量是一个登陆操作。</p>
+<ul>
+<li><code>治理规则</code></li>
+</ul>
+<p>定义好业务后,可以给它们设置治理规则。</p>
+<pre><code class="language-yaml">servicecomb:
+  rateLimiting:
+    userLoginAction: |
+      rate: 100
 </code></pre>
-<p>上诉参数控制最大并发数为20,超过的请求会等待1000毫秒以获取许可,如果得到许可,可以继续处理,否则会拒绝请求。</p>
-<h2 id="_4">使用重试</h2>
-<p>配置参数:</p>
+<p>比如上面的示例设置 <code>userLoginAction</code> 的限流策略是 100 TPS。 </p>
+<h2 id="_3">规范参考</h2>
+<h3 id="_4">业务定义</h3>
+<pre><code class="language-yaml">servicecomb:
+  matchGroup:
+    userLoginAction: |
+      matches:
+        - name: firstMatch
+          apiPath:
+            exact: &quot;/login/v1&quot;
+          method:
+            - POST
+          headers:
+            Authentication: 
+              prefix: Basic
+          serviceName: exampleService
+        - name: secondeMatch
+          apiPath:
+            exact: &quot;/login/v2&quot;
+          method:
+            - POST
+          headers:
+            Authentication: 
+              prefix: Basic
+           serviceName: exampleService
+      services: exampleService
+      name: userLoginAction
+</code></pre>
+<p>一个业务对应一个 Key, userLoginAction 为 Key 的名称。 一个业务可以定义多个标记规则,每个标记规则里面可以定义 <code>apiPath</code>, <code>method</code>, <code>headers</code>, <code>serviceName</code> 等匹配规则。 不同标记规则是或的关系,匹配规则是与的关系。</p>
+<ul>
+<li>
+<p><code>services</code>: 可选。指出这个业务定义的生效范围。 在应用系统中,业务定义可能对于所有微服务都是可见的(如果业务定义只下发到该微服务,则不需要这个配置),一个微服务只会启用 <code>services</code> 包含自己的规则。这个属性可选,表示这条规则默认生效。可以使用 <code>example:1.0.0</code> 格式指明服务和版本,多个服务用逗号分隔,比如:<code>foo:1.0.0,bar</code>。</p>
+</li>
+<li>
+<p><code>name</code>: 可选。业务定义的名称。</p>
+</li>
+</ul>
+<p>在match中提供了一系列的算子来对 <code>apiPath</code> 或者 <code>headers</code> 进行匹配. </p>
+<ul>
+<li><code>exact</code>: 精确匹配</li>
+<li><code>prefix</code>: 前缀匹配</li>
+<li><code>suffix</code>: 后缀匹配</li>
+<li><code>contains</code>: 包含, 目标字符串是否包含模式字符串</li>
+<li><code>compare</code>: 比较: 支持 &gt;,&lt;,&gt;=,&lt;=,=,!= 符号匹配,处理时会把模式字符串和目标字符串转化为 Double 类型进行比较,支持的数据范围为 Double 的数据范围。在进行 = 和 != 判断时 , 如果二者的差值小于1e-6就视为相等。例如模式串为: &gt;-10 会对大于-10以上的目标串匹配成功。</li>
+</ul>
+<p>业务定义可以在不同的应用层实现,比如在提供 REST 接口的服务端,可以通过 <code>HttpServletRequest</code> 获取请求信息。在 RestTemplate 调用的客户端,可以从
+<code>RestTemplate</code> 获取请求信息。不同的框架和应用层,提取信息的方式不一样。 实现层通过将特征映射到 <code>GovernanceRequest</code> 来屏蔽这些差异,使得在不同的框架,不同的应用层都可以使用治理。</p>
+<pre><code class="language-java">public class GovernanceRequest {
+     /**
+      headers with this request, maybe null.
+      For provider: headers indicates the request headers to me.
+      For consumer: headers indicates the request headers to the target.
+      */
+     private Map&lt;String, String&gt; headers;
+
+     /**
+      uri with this request, maybe null.
+      For provider: uri indicates the request uri to me.
+      For consumer: uri indicates the request uri to the target.
+      */
+     private String uri;
+
+     /**
+      method with this request, maybe null.
+      For provider: method indicates the request method to me.
+      For consumer: method indicates the request method to the target.
+      */
+     private String method;
+
+     /**
+      instance id with this request, maybe null.
+      For provider: instanceId indicates who calls me.
+      For consumer: instanceId indicates the target instance.
+      */
+     private String instanceId;
+
+     /**
+      microservice id (microservice name or application name + microservice name) with this request, maybe null.
+      For provider: serviceName indicates who calls me.
+      For consumer: serviceName indicates the target service.
+      */
+     private String serviceName;
+}
+
+</code></pre>
+<h3 id="_5">限流</h3>
+<pre><code class="language-yaml">servicecomb:
+  rateLimiting:
+    userLoginAction: |
+      timeoutDuration: 0
+      limitRefreshPeriod: 1000
+      rate: 1
+</code></pre>
+<p>规则解释:限流规则借鉴了<code>Resilience4j</code>的思想,其原理为: 每隔limitRefreshPeriod的时间会加入limitForPeriod(即rate)个新许可,如果获取不到新的许可(已经触发限流),当前线程会park,最多等待timeoutDuration的时间,默认单位为毫秒。</p>
+<h3 id="header">基于header的限流</h3>
+<pre><code class="language-yaml">servicecomb:
+  identifierRateLimiting:
+    userLoginAction: |
+      timeoutDuration: 0
+      limitRefreshPeriod: 1000
+      rate: 1
+      identifier: user-id
+</code></pre>
+<p>基于header的限流和限流含义类似,它会针对 <code>identifier</code> 指定的 header 值, 每个值创建一个限流器。</p>
+<h3 id="_6">重试</h3>
 <pre><code class="language-yaml">servicecomb:
   retry:
-    allOperation: |
-      maxAttempts: 2
+    userLoginAction: |
+      maxAttempts: 3
       retryOnSame: 0
+      retryOnResponseStatus: 
+         - 502
+         - 503
+      waitDuration: 1
 </code></pre>
-<p>maxAttempts表示最大重试次数(不包括第1次调用),retryOnSame表示使用第1次调用的实例进行重试次数。后续的重试会根据负载均衡策略,重新选择一个新的实例重试(也可能选择到同一个实例)。 </p>
-<p><strong>注意事项:</strong></p>
-<ul>
-<li>并不是所有的异常都会触发重试。缺省的情况,只有网络异常,或者 502,503 错误码才会触发重试。 详细可以参考 <code>ServiceCombRetryExtension</code> 的定义。</li>
-</ul>
-<h2 id="_5">组合使用</h2>
-<p>一个比较好的实践是组合使用 <code>重试</code> 、 <code>客户端熔断</code> 和 <code>客户端隔离仓</code>。</p>
-<p>这种组合可以防止偶然的实例错误导致的失败,也可以防止单个实例处理能力下降(比如刚刚启动的实例、故障的实例等场景)导致的整体故障。</p>
-<pre><code>servicecomb:
-  retry:
-    allOperation: |
-      maxAttempts: 2
-      retryOnSame: 0
-  instanceIsolation:
-    allOperation: |
-      minimumNumberOfCalls: 10
-      slidingWindowSize: 20
-      slidingWindowType: COUNT_BASED
+<p>规则解释:重试规则借鉴了<code>Resilience4j</code>的思想,其原理为:如果响应的错误码(502, 503)计算结果满足重试条件,或者异常在重试异常清单里面,则进行重试。下一次重试等待时间为 waitDuration。 </p>
+<p>重试等待时间和具体的框架与运行机制有关。重试等待时间必须大于0。</p>
+<h3 id="_7">熔断</h3>
+<pre><code class="language-yaml">servicecomb:
+  circuitBreaker:
+    userLoginAction: |
       failureRateThreshold: 50
       slowCallRateThreshold: 100
-      slowCallDurationThreshold: 3000
-      waitDurationInOpenState: 10000 
+      slowCallDurationThreshold: 60000
+      minimumNumberOfCalls: 100
+      slidingWindowType: COUNT_BASED
+      slidingWindowSize: 100
+      recordFailureStatus:
+        - 502
+        - 503
+      waitDurationInOpenState: 60000
       permittedNumberOfCallsInHalfOpenState: 10
-  instanceBulkhead:
-    allOperation: |
-      maxConcurrentCalls: 20
-      maxWaitDuration: 1000
+      forceClosed: false
+      forceOpen: false
 </code></pre>
+<p>规则解释:熔断规则借鉴了<code>Resilience4j</code>的思想,其原理为:达到指定 failureRateThreshold 错误率或者 slowCallRateThreshold 慢请求率时进行熔断,慢请求通过 slowCallDurationThreshold 定义。minimumNumberOfCalls 是达到熔断要求的最低请求数量门槛。slidingWindowType指定滑动窗口
+类型,默认可选 COUNT_BASED和TIME_BASED 分别是基于请求数量窗口和基于时间窗口。slidingWindowSize 指定窗口大小,根据滑动窗口类型,单位是请求数量或者秒,根据滑动窗口类型决定。 forceClosed 表示强制关闭熔断器,即熔断器不工作;forceOpen表示强制开启熔断器,即请求都会发生熔断。</p>
+<p>熔断时间是waitDurationInOpenState,达到时间会放通permittedNumberOfCallsInHalfOpenState个请求。放通后,如果降低到阈值一下,则恢复;如果没有降低到阈值以下,则继续隔离。</p>
+<h3 id="_8">实例级熔断</h3>
+<pre><code class="language-yaml">servicecomb:
+  instanceIsolation:
+    userLoginAction: |
+      failureRateThreshold: 50
+      slowCallRateThreshold: 100
+      slowCallDurationThreshold: 60000
+      minimumNumberOfCalls: 100
+      slidingWindowType: COUNT_BASED
+      slidingWindowSize: 100
+      recordFailureStatus:
+        - 502
+        - 503
+      waitDurationInOpenState: 60000
+      permittedNumberOfCallsInHalfOpenState: 10
+      forceClosed: false
+      forceOpen: false
+</code></pre>
+<p>实例级熔断和熔断的含义类似,但是他会针对每个实例创建一个熔断器。Java Chassis会监听实例熔断事件,并调整熔断实例的优先级,降低对熔断实例的使用频率以达到实例隔离的作用。</p>
+<h3 id="_9">隔离仓</h3>
+<pre><code class="language-yaml">servicecomb:
+  bulkhead:
+    userLoginAction: |
+      maxConcurrentCalls: 1000
+      maxWaitDuration: 0
+</code></pre>
+<p>规则解释:隔离仓规则借鉴了<code>Resilience4j</code>的思想,其原理为:当最大并发数超过 maxConcurrentCalls,等待 maxWaitDuration
+竞争资源,如果获得资源,则继续处理,如果获取不到,则拒绝执行请求。在异步框架,建议 maxWaitDuration 设置为0,防止阻塞事件派发线程。</p>
+<h3 id="_10">实例级隔离仓</h3>
+<pre><code class="language-yaml">servicecomb:
+  instanceBulkhead:
+    userLoginAction: |
+      maxConcurrentCalls: 1000
+      maxWaitDuration: 0
+</code></pre>
+<p>实例级隔离仓和隔离仓的含义类似,但是他会针对每个实例创建一个隔离仓。</p>
+<h3 id="_11">错误注入</h3>
+<pre><code class="language-yaml">servicecomb:
+  faultInjection:
+    userLoginAction: |
+      type: delay
+      delayTime: 1000
+      percentage: 50
+      errorCode: 500
+      fallbackType: ThrowException
+      forceClosed: false
+</code></pre>
+<p>规则解释:错误注入分为 <code>delay</code> 和 <code>abort</code> 两种。<code>delay</code> 表示对于 <code>percentage</code> 的请求,延迟 <code>delayTime</code>。 <code>abort</code> 表示对于 <code>percentage</code> 的请求,根据 <code>fallbackType</code> 抛出异常还是返回 null。 </p>
+<h3 id="_12">公共参数</h3>
+<p>治理规则存在一些公共参数, 比如 <code>services</code>, <code>order</code>, <code>name</code>。比如:</p>
+<pre><code class="language-yaml">servicecomb:
+  faultInjection:
+    userLoginAction: |
+      type: delay
+      delayTime: 1000
+      percentage: 50
+      errorCode: 500
+      fallbackType: ThrowException
+      forceClosed: false
+      services: helloService
+      order: 1
+      name: userLoginAction
+</code></pre>
+<ul>
+<li>services: 表示该治理规则生效的微服务名称列表。 在应用系统中,治理规则可能对于所有微服务都是可见的(如果治理规则只下发到该微服务,则不需要这个配置),一个微服务只会启用 <code>services</code> 包含自己的规则。这个属性可选,表示这条规则默认生效。可以使用 <code>example:1.0.0</code> 格式指明服务和版本,多个服务用逗号分隔,比如:<code>foo:1.0.0,bar</code>。</li>
+<li>order: 表示该治理规则的优先级,值越小优先级越高。 当一个请求匹配多个治理规则的时候,按照优先级使用优先级高的治理规则。</li>
+<li>name: 表示该治理规则的名称,系统内部使用属性,其值等于规则里面的业务名称,用户不能修改。</li>
+</ul>
 
 
 
@@ -3035,7 +3426,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/references-handlers/service-governance.png b/content/references/java-chassis/zh_CN/references-handlers/service-governance.png
new file mode 100644
index 0000000..a58ca29
--- /dev/null
+++ b/content/references/java-chassis/zh_CN/references-handlers/service-governance.png
Binary files differ
diff --git a/content/references/java-chassis/zh_CN/registry/distributed.html b/content/references/java-chassis/zh_CN/registry/distributed.html
index a65fd61..1e9f77f 100644
--- a/content/references/java-chassis/zh_CN/registry/distributed.html
+++ b/content/references/java-chassis/zh_CN/registry/distributed.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1803,7 +1803,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1824,7 +1824,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2016,11 +2037,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2079,6 +2184,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2163,27 +2310,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2639,69 +2765,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2994,7 +3057,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/registry/introduction.html b/content/references/java-chassis/zh_CN/registry/introduction.html
index f2c8765..172f5a4 100644
--- a/content/references/java-chassis/zh_CN/registry/introduction.html
+++ b/content/references/java-chassis/zh_CN/registry/introduction.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1876,7 +1876,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1897,7 +1897,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2040,11 +2061,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2103,6 +2208,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2187,27 +2334,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2663,69 +2789,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3000,7 +3063,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/registry/local-registry.html b/content/references/java-chassis/zh_CN/registry/local-registry.html
index 88a44f2..3eb21d5 100644
--- a/content/references/java-chassis/zh_CN/registry/local-registry.html
+++ b/content/references/java-chassis/zh_CN/registry/local-registry.html
@@ -9,14 +9,14 @@
       
       
       
-        <link rel="prev" href="nacos.html">
+        <link rel="prev" href="zookeeper.html">
       
       
         <link rel="next" href="distributed.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1803,7 +1803,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1824,7 +1824,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3074,7 +3137,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/registry/nacos.html b/content/references/java-chassis/zh_CN/registry/nacos.html
index 72795c4..4f7e647 100644
--- a/content/references/java-chassis/zh_CN/registry/nacos.html
+++ b/content/references/java-chassis/zh_CN/registry/nacos.html
@@ -12,19 +12,19 @@
         <link rel="prev" href="service-center.html">
       
       
-        <link rel="next" href="local-registry.html">
+        <link rel="next" href="zookeeper.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>使用nacos - Java Chassis 3 开发指南</title>
+        <title>使用Nacos - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -98,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              使用nacos
+              使用Nacos
             
           </span>
         </div>
@@ -1803,7 +1803,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1833,7 +1833,7 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
   </span>
   
 
@@ -1851,6 +1851,27 @@
   
   
     <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="local-registry.html" class="md-nav__link">
         
   
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2808,8 +2871,8 @@
                   
 
 
-<h1 id="nacos">使用 nacos</h1>
-<p>可以通过 <a href="https://github.com/alibaba/nacos">nacos官网</a> 下载和安装 Nacos。</p>
+<h1 id="nacos">使用 Nacos</h1>
+<p>可以通过 <a href="https://github.com/alibaba/nacos">Nacos官网</a> 下载和安装 Nacos。</p>
 <p>Nacos的namespace对应于环境Environment, group对应于application, service对应于微服务名称。 </p>
 <ul>
 <li>表1-1 访问Nacos常用的配置项</li>
@@ -2929,7 +2992,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/registry/service-center.html b/content/references/java-chassis/zh_CN/registry/service-center.html
index 3f1f75f..8636739 100644
--- a/content/references/java-chassis/zh_CN/registry/service-center.html
+++ b/content/references/java-chassis/zh_CN/registry/service-center.html
@@ -16,15 +16,15 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>使用service-center - Java Chassis 3 开发指南</title>
+        <title>使用Service Center - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -98,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              使用service-center
+              使用Service Center
             
           </span>
         </div>
@@ -1812,7 +1812,7 @@
           
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1823,7 +1823,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2882,8 +2945,8 @@
                   
 
 
-<h1 id="service-center">使用 service-center</h1>
-<p>ServcieComb service-center 提供了完备的注册发现机制, 是 Java Chassis 缺省使用的注册发现机制。 </p>
+<h1 id="service-center">使用 Service Center</h1>
+<p>ServcieComb Service Center 提供了完备的注册发现机制, 是 Java Chassis 缺省使用的注册发现机制。 </p>
 <p>服务中心支持使用 <code>PULL</code> 和 <code>PUSH</code> 两种模式通知实例变化, 开发者可以配置服务中心集群地址、连接参数以及心跳管理等。</p>
 <ul>
 <li>表1-1 访问服务中心常用的配置项</li>
@@ -2936,8 +2999,6 @@
 </tr>
 </tbody>
 </table>
-<p>servicecomb 与服务中心采用 HTTP 进行交互, HTTP client 相关配置可以参
-考 <a href="../config-reference/service-center-client.html">Service Center Client 配置项</a></p>
 <p>使用服务中心需要确保下面的软件包引入:</p>
 <pre><code>  &lt;dependency&gt;
     &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
@@ -3077,7 +3138,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/catalog/service-package-run.html b/content/references/java-chassis/zh_CN/registry/zookeeper.html
similarity index 87%
copy from content/references/java-chassis/zh_CN/catalog/service-package-run.html
copy to content/references/java-chassis/zh_CN/registry/zookeeper.html
index 91f0f8b..6faa4fb 100644
--- a/content/references/java-chassis/zh_CN/catalog/service-package-run.html
+++ b/content/references/java-chassis/zh_CN/registry/zookeeper.html
@@ -9,18 +9,22 @@
       
       
       
+        <link rel="prev" href="nacos.html">
+      
+      
+        <link rel="next" href="local-registry.html">
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
-        <title>Service package run - Java Chassis 3 开发指南</title>
+        <title>使用ZooKeeper - Java Chassis 3 开发指南</title>
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -58,7 +62,7 @@
     <div data-md-component="skip">
       
         
-        <a href="#standalone" class="md-skip">
+        <a href="#zookeeper" class="md-skip">
           Skip to content
         </a>
       
@@ -94,7 +98,7 @@
         <div class="md-header__topic" data-md-component="header-topic">
           <span class="md-ellipsis">
             
-              Service package run
+              使用ZooKeeper
             
           </span>
         </div>
@@ -1734,17 +1738,19 @@
       
   
   
+    
+  
   
   
     
     
     
     
-    <li class="md-nav__item md-nav__item--nested">
+    <li class="md-nav__item md-nav__item--active md-nav__item--nested">
       
         
         
-        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" >
+        <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_12" checked>
         
           
           <label class="md-nav__link" for="__nav_12" id="__nav_12_label" tabindex="0">
@@ -1758,7 +1764,7 @@
             <span class="md-nav__icon md-icon"></span>
           </label>
         
-        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
+        <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="true">
           <label class="md-nav__title" for="__nav_12">
             <span class="md-nav__icon md-icon"></span>
             多样化的服务注册与发现功能
@@ -1772,7 +1778,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/introduction.html" class="md-nav__link">
+      <a href="introduction.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1793,11 +1799,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/service-center.html" class="md-nav__link">
+      <a href="service-center.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1814,11 +1820,11 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/nacos.html" class="md-nav__link">
+      <a href="nacos.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
   </span>
   
 
@@ -1832,10 +1838,80 @@
                 
   
   
+    
+  
+  
+  
+    <li class="md-nav__item md-nav__item--active">
+      
+      <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
+      
+      
+        
+      
+      
+        <label class="md-nav__link md-nav__link--active" for="__toc">
+          
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
+  </span>
+  
+
+          <span class="md-nav__icon md-icon"></span>
+        </label>
+      
+      <a href="zookeeper.html" class="md-nav__link md-nav__link--active">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
+  </span>
+  
+
+      </a>
+      
+        
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+  
+  
+  
+    
+  
+  
+    <label class="md-nav__title" for="__toc">
+      <span class="md-nav__icon md-icon"></span>
+      Table of contents
+    </label>
+    <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+      
+        <li class="md-nav__item">
+  <a href="#zookeeper_1" class="md-nav__link">
+    <span class="md-ellipsis">
+      ZooKeeper使用认证
+    </span>
+  </a>
+  
+</li>
+      
+    </ul>
+  
+</nav>
+      
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
   
   
     <li class="md-nav__item">
-      <a href="../registry/local-registry.html" class="md-nav__link">
+      <a href="local-registry.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1856,7 +1932,7 @@
   
   
     <li class="md-nav__item">
-      <a href="../registry/distributed.html" class="md-nav__link">
+      <a href="distributed.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
@@ -1961,11 +2037,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2184,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2310,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2765,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2776,6 +2894,8 @@
   
   
   
+    
+  
   
     <label class="md-nav__title" for="__toc">
       <span class="md-nav__icon md-icon"></span>
@@ -2784,18 +2904,9 @@
     <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
       
         <li class="md-nav__item">
-  <a href="#standalone" class="md-nav__link">
+  <a href="#zookeeper_1" class="md-nav__link">
     <span class="md-ellipsis">
-      以standalone模式打包
-    </span>
-  </a>
-  
-</li>
-      
-        <li class="md-nav__item">
-  <a href="#web" class="md-nav__link">
-    <span class="md-ellipsis">
-      以WEB容器模式打包
+      ZooKeeper使用认证
     </span>
   </a>
   
@@ -2816,12 +2927,100 @@
                   
 
 
-  <h1>Service package run</h1>
-
-<h2 id="standalone">以standalone模式打包</h2>
-<p>一个Standalone的容器,以简单的Main加载Spring启动,因为服务通常不需要Tomcat/JBoss等Web容器的特性,没必要用Web容器去加载服务。微框架提供了standalone部署运行模式,服务容器只是一个简单的Main方法,并加载一个简单的Spring容器,用于暴露服务。</p>
-<h2 id="web">以WEB容器模式打包</h2>
-<p>如果需要将该微服务加载到web容器中启动运行时,需要新建一个servlet工程包装一下,该servlet工程,根据需要,可以不写或写少量的引导代码即可。</p>
+<h1 id="zookeeper">使用 ZooKeeper</h1>
+<p>可以通过 <a href="https://zookeeper.apache.org/index.html">ZooKeeper官网</a> 下载和安装 ZooKeeper。</p>
+<p>使用ZooKeeper需要确保下面的软件包引入:</p>
+<pre><code>&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;
+  &lt;artifactId&gt;registry-zookeeper&lt;/artifactId&gt;
+&lt;/dependency&gt;
+</code></pre>
+<ul>
+<li>表1-1 访问ZooKeeper常用的配置项</li>
+</ul>
+<table>
+<thead>
+<tr>
+<th style="text-align: left;">配置项</th>
+<th style="text-align: left;">默认值</th>
+<th style="text-align: left;">是否必选</th>
+<th style="text-align: left;">含义</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.enabled</td>
+<td style="text-align: left;">true</td>
+<td style="text-align: left;">是</td>
+<td style="text-align: left;">是否启用。</td>
+</tr>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.connectString</td>
+<td style="text-align: left;">127.0.0.1:2181</td>
+<td style="text-align: left;">是</td>
+<td style="text-align: left;">ZooKeeper的地址信息,可以配置多个,用逗号分隔。</td>
+</tr>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.authenticationSchema</td>
+<td style="text-align: left;">空</td>
+<td style="text-align: left;">否</td>
+<td style="text-align: left;">认证方式,目前只能配置为 digest。</td>
+</tr>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.authenticationInfo</td>
+<td style="text-align: left;">空</td>
+<td style="text-align: left;">否</td>
+<td style="text-align: left;">当认证方式为 digest 的时候,配置用户名密码信息,比如: user:password</td>
+</tr>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.connectionTimeoutMillis</td>
+<td style="text-align: left;">1000</td>
+<td style="text-align: left;">否</td>
+<td style="text-align: left;">连接超时时间</td>
+</tr>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.sessionTimeoutMillis</td>
+<td style="text-align: left;">60000</td>
+<td style="text-align: left;">否</td>
+<td style="text-align: left;">会话超时时间</td>
+</tr>
+<tr>
+<td style="text-align: left;">servicecomb.registry.zk.enableSwaggerRegistration</td>
+<td style="text-align: left;">false</td>
+<td style="text-align: left;">否</td>
+<td style="text-align: left;">是否注册契约</td>
+</tr>
+</tbody>
+</table>
+<h2 id="zookeeper_1">ZooKeeper使用认证</h2>
+<p>ZooKeeper使用认证详细情况可以参考官网。这里给出核心重要的步骤,本步骤基于Zookeeper 3.8.3版本进行验证。 </p>
+<ol>
+<li>
+<p>修改 zoo.cfg</p>
+<p>在配置文件增加。其中 <code>sessionRequireClientSASLAuth</code> 指定了必须登录才能够访问 Zookeeper。 </p>
+</li>
+</ol>
+<pre><code>authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
+sessionRequireClientSASLAuth=true
+</code></pre>
+<ol>
+<li>修改 java.env</li>
+</ol>
+<p>在配置文件增加。 其中 <code>file.conf</code> 是第3步增加的文件路径</p>
+<pre><code>SERVER_JVMFLAGS=&quot;-Djava.security.auth.login.config=/opt/file.conf&quot;
+</code></pre>
+<ol>
+<li>
+<p>增加 file.conf</p>
+<p>配置文件指定合法的登录用户。 </p>
+</li>
+</ol>
+<pre><code>Server {
+ org.apache.zookeeper.server.auth.DigestLoginModule required
+ user_super=&quot;adminsecret&quot;
+ user_bob=&quot;bobsecret&quot;;
+};
+</code></pre>
 
 
 
@@ -2871,7 +3070,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/search/search_index.json b/content/references/java-chassis/zh_CN/search/search_index.json
index 959defc..12161a7 100644
--- a/content/references/java-chassis/zh_CN/search/search_index.json
+++ b/content/references/java-chassis/zh_CN/search/search_index.json
@@ -1 +1 @@
-{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"\u6982\u8ff0","text":"<p>Java Chassis \u7ed9\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u4e2a\u5feb\u901f\u6784\u5efa\u5fae\u670d\u52a1\u7684 JAVA SDK \u3002\u5b83\u5305\u542b\u5982\u4e0b\u7279\u6027\uff1a</p> <ul> <li>\u591a\u79cd\u5f00\u53d1\u98ce\u683c\uff0cREST(JAX-RS\u3001Spring MVC\uff09\u548c RPC</li> <li>\u591a\u79cd\u901a\u4fe1\u534f\u8bae, HTTP over Vert.x\u3001Http Over Servlet\u3001Highway \u7b49</li> <li>\u7edf\u4e00\u4e00\u81f4\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u3001\u670d\u52a1\u6d88\u8d39\u8005\u5904\u7406\u94fe\uff0c\u4ee5\u53ca\u57fa\u4e8e\u5951\u7ea6\u7684\u5f00\u7bb1\u5373\u7528\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b</li> </ul> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7Java Chassis\u8bbe\u8ba1\u53c2\u8003\u4e86\u89e3 Java Chassis \u7684\u8bbe\u8ba1\u601d\u8def\u3002</p> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u94fe\u63a5\u83b7\u53d6\u5176\u4ed6\u7248\u672c\u7684\u5e2e\u52a9\u6587\u6863\u3002</p> \u9002\u7528\u7248\u672c \u6b63\u5f0f\u53d1\u5e03\u5730\u5740 \u9884\u89c8\u7248\u672c\u5730\u5740 Java Chassis 3 \u4e2d\u6587, English \u4e2d\u6587, English Java Chassis 2 \u4e2d\u6587, English \u4e2d\u6587, English Java Chassis 1 \u4e2d\u6587, English \u4e2d\u6587, English"},{"location":"index.html#_2","title":"\u672f\u8bed\u8868","text":"\u7f29\u7565\u8bed \u82f1\u6587\u8bcd\u6c47 \u4e2d\u6587\u8bcd\u6c47 \u89e3\u91ca Application Application \u5e94\u7528 \u5e94\u7528\u4ee3\u8868\u4e00\u4e2a\u8f6f\u4ef6\u5e94\u7528\u7684\u903b\u8f91\u5b9e\u4f53\uff0c\u8868\u793a\u4e00\u4e2a\u6709\u4e1a\u52a1\u529f\u80fd\u5448\u73b0\u7ed9\u7528\u6237\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5e94\u7528\u3002\u4e00\u4e2a\u4ee5\u5fae\u670d\u52a1\u5316\u67b6\u6784\u6784\u5efa\u7684\u5e94\u7528\u901a\u5e38\u7531\u591a\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\u3002 Service Service \u5fae\u670d\u52a1 \u5fae\u670d\u52a1\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7SOA\u67b6\u6784\uff0c\u901a\u5e38\u7528\u6765\u63cf\u8ff0\u5e7f\u6cdb\u7528\u4e8e\u4e91\u5e94\u7528\u3001\u4e92\u8054\u7f51\u5e94\u7528\u7684\u4e00\u79cd\u677e\u8026\u5408\u5206\u5e03\u5f0f\u67b6\u6784\u3002 Instance Instance \u5fae\u670d\u52a1\u5b9e\u4f8b \u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6700\u5c0f\u8fd0\u884c\u548c\u90e8\u7f72\u5355\u5143\uff0c\u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a\u5e94\u7528\u8fdb\u7a0b\u3002 Provider Provider \u670d\u52a1\u63d0\u4f9b\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u88ab\u8c03\u7528\u4e00\u65b9\u7684\u670d\u52a1\u3002 Consumer Consumer \u670d\u52a1\u6d88\u8d39\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u8c03\u7528\u53d1\u8d77\u65b9\u7684\u670d\u52a1\u3002 Schema Schema \u5fae\u670d\u52a1\u5951\u7ea6 \u5fae\u670d\u52a1\u5951\u7ea6\u662f\u5bf9\u5916\u63a5\u53e3\u7684OpenAPI\u8868\u793a\u3002OpenAPI\u589e\u5f3a\u4e86\u5fae\u670d\u52a1\u7684\u53ef\u89c1\u6027\uff0c\u65b9\u4fbf\u670d\u52a1\u7684\u5206\u53d1\u3001\u4f7f\u7528\u548c\u6cbb\u7406\u3002 Code Style Code Style \u7f16\u7a0b\u6a21\u578b \u7f16\u7a0b\u6a21\u578b\u6307\u5982\u4f55\u8fdb\u884c\u670d\u52a1\u63a5\u53e3\u5f00\u53d1\u548c\u8c03\u7528\uff0cJava Chassis\u63d0\u4f9b\u4e86Spring Web MVC\u3001JAX RS\u7b49\u7f16\u7a0b\u6a21\u578b\u3002\u7f16\u7a0b\u6a21\u578b\u72ec\u7acb\u4e8e\u5904\u7406\u94fe\u548c\u901a\u4fe1\u6a21\u578b Filter Filter \u5904\u7406\u94fe \u5904\u7406\u94fe\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5305\u62ec\u7f16\u89e3\u7801\u3001\u670d\u52a1\u6cbb\u7406\u3001\u7f51\u7edc\u53d1\u9001\u7b49\u3002 Transport Transport \u901a\u4fe1\u6a21\u578b \u901a\u4fe1\u6a21\u578b\u5b9a\u4e49\u4e86\u5bf9\u8c61\u5982\u4f55\u7f16\u89e3\u7801\uff0c\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u4f20\u8f93\u7b49\u3002Java Chassis\u63d0\u4f9b\u4e86REST\u3001HIGHWAY\u7b49\u901a\u4fe1\u6a21\u578b\u3002 Load Balance Load Balance \u8d1f\u8f7d\u5747\u8861 \u5f53\u5e94\u7528\u8bbf\u95ee\u4e00\u4e2a\u5177\u6709\u591a\u4e2a\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u65f6\uff0c\u4f1a\u6d89\u53ca\u5230\u8def\u7531\u8d1f\u8f7d\u5747\u8861\u3002\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u652f\u6301\u968f\u673a\uff0c\u8f6e\u8be2\u3001\u4f1a\u8bdd\u4fdd\u6301\u548c\u57fa\u4e8e\u54cd\u5e94\u65f6\u95f4\u7684\u6743\u503c\u7b49\u591a\u79cd\u8d1f\u8f7d\u5747\u8861\u8def\u7531\u7b56\u7565\u3002 Rate Limiting Rate Limiting \u9650\u6d41 \u5f53\u8d44\u6e90\u6210\u4e3a\u74f6\u9888\u65f6\uff0c\u670d\u52a1\u6846\u67b6\u9700\u8981\u5bf9\u6d88\u8d39\u8005\u7684\u8bbf\u95ee\u8bf7\u6c42\u505a\u9650\u6d41\uff0c\u542f\u52a8\u6d41\u63a7\u4fdd\u62a4\u673a\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u8005\u7aef\u548c\u63d0\u4f9b\u8005\u7aef\u5747\u53ef\u8fdb\u884c\u6d41\u91cf\u63a7\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u67d0\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u8bf7\u6c42\u9891\u7387\uff1b\u5728\u670d\u52a1\u63d0\u4f9b\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u6bcf\u4e2a\u5fae\u670d\u52a1\u6d88\u8d39\u7aef\u53d1\u8fc7\u6765\u7684\u8bf7\u6c42\u9891\u7387\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u670d\u52a1\u63d0\u4f9b\u7aef\u8d44\u6e90\u6d88\u8017\u60c5\u51b5\u786e\u5b9a\u603b\u7684\u8bf7\u6c42\u9891\u7387\u9650\u5236\uff0c\u9632\u6b62\u670d\u52a1\u56e0\u8d44\u6e90\u8017\u5c3d\u800c\u5d29\u6e83\u3002 Service Degrade Service Degrade \u964d\u7ea7 \u670d\u52a1\u964d\u7ea7\u4e3b\u8981\u5305\u62ec\u5c4f\u853d\u964d\u7ea7\u548c\u5bb9\u9519\u964d\u7ea7\u4e24\u79cd\u7b56\u7565\uff1a\u5c4f\u853d\u964d\u7ea7\u662f\u6307\u5f53\u5916\u754c\u7684\u89e6\u53d1\u6761\u4ef6\u8fbe\u5230\u67d0\u4e2a\u4e34\u754c\u503c\u65f6\uff0c\u7531\u8fd0\u7ef4\u4eba\u5458/\u5f00\u53d1\u4eba\u5458\u51b3\u7b56\uff0c\u5bf9\u67d0\u7c7b\u6216\u8005\u67d0\u4e2a\u670d\u52a1\u8fdb\u884c\u5f3a\u5236\u964d\u7ea7\u3002\u5bb9\u9519\u964d\u7ea7\u662f\u6307\u5f53\u975e\u6838\u5fc3\u670d\u52a1\u4e0d\u53ef\u7528\u65f6\uff0c\u53ef\u4ee5\u5bf9\u6545\u969c\u670d\u52a1\u505a\u4e1a\u52a1\u903b\u8f91\u653e\u901a\uff0c\u4ee5\u4fdd\u969c\u6838\u5fc3\u670d\u52a1\u7684\u8fd0\u884c\u3002 Fault Tolerance Fault Tolerance \u5bb9\u9519 \u5bb9\u9519\u662f\u6d88\u8d39\u8005\u8bbf\u95ee\u670d\u52a1\u65f6\u51fa\u73b0\u5f02\u5e38\u7684\u573a\u666f\u4e0b\u7684\u4e00\u79cd\u5904\u7406\u7b56\u7565\uff0c\u51fa\u73b0\u5f02\u5e38\u540e\u7531\u670d\u52a1\u6846\u67b6\u81ea\u52a8\u9009\u62e9\u65b0\u7684\u670d\u52a1\u8def\u7531\u8fdb\u884c\u8c03\u7528\u3002 Circuit Breaker Circuit Breaker \u7194\u65ad \u5fae\u670d\u52a1\u4e4b\u95f4\u901a\u5e38\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\uff0c\u670d\u52a1\u8c03\u7528\u94fe\u8def\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff0c\u5982\u679c\u94fe\u8def\u4e2d\u4e00\u4e2a\u6216\u591a\u4e2a\u670d\u52a1\u8bbf\u95ee\u5ef6\u8fdf\u8fc7\u9ad8\uff0c\u4f1a\u5bfc\u81f4\u5165\u53e3\u670d\u52a1\u7684\u8bf7\u6c42\u4e0d\u65ad\u5806\u79ef\uff0c\u6301\u7eed\u6d88\u8017\u66f4\u591a\u7684\u7ebf\u7a0b\u3001io\u8d44\u6e90\uff0c\u6700\u7ec8\u7531\u4e8e\u8d44\u6e90\u7d2f\u79ef\u4f7f\u7cfb\u7edf\u51fa\u73b0\u74f6\u9888\uff0c\u9020\u6210\u66f4\u591a\u670d\u52a1\u4e0d\u53ef\u7528\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u7194\u65ad\u673a\u5236\u5c31\u662f\u9488\u5bf9\u4e0a\u8ff0\u573a\u666f\u8bbe\u8ba1\u7684\uff0c\u5f53\u67d0\u4e2a\u76ee\u6807\u670d\u52a1\u54cd\u5e94\u7f13\u6162\u6216\u8005\u6709\u5927\u91cf\u8d85\u65f6\u60c5\u51b5\u53d1\u751f\u65f6\uff0c\u7194\u65ad\u8be5\u670d\u52a1\u7684\u8c03\u7528\uff0c\u5bf9\u4e8e\u540e\u7eed\u8c03\u7528\u8bf7\u6c42\uff0c\u4e0d\u518d\u7ee7\u7eed\u8c03\u7528\u76ee\u6807\u670d\u52a1\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u5feb\u901f\u91ca\u653e\u8d44\u6e90\uff0c\u7b49\u5230\u8be5\u76ee\u6807\u670d\u52a1\u60c5\u51b5\u597d\u8f6c\u518d\u6062\u590d\u8c03\u7528\u3002 Bulkhead Bulkhead \u9694\u79bb\u4ed3 \u9694\u79bb\u4ed3\u662f\u4e00\u79cd\u5f02\u5e38\u68c0\u6d4b\u673a\u5236\uff0c\u5e38\u7528\u7684\u68c0\u6d4b\u65b9\u6cd5\u662f\u8bf7\u6c42\u8d85\u65f6\u3001\u6d41\u91cf\u8fc7\u5927\u7b49\u3002\u4e00\u822c\u7684\u8bbe\u7f6e\u53c2\u6570\u5305\u62ec\u8d85\u65f6\u65f6\u95f4\u3001\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u7b49\uff0c\u5f53\u8d85\u8fc7\u8d85\u65f6\u65f6\u95f4\u6216\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u65f6\uff0c\u8bb0\u5f55\u4e00\u6b21\u5f02\u5e38\uff0c\u5728\u7194\u65ad\u3001\u5b9e\u4f8b\u9694\u79bb\u673a\u5236\u4e2d\uff0c\u7528\u4e8e\u8ba1\u7b97\u9519\u8bef\u7387\u3002 Instance Isolation Instance Isolation \u5b9e\u4f8b\u9694\u79bb \u5b9e\u4f8b\u9694\u79bb\u901a\u8fc7\u68c0\u6d4b\u5b9e\u4f8b\u7684\u9519\u8bef\u7387\u3001\u8d85\u65f6\u8bf7\u6c42\u6570\u7b49\u6307\u6807\uff0c\u77ed\u6682\u7684\u5c4f\u853d\u6545\u969c\u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u964d\u4f4e\u9519\u8bef\u7387\u4ee5\u53ca\u9632\u6b62\u53d1\u751f\u96ea\u5d29\u6548\u5e94\u3002"},{"location":"index.html#_3","title":"\u5e2e\u52a9\u6539\u5584","text":"<ul> <li>Java Chassis\u7684 \u6587\u6863\u6e90\u4ee3\u7801 \u6258\u7ba1\u5728Github\uff0c \u53ef\u4ee5\u4e0b\u8f7d\u540e \uff0c\u91c7\u7528 MkDocs \u672c\u5730\u4f7f\u7528\u3002 \u4e5f\u53ef\u4ee5\u5728 Issues \u63d0\u4ea4\u6539\u8fdb\u5efa\u8bae\u3002 </li> </ul> <p>\u5907\u6ce8\uff1aJava Chassis 2\u548cJava Chassis 3\u7f3a\u5c11\u82f1\u6587\u7ffb\u8bd1\uff0c\u975e\u5e38\u671f\u5f85\u60a8\u7684\u5e2e\u52a9\u652f\u6301\u3002</p>"},{"location":"introduce3.x.x.html","title":"Java Chassis 3\u7248\u672c\u4ecb\u7ecd","text":"<p>\u76f8\u5bf9\u4e8eJava Chassis 2\uff0cJava Chassis 3\u5728\u4e1a\u52a1\u8fde\u7eed\u6027\u3001\u5f00\u53d1\u6613\u7528\u6027\u3001\u6027\u80fd\u53ef\u9760\u6027\u7b49\u65b9\u9762\u505a\u4e86\u5927\u91cf\u5de5\u4f5c\u3002\u4e3b\u8981\u5305\u62ec\uff1a</p> <ul> <li>\u652f\u6301 JDK 17 \u548c Spring Boot 3\u3002 Java Chassis 3\u5b8c\u5168\u4f7f\u7528JDK 17\u8fdb\u884c\u7f16\u8bd1\uff0c\u5e76\u6839\u636eJDK 17\u7684\u65b0\u7279\u6027\uff0c\u91cd\u6784\u4e86\u90e8\u5206\u4ee3\u7801\uff0c\u8c03\u6574\u4e86\u914d\u5957\u7684\u4e09\u65b9\u8f6f\u4ef6\u9009\u578b\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\uff0c\u8fd0\u884c\u66f4\u52a0\u9ad8\u6548\u3002Java Chassis 3\u5728\u5e95\u5c42\u4f9d\u8d56\u4e0a\u9762\uff0c\u5f7b\u5e95\u62e5\u62b1 Spring Boot 3\uff0c\u5e76\u4f9d\u8d56\u4e8eSpring Boot\u7279\u6027\uff0c\u91cd\u6784\u4e86\u5904\u7406\u94fe\uff08Filter\uff09\u3001\u6ce8\u518c\uff08Registration\uff09\u3001\u53d1\u73b0(Discovery)\u3001\u914d\u7f6e\uff08DynamicPropertiesSource)\u3001\u8d1f\u8f7d\u5747\u8861\uff08DiscoveryTree\u3001DiscoveryFilter)\u7b49\u6838\u5fc3\u7ec4\u4ef6\uff0c\u4ee5\u652f\u6301\u66f4\u52a0\u4e30\u5bcc\u7684\u5e94\u7528\u5f00\u53d1\u751f\u6001\uff0c\u964d\u4f4e\u6269\u5c55\u5b9e\u73b0\u7684\u96be\u5ea6\u3002</li> <li>\u652f\u6301OpenAPI 3.0.x\u3002 Java Chassis 3\u66f4\u65b0\u5347\u7ea7\u4e86OpenAPI 3.0.x\uff0c\u5e76\u5728\u6b64\u57fa\u7840\u4e0a\uff0c\u63d0\u4f9b\u4e86 Content-Type \u4e3a application/protobuf\uff0c application/text\u7b49\u652f\u6301\u3002\u8fd9\u6837\u53ef\u4ee5\u5728HTTP/HTTP2\u7b49\u534f\u8bae\u57fa\u7840\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u66f4\u591a\u7684\u5e8f\u5217\u5316\u534f\u8bae\u652f\u6301\uff0c\u4ee5\u63d0\u5347\u5e8f\u5217\u5316\u7684\u6027\u80fd\u3002 </li> <li>\u4f7f\u7528\u65b0\u7684\u5904\u7406\u94fe\u673a\u5236\uff08Filter\uff09\u53d6\u4ee3\u65e7\u7684\u5904\u7406\u94fe\u673a\u5236(Handler)\uff0c\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u5f02\u6b65\u5904\u7406\u652f\u6301\u3002\u7edf\u4e00\u4e86Handler/HttServerFilter/HttpClientFilter\u7b49\u673a\u5236\uff0c\u90fd\u4f7f\u7528Filter\u6765\u8868\u8fbe\u3002 \u5c06Handler\u7684\u914d\u7f6e\u6587\u4ef6\u7f16\u6392\uff0c\u4fee\u6539\u4e3aSpring Boot\u7684\u4f9d\u8d56\u6ce8\u5165\uff0c\u7b80\u5316\u7528\u6237\u5f00\u53d1\u548c\u4f7f\u7528Filter\u3002 </li> <li>\u7b80\u5316\u4e86\u6ce8\u518c\u53d1\u73b0\uff08Discovery\u3001Registration\uff09\u63a5\u53e3\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u52a0\u7b80\u5355\u7684\u9002\u914d\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\uff0c\u63d0\u4f9b\u4e86\u672c\u5730\u6ce8\u518c\uff08Local\uff09\u3001\u5e7f\u64ad\uff08zero-config\uff09\u3001ServiceComb \u6ce8\u518c\u4e2d\u5fc3\uff08SC)\u3001Nacos\u6ce8\u518c\u4e2d\u5fc3\u7b49\u9ed8\u8ba4\u5b9e\u73b0\u3002 </li> <li>\u63d0\u4f9b\u4e86\u5168\u65b0\u7684\u5b9e\u4f8b\u7ba1\u7406\u548c\u8d1f\u8f7d\u5747\u8861\u673a\u5236\uff0c\u4ee5\u4fdd\u8bc1\u6ce8\u518c\u4e2d\u5fc3\u7f51\u7edc\u5206\u533a\u6545\u969c\u7b49\u573a\u666f\u4e0b\u7684\u53ef\u9760\u6027\u3002\u8be5\u673a\u5236\u80fd\u591f\u5728\u6ce8\u518c\u4e2d\u5fc3\u4e0d\u540c\u7684\u6545\u969c\u573a\u666f\u4e0b\u4fdd\u969c\u5fae\u670d\u52a1\u81ea\u8eab\u8fd0\u884c\u7684\u53ef\u9760\u6027\uff0c\u964d\u4f4e\u4e86\u6ce8\u518c\u4e2d\u5fc3\u53ef\u9760\u6027\u5bf9\u4e8e\u5e94\u7528\u672c\u8eab\u8fd0\u884c\u53ef\u9760\u6027\u7684\u5f71\u54cd\uff0c\u4e3a\u9009\u62e9\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u73b0\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u53ef\u80fd\u6027\u3002 </li> <li>\u7b80\u5316\u4e86\u914d\u7f6e\uff08DynamicPropertiesSource)\u63a5\u53e3\uff0c\u66f4\u597d\u7684\u652f\u6301Spring Boot\u7684Environment\u548cPropertySource\u7b49\u673a\u5236\u3002\u505a\u5230\u548cSpring Boot\u914d\u7f6e\u673a\u5236\u5b8c\u5168\u878d\u5408\u3002\u540c\u65f6\u4fdd\u7559\u4e86DynamicProperties\u3001PriorityPropertyManager\u7b49\u914d\u7f6e\u673a\u5236\uff0c\u5f25\u8865Spring Boot\u914d\u7f6e\u4f7f\u7528\u5728\u53d8\u66f4\u4e8b\u4ef6\u76d1\u542c\u3001\u4f18\u5148\u7ea7\u914d\u7f6e\u7b49\u65b9\u9762\u7684\u4e0d\u8db3\u3002 \u63d0\u4f9b\u4e86ServiceComb Kie\u914d\u7f6e\u4e2d\u5fc3\u3001Nacos\u914d\u7f6e\u4e2d\u5fc3\u3001Apollo\u914d\u7f6e\u4e2d\u5fc3\u7b49\u9ed8\u8ba4\u5b9e\u73b0\u3002</li> <li>\u79fb\u9664\u4e86\u5f71\u54cd\u4e1a\u52a1\u8fde\u7eed\u6027\u7684\u7ec4\u4ef6\uff0c\u5e76\u63d0\u4f9b\u4e86\u66ff\u4ee3\u65b9\u6848\u3002\u5305\u62ecHystrix\u3001Archaius\u3001Commons Configuration\u3001Ribbon\u3001Spectator\u7b49\u3002 </li> </ul>"},{"location":"build-consumer/3rd-party-service-invoke.html","title":"\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1","text":""},{"location":"build-consumer/3rd-party-service-invoke.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u7b2c\u4e09\u65b9\u670d\u52a1\u6ca1\u6709\u5728\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\uff0c\u4e0d\u5b58\u5951\u7ea6\u4fe1\u606f\uff0cJava Chassis \u63d0\u4f9b\u4e00\u79cd\u900f\u660e\u7684\u65b9\u5f0f\u8bbf\u95ee\u7b2c\u4e09\u65b9\u670d\u52a1\u3002  \u4f7f\u7528\u8be5\u529f\u80fd\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u65f6\uff0c\u53d1\u5f80\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u8bf7\u6c42\u4f1a\u7ecf\u8fc7consumer\u7aefhandler\u94fe\u3001HttpClientFilter\u7684\u5904\u7406\uff0c \u5373\u8be5\u529f\u80fd\u652f\u6301\u5bf9\u7b2c\u4e09\u65b9\u670d\u52a1\u8c03\u7528\u7684\u6cbb\u7406\u529f\u80fd\uff0c\u5e76\u4e14\u4e5f\u652f\u6301ServiceComb\u65e2\u6709\u7684\u7528\u6237\u81ea\u5b9a\u4e49\u6269\u5c55\u5904\u7406\u673a\u5236\u3002 </p> <p>\u53e6\u5916\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u4f7f\u7528 \u672c\u5730\u6ce8\u518c\u53d1\u73b0 \u5b9e\u73b0\u7b2c\u4e09\u65b9\u8c03\u7528\uff0c \u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0\u7684\u6548\u679c\u662f\u4e00\u81f4\u7684\u3002 </p>"},{"location":"build-consumer/3rd-party-service-invoke.html#_3","title":"\u793a\u4f8b\u4ee3\u7801","text":"<ol> <li> <p>\u5047\u8bbe\u7528\u6237\u5728\u672c\u5730\u5f00\u53d1\u4e86\u4e00\u4e2aREST\u670d\u52a1\u4f5c\u4e3a\u7b2c\u4e09\u65b9REST\u670d\u52a1\uff0c\u76d1\u542c\u7aef\u53e3\u53f7\u4e3a8080\uff0c\u5176REST\u63a5\u53e3\u5982\u5951\u7ea6\u6240\u793a\uff1a</p> <pre><code>```yaml\n---\nswagger: \"2.0\"\ninfo:\nversion: \"0.0.1\"\ntitle: \"3rd party REST service for example\"\nbasePath: \"/rest\"\nconsumes:\n- \"application/json\"\nproduces:\n- \"text/plain\"\npaths:\n/{pathVar}:\n  get:\n    operationId: \"testPathVar\"\n    parameters:\n    - name: \"pathVar\"\n      in: \"path\"\n      required: true\n      type: \"string\"\n    responses:\n      200:\n        description: \"response of 200, return \\\"Received, OK. [${pathVar}]\\\"\"\n        schema:\n          type: \"string\"\n```\n</code></pre> </li> <li> <p>\u4e3a\u8c03\u7528\u6b64\u670d\u52a1\uff0c\u9700\u8981\u5148\u6839\u636e\u5176REST\u63a5\u53e3\u7f16\u5199\u4e00\u4e2aJava\u63a5\u53e3\u7c7b\uff0c\u5e76\u6253\u4e0a\u53c2\u6570\u6ce8\u89e3\u3002     Java\u63a5\u53e3\u7c7b\u7684\u7f16\u5199\u65b9\u5f0f\u53c2\u7167\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u5f00\u53d1SpringMVC\u548cJAX-RS\u98ce\u683c\u7684provider\u65b9\u5f0f\u3002     \u63a5\u53e3\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>```java\n@Path(\"/rest\")\n@Api(produces = MediaType.TEXT_PLAIN)\npublic interface VertxServerIntf {\n@Path(\"/{pathVar}\")\n@GET\nString testPathVar(@PathParam(\"pathVar\") String pathVar);\n}\n```\n</code></pre> </li> <li> <p>\u901a\u8fc7\u5b9e\u73b0 <code>ThirdServiceWithInvokerRegister</code> \u6ce8\u518c\u7b2c\u4e09\u65b9\u670d\u52a1\u4fe1\u606f\u3002 \u53ef\u4ee5\u6ce8\u518c\u591a\u4e2a schema\u3002 </p> <pre><code>```java\n@Configuration\npublic class ThirdSvc extends ThirdServiceWithInvokerRegister {\n  public ThirdSvc() {\n    super(\"3rd-svc\");\n\n    addSchema(\"schema-1\", VertxServerIntf.class);\n  }\n}\n```\n</code></pre> <p>\u6ce8\u610f\uff1a java chassis 2.1.3 \u4ee5\u4e0a\u7248\u672c\u624d\u652f\u6301 ThirdServiceWithInvokerRegister\u3002 </p> </li> <li> <p>\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u58f0\u660e\u548c\u8c03\u7528\u65b9\u5f0f\u4e0e\u8c03\u7528ServiceComb provider\u670d\u52a1\u76f8\u540c\uff0c\u6b64\u5904\u4ee5RPC\u8c03\u7528\u65b9\u5f0f\u4e3a\u4f8b\u3002</p> <pre><code>```java\nVertxServerIntf client = BeanUtils.getContext().getBean(VertxServerIntf.class);\nclient.testPathVar(pathVar);\n```\n</code></pre> </li> <li> <p>\u4f7f\u7528\u6cbb\u7406\u529f\u80fd\u3002\u4f7f\u7528\u6cbb\u7406\u529f\u80fd\u7684\u65b9\u6cd5\u4e0e\u666e\u901a\u7684consumer\u8c03\u7528provider\u573a\u666f\u7c7b\u4f3c\u3002\u4ee5\u9650\u6d41\u7b56\u7565\u4e3a\u4f8b\uff0c\u5728consumer   \u670d\u52a1\u7684microservice.yaml\u6587\u4ef6\u4e2d\u8fdb\u884c\u5982\u4e0b\u914d\u7f6e:</p> <pre><code>```yaml\nservicecomb:\n  flowcontrol:\n    Consumer:\n      qps:\n        enabled: true\n        limit:\n          thirdPartyService: 1\n```\n</code></pre> <p>\u6b64\u65f6\u5373\u5c06consumer\u8c03\u7528\u540d\u4e3a<code>thirdPartyService</code>\u7684\u7b2c\u4e09\u65b9REST\u670d\u52a1\u7684QPS\u8bbe\u7f6e\u4e3a1\u3002\u5f53consumer\u8c03\u7528<code>thirdPartyService</code>\u7684\u6d41\u91cf\u9ad8\u4e8e1QPS\u65f6\uff0c \u5c06\u4f1a\u5f97\u5230<code>429 Too Many Requests</code>\u7684<code>InvocationException</code>\u5f02\u5e38\u3002</p> </li> <li> <p>\u914d\u7f6e\u7b2c\u4e09\u5206\u670d\u52a1\u7684\u5b9e\u4f8b\u4fe1\u606f</p> <pre><code>3rd-svc:\n  urls:\n    - http://localhost:8080\n</code></pre> </li> </ol>"},{"location":"build-consumer/basics.html","title":"\u57fa\u7840\u6982\u5ff5","text":"<p>Java Chassis \u662f\u4ee5 OpenAPI \u4e3a\u57fa\u7840\u7684\u5fae\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u3002\u4e00\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7 OpenAPI \u8fdb\u884c\u63cf\u8ff0\u3002 \u5fae\u670d\u52a1\u6d88\u8d39\u8005\u548c\u63d0\u4f9b\u8005\u5b8c\u5168\u89e3\u8026\uff0c\u5f00\u53d1\u6d88\u8d39\u8005\u65e0\u9700\u77e5\u9053\u63d0\u4f9b\u8005\u7684\u5f00\u53d1\u65b9\u5f0f\uff0c\u53ea\u9700\u8981\u77e5\u9053\u63d0\u4f9b\u8005\u7684OpenAPI\u4fe1\u606f\u3002 </p> <p>\u672c\u7ae0\u8282\u4ecb\u7ecd\u57fa\u4e8e\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005-\u57fa\u7840\u6982\u5ff5\u63d0\u4f9b\u7684 <code>HelloWorld</code> \u5951\u7ea6, \u63cf\u8ff0\u5982\u4f55\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002</p> <pre><code>openapi: 3.0.1\ninfo:\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /helloWorld:\n    post:\n      operationId: helloWorld\n      requestBody:\n        content:\n          application/json:\n            schema:\n              type: string\n          application/protobuf:\n            schema:\n              type: string\n          text/plain:\n            schema:\n              type: string\n        x-name: name\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents: {}\n</code></pre>"},{"location":"build-consumer/basics.html#restful-restoperations","title":"Restful\u98ce\u683c - \u4f7f\u7528 RestOperations","text":"<pre><code>RestOperations restOperation = \n    RestTemplateBuilder.create();\nString result = restOperation\n    .postForObject(\"servicecomb://provider-service/helloWorld\", \n    \"World\", String.class);\nAssertions.assertTrue(\"Hello World\", result);\n</code></pre> <p>\u4f7f\u7528Restful\u98ce\u683c\u5f00\u53d1\u6d88\u8d39\u8005\uff0c\u9700\u8981\u5173\u6ce8Open API\u7684Path\u3001\u53c2\u6570\u4f4d\u7f6e\uff08Body\u3001Header\u7b49\uff09\u3001\u53c2\u6570\u7c7b\u578b\u4ee5\u53ca\u54cd\u5e94\u7c7b\u578b\uff0c\u5e76\u4e14\u4f7f\u7528RestOperations\u7684\u76f8\u5173\u63a5\u53e3\u548c\u53c2\u6570\u4e00\u4e00\u5bf9\u5e94\u3002 \u5176\u4e2d <code>servicecomb://provider-service</code> \u8868\u793a\u76ee\u6807\u5fae\u670d\u52a1\uff0c\u4f7f\u7528\u76ee\u6807\u5fae\u670d\u52a1\u7684\u670d\u52a1\u540d\u79f0\u3002 </p>"},{"location":"build-consumer/basics.html#rpc","title":"RPC\u98ce\u683c","text":"<p>RPC\u98ce\u683c\u662f\u4e00\u79cd\u8bed\u8a00\u6709\u5173\u7684\u5f00\u53d1\u65b9\u6cd5\uff0c\u66f4\u52a0\u8d34\u8fd1\u8bed\u8a00\u7684\u4f7f\u7528\u4e60\u60ef\u3002\u8bbf\u95ee\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u670d\u52a1\uff0c\u5c31\u50cf\u8c03\u7528\u672c\u5730\u7684API\u4e00\u6837\u3002 </p> <p>\u4f7f\u7528RPC\u98ce\u683c\uff0c\u9996\u5148\u9700\u8981\u58f0\u660e\u4e00\u4e2a <code>interface</code> \u4e0e\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u5bf9\u5e94\u3002 </p> <pre><code>interface HelloWorldService {\n  String helloWorld(String name);\n}\n</code></pre> <p>\u58f0\u660e <code>interface</code> \u4f1a\u4f7f\u7528\u5230 Open API \u7684 <code>operationId</code>\u3001 \u53c2\u6570\u540d\u79f0\u548c\u53c2\u6570\u7c7b\u578b\u3001\u54cd\u5e94\u7c7b\u578b\u3002 \u53ea\u9700\u8981\u4fdd\u8bc1\u65b9\u6cd5\u540d\u7b49\u4e8e<code>operationId</code>\uff0c \u53c2\u6570\u540d\u79f0\u7b49\u4e8eOpen API\u91cc\u9762\u7684\u53c2\u6570\u540d\u79f0\uff08\u5bf9\u4e8ebody\uff0c\u4f7f\u7528\u6269\u5c55\u5c5e\u6027x-name\uff09\u3002 </p> <p>\u4f7f\u7528\u8d77\u6765\u5c31\u975e\u5e38\u7b80\u5355\u4e86\uff1a</p> <pre><code>@RpcReference(schemaId = \"HelloWorld\", \n    microserviceName = \"provider-service\")\nprivate HelloWorldService helloWorldService;\n\nString result = helloWorldService.helloWorld(\"World\");\nAssertions.assertTrue(\"Hello World\", result);\n</code></pre> <p>\u5728\u5177\u4f53\u7684\u5f00\u53d1\u5b9e\u8df5\u4e2d\uff0c\u5f00\u53d1Provider\u5b9a\u4e49interface\uff08API\uff09\uff0c\u7136\u540eConsumer\u4f9d\u8d56Provider\u53d1\u5e03\u7684\u5305\uff0c\u76f4\u63a5\u4f7f\u7528Provider\u7684\u63a5\u53e3\u4e5f\u662f\u975e\u5e38\u5e38\u89c1\u7684\u3002\u5982\u679c\u5df2\u7ecf\u4e60\u60ef\u8fd9\u79cd\u4f7f\u7528\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\u3002 \u5728\u8ba8\u8bba\u5b8c\u5168\u89e3\u8026\u548cAPI\u4f9d\u8d56\u7684\u597d\u5904\u7684\u65f6\u5019\uff0c\u5b58\u5728\u975e\u5e38\u590d\u6742\u548c\u7ec6\u8282\u7684\u5dee\u5f02\u3002\u5b8c\u5168\u89e3\u8026\u7684\u5f62\u5f0f\uff0c\u53ef\u4ee5\u7ed9\u72ec\u7acb\u5f00\u53d1\u5e26\u6765\u5f88\u5927\u7684\u7075\u6d3b\u6027\uff0c\u80fd\u591f\u63d0\u9ad8\u5e76\u884c\u5f00\u53d1\u7684\u6548\u7387\u3002 </p>"},{"location":"build-consumer/basics.html#-invokerutils","title":"\u6cdb\u5316\u8c03\u7528 - InvokerUtils","text":"<pre><code>Map&lt;String, Object&gt; args = new HashMap&lt;&gt;();\nargs.put(\"name\", \"World\");\nString result = InvokerUtils.syncInvoke(\"provider-service\",\n    \"HelloWorld\", \"helloWorld\", args, String.class));\nAssertions.assertTrue(\"Hello World\", result);\n</code></pre> <p>\u6cdb\u5316\u8c03\u7528\u4f7f\u7528\u670d\u52a1\u540d\u3001\u5951\u7ea6\u540d\u79f0\u3001<code>operationId</code>\u3001 \u53c2\u6570\u76f4\u63a5\u8bf7\u6c42\u670d\u52a1\u63d0\u4f9b\u8005\uff0c\u5bf9\u5e94\u5230 Open API \u7684<code>operationId</code>\u3001\u53c2\u6570\u540d\u79f0\u548c\u53c2\u6570\u7c7b\u578b\u3001\u54cd\u5e94\u7c7b\u578b\u3002</p>"},{"location":"build-consumer/code-first.html","title":"Code first","text":""},{"location":"build-consumer/code-first.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u670d\u52a1\u6d88\u8d39\u8005\u53ef\u4ee5\u4e0d\u7528\u663e\u5f0f\u5730\u5c06\u5951\u7ea6\u5b58\u653e\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\uff0c\u5f53\u7a0b\u5e8f\u542f\u52a8\u65f6\uff0cServiceComb\u6846\u67b6\u4f1a\u81ea\u52a8\u6839\u636emicroservice.yaml\u6587\u4ef6\u4e2d\u914d\u7f6e\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u5fae\u670d\u52a1\u540d\u79f0\u548c\u7248\u672c\u53f7\uff0c\u4ece\u670d\u52a1\u4e2d\u5fc3\u62c9\u53d6\u5951\u7ea6\u4fe1\u606f\u3002</p>"},{"location":"build-consumer/code-first.html#api","title":"\u6d89\u53caAPI","text":"<p>\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u53ef\u7528\u4e8eRestTemplate\u3001\u900f\u660eRPC\u4e24\u79cd\u670d\u52a1\u6d88\u8d39\u8005\u5f00\u53d1\u6a21\u5f0f\uff0c\u4f7f\u7528RestTemplate\u7684\u5f00\u53d1\u65b9\u5f0f\u53c2\u89c14.3 \u4f7f\u7528RestTemplate\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002</p>"},{"location":"build-consumer/code-first.html#_2","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u672c\u5c0f\u8282\u4ee5\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4e3a\u4f8b\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002</p> <p>\u670d\u52a1\u6d88\u8d39\u8005\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>import org.springframework.stereotype.Component;\nimport org.apache.servicecomb.foundation.common.utils.BeanUtils;\nimport org.apache.servicecomb.foundation.common.utils.Log4jUtils;\nimport org.apache.servicecomb.provider.pojo.RpcReference;\nimport org.apache.servicecomb.samples.common.schema.Hello;\nimport org.apache.servicecomb.samples.common.schema.models.Person;\n\n@Component\npublic class CodeFirstConsumerMain {\n  @RpcReference(microserviceName = \"codefirst\", schemaId = \"codeFirstHello\")\n  private static Hello hello;\n\n  public static void main(String[] args) throws Exception {\n    init();\n    System.out.println(hello.sayHi(\"Java Chassis\"));\n    Person person = new Person();\n    person.setName(\"ServiceComb/Java Chassis\");\n    System.out.println(hello.sayHello(person));\n  }\n\n  public static void init() throws Exception {\n    Log4jUtils.init();\n    BeanUtils.init();\n  }\n}\n</code></pre> <p>\u5728\u4ee5\u4e0a\u4ee3\u7801\u4e2d\uff0c\u670d\u52a1\u6d88\u8d39\u8005\u5df2\u7ecf\u53d6\u5f97\u4e86\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u63a5\u53e3Hello\uff0c\u5e76\u5728\u4ee3\u7801\u4e2d\u58f0\u660e\u4e00\u4e2aHello\u7c7b\u578b\u7684\u6210\u5458\u3002\u901a\u8fc7\u5728hello\u4e0a\u4f7f\u7528RPCReference\u6ce8\u89e3\u6307\u660e\u5fae\u670d\u52a1\u540d\u79f0\u548cschemaId\uff0cServiceComb\u6846\u67b6\u53ef\u4ee5\u5728\u7a0b\u5e8f\u542f\u52a8\u65f6\u4ece\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u5230\u5bf9\u5e94\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u5b9e\u4f8b\u4fe1\u606f\uff0c\u5e76\u4e14\u751f\u6210\u4e00\u4e2a\u4ee3\u7406\u6ce8\u5165\u5230hello\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u50cf\u8c03\u7528\u672c\u5730\u7c7b\u4e00\u6837\u8c03\u7528\u8fdc\u7a0b\u670d\u52a1\u3002</p>"},{"location":"build-consumer/develop-consumer-using-rpc.html","title":"\u4f7f\u7528RPC\u65b9\u5f0f\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":""},{"location":"build-consumer/develop-consumer-using-rpc.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684java interface\u50cf\u672c\u5730\u8c03\u7528\u4e00\u6837\u8fdb\u884c\u670d\u52a1\u8c03\u7528\u3002 \u900f\u660eRPC\u4ec5\u4ec5\u662f\u4e00\u79cd\u5f00\u53d1\u6a21\u5f0f\uff1a</p> <ul> <li>\u4e0e\u4f7f\u7528highway\u8fd8\u662fRESTful\u4f20\u8f93\u6ca1\u6709\u5173\u8054</li> <li>\u4e0eproducer\u4f7f\u7528\u900f\u660eRPC/Jax-RS\u8fd8\u662fSpringMVC\u6a21\u5f0f\u5f00\u53d1\u6ca1\u6709\u5173\u8054</li> <li>\u4e5f\u4e0eproducer\u4ee3\u7801\u662f\u5426\u5b9e\u73b0\u8fd9\u4e2ainterface\u6ca1\u6709\u5173\u8054\u3002  </li> </ul> <p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4e0espring boot\u7684feign\u7c7b\u4f3c\uff0c\u4e0d\u8fc7\u66f4\u7b80\u5355\uff0c\u56e0\u4e3a\u4e0d\u5fc5\u5728\u8fd9\u4e2ainterface\u4e2d\u589e\u52a0\u4efb\u4f55RESTful annotation\u3002</p>"},{"location":"build-consumer/develop-consumer-using-rpc.html#spring-beanrpcreference","title":"\u5728spring bean\u4e2d\u901a\u8fc7@RpcReference\u58f0\u660e","text":"<pre><code>@Component\npublic class SomeBean {\n  ......\n\n  @RpcReference(microserviceName = \"helloService\", schemaId = \"helloSchema\")\n  private Hello hello;\n\n  ......\n}\n</code></pre>"},{"location":"build-consumer/develop-consumer-using-rpc.html#spring-beanapi","title":"\u8131\u79bbspring bean\uff0c\u76f4\u63a5\u901a\u8fc7api\u58f0\u660e","text":"<pre><code>Hello hello = Invoker.createProxy(\"helloService\", \"helloSchema\", Hello.class);\n</code></pre>"},{"location":"build-consumer/develop-consumer-using-rpc.html#reactive","title":"reactive","text":"<p>\u53ea\u9700\u8981\u4f7f\u7528jdk\u7684CompletableFuture\u5bf9\u8fd4\u56de\u503c\u8fdb\u884c\u5305\u88c5\u5373\u53ef</p> <pre><code>interface Hello {\n  CompletableFuture&lt;String&gt; sayHi(String name);\n}\n</code></pre> <p>\u540c\u4e00\u4e2ainterface\u4e2d\uff0c\u53ef\u4ee5\u540c\u65f6\u58f0\u660e\u540c\u4e00\u4e2a\u65b9\u6cd5\u7684reactive\u548c\u540c\u6b65\u539f\u578b \u56e0\u4e3a\u8981\u6c42\u65b9\u6cd5\u540d\u4e0e\u5951\u7ea6\u4e2d\u7684operationId\u4e00\u4e00\u5bf9\u5e94\uff0c\u800c\u4ec5\u6709\u8fd4\u56de\u503c\u7c7b\u578b\u4e0d\u540c\uff0c\u5728java\u4e2d\u662f\u975e\u6cd5\u7684\uff0c\u6240\u4ee5\u9700\u8981\u4fee\u6539\u65b9\u6cd5\u540d\uff0c\u5e76\u901a\u8fc7swagger annotation\u6765\u58f0\u660e\u771f\u6b63\u7684operationId</p> <pre><code>interface Hello {\n  String sayHi(String name);\n\n  @ApiOperation(nickname = \"sayHi\", value = \"reactive method for sayHi\")\n  CompletableFuture&lt;String&gt; asyncSayHi(String name);\n}\n</code></pre>"},{"location":"build-consumer/invoker.html","title":"\u6cdb\u5316\u8c03\u7528","text":"<p>\u6cdb\u5316\u8c03\u7528\u6307\u5728\u4e0d\u77e5\u9053 Provider \u63a5\u53e3\u5b9a\u4e49\u4fe1\u606f\u7684\u60c5\u51b5\u4e0b\uff0c\u8bbf\u95ee Provider \u63d0\u4f9b\u7684\u670d\u52a1\u3002 \u6cdb\u5316 \u8c03\u7528\u9700\u8981\u63d0\u4f9b Provider \u7684\u670d\u52a1\u5143\u6570\u636e\uff1a \u5fae\u670d\u52a1\u540d\u79f0\uff0c \u7248\u672c\uff0c Schema ID\uff0c Operation ID, \u5951\u7ea6\u53c2\u6570\u7b49\u4fe1\u606f\u3002 </p>"},{"location":"build-consumer/invoker.html#_2","title":"\u4f7f\u7528\u6cdb\u5316\u8c03\u7528","text":"<p>\u5047\u8bbe Provider \u91c7\u7528\u900f\u660e RPC \u7684\u65b9\u5f0f\u63d0\u4f9b\u4e86\u5982\u4e0b\u670d\u52a1\uff1a</p> <pre><code>@RpcSchema(schemaId = \"InvokerEndpoint\")\npublic class InvokerEndpoint {\n  public ServerModel model(ServerModel request) {\n    return request;\n  }\n}\n\npublic class ServerModel {\n  private String name;\n  private int code;\n\n  public String getName() {\n    return name;\n  }\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  public int getCode() {\n    return code;\n  }\n\n  public void setCode(int code) {\n    this.code = code;\n  }\n}\n</code></pre> <p>\u53ef\u4ee5\u91c7\u7528 InvokerUtils \u8bbf\u95ee\u8fd9\u4e2a\u670d\u52a1\uff1a</p> <pre><code>Map&lt;String, Object&gt; args = new HashMap&lt;&gt;();\nClientModel model = new ClientModel();\nmodel.setCode(200);\nmodel.setName(\"hello\");\nargs.put(\"request\", model);\n\nClientModel modelResult = InvokerUtils.syncInvoke(\"pojo\", \"InvokerEndpoint\", \"model\", args, ClientModel.class);\nTestMgr.check(model.getCode(), modelResult.getCode());\nTestMgr.check(model.getName(), modelResult.getName());\n\npublic class ClientModel {\n  private String name;\n  private int code;\n\n  public String getName() {\n    return name;\n  }\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  public int getCode() {\n    return code;\n  }\n\n  public void setCode(int code) {\n    this.code = code;\n  }\n}\n</code></pre> <p>\u53ef\u4ee5\u770b\u51fa\uff0c\u5728\u6cdb\u5316\u8c03\u7528\u7684\u60c5\u51b5\u4e0b\uff0c Provider \u548c Consumer \u53ef\u4ee5\u4f7f\u7528\u4e0d\u4e00\u6837 package \u7684 Model\u3002 Consumer \u8fd8\u53ef\u4ee5\u4e0d\u4f7f\u7528\u4efb\u4f55 Model, \u800c\u91c7\u7528 Map \u7684\u65b9\u5f0f\u8bbf\u95ee\uff1a</p> <pre><code>Map&lt;String, Object&gt; args = new HashMap&lt;&gt;();\nMap model = new HashMap();\nmodel.put(\"code\", 20);\nmodel.put(\"name\", \"hello\");\nargs.put(\"request\", model);\n\nClientModel modelResult = InvokerUtils.syncInvoke(\"pojo\", \"InvokerEndpoint\", \"model\", args, ClientModel.class);\nTestMgr.check(model.get(\"code\"), modelResult.getCode());\nTestMgr.check(model.get(\"name\"), modelResult.getName());\n</code></pre> <p>\u9700\u8981\u7279\u522b\u8bf4\u660e\u7684\u662f\u53c2\u6570 <code>swaggerArguments</code> \uff0c \u8fd9\u4e2a\u53c2\u6570\u662f\u548c Provider \u63a5\u53e3\u751f\u6210\u7684\u5951\u7ea6\u5bf9\u5e94\u7684\uff0c \u4e0d\u5173\u6ce8 Provider \u662f\u91c7\u7528\u900f\u660e RPC\uff0c \u8fd8\u662f \u91c7\u7528 Spring MVC \uff0c \u6216\u8005 JAX RS \u5f00\u53d1\u7684\u670d\u52a1\u3002 \u9700\u8981\u6ce8\u610f <code>swaggerArguments</code> \u53ef\u80fd\u548c Provider \u7684\u63a5\u53e3\u5b9a\u4e49\u7684\u53c2\u6570\u5217\u8868\u4e0d\u4e00\u6837\uff0c\u6bd4\u5982\u900f\u660e RPC \u5f00\u53d1\u6a21\u5f0f\u4e0b\u591a\u4e2a\u53c2\u6570\u7684\u573a\u666f\uff0c Spring MVC \u7684 Bean Param \u7684\u573a\u666f\u7b49\u7b49\u3002 </p>"},{"location":"build-consumer/invoker.html#reactive-api","title":"\u91c7\u7528 reactive API","text":"<pre><code>CountDownLatch countDownLatch = new CountDownLatch(1);\nInvokerUtils.reactiveInvoke(\"pojo\", \"InvokerEndpoint\", \"model\", args, ClientModel.class, response -&gt; {\n  ClientModel reactiveResult = response.getResult();\n  TestMgr.check(model.getCode(), reactiveResult.getCode());\n  TestMgr.check(model.getName(), reactiveResult.getName());\n  countDownLatch.countDown();\n});\ncountDownLatch.await();\n</code></pre>"},{"location":"build-consumer/using-resttemplate.html","title":"Restful\u98ce\u683c - \u4f7f\u7528 RestOperations","text":""},{"location":"build-consumer/using-resttemplate.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>RestOperations\u662fSpring\u63d0\u4f9b\u7684RESTful\u8bbf\u95ee\u63a5\u53e3\uff0cServiceComb\u63d0\u4f9b\u8be5\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\u7528\u4e8e\u670d\u52a1\u7684\u8c03\u7528\u3002</p>"},{"location":"build-consumer/using-resttemplate.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u4f7f\u7528ServiceComb\u63d0\u4f9b\u7684RestOperations\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684URL\u8fdb\u884c\u670d\u52a1\u8c03\u7528\uff0c\u800c\u4e0d\u7528\u5173\u5fc3\u670d\u52a1\u7684\u5177\u4f53\u5730\u5740\u3002</p>"},{"location":"build-consumer/using-resttemplate.html#_3","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>RestOperations\u5b9e\u4f8b\u901a\u8fc7\u8c03\u7528<code>RestTemplateBuilder.create()</code>\u65b9\u6cd5\u83b7\u53d6\uff0c\u518d\u4f7f\u7528\u8be5\u5b9e\u4f8b\u901a\u8fc7\u81ea\u5b9a\u4e49\u7684URL\u8fdb\u884c\u670d\u52a1\u8c03\u7528\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</p> <ul> <li>Spring MVC \u5ba2\u6237\u7aef\u793a\u4f8b\u4ee3\u7801\uff1a</li> </ul> <pre><code>public class SpringmvcConsumerExample {\n    private static RestOperations restTemplate = RestTemplateBuilder.create();\n\n    public static void test() throws Exception {\n        Person person = new Person();\n        person.setName(\"ServiceComb/Java Chassis\");\n        String sayHiResult = restTemplate\n                .postForObject(\"servicecomb://springmvc/springmvchello/sayhi?name=Java Chassis\", null, String.class);\n        String sayHelloResult = restTemplate\n                .postForObject(\"servicecomb://springmvc/springmvchello/sayhello\", person, String.class);\n        System.out.println(\"RestTemplate consumer sayhi services: \" + sayHiResult);\n        System.out.println(\"RestTemplate consumer sayhello services: \" + sayHelloResult);\n    }\n}\n</code></pre> <ul> <li>JAX RS \u5ba2\u6237\u7aef\u793a\u4f8b\u4ee3\u7801\uff1a</li> </ul> <pre><code>public class JaxrsConsumerMain {\n    public static void test() throws Exception {\n        //\u5176\u4ed6\u90fd\u7c7b\u4f3cspring MVC\u793a\u4f8b\u7684\u5ba2\u6237\u7aef\u4ee3\u7801\uff0c\u6ce8\u610f\u5982\u679c\u670d\u52a1\u7aef\u53ea\u63a5\u6536 GET \u8bf7\u6c42\uff0c\u8981\u4f7f\u7528\u65b9\u6cd5 getForObject()\n        RestTemplate restTemplate = RestTemplateBuilder.create();\n        String result = restTemplate.getForObject(\"servicecomb://jaxrs/jaxrshello/saybye\", String.class);\n    }\n}\n</code></pre> <p>\u8bf4\u660e\uff1a</p> <ul> <li>URL\u683c\u5f0f\u4e3a\uff1a<code>servicecomb://microserviceName/path?querystring</code>\u3002\u4ee5\u7528SpringMVC\u5f00\u53d1\u5fae\u670d\u52a1\u4e2d\u5b9a\u4e49\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u4e3a\u4f8b\uff0c\u5176\u5fae\u670d\u52a1\u540d\u79f0\u662f<code>springmvc</code>\uff0cbasePath\u662f<code>/springmvchello</code>\uff0c\u90a3\u4e48URL\u4e2d\u7684microserviceName=<code>springmvc</code>\uff0c\u8bf7\u6c42sayhi\u65f6\u7684path=<code>springmvchello/sayhi</code>\uff0c\u6240\u4ee5\u793a\u4f8b\u4ee3\u7801\u4e2d\u8bf7\u6c42sayhi\u7684URL\u662f<code>servicecomb://springmvc/springmvchello/sayhi?name=Java Chassis</code>\u3002\u5177\u4f53\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b \uff1a</li> </ul> <pre><code>@RestSchema(schemaId = \"springmvcHello\")\n@RequestMapping(path = \"/springmvchello\", produces = MediaType.APPLICATION_JSON)\n//\u8fd9\u91cc path = \u201c/springmvchello\u201d \u4e2d\u7684 springmvchello \u5c31\u662f \u4e0a\u8ff0\u7684basePath\npublic class SpringmvcHelloImpl implements Hello {\n    @Override\n    @RequestMapping(path = \"/sayhi\", method = RequestMethod.POST)\n    public String sayHi(@RequestParam(name = \"name\") String name) {\n        return \"Hello \" + name;\n    }\n\n    @Override\n    @RequestMapping(path = \"/sayhello\", method = RequestMethod.POST)\n    public String sayHello(@RequestBody Person person) {\n        return \"Hello person \" + person.getName();\n    }\n}\n</code></pre>"},{"location":"build-provider/access-log-configuration.html","title":"Access Log","text":""},{"location":"build-provider/access-log-configuration.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>ServiceComb \u63d0\u4f9b\u4e86\u57fa\u4e8e Vert.x \u7684 access log \u548c request log \u529f\u80fd\u3002\u5f53\u7528\u6237\u4f7f\u7528 REST over Vertx \u901a\u4fe1\u65b9\u5f0f\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u542f\u7528 access log \u6253\u5370\u529f\u80fd\u3002\u5f53\u7528\u6237 client \u7aef\u8fdb\u884c\u8fdc\u7a0b\u8c03\u7528\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u542f\u7528 request log \u6253\u5370\u529f\u80fd</p>"},{"location":"build-provider/access-log-configuration.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<ol> <li> <p>\u7528\u6237\u5728\u8c03\u8bd5\u670d\u52a1\u65f6\u53ef\u80fd\u9700\u8981\u5f00\u542f access log\u3002\u5728\u4f7f\u7528 REST over servlet \u901a\u4fe1\u65b9\u5f0f\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528 web\u5bb9\u5668 \u7684 access log \u529f\u80fd\uff1b\u800c\u5728\u4f7f\u7528 REST over Vertx \u901a\u4fe1\u65b9\u5f0f\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528 ServiceComb \u63d0\u4f9b\u7684\u4e00\u5957 access log \u529f\u80fd\u3002</p> </li> <li> <p>\u7528\u6237\u60f3\u8981\u8ddf\u8e2a\uff0c\u8bb0\u5f55\u5ba2\u6237\u7aef\u8fdc\u7a0b\u8c03\u7528\u4fe1\u606f\uff0c \u53ef\u4ee5\u5f00\u542f request log\u3002request log \u540c\u65f6\u652f\u6301\u8bb0\u5f55 rest \u548c highway \u8fdc\u7a0b\u8c03\u7528\u65b9\u5f0f\u3002</p> </li> </ol>"},{"location":"build-provider/access-log-configuration.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":""},{"location":"build-provider/access-log-configuration.html#access-log-request-log","title":"\u542f\u7528 Access Log &amp; Request Log","text":"<p>\u7528\u6237\u9700\u8981\u5728 microservice.yaml \u6587\u4ef6\u4e2d\u589e\u52a0\u914d\u7f6e\u4ee5\u542f\u7528 access log \u548c request log\uff0c\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  accesslog:\n    ## server \u7aef \u542f\u7528access log\n    enabled: true\n    ##  server \u7aef \u81ea\u5b9a\u4e49 access log \u65e5\u5fd7\u683c\u5f0f\n    pattern: \"%h - - %t %r %s %B %D\" \n    request:\n      ## client \u7aef\u5f00\u542f request log\n      enabled: true\n      ## client \u7aef\u81ea\u5b9a\u4e49 request log \u65e5\u5fd7\u683c\u5f0f\n      pattern: \"%h %SCB-transport - - %t %r %s %D\" \n</code></pre> <p>Access log &amp; Request log \u914d\u7f6e\u9879\u8bf4\u660e</p> \u914d\u7f6e\u9879 \u53d6\u503c\u8303\u56f4 \u9ed8\u8ba4\u503c \u8bf4\u660e servicecomb.accesslog.enabled true/false false \u5982\u679c\u4e3atrue\u5219\u542f\u7528access log\uff0c\u5426\u5219\u4e0d\u542f\u7528 servicecomb.accesslog.pattern \u8868\u793a\u6253\u5370\u683c\u5f0f\u7684\u5b57\u7b26\u4e32 \"%h - - %t %r %s %B %D\" \u914d\u7f6e\u9879\u89c1_\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868_ servicecomb.accesslog.request.enabled true/false false \u5982\u679c\u4e3atrue\u5219\u542f\u7528request log\uff0c\u5426\u5219\u4e0d\u542f\u7528 servicecomb.accesslog.request.pattern \u8868\u793a\u6253\u5370\u683c\u5f0f\u7684\u5b57\u7b26\u4e32 \"%h %SCB-transport - - %t %r %s %D\" \u914d\u7f6e\u9879\u89c1_\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868_"},{"location":"build-provider/access-log-configuration.html#_4","title":"\u65e5\u5fd7\u683c\u5f0f\u914d\u7f6e","text":"<p>\u76ee\u524d\u53ef\u7528\u7684\u65e5\u5fd7\u5143\u7d20\u914d\u7f6e\u9879\u89c1 \u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868(Apache &amp; W3C) \u548c \u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868(ServiceComb) \u3002</p> <p>\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868 (Apache &amp; W3C)</p> \u5143\u7d20\u540d\u79f0 Apache\u65e5\u5fd7\u683c\u5f0f W3C\u65e5\u5fd7\u683c\u5f0f \u8bf4\u660e HTTP method %m cs-method - HTTP status %s sc-status - Duration in second %T - - Duration in millisecond %D - - Remote hostname %h - - Local hostname %v - - Local port %p - - Size of response %B - \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"0\" Size of response %b - \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"-\" First line of request %r - \u5305\u542bHTTP Method\u3001Uri\u3001Http\u7248\u672c\u4e09\u90e8\u5206\u5185\u5bb9 URI path %U cs-uri-stem - Query string %q cs-uri-query - URI path and query string - cs-uri - Request protocol %H - - Datetime the request is received %t - \u6309\u7167\u9ed8\u8ba4\u8bbe\u7f6e\u6253\u5370\u65f6\u95f4\u6233\uff0c\u683c\u5f0f\u4e3a\"EEE, dd MMM yyyy HH:mm:ss zzz\"\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request is received %{PATTERN}t - \u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u6253\u5370\u65f6\u95f4\u6233\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request is received %{PATTERN|TIMEZONE|LOCALE}t - \u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u3001\u8bed\u8a00\u3001\u65f6\u533a\u6253\u5370\u65f6\u95f4\u6233\u3002\u5141\u8bb8\u7701\u7565\u5176\u4e2d\u7684\u67d0\u90e8\u5206\u914d\u7f6e\uff08\u4f46\u4e24\u4e2a\u5206\u9694\u7b26\u53f7\"|\"\u4e0d\u53ef\u7701\u7565\uff09\u3002 Request header %{VARNAME}i - \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Response header %{VARNAME}o - \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Cookie %{VARNAME}C - \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684cookie\uff0c\u5219\u6253\u5370\"-\" <p>\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868(ServiceComb)</p> Element Placeholder Comment TraceId %SCB-traceId \u6253\u5370ServiceComb\u751f\u6210\u7684trace id\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" Invocation Context %{VARNAME}SCB-ctx \u6253\u5370key\u4e3a<code>VARNAME</code>\u7684invocation context\u503c\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" Transport Method %SCB-transport \u6253\u5370\u5f53\u524d\u8c03\u7528\u7684 transport method \u3002 <code>rest</code> \u6216\u8005 <code>highway</code> <p>Access log \u4e0e Request log \u7684\u65e5\u5fd7\u5143\u7d20\u5bf9\u6bd4</p> \u5143\u7d20\u540d\u79f0 Apache&amp;W3C\u65e5\u5fd7\u683c\u5f0f access log access log \u8bf4\u660e request log request log\u8bf4\u660e HTTP method %m &amp; cs-method support - support - HTTP status %s &amp; sc-status support - support - Duration in second %T support - support - Duration in millisecond %D support - support - Remote hostname %h support - support - Local hostname %v support - support - Local port %p support - support - Size of response %B support \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"0\" unsupported - Size of response %b support \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"-\" unsupported - First line of request %r support \u5305\u542bHTTP Method\u3001Uri\u3001Http\u7248\u672c\u4e09\u90e8\u5206\u5185\u5bb9 support \u5305\u542bHTTP Method\u3001Uri\u3001Http\u7248\u672c\u4e09\u90e8\u5206\u5185\u5bb9 URI path %U &amp; cs-uri-stem support - support - Query string %q &amp; cs-uri-query support - support - URI path and query string cs-uri support - support - Request protocol %H support - support - Datetime of the request %t support \u6536\u5230\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u9ed8\u8ba4\u683c\u5f0f\u4e3a\"EEE, dd MMM yyyy HH:mm:ss zzz\"\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT support \u53d1\u9001\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u9ed8\u8ba4\u683c\u5f0f\u4e3a\"EEE, dd MMM yyyy HH:mm:ss zzz\"\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request of the request %{PATTERN}t support \u6536\u5230\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u6253\u5370\u65f6\u95f4\u6233\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT support \u53d1\u9001\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u6253\u5370\u65f6\u95f4\u6233\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request of the request %{PATTERN|TIMEZONE|LOCALE}t support \u6536\u5230\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u3001\u8bed\u8a00\u3001\u65f6\u533a\u6253\u5370\u65f6\u95f4\u6233\u3002\u5141\u8bb8\u7701\u7565\u5176\u4e2d\u7684\u67d0\u90e8\u5206\u914d\u7f6e\uff08\u4f46\u4e24\u4e2a\u5206\u9694\u7b26\u53f7\"|\"\u4e0d\u53ef\u7701\u7565\uff09\u3002 support \u53d1\u9001\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u3001\u8bed\u8a00\u3001\u65f6\u533a\u6253\u5370\u65f6\u95f4\u6233\u3002\u5141\u8bb8\u7701\u7565\u5176\u4e2d\u7684\u67d0\u90e8\u5206\u914d\u7f6e\uff08\u4f46\u4e24\u4e2a\u5206\u9694\u7b26\u53f7\"|\"\u4e0d\u53ef\u7701\u7565\uff09\u3002 Request header %{VARNAME}i support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Response header %{VARNAME}o support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Cookie %{VARNAME}C support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684cookie\uff0c\u5219\u6253\u5370\"-\" support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684cookie\uff0c\u5219\u6253\u5370\"-\" TraceId %SCB-traceId support \u6253\u5370ServiceComb\u751f\u6210\u7684trace id\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" support \u6253\u5370ServiceComb\u751f\u6210\u7684trace id\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" Invocation Context %{VARNAME}SCB-ctx support \u6253\u5370key\u4e3a<code>VARNAME</code>\u7684invocation context\u503c\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" support \u6253\u5370key\u4e3a<code>VARNAME</code>\u7684invocation context\u503c\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" transport method %SCB-transport unsupported \u53ea\u652f\u6301 rest \u5f62\u5f0f\u8c03\u7528 support \u8c03\u7528\u4f7f\u7528\u7684transport method"},{"location":"build-provider/access-log-configuration.html#_5","title":"\u65e5\u5fd7\u8f93\u51fa\u6587\u4ef6\u914d\u7f6e","text":"<p>Access log &amp; Request log \u7684\u65e5\u5fd7\u6253\u5370\u5b9e\u73b0\u6846\u67b6\u9ed8\u8ba4\u91c7\u7528 Slf4j \uff0c\u5176\u4e2d logger \u540d\u79f0\u5206\u522b\u4e3a <code>accesslog</code> \u548c <code>requestlog</code>, \u53ef\u4ee5\u7ed3\u5408\u5e94\u7528\u4f7f\u7528\u7684\u65e5\u5fd7\u6846\u67b6\u5c06\u65e5\u5fd7\u8f93\u51fa\u5230\u4e0d\u540c\u7684\u6587\u4ef6\u4e2d\u3002</p>"},{"location":"build-provider/access-log-configuration.html#access-log-request-log_1","title":"\u81ea\u5b9a\u4e49\u6269\u5c55 Access Log &amp; Request Log","text":"<p>\u7528\u6237\u53ef\u4ee5\u5229\u7528 ServiceComb \u63d0\u4f9b\u7684 AccessLogItem \u6269\u5c55\u673a\u5236\uff0c\u5b9a\u5236\u81ea\u5df1\u7684 AccessLogItem\uff0c \u6211\u4eec\u628a Request Log \u4e5f\u5f53\u505a\u4e00\u79cd Access Log\u3002</p>"},{"location":"build-provider/access-log-configuration.html#_6","title":"\u76f8\u5173\u7c7b\u8bf4\u660e","text":"<ol> <li>AccessLogItem</li> </ol> <pre><code>public interface AccessLogItem&lt;T&gt; {\n  // \u4eceServer\u7aef\u83b7\u53d6\u4fe1\u606f\uff0c\u6253\u5370 Access Log \u65e5\u5fd7\n  default void appendServerFormattedItem(ServerAccessLogEvent accessLogEvent, StringBuilder builder) {\n  }\n\n  // \u4eceClient \u7aef\u83b7\u53d6\u4fe1\u606f\uff0c \u6253\u5370 Request Log\n  default void appendClientFormattedItem(InvocationFinishEvent clientLogEvent, StringBuilder builder) {\n  }\n}\n</code></pre> <p>AccessLogItem \u7684\u5b9a\u4e49\u5982\u4e0a\u6240\u793a</p> <ul> <li> <p>Server \u7aef \u6bcf\u6536\u5230\u4e00\u4e2a\u8bf7\u6c42\uff0c\u4f1a\u89e6\u53d1\u4e00\u6b21 Access Log \u65e5\u5fd7\u6253\u5370\u3002Client \u7aef \u6bcf\u6b21\u5bf9\u5916\u8fdc\u7a0b\u8c03\u7528\u7ed3\u675f\uff0c\u4f1a\u89e6\u53d1\u4e00\u6b21 Request Log \u65e5\u5fd7\u6253\u5370\u3002  </p> </li> <li> <p>\u6bcf\u6b21\u65e5\u5fd7\u6253\u5370\uff0cSDK \u90fd\u4f1a\u904d\u5386\u6709\u6548\u7684 <code>AccessLogItem</code> \uff0c\u8c03\u7528\u5bf9\u5e94\u7684\u65b9\u6cd5\u83b7\u53d6\u6b64 Item \u751f\u6210\u7684 Log\u7247 \u6bb5\uff0c\u5e76\u5c06\u5168\u90e8\u7247\u6bb5\u62fc\u63a5\u6210\u4e00\u6761 Log \u6253\u5370\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002 </p> </li> </ul> <ol> <li>VertxRestAccessLogItemMeta</li> </ol> <pre><code>  // pattern\u5360\u4f4d\u7b26\u524d\u7f00\n  protected String prefix;\n  // pattern\u5360\u4f4d\u7b26\u540e\u7f00\n  protected String suffix;\n  // \u4f18\u5148\u7ea7\u5e8f\u53f7\n  protected int order;\n  // AccessLogItem\u6784\u9020\u5668\n  protected AccessLogItemCreator&lt;RoutingContext&gt; accessLogItemCreator;\n</code></pre> <p><code>VertxRestAccessLogItemMeta</code> \u5305\u542b\u5982\u4e0a\u5c5e\u6027\uff0c\u5b83\u5b9a\u4e49\u4e86 ServiceComb \u5982\u4f55\u89e3\u6790 pattern \u5b57\u7b26\u4e32\u4ee5\u83b7\u5f97\u7279\u5b9a\u7684 AccessLogItem\u3002</p> <ul> <li> <p>\u5982\u679c\u7528\u6237\u60f3\u8981\u5b9a\u4e49\u4e00\u4e2a\u5360\u4f4d\u7b26\u4e3a <code>%user-defined</code> \u7684 <code>AccessLogItem</code> \uff0c\u5219\u9700\u8981\u58f0\u660e\u4e00\u4e2a <code>VertxRestAccessLogItemMeta</code> \u7684\u5b50\u7c7b\uff0c\u8bbe\u7f6e prefix=\"%user-defined\"\uff0csuffix=null\uff0c\u5f53 <code>AccessLogPatternParser</code> \u89e3\u6790\u5230 \"%user-defined\" \u65f6\uff0c\u4ece\u6b64 meta \u7c7b\u4e2d\u53d6\u5f97 <code>AccessLogItemCreator</code> \u521b\u5efa\u5bf9\u5e94\u7684 <code>AccessLogItem</code>\u3002\u6ce8\u610f\uff1a\u7531\u4e8e \"%user-defined\" \u5360\u4f4d\u7b26\u4e2d\u6ca1\u6709\u53d8\u91cf\u90e8\u5206\uff0c\u56e0\u6b64\u8c03\u7528 <code>AccessLogItemCreator</code> \u4f20\u5165\u7684\u914d\u7f6e\u53c2\u6570\u4e3anull\u3002</p> </li> <li> <p>\u5982\u679c\u7528\u6237\u60f3\u8981\u5b9a\u4e49\u4e00\u4e2a\u5360\u4f4d\u7b26\u4e3a <code>%{VARNAME}user-defined</code> \u7684 <code>AccessLogItem</code>\uff0c\u5219\u58f0\u660e\u7684 <code>VertxRestAccessLogItemMeta</code> \u5b50\u7c7b\u4e2d\uff0c\u8bbe\u7f6eprefix=\"%{\"\uff0csuffix=\"}user-defined\"\uff0c\u5f53 <code>AccessLogPatternParser</code> \u89e3\u6790\u5230 \"%{VARNAME}user-defined\"\u65f6\uff0c\u4f1a\u622a\u53d6\u51fa\"VARNAME\"\u4f5c\u4e3a\u914d\u7f6e\u53c2\u6570\u4f20\u5165<code>AccessLogItemCreator</code>\uff0c\u521b\u5efa\u4e00\u4e2a<code>AccessLogItem</code>\u3002</p> </li> </ul> <p><code>VertxRestAccessLogItemMeta</code> \u6709\u4e00\u4e2a\u5b50\u7c7b <code>CompositeVertxRestAccessLogItemMeta</code>\uff0c\u5f53\u7528\u6237\u9700\u8981\u5b9a\u4e49\u591a\u4e2a AccessLogItem \u65f6\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a <code>VertxRestAccessLogItemMeta</code> \u805a\u5408\u5230 <code>CompositeVertxRestAccessLogItemMeta</code> \u4e2d\u3002Parser \u52a0\u8f7d\u5230\u7c7b\u578b\u4e3a <code>CompositeVertxRestAccessLogItemMeta</code> \u7684AccessLogItemMeta\u65f6\uff0c\u4f1a\u8c03\u7528\u5176 <code>getAccessLogItemMetas()</code> \u65b9\u6cd5\u83b7\u5f97\u4e00\u7ec4 AccessLogItemMeta\u3002<code>VertxRestAccessLogItemMeta</code> \u4f7f\u7528SPI\u673a\u5236\u52a0\u8f7d\uff0c\u800c<code>CompositeVertxRestAccessLogItemMeta</code>\u53ef\u4ee5\u8ba9\u7528\u6237\u53ea\u5728SPI\u914d\u7f6e\u6587\u4ef6\u4e2d\u914d\u7f6e\u4e00\u6761\u8bb0\u5f55\u5c31\u52a0\u8f7d\u591a\u6761meta\u4fe1\u606f\uff0c\u7ed9\u4e86\u7528\u6237\u66f4\u7075\u6d3b\u7684\u9009\u62e9\u3002</p> <ol> <li>AccessLogItemCreator</li> </ol> <pre><code>public interface AccessLogItemCreator&lt;T&gt; {\n    // \u63a5\u6536\u914d\u7f6e\u503c\uff0c\u8fd4\u56de\u4e00\u4e2aAccessLogItem\u3002\u5982\u679cAccessLogItem\u7684\u5360\u4f4d\u7b26\u6ca1\u6709\u53ef\u53d8\u7684\u914d\u7f6e\u503c\u90e8\u5206\uff0c\u5219\u6b64\u65b9\u6cd5\u4f1a\u63a5\u6536\u5230null\u3002\n    AccessLogItem&lt;T&gt; createItem(String config);\n}\n</code></pre> <p>\u7528\u6237\u901a\u8fc7\u8bbe\u7f6e\u5728\u81ea\u5b9a\u4e49\u7684 <code>VertxRestAccessLogItemMeta</code> \u4e2d\u7684 <code>AccessLogItemCreator</code> \u5b9e\u4f8b\u5316\u81ea\u5df1\u7684 <code>AccessLogItem</code>\u3002\u7531\u4e8e\u8fd9\u662f\u4e00\u4e2a\u51fd\u6570\u5f0f\u63a5\u53e3\uff0c\u5f53 <code>AccessLogItem</code> \u7684\u521d\u59cb\u5316\u65b9\u5f0f\u8f83\u7b80\u5355\u65f6\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 Lambda\u8868\u8fbe\u5f0f\u5b9a\u4e49Creator\uff0c\u4ee5\u7b80\u5316\u5f00\u53d1\u3002</p>"},{"location":"build-provider/access-log-configuration.html#accesslogitemmeta","title":"AccessLogItemMeta \u7684\u5339\u914d\u89c4\u5219","text":"<p>AccessLogItemMeta \u52a0\u8f7d\u8fdb Parser \u540e\uff0c\u4f1a\u8fdb\u884c\u4e00\u6b21\u6392\u5e8f\u3002Parser \u89e3\u6790 pattern \u4e32\u65f6\u4f1a\u4ece\u524d\u5230\u540e\u5339\u914d meta list\uff0c\u603b\u7684\u5339\u914d\u89c4\u5219\u5982\u4e0b\uff1a</p> <ol> <li> <p>\u4f18\u5148\u5339\u914d\u9ad8\u4f18\u5148\u7ea7\u7684meta\u3002</p> </li> <li> <p>\u4f18\u5148\u5339\u914d\u6709\u540e\u7f00\u7684meta\uff0c\u5f53\u5339\u914d\u4e0a\u591a\u4e2a\u6709\u540e\u7f00meta\u65f6\uff0c\u53d6\u524d\u540e\u7f00\u76f8\u8ddd\u6700\u5c0f\u7684\u4e00\u4e2a\u3002</p> </li> <li> <p>\u4f18\u5148\u5339\u914d\u5360\u4f4d\u7b26\u957f\u7684meta\uff0c\u4f8b\u5982\u6709\u4e24\u4e2a meta\uff0c\"%abc\"\u548c\"%a\"\uff0c\u5982\u679c\u5339\u914d\u4e2d\u4e86\"%abc\"\u5219\u76f4\u63a5\u8fd4\u56de\uff0c\u4e0d\u518d\u5339\u914d\"%a\"\u3002</p> </li> </ol>"},{"location":"build-provider/access-log-configuration.html#_7","title":"\u793a\u4f8b\u8bf4\u660e","text":"<ol> <li>\u6269\u5c55\u81ea\u5b9a\u4e49 AccessLogItem</li> </ol> <p>\u9996\u5148\u7528\u6237\u9700\u8981 <code>AccessLogItem</code> \u63a5\u53e3\u5b9e\u73b0\u81ea\u5df1\u7684 item\uff1a</p> <pre><code>public class UserDefinedAccessLogItem implements AccessLogItem&lt;RoutingContext&gt; {\n    private String config;\n\n    public UserDefinedAccessLogItem(String config) {\n      this.config = config;\n    }\n\n    @Override\n    public void appendServerFormattedItem(ServerAccessLogEvent accessLogEvent, StringBuilder builder) {\n    builder.append(\"user-defined--server-\")\n        .append(accessLogEvent.getRoutingContext().response().getStatusCode())\n        .append(\"-\")\n        .append(config);\n    }\n\n    @Override\n    public void appendClientFormattedItem(InvocationFinishEvent clientLogEvent, StringBuilder builder) {\n    builder.append(\"user-server-defined-\")\n        .append(clientLogEvent.getResponse().getStatus())\n        .append(\"-\")\n        .append(config);\n    }\n}\n</code></pre> <ol> <li>\u5b9a\u4e49 AccessLogItem \u7684 meta \u7c7b</li> </ol> <p>\u7ee7\u627f <code>VertxRestAccessLogItemMeta</code> \u6216 <code>CompositeVertxRestAccessLogItemMeta</code> \u7c7b\uff0c\u5b9a\u4e49AccessLogItem\u7684\u524d\u540e\u7f00\u7b49\u4fe1\u606f\uff1a</p> <pre><code>public class UserDefinedCompositeExtendedAccessLogItemMeta extends CompositeVertxRestAccessLogItemMeta {\n    private static final List&lt;VertxRestAccessLogItemMeta&gt; META_LIST = new ArrayList&lt;&gt;();\n\n    static {\n      META_LIST.add(new VertxRestAccessLogItemMeta(\"%{\", \"}user-defined\", UserDefinedAccessLogItem::new));\n    }\n\n    @Override\n    public List&lt;VertxRestAccessLogItemMeta&gt; getAccessLogItemMetas() {\n      return META_LIST;\n    }\n}\n</code></pre> <ol> <li>\u914d\u7f6eSPI\u52a0\u8f7d\u6587\u4ef6</li> </ol> <p>\u5728 <code>resources/META-INF/services/</code> \u76ee\u5f55\u4e0b\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a \"org.apache.servicecomb.common.accessLog.core.parser.VertxRestAccessLogItemMeta\" \u7684\u6587\u4ef6\uff0c\u5c06\u4e0a\u4e00\u6b65\u4e2d\u5b9a\u4e49\u7684meta\u7c7b\u5b8c\u6574\u7c7b\u540d\u586b\u5199\u5230\u8be5\u6587\u4ef6\u4e2d\uff0c\u4f9bParser\u52a0\u8f7dmeta\u7c7b\u3002</p> <ol> <li>\u914d\u7f6e Access Log \u7684 pattern</li> </ol> <pre><code># \u670d\u52a1\u7aef\u914d\u7f6e\nservicecomb:\n  accesslog:\n    enabled: true ## \u5e94\u7528\u4f5c\u4e3a\u670d\u52a1\u7aef\uff0c\u5f00\u542f Access log\n    pattern: \"%{param}user-defined\" ## Access log \u65e5\u5fd7\u683c\u5f0f\n    request:   \n      enabled: true  ## \u5e94\u7528\u4f5c\u4e3a\u5ba2\u6237\u7aef\uff0c\u5f00\u542f Request log\n      pattern: \"%{param}user-defined\" ## Request log \u65e5\u5fd7\u683c\u5f0f\n</code></pre> <p>\u4ee5\u670d\u52a1\u7aef\u4e3a\u4f8b\uff0c \u8fd0\u884c\u670d\u52a1\u89e6\u53d1Access Log\u6253\u5370\uff0c\u5047\u8bbe\u8bf7\u6c42\u8fd4\u56de\u72b6\u6001\u7801\u662f 200\uff0c\u5219\u53ef\u4ee5\u770b\u5230Access Log\u6253\u5370\u5185\u5bb9\u4e3a \"<code>user-defined--server-200-param</code>\"\u3002</p>"},{"location":"build-provider/basics.html","title":"\u57fa\u7840\u6982\u5ff5","text":"<p>Java Chassis \u662f\u4ee5 OpenAPI \u4e3a\u57fa\u7840\u7684\u5fae\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u3002\u4e00\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7 OpenAPI \u8fdb\u884c\u63cf\u8ff0\uff0c\u5f00\u53d1\u4efb\u52a1\u5c31\u662f\u5b9e\u73b0\u8fd9\u4e9b OpenAPI \u63cf\u8ff0\u7684\u529f\u80fd\u3002 \u53ef\u4ee5\u5c06\u4e00\u4e2a\u5fae\u670d\u52a1\u5f00\u53d1\u5206\u4e3a\u4e24\u4e2a\u57fa\u7840\u6027\u7684\u5de5\u4f5c\uff1a</p> <ul> <li>\u5b9a\u4e49\u5fae\u670d\u52a1\u7684\u529f\u80fd\u3002</li> <li>\u5b9e\u73b0\u5fae\u670d\u52a1\u7684\u529f\u80fd\u3002</li> </ul> <p>Java Chassis\u63d0\u4f9b\u4e863\u79cd\u65b9\u5f0f\u5b9a\u4e49\u5fae\u670d\u52a1\u529f\u80fd\uff1a</p> <ul> <li>Spring Web MVC: \u7b80\u79f0SpringMVC\u3002Spring Web MVC\u662fSpring Boot\u63d0\u4f9b\u7684\u4e00\u7ec4\u63cf\u8ff0 <code>REST</code> \u63a5\u53e3\u7684\u6ce8\u89e3\u3002</li> <li>JAX-RS: JAX-RS \u662f Java SE \u548c Java EE \u63d0\u4f9b\u7684\u4e00\u7ec4\u63cf\u8ff0 <code>REST</code> \u63a5\u53e3\u7684\u6ce8\u89e3\u3002</li> <li>PRC: RPC\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u7528\u6237\u65e0\u9700\u901a\u8fc7\u6ce8\u89e3\u63cf\u8ff0 <code>REST</code> \u63a5\u53e3\uff0cJava Chassis\u901a\u8fc7\u7cfb\u7edf\u9ed8\u8ba4\u7684\u89c4\u5219\uff0c\u5c06\u670d\u52a1\u5b9a\u4e49\u6620\u5c04\u4e3a OpenAPI \u7684\u63cf\u8ff0\u3002 </li> </ul> <p>\u5c3d\u7ba1Java Chassis\u652f\u6301\u5728\u4e00\u4e2a\u5fae\u670d\u52a1\u4e2d\u6df7\u5408\u4f7f\u7528\u4e0a\u8ff0\u51e0\u79cd\u65b9\u5f0f\uff0c\u9879\u76ee\u4e2d\u901a\u5e38\u53ea\u4f1a\u9009\u62e9\u4e00\u79cd\u65b9\u5f0f\u3002\u4ece\u4f7f\u7528\u5e7f\u6cdb\u6027\u7684\u89d2\u5ea6\uff0c\u63a8\u8350Spring Web MVC\u3002 </p> <p>Spring Web MVC \u7684\u4f8b\u5b50\uff1a</p> <pre><code>@RestSchema(schemaId = \"HelloWorld\")\n@RequestMapping(\"/\")\npublic class SpringMVCExample {\n  @PostMapping(\"/helloWorld\")\n  public String helloWorld(@RequestBody String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <p>JAX-RS \u7684\u4f8b\u5b50\uff1a</p> <pre><code>@RestSchema(schemaId = \"HelloWorld\")\n@Path(\"/\")\npublic class JAXRSExample {\n  @POST\n  @Path(\"/helloWorld\")\n  public String helloWorld(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <p>\u8fd9\u4e24\u79cd\u5199\u6cd5\u603b\u4f53\u4e0a\u662f\u7b49\u4ef7\u7684\uff0c\u4ed6\u4eec\u90fd\u5b9a\u4e49\u4e86\u5982\u4e0b\u4f7f\u7528 OpenAPI \u63cf\u8ff0\u7684\u670d\u52a1\uff1a</p> <pre><code>openapi: 3.0.1\ninfo:\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /helloWorld:\n    post:\n      operationId: helloWorld\n      requestBody:\n        content:\n          application/json:\n            schema:\n              type: string\n          application/protobuf:\n            schema:\n              type: string\n          text/plain:\n            schema:\n              type: string\n        x-name: name\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents: {}\n</code></pre> <p>RPC \u7684\u4f8b\u5b50\uff1a</p> <pre><code>@RpcSchema(schemaId = \"HelloWorld\")\npublic class RPCExample {\n  public String helloWorld(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <p>\u8fd9\u4e2a\u670d\u52a1\u4f7f\u7528 OpenAPI \u63cf\u8ff0\u5982\u4e0b\u3002 \u53ef\u4ee5\u770b\u51fa RPC \u63a5\u53e3\u90fd\u4f1a\u88ab\u63cf\u8ff0\u4e3a <code>POST</code> \u65b9\u6cd5\uff0c\u53c2\u6570\u90fd\u4f1a\u4f7f\u7528 <code>RequestBody</code> \u8fdb\u884c\u5305\u88c5\u3002 RPC\u6a21\u5f0f\u901a\u5e38\u7528\u4e8e\u4f7f\u7528\u8005\u4e0d\u5173\u6ce8 <code>REST</code> \u89c4\u8303\u7684\u573a\u666f\uff0cJava Chassis\u7684\u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff0c\u7ed9\u7b2c\u4e09\u65b9\u5de5\u5177\u6d4b\u8bd5 RPC \u63a5\u53e3\u63d0\u4f9b\u4e86\u4fbf\u5229\u3002 </p> <pre><code>openapi: 3.0.1\ninfo:\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /helloWorld:\n    post:\n      operationId: helloWorld\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/helloWorldBody'\n          application/protobuf:\n            schema:\n              $ref: '#/components/schemas/helloWorldBody'\n          text/plain:\n            schema:\n              $ref: '#/components/schemas/helloWorldBody'\n        x-name: helloWorldBody\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents:\n  schemas:\n    helloWorldBody:\n      type: object\n      properties:\n        name:\n          type: string\n</code></pre> <ul> <li>\u4f7f\u7528 <code>OpenAPI</code> \u6ce8\u89e3</li> </ul> <p>Spring Web MVC \u548c JAX-RS \u6ce8\u89e3\u53ea\u5b9a\u4e49\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u670d\u52a1\u63cf\u8ff0\u529f\u80fd\uff0c\u6bd4\u5982\u53c2\u6570\u3001\u8fd4\u56de\u503c\u7b49\u4fe1\u606f\u3002 \u5982\u679c\u9700\u8981\u66f4\u52a0\u7ec6\u7c92\u5ea6\u7684\u63cf\u8ff0\u670d\u52a1\uff0c\u8fd8\u9700\u8981\u501f\u52a9 <code>OpenAPI</code> \u6ce8\u89e3\u3002 <code>OpenAPI</code> \u6ce8\u89e3\u53ef\u4ee5\u57283\u79cd\u6a21\u5f0f\u4e0b\u6df7\u5408\u4f7f\u7528\u3002\u6bd4\u5982\u901a\u8fc7 <code>OpenAPIDefinition</code> \u548c <code>Operation</code> \u4e24\u4e2a\u6ce8\u89e3\uff0c\u7ed9Spring Web MVC\u7684\u670d\u52a1\u589e\u52a0\u4e86\u5206\u7ec4\u548c\u63a5\u53e3\u552f\u4e00\u6807\u8bc6\u3002 \u5229\u7528<code>OpenAPI</code> \u6ce8\u89e3\u80fd\u591f\u66f4\u6e05\u6670\u7684\u63cf\u8ff0\u670d\u52a1\u529f\u80fd\u3001\u793a\u4f8b\u3001\u5b89\u5168\u6027\u7b49\u65b9\u9762\u7684\u7ea6\u675f\u3002</p> <pre><code>@RestSchema(schemaId = \"SpringMVCExample\")\n@RequestMapping(\"/\")\n@OpenAPIDefinition(tags = {@Tag(name = \"example\")})\npublic class SpringMVCExample {\n  @Operation(operationId = \"spring-mvc-example\")\n  @PostMapping(\"/helloWorld\")\n  public String helloWorld(@RequestBody String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <ul> <li>\u670d\u52a1\u5b9a\u4e49\u548c\u670d\u52a1\u5b9e\u73b0\u5206\u79bb</li> </ul> <p>\u4e3a\u4e86\u66f4\u597d\u7684\u7ba1\u7406\u670d\u52a1\u5b9a\u4e49\u548c\u5b9e\u73b0\uff0c\u5c06\u670d\u52a1\u5b9a\u4e49\u548c\u5b9e\u73b0\u5206\u79bb\u662f\u4e00\u4e2a\u597d\u7684\u5de5\u7a0b\u5b9e\u8df5\u3002 Java Chassis\u63d0\u4f9b\u4e86\u76f8\u5173\u652f\u6301\u3002 </p> <p>\u670d\u52a1\u5b9a\u4e49\u5728\u5355\u72ec\u7684 interface \u91cc\u9762\u63cf\u8ff0\uff1a</p> <pre><code>@OpenAPIDefinition(tags = {@Tag(name = \"example\")})\n@RequestMapping(\"/\")\npublic interface ExampleService {\n  @Operation(operationId = \"spring-mvc-example\")\n  @PostMapping(\"/helloWorld\")\n  String helloWorld(@RequestBody String name);\n}\n</code></pre> <p>\u670d\u52a1\u5b9e\u73b0\uff1a</p> <pre><code>@RestSchema(schemaId = \"SpringMVCExample\", schemaInterface = ExampleService.class)\npublic class SpringMVCExample implements ExampleService {\n  @Override\n  public String helloWorld(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre>"},{"location":"build-provider/bootup.html","title":"\u7a0b\u5e8f\u542f\u52a8\u903b\u8f91","text":""},{"location":"build-provider/bootup.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u542f\u52a8\u8fc7\u7a0b\u5206\u4e3a\u521d\u59cb\u5316Log4j\u3001bean\u52a0\u8f7d\uff08\u5305\u62ec\u914d\u7f6e\u52a0\u8f7d\uff09\u548c\u670d\u52a1\u6ce8\u518c\u4e09\u90e8\u5206\u3002</p> <ul> <li>\u521d\u59cb\u5316Log4j</li> </ul> <p><code>Log4jUtils</code>\u9ed8\u8ba4\u4f1a\u4ece<code>classpath\\*:config/base/log4j.properties</code>\u548c<code>classpath\\*:config/log4j.properties</code>\u4e24\u4e2a\u8def\u5f84\u8bfb\u53d6log4j\u914d\u7f6e\u5e76\u5408\u5e76\uff0c\u5c06\u5176\u4f20\u9012\u7ed9Log4j\u7684<code>PropertyConfigurator</code>\u65b9\u6cd5\u521d\u59cb\u5316Log4j\u3002\u5982\u679c\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u914d\u7f6e\u6587\u4ef6\u662f\u5728\u78c1\u76d8\u4e0a\uff0c\u4e14\u5176\u6240\u5728\u76ee\u5f55\u6709\u5199\u6743\u9650\uff0c\u5219\u5c06\u5408\u5e76\u7684\u914d\u7f6e\u8f93\u51fa\u5230\u8be5\u76ee\u5f55\uff0c\u4ee5\u4fbf\u4e8e\u7ef4\u62a4\u65f6\u89c2\u5bdf\u751f\u6548\u7684\u53c2\u6570\u3002</p> <ul> <li>bean\u52a0\u8f7d</li> </ul> <p><code>BeanUtils</code>\u9ed8\u8ba4\u4f1a\u4ece<code>classpath\\*:META-INF/spring/\\*.bean.xml</code>\u8def\u5f84\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u4f20\u9012\u7ed9Spring\u6846\u67b6\u7684<code>ClassPathXmlApplicationContext</code>\u5b8c\u6210\u5e94\u7528\u4e0a\u4e0b\u6587\u52a0\u8f7d\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u4f1a\u52a0\u8f7dfoundation-config\u6a21\u5757\u7684bean\uff0c\u5b8c\u6210\u914d\u7f6e\u52a0\u8f7d\u3002</p> <ul> <li>\u670d\u52a1\u6ce8\u518c</li> </ul> <p>\u5728Spring context\u52a0\u8f7d\u5b8c\u6210\u540e\uff0c<code>org.apache.servicecomb.core.CseApplicationListener</code>\u4f1a\u52a0\u8f7dhandler\u914d\u7f6e\u3001\u52a0\u8f7dprovider\u7684schema\u4fe1\u606f\uff0c\u6700\u540e\u5c06\u5fae\u670d\u52a1\u4fe1\u606f\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</p> <p>\u8bf4\u660e\uff1a ServiceComb\u7684\u914d\u7f6e\u9879\u5206\u4e3a\u4e09\u4e2a\u5c42\u6b21\uff1a\u914d\u7f6e\u4e2d\u5fc3\u3001\u73af\u5883\u53d8\u91cf\u3001\u672c\u5730\u6587\u4ef6\uff0c\u4e09\u8005\u4f18\u5148\u7ea7\u4f9d\u6b21\u9012\u51cf\uff0c\u9ad8\u4f18\u5148\u7ea7\u4e2d\u7684\u914d\u7f6e\u9879\u8986\u76d6\u4f4e\u4f18\u5148\u7ea7\u540c\u540d\u914d\u7f6e\u9879\u3002\u5b58\u653e\u5728\u914d\u7f6e\u4e2d\u5fc3\u7684\u914d\u7f6e\u9879\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u4fee\u6539\u3002</p>"},{"location":"build-provider/context-param.html","title":"\u4f7f\u7528 Context \u53c2\u6570","text":"<p>Context \u53c2\u6570\u6307\u5728\u63a5\u53e3\u58f0\u660e\u4e2d\u7684\u7279\u6b8a\u53c2\u6570\uff0c\u8fd9\u4e9b\u53c2\u6570\u4fe1\u606f\u4e0d\u4f1a\u51fa\u73b0\u5728\u6700\u7ec8\u7684\u5951\u7ea6\u4fe1\u606f\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528 Context \u53c2\u6570 \u83b7\u53d6\u6216\u8005\u4f20\u9012\u4e0e\u8fd0\u884c\u65f6\u6709\u5173\u7684\u4fe1\u606f\u3002 </p> <ul> <li>HttpServletRequest</li> </ul> <p>HttpServletRequest \u7528\u4e8e\u83b7\u53d6\u548cHTTP\u8bf7\u6c42\u6709\u5173\u7684\u4fe1\u606f\uff0c\u6bd4\u5982 header \u7b49\u3002\u5f53 servicecomb \u8fd0\u884c\u4e8e <code>Highway</code>   \u534f\u8bae\uff0c\u6216\u8005\u8fd0\u884c\u4e8e <code>vert.x</code> \u670d\u52a1\u5668\u4e4b\u4e0a\u7684\u65f6\u5019\uff0c\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528\u3002 \u4f46\u662f\u9700\u8981\u6ce8\u610f\uff0c\u548c JSP/Servlet \u534f\u8bae\u6807\u51c6\u7684\u5b9e\u73b0   \u4e0d\u540c\uff0c \u5f00\u53d1\u8005\u65e0\u6cd5\u901a\u8fc7 HttpServletRequest \u64cd\u4f5c\u6d41\uff0c\u53ea\u80fd\u591f\u8fdb\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u83b7\u53d6 header \u7b49\u64cd\u4f5c\u3002\u6bd4\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\uff0c   \u83b7\u53d6 query \u53c2\u6570\uff1a</p> <pre><code>    ```java\n      @GetMapping(path = \"/reduce\")\n      @ApiImplicitParams({@ApiImplicitParam(name = \"a\", dataType = \"integer\", format = \"int32\", paramType = \"query\")})\n      public int reduce(HttpServletRequest request, @CookieValue(name = \"b\") int b) {\n        int a = Integer.parseInt(request.getParameter(\"a\"));\n        return a - b;\n      }\n    ```\n</code></pre> <p>\u7279\u522b\u9700\u8981\u6ce8\u610f\uff0c\u5982\u679c\u8bf7\u6c42\u4e0d\u662f\u76f4\u63a5\u5230\u8fbe provider\uff0c \u800c\u662f\u7ecf\u8fc7 servicecomb \u7684 Edge Service \u8f6c\u53d1\u5230 provider\uff0c   \u4e0a\u9762\u7684\u4ee3\u7801\u8fd8\u5fc5\u987b\u4f7f\u7528 <code>@ApiImplicitParams</code> \u663e\u793a\u7684\u58f0\u660e\u8fd9\u4e2a\u63a5\u53e3\u7684\u5b9e\u73b0\u901a\u8fc7 <code>HttpServletRequest</code> \u8bfb\u53d6\u4e86   query \u53c2\u6570 <code>a</code>\uff0c \u5982\u679c\u4e0d\u58f0\u660e\uff0c Edge Service \u505a\u8bf7\u6c42\u8f6c\u53d1\u7684\u65f6\u5019\uff0c\u4e0d\u4f1a\u8f6c\u53d1\u53c2\u6570 <code>a</code>\uff0c \u4ee3\u7801\u4e2d\u8bfb\u53d6\u7684\u53c2\u6570\u503c\u4e3a   null\u3002</p> <p>\u8fd8\u9700\u8981\u6ce8\u610f\uff0cservicecomb \u4e0d\u652f\u6301 <code>HttpServletResponse</code> Context \u53c2\u6570\u3002</p> <ul> <li>InvocationContext</li> </ul> <p>InvocationContext \u662f servicecomb \u7279\u6709\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u53ef\u4ee5\u5728 <code>Handler</code>, <code>HttpServerFilter</code> \u7b49   \u591a\u79cd\u573a\u666f\u4f7f\u7528\u3002 InvocationContext \u5305\u542b local \u548c context \u4e24\u79cd\u6570\u636e\uff0c local \u6570\u636e\u53ea\u5728\u672c\u8fdb\u7a0b\u7684\u6a21\u5757\u95f4   \u4f20\u9012\uff0c context \u6570\u636e\u53ef\u4ee5\u5728\u5fae\u670d\u52a1\u4e4b\u95f4\u4f20\u9012\u3002 </p> <pre><code>    ```java\n      @ApiResponse(code = 202, response = User.class, message = \"\")\n      @ResponseHeaders({@ResponseHeader(name = \"h1\", response = String.class),\n          @ResponseHeader(name = \"h2\", response = String.class)})\n      @RequestMapping(path = \"/cseResponseCorrect\", method = RequestMethod.GET)\n      public Response cseResponseCorrect(InvocationContext c1) {\n        Response response = Response.createSuccess(Status.ACCEPTED, new User());\n        Headers headers = response.getHeaders();\n        headers.addHeader(\"h1\", \"h1v \" + c1.getContext().get(Const.SRC_MICROSERVICE));\n\n        InvocationContext c2 = ContextUtils.getInvocationContext();\n        headers.addHeader(\"h2\", \"h2v \" + c2.getContext().get(Const.SRC_MICROSERVICE));\n\n        return response;\n      }\n    ```\n</code></pre> <p>\u4e0a\u9762\u7684\u4ee3\u7801\u663e\u793a\u4e86 InvocationContext \u53c2\u6570\u7684\u7528\u6cd5\uff0c \u8fd9\u4e2a\u7528\u6cd5\u548c\u4ee3\u7801\u4e2d\u901a\u8fc7 ContextUtils.getInvocationContext()   \u83b7\u53d6\u662f\u7b49\u4ef7\u7684\u3002</p> <p>InvocationContext \u8fd8\u53ef\u4ee5\u5728 consumer \u7aef\u7684 RPC \u63a5\u53e3\u4e2d\u4f7f\u7528\uff0c \u4f7f\u7528Context\u4f20\u9012\u63a7\u5236\u6d88\u606f \u63cf\u8ff0\u4e86\u66f4\u591a InvocationContext \u7684\u4f7f\u7528   \u573a\u666f\u3002</p> <ul> <li>Endpoint</li> </ul> <p>Endpoint \u63cf\u8ff0\u5f53\u524d\u8bf7\u6c42\u9700\u8981\u53d1\u5f80\u7684\u5b9e\u4f8b\u5730\u5740\u3002 \u8fd9\u4e2a context \u53c2\u6570\u53ea\u80fd\u591f\u5728 consumer \u7aef\u7684 PRC \u63a5\u53e3\u4f7f\u7528\u3002\u5f53   \u5fae\u670d\u52a1\u5b58\u5728\u591a\u4e2a\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u6307\u5b9a\u5c06\u8bf7\u6c42\u53d1\u5f80\u54ea\u4e2a\u5b9e\u4f8b\u3002 </p> <pre><code>    ```java\n    public interface SchemaDiscoveryService {\n      String getSchema(Endpoint endpoint, String schemaId);\n    }\n\n    SchemaDiscoveryService schemaDiscoveryService = Invoker\n              .createProxy(serviceName, SchemaDiscoveryService.SCHEMA_ID,\n                  SchemaDiscoveryService.class);\n\n    schemaDiscoveryService.getSchema(EndpointUtils.parse(endpoint), schemaId);\n    ```\n</code></pre>"},{"location":"build-provider/define-contract.html","title":"\u7406\u89e3\u670d\u52a1\u5951\u7ea6","text":"<p>servicecomb \u7684\u6838\u5fc3\u8bbe\u8ba1\u7406\u5ff5\u662f <code>\u4ee5\u5951\u7ea6\u4e3a\u4e2d\u5fc3</code>\uff0c\u5951\u7ea6\u662f\u5fae\u670d\u52a1\u7cfb\u7edf\u8fd0\u884c\u548c\u6cbb\u7406\u7684\u57fa\u7840\u3002 \u53ef\u4ee5\u5c06\u5951\u7ea6\u7406\u89e3\u4e3a\u57fa \u4e8e OpenAPI \u89c4\u8303\u7684\u5fae\u670d\u52a1\u63a5\u53e3\u63cf\u8ff0\u3002java chassis \u63d0\u4f9b\u4e86\u4e24\u79cd\u65b9\u5f0f\u5b9a\u4e49\u5951\u7ea6\uff1a<code>code first</code> \u548c  <code>contract first</code> \u3002</p> <ul> <li>code first</li> </ul> <p>\u5f00\u53d1\u8005\u9996\u5148\u901a\u8fc7 JAVA \u4ee3\u7801\u5b9a\u4e49\u63a5\u53e3\u4fe1\u606f\uff0cservicecomb \u4f1a\u6839\u636e\u4ee3\u7801\u5b9a\u4e49\uff0c\u751f\u6210\u4ee5 yaml \u6587\u4ef6\u63cf\u8ff0\u7684 OpenAPI   \u6587\u6863\u3002 servicecomb \u652f\u6301\u4f7f\u7528 <code>JAX-RS</code>, <code>Spring MVC</code> \u7b49  REST Annotation \u63cf\u8ff0\u63a5\u53e3\u4fe1\u606f\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7   swagger API \u8865\u5145\u5176\u4ed6\u63a5\u53e3\u4fe1\u606f\u3002 \u5728\u4f7f\u7528 <code>RPC</code> \u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\u7684\u65f6\u5019\uff0c \u7cfb\u7edf\u4f1a\u6309\u7167\u9ed8\u8ba4\u7684\u89c4\u5219\u751f\u6210\u63a5\u53e3\u63cf\u8ff0\uff0c   \u4e5f\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u6807\u7b7e\u4fee\u9970\u63a5\u53e3\u4fe1\u606f\uff0c\u8ba9\u5951\u7ea6\u4fe1\u606f\u66f4\u52a0\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\u3002</p> <ul> <li>contract first</li> </ul> <p>\u5f00\u53d1\u8005\u5148\u901a\u8fc7\u5951\u7ea6\u7f16\u8f91\u5668\u4e66\u5199 yaml \u683c\u5f0f\u7684\u63a5\u53e3\u63cf\u8ff0\uff0c\u7136\u540e\u901a\u8fc7\u4ee3\u7801\u751f\u6210\u5de5\u5177\uff0c\u751f\u6210\u9879\u76ee\u4ee3\u7801\u3002\u8fd9\u79cd\u65b9\u5f0f\u901a\u5e38   \u9700\u8981\u5b9a\u4e49\u4e00\u5957\u6807\u51c6\u7684\u8f6f\u4ef6\u5de5\u7a0b\u89c4\u8303\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u7684\u5de5\u5177\u652f\u6301\u3002\u8fd9\u79cd\u65b9\u5f0f\u66f4\u52a0\u5bb9\u6613\u5b9e\u73b0\u63a5\u53e3\u89c4\u8303\u7ba1\u7406\uff0c\u5b9e\u73b0\u6d4b\u8bd5\u81ea\u52a8\u5316   \u7b49\u8f6f\u4ef6\u5de5\u7a0b\u6d41\u7a0b\u3002</p> <p>\u7531\u4e8e <code>contract first</code> \u5b9e\u8df5\u8d77\u6765\uff0c\u9700\u8981\u914d\u5957\u7684\u7ba1\u7406\u8fc7\u7a0b\u548c\u5de5\u5177\u4f53\u7cfb\u652f\u6301\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u63cf\u8ff0\uff0c \u672c\u7ae0\u8282\u7b80\u5355\u63cf\u8ff0\u5982\u4f55\u4e66\u5199\u5951\u7ea6\u3002\u540e\u7eed\u7684\u7ae0\u8282\u4f1a\u63cf\u8ff0\u4f7f\u7528 <code>code first</code> \u7684\u5f00\u53d1\u7ec6\u8282\u3002</p>"},{"location":"build-provider/define-contract.html#contract-first","title":"contract first \u5f00\u53d1\u6b65\u9aa4\u7b80\u8981\u63cf\u8ff0","text":"<p>ServiceComb \u4f7f\u7528 yaml \u6587\u4ef6\u683c\u5f0f\u5b9a\u4e49\u670d\u52a1\u5951\u7ea6\uff0c\u63a8\u8350\u4f7f\u7528Swagger Editor\u5de5\u5177\u6765\u7f16\u5199\u5951\u7ea6\uff0c \u53ef\u68c0\u67e5\u8bed\u6cd5\u683c\u5f0f\u53ca\u81ea\u52a8\u751f\u6210API\u6587\u6863\u3002\u8be6\u7ec6\u7684\u5951\u7ea6\u6587\u4ef6\u683c\u5f0f\u8bf7\u53c2\u8003OpenAPI\u5b98\u65b9\u6587\u6863\u3002</p> <p>\u5951\u7ea6\u6587\u4ef6\u653e\u7f6e\u5728 <code>resources/microservices</code> \u6216\u8005 <code>resources/application</code> \u76ee\u5f55\u4e0b\uff0c\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\u6240\u793a\u3002</p> <pre><code>resources\n  - microservices  \n    - serviceName #\u5fae\u670d\u52a1\u540d  \n      - schemaId.yaml #schema\u63a5\u53e3\u7684\u5951\u7ea6\n  - applications  \n    - appId #\u5e94\u7528ID  \n      - serviceName #\u5fae\u670d\u52a1\u540d  \n        - schemaId.yaml #schema\u63a5\u53e3\u7684\u5951\u7ea6\n</code></pre> <p>ServiceComb\u7684Swagger\u5951\u7ea6\u6587\u4ef6\u5e94\u5f53\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\u4fdd\u5b58\u3002\u5982\u679c\u5f53\u7528\u6237\u4f7f\u7528\u5176\u4ed6\u5b57\u7b26\u96c6\u4fdd\u5b58\u5951\u7ea6\u6587\u4ef6\uff0c\u4e14\u6587 \u4ef6\u4e2d\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u65f6\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u672a\u77e5\u9519\u8bef\u3002</p>"},{"location":"build-provider/define-contract.html#_2","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p><code>resources/microservices</code>\u76ee\u5f55\u548c<code>resources/application</code> \u76ee\u5f55\u4e0b\u7684schemaId.yaml\u6587\u4ef6\u5185\u5bb9\u793a\u4f8b\u5982\u4e0b\u3002</p> <pre><code>swagger: '2.0'\ninfo:\n  title: hello\n  version: 1.0.0\n  x-java-interface: org.apache.servicecomb.samples.common.schema.Hello\nbasePath: /springmvchello\nproduces:\n  - application/json\n\npaths:\n  /sayhi:\n    post:\n      operationId: sayHi\n      parameters:\n        - name: name\n          in: query\n          required: true\n          type: string\n      responses:\n        200:\n          description: \u6b63\u786e\u8fd4\u56de\n          schema:\n            type: string\n        default:\n          description: \u9ed8\u8ba4\u8fd4\u56de\n          schema:\n            type: string\n  /sayhello:\n    post:\n      operationId: sayHello\n      parameters:\n        - name: person\n          in: body\n          required: true\n          schema:\n            $ref: \"#/definitions/Person\"\n      responses:\n        200:\n          description: \u6b63\u786e\u8fd4\u56de\n          schema:\n            type: string\n        default:\n          description: \u9ed8\u8ba4\u8fd4\u56de\n          schema:\n            type: string\ndefinitions:\n  Person:\n    type: \"object\"\n    properties:\n      name:\n        type: \"string\"\n        description: \"person name\"\n    xml:\n      name: \"Person\"\n</code></pre> <p>ServiceComb\u4e2d\u7684\u5951\u7ea6\uff0cbasePath\u4e0d\u9700\u8981\u5305\u542bweb container\u7684web root\uff0c\u4ee5\u53caservlet\u7684url pattern\u3002 \u56e0\u4e3aServiceComb\u652f\u6301\u90e8\u7f72\u89e3\u8026\uff0c\u65e2\u53ef\u4ee5\u8131\u79bbservlet container\u72ec\u7acb\u90e8\u7f72\uff0c\u4e5f\u53ef\u4f7f\u7528war\u7684\u65b9\u5f0f\u90e8\u7f72 \u5230servlet container\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528embedded servlet container\u7684\u65b9\u5f0f\u8fd0\u884c\u3002 \u90e8\u7f72\u65b9\u5f0f\u4fee\u6539\u5bfc\u81f4\u7684\u5b9e\u9645url\u53d8\u66f4\uff0cServiceComb consumer\u4e1a\u52a1\u4ee3\u7801\u5e76\u4e0d\u9700\u8981\u611f\u77e5\uff0c\u6846\u67b6\u4f1a\u81ea\u52a8\u9002\u914d\u3002 </p> <p>\u8bf4\u660e\uff1a</p> <ul> <li>info.x-java-interface\u9700\u8981\u6807\u660e\u5177\u4f53\u7684\u63a5\u53e3\u8def\u5f84\uff0c\u6839\u636e\u9879\u76ee\u5b9e\u9645\u60c5\u51b5\u800c\u5b9a\u3002\u8be5\u4fe1\u606f\u4e3b\u8981\u662f\u4e3a\u4e86\u548c\u8001\u7248\u672c\u517c\u5bb9\uff0c     \u65b0\u7248\u672c\u53ef\u4ee5\u4e0d\u9700\u8981\u6307\u5b9a\u3002</li> <li>SchemaId\u4e2d\u53ef\u4ee5\u5305\u542b\".\"\u5b57\u7b26\uff0c\u4f46\u4e0d\u63a8\u8350\u8fd9\u6837\u547d\u540d\u3002\u8fd9\u662f\u7531\u4e8eServiceComb\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u662fyaml\u683c\u5f0f\u7684\uff0c     \".\"\u7b26\u53f7\u7528\u4e8e\u5206\u5272\u914d\u7f6e\u9879\u540d\u79f0\uff0c\u5982\u679cSchemaId\u4e2d\u4e5f\u5305\u542b\u4e86\".\"\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u652f\u6301\u5951\u7ea6\u7ea7\u522b\u7684\u914d\u7f6e\u65e0\u6cd5\u6b63\u786e\u88ab\u8bc6\u522b\u3002</li> <li>OperationId\u7684\u547d\u540d\u4e2d\u4e0d\u53ef\u5305\u542b\".\"\u5b57\u7b26\u3002</li> </ul>"},{"location":"build-provider/event-listener.html","title":"\u670d\u52a1\u542f\u52a8\u4e8b\u4ef6","text":"<p>java chassis \u542f\u52a8\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5e7f\u64ad\u4e8b\u4ef6\u3002 \u4e1a\u52a1\u53ef\u4ee5\u5728\u670d\u52a1\u542f\u52a8\u7684\u4e0d\u540c\u9636\u6bb5\u6267\u884c\u4e00\u4e9b\u521d\u59cb\u5316\u903b\u8f91\u3002 \u4e8b\u4ef6\u7c7b\u578b\u5728 <code>BootListener</code>  \u91cc\u9762\u5b9a\u4e49\uff1a</p> <pre><code>public interface BootListener {\n  enum EventType {\n    BEFORE_HANDLER,\n    AFTER_HANDLER,\n    BEFORE_PRODUCER_PROVIDER,\n    AFTER_PRODUCER_PROVIDER,\n    BEFORE_CONSUMER_PROVIDER,\n    AFTER_CONSUMER_PROVIDER,\n    BEFORE_TRANSPORT,\n    AFTER_TRANSPORT,\n    BEFORE_REGISTRY,\n    AFTER_REGISTRY,\n    BEFORE_CLOSE,\n    AFTER_CLOSE\n  }\n}\n</code></pre> <p>\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u5904\u7406\u5668\u53ea\u9700\u8981\u5b9e\u73b0 <code>BootListener</code> \u7684\u63a5\u53e3\uff0c\u5e76\u4e14\u58f0\u660e\u4e3a <code>Component</code> \u5373\u53ef\u3002</p> <pre><code>@Component\npublic class AuthHandlerBoot implements BootListener {\n  @Override\n  public void onBootEvent(BootEvent event) {\n    if (EventType.BEFORE_REGISTRY.equals(event.getEventType())) {\n      RSAKeyPairEntry rsaKeyPairEntry = RSAUtils.generateRSAKeyPair();\n      RSAKeypair4Auth.INSTANCE.setPrivateKey(rsaKeyPairEntry.getPrivateKey());\n      RSAKeypair4Auth.INSTANCE.setPublicKey(rsaKeyPairEntry.getPublicKey());\n      RSAKeypair4Auth.INSTANCE.setPublicKeyEncoded(rsaKeyPairEntry.getPublicKeyEncoded());\n      RegistryUtils.getMicroserviceInstance().getProperties().put(Const.INSTANCE_PUBKEY_PRO,\n          rsaKeyPairEntry.getPublicKeyEncoded());\n    }\n  }\n}\n</code></pre> <p>\u6bd4\u5982\uff0c\u901a\u8fc7\u4e8b\u4ef6\u5904\u7406\u5668\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u6ce8\u518c\u5b8c\u6210\u6216\u8005\u670d\u52a1\u6ce8\u518c\u4e4b\u524d\u8fdb\u884c\u4e00\u4e9b\u521d\u59cb\u5316\u64cd\u4f5c\u3002</p>"},{"location":"build-provider/http-mapping.html","title":"HTTP\u53c2\u6570\u6620\u5c04\u53c2\u8003","text":"<p>HTTP\u534f\u8bae\u662f\u4e00\u4e2a\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff0cRESTFul\u6846\u67b6\u6838\u5fc3\u90e8\u5206\uff0c\u5c31\u662f\u5c06\u8bed\u8a00\u5bf9\u8c61\u4e0eHTTP\u534f\u8bae\u7684\u7ec4\u6210\u90e8\u4ef6\u6620\u5c04\u8d77\u6765\uff0c\u63d0\u4f9b\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528(RPC)\u80fd\u529b\u3002 HTTP\u7684\u8bf7\u6c42\u54cd\u5e94\u53ef\u4ee5\u7b80\u5316\u63cf\u8ff0\u4e3a\uff1a</p> <ul> <li>\u8bf7\u6c42</li> </ul> <pre><code>GET /apps HTTP/1.1\n\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/x-www-form-urlencoded\n\nqueryParamExample1=example1&amp;queryParamExample2=example2\n</code></pre> <ul> <li>\u54cd\u5e94</li> </ul> <pre><code>Host: 127.0.0.1:8080\nContent-Type: application/x-www-form-urlencoded\n\nqueryParamExample1=example1&amp;queryParamExample2=example2\n</code></pre>"},{"location":"build-provider/http-mapping.html#http_1","title":"HTTP\u8bf7\u6c42\u53c2\u6570\u6620\u5c04","text":""},{"location":"build-provider/http-mapping.html#query","title":"Query","text":"<p>Query\u53c2\u6570\u5c5e\u4e8eHTTP\u534f\u8baeURL\u7684\u4e00\u90e8\u5206\uff0c\u6bd4\u5982:</p> <pre><code>GET /apps?queryParamExample1=example1&amp;queryParamExample2=example2 HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\n</code></pre> <p>\u5b9a\u4e49\u4e86Query\u53c2\u6570 <code>queryParamExample1</code> \u548c <code>queryParamExample2</code>\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(\"\")\npublic String queryExample(@RequestParam(\"queryParamExample1\") String example1,\n    @RequestParam(\"queryParamExample2\") String example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"\")\npublic String queryJAXRSExample(@QueryParam(\"queryParamExample1\") String example1,\n    @QueryParam(\"queryParamExample2\") String example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#path","title":"Path","text":"<p>Path\u53c2\u6570\u5c5e\u4e8eHTTP\u534f\u8baeURL\u7684\u4e00\u90e8\u5206\uff0c\u6bd4\u5982:</p> <pre><code>GET /apps/pathParamExample1/pathParamExample2 HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\n</code></pre> <p>\u5b9a\u4e49\u4e86Path\u53c2\u6570 <code>pathParamExample1</code> \u548c <code>pathParamExample2</code>\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(\"/{pathParamExample1}/{pathParamExample2}\")\npublic String pathSpringMVCExample(@PathVariable(\"pathParamExample1\") String example1,\n    @PathVariable(\"pathParamExample2\") String example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"/{pathParamExample1}/{pathParamExample2}\")\npublic String pathJAXRSExample(@PathParam(\"pathParamExample1\") String example1,\n    @PathParam(\"pathParamExample2\") String example2) \n</code></pre>"},{"location":"build-provider/http-mapping.html#header","title":"Header","text":"<p>Header\u5bf9\u5e94\u4e8eHTTP\u534f\u8bae\u8bf7\u6c42\u5934\uff0c\u6bd4\u5982:</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nheaderParamExample1: example1\nheaderParamExample2: example2\n</code></pre> <p>\u5b9a\u4e49\u4e86Header\u53c2\u6570 <code>headerParamExample1</code> \u548c <code>headerParamExample2</code>\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(\"\")\npublic String headerSpringMVCExample(@RequestHeader(\"headerParamExample1\") String example1,\n    @RequestHeader(\"headerParamExample2\") String example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"\")\npublic String headerJAXRSExample(@HeaderParam(\"headerParamExample1\") String example1,\n    @HeaderParam(\"headerParamExample2\") String example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationx-www-form-urlencoded","title":"application/x-www-form-urlencoded","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/x-www-form-urlencoded</code>\uff0c \u53ef\u4ee5\u4f7f\u7528 Form \u53c2\u6570\u3002 </p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/x-www-form-urlencoded\n\nqueryParamExample1=example1&amp;queryParamExample2=example2\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(path = \"formSpringMVCExample\", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)\npublic String formSpringMVCExample(@RequestAttribute(\"formParamExample1\") String example1,\n    @RequestAttribute(\"formParamExample2\") String example2)\n</code></pre> <p>\u539f\u751f Spring MVC \u7684 RequestAttribute \u8868\u793a HTTP \u7684 Attribute\uff0c \u4f7f\u7528 RequestParam \u8868\u793a form \u53c2\u6570\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u4ee3\u7801\u751f\u6210\u5951\u7ea6\u7684\u65f6\u5019\u4ea7\u751f\u6b67\u4e49\u3002 Java Chassis 3 \u63a8\u8350\u4f7f\u7528 RequestAttribute \u8868\u793aForm\u53c2\u6570\u3002</p> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"formJAXRSExample\")\n@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\npublic String formJAXRSExample(@FormParam(\"formParamExample1\") String example1,\n    @FormParam(\"formParamExample2\") String example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationjson","title":"application/json","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/json</code>\uff0c \u4f7f\u7528json\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/json\n\n{\"name\": \"wang\", \"age\": 20}\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"jsonSpringMVCExample\", consumes = MediaType.APPLICATION_JSON_VALUE)\npublic String jsonSpringMVCExample(@RequestBody Person person) \n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"jsonJAXRSExample\")\n@Consumes(jakarta.ws.rs.core.MediaType.APPLICATION_JSON)\npublic String jsonJAXRSExample(Person person)\n</code></pre> <p>JAX-RS\u6ca1\u6709\u58f0\u660e\u6807\u7b7e\u7684\u65f6\u5019\u8868\u793aBody\u53c2\u6570\u3002 </p>"},{"location":"build-provider/http-mapping.html#applicationprotobuf","title":"application/protobuf","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/protobuf</code>\uff0c \u4f7f\u7528protobuf\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/protobuf\n\nproto-buffer-binary-data\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"protobufSpringMVCExample\", consumes = SwaggerConst.PROTOBUF_TYPE)\npublic String protobufSpringMVCExample(@RequestBody Person person)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"protobufJAXRSExample\")\n@Consumes(SwaggerConst.PROTOBUF_TYPE)\npublic String protobufJAXRSExample(Person person)\n</code></pre> <p>JAX-RS\u6ca1\u6709\u58f0\u660e\u6807\u7b7e\u7684\u65f6\u5019\u8868\u793aBody\u53c2\u6570\u3002</p>"},{"location":"build-provider/http-mapping.html#applicationtext","title":"application/text","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/text</code>\uff0c \u4f7f\u7528json\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002</p> <p>application/text \u548c application/json \u5728\u5bf9\u8c61\u5e8f\u5217\u5316\u4e0a\u90fd\u91c7\u7528 json\uff0c\u5bf9\u4e8e\u5927\u591a\u6570\u573a\u666f\u4e24\u8005\u662f\u7b49\u4ef7\u7684\u3002\u53ea\u6709\u5f53\u5bf9\u8c61\u7c7b\u578b\u4e3a String \u7684\u65f6\u5019\uff0c \u5b58\u5728\u5dee\u5f02\uff1aapplication/text \u7684 String \u5e8f\u5217\u5316\u540e\u7684\u6587\u672c\u6ca1\u6709\u53cc\u5f15\u53f7\uff1bapplication/json \u7684 String \u5e8f\u5217\u5316\u540e\u7684\u6587\u672c\u6709\u53cc\u5f15\u53f7\uff1b</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/text\n\n{\"name\": \"wang\", \"age\": 20}\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"textSpringMVCExample\", consumes = MediaType.TEXT_PLAIN_VALUE)\npublic String textSpringMVCExample(@RequestBody Person person)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"textJAXRSExample\")\n@Consumes(MediaType.TEXT_PLAIN)\npublic String textJAXRSExample(Person person) \n</code></pre> <p>JAX-RS\u6ca1\u6709\u58f0\u660e\u6807\u7b7e\u7684\u65f6\u5019\u8868\u793aBody\u53c2\u6570\u3002</p>"},{"location":"build-provider/http-mapping.html#multipartform-data","title":"\u6587\u4ef6\u4e0a\u4f20\uff1amultipart/form-data","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>multipart/form-data</code>\uff0c \u8868\u793a\u6587\u4ef6\u4e0a\u4f20\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: multipart/form-data; boundary=----boundary-example----\n\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample1\"\n\ncontents of multiPartParamExample1\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample2\"\n\ncontents of multiPartParamExample2\n----boundary-example----\n</code></pre> <p>multipart/form-data \u4e5f\u53ef\u4ee5\u8868\u793a Form \u53c2\u6570\uff0c \u548c application/x-www-form-urlencoded \u7528\u6cd5\u4e00\u6837\u3002\u4e3a\u4e86\u907f\u514d\u6df7\u6dc6\u548c\u7b80\u6d01\uff0c\u5efa\u8baemultipart/form-data\u4e13\u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"multiPartSpringMVCExample\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String multiPartSpringMVCExample(@RequestPart(\"multiPartParamExample1\") MultipartFile example1,\n    @RequestPart(\"multiPartParamExample2\") MultipartFile example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"multiPartJAXRSExample\")\n@Consumes(MediaType.MULTIPART_FORM_DATA)\npublic String multiPartJAXRSExample(@FormParam(\"multiPartParamExample1\") Part example1,\n    @FormParam(\"multiPartParamExample2\") Part example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#http_2","title":"HTTP\u54cd\u5e94\u53c2\u6570\u6620\u5c04","text":""},{"location":"build-provider/http-mapping.html#header_1","title":"\u72b6\u6001\u7801 \u548c Header","text":"<p>\u5728\u6ca1\u6709\u7279\u6b8a\u58f0\u660e\u7684\u60c5\u51b5\u4e0b\uff0c\u6b63\u5e38\u54cd\u5e94\u7684\u72b6\u6001\u7801\u662f <code>200</code>\uff0c\u4e5f\u53ef\u4ee5\u58f0\u660e\u5176\u4ed6\u72b6\u6001\u7801\u3002</p> <p>Java Chassis 2xx \u72b6\u6001\u7801\u8868\u793a\u6b63\u5e38\u54cd\u5e94\uff0c\u4f1a\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002 \u53ef\u4ee5\u4f7f\u7528 <code>@ApiResponse</code> \u81ea\u5b9a\u4e49\u72b6\u6001\u7801\uff0c\u6240\u6709 2xx \u72b6\u6001\u7801\u58f0\u660e\u7684\u5bf9\u8c61\u7c7b\u578b\u5fc5\u987b\u4e00\u6837\u3002 \u5176\u4ed6\u72b6\u6001\u7801\u8868\u793a\u5f02\u5e38\uff0c\u4f1a\u5bf9 <code>InvocationException</code> \u8fdb\u884c\u5e8f\u5217\u5316\uff0c\u4e0d\u8981\u6c42\u5bf9\u8c61\u7c7b\u578b\u4e00\u6837\u3002 </p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"statusHeaderSpringMVCExample\")\n@ApiResponses(value = {\n    @ApiResponse(\n        responseCode = \"200\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"202\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"400\",\n        content = @Content(schema = @Schema(implementation = MultiResponse400.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))})})\npublic ResponseEntity&lt;Person&gt; statusHeaderSpringMVCExample(@RequestBody Person person) {\n    return ResponseEntity.status(200).header(\"h1\", \"h1\")\n    .header(\"h2\", \"h2\").body(person);\n}\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@PostMapping(path = \"statusHeaderJAXRSExample\")\n@ApiResponses(value = {\n    @ApiResponse(\n        responseCode = \"200\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"202\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"400\",\n        content = @Content(schema = @Schema(implementation = MultiResponse400.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))})})\npublic Response statusHeaderJAXRSExample(@RequestBody Person person) {\n    return Response.status(200).entity(new Person()).header(\"h1\", \"h1\")\n    .header(\"h2\", \"h2\").build();\n}\n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationjson_1","title":"application/json","text":"<p>\u54cd\u5e94\u7c7b\u578b\u6839\u636e <code>Accept</code> \u6765\u786e\u5b9a\uff0c\u9ed8\u8ba4\u662f application/json\u3002 \u4e5f\u53ef\u4ee5\u58f0\u660e\u63a5\u53e3\u53ea\u652f\u6301 application/json \u54cd\u5e94\u3002 </p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"produceJsonSpringMVCExample\", produces = MediaType.APPLICATION_JSON_VALUE)\npublic Person produceJsonSpringMVCExample()\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"produceJsonJAXRSExample\")\n@Produces(MediaType.APPLICATION_JSON)\npublic Person produceJsonJAXRSExample() \n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationprotobuf_1","title":"application/protobuf","text":"<p>\u54cd\u5e94\u7c7b\u578b\u6839\u636e <code>Accept</code> \u6765\u786e\u5b9a\uff0c\u9ed8\u8ba4\u662f application/json\u3002 \u4e5f\u53ef\u4ee5\u58f0\u660e\u63a5\u53e3\u53ea\u652f\u6301 application/protobuf \u54cd\u5e94\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"produceProtobufSpringMVCExample\", produces = SwaggerConst.PROTOBUF_TYPE)\npublic Person produceProtobufSpringMVCExample()\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"produceProtobufJAXRSExample\")\n@Produces(SwaggerConst.PROTOBUF_TYPE)\npublic Person produceProtobufJAXRSExample() \n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationtext_1","title":"application/text","text":"<p>\u54cd\u5e94\u7c7b\u578b\u6839\u636e <code>Accept</code> \u6765\u786e\u5b9a\uff0c\u9ed8\u8ba4\u662f application/json\u3002 \u4e5f\u53ef\u4ee5\u58f0\u660e\u63a5\u53e3\u53ea\u652f\u6301 application/text \u54cd\u5e94\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"produceTextSpringMVCExample\", produces = MediaType.TEXT_PLAIN_VALUE)\npublic Person produceTextSpringMVCExample()\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"produceTextJAXRSExample\")\n@Produces(MediaType.TEXT_PLAIN)\npublic Person produceTextJAXRSExample() \n</code></pre>"},{"location":"build-provider/http-mapping.html#_1","title":"\u6587\u4ef6\u4e0b\u8f7d","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u901a\u7528\u7684 <code>\u6587\u4ef6\u4e0b\u8f7d</code> \u652f\u6301\u3002 \u5982\u679c\u8fd4\u56de\u503c\u7c7b\u578b\u4e3a <code>File</code>\u3001<code>Resource</code>\u3001<code>InputStream</code>\u3001<code>Part</code> \u7b49\uff0c\u5219\u88ab\u8ba4\u4e3a\u662f <code>\u6587\u4ef6\u4e0b\u8f7d</code>\u3002 \u6587\u4ef6MIME\u7c7b\u578b\u548c\u6587\u4ef6\u540d\u53ef\u4ee5\u4f7f\u7528 <code>Part</code> \u7684 API \u6307\u5b9a\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(path = \"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre>"},{"location":"build-provider/interface-constraints.html","title":"\u63a5\u53e3\u5b9a\u4e49\u548c\u6570\u636e\u7c7b\u578b","text":"<p>\u4e0d\u8bba\u91c7\u7528 <code>JAX-RS</code>\u3001<code>Spring MVC</code>\uff0c\u8fd8\u662f\u91c7\u7528 <code>\u900f\u660eRPC</code> \u5f00\u53d1\uff0c\u90fd\u6d89\u53ca\u63a5\u53e3\u7684\u8fd4\u56de\u503c\u548c\u53c2\u6570\u3002java-chassis  \u91c7\u7528\u7684\u662f\u4e00\u79cd\u5e73\u53f0\u65e0\u5173\u7684\u6570\u636e\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u5f53 <code>Transport</code> \u4e3a <code>REST</code> \u7684\u65f6\u5019\uff0c\u5e8f\u5217\u5316\u65b9\u5f0f\u4e3a <code>json</code>\uff0c\u5f53 <code>Transport</code> \u4e3a <code>Highway</code> \u7684\u65f6\u5019\uff0c\u5e8f\u5217\u5316\u65b9\u5f0f\u4e3a <code>protobuffer</code>\u3002 \u5e73\u53f0\u65e0\u5173\u7684\u6570\u636e\u5e8f\u5217\u5316\u65b9\u5f0f\u6709\u4e2a\u57fa\u672c \u7279\u5f81\uff1a\u4f5c\u4e3a <code>Consumer</code>\uff0c \u4ece\u5e8f\u5217\u5316\u7684\u6570\u636e\u4e2d\uff0c\u65e0\u6cd5\u83b7\u53d6\u4efb\u4f55\u548c <code>Consuemr</code> \u5f00\u53d1\u8bed\u8a00\u6709\u5173\u7684\u7c7b\u578b\u4fe1\u606f\u3002 \u5e73\u53f0\u65e0\u5173 \u7279\u6027\u7ed9\u63a5\u53e3\u5b9a\u4e49\u7684\u6570\u636e\u7c7b\u578b\u63d0\u4f9b\u4e86\u66f4\u4e25\u683c\u7684\u8981\u6c42\uff0c\u7b26\u5408\u8fd9\u4e9b\u8981\u6c42\u7684\u63a5\u53e3\u5b9a\u4e49\uff0c\u4e00\u65b9\u9762\u8fd0\u884c\u66f4\u52a0\u9ad8\u6548\uff0c\u53e6\u5916\u4e00\u65b9\u9762\u66f4\u52a0\u65b9\u4fbf\u7684 \u52a8\u6001\u8c03\u6574 <code>Transport</code>\uff0c \u800c\u65e0\u9700\u5bf9\u4ee3\u7801\u505a\u51fa\u4fee\u6539\u3002 </p> <p>\u5bf9\u4e8e <code>REST</code>\uff0c \u867d\u7136 <code>json</code> \u672c\u8eab\u4e0d\u5305\u542b\u7279\u5b9a\u5e73\u53f0\u7684\u7c7b\u578b\u4fe1\u606f\uff0c\u4f46\u662f <code>JAVA</code> \u53ef\u4ee5\u901a\u8fc7\u5728\u53cd\u5e8f\u5217\u5316\u7684\u65f6\u5019\uff0c\u6307\u5b9a\u76ee\u6807 \u7c7b\u578b\uff0c\u6240\u4ee5\u5bf9\u4e8e <code>REST</code>\uff0c \u53ef\u4ee5\u66f4\u52a0\u7075\u6d3b\u7684\u4f7f\u7528\u4e0d\u540c\u7684\u7c7b\u578b\u3002 </p> <p>\u672c\u7ae0\u8282\u4e3b\u8981\u4ecb\u7ecd\u4e3a\u4e86\u5b9e\u73b0\u6700\u5927\u7684\u5938\u5e73\u53f0\u548c\u9ad8\u6027\u80fd\uff0c\u5f00\u53d1\u8005\u5b9a\u4e49\u63a5\u53e3\u7684\u6700\u4f73\u5b9e\u8df5\u3002\u540c\u65f6\u4ecb\u7ecd\u5728\u4f7f\u7528 <code>REST</code> \u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u4f55 \u66f4\u52a0\u7075\u6d3b\u7684\u652f\u6301\u4e0d\u540c\u7684\u7c7b\u578b\u3002 </p>"},{"location":"build-provider/interface-constraints.html#_2","title":"\u63a5\u53e3\u5b9a\u4e49\u7684\u6700\u4f73\u5b9e\u8df5\u548c\u7c7b\u578b\u7ea6\u675f","text":"<p>java-chassis \u7684\u6240\u6709\u63a5\u53e3\u5b9a\u4e49\uff0c\u90fd\u53ef\u4ee5\u751f\u6210\u7b26\u5408 <code>OpenAPI</code> \u7684 <code>swagger</code> \u63a5\u53e3\u63cf\u8ff0\uff0c\u5f53\u4f7f\u7528 <code>Highway</code> \u534f\u8bae\u65f6\uff0c <code>swagger</code> \u6587\u4ef6\u8fd8\u4f1a\u5728\u5185\u90e8\u88ab\u8f6c\u6362\u4e3a\u7b49\u4ef7\u7684 <code>proto</code> \u6587\u4ef6\u3002 \u63a5\u53e3\u5b9a\u4e49\u7684\u6700\u4f73\u5b9e\u8df5\u9700\u8981\u6ee1\u8db3 <code>OpenAPI</code> \u548c <code>proto</code>\u7684 \u6570\u636e\u7c7b\u578b\u8981\u6c42\u3002 </p> <ul> <li><code>OpenAPI</code> \u5b9a\u4e49\u4e86\u5982\u4e0b\u4e00\u4e9b\u57fa\u672c\u7c7b\u578b\uff1a</li> </ul> <p>\u4e0b\u9762\u5217\u4e3e\u4e00\u4e9b\u5e38\u89c1\u7684\u7c7b\u578b\u8bf4\u660e\uff0c\u8be6\u7ec6\u53c2\u8003 OpenAPI\u6587\u6863\u3002</p> type format java \u8bf4\u660e string - String string date java.util.Date, java.time.LocalDate \u63a8\u8350\u4f7f\u7528 LocalDate string date-time java.util.Date, java.time.LocalDateTime \u63a8\u8350\u4f7f\u7528 LocalDateTime number - double number float float number double double integer - integer integer int32 int integer int64 long boolean - boolean array ArrayList \u5fc5\u987b\u6307\u5b9a\u7c7b\u578b object \u7531\u4e0a\u9762\u7684\u5c5e\u6027\u6784\u6210\u7684\u5bf9\u8c61\u7c7b\u578b\u3002\u5305\u62ec\u5b57\u5178\uff08HashMap\uff09\uff0c\u5b57\u5178\u7684 key \u5fc5\u987b\u4e3a string \u53c2\u6570\u7c7b\u578b \u901a\u4fe1\u534f\u8bae \u7f16\u7801\u65b9\u5f0f \u662f\u5426\u652f\u6301 \u5907\u6ce8 Query HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean, array Path HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean Header HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean Cookie HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean Body HTTP/HTTP2 application/x-www-form-urlencoded \u662f \u652f\u6301string, number, boolean Body HTTP/HTTP2 multipart/form-data \u662f \u652f\u6301string, number, boolean Body HTTP/HTTP2 application/json \u662f Body HTTP/HTTP2 application/protobuf \u662f Query HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean, array Path HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean Header HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean Cookie HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean Body HIGHWAY application/x-www-form-urlencoded \u5426 Body HIGHWAY multipart/form-data \u5426 Body HIGHWAY application/json \u662f Body HIGHWAY application/protobuf \u662f <ul> <li><code>proto</code> \u5b9a\u4e49\u4e86\u5982\u4e0b\u4e00\u4e9b\u57fa\u672c\u7c7b\u578b\uff1a</li> </ul> <p>\u4e0b\u9762\u5217\u4e3e\u4e00\u4e9b\u5e38\u89c1\u7684\u7c7b\u578b\u8bf4\u660e\uff0c\u8be6\u7ec6\u53c2\u8003 Proto Buffer\u7c7b\u578b\u8bf4\u660e\u3002</p> type java \u8bf4\u660e double double float float int32 int int64 long uint32 int uint64 long sint32 int sint64 long fixed32 int fixed64 long sfixed32 int sfixed64 long bool boolean string String bytes ByteString map \u5b57\u5178\u7c7b\u578b <p><code>OpenAPI</code> \u7684 <code>date</code> format \u5728 <code>proto</code> \u91cc\u9762\u91c7\u7528 <code>long</code> \u8868\u793a\u3002 java-chassis \u7684\u5f00\u53d1\u5b9e\u8df5\u5206\u4e3a <code>code first</code> \u548c <code>contrast first</code> \u4e24\u79cd\u6a21\u5f0f\uff0c \u5982\u679c\u91c7\u7528 <code>contrast first</code> \u6a21\u5f0f\uff0c\u5148\u5199 <code>swagger</code>\uff0c \u7136\u540e\u901a\u8fc7 <code>swagger</code> \u751f\u6210 \u4ee3\u7801\uff0c \u8fd9\u79cd\u65b9\u5f0f\u751f\u6210\u7684\u6570\u636e\u7c7b\u578b\u90fd\u662f\u7b26\u5408\u6700\u4f73\u5b9e\u8df5\u7684\u3002 \u5982\u679c\u91c7\u7528 <code>code first</code>\uff0c \u8981\u8003\u8651\u54ea\u4e9b\u7c7b\u578b\u662f\u6700\u4f73\u5b9e\u8df5\uff0c\u53ef\u4ee5\u4ece\u601d\u8003\u5b9a\u4e49 \u7684 JAVA \u7c7b\u578b\uff0c\u5bf9\u5e94\u7684 <code>swagger</code> \u662f\u4ec0\u4e48\u6837\u5b50\u7684\u3002 \u5f53\u7136\u8fd9\u6837\u601d\u8003\uff0c\u5bf9\u4e8e\u4e0d\u719f\u6089 <code>swagger</code> \u6216\u8005 <code>proto</code> \u7684\u5f00\u53d1\u8005 \u8fd8\u662f\u663e\u5f97\u590d\u6742\u3002 \u4e0b\u9762\u4ece <code>code first</code> \u7684\u89d2\u5ea6\u63cf\u8ff0\u4f7f\u7528\u54ea\u4e9b\u7c7b\u578b\u662f\u6700\u4f73\u5b9e\u8df5\u3002 </p>"},{"location":"build-provider/interface-constraints.html#code-first","title":"\u4ece <code>code first</code> \u89d2\u5ea6\u7406\u89e3\u5938\u5e73\u53f0\u6570\u636e\u7c7b\u578b\u7684\u7ea6\u675f","text":"<p>\u5f00\u53d1\u8005\u4e0d\u80fd\u5728\u63a5\u53e3\u5b9a\u4e49\u7684\u65f6\u5019\u4f7f\u7528\u5982\u4e0b\u7c7b\u578b\uff1a</p> <ul> <li> <p>\u62bd\u8c61\u7684\u6570\u636e\u7ed3\u6784: java.lang.Object, net.sf.json.JsonObject \u7b49\u3002 \u4f7f\u7528\u8fd9\u4e9b\u7c7b\u578b java-chassis \u542f\u52a8   \u4e0d\u4f1a\u62a5\u9519\uff0c\u529f\u80fd\u4e5f\u662f\u6b63\u5e38\u7684\u3002\u4f46\u4e0d\u662f\u6700\u4f73\u5b9e\u8df5\uff0c\u4e5f\u4f1a\u5bf9\u6027\u80fd\u6709\u4e00\u5b9a\u5f71\u54cd\u3002 </p> </li> <li> <p>\u63a5\u53e3\u6216\u8005\u62bd\u8c61\u7c7b</p> <pre><code>```java\npublic interface IPerson {//...}\npublic abstract class AbstractPerson  {//...}\n```\n</code></pre> </li> <li> <p>\u4e0a\u8ff0\u7c7b\u578b\u7684\u96c6\u5408\u7c7b\u578b\u6216\u8005\u6ca1\u6709\u6307\u5b9a\u5177\u4f53\u7c7b\u578b\u7684\u96c6\u5408\uff0c\u6bd4\u5982\uff1a<code>List&lt;IPerson&gt;, Map&lt;String, PersonHolder&lt;?&gt;&gt;, List, Map</code>\u7b49\u3002 <code>List&lt;String&gt;, List&lt;Person&gt;</code> \u8fd9\u4e9b\u5177\u4f53\u7c7b\u578b\u662f\u652f\u6301\u7684\u3002</p> </li> <li> <p>\u5305\u542b\u4e0a\u8ff0\u7c7b\u578b\u4f5c\u4e3a\u5c5e\u6027\u7684\u7c7b\u578b</p> <pre><code>```java\npublic class GroupOfPerson {IPerson master //...}\n```\n</code></pre> </li> </ul> <p>\u4e0d\u7528\u62c5\u5fc3\u8bb0\u4e0d\u4f4f\u8fd9\u4e9b\u7ea6\u675f\uff0c\u7a0b\u5e8f\u4f1a\u5728\u542f\u52a8\u7684\u65f6\u5019\u68c0\u67e5\u4e0d\u652f\u6301\u7684\u7c7b\u578b\uff0c\u5e76\u7ed9\u4e0e\u9519\u8bef\u63d0\u793a\u3002</p> <p>\u603b\u4e4b\uff0c\u6570\u636e\u7ed3\u6784\u9700\u8981\u80fd\u591f\u4f7f\u7528\u7b80\u5355\u7684\u6570\u636e\u7c7b\u578b\u8fdb\u884c\u63cf\u8ff0\uff0c\u4e00\u76ee\u4e86\u7136\u5c31\u662f\u6700\u597d\u7684\u3002\u8fd9\u4e2a\u5728\u4e0d\u540c\u7684\u8bed\u8a00\uff0c\u4e0d\u540c\u7684\u534f\u8bae\u91cc\u9762\u90fd\u652f\u6301\u7684\u5f88 \u597d\uff0c\u957f\u671f\u6765\u770b\uff0c\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u5f00\u53d1\u8005\u8054\u8c03\u6c9f\u901a\u548c\u540e\u671f\u91cd\u6784\u7684\u6210\u672c\u3002</p>"},{"location":"build-provider/interface-constraints.html#_3","title":"\u5173\u4e8e\u6570\u636e\u7ed3\u6784\u548c\u63a5\u53e3\u53d8\u66f4","text":"<p>\u63a5\u53e3\u540d\u79f0\u3001\u53c2\u6570\u7c7b\u578b\u3001\u53c2\u6570\u987a\u5e8f\u3001\u8fd4\u56de\u503c\u7c7b\u578b\u53d8\u66f4\u90fd\u5c5e\u4e8e\u63a5\u53e3\u53d8\u66f4\u3002ServiceComb\u542f\u52a8\u7684\u65f6\u5019\uff0c\u4f1a\u6839\u636e\u7248\u672c\u53f7\u68c0\u6d4b\u63a5\u53e3\u53d8\u5316\uff0c \u63a5\u53e3\u53d8\u5316\u8981\u6c42\u4fee\u6539\u7248\u672c\u53f7\u3002ServiceComb\u8bc6\u522b\u63a5\u53e3\u662f\u5426\u53d8\u5316\u662f\u901a\u8fc7\u4ee3\u7801\u751f\u6210\u7684\u5951\u7ea6\u5185\u5bb9\uff0c\u6709\u4e9b\u4e0d\u89c4\u8303\u7684\u63a5\u53e3\u5b9a\u4e49\u53ef\u80fd\u5bfc\u81f4\u5728 \u4ee3\u7801\u6ca1\u6709\u53d8\u5316\u7684\u60c5\u51b5\u4e0b\uff0c\u751f\u6210\u7684\u5951\u7ea6\u4e0d\u540c\u3002\u6bd4\u5982\uff1a</p> <pre><code>public void get(Person p)\nclass Person {\n  private String value;\n  private boolean isOk;\n  public String getName() {return value}\n  public boolean isOk() {return isOK}\n}\n</code></pre> <p>\u8fd9\u4e2a\u63a5\u53e3\u901a\u8fc7access method\u5b9a\u4e49\u4e86\"name\"\u548c\"ok\"\u4e24\u4e2a\u5c5e\u6027\uff0c\u548c\u5b9e\u9645\u7684\u5b57\u6bb5\"value\"\u548c\"isOk\"\u4e0d\u540c\u3002\u8fd9\u79cd\u60c5\u51b5\u53ef\u80fd\u5bfc \u81f4\u6bcf\u6b21\u542f\u52a8\u751f\u6210\u7684\u5951\u7ea6\u4e0d\u4e00\u6837\u3002\u9700\u8981\u5c06\u4ee3\u7801\u8c03\u6574\u4e3a\u7b26\u5408JAVA Bean\u89c4\u8303\u7684\u5b9a\u4e49\u3002</p> <pre><code>public void get(Person p)\nclass Person {\n  private String name;\n  private boolean ok;\n  public String getName() {return name}\n  public boolean isOk() {return ok}\n}\n</code></pre> <p>\u6216\u8005\u901a\u8fc7JSON\u6807\u6ce8\uff0c\u663e\u793a\u7684\u6307\u660e\u5b57\u6bb5\u987a\u5e8f\u3002\u6bd4\u5982\uff1a</p> <pre><code>public void get(Person p)\n@JsonPropertyOrder({\"name\", \"ok\"})\nclass Person {\n  private String value;\n  private boolean isOk;\n  public String getName() {return value}\n  public boolean isOk() {return isOK}\n}\n</code></pre> <p>\u8003\u8651\u5230\u63a5\u53e3\u53d8\u66f4\u7684\u5f71\u54cd\uff0c\u5efa\u8bae\u5728\u8fdb\u884c\u5bf9\u5916\u63a5\u53e3\u5b9a\u4e49\u7684\u65f6\u5019\uff0c\u5c3d\u53ef\u80fd\u4e0d\u8981\u4f7f\u7528\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u63d0\u4f9b\u7684\u7c7b\u4f5c\u4e3a\u63a5\u53e3\u53c2\u6570\uff0c\u800c\u662f\u4f7f \u7528\u81ea\u5b9a\u4e49\u7684POJO\u7c7b\u3002\u4e00\u65b9\u9762\u5347\u7ea7\u4e09\u65b9\u4ef6\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u611f\u77e5\u4e0d\u5230\u63a5\u53e3\u53d8\u5316\uff1b\u53e6\u5916\u4e00\u65b9\u9762\uff0c\u5982\u679c\u51fa\u73b0\u95ee\u9898\uff0c\u65e0\u6cd5\u901a\u8fc7 \u4fee\u6539\u7b2c\u4e09\u65b9\u4ee3\u7801\u8fdb\u884c\u89c4\u907f\u3002\u6bd4\u5982\uff1ajava.lang.Timestamp, org.joda.time.JodaTime\u7b49\u3002</p>"},{"location":"build-provider/interface-constraints.html#_4","title":"\u534f\u8bae\u4e0a\u7684\u5dee\u5f02","text":"<p>\u5c3d\u7ba1 ServiceComb-Java-Chassis \u5b9e\u73b0\u4e86\u4e0d\u540c\u534f\u8bae\u4e4b\u95f4\u5f00\u53d1\u65b9\u5f0f\u7684\u900f\u660e\uff0c\u53d7\u9650\u4e8e\u5e95\u5c42\u534f\u8bae\u7684\u9650\u5236\uff0c\u4e0d\u540c\u7684\u534f\u8bae\u5b58\u5728\u5c11\u91cf\u5dee\u5f02\u3002</p> <ul> <li> <p>map\uff0ckey\u53ea\u652f\u6301 string</p> </li> <li> <p>highway (protobuf\u9650\u5236)  </p> <ol> <li>\u4e0d\u652f\u6301\u5728\u7f51\u7edc\u4e0a\u4f20\u9012null\uff0c\u5305\u62ecCollection\u3001array\u4e2d\u7684\u5143\u7d20\uff0cmap\u7684value  </li> <li>\u957f\u5ea6\u4e3a0\u7684\u6570\u7ec4\u3001list\uff0c\u4e0d\u4f1a\u5728\u7f51\u7edc\u4e0a\u4f20\u9012\uff0c\u63a5\u6536\u7aef\u89e3\u7801\u51fa\u6765\u5c31\u662f\u9ed8\u8ba4\u503c</li> </ol> </li> <li> <p>springmvc  </p> <ol> <li>\u4e0d\u652f\u6301 Date \u4f5c\u4e3a path\u3001query \u53c2\u6570\u3002 \u56e0\u4e3aspringmvc \u76f4\u63a5\u5c06 Date \u505a toString \u653e\u5728path\u3001query\u4e2d\uff0c\u4e0e    swagger\u7684\u6807\u51c6\u4e0d\u5339\u914d\u3002</li> </ol> </li> </ul>"},{"location":"build-provider/interface-constraints.html#_5","title":"\u6cdb\u578b\u652f\u6301","text":"<p>ServiceComb-Java-Chassis \u652f\u6301REST\u4f20\u8f93\u65b9\u5f0f\u4e0b\u7684\u6cdb\u578b\u8bf7\u6c42\u53c2\u6570\u548c\u8fd4\u56de\u503c\u3002\u4f8b\u5982\u4f7f\u7528\u4e00\u4e2a\u6cdb\u578b\u7684\u6570\u636e\u7c7b\u578b:</p> <pre><code>public class Generic&lt;T&gt;{\n  public T value;\n}\n</code></pre> <p>\u5176\u4e2d\u7684\u6cdb\u578b\u5c5e\u6027T\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b9e\u4f53\u7c7b\u3001java.util.Date\u3001\u679a\u4e3e\uff0c\u4e5f\u53ef\u4ee5\u5d4c\u5957\u6cdb\u578b\u6570\u636e\u7c7b\u578b\u3002</p> <p>\u5f53\u7528\u6237\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u529f\u80fd\u81ea\u52a8\u751f\u6210\u5fae\u670d\u52a1\u5951\u7ea6\u65f6\uff0c\u9700\u8981\u5728provider\u63a5\u53e3\u65b9\u6cd5\u7684\u8fd4\u56de\u6d88\u606f\u4e2d\u660e\u786e\u6307\u5b9a\u6cdb\u578b\u7c7b\u578b\uff0c\u4ee5\u4fdd \u8bc1 ServiceComb-Java-Chassis \u751f\u6210\u7684\u5951\u7ea6\u4e2d\u5305\u542b\u8db3\u591f\u7684\u63a5\u53e3\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u5f53provider\u7aef\u63a5\u53e3\u65b9\u6cd5\u4ee3\u7801\u4e3a</p> <pre><code>public Holder&lt;List&lt;Person&gt;&gt; getHolderListArea() {\n  Holder&lt;List&lt;Person&gt;&gt; response = new Holder&lt;&gt;();\n  // ommited\n  return response;\n}\n</code></pre> <p>\u65f6\uff0c ServiceComb-Java-Chassis \u80fd\u591f\u8bc6\u522b\u51fa\u6cdb\u578b\u8fd4\u56de\u5bf9\u8c61\u7684\u786e\u5207\u4fe1\u606f\uff0c\u4ee5\u4fdd\u8bc1consumer\u7aef\u63a5\u6536\u5230\u7684\u5e94\u7b54\u6d88\u606f\u80fd\u591f\u88ab \u6b63\u786e\u5730\u53cd\u5e8f\u5217\u5316\u3002\u800c\u5982\u679cprovider\u7aef\u63a5\u53e3\u65b9\u6cd5\u7684\u4ee3\u7801\u4e3a</p> <pre><code>public Holder getHolderListArea() {\n  Holder&lt;List&lt;Person&gt;&gt; response = new Holder&lt;&gt;();\n  // ommited\n  return response;\n}\n</code></pre> <p>\u65f6\uff0c\u7531\u4e8e\u5951\u7ea6\u4e2d\u7f3a\u5c11List\u5143\u7d20\u7684\u7c7b\u578b\u4fe1\u606f\uff0c\u5c31\u4f1a\u51fa\u73b0consumer\u7aef\u65e0\u6cd5\u6b63\u786e\u53cd\u5e8f\u5217\u5316\u5e94\u7b54\u7684\u60c5\u51b5\uff0c\u6bd4\u5982consumer\u63a5\u6536 \u5230\u7684\u53c2\u6570\u7c7b\u578b\u53ef\u80fd\u4f1a\u53d8\u4e3a<code>Holder&lt;List&lt;Map&lt;String,String&gt;&gt;&gt;</code>\uff0c<code>Person</code>\u5bf9\u8c61\u9000\u5316\u4e3aMap\u7c7b\u578b\u3002</p> <p>\u8bf4\u660e:  \u867d\u7136 ServiceComb-Java-Chassis \u652f\u6301REST\u6cdb\u578b\u53c2\u6570\uff0c\u4f46\u662f\u6211\u4eec\u66f4\u52a0\u63a8\u8350\u7528\u6237\u4f7f\u7528\u5b9e\u4f53\u7c7b\u4f5c\u4e3a\u53c2\u6570\uff0c\u4ee5\u83b7\u5f97 \u66f4\u52a0\u660e\u786e\u7684\u63a5\u53e3\u8bed\u4e49\u3002</p>"},{"location":"build-provider/interface-constraints.html#_6","title":"\u5176\u4ed6\u5e38\u89c1\u95ee\u9898","text":"<ul> <li>\u4f7f\u7528 RestTemplate \u4f20\u9012 raw json</li> </ul> <p>\u5047\u8bbe\u670d\u52a1\u7aef\u5b9a\u4e49\u4e86\u63a5\u53e3</p> <pre><code>Person test(Person input)\n</code></pre> <p>\u7528\u6237\u671f\u671b\u4f7f\u7528RestTemplate\u81ea\u884c\u62fc\u63a5json\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u8fdb\u884c\u4f20\u9012:</p> <pre><code>      String personStr = JsonUtils.writeValueAsString(input);\n      result = template.postForObject(cseUrlPrefix + \"sayhello\", personStr, Person.class);\n</code></pre> <p>ServiceComb\u4e0d\u63a8\u8350\u5f00\u53d1\u8005\u8fd9\u6837\u4f7f\u7528\uff0c\u91cc\u9762\u7684\u5904\u7406\u903b\u8f91\u5b58\u5728\u5927\u91cf\u6b67\u4e49\u3002\u5982\u679c\u5fc5\u987b\u4f7f\u7528\uff0c\u9700\u8981\u6ee1\u8db3\u51e0\u4e2a\u7ea6\u675f\uff1aPerson \u5fc5\u987b\u5305\u542b\u5e26String\u7c7b\u578b\u7684\u6784\u9020\u51fd\u6570\uff1bprovider/consumer\u90fd\u5fc5\u987b\u5b58\u5728\u8fd9\u4e2aPerson\u7c7b\u578b\u3002</p>"},{"location":"build-provider/interface-constraints.html#rest","title":"<code>REST</code> \u901a\u4fe1\u7c7b\u578b\u6269\u5c55","text":"<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c \u5982\u679c\u5728\u63a5\u53e3\u4e2d\u4f7f\u7528 <code>interface</code> \u6216\u8005 <code>abstract class</code> \u4f5c\u4e3a\u53c2\u6570\u6216\u8005\u8fd4\u56de\u503c\uff0c java-chassis \u542f\u52a8\u4f1a\u62a5\u544a\u9519\u8bef\u3002 java-chassis \u63d0\u4f9b\u4e86\u7c7b\u578b\u6269\u5c55\u673a\u5236\uff0c \u4f7f\u5f97\u7a0b\u5e8f\u4e2d\u53ef\u4ee5\u652f\u6301\u5404\u79cd\u7c7b\u578b\u3002 </p> <p>***\u6ce8\u610f: *** \u4f7f\u7528\u6269\u5c55\u673a\u5236\u7684\u63a5\u53e3\uff0c\u53ea\u80fd\u591f\u5728 <code>REST</code> \u901a\u4fe1\u6a21\u5f0f\u4e0b\u4f7f\u7528\u3002</p> <p>\u4ee5\u652f\u6301 <code>spring-data</code> \u7684 <code>Page</code> \u63a5\u53e3\u4f5c\u4e3a\u8fd4\u56de\u503c\u4e3a\u4f8b\uff0c \u9996\u5148\u9700\u8981\u901a\u8fc7 <code>SPI</code> \u7684\u673a\u5236\u5b9e\u73b0 <code>jackson</code> \u7684\u7c7b\u578b\u6269\u5c55\uff1a</p> <pre><code>public class SpringDataModule extends SimpleModule implements SPIOrder {\n  private static final long serialVersionUID = 1L;\n\n  @JsonDeserialize(as = PageImpl.class)\n  @JsonPropertyOrder(alphabetic = true)\n  public static class PageMixin&lt;T&gt; {\n    @JsonCreator\n    public PageMixin(@JsonProperty(value = \"content\") List&lt;T&gt; content,\n        @JsonProperty(\"pageable\") Pageable pageable,\n        @JsonProperty(\"total\") long total) {\n    }\n  }\n\n  @JsonDeserialize(as = PageRequest.class)\n  @JsonPropertyOrder(alphabetic = true)\n  public static class PageableMixin {\n    @JsonCreator\n    public PageableMixin(@JsonProperty(value = \"pageNumber\") int page,\n        @JsonProperty(\"pageSize\") int size, @JsonProperty(value = \"sort\") Sort sort) {\n    }\n  }\n\n  @JsonPropertyOrder(alphabetic = true)\n  @JsonDeserialize(as = Sort.class)\n  public static class SortMixin {\n    // Notice:\n    // spring data model changed from version to version\n    // for the tested version, sort is not consistency in serialization and deserialization\n    @JsonCreator\n    public SortMixin(String... properties) {\n    }\n  }\n\n  public SpringDataModule() {\n    super(\"springData\");\n\n    setMixInAnnotation(Page.class, PageMixin.class);\n    setMixInAnnotation(Pageable.class, PageableMixin.class);\n    setMixInAnnotation(Sort.class, SortMixin.class);\n\n    setMixInAnnotation(PageImpl.class, PageMixin.class);\n    setMixInAnnotation(PageRequest.class, PageableMixin.class);\n  }\n\n  @Override\n  public Object getTypeId() {\n    return getModuleName();\n  }\n\n  @Override\n  public int getOrder() {\n    return Short.MAX_VALUE;\n  }\n}\n</code></pre> <p>\u518d\u5b9e\u73b0 <code>SPI</code> \u544a\u8bc9 java-chassis \u8df3\u8fc7\u7c7b\u578b\u68c0\u67e5\uff1a</p> <pre><code>public class SpringDataConcreteTypeRegister implements ConcreteTypeRegister {\n  @Override\n  public void register(Set&lt;Type&gt; types) {\n    types.add(Page.class);\n    types.add(Pageable.class);\n  }\n}\n</code></pre> <p>\u7ecf\u8fc7\u8fd9\u4e24\u4e2a\u6b65\u9aa4\uff08\u6b65\u9aa4\u4e2d\u6ca1\u63cf\u8ff0\u5f00\u53d1SPI \u9700\u8981\u589e\u52a0 services \u6587\u4ef6\u7684\u5185\u5bb9\uff09\uff0c \u5c31\u80fd\u591f\u5b9e\u73b0\u4efb\u610f\u7c7b\u578b\u7684\u652f\u6301\u3002 \u9700\u8981\u6ce8\u610f\uff0c\u8fd9\u4e9b\u6269\u5c55\uff0c\u5fc5\u987b \u540c\u65f6\u5305\u542b\u5728 <code>Consumer</code>, <code>Provider</code>, <code>edge service</code> \u4e2d\uff0c\u56e0\u4e3a\u8fd9\u79cd\u5904\u7406\u65b9\u5f0f\u662f\u4f9d\u8d56\u4e8e\u5e73\u53f0\u7c7b\u578b\u7684\u975e\u5938\u5e73\u53f0\u7279\u6027\u3002 </p> <p>\u4e0a\u8ff0\u4f8b\u5b50\u7684\u8be6\u7ec6\u4ee3\u7801\u53ef\u4ee5\u53c2\u8003 java-chassis \u7684\u6e90\u4ee3\u7801\uff0c generator-spring-data \u6a21\u5757\u3002 </p>"},{"location":"build-provider/ipv6-configuration.html","title":"IPV6\u914d\u7f6e\u548c\u4f7f\u7528","text":""},{"location":"build-provider/ipv6-configuration.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u968f\u7740IPV6\u7684\u666e\u53ca\uff0c\u5f88\u591a\u573a\u666f\u4e0b\u5fae\u670d\u52a1\u90fd\u9700\u8981\u652f\u6301IPV6\u5730\u5740\uff0c\u7279\u522b\u662f\u7269\u8054\u7f51\u573a\u666f\u4e0b\uff0c\u9700\u8981\u66f4\u591a\u7684\u5730\u5740\u3002ServiceComb\u652f\u6301Ipv6\u5730\u5740\u76d1\u542c\u3001\u6ce8\u518c\u548c\u8c03\u7528\uff0c\u4f7f\u7528\u8d77\u6765\u548c\u9ed8\u8ba4\u7684Ipv4\u51e0\u4e4e\u6ca1\u6709\u5dee\u522b\uff0c\u53ea\u662f\u914d\u7f6e\u7565\u4e0d\u540c\u3002</p>"},{"location":"build-provider/ipv6-configuration.html#_2","title":"\u914d\u7f6e","text":"<ol> <li>\u628a\u76d1\u542c\u5730\u5740\u6539\u6210ipv6    </li> </ol> <pre><code>servicecomb:\n  rest:\n    address: '[::]:13092'\n</code></pre> <p>\u5982\u679c\u5168\u7f51\u76d1\u542c\uff0cServiceComb JavaChassis 1.2.1\u4ee5\u53ca\u4e4b\u524d\u7684\u7248\u672c\u90fd\u9700\u8981\u518d\u914d\u7f6eservicecomb.service.publishAddress\uff0c\u5426\u5219\u6ce8\u518c\u7684\u8fd8\u662fipv4\u5730\u5740\u3002</p> <p>2\u3001\u4f18\u79c0\u5b9e\u8df5\uff0c\u56e0\u4e3a\u5168\u7f51\u76d1\u542c\u4e0d\u592a\u5b89\u5168\uff0c\u4e00\u822c\u5efa\u8bae\u76d1\u542c\u5230\u5177\u4f53\u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u7684\u65b9\u5f0f\u83b7\u53d6IPV6\u5730\u5740\uff0c\u7136\u540e\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7684\u65b9\u5f0f\u914d\u7f6e\u5730\u5740\uff0c\u6bd4\u5982\u5728\u542f\u52a8\u811a\u672c\u4e2d\u4f7f\u7528\u5982\u4e0b\u811a\u672c\u7684\u65b9\u5f0f\u83b7\u53d6\u7f51\u5361ipv6\u5730\u5740\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u914d\u7f6eservicecomb.service.publishAddress\uff0c\u4e5f\u4e0d\u4f1a\u6709\u5168\u7f51\u76d1\u542c\u7684\u95ee\u9898\u3002</p> <pre><code>servicecomb:\n  rest:\n    address: '[${REST_ADDRESS}]:8080'\n</code></pre> <pre><code>#/bin/bash\n\nethname=eth0  #\u9700\u8981\u76d1\u542c\u7684\u7f51\u5361\u540d\uff0c\u4e00\u822c\u90fd\u662feth0\uff0c\u5982\u679c\u662f\u591a\u7f51\u5361\u573a\u666f\u9700\u8981\u4fee\u6539\nexport REST_ADDRESS=`ifconfig $ethname | awk '/inet6 /{print $2}'`\nnohup java -jar yourapp.jar &gt; console.log 2&gt;&amp;1 &amp;\n</code></pre> <p>\u6700\u540e\u53ef\u4ee5\u4f7f\u7528netstat -nltp|grep 8080\u67e5\u770b\u76d1\u542c\u5730\u5740\u662f\u5426\u6b63\u786e\uff0c\u5e76\u4e14\u5230\u670d\u52a1\u4e2d\u5fc3\u68c0\u67e5\u6ce8\u518c\u7684endpoint\u5730\u5740\u662f\u5426\u6b63\u786e\u3002    </p> <p>3\u3001IPV6\u6d4b\u8bd5\uff0c\u786e\u4fddcurl\u652f\u6301ipv6\uff0c\u53ef\u4ee5\u4f7f\u7528curl --help\uff0c\u68c0\u67e5\u662f\u5426\u6709-6\u9009\u9879   curl -v -6 -g --interface eth0 http://[\u5b9e\u9645ipv6\u5730\u5740]:8080/</p>"},{"location":"build-provider/jaxrs.html","title":"\u7528 JAX-RS \u5f00\u53d1\u5fae\u670d\u52a1","text":""},{"location":"build-provider/jaxrs.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>ServiceComb\u652f\u6301\u5f00\u53d1\u8005\u4f7f\u7528JAX-RS\u6ce8\u89e3\uff0c\u4f7f\u7528 JAX-RS \u6a21\u5f0f\u5f00\u53d1\u670d\u52a1\u3002</p>"},{"location":"build-provider/jaxrs.html#_2","title":"\u5f00\u53d1\u793a\u4f8b","text":""},{"location":"build-provider/jaxrs.html#1","title":"\u6b65\u9aa4 1\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u3002","text":"<p>\u6839\u636e\u5f00\u53d1\u4e4b\u524d\u5b9a\u4e49\u597d\u7684\u5951\u7ea6\uff0c\u7f16\u5199Java\u4e1a\u52a1\u63a5\u53e3\uff0c\u4ee3\u7801\u5982\u4e0b\u3002\u5b9a\u4e49\u63a5\u53e3\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u4f46\u662f \u4e00\u4e2a\u597d\u4e60\u60ef\uff0c\u53ef\u4ee5\u7b80\u5316\u5ba2\u6237\u7aef\u4f7f\u7528RPC\u65b9\u5f0f\u7f16\u5199\u4ee3\u7801\u3002</p> <pre><code>public interface Hello {\n    String sayHi(String name);\n    String sayHello(Person person);\n}\n</code></pre>"},{"location":"build-provider/jaxrs.html#2","title":"\u6b65\u9aa4 2\u5b9e\u73b0\u670d\u52a1\u3002","text":"<p>\u4f7f\u7528JAX-RS\u6ce8\u89e3\u5f00\u53d1\u4e1a\u52a1\u4ee3\u7801\uff0cHello\u7684\u670d\u52a1\u5b9e\u73b0\u5982\u4e0b\uff1a</p> <pre><code>@RestSchema(schemaId = \"jaxrsHello\")\n@Path(\"/jaxrshello\")\n@Produces(MediaType.APPLICATION_JSON)\npublic class JaxrsHelloImpl implements Hello {\n    @Path(\"/sayhi\")\n    @POST\n    @Override\n    public String sayHi(String name) {\n        return \"Hello \" + name;\n    }\n\n    @Path(\"/sayhello\")\n    @POST\n    @Override\n    public String sayHello(Person person) {\n        return \"Hello person \" + person.getName();\n    }\n    /**\n    * \u8fd9\u4e2a\u65b9\u6cd5\u662f\u5b9e\u73b0\u7c7b\u7279\u6709\u7684,\u56e0\u6b64\u5bf9\u5b83\u7684\u8fdc\u7a0b\u8c03\u7528\u4f1a\u6709\u6240\u4e0d\u540c.\n    * \u5177\u4f53\u53ef\u4ee5\u53c2\u8003 jaxrs-consumer\n    */\n    @Path(\"/saybye\")\n    @GET\n    public String sayBye() {\n       return \"Bye !\";\n    }\n}\n</code></pre>"},{"location":"build-provider/jaxrs.html#3","title":"\u6b65\u9aa4 3\u53d1\u5e03\u670d\u52a1\u3002","text":"<p>\u5728resources/META-INF/spring\u76ee\u5f55\u4e0b\u521b\u5efajaxrsHello.bean.xml\u6587\u4ef6\uff0c\u914d\u7f6espring\u8fdb\u884c\u670d\u52a1\u626b\u63cf\u7684base-package\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\u3002\uff08\u6ce8\u610f\u4fee\u6539package\u540d\u79f0\u4e3a\u6b63\u786e\u540d\u79f0\uff09</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;beans xmlns=\" http://www.springframework.org/schema/beans \" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance \"\n       xmlns:p=\" http://www.springframework.org/schema/p \" xmlns:util=\" http://www.springframework.org/schema/util \"\n       xmlns:cse=\" http://www.huawei.com/schema/paas/cse/rpc \"\n       xmlns:context=\" http://www.springframework.org/schema/context \"\n       xsi:schemaLocation=\" http://www.springframework.org/schema/beans classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.huawei.com/schema/paas/cse/rpc classpath:META-INF/spring/spring-paas-cse-rpc.xsd\"&gt;\n\n    &lt;context:component-scan base-package=\"org.apache.servicecomb.samples.jaxrs.provider\"/&gt;\n&lt;/beans&gt;\n</code></pre>"},{"location":"build-provider/jaxrs.html#4","title":"\u6b65\u9aa4 4\u542f\u52a8\u670d\u52a1\u3002","text":"<pre><code>public class JaxrsProviderMain{\n\n  public static void main(String[] args) throws Exception {\n    Log4jUtils.init();\n    BeanUtils.init();\n  }\n}\n</code></pre>"},{"location":"build-provider/jaxrs.html#api","title":"\u6d89\u53caAPI","text":"<p>JAX-RS\u5f00\u53d1\u6a21\u5f0f\u5f53\u524d\u652f\u6301\u5982\u4e0b\u6ce8\u89e3\uff0c\u6240\u6709\u6ce8\u89e3\u7684\u4f7f\u7528\u65b9\u6cd5\u53c2\u8003 JAX-RS\u5b98\u65b9\u6587\u6863\u3002</p>"},{"location":"build-provider/jaxrs.html#1-1jax-rs","title":"\u88681-1JAX-RS\u6ce8\u89e3\u652f\u6301\u6c47\u603b","text":"\u6ce8\u89e3 \u4f4d\u7f6e \u63cf\u8ff0 javax.ws.rs.Path schema/operation URL\u8def\u5f84 javax.ws.rs.Produces schema/operation \u65b9\u6cd5\u652f\u6301\u7684\u7f16\u89e3\u7801\u80fd\u529b javax.ws.rs.DELETE operation http method javax.ws.rs.GET operation http method javax.ws.rs.POST operation http method javax.ws.rs.PUT operation http method javax.ws.rs.QueryParam parameter \u4ecequery string\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.PathParam parameter \u4ecepath\u4e2d\u83b7\u53d6\u53c2\u6570\uff0c\u5fc5\u987b\u5728path\u4e2d\u5b9a\u4e49\u8be5\u53c2\u6570 javax.ws.rs.HeaderParam parameter \u4eceheader\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.CookieParam parameter \u4ececookie\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.FormParam parameter \u4eceform\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.BeanParam parameter \u7528\u4e8e\u53c2\u6570\u805a\u5408\uff0c\u5141\u8bb8\u5728\u4e00\u4e2aJavaBean\u7684\u5c5e\u6027\u4e0a\u6253\u4e0a\u53c2\u6570\u6807\u8bb0\u4ee5\u5c06\u591a\u4e2a\u53c2\u6570\u805a\u5408\u4e3a\u4e00\u4e2aJavaBean <p>\u8bf4\u660e:</p> <ul> <li>\u5f53\u65b9\u6cd5\u53c2\u6570\u6ca1\u6709\u6ce8\u89e3\uff0c\u4e14\u4e0d\u4e3a<code>HttpServletRequest</code>\u3001<code>InvocationContext</code>\u7c7b\u578b\u53c2\u6570\u65f6\uff0c\u9ed8\u8ba4\u4e3abody\u7c7b\u578b\u53c2\u6570\uff0c\u4e00\u4e2a\u65b9\u6cd5\u6700\u591a\u53ea\u652f\u6301\u4e00\u4e2abody\u7c7b\u578b\u53c2\u6570\u3002</li> </ul>"},{"location":"build-provider/jaxrs.html#beanparam","title":"\u4f7f\u7528@BeanParam\u805a\u5408\u53c2\u6570","text":""},{"location":"build-provider/jaxrs.html#_3","title":"\u4f7f\u7528\u8bf4\u660e","text":"<p>\u7528\u6237\u53ef\u4ee5\u4f7f\u7528@BeanParam\u6ce8\u89e3\u5c06\u591a\u4e2a\u53c2\u6570\u805a\u5408\u5230\u4e00\u4e2aJavaBean\u4e2d\uff0c\u901a\u8fc7\u5c06@QueryParam\u7b49\u53c2\u6570\u6ce8\u89e3\u6253\u5728\u6b64JavaBean\u7684\u5c5e\u6027\u6216setter\u65b9\u6cd5\u4e0a\u6765\u58f0\u660e\u53c2\u6570\uff0c\u4ece\u800c\u7b80\u5316\u4e1a\u52a1\u63a5\u53e3\u7684\u53c2\u6570\u8868\u3002\u53ef\u4ee5\u53c2\u8003JAX-RS\u7684\u5b98\u65b9\u8bf4\u660e\uff1ahttps://docs.oracle.com/javaee/7/api/javax/ws/rs/BeanParam.html</p> <p>ServiceComb\u73b0\u5728\u4e5f\u652f\u6301\u7c7b\u4f3c\u7684\u7528\u6cd5\uff0c\u8be5\u7528\u6cd5\u7684\u8981\u6c42\u5982\u4e0b\uff1a 1. \u805a\u5408\u53c2\u6570\u6240\u7528\u7684\u7c7b\u578b\u5fc5\u987b\u662f\u6807\u51c6\u7684JavaBean\uff0c\u5373\u7c7b\u578b\u7684\u5c5e\u6027\u4e0egetter\u3001setter\u65b9\u6cd5\u540d\u79f0\u5339\u914d\uff0csetter\u65b9\u6cd5\u7684\u8fd4\u56de\u7c7b\u578b\u4e3a<code>void</code> 2. \u53c2\u6570\u6ce8\u89e3\u53ef\u4ee5\u6253\u5728JavaBean\u7684\u5c5e\u6027\u6216setter\u65b9\u6cd5\u4e0a 3. \u5141\u8bb8\u901a\u8fc7@FormParam\u5c06\u591a\u4e2a\u4e0a\u4f20\u6587\u4ef6\u53c2\u6570\u805a\u5408\u5230JavaBean\u4e2d 4. \u4f5c\u4e3aBeanParam\u7684JavaBean\u5185\u90e8\u5982\u679c\u6709\u591a\u4f59\u7684\u5c5e\u6027\uff0c\u9700\u8981\u6253\u4e0a<code>@JsonIgnore</code>\u5ffd\u7565\u6389 5. body\u53c2\u6570\u65e0\u6cd5\u805a\u5408\u8fdbBeanParam 6. Consumer\u7aef\u4e0d\u652f\u6301\u5c06\u53c2\u6570\u805a\u5408\u4e3aJavaBean\u53d1\u9001\uff0c\u5373\u4ecd\u7136\u9700\u8981\u6309\u7167\u63a5\u53e3\u5951\u7ea6\u5355\u72ec\u586b\u5199\u5404\u4e2a\u53c2\u6570</p>"},{"location":"build-provider/jaxrs.html#_4","title":"\u4ee3\u7801\u793a\u4f8b","text":""},{"location":"build-provider/jaxrs.html#provider","title":"Provider\u7aef\u5f00\u53d1\u670d\u52a1","text":"<ul> <li>Provider\u7aef\u4e1a\u52a1\u63a5\u53e3\u4ee3\u7801\uff1a</li> </ul> <pre><code>  @RestSchema(schemaId = \"helloService\")\n  @Path(\"/hello\")\n  public class HelloService {\n    @Path(\"/sayHello/{name}\")\n    @GET\n    public String sayHello(@BeanParam Person person) {\n      System.out.println(\"sayHello is called, person = [\" + person + \"]\");\n      return \"Hello, your name is \" + person.getName() + \", and age is \" + person.getAge();\n    }\n  }\n</code></pre> <ul> <li>BeanParam\u53c2\u6570\u5b9a\u4e49\uff1a</li> </ul> <pre><code>  public class Person {\n    private String name;\n    @QueryParam(\"age\")\n    private int age;\n    @PathParam(\"name\")\n    public void setName(String name) {\n      this.name = name;\n    }\n    @JsonIgnore // \u5ffd\u7565\u590d\u6742\u5c5e\u6027\n    private List&lt;Person&gt; children;\n\n    // \u5176\u4ed6\u65b9\u6cd5\u5ffd\u7565\n  }\n</code></pre> <ul> <li>\u63a5\u53e3\u5951\u7ea6\uff1a</li> </ul> <pre><code># \u5ffd\u7565\u5951\u7ea6\u7684\u5176\u4ed6\u90e8\u5206\nbasePath: \"/hello\"\npaths:\n  /sayHello/{name}:\n    get:\n      operationId: \"sayHello\"\n      parameters:\n      - name: \"name\"\n        in: \"path\"\n        required: true\n        type: \"string\"\n      - name: \"age\"\n        in: \"query\"\n        required: false\n        type: \"integer\"\n        format: \"int32\"\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            type: \"string\"\n</code></pre>"},{"location":"build-provider/jaxrs.html#consumer","title":"Consumer\u7aef\u8c03\u7528\u670d\u52a1","text":"<p>consumer\u7aefRPC\u5f00\u53d1\u6a21\u5f0f\uff1a</p> <ul> <li>Provider\u63a5\u53e3\u5b9a\u4e49</li> </ul> <pre><code>public interface HelloServiceIntf {\n  String sayHello(String name, int age);\n}\n</code></pre> <ul> <li>\u8c03\u7528\u4ee3\u7801</li> </ul> <pre><code>String result = helloService.sayHello(\"Bob\", 22); // result\u7684\u503c\u4e3a\"Hello, your name is Bob, and age is 22\"\n</code></pre> <ul> <li>consumer\u7aefRestTemplate\u5f00\u53d1\u6a21\u5f0f\uff1a</li> </ul> <pre><code>String result = restTemplate.getForObject(\n  \"cse://provider-service/hello/sayHello/Bob?age=22\",\n  String.class); // \u8c03\u7528\u6548\u679c\u4e0eRPC\u65b9\u5f0f\u76f8\u540c\n</code></pre>"},{"location":"build-provider/listen-address-and-publish-address.html","title":"\u670d\u52a1\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740","text":""},{"location":"build-provider/listen-address-and-publish-address.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5728JavaChassis\u4e2d\uff0c\u670d\u52a1\u7684\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740\u662f\u4e24\u4e2a\u72ec\u7acb\u7684\u6982\u5ff5\uff0c\u53ef\u4ee5\u72ec\u7acb\u914d\u7f6e\uff1a</p> <ul> <li>\u76d1\u542c\u5730\u5740\uff1a\u6307\u5fae\u670d\u52a1\u5b9e\u4f8b\u542f\u52a8\u65f6\u76d1\u542c\u7684\u5730\u5740\u3002\u8be5\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u53ef\u4ee5\u901a\u8fc7\u54ea\u4e9bIP\u8bbf\u95ee\u6b64\u670d\u52a1\u3002</li> <li>\u53d1\u5e03\u5730\u5740\uff1a\u6307\u5fae\u670d\u52a1\u5b9e\u4f8b\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4ed6\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u4f1a\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u6b64\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u6839\u636e\u53d1\u5e03\u5730\u5740\u8bbf\u95ee\u6b64\u670d\u52a1\u5b9e\u4f8b\uff0c\u6240\u4ee5\u8be5\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u5176\u4ed6\u670d\u52a1\u5b9e\u9645\u4e0a\u4f1a\u4f7f\u7528\u54ea\u4e2aIP\u8bbf\u95ee\u6b64\u670d\u52a1\u3002</li> </ul>"},{"location":"build-provider/listen-address-and-publish-address.html#_3","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u901a\u8fc7\u914d\u7f6e\u670d\u52a1\u7684\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740\u6765\u786e\u5b9a\u670d\u52a1\u5b9e\u4f8b\u76d1\u542c\u7684IP\u548c\u5176\u4ed6\u670d\u52a1\u5b9e\u4f8b\u8bbf\u95ee\u672c\u5b9e\u4f8b\u65f6\u8bf7\u6c42\u7684IP\u3002</p>"},{"location":"build-provider/listen-address-and-publish-address.html#_4","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u670d\u52a1\u76d1\u542c\u5730\u5740\u7684\u914d\u7f6e\u9879\u662f<code>servicecomb.rest.address</code>\u548c<code>servicecomb.highway.address</code>\uff0c\u5206\u522b\u5bf9\u5e94rest\u4f20\u8f93\u65b9\u5f0f\u548chighway\u4f20\u8f93\u65b9\u5f0f\u7684\u76d1\u542c\u5730\u5740\u3002\u4e24\u8005\u7684\u914d\u7f6e\u89c4\u5219\u76f8\u540c\uff0c\u4ee5\u4e0b\u4ec5\u4ee5<code>servicecomb.rest.address</code>\u4f5c\u4e3a\u8bf4\u660e\u3002 \u670d\u52a1\u53d1\u5e03\u5730\u5740\u7684\u914d\u7f6e\u9879\u662f<code>servicecomb.service.publishAddress</code>\uff0c\u8be5\u5730\u5740\u53ef\u4ee5\u4e0d\u914d\u7f6e\u3002\u4e0d\u914d\u7f6e\u6b64\u9879\u65f6JavaChassis\u4f1a\u6839\u636e\u7279\u5b9a\u7684\u89c4\u5219\u9009\u53d6\u53d1\u5e03\u5730\u5740\u3002</p> <p>\u88681 \u670d\u52a1\u53d1\u5e03\u5730\u5740\u751f\u6548\u89c4\u5219</p> \u89c4\u5219\u7f16\u53f7 \u76d1\u542c\u5730\u5740\u914d\u7f6e \u53d1\u5e03\u5730\u5740\u914d\u7f6e \u5b9e\u9645\u751f\u6548\u7684\u53d1\u5e03\u5730\u5740 1 127.0.0.1 - 127.0.0.1 2 0.0.0.0 - \u9009\u53d6\u4e00\u5f20\u7f51\u5361\u7684IP\u5730\u5740\u4f5c\u4e3a\u53d1\u5e03\u5730\u5740\u3002\u8981\u6c42\u8be5\u5730\u5740\u4e0d\u80fd\u662f\u901a\u914d\u7b26\u5730\u5740\u3001\u56de\u73af\u5730\u5740\u6216\u5e7f\u64ad\u5730\u5740 3 \u5177\u4f53IP - \u4e0e\u76d1\u542c\u5730\u5740\u4e00\u81f4 4 * \u5177\u4f53IP \u4e0e\u53d1\u5e03\u5730\u5740\u914d\u7f6e\u9879\u4e00\u81f4 5 * \"{\u7f51\u5361\u540d}\" \u6307\u5b9a\u7f51\u5361\u540d\u7684IP\uff0c\u6ce8\u610f\u9700\u8981\u52a0\u4e0a\u5f15\u53f7\u548c\u62ec\u53f7 <p>\u8bf4\u660e\uff1a - \u670d\u52a1\u5b9e\u4f8b\u5b9e\u9645\u76d1\u542c\u7684\u5730\u5740\u59cb\u7ec8\u4e0e\u76d1\u542c\u5730\u5740\u914d\u7f6e\u9879\u4fdd\u6301\u4e00\u81f4\u3002 - \u4f7f\u7528\u7f51\u5361\u540d\u914d\u7f6e\u53d1\u5e03\u5730\u5740\u65f6\uff0c\u8981\u6c42\u4f7f\u7528\u53cc\u5f15\u53f7\u5305\u88f9\u4f4f\u7f51\u5361\u540d\u5360\u4f4d\u7b26\uff0c\u5426\u5219\u4f1a\u9020\u6210\u89e3\u6790\u914d\u7f6e\u62a5\u9519\u3002 - \u7f51\u5361\u540d\u5fc5\u987b\u662f\u4e3b\u673a\u5b58\u5728\u7684\u7f51\u5361\u3002</p>"},{"location":"build-provider/listen-address-and-publish-address.html#_5","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>microservice.yaml\u6587\u4ef6\u7684\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  service:\n    publishAddress: \"{eth0}\" # \u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u53d1\u5e03\u5730\u5740\u4f1a\u662feth0\u7f51\u5361\u7684IP\n  rest:\n    publishPort: 8888 # \u53d1\u5e03\u5730\u5740\u7aef\u53e3\uff0c\u4e0d\u914d\u7f6e\u9ed8\u8ba4\u4e0e\u76d1\u542c\u5730\u5740\u7aef\u53e3\u4e00\u81f4\n    address: 0.0.0.0:8080 # \u76d1\u542c\u4e3b\u673a\u7684\u5168\u90e8\u7f51\u5361IP\n  highway:\n    publishPort: 8888 # \u53d1\u5e03\u5730\u5740\u7aef\u53e3\uff0c\u4e0d\u914d\u7f6e\u9ed8\u8ba4\u4e0e\u76d1\u542c\u5730\u5740\u7aef\u53e3\u4e00\u81f4\n    address: 0.0.0.0:7070 # \u76d1\u542c\u4e3b\u673a\u7684\u5168\u90e8\u7f51\u5361IP\n</code></pre>"},{"location":"build-provider/multi-code.html","title":"\u591a\u4e2a\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801","text":"<p>\u4f7f\u7528\u900f\u660eRPC\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\uff0c\u5f00\u53d1\u8005\u5f88\u5bb9\u6613\u7406\u89e3\u4e00\u4e2a\u63a5\u53e3\u53ea\u6709\u4e00\u4e2a\u8fd4\u56de\u503c\u7c7b\u578b\u3002\u4f7f\u7528REST\u98ce\u683c\uff08Spring MVC \u6216\u8005 JAXRS\uff09\uff0c\u5f88\u591a\u573a\u666f\u4f1a\u78b0\u5230 \u591a\u4e2a\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801\u7684\u60c5\u51b5\u3002\u548c\u5f88\u591a\u5176\u4ed6\u5f00\u53d1\u6846\u67b6\uff08\u6bd4\u5982Servlet\u3001Spring MVC\u7b49\uff09\u4e0d\u4e00\u6837\uff0cJava Chassis\u8981\u6c42\u63a5\u53e3\u5b9a\u4e49\u7684\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801\u90fd \u5fc5\u987b\u663e\u793a\u7684\u58f0\u660e\uff0c\u5373\u901a\u8fc7\u4ee3\u7801\u751f\u6210\u7684swagger\uff0c\u5fc5\u987b\u5305\u542b\u6240\u6709\u7684\u9519\u8bef\u7801\u63cf\u8ff0\u548c\u8fd4\u56de\u503c\u7c7b\u578b\u63cf\u8ff0\u3002 \u5728Java Chassis\uff0c\u65e0\u6cd5\u4f7f\u7528\u9690\u85cf\u53c2\u6570\u3001\u672a\u58f0\u660e \u7684\u9519\u8bef\u7801\u3002\u8fd9\u6837\u8bbe\u8ba1\u7684\u76f4\u63a5\u597d\u5904\u662f\u63a5\u53e3\u5b9a\u4e49\u66f4\u52a0\u660e\u786e\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u6587\u6863\u5e2e\u52a9\u4f7f\u7528\u8005\u7406\u89e3\u63a5\u53e3\u7684\u4f7f\u7528\u65b9\u6cd5\u3002 </p> <p>\u5728\u524d\u9762\u7684\u5f00\u53d1\u6307\u5bfc\u91cc\u9762\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u8fd4\u56de\u503c\u548c\u4e00\u4e2a\u9519\u8bef\u7801\u7684\u60c5\u51b5\uff08200\uff09\u3002 \u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u591a\u4e2a\u9519\u8bef\u7801\u548c\u8fd4\u56de\u503c\uff0c\u540c\u65f6\u4f1a\u4ecb\u7ecd\u5982\u4f55\u8fd4\u56de\u989d\u5916\u7684 header\u53c2\u6570\u3002 </p> <p>Java Chassis\u5c06\u9519\u8bef\u7801\u8fdb\u884c\u4e86\u5206\u7c7b\uff1a2xx\u9519\u8bef\u7801\u8ba4\u4e3a\u662f\u4e00\u4e2a\u6b63\u5e38\u7684\u54cd\u5e94\uff0c\u4e00\u4e2a\u63a5\u53e3\u53ea\u5141\u8bb8\u5b58\u5728\u4e00\u4e2a\u6b63\u5e38\u54cd\u5e94\u9519\u8bef\u7801\uff1b \u5176\u4ed6\u9519\u8bef\u7801\u8ba4\u4e3a\u662f\u4e00\u4e2a\u5f02\u5e38\u7684\u54cd\u5e94\uff0c\u4e00\u4e2a\u63a5\u53e3\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u5f02\u5e38\u7684\u54cd\u5e94\uff0c\u5e76\u4e14\u9700\u8981\u91c7\u7528InvocationException\u7684\u65b9\u5f0f\u5c06\u5f02\u5e38\u629b\u51fa\uff0c\u6bcf\u4e2a\u9519\u8bef\u7801\u53ef\u4ee5\u6307\u5b9a \u4e0d\u540c\u7684\u54cd\u5e94\u7c7b\u578b\u3002 </p> <ul> <li>\u91c7\u7528<code>ApiResponse</code>\u5b9a\u4e49\u591a\u4e2a\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801</li> </ul> <pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic MultiResponse200 errorCode(MultiRequest request) {\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.BAD_REQUEST, r);\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR, r);\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      return r;\n    }\n}\n</code></pre> <ul> <li>\u91c7\u7528 <code>org.apache.servicecomb.swagger.invocation.Response</code> \u54cd\u5e94\u7c7b\u578b</li> </ul> <p>\u91c7\u7528 <code>org.apache.servicecomb.swagger.invocation.Response</code> \u54cd\u5e94\u7c7b\u578b\uff0c\u9664\u4e86\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u9519\u8bef\u7801\u548c\u54cd\u5e94\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 <code>ResponseHeader</code> \u5b9a\u4e49\u989d\u5916\u7684\u54cd\u5e94\u5934\u3002 </p> <pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\n@ResponseHeaders({@ResponseHeader(name = \"x-code\", response = String.class)})\npublic Response errorCodeWithHeader(MultiRequest request) {\n    Response response = new Response();\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      response.setStatus(Status.BAD_REQUEST);\n      response.setResult(new InvocationException(Status.BAD_REQUEST, r));\n      response.setHeader(\"x-code\", \"400\");\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      response.setStatus(Status.INTERNAL_SERVER_ERROR);\n      response.setResult(new InvocationException(Status.INTERNAL_SERVER_ERROR, r));\n      response.setHeader(\"x-code\", \"500\");\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      response.setStatus(Status.OK);\n      response.setResult(r);\n      response.setHeader(\"x-code\", \"200\");\n    }\n    return response;\n}\n</code></pre> <ul> <li>\u91c7\u7528 <code>javax.ws.rs.core.Response</code> \u54cd\u5e94\u7c7b\u578b</li> </ul> <p>\u91c7\u7528 <code>javax.ws.rs.core.Response</code> \u54cd\u5e94\u7c7b\u578b\uff0c\u9664\u4e86\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u9519\u8bef\u7801\u548c\u54cd\u5e94\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 <code>ResponseHeader</code> \u5b9a\u4e49\u989d\u5916\u7684\u54cd\u5e94\u5934\u3002 </p> <pre><code>@Path(\"/errorCodeWithHeaderJAXRS\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic javax.ws.rs.core.Response errorCodeWithHeaderJAXRS(MultiRequest request) {\n    javax.ws.rs.core.Response response;\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(request.getCode());\n      r.setMessage(request.getMessage());\n      response = javax.ws.rs.core.Response.status(Status.BAD_REQUEST)\n          .entity(new InvocationException(Status.BAD_REQUEST, r))\n          .header(\"x-code\", \"400\")\n          .build();\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(request.getCode());\n      r.setMessage(request.getMessage());\n      response = javax.ws.rs.core.Response.status(Status.INTERNAL_SERVER_ERROR)\n          .entity(new InvocationException(Status.INTERNAL_SERVER_ERROR, r))\n          .header(\"x-code\", \"500\")\n          .build();\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(request.getCode());\n      r.setMessage(request.getMessage());\n      // If error code is OK family(like 200), we can use the target type.\n      response = javax.ws.rs.core.Response.status(Status.OK)\n          .entity(r)\n          .header(\"x-code\", \"200\")\n          .build();\n    }\n    return response;\n}\n</code></pre>"},{"location":"build-provider/parameter-validator.html","title":"\u53c2\u6570\u6548\u9a8c","text":""},{"location":"build-provider/parameter-validator.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u5728provider\u7aef\u4f7f\u7528\u53c2\u6570\u6548\u9a8c\uff0c\u53ef\u4ee5\u5bf9\u76f8\u5e94\u7684\u53c2\u6570\u8f93\u5165\u8981\u6c42\u9884\u5148\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5728\u63a5\u53e3\u5b9e\u9645\u8c03\u7528\u524d\u8fdb\u884c\u6548\u9a8c\u5904\u7406\uff0c\u8fbe\u5230\u63a7\u5236\u53c2\u6570\u8f93\u5165\u6807\u51c6\u7684\u6548\u679c\u3002</p>"},{"location":"build-provider/parameter-validator.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"<ul> <li> <p>\u6dfb\u52a0swagger-invocation-validator\u7684pom\u4f9d\u8d56\uff1a</p> <pre><code>```xml\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;swagger-invocation-validator&lt;/artifactId&gt;\n&lt;/dependency&gt;\n```\n</code></pre> </li> <li> <p>\u5728\u9700\u8981\u9a8c\u8bc1\u7684\u4ee3\u7801\u4e0a\u6309\u7167JSR 349\u89c4\u8303\u6dfb\u52a0\u9a8c\u8bc1\u5668\u6ce8\u89e3\uff0c\u5982@NotNull\uff0c@Min\uff0c@Max\u7b49\u3002</p> </li> </ul>"},{"location":"build-provider/parameter-validator.html#_3","title":"\u793a\u4f8b\u4ee3\u7801","text":"<ul> <li>\u63a5\u53e3\u53c2\u6570\u9a8c\u8bc1</li> </ul> <pre><code>@RestSchema(schemaId = \"validator\")\n@Path(\"/validator\")\n@Produces(MediaType.APPLICATION_JSON)\npublic class Validator {\n\n  @Path(\"/add\")\n  @POST\n  public int add(@FormParam(\"a\") int a, @Min(20) @FormParam(\"b\") int b) {\n    return a + b;\n  }\n\n  @Path(\"/sayhi/{name}\")\n  @PUT\n  public String sayHi(@Length(min = 3) @PathParam(\"name\") String name) {\n    ContextUtils.getInvocationContext().setStatus(202);\n    return name + \" sayhi\";\n  }\n\n  @Path(\"/sayhello\")\n  @POST\n  public Student sayHello(@Valid Student student) {\n    student.setName(\"hello \" + student.getName());\n    student.setAge(student.getAge());\n    return student;\n  }\n}\n</code></pre> <ul> <li>bean\u7c7b\u9a8c\u8bc1</li> </ul> <p>\u9700\u8981\u5728\u4f20\u5165\u7684Student\u5bf9\u8c61\u524d\u52a0@Valid\uff0c\u5982\u4e0a\u56fesayHello(@Valid Student student)\u65b9\u6cd5\u3002</p> <pre><code>public class Student {\n  @NotNull\n  private String name;\n\n  @Max(20)\n  private int age;\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  public String getName() {\n    return this.name;\n  }\n\n  public void setAge(int age) {\n    this.age = age;\n  }\n\n  public int getAge() {\n    return age;\n  }\n}\n</code></pre>"},{"location":"build-provider/parameter-validator.html#_4","title":"\u81ea\u5b9a\u4e49\u8fd4\u56de\u5f02\u5e38","text":"<ul> <li>\u9ed8\u8ba4\u7684\u53c2\u6570\u6548\u9a8c\u5668ParameterValidator\u5df2\u7ecf\u5b9e\u73b0\u4e86\u63a5\u53e3ProducerInvokeExtension\uff0c\u6309\u7167JSR 349\u89c4\u8303\u5904\u7406\u6240\u9700\u7684\u53c2\u6570\u9a8c\u8bc1\u3002</li> </ul> <p>\u5982\u679c\u4efb\u4f55\u53c2\u6570\u9a8c\u8bc1\u5931\u8d25\uff0c\u7f3a\u7701\u9519\u8bef\u662fBAD_REQUEST(400, \"Bad Request\")\u3002</p> <p>\u8fd4\u56de\u9519\u8bef\u652f\u6301\u81ea\u5b9a\u4e49\u6269\u5c55\uff0c\u4f7f\u7528SPI\u673a\u5236\u3002</p> <ul> <li> <p>\u53ef\u4ee5\u901a\u8fc7\u5b9e\u73b0\u63a5\u53e3ExceptionToProducerResponseConverter\u6765\u81ea\u5b9a\u4e49\u8fd4\u56de\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u4ee5ConstraintViolationExceptionToProducerResponseConverter\u4e3a\u4f8b\u3002</p> </li> <li> <p>\u5b9e\u73b0ExceptionToProducerResponseConverter\u63a5\u53e3\uff0c\u91cd\u5199\u65b9\u6cd5\uff0c\u5176\u4e2dgetOrder\u65b9\u6cd5\u7684\u8fd4\u56de\u7ed3\u679c\u8868\u793a\u8be5\u9a8c\u8bc1\u5668\u7684\u4f18\u5148\u7ea7\uff0c\u503c\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002</p> <p>```java  public class ConstraintViolationExceptionToProducerResponseConverter      implements ExceptionToProducerResponseConverter {    @Override    public Class getExceptionClass() {      return ConstraintViolationException.class;    } <p>@Override    public Response convert(SwaggerInvocation swaggerInvocation, ConstraintViolationException e) {      return Response.createFail(new InvocationException(Status.BAD_REQUEST, e.getConstraintViolations().toString()));    }</p> <p>@Override    public int getOrder() {      return -100;    }  }  ```</p> <li> <p>\u5728META-INF\u4e0b\u7684services\u6587\u4ef6\u5939\u589e\u52a0\u4e00\u4e2a\u6587\u4ef6\uff0c\u4ee5\u6240\u5b9e\u73b0\u63a5\u53e3x.x.x.ExceptionToProducerResponseConverter(\u5e26\u5305\u540d)\u4e3a\u540d\uff0c\u4ee5\u5177\u4f53\u5b9e\u73b0\u7c7bx.x.x.ConstraintViolationExceptionToProducerResponseConverter(\u5e26\u5305\u540d)\u4e3a\u5185\u5bb9\u3002</p> </li>"},{"location":"build-provider/reactive.html","title":"\u5f02\u6b65\u5904\u7406","text":"<p>\u5f02\u6b65\u5904\u7406\u53ef\u4ee5\u66f4\u52a0\u5145\u5206\u7684\u5229\u7528CPU\uff0c\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002\u76f8\u5bf9\u4e8e\u540c\u6b65\u5904\u7406\uff0c\u5f02\u6b65\u5904\u7406\u7684\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u590d\u6742\uff0c\u51fa\u73b0\u7684\u95ee\u9898\u4e5f\u66f4\u52a0\u96be\u4e8e\u5b9a\u4f4d\u3002Java Chassis \u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u7684\u5f02\u6b65\u5904\u7406\u673a\u5236\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u9009\u62e9\u6027\u7684\u4f7f\u7528\u540c\u6b65\u5904\u7406\u548c\u5f02\u6b65\u5904\u7406\u3002</p>"},{"location":"build-provider/reactive.html#_2","title":"\u5b9a\u4e49\u5f02\u6b65\u5904\u7406\u7684\u63a5\u53e3\u548c\u4f7f\u7528\u5f02\u6b65\u8bbf\u95ee","text":"<p>\u5728Provider\u7aef\uff0cSpring MVC\u3001JAX RS\u548cRPC\u7684\u5f02\u6b65\u63a5\u53e3\u5b9a\u4e49\u7c7b\u4f3c\uff0c\u90fd\u4f7f\u7528<code>CompletableFuture</code>\u6765\u58f0\u660e\u5f02\u6b65\u63a5\u53e3\u3002\u4ee5\u900f\u660eRPC\u4e3a\u4f8b\uff0c\u5b9a\u4e49\u65b9\u6cd5\u5982\u4e0b\uff1a</p> <pre><code>  public CompletableFuture&lt;String&gt; sayHello(String name) {\n    CompletableFuture&lt;String&gt; future = new CompletableFuture&lt;&gt;();\n    future.complete(name);\n    return future;\n  }\n</code></pre> <p>\u5728Consumer\u7aef\uff0c\u53ef\u4ee5\u4f7f\u7528\u900f\u660eRPC\u3001InvokerUtils\u3001AsyncRestTemplate\u6765\u4f7f\u7528\u5f02\u6b65\u3002\u4ee5\u900f\u660eRPC\u4e3a\u4f8b\uff0c\u9996\u5148\u58f0\u660e\u63a5\u53e3\uff1a</p> <pre><code>public interface Hello {\n  @ApiOperation(nickname = \"sayHello\", value = \"\")\n  CompletableFuture&lt;String&gt; sayHelloAsync(String name);\n\n  String sayHello(String name);\n}\n</code></pre> <p>\u4e0a\u9762\u7684\u4f8b\u5b50\u540c\u65f6\u5b9a\u4e49\u4e86\u5f02\u6b65\u8bbf\u95ee\u7684\u63a5\u53e3\u548c\u540c\u6b65\u8bbf\u95ee\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u53ef\u4ee5\u7528\u6765\u8bbf\u95eeProvider\u7684\u540c\u4e00\u4e2a\u63a5\u53e3\u3002 \u4f7f\u7528\u5f02\u6b65\u63a5\u53e3\u548c\u4f7f\u7528\u540c\u6b65\u63a5\u53e3\u7684\u8fc7\u7a0b\u4e00\u6837\uff1a</p> <pre><code>  @RpcReference(microserviceName = \"name\", schemaId = \"Hello\")\n  public Hello hello;\n</code></pre>"},{"location":"build-provider/reactive.html#_3","title":"\u5f02\u6b65\u903b\u8f91\u6267\u884c\u7684\u7ebf\u7a0b\u6c60","text":"<p>\u58f0\u660e\u4e3a\u5f02\u6b65\u63a5\u53e3\uff0c\u5e76\u4e0d\u4f1a\u6539\u53d8\u4e1a\u52a1\u903b\u8f91\u5165\u53e3\u88ab\u6267\u884c\u7684\u7ebf\u7a0b\u3002\u6bd4\u5982\u5728Provider\u7aef\uff0c\u4e1a\u52a1\u903b\u8f91\u7684\u5165\u53e3\u8fd8\u662f\u5728\u540c\u6b65\u7ebf\u7a0b\u6c60\u4e2d\u6267\u884c\u7684\uff0cEdge Service\u5728event-loop\u6267\u884c\u3002 \u6539\u53d8\u5165\u53e3\u903b\u8f91\u7684\u6267\u884c\u7ebf\u7a0b\uff0c\u9700\u8981\u4fee\u6539\u65b9\u6cd5\u7684\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\u3002\u5f02\u6b65\u63a5\u53e3\u6267\u884c\u5b8c\u6bd5\uff0c\u56de\u8c03\u903b\u8f91\u5728\u4e1a\u52a1\u81ea\u5b9a\u4e49\u7684\u5f02\u6b65\u6267\u884c\u7ebf\u7a0b\u6c60\u6267\u884c\u3002 </p> <p>\u8be6\u7ec6\u60c5\u51b5\u53c2\u8003\u7ebf\u7a0b\u6c60\u3002 </p> <p>\u5f02\u6b65\u903b\u8f91\u5728\u66f4\u52a0\u590d\u6742\u573a\u666f\u4e0b\u7684\u6267\u884c\u8fc7\u7a0b\uff0c\u8bf7\u53c2\u8003reactive\u3002</p>"},{"location":"build-provider/reactive.html#event-loop","title":"\u6709\u5173 event-loop \u7ebf\u7a0b\u7684\u7279\u6b8a\u8bf4\u660e","text":"<p>\u5728Edge Service\u7b49\u573a\u666f\uff0c\u6216\u8005\u5728Provider\u4f7f\u7528\u4e86\u5f02\u6b65\u7ebf\u7a0b\u6c60\u7684\u573a\u666f\uff0c\u6240\u6709\u7684\u4e1a\u52a1\u903b\u8f91\u90fd\u662f\u5728event-loop\u6267\u884c\u7684\u3002\u5728event-loop\u6267\u884c\u7684\u4e1a\u52a1\u4ee3\u7801\uff0c\u4e0d\u80fd\u5b58\u5728 \u4efb\u4f55\u963b\u585e\u64cd\u4f5c\uff0c\u5426\u5219\u4f1a\u7834\u574fevent-loop\u7684\u4e8b\u4ef6\u6d3e\u53d1\uff0c\u5bfc\u81f4\u6b7b\u9501\u3002 \u8fd9\u4e9b\u573a\u666f\u8bbf\u95ee\u5176\u4ed6\u5fae\u670d\u52a1\uff0c\u5fc5\u987b\u91c7\u7528\u5f02\u6b65\u63a5\u53e3\u3002 event-loop\u6267\u884c\u963b\u585e\u64cd\u4f5c\u5bfc\u81f4\u6b7b\u9501\u7684\u60c5\u51b5\uff0c \u6216\u8005\u5bfc\u81f4\u6027\u80fd\u4e0b\u964d\u7684\u60c5\u51b5\uff0c\u9700\u8981\u5728\u6ee1\u8db3\u4e00\u5b9a\u7684\u5e76\u53d1\u6761\u4ef6\u624d\u80fd\u591f\u51fa\u73b0\uff0c\u4e0d\u5c0f\u5fc3\u4f7f\u7528\u4f1a\u7ed9\u4e1a\u52a1\u53ef\u9760\u6027\u5e26\u6765\u5f88\u5927\u7684\u98ce\u9669\u3002 Java Chassis\u9488\u5bf9\u5e38\u89c1\u7684\u9519\u8bef\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b \u68c0\u6d4b\u673a\u5236\uff0c\u6bd4\u5982\u5728event-loop\u6267\u884c\u540c\u6b65Consumer\u8c03\u7528\u7684\u65f6\u5019\uff0c\u4f1a\u62a5\u544a\u5f02\u5e38\uff0c\u8ba9\u5f00\u53d1\u8005\u53ca\u65f6\u53d1\u73b0\u95ee\u9898\u3002 </p>"},{"location":"build-provider/service-configuration.html","title":"Service configuration","text":""},{"location":"build-provider/service-configuration.html#_1","title":"\u8d1f\u8f7d\u5747\u8861\u7b56\u7565","text":"<p>\u2022 ServiceComb\u63d0\u4f9b\u4e86\u57fa\u4e8eRibbon\u7684\u8d1f\u8f7d\u5747\u8861\u65b9\u6848\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u5f53\u524d\u652f\u6301\u968f\u673a\u3001\u987a\u5e8f\u3001\u57fa\u4e8e\u54cd\u5e94\u65f6\u95f4\u7684\u6743\u503c\u7b49\u591a\u79cd\u8d1f\u8f7d\u5747\u8861\u8def\u7531\u7b56\u7565## Service Center{:target=\"_blank\"}  </p>"},{"location":"build-provider/service-configuration.html#_2","title":"\u9650\u6d41\u7b56\u7565","text":"<p>\u2022 \u7528\u6237\u5728provider\u7aef\u4f7f\u7528\u9650\u6d41\u7b56\u7565\uff0c\u53ef\u4ee5\u9650\u5236\u6307\u5b9a\u5fae\u670d\u52a1\u5411\u5176\u53d1\u9001\u8bf7\u6c42\u7684\u9891\u7387\uff0c\u8fbe\u5230\u9650\u5236\u6bcf\u79d2\u949f\u6700\u5927\u8bf7\u6c42\u6570\u91cf\u7684\u6548\u679c\u3002  </p>"},{"location":"build-provider/service-configuration.html#_3","title":"\u964d\u7ea7\u7b56\u7565","text":"<p>\u2022 \u964d\u7ea7\u7b56\u7565\u662f\u5f53\u670d\u52a1\u8bf7\u6c42\u5f02\u5e38\u65f6\uff0c\u5fae\u670d\u52a1\u6240\u91c7\u7528\u7684\u5f02\u5e38\u5904\u7406\u7b56\u7565\u3002</p>"},{"location":"build-provider/service-configuration.html#_4","title":"\u53c2\u6570\u6548\u9a8c","text":"<p>\u2022 \u7528\u6237\u5728provider\u7aef\u4f7f\u7528\u53c2\u6570\u6548\u9a8c\uff0c\u53ef\u4ee5\u5bf9\u76f8\u5e94\u7684\u53c2\u6570\u8f93\u5165\u8981\u6c42\u9884\u5148\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5728\u63a5\u53e3\u5b9e\u9645\u8c03\u7528\u524d\u8fdb\u884c\u6548\u9a8c\u5904\u7406\uff0c\u8fbe\u5230\u63a7\u5236\u53c2\u6570\u8f93\u5165\u6807\u51c6\u7684\u6548\u679c\u3002</p>"},{"location":"build-provider/springmvc.html","title":"\u7528 Spring MVC \u5f00\u53d1\u5fae\u670d\u52a1","text":"<p>Spring MVC \u662f spring-web \u9879\u76ee\u5b9a\u4e49\u7684\u4e00\u5957\u6ce8\u89e3\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u8fd9\u5957\u6ce8\u89e3\u5b9a\u4e49 REST \u63a5\u53e3\u3002 servicecomb \u4e5f \u652f\u6301\u4f7f\u7528\u8fd9\u5957\u6807\u7b7e\u5b9a\u4e49 REST \u63a5\u53e3\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cservicecomb \u53ea\u662f\u4f7f\u7528\u8fd9\u4e9b\u6ce8\u89e3\uff0c\u800c\u6ce8\u89e3\u7684\u5b9e\u73b0\u662f\u9879\u76ee\u81ea\u884c\u5f00\u53d1\u7684\uff0c \u5b9e\u73b0\u7684\u529f\u80fd\u96c6\u5408\u662f Spring MVC \u6ce8\u89e3\u7684\u5b50\u96c6\u3002\u53ef\u4ee5\u9605\u8bfb\u6587\u7ae0\u540e\u9762\u7684\u5185\u5bb9\u4e86\u89e3\u5177\u4f53\u7684\u6807\u7b7e\u96c6\u5408\u548c\u4f7f\u7528\u7ea6\u675f\u3002</p> <p>SpringMVC Sample \u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4f7f\u7528\u3002</p>"},{"location":"build-provider/springmvc.html#_1","title":"\u5f00\u53d1\u6b65\u9aa4","text":"<p>\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4f7f\u7528 Spring MVC \u5f00\u53d1 REST \u670d\u52a1\u7684\u4e00\u4e9b\u7b80\u5355\u6b65\u9aa4\u3002</p> <ul> <li>\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\uff08\u53ef\u9009\uff09</li> </ul> <p>\u5b9a\u4e49\u63a5\u53e3\u662f\u4e00\u4e2a\u597d\u4e60\u60ef\uff0c \u5b83\u4e0d\u662f\u5fc5\u987b\u7684\u3002</p> <pre><code>    ```java\n    public interface Hello {\n        String sayHi(String name);\n        String sayHello(Person person);\n    }\n    ```\n</code></pre> <ul> <li>\u5b9e\u73b0\u670d\u52a1\u63a5\u53e3</li> </ul> <p>\u5728\u670d\u52a1\u7684\u5b9e\u73b0\u7c7b\u4e0a\u6253\u4e0a\u6ce8\u89e3 <code>@RestSchema</code>\uff0c\u6307\u5b9a <code>schemaId</code>\u3002 \u6ce8\u610f <code>schemaId</code> \u9700\u8981\u4fdd\u8bc1\u5fae\u670d\u52a1\u8303\u56f4\u5185\u552f\u4e00\u3002</p> <pre><code>    ```java\n    @RestSchema(schemaId = \"springmvcHello\")\n    @RequestMapping(path = \"/springmvchello\", produces = MediaType.APPLICATION_JSON)\n    public class SpringmvcHelloImpl implements Hello {\n        @Override\n        @RequestMapping(path = \"/sayhi\", method = RequestMethod.POST)\n        public String sayHi(@RequestParam(name = \"name\") String name) {\n            return \"Hello \" + name;\n        }\n\n        @Override\n        @RequestMapping(path = \"/sayhello\", method = RequestMethod.POST)\n        public String sayHello(@RequestBody Person person) {\n            return \"Hello person \" + person.getName();\n        }\n    }\n    ```\n</code></pre>"},{"location":"build-provider/springmvc.html#servicecomb-spring-mvc","title":"ServiceComb\u652f\u6301\u7684 Spring MVC \u6ce8\u89e3\u8bf4\u660e","text":"<p>servicecomb \u652f\u6301\u4f7f\u7528 Spring MVC \u63d0\u4f9b\u7684\u6ce8\u89e3 <code>org.springframework.web.bind.annotation</code> \u6765\u58f0 \u660eREST\u63a5\u53e3\uff0c\u4f46\u662f\u4e24\u8005\u662f\u72ec\u7acb\u7684\u5b9e\u73b0\uff0c\u800c\u4e14\u6709\u4e0d\u4e00\u6837\u7684\u8bbe\u8ba1\u76ee\u6807\u3002servicecomb \u7684\u76ee\u6807\u662f\u63d0\u4f9b\u8de8\u8bed\u8a00\u3001\u652f\u6301\u591a\u901a\u4fe1\u534f\u8bae\u7684 \u6846\u67b6\uff0c\u56e0\u6b64\u53bb\u6389\u4e86Spring MVC\u4e2d\u4e00\u4e9b\u5bf9\u8de8\u8bed\u8a00\u652f\u6301\u4e0d\u662f\u5f88\u597d\u7684\u7279\u6027\uff0c\u4e5f\u4e0d\u652f\u6301\u7279\u5b9a\u8fd0\u884c\u6846\u67b6\u5f3a\u76f8\u5173\u7684\u7279\u6027\uff0c\u6bd4 \u5982\u76f4\u63a5\u8bbf\u95eeServlet\u534f\u8bae\u5b9a\u4e49\u7684<code>HttpServletRequest</code>\u3002servicecomb \u6ca1\u6709\u5b9e\u73b0<code>@Controller</code>\u76f8\u5173\u529f \u80fd, \u53ea\u5b9e\u73b0\u4e86<code>@RestController</code>\uff0c\u5373\u901a\u8fc7MVC\u6a21\u5f0f\u8fdb\u884c\u9875\u9762\u6e32\u67d3\u7b49\u529f\u80fd\u90fd\u662f\u4e0d\u652f\u6301\u7684\u3002</p> <p>\u4e0b\u9762\u662f\u4e00\u4e9b\u5177\u4f53\u5dee\u5f02\u3002</p> <ul> <li>\u5e38\u7528\u6807\u7b7e\u652f\u6301</li> </ul> <p>\u4e0b\u9762\u662fCSE\u5bf9\u4e8eSpring MVC\u5e38\u7528\u6807\u7b7e\u7684\u652f\u6301\u60c5\u51b5\u3002</p> <p>\u88681-1 Spring MVC\u6ce8\u89e3\u60c5\u51b5\u8bf4\u660e</p> \u6807\u7b7e\u540d\u79f0 \u662f\u5426\u652f\u6301 \u8bf4\u660e RequestMapping \u662f \u4e0d\u5141\u8bb8\u5236\u5b9a\u591a\u4e2aPath\uff0c\u4e00\u4e2a\u63a5\u53e3\u53ea\u5141\u8bb8\u4e00\u4e2aPath\uff0c\u5fc5\u987b\u663e\u793a\u7684\u58f0\u660e method \u5c5e\u6027\uff0c\u53ea\u80fd\u5b9a\u4e49\u552f\u4e00\u4e00\u4e2a method GetMapping \u662f PutMapping \u662f PostMapping \u662f DeleteMapping \u662f PatchMapping \u662f RequestParam \u662f \u6ce8\u610f\u542b\u4e49\u4e0eSpring MVC\u4e0d\u540c\u3002Java Chassis \u8868\u793a query \u53c2\u6570\u3002 CookieValue \u662f PathVariable \u662f RequestHeader \u662f RequestBody \u662f \u76ee\u524d\u652f\u6301application/json\uff0cplain/text RequestPart \u662f \u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u7684\u573a\u666f\uff0c\u5bf9\u5e94\u7684\u6807\u7b7e\u8fd8\u6709Part\u3001MultipartFile ResponseBody \u5426 \u8fd4\u56de\u503c\u7f3a\u7701\u90fd\u662f\u5728body\u8fd4\u56de ResponseStatus \u5426 \u53ef\u4ee5\u901a\u8fc7ApiResponse\u6307\u5b9a\u8fd4\u56de\u7684\u9519\u8bef\u7801 RequestAttribute \u662f \u6ce8\u610f\u542b\u4e49\u4e0eSpring MVC\u4e0d\u540c\u3002Java Chassis \u8868\u793a form \u53c2\u6570\u3002 SessionAttribute \u5426 Servlet\u534f\u8bae\u76f8\u5173\u7684\u6807\u7b7e MatrixVariable \u5426 ModelAttribute \u5426 ControllerAdvice \u5426 CrossOrigin \u5426 ExceptionHandler \u5426 InitBinder \u5426 <ul> <li>\u670d\u52a1\u58f0\u660e\u65b9\u5f0f</li> </ul> <p>Spring MVC\u4f7f\u7528<code>@RestController</code>\u58f0\u660e\u670d\u52a1\uff0c\u800cServiceComb\u4f7f\u7528<code>@RestSchema</code>\u58f0\u660e\u670d\u52a1\uff0c\u5e76\u4e14\u9700   \u8981\u663e\u5f0f\u5730\u4f7f\u7528<code>@RequestMapping</code>\u58f0\u660e\u670d\u52a1\u8def\u5f84\uff0c\u4ee5\u533a\u5206\u8be5\u670d\u52a1\u662f\u91c7\u7528Spring MVC\u7684\u6807\u7b7e\u8fd8\u662f\u4f7f\u7528JAX RS\u7684\u6807\u7b7e\u3002</p> <pre><code>    ```\n    @RestSchema(schemaId = \"springmvcHello\")\n    @RequestMapping(path = \"/springmvchello\", produces = MediaType.APPLICATION_JSON)\n    public class SpringmvcHelloImpl implements Hello {\n      ......\n    }\n    ```\n</code></pre> <p>servicecomb \u4e5f\u652f\u6301 <code>@RestController</code> \u58f0\u660e\uff0c\u7b49\u4ef7\u4e8e <code>@RestSchma(schemaId=\"\u670d\u52a1\u7684class\u540d\u79f0\")</code>\uff0c\u8fd9\u4e2a   \u529f\u80fd\u53ef\u4ee5\u7b80\u5316\u7528\u6237\u5c06\u8001\u7684\u5e94\u7528\u6539\u9020\u4e3a servicecomb \u3002 \u5efa\u8bae\u7528\u6237\u4f7f\u7528<code>@RestSchema</code>\u663e\u5f0f\u58f0\u660eschemaId\uff0c\u5728\u7ba1\u7406   \u63a5\u53e3\u57fa\u672c\u7684\u914d\u7f6e\u9879\u7684\u65f6\u5019\uff0c\u66f4\u52a0\u76f4\u89c2\u3002</p> <p>\u6ce8\u610f\uff1a\u5982\u679c\u4e0d\u5e0c\u671bJava-Chassis\u626b\u63cf<code>@RestController</code>\u6ce8\u89e3\u4f5c\u4e3aREST\u63a5\u53e3\u7c7b\u5904\u7406\uff0c\u9700\u8981\u589e\u52a0\u914d\u7f6e   <code>servicecomb.provider.rest.scanRestController=false</code> \u4ee5\u5173\u95ed\u6b64\u529f\u80fd\u3002</p> <ul> <li>\u6570\u636e\u7c7b\u578b\u652f\u6301</li> </ul> <p>Spring \u6280\u672f\u5b9e\u73b0\u7684 Spring MVC\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u5b9a\u4e49\u4e2d\u4f7f\u7528\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u53ea\u8981\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u80fd\u591f\u88abjson\u5e8f\u5217\u5316\u548c   \u53cd\u5e8f\u5217\u5316\u3002\u6bd4\u5982\uff1a</p> <pre><code>    ```\n    // \u62bd\u8c61\u7c7b\u578b\n    public void postData(@RequestBody Object data)\n    // \u63a5\u53e3\u5b9a\u4e49\n    public void postData(@RequestBody IPerson interfaceData)\n    // \u6ca1\u6307\u5b9a\u7c7b\u578b\u7684\u6cdb\u578b\n    public void postData(@RequestBody Map rawData)\n    ```\n</code></pre> <p>Spring \u6280\u672f\u65e9\u671f\u90fd\u662f\u57fa\u4e8e JSP/Servlet \u534f\u8bae\u6807\u51c6\u7684\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u7684 context \u53c2\u6570\uff0c\u6bd4\u5982\uff1a</p> <pre><code>    ```\n    // \u5177\u4f53\u534f\u8bae\u76f8\u5173\u7684\u7c7b\u578b\n    public void postData(HttpServletRequest rquest, HttpServletResponse response)\n    ```\n</code></pre> <p>servicecomb \u5bf9\u4e8e\u6570\u636e\u7c7b\u578b\u5b58\u5728\u4e00\u5b9a\u7684\u9650\u5236\uff0c\u4e0d\u5141\u8bb8\u4f7f\u7528\u63a5\u53e3\u3001\u62bd\u8c61\u7c7b\u7b49\u6570\u636e\u7c7b\u578b\u5b9a\u4e49\u53c2\u6570\uff0c\u867d\u7136 servicecomb   \u652f\u6301\u4f7f\u7528 Object \u8fd9\u4e2a\u7279\u6b8a\u7684\u7c7b\u578b\u6765\u5904\u7406\u7c7b\u578b\u65e0\u6cd5\u786e\u5b9a\u7684\u60c5\u51b5\uff0c\u4f46\u662f\u5efa\u8bae\u5c3d\u53ef\u80fd\u5c11\u4f7f\u7528\uff0c\u4f7f\u7528 Object \u4f5c\u4e3a\u7c7b\u578b\uff0c   \u8fd0\u884c\u65f6\u7684\u7c7b\u578b\u4e0d\u786e\u5b9a\uff0c\u53ef\u80fd\u7ed9\u5ba2\u6237\u7aef\u4ee3\u7801\u7684\u4e66\u5199\u5e26\u6765\u4e00\u5b9a\u9ebb\u70e6\u3002</p> <p>servicecomb \u4e5f\u652f\u6301\u4e00\u4e9b context \u53c2\u6570\uff0c \u53c2\u8003\u4f7f\u7528 Context \u53c2\u6570 \u3002\u4f46\u662f\u7531\u4e8e servicecomb \u9ed8\u8ba4\u7684\u8fd0\u884c\u73af\u5883\u5e76\u4e0d\u662f JSP/Servlet \u534f\u8bae   \u73af\u5883\uff0c\u56e0\u6b64\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528 <code>HttpServletRequest</code> \u548c <code>HttpServletResponse</code>\u3002 </p> <p>ServiceComb\u5728\u6570\u636e\u7c7b\u578b\u7684\u652f\u6301\u65b9\u9762\u7684\u66f4\u591a\u8bf4\u660e\uff0c\u8bf7\u53c2\u8003\uff1a \u63a5\u53e3\u5b9a\u4e49\u548c\u6570\u636e\u7c7b\u578b</p> <ul> <li>\u5176\u4ed6</li> </ul> <p>\u66f4\u591a\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u78b0\u5230\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u6848\u4f8b\u3002\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u5b58\u5728\u7591\u95ee\uff0c\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u8fdb\u884c\u63d0\u95ee\u3002</p>"},{"location":"build-provider/springmvc.html#http-header","title":"\u5728\u54cd\u5e94\u4e2d\u5305\u542b  HTTP header","text":"<p>\u53ef\u4ee5\u6709\u591a\u79cd\u65b9\u5f0f\u5728\u54cd\u5e94\u4e2d\u5305\u542b HTTP header\uff0c \u4e0b\u9762\u4ee3\u7801\u5c55\u793a\u4e86\u4f7f\u7528 ResponseEntity \u5305\u542b HTTP header\u3002 \u9700\u8981\u6ce8\u610f \u4f7f\u7528 @ResponseHeaders \u58f0\u660e\u8fd4\u56de\u7684 header \u4fe1\u606f\u3002 \u5305\u542b\u4e86 @ResponseHeaders \u4ee5\u540e\uff0c \u63a5\u53e3\u751f\u6210\u7684\u5951\u7ea6\u4e2d\uff0c\u4e5f\u53ef\u4ee5 \u770b\u5230\u5bf9\u5e94\u7684 header \u53c2\u6570\u3002</p> <pre><code>  @ResponseHeaders({@ResponseHeader(name = \"h1\", response = String.class),\n      @ResponseHeader(name = \"h2\", response = String.class)})\n  @RequestMapping(path = \"/responseEntity\", method = RequestMethod.POST)\n  public ResponseEntity&lt;Date&gt; responseEntity(InvocationContext c1, \n        @RequestAttribute(\"date\") Date date) {\n    HttpHeaders headers = new HttpHeaders();\n    headers.add(\"h1\", \"h1v \" + c1.getContext().get(Const.SRC_MICROSERVICE));\n\n    InvocationContext c2 = ContextUtils.getInvocationContext();\n    headers.add(\"h2\", \"h2v \" + c2.getContext().get(Const.SRC_MICROSERVICE));\n\n    return new ResponseEntity&lt;&gt;(date, headers, HttpStatus.ACCEPTED);\n  }\n</code></pre> <p>\u4e5f\u53ef\u4ee5\u4f7f\u7528 Response \u5bf9\u8c61\u8fd4\u56de HTTP header\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>  @ApiResponse(code = 202, response = User.class, message = \"\")\n  @ResponseHeaders({@ResponseHeader(name = \"h1\", response = String.class),\n      @ResponseHeader(name = \"h2\", response = String.class)})\n  @RequestMapping(path = \"/cseResponse\", method = RequestMethod.GET)\n  public Response cseResponse(InvocationContext c1) {\n    Response response = Response.createSuccess(Status.ACCEPTED, new User());\n    Headers headers = response.getHeaders();\n    headers.addHeader(\"h1\", \"h1v \" + c1.getContext().get(Const.SRC_MICROSERVICE));\n\n    InvocationContext c2 = ContextUtils.getInvocationContext();\n    headers.addHeader(\"h2\", \"h2v \" + c2.getContext().get(Const.SRC_MICROSERVICE));\n\n    return response;\n  }\n</code></pre> <p>\u8fd9\u4e2a\u793a\u4f8b\u4ee3\u7801\u8fd8\u901a\u8fc7 @ApiResponse \u6307\u5b9a\u4e86\u8fd4\u56de 202 \u9519\u8bef\u7801\u53ca\u5176\u7c7b\u578b\uff0c \u8fd9\u4e2a\u54cd\u5e94\u503c\u4f1a\u5728\u5951\u7ea6\u4f53\u73b0\u3002</p> <p>\u6ce8\u610f: HIGHWAY \u534f\u8bae\u4e0d\u652f\u6301\u6307\u5b9a\u8fd4\u56de\u9519\u8bef\u7801\u548c\u7c7b\u578b\u3002\u9700\u8981\u540c\u65f6\u4f7f\u7528 HIGHWAY \u548c REST \u8bbf\u95ee\u7684\u63a5\u53e3\uff0c \u8bf7\u52ff\u4f7f\u7528\u3002  </p>"},{"location":"build-provider/springmvc.html#string-body","title":"\u6307\u5b9a String \u7c7b\u578b body \u7f16\u7801\u65b9\u5f0f","text":"<p>\u4f7f\u7528 REST \u901a\u4fe1\u7684\u670d\u52a1\uff0c \u4e00\u822c\u91c7\u7528 json \u8fdb\u884c\u7f16\u89e3\u7801\u3002 String \u7c7b\u578b\u7684\u6570\u636e\uff0c \u7f16\u7801\u4e3a json \u7684\u65f6\u5019\uff0c\u5b58\u5728 \u53cc\u5f15\u53f7\u3002 \u6bd4\u5982 <code>abc</code> \u7f16\u7801\u4ee5\u540e\u4e3a <code>\"abc\"</code> \u3002 \u4f46\u662f Spring \u81ea\u8eab\u7684\u5b9e\u73b0\uff0c \u5c06 String \u7c7b\u578b\u7684\u6570\u636e\uff0c\u7f16\u7801 \u4e3a\u4e0d\u5e26\u53cc\u5f15\u53f7\u3002 \u4e3a\u4e86\u4fdd\u6301 Spring \u539f\u59cb\u5b9e\u73b0\u7684\u65b9\u5f0f\u517c\u5bb9\uff0c servicecomb \u63d0\u4f9b\u4e86 <code>RawJsonRequestBody</code> \u63a5\u6536 \u4e0d\u5e26\u53cc\u5f15\u53f7\u7684\u53c2\u6570\u3002 </p> <pre><code>  @ResponseBody\n  public String testRawJsonAnnotation(@RawJsonRequestBody String jsonInput) {\n    return jsonInput;\n  }\n</code></pre> <p>\u6216\u8005\u4f7f\u7528 MediaType.TEXT_PLAIN_VALUE, \u4e0d\u4f7f\u7528 MediaType.APPLICATION_JSON_VALUE</p> <pre><code>  @RequestMapping(path = \"/textPlain\", method = RequestMethod.POST, \n      consumes = MediaType.TEXT_PLAIN_VALUE)\n  public String textPlain(@RequestBody String body) {\n    return body;\n  }\n</code></pre> <p>\u5982\u679c\u54cd\u5e94\u4e0d\u671f\u671b\u5e26\u53cc\u5f15\u53f7\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>produces = MediaType.TEXT_PLAIN_VALUE</code></p> <pre><code> @RequestMapping(path = \"/sayhi/compressed/{name}/v2\", \n    method = RequestMethod.GET, produces = MediaType.TEXT_PLAIN_VALUE)\n  public String sayHiForCompressed(@PathVariable(name = \"name\") String name) {\n     return name;\n  }\n</code></pre>"},{"location":"build-provider/springmvc.html#querypojo","title":"Query\u53c2\u6570\u805a\u5408\u4e3aPOJO\u5bf9\u8c61","text":"<p>SpringBoot\u652f\u6301\u5c06Java\u4e1a\u52a1\u63a5\u53e3\u4e2d\u7684\u591a\u4e2aquery\u53c2\u6570\u805a\u5408\u4e3a\u4e00\u4e2aPOJO\u7c7b\uff0cSpringBoot\u539f\u751f\u7528\u6cd5\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>@RequestMapping(\"/hello\")\npublic class HelloService {\n  @RequestMapping(value = \"/sayHello\", method = RequestMethod.GET)\n  public String sayHello(Person person) {\n    System.out.println(\"sayHello is called, person = [\" + person + \"]\");\n    return \"Hello, your name is \" + person.getName() + \", and age is \" + person.getAge();\n  }\n}\n</code></pre> <p>\u5176\u4e2d\uff0c\u4f5c\u4e3a\u53c2\u6570\u7684<code>Person</code>\u7c7b\u662f\u4e00\u4e2a\u6807\u51c6\u7684JavaBean\uff0c\u5305\u542b\u5c5e\u6027<code>name</code>\u548c<code>age</code>\u3002\u5f53\u670d\u52a1\u63a5\u6536\u5230\u7684\u8bf7\u6c42\u65f6\uff0cSpringBoot\u4f1a\u5c06query\u53c2\u6570<code>name</code>\u548c<code>age</code>\u805a\u5408\u4e3aPerson\u5bf9\u8c61\u4f20\u5165\u4e1a\u52a1\u63a5\u53e3\u3002</p> <p>ServiceComb\u7684SpringMVC\u5f00\u53d1\u6a21\u5f0f\u73b0\u5728\u4e5f\u652f\u6301\u7c7b\u4f3c\u7684\u7528\u6cd5\uff0c\u8be5\u7528\u6cd5\u7684\u8981\u6c42\u5982\u4e0b\uff1a</p> <ol> <li>POJO\u53c2\u6570\u4e0a\u4e0d\u80fd\u6709Spring\u7684\u53c2\u6570\u6ce8\u89e3\uff0c\u5426\u5219ServiceComb\u4e0d\u4f1a\u5c06\u5176\u4f5c\u4e3a\u805a\u5408\u7684query\u53c2\u6570\u5bf9\u8c61\u5904\u7406\u3002</li> <li>\u4ec5\u652f\u6301\u805a\u5408query\u53c2\u6570</li> <li>POJO\u53c2\u6570\u7c7b\u4e2d\u7684\u5c5e\u6027\u540d\u4e0equery\u53c2\u6570\u540d\u9700\u8981\u4fdd\u6301\u4e00\u81f4</li> <li>POJO\u53c2\u6570\u4e2d\u4e0d\u652f\u6301\u590d\u6742\u7684\u5c5e\u6027\uff0c\u5982\u5176\u4ed6POJO\u5bf9\u8c61\u3001List\u7b49\u3002\u7528\u6237\u53ef\u4ee5\u5728\u8fd9\u4e9b\u590d\u6742\u7c7b\u578b\u6253\u4e0a<code>@JsonIgnore</code>\u6ce8\u89e3\u6765\u8ba9ServiceComb\u5ffd\u7565\u8fd9\u4e9b\u590d\u6742\u5c5e\u6027\u3002</li> <li>consumer\u7aef\u4e0d\u652f\u6301query\u53c2\u6570\u805a\u5408\u4e3aPOJO\u5bf9\u8c61\uff0c\u8c03\u7528\u670d\u52a1\u65f6\u4f9d\u7136\u8981\u6309\u7167\u5951\u7ea6\u53d1\u9001\u8bf7\u6c42\u3002\u5373provider\u7aef\u88ab\u805a\u5408\u7684POJO\u53c2\u6570\u5728\u5951\u7ea6\u4e2d\u4f1a\u88ab\u5c55\u5f00\u6210\u4e00\u7cfb\u5217\u7684query\u53c2\u6570\uff0cconsumer\u7aef\u9700\u8981\u5728provider\u63a5\u53e3\u65b9\u6cd5\u4e2d\u4f9d\u6b21\u5b9a\u4e49\u8fd9\u4e9bquery\u53c2\u6570\uff08RPC\u5f00\u53d1\u6a21\u5f0f\uff09\uff0c\u6216\u5728\u53d1\u9001\u8bf7\u6c42\u65f6\u586b\u5165\u8fd9\u4e9bquery\u53c2\u6570\uff08RestTemplate\u5f00\u53d1\u6a21\u5f0f\uff09\u3002</li> </ol>"},{"location":"build-provider/springmvc.html#_2","title":"\u4ee3\u7801\u793a\u4f8b","text":""},{"location":"build-provider/springmvc.html#provider","title":"Provider\u7aef\u5f00\u53d1\u670d\u52a1","text":"<ul> <li>Provider\u7aef\u4e1a\u52a1\u63a5\u53e3\u4ee3\u7801\uff1a</li> </ul> <pre><code>  @RestSchema(schemaId = \"helloService\")\n  @RequestMapping(\"/hello\")\n  public class HelloService {\n    @RequestMapping(value = \"/sayHello\", method = RequestMethod.GET)\n    public String sayHello(Person person) {\n      System.out.println(\"sayHello is called, person = [\" + person + \"]\");\n      return \"Hello, your name is \" + person.getName() + \", and age is \" + person.getAge();\n    }\n  }\n</code></pre> <ul> <li>POJO\u53c2\u6570\u5bf9\u8c61\u5b9a\u4e49\uff1a</li> </ul> <pre><code>  public class Person {\n    private String name;\n    private int age;\n    @JsonIgnore  // \u590d\u6742\u5c5e\u6027\u9700\u8981\u6807\u8bb0@JsonIgnore\uff0c\u5426\u5219\u542f\u52a8\u65f6\u4f1a\u62a5\u9519\n    private List&lt;Person&gt; children;\n  }\n</code></pre> <ul> <li>\u63a5\u53e3\u5951\u7ea6\uff1a</li> </ul> <pre><code># \u5ffd\u7565\u5951\u7ea6\u7684\u5176\u4ed6\u90e8\u5206\nbasePath: \"/hello\"\npaths:\n  /sayHello:\n    get:\n      operationId: \"sayHello\"\n      parameters:\n        # Person\u7c7b\u7684name\u5c5e\u6027\u548cage\u5c5e\u6027\u4f5c\u4e3a\u5951\u7ea6\u4e2d\u7684query\u53c2\u6570\n      - name: \"name\"\n        in: \"query\"\n        required: false\n        type: \"string\"\n      - name: \"age\"\n        in: \"query\"\n        required: false\n        type: \"integer\"\n        format: \"int32\"\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            type: \"string\"\n</code></pre>"},{"location":"build-provider/springmvc.html#consumer","title":"Consumer\u7aef\u8c03\u7528\u670d\u52a1","text":"<p>consumer\u7aefRPC\u5f00\u53d1\u6a21\u5f0f\uff1a</p> <ul> <li>Provider\u63a5\u53e3\u5b9a\u4e49</li> </ul> <pre><code>public interface HelloServiceIntf {\n  String sayHello(String name, int age);\n}\n</code></pre> <ul> <li>\u8c03\u7528\u4ee3\u7801</li> </ul> <pre><code>String result = helloService.sayHello(\"Bob\", 22); // result\u7684\u503c\u4e3a\"Hello, your name is Bob, and age is 22\"\n</code></pre> <ul> <li>consumer\u7aefRestTemplate\u5f00\u53d1\u6a21\u5f0f\uff1a</li> </ul> <pre><code>String result = restTemplate.getForObject(\n  \"cse://provider-service/hello/sayHello?name=Bob&amp;age=22\",\n  String.class); // \u8c03\u7528\u6548\u679c\u4e0eRPC\u65b9\u5f0f\u76f8\u540c\n</code></pre>"},{"location":"build-provider/swagger-annotation.html","title":"\u4f7f\u7528 Swagger \u6ce8\u89e3","text":"<p>\u91c7\u7528 Spring MVC \u6216\u8005 JAX RS \u6ce8\u89e3\u5df2\u7ecf\u80fd\u591f\u63cf\u8ff0\u5927\u90e8\u5206\u5e38\u7528\u7684\u5951\u7ea6\u4fe1\u606f\uff0c\u4f46\u662f\u4ecd\u7136\u4e0d\u8db3\u4ee5\u63cf\u8ff0\u6240\u6709\u5951\u7ea6\u4fe1\u606f\u3002\u53ef\u4ee5\u6df7\u5408 \u4f7f\u7528 Swagger \u6ce8\u89e3\uff0c\u8fdb\u4e00\u6b65\u8865\u5145\u5951\u7ea6\u4fe1\u606f\uff0c\u4f7f\u5f97\u5951\u7ea6\u4fe1\u606f\u66f4\u52a0\u5b8c\u6574\u3002\u5f53 Spring MVC \u6216\u8005 JAR RS \u6ce8\u89e3\u63cf\u8ff0\u7684\u4fe1\u606f\u4e0e Swagger \u6ce8\u89e3\u63cf\u8ff0\u7684\u4fe1\u606f\u91cd\u590d\u65f6\uff0c\u4ee5 Swagger \u6ce8\u89e3\u63cf\u8ff0\u7684\u4fe1\u606f\u4e3a\u51c6\uff0c\u5373 Swagger \u6ce8\u89e3\u5177\u6709\u66f4\u9ad8\u7684\u4f18\u5148\u7ea7\u3002</p> <p>\u5173\u4e8eSwagger\u6ce8\u89e3\u7684\u542b\u4e49\uff0c\u53ef\u4ee5\u5728Swagger\u6ce8\u89e3\u6587\u6863\u4e2d\u627e\u5230\u5b98\u65b9\u8bf4\u660e\u3002\u53ef\u4ee5\u5bf9 \u7167\u8be5\u5b98\u65b9\u6587\u6863\u4e0e\u672c\u8bf4\u660e\u6765\u4e86\u89e3\u5982\u4f55\u5728ServiceComb\u6846\u67b6\u4e0b\u4f7f\u7528\u6ce8\u89e3\u6307\u5b9aSwagger\u5951\u7ea6\u7684\u5404\u9879\u5c5e\u6027\u3002</p>"},{"location":"build-provider/swagger-annotation.html#api","title":"<code>@Api</code>","text":"<p><code>@Api</code>\u4f5c\u7528\u4e8e\u7c7b\u7ea7\u522b\uff0c\u5728Swagger\u5b98\u65b9\u63cf\u8ff0\u4e2d\u662f\u7528\u4e8e\u5c06\u4e00\u4e2aClass\u6807\u6ce8\u4e3a\u4e00\u4e2aSwagger\u8d44\u6e90\u3002\u4f46\u8be5\u6ce8\u89e3 \u5728ServiceComb\u4e2d\u4e0d\u662f\u5fc5\u987b\u7684\uff0cServiceComb\u53ef\u4ee5\u6839\u636e<code>@RestSchema</code>\u548c<code>@RpcSchema</code>\u786e\u5b9a\u9700\u8981\u4ece\u54ea\u4e9b \u7c7b\u4e2d\u89e3\u6790\u51faSwagger\u5951\u7ea6\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e tags string \u8bbe\u7f6e\u5f53\u524dClass\u4e0b\u5b9a\u4e49\u7684operation\u7684\u9ed8\u8ba4tag\u503c consumes string \u6307\u5b9a\u5951\u7ea6\u7ea7\u522b\u7684\u8bf7\u6c42\u4f53\u6570\u636e\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u9017\u53f7\u5206\u9694\u6307\u5b9a\u591a\u4e2a produces string \u6307\u5b9a\u5951\u7ea6\u7ea7\u522b\u7684\u54cd\u5e94\u4f53\u6570\u636e\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u9017\u53f7\u5206\u9694\u6307\u5b9a\u591a\u4e2a"},{"location":"build-provider/swagger-annotation.html#swaggerdefinition","title":"<code>@SwaggerDefinition</code>","text":"<p>\u4f5c\u7528\u4e8e\u7c7b\u7ea7\u522b\uff0c\u7528\u4e8e\u5b9a\u4e49\u4e00\u4e2aSwagger\u8d44\u6e90\u4e2d\u7684\u4fe1\u606f\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e info.title string \u5951\u7ea6\u6587\u4ef6\u6807\u9898 info.description string \u63cf\u8ff0\u4fe1\u606f info.version string \u5951\u7ea6\u7248\u672c\u53f7 info.termsOfService string \u670d\u52a1\u6761\u6b3e info.contact string \u8054\u7cfb\u4fe1\u606f\uff0c\u5305\u542bname\u3001email\u3001url\u5c5e\u6027 info.license string \u8bb8\u53ef\u8bc1\u4fe1\u606f\uff0c\u5305\u542bname\u3001url\u5c5e\u6027 info.extensions string \u6269\u5c55\u4fe1\u606f consumes string \u63a5\u6536\u7684\u8bf7\u6c42\u683c\u5f0f produces string \u8fd4\u56de\u7684\u5e94\u7b54\u683c\u5f0f schemes SwaggerDefinition.Scheme \u53ef\u9009\u503c\u6709<code>HTTP/HTTPS/WS/WSS/DEFAULT</code> tags <code>@Tag</code> Tag\u5b9a\u4e49\uff0c@Tag\u5305\u542bname\u3001description\u3001externalDocs\u4e09\u4e2a\u5c5e\u6027 externalDocs <code>@externalDocs</code> \u5916\u90e8\u8bf4\u660e\u6587\u6863\u94fe\u63a5\uff0c\u5305\u542bvalue\u3001url\u4e24\u4e2a\u5c5e\u6027"},{"location":"build-provider/swagger-annotation.html#apioperation","title":"<code>@ApiOperation</code>","text":"<p>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u7528\u4e8e\u63cf\u8ff0\u4e00\u4e2aSwagger operation\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e value string \u65b9\u6cd5\u7684\u7b80\u8981\u8bf4\u660e\uff0c\u5bf9\u5e94\u4e8eSwagger\u5951\u7ea6operation\u7684<code>summary</code>\u5b57\u6bb5 notes string \u8be6\u7ec6\u4fe1\u606f\uff0c\u5bf9\u5e94\u4e8eSwagger\u5951\u7ea6operation\u7684<code>description</code>\u5b57\u6bb5 tags string \u6807\u6ce8operation\u7684\u6807\u7b7e code int \u54cd\u5e94\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801 response Class&lt;?&gt; \u65b9\u6cd5\u8fd4\u56de\u503c\u7c7b\u578b responseContainer string \u5305\u88c5\u8fd4\u56de\u503c\u7684\u5bb9\u5668\u7c7b\u578b\uff0c\u53ef\u9009\u503c\u4e3a<code>List</code>\u3001<code>Set</code>\u3001<code>Map</code> responseHeaders <code>@ResponseHeader</code> \u54cd\u5e94\u6d88\u606f\u7684HTTP\u5934\uff0cServiceComb\u652f\u6301\u7684\u5c5e\u6027\u503c\u4e3a<code>name</code>\u3001<code>response</code>\u3001<code>responseContainer</code> consumes string \u6307\u5b9a\u8bf7\u6c42\u4f53\u7684\u6570\u636e\u683c\u5f0f produces string \u6307\u5b9a\u54cd\u5e94\u4f53\u7684\u6570\u636e\u683c\u5f0f protocols string \u8bbe\u7f6e\u53ef\u7528\u7684\u534f\u8bae\uff08schemes\uff09\uff0c\u53ef\u9009\u503c\u6709<code>http</code>\u3001<code>https</code>\u3001<code>ws</code>\u3001<code>wss</code>\uff0c\u9017\u53f7\u5206\u9694 httpMethod string \u8bbe\u7f6eHTTP\u65b9\u6cd5 hidden boolean \u662f\u5426\u9690\u85cf\u6b64\u65b9\u6cd5"},{"location":"build-provider/swagger-annotation.html#apiimplicitparam","title":"<code>@ApiImplicitParam</code>","text":"<p>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u7528\u4e8e\u8bf4\u660eSwagger\u6587\u6863\u4e2doperation\u7684\u53c2\u6570\u7684\u5c5e\u6027\u3002</p> <p>\u6ce8\u610f\uff1aServiceComb\u53ef\u4ee5\u6839\u636e\u4ee3\u7801\u548cSpringMVC\u3001JAX-RS\u7684\u6ce8\u89e3\u81ea\u52a8\u63a8\u65ad\u51fa\u53c2\u6570\u540d\u79f0\u3002\u5982\u679c<code>@ApiImplicitParam</code>\u914d\u7f6e\u7684\u53c2\u6570\u540d\u79f0\u4e0e\u81ea\u52a8\u63a8\u65ad\u7684\u53c2\u6570\u540d\u4e0d\u540c\uff0c\u5219\u5219\u8be5\u6ce8\u89e3\u914d\u7f6e\u7684\u53c2\u6570\u5c06\u88ab\u4f5c\u4e3a\u4e00\u4e2a\u65b0\u7684\u53c2\u6570\u52a0\u5165\u5230\u6ce8\u89e3\u6240\u5728\u7684operation\u4e2d\uff1b\u5426\u5219\u5c06\u8986\u76d6\u540c\u540d\u53c2\u6570\u7684\u5c5e\u6027\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e name string \u53c2\u6570\u540d\u79f0 value string \u53c2\u6570\u8bf4\u660e required boolean \u662f\u5426\u662f\u5fc5\u586b\u53c2\u6570 dataType string \u53c2\u6570\u6570\u636e\u7c7b\u578b paramType string \u53c2\u6570\u4f4d\u7f6e\uff0c\u6709\u6548\u7684\u53ef\u9009\u503c\u4e3apath/query/body/header/form allowableValues string \u53c2\u6570\u7684\u6709\u6548\u503c\u8303\u56f4 allowEmptyValue boolean \u662f\u5426\u5141\u8bb8\u7a7a\u503c allowMultiple boolean \u662f\u5426\u5141\u8bb8\u591a\u4e2a\u503c\uff08\u82e5\u4e3atrue\uff0c\u5219\u53ef\u4ee5\u5c06\u53c2\u6570\u4f5c\u4e3a\u6570\u7ec4\uff09 collectionFormat string \u4ee5\u4f55\u79cd\u683c\u5f0f\u6307\u5b9a\u53c2\u6570\u6570\u7ec4\uff0c\u5f53\u524dServiceComb\u652f\u6301\u7684\u503c\u4e3a<code>csv/multi</code> defaultValue string \u53c2\u6570\u9ed8\u8ba4\u503c example string \u4e00\u4e2a\u975ebody\u53c2\u6570\u7684\u793a\u4f8b\u503c format string \u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u6570\u636e\u683c\u5f0f\uff0c\u8be6\u60c5\u53c2\u89c1Swagger\u5b98\u65b9\u6587\u6863"},{"location":"build-provider/swagger-annotation.html#apiimplicitparams","title":"<code>@ApiImplicitParams</code>","text":"<p><code>@ApiImplicitParams</code>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u3001\u7c7b\u7ea7\u522b\uff0c\u7528\u4e8e\u6279\u91cf\u6307\u5b9a\u591a\u4e2a<code>@ApiImplicitParam</code>\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e value <code>@ApiImplicitParam</code> \u53c2\u6570\u5b9a\u4e49"},{"location":"build-provider/swagger-annotation.html#apiresponse","title":"<code>@ApiResponse</code>","text":"<p>\u7528\u4e8e\u63cf\u8ff0\u8fd4\u56de\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801\u6240\u8868\u8fbe\u7684\u542b\u4e49\u3002\u901a\u5e38<code>@ApiOperation</code>\u53ef\u4ee5\u8868\u793a\u4e00\u4e2a\u6b63\u5e38\u60c5\u51b5\u8fd4\u56de\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801\uff0c\u5176\u4ed6\u60c5\u5f62\u4e0b\u7684HTTP\u72b6\u6001\u7801\u7531\u672c\u6ce8\u89e3\u63cf\u8ff0\u3002\u6839\u636eSwagger\u5b98\u65b9\u6587\u6863\u7684\u63cf\u8ff0\uff0c\u672c\u6ce8\u89e3\u4e0d\u5e94\u8be5\u76f4\u63a5\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u800c\u5e94\u8be5\u88ab\u5305\u542b\u5728<code>@ApiResponses</code>\u4e2d\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e code int \u8fd4\u56de\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801 message string \u8fd4\u56de\u503c\u7684\u8bf4\u660e\u4fe1\u606f response Class&lt;?&gt; \u8fd4\u56de\u503c\u7684\u7c7b\u578b responseContainer string \u8fd4\u56de\u503c\u7684\u5305\u88c5\u5bb9\u5668\uff0c\u53ef\u9009\u503c\u4e3a<code>List/Set/Map</code> responseHeaders @ResponseHeader \u63cf\u8ff0\u4e00\u7ec4\u8fd4\u56de\u6d88\u606f\u7684HTTP\u5934\uff0cServiceComb\u652f\u6301\u7684<code>@ResponseHeader</code>\u7684\u5c5e\u6027\u6709<code>name</code>\u3001<code>description</code>\u3001<code>response</code>\u3001<code>responseContainer</code>"},{"location":"build-provider/swagger-annotation.html#apiresponses","title":"<code>@ApiResponses</code>","text":"<p>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u3001\u7c7b\u7ea7\u522b\uff0c\u7528\u4e8e\u6307\u5b9a\u548c\u8bf4\u660e\u4e00\u7ec4\u8fd4\u56de\u503c\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e value <code>@ApiResponse</code> \u8fd4\u56de\u6d88\u606f\u8bf4\u660e"},{"location":"build-provider/thread-pool.html","title":"\u7ebf\u7a0b\u6c60","text":"<p>\u7ebf\u7a0b\u6c60\u7528\u4e8e\u6267\u884c\u540c\u6b65\u6a21\u5f0f\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u7f51\u7edc\u6536\u53d1\u53careactive\u6a21\u5f0f\u7684\u4e1a\u52a1\u903b\u8f91\u5728 event-loop \u4e2d\u6267\u884c\uff0c\u4e0e\u7ebf\u7a0b\u6c60\u65e0\u5173\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c  Consumer \u548c Provider \u7684 \u4e1a\u52a1\u903b\u8f91\u4ee3\u7801\u7684\u6267\u884c\u90fd\u662f\u5728\u7ebf\u7a0b\u6c60\u91cc\u9762\uff0c Edge Service \u7684\u4e1a\u52a1\u903b\u8f91\u6267\u884c\u5728 event-loop \u91cc\u9762\u3002 </p> <p>Java Chassis \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u5c40\u7684\u5185\u7f6e\u7ebf\u7a0b\u6c60\uff0c \u5982\u679c\u4e1a\u52a1\u6709\u7279\u6b8a\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u6307\u5b9a\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u5168\u5c40\u7ebf\u7a0b\u6c60\uff0c\u5e76\u4e14\u53ef\u4ee5\u6839 \u636e schemaId \u6216 operationId \u6307\u5b9a\u5404\u81ea\u4f7f\u7528\u72ec\u7acb\u7684\u7ebf\u7a0b\u6c60\uff0c\u5b9e\u73b0\u9694\u79bb\u4ed3\u7684\u6548\u679c\u3002   </p>"},{"location":"build-provider/thread-pool.html#_2","title":"\u5b9a\u5236\u7ebf\u7a0b\u6c60","text":"<ul> <li>\u5b9e\u73b0\u7ebf\u7a0b\u6c60     \u4e0b\u9762\u7684\u65b9\u6cd5\u4efb\u9009\u5176\u4e00\u5373\u53ef<ul> <li>\u5b9e\u73b0<code>java.util.concurrent.Executor</code>\u63a5\u53e3\uff0c \u4e3a\u4e86\u652f\u6301\u4f18\u96c5\u9000\u51fa\uff0c\u5982\u679c\u5185\u90e8\u7ebf\u7a0b\u672a\u8bbe\u7f6e\u4e3adaemon\u7ebf\u7a0b\uff0c\u5219\u8fd8\u9700\u8981\u5b9e\u73b0<code>java.io.Closeable</code>\u63a5\u53e3\uff0c\u8d1f\u8d23\u9500\u6bc1\u7ebf\u7a0b\u6c60</li> <li>\u5b9e\u73b0<code>java.util.concurrent.ExecutorService</code>\u63a5\u53e3</li> </ul> </li> <li>\u5c06\u5b9e\u73b0\u7684\u7ebf\u7a0b\u6c60\u58f0\u660e\u4e3a spring bean</li> <li>\u542f\u7528\u7ebf\u7a0b\u6c60   \u5047\u8bbe\u65b0\u7ebf\u7a0b\u6c60bean id\u4e3acustom-executor</li> <li>\u66ff\u6362\u5168\u5c40\u7ebf\u7a0b\u6c60\uff1a<code>servicecomb.executors.default: custom-executor</code></li> <li>\u6307\u5b9aschema\u4e13\u7528\u7684\u7ebf\u7a0b\u6c60: <code>servicecomb.executors.Provider.${microserviceId}.${schemaId}: custom-executor</code></li> <li>\u6307\u5b9aoperation\u4e13\u7528\u7684\u7ebf\u7a0b\u6c60: <code>servicecomb.executors.Provider.${microserviceId}.${schemaId}.${operationId}: custom-executor</code></li> <li>\u6307\u5b9amicroservice\u4e13\u7528\u7684\u7ebf\u7a0b\u6c60: <code>servicecomb.executors.Provider.${microserviceId}: custom-executor</code>     \u5176\u4e2dmicroserviceId\u4e3a\u53ef\u9009\u9879\uff0c\u5728edge service\u4e2d\u7528\u4ee5\u533a\u5206\u4e0d\u540c\u7684microservice</li> </ul>"},{"location":"build-provider/thread-pool.html#java-chassis","title":"Java Chassis \u5185\u7f6e\u7ebf\u7a0b\u6c60","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u4e24\u4e2a\u5185\u7f6e\u7684\u7ebf\u7a0b\u6c60\uff0c<code>servicecomb.executor.groupThreadPool</code> \u548c <code>servicecomb.executor.reactive</code>\u3002 \u524d\u8005 \u662f\u540c\u6b65\u7ebf\u7a0b\u6c60\uff0c\u5728Consumer\u548cProvider\u9ed8\u8ba4\u542f\u7528\uff1b\u540e\u8005\u662f\u5f02\u6b65\u7ebf\u7a0b\u6c60\uff0c\u5728Edge Service\u9ed8\u8ba4\u542f\u7528\u3002 </p>"},{"location":"build-provider/thread-pool.html#_3","title":"\u540c\u6b65\u7ebf\u7a0b\u6c60","text":"<p>\u4e00\u822c\u7684\u7ebf\u7a0b\u6c60\u90fd\u662f\u6240\u6709\u7ebf\u7a0b\u5171\u4eab\u4e00\u4e2a\u4efb\u52a1\u961f\u5217\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u7f51\u7edc\u7ebf\u7a0b\u9700\u8981\u5411\u540c\u4e00\u4e2a\u961f\u5217\u7533\u8bf7\u8bf7\u6c42\u5165\u961f\uff0c\u7ebf\u7a0b\u6c60\u4e2d\u7684\u6240\u6709\u7ebf\u7a0b\u9700\u8981\u4ece\u540c\u4e00\u4e2a\u961f\u5217\u4e2d\u62a2\u4efb\u52a1\u6267\u884c\uff0c\u5bf9\u4e8e\u9ad8\u541e\u5410\u7684\u573a\u666f\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u7ade\u4e89\u51b2\u7a81\uff0c\u5f62\u6210\u6027\u80fd\u74f6\u9888 \u6240\u4ee5\uff0c\u4e3a\u4e86\u63d0\u5347\u6027\u80fd\uff0cJava Chassis\u5185\u7f6e\u7ebf\u7a0b\u6c60\u5b9e\u9645\u662f\u771f\u6b63\u7ebf\u7a0b\u6c60\u7684\u5305\u88c5\uff0c\u5141\u8bb8\u5728\u5176\u5185\u90e8\u914d\u7f6e\u591a\u7ec4\u7ebf\u7a0b\u6c60\uff0c\u4e14\u6bcf\u4e2a\u7f51\u7edc\u7ebf\u7a0b\u7ed1\u5b9a\u4e00\u7ec4\u7ebf\u7a0b\u6c60\uff0c\u4ee5\u51cf\u5c0f\u7ade\u4e89\u51b2\u7a81 </p> <ul> <li>1.2.0\u4e4b\u524d\u7684\u7248\u672c</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.executor.default.group 2 \u521b\u5efa\u51e0\u7ec4\u7ebf\u7a0b\u6c60 servicecomb.executor.default.thread-per-group CPU\u6570 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u7ebf\u7a0b\u6570 <ul> <li>\u5927\u4e8e\u7b49\u4e8e1.2.0\u7684\u7248\u672c</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.executor.default.group 2 \u521b\u5efa\u51e0\u7ec4\u7ebf\u7a0b\u6c60 servicecomb.executor.default.thread-per-group 100 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u6700\u5927\u7ebf\u7a0b\u6570Deprecated\uff0c\u65b0\u540d\u5b57\uff1amaxThreads-per-group servicecomb.executor.default.coreThreads-per-group 25 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u6700\u5c0f\u7ebf\u7a0b\u6570\u7ebf\u7a0b\u4e0d\u4f1a\u9884\u521b\u5efa\uff0c\u800c\u662f\u5df2\u7ecf\u521b\u5efa\u540e\uff0c\u53ea\u6709\u5927\u4e8e\u8fd9\u4e2a\u503c\u7684\u7ebf\u7a0b\uff0c\u624d\u4f1a\u56e0idle\u800c\u9500\u6bc1 servicecomb.executor.default.maxThreads-per-group 100 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u6700\u5927\u7ebf\u7a0b\u6570 servicecomb.executor.default.maxIdleSecond-per-group 60 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u4e2d\u8d85\u8fc7coreThreads-per-group\u7684\u7ebf\u7a0b\uff0c\u5982\u679cidle\u8d85\u65f6\uff0c\u5219\u4f1a\u9500\u6bc1\u8be5\u7ebf\u7a0b servicecomb.executor.default.maxQueueSize-per-group Integer.MAX_VALUE \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u4e2d\u4efb\u52a1\u961f\u5217\u7684\u6700\u5927\u957f\u5ea6 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2"},{"location":"build-provider/thread-pool.html#_4","title":"\u5f02\u6b65\u7ebf\u7a0b\u6c60","text":"<p>\u6240\u8c13\u7684\u5f02\u6b65\u7ebf\u7a0b\u6c60\uff0c\u5b9e\u9645\u4e0a\u662f\u6ca1\u6709\u63d0\u4f9b\u989d\u5916\u7684\u7ebf\u7a0b\u6c60\u3002 \u6240\u6709\u7684\u4e1a\u52a1\u903b\u8f91\u76f4\u63a5\u5728 event-loop \u7ebf\u7a0b\u6c60\u6267\u884c\u3002 \u4f7f\u7528\u5f02\u6b65\u7ebf\u7a0b\u6c60\uff0c\u4e1a\u52a1\u4ee3\u7801\u4e0d\u80fd\u591f\u5b58\u5728\u963b\u585e\u64cd\u4f5c\u3002 \u5e38\u89c1\u7684\u963b\u585e\u64cd\u4f5c\u5305\u62ec</p> <ul> <li>\u4f7f\u7528\u540c\u6b65API\uff0c\u8c03\u7528\u5176\u4ed6\u5fae\u670d\u52a1\uff0c\u6bd4\u5982 RestTemplate\u3001\u900f\u660eRPC\u7b49\u3002</li> <li>\u7279\u522b\u8017\u65f6\u7684\u4efb\u52a1\u3002\u6bd4\u5982\u7b49\u5f85IO\u3001\u7b49\u5f85\u9501\u3001Sleep\u7b49\u3002</li> </ul>"},{"location":"build-provider/transparent-rpc.html","title":"\u7528\u900f\u660eRPC\u5f00\u53d1\u5fae\u670d\u52a1","text":""},{"location":"build-provider/transparent-rpc.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u662f\u4e00\u79cd\u57fa\u4e8e\u63a5\u53e3\u548c\u63a5\u53e3\u5b9e\u73b0\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u670d\u52a1\u7684\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u4f7f\u7528Spring MVC\u548cJAX-RS\u6ce8\u89e3\u3002</p> <p>\u900f\u660eRPC\u4f8b\u5b50 \u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4f7f\u7528\u3002</p>"},{"location":"build-provider/transparent-rpc.html#_2","title":"\u5f00\u53d1\u793a\u4f8b","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u652f\u6301Spring xml\u914d\u7f6e\u548c\u6ce8\u89e3\u914d\u7f6e\u4e24\u79cd\u670d\u52a1\u53d1\u5e03\u65b9\u5f0f\uff0c\u901a\u8fc7Spring xml\u914d\u7f6e\u7684\u65b9\u5f0f\u5982\u4e0b\uff1a</p>"},{"location":"build-provider/transparent-rpc.html#1","title":"\u6b65\u9aa4 1\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u3002","text":"<p>\u6839\u636e\u5f00\u53d1\u4e4b\u524d\u5b9a\u4e49\u597d\u7684\u5951\u7ea6\uff0c\u7f16\u5199Java\u4e1a\u52a1\u63a5\u53e3\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public interface Hello {\n    String sayHi(String name);\n    String sayHello(Person person);\n}\n\npublic interface Compute {\n  int add(int a, int b);\n  int multi(int a, int b);\n  int sub(int a, int b);\n  int divide(int a, int b);\n}\n\n</code></pre>"},{"location":"build-provider/transparent-rpc.html#2","title":"\u6b65\u9aa4 2\u5b9e\u73b0\u670d\u52a1","text":"<p>Hello\u7684\u670d\u52a1\u5b9e\u73b0\u5982\u4e0b\uff1a</p> <p>\u8bf4\u660e\uff1a \u6bcf\u4e00\u4e2a\u670d\u52a1\u63a5\u53e3\u90fd\u9700\u8981\u5b9a\u4e49\u4e00\u4e2aschema\u58f0\u660e\u3002</p> <ul> <li>\u5728\u63a5\u53e3Hello \u548c Compute \u7684\u5b9e\u73b0\u7c7b\u4e0a\u4f7f\u7528@RpcSchema\u6ce8\u89e3\u5b9a\u4e49schema\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</li> </ul> <pre><code>@RpcSchema(schemaId = \"hello\")\npublic class HelloImpl implements Hello {\n    @Override\n    public String sayHi(String name) {\n        return \"Hello \" + name;\n    }\n\n    @Override\n    public String sayHello(Person person) {\n        return \"Hello person \" + person.getName();\n    }\n}\n\n@RpcSchema(schemaId = \"codeFirstCompute\")\npublic class CodeFirstComputeImpl implements Compute {\n  @Override\n  public int add(int a, int b) {\n    return a + b;\n  }\n\n  @Override\n  public int multi(int a, int b) {\n    return a * b;\n  }\n\n  @Override\n  public int sub(int a, int b) {\n    return a - b;\n  }\n\n  @Override\n  public int divide(int a, int b) {\n    if (b != 0) {\n      return a / b;\n    }\n    return 0;\n  }\n}\n</code></pre>"},{"location":"build-provider/transparent-rpc.html#3","title":"\u6b65\u9aa4 3\u53d1\u5e03\u670d\u52a1","text":"<ul> <li>\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u65b9\u5f0f</li> </ul> <p>\u5728resources/META-INF/spring\u76ee\u5f55\u4e0b\u7684pojoHello.bean.xml\u6587\u4ef6\u4e2d\uff0c\u914d\u7f6eSpring\u8fdb\u884c\u670d\u52a1\u626b\u63cf\u7684base-package\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;beans xmlns=\" http://www.springframework.org/schema/beans \" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance \"\n       xmlns:p=\" http://www.springframework.org/schema/p \" xmlns:util=\" http://www.springframework.org/schema/util \"\n       xmlns:cse=\" http://www.huawei.com/schema/paas/cse/rpc \"\n       xmlns:context=\" http://www.springframework.org/schema/context \"\n       xsi:schemaLocation=\" http://www.springframework.org/schema/beans classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.huawei.com/schema/paas/cse/rpc classpath:META-INF/spring/spring-paas-cse-rpc.xsd\"&gt;\n\n    &lt;context:component-scan base-package=\"org.apache.servicecomb.samples.pojo.provider\"/&gt;\n&lt;/beans&gt;\n</code></pre>"},{"location":"build-provider/transparent-rpc.html#4","title":"\u6b65\u9aa4 4 \u542f\u52a8\u670d\u52a1","text":"<pre><code>public class PojoProviderMain {\n\n  public static void main(String[] args) throws Exception {\n    Log4jUtils.init();\n    BeanUtils.init();\n  }\n}\n</code></pre> <p>\u8bf4\u660e\uff1a \u4e0eSpring MVC\u5f00\u53d1\u6a21\u5f0f\u548cJAX-RS\u5f00\u53d1\u6a21\u5f0f\u4e0d\u540c\u7684\u662f\uff0c\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4f7f\u7528\u7684\u6ce8\u89e3\u662f<code>@RpcSchema</code>\u800c\u975e<code>@RestSchema</code>\u3002</p>"},{"location":"build-provider/use-interface.html","title":"\u53ea\u53d1\u5e03interface\u7684\u65b9\u6cd5\u4e3a\u670d\u52a1\u63a5\u53e3","text":"<p>\u4e0d\u7ba1\u91c7\u7528 <code>JAX RS</code>, <code>Spring MVC</code>\uff0c \u8fd8\u662f\u91c7\u7528 <code>\u900f\u660eRPC</code> \u5f00\u53d1\uff0c java-chassis \u9ed8\u8ba4\u4f1a\u626b\u63cf\u5b9e\u73b0\u7c7b\u7684\u6240\u6709\u65b9\u6cd5\uff0c \u5c06 <code>public</code> \u65b9\u6cd5\u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\u3002 \u4ece 2.1.1 \u7248\u672c\u5f00\u59cb\uff0c \u589e\u52a0\u4e86 <code>schemaInterface</code> \u5c5e\u6027\uff0c \u5b9e\u73b0\u7c7b\u53ef\u4ee5\u901a\u8fc7 \u5b9e\u73b0 <code>schemaInterface</code> \u5bf9\u5e94\u7684\u63a5\u53e3\uff0c \u6700\u7ec8\u53ea\u6709 <code>schemaInterface</code> \u7684\u65b9\u6cd5\u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\u3002 </p>"},{"location":"build-provider/use-interface.html#jax-rs","title":"JAX RS \u7684\u4f8b\u5b50","text":"<p>\u9996\u5148\u5b9a\u4e49\u63a5\u53e3\uff1a</p> <pre><code>@Path(\"/jaxrs/schemaInterface\")\n@Produces(MediaType.APPLICATION_JSON)\npublic interface SchemeInterfaceJaxrs {\n  @Path(\"/add\")\n  @GET\n  public int add(@Min(1) @RequestParam(\"a\") int a, @Min(1) @RequestParam(\"b\") int b);\n\n  @Path(\"/interfaceModel\")\n  @GET\n  Page&lt;String&gt; interfaceModel(Page&lt;String&gt; model);\n}\n</code></pre> <p>\u5b9e\u73b0\u7c7b\u6307\u5b9a <code>schemaInterface</code>:</p> <pre><code>@RestSchema(schemaId = \"SchemeInterfaceJaxrs\", schemaInterface = SchemeInterfaceJaxrs.class)\npublic class SchemeInterfaceJaxrsImpl implements SchemeInterfaceJaxrs {\n  @Override\n  public int add(@Min(1) int a, @Min(1) int b) {\n    return a + b;\n  }\n\n  public int reduce(int a, int b) {\n    return a - b;\n  }\n\n  @Override\n  public Page&lt;String&gt; interfaceModel(Page&lt;String&gt; model) {\n    return model;\n  }\n}\n</code></pre> <p>\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u53ea\u6709 <code>add</code> \u548c <code>interfaceModel</code> \u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\uff0c <code>reduce</code> \u4e0d\u4f1a\u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\u3002 \u5ba2\u6237\u7aef \u901a\u8fc7\u900f\u660e RPC \u7684\u65b9\u5f0f\u8bbf\u95ee\uff1a</p> <pre><code>public interface SchemeInterfaceJaxrs {\n  int add(int a, int b);\n\n  int reduce(int a, int b);\n\n  Page&lt;String&gt; interfaceModel(Page&lt;String&gt; model);\n}\n\n\n@RpcReference(schemaId = \"SchemeInterfaceJaxrs\", microserviceName = \"jaxrs\")\nprivate SchemeInterfaceJaxrs jaxrs;\n\npublic void testAllTransport() throws Exception {\n    TestMgr.check(3, jaxrs.add(1, 2));\n\n    try {\n      jaxrs.reduce(1, 3);\n      TestMgr.failed(\"should throw exception\", new Exception());\n    } catch (Exception e) {\n      TestMgr.check(\n          \"Consumer method org.apache.servicecomb.demo.jaxrs.client.SchemeInterfaceJaxrs:reduce \"\n              + \"not exist in contract, microserviceName=jaxrs, schemaId=SchemeInterfaceJaxrs; \"\n              + \"new producer not running or not deployed.\",\n          e.getMessage());\n    }\n}\n</code></pre> <p>\u8bbf\u95ee <code>reduce</code> \u4f1a\u629b\u51fa\u5f02\u5e38\uff0c \u8bbf\u95ee <code>add</code> \u80fd\u591f\u5f97\u5230\u6b63\u786e\u7684\u7ed3\u679c\u3002 </p>"},{"location":"build-provider/use-interface.html#spring-mvc-rpc","title":"Spring MVC \u548c \u900f\u660eRPC","text":"<p>\u8fd9\u4e24\u79cd\u65b9\u5f0f\u548c JAX RS \u7c7b\u4f3c\uff0c\u4e0d\u8be6\u7ec6\u4e3e\u4f8b\u4e86\u3002 \u4f7f\u7528 @RestSchema\uff0c @RpcSchema \u7684\u65f6\u5019\uff0c \u76f8\u5173\u7684 Annotation \u5fc5\u987b \u5728 schemaInterface \u58f0\u660e\uff0c \u5728\u5b9e\u73b0\u7c7b\u58f0\u660e\u65e0\u6548\uff0c\u8fd9\u4e9b Annotation \u5305\u62ec <code>JAX RS</code>, <code>Spring MVC</code>  \u548c <code>Swagger \u6ce8\u89e3</code> \u3002 \u540c\u65f6\u9700\u8981\u6ce8\u610f\uff0c\u7531\u4e8e @Path, @RequestMapping \u8fd9\u4e9b Annotation \u53ea\u80fd\u5728 schemaInterface \u58f0\u660e, \u6bcf\u4e2a\u63a5\u53e3\u7684 URL \u5fc5\u987b\u552f\u4e00\uff0c\u6240\u4ee5\u8fd9\u4e2a\u529f\u80fd\u9650\u5236\u4e86\u4e00\u4e2a\u63a5\u53e3\u53ea\u80fd\u5b9a\u4e49\u4e00\u4e2a\u5b9e\u73b0\u7c7b\u3002 </p>"},{"location":"build-provider/definition/heartbeats.html","title":"Heartbeats","text":""},{"location":"build-provider/definition/heartbeats.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u5f53\u5fae\u670d\u52a1\u5b9e\u4f8b\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u540e\uff0c\u5fae\u670d\u52a1\u9700\u8981\u5b9a\u65f6\u5411\u670d\u52a1\u4e2d\u5fc3\u53d1\u9001\u5fc3\u8df3\u3002\u82e5\u670d\u52a1\u4e2d\u5fc3\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709\u6536\u5230\u5fc3\u8df3\u4fe1\u606f\uff0c\u5219\u4f1a\u6ce8\u9500\u6b64\u5b9e\u4f8b\u3002</p>"},{"location":"build-provider/definition/heartbeats.html#api","title":"\u6d89\u53caAPI","text":"<ul> <li><code>org.apache.servicecomb.serviceregistry.client.ServiceRegistryClient</code>\uff1a\u670d\u52a1\u4e2d\u5fc3\u5ba2\u6237\u7aef</li> </ul>"},{"location":"build-provider/definition/heartbeats.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p><code>ServiceRegistryClient</code>\u63d0\u4f9b\u4e86\u53d1\u9001\u5fc3\u8df3\u7684\u65b9\u6cd5<code>heartbeat</code>\uff0c\u7528\u6237\u76f4\u63a5\u8c03\u7528\u5373\u53ef\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public static void main(String[] args) throws Exception {\n    // \u9996\u5148\u9700\u8981\u6ce8\u518c\u5fae\u670d\u52a1\u548c\u5b9e\u4f8b\u2026\u2026\n    // \u53d1\u9001\u5fc3\u8df3\uff0c\u4e0d\u7136\u5b9e\u4f8b\u4f1a\u6d88\u5931\n    while (true) {\n        System.out.println(\"heartbeat sended:\" + client.heartbeat(service2.getServiceId(), instance.getInstanceId()));\n        Thread.sleep(3000);\n    }\n}\n</code></pre>"},{"location":"build-provider/definition/isolate-relationship.html","title":"Isolate relationship","text":""},{"location":"build-provider/definition/isolate-relationship.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4e86\u89e3\u672c\u5fae\u670d\u52a1\u80fd\u591f\u53d1\u73b0\u90a3\u4e9b\u5176\u4ed6\u670d\u52a1\u7684\u5b9e\u4f8b\u3002ServiceComb\u63d0\u4f9b\u4e86\u5206\u5c42\u6b21\u7684\u5b9e\u4f8b\u9694\u79bb\u3002</p>"},{"location":"build-provider/definition/isolate-relationship.html#_2","title":"\u5fae\u670d\u52a1\u5b9e\u4f8b\u5206\u5c42\u7ba1\u7406","text":"<p>\u8981\u4e86\u89e3\u5b9e\u4f8b\u95f4\u7684\u9694\u79bb\u5c42\u6b21\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3ServiceComb\u5b9a\u4e49\u7684\u4e00\u4e2a\u4f53\u7cfb\u5b8c\u5907\u7684\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\uff1a</p> <p></p> <p>\u5728\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\u4e2d\uff0c\u9876\u5c42\u662f\u201c\u9879\u76ee\u201d\uff0c\u5728\u9879\u76ee\u4e0b\u5206\u4e3a\u591a\u4e2a\u79df\u6237\uff0c\u79df\u6237\u4e2d\u5305\u542b\u591a\u4e2a\u5e94\u7528\uff0c\u800c\u6bcf\u4e2a\u5e94\u7528\u7531\u5305\u542b\u591a\u4e2a\u73af\u5883\uff0c\u5373\u6d4b\u8bd5\u548c\u751f\u4ea7\u73af\u5883\u53ef\u4ee5\u5206\u5f00\u3002\u5728\u67d0\u4e2a\u7279\u5b9a\u5e94\u7528\u7684\u7279\u5b9a\u73af\u5883\u4e2d\uff0c\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff0c\u800c\u4e00\u4e2a\u5fae\u670d\u52a1\u53c8\u53ef\u4ee5\u540c\u65f6\u5b58\u5728\u591a\u4e2a\u7248\u672c\u3002\u4ee5\u4e0a\uff0c\u662f\u6240\u6709\u9759\u6001\u5143\u6570\u636e\u7684\u8303\u7574\uff0c\u67d0\u4e2a\u7279\u5b9a\u670d\u52a1\u7684\u7279\u5b9a\u7248\u672c\u5219\u5305\u542b\u591a\u4e2a\u5728\u8fd0\u884c\u65f6\u6ce8\u518c\u4e0a\u6765\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u56e0\u4e3a\u670d\u52a1\u5b9e\u4f8b\u7684\u4fe1\u606f\u5728\u8fd0\u884c\u65f6\u968f\u7740\u7cfb\u7edf\u7684\u4f38\u7f29\u3001\u6545\u969c\u7b49\u539f\u56e0\u662f\u52a8\u6001\u53d8\u5316\u7684\uff0c\u6240\u4ee5\u670d\u52a1\u5b9e\u4f8b\u7684\u8def\u7531\u4fe1\u606f\u53c8\u4e3a\u52a8\u6001\u6570\u636e\u3002\u901a\u8fc7\u5206\u5c42\u7ba1\u7406\u5fae\u670d\u52a1\u7684\u8fd9\u4e9b\u6570\u636e\uff0c\u4e5f\u5c31\u81ea\u7136\u800c\u7136\u7684\u5b9e\u73b0\u4e86\u5b9e\u4f8b\u4e4b\u95f4\u7684\u903b\u8f91\u9694\u79bb\u3002</p>"},{"location":"build-provider/definition/isolate-relationship.html#_3","title":"\u9694\u79bb\u5c42\u6b21\u8bf4\u660e","text":"<p>ServiceComb\u652f\u6301\u81ea\u5b9a\u4e49\u5206\u5c42\u914d\u7f6e\uff0c\u6ee1\u8db3\u7528\u6237\u7684\u5b9e\u4f8b\u5206\u5c42\u7ba1\u7406\u9700\u6c42\uff0c\u4ee5\u4e0b\u662f\u5177\u4f53\u914d\u7f6e\u8bf4\u660e\u3002</p> <ul> <li>\u5e94\u7528ID</li> </ul> <p>\u901a\u8fc7APPLICATIOIN_ID\u6765\u5b9a\u4e49\uff0c\u7f3a\u7701\u503c\u4e3adefault\u3002\u5fae\u670d\u52a1\u5728\u53d1\u73b0\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u7f3a\u7701\u53ea\u80fd\u591f\u88ab\u76f8\u540cAPPLICATIOIN_ID\u4e0b\u7684\u6d88\u8d39\u8005\u53d1\u73b0\u3002</p> <ul> <li>Domain\u540d\u79f0</li> </ul> <p>\u901a\u8fc7cse.config.client.domainName\u6765\u5b9a\u4e49\uff0c\u7f3a\u7701\u503c\u4e3adefault\u3002\u4f5c\u4e3a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\uff0c\u7528\u4e8e\u8868\u660e\u81ea\u8eab\u6240\u5c5e\u79df\u6237\u4fe1\u606f\u3002\u5fae\u670d\u52a1\u5728\u53d1\u73b0\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u53ea\u80fd\u88ab\u76f8\u540c\u79df\u6237\u4e0b\u7684\u6d88\u8d39\u8005\u53d1\u73b0\u3002</p> <ul> <li>\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f</li> </ul> <p>\u6570\u636e\u4e2d\u5fc3\u5305\u62ec3\u4e2a\u5c5e\u6027\uff1acse.datacenter.name\uff0c cse.datacenter.region, cse.datacenter.availableZone\u3002\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u4e0d\u63d0\u4f9b\u9694\u79bb\u80fd\u529b\uff0c\u5fae\u670d\u52a1\u53ef\u4ee5\u53d1\u73b0\u5176\u4ed6\u6570\u636e\u4e2d\u5fc3\u7684\u5b9e\u4f8b\u3002\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u542f\u7528\u5b9e\u4f8b\u4eb2\u548c\u6027\uff0c\u6765\u4f18\u5148\u5f80\u6307\u5b9a\u7684\u533a\u57df\u6216\u8005Zone\u53d1\u6d88\u606f\uff1a</p> <pre><code>cse:\n  loadbalance:\n    serverListFilters: zoneaware\n    serverListFilter:\n      zoneaware:\n        className: org.apache.servicecomb.loadbalance.filter.ZoneAwareServerListFilterExt\n</code></pre> <p>\u8fd9\u6837\u914d\u7f6e\u540e\uff0c\u5ba2\u6237\u7aef\u5728\u8def\u7531\u7684\u65f6\u5019\uff0c\u4f1a\u4f18\u5148\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230zone/region\u90fd\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u7136\u540e\u662fregion\u76f8\u540c\uff0c\u4f46zone\u4e0d\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u90fd\u4e0d\u76f8\u540c\u7684\u65f6\u5019\uff0c\u5219\u6309\u7167\u8def\u7531\u89c4\u5219\u9009\u62e9\u4e00\u4e2a\u3002\u4eb2\u548c\u6027\u4e0d\u662f\u903b\u8f91\u9694\u79bb\uff0c\u53ea\u8981\u5b9e\u4f8b\u4e4b\u95f4\u7f51\u7edc\u662f\u8054\u901a\u7684\uff0c\u90a3\u4e48\u90fd\u6709\u53ef\u80fd\u8bbf\u95ee\u5230\uff1b\u5982\u679c\u7f51\u7edc\u4e0d\u901a\uff0c\u5219\u4f1a\u8bbf\u95ee\u5931\u8d25\u3002</p> <ul> <li>\u73af\u5883\u4fe1\u606f</li> </ul> <p>\u5728yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.environment\u6765\u914d\u7f6e\uff0c\u540c\u65f6\u652f\u6301\u901a\u8fc7\u73af\u5883\u53d8\u91cfSERVICECOMB_ENV\u914d\u7f6e\uff0c\u4ec5\u652f\u6301\u4ee5\u4e0b\u679a\u4e3e\u503c development,testing,acceptance,production\uff0c\u7f3a\u7701\u503c\u4e3a\"\"(\u7a7a)\u3002\u5fae\u670d\u52a1\u5728\u53d1\u73b0\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u7f3a\u7701\u53ea\u80fd\u591f\u88ab\u76f8\u540cenvironment\u4e0b\u7684\u6d88\u8d39\u8005\u53d1\u73b0\u3002</p> <pre><code>service_description:\n  environment: production\n</code></pre>"},{"location":"build-provider/definition/isolate-relationship.html#_4","title":"\u4e0e\u534e\u4e3a\u516c\u6709\u4e91\u6982\u5ff5\u7684\u5bf9\u5e94\u5173\u7cfb","text":"<p>\u534e\u4e3a\u516c\u6709\u4e91\u6709\u7c7b\u4f3c\u7684\u6982\u5ff5\uff0c\u5e94\u7528\u3001\u79df\u6237\u3001Project\u3001Cluster\u7b49\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5206\u522b\u5bf9\u5e94\u5230ServiceComb\u7684\u5e94\u7528\u3001\u79df\u6237\u3001Domain\u3001Zone\u7b49\u4fe1\u606f\u3002\u6bd4\u5982\u5728\u516c\u6709\u4e91\u4e0a\u5982\u679cCluster\u5171\u4eabProject\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u901a\u8fc7zone\u6765\u5bf9\u5e94Cluster\uff0c\u5b9e\u73b0\u96c6\u7fa4\u4e4b\u95f4\u7684\u4eb2\u548c\u6027\u8bbf\u95ee\u3002</p>"},{"location":"build-provider/definition/service-definition.html","title":"\u5fae\u670d\u52a1\u5b9a\u4e49","text":"<p>Java Chassis\u5b9a\u4e49\u4e86\u4e00\u7ec4\u57fa\u7840\u7684\u6982\u5ff5\uff0c\u8fd9\u4e9b\u6982\u5ff5\u4f1a\u7528\u4e8e\u5fae\u670d\u52a1\u6ce8\u518c\u53d1\u73b0\u3001\u670d\u52a1\u6cbb\u7406\u7b49\u591a\u79cd\u573a\u666f\u3002\u4e13\u9898\u6587\u7ae0\u5fae\u670d\u52a1\u5b9e\u4f8b\u95f4\u591a\u73af\u5883\u9694\u79bb\u4ecb\u7ecd\u4e86\u4e00\u4e9b\u5e38\u89c1\u5e94\u7528\u573a\u666f\u3002</p> <p>Java Chassis\u6700\u6838\u5fc3\u7684\u51e0\u4e2a\u6982\u5ff5\u5982\u4e0b\u3002</p> <ul> <li>\u73af\u5883\u540d\u79f0\uff1a\u7528\u4e8e\u8868\u793a\u90e8\u7f72\u73af\u5883\uff0c\u4e0d\u540c\u73af\u5883\u7684\u5fae\u670d\u52a1\u4e4b\u95f4\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u73af\u5883\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>namespace</code> \u6765\u8868\u793a\u73af\u5883\u3002</li> <li>\u5e94\u7528\u540d\u79f0\uff1a\u7528\u4e8e\u63cf\u8ff0\u4e00\u7ec4\u53ef\u4ee5\u76f8\u4e92\u8bbf\u95ee\u7684\u5fae\u670d\u52a1\uff0c\u4e0d\u540c\u5e94\u7528\u540d\u79f0\u4e4b\u95f4\u662f\u903b\u8f91\u9694\u79bb\u7684\uff0c\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u5e94\u7528\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>group</code> \u6765\u8868\u793a\u5e94\u7528\u3002 </li> <li>\u5fae\u670d\u52a1\u540d\u79f0\uff1a\u7528\u4e8e\u6807\u8bc6\u4e00\u4e2a\u5fae\u670d\u52a1\u3002\u53ef\u4ee5\u901a\u8fc7\u5fae\u670d\u52a1\u540d\u79f0\u67e5\u8be2\u9700\u8981\u8bbf\u95ee\u7684\u76ee\u6807\u5fae\u670d\u52a1\u3002</li> <li>\u5fae\u670d\u52a1\u7248\u672c\uff1a\u8868\u793a\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u5f53\u5b58\u5728\u5fae\u670d\u52a1\u5c5e\u6027\u53d8\u5316\u3001\u63a5\u53e3\u53d8\u5316\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4fee\u6539\u7248\u672c\u53f7\u3002</li> <li>\u5fae\u670d\u52a1\u63cf\u8ff0\uff1a\u7b80\u5355\u7684\u5fae\u670d\u52a1\u63cf\u8ff0\u4fe1\u606f\u3002</li> <li>\u5fae\u670d\u52a1\u5c5e\u6027\uff1a\u7528\u4e8e\u63cf\u8ff0\u5fae\u670d\u52a1\u7684\u6269\u5c55\u4fe1\u606f\u3002</li> </ul> <p>\u5f00\u53d1\u4e00\u4e2a\u5fae\u670d\u52a1\uff0c\u9700\u8981\u5728 <code>application.yaml</code> \u6587\u4ef6\u4e2d\u914d\u7f6e\u5fae\u670d\u52a1\u7684\u57fa\u672c\u4fe1\u606f\u3002</p> <pre><code>servicecomb:\n  service:\n    application: helloTest\n    name: helloServer \n    version: 0.0.1 \n    properties: \n      key1: value1\n      key2: value2\n    description: This is a description about the microservice\n</code></pre>"},{"location":"build-provider/definition/service-definition.html#_2","title":"\u914d\u7f6e\u9879\u53c2\u8003","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.service.environment - \u5426 \u73af\u5883\u540d\u79f0\uff0c\u6bd4\u5982 development, production \u7b49 servicecomb.service.application default \u662f \u5e94\u7528\u540d\u79f0 servicecomb.service.name defaultMicroservice \u662f \u5fae\u670d\u52a1\u540d\u79f0, \u5e94\u786e\u4fdd\u5e94\u7528\u5185\u90e8\u552f\u4e00\u3002\u5fae\u670d\u52a1\u540d\u652f\u6301\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u548c\"-\"\u3001\"_\"\u3001\".\"\u4e09\u4e2a\u7279\u6b8a\u5b57\u7b26\uff0c\u4f46\u662f\u4e0d\u80fd\u4ee5\u7279\u6b8a\u5b57\u7b26\u4f5c\u4e3a\u9996\u5c3e\u5b57\u7b26\uff0c\u547d\u540d\u89c4\u8303\u4e3a\uff1a^[a-zA-Z0-9]+$|^[a-zA-Z0-9][a-zA-Z0-9_-.]*[a-zA-Z0-9]$\u3002 servicecomb.service.version 1.0.0.0 \u662f \u5fae\u670d\u52a1\u7248\u672c servicecomb.service.description - \u5426 \u5fae\u670d\u52a1\u63cf\u8ff0 servicecomb.service.properties - \u5426 \u5fae\u670d\u52a1\u5c5e\u6027 <p>\u8bf4\u660e\uff1a</p> <ul> <li>\u5fae\u670d\u52a1\u5c5e\u6027\u4f1a\u968f\u670d\u52a1\u4e00\u540c\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002\u5982\u679c\u5b58\u5728\u53d8\u66f4\uff0c\u5efa\u8bae\u540c\u65f6\u4fee\u6539\u5fae\u670d\u52a1\u7248\u672c\u53f7\u3002</li> <li>\u867d\u7136\u5fae\u670d\u52a1\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528 <code>.</code> \u5b57\u7b26\uff0c\u4f46\u662f\u4e0d\u63a8\u8350\u5728\u547d\u540d\u4e2d\u4f7f\u7528 <code>.</code> \u3002\u8fd9\u662f\u7531\u4e8eyaml\u683c\u5f0f\u7684\u914d\u7f6e\u6587\u4ef6\u5c06 <code>.</code> \u7b26\u53f7\u7528\u4e8e\u5206\u5272\u914d\u7f6e\u9879\u540d\u79f0\uff0c      \u5982\u679c\u5fae\u670d\u52a1\u540d\u79f0\u5305\u542b\u4e86 <code>.</code> \u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u652f\u6301\u5fae\u670d\u52a1\u3001\u5951\u7ea6\u7ea7\u522b\u7684\u914d\u7f6e\u65e0\u6cd5\u6b63\u786e\u88ab\u8bc6\u522b\u3002</li> </ul>"},{"location":"catalog/build-consumer.html","title":"Build consumer","text":""},{"location":"catalog/build-consumer.html#resttemplate","title":"\u4f7f\u7528RestTemplate\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":"<p>RestTemplate\u662fSpring\u63d0\u4f9b\u7684RESTful\u8bbf\u95ee\u63a5\u53e3\uff0cServiceComb\u63d0\u4f9b\u8be5\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\u7528\u4e8e\u670d\u52a1\u7684\u8c03\u7528\u3002</p>"},{"location":"catalog/build-consumer.html#asyncresttemplate","title":"\u4f7f\u7528AsyncRestTemplate\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":"<p>AsyncRestTemplate \u5f00\u53d1\u65b9\u5f0f\u5141\u8bb8\u7528\u6237\u5f02\u6b65\u7684\u8fdb\u884c\u670d\u52a1\u8c03\u7528\u3002\u5177\u4f53\u7684\u4e1a\u52a1\u6d41\u7a0b\u548c RestTemplate \u7c7b\u4f3c\uff0c\u53ea\u662f\u8fd9\u91cc\u4ee5\u5f02\u6b65\u7684\u5f62\u5f0f\u8fdb\u884c\u670d\u52a1\u7684\u8c03\u7528\u3002</p>"},{"location":"catalog/build-consumer.html#rpc","title":"\u4f7f\u7528\u900f\u660eRPC\u65b9\u5f0f\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684java interface\u50cf\u672c\u5730\u8c03\u7528\u4e00\u6837\u8fdb\u884c\u670d\u52a1\u8c03\u7528\u3002</p>"},{"location":"catalog/build-consumer.html#_1","title":"\u4f7f\u7528\u670d\u52a1\u5951\u7ea6","text":"<p>\u5f53\u670d\u52a1\u6d88\u8d39\u8005\u8c03\u7528\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u65f6\uff0c\u9700\u8981\u83b7\u53d6\u670d\u52a1\u5951\u7ea6\u3002\u6d88\u8d39\u8005\u6709\u4e24\u79cd\u65b9\u5f0f\u83b7\u53d6\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u5951\u7ea6\uff0c\u4e00\u79cd\u662f\u4ece\u670d\u52a1\u7684\u63d0\u4f9b\u65b9\u79bb\u7ebf\u83b7\u53d6\u5951\u7ea6\u6587\u4ef6\uff0c\u624b\u5de5\u914d\u7f6e\u5230\u9879\u76ee\u4e2d\uff1b\u53e6\u4e00\u79cd\u662f\u4ece\u670d\u52a1\u4e2d\u5fc3\u81ea\u52a8\u4e0b\u8f7d\u5951\u7ea6\u3002</p>"},{"location":"catalog/build-consumer.html#_2","title":"\u8c03\u7528\u63a7\u5236","text":""},{"location":"catalog/build-consumer.html#_3","title":"\u5b9e\u4f8b\u7ea7\u6545\u969c\u9694\u79bb","text":"<p>\u5b9e\u4f8b\u7ea7\u6545\u969c\u9694\u79bb\u529f\u80fd\u5141\u8bb8\u5728\u5fae\u670d\u52a1\u7684\u90e8\u5206\u5b9e\u4f8b\u8c03\u7528\u5931\u8d25\u65f6\uff0c\u505c\u6b62\u5411\u6545\u969c\u5b9e\u4f8b\u53d1\u9001\u8bf7\u6c42\uff0c\u4ece\u800c\u8fbe\u5230\u9694\u79bb\u6545\u969c\u5b9e\u4f8b\u7684\u529f\u80fd\u3002</p>"},{"location":"catalog/build-consumer.html#_4","title":"\u7194\u65ad\u7b56\u7565","text":"<p>\u7194\u65ad\u7b56\u7565\u662f\u5bf9ServiceComb\u7194\u65ad\u529f\u80fd\u7684\u8bbe\u7f6e\uff0c\u7528\u6237\u901a\u8fc7\u914d\u7f6e\u7194\u65ad\u7b56\u7565\u53ef\u4ee5\u6307\u5b9a\u5728\u4f55\u79cd\u6761\u4ef6\u4e0bServiceComb\u6846\u67b6\u5c06\u7ec8\u6b62\u53d1\u9001\u8bf7\u6c42\u3002</p>"},{"location":"catalog/build-consumer.html#_5","title":"\u9650\u6d41\u7b56\u7565","text":"<p>\u7528\u6237\u5728consumer\u7aef\u4f7f\u7528\u9650\u6d41\u7b56\u7565\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u7684\u9891\u7387\u3002</p>"},{"location":"catalog/build-consumer.html#_6","title":"\u6545\u969c\u6ce8\u5165","text":"<p>\u7528\u6237\u5728consumer\u7aef\u4f7f\u7528\u6545\u969c\u6ce8\u5165\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u53d1\u5f80\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u7684\u65f6\u5ef6\u548c\u9519\u8bef\u53ca\u5176\u89e6\u53d1\u6982\u7387\u3002</p>"},{"location":"catalog/build-provider.html","title":"Build provider","text":""},{"location":"catalog/build-provider.html#_1","title":"\u670d\u52a1\u5b9a\u4e49","text":"<p>\u2022 \u670d\u52a1\u5b9a\u4e49\u4fe1\u606f\u662f\u5fae\u670d\u52a1\u7684\u8eab\u4efd\u6807\u8bc6\uff0c\u5b83\u5b9a\u4e49\u4e86\u670d\u52a1\u4ece\u5c5e\u4e8e\u54ea\u4e2a\u5e94\u7528\uff0c\u4ee5\u53ca\u540d\u5b57\u548c\u7248\u672c\u3002\u670d\u52a1\u5b9a\u4e49\u4fe1\u606f\u4e2d\u4e5f\u53ef\u4ee5\u6709\u6269\u5c55\u4fe1\u606f\uff0c\u7528\u4e8e\u5b9a\u4e49\u670d\u52a1\u7684\u5c5e\u6027\u5143\u6570\u636e\u3002</p>"},{"location":"catalog/build-provider.html#_2","title":"\u5b9a\u4e49\u670d\u52a1\u5951\u7ea6","text":"<p>\u2022 \u670d\u52a1\u5951\u7ea6\uff0c\u6307\u57fa\u4e8eOpenAPI\u89c4\u8303\u7684\u5fae\u670d\u52a1\u63a5\u53e3\u5951\u7ea6\uff0c\u662f\u670d\u52a1\u7aef\u4e0e\u6d88\u8d39\u7aef\u5bf9\u4e8e\u63a5\u53e3\u7684\u5b9a\u4e49\u3002java chassis\u63d0\u4f9b\u4e86\u4e24\u79cd\u65b9\u5f0f\u5b9a\u4e49\u5951\u7ea6\uff1acode first\u548ccontract first\u3002</p>"},{"location":"catalog/build-provider.html#_3","title":"\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6","text":"<p>\u2022 \u964d\u7ea7\u7b56\u7565\u662f\u5f53\u670d\u52a1\u8bf7\u6c42\u5f02\u5e38\u65f6\uff0c\u5fae\u670d\u52a1\u6240\u91c7\u7528\u7684\u5f02\u5e38\u5904\u7406\u7b56\u7565\u3002</p>"},{"location":"catalog/build-provider.html#swagger","title":"\u4f7f\u7528 Swagger \u6ce8\u89e3","text":"<p>\u2022 Swagger\u63d0\u4f9b\u4e86\u4e00\u5957\u6ce8\u89e3\u7528\u4e8e\u63cf\u8ff0\u63a5\u53e3\u5951\u7ea6\uff0c\u7528\u6237\u4f7f\u7528\u6ce8\u89e3\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u589e\u52a0\u5bf9\u4e8e\u5951\u7ea6\u7684\u63cf\u8ff0\u4fe1\u606f\u3002ServiceComb\u652f\u6301\u5176\u4e2d\u7684\u90e8\u5206\u6ce8\u89e3\u3002</p>"},{"location":"catalog/build-provider.html#springmvc","title":"\u7528SpringMVC \u5f00\u53d1\u5fae\u670d\u52a1","text":"<p>\u2022 ServiceComb\u652f\u6301SpringMVC\u6ce8\u89e3\uff0c\u5141\u8bb8\u4f7f\u7528SpringMVC\u98ce\u683c\u5f00\u53d1\u5fae\u670d\u52a1\u3002\u5efa\u8bae\u53c2\u7167\u7740\u9879\u76ee SpringMVC\u8fdb\u884c\u8be6\u7ec6\u9605\u8bfb\u3002</p>"},{"location":"catalog/build-provider.html#jax-rs","title":"\u7528JAX-RS\u5f00\u53d1\u5fae\u670d\u52a1","text":"<p>\u2022 ServiceComb\u652f\u6301\u5f00\u53d1\u8005\u4f7f\u7528JAX-RS\u6ce8\u89e3\uff0c\u4f7f\u7528JAX-RS\u6a21\u5f0f\u5f00\u53d1\u670d\u52a1\u3002</p>"},{"location":"catalog/build-provider.html#rpc","title":"\u7528\u900f\u660eRPC\u5f00\u53d1\u5fae\u670d\u52a1","text":"<p>\u2022 \u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u662f\u4e00\u79cd\u57fa\u4e8e\u63a5\u53e3\u548c\u63a5\u53e3\u5b9e\u73b0\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u670d\u52a1\u7684\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u4f7f\u7528Spring MVC\u548cJAX-RS\u6ce8\u89e3\u3002</p>"},{"location":"catalog/build-provider.html#_4","title":"\u63a5\u53e3\u5b9a\u4e49\u548c\u6570\u636e\u7c7b\u578b","text":"<p>\u2022 ServiceComb-Java-Chassis\u5efa\u8bae\u63a5\u53e3\u5b9a\u4e49\u9075\u5faa\u4e00\u4e2a\u7b80\u5355\u7684\u539f\u5219\uff1a\u63a5\u53e3\u5b9a\u4e49\u5373\u63a5\u53e3\u4f7f\u7528\u8bf4\u660e\uff0c\u4e0d\u7528\u901a\u8fc7\u67e5\u770b\u4ee3\u7801\u5b9e\u73b0\uff0c\u5c31\u80fd\u8bc6\u522b\u5982\u4f55\u8c03\u7528\u8fd9\u4e2a\u63a5\u53e3\u3002\u53ef\u4ee5\u770b\u51fa\uff0c\u8fd9\u4e2a\u539f\u5219\u7ad9\u5728\u4f7f\u7528\u8005\u8fd9\u8fb9\uff0c\u4ee5\u66f4\u5bb9\u6613\u88ab\u4f7f\u7528\u4f5c\u4e3a\u53c2\u8003\u3002ServiceComb\u4f1a\u6839\u636e\u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u63a5\u53e3\u5951\u7ea6\uff0c\u7b26\u5408\u8fd9\u4e2a\u539f\u5219\u7684\u63a5\u53e3\uff0c\u751f\u6210\u7684\u5951\u7ea6\u4e5f\u662f\u7528\u6237\u5bb9\u6613\u9605\u8bfb\u7684\u3002</p>"},{"location":"catalog/build-provider.html#_5","title":"\u670d\u52a1\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740","text":"<p>\u2022\u5728JavaChassis\u4e2d\uff0c\u670d\u52a1\u7684\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740\u662f\u4e24\u4e2a\u72ec\u7acb\u7684\u6982\u5ff5\uff0c\u53ef\u4ee5\u72ec\u7acb\u914d\u7f6e\uff1a</p> <pre><code>\u76d1\u542c\u5730\u5740\uff1a\u6307\u5fae\u670d\u52a1\u5b9e\u4f8b\u542f\u52a8\u65f6\u76d1\u542c\u7684\u5730\u5740\u3002\u8be5\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u53ef\u4ee5\u901a\u8fc7\u54ea\u4e9bIP\u8bbf\u95ee\u6b64\u670d\u52a1\u3002\n\u53d1\u5e03\u5730\u5740\uff1a\u6307\u5fae\u670d\u52a1\u5b9e\u4f8b\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4ed6\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u4f1a\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u6b64\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u6839\u636e\u53d1\u5e03\u5730\u5740\u8bbf\u95ee\u6b64\u670d\u52a1\u5b9e\u4f8b\uff0c\u6240\u4ee5\u8be5\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u5176\u4ed6\u670d\u52a1\u5b9e\u9645\u4e0a\u4f1a\u4f7f\u7528\u54ea\u4e2aIP\u8bbf\u95ee\u6b64\u670d\u52a1\u3002\n</code></pre>"},{"location":"catalog/build-provider.html#_6","title":"\u670d\u52a1\u914d\u7f6e","text":"<p>\u2022 \u8d1f\u8f7d\u5747\u8861\u7b56\u7565 \u2022 \u9650\u6d41\u7b56\u7565 \u2022 \u53c2\u6570\u6559\u7814 </p>"},{"location":"catalog/config.html","title":"Config","text":""},{"location":"catalog/config.html#_1","title":"\u901a\u7528\u914d\u7f6e\u8bf4\u660e","text":"<p>\u8bf4\u660eServiceComb-Java-Chassis\u7684\u914d\u7f6e\u9879\u5c42\u7ea7\u5173\u7cfb\u3001\u914d\u7f6e\u8bfb\u53d6\u65b9\u6cd5\u3002</p>"},{"location":"catalog/general-develop.html","title":"General develop","text":""},{"location":"catalog/general-develop.html#_1","title":"\u8bbf\u95ee\u670d\u52a1\u4e2d\u5fc3","text":"<p>\u7cfb\u7edf\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u5b9e\u73b0\u670d\u52a1\u4e4b\u95f4\u7684\u53d1\u73b0\u3002\u670d\u52a1\u542f\u52a8\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5411\u670d\u52a1\u4e2d\u5fc3\u8fdb\u884c\u6ce8\u518c\u3002\u5728\u8c03\u7528\u5176\u4ed6\u670d\u52a1\u7684\u65f6\u5019\uff0c\u4f1a\u4ece\u670d\u52a1\u4e2d\u5fc3\u67e5\u8be2\u5176\u4ed6\u670d\u52a1\u7684\u5b9e\u4f8b\u4fe1\u606f\uff0c\u6bd4\u5982\u8bbf\u95ee\u5730\u5740\u3001\u4f7f\u7528\u7684\u534f\u8bae\u4ee5\u53ca\u5176\u4ed6\u53c2\u6570\u3002\u670d\u52a1\u4e2d\u5fc3\u652f\u6301\u4f7f\u7528PULL\u548cPUSH\u4e24\u79cd\u6a21\u5f0f\u901a\u77e5\u5b9e\u4f8b\u53d8\u5316\u3002</p>"},{"location":"catalog/general-develop.html#_2","title":"\u5e94\u7528\u6027\u80fd\u76d1\u63a7","text":"<p>\u4e00\u3001Metrics\u4ecb\u7ecd  \u4e8c\u3001\u7edf\u8ba1\u9879\u6c47\u603b  \u4e09\u3001\u4f7f\u7528\u65b9\u6cd5  </p>"},{"location":"catalog/general-develop.html#_3","title":"\u5fae\u670d\u52a1\u8c03\u7528\u94fe","text":"<p>\u5fae\u670d\u52a1\u67b6\u6784\u89e3\u51b3\u4e86\u5f88\u591a\u5355\u4f53\u5e94\u7528\u5e26\u6765\u7684\u95ee\u9898\uff0c\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6211\u4eec\u4ed8\u51fa\u989d\u5916\u7684\u4ee3\u4ef7\u3002\u7531\u4e8e\u7f51\u7edc\u7684\u4e0d\u7a33\u5b9a\u6027\u5e26\u6765\u7684\u8bf7\u6c42\u5904\u7406\u5ef6\u8fdf\u5c31\u662f\u4ee3\u4ef7\u4e4b\u4e00\u3002  </p> <p>\u5728\u5355\u4f53\u5e94\u7528\u4e2d\uff0c\u6240\u6709\u6a21\u5757\u90fd\u5728\u540c\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u8fd0\u884c\uff0c\u6240\u4ee5\u5e76\u6ca1\u6709\u6a21\u5757\u95f4\u4e92\u901a\u7684\u95ee\u9898\u3002\u4f46\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u670d\u52a1\u95f4\u901a\u8fc7\u7f51\u7edc\u6c9f\u901a\uff0c\u56e0\u6b64\u6211\u4eec\u4e0d\u5f97\u4e0d\u5904\u7406\u548c\u7f51\u7edc\u6709\u5173\u7684 \u95ee\u9898\uff0c\u4f8b\u5982\uff1a\u5ef6\u8fdf\u3001\u8d85\u65f6\u3001\u7f51\u7edc\u5206\u533a\u7b49\u3002  </p> <p>\u53e6\u5916\uff0c\u968f\u7740\u4e1a\u52a1\u7684\u6269\u5c55\u670d\u52a1\u589e\u591a\uff0c\u6211\u4eec\u5f88\u96be\u6d1e\u5bdf\u6570\u636e\u5982\u4f55\u5728\u86db\u7f51\u822c\u590d\u6742\u7684\u670d\u52a1\u7ed3\u6784\u4e2d\u6d41\u8f6c\u3002\u6211\u4eec\u5982\u4f55\u624d\u80fd\u6709\u6548\u7684\u76d1\u63a7\u7f51\u7edc\u5ef6\u8fdf\u5e76\u4e14\u53ef\u89c6\u5316\u670d\u52a1\u4e2d\u7684\u6570\u636e\u6d41\u8f6c\u5462\uff1f  </p> <p>\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7528\u4e8e\u6709\u6548\u5730\u76d1\u63a7\u5fae\u670d\u52a1\u7684\u7f51\u7edc\u5ef6\u65f6\u5e76\u53ef\u89c6\u5316\u5fae\u670d\u52a1\u4e2d\u7684\u6570\u636e\u6d41\u8f6c\u3002  </p>"},{"location":"catalog/general-develop.html#_4","title":"\u81ea\u5b9a\u4e49\u8c03\u7528\u94fe\u6253\u70b9","text":"<p>\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u63d0\u4f9b\u4e86\u670d\u52a1\u95f4\u8c03\u7528\u7684\u65f6\u5e8f\u4fe1\u606f\uff0c\u4f46\u670d\u52a1\u5185\u90e8\u7684\u94fe\u8def\u8c03\u7528\u4fe1\u606f\u5bf9\u5f00\u53d1\u8005\u540c\u6837\u91cd\u8981\uff0c\u5982\u679c\u80fd\u5c06\u4e24\u8005\u5408\u4e8c\u4e3a\u4e00\uff0c\u5c31\u80fd\u63d0\u4f9b\u66f4\u5b8c\u6574\u7684\u8c03\u7528\u94fe\uff0c\u66f4\u5bb9\u6613\u5b9a\u4f4d\u9519\u8bef\u548c\u6f5c\u5728\u6027\u80fd\u95ee\u9898\u3002</p>"},{"location":"catalog/general-develop.html#_5","title":"\u672c\u5730\u5f00\u53d1\u548c\u6d4b\u8bd5","text":"<p>\u672c\u5c0f\u8282\u4ecb\u7ecd\u5982\u4f55\u5728\u5f00\u53d1\u8005\u672c\u5730\u8fdb\u884c\u6d88\u8d39\u8005/\u63d0\u4f9b\u8005\u5e94\u7528\u7684\u5f00\u53d1\u8c03\u8bd5\u3002\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\u8bf7\u53c2\u80033 \u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\u7ae0\u8282\uff0c\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u8bf7\u53c2\u80034 \u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u63d0\u4f9b\u8005\u5747\u9700\u8981\u8fde\u63a5\u5230\u5728\u8fdc\u7a0b\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u4e3a\u4e86\u672c\u5730\u5fae\u670d\u52a1\u7684\u5f00\u53d1\u548c\u8c03\u8bd5\uff0c\u672c\u5c0f\u8282\u4ecb\u7ecd\u4e86\u4e24\u79cd\u642d\u5efa\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u7684\u65b9\u6cd5\u8fdb\u884c\u672c\u5730\u5fae\u670d\u52a1\u8c03\u8bd5\uff1a  </p>"},{"location":"catalog/general-develop.html#http-filter","title":"Http Filter","text":"<p>\u67d0\u4e9b\u573a\u666f\u4e2d\uff0c\u4e1a\u52a1\u4f7f\u7528http\u800c\u4e0d\u662fhttps\uff0c\u4f5c\u4e3a\u7f51\u7edc\u4f20\u8f93\u901a\u9053\uff0c\u6b64\u65f6\u4e3a\u4e86\u9632\u6b62\u88ab\u4f2a\u9020\u6216\u7be1\u6539\u8bf7\u6c42\uff0c\u9700\u8981\u63d0\u4f9bconsumer\u3001producer\u4e4b\u95f4\u5bf9http\u7801\u6d41\u7684\u7b7e\u540d\u529f\u80fd\u3002</p>"},{"location":"catalog/general-develop.html#_6","title":"\u6587\u4ef6\u4e0a\u4f20","text":"<p>\u6587\u4ef6\u4e0a\u4f20\uff0c\u5f53\u524d\u652f\u6301\u5728vertx rest\u901a\u9053\u548cservlet rest\u4e2d\u4f7f\u7528\u3002 \u6587\u4ef6\u4e0a\u4f20\u4f7f\u7528\u6807\u51c6\u7684http form\u683c\u5f0f\uff0c\u53ef\u4e0e\u6d4f\u89c8\u5668\u7684\u4e0a\u4f20\u76f4\u63a5\u5bf9\u63a5\u3002  </p>"},{"location":"catalog/general-develop.html#_7","title":"\u6587\u4ef6\u4e0b\u8f7d","text":"<p>\u6587\u4ef6\u4e0b\u8f7d\uff0c\u5f53\u524d\u5728vertx rest\u901a\u9053\u548cservlet rest\u4e2d\u53ef\u7528\u3002</p>"},{"location":"catalog/general-develop.html#reactive","title":"Reactive","text":"<p>\u7b80\u5355\u540c\u6b65\u6a21\u5f0f\u3001\u5d4c\u5957\u540c\u6b65\u8c03\u7528\u3001\u7eafReactive\u673a\u5236\u3001\u6df7\u5408Reactive\u673a\u5236\u4e4b\u95f4\u7684\u5bf9\u6bd4\u53ca\u8bf4\u660e\u3002</p>"},{"location":"catalog/general-develop.html#dns","title":"DNS\u81ea\u5b9a\u4e49\u914d\u7f6e","text":"<p>\u7528\u6237\u4f7f\u7528\u57df\u540d\u8fde\u63a5\u534e\u4e3a\u516c\u6709\u4e91\u6216\u8005\u4e09\u65b9\u7cfb\u7edf\u65f6\uff0c\u9700\u8981\u4f7f\u7528\u5230\u57df\u540d\u89e3\u6790\u7cfb\u7edf\u3002\u5728\u4e0d\u540c\u7684\u7cfb\u7edf\u3001\u4e0d\u540c\u7684\u6846\u67b6\u4f7f\u7528\u7684\u57df\u540d\u89e3\u6790\u673a\u5236\u90fd\u53ef\u80fd\u4e0d\u592a\u4e00\u6837\u3002\u6240\u4ee5\u6211\u4eec\u6709\u5fc5\u8981\u63d0\u4f9b\u4e00\u4e2a\u7edf\u4e00\u7684\u914d\u7f6e\u5165\u53e3\uff0c\u4ee5\u4fbf\u5f00\u53d1\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u81ea\u5b9a\u4e49DNS\u89e3\u6790\u673a\u5236\uff0c\u800c\u4e0d\u5b8c\u5168\u53d7\u5236\u4e8e\u7cfb\u7edf\u914d\u7f6e\u3002  </p>"},{"location":"catalog/general-develop.html#_8","title":"\u4ee3\u7406\u8bbe\u7f6e","text":"<p>\u4f5c\u4e3a\u4e00\u540d\u5f00\u53d1\u8005\uff0c\u5728\u516c\u53f8\u5f00\u53d1\u73af\u5883\uff0c\u53ef\u80fd\u662f\u901a\u8fc7\u516c\u53f8\u4ee3\u7406\u7f51\u7edc\u63a5\u5165\u5230\u56e0\u7279\u7f51\u3002\u5982\u679c\u8c03\u8bd5\u670d\u52a1\u65f6\u8fd8\u5fc5\u987b\u4f9d\u8d56\u7f51\u4e0a\u8d44\u6e90\uff0c\u6bd4\u5982\u76f4\u63a5\u8fde\u63a5\u534e\u4e3a\u5171\u6709\u4e91\u670d\u52a1\u4e2d\u5fc3\uff0c\u90a3\u4e48\u5c31\u5fc5\u987b\u914d\u7f6e\u4ee3\u7406\u3002</p>"},{"location":"catalog/general-develop.html#_9","title":"\u6846\u67b6\u4e0a\u62a5\u7248\u672c\u53f7","text":"<p>\u4e3a\u65b9\u4fbf\u6cbb\u7406\uff0c\u4f7f\u7528ServiceComb\u8fdb\u884c\u5f00\u53d1\uff0c\u4f1a\u5c06\u5f53\u524d\u4f7f\u7528\u7684ServiceComb\u7248\u672c\u53f7\u4e0a\u62a5\u81f3\u670d\u52a1\u4e2d\u5fc3\uff0c\u5e76\u4e14\u652f\u6301\u5176\u4ed6\u6846\u67b6\u96c6\u6210ServiceComb\u65f6\u4e0a\u62a5\u5176\u4ed6\u6846\u67b6\u7684\u7248\u672c\u53f7\u3002</p>"},{"location":"catalog/general-develop.html#_10","title":"\u8de8\u5e94\u7528\u8c03\u7528","text":"<p>\u5e94\u7528\u662f\u5fae\u670d\u52a1\u5b9e\u4f8b\u9694\u79bb\u5c42\u6b21\u4e2d\u7684\u4e00\u5c42\uff0c\u4e00\u4e2a\u5e94\u7528\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u5141\u8bb8\u540c\u5e94\u7528\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u76f8\u4e92\u8c03\u7528\u3002</p>"},{"location":"catalog/general-develop.html#_11","title":"\u5b9a\u5236\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5","text":"<p>\u7531\u4e8eHTTP\u534f\u8bae\u7684\u975e\u5b89\u5168\u6027\uff0c\u5728\u7f51\u7edc\u4e2d\u4f20\u8f93\u7684\u6570\u636e\u80fd\u8f7b\u6613\u88ab\u5404\u79cd\u6293\u5305\u5de5\u5177\u76d1\u542c\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u4e1a\u52a1\u5bf9\u5e94\u7528\u6216\u670d\u52a1\u95f4\u4f20\u8f93\u7684\u654f\u611f\u6570\u636e\u6709\u8f83\u9ad8\u7684\u5b89\u5168\u8981\u6c42\uff0c\u8fd9\u7c7b\u6570\u636e\u9700\u8981\u7279\u522b\u7684\u52a0\u5bc6\u4fdd\u62a4\uff08\u4e1a\u52a1\u4e0d\u540c\u5bf9\u7b97\u6cd5\u8981\u6c42\u4e0d\u540c\uff09\uff0c\u8fd9\u6837\u5373\u4f7f\u5185\u5bb9\u88ab\u622a\u83b7\uff0c\u4e5f\u53ef\u4ee5\u4fdd\u62a4\u5176\u4e2d\u7684\u654f\u611f\u6570\u636e\u4e0d\u88ab\u8f7b\u6613\u83b7\u53d6\u3002</p>"},{"location":"catalog/general-develop.html#context","title":"\u4f7f\u7528Context\u4f20\u9012\u63a7\u5236\u6d88\u606f","text":"<p>ServiceComb\u63d0\u4f9b\u4e86Context\u5728\u5fae\u670d\u52a1\u4e4b\u95f4\u4f20\u9012\u6570\u636e\u3002Context\u662fkey/value\u5bf9\uff0c\u53ea\u80fd\u591f\u4f7f\u7528String\u7c7b\u578b\u7684\u6570\u636e\u3002\u7531\u4e8eContext\u4f1a\u5e8f\u5217\u5316\u4e3ajson\u683c\u5f0f\u5e76\u901a\u8fc7HTTP Header\u4f20\u9012\uff0c\u56e0\u6b64\u4e5f\u4e0d\u652f\u6301ASCII\u4e4b\u5916\u7684\u5b57\u7b26\uff0c\u5176\u4ed6\u5b57\u7b26\u9700\u8981\u5f00\u53d1\u8005\u5148\u81ea\u884c\u7f16\u7801\u518d\u4f20\u9012\u3002Context\u5728\u4e00\u6b21\u8bf7\u6c42\u4e2d\uff0c\u4f1a\u5728\u8bf7\u6c42\u94fe\u4e0a\u4f20\u9012\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u8bbe\u7f6e\u3002access log\u7684trace id\u7b49\u529f\u80fd\u90fd\u57fa\u4e8e\u8fd9\u4e2a\u7279\u6027\u5b9e\u73b0\u7684\u3002</p>"},{"location":"catalog/general-develop.html#_12","title":"\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u6269\u5c55","text":"<p>\u5f53\u524dREST\u901a\u9053\u8fd4\u56de\u503c\u652f\u6301application/json\u548ctext/plain\u4e24\u79cd\u683c\u5f0f\uff0c\u652f\u6301\u5f00\u53d1\u4eba\u5458\u6269\u5c55\u548c\u91cd\u5199\uff0c\u670d\u52a1\u63d0\u4f9b\u8005\u901a\u8fc7produces\u58f0\u660e\u53ef\u63d0\u4f9b\u5e8f\u5217\u5316\u80fd\u529b\uff0c\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7\u8bf7\u6c42\u7684Accept\u5934\u6307\u660e\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u8fd4\u56deapplication/json\u683c\u5f0f\u7684\u6570\u636e\u3002</p>"},{"location":"catalog/general-develop.html#cors","title":"CORS\u673a\u5236","text":"<p>\u8de8\u57df\u8d44\u6e90\u5171\u4eab(CORS, Cross-Origin Resource Sharing)\u5141\u8bb8Web\u670d\u52a1\u5668\u8fdb\u884c\u8de8\u57df\u8bbf\u95ee\u63a7\u5236\uff0c\u4f7f\u6d4f\u89c8\u5668\u53ef\u4ee5\u66f4\u5b89\u5168\u5730\u8fdb\u884c\u8de8\u57df\u6570\u636e\u4f20\u8f93\u3002</p>"},{"location":"catalog/general-develop.html#_13","title":"\u83b7\u53d6\u7194\u65ad\u4e0e\u5b9e\u4f8b\u9694\u79bb\u544a\u8b66\u4e8b\u4ef6\u4fe1\u606f","text":"<p>\u5728\u5fae\u670d\u52a1\u8fd0\u884c\u671f\u95f4\u7194\u65ad\u6216\u5b9e\u4f8b\u9694\u79bb\u72b6\u6001\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u9700\u8981\u76d1\u542c\u5230\u76f8\u5173\u4e8b\u4ef6\uff0c\u83b7\u53d6\u76f8\u5173\u4fe1\u606f\u5e76\u8fdb\u884c\u5904\u7406</p>"},{"location":"catalog/security.html","title":"Security","text":""},{"location":"catalog/security.html#tls","title":"\u4f7f\u7528TLS\u901a\u4fe1","text":"<p>\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u542f\u7528TLS\u901a\u4fe1\uff0c\u4ee5\u4fdd\u969c\u6570\u636e\u7684\u4f20\u8f93\u5b89\u5168\u3002  </p>"},{"location":"catalog/security.html#rsa","title":"\u4f7f\u7528RSA\u8ba4\u8bc1","text":"<p>\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u542f\u7528\u670d\u52a1\u95f4RSA\u8ba4\u8bc1\uff0c\u4ee5\u4fdd\u969c\u670d\u52a1\u63a5\u53e3\u7684\u5b89\u5168\u6027\u3002\u8be6\u7ec6\u4ecb\u7ecd\u53c2\u8003\u516c\u94a5\u8ba4\u8bc1  </p>"},{"location":"catalog/service-package-run.html","title":"Service package run","text":""},{"location":"catalog/service-package-run.html#standalone","title":"\u4ee5standalone\u6a21\u5f0f\u6253\u5305","text":"<p>\u4e00\u4e2aStandalone\u7684\u5bb9\u5668\uff0c\u4ee5\u7b80\u5355\u7684Main\u52a0\u8f7dSpring\u542f\u52a8\uff0c\u56e0\u4e3a\u670d\u52a1\u901a\u5e38\u4e0d\u9700\u8981Tomcat/JBoss\u7b49Web\u5bb9\u5668\u7684\u7279\u6027\uff0c\u6ca1\u5fc5\u8981\u7528Web\u5bb9\u5668\u53bb\u52a0\u8f7d\u670d\u52a1\u3002\u5fae\u6846\u67b6\u63d0\u4f9b\u4e86standalone\u90e8\u7f72\u8fd0\u884c\u6a21\u5f0f\uff0c\u670d\u52a1\u5bb9\u5668\u53ea\u662f\u4e00\u4e2a\u7b80\u5355\u7684Main\u65b9\u6cd5\uff0c\u5e76\u52a0\u8f7d\u4e00\u4e2a\u7b80\u5355\u7684Spring\u5bb9\u5668\uff0c\u7528\u4e8e\u66b4\u9732\u670d\u52a1\u3002</p>"},{"location":"catalog/service-package-run.html#web","title":"\u4ee5WEB\u5bb9\u5668\u6a21\u5f0f\u6253\u5305","text":"<p>\u5982\u679c\u9700\u8981\u5c06\u8be5\u5fae\u670d\u52a1\u52a0\u8f7d\u5230web\u5bb9\u5668\u4e2d\u542f\u52a8\u8fd0\u884c\u65f6\uff0c\u9700\u8981\u65b0\u5efa\u4e00\u4e2aservlet\u5de5\u7a0b\u5305\u88c5\u4e00\u4e0b\uff0c\u8be5servlet\u5de5\u7a0b\uff0c\u6839\u636e\u9700\u8981\uff0c\u53ef\u4ee5\u4e0d\u5199\u6216\u5199\u5c11\u91cf\u7684\u5f15\u5bfc\u4ee3\u7801\u5373\u53ef\u3002</p>"},{"location":"catalog/start.html","title":"Start","text":""},{"location":"catalog/start.html#_1","title":"\u672f\u8bed\u8868","text":""},{"location":"catalog/start.html#_2","title":"\u5fae\u670d\u52a1\u7cfb\u7edf\u67b6\u6784","text":""},{"location":"catalog/start.html#_3","title":"\u5b89\u88c5\u672c\u5730\u5f00\u53d1\u73af\u5883","text":"<p>\u2022 \u670d\u52a1\u5b9a\u4e49\u4fe1\u606f\u662f\u5fae\u670d\u52a1\u7684\u8eab\u4efd\u6807\u8bc6\uff0c\u5b83\u5b9a\u4e49\u4e86\u670d\u52a1\u4ece\u5c5e\u4e8e\u54ea\u4e2a\u5e94\u7528\uff0c\u4ee5\u53ca\u540d\u5b57\u548c\u7248\u672c\u3002\u670d\u52a1\u5b9a\u4e49\u4fe1\u606f\u4e2d\u4e5f\u53ef\u4ee5\u6709\u6269\u5c55\u4fe1\u606f\uff0c\u7528\u4e8e\u5b9a\u4e49\u670d\u52a1\u7684\u5c5e\u6027\u5143\u6570\u636e\u3002</p>"},{"location":"catalog/start.html#_4","title":"\u5f00\u53d1\u7b2c\u4e00\u4e2a\u5fae\u670d\u52a1","text":"<p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u65b9\u5f0f\u5feb\u901f\u6784\u5efa\u4e00\u4e2a\u9879\u76ee\uff1a  </p> <p>\u2022 \u4e0b\u8f7dsamples\u9879\u76ee\u3002\u5efa\u8bae\u628a\u6574\u4e2a\u9879\u76ee\u90fd\u4e0b\u8f7d\u4e0b\u6765\uff0c\u6309\u7167\u4f8b\u5b50 SpringMVC \u6216\u8005 JAX RS\u8fdb\u884c\u521d\u59cb\u5316\u914d\u7f6e\u3002 \u2022 \u4f7f\u7528archetypes\u751f\u6210\u9879\u76ee  </p>"},{"location":"config/config-service.html","title":"\u914d\u7f6e\u4e2d\u5fc3\u53c2\u8003","text":"<p>\u914d\u7f6e\u4e2d\u5fc3\u662f\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u4e2d\u95f4\u4ef6\uff0c\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u7528\u6237\u53ef\u4ee5\u589e\u52a0\u548c\u5220\u9664\u914d\u7f6e\u4fe1\u606f\uff0c\u914d\u7f6e\u4fe1\u606f\u4f1a\u901a\u8fc7\u4e0d\u540c\u7684\u901a\u77e5\u673a\u5236\uff0c \u5c06\u914d\u7f6e\u7684\u53d8\u5316\u63a8\u9001\u5230\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002 Java Chassis \u5141\u8bb8\u7528\u6237\u4f7f\u7528\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\uff0c \u5e76\u652f\u6301\u591a\u4e2a\u914d\u7f6e\u4e2d\u5fc3\u5171\u5b58\u3002</p>"},{"location":"config/config-service.html#kie","title":"\u4f7f\u7528 Kie","text":"<ul> <li>\u4e0b\u8f7d\u5b89\u88c5</li> </ul> <p>\u53ef\u4ee5\u901a\u8fc7 Kie\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5Kie\u3002\u534e\u4e3a\u4e91\u63d0\u4f9b\u4e86\u4e00\u4e2a\u96c6\u6210\u6ce8\u518c\u4e2d\u5fc3\u7684\u672c\u5730\u7248\u672c\uff0c\u5e76\u63d0\u4f9b\u4e86\u53cb\u597d\u7684\u754c\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7 \u534e\u4e3a\u4e91 \u4e0b\u8f7d\u548c\u4f7f\u7528\u3002 </p> <p> * \u5f00\u53d1\u4f7f\u7528</p> <p>\u5728 java-chassis \u4e2d\u4f7f\u7528 Kie\uff0c \u9700\u8981\u5f15\u5165\u4e0b\u9762\u7684\u4f9d\u8d56\uff1a</p> <pre><code>```xml\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-kie&lt;/artifactId&gt;\n&lt;/dependency&gt;\n```\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>```yaml\nservicecomb:\n  kie:\n    serverUri: http://127.0.0.1:30110\n```\n</code></pre> <p> * \u4f7f\u7528\u914d\u7f6e\u4e2d\u5fc3\u589e\u52a0\u914d\u7f6e</p> <p>\u5ba2\u6237\u7aef\u9ed8\u8ba4\u4f1a\u8bfb\u53d6\u4e0b\u9762\u51e0\u4e2a\u5c42\u6b21\u7684\u914d\u7f6e\uff1a</p> <ul> <li>\u5e94\u7528\u7ea7\u914d\u7f6e\uff1aLabel\u53ea\u5305\u542benvironment\u3001app\uff0c\u5e76\u4e14\u4e0e\u5fae\u670d\u52a1\u7684\u73af\u5883\u3001\u5e94\u7528\u5339\u914d\u7684\u914d\u7f6e\u3002</li> <li>\u670d\u52a1\u7ea7\u914d\u7f6e\uff1aLabel\u53ea\u5305\u542benvironment\u3001app\u3001service\uff0c\u5e76\u4e14\u4e0e\u5fae\u670d\u52a1\u7684\u73af\u5883\u3001\u5e94\u7528\u3001\u5fae\u670d\u52a1\u540d\u79f0\u5339\u914d\u7684\u914d\u7f6e\u3002</li> <li>\u7248\u672c\u7ea7\u914d\u7f6e\uff1aLabel\u53ea\u5305\u542benvironment\u3001app\u3001service\u3001version\uff0c\u5e76\u4e14\u4e0e\u5fae\u670d\u52a1\u7684\u73af\u5883\u3001\u5e94\u7528\u3001\u5fae\u670d\u52a1\u540d\u79f0\u3001\u7248\u672c\u5339\u914d\u7684\u914d\u7f6e\u3002</li> <li>\u81ea\u5b9a\u4e49\u914d\u7f6e\uff1aLabel\u5305\u542bcustom-label, \u5e76\u4e14\u4e0e custom-value\u5339\u914d\u7684\u914d\u7f6e\u3002 </li> </ul> <p>\u4e0a\u8ff0\u7684\u914d\u7f6e\u7ea7\u522b\uff0c\u4f18\u5148\u7ea7\u4ece\u4f4e\u5230\u9ad8\u3002 Kie \u7684 yaml \u548c properties \u7c7b\u578b\u4f1a\u6620\u5c04\u4e3a\u591a\u4e2a\u914d\u7f6e\u9879\uff0c \u5176\u4ed6\u7c7b\u578b\uff0c\u6bd4\u5982 json, text\uff0c \u53ea\u4f1a\u6620\u5c04\u4e3a\u4e00\u4e2a\u914d\u7f6e\u9879\u3002\u5f00\u53d1\u8005\u9700\u8981\u8bfb\u53d6\u914d\u7f6e\u9879\u81ea\u5df1\u89e3\u6790\u5185\u5bb9\u3002</p> <p> * \u914d\u7f6e\u9879\u53c2\u8003</p> <pre><code>|\u914d\u7f6e\u9879\u540d| \u542b\u4e49                      | \u7f3a\u7701\u503c     |\n|------------------------|---------|---|\n|servicecomb.kie.serverUri| servicecomb-kie\u8bbf\u95ee\u5730\u5740\uff0c\u683c\u5f0f\u4e3a`http(s)://{ip}:{port}`\uff0c\u4ee5`,`\u5206\u9694\u591a\u4e2a\u5730\u5740 | \u7a7a       |\n|servicecomb.kie.enableLongPolling| Long Polling \u6a21\u5f0f\u662f\u5426\u5f00\u542f                                       | true    |\n|servicecomb.kie.pollingWaitTime| Long Polling \u6a21\u5f0f\u4e0b\u7b49\u5f85\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u79d2                                 | 10      |\n|servicecomb.kie.firstPullRequired| \u542f\u52a8\u7684\u65f6\u5019\u7b2c\u4e00\u6b21\u67e5\u8be2\u914d\u7f6e\u5931\u8d25\uff0c\u662f\u5426\u7ec8\u6b62\u542f\u52a8\u3002                                    | true    |\n|servicecomb.kie.domainName| \u533a\u57df\u540d\u79f0                                                      | default |\n|servicecomb.kie.refresh_interval| Pull \u6a21\u5f0f\u4e0b\u5237\u65b0\u914d\u7f6e\u9879\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u3002                                 | 15000   |\n|servicecomb.kie.firstRefreshInterval| Pull \u6a21\u5f0f\u4e0b\u542f\u52a8\u8fc7\u7a0b\u4e2d\u9996\u6b21\u5237\u65b0\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u3002                              | 3000    |\n|servicecomb.kie.enableAppConfig| \u662f\u5426\u5f00\u542f\u5e94\u7528\u914d\u7f6e  | true    |\n|servicecomb.kie.enableServiceConfig| \u662f\u5426\u5f00\u542f\u670d\u52a1\u914d\u7f6e     | true    |\n|servicecomb.kie.enableVersionConfig| \u662f\u5426\u5f00\u542f\u7248\u672c\u914d\u7f6e     | true    |\n|servicecomb.kie.enableVersionConfig| \u662f\u5426\u5f00\u542f\u81ea\u5b9a\u4e49\u914d\u7f6e     | true    |\n|servicecomb.kie.customLabel| \u81ea\u5b9a\u4e49\u914d\u7f6e\u7684Label     | public    |\n|servicecomb.kie.customLabelValue| \u81ea\u5b9a\u4e49\u914d\u7f6e\u7684Value     | \u7a7a    |\n</code></pre>"},{"location":"config/config-service.html#nacos","title":"\u4f7f\u7528 nacos","text":"<ul> <li>\u4e0b\u8f7d\u5b89\u88c5</li> </ul> <p>\u53ef\u4ee5\u901a\u8fc7 nacos\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5 Nacos\u3002</p> <p></p> <ul> <li>\u5f00\u53d1\u4f7f\u7528 \u4f7f\u7528nacos\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</li> </ul> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-nacos&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  nacos:\n    serverAddr: http://127.0.0.1:8848\n</code></pre> <p></p> <ul> <li>\u4f7f\u7528\u914d\u7f6e\u4e2d\u5fc3\u589e\u52a0\u914d\u7f6e</li> </ul> <p>Nacos\u7684namespace\u5bf9\u5e94\u4e8eJava Chassis Environment, group\u5bf9\u5e94\u4e8eapplication\u3002 \u5ba2\u6237\u7aef\u9ed8\u8ba4\u4f1a\u8bfb\u53d6\u4e0b\u9762\u51e0\u4e2a\u5c42\u6b21\u7684\u914d\u7f6e\uff1a</p> <pre><code>* \u5e94\u7528\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3aapplication\u540d\u79f0\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\u3002\n* \u670d\u52a1\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3a\u5fae\u670d\u52a1\u540d\u79f0\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\u3002\n* \u7248\u672c\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3a\u5fae\u670d\u52a1\u540d\u79f0+\u7248\u672c\u53f7\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\uff0c \u6bd4\u5982: service-0.1\n* Profile\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3a\u5fae\u670d\u52a1\u540d\u79f0+Profile\u540d\u79f0\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\uff0c \u6bd4\u5982: service-dev\n* \u81ea\u5b9a\u4e49\u914d\u7f6e\uff1a\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u9879\u5b9a\u4e49group\u3001data-id\u3001\u7c7b\u578b\u7b49\u4fe1\u606f\uff0c\u8be6\u60c5\u53c2\u8003\u914d\u7f6e\u9879\u3002\u3002\n</code></pre> <p>\u4e0a\u8ff0\u7684\u914d\u7f6e\u7ea7\u522b\uff0c\u4f18\u5148\u7ea7\u4ece\u4f4e\u5230\u9ad8\u3002 </p> <p></p> <ul> <li>\u914d\u7f6e\u9879\u53c2\u8003</li> </ul> \u914d\u7f6e\u9879\u540d \u542b\u4e49 \u7f3a\u7701\u503c servicecomb.nacos.serverAddr NACOS\u8bbf\u95ee\u5730\u5740\uff0c\u683c\u5f0f\u4e3a<code>http(s)://{ip}:{port}</code>\uff0c\u4ee5<code>,</code>\u5206\u9694\u591a\u4e2a\u5730\u5740 \u7a7a servicecomb.nacos.group \u81ea\u5b9a\u4e49group \u7a7a servicecomb.nacos.dataId \u81ea\u5b9a\u4e49data-id \u7a7a servicecomb.nacos.addPrefix \u662f\u5426\u4f7f\u7528group+data-id\u4f5c\u4e3a\u914d\u7f6e\u9879\u524d\u7f00 false servicecomb.nacos.contentType \u81ea\u5b9a\u4e49\u7c7b\u578b yaml servicecomb.nacos.username \u8fde\u63a5Nacos\u7684\u7528\u6237\u540d \u7a7a servicecomb.nacos.password \u8fde\u63a5Nacos\u7684\u5bc6\u7801 \u7a7a servicecomb.nacos.accessKey \u8fde\u63a5Nacos\u7684Access Key \u7a7a servicecomb.nacos.secretKey \u8fde\u63a5Nacos\u7684Secret Key \u7a7a"},{"location":"config/config-service.html#apollo","title":"\u4f7f\u7528 Apollo","text":"<p>\u6ce8\u610f\uff1a\u672c\u5b9e\u73b0\u4f5c\u4e3a\u9002\u914d Apollo \u7684\u53c2\u8003\uff0c\u6574\u4f53\u903b\u8f91\u529f\u80fd\u548c\u8bbe\u8ba1\u89c4\u683c\u4e0d\u5b8c\u5584\uff0c\u4e0d\u5efa\u8bae\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\u3002 \u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\uff0c\u5efa\u8bae\u57fa\u4e8e Apollo \u63d0\u4f9b\u7684 SDK \u81ea\u884c\u6269\u5c55\u5b9e\u73b0\u3002 </p> <p>Apollo \u662f\u643a\u7a0b\u6846\u67b6\u90e8\u95e8\u7814\u53d1\u7684\u5206\u5e03\u5f0f\u914d\u7f6e\u4e2d\u5fc3\u3002 Apollo\u7684\u4e0b\u8f7d\u5b89\u88c5\u8bf7\u53c2\u8003\u5b98\u7f51\u4ecb\u7ecd\u3002</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-apollo&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>apollo:\n  config:\n    serverUri: http://127.0.0.1:8070\n    serviceName: apollo-test\n    env: DEV\n    clusters: test-cluster\n    namespace: application\n    token: xxx\n    refreshInterval: 30\n    firstRefreshInterval: 0\n</code></pre>"},{"location":"config/config-service.html#cse10","title":"\u534e\u4e3a\u4e91CSE1.0\u914d\u7f6e\u4e2d\u5fc3","text":"<p>\u6ce8\u610f\uff1aCSE1.0\u914d\u7f6e\u4e2d\u5fc3\u5df2\u7ecf\u9010\u6b65\u4e0b\u7ebf\uff0c \u672c\u5b9e\u73b0\u4ec5\u4f9b\u9057\u7559\u529f\u80fd\u4f7f\u7528\uff0c\u65b0\u529f\u80fd\u4e0d\u5efa\u8bae\u4f7f\u7528\u3002</p> <p>\u534e\u4e3a\u4e91CSE1.0\u914d\u7f6e\u4e2d\u5fc3\u662f\u534e\u4e3a\u4e91CSE\u4ea7\u54c1\u7684\u4e00\u4e2a\u90e8\u4ef6\uff0cjava-chassis \u6700\u65e9\u4f7f\u7528\u5b83\u4f5c\u4e3a\u914d\u7f6e\u4e2d\u5fc3\u3002 \u5bf9\u63a5\u8fd9\u4e2a\u914d\u7f6e\u4e2d\u5fc3\u7684\u4ee3\u7801\u5728 config-cc \u6a21\u5757\u5b9e\u73b0\u3002</p> <p>\u53ef\u4ee5\u4ece \u8f7b\u91cf\u5316\u5fae\u670d\u52a1\u5f15\u64ce \u4e0b\u8f7d\u672c\u5730\u4f7f\u7528\u7684\u7248\u672c\u3002\u4e5f\u53ef\u4ee5 \u76f4\u63a5\u8bbf\u95ee\u534e\u4e3a\u4e91 ServiceStage \u4ea7\u54c1\uff0c\u4f7f\u7528\u5728\u7ebf\u7684\u7248\u672c\u3002</p> <p>\u4f7f\u7528\u534e\u4e3a\u4e91\u914d\u7f6e\u4e2d\u5fc3\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-cc&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  config:\n    client:\n      serverUri: http://127.0.0.1:30113\n      refreshMode: 0\n      refresh_interval: 5000\n      refreshPort: 30114\n</code></pre> <p>\u534e\u4e3a\u4e91\u914d\u7f6e\u4e2d\u5fc3\u7684\u5176\u4ed6\u914d\u7f6e\u9879\u542b\u4e49\u5982\u4e0b\uff1a</p> \u914d\u7f6e\u9879\u540d \u63cf\u8ff0 servicecomb.config.client.refreshMode \u5e94\u7528\u914d\u7f6e\u7684\u5237\u65b0\u65b9\u5f0f\uff0c<code>0</code>\u4e3aconfig-center\u4e3b\u52a8push\uff0c<code>1</code>\u4e3aclient\u5468\u671fpull\uff0c\u9ed8\u8ba4\u4e3a<code>0</code> servicecomb.config.client.refreshPort config-center\u63a8\u9001\u914d\u7f6e\u7684\u7aef\u53e3 servicecomb.config.client.tenantName \u5e94\u7528\u7684\u79df\u6237\u540d\u79f0 servicecomb.config.client.serverUri config-center\u8bbf\u95ee\u5730\u5740\uff0c\u683c\u5f0f\u4e3a<code>http(s)://{ip}:{port}</code>\uff0c\u4ee5<code>,</code>\u5206\u9694\u591a\u4e2a\u5730\u5740 servicecomb.config.client.refresh_interval pull\u6a21\u5f0f\u4e0b\u5237\u65b0\u914d\u7f6e\u9879\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\uff0c\u9ed8\u8ba4\u503c\u4e3a15000 servicecomb.config.client.fileSource \u6307\u5b9a\u8be5\u914d\u7f6e\u9879\u7684\u5185\u5bb9\u4e3ayaml\u6587\u4ef6\uff0c\u591a\u4e2a\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u7528<code>,</code>\u5206\u9694"},{"location":"config/general-config.html","title":"\u670d\u52a1\u914d\u7f6e\u4ecb\u7ecd","text":"<p>\u5e94\u7528\u7a0b\u5e8f\u4e00\u822c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u3001\u73af\u5883\u53d8\u91cf\u7b49\u7ba1\u7406\u914d\u7f6e\u4fe1\u606f\u3002\u5fae\u670d\u52a1\u67b6\u6784\u5bf9\u7edf\u4e00\u914d\u7f6e\u63d0\u51fa\u4e86\u66f4\u9ad8\u7684\u8981\u6c42\uff0c\u5f88\u591a\u914d\u7f6e\u4fe1\u606f\u9700\u8981\u5728\u4e0d\u542f\u505c\u670d\u52a1\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u52a8\u6001\u4fee\u6539\u3002 Java Chassis \u652f\u6301\u4e30\u5bcc\u7684\u914d\u7f6e\u6e90\uff0c\u5bf9\u4e0d\u540c\u7684\u914d\u7f6e\u6e90\u8fdb\u884c\u4e86\u62bd\u8c61\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u4e0d\u5173\u5fc3\u914d\u7f6e\u9879\u5177\u4f53\u7684\u914d\u7f6e\u6e90\uff0c\u91c7\u7528\u7edf\u4e00\u7684\u63a5\u53e3\u8bfb\u53d6\u914d\u7f6e\u3002</p>"},{"location":"config/general-config.html#_2","title":"\u914d\u7f6e\u6e90\u5c42\u7ea7","text":"<p>Java \u63d0\u4f9b\u4e86\u5206\u5c42\u6b21\u7684\u914d\u7f6e\u673a\u5236\u3002\u6309\u7167\u4f18\u5148\u7ea7\u4ece\u9ad8\u5230\u4f4e\uff0c\u5206\u4e3a\uff1a</p> <ul> <li>\u914d\u7f6e\u4e2d\u5fc3\uff08\u52a8\u6001\u914d\u7f6e\uff09</li> <li>Java System Property\uff08-D\u53c2\u6570\uff09</li> <li>\u73af\u5883\u53d8\u91cf</li> <li>\u914d\u7f6e\u6587\u4ef6</li> </ul>"},{"location":"config/general-config.html#_3","title":"\u914d\u7f6e\u6587\u4ef6","text":"<ul> <li>microservice.yaml</li> </ul> <p>microservice.yaml \u6587\u4ef6\u662f\u4f18\u5148\u7ea7\u6700\u4f4e\u7684\u914d\u7f6e\u6587\u4ef6\u3002Java Chassis \u542f\u52a8\u65f6\u4f1a\u4ece classpath \u7684\u5404\u4e2a jar \u5305\u3001\u78c1\u76d8\u76ee\u5f55\u4e2d\u52a0\u8f7d microservice.yaml \u6587\u4ef6\uff0c\u5e76\u5c06\u8fd9\u4e9b\u6587\u4ef6\u5408\u5e76\u4e3a\u4e00\u4efd microservice.yaml \u914d\u7f6e\u3002\u4f4d\u4e8e\u78c1\u76d8\u4e0a\u7684 microservice.yaml \u6587\u4ef6\u4f18\u5148\u7ea7\u9ad8\u4e8ejar\u5305\u4e2d\u7684microservice.yaml \u6587\u4ef6\u3002\u7528\u6237\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a <code>servicecomb-config-order</code>\u6765\u6307\u5b9a\u4f18\u5148\u7ea7\uff0c \u5982\u679c\u4e0d\u540c\u8def\u5f84\u4e0b\u7684 microservice.yaml \u5305\u542b\u4e00\u6837\u7684\u914d\u7f6e\u9879\uff0c\u6587\u4ef6\u4e2d <code>servicecomb-config-order</code> \u503c\u5927\u7684\u914d\u7f6e\u9879\u4f1a\u8986\u76d6\u503c\u5c0f\u7684\u914d\u7f6e\u9879\u3002</p> <p>Tips\uff1a\u7531\u4e8e\u78c1\u76d8\u4e0a\u7684microservice.yaml\u6587\u4ef6\u4f18\u5148\u7ea7\u8f83\u9ad8\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u6253\u5305\u65f6\u5728\u670d\u52a1\u53ef\u6267\u884cjar\u5305\u7684classpath\u91cc\u52a0\u4e0a<code>.</code>\u76ee\u5f55\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u670d\u52a1jar\u5305\u6240\u5728\u7684\u76ee\u5f55\u91cc\u653e\u7f6e\u4e00\u4efdmicroservice.yaml\u6765\u8986\u76d6jar\u5305\u5185\u7684\u914d\u7f6e\u6587\u4ef6\u3002</p> <ul> <li>Spring Boot \u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6 application.yaml \u7b49</li> </ul> <p>Java Chassis \u7ee7\u627f\u4e86 Spring Boot \u7684\u914d\u7f6e\u673a\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528Spring Boot \u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u3002 microservice.yaml \u7684\u4f18\u5148\u7ea7\u6bd4 application.yaml \u4f4e\u3002</p>"},{"location":"config/general-config.html#_4","title":"\u73af\u5883\u53d8\u91cf","text":"<p>Linux\u7684\u73af\u5883\u53d8\u91cf\u540d\u4e0d\u5141\u8bb8\u5e26<code>.</code>\u7b26\u53f7\uff0c\u56e0\u6b64\u67d0\u4e9b\u914d\u7f6e\u9879\u65e0\u6cd5\u76f4\u63a5\u914d\u7f6e\u5728\u73af\u5883\u53d8\u91cf\u91cc\u3002\u53ef\u4ee5\u5c06\u914d\u7f6e\u9879key\u7684<code>.</code>\u7b26\u53f7\u6539\u4e3a\u4e0b\u5212\u7ebf<code>_</code>\uff0c\u5c06\u8f6c\u6362\u540e\u7684\u914d\u7f6e\u9879\u914d\u5728\u73af\u5883\u53d8\u91cf\u91cc\uff0cJava Chassis \u53ef\u4ee5\u81ea\u52a8\u5c06\u73af\u5883\u53d8\u91cf\u5339\u914d\u5230\u539f\u914d\u7f6e\u9879\u4e0a\u3002</p> <p>\u4f8b\u5982\uff1a\u5bf9\u4e8e microservice.yaml \u4e2d\u914d\u7f6e\u7684</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080\n</code></pre> <p>\u53ef\u4ee5\u5728\u73af\u5883\u53d8\u91cf\u4e2d\u8bbe\u7f6e <code>servicecomb_rest_address=0.0.0.0:9090</code> \u6765\u5c06\u670d\u52a1\u76d1\u542c\u7684\u7aef\u53e3\u8986\u5199\u4e3a9090\u3002\u8fd9\u79cd\u4e0b\u5212\u7ebf\u8f6c\u70b9\u53f7\u7684\u673a\u5236\u4e5f\u9002\u7528\u4e8e\u5176\u4ed6\u7684\u914d\u7f6e\u5c42\u7ea7\u3002</p> <p>\u7531\u4e8e\u4e0a\u8ff0\u9650\u5236\uff0c\u6700\u597d\u7684\u65b9\u5f0f\u662f\u5728\u542f\u52a8\u53c2\u6570\u91cc\u9762\u4f7f\u7528 Java System Property\u3002 \u6bd4\u5982 <code>-Dservicecomb.rest.address=${LISTEN_ADDRESS}</code>\uff0c \u8bbe\u7f6e\u7684\u73af\u5883\u53d8\u91cf LISTEN_ADDRESS \u7b26\u5408\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u540d\u89c4\u8303\u3002</p>"},{"location":"config/general-config.html#_5","title":"\u914d\u7f6e\u4e2d\u5fc3\uff08\u52a8\u6001\u914d\u7f6e\uff09","text":"<p>Java Chassis\u652f\u6301\u591a\u4e2a\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u73b0\uff0c\u5e76\u652f\u6301\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u914d\u7f6e\u4e2d\u5fc3\u3002 \u914d\u7f6e\u4e2d\u5fc3\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u6587\u4ef6\u914d\u7f6e\u3002 </p>"},{"location":"config/general-config.html#_6","title":"\u8fdb\u884c\u914d\u7f6e\u9879\u6620\u5c04","text":"<p>\u914d\u7f6e\u9879\u6620\u5c04\u53ef\u4ee5\u7528\u4e8e\u7ed9\u914d\u7f6e\u9879\u53d6\u4e00\u4e2a\u522b\u540d\uff0c\u5728\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u8986\u76d6\u4e1a\u52a1\u914d\u7f6e\u3001\u517c\u5bb9\u6027\u573a\u666f\u5e7f\u6cdb\u4f7f\u7528\u3002 \u8fdb\u884c\u914d\u7f6e\u9879\u6620\u5c04\u901a\u8fc7 classpath \u4e0b\u7684 mapping.yaml \u5b9a\u4e49\uff1a</p> <pre><code>PAAS_CSE_SC_ENDPOINT:\n  - servicecomb.registry.sc.address\n</code></pre> <p>\u5047\u8bbe <code>PAAS_CSE_SC_ENDPOINT</code> \u662f\u73af\u5883\u53d8\u91cf\uff0c\u5e94\u7528\u7a0b\u5e8f\u8bfb\u53d6 <code>servicecomb.service.registry.address</code> \u7684\u5730\u65b9\uff0c \u4f1a\u53d6\u5230\u73af\u5883\u53d8\u91cf<code>PAAS_CSE_SC_ENDPOINT</code>\u7684\u503c\u3002</p> <p>\u4f7f\u7528\u914d\u7f6e\u9879\u6620\u5c04\u4e5f\u53ef\u4ee5\u4f7f\u7528 Spring Boot \u7684 place holder \u673a\u5236\uff0c \u4e0a\u8ff0\u7684\u89e3\u51b3\u65b9\u6848\u53ef\u4ee5\u66ff\u6362\u4e3a\u5728 application.yaml \u6587\u4ef6\u4e2d\u4f7f\u7528\uff1a</p> <pre><code>servicecomb:\n  registry:\n   sc:\n     address: ${PAAS_CSE_SC_ENDPOINT:http://localhost:30100}\n</code></pre> <p>\u63a8\u8350\u4f7f\u7528 Spring Boot \u7684 place holder \u673a\u5236\uff0c \u66f4\u52a0\u7b80\u6d01\u548c\u5bb9\u6613\u7406\u89e3\u3002 </p>"},{"location":"config/read-config.html","title":"\u5728\u7a0b\u5e8f\u4e2d\u8bfb\u53d6\u914d\u7f6e\u4fe1\u606f","text":"<p>Java Chassis\u652f\u6301\u4f7f\u7528\u4e00\u81f4\u7684API\u83b7\u53d6\u914d\u7f6e\uff0c\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u5173\u6ce8\u4ece\u54ea\u91cc\u8bfb\u53d6\u914d\u7f6e\u9879\u7684 \u503c\uff0cJava Chassis\u4f1a\u81ea\u52a8\u4ece\u5404\u5904\u8bfb\u53d6\u914d\u7f6e\uff0c\u5e76\u6309\u7167\u4f18\u5148\u7ea7\u8fdb\u884c\u5408\u5e76\u4ee5\u4fdd\u8bc1\u7528\u6237\u53d6\u5230\u7684\u662f\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u914d\u7f6e\u503c\u3002\u8bfb\u53d6\u914d\u7f6e\u4fe1\u606f\u652f\u6301\u4e0b\u9762\u51e0\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u3002 </p>"},{"location":"config/read-config.html#spring-boot","title":"\u4f7f\u7528 Spring Boot \u7684\u914d\u7f6e\u673a\u5236\u8bfb\u53d6\u914d\u7f6e","text":"<p>Java Chassis\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u53ef\u4ee5\u901a\u8fc7Spring\u548cSpring Boot\u7684\u914d\u7f6e\u673a\u5236\u8fdb\u884c\u8bfb\u53d6\uff0c\u6bd4\u5982 <code>@Value</code>\u3001<code>@ConfigurationProperties</code>\u3001 <code>Environment</code> \u7b49\u3002 Java Chassis \u5c06\u914d\u7f6e\u5c42\u6b21\u5e94\u7528\u4e8eSpring Environment\u4e2d\uff0cSpring\u548cSpring Boot\u8bfb\u53d6\u914d\u7f6e\u7684\u65b9\u5f0f\uff0c\u4e5f\u80fd\u591f\u8bfb\u53d6\u5230<code>microservice.yaml</code>\u548c\u52a8\u6001\u914d\u7f6e\u7684\u503c\u3002</p> <p>\u6ce8\u610f\uff1a <code>@Value</code>\u3001<code>@ConfigurationProperties</code> \u4e24\u79cd\u4f7f\u7528\u65b9\u5f0f\uff0c\u5728\u52a8\u6001\u914d\u7f6e\u53d8\u5316\u7684\u65f6\u5019\uff0c\u503c\u4e0d\u4f1a\u53d8\u5316\u3002 \u4f7f\u7528 <code>Environment</code>, \u5728\u52a8\u6001\u914d\u7f6e\u53d8\u5316\u7684\u65f6\u5019\uff0c\u503c\u4f1a\u5b9e\u65f6\u53d8\u5316\u3002 </p>"},{"location":"config/read-config.html#dymamicproperties","title":"\u4f7f\u7528 <code>DymamicProperties</code> \u76d1\u542c\u914d\u7f6e\u53d8\u5316","text":"<p>\u6ce8\u5165 <code>DymamicProperties</code>\uff0c \u901a\u8fc7\u5176 API \u8bfb\u53d6\u914d\u7f6e\u548c\u76d1\u542c\u914d\u7f6e\u53d8\u5316\u3002 </p> <pre><code>@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  private DynamicProperties dynamicProperties;\n\n  private String example;\n\n  @Autowired\n  public ProviderController(DynamicProperties dynamicProperties) {\n    this.dynamicProperties = dynamicProperties;\n    this.example = this.dynamicProperties.getStringProperty(\"basic.example\",\n            value -&gt; this.example = value, \"not set\");\n  }\n}\n</code></pre>"},{"location":"config/read-config.html#java-chassis","title":"\u4f7f\u7528 Java Chassis \u4f18\u5148\u7ea7\u914d\u7f6e","text":"<p>\u4f18\u5148\u7ea7\u914d\u7f6e\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u7ba1\u7406\u5927\u91cf\u590d\u6742\u914d\u7f6e\u7684\u673a\u5236\uff0c\u5f00\u53d1\u8005\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684 JAVA Bean\uff0c \u5b9a\u4e49\u8fd9\u4e2a Bean \u7684\u5c5e\u6027\u5bf9\u5e94\u7684\u914d\u7f6e\u9879\uff0c \u5f53\u914d\u7f6e\u4fe1\u606f\u53d8\u5316\u7684\u65f6\u5019\uff0c Bean \u7684\u5c5e\u6027\u4f1a\u81ea\u52a8\u5237\u65b0\uff0c\u6781\u5927 \u7684\u7b80\u5316\u4e86\u7528\u6237\u7ba1\u7406\u5927\u91cf\u590d\u6742\u914d\u7f6e\u7684\u590d\u6742\u5ea6\u3002 </p> <p>Bean \u5c5e\u6027\u5bf9\u5e94\u7684\u914d\u7f6e\u9879\u540d\u79f0\u652f\u6301\u901a\u914d\u7b26\uff0c \u4e00\u4e2a\u5c5e\u6027\u53ef\u4ee5\u5173\u8054\u82e5\u5e72\u914d\u7f6e\u9879\uff0c\u53ef\u4ee5\u58f0\u660e\u8fd9\u4e9b\u914d\u7f6e\u9879\u7684\u4f18\u5148\u7ea7\u3002 Java\u5bf9\u8c61\u53ef\u4ee5\u662f\u4e00\u4e2a Java Bean\uff0c\u6216\u662f\u4e00\u4e2a\u62e5\u6709public\u5b57\u6bb5\u7684\u7c7b\u3002</p> <ul> <li>\u914d\u7f6e\u6ce8\u5165\u5bf9\u8c61</li> </ul> <p>\u6211\u4eec\u9996\u5148\u8bbe\u8ba1\u4e24\u4e2aJava\u7c7b\u7528\u4e8e\u6ce8\u5165\u914d\u7f6e\u5c5e\u6027\uff0c\u5206\u522b\u7528\u6765\u6f14\u793a\u4e0d\u4f7f\u7528\u6ce8\u89e3\u548c\u4f7f\u7528\u6ce8\u89e3\u7684\u573a\u666f\u3002\u4f7f\u7528@InjectProperties\u6ce8\u89e3\u5e76\u58f0\u660e\u4e3aBean:</p> <pre><code>  ```Java\n  @Component\n  @InjectProperties(prefix = \"jaxrstest.jaxrsclient\")\n  public class Configuration {\n    /*\n     * \u65b9\u6cd5\u7684 prefix \u5c5e\u6027\u503c \"override\" \u4f1a\u8986\u76d6\u6807\u6ce8\u5728\u7c7b\u5b9a\u4e49\u7684 @InjectProperties\n     * \u6ce8\u89e3\u7684 prefix \u5c5e\u6027\u503c\u3002\n     *\n     * keys\u5c5e\u6027\u53ef\u4ee5\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\uff0c\u4e0b\u6807\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002\n     *\n     * \u8fd9\u91cc\u4f1a\u6309\u7167\u5982\u4e0b\u987a\u5e8f\u7684\u5c5e\u6027\u540d\u79f0\u67e5\u627e\u914d\u7f6e\u5c5e\u6027\uff0c\u76f4\u5230\u627e\u5230\u5df2\u88ab\u914d\u7f6e\u7684\u914d\u7f6e\u5c5e\u6027\uff0c\u5219\u505c\u6b62\u67e5\u627e\uff1a\n     * 1) jaxrstest.jaxrsclient.override.high\n     * 2) jaxrstest.jaxrsclient.override.low\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.override.high: hello high\n     * jaxrstest.jaxrsclient.override.low: hello low\n     * \u9884\u671f\uff1a\n     * hello high\n     */\n    @InjectProperty(prefix = \"jaxrstest.jaxrsclient.override\", keys = {\"high\", \"low\"})\n    public String strValue;\n\n    /**\n     * keys\u652f\u6301\u901a\u914d\u7b26\uff0c\u5e76\u5728\u53ef\u4ee5\u5728\u5c06\u914d\u7f6e\u5c5e\u6027\u6ce8\u5165\u7684\u65f6\u5019\u6307\u5b9a\u901a\u914d\u7b26\u7684\u4ee3\u5165\u5bf9\u8c61\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.k.value: 3\n     * \u9884\u671f\uff1a\n     * 3\n     */\n    @InjectProperty(keys = \"${key}.value\")\n    public int intValue;\n\n    /**\n     * \u901a\u914d\u7b26\u7684\u4ee3\u5165\u5bf9\u8c61\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32List\uff0c\u4f18\u5148\u7ea7\u9075\u5faa\u6570\u7ec4\u5143\u7d20\u4e0b\u6807\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u7b56\u7565\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.l1-1: 3.0\n     * jaxrstest.jaxrsclient.l1-2: 2.0\n     *\n     * \u9884\u671f\uff1a\n     * 3.0\n     */\n    @InjectProperty(keys = \"${full-list}\")\n    public float floatValue;\n\n    /**\n     * keys\u5c5e\u6027\u4e5f\u652f\u6301\u591a\u4e2a\u901a\u914d\u7b26\uff0c\u4f18\u5148\u7ea7\u5982\u4e0b\uff1a\u9996\u5148\u901a\u914d\u7b26\u7684\u4f18\u5148\u7ea7\u4ece\u5de6\u5230\u53f3\u9012\u51cf\uff0c\n     * \u7136\u540e\u5982\u679c\u901a\u914d\u7b26\u88ab\u4ee3\u5165List\uff0c\u9075\u5faaList\u4e2d\u5143\u7d20index\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u7b56\u7565\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.low-1.a.high-1.b: 1\n     * jaxrstest.jaxrsclient.low-1.a.high-2.b: 2\n     * jaxrstest.jaxrsclient.low-2.a.high-1.b: 3\n     * jaxrstest.jaxrsclient.low-2.a.high-2.b: 4\n     * \u9884\u671f\uff1a\n     * 1\n     */\n    @InjectProperty(keys = \"${low-list}.a.${high-list}.b\")\n    public long longValue;\n\n    /**\n     * \u53ef\u4ee5\u901a\u8fc7\u6ce8\u89e3\u7684defaultValue\u5c5e\u6027\u6307\u5b9a\u9ed8\u8ba4\u503c\u3002\u5982\u679c\u5b57\u6bb5\u672a\u5173\u8054\u4efb\u4f55\u914d\u7f6e\u5c5e\u6027\uff0c\n     * \u5b9a\u4e49\u7684\u9ed8\u8ba4\u503c\u4f1a\u751f\u6548\uff0c\u5426\u5219\u9ed8\u8ba4\u503c\u4f1a\u88ab\u8986\u76d6\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * \u9884\u671f\uff1a\n     * abc\n     */\n    @InjectProperty(defaultValue = \"abc\")\n    public String strDef;\n  }\n  ```\n</code></pre> <p>Configuration\u5bf9\u8c61\u7684longValue\u5b57\u6bb5\u6309\u4ee5\u4e0b\u987a\u5e8f\u67e5\u627e\u5df2\u914d\u7f6e\u7684\u5c5e\u6027:</p> <pre><code>    1.  root.low-1.a.high-1.b\n    2.  root.low-1.a.high-2.b\n    3.  root.low-2.a.high-1.b\n    4.  root.low-2.a.high-2.b\n</code></pre> <p>Configuration\u5bf9\u8c61\u7684floatValue\u5b57\u6bb5\u6309\u4ee5\u4e0b\u987a\u5e8f\u67e5\u627e\u5df2\u914d\u7f6e\u7684\u5c5e\u6027:</p> <pre><code>    1.  root.l1-1\n    2.  root.l1-2\n</code></pre> <p>\u4e0d\u4f7f\u7528\u6ce8\u89e3\uff1a</p> <pre><code>    ```Java\n    @Component\n    @InjectProperties(prefix = \"jaxrstest.jaxrsclient\")\n    public class ConfigNoAnnotation {\n        /*\n         * \u5982\u679c\u672a\u63d0\u4f9b@InjectProperties\u548c@InjectProperty\u6ce8\u89e3\uff0c\u4f1a\u9ed8\u8ba4\u4f7f\u7528\u5b57\u6bb5\u540d\u4f5c\u4e3a\u914d\u7f6e\u5c5e\u6027\u540d\u3002\n         * \u6ce8\u610f\u7c7b\u540d\u4e0d\u4f5c\u4e3a\u524d\u7f00\u8d77\u4f5c\u7528\u3002\n         * \u6b64\u5904\u5c06\u914d\u7f6e\u5c5e\u6027 strValue \u7ed1\u5b9a\u5230\u8be5\u5b57\u6bb5\n        */\n      public String strValue;\n    }\n    ```\n</code></pre> <p>ConfigNoAnnotation \u5bf9\u8c61\u7684 strValue \u5b57\u6bb5\u4f1a\u67e5\u627e\u5df2\u914d\u7f6e\u7684\u5c5e\u6027 strValue\uff0c\u6ca1\u6709\u524d\u7f00\u548c\u4f18\u5148\u7ea7\u3002</p> <p>\u66f4\u591a\u5173\u4e8e\u914d\u7f6e\u6ce8\u5165\u7684\u7528\u6cd5\uff0c\u5efa\u8bae\u4e0b\u8f7d java-chassis \u7684\u6e90\u7801\uff0c \u67e5\u770b TestConfigObjectFactory \u7c7b\u91cc\u9762\u7684\u793a\u4f8b\u3002</p>"},{"location":"config-reference/config-center-client.html","title":"Config Center Client \u914d\u7f6e\u9879","text":"<ul> <li>\u57fa\u672c\u914d\u7f6e</li> </ul> \u914d\u7f6e\u9879\u540d\u79f0 \u7248\u672c \u7f3a\u7701\u503c \u529f\u80fd\u63cf\u8ff0 servicecomb.config.client.eventLoopSize 2.0.2 2 event loop \u7ebf\u7a0b\u6570 servicecomb.config.client.verticalInstanceCount 2.0.2 1 verticle instances \u6570\u91cf servicecomb.config.client.timeout.connection 2.0.2 1000 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.config.client.idleTimeoutInSeconds 2.0.2 60 HTTP \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u914d\u7f6e</li> </ul> <p>\u4e0d\u652f\u6301\u3002</p> <ul> <li>SSL \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4f7f\u7528TLS\u901a\u4fe1\u3002 tag \u4e3a <code>cc.consumer</code>\u3002</p> <ul> <li>Proxy \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4ee3\u7406\u8bbe\u7f6e</p>"},{"location":"config-reference/kie-client.html","title":"ServiceComb Kie Client \u914d\u7f6e\u9879","text":"<ul> <li>\u57fa\u672c\u914d\u7f6e</li> </ul> \u914d\u7f6e\u9879\u540d\u79f0 \u7248\u672c \u7f3a\u7701\u503c \u529f\u80fd\u63cf\u8ff0 servicecomb.kie.client.eventLoopSize 2 event loop \u7ebf\u7a0b\u6570 servicecomb.kie.client.verticalInstanceCount 1 verticle instances \u6570\u91cf servicecomb.kie.client.timeout.connection 1000 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.kie.client.idleTimeoutInSeconds 60 HTTP \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u914d\u7f6e</li> </ul> <p>\u4e0d\u652f\u6301\u3002</p> <ul> <li>SSL \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4f7f\u7528TLS\u901a\u4fe1\u3002 tag \u4e3a <code>kie.consumer</code>\u3002</p> <ul> <li>Proxy \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4ee3\u7406\u8bbe\u7f6e</p>"},{"location":"config-reference/rest-transport-client.html","title":"REST Transport Client \u914d\u7f6e\u9879","text":"<ul> <li>\u57fa\u672c\u914d\u7f6e</li> </ul> <p>REST Trasnport Client \u5206\u4e3a HTTP \u548c HTTP2, \u5b83\u4eec\u5171\u4eab\u5f88\u591a\u914d\u7f6e\u9879\u3002\u4e0b\u8868\u4e2d\u914d\u7f6e\u9879\u540d\u79f0\u5305\u542b <code>http2</code> \u7684\u914d\u7f6e\u9879\uff0c \u662f HTTP2 \u72ec\u6709\u7684\u3002   HTTP2\u534f\u8bae\u4f9d\u8d56\u4e8eHTTP\u534f\u8bae\uff0cHTTP\u548cHTTP2\u7684\u8fde\u63a5\u6c60\u662f\u5171\u4eab\u7684\uff0c\u5728\u4f7f\u7528HTTP2\u7684\u60c5\u51b5\u4e0b\uff0c\u540c\u6837\u9700\u8981\u914d\u7f6eHTTP\u7684\u8fde\u63a5\u6c60\u53c2\u6570\u3002\u6bd4\u5982\uff1a</p> <pre><code>servicecomb:\n  rest:\n    client:\n      connection:\n        maxPoolSize: 50\n      http2:\n        maxPoolSize: 5\n</code></pre> <p>\u8fde\u63a5\u6c60\u5728\u8ba1\u7b97\u662f\u5426\u8d85\u8fc7\u5927\u5c0f\u7684\u65f6\u5019\uff0c\u4f1a\u540c\u65f6\u68c0\u67e5\u8fd9\u4e24\u4e2a\u914d\u7f6e\u9879\u3002\u5047\u8bbe\u8bbf\u95ee\u7684\u670d\u52a1\u5668\u4e3aH\uff0c\u90a3\u4e48\u4e0a\u8ff0\u914d\u7f6e\uff0c\u548cH\u5efa\u7acb\u7684\u6700\u5927\u8fde\u63a5\u53ef\u80fd\u6027\u4e3a   HTTP:HTTP2=50:0, HTTP:HTTP2=0:5, HTTP:HTTP2=20:3\u7b49\u3002\u4e00\u4e2a\u5ba2\u6237\u7aef\u548cH\u5efa\u7acb\u7684\u603b\u7684\u8fde\u63a5\u6570\u8fd8\u548cservicecomb.rest.client.verticle-count   \u6709\u5173\u3002\u53ef\u4ee5\u7406\u89e3\u4e3a\u6bcf\u4e2avertical\u4f1a\u9488\u5bf9H\u521b\u5efa\u4e00\u4e2a\u8fde\u63a5\u6c60\uff0c\u8fde\u63a5\u6c60\u4e2a\u6570\u4e3avertical-count\u3002</p> <p>\u7531\u4e8eHTTP\u548cHTTP2\u534f\u8bae\u4e4b\u95f4\u8fd9\u79cd\u7d27\u5bc6\u7684\u5173\u7cfb\uff0c\u5728\u4f7f\u7528HTTP2\u7684\u60c5\u51b5\u4e0b\uff0c\u5176\u4ed6\u76f8\u5173\u7684HTTP\u53c2\u6570\u5efa\u8bae\u4e00\u5e76\u9700\u8981\u5408\u7406\u8bbe\u7f6e\uff0c\u6bd4\u5982\u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4\u7b49\u3002</p> \u914d\u7f6e\u9879\u540d\u79f0 \u7248\u672c \u7f3a\u7701\u503c \u529f\u80fd\u63cf\u8ff0 servicecomb.rest.client.enabled 2.0.2 true \u662f\u5426\u542f\u7528Rest Transport Client, HTTP 1 servicecomb.rest.client.verticle-count \u5907\u6ce81 \u5907\u6ce82 servicecomb.rest.client.thread-count \u5e9f\u5f03 \u540cverticle-count servicecomb.rest.client.connection.timeoutInMillis 2.0.2 1000 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.rest.client.connection.idleTimeoutInSeconds 30 HTTP \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 servicecomb.rest.client.connection.compression false \u662f\u5426\u542f\u7528\u538b\u7f29 servicecomb.rest.client.maxWaitQueueSize -1 HTTP HTTP2 \u7b49\u5f85\u961f\u5217\u5927\u5c0f servicecomb.rest.client.connection.maxPoolSize 5 HTTP \u5ba2\u6237\u7aef\u8fde\u63a5\u6c60\u5927\u5c0f servicecomb.rest.client.connection.keepAlive true HTTP \u8fde\u63a5\u662f\u5426\u4fdd\u6d3b servicecomb.rest.client.maxHeaderSize 8192 HTTP \u6700\u5927\u5934\u90e8\u9650\u5236 servicecomb.rest.client.http2.enabled 2.0.2 true \u662f\u5426\u542f\u7528Rest Transport Client\uff0cHTTP 2 servicecomb.rest.client.http2.useAlpnEnabled true servicecomb.rest.client.http2.multiplexingLimit -1 \u4e00\u6761\u8fde\u63a5\u4e2d\uff0c\u540c\u65f6\u652f\u6301\u7684\u6700\u5927\u7684stream\u5e76\u53d1\u91cf\uff0c-1\u8868\u793a\u4e0d\u9650\u5236\u3002\u6700\u7ec8\u4ee5\u670d\u52a1\u7aef\u7684concurrentStreams\u548c\u5ba2\u6237\u7aef\u7684multiplexingLimit\u8f83\u5c0f\u503c\u4e3a\u51c6\u3002 servicecomb.rest.client.http2.maxPoolSize 1 HTTP2 \u5ba2\u6237\u7aef\u8fde\u63a5\u6c60\u5927\u5c0f servicecomb.rest.client.http2.idleTimeoutInSeconds 2.0.1 0 HTTP2 \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u914d\u7f6e</li> </ul> <p>\u53ef\u4ee5\u9488\u5bf9\u6bcf\u4e2a\u5177\u4f53\u7684\u63a5\u53e3\u8bbe\u7f6e\u8d85\u65f6\uff0c\u914d\u7f6e\u9879 <code>request.${op-any-priority}.timeout</code> \uff0c \u5355\u4f4d\u662f\u6beb\u79d2\uff0c\u9ed8\u8ba4 30000\u3002 \u4e3e\u4f8b\uff1a</p> <pre><code>    servicecomb.request.timeout=30000\n    servicecomb.request.MyService.timeout=40000\n    servicecomb.request.MyService.MySchema.MyOperation.timeout=50000\n</code></pre> <ul> <li>SSL \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4f7f\u7528TLS\u901a\u4fe1\u3002 tag \u4e3a <code>rest.consumer</code>\u3002</p> <ul> <li>Proxy \u914d\u7f6e</li> </ul> <p>\u4e0d\u652f\u6301\u3002</p> <p>\u5907\u6ce8:</p> <ol> <li> <p> \u5982\u679cCPU\u6570\u5c0f\u4e8e8\uff0c\u5219\u53d6CPU\u6570\u3002\u5982\u679cCPU\u6570\u5927\u4e8e\u7b49\u4e8e8\uff0c\u5219\u4e3a8\u3002</p> </li> <li> <p> java-chassis \u9ed8\u8ba4\u91c7\u7528 vert.x \u7684 HTTP Client \u529f\u80fd\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u5bf9\u5e94\u7684\u662f verticle instances \u6570\u91cf\u3002 verticle instances \u6570\u91cf    \u4f1a\u5f71\u54cd\u5e76\u53d1\u8d44\u6e90\u5206\u914d\u3002\u6bd4\u5982\uff1a \u5982\u679c verticle instances \u4e3a 2\uff0c maxPoolSize \u4e3a 5\uff0c \u90a3\u4e48\u5b9e\u9645\u521b\u5efa\u7684\u8fde\u63a5\u6570\u4e3a 2*5=10\u3002</p> </li> </ol>"},{"location":"config-reference/service-center-client.html","title":"Service Center Client \u914d\u7f6e\u9879","text":"<ul> <li>\u57fa\u672c\u914d\u7f6e</li> </ul> \u914d\u7f6e\u9879\u540d\u79f0 \u7248\u672c \u7f3a\u7701\u503c \u529f\u80fd\u63cf\u8ff0 servicecomb.service.registry.client.eventLoopPoolSize 4 event loop \u7ebf\u7a0b\u6570 servicecomb.service.registry.client.instances 1 verticle instances \u6570\u91cf servicecomb.service.registry.client.httpVersion 1.1 HTTP\u534f\u8bae\u7248\u672c servicecomb.service.registry.client.timeout.connection 1000 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.service.registry.client.timeout.idle 60 HTTP \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 servicecomb.service.registry.client.workerPoolSize 4 work\u7ebf\u7a0b\u6c60\u5927\u5c0f\uff0c\u4ec5\u4f9b web socket \u4f7f\u7528 <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u914d\u7f6e</li> </ul> <p><code>servicecomb.service.registry.client.timeout.heartbeat</code> \u8bbe\u7f6e\u5fc3\u8df3\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e3a 3, 000 \u6beb\u79d2\uff1b   <code>servicecomb.service.registry.client.timeout.request</code> \u8bbe\u7f6e\u5176\u4ed6\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e3a 30, 000 \u6beb\u79d2\u3002</p> <ul> <li>SSL \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4f7f\u7528TLS\u901a\u4fe1\u3002 tag \u4e3a <code>sc.consumer</code>\u3002</p> <ul> <li>Proxy \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4ee3\u7406\u8bbe\u7f6e</p>"},{"location":"edge/by-servicecomb-sdk.html","title":"\u4f7f\u7528 Edge Service \u505a\u7f51\u5173","text":"<p>Edge Service \u662fServiceComb \u63d0\u4f9b\u7684JAVA\u7f51\u5173\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u3002Edge Service\u4f5c\u4e3a\u6574\u4e2a\u5fae\u670d\u52a1\u7cfb\u7edf\u5bf9\u5916\u7684\u63a5\u53e3\uff0c\u5411\u6700\u7ec8\u7528\u6237\u63d0\u4f9b\u670d\u52a1\uff0c\u63a5\u5165REST\u8bf7\u6c42\uff0c\u8f6c\u53d1\u7ed9\u5185\u90e8\u5fae\u670d\u52a1\uff0cEdge Service\u652f\u6301REST\u8bf7\u6c42\u548cHighway\u8bf7\u6c42\u7684\u8f6c\u53d1\u3002Edge Service\u4ee5\u5f00\u53d1\u6846\u67b6\u7684\u5f62\u5f0f\u63d0\u4f9b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u975e\u5e38\u7b80\u5355\u7684\u642d\u5efa\u4e00\u4e2aEdge Service\u670d\u52a1\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5c31\u53ef\u4ee5\u5b9a\u4e49\u8def\u7531\u8f6c\u53d1\u89c4\u5219\u3002\u540c\u65f6Edge Service\u652f\u6301\u5f3a\u5927\u7684\u6269\u5c55\u80fd\u529b\uff0c\u670d\u52a1\u6620\u5c04\u3001\u8bf7\u6c42\u89e3\u6790\u3001\u52a0\u5bc6\u89e3\u5bc6\u3001\u9274\u6743\u7b49\u903b\u8f91\u90fd\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u5b9e\u73b0\u3002</p> <p>Edge Service \u672c\u8eab\u4e5f\u662f\u4e00\u4e2a\u5fae\u670d\u52a1\uff0c\u9700\u9075\u5b88\u6240\u6709\u5fae\u670d\u52a1\u5f00\u53d1\u7684\u89c4\u5219\u3002\u5176\u672c\u8eab\u53ef\u4ee5\u90e8\u7f72\u4e3a\u591a\u5b9e\u4f8b\uff0c\u524d\u7aef\u4f7f\u7528\u8d1f\u8f7d\u5747\u8861\u88c5\u7f6e\u8fdb\u884c\u8d1f\u8f7d\u5206\u53d1\uff1b\u4e5f\u53ef\u4ee5\u90e8\u7f72\u4e3a\u4e3b\u5907\uff0c\u76f4\u63a5\u63a5\u5165\u7528\u6237\u8bf7\u6c42\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636eEdge Service\u627f\u8f7d\u7684\u903b\u8f91\u548c\u4e1a\u52a1\u8bbf\u95ee\u91cf\u3001\u7ec4\u7f51\u60c5\u51b5\u6765\u89c4\u5212\u3002</p>"},{"location":"edge/by-servicecomb-sdk.html#edge-service_1","title":"\u5f00\u53d1 Edge Service \u670d\u52a1","text":"<p>\u5f00\u53d1 Edge Service \u548c\u5f00\u53d1\u4e00\u4e2a\u666e\u901a\u7684\u5fae\u670d\u52a1\u6b65\u9aa4\u5dee\u4e0d\u591a\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4ece\u5bfc\u5165ServiceComb Edge Service Samples\u5165\u624b\u3002\u4ece\u5934\u642d\u5efa\u9879\u76ee\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a</p> <ul> <li>\u914d\u7f6e\u4f9d\u8d56\u5173\u7cfb</li> </ul> <p>\u5728\u9879\u76ee\u4e2d\u52a0\u5165edge-core\u7684\u4f9d\u8d56\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8Edge Service\u7684\u529f\u80fd\u3002</p> <pre><code>    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;edge-core&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n</code></pre> <ul> <li>\u5b9a\u4e49\u542f\u52a8\u7c7b</li> </ul> <p>\u548c\u5f00\u53d1\u666e\u901a\u5fae\u670d\u52a1\u4e00\u6837\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>@EnableServiceComb</code> \u7684\u65b9\u5f0f\u5c06\u670d\u52a1\u62c9\u8d77\u6765\u3002</p> <pre><code>@SpringBootApplication\n@EnableServiceComb\npublic class GatewayApplication {\n  public static void main(String[] args) throws Exception {\n    try {\n      new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(GatewayApplication.class).run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre> <ul> <li>\u589e\u52a0\u914d\u7f6e\u6587\u4ef6 microservice.yaml</li> </ul> <p>Edge Service\u672c\u8eab\u4e5f\u662f\u4e00\u4e2a\u5fae\u670d\u52a1\uff0c\u9075\u5faa\u5fae\u670d\u52a1\u67e5\u627e\u7684\u89c4\u5219\uff0c\u81ea\u5df1\u4e5f\u4f1a\u8fdb\u884c\u6ce8\u518c\u3002\u6ce8\u610f <code>application</code> \u4e0e\u9700\u8981\u8f6c\u53d1\u7684\u5fae\u670d\u52a1\u76f8\u540c\u3002\u5728\u4e0b\u9762\u7684\u914d\u7f6e\u4e2d\uff0c\u6307\u5b9a\u4e86Edge Service\u76d1\u542c\u7684\u5730\u5740\uff0c\u5904\u7406\u94fe\u7b49\u4fe1\u606f\u3002\u5176\u4e2dauth\u5904\u7406\u94fe\u662fDEMO\u9879\u76ee\u4e2d\u81ea\u5b9a\u4e49\u7684\u5904\u7406\u94fe\uff0c\u7528\u4e8e\u5b9e\u73b0\u8ba4\u8bc1\u3002\u540c\u65f6auth\u670d\u52a1\u672c\u8eab\uff0c\u4e0d\u7ecf\u8fc7\u8fd9\u4e2a\u5904\u7406\u94fe\uff0c\u76f8\u5f53\u4e8e\u4e0d\u9274\u6743\u3002</p> <pre><code>servicecomb:\n  service:\n    application: edge\n    name: edge\n    version: 0.0.1\n    registry:\n      address: http://127.0.0.1:30100\n  rest:\n    address: 127.0.0.1:18080\n  handler:\n    chain:\n      Consumer:\n        default: auth,loadbalance\n        service:\n          auth: loadbalance\n</code></pre>"},{"location":"edge/by-servicecomb-sdk.html#_1","title":"\u5de5\u4f5c\u6d41\u7a0b","text":"<p>Edge Service\u7684\u5de5\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff0c\u84dd\u8272\u80cc\u666f\u90e8\u5206\u5728Eventloop\u7ebf\u7a0b\u4e2d\u6267\u884c\uff0c\u9ec4\u8272\u80cc\u666f\u90e8\u5206\uff1a   * \u5982\u679c\u5de5\u4f5c\u4e8ereactive\u6a21\u5f0f\uff0c\u5219\u76f4\u63a5\u5728Eventloop\u7ebf\u7a0b\u6267\u884c   * \u5982\u679c\u5de5\u4f5c\u4e8e\u7ebf\u7a0b\u6c60\u6a21\u5f0f\uff0c\u5219\u5728\u7ebf\u7a0b\u6c60\u7684\u7ebf\u7a0b\u4e2d\u6267\u884c </p>"},{"location":"edge/by-servicecomb-sdk.html#header","title":"\u5b9a\u5236\u516c\u5171\u8f6c\u53d1 Header","text":"<p>Edge Service \u5728\u8f6c\u53d1\u8bf7\u6c42\u7684\u65f6\u5019, \u4f1a\u9ed8\u8ba4\u8fc7\u6ee4\u6389 <code>\u516c\u5171\u8bf7\u6c42\u5934</code> \u3002 \u4e5f\u5c31\u662f\u9664\u4e86 Provider \u7aef\u663e\u793a \u58f0\u660e\u9700\u8981\u7684 <code>HEADER</code> \u5916\uff0c \u5176\u4ed6\u7684 header \u5728\u8f6c\u53d1\u7684\u65f6\u5019\u90fd\u4f1a\u4e22\u5931\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u76f8\u5173\u53c2\u6570\u4fdd\u7559 \u516c\u5171\u8bf7\u6c42\u5934\u3002</p> <pre><code>servicecomb:\n  edge:\n    filter:\n      addHeader:\n        # \u5f00\u542f \u516c\u5171\u8bf7\u6c42\u5934\u4fdd\u7559\u529f\u80fd\u3002\u9ed8\u8ba4 false\n        enabled: true\n        # \u8981\u4fdd\u7559\u7684\u516c\u5171\u8bf7\u6c42\u5934\uff0c\u4ee5\u9017\u53f7\u9694\u5f00\n        allowedHeaders: external_1,external_2\n</code></pre> <p>\u5982\u679c\u5bf9\u63a5\u4e86\u914d\u7f6e\u4e2d\u5fc3\uff0c \u53ef\u4ee5\u5728\u914d\u7f6e\u4e2d\u5fc3\u52a8\u6001\u4fee\u6539 \u914d\u7f6e <code>servicecomb.edge.filter.addHeader.enabled</code> \u548c <code>servicecomb.edge.filter.addHeader.allowedHeaders</code> \uff0c \u914d\u7f6e\u52a8\u6001\u751f\u6548\u3002</p>"},{"location":"edge/by-servicecomb-sdk.html#_2","title":"\u5b9a\u5236\u8def\u7531\u89c4\u5219","text":"<p>\u4f7f\u7528Edge Service\u7684\u6838\u5fc3\u5de5\u4f5c\u662f\u914d\u7f6e\u8def\u7531\u89c4\u5219\u3002\u573a\u666f\u4e0d\u540c\uff0c\u89c4\u5219\u4e5f\u4e0d\u540c\u3002 \u8def\u7531\u89c4\u5219\u7531\u4e00\u7cfb\u5217AbstractEdgeDispatcher\u7ec4\u6210\u3002Edge Service\u63d0\u4f9b\u4e86\u51e0\u4e2a\u5e38\u89c1\u7684Dispatcher\uff0c\u901a\u8fc7\u914d\u7f6e\u5373\u53ef\u542f\u7528\uff0c\u5982\u679c\u8fd9\u4e9bDispatcher\u4e0d\u6ee1\u8db3\u4e1a\u52a1\u573a\u666f\u9700\u8981\uff0c\u8fd8\u53ef\u4ee5\u81ea\u5b9a\u4e49\u3002</p> <ul> <li>\u4f7f\u7528 DefaultEdgeDispatcher</li> </ul> <p>DefaultEdgeDispatcher\u662f\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u3001\u5bb9\u6613\u7ba1\u7406\u7684Dispatcher\uff0c\u4f7f\u7528\u8fd9\u4e2aDispatcher\uff0c\u7528\u6237\u4e0d\u7528\u52a8\u6001\u7ba1\u7406\u8f6c\u53d1\u89c4\u5219\uff0c\u5e94\u7528\u4e8e\u5b9e\u9645\u7684\u4e1a\u52a1\u573a\u666f\u975e\u5e38\u65b9\u4fbf\uff0c\u8fd9\u4e2a\u4e5f\u662f\u63a8\u8350\u7684\u4e00\u79cd\u7ba1\u7406\u673a\u5236\u3002\u5b83\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n      edge:\n        default:\n          enabled: true\n          prefix: rest\n          withVersion: true\n          prefixSegmentCount: 1\n</code></pre> <p>\u5e38\u89c1\u7684\u8fd9\u4e9b\u914d\u7f6e\u9879\u7684\u793a\u4f8b\u53ca\u542b\u4e49\u5982\u4e0b:</p> <ul> <li>[prefix=rest;withVersion=true;prefixSegmentCount=1]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /xService/v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ea\u8f6c\u53d1\u5230[1.0.0-2.0.0)\u7248\u672c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=true;prefixSegmentCount=2]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ea\u8f6c\u53d1\u5230[1.0.0-2.0.0)\u7248\u672c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=true;prefixSegmentCount=3]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ea\u8f6c\u53d1\u5230[1.0.0-2.0.0)\u7248\u672c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=false;prefixSegmentCount=1]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /xService/v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ef\u80fd\u8f6c\u53d1\u5230\u4efb\u610f\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=false;prefixSegmentCount=2]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\uff0c\u8bf7\u6c42\u53ef\u80fd\u8f6c\u53d1\u5230\u4efb\u610f\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=false;prefixSegmentCount=2]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/abc\uff0c\uff0c\u8bf7\u6c42\u53ef\u80fd\u8f6c\u53d1\u5230\u4efb\u610f\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> </ul> <p>withVersion\u914d\u7f6e\u9879\u63d0\u4f9b\u4e86\u5ba2\u6237\u7aef\u7070\u5ea6\u89c4\u5219\uff0c\u53ef\u4ee5\u8ba9\u5ba2\u6237\u7aef\u6307\u5b9a\u8bbf\u95ee\u7684\u670d\u52a1\u7aef\u7248\u672c\u3002Edge Service\u8fd8\u5305\u542b\u6839\u636e\u63a5\u53e3\u517c\u5bb9\u6027\u81ea\u52a8\u8def\u7531\u7684\u529f\u80fd\uff0c\u8bf7\u6c42\u4f1a\u8f6c\u53d1\u5230\u5305\u542b\u4e86\u8be5\u63a5\u53e3\u7684\u5b9e\u4f8b\u3002\u5047\u8bbe\u67d0\u5fae\u670d\u52a1\uff0c\u517c\u5bb9\u89c4\u5212\u4e3a\u6240\u6709\u9ad8\u7248\u672c\u5fc5\u987b\u517c\u5bb9\u4f4e\u7248\u672c\uff0c\u90e8\u7f72\u4e86\u4ee5\u4e0b\u7248\u672c\u5b9e\u4f8b\uff1a</p> <ul> <li> <p>1.0.0\uff0c\u63d0\u4f9b\u4e86operation1</p> </li> <li> <p>1.1.0\uff0c\u63d0\u4f9b\u4e86operation1\u3001operation2</p> </li> </ul> <p>Edge Service\u5728\u8f6c\u53d1operation1\u65f6\uff0c\u4f1a\u81ea\u52a8\u4f7f\u75281.0.0+\u7684\u89c4\u5219\u6765\u8fc7\u6ee4\u5b9e\u4f8b</p> <p>Edge Service\u5728\u8f6c\u53d1operation2\u65f6\uff0c\u4f1a\u81ea\u52a8\u4f7f\u75281.1.0+\u7684\u89c4\u5219\u6765\u8fc7\u6ee4\u5b9e\u4f8b</p> <p>\u4ee5\u4e0a\u8fc7\u7a0b\u7528\u6237\u4e0d\u5fc5\u505a\u4efb\u4f55\u5e72\u9884\uff0c\u5168\u81ea\u52a8\u5b8c\u6210\uff0c\u4ee5\u907f\u514d\u5c06\u65b0\u7248\u672c\u7684operation\u8f6c\u53d1\u5230\u65e7\u7248\u672c\u7684\u5b9e\u4f8b\u4e2d\u53bb\u3002</p> <ul> <li>\u4f7f\u7528 URLMappedEdgeDispatcher</li> </ul> <p>URLMappedEdgeDispatcher \u5141\u8bb8\u7528\u6237\u914d\u7f6eURL\u548c\u5fae\u670d\u52a1\u7684\u6620\u5c04\u5173\u7cfb\u3002\u4f7f\u7528\u5b83\u53ef\u4ee5\u975e\u5e38\u7075\u6d3b\u7684\u5b9a\u4e49\u54ea\u4e9bURL\u8f6c\u53d1\u5230\u54ea\u4e9b\u5fae\u670d\u52a1\u3002\u5b83\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n      edge:\n        url:\n          enabled: true\n          ## \u9ed8\u8ba4\u503c\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u914d\u7f6e\n          pattern: \"/(.*)\"\n          mappings:\n            businessV1:\n              prefixSegmentCount: 1\n              path: \"/url/business/v1/.*\"\n              microserviceName: business\n              versionRule: 1.0.0-2.0.0\n            businessV2:\n              prefixSegmentCount: 1\n              path: \"/url/business/v2/.*\"\n              microserviceName: business\n              versionRule: 2.0.0-3.0.0\n</code></pre> <p><code>businessV1</code> \u914d\u7f6e\u9879\u8868\u793a\u7684\u542b\u4e49\u662f\u5c06\u8bf7\u6c42\u8def\u5f84\u4e3a <code>/url/business/v1/.*</code> \u7684\u8bf7\u6c42\uff0c\u8f6c\u53d1\u5230<code>business</code> \u8fd9\u4e2a\u5fae\u670d\u52a1\uff0c\u5e76\u4e14\u53ea\u8f6c\u53d1\u5230\u7248\u672c\u53f7\u4e3a1.0.0-2.0.0\u7684\u5b9e\u4f8b\uff08\u4e0d\u542b2.0.0\uff09\u3002\u8f6c\u53d1\u7684\u65f6\u5019URL\u4e3a <code>/business/v1/.*</code> \u3002path\u4f7f\u7528\u7684\u662fJDK\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u67e5\u770bPattern\u7c7b\u7684\u8bf4\u660e\u3002prefixSegmentCount\u8868\u793a\u524d\u7f00\u7684URL Segment\u6570\u91cf\uff0c\u524d\u7f00\u4e0d\u5305\u542b\u5728\u8f6c\u53d1\u7684URL\u8def\u5f84\u4e2d\u3002\u6709\u4e09\u79cd\u5f62\u5f0f\u7684versionRule\u53ef\u4ee5\u6307\u5b9a\u30022.0.0-3.0.0\u8868\u793a\u7248\u672c\u8303\u56f4\uff0c\u542b2.0.0\uff0c\u4f46\u4e0d\u542b3.0.0\uff1b2.0.0+\u8868\u793a\u5927\u4e8e2.0.0\u7684\u7248\u672c\uff0c\u542b2.0.0\uff1b2.0.0\u8868\u793a\u53ea\u8f6c\u53d1\u52302.0.0\u7248\u672c\u30022\uff0c2.0\u7b49\u4ef7\u4e8e2.0.0\u3002</p> <p>\u4ece\u4e0a\u9762\u7684\u914d\u7f6e\u53ef\u4ee5\u770b\u51fa\uff0cURLMappedEdgeDispatcher\u4e5f\u652f\u6301\u5ba2\u6237\u7aef\u7070\u5ea6\u3002\u5f53\u7136\u914d\u7f6e\u9879\u4f1a\u6bd4DefaultEdgeDispatcher\u591a\u3002URLMappedEdgeDispatcher\u652f\u6301\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u52a8\u6001\u7684\u4fee\u6539\u914d\u7f6e\uff0c\u8c03\u6574\u8def\u7531\u89c4\u5219\u3002</p> <ul> <li>\u4f7f\u7528 CommonHttpEdgeDispatcher</li> </ul> <p>CommonHttpEdgeDispatcher \u80fd\u591f\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u76d1\u542c HTTP \u6216\u8005 HTTP 2 \u534f\u8bae\u7684 Provider\uff0c \u5bf9\u4e8e Provider \u7684\u5f00\u53d1\u6846\u67b6\u6ca1\u6709\u9650\u5236\uff0c\u4e5f\u4e0d \u8981\u6c42 Provider \u6ce8\u518c\u5951\u7ea6\u4fe1\u606f\u3002 </p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n      edge:\n        http:\n          enabled: true\n          ## \u9ed8\u8ba4\u503c\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u914d\u7f6e\n          pattern: \"/(.*)\" \n          mappings:\n            businessV2:\n              prefixSegmentCount: 1\n              path: \"/http/business/v2/.*\"\n              microserviceName: business\n              versionRule: 2.0.0\n</code></pre> <p>CommonHttpEdgeDispatcher \u914d\u7f6e\u9879\u7684\u542b\u4e49\u548c URLMappedEdgeDispatcher \u7c7b\u4f3c\u3002</p> <ul> <li>\u81ea\u5b9a\u4e49 Dispatcher</li> </ul> <p>\u81ea\u5b9a\u4e49Dispatcher\u5305\u542b\u4e24\u4e2a\u6b65\u9aa4\uff1a</p> <ol> <li>\u5b9e\u73b0AbstractEdgeDispatcher</li> <li>\u901a\u8fc7SPI\u53d1\u5e03\uff1a\u589e\u52a0\u6587\u4ef6META-INF/services/org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher\uff0c\u5e76\u5199\u5165\u5b9e\u73b0\u7c7b</li> </ol> <p>\u8be6\u7ec6\u7684\u4ee3\u7801\u7ec6\u8282\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u7ae0\u8282\"DEMO\u529f\u80fd\u8bf4\u660e\"\u3002\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u53c2\u8003DefaultEdgeDispatcher\u7b49\u4ee3\u7801\u6765\u5b9a\u4e49\u81ea\u5df1\u7684Dispatcher\u3002</p> <ul> <li>\u8fdb\u884c\u8ba4\u8bc1\u9274\u6743\u548c\u5176\u4ed6\u4e1a\u52a1\u5904\u7406</li> </ul> <p>\u901a\u8fc7Edge Servie\u5de5\u4f5c\u6d41\u7a0b\u53ef\u4ee5\u770b\u51fa\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6765\u6269\u5c55Edge Service\u7684\u529f\u80fd\uff0c\u5305\u62ecDispatcher\u3001HttpServerFilter\u3001Handler\u3001HttpClientFilter\u7b49\u3002\u6bd4\u8f83\u5e38\u7528\u548c\u7b80\u5355\u7684\u662f\u901a\u8fc7Handler\u6765\u6269\u5c55\u3002DEMO\u91cc\u9762\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7Handler\u6269\u5c55\u6765\u5b9e\u73b0\u9274\u6743\u3002\u8be6\u7ec6\u7684\u4ee3\u7801\u7ec6\u8282\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u7ae0\u8282\"DEMO\u529f\u80fd\u8bf4\u660e\"\u3002</p>"},{"location":"edge/by-servicecomb-sdk.html#_3","title":"\u90e8\u7f72\u793a\u4f8b","text":""},{"location":"edge/by-servicecomb-sdk.html#_4","title":"\u5de5\u4f5c\u6a21\u5f0f","text":"<ul> <li>reactive (\u9ed8\u8ba4)</li> </ul> <p>Edge Service\u9ed8\u8ba4\u5de5\u4f5c\u4e8e\u9ad8\u6027\u80fd\u7684reactive\u6a21\u5f0f\uff0c\u6b64\u6a21\u5f0f\u8981\u6c42\u5de5\u4f5c\u4e8eEdge Service\u8f6c\u53d1\u6d41\u7a0b\u4e2d\u7684\u4e1a\u52a1\u4ee3\u7801\u4e0d\u80fd\u6709\u4efb\u4f55\u7684\u963b\u585e\u64cd\u4f5c\uff0c\u5305\u62ec\u4e0d\u9650\u4e8e\uff1a</p> <ul> <li> <p>\u8fdc\u7a0b\u540c\u6b65\u8c03\u7528\uff0c\u6bd4\u5982\u540c\u6b65\u67e5\u8be2\u6570\u636e\u5e93\u3001\u540c\u6b65\u8c03\u7528\u5fae\u670d\u52a1\uff0c\u6216\u662f\u540c\u6b65\u67e5\u8be2\u8fdc\u7a0b\u7f13\u5b58\u7b49\u7b49</p> </li> <li> <p>\u4efb\u4f55\u7684sleep\u8c03\u7528</p> </li> <li> <p>\u4efb\u4f55\u7684wait\u8c03\u7528</p> </li> <li> <p>\u8d85\u5927\u7684\u5faa\u73af</p> </li> </ul> <p>Edge Service\u7684\u5e95\u5c42\u662f\u57fa\u4e8enetty\u7684vertx\uff0c\u4ee5\u4e0a\u7ea6\u675f\u5373\u662fnetty\u7684reactive\u6a21\u5f0f\u7ea6\u675f\u3002</p> <p></p> <ul> <li>\u7ebf\u7a0b\u6c60</li> </ul> <p>\u5982\u679c\u4e1a\u52a1\u6a21\u578b\u65e0\u6cd5\u6ee1\u8db3reactive\u8981\u6c42\uff0c\u5219\u9700\u8981\u4f7f\u7528\u7ebf\u7a0b\u6c60\u6a21\u5f0f\u3002</p> <p>\u6b64\u65f6\u9700\u8981\u5728Edge Service\u7684microservice.yaml\u4e2d\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  executors:\n    default: servicecomb.executor.groupThreadPool\n</code></pre> <p>\u8fd9\u91cc\u7684servicecomb.executor.groupThreadPool\u662fServiceComb\u5185\u7f6e\u7684\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\u5bf9\u5e94\u7684spring bean\u7684beanId\uff1b\u4e1a\u52a1\u53ef\u4ee5\u5b9a\u5236\u81ea\u5df1\u7684\u7ebf\u7a0b\u6c60\uff0c\u5e76\u58f0\u660e\u4e3a\u4e00\u4e2abean\uff0c\u5176beanId\u4e5f\u53ef\u4ee5\u914d\u7f6e\u5230\u8fd9\u91cc\u3002</p> <p></p>"},{"location":"edge/by-servicecomb-sdk.html#demo","title":"DEMO\u529f\u80fd\u8bf4\u660e","text":"<p>DEMO \u6e90\u7801\u8bf7\u53c2\u8003 edge service demo</p> <ul> <li>\u6ce8\u518cDispatcher</li> </ul> <p>\u5b9e\u73b0\u63a5\u53e3org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher\uff0c\u6216\u4ece org.apache.servicecomb.edge.core.AbstractEdgeDispatcher\u7ee7\u627f\uff0c\u5b9e\u73b0\u81ea\u5df1\u7684dispatcher\u529f\u80fd\u3002</p> <p>\u5b9e\u73b0\u7c7b\u901a\u8fc7java\u6807\u51c6\u7684SPI\u673a\u5236\u6ce8\u518c\u5230\u7cfb\u7edf\u4e2d\u53bb\u3002</p> <p>Dispatcher\u9700\u8981\u5b9e\u73b02\u4e2a\u65b9\u6cd5\uff1a</p> <ul> <li>getOrder</li> </ul> <p>Dispatcher\u9700\u8981\u5411vertx\u6ce8\u5165\u8def\u7531\u89c4\u5219\uff0c\u8def\u7531\u89c4\u5219\u4e4b\u95f4\u662f\u6709\u4f18\u5148\u7ea7\u987a\u5e8f\u5173\u7cfb\u7684\u3002</p> <p>\u7cfb\u7edf\u4e2d\u6240\u6709\u7684Dispatcher\u6309\u7167getOrder\u7684\u8fd4\u56de\u503c\u6309\u4ece\u5c0f\u5230\u5927\u7684\u65b9\u5f0f\u6392\u5e8f\uff0c\u6309\u987a\u5e8f\u521d\u59cb\u5316\u3002</p> <p>\u5982\u679c2\u4e2aDispatcher\u7684getOrder\u8fd4\u56de\u503c\u76f8\u540c\uff0c\u52192\u8005\u7684\u987a\u5e8f\u4e0d\u53ef\u9884\u77e5\u3002</p> <ul> <li>init</li> </ul> <p>init\u65b9\u6cd5\u5165\u53c2\u4e3avertx\u6846\u67b6\u4e2d\u7684io.vertx.ext.web.Router\uff0c\u9700\u8981\u901a\u8fc7\u8be5\u5bf9\u8c61\u5b9e\u73b0\u8def\u7531\u89c4\u5219\u7684\u5b9a\u5236\u3002</p> <p>\u53ef\u4ee5\u6307\u5b9a\u6ee1\u8db3\u8981\u6c42\u7684url\uff0c\u662f\u5426\u9700\u8981\u5904\u7406cookie\u3001\u662f\u5426\u9700\u8981\u5904\u7406body\u3001\u4f7f\u7528\u54ea\u4e2a\u81ea\u5b9a\u4e49\u65b9\u6cd5\u5904\u7406\u6536\u5230\u7684\u8bf7\u6c42\u7b49\u7b49</p> <p>\u66f4\u591a\u8def\u7531\u89c4\u5219\u7ec6\u8282\u8bf7\u53c2\u8003vertx\u5b98\u65b9\u6587\u6863\uff1avertx\u8def\u7531\u673a\u5236</p> <p>\u63d0\u793a\uff1a</p> <p>\u591a\u4e2aDispatcher\u53ef\u4ee5\u8bbe\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u8986\u76d6\u5230\u76f8\u540c\u7684url\u3002</p> <p>\u5047\u8bbeDispatcher A\u548cB\u90fd\u53ef\u4ee5\u5904\u7406\u540c\u4e00\u4e2aurl\uff0c\u5e76\u4e14A\u4f18\u5148\u7ea7\u66f4\u9ad8\uff0c\u5219\uff1a</p> <ul> <li> <p>\u5982\u679cA\u5904\u7406\u5b8c\uff0c\u65e2\u6ca1\u5e94\u7b54\uff0c\u4e5f\u6ca1\u6709\u8c03\u7528RoutingContext.next()\uff0c\u5219\u5c5e\u4e8ebug\uff0c\u672c\u6b21\u8bf7\u6c42\u6302\u6b7b\u4e86</p> </li> <li> <p>\u5982\u679cA\u5904\u7406\u5b8c\uff0c\u7136\u540e\u8c03\u7528\u4e86RoutingContext.next()\uff0c\u5219\u4f1a\u5c06\u8bf7\u6c42\u8f6c\u79fb\u7ed9B\u5904\u7406</p> </li> <li> <p>\u8f6c\u53d1\u8bf7\u6c42</p> </li> </ul> <p>\u6ce8\u518c\u8def\u7531\u65f6\uff0c\u6307\u5b9a\u4e86\u4f7f\u7528\u54ea\u4e2a\u65b9\u6cd5\u6765\u5904\u7406\u8bf7\u6c42\uff08\u4e0b\u9762\u4f7f\u7528onRequest\u6765\u6307\u4ee3\u8be5\u65b9\u6cd5\uff09\uff0c\u5728onRequest\u4e2d\u5b9e\u73b0\u8f6c\u53d1\u903b\u8f91\u3002</p> <p>\u65b9\u6cd5\u539f\u578b\u4e3a\uff1a</p> <pre><code>void onRequest(RoutingContext context)\n</code></pre> <p>\u7cfb\u7edf\u5c01\u88c5\u4e86org.apache.servicecomb.edge.core.EdgeInvocation\u6765\u5b9e\u73b0\u8f6c\u53d1\u529f\u80fd\uff0c\u81f3\u5c11\u9700\u8981\u51c6\u5907\u4ee5\u4e0b\u53c2\u6570\uff1a</p> <ul> <li> <p>microserviceName\uff0c\u4e1a\u52a1\u81ea\u884c\u5236\u5b9a\u89c4\u5219\uff0c\u53ef\u4ee5\u5728url\u4f20\u5165\uff0c\u6216\u662f\u6839\u636eurl\u67e5\u627e\u7b49\u7b49</p> </li> <li> <p>context\uff0c\u5373onRequest\u7684\u5165\u53c2</p> </li> <li> <p>path\uff0c\u8f6c\u53d1\u76ee\u6807\u7684url</p> </li> <li> <p>httpServerFilters\uff0cDispatcher\u7236\u7c7b\u5df2\u7ecf\u521d\u59cb\u5316\u597d\u7684\u6210\u5458\u53d8\u91cf</p> </li> </ul> <pre><code> EdgeInvocation edgeInvocation = new EdgeInvocation();\n edgeInvocation.init(microserviceName, context, path, httpServerFilters);\n edgeInvocation.edgeInvoke();\n</code></pre> <p>edgeInvoke\u8c03\u7528\u5185\u90e8\uff0c\u4f1a\u4f5c\u4e3aServiceComb\u6807\u51c6consumer\u53bb\u8f6c\u53d1\u8c03\u7528\u3002</p> <p>\u4f5c\u4e3a\u6807\u51c6consumer\uff0c\u610f\u5473\u7740ServiceComb\u6240\u6709\u6807\u51c6\u7684\u6cbb\u7406\u80fd\u529b\u5728\u8fd9\u91cc\u90fd\u662f\u751f\u6548\u7684\u3002</p> <ul> <li>\u8bbe\u7f6e\u517c\u5bb9\u89c4\u5219</li> </ul> <p>\u4e0d\u540c\u7684\u4e1a\u52a1\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u517c\u5bb9\u89c4\u5212\uff0cservicecomb\u9ed8\u8ba4\u7684\u517c\u5bb9\u89c4\u5219\uff0c\u8981\u6c42\u6240\u6709\u65b0\u7248\u672c\u517c\u5bb9\u65e7\u7248\u672c\u3002\u5982\u679c\u6ee1\u8db3\u8fd9\u4e2a\u8981\u6c42\uff0c\u5219\u4e0d\u5fc5\u505a\u4efb\u4f55\u7279\u6b8a\u7684\u8bbe\u7f6e\u3002</p> <p>\u8fd8\u6709\u4e00\u79cd\u5178\u578b\u7684\u89c4\u5212\uff1a</p> <ul> <li> <p>1.0.0-2.0.0\u5185\u90e8\u517c\u5bb9\uff0curl\u4e3a/microserviceName/v1/\u2026.\u7684\u5f62\u5f0f</p> </li> <li> <p>2.0.0-3.0.0\u5185\u90e8\u517c\u5bb9\uff0curl\u4e3a/microserviceName/v2/\u2026.\u7684\u5f62\u5f0f</p> </li> </ul> <p>\u2026\u2026</p> <p>\u5404\u5927\u7248\u672c\u4e4b\u95f4\u4e0d\u517c\u5bb9</p> <p>\u6b64\u65f6\uff0c\u5f00\u53d1\u4eba\u5458\u9700\u8981\u9488\u5bf9EdgeInvocation\u8bbe\u7f6e\u517c\u5bb9\u89c4\u5219\uff1a</p> <pre><code>private CompatiblePathVersionMapper versionMapper = new CompatiblePathVersionMapper();\n\n\u2026\u2026\n\nedgeInvocation.setVersionRule(versionMapper.getOrCreate(pathVersion).getVersionRule());\n</code></pre> <p>versionMapper\u7684\u4f5c\u7528\u662f\u5c06v1\u6216\u662fv2\u8fd9\u6837\u7684\u4e32\uff0c\u8f6c\u4e3a1.0.0-2.0.0\u62162.0.0-3.0.0\u8fd9\u6837\u7684\u517c\u5bb9\u89c4\u5219\u3002</p> <ul> <li>\u9274\u6743</li> </ul> <p>Edge Service\u662f\u7cfb\u7edf\u7684\u8fb9\u754c\uff0c\u5bf9\u4e8e\u5f88\u591a\u8bf7\u6c42\u9700\u8981\u6267\u884c\u9274\u6743\u903b\u8f91\u3002</p> <p>\u57fa\u4e8e\u6807\u51c6\u7684ServiceComb\u673a\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7handler\u6765\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002</p> <p>\u6700\u7b80\u5355\u7684\u793a\u610f\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public class AuthHandler implements Handler {\n  private static Logger LOGGER = LoggerFactory.getLogger(AuthHandler.class);\n\n  private static Auth auth;\n\n  static {\n    auth = Invoker.createProxy(\"auth\", \"auth\", Auth.class);\n  }\n\n  @Override\n  public void init(MicroserviceMeta microserviceMeta, InvocationType invocationType) {\n  }\n\n  @Override\n  public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {\n    if (invocation.getHandlerContext().get(EdgeConst.ENCRYPT_CONTEXT) != null) {\n      invocation.next(asyncResp);\n      return;\n    }\n\n    auth.auth(\"\").whenComplete((succ, e) -&gt; doHandle(invocation, asyncResp, succ, e));\n  }\n</code></pre> <p>Auth\u8868\u793a\u662f\u9274\u6743\u5fae\u670d\u52a1\u63d0\u4f9b\u7684\u63a5\u53e3\uff0cInvoker.createProxy(\"auth\", \"auth\", Auth.class)\u662f\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4e2dconsumer\u7684\u5e95\u5c42api\uff0c\u4e0e@ReferenceRpc\u662f\u7b49\u6548\uff0c\u53ea\u4e0d\u8fc7\u4e0d\u9700\u8981\u4f9d\u8d56spring bean\u673a\u5236\u3002</p> <p>Auth\u63a5\u53e3\u5b8c\u5168\u7531\u4e1a\u52a1\u5b9a\u4e49\uff0c\u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u793a\u4f8b\u3002</p> <p>Handler\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u914d\u7f6e\u5230edge service\u7684microservice.yaml\u4e2d\uff1a</p> <pre><code>servicecomb:\n  handler:\n    chain:\n      Consumer:\n        default: auth,\u2026\u2026\n        service:\n          auth: \u2026\u2026\n</code></pre> <p>\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u8868\u793a\u8f6c\u53d1\u8bf7\u6c42\u7ed9\u6240\u6709\u7684\u5fae\u670d\u52a1\u90fd\u5fc5\u987b\u7ecf\u8fc7\u9274\u6743\uff0c\u4f46\u662f\u8c03\u7528\u9274\u6743\u5fae\u670d\u52a1\u65f6\u4e0d\u9700\u8981\u9274\u6743\u3002</p> <p>\u7279\u522b\u6ce8\u610f\uff1a  edge service \u7684\u5b9a\u5236\u903b\u8f91\uff0c\u5305\u62ec Dispatcher, Handler, HttpServerFilter \u7b49\uff0c\u5747\u5728 \u4e8b\u4ef6\u6d3e\u53d1\u7ebf\u7a0b event-loop \u4e2d\u6267\u884c\uff0c \u4efb\u4f55\u5b9a\u5236\u903b\u8f91\u5fc5\u987b\u4e0d\u80fd\u591f\u5b58\u5728\u963b\u585e\u903b\u8f91\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4 edge service \u51fa\u73b0\u6b7b\u9501\u3002 \u6bd4\u5982\u4e0a\u9762\u9274\u6743\u7684\u903b\u8f91\uff0c\u5fc5\u987b\u4f7f\u7528\u5f02\u6b65\u63a5\u53e3\uff0c\u800c\u4e0d\u80fd\u591f\u53c2\u8003 provider \u5f00\u53d1\u7684\u903b\u8f91\u90a3\u6837\uff0c\u4f7f\u7528\u540c\u6b65\u63a5\u53e3\u3002 \u5efa\u8bae\u4e1a\u52a1\u4f7f\u7528 \u5b9a\u5236\u903b\u8f91\u7684\u65f6\u5019\uff0c\u5bf9 edge service \u8fdb\u884c\u5e76\u53d1\u6d4b\u8bd5\uff0c\u6b7b\u9501\u95ee\u9898\u4f1a\u5728\u5e76\u53d1\u6570\u5927\u4e8e event-loop \u7ebf\u7a0b\u6570\u91cf\u7684\u60c5\u51b5\u4e0b\u51fa\u73b0\u3002 \uff08event-loop\u7ebf\u7a0b\u6570\u91cf\u9ed8\u8ba4\u662fCPU\u6838\u6570\u7684\u4e24\u500d\uff0c \u53ef\u4ee5\u901a\u8fc7 jstack \u547d\u4ee4\u67e5\u770b\u7ebf\u7a0b\u3002\uff09</p>"},{"location":"edge/nginx.html","title":"nginx \u7f51\u5173\u7b80\u5355\u4ecb\u7ecd","text":""},{"location":"edge/nginx.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":""},{"location":"edge/nginx.html#confd","title":"confd","text":"<p>confd\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u914d\u7f6e\u7ba1\u7406\u5de5\u5177\uff0c\u6e90\u7801\u5730\u5740\uff1ahttps://github.com/kelseyhightower/confd\uff0c \u5b83\u53ef\u4ee5\u5c06\u914d\u7f6e\u4fe1\u606f\u5b58\u50a8\u5728etcd\u3001consul\u3001dynamodb\u3001redis\u4ee5\u53cazookeeper\u7b49\u3002confd\u5b9a\u671f\u4f1a\u4ece\u8fd9\u4e9b\u5b58\u50a8\u8282\u70b9pull\u6700 \u65b0\u7684\u914d\u7f6e\uff0c\u7136\u540e\u91cd\u65b0\u52a0\u8f7d\u670d\u52a1\uff0c\u5b8c\u6210\u914d\u7f6e\u6587\u4ef6\u7684\u66f4\u65b0\u3002</p>"},{"location":"edge/nginx.html#nginx_1","title":"Nginx","text":"<p>Nginx (engine x)\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684HTTP\u548c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5177\u6709\u8d1f\u8f7d\u5747\u8861\u7684\u529f\u80fd\u3002\u8be6\u60c5\u8bf7 \u53c2\u8003http://www.nginx.cn/doc/\u3002</p>"},{"location":"edge/nginx.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u672c\u5c0f\u8282\u7b80\u5355\u4ecb\u7ecd Nginx \u5bf9\u63a5\u670d\u52a1\u4e2d\u5fc3\uff0c\u4ece\u670d\u52a1\u4e2d\u5fc3\u4e2d\u83b7\u53d6\u670d\u52a1\u4fe1\u606f\u5e76\u901a\u8fc7 confd \u52a8\u6001\u66f4\u65b0 Nginx \u7684\u914d\u7f6e\u3002</p> <p>\u4f7f\u7528 nginx+confd \u52a8\u6001\u53cd\u5411\u4ee3\u7406\u7684\u5b9e\u73b0\u6b65\u9aa4\u53ef\u53c2\u8003\u6587 \u7ae0http://www.cnblogs.com/Anker/p/6112022.html\u3002</p> <ul> <li>\u65b9\u6cd5\u4e00\uff1ahttp\u8c03\u7528</li> </ul> <p>\u670d\u52a1\u4e2d\u5fc3\u5f00\u653ehttp\u63a5\u53e3\u5747\u9700\u8981\u6dfb\u52a0\u79df\u6237\u5934\u90e8\u4fe1\u606f\uff1a\u201cX-Tenant-Name:tenantName\u201d\uff0ctenameName\u4e3a\u79df\u6237\u540d\uff0c\u9ed8   \u8ba4\u4e3adefault\uff0c\u4f8b\u5982\"X-Tenant-Name:default\"\u3002</p> <ul> <li> <p>\u68c0\u67e5\u670d\u52a1\u4e2d\u5fc3\u5065\u5eb7\u72b6\u6001</p> <pre><code>    ```\n    GET 127.0.0.1:30100/health\n    ```\n</code></pre> </li> <li> <p>\u83b7\u53d6\u6240\u6709\u5fae\u670d\u52a1\u4fe1\u606f</p> <pre><code>    ```\n    GET 127.0.0.1:30100/registry/v3/microservices\n    ```\n</code></pre> </li> <li> <p>\u83b7\u53d6\u6307\u5b9aid\u7684\u5fae\u670d\u52a1\u4fe1\u606f</p> <p>\u9996\u5148\u6839\u636e\u5fae\u670d\u52a1\u4fe1\u606f\u83b7\u53d6serviceId</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/existence?type=microservice&amp;appId={appId}&amp;serviceName={serviceName}&amp;version={version}\n</code></pre> <p>\u6839\u636e\u4e0a\u8ff0\u63a5\u53e3\u8fd4\u56de\u7684serviceId\u83b7\u53d6\u5fae\u670d\u52a1\u5b8c\u6574\u4fe1\u606f</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/microservices/{serviceId}\n</code></pre> </li> <li> <p>\u83b7\u53d6\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b\u4fe1\u606f</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/microservices/{serviceId}/instances\n</code></pre> <p>\u9700\u8981\u5728header\u4e2d\u6dfb\u52a0\uff1a\"X-ConsumerId:{serviceId}\"\u3002</p> </li> <li> <p>\u67e5\u627e\u5fae\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/instances?appId={appId}&amp;serviceName={serviceName}&amp;version={version}\n</code></pre> <p>\u9700\u8981\u5728header\u4e2d\u6dfb\u52a0: \"X-ConsumerId:{serviceId}\"\u3002</p> </li> <li> <p>\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528servicecomb\u5f00\u6e90\u4ee3\u7801\u63a5\u53e3</p> </li> </ul> <p>\u5728\u5f00\u53d1\u5fae\u670d\u52a1\u5e94\u7528\uff0c\u53ea\u9700\u8981\u8c03\u7528servicecomb\u6846\u67b6\u4ee3\u7801\u4e2d\u7684\u5de5\u5177\u7c7bRegistryUtil.java\u4e2d\u63d0\u4f9b\u7684\u63a5\u53e3\uff0c\u5373\u53ef   \u83b7\u53d6\u670d\u52a1\u4e2d\u5fc3\u7684\u4fe1\u606f\uff0c\u63a5\u53e3\u63cf\u8ff0\u5982\u4e0b\uff1a</p> <ul> <li> <p>\u83b7\u53d6\u6240\u6709\u5fae\u670d\u52a1\u4fe1\u606f  </p> <pre><code>    List&lt;Microservice&gt; getAllMicroservices();\n</code></pre> </li> <li> <p>\u83b7\u53d6\u5fae\u670d\u52a1\u552f\u4e00\u6807\u8bc6  </p> <pre><code>    String getMicroserviceId(String appId, String microserviceName, String versionRule);\n</code></pre> </li> <li> <p>\u6839\u636e\u5fae\u670d\u52a1\u552f\u4e00\u6807\u8bc6\u67e5\u8be2\u5fae\u670d\u52a1\u9759\u6001\u4fe1\u606f  </p> <pre><code>    Microservice getMicroservice(String microserviceId);\n</code></pre> </li> <li> <p>\u6839\u636e\u591a\u4e2a\u5fae\u670d\u52a1\u552f\u4e00\u6807\u8bc6\u67e5\u8be2\u6240\u6709\u5fae\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f  </p> <pre><code>    List&lt;MicroserviceInstance&gt; getMicroserviceInstance(String consumerId, String providerId);\n</code></pre> </li> <li> <p>\u6309\u7167app+interface+version\u67e5\u8be2\u5b9e\u4f8bendpoints\u4fe1\u606f  </p> <pre><code>    List&lt;MicroserviceInstance&gt; findServiceInstance(String consumerId, String appId, String serviceName,String versionRule);\n</code></pre> </li> </ul> <p>\u901a\u8fc7\u4e0a\u8ff0http\u63a5\u53e3\u53ef\u83b7\u53d6\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u5fae\u670d\u52a1\u548c\u5176\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u901a\u8fc7confd\u52a8\u6001\u66f4\u65b0nginx\u914d\u7f6e\u3002</p>"},{"location":"edge/open-service.html","title":"\u670d\u52a1\u80fd\u529b\u5f00\u653e","text":"<p>\u5fae\u670d\u52a1\u80fd\u529b\u9700\u8981\u901a\u8fc7\u7f51\u5173\u5f00\u653e\u7ed9\u7528\u6237\u3001\u5176\u4ed6\u5916\u90e8\u7cfb\u7edf\u8bbf\u95ee\u3002\u7f51\u5173\u4e00\u65b9\u9762\u626e\u6f14\u7740\u6c47\u96c6\u7528\u6237\u8bf7\u6c42\u7684\u4f5c\u7528\uff0c\u540c\u65f6\u626e\u6f14\u8ba4\u8bc1\u3001\u9274\u6743\u3001\u6d41\u91cf \u63a7\u5236\u3001\u9632\u653b\u51fb\u7684\u7528\u9014\u3002\u7531\u4e8e\u7f51\u5173\u662f\u4e00\u4e2a\u6c47\u805a\u70b9\uff0c\u5bb9\u6613\u5f62\u6210\u4e1a\u52a1\u7684\u74f6\u9888\uff0c\u901a\u5e38\u8fd8\u4f1a\u91c7\u7528\u591a\u7ea7\u7f51\u5173\uff0c\u5916\u5c42\u7684\u7f51\u5173\u63d0\u4f9b\u4e3b\u5907\u4ee5\u53ca\u7b80\u5355 \u7684\u8bf7\u6c42\u8f6c\u53d1\u529f\u80fd\uff0c\u5185\u5c42\u7f51\u5173\u5b9e\u73b0\u9274\u6743\u7b49\u529f\u80fd\uff0c\u591a\u5b9e\u4f8b\u90e8\u7f72\u3002\u5e38\u89c1\u7684\u53ef\u4ee5\u7528\u4e8e\u5916\u5c42\u7f51\u5173\u7684\u6280\u672f\u548c\u670d\u52a1\u5305\u62ec <code>LVS</code>\u3001<code>DNS</code>, <code>Nginx</code> \u7b49\uff0c\u5185\u5c42\u7f51\u5173\u5305\u62ec <code>spring cloud gateway</code>\u3001<code>zuul</code> \u7b49\u3002</p> <p>ServiceComb \u4e5f\u63d0\u4f9b\u4e86\u5185\u5c42\u7f51\u5173\u670d\u52a1 <code>Edge Service</code>\u3002Edge Service \u5185\u5efa\u4e86\u5f3a\u5927\u7684\u8def\u7531\u7b56\u7565\uff0c\u652f\u6301\u63a5\u53e3\u7ea7\u522b\u7684 \u517c\u5bb9\u6027\u8f6c\u53d1\uff08\u7070\u5ea6\u53d1\u5e03\uff09\uff0c\u5185\u5d4c\u6cbb\u7406\u80fd\u529b\uff0c\u5e76\u652f\u6301\u975e\u5e38\u7075\u6d3b\u7684\u6269\u5c55\u673a\u5236\u3002</p>"},{"location":"edge/zuul.html","title":"\u4f7f\u7528 <code>zuul</code> \u548c <code>spring cloud gateway</code> \u505a\u7f51\u5173","text":"<p>Zuul\u662fNetflix\u7684\u57fa\u4e8eJVM\u7684\u8def\u7531\u5668\u548c\u670d\u52a1\u5668\u7aef\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528Zuul\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a</p> <ul> <li>\u8ba4\u8bc1</li> <li>\u6d1e\u5bdf</li> <li>\u538b\u529b\u6d4b\u8bd5</li> <li>\u91d1\u4e1d\u96c0\u6d4b\u8bd5</li> <li>\u52a8\u6001\u8def\u7531</li> <li>\u670d\u52a1\u8fc1\u79fb</li> <li>\u8d1f\u8f7d\u8131\u843d</li> <li>\u5b89\u5168</li> <li>\u9759\u6001\u76f8\u54cd\u5e94\u5904\u7406</li> <li>\u4e3b\u52a8/\u88ab\u52a8\u6d41\u91cf\u7ba1\u7406</li> </ul> <p>\u5173\u4e8eZuul\u7684\u8be6\u7ec6\u529f\u80fd\u4ecb\u7ecd\u8bf7\u53c2\u8003\u8def\u7531\u5668\u548c\u8fc7\u6ee4\u5668\uff1aZuul\u3002</p> <p>spring cloud gateway \u662f spring cloud \u5f00\u53d1\u7684\u65b0\u4e00\u4ee3\u7f51\u5173\u670d\u52a1\uff0c\u8be6\u7ec6\u4ecb\u7ecd\u53ef\u4ee5\u53c2\u8003sprig cloud gateway</p> <p>\u4f7f\u7528 <code>zuul</code> \u548c <code>spring cloud gateway</code> \u4f5c\u4e3a\u7f51\u5173\uff0c\u6838\u5fc3\u9700\u8981\u89e3\u51b3\u7684\u95ee\u9898\u662f\u4ece\u670d\u52a1\u4e2d\u5fc3\u53d1\u73b0\u5176\u4ed6\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c \u9700\u8981\u4f7f\u7528\u5230 spring cloud huawei \u7684\u7ec4\u4ef6\uff0c \u8be6\u7ec6\u5f00\u53d1\u6307\u5357\u53ef\u4ee5\u53c2\u8003zuul\u7528spring cloud huawei\u7684\u4f8b\u5b50\uff0cgateway\u7528spring cloud huawei\u7684\u4f8b\u5b50</p>"},{"location":"featured-topics/application-bmi.html","title":"Java-Chassis \u5165\u95e8\u6307\u5357 - \u5f00\u53d1BMI\u5e94\u7528","text":"<p>\u672c\u6307\u5357\u5c06\u4ee5\u4e00\u4e2a\u7b80\u5355\u7684 \u4f53\u8d28\u6307\u6570(BMI) \u5e94\u7528\u5f00\u5c55\u5fae\u670d\u52a1\u4e4b\u65c5\u3002\u4f53\u8d28\u6307\u6570\u4e3b\u8981\u7528\u4e8e\u8861\u91cf\u4eba\u4f53\u80d6\u7626\u7a0b\u5ea6\u3002\u8be5\u5e94\u7528\u4e3b\u8981\u5305\u542b\u4e24\u4e2a\u5fae\u670d\u52a1\uff1a</p> <ul> <li> <p>\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\uff1a\u8d1f\u8d23\u5904\u7406\u8fd0\u7b97\u4e8b\u52a1\u3002</p> </li> <li> <p>\u4f53\u8d28\u6307\u6570\u754c\u9762\uff1a\u63d0\u4f9b\u7528\u6237\u754c\u9762\u53ca\u7f51\u5173\u670d\u52a1\u3002</p> </li> </ul> <p>\u5176\u8fd0\u884c\u6d41\u7a0b\u4e3a\uff1a </p> <p>\u5176\u4e2d\uff0c\u865a\u7ebf\u8868\u793a\u670d\u52a1\u6ce8\u518c\u53ca\u670d\u52a1\u53d1\u73b0\u7684\u8fc7\u7a0b\u3002</p> <p>\u672c\u6307\u5357\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a</p> <ul> <li>\u5feb\u901f\u5165\u95e8</li> <li>\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1</li> <li>\u5fae\u670d\u52a1\u5f00\u53d1\u8fdb\u9636</li> </ul> <p>\u4ecb\u7ecd\u6587\u6863\u7684\u6e90\u4ee3\u7801\u6258\u7ba1\u5728github</p>"},{"location":"featured-topics/application-porter.html","title":"Java-Chassis \u5165\u95e8\u6307\u5357 - \u5f00\u53d1 porter \u5e94\u7528","text":"<p>\u793a\u4f8b\u9879\u76ee\u5305\u542b\u5982\u4e0b\u7ae0\u8282\uff1a</p> <ul> <li>User Story</li> <li>\u8bbe\u8ba1\u5fae\u670d\u52a1</li> <li>\u5f00\u53d1\u754c\u9762(porter-website)</li> <li>\u5f00\u53d1\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd(file-service)</li> <li>\u5f00\u53d1\u7f51\u5173(gateway-service)</li> <li>\u4f7f\u7528MyBatis\u8bbf\u95ee\u6570\u636e\u5e93(user-service)</li> <li>\u8fdb\u884c\u8ba4\u8bc1\u548c\u9274\u6743\u8bbe\u8ba1</li> <li>\u7f51\u5173HTTPS\u5b89\u5168\u914d\u7f6e</li> </ul> <p>\u793a\u4f8b\u9879\u76ee\u7684\u51fa\u53d1\u70b9\u662f\u5e2e\u52a9\u5f00\u53d1\u8005\u5f00\u53d1\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u5e94\u7528\u3002\u901a\u8fc7\u4e00\u4e2a\u5178\u578b\u7684\u5e94\u7528\u573a\u666f\uff0c\u5c55\u73b0\u4e00\u4e2a\u5fae\u670d\u52a1\u5e94\u7528\u9700\u8981\u89e3\u51b3\u90a3\u4e9b\u95ee\u9898\uff0c\u5728\u4e0d\u540c\u7684\u7ae0\u8282\u91cc\u9762\uff0c\u4f1a\u8be6\u7ec6\u89e3\u91ca\u89e3\u51b3\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u6280\u672f\u539f\u7406\u548c\u5b9e\u73b0\u8fc7\u7a0b\u3002</p> <p>\u8fd9\u4e2a\u5e94\u7528\u573a\u666f\uff0c\u662f\u901a\u8fc7\u6536\u96c6\u4e86\u4e00\u4e9b\u7528\u6237\u7684\u771f\u5b9e\u4e1a\u52a1\u573a\u666f\u63d0\u53d6\u51fa\u6765\u7684\u3002\u5177\u4f53\u5305\u62ec\uff1a</p> <ol> <li> <p>\u4e00\u4e2a\u63a8\u8350\u7684\u5fae\u670d\u52a1\u8bbe\u8ba1\u65b9\u6848\uff1b</p> </li> <li> <p>\u8ba4\u8bc1\u9274\u6743\uff1b</p> </li> <li> <p>\u4f7f\u7528mybatis\u8bbf\u95ee\u6570\u636e\u5e93\uff1b</p> </li> <li> <p>\u4f7f\u7528html+js\u63d0\u4f9b\u754c\u9762\u670d\u52a1\uff1b</p> </li> <li> <p>\u4e0a\u4f20\u6587\u4ef6\uff1b</p> </li> <li> <p>\u4f7f\u7528\u7f51\u5173\u548c\u914d\u7f6eHTTPS\uff1b</p> </li> </ol> <p>\u5728\u8fd9\u4e2a\u5e94\u7528\u4e2d\uff0c\u5c3d\u53ef\u80fd\u8ba9\u670d\u52a1\u5c0f\u3001\u6bcf\u4e2a\u5fae\u670d\u52a1\u5b8c\u5168\u72ec\u7acb\uff0c\u6ca1\u6709\u4ee3\u7801\u4e0a\u7684\u4f9d\u8d56\uff0c\u670d\u52a1\u4e4b\u95f4\u901a\u8fc7REST\u63a5\u53e3\u76f8\u4e92\u8bbf\u95ee\u3002\u4e3a\u4e86\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\uff0c\u53ef\u80fd\u4f1a\u6709\u4e9b\u91cd\u590d\u4ee3\u7801\uff08\u5305\u62ec\u914d\u7f6e\u7c7b\u6587\u4ef6\u5982pom.xml\u3001\u6570\u636e\u6a21\u578b\u7c7b\u6587\u4ef6\u7b49\uff09\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u7ed3\u5408\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u662f\u5426\u63d0\u4f9b\u516c\u5171\u6a21\u5757\uff0c\u6765\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u3002\u5728\u8fd9\u4e2a\u9879\u76ee\u4e2d\u9009\u62e9\u7684\u662f\u7528\u91cd\u590d\u4ee3\u7801\u6765\u6362\u53d6\u81ea\u7531\u5ea6\u7684\u65b9\u6848\u3002</p> <p>\u5728\u5b9e\u9645\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u8fd8\u4f1a\u9075\u5faa\u5176\u4ed6\u4e00\u4e9b\u548c\u5fae\u670d\u52a1\u5f00\u53d1\u6709\u5173\u7684\u539f\u5219\uff0c\u5305\u62ec\u65e0\u72b6\u6001\u8bbe\u8ba1\u7b49\u3002\u8fd9\u91cc\u7684\u4f8b\u5b50\u7684\u76ee\u7684\u662f\u642d\u5efa\u4e00\u4e2a\u5546\u4e1a\u53ef\u7528\u7684\u5fae\u670d\u52a1\uff0c\u56e0\u6b64\u6211\u4eec\u4f1a\u5728\u67b6\u6784\u8bbe\u8ba1\u3001\u65b9\u6848\u8bbe\u8ba1\u4e0a\u4e5f\u7ed9\u51fa\u4e00\u5b9a\u7684\u5efa\u8bae\u4ee5\u53ca\u8bf4\u660e\u8fd9\u6837\u5904\u7406\u7684\u76ee\u7684\u3002</p> <p>\u672c\u4e13\u9898\u7684\u6d89\u53ca\u7684\u4ee3\u7801\u5747\u6258\u7ba1\u5728github\uff0c\u53c2\u8003 Porter\u5e94\u7528 \u3002\u5f00\u53d1\u8005\u53ef\u4ee5clone\u4e00\u4efd\u4f9b\u5b66\u4e60\u4f7f\u7528\uff0c\u6216\u8005\u4f5c\u4e3a\u6b63\u5f0f\u9879\u76ee\u7684\u6a21\u677f\u3002</p>"},{"location":"featured-topics/compatibility.html","title":"\u517c\u5bb9\u95ee\u9898\u548c\u517c\u5bb9\u6027\u7b56\u7565","text":"<p>\u517c\u5bb9\u662f\u88ab\u5e7f\u6cdb\u8ba8\u8bba\u7684\u95ee\u9898\uff0c\u5927\u91cf\u5f00\u53d1\u8005\u4e5f\u5173\u6ce8 ServiceComb \u7684\u517c\u5bb9\u6027\u5982\u4f55\u3002 \u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u89e6\u53d1\u70b9\u662f\u5728 ServiceComb \u4e2d \u56de\u7b54\u4e86\u4e00\u4e2a\u5173\u4e8e\u517c\u5bb9\u7684\u95ee\u9898 \u3002 \u5728 \u8fd9\u4e2a\u95ee\u9898\u4e2d\uff0c \u5f00\u53d1\u8005\u4e3a\u4e86\u9690\u85cf\u7cfb\u7edf\u5185\u90e8\u7684\u53d8\u5316\uff0c\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u989d\u5916\u589e\u52a0\u7279\u6b8a\u903b\u8f91\uff0c\u4ee5\u4fdd\u969c\u4f7f\u7528\u8005\u4e0d\u611f\u77e5\u8fd9\u4e2a\u53d8\u5316\u3002 \u8fd9\u4e2a\u95ee\u9898 \u53cd\u6620\u4e86\u517c\u5bb9\u95ee\u9898\u7684\u4e24\u9762\u6027\uff1a\uff081\uff09\u4fdd\u6301\u517c\u5bb9\u53ef\u4ee5\u5c4f\u853d\u4f7f\u7528\u8005\u5bf9\u4e8e\u53d8\u5316\u7684\u611f\u77e5\uff0c\u7ef4\u6301\u73b0\u6709\u529f\u80fd\u7684\u7a33\u5b9a\u6027\uff0c\u964d\u4f4e\u5f15\u5165\u65b0\u7248\u672c\u7684\u6210\u672c\uff0c \u51cf\u5c11\u5bf9\u73b0\u6709\u7cfb\u7edf\u529f\u80fd\u7684\u5f71\u54cd\uff1b\uff082\uff09\u4fdd\u6301\u517c\u5bb9\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u589e\u52a0\u590d\u6742\u6027\uff0c\u8fd9\u4e9b\u590d\u6742\u6027\u53ef\u80fd\u5e76\u4e0d\u662f\u5b9e\u73b0\u73b0\u5b9e\u4e1a\u52a1\u903b\u8f91\u5fc5\u987b\u7684\uff0c\u7ee7\u800c \u7ed9\u73b0\u6709\u7cfb\u7edf\u529f\u80fd\u7684\u53ef\u9760\u6027\u5e26\u6765\u95f4\u63a5\u5f71\u54cd\uff1b\u4ece\u5f00\u53d1\u8005\u7684\u89d2\u5ea6\uff0c\u505a\u4e0d\u517c\u5bb9\u6027\u91cd\u6784\u901a\u5e38\u662f\u4e0d\u5f97\u5df2\u800c\u4e3a\u4e4b\uff0c\u6216\u8005\u7531\u4e8e\u73b0\u6709\u63a5\u53e3\u8bbe\u8ba1\u4e0d \u5408\u7406\u5f71\u54cd\u6269\u5c55\uff0c\u6216\u8005\u5b58\u5728\u67d0\u4e9b\u672a\u8003\u8651\u7684\u7f3a\u9677\uff0c\u4e0d\u671f\u671b\u4f7f\u7528\u8005\u7ee7\u7eed\u4f7f\u7528\u3002\u5982\u679c\u4fdd\u6301\u517c\u5bb9\uff0c\u4f7f\u7528\u8005\u4e0d\u80fd\u611f\u77e5\u5230\u8fd9\u4e2a\u53d8\u5316\uff0c \u76f4\u5230\u8be5\u529f\u80fd\u5728\u5b9e\u9645\u73af\u5883\u51fa\u73b0\u95ee\u9898\uff0c\u589e\u52a0\u4e86\u95ee\u9898\u53d1\u73b0\u65f6\u95f4\u3002</p> <p>\u8f6f\u4ef6\u4e0d\u53ef\u80fd\u4e00\u5f00\u59cb\u5c31\u88ab\u8bbe\u8ba1\u7684\u5b8c\u7f8e\uff0c\u56e0\u6b64\u517c\u5bb9\u6027\u95ee\u9898\u4f1a\u4e00\u76f4\u5b58\u5728\u3002\u9700\u8981\u7ed3\u5408\u517c\u5bb9\u6027\u7684\u573a\u666f\u548c\u517c\u5bb9\u6027\u7684\u5f71\u54cd\uff0c\u7efc\u5408\u8bc4\u4f30\u517c\u5bb9\u7b56\u7565\uff0c \u4f7f\u5f97\u65e2\u4fdd\u6301\u5f15\u5165\u65b0\u7248\u672c\u7684\u6548\u7387\uff0c\u53c8\u80fd\u591f\u5728\u6bcf\u6b21\u5347\u7ea7\u65b0\u7248\u672c\u7684\u65f6\u5019\uff0c\u4fee\u590d\u5df2\u77e5\u95ee\u9898\uff0c\u8ba9\u7248\u672c\u5347\u7ea7\u53d8\u5f97\u66f4\u6709\u4ef7\u503c\u3002</p>"},{"location":"featured-topics/compatibility.html#_2","title":"\u517c\u5bb9\u6027\u573a\u666f\u548c\u5206\u7c7b","text":"<p>\u4e3a\u4e86\u8bc4\u4f30\u517c\u5bb9\u6027\u7684\u5f71\u54cd\uff0c\u9700\u8981\u7ec6\u5316\u517c\u5bb9\u6027\u7684\u573a\u666f\u548c\u5206\u7c7b\u3002</p> <ul> <li> <p>\u8fd0\u884c\u65f6\u517c\u5bb9\u3002\u8003\u8651\u4e00\u538b\u7f29\u6587\u4ef6\u7684\u7a0b\u5e8f <code>zip.exe</code>\uff0c \u8fd9\u4e2a\u7a0b\u5e8f\u5728\u8001\u7248\u672c\u7684 windows \u91cc\u9762\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\uff0c\u7136\u540e\u5c06\u8fd9\u4e2a   \u7a0b\u5e8f\u62f7\u8d1d\u5230\u65b0\u7248\u672c\u7684 windows \u91cc\u9762\uff0c\u5982\u679c\u4ecd\u7136\u53ef\u4ee5\u6267\u884c\uff0c\u90a3\u4e48\u8ba4\u4e3a\u662f\u8fd0\u884c\u65f6\u517c\u5bb9\uff1b\u518d\u8003\u8651\u4f7f\u7528\u8001\u7248\u672c JDK \u6267\u884c\u7684   \u7a0b\u5e8f <code>hello.jar</code>\uff0c \u4f7f\u7528\u65b0\u7248\u672c JDK \uff0c\u5982\u679c\u4ecd\u7136\u53ef\u4ee5\u6267\u884c\uff0c\u90a3\u4e48\u8ba4\u4e3a\u662f\u8fd0\u884c\u65f6\u517c\u5bb9\u7684\u3002 \u8fd0\u884c\u65f6\u517c\u5bb9\u901a\u5e38   \u9002\u7528\u4e8e\u64cd\u4f5c\u7cfb\u7edf\uff0c\u8fd0\u884c\u5bb9\u5668\u7b49\u57fa\u7840\u8f6f\u4ef6\u5e73\u53f0\uff0c\u6216\u8005\u5b9e\u73b0\u6807\u51c6\u534f\u8bae\u7684\u8fd0\u884c\u73af\u5883\uff0c\u5982 JSP/Servlet \u7684\u5b9e\u73b0 Tomcat\u3002    \u5728\u65e9\u4e9b\u65f6\u5019\uff0c\u8fd9\u4e9b\u57fa\u7840\u8f6f\u4ef6\u5e73\u53f0\u7684\u517c\u5bb9\u6027\u4e00\u76f4\u505a\u7684\u4e0d\u9519\uff0c\u968f\u7740\u6280\u672f\u53d1\u5c55\u8d8a\u6765\u8d8a\u5feb\uff0c\u7528\u6237\u5bf9\u4e8e\u4f53\u9a8c\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c   \u57fa\u7840\u8f6f\u4ef6\u5e73\u53f0\u5728\u4fdd\u6301\u517c\u5bb9\u6027\u7684\u65b9\u9762\u8d8a\u6765\u8d8a\u653e\u5f00\uff0c\u517c\u5bb9\u7248\u672c\u8d8a\u6765\u8d8a\u5c11\u3002\u6bd4\u5982 windows 10 \u7684\u7248\u672c\u5e76\u4e0d\u517c\u5bb9\u90e8\u5206\u8001\u7684   \u6267\u884c\u7a0b\u5e8f\uff0cJDK 12 \u4e5f\u4e0d\u518d\u517c\u5bb9\u90e8\u5206 jar \u5305\uff0c\u82f9\u679c\u7684\u5e73\u53f0\u4e00\u76f4\u91c7\u53d6\u7684\u662f\u4e00\u79cd\u79ef\u6781\u7684\u5411\u524d\u770b\u7684\u7b56\u7565\uff0c\u591a\u6570\u65b0\u7248\u672c   \u5e73\u53f0\u7684\u63a8\u51fa\uff0c\u90fd\u8981\u6c42\u5e94\u7528\u4f7f\u7528\u65b0\u7248\u672c\u5e73\u53f0\u91cd\u65b0\u7f16\u8bd1\u540e\u5728\u5e94\u7528\u5e02\u573a\u53d1\u5e03\u3002 </p> </li> <li> <p>\u7f16\u8bd1\u65f6\u517c\u5bb9\u3002\u7f16\u8bd1\u65f6\u517c\u5bb9\u662f\u7ec4\u4ef6/\u6a21\u5757\u7c7b\u8f6f\u4ef6\u5e38\u89c1\u7684\u517c\u5bb9\u6027\u7c7b\u578b\uff0c\u6bd4\u5982 ServiceComb\uff0c \u901a\u5e38\u4f5c\u4e3a\u8fd0\u884c\u7a0b\u5e8f\u7684\u4e00\u90e8\u5206\uff0c   \u901a\u8fc7\u7f16\u8bd1\u5de5\u5177\uff0c\u4e0e\u4e1a\u52a1\u4ee3\u7801\u4e00\u8d77\u7f16\u8bd1\u4e3a\u53ef\u6267\u884c\u7684\u7a0b\u5e8f\u3002 \u4ee5 ServiceComb \u4e3a\u4f8b\uff0c\u4f7f\u7528\u5b83\u7684\u5e94\u7528\u7a0b\u5e8f\u91c7\u7528 maven \u5de5\u5177   \u8fdb\u884c\u7f16\u8bd1\uff0c\u5982\u679c\u80fd\u591f\u901a\u8fc7\u4fee\u6539\u4f9d\u8d56\u7684 pom \u7684\u7248\u672c\u53f7\uff0c\u7f16\u8bd1\u901a\u8fc7\uff0c\u5e76\u4e14\u529f\u80fd\u6ca1\u6709\u53d8\u5316\uff0c\u90a3\u4e48\u5c31\u8ba4\u4e3a\u662f\u7f16\u8bd1\u65f6\u517c\u5bb9\u3002 \u7f16\u8bd1\u53ef\u4ee5\u8ba4\u4e3a\u662f\u5f00\u53d1   \u8fc7\u7a0b\u7684\u4e00\u90e8\u5206\uff0c\u4e0d\u517c\u5bb9\u5bfc\u81f4\u7684\u7f16\u8bd1\u5931\u8d25\uff0c\u901a\u5e38\u4e0d\u4f1a\u7ed9\u6700\u7ec8\u7528\u6237\u5e26\u6765\u5f71\u54cd\uff0c\u7ec4\u4ef6\u4f7f\u7528\u8005\u901a\u8fc7\u4fee\u6539\u7f16\u8bd1\u4e0d\u901a\u8fc7\u7684\u6a21\u5757\uff0c\u4f7f\u7528   \u65b0\u63d0\u4f9b\u7684 API\uff0c\u5c31\u80fd\u591f\u7f16\u8bd1\u901a\u8fc7\u3002\u7f16\u8bd1\u4e0d\u517c\u5bb9\u7684\u4fee\u6b63\u4f1a\u6d89\u53ca\u63a5\u53e3\u7684\u66ff\u6362\uff0c\u5982\u679c\u65b0\u66ff\u6362\u7684\u63a5\u53e3\u4e0e\u8001\u63a5\u53e3\u529f\u80fd\u4e0d\u4e00\u81f4\uff0c\u800c   \u5f00\u53d1\u8005\u53c8\u6ca1\u6709\u9488\u5bf9\u8fd9\u4e9b\u53d8\u66f4\u7684\u529f\u80fd\u8fdb\u884c\u6d4b\u8bd5\uff0c\u5219\u53ef\u80fd\u5c06\u95ee\u9898\u9057\u6f0f\u5230\u6700\u7ec8\u7528\u6237\u3002 \u4fee\u6b63\u7f16\u8bd1\u4e0d\u517c\u5bb9\u95ee\u9898\u9700\u8981\u6709\u66ff\u6362\u7684\u63a5\u53e3\uff0c\u5982\u679c   \u6ca1\u6709\u53ef\u66ff\u6362\u7684\u63a5\u53e3\uff0c\u90a3\u4e48\u5f00\u53d1\u8005\u6ca1\u6cd5\u4f7f\u7528\u65b0\u7248\u672c\uff0c\u8fd9\u4e2a\u4e0d\u4f1a\u7ed9\u6700\u7ec8\u7528\u6237\u5e26\u6765\u5f71\u54cd\uff0c\u5f00\u53d1\u8005\u9700\u8981\u8054\u7cfb\u7ec4\u4ef6\u63d0\u4f9b\u8005\u63d0\u4f9b\u5bf9\u5e94\u7684   \u89e3\u51b3\u65b9\u6848\u6ee1\u8db3\u8981\u6c42\u3002\u7ec4\u4ef6\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9\u505a\u7684\u6bd4\u8f83\u597d\u7684\u4e00\u822c\u662f\u4e00\u4e9b\u7b97\u6cd5\u7c7b\u3001\u534f\u8bae\u7c7b\u7ec4\u4ef6\uff0c\u6bd4\u5982 JDK \u7684\u6570\u636e\u7ed3\u6784\u5e93\uff0cjackson    \u7684 JSON \u89e3\u6790\u5e93\uff0c\u8d8a\u662f\u9762\u5411\u5e94\u7528\u5c42\uff0c\u7f16\u8bd1\u4e0d\u517c\u5bb9\u7684\u60c5\u51b5\u8d8a\u662f\u53d1\u751f\u9891\u7e41\uff0c\u6bd4\u5982 spring cloud \u76f8\u5173\u7684\u5e93\u3002</p> </li> <li> <p>\u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u3002 \u670d\u52a1\u63a5\u53e3\u662f\u5e94\u7528\u670d\u52a1\u5316\u4ee5\u540e\u51fa\u73b0\u7684\u6982\u5ff5\uff0c\u901a\u5e38\u8868\u793a\u4e3a\u5e94\u7528\u5bf9\u5916\u63d0\u4f9b\u7684 REST \u63a5\u53e3\u3002 \u670d\u52a1\u63a5\u53e3\u7531\u4e8e\u90fd\u662f   \u5728\u7ebf\u4f7f\u7528\uff0c\u4e00\u65e6\u63a5\u53e3\u53d8\u5316\uff0c\u5c31\u53ef\u80fd\u5bf9\u4f7f\u7528\u8005\u7684\u4e1a\u52a1\u7cfb\u7edf\u4ea7\u751f\u5f71\u54cd\u3002\u670d\u52a1\u63a5\u53e3\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4f7f\u7528\u8005\u4e5f\u65e0\u6cd5\u901a\u8fc7\u79bb\u7ebf\u7f16\u8bd1   \u53d1\u73b0\uff0c\u6240\u6709\u7684\u95ee\u9898\u90fd\u662f\u5bf9\u7528\u6237\u4ea7\u751f\u5f71\u54cd\u540e\u624d\u88ab\u53d1\u73b0\uff0c\u56e0\u6b64\u670d\u52a1\u63a5\u53e3\u7684\u517c\u5bb9\u663e\u5f97\u5c24\u5176\u91cd\u8981\u3002 </p> </li> </ul> <p>\u6839\u636e\u4e0a\u9762\u7684\u517c\u5bb9\u6027\u573a\u666f\uff0c\u53ef\u4ee5\u6309\u7167\u517c\u5bb9\u6027\u7b26\u5408\u5ea6\uff0c\u5206\u4e3a\u4e0b\u9762\u51e0\u7c7b\u3002</p> <ul> <li>\u5b8c\u7f8e\u3002\u5b8c\u7f8e\u8fd0\u884c\u65f6\u517c\u5bb9\u4ee3\u8868\u8001\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u5c31\u53ef\u4ee5\u5728\u65b0\u73af\u5883\u6267\u884c\uff1b\u5b8c\u7f8e\u7f16\u8bd1\u65f6\u517c\u5bb9\u4ee3\u8868\u4f7f\u7528\u65b0\u7248\u672c\u7f16\u8bd1\u65f6   \u4e0d\u4f1a\u51fa\u73b0\u7f16\u8bd1\u9519\u8bef\uff0c\u5e76\u4e14\u8fd0\u884c\u65f6\u884c\u4e3a\u4e00\u81f4\u3002</li> <li>\u6070\u5f53\u3002\u6070\u5f53\u8fd0\u884c\u65f6\u517c\u5bb9\u4ee3\u8868\u8001\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528\u65b0\u5e73\u53f0\u63d0\u4f9b\u7684\u7f16\u8bd1/\u6253\u5305\u7b49\u5de5\u5177\u91cd\u65b0\u7f16\u8bd1\u4fee\u6539\uff0c\u5982\u679c\u5b58\u5728\u5931\u8d25\uff0c\u6839\u636e\u76f8\u5173\u7684\u6307\u5f15   \u4fee\u590d\u91cd\u65b0\u53d1\u5e03\uff0c\u80fd\u591f\u7ee7\u7eed\u8fd0\u884c\uff0c\u5728\u65b0\u5e73\u53f0\u8fd0\u884c\u7684\u6548\u679c\u548c\u8001\u7248\u672c\u4e00\u81f4\u3002\u6070\u5f53\u7f16\u8bd1\u65f6\u517c\u5bb9\u6307\u5b58\u5728\u7f16\u8bd1\u5931\u8d25\uff0c\u4f7f\u7528\u65b0\u7248\u672c\u7684API\u66ff\u6362   \u8001\u7684API\u7f16\u8bd1\u901a\u8fc7\u540e\uff0c\u5e94\u7528\u7a0b\u5e8f\u7684\u884c\u4e3a\u548c\u8001\u7248\u672c\u4e00\u81f4\u3002\u6070\u5f53\u517c\u5bb9\u548c\u4fee\u6539\u5de5\u4f5c\u91cf\u6709\u5173\u7cfb\uff0c\u6bd4\u5982\u8001\u7248\u672c\u5207\u6362\u4e3a\u65b0\u7248\u672c\uff0c\u5982\u679c\u5de5\u4f5c\u91cf   \u80fd\u591f\u63a7\u5236\u57281\u4eba\u5929\uff0c \u53ef\u4ee5\u8ba4\u4e3a\u662f\u6070\u5f53\u517c\u5bb9\u3002 </li> <li>\u4e0d\u517c\u5bb9\u3002\u4e0d\u517c\u5bb9\u6307\u4fee\u6539\u5de5\u4f5c\u91cf\u8d85\u8fc7\u53ef\u63a5\u7eb3\u7684\u9650\u5ea6\uff0c\u6216\u8005\u67d0\u4e2a\u63a5\u53e3\u6ca1\u6709\u66ff\u6362\u65b9\u6848\u3002</li> </ul>"},{"location":"featured-topics/compatibility.html#servicecomb","title":"ServiceComb \u7684\u517c\u5bb9\u6027\u7b56\u7565","text":"<p>ServiceComb \u5b58\u5728\u591a\u4e2a\u4e0d\u540c\u7684\u7ec4\u4ef6\uff0c\u5bf9\u4e8e\u4e2d\u95f4\u4ef6\u7c7b\u670d\u52a1\uff0c\u6bd4\u5982 servicecomb-service-center \u7684\u517c\u5bb9\u6027\u7b56\u7565\u662f \u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u3002 \u5bf9\u4e8e\u5f00\u53d1 SDK \u7c7b\uff0c\u6bd4\u5982 servicecomb-java-chassis \u7684\u517c\u5bb9\u6027\u7b56\u7565\u662f<code>\u6070\u5f53\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9</code>\u3002 </p> <p>\u76f8\u5bf9\u4e8e\u5b9e\u9645\u60c5\u51b5\uff0c\u4e0a\u9762\u7684\u7b56\u7565\u63cf\u8ff0\u4ecd\u7136\u6bd4\u8f83\u7b80\u5355\uff0c\u56e0\u4e3a\u5b9e\u9645\u60c5\u51b5\u6bd4\u8bbe\u60f3\u7684\u60c5\u51b5\u8981\u590d\u6742\u7684\u591a\u3002\u672c\u6587\u5173\u4e8e\u517c\u5bb9\u6027\u573a\u666f\u7684\u63cf\u8ff0\uff0c \u5e76\u4e0d\u80fd\u6982\u51b5\u6240\u6709\u7684\u517c\u5bb9\u6027\u573a\u666f\uff0c\u6bd4\u5982\u5bf9\u4e8e SDK \u7c7b\uff0c\u4e5f\u53ef\u80fd\u5b58\u5728\u8fd0\u884c\u65f6\u517c\u5bb9\u7684\u8981\u6c42\uff0c\u7279\u522b\u662f\u6709\u4e9b\u4e1a\u52a1\u7cfb\u7edf\u662f\u57fa\u4e8e\u8001\u7684\u6784\u5efa \u5de5\u5177\uff0c\u6bd4\u5982 ANT \u7684\u60c5\u51b5\uff0c\u4e1a\u52a1\u53ef\u80fd\u9700\u8981\u66ff\u6362 jar \u7684\u65b9\u5f0f\u6ee1\u8db3\u517c\u5bb9\u6027\u8981\u6c42\u3002 SDK \u7c7b\u4e5f\u5b58\u5728\u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u7684\u8981\u6c42\uff0c\u6bd4\u5982 \u901a\u8fc7 SDK \u7684 <code>HIGHWAY</code> \u53d1\u5e03\u63a5\u53e3\uff0c\u5982\u679c <code>HIGHWAY</code> \u5e95\u5c42\u7684\u901a\u4fe1\u534f\u8bae\u6216\u8005\u7f16\u89e3\u7801\u65b9\u5f0f\u53d1\u751f\u53d8\u5316\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u670d\u52a1 \u63a5\u53e3\u4e0d\u517c\u5bb9\u3002 </p> <p>\u4e3a\u4e86\u5bf9\u5404\u79cd\u590d\u6742\u7684\u517c\u5bb9\u6027\u573a\u666f\u8fdb\u884c\u6709\u6548\u7ba1\u7406\uff0cjava-chassis \u4f7f\u7528 3 \u4f4d\u7248\u672c\u53f7(major.minor.patch)\u9002\u5f53\u533a\u5206\uff1a</p> <ul> <li>patch: \u6070\u5f53\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9\u7248\u672c\u3002\u5347\u7ea7 patch \u7248\u672c\uff0c\u901a\u5e38\u5de5\u4f5c\u91cf\u53ef\u4ee5\u63a7\u5236\u57281\u4eba\u5929\u4ee5\u5185\u3002patch \u7248\u672c\u591a\u6570\u53ea\u9700\u8981   \u5347\u7ea7\u7248\u672c\u53f7\uff0c\u7136\u540e\u91cd\u65b0\u7f16\u8bd1\u53d1\u5e03\u5373\u53ef\u3002 \u5c11\u91cf\u7684\u7248\u672c\u53ef\u80fd\u5b58\u5728\u5f71\u54cd\u6781\u5c0f\u7684\u4e0d\u517c\u5bb9\u8c03\u6574\uff0c\u6bd4\u5982\u5c06\u65b9\u6cd5 <code>wong</code> \u91cd\u547d\u540d   \u4e3a <code>wrong</code>\u3002</li> <li>minor: \u6070\u5f53\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9\u7248\u672c\u3002\u76f8\u8f83\u4e8e patch \u7248\u672c\uff0c minor \u7248\u672c\u53ef\u80fd\u5b58\u5728\u66f4\u591a\u7684\u65b0\u7279\u6027\u4ea4\u4ed8\uff0c\u9879\u76ee\u7ed3\u6784\u5b58\u5728   \u4e00\u5b9a\u7a0b\u5ea6\u7684\u91cd\u6784\uff0c\u4f7f\u7528\u5185\u90e8 API \u7684\u5f00\u53d1\u8005\u53ef\u80fd\u9700\u8981\u89e3\u51b3\u8f83\u591a\u7684\u7f16\u8bd1\u95ee\u9898\uff0c\u4f7f\u7528\u65b0\u7684 API \u66ff\u6362\u8001\u7684 API\u3002minor   \u7248\u672c\u7684\u5347\u7ea7\u5de5\u4f5c\u91cf\u901a\u5e38\u63a7\u5236\u57283\u4eba\u5929\u4ee5\u5185\u3002</li> <li>major\uff1a\u63d0\u4f9b major \u7248\u672c\uff0c\u901a\u5e38\u662f\u7531\u4e8e\u67d0\u4e9b\u7279\u6027\u53ef\u80fd\u5bfc\u81f4\u8fd0\u884c\u65f6\u517c\u5bb9\u95ee\u9898\u3002\u6bd4\u5982 <code>2.0.0</code> \u7248\u672c\u7684 <code>HIGHWAY</code>   \u534f\u8bae\u7684\u4fee\u6539\u3002 \u56e0\u4e3a\u8fd0\u884c\u65f6\u517c\u5bb9\u51fa\u73b0\u7684\u65f6\u5019\uff0c\u53ea\u8981\u4f7f\u7528\u4e86\u8be5\u529f\u80fd\u7684\u6240\u6709\u5fae\u670d\u52a1\u90fd\u9700\u8981\u4e00\u5e76\u5347\u7ea7\uff0c\u5de5\u4f5c\u91cf\u4ece\u5355\u4e2a\u670d\u52a1\u63d0\u5347   \u5230\u6574\u4e2a\u5e94\u7528\uff0c\u89c6\u5e94\u7528\u7684\u89c4\u6a21\u5927\u5c0f\uff0c\u5de5\u4f5c\u91cf\u4f1a\u5dee\u522b\u5f88\u5927\u3002\u5f53\u7136\u5e76\u4e0d\u610f\u5473\u7740 major \u7248\u672c\u5347\u7ea7\u4e00\u5b9a\u975e\u5e38\u590d\u6742\uff0c\u5b9e\u9645\u4e0a\u6ca1\u6709   \u4f7f\u7528 <code>HIGHWAY</code> \u7684\u60c5\u51b5\uff0c2.0.0 \u5347\u7ea7\u7684\u5de5\u4f5c\u91cf\u4ecd\u7136\u4e0d\u8d85\u8fc7\u4e00\u822c\u7684 minor \u7248\u672c\u3002\u9488\u5bf9 major \u7248\u672c\uff0c    ServiceComb \u4f1a\u63d0\u4f9b\u76f8\u5173\u7684\u5347\u7ea7\u6307\u5bfc\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u8bc4\u4f30\u517c\u5bb9\u6027\u5f71\u54cd\u3002</li> </ul> <p>java-chassis \u81ea\u8eab\u4e5f\u4f7f\u7528\u4e86\u5927\u91cf\u7684\u4e09\u65b9\u4ef6\uff0c\u4e3a\u4e86\u66f4\u597d\u7684\u5e73\u8861\u5347\u7ea7\u6548\u7387\u548c\u9879\u76ee\u7684\u6301\u7eed\u9ad8\u8d28\u91cf\u53d1\u5c55\uff0c\u4e0b\u9762\u603b\u7ed3\u4e86\u4e00\u4e9b \u517c\u5bb9\u6027\u7ba1\u7406\u7684\u4f18\u79c0\u5b9e\u8df5\u4ee5\u53ca\u5bf9\u4e8e\u5f00\u53d1\u8005\u7684\u5efa\u8bae\uff1a</p> <ul> <li>\u5c3d\u53ef\u80fd\u4f7f\u7528\u6838\u5fc3 API\uff0c\u51cf\u5c11\u91cd\u6784\u5bf9\u4e8e\u4ea7\u54c1\u517c\u5bb9\u7684\u5f71\u54cd\u3002\u533a\u5206\u6838\u5fc3 API \u662f\u9700\u8981\u4e00\u4e9b\u5f00\u53d1\u7ecf\u9a8c\u7684\uff0cjava-chassis \u5e76   \u6ca1\u6709\u7ed9\u51fa\u6838\u5fc3 API \u7684\u8303\u56f4\u548c\u72ec\u7acb\u6587\u6863\u8bf4\u660e\u3002 \u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u9605\u8bfb\u5f00\u53d1\u6307\u5357\uff0c\u5f00\u53d1\u6307\u5357\u91cc\u9762\u63d0\u5230\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5c31\u662f   \u6838\u5fc3 API \u7684\u5185\u5bb9\uff0c\u6bd4\u5982\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u7684 JAX RS \u6807\u7b7e\u6216\u8005Spring MVC\u6807\u7b7e\uff0c <code>Handler</code> \u548c <code>Invocation</code>   \u6838\u5fc3\u6a21\u578b\uff0c\u4ee5\u53ca\u4e0d\u540c\u7684\u6a21\u5757\u63d0\u4f9b\u7684\u914d\u7f6e\u9879\u7b49\u3002 </li> <li>\u4f7f\u7528\u975e\u6838\u5fc3 API \u7684\u65f6\u5019\uff0c\u9002\u5f53\u589e\u52a0\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u3002\u7531\u4e8e\u4e1a\u52a1\u7684\u9700\u8981\uff0c\u4f7f\u7528\u975e\u6838\u5fc3 API \u4e0d\u53ef\u907f\u514d\uff0c\u6bd4\u5982\u6709\u4e9b\u4e1a\u52a1\u9700\u8981   \u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u7684 API \u66f4\u65b0\u670d\u52a1\u72b6\u6001\uff0c\u8c03\u7528 <code>RegistryUtils</code> \u7684\u63a5\u53e3\u3002 \u4e0d\u7528\u62c5\u5fc3\u8fd9\u4e9b API \u53d8\u5316\u800c\u4e0d\u6562\u4f7f\u7528\uff0c   \u5148\u9488\u5bf9\u4f7f\u7528\u8fd9\u4e9b API \u7684\u573a\u666f\u6216\u8005\u76f4\u63a5\u9488\u5bf9\u8fd9\u4e2a API \u5199\u4e00\u4e9b\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u3002\u5347\u7ea7\u7248\u672c\u7684\u65f6\u5019\uff0c\u8fd9\u4e9b API \u7684   \u539f\u578b\u53d8\u5316\u751a\u81f3\u8bed\u4e49\u53d8\u5316\uff0c\u90fd\u80fd\u591f\u53ca\u65f6\u88ab\u53d1\u73b0\u3002 </li> <li>\u6301\u7eed\u5347\u7ea7\u65b0\u7248\u672c\u662f\u4e00\u628a\u53cc\u5203\u5251\uff0c\u4f46\u603b\u4f53\u6765\u8bb2\uff0c\u6536\u76ca\u8fdc\u5927\u4e8e\u95ee\u9898\u3002\u5982\u679c\u4e1a\u52a1\u7cfb\u7edf\u9700\u8981\u4e0d\u65ad\u7684\u66f4\u65b0\uff0c\u5efa\u8bae\u5c31\u5e94\u8be5\u5728\u6bcf\u4e2a\u4ea7\u54c1   \u8fed\u4ee3\u4e2d\u5b89\u6392\u4e00\u4e2a\u4efb\u52a1\u5347\u7ea7\u65b0\u7248\u672c\u3002java-chassis \u7684\u6bcf\u4e2a\u7248\u672c\u8fed\u4ee3\uff0c\u90fd\u56fa\u5b9a\u4f1a\u5b89\u6392\u5347\u7ea7\u4e09\u65b9\u4ef6\u7684\u4efb\u52a1\u3002\u53ca\u65f6\u5347\u7ea7\u7248\u672c\uff0c   \u80fd\u591f\u5feb\u901f\u4fee\u590d\u8001\u7248\u672c\u5b58\u5728\u7684\u5b89\u5168\u6f0f\u6d1e\uff0c\u89e3\u51b3\u8001\u7248\u672c\u5df2\u77e5\u7684\u53ef\u9760\u6027\u3001\u6027\u80fd\u95ee\u9898\u3001\u53d1\u73b0\u7684bug\uff1b\u8fd8\u80fd\u591f\u8bc6\u522b\u51fa\u4e00\u4e9b\u9519\u8bef\u7684   \u5e9f\u5f03\u7528\u6cd5\uff0c\u53ca\u65f6\u8c03\u6574\u4e3a\u6b63\u786e\u7684\u7528\u6cd5\uff0c\u4f7f\u7528\u65b0\u7684\u7248\u672c\uff0c\u66f4\u5bb9\u6613\u4ece\u793e\u533a\u83b7\u5f97\u5bf9\u4e8e\u65b0\u53d1\u73b0\u95ee\u9898\u7684\u5e2e\u52a9\u3002\u6301\u7eed\u5347\u7ea7\u662f\u4e00\u4e2a\u7cfb\u7edf   \u7684\u5de5\u7a0b\u5b9e\u8df5\uff0c\u4e0d\u5355\u5355\u6307\u5347\u7ea7\u7248\u672c\uff0c\u8fd8\u5305\u62ec\u4e3a\u4e86\u9884\u9632\u5347\u7ea7\u7248\u672c\u7ed9\u8d28\u91cf\u5e26\u6765\u98ce\u9669\u800c\u91c7\u53d6\u7684\u5176\u4ed6\u63aa\u65bd\uff0c\u6bd4\u5982\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u6301\u7eed   \u6784\u5efa\uff0c\u6301\u7eed\u96c6\u6210\u6d41\u6c34\u7ebf\u7684\u6784\u5efa\uff0c\u5b9a\u671f\u9605\u8bfb\u91cd\u8981\u9879\u76ee\u7684 Release Notes\uff0c\u5173\u6ce8\u9879\u76ee\u53d1\u5c55\u65b9\u5411\u7b49\u7b49\u3002 \u8fd9\u79cd\u65b9\u5f0f\u662f\u4e00\u79cd\u4e3b\u52a8   \u8d28\u91cf\u52a0\u56fa\u63aa\u65bd\uff0c\u53ef\u4ee5\u514d\u4e8e\u95ee\u9898\u53d1\u751f\u3002\u53ef\u60dc\u591a\u6570\u51b3\u7b56\u8005\u770b\u5230\u7684\u662f\u66f4\u65b0\u7248\u672c\u5e26\u6765\u7684\u95ee\u9898\uff0c\u770b\u4e0d\u5230\u9884\u9632\u63aa\u65bd\u7684\u79ef\u6781\u6548\u679c\uff0c   \u6ca1\u6709\u628a\u6301\u7eed\u5347\u7ea7\u4f5c\u4e3a\u4e00\u9879\u91cd\u8981\u7684\u80fd\u529b\u5efa\u8bbe\u4e8b\u9879\u7eb3\u5165\u8ba1\u5212\uff0c\u8fd9\u9879\u80fd\u529b\u4e00\u76f4\u5f97\u4e0d\u5230\u63d0\u5347\uff0c\u5f53\u5b9e\u65bd\u5347\u7ea7\u7684\u65f6\u5019\uff0c\u66f4\u5bb9\u6613\u5f15\u5165\u6545\u969c\u3002</li> </ul>"},{"location":"featured-topics/features.html","title":"\u7279\u6027\u4ecb\u7ecd","text":"<ul> <li>\u7279\u6027\u4ecb\u7ecd\uff1a date\u548cdate-time</li> <li>\u7279\u6027\u4ecb\u7ecd\uff1a Edge Service \u901a\u7528\u7684 HTTP \u8f6c\u53d1\u5668 CommonHttpEdgeDispatcher</li> </ul>"},{"location":"featured-topics/performance.html","title":"\u6027\u80fd\u95ee\u9898\u5206\u6790\u548c\u8c03\u4f18","text":"<p>\u6027\u80fd\u4f18\u5316\u662f\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u5f88\u91cd\u8981\u7684\u73af\u8282\uff0c\u4e5f\u662f\u6bd4\u8f83\u590d\u6742\u7684\u8fc7\u7a0b\u3002\u5206\u6790\u6027\u80fd\u95ee\u9898\u7684\u5173\u952e\u662f\u80fd\u591f\u6536\u96c6\u5230\u5c3d\u53ef\u80fd\u591a\u7684\u4fe1\u606f\uff0c\u8bc6\u522b\u6027\u80fd\u74f6\u9888\u3002 Java Chassis\u9488\u5bf9\u6027\u80fd\u5206\u6790\u63d0\u4f9b\u7684\u6700\u6709\u7528\u5de5\u5177\u662f\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u3002\u5e94\u7528\u6027\u80fd\u76d1\u63a7 \u9ed8\u8ba4\u5468\u671f\u6027\u6536\u96c6\u7cfb\u7edf\u6027\u80fd\u6570\u636e\uff0c\u5e76\u5c06\u6570\u636e\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u3002\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u6570\u636e\u7edf\u8ba1\u63d0\u4f9b\u4e86\u975e\u5e38\u9ad8\u6548\u7684\u5b9e\u73b0\uff0c\u5efa\u8bae\u5e94\u7528\u7a0b\u5e8f\u9ed8\u8ba4\u6253\u5f00\u3002</p> <p>\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u63a8\u8350\u4e0b\u9762\u7684\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  metrics:\n    window_time: 60000\n    invocation:\n      latencyDistribution: 0,1,10,100,1000\n    Consumer.invocation.slow:\n      enabled: true\n      msTime: 1000\n    Provider.invocation.slow:\n      enabled: true\n      msTime: 1000\n    publisher.defaultLog:\n      enabled: true\n      endpoints.client.detail.enabled: true\n</code></pre> <p>\u7ed3\u5408\u4e1a\u52a1\u81ea\u5df1\u7684\u65e5\u5fd7\u7cfb\u7edf\uff0c\u53ef\u4ee5\u5c06\u6027\u80fd\u7edf\u8ba1\u65e5\u5fd7\u5b58\u50a8\u5230\u72ec\u7acb\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u51cf\u5c11\u5bf9\u4e1a\u52a1\u65e5\u5fd7\u67e5\u770b\u7684\u5e72\u6270\u3002</p>"},{"location":"featured-topics/performance.html#_2","title":"\u5173\u952e\u5904\u7406\u73af\u8282","text":"<p>\u5728 <code>RPC</code> \u8bf7\u6c42\u7684\u5904\u7406\u8fc7\u7a0b\u4e2d\uff0c\u6709\u4e9b\u5904\u7406\u73af\u8282\u975e\u5e38\u91cd\u8981\uff0c\u591a\u6570\u6027\u80fd\u74f6\u9888\u90fd\u548c\u8fd9\u4e9b\u73af\u8282\u6709\u5173\u3002<code>Java Chassis</code> \u6838\u5fc3\u5904\u7406\u73af\u8282\u53ef\u4ee5\u7b80\u5355\u6982\u8ff0\u4e3a\uff1a</p> <ul> <li>Provider\u6d41\u7a0b : \u63a5\u6536\u8bf7\u6c42 -&gt; \u521b\u5efa Producer Invocation -&gt; \u6267\u884c\u5904\u7406\u94fe -&gt; \u6267\u884c\u4e1a\u52a1\u903b\u8f91 -&gt; \u6267\u884c\u5904\u7406\u94fe -&gt; \u53d1\u9001\u54cd\u5e94</li> <li>Consumer\u6d41\u7a0b : \u521b\u5efa Producer Invocation -&gt; \u6267\u884c\u5904\u7406\u94fe -&gt; \u53d1\u9001\u8bf7\u6c42 -&gt; \u7b49\u5f85\u54cd\u5e94 -&gt; \u6267\u884c\u5904\u7406\u94fe</li> </ul> <p>\u5728<code>Provider\u6d41\u7a0b</code>\u4e2d\uff0c\u5b58\u5728\u7ebf\u7a0b\u6c60\u8d44\u6e90\uff0c\u7ebf\u7a0b\u6c60\u7ade\u4e89\u7684\u65f6\u95f4\u901a\u8fc7 <code>queue</code> \u6765\u8868\u793a\u3002 \u5728 <code>Consumer\u6d41\u7a0b</code>\u4e2d\uff0c\u5b58\u5728\u8fde\u63a5\u6c60\u8d44\u6e90\uff0c\u8fde\u63a5\u6c60\u7ade\u4e89\u7684\u65f6\u95f4\u901a\u8fc7 <code>connection</code> \u6765\u8868\u793a\u3002 \u7f51\u8def\u4f20\u8f93\u7684\u65f6\u95f4\u5728 <code>metrics</code> \u91cc\u9762\u672a\u4f53\u73b0\uff0c\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u95ee\u9898\uff0c\u8fd8\u9700\u8981\u7ed3\u5408\u5e73\u65f6\u7684\u6027\u80fd\u6d4b\u8bd5\u7ecf\u9a8c\u6570\u636e\uff0c\u6765\u5224\u65ad\u662f\u5426\u5b58\u5728\u6027\u80fd\u95ee\u9898\uff0c\u6bd4\u5982\uff0c<code>Consumer\u6d41\u7a0b</code>\u7684<code>wait</code>\u8868\u793a\u7b49\u5f85\u54cd\u5e94\u65f6\u95f4\uff0c\u5982\u679c\u4ece<code>Provider</code>\u7684 metrics \u65e5\u5fd7\u4e2d\uff0c\u67e5\u8be2\u5230\u603b\u7684\u5904\u7406\u65f6\u95f4\u4e3a 100ms\uff0c <code>wait</code> \u65f6\u95f4\u53ef\u80fd\u4e3a 200ms\uff0c \u4e2d\u95f4\u7684100ms\u65f6\u95f4\u662f metrics \u7edf\u8ba1\u4e0d\u5230\u7684\u65f6\u95f4\uff0c\u8fd9\u4e9b\u65f6\u95f4\u901a\u5e38\u7528\u4e8e\u7f51\u7edc\u8d44\u6e90\u7684\u7ade\u4e89\uff0c\u7531\u64cd\u4f5c\u7cfb\u7edf\u7b49\u5e95\u5c42\u5904\u7406\u7a0b\u5e8f\u7ba1\u7406\u3002 </p> <p>\u9700\u8981\u8be6\u7ec6\u4e86\u89e3 Java Chassis\u7684\u5904\u7406\u73af\u8282\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u6e90\u7801\uff0c\u67e5\u770b <code>InvocationStageTrace</code> \u7684\u5404\u4e2a\u65b9\u6cd5\u88ab\u8c03\u7528\u7684\u60c5\u51b5\u3002 \u901a\u8fc7\u6b64\u65b9\u6cd5\uff0c\u80fd\u591f\u5feb\u901f\u4e86\u89e3 Java Chassis\u7684\u4ee3\u7801\u7ed3\u6784\u548c\u5404\u4e2a metrics \u73af\u8282\u7684\u8be6\u7ec6\u542b\u4e49\u3002 </p>"},{"location":"featured-topics/performance.html#_3","title":"\u65f6\u5ef6\u6ce2\u52a8","text":"<p>\u4efb\u4f55\u5904\u7406\u73af\u8282\u7684\u5904\u7406\u65f6\u95f4\u90fd\u53ef\u80fd\u5b58\u5728\u6ce2\u52a8\uff0c\u5373\u4f7f\u8fd9\u4e2a\u73af\u8282\u7684\u5904\u7406\u903b\u8f91\u975e\u5e38\u7b80\u5355\uff0c\u6bd4\u5982\u4e1a\u52a1\u903b\u8f91\u4e2d\u53ea\u5305\u542b\u4e86\u4e00\u6bb5 <code>a+b</code> \u7684\u8ba1\u7b97\uff0c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002 \u5728 Java \u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u9020\u6210\u6ce2\u52a8\u7684\u56e0\u7d20\u5927\u6982\u6709\u5982\u4e0b\u51e0\u79cd\u60c5\u51b5\uff1a</p> <ul> <li>\u5e76\u53d1\u8bf7\u6c42\u3002\u5e76\u53d1\u8bf7\u6c42\u4f1a\u7ade\u4e89CPU\u8d44\u6e90\uff0c\u8bf7\u6c42\u8d8a\u591a\uff0c\u903b\u8f91\u88ab\u4e2d\u65ad\u548c\u5ef6\u8fdf\u5904\u7406\u7684\u6982\u7387\u5c31\u4f1a\u589e\u591a\uff0c\u8868\u73b0\u4e3a\u6574\u4f53\u5904\u7406\u65f6\u95f4\u53d8\u957f\u3002</li> <li>\u5783\u573e\u56de\u6536\u3002Java \u6267\u884c\u5783\u573e\u56de\u6536\u4f1a\u4e2d\u65ad\u5904\u7406\u8fc7\u7a0b\uff0c\u4e5f\u4f1a\u8868\u73b0\u4e3a\u903b\u8f91\u5904\u7406\u53d8\u957f\u3002 </li> </ul> <p>\u56e0\u6b64\uff0c\u5f53\u8bc6\u522b\u5230 <code>metrics</code> \u7684\u67d0\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u5904\u7406\u73af\u8282\uff08\u6ca1\u6709IO\u3001\u6ca1\u6709\u9501\uff09\u7684\u65f6\u5ef6\u53d8\u957f\u7684\u65f6\u5019\uff0c\u8fd9\u901a\u5e38\u662f\u7cfb\u7edf\u7e41\u5fd9\u7684\u4e00\u79cd\u8868\u73b0\uff0c\u5728\u5206\u6790\u6027\u80fd\u74f6\u9888\u7684\u8fc7\u7a0b\u4e2d\uff0c \u9700\u8981\u6536\u96c6 CPU\u3001\u5185\u5b58\u4f7f\u7528\u7387\u3001TPS\u3001\u5783\u573e\u56de\u6536\u65f6\u95f4\u7b49\u6570\u636e\uff0c\u6765\u8fdb\u4e00\u6b65\u5224\u65ad\u89e6\u53d1\u6027\u80fd\u95ee\u9898\u7684\u539f\u56e0\u3002 </p>"},{"location":"featured-topics/performance.html#_4","title":"\u521d\u59cb\u5316\u8fc7\u7a0b\u7684\u65f6\u5ef6","text":"<p>\u5e94\u7528\u7a0b\u5e8f\u63a5\u6536\u7684\u7b2c\u4e00\u4e2a\u8bf7\u6c42\uff0c\u901a\u5e38\u65f6\u5ef6\u6bd4\u8f83\u9ad8\uff0c\u8fd9\u662f\u56e0\u4e3a\u5f88\u591a\u9884\u5904\u7406\u8fc7\u7a0b\u9700\u8981\u5728\u7b2c\u4e00\u6b21\u8bf7\u6c42\u7684\u521d\u59cb\u5316\u3002\u5305\u62ec\uff1a\u52a0\u8f7d\u670d\u52a1\u5143\u6570\u636e\u4fe1\u606f\u3001\u521d\u59cb\u5316\u7ebf\u7a0b\u6c60\u3001\u8fde\u63a5\u6c60\u3001\u5efa\u7acb\u8fde\u63a5\uff0c\u4ee5\u53ca\u4e1a\u52a1\u903b\u8f91\u7684\u521d\u59cb\u5316\u6570\u636e\u5e93\u7b49\u64cd\u4f5c\u3002\u8fd9\u4e9b\u521d\u59cb\u5316\u64cd\u4f5c\u901a\u5e38\u90fd\u4f1a\u4f7f\u7528\u9501\uff0c\u5982\u679c\u662f\u5e76\u53d1\u8bf7\u6c42\uff0c\u90a3\u4e48\u6bcf\u4e2a\u5e76\u53d1\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\u90fd\u4f1a\u53d8\u957f\u3002 </p> <p>\u5728\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u4e5f\u53ef\u80fd\u51fa\u73b0\u7c7b\u4f3c\u7684\u521d\u59cb\u5316\u73b0\u8c61\u3002\u6bd4\u5982\u7cfb\u7edf\u5728\u665a\u95f4\u5f88\u4e45\u6ca1\u6709\u7528\u6237\u4f7f\u7528\uff0c\u4e0a\u73ed\u65f6\u95f4\u7a81\u7136\u5927\u91cf\u7528\u6237\u5e76\u53d1\u767b\u5f55\u3002 \u7cfb\u7edf\u672a\u4f7f\u7528\u671f\u95f4\uff0c\u6709\u4e9b\u8d44\u6e90\u4f1a\u88ab\u91ca\u653e\uff0c\u6bd4\u5982\u7ebf\u7a0b\u6c60\u3001\u8fde\u63a5\u6c60\uff0c\u7528\u6237\u4f1a\u8bdd\u4fe1\u606f\u7b49\u3002 </p> <p>\u521d\u59cb\u5316\u8fc7\u7a0b\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u6bdb\u523a\uff0c\u521d\u59cb\u5316\u8fc7\u7a0b\u8017\u65f6\uff0c\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u7684\u9519\u8bef\u7387\u3002\u7279\u522b\u662f\u8bbe\u7f6e\u975e\u5e38\u77ed\u7684\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\u7684\u6761\u4ef6\u4e0b\u3002 </p>"},{"location":"featured-topics/performance.html#_5","title":"\u5176\u4ed6\u91cd\u8981\u73af\u8282\u7684\u65f6\u5ef6","text":"<ul> <li>\u7ebf\u7a0b\u6c60\u6392\u961f(queue) : \u63d0\u4f9b\u8005\u4e00\u822c\u4f1a\u901a\u8fc7\u7ebf\u7a0b\u6c60\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u3002\u5982\u679c\u7ebf\u7a0b\u6c60\u51fa\u73b0\u6392\u961f\u8bf7\u6c42\uff0c\u5373\u4f7f\u6392\u961f\u8bf7\u6c42\u5f88\u5c11\uff0c\u4e5f\u610f\u5473\u7740\u5f53\u524d\u7684\u8bf7\u6c42\u9891\u7387\u8d85\u8fc7\u4e86\u7cfb\u7edf\u5904\u7406\u80fd\u529b\u3002\u9996\u5148\u53ef\u4ee5\u67e5\u770bCPU\u4f7f\u7528\u7387\uff0c\u5982\u679c\u4f7f\u7528\u7387\u9ad8\uff0c\u8fd9\u79cd\u60c5\u51b5\u5c31\u53ea\u80fd\u4f18\u5316\u6307\u4ee4\uff0c\u6216\u8005\u63d0\u5347\u5904\u7406\u80fd\u529b\uff1b\u5982\u679cCPU\u4f7f\u7528\u7387\u4f4e\uff0c\u53ef\u4ee5\u7ed3\u5408\u5806\u6808\u4fe1\u606f\uff0c\u8fdb\u4e00\u6b65\u5206\u6790\u5bfc\u81f4\u6392\u961f\u7684\u5177\u4f53\u903b\u8f91\u662f\u7b49\u5f85IO\u8fd8\u662f\u7531\u4e8e\u9501\u3001\u8d44\u6e90\u7ade\u4e89\u5bfc\u81f4\u7684\u3002</li> <li>\u83b7\u53d6\u8fde\u63a5\u6c60(connection): \u5efa\u7acb\u8fde\u63a5\u548c\u8fde\u63a5\u6c60\u7ade\u4e89\u662f <code>RPC</code> \u5e38\u89c1\u7684\u6027\u80fd\u74f6\u9888\u3002 \u5efa\u7acb\u8fde\u63a5\u662f\u6bd4\u8f83\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u4ee5 <code>HTTP</code> \u4e3a\u4f8b\uff0c \u5efa\u7acb\u4e00\u6b21\u8fde\u63a5\u901a\u5e38\u9700\u8981 <code>100ms</code> \u5de6\u53f3\u7684\u65f6\u95f4\uff0c\u670d\u52a1\u7aef\u901a\u5e38\u53ea\u80fd\u5904\u7406\u6570\u767e\u7684\u5e76\u53d1\u8fde\u63a5\u3002 \u5982\u679c\u5e76\u53d1\u8fc7\u5927\uff0c\u5c31\u4f1a\u5bfc\u81f4\u8fde\u63a5\u8d85\u65f6\u3002 \u6d89\u53ca\u8fde\u63a5\u8017\u65f6\u7684\u60c5\u51b5\uff0c\u9700\u8981\u901a\u8fc7\u8fde\u63a5\u6c60\u8bbe\u7f6e\uff0c\u5206\u6790\u9002\u5408\u8fd0\u884c\u73af\u5883\u9700\u8981\u7684\u6700\u5927\u8fde\u63a5\u6570\uff0c\u8fdb\u884c\u5408\u7406\u7684\u8fde\u63a5\u89c4\u5212\u3002 </li> </ul>"},{"location":"featured-topics/performance.html#_6","title":"\u6027\u80fd\u95ee\u9898\u5206\u6790","text":"<p>\u7efc\u5408\u4e0a\u9762\u7684\u4e00\u4e9b\u573a\u666f\uff0c\u53ef\u4ee5\u53d1\u4e0b\u6027\u80fd\u95ee\u9898\u5206\u6790\u4e0d\u662f\u7b80\u5355\u7684\u770b\u67d0\u6761\u8017\u65f6\u6570\u636e\u5c31\u53ef\u4ee5\u8fdb\u884c\u51c6\u786e\u7684\u5206\u6790\uff0c\u8fd9\u4e9b\u6570\u636e\u901a\u5e38\u53ea\u662f\u7ed9\u4e00\u4e2a\u6307\u793a\uff0c\u7528\u4e8e\u5224\u65ad\u6027\u80fd\u5206\u6790\u7684\u57fa\u672c\u65b9\u5411\uff0c\u7136\u540e\u7ed3\u5408\u65b9\u5411\uff0c\u6536\u96c6\u66f4\u591a\u7684\u4fe1\u606f\u53bb\u5370\u8bc1\u3002 \u6027\u80fd\u95ee\u9898\u4e00\u822c\u4ee5\u8d85\u65f6\u7684\u65b9\u5f0f\u8868\u73b0\u51fa\u6765\uff0c\u5f53\u51fa\u73b0\u6027\u80fd\u95ee\u9898\u7684\u65f6\u5019\uff0c\u5efa\u8bae\u6536\u96c6\u5982\u4e0b\u65e5\u5fd7\uff1a</p> <ol> <li>consumer\u8c03\u7528\u51fa\u9519\u65e5\u5fd7\uff08\u5982\u679c\u6709\u7684\u8bdd\uff0c\u6bd4\u5982\u8d85\u65f6\uff09\uff1b</li> <li>provider\u8c03\u7528\u51fa\u9519\u65e5\u5fd7\uff08\u5982\u679c\u6709\u7684\u8bdd\uff0c\u6bd4\u5982\u4e22\u5f03\u8bf7\u6c42\uff09\uff1b</li> <li>consumer\u5bf9\u5e94\u65f6\u95f4\u6bb5\u7684metrics\u65e5\u5fd7\uff0c\u5305\u62ec\u5468\u671f\u7edf\u8ba1\u6570\u636e\u548c\u6162\u8c03\u7528\u65e5\u5fd7\uff1b</li> <li>provider\u5bf9\u5e94\u65f6\u95f4\u6bb5\u7684metrics\u65e5\u5fd7\uff0c\u5305\u62ec\u5468\u671f\u7edf\u8ba1\u6570\u636e\u548c\u6162\u8c03\u7528\u65e5\u5fd7\uff1b</li> </ol> <p>\u901a\u5e38\u7ed3\u5408\u4e0a\u9762\u7684\u65e5\u5fd7\uff0c\u5c31\u80fd\u591f\u521d\u6b65\u8bc6\u522b\u51fa\u6027\u80fd\u74f6\u9888\u7684\u4f4d\u7f6e\u4e86\u3002metrics\u65e5\u5fd7\u91cd\u70b9\u53cd\u6620\u7684\u662fJava Chassis\u5404\u4e2a\u5904\u7406\u73af\u8282\u7684\u8017\u65f6\uff0c \u5bf9\u4e8e\u7ebf\u7a0b\u6392\u961f\u7684\u573a\u666f\uff0c\u9700\u8981\u8fdb\u4e00\u6b65\u8bc6\u522b\u4e1a\u52a1\u7684\u6027\u80fd\u74f6\u9888\uff1a</p> <ol> <li>\u901a\u8fc7 <code>jstack</code> \u91c7\u96c6\u5806\u6808\u4fe1\u606f\u3002\u8fd9\u4e2a\u901a\u5e38\u6bd4\u8f83\u96be\u4e8e\u6536\u96c6\uff0c\u9700\u8981\u5728\u51fa\u73b0\u6027\u80fd\u7f13\u6162\u7684\u65f6\u523b\uff0c\u6293\u53d6\u3002\u5efa\u8bae\u6bcf\u9694\u51e0\u79d2\u949f\uff0c\u8fde\u7eed\u6293\u53d63\u4e2a\u4ee5\u4e0a\u5806\u6808\uff0c\u7528\u4e8e\u5206\u6790\u3002</li> <li>\u5bf9\u4e8e\u6d89\u53ca\u5185\u5b58\u7ba1\u7406\u548c\u5783\u573e\u56de\u6536\u7684\u95ee\u9898\uff0c\u9700\u8981\u6536\u96c6GC\u7684\u4fe1\u606f\uff0c\u548c\u5185\u5b58\u589e\u957f\u8d8b\u52bf\u3002 </li> </ol> <p>\u6536\u96c6\u6027\u80fd\u6570\u636e\u662f\u5206\u6790\u7684\u7b2c\u4e00\u6b65\uff0c\u7406\u89e3\u6027\u80fd\u6570\u636e\u9700\u8981\u719f\u6089Java Chassis\u7684\u5904\u7406\u8fc7\u7a0b\u3001\u7ebf\u7a0b\u6c60\u6392\u961f\u548c\u6267\u884c\u539f\u7406\u3001JVM\u7ebf\u7a0b\u5806\u6808\u548cGC\u673a\u5236\u7b49\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6 \u63cf\u8ff0\uff0c\u7ed3\u5408\u5b9e\u9645\u95ee\u9898\u5728\u8fc7\u7a0b\u4e2d\u5b66\u4e60\u662f\u66f4\u597d\u7684\u63d0\u5347\u65b9\u5f0f\u3002 Java Chassis\u4e2d\u901a\u8fc7performance\u6807\u7b7e\u7684\u95ee\u9898\u548c\u6027\u80fd\u6709\u5173\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u4e1a\u52a1\u6027\u80fd\u95ee\u9898 \u5206\u6790\u7684\u53c2\u8003\uff0c\u78b0\u5230\u6027\u80fd\u95ee\u9898\uff0c\u4e5f\u53ef\u4ee5\u63d0\u4ea4issue\uff0c\u627e\u793e\u533a\u5bfb\u6c42\u5e2e\u52a9\uff0c\u8bb0\u5f97\u5728issue\u4e2d\u5305\u542bmetrics\u4fe1\u606f\u3002 </p>"},{"location":"featured-topics/performance.html#_7","title":"\u6027\u80fd\u5e38\u8bc6","text":"<p>\u4e0b\u9762\u63d0\u4f9b\u4e00\u4e9b\u5e38\u89c1\u7684\u6570\u636e\uff0c\u5e2e\u52a9\u8bc6\u522b\u6027\u80fd\u74f6\u9888\u3002\u8fd9\u4e9b\u6570\u636e\u5e76\u4e0d\u662f\u7406\u8bba\u4e0a\u7cbe\u786e\u7684\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002 </p> <ul> <li>\u901a\u8fc7\u4e00\u6b21\u8c03\u7528\uff0c\u53ef\u4ee5\u6536\u96c6\u5230\u4e00\u4e2a\u8bf7\u6c42\u53d1\u51fa\u5230\u6536\u5230\u54cd\u5e94\u7684\u65f6\u5ef6\uff0c\u8fd9\u4e2a\u65f6\u5ef6\u79f0\u4e3a\u5e73\u5747\u65f6\u5ef6\u3002\u5e76\u53d1\u573a\u666f\uff0c\u5e73\u5747\u65f6\u5ef6\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u901a\u5e38\u968f\u7740\u5e76\u53d1\u6570   \u589e\u5927\u800c\u589e\u5927\u3002</li> <li>\u4e00\u4e2a\u8bf7\u6c42\u7684\u5e73\u5747\u65f6\u5ef6\u57280.1ms~1ms\u4e4b\u95f4\uff0cTPS\u53ef\u4ee5\u8fbe\u52301\u4e07~10\u4e07\u3002 0.1ms\u7684\u65f6\u5ef6\uff0c\u662f\u4e0d\u5e26\u4efb\u4f55\u4e1a\u52a1\u903b\u8f91\u7684\u5f00\u53d1\u6846\u67b6\u65f6\u5ef6\uff0c\u5f53\u5e73\u5747\u65f6\u5ef6   \u5c0f\u4e8e1ms\u7684\u60c5\u51b5\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u6027\u80fd\uff0c\u9700\u8981\u8003\u8651\u6846\u67b6\u6027\u80fd\u8c03\u4f18\uff0c\u8fd8\u4f1a\u6d89\u53ca\u64cd\u4f5c\u7cfb\u7edf\u3001\u7f51\u7edc\u7b49\u8c03\u4f18\uff0c\u6bd4\u8f83\u590d\u6742\uff1b\u5927\u4e8e1ms\u7684\u60c5\u51b5\uff0c\u901a\u5e38\u90fd\u9700\u8981   \u8c03\u4f18\u4e1a\u52a1\u4ee3\u7801\uff0c\u6846\u67b6\u4e0d\u662f\u6027\u80fd\u74f6\u9888\u3002</li> <li>\u4e00\u4e2a\u8bf7\u6c42\u7684\u5e73\u5747\u65f6\u5ef6\u57281ms~10ms\u4e4b\u95f4\uff0cTPS\u53ef\u4ee5\u8fbe\u52301\u5343~1\u4e07\u3002</li> <li>\u4e00\u4e2a\u8bf7\u6c42\u7684\u5e73\u5747\u65f6\u5ef6\u572810ms~100ms\u4e4b\u95f4\uff0cTPS\u53ef\u4ee5\u8fbe\u52301\u767e~1\u5343\u3002</li> <li>\u6709\u4e2a\u7b80\u5355\u7684\u516c\u5f0f\uff0c\u53ef\u4ee5\u4f30\u7b97\u6700\u5927TPS\uff1a <code>CPU\u6838\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code> &lt; TPS &lt; <code>\u7ebf\u7a0b\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code>\u3002 \u8d8a\u662f\u8ba1\u7b97\u5bc6\u96c6\u578b\u7684   \u4efb\u52a1\uff0cTPS\u8d8a\u63a5\u8fd1<code>CPU\u6838\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code>\uff1b\u7a7a\u95f2\u7b49\u5f85\u4efb\u52a1\u8d8a\u591a\uff0c\u8d8a\u662f\u63a5\u8fd1<code>\u7ebf\u7a0b\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code>\u3002 \u538b\u6d4b\u7684\u65f6\u5019\uff0c\u5982\u679c\u5e76\u53d1   \u8bf7\u6c42\u5927\u4e8e\u4e0a\u8ff0\u4f30\u7b97\u503c\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u5927\u91cf\u8bf7\u6c42\u8d85\u65f6\u3002 </li> </ul>"},{"location":"featured-topics/secrets.html","title":"\u6280\u672f\u89e3\u5bc6","text":"<ul> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u591a\u79cd\u5e8f\u5217\u5316\u65b9\u5f0f\u652f\u6301</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u7194\u65ad\u673a\u5236\u7684\u6539\u8fdb\u8def\u7a0b</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8fc7\u8f7d\u72b6\u6001\u4e0b\u7684\u5feb\u901f\u5931\u8d25</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u5e94\u7528\u89c6\u89d2\u7684\u914d\u7f6e\u7ba1\u7406</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6613\u6269\u5c55\u7684\u591a\u79cd\u6ce8\u518c\u4e2d\u5fc3\u652f\u6301</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u4e0eSpring Cloud\u7684\u4e92\u64cd\u4f5c</li> </ul>"},{"location":"featured-topics/upgrading.html","title":"\u5347\u7ea7\u6307\u5bfc","text":"<ul> <li>2.8.x \u5347\u7ea7 3.0.0\u6307\u5bfc</li> </ul>"},{"location":"featured-topics/application-bmi/flow-control.html","title":"\u6d41\u91cf\u63a7\u5236","text":"<p>\u6d41\u91cf\u63a7\u5236\u673a\u5236\u901a\u8fc7\u63a7\u5236\u6570\u636e\u4f20\u8f93\u901f\u7387\u6765\u907f\u514d\u5fae\u670d\u52a1\u8fc7\u8f7d\u8fd0\u884c\u3002\u672c\u6307\u5357\u5c06\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528\u6d41\u91cf\u63a7\u5236\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/flow-control.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/flow-control.html#_3","title":"\u5f00\u542f","text":"<ul> <li>\u5728 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u6307\u660e\u6d41\u63a7\u7b56\u7565\uff1a</li> </ul> <pre><code>servicecomb:\n  matchGroup:\n    bmi-operation: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n  rateLimiting:\n    bmi-operation: |\n      timeoutDuration: 0\n      limitRefreshPeriod: 1000\n      rate: 1\n</code></pre>"},{"location":"featured-topics/application-bmi/flow-control.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u8bbf\u95ee http://localhost:8889\uff0c\u5728\u8eab\u9ad8\u548c\u4f53\u91cd\u7684\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u6b63\u6570\uff0c\u5c1d\u8bd5\u57281\u79d2\u5185\u591a\u6b21\u70b9\u51fb Submit \u6309\u94ae\uff0c\u6b64\u65f6\u5c31\u80fd\u770b\u5230\u7f51\u9875\u7531\u5de6\u4fa7\u7684\u6b63\u5e38\u7684\u754c\u9762\u53d8\u6210\u4e86\u53f3\u4fa7\u63d0\u793a\u7531\u4e8e\u6d41\u63a7\u53d7\u9650\u800c\u8bf7\u6c42\u88ab\u62d2\u7684\u754c\u9762\u3002</p> <p></p>"},{"location":"featured-topics/application-bmi/gray-release.html","title":"\u7070\u5ea6\u53d1\u5e03","text":"<p>\u7070\u5ea6\u53d1\u5e03\u5b58\u5728\u5f88\u591a\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u5305\u62ec\u89e3\u51b3\u7248\u672c\u517c\u5bb9\u6027\u95ee\u9898\u3001A/B Test\u3001\u5e73\u6ed1\u5347\u7ea7\u7b49\u3002\u672c\u6307\u5357\u5c06\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/gray-release.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/gray-release.html#_3","title":"\u542f\u7528","text":"<ul> <li>\u9996\u5148\u9700\u8981\u8fdb\u884c\u7070\u5ea6\u53d1\u5e03\u7b56\u7565\u8bbe\u8ba1\u3002 \u5728\u8fd9\u4e2a\u5b9e\u4f8b\u4e2d\uff0c\u5c06\u4f53\u91cd &gt;= 60 \u7684\u8bf7\u6c42\u8f6c\u53d1\u5230 0.0.2 \u7248\u672c\uff0c \u5c06\u4f53\u91cd &lt;60 \u7684\u8bf7\u6c42\u8f6c\u53d1\u5230 0.0.1 \u7248\u672c\u3002 \u7070\u5ea6\u53d1\u5e03\u7b56\u7565\u4e00\u822c\u4f7f\u7528\u8bf7\u6c42\u5934\u8fdb\u884c\u6807\u8bb0\uff0c   \u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u7684\uff0c\u4f7f\u7528 Java Chassis\u7684Context Mapper\u673a\u5236\uff0c\u5c06\u7b26\u5408\u8bf7\u6c42\u7279\u5f81\u7684\u8bf7\u6c42\u8bbe\u7f6e\u4e0d\u4e00\u6837\u7684 header\u3002 \u4e0b\u9762\u7684\u914d\u7f6e\u4f1a\u6839\u636e\u8bf7\u6c42\u7279\u6027\uff0c\u8bbe\u7f6e x-gray = 1\uff0c \u6216\u8005   x-gray= 0 \u3002 </li> </ul> <p>\u6ce8\u610f\uff1a\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u7684\u5339\u914d\u89c4\u5219\u90fd\u662f String - String \u7684\u952e\u503c\u5bf9\u3002\u4f7f\u7528 yaml \u6587\u4ef6\u914d\u7f6e\u7684\u65f6\u5019\uff0c\u5982\u679c\u6d89\u53ca\u6570\u5b57\u548c\u7279\u6b8a\u5b57\u7b26\uff0c\u9700\u8981\u4f7f\u7528\u5f15\u53f7\uff0c\u5426\u5219\u4f1a\u89e3\u6790\u4e3a\u5176\u4ed6\u7c7b\u578b\u51fa\u73b0\u9519\u8bef\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    bmi-operation: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n    bmi-operation-heavy: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n          queries:\n            weight:\n              compare: \"&gt;=60\"\n    bmi-operation-thin: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n          queries:\n            weight:\n              compare: \"&lt;60\"\n  mapper:\n    bmi-operation-heavy: |\n      target:\n        x-gray: \"1\"\n    bmi-operation-thin: |\n      target:\n        x-gray: \"0\"\n</code></pre> <ul> <li>\u5728 \u4f53\u8d28\u6307\u6570\u754c\u9762 \u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u6dfb\u52a0\u7070\u5ea6\u53d1\u5e03\u7b56\u7565\uff1a</li> </ul> <pre><code>servicecomb:\n  router:\n    type: router\n  globalRouteRule: |\n    - precedence: 2\n      match:\n        headers:\n          x-gray: \n            exact: \"1\"\n      route:\n        - weight: 100\n          tags:\n            version: 0.0.2\n    - precedence: 1\n      match:\n        headers:\n          x-gray: \n            exact: \"0\"\n      route:\n        - weight: 100\n          tags:\n            version: 0.0.1\n</code></pre> <p>\u6ce8\u610f\uff1a\u8def\u7531\u63a7\u5236\u662f\u5728\u6d88\u8d39\u8005\u65b9\u3002</p>"},{"location":"featured-topics/application-bmi/gray-release.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u5bf9 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u5fae\u670d\u52a1\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f7f\u5176\u8fd0\u884c\u5b9e\u4f8b\u6570\u4e3a2\uff0c\u5373\u65b0\u589e\u4e00\u4e2a\u8fd0\u884c\u5b9e\u4f8b\u3002 \u8be5\u5b9e\u4f8b\u7684\u7248\u672c\u53f7\u662f 0.0.2. </p> <pre><code>mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Dservicecomb.rest.address=0.0.0.0:7779 -Dservicecomb.service.version=0.0.2\"\n</code></pre> <ul> <li> <p>\u8bbf\u95ee http://localhost:8889 \uff0c\u5728\u8eab\u9ad8\u548c\u4f53\u91cd\u680f\u5904\u8f93\u5165\u6b63\u6570\uff0c\u5e76\u70b9\u51fb Submit \u6309\u94ae\u3002</p> </li> <li> <p>\u5982\u679c\u4f53\u91cd\u5927\u4e8e\u7b49\u4e8e60\uff0c \u8bf7\u6c42\u59cb\u7ec8\u8f6c\u53d1\u5230\u4e00\u4e2a0.0.2\u7248\u672c\u5b9e\u4f8b\uff1b\u4f53\u91cd\u5c0f\u4e8e60\uff0c \u8bf7\u6c42\u4f1a\u8f6c\u53d1\u52300.0.1\u7248\u672c\u7684\u5b9e\u4f8b\u3002 </p> </li> </ul> <p></p>"},{"location":"featured-topics/application-bmi/load-balance.html","title":"\u8d1f\u8f7d\u5747\u8861","text":"<p>\u5f53\u5bf9\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\u65f6\uff0c\u9700\u8981\u5c06\u8bf7\u6c42\u5747\u8861\u5730\u5206\u53d1\u5230\u591a\u4e2a\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u4e0a\u3002\u672c\u6307\u5357\u5c06\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528 ServiceComb \u63d0\u4f9b\u7684\u8d1f\u8f7d\u5747\u8861\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/load-balance.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/load-balance.html#_3","title":"\u5f00\u542f","text":"<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u4f7f\u7528\u5185\u7f6e\u7684\u4e00\u4e2a\u7b80\u5355\u7684\u8d1f\u8f7d\u5747\u8861\u7684\u5b9e\u73b0\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u914d\u7f6e\u3002</p>"},{"location":"featured-topics/application-bmi/load-balance.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u5bf9 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u5fae\u670d\u52a1\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f7f\u5176\u8fd0\u884c\u5b9e\u4f8b\u6570\u4e3a2\uff0c\u5373\u65b0\u589e\u4e00\u4e2a\u8fd0\u884c\u5b9e\u4f8b\uff1a</p> <pre><code>mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Dservicecomb.rest.address=0.0.0.0:7779\"\n</code></pre> <p>\u4e3a\u4e86\u4fbf\u4e8e\u533a\u5206\u4e0d\u540c\u7684\u8fd0\u884c\u5b9e\u4f8b\uff0c\u5728\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u7684\u5b9e\u73b0\u4e2d\u65b0\u589e\u4e86\u8fd4\u56de\u5b9e\u4f8bID\u548c\u8fd0\u884c\u65f6\u95f4\u7684\u63a5\u53e3\u3002\u800c\u4e3a\u4e86\u907f\u514d\u7aef\u53e3\u51b2\u7a81\uff0c\u65b0\u7684\u5b9e\u4f8b\u5728\u53e6\u4e00\u4e2a\u7aef\u53e3\u4e0a\u8fd0\u884c\u3002</p> <p>\u6b64\u65f6\u70b9\u51fb Submit \u6309\u94ae\u5c31\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u4e24\u4e2a\u754c\u9762\u4e2d\u7684\u5b9e\u4f8bID\u4ea4\u66ff\u51fa\u73b0\u3002</p> <p></p>"},{"location":"featured-topics/application-bmi/quick-start-advance.html","title":"\u5fae\u670d\u52a1\u5f00\u53d1\u8fdb\u9636","text":"<p>\u672c\u6307\u5357\u5c06\u5e26\u60a8\u8fdb\u5165\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\u7684\u8fdb\u9636\u4e4b\u65c5\u3002\u5728\u6b64\u65c5\u7a0b\uff0c\u60a8\u5c06\u80fd\u5b66\u5230 ServiceComb \u6846\u67b6\u5982\u4f55\u901a\u8fc7\u5904\u7406\u94fe\u4fdd\u8bc1\u5fae\u670d\u52a1\u7684\u53ef\u9760\u6027\uff1a</p> <ul> <li> <p>\u8d1f\u8f7d\u5747\u8861\u3002\u5747\u8861\u5730\u5c06\u8bf7\u6c42\u5206\u53d1\u81f3\u591a\u4e2a\u670d\u52a1\u5b9e\u4f8b\u4e2d\u5904\u7406\u3002</p> </li> <li> <p>\u6d41\u91cf\u63a7\u5236\u3002\u9650\u5236\u5355\u4f4d\u65f6\u95f4\u5185\u8bbf\u95ee\u67d0\u4e2a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u6570\u91cf\u3002</p> </li> <li> <p>\u7194\u65ad\u63a7\u5236\u3002\u5728\u5fae\u670d\u52a1\u5e94\u7528\u4e2d\u9694\u79bb\u5f02\u5e38\u670d\u52a1\u5e76\u963b\u6b62\u5f02\u5e38\u4f20\u9012\u3002</p> </li> <li> <p>\u7070\u5ea6\u53d1\u5e03\u3002\u5bf9\u5fae\u670d\u52a1\u8fdb\u884c\u591a\u7248\u672c\u53d1\u5e03\u3002</p> </li> </ul>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html","title":"\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u5feb\u901f\u5165\u95e8\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002\u63a5\u4e0b\u6765\u5c06\u8fdb\u5165\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u7684\u5f00\u53d1\u4e4b\u65c5\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_2","title":"\u5feb\u901f\u5f00\u53d1\u5fae\u670d\u52a1\u5e94\u7528","text":"<p>BMI\u4e3b\u8981\u7531\u4e24\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\uff1a</p> <ul> <li> <p>\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\uff1a\u8d1f\u8d23\u5904\u7406\u8fd0\u7b97\u4e8b\u52a1\u3002</p> </li> <li> <p>\u4f53\u8d28\u6307\u6570\u754c\u9762\uff1a\u63d0\u4f9b\u7528\u6237\u754c\u9762\u53ca\u7f51\u5173\u670d\u52a1\u3002</p> </li> </ul> <p>\u5728\u5f00\u59cb\u524d\uff0c\u9700\u8981\u5148\u5728\u670d\u52a1\u7684\u7236\u5de5\u7a0b\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4f9d\u8d56\u9879\uff1a</p> <pre><code>\n&lt;dependencyManagement&gt;\n  &lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;java-chassis-dependencies&lt;/artifactId&gt;\n      &lt;version&gt;${servicecomb.version}&lt;/version&gt;\n      &lt;type&gt;pom&lt;/type&gt;\n      &lt;scope&gt;import&lt;/scope&gt;\n    &lt;/dependency&gt;\n  &lt;/dependencies&gt;\n&lt;/dependencyManagement&gt;\n</code></pre> <p>\u6ce8\u610f: <code>java-chassis-dependencies</code> \u8fd9\u4e2a\u4f9d\u8d56\u662f\u4ee5pom\u7684\u5f62\u5f0f\u5bfc\u5165\u6765\u7edf\u4e00\u9879\u76ee\u4e2d\u7684\u4f9d\u8d56\u9879\u7684\u7248\u672c\u7ba1\u7406\u3002</p> <p>\u4e0b\u9762\u5c06\u5bf9\u8fd9\u4e24\u4e2a\u5fae\u670d\u52a1\u7684\u5b9e\u73b0\u8fdb\u884c\u4ecb\u7ecd\uff0c\u5176\u4ee3\u7801\u5df2\u6258\u7ba1\u4e8egithub\u4e0a\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_3","title":"\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u5b9e\u73b0","text":"<p>\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u63d0\u4f9b\u8fd0\u7b97\u670d\u52a1\uff0c\u5176\u5b9e\u73b0\u5206\u4e3a\u4e09\u90e8\u5206\uff1a</p> <ul> <li> <p>\u5177\u4f53\u8fd0\u7b97\u5b9e\u73b0</p> </li> <li> <p>\u670d\u52a1\u7aef\u70b9\u5b9a\u4e49</p> </li> <li> <p>\u670d\u52a1\u542f\u52a8\u5165\u53e3</p> </li> </ul>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_4","title":"\u5177\u4f53\u8fd0\u7b97\u5b9e\u73b0","text":"<p>\u672c\u6a21\u5757\u8d1f\u8d23\u8ba1\u7b97\u4f53\u8d28\u6307\u6570\uff0c\u6839\u636e\u516c\u5f0f <code>\u4f53\u8d28\u6307\u6570=\u4f53\u91cd / \u8eab\u9ad8^2</code> \u8fdb\u884c\u5b9e\u73b0\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public interface CalculatorService {\n  double calculate(double height, double weight);\n}\n\n@Service\npublic class CalculatorServiceImpl implements CalculatorService {\n  @Override\n  public double calculate(double height, double weight) {\n    if (height &lt;= 0 || weight &lt;= 0) {\n      throw new IllegalArgumentException(\"Arguments must be above 0\");\n    }\n    double heightInMeter = height / 100;\n    return weight / (heightInMeter * heightInMeter);\n  }\n}\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_5","title":"\u670d\u52a1\u7aef\u70b9\u5b9a\u4e49","text":"<p>\u670d\u52a1\u7aef\u70b9\u7528\u4e8e\u751f\u6210\u670d\u52a1\u5951\u7ea6\uff0c\u4f7f\u5f97\u670d\u52a1\u95f4\u80fd\u65e0\u7f1d\u8fdb\u884c\u901a\u4fe1\u3002\u9996\u5148\u5b9a\u4e49\u7aef\u70b9\u63a5\u53e3\uff1a</p> <pre><code>public interface CalculatorEndpoint {\n  double calculate(double height, double weight);\n}\n</code></pre> <p>\u5f15\u5165 ServiceComb \u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependencies&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p>\u66b4\u9732\u8fd0\u7b97\u670d\u52a1\u7684Restful\u7aef\u70b9\uff1a</p> <pre><code>@RestSchema(schemaId = \"calculatorRestEndpoint\")\n@RequestMapping(\"/\")\npublic class CalculatorRestEndpoint implements CalculatorEndpoint {\n\n  private final CalculatorService calculatorService;\n\n  @Autowired\n  public CalculatorRestEndpoint(CalculatorService calculatorService) {\n    this.calculatorService = calculatorService;\n  }\n\n  @Override\n  @GetMapping(\"/bmi\")\n  public double calculate(double height, double weight) {\n    return calculatorService.calculate(height, weight);\n  }\n}\n</code></pre> <p>\u8fd9\u91cc\u7528<code>@RestSchema</code>\u6ce8\u91ca\u7aef\u70b9\u540e\uff0c ServiceComb \u5fae\u670d\u52a1\u6846\u67b6\u4f1a\u81ea\u52a8\u751f\u6210\u5bf9\u5e94\u7684\u670d\u52a1\u7aef\u70b9\u5951\u7ea6\uff0c\u5e76\u6839\u636e \u5982\u4e0b\u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u7684\u5b9a\u4e49\u6765\u914d\u7f6e\u7aef\u70b9\u7aef\u53e3\uff0c\u5c06\u5951\u7ea6\u548c\u670d\u52a1\u4e00\u8d77\u6ce8\u518c\u5230\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u3002</p> <pre><code>servicecomb:\n  registry:\n    sc:\n      address: http://127.0.0.1:30100\n  service:\n    application: bmi\n    name: calculator\n    version: 0.0.1\n\n  rest:\n    address: 0.0.0.0:7777\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_6","title":"\u670d\u52a1\u542f\u52a8\u5165\u53e3","text":"<p>\u670d\u52a1\u542f\u52a8\u5165\u53e3\u6309\u7167\u9ad8\u6027\u80fd\u6a21\u5f0f \u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>@SpringBootApplication\npublic class CalculatorApplication {\n  public static void main(String[] args) {\n    try {\n      new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(CalculatorApplication.class).run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_7","title":"\u4f53\u8d28\u6307\u6570\u754c\u9762\u5b9e\u73b0","text":"<p>\u672c\u6a21\u5757\u8d1f\u8d23\u63d0\u4f9b\u7528\u6237\u754c\u9762\u53ca\u7f51\u5173\u670d\u52a1\u3002\u5176\u5b9e\u73b0\u4e3b\u8981\u5206\u4e3a\u4e09\u90e8\u5206\uff1a</p> <ul> <li> <p>\u524d\u7aef\u754c\u9762</p> </li> <li> <p>\u7f51\u5173\u53ca\u8def\u7531\u89c4\u5219</p> </li> <li> <p>\u670d\u52a1\u542f\u52a8\u5165\u53e3</p> </li> </ul> <p>\u5176\u4e2d\uff0c\u524d\u7aef\u754c\u9762\u7684\u7ec4\u4ef6\u4f7f\u7528\u4e86Bootstrap\u6765\u5f00\u53d1\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_8","title":"\u7f51\u5173\u53ca\u8def\u7531\u89c4\u5219","text":"<p>\u7f51\u5173\u670d\u52a1\u4f7f\u7528 ServiceComb \u63d0\u4f9b\u7684 Edge Service \u6765\u5b9e\u73b0\u3002</p> <p>\u5f15\u5165\u4f9d\u8d56\uff1a</p> <pre><code>\n&lt;dependencies&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;edge-core&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p>\u5728 <code>application.yml</code> \u6587\u4ef6\u4e2d\u914d\u7f6e\u8def\u7531\u89c4\u5219\u53ca\u670d\u52a1\u7aef\u53e3\u4fe1\u606f\uff1a</p> <pre><code>servicecomb:\n  registry:\n    sc:\n      address: http://127.0.0.1:30100\n  service:\n    application: bmi\n    name: gateway\n    version: 0.0.1\n\n  rest:\n    address: 0.0.0.0:8889\n\n  tracing:\n    enabled: false\n\n  http:\n    dispatcher:\n      edge:\n        default:\n          enabled: false\n          prefix: api\n          withVersion: false\n          prefixSegmentCount: 1\n        url:\n          enabled: true\n          mappings:\n            calculator:\n              prefixSegmentCount: 1\n              path: \"/calculator/.*\"\n              microserviceName: calculator\n              versionRule: 0.0.0+\n\n# This is web root for windows server, change this path according to where you put your source code\ngateway:\n  webroot: /code/servicecomb-samples/java-chassis-samples/bmi/webapp/src/main/resources/static\n</code></pre> <p>\u5176\u4e2d <code>servicecomb.http.dispatcher.edge.default.enabled</code> \u7981\u7528\u4e86\u9ed8\u8ba4\u7684\u8def\u7531\u89c4\u5219\uff0c <code>servicecomb.http.dispatcher.edge.url.enabled</code> \u542f\u7528\u4e86\u57fa\u4e8eURL\u6620\u5c04\u7684\u8def\u7531\u89c4\u5219\u3002 \u89c4\u5219\u7684\u542b\u4e49\u8868\u793a\u5c06URL\u4e3a <code>/calculator/.*</code> \u7684\u8bf7\u6c42\u8f6c\u53d1\u5230 <code>calculator</code>\u670d\u52a1\u3002</p> <p><code>gateway.webroot</code> \u914d\u7f6e\u4e86\u9759\u6001\u9875\u9762\u6240\u5728\u7684\u76ee\u5f55\u4f4d\u7f6e\u3002 \u793a\u4f8b\u91cc\u9762\u91c7\u7528\u7684\u662f Windows \u76ee\u5f55\u73af\u5883\uff0c\u5982\u679c\u91c7\u7528 Linux \u73af\u5883\uff0c\u9700\u8981\u914d\u7f6e\u76f8\u5bf9\u8def\u5f84\u3002</p> <p><code>StaticWebpageDispatcher</code> \u6269\u5c55\u4e86 Edge Service \u7684\u8f6c\u53d1\u89c4\u5219\uff0c \u4f7f\u7528\u4e86 vert.x \u63d0\u4f9b\u7684 <code>StaticHandler</code> \u53d1\u5e03\u9759\u6001\u9875\u9762\u3002 Edge  Service \u91c7\u7528 SPI \u7684\u65b9\u5f0f\u6269\u5c55 Dispatcher\uff0c \u9700\u8981\u521b\u5efa\u6587\u4ef6 <code>org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher</code>\u3002 </p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_9","title":"\u670d\u52a1\u542f\u52a8\u5165\u53e3","text":"<p>\u670d\u52a1\u542f\u52a8\u5165\u53e3\u6309\u7167\u9ad8\u6027\u80fd\u6a21\u5f0f \u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>@SpringBootApplication\npublic class GatewayApplication {\n  public static void main(String[] args) {\n    new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(GatewayApplication.class).run(args);\n  }\n}\n</code></pre> <p>\u81f3\u6b64\uff0c\u4f53\u8d28\u6307\u6570\u5e94\u7528\u5df2\u5f00\u53d1\u5b8c\u6bd5\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5feb\u901f\u5165\u95e8\u4e2d\u7684\u6b65\u9aa4\u5bf9\u5176\u8fdb\u884c\u9a8c\u8bc1\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_10","title":"\u4e0b\u4e00\u6b65","text":"<ul> <li>\u9605\u8bfb \u5fae\u670d\u52a1\u5f00\u53d1\u8fdb\u9636</li> </ul>"},{"location":"featured-topics/application-bmi/quick-start.html","title":"\u5feb\u901f\u5165\u95e8","text":""},{"location":"featured-topics/application-bmi/quick-start.html#java","title":"\u5b89\u88c5 Java \u5f00\u53d1\u73af\u5883","text":"<ul> <li> <p>\u5b89\u88c5git\uff0c\u8be6\u60c5\u53ef\u53c2\u8003git\u5b89\u88c5\u6559\u7a0b \u3002</p> </li> <li> <p>\u5b89\u88c5JDK 17\uff0c\u8be6\u60c5\u53ef\u53c2\u8003JDK\u5b89\u88c5\u6559\u7a0b \u3002</p> </li> <li> <p>\u5b89\u88c5Maven 3.x\uff0c\u8be6\u60c5\u53ef\u53c2\u8003Maven\u5b89\u88c5\u6559\u7a0b \u3002</p> </li> <li> <p>\u4e0b\u8f7d BMI \u4f8b\u5b50</p> </li> </ul> <pre><code>git clone https://github.com/apache/servicecomb-samples.git\ncd servicecomb-samples/bmi\nmvn clean install\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start.html#service-center","title":"\u8fd0\u884c Service Center","text":"<p>\u5728 ServiceComb \u5fae\u670d\u52a1\u6846\u67b6\u4e2d\uff0cService Center \u63d0\u4f9b\u670d\u52a1\u6ce8\u518c\u53ca\u670d\u52a1\u53d1\u73b0\u529f\u80fd\uff0c\u53ef\u76f4\u63a5\u4f7f\u7528 Docker \u8fd0\u884c\u3002 </p> <pre><code>docker pull servicecomb/service-center\ndocker run -d -p 30100:30100 servicecomb/service-center:latest\n</code></pre> <p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u73af\u5883\u5b89\u88c5 \u83b7\u53d6\u5728\u672c\u5730\u4ee5\u4e8c\u8fdb\u5236\u65b9\u5f0f\u8fd0\u884cService Center\u7684\u65b9\u6cd5\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start.html#_2","title":"\u8fd0\u884c\u5fae\u670d\u52a1\u5e94\u7528","text":"<ul> <li>\u8fdb\u5165 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4ee3\u7801\u76ee\u5f55\u3002</li> </ul> <pre><code>cd servicecomb-samples/bmi\n</code></pre> <p>\u6ce8\u610f\uff1a\u5728windows\u5f00\u53d1\u73af\u5883\u4e0b\uff0cdocker\u662f\u5728\u865a\u62df\u673a\u4e2d\u542f\u52a8\uff0c\u56e0\u6b64\u9700\u8981\u4fee\u6539\u5fae\u670d\u52a1\u7684 Service Center IP\u5730\u5740\u4e3a\u865a\u62df\u673aIP\u5730\u5740\u3002\u4fee\u65392\u4e2a\u914d\u7f6e\u6587\u4ef6[calculator|webapp]/src/main/resources/application.yml\uff0c\u5c06\u5176\u4e2dhttp://127.0.0.1:30100\u4fee\u6539\u4e3ahttp://192.168.99.100:30100\uff0c\u5176\u4e2d192.168.99.100\u662f\u865a\u62df\u673aIP\uff0c\u9700\u8981\u4e0e\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u865a\u62df\u673aIP\u4fdd\u6301\u4e00\u81f4\u3002</p> <ul> <li>\u542f\u52a8 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u548c \u4f53\u8d28\u6307\u6570\u754c\u9762 \u5fae\u670d\u52a1\uff0c\u5206\u522b\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4\uff1a</li> </ul> <pre><code>cd calculator; mvn spring-boot:run\ncd webapp; mvn spring-boot:run\n</code></pre> <ul> <li>\u9a8c\u8bc1\u670d\u52a1\u3002\u5fae\u670d\u52a1\u542f\u52a8\u5b8c\u6bd5\u540e\uff0c\u5373\u53ef\u901a\u8fc7 http://localhost:8889 \u8bbf\u95ee \u4f53\u8d28\u6307\u6570 \u5e94\u7528\uff0c\u5c4a\u65f6\u5c06\u80fd\u770b\u5230\u5982\u4e0b\u754c\u9762\uff0c\u5e76\u53ef\u8f93\u5165\u60a8\u7684\u8eab\u9ad8\u548c\u4f53\u91cd\u4fe1\u606f\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c\u3002</li> </ul> <p></p>"},{"location":"featured-topics/application-bmi/service-management.html","title":"\u7194\u65ad\u63a7\u5236","text":"<p>\u7194\u65ad\u63a7\u5236\u4e3b\u8981\u7528\u4e8e\u89e3\u51b3\u6216\u7f13\u89e3\u670d\u52a1\u96ea\u5d29\u7684\u60c5\u51b5\uff0c\u5373\u4e2a\u522b\u5fae\u670d\u52a1\u8868\u73b0\u5f02\u5e38\u65f6\uff0c\u7cfb\u7edf\u80fd\u5bf9\u5176\u8fdb\u884c\u5bb9\u9519\u5904\u7406\u3002\u672c\u6307\u5357\u5c06\u4f1a\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528\u7194\u65ad\u63a7\u5236\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/service-management.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/service-management.html#_3","title":"\u542f\u7528","text":"<ul> <li>\u5728 \u4f53\u8d28\u6307\u6570\u754c\u9762 \u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u6307\u660e\u4f7f\u7528\u670d\u52a1\u6cbb\u7406\u7684\u5904\u7406\u94fe\u53ca\u6307\u5b9a\u7194\u65ad\u548c\u5bb9\u9519\u7b56\u7565\uff1a</li> </ul> <pre><code>servicecomb:\n  matchGroup:\n    bmi-operation: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n  instanceIsolation:\n    bmi-operation: |\n      minimumNumberOfCalls: 5\n      slidingWindowSize: 10\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n\n</code></pre> <p>\u6ce8\u610f\uff1a\u7194\u65ad\u63a7\u5236\u662f\u5728\u6d88\u8d39\u8005\u65b9\u3002</p>"},{"location":"featured-topics/application-bmi/service-management.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u5bf9 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u5fae\u670d\u52a1\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f7f\u5176\u8fd0\u884c\u5b9e\u4f8b\u6570\u4e3a2\uff0c\u5373\u65b0\u589e\u4e00\u4e2a\u8fd0\u884c\u5b9e\u4f8b\uff1a</p> <pre><code>mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Dservicecomb.rest.address=0.0.0.0:7779 -Dbmi.mock.error=true\"\n</code></pre> <ul> <li>\u8bbf\u95ee http://localhost:8889 \u3002 \u8f93\u51fa\u8eab\u9ad8\u548c\u4f53\u91cd\uff0c\u8fde\u7eed\u70b9\u51fb\u51e0\u6b21\u63d0\u4ea4\uff0c\u53ef\u4ee5\u770b\u5230\u754c\u9762\u4ea4\u66ff\u51fa\u73b0\u6b63\u5e38\u548c\u9519\u8bef\u754c\u9762\u3002\u8fd9\u662f\u56e0\u4e3a\u5728\u5176\u4e2d\u4e00\u4e2a\u5b9e\u4f8b\u91cc\u9762\u6784\u9020\u4e86\u6545\u969c\u3002</li> </ul> <p></p> <ul> <li> <p>\u7ee7\u7eed\u70b9\u51fb\u754c\u9762\uff0c\u7ecf\u8fc710\u6b21\u4ee5\u540e\uff0c\u53d1\u73b0\u6545\u969c\u5b9e\u4f8b\u88ab\u7194\u65ad\u3002\u4e0d\u518d\u51fa\u73b0\u9519\u8bef\uff0c\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u88ab\u6b63\u5e38\u5b9e\u4f8b\u5904\u7406\u3002\u6bcf\u95f4\u969410\u79d2\uff0c\u4f1a\u5c1d\u8bd5\u5f80\u6545\u969c\u5b9e\u4f8b\u53d1\u751f\u82e5\u5e72\u8bf7\u6c42\u3002 </p> </li> <li> <p>\u9a8c\u8bc1\u670d\u52a1\u6062\u590d\u6b63\u5e38\u3002\u91cd\u542f\u6545\u969c\u5b9e\u4f8b\uff0c\u4e0d\u6ce8\u5165\u6545\u969c\u3002 \u53ef\u4ee5\u770b\u5230\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u88ab\u6b63\u5e38\u5904\u7406\uff0c\u800c\u4e14\u8bf7\u6c42\u5747\u5300\u7684\u5206\u5e03\u5728\u4e24\u4e2a\u6b63\u5e38\u5b9e\u4f8b\u3002 </p> </li> </ul>"},{"location":"featured-topics/application-porter/authentication.html","title":"\u8fdb\u884c\u8ba4\u8bc1\u548c\u9274\u6743\u8bbe\u8ba1","text":"<p>\u4f20\u7edf\u7684WEB\u5bb9\u5668\u90fd\u63d0\u4f9b\u4e86\u4f1a\u8bdd\u7ba1\u7406\uff0c\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\uff0c\u8fd9\u4e9b\u4f1a\u8bdd\u7ba1\u7406\u5b58\u5728\u5f88\u591a\u7684\u9650\u5236\uff0c\u5982\u679c\u9700\u8981\u505a\u5230\u5f39\u6027\u6269\u7f29\u5bb9\uff0c\u5219\u9700\u8981\u505a\u5927\u91cf\u7684\u5b9a\u5236\u3002 \u5728porter\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528user-service\u505a\u4f1a\u8bdd\u7ba1\u7406\uff0c\u53ef\u4ee5\u901a\u8fc7login\u548csession\u4e24\u4e2a\u63a5\u53e3\u521b\u5efa\u548c\u83b7\u53d6\u4f1a\u8bdd\u4fe1\u606f\u3002\u4f1a\u8bdd\u4fe1\u606f\u6301\u4e45\u5316\u5230\u6570\u636e\u5e93\u4e2d\uff0c\u4ece\u800c\u5b9e\u73b0\u5fae\u670d\u52a1\u672c\u8eab\u7684\u65e0\u72b6\u6001\uff0c\u5fae\u670d\u52a1\u53ef\u4ee5\u5f39\u6027\u6269\u7f29\u5bb9\u3002\u5728\u66f4\u5927\u89c4\u6a21\u5e76\u53d1\u6216\u8005\u9ad8\u6027\u80fd\u8981\u6c42\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u8003\u8651\u5c06\u4f1a\u8bdd\u4fe1\u606f\u5b58\u50a8\u5230\u9ad8\u901f\u7f13\u5b58\u3002</p> <pre><code>@PostMapping(path = \"/login\", produces = MediaType.APPLICATION_JSON_VALUE)\n\npublic SessionInfo login(@RequestParam(name = \"userName\") String userName,\n\n@RequestParam(name = \"password\") String password)\n\n\n\n@GetMapping(path = \"/session\", produces = MediaType.APPLICATION_JSON_VALUE)\n\npublic SessionInfo getSession(@RequestParam(name = \"sessionId\") String sessionId)\n</code></pre> <p>\u540c\u65f6\u65b0\u589e\u4e86\u4f1a\u8bdd\u7ba1\u7406\u7684\u6570\u636e\u8868\u8bbe\u8ba1\uff1a</p> <pre><code>CREATE TABLE `T_SESSION` (\n  `ID`  INTEGER(8) NOT NULL AUTO_INCREMENT COMMENT '\u552f\u4e00\u6807\u8bc6',\n  `SESSION_ID`  VARCHAR(64) NOT NULL COMMENT '\u4e34\u65f6\u4f1a\u8bddID',\n  `USER_NAME`  VARCHAR(64) NOT NULL COMMENT '\u7528\u6237\u540d\u79f0',\n  `ROLE_NAME`  VARCHAR(64) NOT NULL COMMENT '\u89d2\u8272\u540d\u79f0',\n  `CREATION_TIME`  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '\u521b\u5efa\u65f6\u95f4',\n  `ACTIVE_TIME`  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '\u6700\u8fd1\u6d3b\u8dc3\u65f6\u95f4',\n  PRIMARY KEY (`ID`)\n);\n</code></pre> <p>\u4f1a\u8bdd\u7ba1\u7406\u548c\u8ba4\u8bc1\u90fd\u5728gateway-service\u8fdb\u884c\uff0c\u9274\u6743\u5219\u9700\u8981\u4f7f\u7528\u5230\u7528\u6237\u4fe1\u606f\u3002\u4e3a\u4e86\u8ba9\u5fae\u670d\u52a1\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u4e0d\u81f3\u4e8e\u518d\u67e5\u8be2user-service\uff0c\u6211\u4eec\u5229\u7528\u4e86Context\u673a\u5236\uff0c\u5728Context\u91cc\u9762\u5b58\u50a8\u4e86session\u4fe1\u606f\uff0c\u6240\u6709\u7684\u5fae\u670d\u52a1\u90fd\u53ef\u4ee5\u76f4\u63a5\u4eceContext\u91cc\u9762\u53d6\u5230session\u4fe1\u606f\uff0c\u975e\u5e38\u65b9\u4fbf\u548c\u7075\u6d3b\u3002\u5b8c\u6210\u8fd9\u4e2a\u529f\u80fd\u6709\u5982\u4e0b\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a</p> <ul> <li>gateway-service\u8fdb\u884cHTTP\u534f\u8bae\u5230Invocation\u7684\u8f6c\u6362</li> </ul> <p>\u8fd9\u4e2a\u901a\u8fc7\u91cd\u8f7d InvocationCreator \u5b9e\u73b0\u3002\u5c06\u4f1a\u8bddID\u901a\u8fc7Context\u4f20\u9012\u7ed9handler\u3002</p> <pre><code>InvocationCreator creator = new EdgeInvocationCreator(context, requestEx, responseEx,\n    microserviceName, path) {\n  @Override\n  protected Invocation createInstance() {\n    Invocation invocation = super.createInstance();\n    // get session id from header and cookie for debug reasons\n    String sessionId = context.request().getHeader(\"session-id\");\n    if (sessionId != null) {\n      invocation.addContext(\"session-id\", sessionId);\n    } else {\n      Cookie sessionCookie = context.request().getCookie(\"session-id\");\n      if (sessionCookie != null) {\n        invocation.addContext(\"session-id\", sessionCookie.getValue());\n      }\n    }\n    return invocation;\n  }\n};\n</code></pre> <ul> <li>\u901a\u8fc7\u5904\u7406\u94fe\u6765\u8fdb\u884c\u8ba4\u8bc1\u548c\u4f1a\u8bdd\u7ba1\u7406</li> </ul> <p>\u5bf9\u4e8eui\u754c\u9762\uff0c\u4e0d\u63d0\u4f9b\u8ba4\u8bc1\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u3002\u5bf9\u4e8eREST\u63a5\u53e3\u9700\u8981\u8fdb\u884c\u8ba4\u8bc1\uff0c\u56e0\u6b64\u6211\u4eec\u5c06\u8ba4\u8bc1\u548c\u4f1a\u8bdd\u7ba1\u7406\u7684\u529f\u80fd\u5728Hanlder\u4e2d\u5b9e\u73b0\u3002\u4e0b\u9762\u7684\u4ee3\u7801\u5bf9user-service\u7684login\u63a5\u53e3\u76f4\u63a5\u8f6c\u53d1\u8bf7\u6c42\uff0c\u5176\u4ed6\u8bf7\u6c42\u5148\u7ecf\u8fc7\u4f1a\u8bdd\u6821\u9a8c\uff0c\u518d\u8fdb\u884c\u8f6c\u53d1\u3002</p> <p>\u6ce8\u610f: \u5728\u7f51\u5173\u6267\u884c\u7684\u5904\u7406\u94fe\u903b\u8f91\uff0c\u662freactive\u6a21\u5f0f\u7684\uff0c\u4e0d\u80fd\u4f7f\u7528\u963b\u585e\u8c03\u7528\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u7ebf\u7a0b\u963b\u585e\u3002</p> <pre><code>@Component\npublic class AuthHandler extends AbstractFilter implements EdgeFilter {\n  @RpcReference(microserviceName = \"user-service\", schemaId = \"user\")\n  private UserService userService;\n\n  // session expires in 10 minutes, cache for 1 seconds to get rid of concurrent scenarios.\n  private Cache&lt;String, String&gt; sessionCache = CacheBuilder.newBuilder()\n      .expireAfterAccess(30, TimeUnit.SECONDS)\n      .build();\n\n  @Override\n  public CompletableFuture&lt;Response&gt; onFilter(Invocation invocation, FilterNode nextNode) {\n    if (invocation.getMicroserviceName().equals(\"user-service\")\n        &amp;&amp; (invocation.getOperationName().equals(\"login\")\n        || (invocation.getOperationName().equals(\"getSession\")))) {\n      // login\uff1areturn session id, set cookie by javascript\n      return nextNode.onFilter(invocation);\n    } else {\n      // check session\n      String sessionId = invocation.getContext(\"session-id\");\n      if (sessionId == null) {\n        throw new InvocationException(403, \"\", \"session is not valid.\");\n      }\n\n      String sessionInfo = sessionCache.getIfPresent(sessionId);\n      if (sessionInfo != null) {\n        try {\n          // session info stored in InvocationContext. Microservices can get it. \n          invocation.addContext(\"session-id\", sessionId);\n          invocation.addContext(\"session-info\", sessionInfo);\n          return nextNode.onFilter(invocation);\n        } catch (Exception e) {\n          return CompletableFuture.completedFuture(Response.failResp(new InvocationException(500, \"\", e.getMessage())));\n        }\n      }\n\n      // In edge, handler is executed in reactively. Must have no blocking logic.\n      CompletableFuture&lt;SessionInfo&gt; result = userService.getSession(sessionId);\n      return result.whenComplete((info, e) -&gt; {\n        if (result.isCompletedExceptionally()) {\n          throw new InvocationException(403, \"\", \"session is not valid.\");\n        } else {\n          if (info == null) {\n            throw new InvocationException(403, \"\", \"session is not valid.\");\n          }\n          try {\n            // session info stored in InvocationContext. Microservices can get it. \n            invocation.addContext(\"session-id\", sessionId);\n            String sessionInfoStr = JsonUtils.writeValueAsString(info);\n            invocation.addContext(\"session-info\", sessionInfoStr);\n            sessionCache.put(sessionId, sessionInfoStr);\n          } catch (Exception ee) {\n            throw new InvocationException(500, \"\", ee.getMessage());\n          }\n        }\n      }).thenCompose(info -&gt; nextNode.onFilter(invocation));\n    }\n  }\n\n  @Override\n  public int getOrder() {\n    return -1890;\n  }\n\n  @Override\n  public String getName() {\n    return \"edge-auth\";\n  }\n}\n\n</code></pre> <ul> <li>\u7ed9\u5220\u9664\u6587\u4ef6\u589e\u52a0\u9274\u6743</li> </ul> <p>\u5728\u4e0a\u9762\u7684\u6b65\u9aa4\u4e2d\uff0c\u5df2\u7ecf\u5c06\u4f1a\u8bdd\u4fe1\u606f\u8bbe\u7f6e\u5230Context\u91cc\u9762\uff0cfile-service\u53ef\u4ee5\u65b9\u4fbf\u7684\u4f7f\u7528\u8fd9\u4e9b\u4fe1\u606f\u8fdb\u884c\u9274\u6743\u64cd\u4f5c\u3002</p> <pre><code>@DeleteMapping(path = \"/delete\", produces = MediaType.APPLICATION_JSON_VALUE)\npublic boolean deleteFile(@RequestParam(name = \"id\") String id) {\n    String session = ContextUtils.getInvocationContext().getContext(\"session-info\");\n    if (session == null) {\n        throw new InvocationException(403, \"\", \"not allowed\");\n    } else {\n        SessionInfo sessionInfo = null;\n        try {\n            sessionInfo = JsonUtils.readValue(session.getBytes(\"UTF-8\"), SessionInfo.class);\n        } catch (Exception e) {\n            throw new InvocationException(403, \"\", \"session not allowed\");\n        }\n        if (sessionInfo == null || !sessionInfo.getRoleName().equals(\"admin\")) {\n            throw new InvocationException(403, \"\", \"not allowed\");\n        }\n    }\n    return fileService.deleteFile(id);\n}\n</code></pre> <p>\u5230\u8fd9\u91cc\u4e3a\u6b62\uff0c\u8ba4\u8bc1\u3001\u4f1a\u8bdd\u7ba1\u7406\u548c\u9274\u6743\u7684\u903b\u8f91\u57fa\u672c\u5df2\u7ecf\u5b8c\u6210\u4e86\u3002\u53ef\u4ee5\u901a\u8fc7Postman\u7b49\u5de5\u5177\u8fdb\u884c\u6d41\u7a0b\u76f8\u5173\u7684\u6d4b\u8bd5\u3002</p> <pre><code>#### \u4f1a\u8bdd\u7ba1\u7406\u63a5\u53e3\u8c03\u7528\u793a\u4f8b\uff0c\u8c03\u7528\u5220\u9664\u6587\u4ef6\u63a5\u53e3\u3002\u4f7f\u7528guest\u7528\u6237\u7684\u4f1a\u8bdd\u7684\u60c5\u51b5\u3002\n\n#Request\nDELETE http://localhost:9090/api/file-service/delete?id=ba6bd8a2-d31a-42cd-a1be-9fb3d6ab4c82\n\nsession-id: 1be646c0-50cb-4c0a-968d-2a512775f5e8\n\n#Response\n{\n    \"message\": \"not allowed\"\n}\n</code></pre>"},{"location":"featured-topics/application-porter/authentication.html#js","title":"\u5f00\u53d1JS\u811a\u672c\u7ba1\u7406\u4f1a\u8bdd","text":"<p>\u9996\u5148\u9700\u8981\u63d0\u4f9b\u767b\u9646\u6846\uff0c\u8ba9\u7528\u6237\u8f93\u5165\u7528\u6237\u540d\u5bc6\u7801\uff1a</p> <pre><code>&lt;div class=\"form\"&gt;\n    &lt;h2&gt;\u767b\u5f55&lt;/h2&gt;\n    &lt;input id=\"username\" type=\"text\" name=\"Username\" placeholder=\"Username\"&gt;\n    &lt;input id=\"paasword\" type=\"password\" name=\"Password\" placeholder=\"Password\" &gt;\n    &lt;input type=\"button\" value=\"Login\" onclick=\"loginAction()\"&gt;\n&lt;/div&gt;\n</code></pre> <p>\u5b9e\u73b0\u767b\u9646\u903b\u8f91\u3002\u767b\u9646\u9996\u5148\u8c03\u7528\u540e\u53f0\u767b\u9646\u63a5\u53e3\uff0c\u767b\u9646\u6210\u529f\u540e\u8bbe\u7f6e\u4f1a\u8bddcookie:</p> <pre><code>function loginAction() {\n     var username = document.getElementById(\"username\").value;\n     var password = document.getElementById(\"paasword\").value;\n     var formData = {};\n     formData.userName = username;\n     formData.password = password;\n\n     $.ajax({\n        type: 'POST',\n        url: \"/api/user-service/login\",\n        data: formData,\n        success: function (data) {\n            setCookie(\"session-id\", data.sessiondId, false);\n            window.alert('\u767b\u9646\u6210\u529f\uff01');\n        },\n        error: function(data) {\n            console.log(data);\n            window.alert('\u767b\u9646\u5931\u8d25\uff01' + data);\n        },\n        async: true\n    });\n}\n</code></pre>"},{"location":"featured-topics/application-porter/design.html","title":"\u8bbe\u8ba1\u5fae\u670d\u52a1","text":"<p>\u6839\u636eUser Story\uff0c\u5e94\u7528\u81f3\u5c11\u5305\u542b\u7528\u6237\u7ba1\u7406\u3001\u6587\u4ef6\u7ba1\u7406\u7b49\u5fae\u670d\u52a1\uff0c\u6bcf\u4e2a\u5fae\u670d\u52a1\u90fd\u884c\u4f7f\u4e0d\u4e00\u6837\u7684\u529f\u80fd\u3002\u4e0b\u9762\u662f\u5206\u89e3\u540e\u8bbe\u8ba1\u7684\u5fae\u670d\u52a1\u7ed3\u6784\uff1a</p> <p></p> <p>\u7f51\u5173\uff1a\u8d1f\u8d23\u8fdb\u884c\u8bf7\u6c42\u8f6c\u53d1\u3001\u7528\u6237\u8ba4\u8bc1\u4ee5\u53ca\u5176\u4ed6\u5185\u5bb9\uff0c\u6bd4\u5982\u89e3\u51b3\u8de8\u7ad9\u8bbf\u95ee\u3001\u8bbe\u7f6eHTTP\u5b89\u5168\u6d88\u606f\u5934\u7b49\u3002\u901a\u8fc7\u8bbe\u7f6e\u9632\u706b\u5899\uff0c\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u5fc5\u987b\u7ecf\u8fc7\u7f51\u5173\uff0c\u8fd9\u6837\u5c31\u5c06\u5185\u90e8\u670d\u52a1\u4e0e\u5916\u90e8\u7528\u6237\u9694\u79bb\u8d77\u6765\uff0c\u9632\u6b62\u5185\u90e8\u670d\u52a1\u88ab\u975e\u6cd5\u8bbf\u95ee\u3002</p> <p>\u6587\u4ef6\u7ba1\u7406\uff1a \u63d0\u4f9b\u6587\u4ef6\u4e0a\u4f20\u3001\u5220\u9664\u7b49\u6587\u4ef6\u7ba1\u7406\u529f\u80fd\u3002</p> <p>\u7528\u6237\u7ba1\u7406\uff1a \u63d0\u4f9b\u8ba4\u8bc1\u3001\u89d2\u8272\u548c\u6743\u9650\u7ba1\u7406\u7b49\u529f\u80fd\u3002</p> <p>\u754c\u9762\uff1a  \u91c7\u7528\u9759\u6001\u9875\u9762\u6280\u672f, html+js+css\u5b9e\u73b0\u3002\u754c\u9762\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u5fae\u670d\u52a1\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u653e\u5230\u7f51\u5173\u670d\u52a1\u91cc\u9762\u3002\u6216\u8005\u4f7f\u7528CDN\u7b49\u8fdb\u884c\u90e8\u7f72\u3002\u5728\u672c\u4f8b\u5b50\u4e2d\uff0c\u4e3a\u4e86\u90e8\u7f72\u7b80\u5355\uff0c\u5c06\u754c\u9762\u4f7f\u7528\u7f51\u5173\u8fdb\u884c\u6258\u7ba1\u3002</p> <p>\u4e3a\u4e86\u53ef\u9760\u6027\uff0c\u8fd9\u4e9b\u670d\u52a1\u90fd\u5e94\u8be5\u652f\u6301\u5206\u5e03\u5f0f\u96c6\u7fa4\u90e8\u7f72\u3002\u56e0\u6b64\u5728\u4e1a\u52a1\u903b\u8f91\u4e2d\u6d89\u53ca\u5230\u5e76\u53d1\u548c\u8d1f\u8f7d\u5747\u8861\u7684\u573a\u666f\uff0c\u90fd\u9700\u8981\u8003\u8651\u65e0\u72b6\u6001\u8bbe\u8ba1\u3002\u53ef\u4ee5\u7ed9\u7f51\u5173\u914d\u7f6e\u57df\u540d\u6216\u8005\u5728\u4e0a\u5c42\u518d\u6302\u4e00\u4e2a\u5f39\u6027\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u5b9e\u73b0\u7f51\u5173\u7684\u591a\u5b9e\u4f8b\u90e8\u7f72\u3002</p> <p>\u5fae\u670d\u52a1\u8bbe\u8ba1\u597d\u4ee5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5df2\u6709\u9879\u76ee\u5feb\u901f\u642d\u5efa\u9879\u76ee\u67b6\u5b50\u3002\u53ef\u4ee5\u4ece\uff1a</p> <p>Porter\u5e94\u7528 </p> <p>\u4e0b\u8f7d\u8be5\u9879\u76ee\u3002</p>"},{"location":"featured-topics/application-porter/file-service.html","title":"\u5f00\u53d1\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd","text":"<p>\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u3001\u7528\u6237\u7ba1\u7406\u529f\u80fd\u90fd\u53ea\u9700\u8981\u63d0\u4f9bREST\u63a5\u53e3\u3002</p> <ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb</li> </ul> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3</li> </ul> <p>\u670d\u52a1\u63a5\u53e3\u5b9a\u4e49\u4e0a\u67093\u79cd\u9009\u62e9\uff1aRPC\u3001Spring MVC\u3001JAX RS\u3002 \u8fd9\u91cc\u9009\u62e9\u4e86Sping MVC\uff0c\u76f8\u6bd4RPC\u9700\u8981\u989d\u5916\u589e\u52a0Annotation\uff0c\u7075\u6d3b\u6027\u5728\u4e8e\u63a5\u53e3\u5373\u53ef\u4ee5\u901a\u8fc7RPC\u7684\u65b9\u5f0f\u5728\u670d\u52a1\u5185\u90e8\u8bbf\u95ee\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\uff0c\u671f\u671b\u524d\u53f0js\u811a\u672c\u5f00\u53d1\u8005\u4e5f\u80fd\u591f\u5bf9\u7167\u751f\u6210\u7684\u5951\u7ea6\u5b8c\u6210\u5f00\u53d1\u3002</p> <pre><code>@RestSchema(schemaId = \"file\")\n@RequestMapping(path = \"/\")\npublic class FileEndpoint {\n  @Autowired\n  private FileService fileService;\n\n  /**\n   * upload and return file id\n   */\n  @PostMapping(path = \"/upload\", produces = MediaType.TEXT_PLAIN_VALUE)\n  public String uploadFile(@RequestPart(name = \"fileName\") MultipartFile file) {\n      return fileService.uploadFile(file);\n  }\n\n  /**\n   * delete file by id\n   */\n  @DeleteMapping(path = \"/delete\", produces = MediaType.APPLICATION_JSON_VALUE)\n  public boolean deleteFile(@RequestParam(name = \"id\") String id) {\n      return fileService.deleteFile(id);\n  }\n}\n\n</code></pre> <p>\u4e3a\u4e86\u5b9e\u73b0\u4e0d\u540c\u65b9\u5f0f\u7684\u6587\u4ef6\u5b58\u50a8\uff0c\u5c06\u5b9e\u73b0\u62bd\u8c61\u51fa\u6765FileService\u3002\u4e3a\u4e86\u7b80\u5355\uff0c\u5f53\u524d\u53ea\u63d0\u4f9b\u4e86\u672c\u5730\u6587\u4ef6\u5b9e\u73b0\u3002\u8fd9\u4e2a\u5b9e\u73b0\u9650\u5236\u4e86\u8be5\u670d\u52a1\u65e0\u6cd5\u8fdb\u884c\u591a\u5b9e\u4f8b\u90e8\u7f72\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5bf9\u8c61\u5b58\u50a8\u670d\u52a1\u5668\u3001\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7b49\u6ee1\u8db3\u5b58\u50a8\u8981\u6c42\u3002</p> <ul> <li>\u8bbe\u7f6e\u4e34\u65f6\u76ee\u5f55</li> </ul> <p>\u9700\u8981\u589e\u52a0 <code>servicecomb.uploads.directory</code> \u914d\u7f6e\u9879\uff0c\u6307\u5b9a\u4e34\u65f6\u76ee\u5f55\u7684\u8def\u5f84\u3002\u9700\u8981\u4fdd\u8bc1\u76ee\u5f55\u6709\u5199\u6743\u9650\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5982\u679c\u6ca1\u8bbe\u7f6e\u4e34\u65f6\u76ee\u5f55\uff0c\u4e0d\u5141\u8bb8\u542f\u7528\u4e0a\u4f20\u529f\u80fd\u3002\u5982\u679c\u4f7f\u7528\u7f51\u5173\uff0c\u7f51\u5173\u4e5f\u9700\u8981\u589e\u52a0\u8fd9\u4e2a\u914d\u7f6e\u9879\u3002</p> <ul> <li>\u5f00\u53d1\u6d4b\u8bd5HTML\uff0c\u8bbf\u95ee\u4e0a\u4f20\u670d\u52a1</li> </ul> <p>\u4e3a\u4e86\u6d4b\u8bd5\u5f00\u53d1\u7684\u63a5\u53e3\uff0c\u53ef\u4ee5\u5199\u4e00\u4e2aHTML\u7a0b\u5e8f\u3002\u6ce8\u610fname\u53c2\u6570\u9700\u8981\u548c\u63a5\u53e3\u5b9a\u4e49\u7684\u540d\u79f0\u4e00\u6837\u3002</p> <pre><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;title&gt;Upload Example&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n    &lt;h2&gt;Upload Example&lt;/h2&gt;\n    &lt;hr/&gt;\n    &lt;form method=\"POST\" enctype=\"multipart/form-data\"\n        action=\"http://localhost:9091/upload\"&gt;\n        &lt;p&gt;\n            File Name: &lt;input type=\"file\" name=\"fileName\" /&gt;\n        &lt;/p&gt;\n        &lt;p&gt;\n            &lt;input type=\"submit\" value=\"Upload\" /&gt;\n        &lt;/p&gt;\n    &lt;/form&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n</code></pre> <p>\u53ef\u4ee5\u4f7f\u7528Postman\u7b49\u5de5\u5177\u6d4b\u8bd5\u5220\u9664\u63a5\u53e3\uff1a</p> <pre><code>DELETE http://localhost:9091/delete?id=ba6bd8a2-d31a-42cd-a1be-9fb3d6ab4c82\n</code></pre> <p>\u8fd8\u53ef\u4ee5\u5f00\u53d1\u4e00\u4e2a\u5ba2\u6237\u7aef\u6d4b\u8bd5\u8fd9\u4e9b\u63a5\u53e3\uff0c\u5bf9\u4e8e\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u8bf4\u660e\u3002</p>"},{"location":"featured-topics/application-porter/gateway-service.html","title":"\u5f00\u53d1\u7f51\u5173","text":"<p>\u8fd9\u4e2a\u7ae0\u8282\u4e2d\uff0c\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u7f51\u5173\u8f6c\u53d1\u8bf7\u6c42\u3002Java Chassis \u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u7684\u7f51\u5173\u670d\u52a1\uff0c\u5f00\u53d1\u8005\u80fd\u591f\u975e\u5e38\u7b80\u5355\u7684\u5b9e\u73b0\u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u8f6c\u53d1\uff0c\u7f51\u5173\u62e5\u6709\u5ba2\u6237\u7aef\u4e00\u6837\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b\u3002</p> <p>\u7f51\u5173\u670d\u52a1\u7531\u4e00\u7cfb\u5217\u7684VertxHttpDispatcher\u7ec4\u6210\uff0c\u5f00\u53d1\u8005\u901a\u8fc7\u7ee7\u627fAbstractEdgeDispatcher\uff0c\u6765\u5b9e\u73b0\u81ea\u5df1\u7684\u8f6c\u53d1\u673a\u5236\u3002</p> <p>\u4e3a\u4e86\u5b9e\u73b0gateway-service\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230file-service\uff0c\u5b9a\u4e49\u4e86\u5982\u4e0b\u89c4\u5219\uff1a</p> <ul> <li> <p>\u76f4\u63a5\u8bf7\u6c42file-service: DELETE http://localhost:9091/delete</p> </li> <li> <p>\u901a\u8fc7\u7f51\u5173\uff1aDELETE http://localhost:9090/api/file-service/delete</p> </li> </ul> <p>\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\u7684\u4ee3\u7801\u5982\u4e0b\uff0c\u5728\u8bf7\u6c42\u5904\u7406\u7684\u65f6\u5019\uff0c\u4f7f\u7528EdgeInvocation\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8bf7\u6c42\u8f6c\u53d1\uff0c\u5e76\u5f00\u542f\u5404\u79cd\u6cbb\u7406\u529f\u80fd\u3002\u4e0b\u9762\u4ee3\u7801\u7684\u6838\u5fc3\u5185\u5bb9\u662f\u5b9a\u4e49\u8f6c\u53d1\u89c4\u5219regex\u3002</p> <pre><code>public class ApiDispatcher extends AbstractEdgeDispatcher {\n  public static final String MICROSERVICE_NAME = \"param0\";\n\n  @Override\n  public int getOrder() {\n    return 10002;\n  }\n\n  @Override\n  public void init(Router router) {\n    String regex = \"/api/([^\\\\/]+)/(.*)\";\n    router.routeWithRegex(regex).handler(createBodyHandler());\n    router.routeWithRegex(regex).failureHandler(this::onFailure).handler(this::onRequest);\n  }\n\n  protected void onRequest(RoutingContext context) {\n    String microserviceName = extractMicroserviceName(context);\n    String path = Utils.findActualPath(context.request().path(), 2);\n\n    requestByFilter(context, microserviceName, path);\n  }\n\n  @Nullable\n  private String extractMicroserviceName(RoutingContext context) {\n    return context.pathParam(MICROSERVICE_NAME);\n  }\n\n  protected void requestByFilter(RoutingContext context, String microserviceName, String path) {\n    HttpServletRequestEx requestEx = new VertxServerRequestToHttpServletRequest(context);\n    HttpServletResponseEx responseEx = new VertxServerResponseToHttpServletResponse(context.response());\n    InvocationCreator creator = new EdgeInvocationCreator(context, requestEx, responseEx,\n        microserviceName, path) {\n      @Override\n      protected Invocation createInstance() {\n        Invocation invocation = super.createInstance();\n        // get session id from header and cookie for debug reasons\n        String sessionId = context.request().getHeader(\"session-id\");\n        if (sessionId != null) {\n          invocation.addContext(\"session-id\", sessionId);\n        } else {\n          Cookie sessionCookie = context.request().getCookie(\"session-id\");\n          if (sessionCookie != null) {\n            invocation.addContext(\"session-id\", sessionCookie.getValue());\n          }\n        }\n        return invocation;\n      }\n    };\n    new RestProducerInvocationFlow(creator, requestEx, responseEx)\n        .run();\n  }\n}\n</code></pre> <p>\u4e3a\u4e86\u5b9e\u73b0gateway-service\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230porter-website\uff0c\u5b9a\u4e49\u4e86\u5982\u4e0b\u89c4\u5219\uff1a</p> <ul> <li> <p>\u76f4\u63a5\u8bf7\u6c42porter-website: GET http://localhost:9093/index.html</p> </li> <li> <p>\u901a\u8fc7\u7f51\u5173\uff1aGET http://localhost:9090/ui/porter-website/index.html</p> </li> </ul> <p>\u5b8c\u6210VertxHttpDispatcher\u5f00\u53d1\u540e\uff0c\u9700\u8981\u901a\u8fc7SPI\u7684\u65b9\u5f0f\u52a0\u8f7d\u5230\u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u589e\u52a0META-INF/services/org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5c06\u589e\u52a0\u7684\u4e24\u4e2a\u5b9e\u73b0\u5199\u5165\u8be5\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002</p> <p>\u7f51\u5173\u670d\u52a1\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u6240\u6709\u7684\u7528\u6237\u8bf7\u6c42\u90fd\u53ef\u4ee5\u901a\u8fc7\u7f51\u5173\u6765\u53d1\u9001\u3002\u5f00\u53d1\u8005\u901a\u8fc7\u901a\u8fc7\u8bbe\u7f6e\u9632\u706b\u5899\u7b49\u673a\u5236\uff0c\u9650\u5236\u7528\u6237\u76f4\u63a5\u8bbf\u95ee\u5185\u90e8\u670d\u52a1\uff0c\u4fdd\u8bc1\u5185\u90e8\u670d\u52a1\u7684\u5b89\u5168\u3002</p>"},{"location":"featured-topics/application-porter/https.html","title":"\u7f51\u5173HTTPS\u5b89\u5168\u914d\u7f6e","text":"<p>HTTP\u534f\u8bae\u5df2\u9010\u6e10\u88ab\u6807\u8bb0\u4e3a\u4e0d\u5b89\u5168\uff0c\u914d\u7f6eHTTPS\u53ef\u4ee5\u9632\u6b62\u7528\u6237\u6570\u636e\u88ab\u7a83\u53d6\u548c\u7be1\u6539\uff0c\u63d0\u5347\u4e86\u5b89\u5168\u6027\u3002\u8003\u8651\u5230\u6027\u80fd\u7684\u5f71\u54cd\uff0c\u6211\u4eec\u53ea\u5728\u7f51\u5173\u4f7f\u7528HTTPS\u63a5\u5165\uff0c\u5185\u90e8\u670d\u52a1\u4e4b\u95f4\u4ecd\u7136\u4f7f\u7528HTTP\u3002</p> <p>\u4f7f\u7528HTTPS\u4e4b\u524d\uff0c\u9700\u8981\u51c6\u5907\u8bc1\u4e66\u3002\u901a\u5e38\u662f\u5411\u6743\u5a01\u673a\u6784\u7533\u8bf7\uff0c\u8fd9\u6837\u7684\u8bc1\u4e66\u624d\u4f1a\u88ab\u6d4f\u89c8\u5668\u7b49\u8bbe\u5907\u6807\u8bb0\u4e3a\u53ef\u4fe1\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u901a\u8fc7\u5de5\u5177\u5df2\u7ecf\u751f\u6210\u597d\u7684\u8bc1\u4e66\u3002\u5e76\u4e14\u5c06\u81ea\u5df1\u7684\u8bc1\u4e66\u901a\u8fc7PKCS12\u683c\u5f0f\u5b58\u50a8\u5728server.p12\u6587\u4ef6\u4e2d\uff0c\u5c06CA\u7684\u8bc1\u4e66\u4f7f\u7528JKS\u683c\u5f0f\u5b58\u50a8\u5728trust.jks\u4e2d\u3002</p> <p>\u7f51\u5173\u542f\u7528HTTP\u53ea\u9700\u8981\u5728\u76d1\u542c\u7684\u7aef\u53e3\u4e2d\u589e\u52a0sslEnabled\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:9090?sslEnabled=true\n</code></pre> <p>\u7136\u540e\u589e\u52a0ssl\u76f8\u5173\u7684\u914d\u7f6e\u3002\u4e0b\u9762\u7684\u914d\u7f6e\u5305\u542b\u4e86TLS\u7684\u534f\u8bae\u3001\u662f\u5426\u8ba4\u8bc1\u5bf9\u7aef\u4ee5\u53ca\u8bc1\u4e66\u548c\u5bc6\u7801\u4fe1\u606f\u3002\u5176\u4e2d<code>EdgeSSLCustom</code>\u7528\u4e8e\u8bc1\u4e66\u8def\u5f84\u548c\u8bc1\u4e66\u5bc6\u7801\u7684\u8f6c\u6362\uff0c\u4e0d\u5b9e\u73b0\u7684\u65f6\u5019\uff0c\u9ed8\u8ba4\u4ece\u5f53\u524d\u76ee\u5f55\u8bfb\u53d6\u8bc1\u4e66\u6587\u4ef6\uff0c\u8bc1\u4e66\u7684\u5bc6\u7801\u660e\u6587\u5b58\u50a8\u3002\u5f53\u4e1a\u52a1\u9700\u8981\u505a\u4e00\u4e9b\u9ad8\u7ea7\u5b89\u5168\u7279\u6027\uff0c\u6bd4\u5982\u5bc6\u7801\u4fdd\u62a4\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u8fd9\u4e2a\u7c7b\u5b9e\u73b0\u3002</p> <pre><code>ssl.protocols: TLSv1.2\nssl.authPeer: false\nssl.checkCN.host: false\nssl.trustStore: trust.jks\nssl.trustStoreType: JKS\nssl.trustStoreValue: Changeme_123\nssl.keyStore: server.p12\nssl.keyStoreType: PKCS12\nssl.keyStoreValue: Changeme_123\nssl.crl: revoke.crl\nssl.sslCustomClass: org.apache.servicecomb.samples.porter.gateway.EdgeSSLCustom\n</code></pre> <p>\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u8bbf\u95ee\u754c\u9762\u5c31\u53ef\u4ee5\u901a\u8fc7https\u8fdb\u884c\u4e86</p> <pre><code>https://localhost:9090/ui/porter-website/index.html\n</code></pre>"},{"location":"featured-topics/application-porter/porter-website.html","title":"\u5f00\u53d1\u754c\u9762","text":"<p>\u5728\u6280\u672f\u9009\u62e9\u4e0a\uff0c\u754c\u9762\u5b8c\u5168\u7531html+js+css\u7b49\u9759\u6001\u7f51\u9875\u6280\u672f\u6784\u6210\uff0c\u4e0d\u91c7\u7528\u52a8\u6001\u9875\u9762\u6280\u672f\u3002\u91c7\u7528\u9759\u6001\u9875\u9762\u6280\u672f\u6784\u5efa\u754c\u9762\uff0c\u4f7f\u5f97\u6574\u4e2a\u5fae\u670d\u52a1\u7cfb\u7edf\u66f4\u52a0\u5177\u5907\u5f39\u6027\uff0c\u80fd\u591f\u975e\u5e38\u5bb9\u6613\u7684\u8fdb\u884c\u6269\u5bb9\uff0c\u76f8\u5173\u5f00\u53d1\u6210\u679c\u4e5f\u80fd\u591f\u66f4\u597d\u7684\u88ab\u5176\u4ed6\u5e94\u7528\u7ee7\u627f\u3002</p> <p>\u91c7\u7528\u9759\u6001\u9875\u9762\u6280\u672f\uff0c\u4e5f\u4f7f\u5f97\u754c\u9762\u670d\u52a1\u90e8\u7f72\u66f4\u52a0\u7075\u6d3b\u591a\u6837\uff1a</p> <ul> <li>\u5c06\u9759\u6001\u9875\u9762\u90e8\u7f72\u5230nginx\uff0cnginx\u5c06REST\u8bf7\u6c42\u8f6c\u53d1\u5230gateway-service\u3002</li> <li>\u5c06\u9759\u6001\u9875\u9762\u76f4\u63a5\u90e8\u7f72\u5230gateway-service\u3002</li> <li>\u9759\u6001\u9875\u9762\u901a\u8fc7Tomcat\u3001Spring Boot\u7b49Web\u670d\u52a1\u5668\u90e8\u7f72\uff0c\u5e76\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0cgateway-service\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u5bf9\u5e94\u7684\u5e94\u7528\u670d\u52a1\u5668\u4e0a\u3002</li> <li>\u9759\u6001\u9875\u9762\u7531\u7b2c\u4e09\u65b9\u5f00\u53d1\uff0c\u7b2c\u4e09\u65b9\u76f4\u63a5\u901a\u8fc7gateway-service\u8bbf\u95eeREST\u63a5\u53e3\u3002\u7531\u7b2c\u4e09\u65b9\u9009\u62e9\u754c\u9762\u7684\u5f00\u53d1\u6280\u672f\u3002</li> </ul> <p>\u8fd9\u51e0\u79cd\u65b9\u5f0f\u90fd\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002</p>"},{"location":"featured-topics/application-porter/porter-website.html#gateway-service","title":"\u5c06\u9759\u6001\u9875\u9762\u76f4\u63a5\u90e8\u7f72\u5230gateway-service","text":"<p>\u5728 porter \u9879\u76ee\u4e2d\uff0c\u91c7\u7528\u4e86\u5c06\u9759\u6001\u9875\u9762\u76f4\u63a5\u90e8\u7f72\u5230gateway-service\u7684\u65b9\u5f0f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u7b80\u6d01\u9ad8\u6548\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u6838\u5fc3\u4ee3\u7801\u662fStaticWebpageDispatcher\u3002\u5b83\u91c7\u7528vert.x\u63d0\u4f9b\u7684\u9759\u6001\u9875\u9762\u529f\u80fd\uff0c\u76f4\u63a5\u6302\u8f7d\u4e86\u9759\u6001\u9875\u9762\u670d\u52a1\u3002</p> <pre><code>public class StaticWebpageDispatcher implements VertxHttpDispatcher {\n  private static final Logger LOGGER = LoggerFactory.getLogger(StaticWebpageDispatcher.class);\n\n  private static final String WEB_ROOT = LegacyPropertyFactory\n      .getStringProperty(\"gateway.webroot\", \"/var/static\");\n\n  @Override\n  public int getOrder() {\n    return Integer.MAX_VALUE;\n  }\n\n  @Override\n  public void init(Router router) {\n    String regex = \"/ui/(.*)\";\n    StaticHandler webpageHandler = StaticHandler.create(WEB_ROOT);\n    LOGGER.info(\"server static web page for WEB_ROOT={}\", WEB_ROOT);\n    router.routeWithRegex(regex).failureHandler((context) -&gt; {\n      LOGGER.error(\"\", context.failure());\n    }).handler(webpageHandler);\n  }\n}\n</code></pre>"},{"location":"featured-topics/application-porter/user-service.html","title":"\u4f7f\u7528MyBatis\u8bbf\u95ee\u6570\u636e\u5e93","text":"<p>\u8bbf\u95ee\u6570\u636e\u5e93\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u63d0\u4f9b\u7684\u7ec4\u4ef6\u3002\u8fd9\u91cc\u9009\u62e9\u4e86MyBatis\u8bf4\u660e\u5982\u4f55\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u76f4\u63a5\u53c2\u8003\uff1a</p> <p>http://www.mybatis.org/spring/zh/index.html</p> <p>\u8fd9\u91cc\u7ed9\u51fa\u4e00\u4e2a\u5feb\u901f\u96c6\u6210\u53c2\u8003\u3002\u5728\u672c\u7ae0\u4e2d\u6d89\u53ca\u5230\u5efa\u8868\u7b49\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u6570\u636e\u5e93\u9009\u7528MySQL\u3002</p>"},{"location":"featured-topics/application-porter/user-service.html#_1","title":"\u8bbe\u8ba1\u8868","text":"<p>\u672c\u5e94\u7528\u63d0\u4f9b\u4e86\u975e\u5e38\u7b80\u5355\u7684\u7528\u6237\u7ba1\u7406\u548c\u57fa\u4e8e\u89d2\u8272\u7684\u9274\u6743\u673a\u5236\u3002\u56e0\u6b64\u6211\u4eec\u8bbe\u8ba1\u4e86\u975e\u5e38\u7b80\u5355\u7684\u7528\u6237\u8868\uff0c\u8868\u683c\u5305\u542b\u4e86\u7528\u6237\u540d\u79f0\u53ca\u7528\u6237\u6240\u5c5e\u7684\u89d2\u8272\u3002\u4e3a\u4e86\u6d4b\u8bd5\u7684\u76ee\u7684\uff0c\u8fd8\u63d2\u5165\u4e86\u4e24\u4e2a\u7528\u6237\u6570\u636e\uff0c\u5176\u4e2d\u5bc6\u7801\u91c7\u7528SHA256\u8fdb\u884c\u5355\u5411\u52a0\u5bc6\u4fdd\u5b58\u3002</p> <pre><code>CREATE DATABASE IF NOT EXISTS porter_user_db;\n\nUSE porter_user_db;\n\nDROP TABLE IF EXISTS T_USER;\n\nCREATE TABLE `T_USER` (\n  `ID`  INTEGER(20) NOT NULL COMMENT '\u7528\u6237ID',\n  `USER_NAME`  VARCHAR(64) NOT NULL COMMENT '\u7528\u6237\u540d\u79f0',\n  `PASSWORD`  VARCHAR(64) NOT NULL COMMENT '\u7528\u6237\u5bc6\u7801',\n  `ROLE_NAME`  VARCHAR(64) NOT NULL COMMENT '\u89d2\u8272\u540d\u79f0',\n  PRIMARY KEY (`ID`)\n);\n\ninsert into T_USER(ID, USER_NAME, PASSWORD, ROLE_NAME) values(1, \"admin\", \"n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=\", \"admin\");\ninsert into T_USER(ID, USER_NAME, PASSWORD, ROLE_NAME) values(2, \"guest\", \"n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=\", \"guest\");\n</code></pre>"},{"location":"featured-topics/application-porter/user-service.html#mybatis_1","title":"\u4f7f\u7528MyBatis","text":"<ul> <li>\u5f15\u7528MyBatis\u7684\u76f8\u5173\u4f9d\u8d56</li> </ul> <p>\u4f9d\u8d56\u5305\u542b\u4e86MyBatis\u548cSpring\u3001DBCP2\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u7ba1\u7406\u76f8\u5173\u7ec4\u4ef6\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u90fd\u662f\u4f7f\u7528Spring\u548cMyBatis\u5fc5\u987b\u7684\u3002</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;\n  &lt;artifactId&gt;mybatis-spring-boot-starter&lt;/artifactId&gt;\n  &lt;exclusions&gt;\n    &lt;exclusion&gt;\n      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;\n      &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;\n    &lt;/exclusion&gt;\n  &lt;/exclusions&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;mysql&lt;/groupId&gt;\n  &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;\n  &lt;artifactId&gt;commons-dbcp2&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;\n  &lt;scope&gt;compile&lt;/scope&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6e\u6570\u636e\u6e90\u548cSqlSessionFactory</li> </ul> <p>\u672c\u4f8b\u5b50\u4f7f\u7528Spring Data Source\uff0c \u53ea\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u4e0a\u914d\u7f6e\u4fe1\u606f\uff1a</p> <pre><code>spring:\n  datasource:\n    url: jdbc:mysql://localhost/porter_user_db\n    username: root\n    password: root\n    driver-class-name: com.mysql.jdbc.Driver\n</code></pre> <ul> <li>\u4e66\u5199Mapper\u6587\u4ef6</li> </ul> <p>\u6d89\u53ca\u5230JAVA\u7684Mapper\u5b9a\u4e49UserMapper\u3002</p> <pre><code>@Mapper\npublic interface UserMapper {\n  @Insert(\"\"\"\n      insert into T_USER (ID, USER_NAME, PASSWORD, ROLE_NAME)\n        values(#{id,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR},\n               #{password,jdbcType=VARCHAR}, #{roleName,jdbcType=VARCHAR})\"\"\")\n  void createUser(UserInfo userInfo);\n\n  @Select(\"\"\"\n      select ID, USER_NAME, PASSWORD, ROLE_NAME\n        from T_USER where USER_NAME = #{userName,jdbcType=VARCHAR}\"\"\")\n  @Results({\n      @Result(property = \"id\", column = \"ID\"),\n      @Result(property = \"userName\", column = \"USER_NAME\"),\n      @Result(property = \"password\", column = \"PASSWORD\"),\n      @Result(property = \"roleName\", column = \"ROLE_NAME\")\n  })\n  UserInfo getUserInfo(String userName);\n}\n\n</code></pre>"},{"location":"featured-topics/application-porter/user-service.html#_2","title":"\u8bbe\u8ba1\u7528\u6237\u670d\u52a1","text":"<p>\u7ecf\u8fc7\u4e0a\u9762\u7684\u914d\u7f6e\uff0c\u6570\u636e\u5e93\u8bbf\u95ee\u76f8\u5173\u5f00\u53d1\u5df2\u7ecf\u5b8c\u6210\u4e86\u3002 \u7ed3\u5408User Story\uff0c\u53ef\u4ee5\u5148\u8bbe\u8ba1\u4e00\u4e2alogin\u7684\u670d\u52a1\u63a5\u53e3\u3002 \u8fd9\u4e2a\u670d\u52a1\u5728UserServiceEndpoint\u91cc\u9762\u8fdb\u884c\u5b9a\u4e49\u3002</p> <pre><code>@PostMapping(path = \"/login\", produces = MediaType.APPLICATION_JSON_VALUE)\npublic SessionInfo login(@RequestParam(name = \"userName\") String userName, \n    @RequestParam(name = \"password\") String password)\n</code></pre> <p>\u63a5\u53e3\u4f1a\u8fd4\u56deSessionInfo\uff0c\u8fd9\u4e9b\u5fc5\u8981\u7684\u4fe1\u606f\uff0c\u4f1a\u5728\u540e\u7eed\u7684\u9274\u6743\u3001\u8ba4\u8bc1\u64cd\u4f5c\u4e2d\u8d77\u5230\u5f88\u5927\u7684\u65b9\u4fbf\u3002</p> <p>\u7ecf\u8fc7\u4ee5\u4e0a\u7684\u5f00\u53d1\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8\u7528\u6237\u670d\u52a1\uff0c\u914d\u7f6e\u6570\u636e\u5e93\u548c\u63d2\u5165\u76f8\u5173\u6570\u636e\uff0c\u4ece\u754c\u9762\u8bbf\u95ee\u8fd9\u4e2a\u63a5\u53e3\u3002</p> <pre><code>#### \u8bbf\u95eelogin\u63a5\u53e3\u7684HTTP\u8bf7\u6c42\u548c\u54cd\u5e94\n\n#Request\nPOST http://localhost:9090/api/user-service/v1/user/login\n\nContent-Type: application/x-www-form-urlencoded\n\nuserName=admin&amp;password=test\n\n#Response\n{\n    \"id\": 0,\n    \"sessiondId\": \"1be646c0-50cb-4c0a-968d-2a512775f5e8\",\n    \"userName\": \"guest\",\n    \"roleName\": \"guest\",\n    \"creationTime\": null,\n    \"activeTime\": null\n}\n</code></pre>"},{"location":"featured-topics/application-porter/user-story.html","title":"User Story","text":"<p>\u5f00\u59cb\u524d\uff0c\u7ed9\u5e94\u7528\u53d6\u4e00\u4e2a\u540d\u5b57 <code>porter</code>\u3002 </p> <p><code>porter</code> \u5e94\u7528\u4e3b\u8981\u5b9e\u73b0\u5982\u4e0b\u51e0\u4e2a\u7528\u6237\u6545\u4e8b\uff1a</p> <ul> <li>\u8f93\u5165\u7528\u6237\u540d\u3001\u5bc6\u7801\u767b\u5f55\u7cfb\u7edf\u3002</li> <li>\u4e0a\u4f20\u6587\u4ef6\u5230\u7cfb\u7edf\u4e2d\u3002\u7cfb\u7edf\u4f1a\u68c0\u67e5\u7528\u6237\u7684\u6743\u9650\uff0c\u5982\u679c\u7528\u6237\u88ab\u6388\u6743\uff0c\u6587\u4ef6\u4e0a\u4f20\u6210\u529f\u5e76\u8fd4\u56de\u6587\u4ef6\u6807\u8bc6\uff1b\u5982\u679c\u7528\u6237\u672a\u88ab\u6388\u6743\uff0c\u5219\u8fd4\u56de\u9519\u8bef\u3002</li> <li>\u5220\u9664\u6587\u4ef6\u3002\u8f93\u5165\u6587\u4ef6\u6807\u8bc6\u5220\u9664\u6587\u4ef6\u3002\u5220\u9664\u6587\u4ef6\u4e5f\u4f1a\u68c0\u67e5\u7528\u6237\u662f\u5426\u88ab\u6388\u6743\u3002</li> </ul>"},{"location":"featured-topics/features/date-time.html","title":"\u7279\u6027\u4ecb\u7ecd\uff1a date\u548cdate-time","text":"<p>OpenAPI \u9488\u5bf9\u65f6\u95f4\u5b9a\u4e49\u4e86\u4e24\u79cd\u7c7b\u578b date \u548c date-time\u3002</p>"},{"location":"featured-topics/features/date-time.html#date","title":"\u4f7f\u7528 date","text":"<p>\u53ef\u4ee5\u5728 query, path, body \u7b49\u53c2\u6570\u4e2d\u4f7f\u7528 date \u7c7b\u578b\u3002 date \u7c7b\u578b\u5bf9\u5e94\u7684 Java \u7c7b\u578b\u4e3a <code>java.time.LocalDate</code>\u3002 \u4f7f\u7528 Spring MVC\uff0c \u5206\u522b\u91c7\u7528\u5982\u4e0b\u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\uff1a</p> <pre><code>@GetMapping(path = \"/getLocalDate\")\npublic LocalDate getLocalDate(@RequestParam(\"date\") LocalDate date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getLocalDate/{date}\")\npublic LocalDate getLocalDatePath(@PathParam(\"date\") LocalDate date) {\nreturn date;\n}\n\n@PostMapping(path = \"/postLocalDate\")\npublic LocalDate postLocalDate(@RequestBody LocalDate date) {\nreturn date;\n}\n</code></pre> <p>\u5176\u4e2d <code>getLocalDatePath</code> \u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u7684 swagger \u63cf\u8ff0\u5982\u4e0b\uff1a</p> <pre><code>/getLocalDate/{date}:\nget:\n  operationId: \"getLocalDatePath\"\n  parameters:\n  - name: \"date\"\n    in: \"path\"\n    required: true\n    type: \"string\"\n    format: \"date\"\n  responses:\n    \"200\":\n      description: \"response of 200\"\n      schema:\n        type: \"string\"\n        format: \"date\"\n</code></pre> <p>\u53ef\u4ee5\u770b\u51fa\uff0cdate \u5728\u7f51\u7edc\u4e0a\u662f\u901a\u8fc7 String \u8fdb\u884c\u7f16\u7801\u8fdb\u884c\u4f20\u8f93\u7684\uff0c \u683c\u5f0f\u662f\u6807\u51c6\u7684\u683c\u5f0f\uff0c \u6bd4\u5982 <code>2020-02-20</code>\u3002</p>"},{"location":"featured-topics/features/date-time.html#date-time","title":"\u4f7f\u7528 date-time","text":"<p>\u53ef\u4ee5\u5728 query, path, body \u7b49\u53c2\u6570\u4e2d\u4f7f\u7528 date-time \u7c7b\u578b\u3002 date \u7c7b\u578b\u5bf9\u5e94\u7684 Java \u7c7b\u578b\u4e3a <code>java.time.LocalDateTime</code>\uff0c \u6216\u8005 <code>java.util.Date</code> \u3002 \u4f7f\u7528 Spring MVC\uff0c \u5206\u522b\u91c7\u7528\u5982\u4e0b\u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\uff1a</p> <pre><code>@GetMapping(path = \"/getDate\")\npublic Date getDate(@RequestParam(\"date\") Date date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getDatePath/{date}\")\npublic Date getDatePath(@PathParam(\"date\") Date date) {\nreturn date;\n}\n\n@PostMapping(path = \"/postDate\")\npublic Date postDate(@RequestBody Date date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getLocalDateTime\")\npublic LocalDateTime getLocalDateTime(@RequestParam(\"date\") LocalDateTime date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getLocalDateTime/{date}\")\npublic LocalDateTime getLocalDateTimePath(@PathParam(\"date\") LocalDateTime date) {\nreturn date;\n}\n\n@PostMapping(path = \"/postLocalDateTime\")\npublic LocalDateTime postLocalDateTime(@RequestBody LocalDateTime date) {\nreturn date;\n}\n</code></pre> <p>\u5176\u4e2d <code>getLocalDateTimePath</code> \u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u7684 swagger \u63cf\u8ff0\u5982\u4e0b\uff1a</p> <pre><code>/getLocalDateTime/{date}:\nget:\n  operationId: \"getLocalDateTimePath\"\n  parameters:\n  - name: \"date\"\n    in: \"path\"\n    required: true\n    type: \"string\"\n    format: \"date-time\"\n  responses:\n    \"200\":\n      description: \"response of 200\"\n      schema:\n        type: \"string\"\n        format: \"date-time\"\n</code></pre> <p>\u53ef\u4ee5\u770b\u51fa\uff0cdate-time \u5728\u7f51\u7edc\u4e0a\u662f\u901a\u8fc7 String \u8fdb\u884c\u7f16\u7801\u8fdb\u884c\u4f20\u8f93\u7684\uff0c \u683c\u5f0f\u662f\u6807\u51c6\u7684\u683c\u5f0f\uff0c \u6bd4\u5982 <code>2017-07-21T17:32:28Z</code>\u3002 \u7531\u4e8e date-time \u7684\u6807\u51c6\u683c\u5f0f\u5305\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u5728\u4f5c\u4e3a query \u6216\u8005 path \u53c2\u6570\u7684\u65f6\u5019\uff0c \u9700\u8981\u505a\u597d URL \u7f16\u89e3\u7801\uff0c \u7f51\u7edc\u4e0a\u4f20\u9012\u7684\u5b9e\u9645\u5185\u5bb9\u4e3a <code>2017-07-21T17%3A32%3A28Z</code>\uff0c \u6bd4\u5982\uff1a <code>http://localhost:8082/dateTime/getLocalDateTime?date=2017-07-21T17%3A32%3A28Z</code>, \u4f5c\u4e3a body \u53c2\u6570\uff0c \u5185\u5bb9\u4e0d\u4f1a\u7f16\u89e3\u7801\uff0c \u662f\u5f15\u53f7\u5305\u542b\u8d77\u6765\u7684 String \u7c7b\u578b\uff0c \u6bd4\u5982 <code>\"2017-07-21T17:32:28Z\"</code>\u3002</p>"},{"location":"featured-topics/features/http-dispatcher.html","title":"\u7279\u6027\u4ecb\u7ecd\uff1a Edge Service \u901a\u7528\u7684 HTTP \u8f6c\u53d1\u5668 CommonHttpEdgeDispatcher","text":"<p>Edge Service \u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u7684 HTTP \u8f6c\u53d1\u5668\uff0c\u5e76\u652f\u6301\u81ea\u5b9a\u4e49\u6269\u5c55\u3002\u5728\u5b9e\u9645\u4e1a\u52a1\u4e2d\uff0c\u53ef\u80fd\u5b58\u5728\u4e0d\u540c\u5f00\u53d1\u6846\u67b6\u5e76\u5b58\u7684\u60c5\u51b5\uff0c\u4e5f\u53ef\u80fd\u5305\u542b\u9057\u7559\u5e94\u7528 \u7cfb\u7edf\uff0c\u6216\u8005\u9700\u8981\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u5176\u4ed6\u7b2c\u4e09\u65b9\u7cfb\u7edf\u7684\u573a\u666f\u3002 Java Chassis\u63d0\u4f9b\u4e86 CommonHttpEdgeDispatcher \u652f\u6301\u8fd9\u4e9b\u573a\u666f\u3002 </p> <p>CommonHttpEdgeDispatcher \u8981\u6c42\u76ee\u6807\u5fae\u670d\u52a1\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u80fd\u591f\u88ab\u81ea\u52a8\u53d1\u73b0\u3002\u65b0\u7684\u8f6c\u53d1\u5668\u53ef\u4ee5\u7ba1\u7406\u5b9e\u4f8b\u72b6\u6001\uff0c\u63d0\u4f9b\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u914d\u7f6e\uff0c \u63d0\u4f9b\u5b9e\u4f8b\u9694\u79bb\u7b49\u57fa\u672c\u6cbb\u7406\u529f\u80fd\u3002 </p> <p>CommonHttpEdgeDispatcher \u80fd\u591f\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u76d1\u542c HTTP \u6216\u8005 HTTP 2 \u534f\u8bae\u7684 Provider\uff0c \u5bf9\u4e8e Provider \u7684\u5f00\u53d1\u6846\u67b6\u6ca1\u6709\u9650\u5236\uff0c\u4e5f\u4e0d \u8981\u6c42 Provider \u6ce8\u518c\u5951\u7ea6\u4fe1\u606f\u3002 </p>"},{"location":"featured-topics/features/http-dispatcher.html#commonhttpedgedispatcher","title":"\u4f7f\u7528 CommonHttpEdgeDispatcher","text":"<p>\u5728 Edge Service \u542f\u7528 CommonHttpEdgeDispatcher \u975e\u5e38\u7b80\u5355\uff0c \u53ea\u9700\u8981\u5728 <code>microservice.yaml</code> \u4e2d\u589e\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\u3002 </p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n        http:\n          enabled: true\n          mappings:\n            businessV2:\n              prefixSegmentCount: 1\n              path: \"/http/business/v2/.*\"\n              microserviceName: business\n              versionRule: 2.0.0\n            businessV1:\n              prefixSegmentCount: 1\n              path: \"/http/business/v1/add.*\"\n              microserviceName: business\n              versionRule: 1.0.0-1.2.0\n            businessV1_1:\n              prefixSegmentCount: 1\n              path: \"/http/business/v1/dec.*\"\n              microserviceName: business\n              versionRule: 1.1.0\n</code></pre> <p>\u901a\u7528\u7684 HTTP \u8f6c\u53d1\u5668\u7684\u914d\u7f6e\u9879\u548c <code>URLMappedEdgeDispatcher</code> \u975e\u5e38\u7c7b\u4f3c\u3002 \u53ef\u4ee5\u914d\u7f6e\u4e00\u7cfb\u5217\u7684 mappings \u5b9a\u4e49 URL \u4e0e \u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u8f6c\u53d1\u5173\u7cfb\u3002 \u4e0a\u8ff0\u914d\u7f6e\u5b9a\u4e49\u4e86 3 \u4e2a mappings\uff0c \u7b2c 1 \u4e2a\u5c06 URL \u6ee1\u8db3 <code>/http/business/v2/.*</code> \u7684\u8bf7\u6c42 \u8f6c\u53d1\u5230 business \u670d\u52a1 2.0.0 \u7248\u672c\u5b9e\u4f8b\uff0c \u540e\u7aef\u670d\u52a1\u5b9e\u9645\u7684 URL \u4e3a <code>/business/v2/.*</code> \u3002 \u7b2c 2 \u4e2a\u6f14\u793a\u4e86\u7070\u5ea6\u8f6c\u53d1\uff0c \u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230 1.0.0 \u4ee5\u4e0a\uff08\u542b\uff09\uff0c 1.2.0 \u4ee5\u4e0b\uff08\u4e0d\u542b\uff09 \u7684\u7248\u672c\u3002 </p>"},{"location":"featured-topics/features/http-dispatcher.html#commonhttpedgedispatcher_1","title":"CommonHttpEdgeDispatcher \u7684\u6cbb\u7406","text":"<p>CommonHttpEdgeDispatcher \u96c6\u6210\u4e86 loadbalance \u6a21\u5757\u63d0\u4f9b\u7684\u6cbb\u7406\u80fd\u529b\uff0c \u5728 \u8d1f\u8f7d\u5747\u8861 \u91cc\u9762\u7684\u6cbb\u7406 \u80fd\u529b\u90fd\u53ef\u4ee5\u4f7f\u7528\uff0c\u9664\u4e86 <code>\u8bbe\u7f6e\u91cd\u8bd5\u7b56\u7565</code> \u3002 \u8fd9\u4e2a\u8f6c\u53d1\u5668\u901a\u5e38\u88ab\u7528\u4e8e\u8f6c\u53d1 UI \u8bf7\u6c42\u5230\u540e\u7aef\u7684\u9759\u6001\u9875\u9762\u670d\u52a1\uff0c\u4ee5\u53ca\u9057\u7559\u7684\u4f7f\u7528 spring boot \u5f00\u53d1\u7684\u5fae\u670d\u52a1\uff0c \u6216\u8005\u91c7\u7528 spring-cloud-huawei \u63a5\u5165\u670d\u52a1\u4e2d\u5fc3\u7684 spring cloud \u5fae\u670d\u52a1\u5e94\u7528\u3002 </p>"},{"location":"featured-topics/secrets/applied-config.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u5e94\u7528\u89c6\u89d2\u7684\u914d\u7f6e\u7ba1\u7406","text":"<p>\u8c08\u8bba\u5fae\u670d\u52a1\u914d\u7f6e\u7ba1\u7406\u7684\u65f6\u5019\uff0c\u6700\u591a\u7684\u662f\u4ee5\u914d\u7f6e\u4e2d\u5fc3\u4e3a\u89c6\u89d2\uff0c\u8ba8\u8bba\u5176\u914d\u7f6e\u7ba1\u7406\u80fd\u529b\u3002 \u548c\u6ce8\u518c\u4e2d\u5fc3\u4e00\u6837\uff0c\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\u4f1a\u6709\u4e00\u4e9b\u5173\u952e\u7684\u8bbe\u8ba1\u6307\u6807\u3002 </p> <ul> <li>\u914d\u7f6e\u7684\u683c\u5f0f\u548c\u7c7b\u578b\u3002\u652f\u6301\u4e0d\u540c\u683c\u5f0f\u548c\u7c7b\u578b\u7684\u914d\u7f6e\u9879\uff0c\u6bd4\u5982YAML\u3001\u6587\u672c\u3001JSON\u3001XML\u7b49\u3002</li> <li>\u914d\u7f6e\u7684\u903b\u8f91\u5c42\u6b21\u3002\u6bd4\u5982 Kie \u63d0\u4f9b\u4e86 Label \u6765\u8868\u8fbe\u914d\u7f6e\u7684\u5c42\u6b21\uff0c\u53ef\u4ee5\u7b80\u5316\u4e3a\u5e94\u7528\u914d\u7f6e\u3001\u670d\u52a1\u914d\u7f6e\u548c\u81ea\u5b9a\u4e49\u914d\u7f6e\u7b49\uff1bNacos \u4f7f\u7528 Namespace\u3001Group\u7b49\u6982\u5ff5\u6765\u8868\u8fbe\u914d\u7f6e\u7684\u5c42\u6b21\u3002 </li> <li>\u53d8\u66f4\u901a\u77e5\u673a\u5236\u3002\u548c\u6ce8\u518c\u4e2d\u5fc3\u4e00\u6837\uff0c\u914d\u7f6e\u4e2d\u5fc3\u4e5f\u6709\u53d8\u66f4\u901a\u77e5\u673a\u5236\uff0c\u4e24\u8005\u7684\u673a\u5236\u76f8\u4f3c\u3002\u76f8\u8f83\u800c\u8a00\uff0c\u914d\u7f6e\u4e2d\u5fc3\u5bf9\u4e8e\u53d8\u66f4\u611f\u77e5\u5468\u671f\u7684\u7684\u8981\u6c42\u66f4\u4f4e\u3002</li> <li>\u914d\u7f6e\u5386\u53f2\u548c\u63a8\u9001\u8f68\u8ff9\u3002\u901a\u8fc7\u914d\u7f6e\u5386\u53f2\uff0c\u80fd\u591f\u4e86\u89e3\u914d\u7f6e\u9879\u7684\u6539\u52a8\u8bb0\u5f55\uff0c\u65b9\u4fbf\u8fdb\u884c\u5ba1\u8ba1\u548c\u56de\u9000\uff0c\u63a8\u9001\u8f68\u8ff9\u5219\u5e2e\u52a9\u4e86\u89e3\u914d\u7f6e\u9879\u88ab\u5e94\u7528\u5230\u4e86\u54ea\u4e9b\u5fae\u670d\u52a1\u3002 </li> </ul> <p>Java Chassis 3\u7684\u8bbe\u8ba1\u76ee\u6807\u4e4b\u4e00\uff0c\u5c31\u662f\u4ee5\u5e94\u7528\u7684\u89c6\u89d2\uff0c\u652f\u6301\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\uff0c\u5e76\u63d0\u4f9b\u7edf\u4e00\u4e00\u81f4\u7684\u4f7f\u7528\u65b9\u5f0f\u3002</p> <p>Java Chassis 3\u7b80\u5316\u4e86\u5fae\u670d\u52a1\u5b9a\u4e49\uff0c\u53ea\u5305\u542b\u5982\u4e0b\u6838\u5fc3\u6982\u5ff5\uff1a</p> <ul> <li>\u73af\u5883\u540d\u79f0\uff1a\u7528\u4e8e\u8868\u793a\u90e8\u7f72\u73af\u5883\uff0c\u4e0d\u540c\u73af\u5883\u7684\u5fae\u670d\u52a1\u4e4b\u95f4\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u73af\u5883\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>namespace</code> \u6765\u8868\u793a\u73af\u5883\u3002</li> <li>\u5e94\u7528\u540d\u79f0\uff1a\u7528\u4e8e\u63cf\u8ff0\u4e00\u7ec4\u53ef\u4ee5\u76f8\u4e92\u8bbf\u95ee\u7684\u5fae\u670d\u52a1\uff0c\u4e0d\u540c\u5e94\u7528\u540d\u79f0\u4e4b\u95f4\u662f\u903b\u8f91\u9694\u79bb\u7684\uff0c\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u5e94\u7528\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>group</code> \u6765\u8868\u793a\u5e94\u7528\u3002</li> <li>\u5fae\u670d\u52a1\u540d\u79f0\uff1a\u7528\u4e8e\u6807\u8bc6\u4e00\u4e2a\u5fae\u670d\u52a1\u3002\u53ef\u4ee5\u901a\u8fc7\u5fae\u670d\u52a1\u540d\u79f0\u67e5\u8be2\u9700\u8981\u8bbf\u95ee\u7684\u76ee\u6807\u5fae\u670d\u52a1\u3002</li> <li>\u5fae\u670d\u52a1\u7248\u672c\uff1a\u8868\u793a\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u5f53\u5b58\u5728\u5fae\u670d\u52a1\u5c5e\u6027\u53d8\u5316\u3001\u63a5\u53e3\u53d8\u5316\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4fee\u6539\u7248\u672c\u53f7\u3002</li> <li>\u5fae\u670d\u52a1\u63cf\u8ff0\uff1a\u7b80\u5355\u7684\u5fae\u670d\u52a1\u63cf\u8ff0\u4fe1\u606f\u3002</li> <li>\u5fae\u670d\u52a1\u5c5e\u6027\uff1a\u7528\u4e8e\u63cf\u8ff0\u5fae\u670d\u52a1\u7684\u6269\u5c55\u4fe1\u606f\u3002</li> </ul> <pre><code>servicecomb:\n  service:\n    application: hello-applicaton\n    name: hello-service\n    version: 0.0.1 \n    properties: \n      key1: value1\n      key2: value2\n    description: This is a description about the microservice\n    environment: production\n</code></pre> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1\u63a5\u5165\u914d\u7f6e\u4e2d\u5fc3\u4ee5\u540e\uff0cJava Chassis 3\u7684\u914d\u7f6e\u7ba1\u7406\u6a21\u5757\uff0c\u4f1a\u81ea\u52a8\u4ece\u914d\u7f6e\u4e2d\u5fc3\u83b7\u53d6\u5982\u4e0b\u914d\u7f6e\u5c42\u6b21\u7684\u914d\u7f6e\u4fe1\u606f\uff1a</p> <ul> <li>\u5e94\u7528\u914d\u7f6e\u3002</li> <li>\u670d\u52a1\u914d\u7f6e\u3002</li> <li>\u7248\u672c\u914d\u7f6e\u3002</li> <li>\u81ea\u5b9a\u4e49\u914d\u7f6e\u3002</li> </ul> <p>\u8fd9\u4e9b\u914d\u7f6e\u5728\u4e0d\u540c\u914d\u7f6e\u4e2d\u5fc3\u7684\u5bf9\u5e94\u5173\u7cfb\uff1a</p> \u9879\u76ee Nacos \u914d\u7f6e\u4e2d\u5fc3 Kie \u914d\u7f6e\u4e2d\u5fc3 \u5907\u6ce8 \u5e94\u7528\u914d\u7f6e namespace=environment group=application dataId=application environment=environment app=application \u670d\u52a1\u914d\u7f6e namespace=environment group=application dataId=service environment=environment app=application service=service \u7248\u672c\u914d\u7f6e namespace=environment group=application dataId=service-version environment=environment app=application service=service version=version \u81ea\u5b9a\u4e49\u914d\u7f6e namespace=environment group=group dataId=dataId customLabel=customLabelValue <p>\u4ee5\u5e94\u7528\u89c6\u89d2\u5efa\u7acb\u8fd9\u79cd\u5bf9\u5e94\u5173\u7cfb\u7684\u597d\u5904\uff0c\u662f\u7528\u6237\u4e0d\u9700\u8981\u81ea\u884c\u89c4\u5212\u5982\u4f55\u5728\u914d\u7f6e\u4e2d\u5fc3\u5b58\u653e\u6570\u636e\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u4e00\u4e2a\u4f18\u79c0\u7684\u7ba1\u7406\u5b9e\u8df5\u5e94\u7528\u4e8e\u4e1a\u52a1\u573a\u666f\u3002\u5c06\u7528\u6237\u9700\u8981\u601d\u8003\u7684\u95ee\u9898\uff0c\u56fa\u5b9a\u4e3a\u51e0\u4e2a\u5177\u4f53\u7684\u95ee\u9898\uff1a\u5982\u4f55\u521b\u5efa\u5e94\u7528\u7ea7\u522b\u7684\u914d\u7f6e\uff1f\u5982\u4f55\u521b\u5efa\u670d\u52a1\u7ea7\u522b\u7684\u914d\u7f6e\uff1f\u5982\u4f55\u521b\u5efa\u5fae\u670d\u52a1\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\uff1f</p> <p>\u5e94\u7528\u89c6\u89d2\u7684\u914d\u7f6e\u7ba1\u7406\u53e6\u5916\u4e00\u4e2a\u5173\u952e\u95ee\u9898\uff0c\u662f\u5f00\u53d1\u8005\u5982\u4f55\u4f7f\u7528\u914d\u7f6e\u3002</p> <ul> <li>Spring Boot\u4f7f\u7528\u914d\u7f6e</li> </ul> <p>Spring Boot\u7684\u5f00\u53d1\u8005\u4e00\u822c\u901a\u8fc7 <code>@Value</code>\u3001<code>@ConfigurationProperties</code> \u548c <code>Environment</code> \u83b7\u53d6\u914d\u7f6e\u3002 \u5b83\u63d0\u4f9b\u4e86 <code>PropertySource</code> \u6765\u6269\u5c55\u914d\u7f6e\u6e90\u3002 Spring Boot\u5e76\u672a\u9488\u5bf9\u914d\u7f6e\u53d8\u66f4\u63d0\u4f9b\u989d\u5916\u7684\u5904\u7406\u673a\u5236\uff0c\u65e0\u6cd5\u5f88\u597d\u7684\u5904\u7406\u914d\u7f6e\u53d8\u66f4\u3002 \u5c3d\u7ba1\u5f53 <code>PropertySource</code> \u7684\u5185\u5bb9\u53d8\u5316\u540e\uff0c\u901a\u8fc7 <code>Environment</code> \u53ef\u4ee5\u83b7\u53d6\u5230\u6700\u65b0\u7684\u7248\u672c\u5185\u5bb9\uff0c\u4f46\u662f <code>@Value</code>\u3001<code>@ConfigurationProperties</code> \u5b9a\u4e49\u7684\u914d\u7f6e\u9879\u5219\u4e0d\u4f1a\u53d1\u751f\u53d8\u5316\u3002 </p> <ul> <li>Spring Cloud\u4f7f\u7528\u914d\u7f6e</li> </ul> <p>Spring Cloud\u5728Spring Boot\u57fa\u7840\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u4e86\u52a8\u6001\u914d\u7f6e\u7684\u80fd\u529b\u3002 \u53ef\u4ee5\u4f7f\u7528 <code>@RefershScope</code> \u6807\u7b7e\u58f0\u660e Bean\uff0c \u5728\u914d\u7f6e\u53d8\u5316\u540e\uff0cSpring Cloud\u4f1a\u9500\u6bc1\u8001\u7684 Bean\uff0c \u5e76\u91cd\u5efa\u65b0\u7684 Bean\uff0c\u65b0\u7684 Bean\u4f1a\u4f7f\u7528\u6700\u65b0\u7684\u914d\u7f6e\u503c\u8fdb\u884c\u521d\u59cb\u5316\u3002 Spring Cloud\u5728\u5904\u7406\u914d\u7f6e\u53d8\u66f4\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5bf9Bean\u7684\u8bbf\u95ee\u52a0\u8bfb\u5199\u9501\u3002 </p> <ul> <li>Java Chassis 3\u4f7f\u7528\u914d\u7f6e</li> </ul> <p>Java Chassis 3\u5b8c\u5168\u517c\u5bb9 Spring Boot\u7684\u914d\u7f6e\u4f7f\u7528\u65b9\u5f0f\u3002 \u5e76\u63d0\u4f9b\u4e86\u66f4\u52a0\u53cb\u597d\u7684 API \u76d1\u542c\u914d\u7f6e\u53d8\u66f4\u548c\u5904\u7406\u4f18\u5148\u7ea7\u914d\u7f6e\u3002 \u914d\u7f6e\u76d1\u542c API \u4e3b\u8981\u7528\u4e8e\u9ad8\u6027\u80fd\u573a\u666f\uff1a\u914d\u7f6e\u53d8\u66f4\u540e\u9700\u8981\u8fdb\u884c\u5fc5\u8981\u7684\u4e1a\u52a1\u903b\u8f91\u521d\u59cb\u5316\uff0c\u521d\u59cb\u5316\u53ef\u4ee5\u5728\u914d\u7f6e\u53d8\u66f4\u7ebf\u7a0b\u4e2d\u6267\u884c\uff0c\u800c\u4e0d\u963b\u585e\u5f53\u524d\u4e1a\u52a1\u6267\u884c\u3002 </p> <pre><code>@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  private DynamicProperties dynamicProperties;\n\n  private String example;\n\n  @Autowired\n  public ProviderController(DynamicProperties dynamicProperties) {\n    this.dynamicProperties = dynamicProperties;\n    this.example = this.dynamicProperties.getStringProperty(\"basic.example\",\n            value -&gt; this.example = value, \"not set\");\n  }\n}\n</code></pre> <p>\u4f18\u5148\u7ea7\u914d\u7f6e\u662fJava Chassis3\u7279\u6709\u7684\u7ba1\u7406\u914d\u7f6e\u4f18\u5148\u7ea7\u65b9\u5f0f\u3002\u6bd4\u5982\u5bf9\u4e8e\u67d0\u4e2a\u65b9\u6cd5\uff0c\u4f1a\u8003\u8651\u662f\u5426\u6709\u5e94\u7528\u7ea7\u522b\u7684\u5168\u5c40\u914d\u7f6e\u3001\u9488\u5bf9\u670d\u52a1\u7684\u914d\u7f6e\u548c\u9488\u5bf9\u8fd9\u4e2a\u65b9\u6cd5\u7684\u914d\u7f6e\uff0c\u9488\u5bf9\u65b9\u6cd5\u7684\u914d\u7f6e\u4f18\u5148\u7ea7\u6700\u9ad8\u3002 \u8fd9\u79cd\u914d\u7f6e\u65b9\u5f0f\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8eJava Chassis 3\u7684\u9650\u6d41\u7b49\u670d\u52a1\u6cbb\u7406\u573a\u666f\u4e2d\u3002 \u4e0b\u9762\u7684\u4ee3\u7801\u7247\u6bb5\u662fJava Chassis\u7684\u63a5\u53e3\u8d85\u65f6\u914d\u7f6e\u793a\u4f8b\u3002</p> <pre><code>@InjectProperties(prefix = \"servicecomb\")\npublic class OperationConfig {\n  public static final List&lt;String&gt; CONSUMER_OP_ANY_PRIORITY = Arrays.asList(\n      \"${service}.${schema}.${operation}\",\n      \"${service}.${schema}\",\n      \"${service}\");\n\n  /**\n   * consumer request timeout\n   */\n  @InjectProperty(keys = {\"request.${op-any-priority}.timeout\", \"request.timeout\"}, defaultValue = \"30000\")\n  private long msRequestTimeout;\n}\n</code></pre> <p>\u76f8\u5bf9\u4e8eSpring Cloud\uff0cJava Chassis3\u7684\u914d\u7f6eAPI\uff0c\u80fd\u591f\u66f4\u52a0\u65b9\u4fbf\u7684\u76d1\u542c\u914d\u7f6e\u53d8\u5316\uff0c\u5e76\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u6027\u80fd\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1aSpring Cloud\u914d\u7f6e\u53d8\u66f4\u4f1a\u52a0\u9501\u3002\u5728\u9ad8\u5e76\u53d1\u573a\u666f\uff0c\u914d\u7f6e\u53d8\u66f4\u4f1a\u963b\u585e\u6240\u6709\u8bf7\u6c42\u7684\u6267\u884c\u3002\u5982\u679c\u4e1a\u52a1\u6267\u884c\uff08\u5df2\u7ecf\u83b7\u53d6\u8bfb\u9501\uff09\u5305\u542bRPC\u7b49\u76f8\u5bf9\u6162\u7684\u903b\u8f91\uff0c\u914d\u7f6e\u53d8\u66f4\u7b49\u5f85\u5199\u9501\u4ee5\u53ca\u5176\u4ed6\u6267\u4e1a\u52a1\u7ebf\u7a0b\u7b49\u5f85\u8bfb\u9501\u90fd\u4f1a\u88ab\u963b\u585e\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\uff0c\u89e6\u53d1\u5e94\u7528\u541e\u5410\u6025\u5267\u4e0b\u964d\u3002Java Chassis 3\u914d\u7f6e\u53d8\u66f4\u4e0d\u963b\u585e\u4e1a\u52a1\u5904\u7406\uff0c\u80fd\u591f\u6709\u6548\u7684\u9632\u6b62\u914d\u7f6e\u53d8\u66f4\u89e6\u53d1\u96ea\u5d29\u6548\u5e94\uff0c\u7279\u522b\u662f\u5728\u9ad8\u5e76\u53d1\u3001\u9700\u8981\u52a8\u6001\u8c03\u6574\u8fd0\u884c\u3001\u6cbb\u7406\u89c4\u5219\u7684\u4e1a\u52a1\u573a\u666f\u3002 </p>"},{"location":"featured-topics/secrets/circuit-breaker.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u7194\u65ad\u673a\u5236\u7684\u6539\u8fdb\u8def\u7a0b","text":"<p>\u7194\u65ad\u673a\u5236\u662f\u5fae\u670d\u52a1\u6cbb\u7406\u975e\u5e38\u91cd\u8981\u7684\u624b\u6bb5\u3002\u5f53\u5e94\u7528\u7a0b\u5e8f\u51fa\u73b0\u5c40\u90e8\u6545\u969c\uff0c\u6bd4\u5982\u591a\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u7684\u5176\u4e2d\u4e00\u4e2a\u5b9e\u4f8b\u6545\u969c\uff0c\u6216\u8005\u4e00\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u7684\u591a\u4e2a\u63a5\u53e3\u4e2d\u7684\u4e00\u4e2a\u6545\u969c\uff0c\u6070\u5f53\u7684\u7194\u65ad\u673a\u5236\u80fd\u591f\u907f\u514d\u51fa\u73b0\u96ea\u5d29\u6548\u5e94\u3002\u7194\u65ad\u673a\u5236\u901a\u5e38\u6709\u5982\u4e0b\u51e0\u4e2a\u91cd\u8981\u7684\u6280\u672f\u90e8\u4ef6\u3002</p> <ul> <li>\u7194\u65ad\u7684\u76ee\u6807\u5bf9\u8c61\u3002\u76ee\u6807\u5bf9\u8c61\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b9e\u4f8b\u7684\u67d0\u4e2a\u670d\u52a1\u63a5\u53e3\uff0c\u4e5f\u53ef\u4ee5\u662f\u6b63\u5728\u8bbf\u95ee\u7684\u67d0\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4e5f\u53ef\u4ee5\u662f\u6b63\u5728\u8bbf\u95ee\u7684\u67d0\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u7684\u67d0\u4e2a\u63a5\u53e3\u3002 \u7ad9\u5728Provider\u89c6\u89d2\u548c\u7ad9\u5728Consumer\u89c6\u89d2\uff0c\u4f1a\u6709\u4e0d\u540c\u7684\u76ee\u6807\u5bf9\u8c61\u3002\u9700\u8981\u5bf9\u76ee\u6807\u5bf9\u8c61\u8fdb\u884c\u51c6\u786e\u7684\u62bd\u8c61\uff0c\u624d\u80fd\u591f\u63d0\u4f9b\u4e00\u4e2a\u597d\u7528\u7684\u7194\u65ad\u673a\u5236\u3002 </li> <li>\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u3002\u5bf9\u76ee\u6807\u5bf9\u8c61\u7684\u6bcf\u6b21\u8bbf\u95ee\uff0c\u9700\u8981\u5bf9\u8bbf\u95ee\u7ed3\u679c\u8fdb\u884c\u68c0\u67e5\u548c\u5206\u7c7b\uff0c\u5e76\u7edf\u8ba1\u76f8\u5173\u6307\u6807\u3002\u901a\u5e38\u68c0\u67e5\u7684\u7ed3\u679c\u5305\u62ec\u629b\u51fa\u5f02\u5e38\u3001\u8fd4\u56de\u72b6\u6001\u7801\u3001\u8bf7\u6c42\u5904\u7406\u65f6\u5ef6\u7b49\u3002 \u8fd8\u9700\u8981\u8003\u8651\u9002\u5f53\u7684\u7b97\u6cd5\u8fdb\u884c\u6307\u6807\u7edf\u8ba1\uff0c\u6bd4\u5982\u91c7\u7528\u57fa\u4e8e\u65f6\u95f4\u6216\u8005\u57fa\u4e8e\u8bf7\u6c42\u6570\u91cf\u7684\u6ed1\u52a8\u7a97\u53e3\u7b97\u6cd5\u3002</li> <li>\u7194\u65ad\u7684\u7b56\u7565\u3002\u5f53\u6545\u969c\u79ef\u7d2f\u7684\u65f6\u5019\uff0c\u5982\u4f55\u907f\u514d\u6545\u969c\u79ef\u7d2f\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u5e38\u89c1\u7684\u7b56\u7565\u5305\u62ec\uff1a\u5feb\u901f\u5931\u8d25\uff0c\u5bf9\u76ee\u6807\u5bf9\u8c61\u7684\u8bbf\u95ee\uff0c\u7acb\u5373\u629b\u51fa\u5f02\u5e38\uff0c\u8fd4\u56de\u5931\u8d25\uff1b\u9694\u79bb\u9519\u8bef\u5bf9\u8c61\uff0c\u5f53\u76ee\u6807\u5bf9\u8c61\u5b58\u5728\u53ef\u66ff\u6362\u526f\u672c\uff0c\u6bd4\u5982\u5176\u4ed6\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4e0d\u518d\u8bbf\u95ee\u6545\u969c\u5b9e\u4f8b\uff0c\u53ea\u8bbf\u95ee\u5176\u4ed6\u975e\u6545\u969c\u5b9e\u4f8b\u3002 </li> <li>\u7194\u65ad\u7684\u6062\u590d\u7b56\u7565\u3002\u76ee\u6807\u5bf9\u8c61\u7684\u7194\u65ad\u65f6\u957f\uff0c\u5982\u4f55\u4ece\u7194\u65ad\u72b6\u6001\u4e2d\u6062\u590d\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002</li> </ul> <p>\u53ef\u4ee5\u770b\u51fa\uff0c\u8bbe\u8ba1\u4e00\u4e2a\u826f\u597d\u7684\u7194\u65ad\u673a\u5236\u662f\u975e\u5e38\u590d\u6742\u7684\uff0cJava Chassis 3\u7684\u7194\u65ad\u673a\u5236\u4e5f\u7ecf\u5386\u4e86\u591a\u6b21\u8c03\u6574\u548c\u4f18\u5316\u3002 </p> <ul> <li>Spring Cloud Circuit Breaker</li> </ul> <p>\u4ece <code>Spring Cloud</code> \u5b98\u7f51\u63d0\u4f9b\u7684\u4f8b\u5b50\u4ee5\u53ca\u5f00\u53d1\u6307\u5357\uff0c\u53ef\u4ee5\u7b80\u5355\u7684\u5206\u89e3\u4e0b\u4e0a\u8ff0\u6280\u672f\u90e8\u4ef6\uff1a</p> <pre><code>@Service\npublic static class DemoControllerService {\n    private ReactiveCircuitBreakerFactory cbFactory;\n    private WebClient webClient;\n\n\n    public DemoControllerService(WebClient webClient, ReactiveCircuitBreakerFactory cbFactory) {\n        this.webClient = webClient;\n        this.cbFactory = cbFactory;\n    }\n\n    public Mono&lt;String&gt; slow() {\n        return webClient.get().uri(\"/slow\").retrieve().bodyToMono(String.class).transform(\n        it -&gt; cbFactory.create(\"slow\").run(it, throwable -&gt; return Mono.just(\"fallback\")));\n    }\n}\n</code></pre> <p>\u76ee\u6807\u5bf9\u8c61\u662f\u7531\u5f00\u53d1\u8005\u5728\u4ee3\u7801\u4e2d\u6307\u5b9a\u7684\u3002 \u5bf9\u4e8e\u63a5\u53e3\u65b9\u6cd5\u8fd9\u7c7b\u76ee\u6807\u5bf9\u8c61\uff0c\u5f00\u53d1\u8d77\u6765\u662f\u6bd4\u8f83\u5bb9\u6613\u7684\uff0c\u4f46\u662f\u5bf9\u4e8e\u5b9e\u4f8b\uff0c\u5219\u975e\u5e38\u9ebb\u70e6\uff0c\u800c\u4e14\u65e0\u6cd5\u52a8\u6001\u7684\u8c03\u6574\u76ee\u6807\u5bf9\u8c61\uff0c\u5728\u5f00\u53d1\u7684\u65f6\u5019\u5c31\u9700\u8981\u786e\u5b9a\u597d\u3002 \u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u4e3b\u8981\u662f\u57fa\u4e8e\u5f02\u5e38\uff0c\u5373\u76ee\u6807\u5bf9\u8c61\u629b\u51fa\u5f02\u5e38\u7684\u65f6\u5019\uff0c\u4f1a\u89e6\u53d1\u7194\u65ad\u3002\u7194\u65ad\u7684\u7b56\u7565\u4e3a\u5feb\u901f\u5931\u8d25\u6a21\u5f0f\u3002 </p> <ul> <li>Java Chassis Bizkeeper</li> </ul> <p>Java Chassis \u7684\u65e9\u671f\u7248\u672c\uff0c\u57fa\u4e8e Bizkeeper \u63d0\u4f9b\u4e86\u7194\u65ad\u529f\u80fd\u3002 Bizkeeper \u96c6\u6210\u4e86 <code>Hystrix</code> \u7ec4\u4ef6\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u914d\u7f6e\u793a\u4f8b\u3002  </p> <pre><code>servicecomb:\n  handler:\n    chain:\n      Consumer:\n        default: bizkeeper-consumer\n  isolation:\n    Consumer:\n      timeout:\n        enabled: true\n      timeoutInMilliseconds: 30000\n  circuitBreaker:\n    Consumer:\n      enabled: true\n      sleepWindowInMilliseconds: 15000\n      requestVolumeThreshold: 20\n  fallback:\n    Consumer:\n      enabled: true\n  fallbackpolicy:\n    Consumer:\n      policy: throwException\n</code></pre> <p>\u76ee\u6807\u5bf9\u8c61\u662f\u5f53\u524d\u8bbf\u95ee\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6307\u5b9a\u6240\u6709\u65b9\u6cd5\u3001\u67d0\u4e2aSchema\u7684\u6240\u6709\u65b9\u6cd5\u3001\u67d0\u4e2a\u5177\u4f53\u65b9\u6cd5\u3002\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u6709\u5f02\u5e38\u3001\u8d85\u65f6\u9519\u8bef\u4e24\u79cd\u3002\u7194\u65ad\u7684\u7b56\u7565\u4e3a\u5feb\u901f\u5931\u8d25\u6a21\u5f0f\u3002 </p> <p>\u7531\u4e8e <code>Hystrix</code> \u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\uff0c\u8fd9\u4e2a\u673a\u5236\u5728 Java Chassis 3\u5df2\u7ecf\u5220\u9664\u3002 </p> <ul> <li>Java Chassis Instance Isolation</li> </ul> <p>\u8fd9\u4e2a\u673a\u5236\u662f\u57fa\u4e8e loadbalancer filter \u5f00\u53d1\u7684\u5b9e\u4f8b\u9694\u79bb\u529f\u80fd\u3002 </p> <pre><code>servicecomb:\n  loadbalance:\n    isolation:\n      enabled: false\n      errorThresholdPercentage: 0\n      enableRequestThreshold: 5\n      singleTestTime: 60000\n      continuousFailureThreshold: 5\n      maxSingleTestWindow: 60000 # \u4e3a\u4e86\u4fdd\u8bc1\u5728\u5e76\u53d1\u60c5\u51b5\u4e0b\u53ea\u6709\u4e00\u4e2a\u5b9e\u4f8b\u653e\u901a\uff0c\u4f1a\u9501\u5b9a\u653e\u901a\u5b9e\u4f8b\u3002\u8fd9\u4e2a\u65f6\u95f4\u8868\u793a\u6700\u5927\u9501\u5b9a\u65f6\u95f4\u3002\n      minIsolationTime: 3000 # \u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\u5e76\u53d1\u60c5\u51b5\u4e0b\uff0c\u5b9e\u4f8b\u9694\u79bb\u540e\u8fdb\u884c\u4e2d\u7684\u8bf7\u6c42\u53ef\u80fd\u5feb\u901f\u5237\u65b0\u9694\u79bb\u72b6\u6001\uff0c\u589e\u52a0\u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\n      recoverImmediatelyWhenSuccess: true # \u653e\u901a\u5b9e\u4f8b\uff0c\u5982\u679c\u8c03\u7528\u6210\u529f\uff0c\u7acb\u5373\u6e05\u9664\u7edf\u8ba1\u72b6\u6001\uff0c\u4fdd\u8bc1\u540e\u7eed\u8bf7\u6c42\u80fd\u591f\u4f7f\u7528\u8be5\u5b9e\u4f8b\u3002 \n</code></pre> <p>\u76ee\u6807\u5bf9\u8c61\u662f\u5b9e\u4f8b\u3002 \u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u662f\u57fa\u4e8e\u5f02\u5e38\u3002 \u7194\u65ad\u7684\u7b56\u7565\u4e3a\u4e0d\u518d\u8bbf\u95ee\u6545\u969c\u5b9e\u4f8b\uff0c\u53ea\u8bbf\u95ee\u5176\u4ed6\u975e\u6545\u969c\u5b9e\u4f8b\u3002 </p> <p>\u8be5\u529f\u80fd\u5728\u6545\u969c\u7edf\u8ba1\u65b9\u9762\u6ca1\u6709\u6ed1\u52a8\u7a97\u53e3\u7b49\u7b97\u6cd5\uff0c\u5728\u8ba1\u7b97\u9519\u8bef\u7387\u7684\u65f6\u5019\uff0c\u4f1a\u5b58\u5728\u4e0d\u7a33\u5b9a\u6ce2\u52a8\u3002 \u9519\u8bef\u7387\u8ba1\u7b97\u95ee\u9898\u4f1a\u5bfc\u81f4\u9694\u79bb\u548c\u9694\u79bb\u6062\u590d\u51fa\u73b0\u95ee\u9898\uff0c\u53ef\u4ee5\u770b\u51fa\uff0c\u4ed6\u7684\u6062\u590d\u673a\u5236\u8bbe\u8ba1\u53c2\u6570\u6bd4\u8f83\u591a\u3002 \u8fd9\u4e2a\u673a\u5236\u5728 Java Chassis 3\u5df2\u7ecf\u5220\u9664\u3002 </p> <ul> <li>Java Chassis 3 \u7684\u7194\u65ad\u673a\u5236</li> </ul> <p>Java Chassis 3 \u9488\u5bf9 <code>Provider</code> \u548c <code>Consumer</code> \u4e24\u4e2a\u89c6\u89d2\uff0c\u63d0\u4f9b\u4e86\u7194\u65ad\u673a\u5236\u3002 \u4e24\u4e2a\u673a\u5236\u7684\u6545\u969c\u68c0\u6d4b\u7684\u65b9\u6cd5\u3001\u7194\u65ad\u7b56\u7565\u548c\u7194\u65ad\u6062\u590d\u7b56\u7565\u662f\u76f8\u540c\u7684\uff0c\u53ea\u662f\u5728\u76ee\u6807\u5bf9\u8c61\u4e0d\u4e00\u81f4\u3002 </p> <p><code>Provider</code> \u89c6\u89d2\u7684\u7194\u65ad\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  circuitBreaker:\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      recordFailureStatus: \n        - 502\n        - 503\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n</code></pre> <p><code>Consumer</code> \u89c6\u89d2\u7684\u7194\u65ad\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  instanceIsolation:\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      recordFailureStatus: \n        - 502\n        - 503\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n</code></pre> <p>Java Chassis\u63d0\u4f9b\u4e86\u57fa\u4e8e\u6162\u8bf7\u6c42\u3001\u5f02\u5e38\u3001\u9519\u8bef\u7801\uff0c\u4ee5\u53ca <code>AbstractCircuitBreakerExtension</code>\u3001<code>AbstractInstanceIsolationExtension</code> \u63a5\u53e3\u8ba9\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u7b49\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u3002 \u5bf9\u4e8e\u6027\u80fd\u573a\u666f\uff0c\u8fd8\u53ef\u4ee5\u57fa\u4e8e\u9694\u79bb\u4ed3\u589e\u52a0\u5e76\u53d1\u6570\u9650\u5236\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u3002 </p> <p><code>Provider</code> \u89c6\u89d2\u7684\u9694\u79bb\u4ed3\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  bulkhead:\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre> <p><code>Consumer</code> \u89c6\u89d2\u7684\u9694\u79bb\u4ed3\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  instanceBulkhead:\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre> <p><code>Provider</code> \u89c6\u89d2\u7684\u7194\u65ad\u5668\uff0c\u7194\u65ad\u7b56\u7565\u662f\u5feb\u901f\u5931\u8d25\uff0c\u629b\u51fa\u5f02\u5e38\uff1b<code>Consumer</code> \u89c6\u89d2\u7684\u7194\u65ad\u5668\uff0c\u7194\u65ad\u7b56\u7565\u662f\u4e3a\u4e0d\u518d\u8bbf\u95ee\u6545\u969c\u5b9e\u4f8b\uff0c\u53ea\u8bbf\u95ee\u5176\u4ed6\u975e\u6545\u969c\u5b9e\u4f8b\u3002 </p> <p>\u5728\u524d\u9762\u7684\u793a\u4f8b\u4e2d\uff0c<code>allOperation</code> \u4ee3\u8868\u4e86\u7194\u65ad\u5bf9\u8c61\u3002 Java Chassis 3\u7684\u7194\u65ad\u5bf9\u8c61\u5b9a\u4e49\u4e5f\u662f\u975e\u5e38\u7b80\u5355\u548c\u7075\u6d3b\u7684\uff1a</p> <pre><code>servicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath:\n            exact: \"/\"\n          method:\n            - POST\n          headers:\n            Authentication: \n              prefix: Basic\n          serviceName: exampleService\n</code></pre> <p>\u7ad9\u5728<code>Provider</code> \u89c6\u89d2\uff0c \u4e0a\u8ff0\u5b9a\u4e49\u8868\u793a\u7194\u65ad\u5bf9\u8c61\u662f\u6765\u81ea <code>exampleService</code> \u7684\u8bbe\u7f6e\u4e86\u8ba4\u8bc1\u5934\u7684\u6240\u6709 POST \u65b9\u6cd5\uff1b \u7ad9\u5728<code>Consumer</code> \u89c6\u89d2\uff0c \u4e0a\u8ff0\u5b9a\u4e49\u8868\u793a\u7194\u65ad\u5bf9\u8c61\u662f\u53d1\u5f80 <code>exampleService</code> \u7684\u67d0\u4e2a\u5177\u4f53\u7684\u5b9e\u4f8b\uff0c\u5e76\u4e14\u8bbe\u7f6e\u4e86\u8ba4\u8bc1\u5934\u7684\u6240\u6709 POST \u65b9\u6cd5\u3002 </p> <p>Java Chassis 3\u7194\u65ad\u673a\u5236\u9010\u6b65\u6210\u4e3a\u662f\u4e00\u4e2a\u7b80\u5355\u6613\u7528\uff0c \u6ee1\u8db3\u7edd\u5927\u90e8\u5206\u4e1a\u52a1\u573a\u666f\u9700\u8981\u7684\u901a\u7528\u8bbe\u8ba1\u89c4\u8303\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u5ba2\u6237\u671f\u671b\u5efa\u7acb\u4e00\u79cd\u6301\u7eed\u6f14\u8fdb\u7684\u6545\u969c\u5904\u7406\u673a\u5236\uff0c\u4ee5\u964d\u4f4e\u968f\u7740\u7cfb\u7edf\u957f\u671f\u8fd0\u884c\uff0c\u968f\u673a\u6545\u969c\u3001\u7cfb\u7edf\u53d8\u6162\u7b49\u573a\u666f\u5bf9\u6574\u4f53\u6545\u969c\u7684\u5f71\u54cd\uff0c\u52a8\u6001\u9002\u5e94\u6301\u7eed\u53d8\u5316\u7684\u73af\u5883\u5bf9\u53ef\u9760\u6027\u5e26\u6765\u7684\u6311\u6218\u3002Java Chassis 3\u7684\u670d\u52a1\u6cbb\u7406\u914d\u7f6e\u673a\u5236\uff0c\u53ef\u4ee5\u4f7f\u5f97\u5ba2\u6237\u4e0d\u9700\u8981\u4fee\u6539\u4ee3\u7801\u548c\u91cd\u542f\u5e94\u7528\uff0c\u5c31\u80fd\u591f\u52a8\u6001\u8c03\u6574\u8017\u65f6\u63a5\u53e3\u548c\u6545\u969c\u63a5\u53e3\u7684\u7194\u65ad\u7b56\u7565\u3002\u901a\u8fc7\u89c4\u8303\u8d4b\u80fd\uff0c\u8fd0\u7ef4\u4eba\u5458\u5c31\u80fd\u591f\u89e3\u51b3\u4e00\u4e9b\u5e38\u89c1\u7684\u8fc7\u8f7d\u9632\u62a4\u95ee\u9898\u3002 </p>"},{"location":"featured-topics/secrets/fail-fast.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8fc7\u8f7d\u72b6\u6001\u4e0b\u7684\u5feb\u901f\u5931\u8d25","text":"<p>\u5728 <code>\u7194\u65ad\u673a\u5236\u7684\u6539\u8fdb\u8def\u7a0b</code> \u6280\u672f\u89e3\u5bc6\u4e2d\uff0c\u603b\u7ed3\u4e86\u5982\u4f55\u8bbe\u8ba1\u4e00\u4e2a\u4f18\u96c5\u7684\u7194\u65ad\u673a\u5236\u3002 \u4f5c\u4e3a\u5fae\u670d\u52a1\u6700\u91cd\u8981\u7684\u6cbb\u7406\u7b56\u7565\u4e4b\u4e00\uff0c\u7194\u65ad\u673a\u5236\u80fd\u591f\u5728\u6545\u969c\u573a\u666f\u8d77\u5230\u9632\u6b62\u96ea\u5d29\u6548\u5e94\u7684\u4f5c\u7528\u3002\u8fc7\u8f7d\u72b6\u6001\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6545\u969c\u573a\u666f\uff0c\u4e3b\u8981\u6307\u8d85\u51fa\u4e86\u7cfb\u7edf\u5904\u7406\u80fd\u529b\u7684\u8bf7\u6c42\u91cf\u3002 \u5728\u8fc7\u8f7d\u72b6\u6001\uff0c\u7194\u65ad\u673a\u5236\u53ef\u80fd\u65e0\u6cd5\u8d77\u5230\u9884\u671f\u7684\u6548\u679c\u3002 \u4e3a\u4e86\u5bf9\u8fc7\u8f7d\u72b6\u6001\u4e0b\u7684\u9632\u62a4\u6709\u4e2a\u6bd4\u8f83\u76f4\u89c2\u7684\u8ba4\u8bc6\uff0c \u6211\u4eec\u5148\u8ba8\u8bba\u51e0\u4e2a\u5178\u578b\u573a\u666f\uff1a</p> <ul> <li>\u5047\u8bbe\u7cfb\u7edf\u542f\u7528\u4e86\u7194\u65ad\u673a\u5236\uff0c\u5e76\u4e14\u8bbe\u7f6e\u4e86\u9694\u79bb\u4ed3\u6765\u68c0\u6d4b\u8fc7\u8f7d\u60c5\u51b5\u3002 \u5f53\u7cfb\u7edf\u6d41\u91cf\u8fc7\u8f7d\u7684\u65f6\u5019\uff0c\u9694\u79bb\u4ed3\u89e6\u53d1\u8fc7\u8f7d\u4fdd\u62a4\uff0c\u7194\u65ad\u673a\u5236\u4f1a\u77ed\u6682\u9694\u79bb\u5bf9\u4e8e\u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u5e76\u5c06\u6d41\u91cf\u8f6c\u79fb\u5230\u5176\u4ed6\u5b9e\u4f8b\u3002 \u7531\u4e8e\u603b\u7684\u5904\u7406\u5b9e\u4f8b\u6570\u51cf\u5c11\uff0c\u7cfb\u7edf\u5b9e\u9645\u80fd\u591f\u5904\u7406\u7684\u8d1f\u8377\u5728\u7194\u65ad\u673a\u5236\u751f\u6548\u7684\u573a\u666f\u4e0b\uff0c\u4f1a\u8fdb\u4e00\u6b65\u964d\u4f4e\u3002 \u8fd9\u610f\u5473\u7740\uff0c\u76f8\u8f83\u4e8e\u6ca1\u6709\u7194\u65ad\u673a\u5236\uff0c\u8fc7\u8f7d\u573a\u666f\u7194\u65ad\u673a\u5236\u53cd\u800c\u66f4\u5bb9\u6613\u89e6\u53d1\u96ea\u5d29\u6548\u5e94\u3002</li> <li>\u5b9e\u9645\u4e1a\u52a1\u573a\u666f\u4e2d\uff0c\u4e00\u4e9b\u63a5\u53e3\u6bd4\u8f83\u8017\u65f6\uff0c\u5176\u4ed6\u63a5\u53e3\u90fd\u5f88\u5feb\u7684\u60c5\u51b5\u975e\u5e38\u5e38\u89c1\u3002 \u5982\u679c\u5bf9\u8017\u65f6\u63a5\u53e3\u5f00\u542f\u9694\u79bb\u4ed3\u8fdb\u884c\u8fc7\u8f7d\u9632\u62a4\uff0c\u4f1a\u589e\u52a0\u8017\u65f6\u63a5\u53e3\u7684\u5931\u8d25\u7387\uff1b\u5982\u679c\u4e0d\u5f00\u542f\u8fc7\u8f7d\u9632\u62a4\uff0c\u8017\u65f6\u63a5\u53e3\u7684\u5e76\u53d1\u589e\u52a0\uff0c\u76f4\u89c2\u7684\u8868\u73b0\u662f\u7528\u6237\u54cd\u5e94\u65f6\u95f4\u7684\u589e\u52a0\u3002\u5728\u4e00\u4e9b\u4e1a\u52a1\u7cfb\u7edf\u770b\u6765\uff0c\u7528\u6237\u4f53\u9a8c\u7684\u4e0b\u964d\u7684\u5f71\u54cd\u8fdc\u5c0f\u4e8e\u6545\u969c\u7387\u589e\u52a0\u7684\u5f71\u54cd\u3002 \u5fae\u670d\u52a1\u6cbb\u7406\u7b56\u7565\u5bf9\u4e8e\u8fd9\u7c7b\u7cfb\u7edf\uff0c\u4e5f\u53ef\u80fd\u5e26\u6765\u9002\u5f97\u5176\u53cd\u7684\u6548\u679c\u3002 </li> </ul> <p>\u5728\u8fc7\u8f7d\u573a\u666f\uff0c\u4e0d\u80fd\u8fdb\u5165\u7194\u65ad\u72b6\u6001\uff0c\u8fd9\u9700\u8981\u989d\u5916\u7684\u4fdd\u62a4\u673a\u5236\u6765\u9632\u6b62\u8fc7\u8f7d\u3002 \u5feb\u901f\u5931\u8d25\u673a\u5236\u662f\u9632\u6b62\u8fc7\u8f7d\u7684\u6700\u5e38\u7528\u624b\u6bb5\uff0c\u867d\u7136\u5b58\u5728\u6027\u80fd\u8981\u6c42\u4e0d\u9ad8\u7684\u4e1a\u52a1\u573a\u666f\uff0c\u5feb\u901f\u5931\u8d25\u4f1a\u5bfc\u81f4\u9519\u8bef\u7387\u63d0\u5347\u8fd9\u79cd\u770b\u4f3c\u77db\u76fe\u7684\u60c5\u51b5\uff0c\u4f46\u662f\u6ca1\u6709\u8ba9\u5feb\u901f\u5931\u8d25\u673a\u5236\u5173\u4e0a\u5927\u95e8\uff0c\u6070\u5f53\u7684\u5feb\u901f\u5931\u8d25\u5e76\u642d\u914d\u4e1a\u52a1\u4e0a\u7684\u91cd\u8bd5\u7684\u5904\u7406\u8fd8\u53ef\u4ee5\u660e\u663e\u6539\u5584\u7528\u6237\u4f53\u9a8c\u3002 \u5feb\u901f\u5931\u8d25\u673a\u5236\u7684\u8981\u6c42\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u5c3d\u65e9\u7684\u62d2\u7edd\u8fc7\u8f7d\u6d41\u91cf\uff0c\u5c3d\u53ef\u80fd\u51cf\u5c11\u8fc7\u8f7d\u6d41\u91cf\u5360\u7528\u7684CPU\u548c\u5176\u4ed6\u8d44\u6e90\u65f6\u95f4\u3002</p>"},{"location":"featured-topics/secrets/fail-fast.html#_1","title":"\u9650\u6d41","text":"<p>\u9650\u6d41\u662f\u6700\u5e38\u7528\u7684\u5feb\u901f\u5931\u8d25\u63aa\u65bd\u3002 \u4f46\u6709\u4e2a\u7ec6\u8282\u7ecf\u5e38\u4f1a\u88ab\u5ffd\u7565\uff1a\u6d41\u91cf\u7ecf\u5e38\u662f\u4e0d\u5747\u8861\u7684\uff0c\u77ac\u65f6\u6d41\u91cf\u8d85\u8fc7\u9608\u503c\uff0c\u4e0d\u4ee3\u8868\u8fd9\u4e9b\u6d41\u91cf\u5c31\u5e94\u8be5\u88ab\u62d2\u7edd\u6389\u3002 \u4e00\u4e2a\u826f\u597d\u7684\u9650\u6d41\u63aa\u65bd\uff0c\u9700\u8981\u5bf9\u6d41\u91cf\u8fdb\u884c\u9002\u5f53\u7684\u68b3\u7406\uff0c\u4ee5\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u9650\u6d41\u3002 \u6bd4\u5982\u4e0b\u56fe\uff0c\u9650\u6d41\u7684\u6838\u5fc3\u4f5c\u7528\u662f\u5c06\u6bcf\u4e2a\u65f6\u95f4\u7247\u5185\uff0c\u4e0d\u5747\u5300\u7684\u6d41\u91cf\uff0c\u53d8\u6210\u5747\u5300\u7684\u6d41\u91cf\u3002 </p> <p></p> <p>\u9650\u6d41\u53d1\u751f\u7684\u65f6\u673a\u8d8a\u65e9\u8d8a\u597d\u3002\u901a\u5e38\u4f1a\u5728 edge service \u5e94\u7528\u9650\u6d41\u7b56\u7565\u3002 </p> <pre><code>## \u670d\u52a1\u6cbb\u7406\u914d\u7f6e\nservicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath: \n            prefix: \"/\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf1\u6beb\u79d2\u5141\u8bb8\u901a\u8fc710\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    allOperation: |\n      rate: 10\n      limitRefreshPeriod: 1\n      timeoutDuration: 1000\n</code></pre> <p>\u4e0a\u8ff0\u9650\u6d41\u7b56\u7565\u9650\u5236\u4e86\u5355\u4f4d\u65f6\u95f4\u5185\u8fdb\u5165 edge service \u7684\u8bf7\u6c42\u6570\u91cf\uff0c\u5e76\u80fd\u5bf9\u8bf7\u6c42\u8fdb\u884c\u68b3\u7406\u3002\u9650\u5236\u6570\u91cf\u53ef\u80fd\u5728\u5e94\u7528\u7a0b\u5e8f\u751f\u547d\u5468\u671f\u8fc7\u7a0b\u4e2d\u96be\u4e8e\u89c4\u5212\uff0c\u9700\u8981\u901a\u8fc7\u7cfb\u7edf\u6027\u7684\u6027\u80fd\u6d4b\u8bd5\u6765\u8bc4\u4f30\u9650\u5236\u5927\u5c0f\u3002 \u4e00\u4e2a\u6bd4\u8f83\u597d\u7684\u7b56\u7565\u662f\u901a\u8fc7\u5e76\u53d1\u6570\u6765\u9650\u5236\u6d41\u91cf\u3002\u5728 edge service\uff0c \u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u67d0\u4e2a\u4e0b\u6e38\u7684\u5b9e\u4f8b\u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u3002 </p> <pre><code>## \u670d\u52a1\u6cbb\u7406\u914d\u7f6e\nservicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath: \n            prefix: \"/\"\n  instanceBulkhead:\n    ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a20\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    allOperation: |\n      maxConcurrentCalls: 100\n      maxWaitDuration: 1000\n</code></pre> <p>\u76f8\u6bd4\u8f83\u4e8e\u5355\u4f4d\u65f6\u95f4\u5185\u8bf7\u6c42\u6570\uff0c \u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u80fd\u591f\u5f88\u597d\u7684\u53cd\u9988\u5f53\u524d\u7684\u7cfb\u7edf\u7e41\u5fd9\u7a0b\u5ea6\uff0c\u56e0\u4e3a\u4e00\u4e2a\u8bf7\u6c42\u7684\u65f6\u5ef6\u589e\u52a0\uff0c\u4f1a\u5bfc\u81f4\u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u589e\u52a0\u3002\u5bf9\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c \u53ef\u4ee5\u8bbe\u7f6e\u7a0d\u5fae\u5c0f\u4e00\u70b9\u7684\u503c\uff1b\u5bf9\u4e8eIO\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u7a0d\u5fae\u5927\u4e00\u70b9\u7684\u503c\u3002 </p>"},{"location":"featured-topics/secrets/fail-fast.html#_2","title":"\u7ebf\u7a0b\u6c60\u961f\u5217\u548c\u8fde\u63a5\u6c60\u961f\u5217","text":"<p>\u5728\u7ebf\u7a0b\u6c60\u5165\u961f\u548c\u51fa\u961f\u7684\u65f6\u5019\uff0c\u8fdb\u884c\u5feb\u901f\u5931\u8d25\uff0c\u4e5f\u662f\u975e\u5e38\u5e38\u7528\u800c\u4e14\u6bd4\u8f83\u6709\u6548\u7684\u624b\u6bb5\u3002 </p> <pre><code>servicecomb:\n  executor:\n    default:\n      maxQueueSize-per-group: 1000\n</code></pre> <p>\u4e0a\u8ff0\u914d\u7f6e\u9650\u5236\u4e86\u7ebf\u7a0b\u6c60\u7684\u961f\u5217\u5927\u5c0f\uff0c \u5c11\u91cf\u7684\u8fc7\u8f7d\u8bf7\u6c42\u4f1a\u88ab\u6392\u961f\uff0c\u961f\u5217\u8d85\u9650\u540e\u5c31\u4f1a\u5feb\u901f\u62d2\u7edd\u5e76\u5931\u8d25\u3002 </p> <pre><code>servicecomb:\n  rest:\n    server:\n      requestWaitInPoolTimeout: 1000\n</code></pre> <p>Java Chassis\u5728\u51fa\u961f\u7684\u65f6\u5019\uff0c\u4e5f\u4f1a\u68c0\u6d4b\u4efb\u52a1\u7b49\u5f85\u7684\u65f6\u95f4\u3002 \u5982\u679c\u7b49\u5f85\u65f6\u95f4\u8fc7\u957f\uff0c \u4e5f\u4f1a\u7acb\u5373\u62d2\u7edd\u8be5\u4efb\u52a1\uff0c\u907f\u514d\u989d\u5916\u7684\u5904\u7406\u8d44\u6e90\u6d6a\u8d39\u3002 </p> <p>\u7ebf\u7a0b\u6c60\u961f\u5217\u4e0d\u9002\u7528\u4e8eedge service\u6216\u8005\u91c7\u7528reactive\u5b9a\u4e49\u63a5\u53e3\u7684\u573a\u666f\uff0c \u5728reactive\u6a21\u5f0f\uff0c\u901a\u5e38\u7684\u7ade\u4e89\u8d44\u6e90\u662f\u8fde\u63a5\u6c60\uff0c\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u914d\u7f6e\u9879\u63a7\u5236\u8fde\u63a5\u6c60\u7b49\u5f85\u961f\u5217\uff1a</p> <pre><code>servicecomb:\n  rest:\n    client:\n      maxWaitQueueSize: 100\n</code></pre>"},{"location":"featured-topics/secrets/fail-fast.html#_3","title":"\u5168\u5c40\u7684\u8d85\u65f6\u68c0\u6d4b","text":"<p>\u4e00\u822c\u7684RPC\u7cfb\u7edf\u4f1a\u9488\u5bf9\u8bf7\u6c42\u53d1\u9001\u5230\u54cd\u5e94\u63a5\u6536\u8bbe\u7f6e\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\u3002 \u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\u901a\u5e38\u7684\u8c03\u7528\u5173\u7cfb\u6bd4\u8f83\u590d\u6742\u3002 \u6bd4\u5982\u4e00\u4e2a\u8bf7\u6c42\u94fe\u8def\u53ef\u80fd\u6d89\u53ca a -&gt; b -&gt; c -&gt; d\u3002  \u5982\u679c\u6211\u4eec\u7684\u8bbe\u8ba1\u76ee\u6807\u662f\u8bf7\u6c42\u5904\u7406\u65f6\u95f4\u5c0f\u4e8e30s\uff0c \u5982\u679c\u5728 b \u63a5\u6536\u5230 a \u7684\u8bf7\u6c42\u7684\u65f6\u5019\uff0c \u53d1\u73b0\u5df2\u7ecf\u5904\u7406\u4e86 30s\uff0c b\u5b8c\u5168\u53ef\u4ee5\u4e0d\u9700\u8981\u8bf7\u6c42c\u6765\u5904\u7406\u8fd9\u4e2a\u8bf7\u6c42\uff0c \u5feb\u901f\u5931\u8d25\u3002 Java Chassis \u80fd\u591f\u5728\u4efb\u52a1\u5904\u7406\u7684\u5173\u952e\u9636\u6bb5\uff0c\u8fdb\u884c\u5168\u5c40\u7684\u5df2\u7ecf\u5904\u7406\u7684\u65f6\u95f4\u68c0\u67e5\u3002 </p> <p>\u5168\u5c40\u7684\u8d85\u65f6\u68c0\u6d4b\u53ef\u4ee5\u5904\u7406\u5bf9\u5feb\u901f\u5931\u8d25\u6709\u975e\u5e38\u7279\u6b8a\u8981\u6c42\u7684\u4e1a\u52a1\u573a\u666f\uff0c\u8003\u8651\u5230\u591a\u6570\u60c5\u51b5\u4e0b\u90fd\u4f1a\u5f88\u5c11\u4f7f\u7528\uff0c\u8fd9\u91cc\u4e0d\u5728\u8be6\u7ec6\u63cf\u8ff0\u5176\u6280\u672f\u7ec6\u8282\uff0c \u611f\u5174\u8da3\u7684\u5f00\u53d1\u8005\u53ef\u4ee5\u53c2\u8003Java Chassis\u7684\u5f00\u53d1\u6307\u5bfc\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u7cfb\u7edf\u6bdb\u523a\uff08\u6307\u7cfb\u7edf\u4e2d\u6781\u4f4e\u6982\u7387\u7684\u8bf7\u6c42\u7f13\u6162\u6216\u8005\u5904\u7406\u8d85\u65f6\uff09\u662f\u56f0\u6270\u89c9\u5927\u591a\u6570\u5e94\u7528\u7684\u8001\u5927\u96be\u95ee\u9898\u3002 \u56e0\u4e3a\u5bfc\u81f4\u7cfb\u7edf\u6bdb\u523a\u7684\u56e0\u7d20\u975e\u5e38\u591a\uff0c\u5305\u62ec\u8bf7\u6c42\u7684\u5206\u5e03\u4e0d\u5747\u8861\u3001CPU\u8c03\u5ea6\u7684\u4e0d\u53ef\u9884\u671f\u3001\u5783\u573e\u56de\u6536\u7b49\u7b49\u3002 \u7cfb\u7edf\u6bdb\u523a\u7ed9\u5ba2\u6237\u7684\u7528\u6237\u4f53\u9a8c\u8bc4\u4ef7\u5e26\u6765\u5f88\u591a\u8d1f\u9762\u7684\u5f71\u54cd\uff0c\u6574\u4f53\u8bf7\u6c42\u6210\u529f\u7387\u504f\u4f4e\uff0c\u5e73\u5747\u54cd\u5e94\u65f6\u5ef6\u504f\u9ad8\u3002 \u4e3a\u4e86\u6539\u5584\u6bdb\u523a\uff0c\u65e9\u671f\u7684\u4e3b\u8981\u673a\u5236\u662f\u8bbe\u7f6e\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0c\u5305\u62ec\u8bbe\u7f6e\u67d0\u4e2a\u5177\u4f53\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0c\u6216\u8005\u6839\u636e\u8c03\u7528\u7684\u987a\u5e8f\uff0c\u914d\u7f6e\u9010\u7ea7\u9012\u51cf\u7684\u8d85\u65f6\u65f6\u95f4\u3002 \u8d85\u65f6\u65f6\u95f4\u7684\u914d\u7f6e\u786e\u5b9e\u8d77\u5230\u4e86\u5feb\u901f\u5931\u8d25\u7684\u76ee\u7684\uff0c\u7136\u800c\u5728HTTP\u573a\u666f\u4e0b\uff0c\u8d85\u65f6\u4f1a\u5bfc\u81f4\u5173\u95ed\u8fde\u63a5\u5e76\u91cd\u65b0\u5efa\u8fde\uff0c\u5728\u5927\u5e76\u53d1\u573a\u666f\uff0c\u4f1a\u5f15\u5165\u66f4\u957f\u65f6\u95f4\u7684\u6bdb\u523a\u548c\u8bf7\u6c42\u8d85\u65f6\u3002 \u5f15\u5165\u6d41\u91cf\u68b3\u7406\u548c\u9694\u79bb\u4ed3\u673a\u5236\u540e\uff0c\u7cfb\u7edf\u6bdb\u523a\u95ee\u9898\u548c\u8d85\u65f6\u5bfc\u81f4\u7684\u8fde\u63a5\u91cd\u8fde\u95ee\u9898\u5f97\u5230\u4e86\u6781\u5927\u7684\u6539\u5584\u3002 </p>"},{"location":"featured-topics/secrets/interoperability.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u4e0eSpring Cloud\u7684\u4e92\u64cd\u4f5c","text":"<p>Java Chassis 3\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u8bbe\u8ba1\u539f\u5219\uff1a\u5229\u7528\u67b6\u6784\u7684\u97e7\u6027\u8bbe\u8ba1\u6765\u89e3\u51b3\u517c\u5bb9\u6027\u95ee\u9898\u3002 </p> <p></p> <p>\u6bd4\u5982\u901a\u8fc7\u5f15\u5165\u5fae\u670d\u52a1\u7f51\u5173\uff0c\u6765\u89e3\u51b3\u4e0d\u540c\u8bed\u8a00\u3001\u4e0d\u540c\u6846\u67b6\u3001\u9057\u7559\u7cfb\u7edf\u4e4b\u95f4\u7684\u4e92\u64cd\u4f5c\u95ee\u9898\u3002 \u672c\u6587\u5728\u8fd9\u4e2a\u67b6\u6784\u539f\u5219\u57fa\u7840\u4e0a\uff0c\u8ba8\u8bba\u4e00\u4e2a\u66f4\u52a0\u7ec6\u7c92\u5ea6\u7684\u4e92\u64cd\u4f5c\u95ee\u9898\uff0c\u5e76\u501f\u6b64\u89e3\u5bc6Java Chassis3\u5728\u8fd0\u884c\u65f6\u8bbe\u8ba1\u4f9d\u8d56\u4e0a\u7684\u6280\u672f\u7ec6\u8282\u3002</p> <p>\u9996\u5148\uff0c\u6211\u4eec\u63cf\u8ff0\u4e00\u4e2a\u4e92\u64cd\u4f5c\u7684\u573a\u666f\u548c\u5047\u8bbe\u3002 </p> <p></p> <ul> <li>Spring Cloud\u548cJava Chassis\u5e94\u7528\u540c\u65f6\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\u3002\u5f15\u5165\u4e86Spring Cloud Gateway\u4f5c\u4e3a\u7f51\u5173\uff0c\u7f51\u5173\u4e5f\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\u3002 </li> <li>Spring Cloud\u5fae\u670d\u52a1\u548cJava Chassis\u5fae\u670d\u52a1\u76f8\u4e92\u8c03\u7528\u3002\u5b83\u4eec\u5f7c\u6b64\u4f5c\u4e3a\u6d88\u8d39\u8005\u7684\u65f6\u5019\uff0c\u4e0d\u9700\u8981\u611f\u77e5\u5bf9\u65b9\u662f\u4e0d\u540c\u7684\u6846\u67b6\uff0c\u505a\u5230\u900f\u660e\u8c03\u7528\u3002 </li> </ul> <p>\u4ece\u6280\u672f\u539f\u7406\u4e0a\u68b3\u7406\u4e0b\u4e0a\u8ff0\u4e92\u64cd\u4f5c\u9700\u8981\u6ee1\u8db3\u7684\u6761\u4ef6\uff1a</p> <ul> <li>Spring Cloud\u548cJava Chassis\u9700\u8981\u6709\u76f8\u4e92\u8ba4\u8bc6\u7684\u6ce8\u518c\u4fe1\u606f\u3002\u6838\u5fc3\u5305\u62ec\uff1a\u5e94\u7528\u540d\u79f0\u3001\u670d\u52a1\u540d\u79f0\u3001\u5730\u5740\u4fe1\u606f\u548c\u683c\u5f0f\u7b49\u3002 \u9700\u8981\u7684\u5171\u540c\u6ce8\u518c\u4e2d\u5fc3\u8d8a\u5c11\uff0c\u8d8a\u5bb9\u6613\u5bf9\u6ce8\u518c\u4e2d\u5fc3\u548c\u5ba2\u6237\u7aef\u8fdb\u884c\u9009\u578b\u3002 \u5728\u672c\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9009\u62e9 <code>Service Center</code> \u6216\u8005 <code>Nacos</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u5e76\u9009\u62e9Spring Cloud Huawei\u5b9e\u73b0Spring Cloud\u6ce8\u518c\u3002 </li> <li>Spring Cloud\u8bbf\u95eeJava Chassis\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u5730\u5740\u4fe1\u606f\uff0c\u4f9d\u8d56\u8f83\u5c11\u3002 Java Chassis\u8bbf\u95eeSpring Cloud\uff0c\u9700\u8981\u77e5\u9053Spring Cloud\u5e94\u7528\u63d0\u4f9b\u7684\u5951\u7ea6\u4fe1\u606f\u3002 </li> </ul> <p>Java Chassis\u533a\u522b\u4e8eSpring Cloud\u7684REST\u8c03\u7528\u7684\u90e8\u5206\uff0c\u5c31\u662f\u5951\u7ea6\u4f9d\u8d56\u3002 Spring Cloud\u901a\u8fc7FeignClient\u6765\u58f0\u660e\u5ba2\u6237\u7aef\u5951\u7ea6\uff0c\u5ba2\u6237\u7aef\u90fd\u9700\u8981\u5728FeignClient\u4e2d\u91cd\u590d\u4e66\u5199REST\u6807\u7b7e\uff1bJava Chassis\u6709\u4e24\u79cd\u6a21\u5f0f\u53d1\u73b0\u5951\u7ea6\uff1a\u4ece\u6ce8\u518c\u4e2d\u5fc3\u53d1\u73b0\u548c\u4eceProvider\u5b9e\u4f8b\u53d1\u73b0\u3002 Java Chassis3\u9ed8\u8ba4\u91c7\u7528\u4eceProvider\u5b9e\u4f8b\u53d1\u73b0\uff0c Java Chassis2\u91c7\u7528\u4ece\u6ce8\u518c\u4e2d\u5fc3\u53d1\u73b0\u3002 \u4eceProvider\u53d1\u73b0\u7684\u597d\u5904\u662f\u53ef\u4ee5\u964d\u4f4e\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u5143\u6570\u636e\u7ba1\u7406\u80fd\u529b\u7684\u8981\u6c42\uff0c\u672c\u4f8b\u65e2\u53ef\u4ee5\u91c7\u7528 <code>Service Center</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9 <code>Nacos</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u3002 </p> <p>\u4eceProvider\u53d1\u73b0\uff0c\u8981\u6c42Provider\u5b9e\u73b0\u5982\u4e0b\u63a5\u53e3\uff1a</p> <pre><code>/**\n * Java Chassis internal management apis.\n */\n@Path(\"/scb/management\")\npublic interface ManagementEndpoint {\n  String NAME = \"scb-management\";\n\n  /**\n   * Health of this instance. If the instanceId match this instance, and this service is ready\n   * to service return true. Otherwise, return false.\n   *\n   * This api is for internal instance status usage. Load balancer will call this api to check if\n   * the target instance is alive.\n   */\n  @GET\n  @Path(\"/health\")\n  boolean health(@QueryParam(\"instanceId\") String instanceId, @QueryParam(\"registryName\") String registryName);\n\n  /**\n   * Schemas of this instance.\n   *\n   * This api is for internal schema loading usage.\n   */\n  @POST\n  @Path(\"/schema/contents\")\n  Map&lt;String, String&gt; schemaContents();\n}\n</code></pre> <p>\u5b83\u5305\u542b\u4e00\u4e2a\u5065\u5eb7\u68c0\u67e5\u63a5\u53e3\u548c\u4e00\u4e2a\u67e5\u8be2\u5951\u7ea6\u7684\u63a5\u53e3\u3002 \u5f53Spring Cloud\u5e94\u7528\u5b9e\u73b0\u4e0a\u8ff0\u63a5\u53e3\u4ee5\u540e\uff0c\u5b83\u5c31\u5177\u5907\u4e86Java Chassis\u5fae\u670d\u52a1\u9700\u8981\u7684\u57fa\u7840\u7279\u5f81\uff0c\u8fd9\u6837Java Chassis\u5c31\u53ef\u4ee5\u50cf\u8bbf\u95ee\u672c\u6846\u67b6\u7684\u5fae\u670d\u52a1\u4e00\u6837\u8bbf\u95eeSpring Cloud\u6846\u67b6\u5f00\u53d1\u7684\u5fae\u670d\u52a1\u5e94\u7528\u3002 \u4e3a\u4e86\u7b80\u5316\uff0c\u5728Spring Cloud\u7b80\u5355\u5b9e\u73b0\u4e86\u8be5\u63a5\u53e3\uff0c\u8be5\u5b9e\u73b0\u63a5\u53e3\u4ece <code>export</code> \u76ee\u5f55\u52a0\u8f7d\u5951\u7ea6\u4fe1\u606f\uff0c\u53ea\u9700\u8981\u5c06Spring Cloud\u9700\u8981\u5bf9\u5916\u66b4\u9732\u7684 REST \u63a5\u53e3\u7684\u7b26\u5408 Open API 3.0\u89c4\u8303\u7684\u5951\u7ea6\u6587\u4ef6\u653e\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u9762 \u3002</p> <pre><code>@RestController\n@RequestMapping((\"/scb/management\"))\npublic class JavaChassisManagementEndpoint {\n  private static final Logger LOGGER = LoggerFactory.getLogger(JavaChassisManagementEndpoint.class);\n\n  @Autowired\n  private Registration registration;\n\n  @GetMapping(path = \"/health\")\n  public boolean health(@RequestParam(\"instanceId\") String instanceId,\n      @RequestParam(\"registryName\") String registryName) {\n    return \"sc-registry\".equals(registryName) &amp;&amp; registration.getInstanceId().equals(instanceId);\n  }\n\n  @PostMapping(path = \"/schema/contents\")\n  public Map&lt;String, String&gt; schemaContents() {\n    try {\n      List&lt;URI&gt; resourceUris = ResourceUtil.findResourcesBySuffix(\"export\", \".yaml\");\n      Map&lt;String, String&gt; result = new HashMap&lt;&gt;(resourceUris.size());\n      for (URI uri : resourceUris) {\n        String path = uri.toURL().getPath();\n        String[] segments = path.split(\"/\");\n        if (segments.length &lt; 2 || !\"export\".equals(segments[segments.length - 2])) {\n          continue;\n        }\n        result.put(segments[segments.length - 1].substring(0, segments[segments.length - 1].indexOf(\".yaml\")),\n            IOUtils.toString(uri, StandardCharsets.UTF_8));\n      }\n      return result;\n    } catch (IOException | URISyntaxException e) {\n      LOGGER.error(\"Load schema ids failed from microservices. {}.\", e.getMessage());\n      return Collections.emptyMap();\n    }\n  }\n}\n</code></pre> <p>Java Chassis\u4e0eSpring Cloud\u4e92\u64cd\u4f5c\u7684\u4f8b\u5b50\u653e\u5230\u4e86ServiceComb Samples \uff0c \u8fd9\u4e2a\u4f8b\u5b50\u4e5f\u63d0\u4f9b\u4e86\u4f7f\u7528 Nacos \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u7684\u5b9e\u73b0\uff0c \u53ea\u9700\u8981\u5c06 Profile \u8bbe\u7f6e\u4e3a Nacos \u5373\u53ef\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u5728\u67b6\u6784\u9009\u578b\u53d8\u5316\u7684\u65f6\u5019\uff0c\u89e3\u51b3\u529f\u80fd\u8fc1\u79fb\u548c\u517c\u5bb9\u6027\u95ee\u9898\u662f\u6700\u5927\u7684\u6311\u6218\u3002\u4e00\u4e9b\u5ba2\u6237\u5c06Spring Cloud\u5e94\u7528\u6539\u9020\u4e3aJava Chassis\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0\u4e00\u4e9b\u529f\u80fd\u4e0d\u652f\u6301\uff0c\u6bd4\u5982SseEmitter\u3001WebSocket\u7b49\u3002 \u5982\u679c\u9009\u62e9\u652f\u6301\u8fd9\u4e9b\u80fd\u529b\uff0cJava Chassis\u9700\u8981\u5b9e\u73b0\u5f88\u591aServlet\u80fd\u529b\uff0c\u8fd9\u4e9b\u80fd\u529b\u89c4\u5212\u4f1a\u548c\u5fae\u670d\u52a1\u6280\u672f\u67b6\u6784\u5b58\u5728\u51b2\u7a81\u3002 \u5bf9\u4e8e\u8fd9\u4e9b\u573a\u666f\uff0c\u6211\u4eec\u9009\u62e9\u901a\u8fc7\u67b6\u6784\u97e7\u6027\u6765\u4fdd\u7559\u8fd9\u4e9b\u529f\u80fd\uff0c\u6bd4\u5982\u5c06\u63d0\u4f9bSseEmitter\u3001WebSocket\u529f\u80fd\u7684\u72ec\u7acb\u51fa\u5fae\u670d\u52a1\uff0c\u91c7\u7528Spring Boot\u5f00\u53d1\uff0c\u8fd9\u4e9b\u5e94\u7528\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528Java Chassis\u5fae\u670d\u52a1\u7684REST\u63a5\u53e3\u6765\u5b9e\u73b0\u5176\u7279\u6b8a\u529f\u80fd\u3002\u901a\u8fc7\u8fd9\u79cd\u67b6\u6784\u97e7\u6027\u7684\u7406\u5ff5\uff0c\u964d\u4f4e\u4e86\u6280\u672f\u6301\u7eed\u6f14\u8fdb\u7684\u5305\u88b1\uff0c\u4e3a\u654f\u6377\u8fed\u4ee3\uff0c\u6301\u7eed\u521b\u65b0\u5960\u5b9a\u4e86\u65b9\u5411\uff0c\u51cf\u5c11\u4e86\u517c\u5bb9\u6027\u95ee\u9898\u7684\u4e89\u8bba\u3002 </p>"},{"location":"featured-topics/secrets/load-balancer.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668","text":"<p>\u8d1f\u8f7d\u5747\u8861\u7528\u4e8e\u7ba1\u7406\u5fae\u670d\u52a1\u5b9e\u4f8b\u4e4b\u95f4\u7684\u8bbf\u95ee\u7b56\u7565\u3002\u5b83\u8d1f\u8d23\u5728\u6bcf\u6b21\u8bf7\u6c42\u4e2d\u9ad8\u6548\u9009\u62e9\u76ee\u6807\u5b9e\u4f8b\uff0c\u5e76\u4fdd\u6301\u8bf7\u6c42\u5728\u591a\u4e2a\u76ee\u6807\u5b9e\u4f8b\u4e2d\u5747\u8861\u3002\u76ee\u6807\u5b9e\u4f8b\u9009\u62e9\u8fc7\u7a0b\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u793a\u4f8b\u56fe\u7b80\u5355\u5c55\u793a\uff1a</p> <p></p> <p>AZ\u4eb2\u548c\u662f\u5e38\u89c1\u7684\u9009\u62e9\u5668\u4e4b\u4e00\u3002\u5b83\u6839\u636e\u672c\u5b9e\u4f8b\u7684AZ\u4fe1\u606f\u548c\u76ee\u6807\u5b9e\u4f8b\u7684AZ\u4fe1\u606f\uff0c\u786e\u5b9a\u5408\u9002\u7684\u76ee\u6807\u5b9e\u4f8b\u5b50\u96c6\uff0c\u5b9e\u4f8b\u5b50\u96c6\u4e0e\u672c\u5b9e\u4f8b\u5177\u6709\u76f8\u540c\u7684AZ\u4fe1\u606f\u3002</p> <p>\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668\u662f\u4e00\u4e2a\u5178\u578b\u7684\u804c\u8d23\u94fe\u6a21\u5f0f\u3002</p> <ul> <li>Ribbon \u7684\u804c\u8d23\u94fe</li> </ul> <pre><code>public interface ServerListFilter&lt;T extends Server&gt; {\n  List&lt;T&gt; getFilteredListOfServers(List&lt;T&gt; servers);\n}\n</code></pre> <ul> <li>Spring Cloud Commons \u7684\u804c\u8d23\u94fe</li> </ul> <pre><code>public abstract class DelegatingServiceInstanceListSupplier implements ServiceInstanceListSupplier, InitializingBean, DisposableBean {\n  protected final ServiceInstanceListSupplier delegate;\n\n  public DelegatingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate) {\n    this.delegate = delegate;\n  }\n\n  public ServiceInstanceListSupplier getDelegate() {\n    return this.delegate;\n  }\n}\n</code></pre> <ul> <li>Java Chassis \u7684\u804c\u8d23\u94fe</li> </ul> <pre><code>public interface DiscoveryFilter extends Ordered {\n  DiscoveryTreeNode discovery(DiscoveryContext context, DiscoveryTreeNode parent);\n}\n</code></pre> <p>Java Chassis \u4f7f\u7528\u4e86\u6811\u578b\u7ed3\u6784\u7684\u804c\u8d23\u94fe\uff0c\u5b83\u7684\u5de5\u4f5c\u8fc7\u7a0b\u5982\u4e0b\uff1a</p> <ul> <li>\u5c06\u5b9e\u4f8b\u9884\u5206\u7ec4\u3002</li> <li>\u901a\u8fc7\u6811\u578b\u7ed3\u6784\u7d22\u5f15\uff0c\u5feb\u901f\u627e\u5230\u76ee\u6807\u5b9e\u4f8b\u96c6\u5408\u3002</li> <li>\u5f53\u67d0\u4e2a\u6811\u8282\u70b9\u4e3a\u7a7a\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u8fd4\u56de\u4e0a\u5c42\u9009\u62e9\u5668\uff0c\u91cd\u65b0\u67e5\u627e\u3002 </li> </ul> <p>\u80fd\u591f\u5feb\u901f\u68c0\u7d22\u5230\u5b9e\u4f8b\u7684\u573a\u666f\uff1a</p> <p></p> <p>\u51fa\u73b0\u5b9e\u4f8b\u4e3a\u7a7a\u7684\u7684\u573a\u666f\uff1a</p> <p></p> <p>\u76f8\u5bf9\u4e8e\u7ebf\u6027\u7684\u804c\u8d23\u94fe\u6a21\u5f0f\uff0c\u6811\u578b\u804c\u8d23\u94fe\u6a21\u5f0f\u5b58\u5728\u4e24\u65b9\u9762\u660e\u663e\u7684\u4f18\u52bf\uff1a</p> <ul> <li>\u8ba1\u7b97\u590d\u6742\u5ea6\u4ece O(N) \u964d\u4f4e\u4e3a O(1)\u3002 \u5f53\u5b9e\u4f8b\u89c4\u6a21\u5f88\u5927\uff0c\u6bd4\u5982\u8d85\u8fc71000\u7684\u65f6\u5019\uff0c\u8be5\u7b97\u6cd5\u80fd\u591f\u6781\u5927\u7684\u964d\u4f4eCPU\u4f7f\u7528\u7387\uff0c\u51cf\u5c11\u5783\u573e\u56de\u6536\u7684\u6570\u91cf\u3002 </li> <li>\u80fd\u591f\u89e3\u51b3\u4e0a\u5c42\u9009\u62e9\u5668\u7684\u7ed3\u679c\u5728\u4e0b\u5c42\u9009\u62e9\u5668\u7684\u7ed3\u679c\u4e3a\u7a7a\u7684\u95ee\u9898\u3002\u6bd4\u5982\u5728AZ\u4eb2\u548c\u573a\u666f\uff0c\u5982\u679c\u672cAZ\u7684\u5b9e\u4f8b\u4e0d\u6ee1\u8db3\u540e\u7eed\u9009\u62e9\u5668\u7684\u6761\u4ef6\uff0c\u90a3\u4e48\u4f7f\u7528\u975e\u672cAZ\u7684\u5b9e\u4f8b\uff0c\u80fd\u591f\u786e\u4fdd\u672c\u6b21\u8bbf\u95ee\u7684\u6b63\u786e\u6027\uff0c\u964d\u4f4e\u9519\u8bef\u7387\uff0c\u4e5f\u80fd\u591f\u66f4\u597d\u7684\u6ee1\u8db3\u8bf7\u6c42\u5747\u8861\u7684\u8981\u6c42\u3002</li> </ul> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u5728\u67d0\u4e2a\u5ba2\u6237\u7684\u5b9e\u9645\u573a\u666f\u4e2d\uff0c\u5982\u679c\u5b9e\u4f8b\u6570\u8d85\u8fc71000\uff0c\u8d1f\u8f7d\u5747\u8861\u7684CPU\u6d88\u8017\u5360\u5230\u6574\u4e2a\u8bf7\u6c42\u5904\u7406\u65f6\u95f4\u768420%\u4ee5\u4e0a\uff0c\u968f\u7740\u5e94\u7528\u89c4\u6a21\u7684\u53d8\u5927\uff0c\u8d1f\u8f7d\u5747\u8861\u5904\u7406\u7b97\u6cd5\u7684\u6027\u80fd\u4f18\u5316\u53d8\u5f97\u66f4\u52a0\u91cd\u8981\u4e86\u3002 </p>"},{"location":"featured-topics/secrets/registries.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6613\u6269\u5c55\u7684\u591a\u79cd\u6ce8\u518c\u4e2d\u5fc3\u652f\u6301","text":"<p>Java Chassis \u7684\u65e9\u671f\u7248\u672c\u4f9d\u8d56\u4e8e Service Center\uff0c\u63d0\u4f9b\u4e86\u5f88\u591a\u5dee\u5f02\u5316\u7684\u7ade\u4e89\u529b\uff1a</p> <ul> <li>\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u3002 \u901a\u8fc7\u6ce8\u518c\u4e2d\u5fc3\u7ba1\u7406\u5fae\u670d\u52a1\u7684\u6bcf\u4e2a\u7248\u672c\u7684\u5143\u6570\u636e\uff0c\u7279\u522b\u662f\u5951\u7ea6\u6570\u636e\u3002 \u7ed3\u5408\u5951\u7ea6\u6570\u636e\uff0c\u80fd\u591f\u5b9e\u73b0\u7248\u672c\u7ea7\u522b\u7684\u8def\u7531\u80fd\u529b\u3002 \u6bd4\u5982\u4e00\u4e2a\u5fae\u670d\u52a1\u5b58\u5728 v1 \u548c v2 \u4e24\u4e2a\u7248\u672c\uff0c \u5176\u4e2d v1 \u7248\u672c\u5b58\u5728\u63a5\u53e3 op1, op2\uff0c v2 \u7248\u672c\u5b58\u5728\u63a5\u53e3 op1, op2, op3\uff0c \u5728\u7070\u5ea6\u573a\u666f\uff0c Java Chassis\u80fd\u591f\u81ea\u52a8\u5c06 op3 \u7684\u8bbf\u95ee\u8f6c\u53d1\u5230 v2 \u7248\u672c\uff0c\u5c06 op1, op2 \u7684\u8bbf\u95ee\u5728 v1, v2\u7248\u672c\u505a\u8d1f\u8f7d\u5747\u8861\u3002 </li> <li>\u57fa\u4e8e version-rule \u7684\u5b9e\u4f8b\u9009\u62e9\u3002 \u5ba2\u6237\u7aef\u80fd\u591f\u914d\u7f6e version-rule\uff0c \u6bd4\u5982 last, 2.0+\u7b49\u3002 \u8fd9\u6837\u5ba2\u6237\u7aef\u80fd\u591f\u6839\u636e\u5b9e\u9645\u60c5\u51b5\uff0c\u7b5b\u9009\u5b9e\u4f8b\u7684\u7248\u672c\u3002 </li> </ul> <p>Java Chassis\u8fc7\u5ea6\u4f9d\u8d56 Service Center\uff0c \u4e3a\u4ea7\u54c1\u7684\u53d1\u5c55\u5e26\u6765\u4e86\u4e00\u4e9b\u74f6\u9888\u3002 Java Chassis\u7684\u751f\u6001\u63a8\u5e7f\u4f9d\u8d56\u4e8e Service Center\u7684\u751f\u6001\u63a8\u5e7f\uff0c \u4e0d\u5229\u4e8eJava Chassis\u88ab\u66f4\u591a\u7528\u6237\u4f7f\u7528\u3002 \u968f\u7740\u4e91\u7684\u53d1\u5c55\uff0c \u8d8a\u6765\u8d8a\u591a\u7684\u5ba2\u6237\u4e5f\u671f\u671b\u4e00\u5957\u4ee3\u7801\uff0c\u80fd\u591f\u5728\u4e0d\u540c\u7684\u4e91\u73af\u5883\u8fd0\u884c\uff0c\u6709\u4e9b\u4e91\u4ea7\u5546\u672a\u63d0\u4f9bService Center\u8fd0\u884c\u73af\u5883\uff0c\u90a3\u4e48\u7528\u6237\u9009\u62e9Java Chassis \u5c31\u4f1a\u5b58\u5728\u987e\u8651\u3002 </p> <p>\u57fa\u4e8e\u4e0a\u8ff0\u539f\u56e0\uff0c Java Chassis\u7b80\u5316\u4e86\u6ce8\u518c\u53d1\u73b0\u7684\u4f9d\u8d56\uff0c\u5b9a\u4e49\u4e86\u7b80\u5355\u5bb9\u6613\u5b9e\u73b0\u7684\u63a5\u53e3\uff0c\u5e76\u57fa\u4e8e <code>Nacos</code> \u63d0\u4f9b\u4e86\u5b9e\u73b0\uff0c\u672a\u6765\u8fd8\u4f1a\u63d0\u4f9b <code>zookeeper</code> \u7b49\u5b9e\u73b0\u3002 Java Chassis \u91c7\u7528\u4e86\u4e00\u7cfb\u5217\u65b0\u7684\u8bbe\u8ba1\u6a21\u5f0f\uff0c \u4fdd\u8bc1\u4e86\u5728\u964d\u4f4e\u6ce8\u518c\u4e2d\u5fc3\u529f\u80fd\u4f9d\u8d56\u7684\u524d\u63d0\u4e0b\uff0c\u4e0d\u964d\u4f4e\u5e94\u7528\u81ea\u8eab\u7684\u53ef\u9760\u6027\u3002 </p>"},{"location":"featured-topics/secrets/registries.html#_1","title":"\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u7684\u66ff\u4ee3\u65b9\u6848","text":"<p>\u4f9d\u8d56\u4e8e Service Center\uff0c Java Chassis\u63d0\u4f9b\u4e86\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u3002 Java Chassis 3 \u9996\u5148\u505a\u7684\u4e00\u4e2a\u53d8\u5316\u662f\u5220\u9664\u4e86\u5bf9\u4e8e\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u7684\u652f\u6301\u3002 \u8fd9\u6837\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u7684\u4f9d\u8d56\u590d\u6742\u5ea6\u81f3\u5c11\u53ef\u4ee5\u964d\u4f4e 70%\u3002 \u7136\u800c\u7070\u5ea6\u573a\u666f\u4f9d\u7136\u5bf9\u5f88\u591a\u4e1a\u52a1\u6bd4\u8f83\u91cd\u8981\uff0c Java Chassis 3\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002 \u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u7684\u597d\u5904\u662f\u4e0d\u7528\u4f9d\u8d56\u6ce8\u518c\u4e2d\u5fc3\u63d0\u4f9b\u7248\u672c\u5143\u6570\u636e\u7ba1\u7406\u80fd\u529b\uff0c\u53ea\u9700\u8981\u6bcf\u4e2a\u5b9e\u4f8b\u5177\u5907\u7248\u672c\u53f7\u7b49\u7b80\u5355\u5143\u6570\u636e\u4fe1\u606f\u3002 </p> <pre><code>servicecomb:\n  # enable router for edge service\n  router:\n    type: router\n  routeRule:\n    business: |\n      - precedence: 2\n        match:\n          apiPath:\n            prefix: \"/business/v2\"\n        route:\n          - weight: 100\n            tags:\n              version: 2.0.0\n      - precedence: 1\n        match:\n          apiPath:\n            prefix: \"/business/v1/dec\"\n        route:\n          - weight: 50\n            tags:\n              version: 1.1.0\n          - weight: 50\n            tags:\n              version: 2.0.0\n</code></pre>"},{"location":"featured-topics/secrets/registries.html#_2","title":"\u6ce8\u518c\u53d1\u73b0\u63a5\u53e3\u53ca\u5176\u5b9e\u73b0","text":"<p>Java Chassis 3 \u53ea\u9700\u8981\u4f7f\u7528 <code>Discovery</code> \u63a5\u53e3\u5c31\u80fd\u591f\u63d0\u4f9b\u65b0\u7684\u6ce8\u518c\u53d1\u73b0\u652f\u6301\u3002 Java Chassis\u4f1a\u8c03\u7528 <code>findServiceInstances</code> \u67e5\u8be2\u5b9e\u4f8b\uff0c\u5982\u679c\u540e\u7eed\u5b9e\u4f8b\u53d1\u751f\u53d8\u66f4\uff0c\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u73b0\u901a\u8fc7 <code>InstanceChangedListener</code> \u901a\u77e5 Java Chassis. </p> <pre><code>/**\n * This is the core service discovery interface. &lt;br/&gt;\n */\npublic interface Discovery&lt;D extends DiscoveryInstance&gt; extends SPIEnabled, SPIOrder, LifeCycle {\n  interface InstanceChangedListener&lt;D extends DiscoveryInstance&gt; {\n    /**\n     * Called by Discovery Implementations when instance list changed.\n     * @param registryName Name of the calling discovery implementation\n     * @param application Microservice application\n     * @param serviceName Microservice name\n     * @param updatedInstances The latest updated instances.\n     */\n    void onInstanceChanged(String registryName, String application, String serviceName, List&lt;D&gt; updatedInstances);\n  }\n\n  String name();\n\n  /**\n   * If this implementation enabled for this microservice.\n   */\n  boolean enabled(String application, String serviceName);\n\n  /**\n   * Find all instances.\n   *\n   * Life Cycle\uff1aThis method is called anytime after &lt;code&gt;run&lt;/code&gt;.\n   *\n   * @param application application\n   * @param serviceName microservice name\n   * @return all instances match the criteria.\n   */\n  List&lt;D&gt; findServiceInstances(String application, String serviceName);\n\n  /**\n   * Discovery can call InstanceChangedListener when instance get changed.\n   */\n  void setInstanceChangedListener(InstanceChangedListener&lt;D&gt; instanceChangedListener);\n}\n\n</code></pre> <p>Java Chassis 3 \u901a\u8fc7 <code>Registration</code> \u6765\u7ba1\u7406\u6ce8\u518c\uff0c \u6ce8\u518c\u8fc7\u7a0b\u5206\u4e3a <code>init</code>\u3001<code>run</code>\u3001<code>destroy</code>\u7b80\u5355\u7684\u751f\u547d\u5468\u671f\uff0c \u53ef\u4ee5\u5728 <code>init</code> \u51c6\u5907\u6ce8\u518c\u7684\u6570\u636e\uff0c <code>run</code> \u6267\u884c\u6ce8\u518c\uff0c <code>destroy</code> \u5219\u5728\u6ce8\u518c\u5931\u8d25\u6216\u8005\u7cfb\u7edf\u505c\u6b62\u7684\u65f6\u5019\u6267\u884c\u3002 </p> <pre><code>/**\n * This is the core service registration interface. &lt;br/&gt;\n */\npublic interface Registration&lt;R extends RegistrationInstance&gt; extends SPIEnabled, SPIOrder, LifeCycle {\n  String name();\n\n  /**\n   * get MicroserviceInstance &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called anytime after &lt;code&gt;run&lt;/code&gt;.\n   */\n  R getMicroserviceInstance();\n\n  /**\n   * update MicroserviceInstance status &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called anytime after &lt;code&gt;run&lt;/code&gt;.\n   */\n  boolean updateMicroserviceInstanceStatus(MicroserviceInstanceStatus status);\n\n  /**\n   * adding schemas to Microservice &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called after &lt;code&gt;init&lt;/code&gt; and before &lt;code&gt;run&lt;/code&gt;.\n   */\n  void addSchema(String schemaId, String content);\n\n  /**\n   * adding endpoints to MicroserviceInstance &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called after &lt;code&gt;init&lt;/code&gt; and before &lt;code&gt;run&lt;/code&gt;.\n   */\n  void addEndpoint(String endpoint);\n\n  /**\n   * adding property to MicroserviceInstance &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called after &lt;code&gt;init&lt;/code&gt; and before &lt;code&gt;run&lt;/code&gt;.\n   */\n  void addProperty(String key, String value);\n}\n\n</code></pre>"},{"location":"featured-topics/secrets/registries.html#_3","title":"\u6ce8\u518c\u53d1\u73b0\u7684\u7ec4\u5408","text":"<p>Java Chassis 3\u53ef\u4ee5\u72ec\u7acb\u5b9e\u73b0\u591a\u4e2a <code>Discovery</code> \u548c <code>Registration</code>, \u8fbe\u5230\u5411\u591a\u4e2a\u6ce8\u518c\u4e2d\u5fc3\u6ce8\u518c\u548c\u4ece\u591a\u4e2a\u6ce8\u518c\u4e2d\u5fc3\u53d1\u73b0\u5b9e\u4f8b\u7684\u4f5c\u7528\u3002 \u6bcf\u4e2a\u5b9e\u4f8b\u6839\u636e\u5b9e\u4f8bID\u552f\u4e00\u6765\u6807\u8bc6\u3002 \u5982\u679c\u5b9e\u4f8bID\u76f8\u540c\uff0c \u4f1a\u88ab\u8ba4\u4e3a\u662f\u540c\u4e00\u4e2a\u5b9e\u4f8b\uff0c \u5982\u679c\u4e0d\u540c\uff0c \u5219\u4f1a\u8ba4\u4e3a\u662f\u4e0d\u540c\u7684\u5b9e\u4f8b\u3002 \u5728 <code>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb</code> \u4e2d\u804a\u5230\u4e86\uff0c Java Chassis \u8981\u6c42\u6bcf\u6b21\u5b9e\u4f8b\u6ce8\u518c\uff08\u65b0\u7684\u8fdb\u7a0b\uff09\uff0c \u751f\u6210\u552f\u4e00\u7684\u5b9e\u4f8bID\uff0c \u4ee5\u89e3\u51b3\u6ce8\u518c\u5206\u533a\u9694\u79bb\u5e26\u6765\u7684\u5b9e\u4f8b\u5047\u4e0b\u7ebf\u95ee\u9898\u3002 <code>Discovery</code> \u548c <code>Registration</code> \u90fd\u5305\u542b\u4e86 Java Chassis \u5b9a\u4e49\u7684\u57fa\u7840\u4fe1\u606f\u3002</p> <pre><code>/**\n * Standard information used for microservice instance registration and discovery.\n */\npublic interface MicroserviceInstance {\n  /**\n   * Environment(Required): Used for logic separation of microservice instance. Only\n   * microservice instance with same environment can discovery each other.\n   */\n  String getEnvironment();\n\n  /**\n   * Application(Required): Used for logic separation of microservice instance. Only\n   * microservice instance with same application can discovery each other.\n   */\n  String getApplication();\n\n  /**\n   * Service Name(Required): Unique identifier for microservice.\n   */\n  String getServiceName();\n\n  /**\n   * Service Name Alias(Optional): Unique identifier for microservice.\n   *   This alias is used by registry implementation to support rename\n   *   of a microservice, e.g. old consumers use old service name can\n   *   find a renamed microservice service.\n   */\n  String getAlias();\n\n  /**\n   * Service Version(Required): version of this microservice.\n   */\n  String getVersion();\n\n  /**\n   * Data center info(Optional).\n   */\n  DataCenterInfo getDataCenterInfo();\n\n  /**\n   * Service Description(Optional)\n   */\n  String getDescription();\n\n  /**\n   * Service Properties(Optional)\n   */\n  Map&lt;String, String&gt; getProperties();\n\n  /**\n   * Service Schemas(Optional): Open API information.\n   */\n  Map&lt;String, String&gt; getSchemas();\n\n  /**\n   * Service endpoints(Optional).\n   */\n  List&lt;String&gt; getEndpoints();\n\n  /**\n   * Microservice instance id(Required). This id can be generated when microservice instance is starting\n   * or assigned by registry implementation.\n   *\n   * When microservice instance is restarted, this id should be changed.\n   */\n  String getInstanceId();\n\n  /**\n   * Microservice service id(Optional). This is used for service center, other implementations may not\n   * support service id.\n   */\n  default String getServiceId() {\n    return \"\";\n  }\n}\n\n</code></pre> <p>\u5728\u5b9e\u73b0\u6ce8\u518c\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u9700\u8981\u4fdd\u8bc1\u8be5\u63a5\u53e3\u5b9a\u4e49\u7684\u57fa\u7840\u4fe1\u606f\u80fd\u591f\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\uff0c\u67e5\u8be2\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u80fd\u591f\u83b7\u53d6\u5230\u8fd9\u4e9b\u4fe1\u606f\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u4e0d\u628a\u9e21\u86cb\u653e\u5230\u540c\u4e00\u4e2a\u7bee\u5b50\u91cc\u9762\uff0c\u662f\u6280\u672f\u9009\u578b\u91cc\u9762\u5f88\u91cd\u8981\u7684\u8003\u91cf\u3002\u89e3\u51b3\u65b9\u6848\u7684\u5f00\u653e\u6027\u548c\u53ef\u66ff\u4ee3\u6027\u3001\u4e91\u670d\u52a1\u7684\u53ef\u66ff\u4ee3\u6027\uff0c\u662f\u5f88\u591a\u5ba2\u6237\u90fd\u5173\u6ce8\u7684\u95ee\u9898\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5f00\u6e90\u7684\u6280\u672f\u6846\u67b6\uff0cJava Chassis\u65e9\u671f\u7684\u7248\u672c\u867d\u7136\u8bbe\u8ba1\u4e0a\u4e5f\u652f\u6301\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u6269\u5c55\uff0c\u4f46\u662f\u5b9e\u73b0\u96be\u5ea6\u5f88\u9ad8\uff0c\u4e0d\u81ea\u89c9\u7684\u628a\u5ba2\u6237\u4f7f\u7528\u5176\u4ed6\u6ce8\u518c\u4e2d\u5fc3\u66ff\u6362 service center\u7684\u8981\u6c42\u53d8\u5f97\u4e0d\u53ef\u884c\u3002\u63d0\u4f9b\u66f4\u52a0\u7b80\u5316\u7684\u6ce8\u518c\u53d1\u73b0\u5b9e\u73b0\uff0c\u867d\u7136\u51cf\u5c11\u4e86\u5c11\u91cf\u6709\u6709\u7ade\u4e89\u529b\u7684\u529f\u80fd\u7279\u6027\uff0c\u4f46\u662f\u6781\u5927\u964d\u4f4e\u4e86\u5ba2\u6237\u9009\u578b\u7684\u987e\u8651\u3002 </p>"},{"location":"featured-topics/secrets/serialization.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u591a\u79cd\u5e8f\u5217\u5316\u65b9\u5f0f\u652f\u6301","text":"<p>\u6253\u5f00\u4e00\u4e2a\u7b80\u5355\u7684 <code>REST</code> \u63a5\u53e3\uff1a</p> <pre><code>@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  @PostMapping(\"/benchmark\")\n  public DataModel sayHello(@RequestHeader(\"wait\") int wait, @RequestBody DataModel dataModel) {\n    if (wait &gt; 0) {\n      Thread.sleep(wait);\n    }\n    return dataModel;\n  }\n}\n</code></pre> <p>\u7684<code>\u5951\u7ea6</code>:</p> <pre><code>openapi: 3.0.1\ninfo:\n  title: swagger definition for org.apache.servicecomb.samples.ProviderController\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /benchmark:\n    post:\n      operationId: sayHello\n      parameters:\n      - name: wait\n        in: header\n        required: true\n        schema:\n          type: integer\n          format: int32\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/DataModel'\n          application/protobuf:\n            schema:\n              $ref: '#/components/schemas/DataModel'\n          text/plain:\n            schema:\n              $ref: '#/components/schemas/DataModel'\n        required: true\n        x-name: dataModel\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/DataModel'\n            application/protobuf:\n              schema:\n                $ref: '#/components/schemas/DataModel'\n            text/plain:\n              schema:\n                $ref: '#/components/schemas/DataModel'\ncomponents:\n  schemas:\n    ChildDataModel:\n      type: object\n      properties:\n        numInt:\n          type: integer\n          format: int32\n        numLong:\n          type: integer\n          format: int64\n        numDouble:\n          type: number\n          format: double\n        numFloat:\n          type: number\n          format: float\n        data:\n          type: string\n      x-java-class: org.apache.servicecomb.samples.ChildDataModel\n    DataModel:\n      type: object\n      properties:\n        data:\n          type: object\n          additionalProperties:\n            $ref: '#/components/schemas/ChildDataModel'\n      x-java-class: org.apache.servicecomb.samples.DataModel\n</code></pre> <p>\u53ef\u4ee5\u770b\u5230 Java Chassis\u4f7f\u7528\u4e86Open API 3.0.1\u7684\u534f\u8bae\u89c4\u8303\uff0c<code>Request Body</code> \u548c <code>responses</code> \u589e\u52a0\u4e86 <code>application/protobuf</code> \u3001 <code>text/plain</code> \u7684\u652f\u6301\u3002 \u8fd9\u79cd\u4f7f\u7528\u5f62\u5f0f\uff0c\u5960\u5b9a\u4e86Java Chassis 3\u591a\u5e8f\u5217\u5316\u652f\u6301\u65b9\u5f0f\u7684\u57fa\u7840\uff0c\u7ec6\u5fc3\u7684\u8bfb\u8005\u5e94\u8be5\u5f88\u5feb\u80fd\u591f\u53d1\u73b0\u8fd9\u79cd\u65b9\u5f0f\u4e0e\u5176\u4ed6\u652f\u6301\u591a\u5e8f\u5217\u5316\u6846\u67b6\u4e4b\u95f4\u7684\u5dee\u5f02\u3002 </p> <ul> <li>Spring Boot</li> </ul> <p>\u652f\u6301\u591a\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u9700\u8981\u5b9e\u73b0 <code>HttpMessageConverter</code> \u63a5\u53e3\uff0c\u5e76\u5728 <code>Controller</code> \u58f0\u660e\u652f\u6301\u7684 <code>Content-Type</code>\u3002 \u5982\u679c\u4f7f\u7528 <code>Spring Fox</code> \u6216\u8005 <code>Spring Doc</code> \u7b49 Open API\u5de5\u5177\u751f\u6210\u5951\u7ea6\uff0c\u5951\u7ea6\u5185\u5bb9\u53ea\u4f1a\u5305\u542b <code>Controller</code> \u58f0\u660e\u7684\u5e8f\u5217\u5316\u7c7b\u578b\u3002 Spring Boot\u5b58\u5728\u9690\u5f0f\u7684\u5951\u7ea6\u60c5\u51b5\uff0c\u8fd9\u610f\u5473\u7740\u5951\u7ea6\u5e76\u4e0d\u80fd\u5b8c\u5168\u4ee3\u8868 <code>Controller</code> \u670d\u52a1\u7684\u80fd\u529b\u3002 \u5982\u679c\u9700\u8981\u5bf9\u63a5\u53e3\u589e\u52a0\u6216\u8005\u51cf\u5c11\u5e8f\u5217\u5316\u652f\u6301\uff0c\u90fd\u9700\u8981\u4fee\u6539\u4ee3\u7801\u3002 </p> <ul> <li>Dubbo</li> </ul> <p>Dubbo \u9700\u8981\u5728 Provider \u4f7f\u7528 <code>dubbo:protocol</code> \u58f0\u660e\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c  \u5728Consumer\u4f7f\u7528 <code>dubbo:reference</code>  \u58f0\u660e\u5e8f\u5217\u5316\u65b9\u5f0f\u3002 \u7531\u4e8e Dubbo \u662f\u57fa\u4e8e<code>IDL</code>\u7684\u5951\u7ea6\u7cfb\u7edf\uff0c \u5728\u4f7f\u7528 RPC \u7684\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u52a8\u6001\u8c03\u6574\u5e8f\u5217\u5316\u65b9\u5f0f\u3002 <code>REST</code> \u652f\u6301\u5728 Dubbo \u662f\u5b8c\u5168\u72ec\u7acb\u7684\u5355\u5143\uff0c \u5e8f\u5217\u5316\u65b9\u5f0f\u4e5f\u72ec\u7acb\u4e8e RPC \u63a5\u53e3\uff0c <code>RPC</code> \u548c <code>REST</code> \u4e0d\u80fd\u4e92\u64cd\u4f5c\u3002 </p> <p>Open API\u57fa\u4e8e <code>REST</code> \u7684\u8bed\u4e49\uff0c\u6765\u652f\u6301 <code>IDL</code> \u7684\u8bed\u4e49\u3002 Java Chassis\u80fd\u591f\u66f4\u52a0\u76f4\u89c2\u7684\u652f\u6301\u901a\u8fc7\u7b2c\u4e09\u65b9\u5de5\u5177\u4ee5HTTP\u534f\u8bae\u65cf\u8bbf\u95ee\u5fae\u670d\u52a1\uff0c \u53ea\u9700\u8981\u6309\u7167\u5951\u7ea6\u7684\u63cf\u8ff0\u6784\u9020HTTP\u7684\u62a5\u6587\u3002 \u5728\u7f16\u7801\u4fa7\uff0c Java Chassis\u7684\u5ba2\u6237\u7aef\u53ef\u4ee5\u4f7f\u7528 REST \u8bed\u4e49\u7684\u63a5\u53e3\uff0c\u5982 <code>RestOperations</code>\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 RPC \u8bed\u4e49\u7684\u63a5\u53e3\u8bbf\u95ee\u670d\u52a1\u7aef\u3002 </p> <p>\u5b9a\u4e49\u670d\u52a1\u7aef\u63a5\u53e3\uff1a</p> <pre><code>public interface ProviderService {\n  DataModel sayHello(int wait, DataModel dataModel);\n}\n</code></pre> <p>\u901a\u8fc7RPC\u8bbf\u95ee\uff1a</p> <pre><code>@RestSchema(schemaId = \"ConsumerController\")\n@RequestMapping(path = \"/\")\npublic class ConsumerController {\n  @RpcReference(schemaId = \"ProviderController\", microserviceName = \"provider\")\n  private ProviderService providerService;\n\n  @PostMapping(\"/benchmark\")\n  public DataModel sayHello(@RequestHeader(\"wait\") int wait, @RequestBody DataModel dataModel) {\n    return providerService.sayHello(wait, dataModel);\n  }\n}\n</code></pre> <p>Java Chassis\u4ee5OpenAPI\u4e3a\u57fa\u7840\u7684Edge Service\u90e8\u4ef6\uff0c\u80fd\u591f\u5b9e\u73b0\u8bf7\u6c42\u5728\u901a\u4fe1\u534f\u8bae\u3001\u5e8f\u5217\u5316\u65b9\u5f0f\u4e0a\u7684\u81ea\u52a8\u8f6c\u6362\u3002\u6bd4\u5982\u5c06HTTP\u534f\u8bae\u8f6cHighway\u534f\u8bae\u3001application/json\u8f6capplication/protobuf\u7b49\u3002 </p> <p>\u57fa\u4e8e Java Chassis Benchmark \uff0c\u505a\u4e00\u4e2a\u7b80\u5355\u6027\u80fd\u6d4b\u8bd5\u3002\u8be5\u6d4b\u8bd5\u5bf9\u6bd4\u4e86\u4e24\u79cd\u573a\u666f\uff1a</p> <p></p> <p>\u573a\u666f\u4e00\u7684\u9ed8\u8ba4\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  rest:\n    parameter:\n      default-request-encoding: \"application/json\"\n      default-response-encoding: \"application/json\"\n</code></pre> <p>\u573a\u666f\u4e8c\u7684\u9ed8\u8ba4\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  rest:\n    parameter:\n      default-request-encoding: \"application/protobuf\"\n      default-response-encoding: \"application/protobuf\"\n</code></pre> <p>\u6d4b\u8bd5\u7ed3\u679c\u53c2\u8003\u4e0b\u8868\u3002\u8be5\u6570\u636e\u4e3b\u8981\u7528\u4e8e\u8bf4\u660e\u5e8f\u5217\u5316\u5dee\u5f02\uff0c\u56e0\u6b64\u7701\u53bb\u4e86\u6d4b\u8bd5\u73af\u5883\u7684\u63cf\u8ff0\u3002\u4e0b\u8868\u7684\u5e73\u5747\u65f6\u5ef6\u7edf\u8ba1\u4e86\u6d4b\u8bd5\u5ba2\u6237\u7aef\u8ba1\u7b97\u7684\u8bf7\u6c42-\u54cd\u5e94\u65f6\u95f4\u7684\u5e73\u5747\u503c\u3002 </p> \u7248\u672c \u6570\u636e\u5355\u4f4d \u7b49\u5f85\u65f6\u95f4 \u7ebf\u7a0b\u6570 \u6267\u884c\u6b21\u6570 \u6267\u884c\u65f6\u95f4 \u5e73\u5747\u65f6\u5ef6 protobuffer 1 0 10 1000 6642 6 protobuffer 100 0 10 1000 9418 9 protobuffer 1000 0 10 1000 25205 24 protobuffer 1 10 10 1000 15432 15 protobuffer 100 10 10 1000 15965 15 protobuffer 1000 10 10 1000 25926 25 protobuffer 1 100 10 1000 105727 105 protobuffer 100 100 10 1000 106376 106 protobuffer 1000 100 10 1000 114452 114 jason 1 0 10 1000 6736 6 jason 100 0 10 1000 15063 14 jason 1000 0 10 1000 69757 68 jason 1 10 10 1000 16632 16 jason 100 10 10 1000 20033 19 jason 1000 10 10 1000 66104 65 jason 1 100 10 1000 104868 104 jason 100 100 10 1000 107439 107 jason 1000 100 10 1000 132786 131 <p>\u4ece\u8fd9\u7ec4\u6570\u636e\u53ef\u4ee5\u770b\u51fa\uff1a</p> <ul> <li>\u5728\u6570\u636e\u91cf\u6bd4\u8f83\u5c0f\u7684\u573a\u666f\u4e0b\uff0c\u4f7f\u7528 <code>json</code> \u548c <code>proto-buffer</code> \u6027\u80fd\u5dee\u5f02\u5f88\u5c0f\u3002 \u5728\u6570\u636e\u91cf\u6bd4\u8f83\u5927\u7684\u60c5\u51b5\u4e0b\uff0c<code>proto-buffer</code> \u7684\u6027\u80fd\u660e\u663e\u597d\u4e8e <code>json</code>\u3002 </li> <li>\u5728\u4e1a\u52a1\u65f6\u5ef6\u6bd4\u8f83\u5927\uff08&gt;100ms\uff09\u7684\u65f6\u5019\uff0c \u5e8f\u5217\u5316\u7684\u65f6\u5ef6\u53ef\u4ee5\u5ffd\u7565\u3002 </li> </ul> <p>\u4e0d\u540c\u7684\u5e8f\u5217\u5316\u65b9\u5f0f\u9664\u4e86\u6027\u80fd\u5dee\u5f02\uff0c\u5728\u53ef\u7ef4\u62a4\u65b9\u9762\u4e5f\u4f1a\u5b58\u5728\u5f88\u5927\u7684\u5dee\u5f02\u3002\u6bd4\u5982 <code>proto-buffer</code> \u5728\u517c\u5bb9\u6027\u65b9\u9762\u7684\u8868\u73b0\u4f1a\u6bd4 <code>json</code> \u5dee\uff0c\u5f53\u4fee\u6539\u63a5\u53e3\u5b9a\u4e49\u7684\u65f6\u5019\uff0c \u6bd4\u5982\u589e\u52a0\u5c5e\u6027\u3001\u5220\u9664\u5c5e\u6027\u3001\u4fee\u6539\u5c5e\u6027\u7b49\uff0c<code>proto-buffer</code> \u66f4\u5bb9\u6613\u5bfc\u81f4\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u505a\u597d\u517c\u5bb9\u6027\u9632\u8303\u5bf9\u591a\u6570\u7528\u6237\u800c\u8a00\uff0c\u90fd\u662f\u6bd4\u8f83\u56f0\u96be\u7684\u4e8b\u60c5\u3002 </p> <p>\u652f\u6301\u591a\u534f\u8bae\u3001\u591a\u5e8f\u5217\u5316\u65b9\u5f0f\u7684\u53e6\u5916\u4e00\u4e2a\u8003\u8651\uff0c\u662f\u5bf9\u63a5\u9057\u7559\u7cfb\u7edf\u3002\u5bf9\u63a5\u9057\u7559\u7cfb\u7edf\u4f1a\u80cc\u8d1f\u5927\u91cf\u5386\u53f2\u503a\u52a1\uff0c\u4f7f\u5f97\u65b0\u7cfb\u7edf\u672c\u8eab\u8bbe\u8ba1\u504f\u79bb\u9884\u671f\u7684\u65b9\u5411\u3002\u5728 Java Chassis \u591a\u5e8f\u5217\u5316\u65b9\u5f0f\u7684\u9009\u62e9\u4e0a\uff0c \u53ea\u63d0\u4f9b\u4e86\u76ee\u524d\u5e7f\u6cdb\u4f7f\u7528\u7684 <code>json</code> \u548c <code>proto-buffer</code> \u652f\u6301\uff0c \u800c\u6ca1\u6709\u9009\u62e9\u652f\u6301\u5176\u4ed6\u5e8f\u5217\u5316\u65b9\u6848\u3002 \u4ee5\u67b6\u6784\u7684\u97e7\u6027\u53bb\u5904\u7406\u9057\u7559\u7cfb\u7edf\u95ee\u9898\uff0c\u662f Java Chassis\u575a\u6301\u7684\u4e00\u4e2a\u91cd\u8981\u8bbe\u8ba1\u7406\u5ff5\uff0c\u5bf9\u63a5\u9057\u7559\u7cfb\u7edf\u6216\u8005\u4fdd\u6301\u4e0e\u9057\u7559\u7cfb\u7edf\u7684\u517c\u5bb9\uff0c\u4e0d\u662f\u5b83\u7684\u4e3b\u8981\u8bbe\u8ba1\u76ee\u6807\u3002 </p> <p></p> <p>\u5728\u5e8f\u5217\u5316\u65b9\u5f0f\u9009\u62e9\u4e0a\uff0c\u7b80\u5355\u7684\u603b\u7ed3\u5982\u4e0b\uff1a</p> <ul> <li>\u4f7f\u7528 <code>REST</code> \u534f\u8bae\u662f\u7edd\u5927\u591a\u6570\u573a\u666f\u7684\u6700\u4f18\u9009\u62e9\uff0c\u80fd\u591f\u6700\u597d\u7684\u517c\u987e\u6027\u80fd\u3001\u53ef\u9760\u6027\u3001\u97e7\u6027\u7b49\u65b9\u9762\u7684\u8981\u6c42\u3002</li> <li>\u5bf9\u4e8e\u6570\u636e\u91cf\u6bd4\u8f83\u5927\uff0c\u4e1a\u52a1\u65f6\u5ef6\u5f88\u4f4e(&lt;100ms)\uff0c\u5e76\u4e14\u4e1a\u52a1\u6bd4\u8f83\u7a33\u5b9a\uff0c\u4e1a\u52a1\u63a5\u53e3\u4e0d\u9700\u8981\u9891\u7e41\u53d8\u52a8\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u91c7\u7528 <code>proto-buffer</code>\u6765\u4f18\u5316\u6027\u80fd\uff0c\u6309\u9700\u8c03\u6574\u3002</li> </ul> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u67d0\u4e2a\u5ba2\u6237\u7684\u5173\u952e\u6838\u5fc3\u7cfb\u7edf\u5bf9\u4e8e\u65f6\u5ef6\u8981\u6c42\u5f88\u9ad8\uff0c\u56e0\u6b64\u9700\u8981\u91c7\u7528\u79c1\u6709\u534f\u8bae\u548c\u5e8f\u5217\u5316\u65b9\u5f0f\u6765\u63d0\u5347\u6027\u80fd\u3002\u4f46\u662f\u5bf9\u4e8e\u4e00\u4e9b\u975e\u6838\u5fc3\u7cfb\u7edf\uff0c\u9700\u8981\u4f7f\u7528REST\u63a5\u53e3\uff0c\u65b9\u4fbf\u65e5\u5e38\u5f00\u53d1\u3001\u8c03\u8bd5\u3002Java Chassis\u7684\u89e3\u8026\u8bbe\u8ba1\u4f7f\u5f97\u5ba2\u6237\u65e0\u9700\u5bf9\u4ee3\u7801\u8fdb\u884c\u4efb\u4f55\u6539\u9020\uff0c\u5c31\u53ef\u4ee5\u6ee1\u8db3\u4e24\u65b9\u9762\u7684\u8981\u6c42\u3002</p>"},{"location":"featured-topics/secrets/zone-isolation.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb","text":"<p>\u6ce8\u518c\u4e2d\u5fc3\u8d1f\u8d23\u5b9e\u4f8b\u7684\u6ce8\u518c\u548c\u53d1\u73b0\uff0c\u5bf9\u5fae\u670d\u52a1\u53ef\u9760\u8fd0\u884c\u8d77\u5230\u4e3e\u8db3\u8f7b\u91cd\u7684\u4f5c\u7528\u3002\u5b9e\u4f8b\u53d8\u66f4\u611f\u77e5\u5468\u671f\u662f\u6ce8\u518c\u4e2d\u5fc3\u6700\u91cd\u8981\u7684\u6280\u672f\u6307\u6807\u4e4b\u4e00\u3002\u611f\u77e5\u5468\u671f\u4ee3\u8868\u63d0\u4f9b\u8005\u7684\u5b9e\u4f8b\u6ce8\u518c\u6216\u8005\u4e0b\u7ebf\u540e\uff0c\u6d88\u8d39\u8005\u611f\u77e5\u5b9e\u4f8b\u6ce8\u518c\u6216\u8005\u4e0b\u7ebf\u7684\u5468\u671f\u3002\u5f71\u54cd\u5b9e\u4f8b\u53d8\u66f4\u611f\u77e5\u5468\u671f\u7684\u6280\u672f\u56e0\u7d20\u6709\u5f88\u591a\u3002</p> <ul> <li>\u6570\u636e\u4e00\u81f4\u6027\u3002\u4e00\u81f4\u6027\u6307\u5b9e\u4f8b\u5728\u6ce8\u518c\u4e2d\u5fc3\u7684\u4e00\u4e2a\u8282\u70b9\u6ce8\u518c\uff0c\u4ece\u6ce8\u518c\u4e2d\u5fc3\u7684\u4e0d\u540c\u8282\u70b9\u80fd\u5426\u540c\u65f6\u8bfb\u53d6\u5230\u5b9e\u4f8b\u7684\u6ce8\u518c\u4fe1\u606f\u3002\u8fd9\u4e2a\u6280\u672f\u56e0\u7d20\u5bf9\u4e8e\u5b9e\u4f8b\u53d8\u66f4\u611f\u77e5\u5468\u671f\u6709\u4e00\u5b9a\u5f71\u54cd\uff0c\u6bd4\u5982\u6700\u7ec8\u4e00\u81f4\u6027\u7684\u611f\u77e5\u901f\u5ea6\u4f1a\u6162\uff0c\u5f3a\u4e00\u81f4\u6027\u7684\u611f\u77e5\u901f\u5ea6\u4f1a\u5feb\u3002\u4f46\u591a\u6570\u573a\u666f\uff0c\u8fd9\u4e2a\u6280\u672f\u6307\u6807\u4e0d\u662f\u6838\u5fc3\u56e0\u7d20\u3002</li> <li>\u53d8\u66f4\u901a\u77e5\u673a\u5236\u3002\u53d8\u66f4\u901a\u77e5\u673a\u5236\u6307\u6d88\u8d39\u8005\u83b7\u53d6\u6700\u65b0\u5b9e\u4f8b\u5217\u8868\u7684\u65b9\u5f0f\uff0c\u901a\u5e38\u6709\u51e0\u79cd\u65b9\u5f0f\uff1a\u5b9a\u671fPull\u7684\u65b9\u5f0f\uff0c\u6d88\u8d39\u8005\u5468\u671f\u6027\u7684\u4ece\u6ce8\u518c\u4e2d\u5fc3\u67e5\u8be2\u5b9e\u4f8b\u5217\u8868\uff1b\u6ce8\u518c\u4e2d\u5fc3Push\u7684\u65b9\u5f0f\uff0c\u6ce8\u518c\u4e2d\u5fc3\u901a\u8fc7\u957f\u8fde\u63a5\u3001WebSocket\u7b49\u534f\u8bae\uff0c\u5c06\u5b9e\u4f8b\u53d8\u5316\u901a\u77e5\u6d88\u8d39\u8005\u3002\u5b9a\u671fPull\u7684\u65b9\u5f0f\u611f\u77e5\u5468\u671f\u76f8\u5bf9\u8f83\u957f\uff0c\u5de5\u4f5c\u673a\u5236\u6bd4\u8f83\u53ef\u9760\uff0c\u5bb9\u9519\u6548\u7387\u9ad8\uff0c\u5bf9\u4e8e\u7f51\u7edc\u8981\u6c42\u4f4e\uff0c\u66f4\u52a0\u5b89\u5168\uff1b\u6ce8\u518c\u4e2d\u5fc3Push\u7684\u65b9\u5f0f\u611f\u77e5\u5468\u671f\u5f88\u77ed\uff0c\u5bb9\u6613\u51fa\u73b0\u4e8b\u4ef6\u9519\u4e71\u6216\u8005\u5806\u79ef\uff0c\u5bf9\u4e8e\u7f51\u7edc\u89c4\u5212\u6709\u4e00\u5b9a\u8981\u6c42\u3002</li> <li>\u6ce8\u518c\u4e2d\u5fc3\u68c0\u6d4b\u5b9e\u4f8b\u72b6\u6001\u7684\u65b9\u5f0f\u3002\u6ce8\u518c\u4e2d\u5fc3\u68c0\u6d4b\u5b9e\u4f8b\u72b6\u6001\u7684\u65b9\u5f0f\u8868\u793a\u5982\u4f55\u5224\u65ad\u5b9e\u4f8b\u7684\u72b6\u6001\u662f\u6b63\u5e38\u8fd8\u662f\u5f02\u5e38\u3002\u6bd4\u5982Service Center\u9700\u8981\u5b9e\u4f8b\u5b9a\u671f\u7684\u53d1\u9001\u5fc3\u8df3\uff0c\u5982\u679c\u57283\u4e2a\u5fc3\u8df3\u5468\u671f\u672a\u68c0\u6d4b\u5230\u5fc3\u8df3\uff0c\u90a3\u4e48\u8ba4\u4e3a\u5b9e\u4f8b\u5f02\u5e38\uff1b\u6bd4\u5982Nacos\u5219\u6839\u636e\u5fae\u670d\u52a1\u5b9e\u4f8b\u4e0e\u6ce8\u518c\u4e2d\u5fc3\u7684\u957f\u8fde\u63a5\u72b6\u6001\u5224\u65ad\u5b9e\u4f8b\u662f\u5426\u5f02\u5e38\u3002</li> </ul> <p>\u6b64\u5916\uff0c\u5b9e\u4f8b\u7ba1\u7406\u89c4\u6a21\u3001\u652f\u6301\u5143\u6570\u636e\u7ba1\u7406\u7b49\u4e5f\u662f\u6ce8\u518c\u6ce8\u518c\u4e2d\u5fc3\u6bd4\u8f83\u5e38\u89c1\u7684\u529f\u80fd\u7279\u6027\u3002\u6bd4\u5982Java Chassis 2\u8981\u6c42\u6ce8\u518c\u4e2d\u5fc3\u5fc5\u987b\u652f\u6301\u5951\u7ea6\u7684\u6ce8\u518c\u548c\u7ba1\u7406\u3002</p> <p>Java Chassis 3\u7684\u8bbe\u8ba1\u76ee\u6807\u4e4b\u4e00\uff0c\u5c31\u662f\u964d\u4f4e\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u529f\u80fd\u7684\u4f9d\u8d56\uff0c\u80fd\u591f\u652f\u6301\u5c3d\u53ef\u80fd\u591a\u7684\u6ce8\u518c\u4e2d\u5fc3\uff0c\u800c\u4e0d\u964d\u4f4e\u5fae\u670d\u52a1\u81ea\u8eab\u7684\u53ef\u9760\u6027\u3002 \u5728\u63cf\u8ff0 Java Chassis 3\u7684\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236\u4e4b\u524d\uff0c\u5148\u8ba8\u8bba\u4e00\u4e2a\u5178\u578b\u7684\u95ee\u9898\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u3002</p> <p>\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u662f\u6307\u5982\u4e0b\u573a\u666f\uff1a</p> <p></p> <p>\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u4e0e\u6ce8\u518c\u4e2d\u5fc3\u4e4b\u95f4\u7684\u7f51\u7edc\u53d1\u751f\u6545\u969c\uff0c\u800c\u670d\u52a1\u6d88\u8d39\u8005\u4e0e\u6ce8\u518c\u4e2d\u5fc3\u4e4b\u95f4\u7684\u7f51\u7edc\u662f\u6b63\u5e38\u7684\uff0c\u5373\u4ea7\u751f\u5206\u533a\u9694\u79bb\u3002\u5728\u53d1\u751f\u5206\u533a\u9694\u79bb\u7684\u573a\u666f\u4e0b\uff0c\u73b0\u6709\u7684\u4fdd\u6d3b\u673a\u5236\u90fd\u4f1a\u8ba4\u4e3a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u4e0b\u7ebf\uff0c\u8fdb\u800c\u5bfc\u81f4\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u8bbf\u95ee\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u51fa\u73b0\u5927\u89c4\u6a21\u5931\u8d25\u3002\u5206\u533a\u9694\u79bb\u901a\u5e38\u4f1a\u53d1\u751f\u5728\u6ce8\u518c\u4e2d\u5fc3\u5728\u591aAZ\u90e8\u7f72/\u5bb9\u707e\u7684\u573a\u666f\uff0c\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u8fde\u63a5\u7684\u662f\u4e0d\u540cAZ\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u4f8b\u3002\u5728\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u8005\u8de8AZ\u90e8\u7f72\u7684\u65f6\u5019\uff0c\u4e5f\u53ef\u80fd\u53d1\u751f\u3002</p> <p>\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u6545\u969c\u4f1a\u9020\u6210\u5927\u9762\u79ef\u7684\u5e94\u7528\u8c03\u7528\u5931\u8d25\uff0c\u662f\u6ce8\u518c\u4e2d\u5fc3\u6709\u5173\u6545\u969c\u4e2d\uff0c\u6700\u4e25\u91cd\u7684\u6545\u969c\u4e4b\u4e00\u3002</p> <ul> <li>Ribbon\u7684\u89e3\u51b3\u65b9\u6848</li> </ul> <p>Ribbon\u5728\u5ba2\u6237\u7aef\u63d0\u4f9b\u4e86 <code>IPing</code> \u63a5\u53e3\u6765\u68c0\u6d4b\u5b9e\u4f8b\u6545\u969c\uff0c\u4ee5\u68c0\u6d4b\u6ce8\u518c\u4e2d\u5fc3\u9519\u8bef\u4e0b\u7ebf\u5b9e\u4f8b\uff0c\u800c\u5b9e\u4f8b\u5b9e\u9645\u53ef\u4ee5\u5de5\u4f5c\u7684\u573a\u666f\u3002 \u8be5\u673a\u5236\u5728\u591a\u6570\u573a\u666f\u5de5\u4f5c\u826f\u597d\uff0c\u7136\u800c\u5728\u5bb9\u5668\u573a\u666f\u4e0b\uff0c\u53ef\u80fd\u957f\u671f\u4fdd\u7559\u9519\u8bef\u7684\u5b9e\u4f8b\u3002\u56e0\u4e3a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u4e0d\u662f\u7531\u4e8e\u5206\u533a\u9694\u79bb\u9519\u8bef\uff0c\u800c\u662f\u91cd\u542f\u7684\u573a\u666f\u4e0b\uff0c\u5982\u679c\u539f\u6765\u7684\u7aef\u53e3\u88ab\u5176\u4ed6\u670d\u52a1\u5360\u7528\uff0c\u5219\u4f1a\u5bfc\u81f4\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u59cb\u7ec8\u4fdd\u7559\u9519\u8bef\u7684\u5b9e\u4f8b\u3002</p> <pre><code>public interface IPing {\n    boolean isAlive(Server server);\n}\n</code></pre> <ul> <li>Spring Cloud\u7684\u89e3\u51b3\u65b9\u6848</li> </ul> <p>Spring Cloud\u7684\u673a\u5236\u548cRibbon\u7c7b\u4f3c\uff0c\u63d0\u4f9b\u4e86 <code>HealthCheckServiceInstanceListSupplier</code> \uff0c\u5e76\u5141\u8bb8\u5f00\u53d1\u8005\u5b9a\u4e49\u5b9e\u4f8b\u76d1\u63a7\u72b6\u6001\u68c0\u6d4b\u65b9\u5f0f\u3002 </p> <ul> <li>Java Chassis\u7684\u89e3\u51b3\u65b9\u6848</li> </ul> <p>Java Chassis\u7ed3\u5408\u5b9e\u4f8b\u662f\u5426\u5728\u6ce8\u518c\u4e2d\u5fc3\u67e5\u8be2\u5230(History)\u3001\u5b9e\u4f8b\u72b6\u6001(Status)\u3001Ping\u72b6\u6001(Ping)\u3001\u9694\u79bb\u72b6\u6001\uff08Isolation\uff09\u5c06\u5b9e\u4f8b\u5206\u7ec4\uff0c\u5e76\u7ed9\u4e0d\u540c\u7684\u7ec4\u5206\u914d\u4e0d\u540c\u7684\u4f18\u5148\u7ea7\u3002 </p> <p></p> <p>\u5728 <code>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668</code> \u4e2d\uff0c\u89e3\u5bc6\u4e86Java Chassis\u5206\u7ec4\u5b9e\u4f8b\u4f7f\u7528\u7684\u673a\u5236\u3002\u5f53\u51fa\u73b0\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u7684\u60c5\u51b5\uff0c\u5b9e\u4f8b\u5728\u6ce8\u518c\u4e2d\u5fc3\u67e5\u8be2\u4e0d\u5230\uff0c\u4ecd\u7136\u88ab\u4fdd\u7559\u5230\u4e86 <code>History</code> \u5206\u7ec4\uff0c\u53ea\u8981\u5b9e\u4f8b Ping \u72b6\u6001\u6b63\u5e38\uff0c \u8fd9\u4e2a\u5b9e\u4f8b\u4ecd\u7136\u4f1a\u88ab\u4f7f\u7528\uff0c \u4ece\u800c\u9632\u6b62\u4e86\u5b9e\u4f8b\u88ab\u9519\u8bef\u4e0b\u7ebf\u3002 </p> <p>Java Chassis\u8fd8\u8bbe\u8ba1\u4e86\u65b0\u7684Ping\u673a\u5236\uff0c\u89e3\u51b3\u5bb9\u5668\u573a\u666f\u4e0b\uff0c\u53ef\u80fd\u957f\u671f\u4fdd\u7559\u9519\u8bef\u7684\u5b9e\u4f8b\u7684\u95ee\u9898\u3002 Ping\u673a\u5236\u7684\u6838\u5fc3\u903b\u8f91\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a</p> <ul> <li>\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u5411\u6ce8\u518c\u4e2d\u5fc3\u6ce8\u518c\u7684\u65f6\u5019\uff0c\u751f\u6210\u5b9e\u4f8bID\u3002\u5b9e\u4f8bID\u9700\u8981\u4fdd\u8bc1\u8fdb\u7a0b\u7684\u6bcf\u6b21\u91cd\u542f\uff0c\u90fd\u662f\u552f\u4e00\u7684\u3002</li> <li>\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7PING\u6d88\u606f\u68c0\u6d4b\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u5b58\u6d3b\u72b6\u6001\u3002PING\u6d88\u606f\u5305\u542b\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u5b9e\u4f8bID\u3002</li> <li>\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u68c0\u6d4bPING\u6d88\u606f\u91cc\u9762\u7684\u5b9e\u4f8bID\uff0c\u5982\u679c\u5b9e\u4f8bID\u4e0e\u81ea\u5df1\u7684\u5b9e\u4f8bID\u76f8\u540c\uff0c\u5219\u8fd4\u56de\u5065\u5eb7\uff0c\u5426\u5219\u8fd4\u56de\u5f02\u5e38\u3002</li> </ul> <p></p> <p>Java Chassis\u63d0\u4f9b\u4e86\u65b0\u7684\u5065\u5eb7\u68c0\u67e5\u63a5\u53e3\uff1a</p> <pre><code>@RestSchema(schemaId = ManagementEndpoint.NAME, schemaInterface = ManagementEndpoint.class)\npublic class ManagementEndpointImpl implements ManagementEndpoint {\n  private RegistrationManager registrationManager;\n\n  @Autowired\n  public void setRegistrationManager(RegistrationManager registrationManager) {\n    this.registrationManager = registrationManager;\n  }\n\n  @Override\n  public boolean health(String instanceId, String registryName) {\n    String mySelf = registrationManager.getInstanceId(registryName);\n    if (StringUtils.isEmpty(mySelf)) {\n      return false;\n    }\n    return mySelf.equals(instanceId);\n  }\n}\n</code></pre> <p>Java Chassis 2\u7ed3\u5408Service Center\u7684\u529f\u80fd\u8bbe\u8ba1\uff0c\u5171\u540c\u4fdd\u969c\u4e86\u6ce8\u518c\u53d1\u73b0\u7684\u53ef\u9760\u6027\u3002Java Chassis 3\u901a\u8fc7\u5e94\u7528\u5ba2\u6237\u7aef\u6280\u672f\uff0c\u964d\u4f4e\u4e86\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u7684\u4f9d\u8d56\uff0c\u4f7f\u5f97 Java Chassis 3\u4f7f\u7528\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u90fd\u80fd\u591f\u53d6\u5f97\u5f88\u9ad8\u7684\u53ef\u9760\u6027\u3002 \u5185\u7f6e\u7684\u5b9e\u4f8b\u72b6\u6001\u5206\u7ec4\u7ba1\u7406\u548c\u521b\u65b0\u7684Ping\u673a\u5236\u8bbe\u8ba1\uff0c\u4f7f\u5f97 Java Chassis 3\u5728\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u6545\u969c\u6761\u4ef6\u4e0b\u4e5f\u80fd\u7a33\u5b9a\u7684\u5de5\u4f5c\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u6ce8\u518c\u4e2d\u5fc3\u63a8\u7a7a\u6545\u969c\u662f <code>Nacos</code> \u7684\u7ecf\u5178\u6545\u969c\uff0c\u5bf9\u4e8e\u7cfb\u7edf\u53ef\u9760\u6027\u8fd0\u884c\u4ea7\u751f\u4e86\u975e\u5e38\u5927\u7684\u5f71\u54cd\u3002\u63a8\u7a7a\u6545\u969c\u7684\u5f71\u54cd\u673a\u5236\u548c\u5206\u533a\u9694\u79bb\u6545\u969c\u7684\u5f71\u54cd\u673a\u5236\u7c7b\u4f3c\u3002\u501f\u52a9\u4e8eJava Chassis 3\uff0c\u80fd\u591f\u5c06\u4e1a\u52a1\u5f71\u54cd\u7684\u65f6\u95f4\u548c\u8303\u56f4\u964d\u5230\u6700\u4f4e\u3002</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html","title":"2.8.x \u5347\u7ea7 3.0.0 \u6307\u5bfc","text":"<p>3.0.0\u7248\u672c\u7684\u91cd\u8981\u66f4\u65b0\uff1a</p> <ul> <li>\u6700\u5c0f\u652f\u6301 JDK 17</li> <li>\u91c7\u7528Spring Boot 3\u4f5c\u4e3a\u5f00\u53d1\u5e95\u5ea7\uff0c\u5e95\u5c42\u5b9e\u73b0\u4f9d\u8d56Spring Boot 3\uff0c\u4e0d\u518d\u63d0\u4f9bSpring\u542f\u52a8\u65b9\u5f0f\u3002</li> <li>\u652f\u6301 OpenAPI 3.0 \u89c4\u8303</li> </ul> <p>\u672c\u6587\u6863\u63d0\u4f9b2.8.x\u5347\u7ea7\u52303.0.0\u7684\u6307\u5bfc\u3002</p> <p>\u8bf4\u660e\uff1a\u7531\u4e8eSpring Boot 3\u4e0d\u518d\u517c\u5bb9 javax.servlet\uff0c javax.ws \u7b49\u7ec4\u4ef6\uff0c\u5e76\u4e14 swagger 1.x \u6ca1\u6709\u63d0\u4f9b jakarta.servlet\u652f\u6301\uff0c3.0.0 \u7248\u672c\u4f7f\u7528 swagger 2.x \u652f\u6301 Open API 3.0\u3002 \u56e0\u6b64\uff0c3.0.0 \u7248\u672c\u4e0d\u80fd\u4fdd\u8bc1\u4e0e 2.x.x \u7248\u672c\u4e4b\u95f4\u7684\u6b63\u5e38\u901a\u4fe1\u3002 \u5728\u5347\u7ea7 3.0.0 \u7684\u65f6\u5019\uff0c\u9700\u8981\u6ce8\u610f\u5bf9\u73b0\u6709\u670d\u52a1\u8fdb\u884c\u5168\u91cf\u5347\u7ea7\uff0c\u4e0d\u652f\u6301\u72ec\u7acb\u5347\u7ea7\u5ba2\u6237\u7aef\u6216\u8005\u670d\u52a1\u7aef\u5fae\u670d\u52a1\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_1","title":"\u4f9d\u8d56\u914d\u7f6e\u548c\u542f\u52a8\u7c7b","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#java-chassistransport","title":"Java Chassis\u539f\u751fTransport","text":"<p>Java Chassis\u539f\u751f\u63d0\u4f9b\u4e86 Rest Over Vert.x, Highway\u7b49\u539f\u751fTransport\u3002Edge Service\u4e5f\u4f7f\u7528\u539f\u751fTransport\u8fd0\u884c\u3002</p> <p>TODO</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#spring-boot-servlet-transport","title":"Spring Boot Servlet Transport","text":"<p>Java Chassis\u652f\u6301\u8fd0\u884c\u4e0eServlet\u5bb9\u5668\uff0c\u81ea\u8eab\u4f5c\u4e3a\u4e00\u4e2aServlet\u542f\u52a8\u3002</p> <p>TODO</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#web-servlet-transport","title":"\u72ec\u7acbWEB\u5bb9\u5668 Servlet Transport","text":"<p>Java Chassis\u652f\u6301\u8fd0\u884c\u4e0eServlet\u5bb9\u5668\uff0c\u81ea\u8eab\u4f5c\u4e3a\u4e00\u4e2aServlet\u542f\u52a8\u3002</p> <p>TODO</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#spi-bean","title":"SPI \u4fee\u6539\u4e3a Bean","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#bootlistener","title":"BootListener","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#metricsinitializer","title":"MetricsInitializer","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#discoveryfilter","title":"DiscoveryFilter","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#cse","title":"\u914d\u7f6e\u9879\u4e0d\u518d\u652f\u6301 <code>cse</code> \u524d\u7f00","text":"<p>Java Chassis \u7684\u6240\u6709\u914d\u7f6e\u9879\u5168\u90e8\u4f7f\u7528 <code>servicecomb</code> \u4f5c\u4e3a\u524d\u7f00\uff0c\u6bd4\u5982\uff1a</p> <pre><code>servicecomb:\n  service:\n    application: my-application\n    name: my-service\n</code></pre> <p>\u65e9\u671f\u7248\u672c\uff0c\u4e5f\u652f\u6301\u4e0b\u9762\u7684\u914d\u7f6e\uff1a</p> <pre><code>cse:\n  service:\n    application: my-application\n    name: my-service\n</code></pre> <p>3.0.0 \u7248\u672c\u4e0d\u518d\u63d0\u4f9b <code>cse</code> \u524d\u7f00\u652f\u6301\uff0c\u9700\u8981\u5c06 <code>cse</code> \u524d\u7f00\u4fee\u6539\u4e3a <code>servicecomb</code>\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_2","title":"\u7248\u672c\u7ba1\u7406","text":"<p>3.0.0 \u7b80\u5316\u4e86\u6ce8\u518c\u53d1\u73b0\u7684\u4f9d\u8d56\u548c\u5b9e\u73b0\uff0c\u4ee5\u652f\u6301\u66f4\u591a\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u73b0\u3002 3.0.0 \u4e0d\u518d\u652f\u6301\u7248\u672c\u7684\u7ba1\u7406\u3002\u5177\u4f53\u8868\u73b0\u4e3a\u51e0\u4e2a\u5e38\u7528\u7684\u573a\u666f\uff1a</p> <ul> <li>\u5ba2\u6237\u7aef\u6307\u5b9a version-rule\uff0c\u6307\u660e\u53ea\u8c03\u7528\u670d\u52a1\u7aef\u7684\u67d0\u4e9b\u7248\u672c\uff1b</li> <li>\u5ba2\u6237\u7aef\u6839\u636e\u6bcf\u4e2a\u7248\u672c\u7684 Open API \u5b9a\u4e49\uff0c\u80fd\u591f\u533a\u5206\u67d0\u4e2a operation \u662f\u5426\u5b58\u5728\u4e8e\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u907f\u514d\u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u4e0d\u5b58\u5728\u8be5 operation \u7684\u5b9e\u4f8b\u3002</li> <li>Edge Service\u4e0d\u518d\u652f\u6301\u7248\u672c\u914d\u7f6e\u3002 \u5373\u53ea\u80fd\u914d\u7f6e /microservice/path\uff0c \u4e0d\u80fd\u914d\u7f6e /microservice/version-rule/path\u3002 \u7c7b\u4f3c\u7684\u573a\u666f\u53ef\u4ee5\u91c7\u7528\u7070\u5ea6\u53d1\u5e03\u6765\u89e3\u51b3\u3002</li> </ul>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_3","title":"\u5951\u7ea6\u52a0\u8f7d\u6d41\u7a0b\u53d8\u5316","text":"<ul> <li> <p>\u4f5c\u4e3a\u63d0\u4f9b\u8005\u7684\u5951\u7ea6\u52a0\u8f7d</p> <p>3.0.0\u7248\u672c\u63d0\u4f9b\u8005\u4e0d\u518d\u52a0\u8f7d\u672c\u5730\u5951\u7ea6\uff0c\u800c\u662f\u6839\u636e\u4ee3\u7801\u751f\u6210\u5951\u7ea6\uff0c\u5e76\u5c06\u751f\u6210\u7684\u5951\u7ea6\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\u3002\u505a\u8fd9\u4e2a\u53d8\u5316\u7684\u76ee\u7684\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u624b\u5199\u5951\u7ea6\u548c\u4ee3\u7801\u672c\u8eab\u751f\u6210\u5951\u7ea6\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u4f1a\u5bfc\u81f4\u4ee3\u7801\u8bed\u4e49\u9605\u8bfb\u56f0\u96be\uff0c\u5e26\u6765\u5f88\u591a\u9690\u85cf\u4e0d\u6613\u53d1\u73b0\u7684\u9519\u8bef\u3002\u800c\u8bed\u4e49\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u8fd9\u79cd\u4f7f\u7528\u65b9\u5f0f\u6ca1\u6709\u5b9e\u9645\u610f\u4e49\uff0c\u4f7f\u7528\u4ee3\u7801\u751f\u6210\u5951\u7ea6\u5f97\u5230\u4e00\u6837\u7684\u7ed3\u679c\u3002</p> </li> <li> <p>\u4f5c\u4e3a\u6d88\u8d39\u8005\u7684\u5951\u7ea6\u52a0\u8f7d</p> <p>3.0.0\u7248\u672c\u6d88\u8d39\u8005\u5951\u7ea6\u52a0\u8f7d\u6d41\u7a0b\u4e0d\u53d8\u3002\u4f18\u5148\u52a0\u8f7d\u672c\u5730\u5951\u7ea6\u3002</p> </li> </ul>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#1x","title":"1.x \u517c\u5bb9\u6027\u5220\u9664","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_4","title":"\u53c2\u6570\u4f4d\u7f6e\u5339\u914d","text":"<p>1.x \u548c 2.x \u7248\u672c\uff0c Java\u4ee3\u7801\u751f\u6210\u5951\u7ea6\u540e\uff0c\u5951\u7ea6\u7684\u53c2\u6570\u4e2a\u6570\u548c\u987a\u5e8f\u53ef\u4ee5\u4fdd\u6301Java\u4ee3\u7801\u7684Method\u4e00\u81f4\u3002Java Chassis 2.x \u57fa\u4e8e\u5951\u7ea6\uff0c\u9ed8\u8ba4\u6839\u636e\u53c2\u6570\u540d\u79f0\u4ece\u5951\u7ea6\u4e2d\u67e5\u627e\u662f\u5426\u5b58\u5728\u8be5\u53c2\u6570\u3002 \u4f46\u662f1.x\u7248\u672c\uff0c\u4e0d\u662f\u57fa\u4e8e\u540d\u79f0\u67e5\u627e\u7684\uff0c\u800c\u662f\u57fa\u4e8e\u53c2\u6570\u4f4d\u7f6e\u67e5\u627e\u7684\u3002 \u6240\u4ee5\u5728\u90e8\u5206\u53c2\u6570\u540d\u79f0\u4e0d\u5339\u914d\u7684\u60c5\u51b5\u4e0b\uff0c2.x\u505a\u4e86\u4e00\u4e9b\u517c\u5bb9\u6027\u5904\u7406\uff0c\u5229\u7528\u4e86Open API 2.0\u53ef\u4ee5\u4fdd\u8bc1\uff08\u6700\u5927\u9650\u5ea6\uff0c\u975e\u786e\u5b9a\u6027\u7b97\u6cd5\uff09\u987a\u5e8f\u7684\u673a\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f4d\u7f6e\u5339\u914d\u5230\u53c2\u6570\u3002Open API 3.0.0\u7684\u53c2\u6570\u57fa\u4e8e\u540d\u79f0\uff0c\u5e76\u4e14\u4e0d\u5728\u4fdd\u8bc1\u548cJava\u7684Method\u53c2\u6570\u4f4d\u7f6e\u4e00\u81f4\uff0c\u56e0\u6b643.0.0\u7248\u672c\u4e0d\u5728\u652f\u6301\u8fd9\u4e2a\u53c2\u6570\u4f4d\u7f6e\u5339\u914d\u7684\u67e5\u627e\u573a\u666f\u3002  \u5728\u5b9a\u4e49\u53c2\u6570\u7684\u65f6\u5019\uff0c\u9700\u8981\u4fdd\u8bc1Java\u7684Method\u53c2\u6570\u540d\u79f0\uff08\u6216\u8005\u901a\u8fc7annotation\u58f0\u660e\u7684\u53c2\u6570\u540d\u79f0\uff09\u4e0e\u5951\u7ea6\u7684\u540d\u79f0\u4e00\u81f4\u3002\uff08Parameter\u4f7f\u7528name\u5c5e\u6027\uff1bRequestBody\u4f7f\u7528\u6269\u5c55\u5c5e\u6027x-name\uff0c\u5982\u679c\u662fform\u683c\u5f0f\uff0c\u5219\u4f7f\u7528Property\u7684key\u4f5c\u4e3a\u540d\u79f0\u3002\uff09</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#rest-open-api","title":"REST \u548c Open API\u5e38\u89c1\u4e0d\u517c\u5bb9\u95ee\u9898","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#collectionformat","title":"collectionFormat","text":"<p>collectionFormat \u5728 2.0 \u7528\u6765\u8868\u793a Query \u53c2\u6570\u7684\u5f62\u5f0f\u3002 \u5728 3.0 \u540e\uff0c \u4e0d\u518d\u652f\u6301  tsv \u548c jason \u683c\u5f0f\u3002 \u800c\u662f\u6307\u5b9a style \u548c explode\u3002 \u8be6\u7ec6\u53c2\u8003\uff1a https://swagger.io/docs/specification/serialization/</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#springmvc","title":"SpringMVC\u3000\u53d8\u66f4\u9879","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#requestattribute-requestparam","title":"@RequestAttribute \u548c @RequestParam \u6807\u7b7e","text":"<p>\u5728 servicecomb \u7684\u5f00\u53d1\u6307\u5357\u91cc\u9762\uff0c @RequestAttribute \u6807\u7b7e\u63cf\u8ff0\u4e3a\u4e0d\u652f\u6301\u3002 \u4f46\u662f\u5b9e\u9645\u7528\u6237\u4f7f\u7528\u5e76\u4e0d\u4f1a\u62a5\u9519\uff0c\u800c\u4e14\u5c06\u8fd9\u4e2a\u6620\u5c04\u4e3aHTTP\u7684form\u53c2\u6570\u3002 3.0.0 \u91c7\u7528 @RequestAttribute \u8868\u793a form \u53c2\u6570\uff0c @RequestParam \u8868\u793a query\u53c2\u6570\u3002</p> <p>\u5728\u4f7f\u7528\u4e0a\u9700\u8981\u6ce8\u610f\u4e0espring web\u539f\u751f\u884c\u4e3a\u7684\u5dee\u5f02\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#asyncresttemplate","title":"\u4e0d\u5728\u652f\u6301 AsyncRestTemplate","text":"<p>Spring 6 \u5220\u9664\u4e86 AsyncRestTemplate \u652f\u6301\uff0c Java Chassis 3.0.0 \u4e5f\u5220\u9664\u4e86\u652f\u6301\u3002 \u76f8\u5173\u4ee3\u7801\u9700\u8981\u4f7f\u7528 <code>CompletableFuture</code> \u5f02\u6b65\u4ee3\u7801\u66ff\u6362\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#log4j-logback","title":"\u79fb\u9664 log4j , logback \u7684\u5c01\u88c5","text":"<p>Java Chassis \u7cfb\u7edf\u5185\u90e8\u5168\u90e8\u91c7\u7528 <code>slf4j</code> \u8bb0\u5f55\u65e5\u5fd7\uff0c \u4e0d\u518d\u63d0\u4f9b log4j \u7684\u5c01\u88c5\u529f\u80fd\uff0c \u5220\u9664\u4e86 Log4jUtils \u7b49\u7c7b\u3002 \u5982\u679c\u4f7f\u7528\u4e86 Log4jUtils \u7c7b\u6765\u521d\u59cb\u5316\u65e5\u5fd7\uff0c \u53ef\u4ee5\u53c2\u8003 \u914d\u7f6e\u65e5\u5fd7 \u6765\u8bbe\u7f6e\u7cfb\u7edf\u65e5\u5fd7\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#bizkeeper","title":"\u79fb\u9664 bizkeeper \u5904\u7406\u94fe","text":"<p>Java Chassis \u65e9\u671f\u7248\u672c\u57fa\u4e8e <code>Hystrix</code> \u63d0\u4f9b\u4e86\u57fa\u4e8e\u65b9\u6cd5\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b\uff0c\u7531\u4e8e\u793e\u533a\u5df2\u7ecf\u505c\u6b62 <code>Hystrix</code> \u7ef4\u62a4\uff0c\u5e76\u4e14 <code>bizkeeper</code> \u8bbe\u8ba1\u4e0a\u4e0d\u80fd\u5f88\u597d\u7684\u6ee1\u8db3\u573a\u666f\u7684\u6545\u969c\u6a21\u5f0f\u4fdd\u62a4\uff0c 3.0.0 \u7248\u672c\u5220\u9664\u4e86\u8fd9\u4e2a\u6a21\u5757\u3002 \u670d\u52a1\u6cbb\u7406\u53ef\u4ee5\u4f7f\u7528\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u6765\u5b9e\u73b0\uff0c\u8fc7\u8f7d\u4fdd\u62a4\u7684\u6700\u4f73\u5904\u7406\u65b9\u6848\u662f\u914d\u7f6e\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\u3002</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_5","title":"\u79fb\u9664\u5b9e\u4f8b\u9694\u79bb\u529f\u80fd","text":"<p>Java Chassis 3.0.0 \u4e0d\u518d\u652f\u6301\u4e0b\u9762\u7684\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  loadbalance:\n    isolation:\n      enabled: false\n      errorThresholdPercentage: 0\n      enableRequestThreshold: 5\n      singleTestTime: 60000\n      continuousFailureThreshold: 5\n      maxSingleTestWindow: 60000 # \u4e3a\u4e86\u4fdd\u8bc1\u5728\u5e76\u53d1\u60c5\u51b5\u4e0b\u53ea\u6709\u4e00\u4e2a\u5b9e\u4f8b\u653e\u901a\uff0c\u4f1a\u9501\u5b9a\u653e\u901a\u5b9e\u4f8b\u3002\u8fd9\u4e2a\u65f6\u95f4\u8868\u793a\u6700\u5927\u9501\u5b9a\u65f6\u95f4\u3002\n      minIsolationTime: 3000 # \u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\u5e76\u53d1\u60c5\u51b5\u4e0b\uff0c\u5b9e\u4f8b\u9694\u79bb\u540e\u8fdb\u884c\u4e2d\u7684\u8bf7\u6c42\u53ef\u80fd\u5feb\u901f\u5237\u65b0\u9694\u79bb\u72b6\u6001\uff0c\u589e\u52a0\u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\n      recoverImmediatelyWhenSuccess: true # \u653e\u901a\u5b9e\u4f8b\uff0c\u5982\u679c\u8c03\u7528\u6210\u529f\uff0c\u7acb\u5373\u6e05\u9664\u7edf\u8ba1\u72b6\u6001\uff0c\u4fdd\u8bc1\u540e\u7eed\u8bf7\u6c42\u80fd\u591f\u4f7f\u7528\u8be5\u5b9e\u4f8b\u3002 2.1.3 \u65b0\u589e\u3002\n</code></pre> <p>\u5355\u5b9e\u4f8b\u6545\u969c\u9632\u62a4\u53ef\u4ee5\u4f7f\u7528\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u6765\u5b9e\u73b0\uff0c\u542f\u7528\u5ba2\u6237\u7aef\u7194\u65ad\u548c\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\u3002</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#archaius","title":"\u79fb\u9664 archaius","text":"<p>Java Chassis \u65e9\u671f\u7248\u672c\u57fa\u4e8earchaius\u5b9e\u73b0\u52a8\u6001\u914d\u7f6e\uff0c \u7531\u4e8e\u8fd9\u4e2a\u8f6f\u4ef6\u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\uff0c 3.0.0\u79fb\u9664\u4e86\u8fd9\u4e2a\u4f9d\u8d56\uff0c\u5b8c\u6210\u96c6\u6210\u548c\u4f7f\u7528 Spring Boot\u914d\u7f6e\u673a\u5236\u3002 \u610f\u5473\u7740\u4e1a\u52a1 \u4f7f\u7528 DynamicPropertyFactory \u7b49 archaius API\u8bfb\u53d6\u914d\u7f6e\u7684\u5730\u65b9\uff0c\u9700\u8981\u4f7f\u7528 Spring Boot \u7684 Environment API\u3002 Java Chassis\u4ecd\u7136\u4fdd\u7559\u4e86 DynamicProperties  \u63a5\u53e3\uff0c @InjectProperty\u7684\u914d\u7f6e\u4f7f\u7528\u65b9\u5f0f\uff0c \u80fd\u591f\u66f4\u52a0\u65b9\u4fbf\u7684\u4f7f\u7528\u52a8\u6001\u914d\u7f6e\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_6","title":"\u591a\u79cd\u5e8f\u5217\u5316\u652f\u6301","text":"<p>3.0.0\u7248\u672c\u652f\u6301REST\u98ce\u683c\u591a\u79cd\u5e8f\u5217\u5316\u652f\u6301\uff0c\u5728application/json\u57fa\u7840\u4e4b\u4e0a\uff0c\u652f\u6301text/plain, application/protobuf\u652f\u6301\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#archetypes","title":"\u63d0\u4f9b\u65b0\u7684 archetypes \u63d2\u4ef6","text":"<p>TODO</p>"},{"location":"general-development/AlarmEvent.html","title":"\u76d1\u542c\u544a\u8b66\u4e8b\u4ef6","text":""},{"location":"general-development/AlarmEvent.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>Java-Chassis \u4f1a\u5728\u8fd0\u884c\u671f\u95f4\u629b\u51fa\u4e00\u4e9b\u4e0e\u5fae\u670d\u52a1\u6cbb\u7406\u76f8\u5173\u7684\u544a\u8b66\u4e8b\u4ef6\uff0c\u5f53\u524d\u6d89\u53ca\u7684\u573a\u666f\u5305\u62ec\uff1a</p> <ul> <li>\u670d\u52a1\u7194\u65ad</li> <li>\u5b9e\u4f8b\u9694\u79bb</li> </ul> <p>\u7528\u6237\u53ef\u4ee5\u81ea\u884c\u6269\u5c55\u544a\u8b66\u4e8b\u4ef6\u76d1\u542c\u5668\uff0c\u83b7\u53d6\u76f8\u5173\u4e8b\u4ef6\u3002</p>"},{"location":"general-development/AlarmEvent.html#_3","title":"\u544a\u8b66\u4e8b\u4ef6\u5217\u8868","text":"\u4e8b\u4ef6 \u4e8b\u4ef6\u5c5e\u6027 \u5c5e\u6027\u8bf4\u660e CircutBreakerEvent\u670d\u52a1\u7194\u65ad\u4e8b\u4ef6 type \u4e8b\u4ef6\u7c7b\u578b\uff0c\u5305\u542b`OPEN`/`CLOSE`\u4e24\u4e2a\u679a\u4e3e\u503c\uff0c\u5206\u522b\u8868\u793a\u4e8b\u4ef6\u53d1\u751f\u548c\u4e8b\u4ef6\u6062\u590d role \u7194\u65ad\u4e8b\u4ef6\u53d1\u751f\u65f6\u672c\u670d\u52a1\u5b9e\u4f8b\u7684\u89d2\u8272\uff0c\u6709`CONSUMER`/`PRODUCER`\u4e24\u79cd\u53d6\u503c microservice \u88ab\u7194\u65ad\u7684\u670d\u52a1\u540d schema \u88ab\u7194\u65ad\u7684\u670d\u52a1\u7684\u5951\u7ea6ID operation \u88ab\u7194\u65ad\u7684\u670d\u52a1\u7684\u65b9\u6cd5\u540d currentTotalRequest \u5f53\u524d\u603b\u8bf7\u6c42\u6570 currentErrorCount \u5f53\u524d\u8bf7\u6c42\u51fa\u9519\u8ba1\u6570 currentErrorPercentage \u5f53\u524d\u8bf7\u6c42\u51fa\u9519\u767e\u5206\u6bd4 requestVolumeThreshold 10s\u5185\u8bf7\u6c42\u6570\u9700\u8981\u5927\u4e8e\u7b49\u4e8e\u8fd9\u4e2a\u53c2\u6570\u503c\uff0c\u624d\u5f00\u59cb\u8ba1\u7b97\u9519\u8bef\u7387\u548c\u5224\u65ad\u662f\u5426\u8fdb\u884c\u7194\u65ad sleepWindowInMilliseconds \u7194\u65ad\u6548\u679c\u7ef4\u6301\u65f6\u95f4 errorThresholdPercentage \u9519\u8bef\u7387\u9608\u503c\uff0c\u8fbe\u5230\u6b64\u9608\u503c\u5219\u89e6\u53d1\u7194\u65ad IsolationServerEvent\u5b9e\u4f8b\u9694\u79bb\u4e8b\u4ef6 type \u4e8b\u4ef6\u7c7b\u578b\uff0c\u5305\u542b`OPEN`/`CLOSE`\u4e24\u4e2a\u679a\u4e3e\u503c\uff0c\u5206\u522b\u8868\u793a\u4e8b\u4ef6\u53d1\u751f\u548c\u4e8b\u4ef6\u6062\u590d microserviceName \u88ab\u9694\u79bb\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u540d endpoint \u88ab\u9694\u79bb\u5b9e\u4f8b\u7684endpoint\u4fe1\u606f instance \u88ab\u9694\u79bb\u5b9e\u4f8b\u7684\u5b9e\u4f8b\u4fe1\u606f\uff0c\u7c7b\u578b\u4e3a<code>org.apache.servicecomb.serviceregistry.api.registry.MicroserviceInstance</code> currentTotalRequest \u5f53\u524d\u5b9e\u4f8b\u603b\u8bf7\u6c42\u6570 currentCountinuousFailureCount \u5f53\u524d\u5b9e\u4f8b\u8fde\u7eed\u51fa\u9519\u6b21\u6570 currentErrorPercentage \u5f53\u524d\u5b9e\u4f8b\u51fa\u9519\u767e\u5206\u6bd4 minIsolationTime \u5b9e\u4f8b\u9694\u79bb\u6548\u679c\u7ef4\u6301\u7684\u6700\u77ed\u4e8b\u4ef6\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 enableRequestThreshold \u5f00\u542f\u5b9e\u4f8b\u9694\u79bb\u72b6\u6001\u7edf\u8ba1\u7684\u9608\u503c\uff0c\u603b\u8bf7\u6c42\u6b21\u6570\u8d85\u8fc7\u6b64\u9608\u503c\u65f6\u5f00\u59cb\u8ba1\u7b97\u8bf7\u6c42\u5931\u8d25\u60c5\u51b5\uff0c\u5224\u65ad\u662f\u5426\u9694\u79bb\u5b9e\u4f8b continuousFailureThreshold \u8fde\u7eed\u8bf7\u6c42\u5931\u8d25\u9608\u503c\uff0c\u5728\u8fde\u7eed\u8bf7\u6c42\u5931\u8d25\u6b21\u6570\u89e6\u53d1\u9694\u79bb\u7684\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u4e00\u4e2a\u5b9e\u4f8b\u8fde\u7eed\u8c03\u7528\u5931\u8d25\u6b21\u6570\u8d85\u8fc7\u6b64\u9608\u503c\u5219\u88ab\u9694\u79bb errorThresholdPercentage \u8bf7\u6c42\u9519\u8bef\u7387\u9608\u503c\uff0c\u5728\u8bf7\u6c42\u9519\u8bef\u7387\u89e6\u53d1\u9694\u79bb\u7684\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u4e00\u4e2a\u5b9e\u4f8b\u7684\u8bf7\u6c42\u5931\u8d25\u7387\u8d85\u8fc7\u6b64\u9608\u503c\u5219\u88ab\u9694\u79bb singleTestTime \u5b9e\u4f8b\u9694\u79bb\u6548\u679c\u7ef4\u6301\u65f6\u95f4"},{"location":"general-development/AlarmEvent.html#_4","title":"\u4f7f\u7528\u53c2\u8003","text":"<ul> <li>\u5b9a\u4e49\u544a\u8b66\u4e8b\u4ef6\u76d1\u542c\u5668</li> </ul> <pre><code>public class AlarmListener {\n  @Subscribe\n  public void onAllKindsOfEvent(AlarmEvent event) {\n    // \u76d1\u542c\u544a\u8b66\u4e8b\u4ef6\u7684\u57fa\u7c7b\u4ee5\u83b7\u53d6\u6240\u6709\u79cd\u7c7b\u7684\u544a\u8b66\u4e8b\u4ef6\n  }\n\n  @Subscribe\n  public void onCircutBreakerEvent(CircutBreakerEvent event) {\n    // \u4ec5\u76d1\u542c\u670d\u52a1\u7194\u65ad\u4e8b\u4ef6\n  }\n\n  @Subscribe\n  public void onIsolationServerEvent(IsolationServerEvent event) {\n    // \u4ec5\u76d1\u542c\u5b9e\u4f8b\u9694\u79bb\u4e8b\u4ef6\n  }\n}\n</code></pre> <p>\u4e8b\u4ef6\u76d1\u542c\u5668\u793a\u4f8b\u5982\u4e0a\u6240\u793a\uff0c\u76d1\u542c\u5668\u91cc\u7684\u4e09\u4e2a\u65b9\u6cd5\u5206\u522b\u7528\u4e8e\u76d1\u542c\u5168\u90e8\u544a\u8b66\u4e8b\u4ef6\u3001\u4ec5\u76d1\u542c\u670d\u52a1\u7194\u65ad\u4e8b\u4ef6\u3001\u4ec5\u76d1\u542c\u5b9e\u4f8b\u9694\u79bb\u4e8b\u4ef6\u3002 \u6ce8\u610f\uff0c\u76d1\u542c\u5668\u91cc\u7684\u4e09\u4e2a\u65b9\u6cd5\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u4f7f\u7528\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u8eab\u9700\u8981\uff0c\u81ea\u884c\u51b3\u5b9a\u9700\u8981\u5728\u76d1\u542c\u5668\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u3002</p> <ul> <li>\u5728<code>EventBus</code>\u4e2d\u6ce8\u518c\u4e8b\u4ef6\u76d1\u542c\u5668</li> </ul> <pre><code>EventManager.getEventBus().register(receiveEvent);\n</code></pre>"},{"location":"general-development/CORS.html","title":"\u8de8\u57df\u8d44\u6e90\u5171\u4eab(CORS)","text":""},{"location":"general-development/CORS.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u8de8\u57df\u8d44\u6e90\u5171\u4eab(CORS, Cross-Origin Resource Sharing)\u5141\u8bb8\u6d4f\u89c8\u5668\u5b89\u5168\u7684\u8fdb\u884c\u8de8\u57df\u8d44\u6e90\u8bbf\u95ee\u3002</p>"},{"location":"general-development/CORS.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u5f53\u7528\u6237\u9700\u8981\u4ece\u6d4f\u89c8\u5668\u4e0a\u8de8\u57df\u53d1\u9001REST\u8bf7\u6c42\u65f6\u5c31\u6709\u53ef\u80fd\u8981\u7528\u5230CORS\u673a\u5236\uff0c\u63a5\u6536\u8de8\u57df\u8bf7\u6c42\u7684\u5fae\u670d\u52a1\u9700\u8981\u5f00\u542fCORS\u652f\u6301\u3002</p>"},{"location":"general-development/CORS.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>CORS\u529f\u80fd\u5728microservice.yaml\u6587\u4ef6\u4e2d\u914d\u7f6e\uff0c\u914d\u7f6e\u9879\u89c1\u4e0b\u8868\u6240\u8ff0\u3002</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.cors.enabled <code>false</code> <code>true</code>/<code>false</code> \u5426 \u662f\u5426\u5f00\u542fCORS\u529f\u80fd - servicecomb.cors.origin <code>*</code> - \u5426 Access-Control-Allow-Origin \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.allowCredentials <code>false</code> <code>true</code>/<code>false</code> \u5426 Access-Control-Allow-Credentials \u6839\u636eCORS\u6807\u51c6\uff0c\u5f53Access-Control-Allow-Credentials\u8bbe\u7f6e\u4e3a<code>true</code>\u65f6\uff0cAccess-Control-Allow-Origin\u4e0d\u53ef\u8bbe\u7f6e\u4e3a\"*\"\uff0c\u5426\u5219\u5c06\u4f1a\u629b\u51fa\u5f02\u5e38 servicecomb.cors.allowedHeader \u65e0 - \u5426 Access-Control-Allow-Headers \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.allowedMethod \u65e0 - \u5426 Access-Control-Allow-Methods \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.exposedHeader \u65e0 - \u5426 Access-Control-Expose-Headers \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.maxAge \u65e0 (0,2147483647]\uff0c\u6574\u578b \u5426 Access-Control-Max-Age \u5355\u4f4d\u662f\u79d2\uff0c\u5982\u679c\u7528\u6237\u4e0d\u914d\u7f6e\u6b64\u9879\uff0c\u5219CORS\u5e94\u7b54\u4e2d\u6ca1\u6709Access-Control-Max-Age"},{"location":"general-development/CORS.html#_4","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u5141\u8bb8\u6240\u6709\uff1a</p> <pre><code>servicecomb:\n  cors:\n    enabled: true\n    origin: \"*\"\n    allowCredentials: false\n    allowedMethod: PUT,DELETE\n    maxAge: 3600\n</code></pre> <p>\u5141\u8bb8\u5355\u4e2aorigin\uff1a</p> <pre><code>servicecomb:\n  cors:\n    enabled: true\n    origin: \"http://test.domain:8080\"\n    allowCredentials: false\n    allowedMethod: PUT,DELETE\n    maxAge: 3600\n</code></pre> <p>\u914d\u7f6e\u591a\u4e2aorigin\uff1a</p> <pre><code>servicecomb:\n  cors:\n    enabled: true\n    origin: \"http://test.domain:8080,http://test.domain:9090\"\n    allowCredentials: false\n    allowedMethod: PUT,DELETE\n    maxAge: 3600\n</code></pre>"},{"location":"general-development/config-logs.html","title":"\u914d\u7f6e\u65e5\u5fd7","text":"<p>java chassis \u7cfb\u7edf\u5185\u90e8\u5168\u90e8\u91c7\u7528 <code>slf4j</code> \u8bb0\u5f55\u65e5\u5fd7\u3002 <code>slf4j</code> \u662f\u4e00\u5957\u65e5\u5fd7 API \u6807\u51c6\uff0c\u5177\u4f53\u5b9e\u73b0\u53ef\u4ee5\u7531 <code>log4j</code>, <code>log4j2</code>, <code>logback</code> \u7b49 \u63d0\u4f9b\u3002 java chassis \u9ed8\u8ba4\u6ca1\u6709\u63d0\u4f9b\u5b9e\u73b0\u7684\u4f9d\u8d56\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u9879\u4f9d\u8d56\u9002\u5408\u81ea\u5df1\u7684\u65e5\u5fd7\u5b9e\u73b0\uff0c \u4e0b\u9762\u7b80\u5355\u7684\u4ecb\u7ecd\u5982\u4f55\u5f15\u5165\u5e38\u89c1\u7684\u5b9e\u73b0\u3002</p> <ul> <li>log4j2</li> </ul> <p>\u4f7f\u7528 log4j2 \u9700\u8981\u5728\u9879\u76ee\u4e2d\u63d0\u4f9b\u5982\u4e0b\u4f9d\u8d56\u3002</p> <pre><code>&lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n      &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n      &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <ul> <li>logback</li> </ul> <p>\u4f7f\u7528 logback \u9700\u8981\u5728\u9879\u76ee\u4e2d\u63d0\u4f9b\u5982\u4e0b\u4f9d\u8d56\u3002</p> <pre><code>&lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;\n      &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p>\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\uff0c\u9700\u8981\u90e8\u7f72\u5927\u91cf\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u8c03\u7528\u60c5\u51b5\u590d\u6742\uff0c\u7ed9\u95ee\u9898\u5b9a\u4f4d\u5e26\u6765\u4e86\u5f88\u5927\u7684\u9ebb\u70e6\u3002 \u901a\u8fc7\u8c03\u7528\u94fe\u7cfb\u7edf\u80fd\u591f\u5f88\u597d\u7684\u89e3\u51b3\u65e5\u5fd7\u8ffd\u8e2a\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5bf9\u4e8e\u65e5\u5e38\u7684\u5f00\u53d1\u8c03\u8bd5\uff0c\u90e8\u7f72\u8c03\u7528\u94fe\u4ecd\u7136\u663e\u5f97\u590d\u6742\u3002 java-chassis \u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u673a\u5236\uff0c\u5141\u8bb8\u4e1a\u52a1\u5728\u8bb0\u5f55\u65e5\u5fd7\u7684\u65f6\u5019\uff0c\u5305\u542btrace id\u3002</p>"},{"location":"general-development/config-logs.html#trace-id","title":"\u5728\u65e5\u5fd7\u7cfb\u7edf\u4e2d\u8bb0\u5f55 trace id","text":"<p>\u53ef\u4ee5\u5728 log4j2 \u6216\u8005 logback \u4e2d\u4f7f\u7528 MDC \u7684\u65b9\u5f0f\u8bb0\u5f55 trace id\u3002</p> <p>log4j2\u7684\u914d\u7f6e\u5982\u4e0b\uff1a</p> <pre><code>  &lt;Appenders&gt;\n    &lt;Console name=\"Console\" target=\"SYSTEM_OUT\"&gt;\n      &lt;PatternLayout pattern=\"[%d][%t][%p][%c:%L][%X{SERVICECOMB_TRACE_ID}] %m%n\"/&gt;\n    &lt;/Console&gt;\n  &lt;/Appenders&gt;\n</code></pre> <p>logback\u7684\u914d\u7f6e\u5982\u4e0b:</p> <pre><code>  &lt;appender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\"&gt;\n    &lt;encoder&gt;\n      &lt;pattern&gt;%d [%level] [%thread][%X{SERVICECOMB_TRACE_ID}] - %msg (%F:%L\\)%n&lt;/pattern&gt;\n    &lt;/encoder&gt;\n  &lt;/appender&gt;\n</code></pre>"},{"location":"general-development/context.html","title":"\u4f7f\u7528Context\u4f20\u9012\u63a7\u5236\u6d88\u606f","text":"<p>Context \u7528\u4e8e\u5728\u5fae\u670d\u52a1\u4e4b\u95f4\u548c\u5fae\u670d\u52a1\u5185\u90e8\u4f20\u9012\u4e0a\u4e0b\u6587\u6570\u636e\u3002 Context \u662f key/value \u5bf9\uff0c\u53ea\u80fd\u591f\u4f7f\u7528 String \u7c7b\u578b\u3002 Context \u4f1a\u5e8f\u5217\u5316\u4e3a json \u683c\u5f0f\u5e76\u901a\u8fc7 HTTP Header \u4f20\u9012\uff0c\u56e0\u6b64\u4e5f\u4e0d\u652f\u6301 ASCII \u4e4b\u5916\u7684\u5b57\u7b26\uff0c\u5176\u4ed6\u5b57\u7b26\u9700\u8981\u5f00\u53d1\u8005\u5148\u81ea\u884c\u7f16\u7801\u518d\u4f20\u9012\u3002 Context \u5728\u4e00\u6b21\u8bf7\u6c42\u4e2d\uff0c\u4f1a\u5728\u8bf7\u6c42\u94fe\u4e0a\u4f20\u9012\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u8bbe\u7f6e\u3002access log\u7684 trace id \u7b49 \u529f\u80fd\u90fd\u57fa\u4e8e\u8fd9\u4e2a\u7279\u6027\u5b9e\u73b0\u7684\u3002</p> <p>Context \u4fdd\u5b58\u7684\u5185\u5bb9\u5206\u4e3a context \u548c localContext\u3002 localContext \u5728\u8c03\u7528\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5728\u8fdb\u7a0b\u5185\u90e8\u4f20\u9012\uff0c \u800c context \u7684\u5185\u5bb9\u4f1a\u4f20\u9012\u5230\u8c03\u7528\u8fc7\u7a0b\u4e2d \u8fdc\u7aef\u670d\u52a1\u3002 \u8fd9\u79cd\u4f20\u9012\u662f\u5355\u5411\u7684\u3002\u6bd4\u5982\u5728\u4e00\u4e2a Provider \u5185\u90e8\uff0c \u8c03\u7528\u63a5\u53e3\uff0c \u90a3\u4e48 localContext \u7684\u5185\u5bb9\u4f1a\u590d\u5236\u7ed9\u8c03\u7528\u63a5\u53e3\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u7684 localContext\uff0c \u5982\u679c\u8fd9\u4e2a\u63a5\u53e3\u5728\u8c03\u7528\u8fc7\u7a0b\u4e2d\u4fee\u6539\u4e86 localContext\uff0c \u63a5\u53e3\u8fd4\u56de\u540e\uff0c Provider \u540e\u7eed\u7684\u903b\u8f91\u5904\u7406\u770b\u4e0d\u5230\u5bf9\u4e8e context \u7684\u4fee\u6539\u3002 </p> <p>\u5728 Handler \u6216\u8005 Filter \u4e2d\u8c03\u7528\u5176\u4ed6\u5fae\u670d\u52a1\uff0c context \u4fe1\u606f\u9ed8\u8ba4\u4e0d\u4f1a\u590d\u5236\uff0c\u9700\u8981\u5f00\u53d1\u8005\u663e\u793a\u7684\u5c06 context \u4fe1\u606f\u4f20\u9012\u8fc7\u53bb\u3002 \u4f7f\u7528 RestTemplate \u6216\u8005 RPC \u65b9\u5f0f\u4f20\u9012 context \u7684\u4f8b\u5b50\uff0c\u8bf7\u53c2\u8003\u672c\u6587\u540e\u9762\u7684\u6848\u4f8b\u3002  </p>"},{"location":"general-development/context.html#context_1","title":"\u4f7f\u7528 Context \u7684\u573a\u666f","text":"<ul> <li>\u5728\u8ba4\u8bc1\u573a\u666f\uff0cEdge Service \u8ba4\u8bc1\u901a\u8fc7\u4ee5\u540e\uff0c\u9700\u8981\u5c06\u4f1a\u8bdd ID\u3001\u7528\u6237\u540d\u79f0\u7b49\u4fe1\u606f\u4f20\u9012\u7ed9\u5fae\u670d\u52a1\uff0c\u5b9e\u73b0\u9274\u6743\u7b49\u903b\u8f91\u3002</li> <li>\u7070\u5ea6\u53d1\u5e03\u573a\u666f\uff0c\u9700\u8981\u7ed3\u5408\u81ea\u5b9a\u4e49\u7684 tag \u5b9e\u73b0\u5f15\u6d41\uff0ctag \u4fe1\u606f\u9700\u8981\u4f20\u9012\u7ed9\u5fae\u670d\u52a1\u3002</li> <li>\u5f00\u53d1 Handler \u5904\u7406\u94fe\u7684\u65f6\u5019\uff0c\u4e00\u4e2a Handler \u9700\u8981\u5c06\u8ba1\u7b97\u7ed3\u679c\u4f20\u9012\u7ed9\u4e0b\u4e00\u4e2a Handler\u3002</li> </ul>"},{"location":"general-development/context.html#_1","title":"\u4f7f\u7528\u53c2\u8003","text":"<ul> <li> <p>\u5728 Hanlder \u4e2d\u83b7\u53d6\u548c\u8bbe\u7f6eContext     Handler \u5305\u542b\u4e86 Invocation \u5bf9\u8c61\uff0c\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528 invocation.addContext \u548c invocation.getContext \u3002</p> </li> <li> <p>\u5728\u670d\u52a1\u63a5\u53e3\u4e2d\u83b7\u53d6Context</p> <p>\u901a\u8fc7\u63a5\u53e3\u6ce8\u5165</p> <pre><code>```\npublic Response cseResponse(InvocationContext c1)\n```\n</code></pre> <p>\u6216\u8005</p> <pre><code>```\nContextUtils.getInvocationContext()\n```\n</code></pre> </li> <li> <p>\u5728Edge Service\u4e2d\u8bbe\u7f6eContext</p> <p>\u901a\u8fc7\u91cd\u8f7dEdgeInvocation</p> <pre><code>```\nEdgeInvocation edgeInvocation = new EdgeInvocation() {\n  protected void createInvocation() {\n    super.createInvocation();\n    this.invocation.addContext(\"hello\", \"world\");\n  }\n};\n```\n</code></pre> </li> </ul>"},{"location":"general-development/context.html#context-discoverytree","title":"\u6848\u4f8b\uff1a \u4f7f\u7528 Context \u548c DiscoveryTree \u5b9e\u73b0\u8f6e\u8be2\u8c03\u7528\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b","text":"<p>\u901a\u5e38\u5fae\u670d\u52a1\u7684\u8c03\u7528\uff0c\u662f\u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u8fd9\u4e2a\u5b9e\u4f8b\u662f\u6839\u636e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u51b3\u5b9a\u7684\uff0c\u4e1a\u52a1\u5f00\u53d1\u4e0d\u53ef\u63a7\u5236\u3002\u4e3a\u4e86\u5b9e\u73b0\u8f6e\u8be2\u8c03\u7528\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b\uff0c \u9996\u5148\u9700\u8981\u83b7\u53d6\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b\u5217\u8868\uff0c\u7136\u540e\u9010\u4e2a\u8c03\u7528\u3002 LoadBalance \u6a21\u5757\u652f\u6301\u901a\u8fc7 Context \u4f20\u9012 Endpoint \u4fe1\u606f\uff0c \u5982\u679c Endpoint \u5df2\u7ecf \u8bbe\u7f6e\uff0c \u53ef\u4ee5\u8df3\u8fc7\u8d1f\u8f7d\u5747\u8861\u5224\u65ad\uff0c \u4f7f\u7528\u7528\u6237\u81ea\u5df1\u6307\u5b9a\u7684 Endpoint\u3002 </p> <ul> <li> <p>\u4f7f\u7528 DiscoveryTree \u83b7\u53d6\u5fae\u670d\u52a1\u5b9e\u4f8b\u5217\u8868</p> <pre><code>```java\npublic class TestDateTimeSchema {\n  private DiscoveryTree discoveryTree = new DiscoveryTree();\n\n  public TestDateTimeSchema() {\n    discoveryTree.addFilter(new CustomEndpointDiscoveryFilter());\n    discoveryTree.sort();\n  }\n\n  private void testDateTimeSchemaMulticast() throws Exception {\n    DiscoveryContext context = new DiscoveryContext();\n    VersionedCache serversVersionedCache = discoveryTree.discovery(context, \"springmvctest\", \"springmvc\", \"0+\");\n    List&lt;String&gt; enpoints = serversVersionedCache.data(); // \u83b7\u53d6\u5230\u5b9e\u4f8b\u5217\u8868\uff0c\u53ef\u4ee5\u7ed9\u4e0b\u9762\u7684\u5904\u7406\u6d41\u7a0b\u4f7f\u7528\n  }\n}\n\npublic class CustomEndpointDiscoveryFilter extends AbstractEndpointDiscoveryFilter {\n  @Override\n  protected String findTransportName(DiscoveryContext context, DiscoveryTreeNode parent) {\n    //only need rest endpoints\n    return \"rest\";\n  }\n\n  @Override\n  protected Object createEndpoint(String transportName, String endpoint, MicroserviceInstance instance) {\n    return endpoint;\n  }\n\n  @Override\n  public int getOrder() {\n    return 0;\n  }\n}\n```\n</code></pre> <p>\u4e0a\u9762\u7684\u4ee3\u7801\u901a\u8fc7 DiscoveryTree \u53d1\u73b0\u5b9e\u4f8b\u5217\u8868\uff0c \u5e76\u4e14\u5b9e\u73b0\u4e86 CustomEndpointDiscoveryFilter \uff0c \u5c06\u53d1\u73b0\u7684\u5b9e\u4f8b\u4fe1\u606f\u8f6c\u6362\u4e3a cache \u7684\u8fd4\u56de \u7c7b\u578b\uff0c \u5373 String\u3002</p> </li> <li> <p>\u901a\u8fc7 InvocationContext \u4f20\u9012 Endpoint \u4fe1\u606f\u7ed9 Load Balance, \u6bcf\u6b21\u8c03\u7528\u8bbf\u95ee\u7528\u6237\u6307\u5b9a\u7684 Endpoint\u3002     \u8bbf\u95ee InvocationContext \u5206\u51e0\u79cd\u573a\u666f\uff0c \u53c2\u8003\u6587\u7ae0\u4e0a\u9762\u63d0\u5230\u7684\u60c5\u51b5\u3002 \u5728 Consumer \u8c03\u7528\u7684\u573a\u666f\u4e0b\uff0c \u53ef\u80fd\u4e0d\u5728\u4e00\u4e2a Provider \u7684\u5904\u7406\u4e0a\u4e0b\u6587\u4e2d\uff0c     \u8fd9\u4e2a\u65f6\u5019\u7cfb\u7edf\u4e2d\u8fd8\u6ca1\u6709 InvocationContext \u5b9e\u4f8b\uff0c \u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u65b0\u521b\u5efa\u4e00\u4e2a\u5b9e\u4f8b\uff0c \u65b0\u521b\u5efa\u7684\u5b9e\u4f8b\u4fe1\u606f\u4f1a\u590d\u5236\u5230\u7cfb\u7edf\u5185\u90e8\u3002 </p> <p>\u4f7f\u7528 RPC Consumer \u4f20\u9012 InvocationContext \u7684\u4f8b\u5b50\uff1a</p> <pre><code>```java\n  interface DateTimeSchemaWithContextInf {\n    Date getDate(InvocationContext context, Date date);\n  }\n\n  @RpcReference(microserviceName = \"springmvc\", schemaId = \"DateTimeSchema\")\n  private DateTimeSchemaWithContextInf dateTimeSchemaWithContextInf;\n\n  // code slip\n  for (String endpoint : enpoints) {\n    InvocationContext invocationContext = new InvocationContext();\n    invocationContext.addLocalContext(LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT, parseEndpoint(endpoint));\n    Date date = new Date();\n    TestMgr.check(date.getTime(), dateTimeSchemaWithContextInf.getDate(invocationContext, date).getTime());\n  }\n\n  // code slip\n  private Endpoint parseEndpoint(String endpointUri) throws Exception {\n    URI formatUri = new URI(endpointUri);\n    Transport transport = SCBEngine.getInstance().getTransportManager().findTransport(formatUri.getScheme());\n    return new Endpoint(transport, endpointUri);\n  }\n```\n</code></pre> <p>\u4f7f\u7528 RestTemplate \u4f20\u9012  InvocationContext \u7684\u4f8b\u5b50\uff1a</p> <pre><code>```\nfor (String endpoint : enpoints) {\n  CseHttpEntity&lt;?&gt; entity = new CseHttpEntity&lt;&gt;(null);\n  InvocationContext invocationContext = new InvocationContext();\n  invocationContext.addLocalContext(LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT, parseEndpoint(endpoint));\n  entity.setContext(invocationContext);\n\n  Date date = new Date();\n  String dateValue = RestObjectMapperFactory.getRestObjectMapper().convertToString(date);\n  TestMgr.check(date.getTime(),\n      restTemplate\n          .exchange(\"cse://springmvc/dateTime/getDate?date={1}\", HttpMethod.GET,\n              entity, Date.class, dateValue).getBody().getTime());\n \uff5d\n ```\n</code></pre> <p>\u6ce8\u610f\uff1a 2.0.2 \u7248\u672c\u5f00\u59cb\uff0c LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT \u4f20\u9012\u7684\u7c7b\u578b\u662f Endpoint, \u65e9\u671f\u7248\u672c\u53ef\u4ee5\u76f4\u63a5\u4f20\u9012 String \u7c7b\u578b\uff0c  LoadBalance \u6a21\u5757\u4f1a\u5c06 String \u7c7b\u578b\u8f6c\u6362\u4e3a Endpoint\u3002 \u5728\u6709\u5927\u91cf Endpoint \u7684\u60c5\u51b5\uff0c \u63d0\u524d\u4f7f\u7528 Endpoint \u7c7b\u578b\u80fd\u591f\u51cf\u5c11\u7c7b\u578b\u8f6c\u6362\uff0c\u8282\u7701\u5904\u7406\u65f6\u95f4\u3002</p> </li> </ul>"},{"location":"general-development/cross-app-invocation.html","title":"\u8de8\u5e94\u7528\u8c03\u7528","text":""},{"location":"general-development/cross-app-invocation.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5e94\u7528\u662f\u5fae\u670d\u52a1\u5b9e\u4f8b\u9694\u79bb\u5c42\u6b21\u4e2d\u7684\u4e00\u5c42\uff0c\u4e00\u4e2a\u5e94\u7528\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u5141\u8bb8\u540c\u5e94\u7528\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u76f8\u4e92\u8c03\u7528\u3002</p>"},{"location":"general-development/cross-app-invocation.html#_3","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u5f53\u7528\u6237\u9700\u8981\u4e0d\u540c\u5e94\u7528\u95f4\u7684\u5fae\u670d\u52a1\u76f8\u4e92\u8c03\u7528\u65f6\uff0c\u5c31\u9700\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u529f\u80fd\u3002</p>"},{"location":"general-development/cross-app-invocation.html#_4","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u82e5\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\uff0c\u9996\u5148\u9700\u5728provider\u7aef\u7684microservice.yaml\u6587\u4ef6\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u914d\u7f6e\u3002 \u6ce8\u610f\uff1a  \u9700\u8981\u5347\u7ea7\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff0c\u4ee5\u4fbf\u5728\u670d\u52a1\u4e2d\u5fc3\u91cd\u65b0\u6ce8\u518c\u5fae\u670d\u52a1\u4fe1\u606f  \u5373\u4f7f\u662fdevelopment\u5f00\u53d1\u73af\u5883\uff0c\u4e5f\u9700\u8981\u5347\u7ea7\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff0c\u56e0\u4e3adevelopment\u73af\u5883\u4e0b\uff0c\u4e5f\u53ea\u6709\u5951\u7ea6\u53d1\u751f\u53d8\u5316\uff0c\u624d\u4f1a\u91cd\u65b0\u6ce8\u518c\u5951\u7ea6</p> <p>\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</p> <pre><code>service_description:\n  # other configuration omitted\n  properties:\n    allowCrossApp: true # enable cross app invocation\n</code></pre> <p>consumer\u7aef\u6307\u5b9a\u5fae\u670d\u52a1\u540d\u79f0\u8c03\u7528provider\u7684\u65f6\u5019\uff0c\u9700\u8981\u52a0\u4e0aprovider\u6240\u5c5e\u7684\u5e94\u7528ID\uff0c\u683c\u5f0f\u53d8\u4e3a<code>[appID]:[microserviceName]</code>\u3002</p>"},{"location":"general-development/cross-app-invocation.html#_5","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u793a\u4f8b\u5047\u8bbeprovider\u6240\u5c5e\u5e94\u7528\u4e3ahelloApp\uff0c\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahelloProvider\uff1bconsumer\u6240\u5c5e\u5e94\u7528\u4e3ahelloApp2\uff0c\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahelloConsumer\u3002</p> <ul> <li>RestTemplate\u8c03\u7528\u65b9\u5f0f</li> </ul> <p>\u5f53consumer\u7aef\u4ee5RestTemplate\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u9700\u8981\u5728\u8c03\u7528\u7684URL\u4e2d\u5c06<code>[microserviceName]</code>\u6539\u4e3a<code>[appID]:[microserviceName]</code>\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a   ```java     RestTemplate restTemplate = RestTemplateBuilder.create();</p> <pre><code>ResponseEntity&lt;String&gt; responseEntity = restTemplate\n    .getForEntity(\"cse://helloApp:helloProvider/hello/sayHello?name={name}\",\n        String.class, \"ServiceComb\");\n</code></pre> <p>```</p> <ul> <li>RPC\u8c03\u7528\u65b9\u5f0f</li> </ul> <p>\u5f53consumer\u7aef\u4ee5RPC\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u58f0\u660e\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u4ee3\u7406\u5982\u4e0b\uff1a   <code>java     @RpcReference(schemaId = \"hello\", microserviceName = \"helloApp:helloProvider\")     private Hello hello;</code>   \u8de8\u5e94\u7528\u8c03\u7528\u4e0e\u540c\u5e94\u7528\u4e0b\u8c03\u7528\u5fae\u670d\u52a1\u7684\u65b9\u5f0f\u76f8\u540c\uff1a   <code>java     hello.sayHello(\"ServiceComb\");</code></p>"},{"location":"general-development/customized-tracing.html","title":"\u81ea\u5b9a\u4e49\u8c03\u7528\u94fe\u6253\u70b9","text":""},{"location":"general-development/customized-tracing.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u63d0\u4f9b\u4e86\u670d\u52a1\u95f4\u8c03\u7528\u7684\u65f6\u5e8f\u4fe1\u606f\uff0c\u4f46\u670d\u52a1\u5185\u90e8\u7684\u94fe\u8def\u8c03\u7528\u4fe1\u606f\u5bf9\u5f00\u53d1\u8005\u540c\u6837\u91cd\u8981\uff0c\u5982\u679c\u80fd\u5c06\u4e24\u8005\u5408\u4e8c\u4e3a\u4e00\uff0c\u5c31\u80fd\u63d0\u4f9b\u66f4\u5b8c\u6574\u7684\u8c03\u7528\u94fe\uff0c\u66f4\u5bb9\u6613\u5b9a\u4f4d\u9519\u8bef\u548c\u6f5c\u5728\u6027\u80fd\u95ee\u9898\u3002</p>"},{"location":"general-development/customized-tracing.html#_2","title":"\u524d\u63d0\u6761\u4ef6","text":"<ul> <li>\u4f7f\u7528\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd\u9700\u8981\u9996\u5148\u914d\u7f6e\u5e76\u542f\u7528Java Chassis\u5fae\u670d\u52a1\u8c03\u7528\u94fe\u3002</li> </ul>"},{"location":"general-development/customized-tracing.html#_3","title":"\u6ce8\u610f\u4e8b\u9879","text":"<ul> <li>\u4f7f\u7528<code>@Span</code>\u6ce8\u91ca\u7684\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd\u53ea\u652f\u6301\u548cJava Chassis\u8c03\u7528\u8bf7\u6c42\u540c\u4e00\u7ebf\u7a0b\u7684\u65b9\u6cd5\u8c03\u7528\u3002</li> <li>\u6dfb\u52a0<code>@Span</code>\u6ce8\u91ca\u7684\u65b9\u6cd5\u5fc5\u987b\u662fSpring\u7ba1\u7406\u7684Bean\uff0c\u5426\u5219\u9700\u8981\u6309\u8fd9\u91cc\u63d0\u5230\u7684\u65b9\u6cd5\u914d\u7f6e\u3002</li> </ul>"},{"location":"general-development/customized-tracing.html#_4","title":"\u81ea\u5b9a\u4e49\u8c03\u7528\u94fe\u6253\u70b9","text":"<p>\u8be5\u529f\u80fd\u96c6\u6210\u4e86Zipkin\uff0c\u63d0\u4f9b<code>@Span</code>\u6ce8\u91ca\u4e3a\u9700\u8981\u8ffd\u8e2a\u7684\u65b9\u6cd5\u81ea\u5b9a\u4e49\u6253\u70b9\u3002Java Chassis\u5c06\u81ea\u52a8\u8ffd\u8e2a\u6240\u6709\u6dfb\u52a0<code>@Span</code>\u6ce8\u91ca\u7684\u65b9\u6cd5\uff0c\u628a\u6bcf\u4e2a\u65b9\u6cd5\u7684\u672c\u5730\u8c03\u7528\u4fe1\u606f\u4e0e\u670d\u52a1\u95f4\u8c03\u7528\u4fe1\u606f\u8fde\u63a5\u8d77\u6765\u3002</p>"},{"location":"general-development/customized-tracing.html#_5","title":"\u4f7f\u7528\u6b65\u9aa4:","text":""},{"location":"general-development/customized-tracing.html#_6","title":"\u6dfb\u52a0\u4f9d\u8d56","text":"<p>\u57fa\u4e8e ServiceComb Java Chassis \u7684\u5fae\u670d\u52a1\u53ea\u9700\u8981\u6dfb\u52a0\u5982\u4e0b\u4f9d\u8d56\u5230 pom.xml\uff1a</p> <pre><code>    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;tracing-zipkin&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n</code></pre>"},{"location":"general-development/customized-tracing.html#_7","title":"\u542f\u7528\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd {#\u914d\u7f6e\u8ffd\u8e2a\u5904\u7406\u548c\u6570\u636e\u6536\u96c6}","text":"<p>\u5728\u5e94\u7528\u5165\u53e3\u6216Spring\u914d\u7f6e\u7c7b\u4e0a\u6dfb\u52a0<code>@EnableZipkinTracing</code>\u6ce8\u91ca\uff1a</p> <pre><code>@SpringBootApplication\n@EnableZipkinTracing\npublic class ZipkinSpanTestApplication {\n  public static void main(String[] args) {\n    SpringApplication.run(ZipkinSpanTestApplication.class);\n  }\n}\n</code></pre>"},{"location":"general-development/customized-tracing.html#_8","title":"\u5b9a\u5236\u6253\u70b9","text":"<p>\u5728\u9700\u8981\u5b9a\u5236\u6253\u70b9\u7684\u65b9\u6cd5\u4e0a\u6dfb\u52a0<code>@Span</code>\u6ce8\u91ca\uff1a</p> <pre><code>@Component\npublic class SlowRepoImpl implements SlowRepo {\n  private static final Logger logger = LoggerFactory.getLogger(SlowRepoImpl.class);\n\n  private final Random random = new Random();\n\n  @Span\n  @Override\n  public String crawl() throws InterruptedException {\n    logger.info(\"in /crawl\");\n    Thread.sleep(random.nextInt(200));\n    return \"crawled\";\n  }\n}\n</code></pre> <p>\u5c31\u8fd9\u6837\uff0c\u901a\u8fc7\u4f7f\u7528<code>@Span</code>\u6ce8\u91ca\uff0c\u6211\u4eec\u542f\u52a8\u4e86\u57fa\u4e8e Zipkin \u7684\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd\u3002</p>"},{"location":"general-development/customized-tracing.html#_9","title":"\u5b9a\u5236\u4e0a\u62a5\u7684\u6570\u636e","text":"<p>\u901a\u8fc7\u81ea\u5b9a\u4e49\u6253\u70b9\u4e0a\u62a5\u7684\u8c03\u7528\u94fe\u5305\u542b\u4e24\u6761\u6570\u636e\uff1a</p> <ul> <li>span name \u9ed8\u8ba4\u4e3a\u5f53\u524d\u6ce8\u91ca\u7684\u65b9\u6cd5\u5168\u540d\u3002</li> <li>call.path \u9ed8\u8ba4\u4e3a\u5f53\u524d\u6ce8\u91ca\u7684\u65b9\u6cd5\u7b7e\u540d\u3002</li> </ul> <p>\u4f8b\u5982\uff0c\u4e0a\u8ff0\u4f8b\u5b50<code>SlowRepoImp</code>\u91cc\u4e0a\u62a5\u7684\u6570\u636e\u5982\u4e0b\uff1a</p> key value span name crawl call.path public abstract java.lang.String org.apache.servicecomb.tests.tracing.SlowRepo.crawl() throws java.lang.InterruptedException <p>\u5982\u679c\u9700\u8981\u5b9a\u5236\u4e0a\u62a5\u7684\u6570\u636e\u5185\u5bb9\uff0c\u53ef\u4ee5\u4f20\u5165\u81ea\u5b9a\u4e49\u7684\u53c2\u6570\uff1a</p> <pre><code>  public static class CustomSpanTask {\n    @Span(spanName = \"transaction1\", callPath = \"startA\")\n    public String invoke() {\n      return \"invoke the method\";\n    }\n  }\n</code></pre>"},{"location":"general-development/dnsconfig.html","title":"DNS\u81ea\u5b9a\u4e49\u914d\u7f6e","text":""},{"location":"general-development/dnsconfig.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u4f7f\u7528\u57df\u540d\u8fde\u63a5\u516c\u6709\u4e91\u6216\u8005\u4e09\u65b9\u7cfb\u7edf\u65f6\uff0c\u9700\u8981\u4f7f\u7528\u5230\u57df\u540d\u89e3\u6790\u7cfb\u7edf\u3002\u5728\u4e0d\u540c\u7684\u7cfb\u7edf\u3001\u4e0d\u540c\u7684\u6846\u67b6\u4f7f\u7528\u7684\u57df\u540d\u89e3\u6790\u673a\u5236\u90fd\u53ef\u80fd\u4e0d\u592a\u4e00\u6837\u3002\u6240\u4ee5\u6211\u4eec\u6709\u5fc5\u8981\u63d0\u4f9b\u4e00\u4e2a\u7edf\u4e00\u7684\u914d\u7f6e\u5165\u53e3\uff0c\u4ee5\u4fbf\u5f00\u53d1\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u81ea\u5b9a\u4e49DNS\u89e3\u6790\u673a\u5236\uff0c\u800c\u4e0d\u5b8c\u5168\u53d7\u5236\u4e8e\u7cfb\u7edf\u914d\u7f6e\u3002</p>"},{"location":"general-development/dnsconfig.html#dns","title":"DNS\u914d\u7f6e","text":"<p>DNS\u914d\u7f6e\u9879\u5199\u5728microservice.yaml\u6587\u4ef6\u4e2d\uff0c\u652f\u6301\u7edf\u4e00\u5236\u5b9a\u8bc1\u4e66\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0tag\u8fdb\u884c\u66f4\u7ec6\u7c92\u5ea6\u7684\u914d\u7f6e\uff0c\u6709tag\u7684\u914d\u7f6e\u4f1a\u8986\u76d6\u5168\u5c40\u914d\u7f6e\uff0c\u914d\u7f6e\u683c\u5f0f\u5982\u4e0b\uff1a</p> <pre><code>addressResolver.[tag].[property]\n</code></pre> <p>\u5e38\u89c1\u7684tag\u5982\u4e0b\u8868\uff1a   </p> \u9879\u76ee tag \u670d\u52a1\u4e2d\u5fc3 sc.consumer \u914d\u7f6e\u4e2d\u5fc3 cc.consumer \u770b\u677f\u4e2d\u5fc3 mc.consumer \u7528\u6237\u81ea\u5b9a\u4e49 self.tag <p>\u5404\u4e2aproperties\u8be6\u7ec6\u8bf4\u660e\uff08\u8bbe\u7f6eVertx DNS\u89e3\u6790\uff09    </p> <pre><code>addressResolver:\n  servers: 8.8.8.8,8.8.4.4   #\u5bf9\u5e94Linux /etc/resolv.conf\u7684nameserver,DNS\u670d\u52a1\u5668\u5730\u5740\uff0c\u652f\u6301\u914d\u7f6e\u591a\u4e2a\uff0c\u4ee5\u9017\u53f7\u9694\u5f00\n  ndots: 1                   #\u5bf9\u5e94linux /etc/resolv.conf\u91cc\u9762\u7684options: ndots, \u4f5c\u7528\u5c31\u662f\u5982\u679c\u7ed9\u7684\u57df\u540d\u91cc\u9762\u5305\u542b\u7684\u70b9\u7684\u4e2a\u6570\u5c11\u4e8e\u8be5\u9608\u503c\uff0c\u90a3\u4e48DNS\u89e3\u6790\u7684\u65f6\u5019\u5c31\u4f1a\u9ed8\u8ba4\u52a0\u4e0asearchDomains\u7684\u503c\uff0c\u8fd9\u4e2a\u5fc5\u987b\u548csearchDomains\u642d\u914d\u4f7f\u7528\uff0cLinux\u9ed8\u8ba4\u4e3a1\n  searchDomains: a,b,c       #\u5bf9\u5e94linux /etc/resolv.conf\u91cc\u9762\u7684search\uff0c\u548cndots\u642d\u914d\u4f7f\u7528\uff0c\u5982\u679c\u5f53\u524d\u57df\u540d\u7684\u70b9\u4e2a\u6570\u5c11\u4e8e\u8bbe\u7f6e\u503c\uff0c\u89e3\u6790\u65f6\u5c31\u4f1a\u628a\u8fd9\u4e9b\u503c\u6dfb\u52a0\u5230\u57df\u540d\u540e\u9762\u4e00\u8d77\u89e3\u6790\uff0c\u6bd4\u5982ndots\u8bbe\u7f6e\u7684\u4e3a4\uff0c\u5f53\u524d\u57df\u540d\u4e3aservicecomb.cn-north-1.myhwclouds.com\uff0c\u53ea\u6709\u4e09\u4e2a\u70b9\uff0c\u90a3\u4e48\u89e3\u6790\u7684\u65f6\u5019\u5c31\u4f1a\u81ea\u52a8\u52a0\u4e0aservicecomb.cn-north-1.myhwclouds.com.a\u53bb\u89e3\u6790\uff0c\u6ca1\u89e3\u6790\u51fa\u6765\u5728\u7528servicecomb.cn-north-1.myhwclouds.com.b\uff0c\u76f4\u5230\u80fd\u6700\u540e\u89e3\u6790\u51fa\u6765\n  optResourceEnabled: true   #optional record is automatically included in DNS queries\n  cacheMinTimeToLive: 0      #\u6700\u5c0f\u7f13\u5b58\u65f6\u95f4\n  cacheMaxTimeToLive: 10000  #\u6700\u5927\u7f13\u5b58\u65f6\u95f4\n  cacheNegativeTimeToLive: 0 #DNS\u89e3\u6790\u5931\u8d25\u540e\uff0c\u4e0b\u6b21\u91cd\u8bd5\u7684\u7b49\u5f85\u65f6\u95f4\n  queryTimeout: 5000         #\u67e5\u8be2\u8d85\u65f6\u65f6\u95f4\n  maxQueries: 4              #\u67e5\u8be2\u6b21\u6570\n  rdFlag: true               #\u8bbe\u7f6eDNS\u9012\u5f52\u67e5\u8be2\n  rotateServers: true        #\u8bbe\u7f6e\u662f\u5426\u652f\u6301\u8f6e\u8be2\n</code></pre>"},{"location":"general-development/dnsconfig.html#_2","title":"\u793a\u4f8b","text":"<pre><code>VertxOptions vertxOptions = new VertxOptions();\nvertxOptions.setAddressResolverOptions(AddressResolverConfig.getAddressResover(\"self.tag\"));\nVertx vertx = VertxUtils.getOrCreateVertxByName(\"registry\", vertxOptions);\n// this has to set the client options\nHttpClientOptions httpClientOptions = createHttpClientOptions();\nClientPoolManager&lt;HttpClientWithContext&gt; clientMgr = new ClientPoolManager&lt;&gt;(vertx, new HttpClientPoolFactory(httpClientOptions));\nclientMgr.findThreadBindClientPool().runOnContext(httpClient -&gt; {\n    // do some http request\n});\n</code></pre>"},{"location":"general-development/error-handling.html","title":"\u5f02\u5e38\u5904\u7406","text":""},{"location":"general-development/error-handling.html#_2","title":"\u5f02\u5e38\u5206\u7c7b\u53ca\u5ba2\u6237\u7aef\u5982\u4f55\u5224\u65ad\u5f02\u5e38\u7c7b\u578b","text":"<ul> <li>\u4e1a\u52a1\u5f02\u5e38\uff1a\u8fd9\u7c7b\u5f02\u5e38\u7531\u4e1a\u52a1\u63a5\u53e3\u5b9a\u4e49\u3002\u7528\u6237\u5728\u83b7\u53d6\u5230\u670d\u52a1swagger\u5b9a\u4e49\u7684\u65f6\u5019\uff0c\u5c31\u80fd\u591f\u4ece\u5b9a\u4e49\u4e2d\u770b\u5230\u8fd9\u7c7b\u5f02\u5e38\u5bf9   \u5e94\u7684\u9519\u8bef\u7801\uff0c\u4ee5\u53ca\u8fd4\u56de\u503c\u7c7b\u578b\u3002 \u4e0b\u9762\u7684\u4f8b\u5b50\u5c55\u73b0\u4e86\u4e1a\u52a1\u5b9a\u4e49\u5f02\u5e38\u3002<pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic MultiResponse200 errorCode(MultiRequest request) {\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.BAD_REQUEST, r);\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR, r);\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      return r;\n    }\n}\n</code></pre> </li> </ul> <p>\u6ce8\u610f\uff1a \u5bf9\u4e8e 2xx \u9519\u8bef\u7801\uff0c\u53ef\u4ee5\u8fd4\u56de\u5177\u4f53\u7684\u4e1a\u52a1 model\uff0c \u5bf9\u4e8e\u5176\u4ed6\u7684\u9519\u8bef\u7801\uff0c    \u5fc5\u987b\u629b\u51fa InvocationException\u3002 </p> <p>\u5ba2\u6237\u7aef\u4ee3\u7801\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u5904\u7406\u5f02\u5e38\u3002\u5f02\u5e38\u7684\u7c7b\u578b\u662f\u786e\u5b9a\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7cast\u83b7\u53d6\u5230\u5f02\u5e38\u7c7b\u578b\u3002</p> <pre><code>    MultiRequest request = new MultiRequest();\n\n    request.setCode(200);\n    ResponseEntity&lt;MultiResponse200&gt; result = template\n        .postForEntity(SERVER + \"/MultiErrorCodeService/errorCode\", request, MultiResponse200.class);\n    TestMgr.check(result.getStatusCode(), 200);\n    TestMgr.check(result.getBody().getMessage(), \"success result\");\n\n    request.setCode(400);\n    MultiResponse400 t400 = null;\n    try {\n      template.postForEntity(SERVER + \"/MultiErrorCodeService/errorCode\", request, MultiResponse400.class);\n    } catch (InvocationException e) {\n      t400 = (MultiResponse400) e.getErrorData();\n    }\n    TestMgr.check(t400.getCode(), 400);\n    TestMgr.check(t400.getMessage(), \"bad request\");\n\n    request.setCode(500);\n    MultiResponse500 t500 = null;\n    try {\n      template.postForEntity(SERVER + \"/MultiErrorCodeService/errorCode\", request, MultiResponse400.class);\n    } catch (InvocationException e) {\n      t500 = (MultiResponse500) e.getErrorData();\n    }\n    TestMgr.check(t500.getCode(), 500);\n    TestMgr.check(t500.getMessage(), \"internal error\");\n</code></pre> <ul> <li>\u63a7\u5236\u5f02\u5e38\uff1a\u8fd9\u7c7b\u5f02\u5e38\u901a\u5e38\u662f\u6846\u67b6\u5904\u7406\u6d41\u7a0b\u4e0a\u7684\u5f02\u5e38\u3002\u6bd4\u5982\u6d41\u63a7Handler\u629b\u51faTOO_MANY_REQUESTS_STATUS\u5f02\u5e38\u3002<pre><code>public class ConsumerQpsFlowControlHandler implements Handler {\n     ... ...\n     if (qpsController.isLimitNewRequest()) {\n      // return http status 429\n      CommonExceptionData errorData = new CommonExceptionData(\"rejected by qps flowcontrol\");\n      asyncResp.consumerFail(\n          new InvocationException(QpsConst.TOO_MANY_REQUESTS_STATUS, errorData));\n      return;\n    }\n\n    invocation.next(asyncResp);\n  }\n}\n</code></pre> </li> </ul> <p>\u63a7\u5236\u5f02\u5e38\u5728\u63a5\u53e3\u5b9a\u4e49\u91cc\u9762\u6ca1\u6709\u58f0\u660e\u3002\u5ba2\u6237\u7aef\u5728\u505a\u5f02\u5e38\u5904\u7406\u7684\u65f6\u5019\uff0c\u4e0d\u77e5\u9053\u5f02\u5e38\u7c7b\u578b\u3002\u53ef\u4ee5\u91c7\u7528\u5f31\u7c7b\u578b\u7684\u65b9\u5f0f\u5904\u7406\u5f02\u5e38\uff1a</p> <pre><code>    JsonObject requestJson = new JsonObject();\n    requestJson.put(\"code\", 400);\n    requestJson.put(\"message\", \"test message\");\n\n    try {\n      template\n          .postForEntity(SERVER + \"/MultiErrorCodeService/noClientErrorCode\", requestJson, Object.class);\n    } catch (InvocationException e) {\n      TestMgr.check(e.getStatusCode(), 400);\n      mapResult = RestObjectMapperFactory.getRestObjectMapper().convertValue(e.getErrorData(), Map.class);\n      TestMgr.check(mapResult.get(\"message\"), \"test message\");\n      TestMgr.check(mapResult.get(\"code\"), 400);\n      TestMgr.check(mapResult.get(\"t400\"), 400);\n    }\n</code></pre> <p>\u4e0a\u9762\u7684\u4ee3\u7801\u5047\u8bbe\u4e0d\u77e5\u9053\u5f02\u5e38\u7c7b\u578b\uff0c\u901a\u8fc7API\u5c06\u5f02\u5e38\u7c7b\u578b\u8f6c\u6362\u4e3aMap\u7c7b\u578b\uff0c\u7136\u540e\u4eceMap\u91cc\u9762\u8bfb\u53d6\u5f02\u5e38\u7c7b\u578b\u3002   ServiceComb\u81ea\u5df1\u629b\u51fa\u7684\u5f02\u5e38\u7c7b\u578b\u4e2d\uff0c\u4e00\u822c\u63a7\u5236\u5f02\u5e38\u7684\u7c7b\u578b\u4e5f\u662f\u56fa\u5b9a\u7684\uff0c\u4e3aCommonExceptionData\u3002</p> <ul> <li>\u672a\u77e5\u5f02\u5e38\uff1a\u8fd9\u7c7b\u5f02\u5e38\u53d1\u751f\u7684\u60c5\u51b5\u4e0d\u786e\u5b9a\u3002\u6bd4\u5982\u4e1a\u52a1\u4ee3\u7801\u5b9e\u73b0\u7684\u65f6\u5019\uff0c\u629b\u51faNullPointerException\u7b49\u672a\u6355\u83b7\u5f02\u5e38\u3001\u5e95\u5c42   \u7684\u7f51\u7edc\u8fde\u63a5\u8d85\u65f6\u5f02\u5e38\u7b49\u3002\u8fd9\u7c7b\u5f02\u5e38\u4f1a\u7531ServiceComb\u5c01\u88c5\u6210590\u6216\u8005490\u9519\u8bef\u8fd4\u56de\u3002\u6bd4\u5982\uff1a<pre><code>CommonExceptionData errorData = new CommonExceptionData(cause.getMessage());\nasyncResp.producerFail(new InvocationException(590, errorData)\n</code></pre> </li> </ul> <p>\u6216\u8005</p> <pre><code>    asyncResp.consumerFail(new InvocationException(490, errorData)\n</code></pre> <p>\u672a\u77e5\u5f02\u5e38\u6d88\u606f\u7684\u7c7b\u578b\u56fa\u5b9a\u4e3aCommonExceptionData\u7c7b\u578b\u3002</p>"},{"location":"general-development/error-handling.html#_3","title":"\u5f02\u5e38\u62e6\u622a\u5668","text":"<p>\u6709\u65f6\u5019\uff0c\u4e1a\u52a1\u9700\u8981\u5c06\u6240\u6709\u7684\u672a\u77e5\u5f02\u5e38\u3001\u63a7\u5236\u5f02\u5e38\u8fdb\u884c\u6355\u83b7\uff0c\u8f6c\u6362\u4e3a\u5bf9\u7528\u6237\u53cb\u597d\u7684\u6d88\u606f\u3002\u6216\u8005\u5bf9\u63a7\u5236\u5f02\u5e38\u8fdb\u884c\u6355\u83b7\uff0c\u5c06 \u6d88\u606f\u4f53\u8f6c\u6362\u4e3a\u81ea\u5b9a\u4e49\u7684JSON\u683c\u5f0f\u3002\u8fd9\u91cc\u9762\u6709\u51e0\u4e2a\u53c2\u8003\u70b9\u3002</p> <ul> <li> <p>\u901a\u8fc7 <code>ExceptionToProducerResponseConverter</code> \u62e6\u622a\u5f02\u5e38</p> <p><code>ExceptionToProducerResponseConverter</code>\u80fd\u591f\u62e6\u622a\u4e1a\u52a1\u5f02\u5e38\u4ee5\u53ca\u4e1a\u52a1\u5b9e\u73b0\u91cc\u9762\u629b\u51fa\u7684\u672a\u77e5\u5f02\u5e38\u3002\u4f46\u662f\u4e0d\u80fd\u62e6\u622a Handler\uff0cHttpServerFilter \u7b49\u629b\u51fa\u7684\u5f02\u5e38\u3002\u66f4\u52a0\u786e\u5207\u7684\u662f <code>ProducerOperationHandler</code> \u6355\u83b7\u7684\u5f02\u5e38\u90fd\u4f1a\u88ab <code>ExceptionToProducerResponseConverter</code> \u5904\u7406\u3002 <code>ExceptionToProducerResponseConverter</code> \u5305\u542b\u5982\u4e0b \u51e0\u4e2a\u63a5\u53e3\uff1a</p> <ul> <li><code>getExceptionClass()</code> \u5b9e\u73b0\u7c7b\u6240\u5904\u7406\u7684\u5f02\u5e38\u7c7b\u578b\u3002\u5982\u679c\u8be5\u65b9\u6cd5\u8fd4\u56de<code>null</code>\uff0c\u5219\u8bf4\u660e\u6b64\u5b9e\u73b0\u7c7b\u4e3a\u9ed8\u8ba4converter\u3002</li> <li><code>Response convert(SwaggerInvocation swaggerInvocation, T e)</code> \u5904\u7406\u5f02\u5e38\u903b\u8f91\uff0c\u8be5\u65b9\u6cd5\u8fd4\u56de\u7684<code>Response</code>\u51b3\u5b9a\u4e86ServiceComb\u5c06\u4f1a\u8fd4\u56de\u4f55\u79cd\u72b6\u6001\u7801\u3001\u4f55\u79cdresponse body\u7684\u5e94\u7b54\u3002</li> <li><code>getOrder()</code> \u5b9e\u73b0\u7c7b\u7684\u4f18\u5148\u7ea7\uff0c\u8be5\u65b9\u6cd5\u8fd4\u56de\u7684\u503c\u8d8a\u5c0f\uff0c\u4f18\u5148\u7ea7\u8d8a\u9ad8\uff0c\u5982\u679c\u4e0d\u8986\u5199\u8be5\u65b9\u6cd5\u7684\u8bdd\uff0c\u5219\u8fd4\u56de\u9ed8\u8ba4\u4f18\u5148\u7ea7<code>0</code>\u3002\u5bf9\u4e8e\u5904\u7406\u540c\u4e00\u5f02\u5e38\u7c7b\u578b\u7684converter\uff08\u6216\u9ed8\u8ba4converter\uff09\uff0c\u53ea\u6709\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u751f\u6548\u3002</li> </ul> </li> </ul> <p>\u5728\u4e3a\u5f02\u5e38\u9009\u62e9converter\u65f6\uff0c\u4f1a\u4ece\u5f02\u5e38\u672c\u8eab\u7684\u7c7b\u578b\u5f00\u59cb\u5339\u914d\uff0c\u5982\u679c\u627e\u4e0d\u5230\u5bf9\u5e94\u7684converter\u5219\u9010\u7ea7\u5411\u4e0a\u67e5\u627e\u7236\u7c7b\u578b\u7684converter\u3002\u5f53\u5339\u914d\u5230<code>Throwable</code>\u4ecd\u672a\u627e\u5230converter\u65f6\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4converter\u5904\u7406\u5f02\u5e38\u3002</p> <pre><code>    public class CustomExceptionToProducerResponseConverter implements ExceptionToProducerResponseConverter&lt;IllegalStateException&gt; {\n        @Override\n        public Class&lt;IllegalStateException&gt; getExceptionClass() {\n          // \u8fd4\u56deIllegalStateException\u8868\u793a\u8be5converter\u5904\u7406IllegalStateException\u7c7b\u578b\u7684\u5f02\u5e38\n          return IllegalStateException.class;\n        }\n\n        @Override\n        public int getOrder() {\n          // \u8fd4\u56de\u7684order\u503c\u8d8a\u5c0f\uff0c\u4f18\u5148\u7ea7\u8d8a\u9ad8\n          return 100;\n        }\n\n        @Override\n        public Response convert(SwaggerInvocation swaggerInvocation, IllegalStateException e) {\n          // \u8fd9\u91cc\u662f\u5904\u7406\u5f02\u5e38\u7684\u903b\u8f91\n          IllegalStateErrorData data = new IllegalStateErrorData();\n          data.setId(500);\n          data.setMessage(e.getMessage());\n          data.setState(e.getMessage());\n          InvocationException state = new InvocationException(Status.INTERNAL_SERVER_ERROR, data);\n          return Response.failResp(state);\n        }\n    }\n</code></pre> <p>\u8bf4\u660e : 2.0.2 \u4e4b\u524d\u7684\u7248\u672c\u90e8\u5206\u4e1a\u52a1\u5f02\u5e38\u65e0\u6cd5\u901a\u8fc7 ExceptionToProducerResponseConverter \u6355\u83b7\uff0c     \u7cfb\u7edf\u505a\u4e86\u81ea\u52a8\u5904\u7406\uff0c\u4e0d\u7ecf\u8fc7 ExceptionToProducerResponseConverter\u3002 2.0.2 \u7248\u672c\u89c4\u8303\u5316\u4e86\u5904\u7406\u6d41\u7a0b\u3002 </p> <ul> <li>\u63a7\u5236\u6d88\u606f\u6d88\u606f\u4f53\u5e8f\u5217\u5316</li> </ul> <p>\u63a7\u5236\u6d88\u606f\u6d88\u606f\u4f53\u5e8f\u5217\u5316\u7684\u76ee\u7684\u662f\u7b80\u5316\u6d88\u8d39\u8005\u7684\u5f02\u5e38\u5904\u7406\u903b\u8f91\uff0c\u4e0d\u7528\u4f7f\u7528\u5f31\u7c7b\u578b\uff0c\u800c\u662f\u4f7f\u7528\u786e\u5207\u7c7b\u578b\u3002\u53ef\u4ee5\u91c7\u7528\u6ce8\u518c\u5168\u5c40\u7684\u9519\u8bef\u7801\u7c7b\u578b\u3002   \u4e1a\u52a1\u9700\u8981\u901a\u8fc7SPI\u5b9e\u73b0org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper\u63a5\u53e3\u3002   \u63a5\u53e3\u7684\u6838\u5fc3\u5185\u5bb9\u662f\u4e3a\u6bcf\u4e2a\u9519\u8bef\u7801\u6307\u5b9a\u5e8f\u5217\u5316\u7c7b\u578b\uff1a</p> <pre><code>    private final static Map&lt;Integer, ResponseMeta&gt; CODES = new HashMap&lt;&gt;(1);\n\n    static {\n      ResponseMeta meta = new ResponseMeta();\n      meta.setJavaType(SimpleType.constructUnsafe(IllegalStateErrorData.class));\n      CODES.put(500, meta);\n    }\n\n    @Override\n    public Map&lt;Integer, ResponseMeta&gt; getMapper() {\n      return CODES;\n    }\n</code></pre>"},{"location":"general-development/file-download.html","title":"\u6587\u4ef6\u4e0b\u8f7d\u5f00\u53d1\u6307\u5bfc","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u901a\u7528\u7684 <code>\u6587\u4ef6\u4e0b\u8f7d</code> \u652f\u6301\u3002 \u5982\u679c\u8fd4\u56de\u503c\u7c7b\u578b\u4e3a <code>File</code>\u3001<code>Resource</code>\u3001<code>InputStream</code>\u3001<code>Part</code> \u7b49\uff0c\u5219\u88ab\u8ba4\u4e3a\u662f <code>\u6587\u4ef6\u4e0b\u8f7d</code>\u3002 \u6587\u4ef6MIME\u7c7b\u578b\u548c\u6587\u4ef6\u540d\u53ef\u4ee5\u4f7f\u7528 <code>Part</code> \u7684 API \u6307\u5b9a\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(path = \"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre>"},{"location":"general-development/file-download.html#_2","title":"\u670d\u52a1\u63d0\u4f9b\u8005\u5f00\u53d1","text":"<p>\u6587\u4ef6\u4e0b\u8f7d\u670d\u52a1\u7aef\u5b9a\u4e49\u5efa\u8bae\u4f7f\u7528 <code>Part</code>\uff0c \u5b83\u63d0\u4f9b\u4e86\u6700\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5305\u62ec\u6307\u5b9a\u6587\u4ef6\u540d\u3001\u6587\u4ef6\u5220\u9664\u7b56\u7565\u4ee5\u53ca\u6307\u5b9aContent-Type\u7b49\u3002 Java Chassis\u4e5f\u63d0\u4f9b\u4e86\u4e0b\u9762\u7684\u4e00\u4e9b\u7c7b\u578b\u652f\u6301\u3002 </p> <ul> <li>File</li> </ul> <p>\u6700\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u63a5\u53e3\u7684\u8fd4\u56de\u53c2\u6570\u58f0\u660e\u4e3a File \u7c7b\u578b\u7684\u53c2\u6570\uff0c \u5373\u53ef\u5b9a\u4e49\u4e00\u4e2a\u4e0b\u8f7d\u63a5\u53e3\u3002 </p> <pre><code>@GetMapping(path = \"/file\")\npublic File file(String name)\n</code></pre> <ul> <li>Resource</li> </ul> <p>\u53ef\u4ee5\u5c06\u63a5\u53e3\u58f0\u660e\u4e3a org.springframework.core.io.Resource\u3002 \u7531\u4e8eresource\u4e0d\u4e00\u5b9a\u8868\u793a\u6587\u4ef6\u4e0b\u8f7d\uff0c\u6240\u4ee5\u9700\u8981\u901a\u8fc7 @ApiResponse \u6807\u8bc6\u8fd9\u662f\u4e00\u4e2a\u6587\u4ef6\u4e0b\u8f7d\u573a\u666f</p> <p>\u4ee5ByteArrayResource\u4e3a\u4f8b\u8bf4\u660e\uff1a</p> <pre><code>@GetMapping(path = \"/resource\")\n@ApiResponses({\n  @ApiResponse(code = 200, response = File.class, message = \"\")\n})\npublic Resource resource() {\n  return new ByteArrayResource(bytes) {\n    @Override\n    public String getFilename() {\n      return \"resource.txt\";\n    }\n  };\n}\n</code></pre> <p>\u4e0a\u4f8b\u4e2d\uff0c\u56e0\u4e3aByteArrayResource\u6ca1\u6709\u6587\u4ef6\u540d\u7684\u6982\u5ff5\uff0c\u6240\u4ee5\u9700\u8981\u5b9e\u73b0Resource\u7684getFilename\u65b9\u6cd5\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7ResponseEntity\u8fdb\u884c\u5305\u88c5\uff1a</p> <pre><code>@GetMapping(path = \"/resource\")\n@ApiResponses({\n  @ApiResponse(code = 200, response = File.class, message = \"\")\n})\npublic ResponseEntity&lt;Resource&gt; resource() {\n  return ResponseEntity\n      .ok()\n      .header(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN_VALUE)\n      .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment;filename=resource.txt\")\n      .body(resource);\n}\n</code></pre> <ul> <li>InputStream</li> </ul> <p>\u4e00\u6837\u7684\uff0c \u4f7f\u7528 InputStream \u9700\u8981 @ApiResponse \u6807\u8bc6\u8fd9\u662f\u4e00\u4e2a\u6587\u4ef6\u4e0b\u8f7d\u573a\u666f</p> <pre><code>@GetMapping(path = \"/inputStream\")\n@ApiResponses({\n  @ApiResponse(code = 200, response = File.class, message = \"\"),\n})\npublic ResponseEntity&lt;InputStream&gt; download() throws IOException {\n    return ResponseEntity\n        .ok()\n        .header(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN_VALUE)\n        .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment;filename=resource.txt\")\n        .body(stream);\n}\n</code></pre> <p>\u5728\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0cServiceComb\u4f1a\u81ea\u52a8\u5173\u95edstream\uff0c\u5f00\u53d1\u4eba\u5458\u4e0d\u5fc5\u518d\u5173\u6ce8\u3002</p> <ul> <li>\u6587\u4ef6\u7c7b\u578b\u5224\u5b9a</li> </ul> <p>\u53ea\u8981\u6ca1\u6709\u901a\u8fc7ResponseEntity\u76f4\u63a5\u8bbe\u7f6eHttpHeaders.CONTENT_TYPE\uff0cJava Chassis\u90fd\u4f1a\u5c1d\u8bd5\u901a\u8fc7File\u3001Part\u3001Resource\u4e2d\u7684\u6587\u4ef6\u540d\u540e\u7f00\u8fdb\u884c\u81ea\u52a8\u5224\u5b9a\u3002</p> <p>Java Chassis\u4f7f\u7528java\u7684mime type\u673a\u5236\u8fdb\u884c\u6587\u4ef6\u7c7b\u578b\u5224\u5b9a\uff0c\u5982\u679c\u4e1a\u52a1\u573a\u666f\u4e2d\u7684\u6587\u4ef6\u540e\u7f00\u65e0\u6cd5\u88ab\u8bc6\u522b\uff0cJava Chassis\u4f1a\u9ed8\u8ba4\u5904\u7406\u4e3aapplication/octet-stream</p> <p>\u5982\u679c\u8fd9\u4e0d\u6ee1\u8db3\u8981\u6c42\uff0c\u5047\u8bbe\u6587\u4ef6\u540e\u7f00\u4e3axyz\uff0c\u671f\u671b\u6587\u4ef6\u7c7b\u578b\u4e3aapplication/file-xyz\uff0c\u4ee5\u4e0b\u65b9\u5f0f\u4efb\u9009\u4e00\u79cd\u5747\u53ef\u89e3\u51b3\uff1a</p> <ol> <li>\u901a\u8fc7Java\u7684mime type\u673a\u5236\u6269\u5c55</li> </ol> <p>\u5728META-INF\u76ee\u5f55\u4e0b\uff0c\u521b\u5efamime.types\u6587\u4ef6\uff0c\u5176\u5185\u5bb9\u4e3a\uff1a</p> <pre><code>application/file-xyz xyz\n</code></pre> <pre><code>2. \u5728\u4e1a\u52a1\u4ee3\u7801\u4e2d\u901a\u8fc7Part\u6307\u5b9a\n</code></pre> <pre><code>@GetMapping(path = \"/tempFilePart\")\npublic Part tempFilePart(String content) throws IOException {\nFile file = createTempFile(content);\n\nreturn new FilePart(null, file)\n    .setDeleteAfterFinished(true)\n    .contentType(\"application/file-xyz\")\n    .setSubmittedFileName(\"tempFilePart.txt\");\n}\n\n</code></pre> <pre><code>3. \u5728\u4e1a\u52a1\u4ee3\u7801\u4e2d\u901a\u8fc7ResponseEntity\u6307\u5b9a\n</code></pre> <pre><code>@GetMapping(path = \"/tempFileEntity\")\npublic ResponseEntity&lt;Part&gt; tempFileEntity(String content) throws IOException {\n    File file = createTempFile(content);\n\n    return ResponseEntity\n        .ok()\n        .header(HttpHeaders.CONTENT_TYPE, \"application/file-xyz\")\n        .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment;filename=tempFileEntity.txt\")\n        .body(new FilePart(null, file)\n            .setDeleteAfterFinished(true));\n}\n</code></pre> <ul> <li>\u6307\u5b9a\u6587\u4ef6\u540d</li> </ul> <p>\u53ea\u8981\u6ca1\u6709\u901a\u8fc7ResponseEntity\u76f4\u63a5\u8bbe\u7f6eHttpHeaders.CONTENT_DISPOSITION\uff0cJava Chassis\u90fd\u4f1a\u5c1d\u8bd5\u901a\u8fc7File\u3001Part\u3001Resource\u4e2d\u7684\u6587\u4ef6\u540d\u751f\u6210HttpHeaders.CONTENT_DISPOSITION\uff0c\u5047\u8bbe\u6587\u4ef6\u540d\u4e3afile.txt\uff0c\u5219\u751f\u6210\u7684\u6570\u636e\u5982\u4e0b\uff1a</p> <pre><code>Content-Disposition: attachment;filename=file.txt;filename*=utf-8\u2019\u2019file.txt\n</code></pre> <p>\u4e0d\u4ec5\u4ec5\u751f\u6210 <code>filename</code> \uff0c\u8fd8\u751f\u6210\u4e86 <code>filename\\*</code> \uff0c\u8fd9\u662f\u56e0\u4e3a\u5982\u679c\u6587\u4ef6\u540d\u4e2d\u51fa\u73b0\u4e86\u4e2d\u6587\u3001\u7a7a\u683c\uff0c\u5e76\u4e14filename\u6b63\u786e\u5730\u505a\u4e86encode\uff0cie\u3001chrome\u90fd\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662ffirefox\u76f4\u63a5\u5c06encode\u540e\u7684\u4e32\u5f53\u4f5c\u6587\u4ef6\u540d\u76f4\u63a5\u4f7f\u7528\u4e86\u3002firefox\u6309\u7167https://tools.ietf.org/html/rtf6266 \uff0c\u53ea\u5bf9 <code>filename\\*</code> \u8fdb\u884c\u89e3\u7801\u3002</p> <p>\u5982\u679c\u4e1a\u52a1\u4ee3\u7801\u4e2d\u76f4\u63a5\u8bbe\u7f6eContent-Disposition\uff0c\u9700\u8981\u81ea\u884c\u5904\u7406\u591a\u6d4f\u89c8\u5668\u652f\u6301\u7684\u95ee\u9898\u3002</p>"},{"location":"general-development/file-download.html#_3","title":"\u670d\u52a1\u6d88\u8d39\u8005\u5f00\u53d1","text":"<p>\u6d88\u8d39\u8005\u7edf\u4e00\u4f7f\u7528 org.apache.servicecomb.foundation.vertx.http.ReadStreamPart \u5904\u7406\u6587\u4ef6\u4e0b\u8f7d\u3002 \u53ef\u4ee5\u4f7f\u7528\u900f\u660e RPC \u65b9\u5f0f\uff0c </p> <pre><code>public interface \u2026\u2026{\n  ReadStreamPart download1(\u2026\u2026);\n  ReadStreamPart download2(\u2026\u2026);\n}\n</code></pre> <p>\u6216\u8005 RestTemplate</p> <pre><code>ReadStreamPart part = restTemplate.getForObject(url, ReadStreamPart.class);\n</code></pre> <p>ReadStreamPart\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u65b9\u6cd5\uff0c\u5c06\u6570\u636e\u6d41\u4fdd\u5b58\u4e3a\u672c\u5730\u6570\u636e\uff1a</p> <pre><code>org.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveAsBytes()\norg.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveAsString()\norg.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveToFile(String)\norg.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveToFile(File, OpenOptions)\n</code></pre> <p>\u6ce8\u610f\uff1a</p> <ul> <li>\u5728\u5f97\u5230ReadStreamPart\u5b9e\u4f8b\u65f6\uff0c\u5e76\u6ca1\u6709\u5b8c\u6210\u6587\u4ef6\u5185\u5bb9\u7684\u4e0b\u8f7d\uff0c\u8c03\u7528save\u7cfb\u5217\u65b9\u6cd5\u624d\u5f00\u59cb\u771f\u6b63\u4ece\u7f51\u7edc\u4e0a\u8bfb\u53d6\u6587\u4ef6\u6570\u636e\u3002</li> <li>\u5982\u679c\u4f7f\u7528saveAsBytes\u3001saveAsString\uff0c\u6570\u636e\u662f\u76f4\u63a5\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\u7684\uff0c\u5982\u679c\u4e0b\u8f7d\u7684\u6587\u4ef6\u5f88\u5927\uff0c\u4f1a\u5bfc\u81f4\u5185\u5b58\u6ea2\u51fa\u3002</li> <li>save\u7cfb\u5217\u65b9\u6cd5\uff0c\u8fd4\u56de\u7684\u90fd\u662fCompletableFuture\u5bf9\u8c61\uff0c \u5982\u679c\u8981\u963b\u585e\u7b49\u5f85\u4e0b\u8f7d\u5b8c\u6210\uff0c\u901a\u8fc7future.get()\u5373\u53ef\uff1b  \u5982\u679c\u901a\u8fc7future.whenComplete\u8fdb\u884c\u5f02\u6b65\u56de\u8c03\u5904\u7406\uff0c\u8981\u6ce8\u610f\u56de\u8c03\u662f\u53d1\u751f\u5728\u7f51\u7edc\u7ebf\u7a0b\u4e2d\u7684\uff0c\u6b64\u65f6\u9700\u8981\u9075\u5b88reactive\u7684\u7ebf\u7a0b\u89c4\u5219\u3002</li> </ul>"},{"location":"general-development/file-upload.html","title":"\u6587\u4ef6\u4e0a\u4f20\u5f00\u53d1\u6307\u5bfc","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>multipart/form-data</code>\uff0c \u8868\u793a\u6587\u4ef6\u4e0a\u4f20\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: multipart/form-data; boundary=----boundary-example----\n\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample1\"\n\ncontents of multiPartParamExample1\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample2\"\n\ncontents of multiPartParamExample2\n----boundary-example----\n</code></pre> <p>multipart/form-data \u4e5f\u53ef\u4ee5\u8868\u793a Form \u53c2\u6570\uff0c \u548c application/x-www-form-urlencoded \u7528\u6cd5\u4e00\u6837\u3002\u4e3a\u4e86\u907f\u514d\u6df7\u6dc6\u548c\u7b80\u6d01\uff0c\u5efa\u8baemultipart/form-data\u4e13\u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u3002</p>"},{"location":"general-development/file-upload.html#_2","title":"\u670d\u52a1\u63d0\u4f9b\u8005\u5f00\u53d1","text":"<p>\u670d\u52a1\u63d0\u4f9b\u8005\u53ef\u4ee5\u91c7\u7528Spring MVC \u6216\u8005 Jax RS\u5b9a\u4e49\u4e0a\u4f20\u63a5\u53e3\u3002</p> <ul> <li>\u91c7\u7528Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"multiPartSpringMVCExample\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String multiPartSpringMVCExample(@RequestPart(\"multiPartParamExample1\") MultipartFile example1,\n@RequestPart(\"multiPartParamExample2\") MultipartFile example2)\n</code></pre> <p>\u6587\u4ef6\u4e0a\u4f20\u9700\u8981\u901a\u8fc7 @RequestPart \u58f0\u660e\u53c2\u6570\uff0c\u53c2\u6570\u7c7b\u578b\u652f\u6301 servlet \u5b9a\u4e49\u7684 javax.servlet.http.Part \u7c7b\u578b\uff0c\u4e5f\u652f\u6301 org.springframework.web.multipart.MultipartFile \u7c7b\u578b\uff0c\u4e24\u79cd\u6570\u636e\u7c7b\u578b\u529f\u80fd\u662f\u4e00\u81f4\u7684\uff0cMultipartFile \u7684\u5e95 \u5c42\u4e5f\u662fPart\u3002 \u4e24\u79cd\u6570\u636e\u7c7b\u578b\u53ef\u4ee5\u6df7\u5408\u4f7f\u7528\uff0c\u6bd4\u5982\u7b2c\u4e00\u4e2a\u53c2\u6570\u662fPart\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662fMultipartFile\u3002 </p> <p>\u9664\u4e86\u901a\u8fc7\u5b9a\u4e49\u591a\u4e2a\u53c2\u6570\u7684\u65b9\u5f0f\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7List\u6216\u8005\u6570\u7ec4\u7684\u65b9\u5f0f\u58f0\u660e\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\u3002</p> <pre><code>@PostMapping(path = \"/fileUpload\", produces = MediaType.TEXT_PLAIN_VALUE, \n  consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String fileUpload(@RequestPart(name = \"files\")  List&lt;MultipartFile&gt; files)\n\n@PostMapping(path = \"/fileUpload\", produces = MediaType.TEXT_PLAIN_VALUE, \n  consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String fileUpload(@RequestPart(name = \"files\") MultipartFile[] files)\n</code></pre> <p>\u8bf4\u660e\uff1a \u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\uff0c\u5728HTTP\u53c2\u6570\u6620\u5c04\u4e2d\uff0c\u591a\u4e2a\u6587\u4ef6\u5bf9\u5e94\u4e8e\u540c\u540d\u7684 form \u5185\u5bb9\uff0c\u8fd9\u4e0d\u662f\u4e00\u4e2a\u597d\u7684 API \u8bbe\u8ba1\u5b9e\u8df5\u3002\u5efa\u8bae\u975e\u5fc5\u8981\u4e0d\u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\u4f5c\u4e3a\u6587\u4ef6\u4e0a\u4f20\u53c2\u6570\u3002 </p> <p>\u53ef\u4ee5\u901a\u8fc7 <code>@RequestAttribute</code> \u83b7\u53d6\u5176\u4ed6\u989d\u5916\u4fe1\u606f\u3002</p> <pre><code>@PostMapping(path = \"multiPartSpringMVCExample\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String multiPartSpringMVCExample(@RequestPart(\"multiPartParamExample1\") MultipartFile example1,\n@RequestPart(\"multiPartParamExample2\") MultipartFile example2,\n     @RequestAttribute(\"message\") String message)\n</code></pre> <p>\u8bf4\u660e\uff1a<code>@RequestAttribute</code> \u8bfb\u53d6 form \u5185\u5bb9\uff0c \u5e76\u5c06 form \u5185\u5bb9\u8f6c\u6362\u4e3a String \u7c7b\u578b\u3002 \u7531\u4e8e <code>multipart/form-data</code> \u7684 Content-Type \u53ef\u80fd\u5b58\u5728\u591a\u6837\u6027\uff0c \u5efa\u8bae\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u4e0d\u4f7f\u7528 <code>@RequestAttribute</code>\uff0c \u800c\u662f\u4f7f\u7528 <code>@RequestHeader</code> \u4f20\u9012\u989d\u5916\u4fe1\u606f\u3002 </p> <ul> <li>\u91c7\u7528Jax RS</li> </ul> <pre><code>@POST\n@Path(\"multiPartJAXRSExample\")\n@Consumes(MediaType.MULTIPART_FORM_DATA)\npublic String multiPartJAXRSExample(@FormParam(\"multiPartParamExample1\") Part example1,\n@FormParam(\"multiPartParamExample2\") Part example2)\n</code></pre> <p>\u6587\u4ef6\u4e0a\u4f20\u9700\u8981\u901a\u8fc7 @FormParam \u58f0\u660e\u53c2\u6570\uff0c\u53c2\u6570\u7c7b\u578b\u652f\u6301servlet\u5b9a\u4e49\u7684javax.servlet.http.Part\u7c7b\u578b\u3002</p> <p>\u9664\u4e86\u901a\u8fc7\u5b9a\u4e49\u591a\u4e2a\u53c2\u6570\u7684\u65b9\u5f0f\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7List\u6216\u8005\u6570\u7ec4\u7684\u65b9\u5f0f\u58f0\u660e\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\u3002</p> <pre><code>@Path(\"/fileUpload\")\n@POST\n@Produces(MediaType.TEXT_PLAIN)\npublic String fileUpload(@FormParam(name = \"files\") List&lt;Part&gt; files)\n\n@Path(\"/fileUpload\")\n@POST\n@Produces(MediaType.TEXT_PLAIN)\npublic String fileUpload(@FormParam(name = \"files\") Part[] files)\n</code></pre> <p>\u8bf4\u660e\uff1a \u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\uff0c\u5728HTTP\u53c2\u6570\u6620\u5c04\u4e2d\uff0c\u591a\u4e2a\u6587\u4ef6\u5bf9\u5e94\u4e8e\u540c\u540d\u7684 form \u5185\u5bb9\u3002 \u5c3d\u7ba1\u5728\u975e\u6d4f\u89c8\u5668\u573a\u666f\uff0c\u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\u4f1a\u5e26\u6765\u4fbf\u5229\uff0c\u4f46\u662f\u5bf9\u4e8e\u6d4f\u89c8\u5668\u4e0a\u4f20\u573a\u666f\u5219\u4e0d\u5229\u4e8e\u7406\u89e3\u3002\u5efa\u8bae\u975e\u5fc5\u8981\u4e0d\u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\u4f5c\u4e3a\u6587\u4ef6\u4e0a\u4f20\u53c2\u6570\u3002</p> <p>\u53ef\u4ee5\u901a\u8fc7@FormParam\u83b7\u53d6\u5176\u4ed6\u989d\u5916\u4fe1\u606f\u3002</p> <pre><code>@POST\n@Path(\"multiPartJAXRSExample\")\n@Consumes(MediaType.MULTIPART_FORM_DATA)\npublic String multiPartJAXRSExample(@FormParam(\"multiPartParamExample1\") Part example1,\n@FormParam(\"multiPartParamExample2\") Part example2,\n    @FormParam(\"message\") String message)\n</code></pre> <p>\u8bf4\u660e\uff1a<code>@FormParam</code> \u8bfb\u53d6 form \u5185\u5bb9\uff0c \u5e76\u5c06 form \u5185\u5bb9\u8f6c\u6362\u4e3a String \u7c7b\u578b\u3002 \u7531\u4e8e <code>multipart/form-data</code> \u7684 Content-Type \u53ef\u80fd\u5b58\u5728\u591a\u6837\u6027\uff0c \u5efa\u8bae\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u4e0d\u4f7f\u7528 <code>@FormParam</code>\uff0c \u800c\u662f\u4f7f\u7528 <code>@RequestHeader</code> \u4f20\u9012\u989d\u5916\u4fe1\u606f\u3002</p> <ul> <li>\u4e1a\u52a1\u5f00\u53d1\u6ce8\u610f\u4e8b\u9879</li> </ul> <p>\u901a\u8fc7MultipartFile\u6216Part\u6253\u5f00\u6d41\u540e\uff0c\u8bb0\u5f97\u5173\u95ed\uff0c\u5426\u5219\u4e0a\u4f20\u7684\u4e34\u65f6\u6587\u4ef6\u4f1a\u65e0\u6cd5\u5220\u9664\uff0c\u5bfc\u81f4\u8d44\u6e90\u6cc4\u9732\u548c\u78c1\u76d8\u7a7a\u95f4\u8017\u5c3d\u3002</p>"},{"location":"general-development/file-upload.html#_3","title":"\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":"<p>\u53ef\u4ee5\u4f7f\u7528\u900f\u660e RPC </p> <pre><code> interface UploadIntf {\n   String upload(File file);\n }\n\n @RpcReference(microserviceName = \"name\", schemaId = \"schema\")\n UploadIntf uploadIntf;\n\n String result = uploadIntf.upload(file);\n</code></pre> <p>\u6216\u8005 RestTemplate \u8fdb\u884c\u6587\u4ef6\u4e0a\u4f20\u3002 </p> <pre><code>Map&lt;String, Object&gt; map = new HashMap&lt;&gt;();\nmap.put(\"file\", new FileSystemResource(\"a file path!\"));\nmap.put(\"param1\", \"test\");\nHttpHeaders headers = new HttpHeaders();\nheaders.setContentType(org.springframework.http.MediaType.MULTIPART_FORM_DATA);\nHttpEntity&lt;Map&lt;String, Object&gt;&gt; entity = new HttpEntity&lt;&gt;(map, headers);\n\nString reseult = template.postForObject(url, entity, String.class);\n</code></pre> <p>\u670d\u52a1\u6d88\u8d39\u8005\u4e0d\u533a\u5206\u670d\u52a1\u63d0\u4f9b\u8005\u662f Spring MVC \u6216\u8005 Jax RS\u3002 \u5728\u4f7f\u7528\u900f\u660e RPC \u6216\u8005 RestTemplate \u7684\u65f6\u5019\uff0c \u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u7c7b\u578b\u4e0e\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u6587\u4ef6\u5bf9\u5e94\uff1a </p> <ul> <li>java.io.File</li> <li>javax.servlet.http.Part</li> <li>java.io.InputStream</li> <li>org.springframework.core.io.Resource</li> </ul> <p>\u4f7f\u7528InputStream\u65f6\uff0c\u56e0\u4e3a\u662f\u6d41\u7684\u65b9\u5f0f\uff0c\u6b64\u65f6\u6ca1\u6709\u5ba2\u6237\u7aef\u6587\u4ef6\u540d\u7684\u6982\u5ff5\uff0c\u670d\u52a1\u63d0\u4f9b\u8005\u83b7\u53d6\u5230\u7684\u6587\u4ef6\u540d\u4e3anull\u3002 \u5982\u679c\u65e2\u8981\u4f7f\u7528\u5185\u5b58\u6570\u636e\uff0c\u53c8\u60f3\u8ba9producer\u53ef\u4ee5\u83b7\u53d6\u5ba2\u6237\u7aef\u6587\u4ef6\u540d\uff0c\u53ef\u4ee5\u4f7f\u7528resource\u7c7b\u578b\uff0c\u7ee7\u627forg.springframework.core.io.ByteArrayResource\uff0c\u4e14\u9700\u8981\u5b9e\u73b0 getFilename \u65b9\u6cd5\u3002</p>"},{"location":"general-development/file-upload.html#_4","title":"\u4f7f\u7528\u6d4f\u89c8\u5668\u4e0a\u4f20\u6587\u4ef6","text":"<p>\u6d4f\u89c8\u5668\u901a\u8fc7Form\u7684\u65b9\u5f0f\u4e0a\u4f20\u6587\u4ef6\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684HTML \u548c JS \u793a\u4f8b</p> <pre><code>&lt;form id=\"upload_form\" method=\"POST\"&gt;\n    &lt;p&gt;\n        File Name: &lt;input type=\"file\" name=\"fileName\"/&gt;\n    &lt;/p&gt;\n    &lt;p&gt;\n        &lt;input type=\"button\" value=\"Upload\" onclick=\"uploadAction()\"&gt;\n    &lt;/p&gt;\n&lt;/form&gt;\n</code></pre> <p>\u4e8b\u4ef6\u5904\u7406\uff1a</p> <pre><code>function uploadAction() {\n     var formData = new FormData(document.getElementById(\"upload_form\"));\n\n     $.ajax({\n        type: 'POST',\n        url: \"/api/file-service/upload\",\n        data: formData,\n        processData:false,\n        contentType:false,\n        success: function (data) {\n            console.log(data);\n            var error = document.getElementById(\"error\");\n            error.textContent=\"Upload Successfully, file id=\" + data;\n            error.hidden=false;\n        },\n        error: function(data) {\n            console.log(data);\n            var error = document.getElementById(\"error\");\n            error.textContent=\"Upload failed\";\n            error.hidden=false;\n        },\n        async: true\n    });\n</code></pre>"},{"location":"general-development/file-upload.html#_5","title":"\u914d\u7f6e\u53c2\u6570\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u542b\u4e49 servicecomb.uploads.directory null \u4e0a\u4f20\u7684\u4e34\u65f6\u6587\u4ef6\u4fdd\u5b58\u5728\u54ea\u4e2a\u76ee\u5f55\uff0c\u9ed8\u8ba4\u503cnull\u8868\u793a\u4e0d\u652f\u6301\u6587\u4ef6\u4e0a\u4f20 servicecomb.uploads.maxSize -1 http body\u7684\u6700\u5927\u5141\u8bb8\u5927\u5c0f\uff0c\u5355\u4f4dbyte\uff0c\u9ed8\u8ba4\u503c-1\u8868\u793a\u65e0\u9650\u5236"},{"location":"general-development/local-develop-test.html","title":"\u672c\u5730\u5f00\u53d1\u548c\u6d4b\u8bd5","text":""},{"location":"general-development/local-develop-test.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u672c\u5c0f\u8282\u4ecb\u7ecd\u5982\u4f55\u5728\u5f00\u53d1\u8005\u672c\u5730\u8fdb\u884c\u6d88\u8d39\u8005/\u63d0\u4f9b\u8005\u5e94\u7528\u7684\u5f00\u53d1\u8c03\u8bd5\u3002\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\u8bf7\u53c2\u80033 \u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\u7ae0\u8282\uff0c\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u8bf7\u53c2\u80034 \u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u63d0\u4f9b\u8005\u5747\u9700\u8981\u8fde\u63a5\u5230\u5728\u8fdc\u7a0b\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u4e3a\u4e86\u672c\u5730\u5fae\u670d\u52a1\u7684\u5f00\u53d1\u548c\u8c03\u8bd5\uff0c\u672c\u5c0f\u8282\u4ecb\u7ecd\u4e86\u4e24\u79cd\u642d\u5efa\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u7684\u65b9\u6cd5\u8fdb\u884c\u672c\u5730\u5fae\u670d\u52a1\u8c03\u8bd5\uff1a</p> <ul> <li> <p>\u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3</p> </li> <li> <p>\u901a\u8fc7local file\u6a21\u62df\u542f\u52a8\u670d\u52a1\u4e2d\u5fc3Mock\u673a\u5236</p> </li> <li> <p>\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u4fe1\u606f\u65b9\u4fbf\u672c\u5730\u8c03\u8bd5</p> </li> </ul> <p>\u670d\u52a1\u4e2d\u5fc3\u662f\u5fae\u670d\u52a1\u6846\u67b6\u4e2d\u7684\u91cd\u8981\u7ec4\u4ef6\uff0c\u7528\u4e8e\u670d\u52a1\u5143\u6570\u636e\u4ee5\u53ca\u670d\u52a1\u5b9e\u4f8b\u5143\u6570\u636e\u7684\u7ba1\u7406\u548c\u5904\u7406\u6ce8\u518c\u3001\u53d1\u73b0\u3002\u670d\u52a1\u4e2d\u5fc3\u4e0e\u5fae\u670d\u52a1\u63d0\u4f9b/\u6d88\u8d39\u8005\u7684\u903b\u8f91\u5173\u7cfb\u4e0b\u56fe\u6240\u793a\uff1a </p>"},{"location":"general-development/local-develop-test.html#_2","title":"\u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3","text":"<ul> <li> <p>\u6b65\u9aa4 1 \u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3</p> </li> <li> <p>\u4ee5\u53ef\u6267\u884c\u6587\u4ef6\u7684\u65b9\u5f0f\u8fd0\u884c</p> </li> </ul> <ul> <li>Windows</li> <li>Linux</li> </ul>     1. \u4e0b\u8f7d[\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5305](http://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-service-center/1.0.0-m1/apache-servicecomb-incubating-service-center-1.0.0-m1-windows-amd64.tar.gz)    2. \u89e3\u538b\u7f29\u5230\u5f53\u524d\u6587\u4ef6\u5939    3. \u8fdb\u5165\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55\uff0c\u7136\u540e\u53cc\u51fb\u8fd0\u884c**start-service-center.bat**\u6587\u4ef6           1. \u4e0b\u8f7d\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5305\u5e76\u89e3\u538b\u7f29    ```bash    wget http://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-service-center/1.0.0-m1/apache-servicecomb-incubating-service-center-1.0.0-m1-linux-amd64.tar.gz    tar xvf apache-servicecomb-incubating-service-center-1.0.0-m1-linux-amd64.tar.gz    ```    2. \u8fd0\u884c\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3    ```bash    bash apache-servicecomb-incubating-service-center-1.0.0-m1-linux-amd64/start-service-center.sh    ```      \u6ce8\u610f\uff1a\u524d\u7aef\uff08frontend\uff09\u5728Linux\u73af\u5883\u4e0b\u9ed8\u8ba4\u4f1a\u7ed1\u5b9aipv6\u5730\u5740\uff0c\u5bfc\u81f4\u6d4f\u89c8\u5668\u62a5\u9519\uff0c\u4fee\u590d\u529e\u6cd5\u4e3a\uff1a\u5148\u4fee\u6539conf/app.conf\u4e2d\u7684httpaddr\u4e3a\u5916\u90e8\u53ef\u8fbe\u7f51\u5361ip\uff0c\u4e4b\u540e\u4fee\u6539app/appList/apiList.js\u4e2d`ip : 'http://127.0.0.1'`\u4e3a\u5bf9\u5e94ip\uff0c\u6700\u540e\u91cd\u542fServiceCenter\u5373\u53ef\u3002       <p>\u6ce8\u610f\uff1aWindow\u548cLinux\u7248\u672c\u5747\u53ea\u652f\u630164\u4f4d\u7cfb\u7edf\u3002</p> <ol> <li>\u4ee5Docker\u7684\u65b9\u5f0f\u8fd0\u884c</li> </ol> <p><code>bash docker pull servicecomb/service-center docker run -d -p 30100:30100 servicecomb/service-center:latest</code></p> <ul> <li>\u6b65\u9aa4 2 \u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u540e\uff0c\u5728\u670d\u52a1\u63d0\u4f9b/\u6d88\u8d39\u8005\u7684microservice.yaml\u6587\u4ef6\u4e2d\u914d\u7f6eServerCenter\u7684\u5730\u5740\u548c\u7aef\u53e3\uff0c\u793a\u4f8b\u4ee3\u7801\uff1a</li> </ul> <p><code>yaml servicecomb:   service:     registry:       address:         # \u670d\u52a1\u4e2d\u5fc3\u5730\u5740\u53ca\u7aef\u53e3         http://127.0.0.1:30100</code></p> <ul> <li>\u6b65\u9aa4 3 \u5f00\u53d1\u670d\u52a1\u63d0\u4f9b/\u6d88\u8d39\u8005\uff0c\u542f\u52a8\u5fae\u670d\u52a1\u8fdb\u884c\u672c\u5730\u6d4b\u8bd5\u3002</li> </ul> <p>----\u7ed3\u675f</p>"},{"location":"general-development/local-develop-test.html#mock","title":"Mock\u673a\u5236\u542f\u52a8\u670d\u52a1\u4e2d\u5fc3","text":"<p>\u5728\u672c\u8fdb\u7a0b\u5185\u5b58\u4e2d\u6a21\u62df\u4e00\u4e2a\u53ea\u80fd\u672c\u8fdb\u7a0b\u4f7f\u7528\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u4e00\u822c\u662f\u5728\u6d4b\u8bd5\u573a\u666f\u4e2d\u4f7f\u7528\u3002 * ### \u8fdb\u7a0b\u5185\u8c03\u7528 \u53ea\u9700\u8981\u5728\u542f\u52a8ServiceComb\u5f15\u64ce\u4e4b\u524d\u58f0\u660e\u4e00\u4e0b\u5373\u53ef\u542f\u7528\uff1a</p> <pre><code>System.setProperty(\"local.registry.file\", \"notExistJustForceLocal\");\n</code></pre> <ul> <li> <p>\u6b65\u9aa4 1 \u65b0\u5efa\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u5b9a\u4e49\u6587\u4ef6\uff0c\u5047\u8bbe\u540d\u5b57\u4e3aregistry.yaml\uff0c\u5185\u5bb9\u793a\u4f8b\u5982\u4e0b\uff1a</p> </li> </ul> <p><code>yaml localserv:   - id: \"100\"     version: \"0.0.1\"     appid: localservreg     schemaIds:       - hello     instances:       - endpoints:         - rest://localhost:8080         - highway://localhost:7070</code> * \u6b65\u9aa4 2 consumer\u672c\u5730\u90e8\u7f72\u5951\u7ea6\u6587\u4ef6</p> <p>\u53c2\u8003\uff1a\u5b9a\u4e49\u670d\u52a1\u5951\u7ea6 * \u6b65\u9aa4 3 \u5728consumer main\u51fd\u6570\uff0c\u542f\u52a8ServiceComb\u5f15\u64ce\u4e4b\u524d\u58f0\u660e\uff1a</p> <pre><code>\u3000\u3000System.setProperty(\"local.registry.file\", \"/path/registry.yaml\");\n</code></pre> <p>setProperty\u7b2c\u4e8c\u4e2a\u53c2\u6570\u586b\u5199registry.yaml\u5728\u78c1\u76d8\u4e2d\u7684\u7cfb\u7edf\u7edd\u5bf9\u8def\u5f84\uff0c\u6ce8\u610f\u533a\u5206\u5728\u4e0d\u540c\u7cfb\u7edf\u4e0b\u4f7f\u7528\u5bf9\u5e94\u7684\u8def\u5f84\u5206\u9694\u7b26\u3002</p>"},{"location":"general-development/local-develop-test.html#_3","title":"\u8de8\u8fdb\u7a0b\u8c03\u7528","text":"<p>\u5982\u679c\u90e8\u7f72\u6bd4\u8f83\u7b80\u5355\uff0c\u5e76\u4e14\u90e8\u7f72\u4fe1\u606f\u662f\u9759\u6001\u7684\uff0c\u5373\u4f7f\u6709\u8de8\u8fdb\u7a0b\u8c03\u7528\u4e5f\u53ef\u4ee5\u4f7f\u7528\u672cMock\u673a\u5236 producer\u7aef\u4ecd\u7136\u50cf\u201c\u8fdb\u7a0b\u5185\u8c03\u7528\u201d\u4e00\u6837\u58f0\u660e\u5373\u53ef \u4f46\u662f\uff0c\u56e0\u4e3aMock\u5e76\u4e0d\u80fd\u8de8\u8fdb\u7a0b\u751f\u6548\uff0c\u6240\u4ee5consumer\u7aef\u7684Mock\uff0c\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a\u672c\u5730\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u91cc\u9762\u63cf\u8ff0\u8c03\u7528\u76ee\u6807\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u540d\u5b57\u3001\u7248\u672c\u3001\u5730\u5740\u3001schema id\u7b49\u7b49\u4fe1\u606f \u540c\u6837\uff0c\u56e0\u4e3aMock\u4e0d\u80fd\u8de8\u8fdb\u7a0b\uff0cconsumer\u4e5f\u65e0\u6cd5\u52a8\u6001\u53d6\u5f97producer\u7684\u5951\u7ea6\u4fe1\u606f\uff0c\u6240\u4ee5\uff0c\u9700\u8981\u5728\u672c\u5730\u63d0\u4f9b\u5951\u7ea6\u6587\u4ef6 \uff08\u8fd9\u4e2a\u573a\u666f\uff0c\u4f7f\u7528Mock\u670d\u52a1\u4e2d\u5fc3\uff0c\u6bd4\u4f7f\u7528standalone\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u6210\u672c\u9ad8\u5f97\u591a\u5f97\u591a\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528\uff09</p>"},{"location":"general-development/local-develop-test.html#_4","title":"\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u4fe1\u606f\u65b9\u4fbf\u672c\u5730\u8c03\u8bd5","text":"<p>java chassis\u5728\u8bbe\u8ba1\u65f6\uff0c\u4e25\u683c\u4f9d\u8d56\u4e8e\u5951\u7ea6\uff0c\u6240\u4ee5\u6b63\u5e38\u6765\u8bf4\u5951\u7ea6\u53d8\u4e86\u5c31\u5fc5\u987b\u8981\u4fee\u6539\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u4f46\u662f\u5982\u679c\u5f53\u524d\u8fd8\u662f\u5f00\u53d1\u6a21\u5f0f\uff0c\u90a3\u4e48\u4fee\u6539\u63a5\u53e3\u662f\u5f88\u6b63\u5e38\u7684\u60c5\u51b5\uff0c\u6bcf\u6b21\u90fd\u9700\u8981\u6539\u7248\u672c\u7684\u8bdd\uff0c\u5bf9\u7528\u6237\u6765\u8bf4\u975e\u5e38\u7684\u4e0d\u53cb\u597d\uff0c\u6240\u4ee5\u589e\u52a0\u4e86\u4e00\u4e2a\u73af\u5883\u8bbe\u7f6e\u3002\u5982\u679c\u5fae\u670d\u52a1\u914d\u7f6e\u6210\u5f00\u53d1\u73af\u5883\uff0c\u63a5\u53e3\u4fee\u6539\u4e86\uff08schema\u53d1\u751f\u4e86\u53d8\u5316\uff09\uff0c\u91cd\u542f\u5c31\u53ef\u4ee5\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u800c\u4e0d\u7528\u4fee\u6539\u7248\u672c\u53f7\u3002\u4f46\u662f\u5982\u679c\u6709consumer\u5df2\u7ecf\u8c03\u7528\u4e86\u91cd\u542f\u4e4b\u524d\u7684\u670d\u52a1\uff0c\u90a3\u4e48consumer\u7aef\u9700\u8981\u91cd\u542f\u624d\u80fd\u83b7\u53d6\u6700\u65b0\u7684schema\u3002\u6bd4\u5982A -&gt; B\uff0cB\u63a5\u53e3\u8fdb\u884c\u4e86\u4fee\u6539\u5e76\u4e14\u91cd\u542f\uff0c\u90a3\u4e48A\u8fd9\u4e2a\u65f6\u5019\u8fd8\u662f\u4f7f\u7528B\u8001\u7684schema\uff0c\u8c03\u7528\u53ef\u80fd\u4f1a\u51fa\u9519\uff0c\u4ee5\u514d\u51fa\u73b0\u672a\u77e5\u5f02\u5e38\uff0cA\u4e5f\u9700\u8981\u91cd\u542f\u3002\u6709\u4e09\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8bbe\u7f6e\uff0c\u63a8\u8350\u4f7f\u7528\u65b9\u6cd51 * \u65b9\u6cd51\uff1a\u901a\u8fc7JVM\u542f\u52a8\u53c2\u6570-Dservice_description.environment=development\u8fdb\u884c\u8bbe\u7f6e</p> <ul> <li>\u65b9\u6cd52\uff1a\u901a\u8fc7microservice.yaml\u914d\u7f6e\u6587\u4ef6\u6765\u6307\u5b9a</li> </ul> <p><code>yaml service_description:   environment: development</code></p> <ul> <li>\u65b9\u6cd53\uff1a\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6765\u6307\u5b9a\uff08\u4ec5\u9650\u4e8eWindows\u7cfb\u7edf\uff09\uff0c\u6bd4\u5982\u5728Eclipse\u4e0b\u9762\u8fdb\u884c\u5982\u4e0b\u8bbe\u7f6e </li> </ul>"},{"location":"general-development/metrics.html","title":"\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff08metrics\uff09","text":"<p>\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u901a\u8fc7\u5468\u671f\u6027\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5206\u6790\u4e1a\u52a1\u6027\u80fd\u74f6\u9888\uff0c\u5728\u6027\u80fd\u4f18\u5316\u3001\u6545\u969c\u5b9a\u4f4d\u7684\u65f6\u5019\u975e\u5e38\u6709\u5e2e\u52a9\u3002\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u7684\u6307\u6807\u5305\u62ec \u8bf7\u6c42\u5404\u4e2a\u73af\u8282\u7684\u65f6\u5ef6\u3001\u7ebf\u7a0b\u6c60\u4f7f\u7528\u60c5\u51b5\u3001\u8fde\u63a5\u6c60\u4f7f\u7528\u60c5\u51b5\u3001CPU\u548c\u7f51\u7edc\u4f7f\u7528\u60c5\u51b5\u7b49\u3002</p> <p>\u7edf\u8ba1\u6570\u636e\u662f\u4e00\u4e2a\u5468\u671f\u6027\u65f6\u6548\u6570\u636e\uff0c\u53ea\u5728\u7edf\u8ba1\u5468\u671f\u5185\u5177\u6709\u610f\u4e49\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7 <code>REST</code> \u63a5\u53e3\u67e5\u8be2\u5b9e\u65f6\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u65e5\u5fd7\u5f00\u5173\uff0c\u5c06 \u7edf\u8ba1\u6570\u636e\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u91cc\u9762\uff0c\u5e2e\u52a9\u5206\u6790\u6027\u80fd\u95ee\u9898\u3002</p>"},{"location":"general-development/metrics.html#_1","title":"\u4f7f\u7528\u65b9\u6cd5","text":"<p>\u4f7f\u7528\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u975e\u5e38\u7b80\u5355\uff0c \u53ea\u9700\u8981\u5728\u5e94\u7528\u4e2d\u5305\u542b\u76f8\u5173\u7684\u4f9d\u8d56\u5305\uff0c\u901a\u8fc7\u914d\u7f6e\u9879\u5f00\u542f\u548c\u5173\u95ed\u76f8\u5173\u529f\u80fd\u3002 </p> <ol> <li>\u5f00\u542f\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u529f\u80fd\uff0c \u9700\u8981\u5f15\u5165\u4e0b\u9762\u7684\u4f9d\u8d56\uff1a<pre><code>```\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;metrics-core&lt;/artifactId&gt;\n&lt;/dependency&gt;\n```\n</code></pre> </li> </ol> <p>\u901a\u8fc7\u5728 <code>microservice.yaml</code> \u4e2d\u589e\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\u9879\uff0c\u5c31\u53ef\u4ee5\u5c06\u6027\u80fd\u7edf\u8ba1\u6570\u636e\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002</p> <pre><code>    ```\n    servicecomb:\n      metrics:\n        window_time: 60000\n        invocation:\n          latencyDistribution: 0,1,10,100,1000\n        Consumer.invocation.slow:\n          enabled: true\n          msTime: 1000\n        Provider.invocation.slow:\n          enabled: true\n          msTime: 1000\n        publisher.defaultLog:\n          enabled: true\n          endpoints.client.detail.enabled: true\n    ```\n</code></pre> <p>\u4e0a\u8ff0\u914d\u7f6e\u5f00\u542f\u4e86\u6162\u8c03\u7528\u68c0\u6d4b\uff0c\u5982\u679c\u5b58\u5728\u6162\u8c03\u7528\uff0c\u5219\u4f1a\u7acb\u5373\u8f93\u51fa\u76f8\u5e94\u65e5\u5fd7\uff1a</p> <pre><code>    ```\n    2019-04-02 23:01:09,103\\[WARN]\\[pool-7-thread-74]\\[5ca37935c00ff2c7-350076] - slow(40 ms) invocation, CONSUMER highway perf1.impl.syncQuery\n      http method: GET\n      url        : /v1/syncQuery/{id}/\n      server     : highway://192.168.0.152:7070?login=true\n      status code: 200\n      total      : 50.760 ms\n        prepare                : 0.0 ms\n        handlers request       : 0.0 ms\n        client filters request : 0.0 ms\n        send request           : 0.5 ms\n        get connection         : 0.0 ms\n        write to buf           : 0.5 ms\n        wait response          : 50.727 ms\n        wake consumer          : 0.23 ms\n        client filters response: 0.2 ms\n        handlers response      : 0.0 ms (SlowInvocationLogger.java:121)\n    ```\n</code></pre> <p>\u5176\u4e2d 5ca37935c00ff2c7-350076 \u662f <code>${traceId}-${invocationId}</code> \u7684\u7ed3\u6784\uff0c\u5728log4j2 \u6216 logback \u7684\u8f93\u51fa\u683c\u5f0f\u4e2d\u901a\u8fc7 %marker \u5f15\u7528\u3002</p> <p>\u4e5f\u53ef\u4ee5\u901a\u8fc7 <code>REST</code> \u63a5\u53e3\u67e5\u8be2\u6027\u80fd\u7edf\u6570\u636e\u3002\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eehttp://ip:port/metrics \u5373\u53ef\uff0c\u5c06\u4f1a\u5f97\u5230\u7c7b\u4f3c\u4e0b\u9762\u683c\u5f0f\u7684json\u6570\u636e\uff1a</p> <pre><code>    ```\n    {\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connectCount,type=client)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=disconnectCount,type=client)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connections,type=client)\": 1.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesRead,type=client)\": 508011.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesWritten,type=client)\": 542163.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=queueCount,type=client)\": 0.0,\n\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connectCount,type=server)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=disconnectCount,type=server)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connections,type=server)\": 1.0,\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=bytesRead,type=server)\": 542163.0\n    ... ...\n    }\n    ```\n</code></pre>"},{"location":"general-development/metrics.html#prometheus","title":"\u96c6\u6210Prometheus","text":"<p>Prometheus (\u666e\u7f57\u7c73\u4fee\u65af)\u662f\u4e00\u4e2a\u540d\u5b57\u975e\u5e38\u9177\u7684\u5f00\u6e90\u76d1\u63a7\u7cfb\u7edf\u3002</p> <p>\u5b83\u652f\u6301\u591a\u7ef4\u5ea6\u7684\u6307\u6807\u6570\u636e\u6a21\u578b\uff0c\u670d\u52a1\u7aef\u901a\u8fc7HTTP\u534f\u8bae\u5b9a\u65f6\u62c9\u53d6\u6570\u636e\u540e\uff0c\u901a\u8fc7\u7075\u6d3b\u7684\u67e5\u8be2\u8bed\u8a00\uff0c\u5b9e\u73b0\u76d1\u63a7\u7684\u76ee\u7684\u3002</p> <p>servicecomb\u7684\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u529f\u80fd\u652f\u6301\u5bf9\u63a5Prometheus,\u9996\u5148\u9700\u8981\u5728\u60a8\u7684\u4e1a\u52a1\u9879\u76ee\u4e2d\u52a0\u5165\u5982\u4e0b\u4f9d\u8d56:</p> <pre><code>    ```\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;metrics-prometheus&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    ```\n</code></pre> <p>\u7136\u540e\u5728 microservice.yaml \u4e2d\u589e\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\u9879:</p> <pre><code>    ```\n    servicecomb:\n        metrics:\n            prometheus:\n                address: ${ip}:${port}\n    ```\n</code></pre> <p>\u8be5\u914d\u7f6e\u9879\u662f\u8bbe\u7f6e\u666e\u7f57\u7c73\u4fee\u65af\u6846\u67b6\u76d1\u542c\u7684\u7aef\u53e3,\u60a8\u53ea\u9700\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\u5bf9\u5e94\u7684ip\u5730\u5740\u52a0\u8be5\u7aef\u53e3\u5373http://ip:port/metrics \u5c31\u53ef\u4ee5\u83b7\u5f97\u5982\u4e0b\u683c\u5f0f\u7684\u76d1\u63a7\u6570\u636e:</p> <pre><code>    ```\n    # HELP ServiceComb_Metrics ServiceComb Metrics\n    # TYPE ServiceComb_Metrics untyped\n    threadpool_rejectedCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} 0.0\n    threadpool_rejectedCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} 0.0\n    threadpool_taskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} 0.0\n    threadpool_currentThreadsBusy{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_taskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} 0.0\n    threadpool_currentThreadsBusy{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_poolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_poolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_completedTaskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"connectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"disconnectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"connections\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"bytesRead\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"bytesWritten\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"requests\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"latency\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"rejectByConnectionLimit\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"connectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"disconnectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"connections\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"bytesRead\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"bytesWritten\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"requests\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"latency\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"rejectByConnectionLimit\",type=\"server\",} 0.0\n    threadpool_completedTaskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} 0.0\n    threadpool_maxThreads{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_maxThreads{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_queueSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_queueSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_corePoolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_corePoolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    ```\n</code></pre> <p>\u6ce8:\u9ed8\u8ba4\u7aef\u53e3\u662f9696\uff0c\u60a8\u4e5f\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u8981\u6c42\u8fdb\u884c\u4fee\u6539\u3002</p>"},{"location":"general-development/metrics.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.metrics.window_time 60000 \u7edf\u8ba1\u5468\u671f\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2TPS\u3001\u65f6\u5ef6\u7b49\u7b49\u5468\u671f\u6027\u7684\u6570\u636e\uff0c\u6bcf\u5468\u671f\u66f4\u65b0\u4e00\u6b21\uff0c\u5728\u5468\u671f\u5185\u83b7\u53d6\u5230\u7684\u503c\uff0c\u5b9e\u9645\u662f\u4e0a\u4e00\u5468\u671f\u7684\u503c servicecomb.metrics.invocation.latencyDistribution \u65f6\u5ef6\u5206\u5e03\u65f6\u95f4\u6bb5\u5b9a\u4e49\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u4f8b\u5982\uff1a0,1,10,100,1000\u8868\u793a\u5b9a\u4e49\u4e86\u4e0b\u5217\u65f6\u5ef6\u6bb5[0, 1),[1, 10),[10, 100),[100, 1000),[1000, ) servicecomb.metrics.Consumer.invocation.slow.enabled false \u662f\u5426\u5f00\u542fConsumer\u7aef\u7684\u6162\u8c03\u7528\u68c0\u6d4b\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.Consumer.invocation.slow.msTime 1000 \u65f6\u5ef6\u8d85\u8fc7\u914d\u7f6e\u503c\uff0c\u5219\u4f1a\u7acb\u5373\u8f93\u51fa\u65e5\u5fd7\uff0c\u8bb0\u5f55\u672c\u6b21\u8c03\u7528\u7684stage\u8017\u65f6\u4fe1\u606f\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.Provider.invocation.slow.enabled false \u662f\u5426\u5f00\u542fProvide\u7aef\u7684\u6162\u8c03\u7528\u68c0\u6d4b\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.Provider.invocation.slow.msTime 1000 \u65f6\u5ef6\u8d85\u8fc7\u914d\u7f6e\u503c\uff0c\u5219\u4f1a\u7acb\u5373\u8f93\u51fa\u65e5\u5fd7\uff0c\u8bb0\u5f55\u672c\u6b21\u8c03\u7528\u7684stage\u8017\u65f6\u4fe1\u606f\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.prometheus.address 0.0.0.0:9696 prometheus\u76d1\u542c\u5730\u5740 servicecomb.metrics.publisher.defaultLog.enabled false \u662f\u5426\u8f93\u51fa\u9ed8\u8ba4\u7684\u7edf\u8ba1\u65e5\u5fd7 servicecomb.metrics.publisher.defaultLog.endpoints.client.detail.enabled false \u662f\u5426\u8f93\u51fa\u6bcf\u4e00\u6761client endpoint\u7edf\u8ba1\u65e5\u5fd7\uff0c\u56e0\u4e3a\u8ddf\u76ee\u6807\u7684ip:port\u6570\u6709\u5173\uff0c\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u6570\u636e\uff0c\u6240\u4ee5\u9ed8\u8ba4\u4e0d\u8f93\u51fa"},{"location":"general-development/metrics.html#_3","title":"\u7edf\u8ba1\u6307\u6807\u542b\u4e49\u8bf4\u660e","text":"<ul> <li>CPU \u7edf\u8ba1\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 os type cpu \u5f53\u524d\u5468\u671f\u5185\u7cfb\u7edfCPU\u4f7f\u7528\u7387\uff0cSolaris\u6a21\u5f0f processCpu \u5f53\u524d\u5468\u671f\u5185\u5fae\u670d\u52a1\u8fdb\u7a0bCPU\u4f7f\u7528\u7387\uff0cIRIX\u6a21\u5f0f         processCpu\u9664\u4ee5cpu\u8fd1\u4f3c\u7b49\u4e8e\u7cfb\u7edfCPU\u6570 <ul> <li>\u7f51\u7edc\u7edf\u8ba1\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 os type net statistic send \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5b57\u8282\u6570(Bps) receive \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5b57\u8282\u6570(Bps) sendPackets \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5305\u6570(pps) receivePackets \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5305\u6570(pps) interface \u7f51\u5361\u8bbe\u5907\u540d <ul> <li>vertx client endpoints \u7edf\u8ba1\u4fe1\u606f </li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.vertx.endpoints type client address ${ip}:${port} \u670d\u52a1\u7aef\u7684ip:port statistic connectCount \u5f53\u524d\u5468\u671f\u5185\u5171\u53d1\u8d77\u591a\u5c11\u6b21\u8fde\u63a5 disconnectCount \u5f53\u524d\u5468\u671f\u5185\u65ad\u8fde\u7684\u6b21\u6570 queueCount http\u8fde\u63a5\u6c60\u4e2d\u6b63\u5728\u7b49\u5f85\u83b7\u53d6\u8fde\u63a5\u7684\u8bf7\u6c42\u6570 connections \u5f53\u524d\u65f6\u523b\u7684\u8fde\u63a5\u6570 bytesRead \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f bytesWritten \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f <ul> <li>vertx server endpoints \u7edf\u8ba1\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.vertx.endpoints type server address ${ip}:${port} \u76d1\u542c\u7684ip:port statistic connectCount \u5f53\u524d\u5468\u671f\u5185\u5171\u63a5\u5165\u591a\u5c11\u6b21\u8fde\u63a5 disconnectCount \u5f53\u524d\u5468\u671f\u5185\u65ad\u8fde\u7684\u6b21\u6570 rejectByConnectionLimit \u5f53\u524d\u5468\u671f\u5185\u56e0\u8d85\u51fa\u8fde\u63a5\u6570\u9650\u5236\u800c\u4e3b\u52a8\u65ad\u8fde\u7684\u6b21\u6570 connections \u5f53\u524d\u65f6\u523b\u7684\u8fde\u63a5\u6570 bytesRead \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f bytesWritten \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f <ul> <li>\u65f6\u5ef6\u5206\u5e03\u6982\u89c8</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role CONSUMER\u3001PRODUCER\u3001EDGE \u662fCONSUMER\u3001PRODUCER\u8fd8\u662fEDGE\u7aef\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type latencyDistribution \u8c03\u7528\u65f6\u5ef6\u5206\u5e03 scope [${min}, ${max}) \u5f53\u524d\u5468\u671f\u5185\u8c03\u7528\u65f6\u5ef6\u5927\u4e8e\u7b49\u4e8emin\uff0c\u5c0f\u4e8emax\u7684\u6b21\u6570         [${min},)\u8868\u793amax\u4e3a\u65e0\u9650\u5927 <ul> <li>consumer \u8be6\u7ec6\u65f6\u5ef6\u5206\u5e03</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role CONSUMER CONSUMER\u7aef\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type stage stage\u65f6\u5ef6 stage total \u5168\u6d41\u7a0b prepare \u521d\u59cb\u5316 handlers_request handler\u94fe\u8bf7\u6c42\u6d41\u7a0b client_filters_request http client filter\u94fe\u8bf7\u6c42\u6d41\u7a0b         \u53ea\u6709\u8d70rest transport\u624d\u6709\u672c\u9636\u6bb5 consumer_send_request \u53d1\u9001\u8bf7\u6c42\u9636\u6bb5\uff0c\u5305\u62ecconsumer_get_connection\u548cconsumer_write_to_buf consumer_get_connection \u4ece\u8fde\u63a5\u6c60\u83b7\u53d6\u8fde\u63a5 consumer_write_to_buf \u5411\u7f51\u7edc\u7f13\u51b2\u533a\u5199\u6570\u636e consumer_wait_response \u7b49\u5f85\u670d\u52a1\u7aef\u5e94\u7b54 consumer_wake_consumer \u540c\u6b65\u6d41\u7a0b\u4e2d\uff0c\u6536\u5230\u5e94\u7b54\u540e\uff0c\u4ece\u5524\u9192\u7b49\u5f85\u7ebf\u7a0b\uff0c\u5230\u7b49\u5f85\u7ebf\u7a0b\u5f00\u59cb\u5904\u7406\u5e94\u7b54\u7684\u8017\u65f6 client_filters_response http client filter\u94fe\u5e94\u7b54\u6d41\u7a0b handlers_response handler\u94fe\u5e94\u7b54\u6d41\u7a0b statistic count \u5e73\u5747\u6bcf\u79d2\u8c03\u7528\u6b21\u6570\uff0c\u5373TPS         count=\u7edf\u8ba1\u5468\u671f\u5185\u7684\u8c03\u7528\u6b21\u6570/\u5468\u671f\uff08\u79d2\uff09 totalTime \u5355\u4f4d\u4e3a\u79d2         totalTime=\u5f53\u524d\u5468\u671f\u5185\u7684\u8c03\u7528\u8017\u65f6\u603b\u65f6\u957f/\u5468\u671f\uff08\u79d2\uff09         totalTime\u9664\u4ee5count\u5373\u53ef\u5f97\u5230\u5e73\u5747\u65f6\u5ef6 max \u5355\u4f4d\u4e3a\u79d2         \u5f53\u524d\u5468\u671f\u5185\u6700\u5927\u8017\u65f6 <ul> <li>provider \u8be6\u7ec6\u65f6\u5ef6\u5206\u5e03</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role PRODUCER PRODUCER\u7aef\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type stage stage\u65f6\u5ef6 stage total \u5168\u6d41\u7a0b prepare \u521d\u59cb\u5316 queue \u4ec5\u5728\u4f7f\u7528\u7ebf\u7a0b\u6c60\u65f6\u6709\u610f\u4e49         \u8868\u793a\u8c03\u7528\u5728\u7ebf\u7a0b\u6c60\u4e2d\u6392\u961f\u7684\u65f6\u957f server_filters_request http server filter\u94fe\u8bf7\u6c42\u6d41\u7a0b         \u53ea\u6709\u8d70rest transport\u624d\u6709\u672c\u9636\u6bb5 handlers_request handler\u94fe\u8bf7\u6c42\u6d41\u7a0b execution \u4e1a\u52a1\u65b9\u6cd5 handlers_response handler\u94fe\u5e94\u7b54\u6d41\u7a0b server_filters_response http server filter\u94fe\u5e94\u7b54\u6d41\u7a0b producer_send_response \u53d1\u9001\u5e94\u7b54 statistic count \u5e73\u5747\u6bcf\u79d2\u8c03\u7528\u6b21\u6570\uff0c\u5373TPS         count=\u7edf\u8ba1\u5468\u671f\u5185\u7684\u8c03\u7528\u6b21\u6570/\u5468\u671f\uff08\u79d2\uff09 totalTime \u5355\u4f4d\u4e3a\u79d2         totalTime=\u5f53\u524d\u5468\u671f\u5185\u7684\u8c03\u7528\u8017\u65f6\u603b\u65f6\u957f/\u5468\u671f\uff08\u79d2\uff09         totalTime\u9664\u4ee5count\u5373\u53ef\u5f97\u5230\u5e73\u5747\u65f6\u5ef6 max \u5355\u4f4d\u4e3a\u79d2         \u5f53\u524d\u5468\u671f\u5185\u6700\u5927\u8017\u65f6 <ul> <li>edge service \u8be6\u7ec6\u65f6\u5ef6\u5206\u5e03</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role EDGE EDGE\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type stage stage\u65f6\u5ef6 stage total \u5168\u6d41\u7a0b prepare \u521d\u59cb\u5316 queue \u4ec5\u5728\u4f7f\u7528\u7ebf\u7a0b\u6c60\u65f6\u6709\u610f\u4e49         \u8868\u793a\u8c03\u7528\u5728\u7ebf\u7a0b\u6c60\u4e2d\u6392\u961f\u7684\u65f6\u957f server_filters_request http server filter\u94fe\u8bf7\u6c42\u6d41\u7a0b handlers_request handler\u94fe\u8bf7\u6c42\u6d41\u7a0b client_filters_request http client filter\u94fe\u8bf7\u6c42\u6d41\u7a0b consumer_send_request \u53d1\u9001\u8bf7\u6c42\u9636\u6bb5\uff0c\u5305\u62ecconsumer_get_connection\u548cconsumer_write_to_buf consumer_get_connection \u4ece\u8fde\u63a5\u6c60\u83b7\u53d6\u8fde\u63a5 consumer_write_to_buf \u5411\u7f51\u7edc\u7f13\u51b2\u533a\u5199\u6570\u636e consumer_wait_response \u7b49\u5f85\u670d\u52a1\u7aef\u5e94\u7b54 consumer_wake_consumer \u540c\u6b65\u6d41\u7a0b\u4e2d\uff0c\u6536\u5230\u5e94\u7b54\u540e\uff0c\u4ece\u5524\u9192\u7b49\u5f85\u7ebf\u7a0b\uff0c\u5230\u7b49\u5f85\u7ebf\u7a0b\u5f00\u59cb\u5904\u7406\u5e94\u7b54\u7684\u8017\u65f6 client_filters_response http client filter\u94fe\u5e94\u7b54\u6d41\u7a0b handlers_response handler\u94fe\u5e94\u7b54\u6d41\u7a0b server_filters_response http server filter\u94fe\u5e94\u7b54\u6d41\u7a0b producer_send_response \u53d1\u9001\u5e94\u7b54 statistic count \u5e73\u5747\u6bcf\u79d2\u8c03\u7528\u6b21\u6570\uff0c\u5373TPS         count=\u7edf\u8ba1\u5468\u671f\u5185\u7684\u8c03\u7528\u6b21\u6570/\u5468\u671f\uff08\u79d2\uff09 totalTime \u5355\u4f4d\u4e3a\u79d2         totalTime=\u5f53\u524d\u5468\u671f\u5185\u7684\u8c03\u7528\u8017\u65f6\u603b\u65f6\u957f/\u5468\u671f\uff08\u79d2\uff09         totalTime\u9664\u4ee5count\u5373\u53ef\u5f97\u5230\u5e73\u5747\u65f6\u5ef6 max \u5355\u4f4d\u4e3a\u79d2         \u5f53\u524d\u5468\u671f\u5185\u6700\u5927\u8017\u65f6 <ul> <li>\u7ebf\u7a0b\u6c60\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 threadpool.corePoolSize   id ${threadPoolName} \u6700\u5c0f\u7ebf\u7a0b\u6570 threadpool.maxThreads  \u6700\u5927\u5141\u8bb8\u7684\u7ebf\u7a0b\u6570 threadpool.poolSize  \u5f53\u524d\u5b9e\u9645\u7ebf\u7a0b\u6570 threadpool.currentThreadsBusy  \u5f53\u524d\u7684\u6d3b\u52a8\u7ebf\u7a0b\u6570\uff0c\u5373\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u4efb\u52a1\u6570 threadpool.queueSize  \u5f53\u524d\u6b63\u5728\u6392\u961f\u7684\u4efb\u52a1\u6570 threadpool.rejectedCount  \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u88ab\u62d2\u7edd\u7684\u4efb\u52a1\u6570 threadpool.taskCount \u7edf\u8ba1\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63d0\u4ea4\u7684\u4efb\u52a1\u6570taskCount=\uff08completed + queue + active\uff09/\u5468\u671f\uff08\u79d2\uff09 threadpool.completedTaskCount  \u7edf\u8ba1\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u5b8c\u6210\u7684\u4efb\u52a1\u6570completedTaskCount=completed/\u5468\u671f\uff08\u79d2\uff09"},{"location":"general-development/metrics.html#_4","title":"\u5f00\u53d1\u8005\u4fe1\u606f\u548c\u9ad8\u7ea7\u8bfe\u9898","text":"<ul> <li>\u5b9e\u73b0\u539f\u7406</li> </ul> <pre><code>1. \u57fa\u4e8e[netflix spectator](https://github.com/Netflix/spectator)\n2. Foundation-metrics\u901a\u8fc7SPI\u673a\u5236\u52a0\u8f7d\u6240\u6709MetricsInitializer\u5b9e\u73b0\uff0c\u5b9e\u73b0\u8005\u53ef\u4ee5\u901a\u8fc7MetricsInitializer\u4e2d\u7684getOrder\u89c4\u5212\u6267\u884c\u987a\u5e8f\uff0corder\u6570\u5b57\u8d8a\u5c0f\uff0c\u8d8a\u5148\u6267\u884c\u3002\n3. Metrics-core\u5b9e\u73b03\u7c7bMetricsInitializer\uff1a\n  1. DefaultRegistryInitializer: \u5b9e\u4f8b\u5316\u5e76\u6ce8\u518cspectator-reg-servo\uff0c\u8bbe\u7f6e\u8f83\u5c0f\u7684order\uff0c\u4fdd\u8bc1\u6bd4\u4e0b\u97622\u7c7bMetricsInitializer\u5148\u6267\u884c\n  2. Meters Initializer: \u5b9e\u73b0TPS\u3001\u65f6\u5ef6\u3001\u7ebf\u7a0b\u6c60\u3001jvm\u8d44\u6e90\u7b49\u7b49\u6570\u636e\u7684\u7edf\u8ba1\n  3. Publisher: \u8f93\u51fa\u7edf\u8ba1\u7ed3\u679c\uff0c\u5185\u7f6e\u4e86\u65e5\u5fd7\u8f93\u51fa\uff0c\u4ee5\u53ca\u901a\u8fc7RESTful\u63a5\u53e3\u8f93\u51fa\n4. Metrics-prometheus\u63d0\u4f9b\u4e0eprometheus\u5bf9\u63a5\u7684\u80fd\u529b\n</code></pre> <ul> <li>\u4e1a\u52a1\u5b9a\u5236</li> </ul> <p>\u56e0\u4e3aServiceComb\u5df2\u7ecf\u521d\u59cb\u5316\u4e86servo\u7684registry\uff0c\u6240\u4ee5\u4e1a\u52a1\u4e0d\u5fc5\u518d\u521b\u5efaregistry\u3002\u5b9e\u73b0MetricsInitializer\u63a5\u53e3\uff0c\u5b9a   \u4e49\u4e1a\u52a1\u7ea7\u7684Meters\uff0c\u6216\u5b9e\u73b0\u5b9a\u5236\u7684Publisher\uff0c\u518d\u901a\u8fc7SPI\u673a\u5236\u58f0\u660e\u81ea\u5df1\u7684\u5b9e\u73b0\u5373\u53ef\u3002</p> <p>1.Meters</p> <pre><code>\u521b\u5efaMeters\u80fd\u529b\u5747\u7531spectator\u63d0\u4f9b\uff0c\u53ef\u67e5\u9605[netflix spectator](https://github.com/Netflix/spectator)\u6587\u6863\n</code></pre> <p>2.Publisher</p> <pre><code>\u5468\u671f\u6027\u8f93\u51fa\u7684\u573a\u666f\uff0c\u6bd4\u5982\u65e5\u5fd7\u573a\u666f\uff0c\u901a\u8fc7eventBus\u8ba2\u9605org.apache.servicecomb.foundation.metrics.PolledEvent\uff0cPolledEvent.getMeters()\u5373\u662f\u672c\u5468\u671f\u7684\u7edf\u8ba1\u7ed3\u679c\n \u975e\u5468\u671f\u6027\u8f93\u51fa\u7684\u573a\u666f\uff0c\u6bd4\u5982\u901a\u8fc7RESTful\u63a5\u53e3\u8bbf\u95ee\uff0c\u901a\u8fc7globalRegistry.iterator()\u5373\u53ef\u5f97\u5230\u672c\u5468\u671f\u7684\u7edf\u8ba1\u7ed3\u679c\n</code></pre>"},{"location":"general-development/microservice-invocation-chain.html","title":"\u5fae\u670d\u52a1\u8c03\u7528\u94fe","text":""},{"location":"general-development/microservice-invocation-chain.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5fae\u670d\u52a1\u67b6\u6784\u89e3\u51b3\u4e86\u5f88\u591a\u5355\u4f53\u5e94\u7528\u5e26\u6765\u7684\u95ee\u9898\uff0c\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6211\u4eec\u4ed8\u51fa\u989d\u5916\u7684\u4ee3\u4ef7\u3002\u7531\u4e8e\u7f51\u7edc\u7684\u4e0d\u7a33\u5b9a\u6027\u5e26\u6765\u7684\u8bf7\u6c42\u5904\u7406\u5ef6\u8fdf\u5c31\u662f\u4ee3\u4ef7\u4e4b\u4e00\u3002</p> <p>\u5728\u5355\u4f53\u5e94\u7528\u4e2d\uff0c\u6240\u6709\u6a21\u5757\u90fd\u5728\u540c\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u8fd0\u884c\uff0c\u6240\u4ee5\u5e76\u6ca1\u6709\u6a21\u5757\u95f4\u4e92\u901a\u7684\u95ee\u9898\u3002\u4f46\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u670d\u52a1\u95f4\u901a\u8fc7\u7f51\u7edc\u6c9f\u901a\uff0c\u56e0\u6b64\u6211\u4eec\u4e0d\u5f97\u4e0d\u5904\u7406\u548c\u7f51\u7edc\u6709\u5173\u7684 \u95ee\u9898\uff0c\u4f8b\u5982\uff1a\u5ef6\u8fdf\u3001\u8d85\u65f6\u3001\u7f51\u7edc\u5206\u533a\u7b49\u3002</p> <p>\u53e6\u5916\uff0c\u968f\u7740\u4e1a\u52a1\u7684\u6269\u5c55\u670d\u52a1\u589e\u591a\uff0c\u6211\u4eec\u5f88\u96be\u6d1e\u5bdf\u6570\u636e\u5982\u4f55\u5728\u86db\u7f51\u822c\u590d\u6742\u7684\u670d\u52a1\u7ed3\u6784\u4e2d\u6d41\u8f6c\u3002\u6211\u4eec\u5982\u4f55\u624d\u80fd\u6709\u6548\u7684\u76d1\u63a7\u7f51\u7edc\u5ef6\u8fdf\u5e76\u4e14\u53ef\u89c6\u5316\u670d\u52a1\u4e2d\u7684\u6570\u636e\u6d41\u8f6c\u5462\uff1f</p> <p>\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7528\u4e8e\u6709\u6548\u5730\u76d1\u63a7\u5fae\u670d\u52a1\u7684\u7f51\u7edc\u5ef6\u65f6\u5e76\u53ef\u89c6\u5316\u5fae\u670d\u52a1\u4e2d\u7684\u6570\u636e\u6d41\u8f6c\u3002</p>"},{"location":"general-development/microservice-invocation-chain.html#zipkin","title":"Zipkin","text":"<p>Zipkin\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7cfb\u7edf\u3002 \u5b83\u80fd\u5e2e\u52a9\u7528\u6237\u6536\u96c6\u65f6\u5e8f\u6570\u636e\u7528\u4ee5\u5b9a\u4f4d\u5fae\u670d\u52a1\u4e2d\u7684\u5ef6\u8fdf\u95ee\u9898\uff0c\u5b83\u540c\u65f6\u7ba1\u7406\u8ffd\u8e2a\u6570\u636e\u7684\u6536\u96c6 \u548c\u67e5\u8be2\u3002Zipkin \u7684\u8bbe\u8ba1\u57fa\u4e8e Google Dapper paper\u3002</p> <p>ServiceComb \u96c6\u6210\u4e86 Zipkin \u63d0\u4f9b\u81ea\u52a8\u8c03\u7528\u94fe\u8ffd\u8e2a\u80fd\u529b\uff0c\u5982\u6b64\u4e00\u6765\u7528\u6237\u53ea\u9700\u8981\u4e13\u6ce8\u5b9e\u73b0\u5176\u4e1a\u52a1\u9700\u6c42\u3002</p>"},{"location":"general-development/microservice-invocation-chain.html#_2","title":"\u4f7f\u7528\u6b65\u9aa4:","text":""},{"location":"general-development/microservice-invocation-chain.html#_3","title":"\u6dfb\u52a0\u4f9d\u8d56","text":"<p>\u57fa\u4e8e ServiceComb Java Chassis \u7684\u5fae\u670d\u52a1\u53ea\u9700\u8981\u6dfb\u52a0\u5982\u4e0b\u4f9d\u8d56\u5230 pom.xml\uff1a</p> <pre><code>&lt;dependency&gt;   \n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;handler-tracing-zipkin&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u5982\u679c\u5fae\u670d\u52a1\u662f\u57fa\u4e8e Spring Cloud + Zuul \u7684 API \u7f51\u5173\uff0c\u4f8b\u5982 workshop demo \u4e2d\u7684 manager service \uff0c\u6211\u4eec\u8fd8\u9700\u8981\u52a0\u5165\u5982\u4e0b\u7684\u989d\u5916\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;    \n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;spring-cloud-zuul-zipkin&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"general-development/microservice-invocation-chain.html#_4","title":"\u914d\u7f6e\u8ffd\u8e2a\u5904\u7406\u548c\u6570\u636e\u6536\u96c6 {#\u914d\u7f6e\u8ffd\u8e2a\u5904\u7406\u548c\u6570\u636e\u6536\u96c6}","text":"<p>\u5728microservice.yaml\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u8ffd\u8e2a\u5904\u7406\u5668\u548c\u6570\u636e\u6536\u96c6\u670d\u52a1\u5730\u5740</p> <pre><code>  servicecomb: \n    handler: \n      chain: \n        Consumer: \n          default: tracing-consumer\n        Provider: \n          default: tracing-provider\n  servicecomb: \n    tracing: \n      collector: \n        address: http://zipkin.servicecomb.io:9411\n</code></pre> <p>\u5c31\u8fd9\u6837\uff0c\u5728\u52a0\u4e86\u4e24\u4e2a\u914d\u7f6e\u9879\uff0c\u6ca1\u6539\u52a8\u4e00\u884c\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u542f\u52a8\u4e86\u57fa\u4e8e Zipkin \u548c Java chassis \u7684\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7684\u529f\u80fd\u3002</p> <p>\u6ce8\u610f \u5982\u679c\u9879\u76ee\u4e2d\u7684\u5176\u4ed6\u4f9d\u8d56\u4e5f\u5f15\u5165\u4e86 zipkin \uff08\u4f8b\u5982 Spring Cloud\uff09\uff0c\u53ef\u80fd\u5bfc\u81f4 zipkin \u7248\u672c\u4e0d\u4e00\u81f4\u800c\u8fd0\u884c\u51fa\u9519\uff0c\u8fd9\u65f6\u9700\u8981\u5728\u9879\u76ee pom \u4e2d\u58f0\u660e zipkin \u7248\u672c\u3002</p>"},{"location":"general-development/multienvironment.html","title":"\u5fae\u670d\u52a1\u5b9e\u4f8b\u95f4\u591a\u73af\u5883\u9694\u79bb","text":"<p>\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4e86\u89e3\u672c\u5fae\u670d\u52a1\u80fd\u591f\u53d1\u73b0\u90a3\u4e9b\u5176\u4ed6\u670d\u52a1\u7684\u5b9e\u4f8b\u3002ServiceComb\u63d0\u4f9b\u4e86\u5206\u5c42\u6b21\u7684\u5b9e\u4f8b\u9694\u79bb\u3002</p>"},{"location":"general-development/multienvironment.html#_2","title":"\u5fae\u670d\u52a1\u5b9e\u4f8b\u5206\u5c42\u7ba1\u7406","text":"<p>\u8981\u4e86\u89e3\u5b9e\u4f8b\u95f4\u7684\u9694\u79bb\u5c42\u6b21\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3ServiceComb\u5b9a\u4e49\u7684\u4e00\u4e2a\u4f53\u7cfb\u5b8c\u5907\u7684\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\uff1a</p> <p></p> <p>\u5728\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\u4e2d\uff0c\u9876\u5c42\u662f\u9879\u76ee\uff08project\uff09\uff0c\u9879\u76ee\u4e2d\u7684\u5e94\u7528\u5206\u5c5e\u4e8e\u4e0d\u540c\u73af\u5883\uff08environment\uff09\uff0c\u5373\u6d4b\u8bd5\u548c\u751f\u4ea7\u73af\u5883\u53ef\u4ee5\u5206\u5f00\uff0c\u6bcf\u4e2a\u73af\u5883\u4e0b\u5305\u542b\u591a\u4e2a\u5e94\u7528\uff08application\uff09\uff0c\u5728\u67d0\u4e2a\u7279\u5b9a\u5e94\u7528\u7684\u7279\u5b9a\u73af\u5883\u4e2d\uff0c\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff08service\uff09\uff0c\u4e00\u4e2a\u5fae\u670d\u52a1\u53c8\u53ef\u4ee5\u540c\u65f6\u5b58\u5728\u591a\u4e2a\u7248\u672c\uff08version\uff09\u3002 \u4ee5\u4e0a\uff0c\u662f\u6240\u6709\u9759\u6001\u5143\u6570\u636e\u7684\u8303\u7574\uff0c\u67d0\u4e2a\u7279\u5b9a\u670d\u52a1\u7684\u7279\u5b9a\u7248\u672c\u5219\u5305\u542b\u591a\u4e2a\u5728\u8fd0\u884c\u65f6\u6ce8\u518c\u4e0a\u6765\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u56e0\u4e3a\u670d\u52a1\u5b9e\u4f8b\u7684\u4fe1\u606f\u5728\u8fd0\u884c\u65f6\u968f\u7740\u7cfb\u7edf\u7684\u4f38\u7f29\u3001\u6545\u969c\u7b49\u539f\u56e0\u662f\u52a8\u6001\u53d8\u5316\u7684\uff0c\u6240\u4ee5\u670d\u52a1\u5b9e\u4f8b\u7684\u8def\u7531\u4fe1\u606f\u53c8\u4e3a\u52a8\u6001\u6570\u636e\u3002\u901a\u8fc7\u5206\u5c42\u7ba1\u7406\u5fae\u670d\u52a1\u7684\u8fd9\u4e9b\u6570\u636e\uff0c\u4e5f\u5c31\u81ea\u7136\u800c\u7136\u5730\u5b9e\u73b0\u4e86\u5b9e\u4f8b\u4e4b\u95f4\u7684\u903b\u8f91\u9694\u79bb\u3002 * Project\u5bf9\u5e94\u5230\u534e\u4e3a\u4e91\u4e0a\u5404region\u4e0b\u521b\u5efa\u7684project\uff0c\u4e0d\u540c\u7684project\u4e92\u76f8\u9694\u79bb\uff0c\u5982\u679c\u8be5region\u4e0b\u6ca1\u6709\u65b0\u5efaproject\uff0c\u5219\u4ee3\u8868\u8be5region\uff1b\u4f8b\u5982\uff0c\u5728\u534e\u5317\u533a\uff08cn-north-1\uff09\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u5b57\u4e3atianjing\u7684project\uff0c\u82e5\u60f3\u5fae\u670d\u52a1\u6ce8\u518c\u5230\u8be5project\u4e0b\uff0c\u53ef\u4ee5\u5728microservice.yaml\u6587\u4ef6\u91cc\u914d\u7f6e\uff1a</p> <pre><code>  servicecomb:\n    credentials:\n      project: cn-north-1_tianjing\n</code></pre> <ul> <li> <p>Environment\u8868\u793a\u5f53\u524d\u5fae\u670d\u52a1\u5b9e\u4f8b\u6240\u5c5e\u73af\u5883\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.environment\u914d\u7f6e\u5f53\u524d\u5b9e\u4f8b\u73af\u5883\u3002</p> </li> <li> <p>Application\u4ee3\u8868\u4e00\u4e2a\u8f6f\u4ef6\u5e94\u7528\u7684\u903b\u8f91\u5b9e\u4f53\uff0c\u8868\u793a\u4e00\u4e2a\u6709\u4e1a\u52a1\u529f\u80fd\u5448\u73b0\u7ed9\u7528\u6237\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5e94\u7528\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7APPLICATION_ID\u914d\u7f6e\u5e94\u7528\u540d\u3002</p> </li> <li> <p>Service\u662f\u5bf9\u6309\u9700\u53d6\u7528\u7684\u529f\u80fd\u5bf9\u8c61\u7684\u4e00\u79cd\u63cf\u8ff0\uff0c\u4e00\u4e2a\u5e94\u7528\u4e0b\u5b58\u5728\u591a\u4e2a\u670d\u52a1\uff0c\u5404\u670d\u52a1\u95f4\u76f8\u4e92\u8c03\u7528\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.name\u6307\u5b9a\u670d\u52a1\u540d\u3002</p> </li> <li> <p>Version\u8868\u793a\u5f53\u524d\u670d\u52a1\u7684\u7248\u672c\uff0c\u4e00\u4e2a\u670d\u52a1\u4e0b\u53ef\u5b58\u5728\u591a\u4e2a\u7248\u672c\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.version\u914d\u7f6e\u5f53\u524d\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff1b\u6d88\u8d39\u7aef\u8fdb\u884c\u8bbf\u95ee\u65f6\uff0c\u9ed8\u8ba4\u6309\u7167\u8def\u7531\u89c4\u5219\u8fdb\u884c\u8bbf\u95ee\uff0c\u53ef\u4ee5\u5728\u6d88\u8d39\u7aef\u901a\u8fc7servicecomb.references.[providerName].version-rule\u8bbe\u7f6e\u7248\u672c\u89c4\u5219\u3002</p> </li> </ul>"},{"location":"general-development/multienvironment.html#_3","title":"\u5178\u578b\u573a\u666f","text":""},{"location":"general-development/multienvironment.html#_4","title":"\u5e94\u7528\u95f4\u9694\u79bb\u53ca\u8de8\u5e94\u7528\u8c03\u7528","text":""},{"location":"general-development/multienvironment.html#_5","title":"\u529f\u80fd\u4ecb\u7ecd","text":"<p>\u5728ServiceComb\u6846\u67b6\u4e2d\uff0c\u4e00\u4e2a\u5e94\u7528\u4e0b\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\u3002 \u540c\u4e00\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u516c\u5171\u670d\u52a1\u90e8\u7f72\u5230\u591a\u4e2a\u5e94\u7528\uff0c\u901a\u8fc7\u6307\u5b9a\u4e0d\u540c\u7684APPLICATION_ID\u6765\u5b9e\u73b0\u3002</p> <p></p> <p>\u4e0d\u540c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u5141\u8bb8\u5728\u540c\u4e00\u4e2a\u5e94\u7528\u91cc\u76f8\u4e92\u8c03\u7528\uff0c\u5f53\u7528\u6237\u9700\u8981\u4e0d\u540c\u5e94\u7528\u95f4\u7684\u5fae\u670d\u52a1\u76f8\u4e92\u8c03\u7528\u65f6\uff0c\u5c31\u9700\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u529f\u80fd\u3002  </p>"},{"location":"general-development/multienvironment.html#_6","title":"\u914d\u7f6e\u8bf4\u660e\uff1a","text":"<ol> <li>\u82e5\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\uff0c\u9996\u5148\u9700\u5728provider\u7aef\u7684microservice.yaml\u6587\u4ef6\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u914d\u7f6e\u3002\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</li> </ol> <pre><code>    service_description:\n      properties:\n        allowCrossApp: true\n</code></pre> <ol> <li>Consumer\u7aef\u6307\u5b9a\u5fae\u670d\u52a1\u540d\u79f0\u8c03\u7528provider\u7684\u65f6\u5019\uff0c\u9700\u8981\u52a0\u4e0aprovider\u6240\u5c5e\u7684\u5e94\u7528ID\uff0c\u683c\u5f0f\u7531[microserviceName]\u53d8\u4e3a[appID]:[microserviceName]\u3002</li> </ol>"},{"location":"general-development/multienvironment.html#_7","title":"\u4ee3\u7801\u793a\u4f8b\uff1a","text":"<p>\u5047\u8bbeconsumer\u6240\u5c5e\u5e94\u7528\u4e3ahelloApp\uff0cprovider\u6240\u5c5e\u5e94\u7528\u4e3ahellApp2\uff0c\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahelloProvider\u3002 * RestTemplate\u8c03\u7528\u65b9\u5f0f \u5f53consumer\u7aef\u4ee5RestTemplate\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u9700\u8981\u5728\u8c03\u7528\u7684URL\u4e2d\u5c06[microserviceName]\u6539\u4e3a[appID]:[microserviceName]\uff0c\u5982\u4e0b\uff1a</p> <pre><code>RestTemplate restTemplate = RestTemplateBuilder.create();\nResponseEntity&lt;String&gt; responseEntity = restTemplate.getForEntity(\u201ccse://helloApp2:helloProvider/hello/sayHello?name={name}\u201d, String.class, \u201cServiceComb\u201d);\n</code></pre> <ul> <li>RPC\u8c03\u7528\u65b9\u5f0f \u5f53consumer\u7aef\u4ee5RPC\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u58f0\u660e\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u4ee3\u7406\u5982\u4e0b\uff1a</li> </ul> <pre><code>@RpcReference(schemaId = \u201chello\u201d, microserviceName = \u201chelloApp2:helloProvider\u201d)\nprivate Hello hello;\n</code></pre> <p>\u8de8\u5e94\u7528\u8c03\u7528\u4e0e\u540c\u5e94\u7528\u4e0b\u8c03\u7528\u5fae\u670d\u52a1\u7684\u65b9\u5f0f\u76f8\u540c\uff1a</p> <pre><code>hello.sayHello(\u201cServiceComb\u201d);\n</code></pre>"},{"location":"general-development/multienvironment.html#_8","title":"\u5178\u578b\u573a\u666f","text":""},{"location":"general-development/multienvironment.html#_9","title":"\u5f00\u53d1\u73af\u5883\u4e92\u76f8\u9694\u79bb\u53ca\u5feb\u901f\u5f00\u53d1","text":""},{"location":"general-development/multienvironment.html#_10","title":"\u529f\u80fd\u4ecb\u7ecd","text":"<p>ServiceComb\u6846\u67b6\u901a\u8fc7\u8bbe\u7f6eenvironment\uff0c\u53ef\u4ee5\u5c06\u5fae\u670d\u52a1\u5b9e\u4f8b\u6807\u8bb0\u4e3a\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u9884\u751f\u4ea7\u3001\u751f\u4ea7\u73af\u5883\uff0c\u5b9e\u73b0\u4e86\u5728\u5b9e\u4f8b\u7ea7\u522b\u7684\u5929\u7136\u9694\u79bb\uff1b\u5ba2\u6237\u7aef\u5728\u67e5\u627e\u670d\u52a1\u7aef\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u53ea\u80fd\u53d1\u73b0\u76f8\u540cenvironment\u4e0b\u7684\u670d\u52a1\u7aef\u5b9e\u4f8b\u3002</p> <p></p> <p>ServiceComb\u5728\u8bbe\u8ba1\u65f6\uff0c\u4e25\u683c\u4f9d\u8d56\u4e8e\u5951\u7ea6\uff0c\u6240\u4ee5\u6b63\u5e38\u60c5\u51b5\u4e0b\u5951\u7ea6\u53d8\u4e86\uff0c\u5c31\u5fc5\u987b\u8981\u4fee\u6539\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u4f46\u662f\u5982\u679c\u5f53\u524d\u8fd8\u662f\u5f00\u53d1\u6a21\u5f0f\uff0c\u90a3\u4e48\u4fee\u6539\u63a5\u53e3\u5c31\u662f\u5f88\u6b63\u5e38\u7684\u60c5\u51b5\uff0c\u5f53\u4fee\u6539\u5b8c\u6bd5\u518d\u6b21\u542f\u52a8\u5f53\u524d\u670d\u52a1\u65f6\uff0c\u65b0\u751f\u6210\u7684\u5951\u7ea6\u548cService Center\u4e0a\u4fdd\u5b58\u7684\u65e7\u5951\u7ea6\u4f1a\u51b2\u7a81\u5e76\u62a5\u9519\uff0c\u5bfc\u81f4\u542f\u52a8\u5931\u8d25\uff0c\u5982\u679c\u6bcf\u6b21\u90fd\u901a\u8fc7\u4fee\u6539\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff0c\u6216\u8005\u5220\u9664\u8be5\u670d\u52a1\u5728Service Center\u4e0a\u7684\u7f13\u5b58\u6570\u636e\u6765\u89e3\u51b3\uff0c\u663e\u7136\u5bf9\u5f00\u53d1\u4eba\u5458\u5f88\u4e0d\u53cb\u597d\u3002 ServiceComb\u6846\u67b6\u652f\u6301\u5728\u5f00\u53d1\u6001\u8fdb\u884c\u5fae\u670d\u52a1\u7684\u5feb\u901f\u8c03\u8bd5\uff0c\u901a\u8fc7\u5c06environment\u914d\u7f6e\u4e3adevelopment\u5373\u53ef\u3002\u5f53\u63a5\u53e3\u4fee\u6539\u4e86\uff08Schema\u53d1\u751f\u4e86\u53d8\u5316\uff09\uff0c\u91cd\u542f\u5c31\u53ef\u4ee5\u6b63\u5e38\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u800c\u4e0d\u7528\u4fee\u6539\u7248\u672c\u53f7\u3002 \u4f46\u662f\u5982\u679c\u6709consumer\u5df2\u7ecf\u8c03\u7528\u4e86\u91cd\u542f\u4e4b\u524d\u7684\u670d\u52a1\uff0c\u90a3\u4e48consumer\u7aef\u4e5f\u9700\u8981\u91cd\u542f\u624d\u80fd\u83b7\u53d6\u6700\u65b0provider\u7684schema\uff1b\u6bd4\u5982A-&gt;B\uff0cB\u63a5\u53e3\u8fdb\u884c\u4e86\u4fee\u6539\u5e76\u4e14\u91cd\u542f\uff0c\u90a3\u4e48A\u8fd9\u4e2a\u65f6\u5019\u8fd8\u662f\u4f7f\u7528B\u4e4b\u524d\u7684schema\uff0c\u8c03\u7528\u53ef\u80fd\u4f1a\u51fa\u9519\uff0c\u4ee5\u514d\u51fa\u73b0\u672a\u77e5\u5f02\u5e38\uff0cA\u4e5f\u9700\u8981\u91cd\u542f\u3002  </p>"},{"location":"general-development/multienvironment.html#_11","title":"\u914d\u7f6e\u8bf4\u660e\uff1a","text":"<p>\u4ec5\u652f\u6301\u4ee5\u4e0b\u679a\u4e3e\u503c\uff1adevelopment,testing,acceptance,production\uff0c\u4e0d\u914d\u7f6e\u7684\u60c5\u51b5\u4e0b\u7f3a\u7701\u503c\u4e3a\"\"\uff08\u7a7a\uff09\u3002  \u65b9\u6cd51\uff1a\u901a\u8fc7JVM\u542f\u52a8\u53c2\u6570-Dservice_description.environment=development\uff08\u679a\u4e3e\u503c\uff09\u8fdb\u884c\u8bbe\u7f6e\uff1b  \u65b9\u6cd52\uff1a\u901a\u8fc7microservice.yaml\u914d\u7f6e\u6587\u4ef6\u6765\u6307\u5b9a\uff1a</p> <pre><code>  service_description:\n    environment: development\n</code></pre> <ul> <li>\u65b9\u6cd53\uff1a\u901a\u8fc7\u73af\u5883\u53d8\u91cfSERVICECOMB_ENV\u6765\u6307\u5b9a\uff08\u4ec5\u9650\u4e8ewindows\u7cfb\u7edf\uff09\uff0c\u82e5\u662f\u5f00\u53d1\u6001\uff0c\u5176\u503c\u914d\u7f6e\u4e3adevelopment\uff1b</li> </ul>"},{"location":"general-development/multienvironment.html#_12","title":"\u5178\u578b\u573a\u666f","text":""},{"location":"general-development/multienvironment.html#_13","title":"\u4e24\u5730\u4e09\u4e2d\u5fc3","text":""},{"location":"general-development/multienvironment.html#_14","title":"\u529f\u80fd\u4ecb\u7ecd","text":"<p>\u5728\u4ee5\u4e24\u5730\u4e09\u4e2d\u5fc3\u7684\u89e3\u51b3\u65b9\u6848\u8fdb\u884c\u8de8\u5730\u533a\u90e8\u7f72\u670d\u52a1\u7684\u573a\u666f\uff0c\u540c\u4e00\u5957\u670d\u52a1\u5b58\u5728\u4e8e\u591a\u4e2aavailableZone\u4e2d\uff0c\u9700\u8981\u5b9e\u73b0\u4f18\u5148\u8c03\u7528\u540c\u4e00\u4e2aAZ\u5185\u7684\u5e94\u7528\uff0c\u82e5\u672cAZ\u51fa\u73b0\u95ee\u9898\uff0c\u8981\u80fd\u591f\u8bbf\u95ee\u53e6\u4e00\u4e2aAZ\u4e0b\u7684\u5e94\u7528\uff0c\u4ece\u800c\u4fdd\u8bc1\u670d\u52a1\u7684\u53ef\u9760\u6027\u3002 ServiceComb\u63d0\u4f9b\u4e86\u6570\u636e\u4e2d\u5fc3\u914d\u7f6e\uff0c\u6765\u5b9e\u73b0\u5bf9\u5fae\u670d\u52a1\u7684\u5206\u533a\u548c\u7ba1\u7406\u3002\u6570\u636e\u4e2d\u5fc3\u5305\u542b3\u4e2a\u5c5e\u6027\uff1aservicecomb.datacenter.name, servicecomb.datacenter.region, servicecomb.datacenter.availableZone\uff0c\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u4e0d\u63d0\u4f9b\u9694\u79bb\u80fd\u529b\uff0c\u5fae\u670d\u52a1\u53ef\u4ee5\u53d1\u73b0\u5176\u4ed6\u6570\u636e\u4e2d\u5fc3\u7684\u5b9e\u4f8b\u3002\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u542f\u7528\u5b9e\u4f8b\u4eb2\u548c\u6027\uff0c\u6765\u4f18\u5148\u5f80\u6307\u5b9a\u7684\u533a\u57df\u6216\u8005Zone\u53d1\u6d88\u606f\u3002</p> <p></p> <p>\u5ba2\u6237\u7aef\u5728\u8def\u7531\u7684\u65f6\u5019\uff0c\u4f1a\u4f18\u5148\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230zone/region\u90fd\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u7136\u540e\u662fregion\u76f8\u540c\uff0c\u4f46zone\u4e0d\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u90fd\u4e0d\u76f8\u540c\u7684\u65f6\u5019\uff0c\u5219\u6309\u7167\u8def\u7531\u89c4\u5219\u9009\u62e9\u4e00\u4e2a\u3002\u4eb2\u548c\u6027\u4e0d\u662f\u903b\u8f91\u9694\u79bb\uff0c\u53ea\u8981\u5b9e\u4f8b\u4e4b\u95f4\u7f51\u7edc\u662f\u8054\u901a\u7684\uff0c\u90a3\u4e48\u90fd\u6709\u53ef\u80fd\u8bbf\u95ee\u5230\uff1b\u5982\u679c\u7f51\u7edc\u4e0d\u901a\uff0c\u5219\u4f1a\u8bbf\u95ee\u5931\u8d25\u3002 \u5728\u534e\u4e3a\u4e91\u4e0a\u90e8\u7f72\u65f6\uff0c\u53ef\u5c06region\u548cavailableZone\u7684\u503c\u4e0e\u534e\u4e3a\u4e91\u7684region\uff08\u4f8b\u5982\uff1acn-north-1\uff09\u548c\u53ef\u7528\u533a\u5bf9\u5e94\u8d77\u6765\uff0c\u4f46\u662f\u56e0\u4e3a\u534e\u4e3a\u4e91\u4e0a\u7684\u4e0d\u540cregion\u76ee\u524d\u7f51\u7edc\u4e0d\u4e92\u901a\uff0c\u6240\u4ee5\u6b64\u65f6\u4e0d\u652f\u6301\u8de8region\u8bbf\u95ee\uff1b\u9664\u4e86\u5bf9\u5e94\u534e\u4e3a\u4e91\u7684region\u503c\uff0c\u4e5f\u53ef\u4ee5\u81ea\u884c\u5b9a\u4e49\u5176\u4ed6\u503c\uff0c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4f5c\u76f8\u5e94\u8c03\u6574\uff0c\u975e\u5e38\u7075\u6d3b\u3002  </p>"},{"location":"general-development/multienvironment.html#_15","title":"\u914d\u7f6e\u8bf4\u660e\uff1a","text":"<pre><code>servicecomb:\n  datacenter:\n    name: mydatacenter\n    region: my-Region\n    availableZone: my-Zone\n</code></pre>"},{"location":"general-development/produceprocess.html","title":"\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u6269\u5c55","text":""},{"location":"general-development/produceprocess.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5f53\u524dREST\u901a\u9053\u8fd4\u56de\u503c\u652f\u6301application/json\u548ctext/plain\u4e24\u79cd\u683c\u5f0f\uff0c\u652f\u6301\u5f00\u53d1\u4eba\u5458\u6269\u5c55\u548c\u91cd\u5199\uff0c\u670d\u52a1\u63d0\u4f9b\u8005\u901a\u8fc7produces\u58f0\u660e\u53ef\u63d0\u4f9b\u5e8f\u5217\u5316\u80fd\u529b\uff0c\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7\u8bf7\u6c42\u7684Accept\u5934\u6307\u660e\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u8fd4\u56deapplication/json\u683c\u5f0f\u7684\u6570\u636e\u3002</p>"},{"location":"general-development/produceprocess.html#_3","title":"\u5f00\u53d1\u8bf4\u660e","text":"<ul> <li>\u6269\u5c55</li> </ul> <p>\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u8981\uff0c\u901a\u8fc7\u7f16\u7a0b\u7684\u65b9\u5f0f\u6765\u6269\u5c55\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u65b9\u5f0f\u3002\u5b9e\u65bd\u6b65\u9aa4\u5982\u4e0b\uff0c\u4ee5\u6269\u5c55\u652f\u6301application/xml\u683c\u5f0f\u4e3a\u4f8b\uff1a</p> <p>1.\u5b9e\u73b0\u63a5\u53e3<code>ProduceProcessor</code></p> <p>getName()\u8fd4\u56de\u5f53\u524d\u6269\u5c55\u7684\u6570\u636e\u7c7b\u578b\u540d</p> <p>getOrder()\u8fd4\u56de\u5f53\u524d\u6570\u636e\u7c7b\u578b\u4f18\u5148\u7ea7\uff0c\u6709\u591a\u4e2a\u540c\u540d\u5b9e\u73b0\u7c7b\u65f6\u751f\u6548\uff0c\u53ea\u52a0\u8f7d\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\uff0c\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8</p> <p>doEncodeResponse(OutputStream output, Object result)\u628aresult\u5bf9\u8c61\u7f16\u7801\u6210output\uff0c\u6b64\u5904\u903b\u8f91\u9700\u8981\u81ea\u884c\u5b9e\u73b0</p> <p>doDecodeResponse(InputStream input, JavaType type)\u628ainput\u89e3\u6790\u6210\u76f8\u5e94\u5bf9\u8c61\uff0c\u6b64\u5904\u903b\u8f91\u9700\u8981\u81ea\u884c\u5b9e\u73b0</p> <p>```java   public class ProduceAppXmlProcessor implements ProduceProcessor {</p> <pre><code>@Override\npublic String getName() {\n  return MediaType.APPLICATION_XML;\n}\n\n@Override\npublic int getOrder() {\n  return 0;\n}\n\n@Override\npublic void doEncodeResponse(OutputStream output, Object result) throws Exception {\n  output.write(JAXBUtils.convertToXml(result).getBytes());\n}\n\n@Override\npublic Object doDecodeResponse(InputStream input, JavaType type) throws Exception {\n  return JAXBUtils.convertToJavaBean(input, type);\n}\n</code></pre> <p>}   ```</p> <p>2.\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6</p> <p>\u5728resources\u4e0bMETA-INF/services/\u6587\u4ef6\u5939\u65b0\u5efa\u6587\u4ef6xxx.ProduceProcessor\uff08xxx\u4e3a\u63a5\u53e3\u7684\u5305\u540d\uff09\uff0c\u5185\u5bb9\u586b\u5199xxx.ProduceAppXmlProcessor\uff08xxx\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5305\u540d\uff09\u3002</p> <ul> <li>\u91cd\u5199</li> </ul> <p>\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5bf9\u73b0\u6709\u7684application/json\u548ctext/plain\u4e24\u79cd\u683c\u5f0f\u5b9e\u73b0\u903b\u8f91\u8fdb\u884c\u91cd\u5199\uff0c\u4e5f\u53ef\u4ee5\u5bf9\u81ea\u884c\u6269\u5c55\u7684\u683c\u5f0f\u8fdb\u884c\u91cd\u5199\uff0c\u4ee5\u91cd\u5199xml\u5e8f\u5217\u5316\u65b9\u5f0f\u4e3a\u4f8b\uff1a</p> <p>1.\u521b\u5efa\u4e00\u4e2a\u540c\u540d\u7c7b<code>ProduceAppXmlProcessor</code>\uff0c\u5b9e\u73b0\u63a5\u53e3<code>ProduceProcessor</code></p> <p>2.\u91cd\u5199<code>doEncodeResponse</code>\u548c<code>doDecodeResponse</code>\u65b9\u6cd5\u91cc\u7684\u7f16\u89e3\u7801\u903b\u8f91</p> <p>3.\u66f4\u6539getOrder\u65b9\u6cd5\u91cc\u7684\u8fd4\u56de\u503c\uff0c\u8981\u6bd4\u539f\u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u5c0f\uff0c\u4f8b\u5982\u8fd4\u56de-1\uff0capplication/json\u548ctext/plain\u7684\u539f\u65b9\u6cd5\u8fd4\u56de\u503c\u9ed8\u8ba4\u90fd\u4e3a0</p> <p>4.\u5728resources\u4e0bMETA-INF/services/\u6587\u4ef6\u5939\u65b0\u5efa\u6587\u4ef6xxx.ProduceProcessor\uff08xxx\u4e3a\u63a5\u53e3\u7684\u5305\u540d\uff09\uff0c\u5185\u5bb9\u586b\u5199xxx.ProduceAppXmlProcessor\uff08xxx\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5305\u540d\uff09\u3002</p> <ul> <li>\u9a8c\u8bc1</li> </ul> <p>\u670d\u52a1\u63d0\u4f9b\u8005\u901a\u8fc7produces\u58f0\u660e\u53ef\u63d0\u4f9bxml\u5e8f\u5217\u5316\u80fd\u529b</p> <p><code>java     @RequestMapping(path = \"/appXml\", method = RequestMethod.POST, produces = MediaType.APPLICATION_XML_VALUE)     public JAXBPerson appXml(@RequestBody JAXBPerson person) {       return person;     }</code></p> <p>\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7\u8bf7\u6c42\u7684Accept\u5934\u6307\u660e\u8fd4\u56de\u503cxml\u5e8f\u5217\u5316\u65b9\u5f0f</p> <p><code>java     private void testCodeFirstAppXml(RestTemplate template, String cseUrlPrefix) {       JAXBPerson person = new JAXBPerson(\"jake\", 22, \"it\", \"60kg\");       person.setJob(new JAXBJob(\"developer\", \"coding\"));       HttpHeaders headers = new HttpHeaders();       headers.add(\"Accept\", MediaType.APPLICATION_XML_VALUE);       HttpEntity&lt;JAXBPerson&gt; requestEntity = new HttpEntity&lt;&gt;(person, headers);       ResponseEntity&lt;JAXBPerson&gt; resEntity = template.exchange(cseUrlPrefix + \"appXml\",           HttpMethod.POST,           requestEntity,           JAXBPerson.class);       TestMgr.check(person, resEntity.getBody());     }</code></p>"},{"location":"general-development/proxy.html","title":"\u4ee3\u7406\u8bbe\u7f6e","text":"<p>\u4f5c\u4e3a\u4e00\u540d\u5f00\u53d1\u8005\uff0c\u5728\u516c\u53f8\u5f00\u53d1\u73af\u5883\uff0c\u53ef\u80fd\u662f\u901a\u8fc7\u516c\u53f8\u4ee3\u7406\u7f51\u7edc\u63a5\u5165\u5230\u56e0\u7279\u7f51\u3002\u5982\u679c\u8c03\u8bd5\u670d\u52a1\u65f6\u8fd8\u5fc5\u987b\u4f9d\u8d56\u7f51\u4e0a\u8d44\u6e90\uff0c\u6bd4\u5982\u76f4\u63a5\u8fde\u63a5\u516c\u6709\u4e91\u670d\u52a1\u4e2d\u5fc3\uff0c\u90a3\u4e48\u5c31\u5fc5\u987b\u914d\u7f6e\u4ee3\u7406\u3002</p> <p>\u914d\u7f6e\u65b9\u5f0f\uff0c\u5728 microservice.yaml \u6587\u4ef6\u589e\u52a0 proxy \u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  proxy:\n    enable: true            #\u662f\u5426\u5f00\u542f\u4ee3\u7406\n    host: yourproxyaddress  #\u4ee3\u7406\u5730\u5740\n    port: 80                #\u4ee3\u7406\u7aef\u53e3\n    username: yourname      #\u7528\u6237\u540d\n    passwd: yourpassword    #\u5bc6\u7801\n</code></pre> <p>\u6709\u4e9b\u7528\u6237\u9700\u8981\u901a\u8fc7\u52a0\u5bc6\u4fdd\u62a4\u5bc6\u7801\u4fe1\u606f\u3002\u53ef\u4ee5\u901a\u8fc7\u5b9e\u73b0SPI\u6269\u5c55\u6765\u5b9e\u73b0\u3002\u9700\u8981\u6269\u5c55\u7684SPI\u63a5\u53e3\u540d\u79f0\u4e3a\uff1aorg.apache.servicecomb.foundation.common.encrypt.Encryption\uff0c\u5b9e\u73b0 decode \u63a5\u53e3\u5373\u53ef\u3002</p>"},{"location":"general-development/reactive.html","title":"Reactive","text":""},{"location":"general-development/reactive.html#producer","title":"\u7b80\u5355\u540c\u6b65\u6a21\u5f0f\u7684Producer\uff1a","text":"<p>\u793a\u4f8b\u4ee3\u7801\uff1a</p> <pre><code>@GetMapping(path = \"/hello/{name}\")\npublic String hello(@PathVariable(name = \"name\") String name){\n  return \"hello \" + name;\n}\n</code></pre> <p>\u4e0e\u6b64\u5bf9\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <p>\u8fd9\u662f\u4f20\u7edf\u5178\u578b\u7684\u5de5\u4f5c\u6a21\u578b\uff0c\u6838\u5fc3\u601d\u60f3\u662f\u4e0d\u963b\u585e\u7f51\u7edc\u7ebf\u7a0b\uff0c\u5c06\u4e1a\u52a1\u653e\u5728\u72ec\u7acb\u7684\u7ebf\u7a0b\u4e2d\u5904\u7406\uff08\u4e3a\u4e86\u7b80\u5316\u8868\u8fbe\uff0cexecutor\u4e2d\u53ea\u753b\u4e00\u4e2a\u7ebf\u7a0b\uff09</p> <p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6b64\u6a21\u5f0f\u95ee\u9898\u4e0d\u5927\u3002</p>"},{"location":"general-development/reactive.html#_1","title":"\u5d4c\u5957\u540c\u6b65\u8c03\u7528\uff1a","text":"<p>\u4e0d\u662f\u6240\u6709\u7684\u4e1a\u52a1\u90fd\u662f\u7b80\u5355\u5904\u7406\u4e00\u4e0b\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u5e94\u7b54\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u8c03\u7528\u5176\u4ed6\u5fae\u670d\u52a1.</p> <p>\u793a\u4f8b\u4ee3\u7801\uff1a</p> <pre><code>public interface Intf{\n  String hello(String name);\n}\n\n@GetMapping(path = \"/hello/{name}\")\npublic String hello(@PathVariable(name = \"name\") String name){\n  return \"from remote: hello \" + intf.hello(name);\n}\n</code></pre> <p>\u4e0e\u6b64\u5bf9\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <p>\u6839\u636e\u8fd9\u4e2a\u6d41\u7a0b\u7684\u7279\u70b9\uff0c\u53ef\u4ee5\u770b\u5230\u4f1a\u4ea7\u751f\u4ee5\u4e0b\u7ed3\u679c\uff1a</p> <ul> <li> <p>\u56e0\u4e3a\u662f\u540c\u6b65\u8c03\u7528\uff0c\u5728\u201cOther microservices\u201d\u672a\u5e94\u7b54\u4e4b\u524d\u201cMicroservice A\u201d\u7684\u8c03\u7528\u7ebf\u7a0b\u4e00\u76f4\u5904\u4e8e\u963b\u585e\u7b49\u5f85\u72b6\u6001\uff0c\u4e0d\u5904\u7406\u4efb\u4f55\u5176\u4ed6\u4e8b\u52a1</p> </li> <li> <p>\u5f53Executor\u4e2d\u6240\u6709\u7ebf\u7a0b\u90fd\u5728\u7b49\u5f85\u8fdc\u7a0b\u5e94\u7b54\u65f6\uff0c\u6240\u6709\u65b0\u7684\u8bf7\u6c42\u90fd\u53ea\u80fd\u5728Queue\u4e2d\u6392\u961f\uff0c\u5f97\u4e0d\u5230\u5904\u7406\uff0c\u6b64\u65f6\u6574\u4e2a\u7cfb\u7edf\u76f8\u5f53\u4e8e\u505c\u6b62\u5de5\u4f5c\u4e86</p> </li> <li> <p>\u8981\u589e\u52a0\u5904\u7406\u80fd\u529b\uff0c\u53ea\u80fd\u589e\u52a0Executor\u4e2d\u7684\u7ebf\u7a0b\u6570\uff0c\u800c\u64cd\u4f5c\u7cfb\u7edf\u5e76\u4e0d\u80fd\u65e0\u9650\u5730\u589e\u52a0\u7ebf\u7a0b\u6570\uff0c\u4e8b\u5b9e\u4e0a\u589e\u52a0\u7ebf\u7a0b\u6570\u5e26\u6765\u7684\u6536\u76ca\u662f\u4e00\u4e2a\u629b\u7269\u7ebf\u6a21\u578b\uff0c\u8d85\u51fa\u4e00\u5b9a\u7684\u4e34\u754c\u503c\u540e\uff0c\u7cfb\u7edf\u7684\u5904\u7406\u80fd\u529b\u5176\u5b9e\u4f1a\u4e0b\u964d\uff0c\u800c\u8fd9\u4e2a\u4e34\u754c\u503c\u5e76\u4e0d\u4f1a\u592a\u5927</p> </li> <li> <p>\u5f53\u4e1a\u52a1\u903b\u8f91\u4e2d\uff0c\u9700\u8981\u591a\u6b21\u8fdb\u884c\u8fdc\u7a0b\u540c\u6b65\u64cd\u4f5c\u65f6\uff0c\u4f1a\u66f4\u52a0\u6076\u5316\u8fd9\u4e2a\u73b0\u8c61</p> </li> </ul>"},{"location":"general-development/reactive.html#_2","title":"\u5d4c\u5957\u540c\u6b65\u8c03\u7528\u7684\u201c\u9519\u8bef\u201d\u4f18\u5316\uff1a","text":"<p>\u9488\u5bf9\u524d\u4e00\u573a\u666f\uff0c\u6709\u4eba\u4f1a\u8ba4\u4e3a\u5c06\u201cInvoke producer method\u201d\u4e22\u8fdb\u53e6\u4e00\u4e2a\u7ebf\u7a0b\u6c60\uff0c\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\uff0c\u5305\u62ec\u4ee5\u4e0b\u5904\u7406\u65b9\u5f0f\uff1a</p> <ul> <li> <p>\u5728producer method\u6253\u6807\u6ce8@Async\uff0c\u7531AOP\u8d1f\u8d23\u5c06\u5bf9\u8be5\u65b9\u6cd5\u7684\u8c03\u7528\u4e22\u8fdb\u5176\u4ed6\u7ebf\u7a0b\u6c60\u53bb</p> </li> <li> <p>\u5728producer method\u5185\u90e8\u901a\u8fc7\u4e1a\u52a1\u4ee3\u7801\u8f6c\u79fb\u7ebf\u7a0b</p> </li> </ul> <p>\u5f62\u6210\u4ee5\u4e0b\u6d41\u7a0b\uff1a</p> <p></p> <p>\u6839\u636e\u8fd9\u4e2a\u6d41\u7a0b\u7684\u7279\u70b9\uff0c\u53ef\u4ee5\u770b\u5230\u4f1a\u4ea7\u751f\u4ee5\u4e0b\u7ed3\u679c\uff1a</p> <ul> <li> <p>\u201cInvoke producer method\u201d\u5fc5\u987b\u7acb\u5373\u8fd4\u56de\uff0c\u5426\u5219Executor\u7ebf\u7a0b\u8fd8\u662f\u5f97\u4e0d\u5230\u91ca\u653e</p> </li> <li> <p>\u201cInvoke producer method\u201d\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e2a\u65b0\u7684\u673a\u5236\u544a\u77e5\u8c03\u7528\u6d41\u7a0b\u81ea\u5df1\u7684\u8fd4\u56de\u503c\uff0c\u4e0d\u662f\u6700\u7ec8\u8fd4\u56de\u503c\uff08\u5f53\u524d\u6ca1\u6709\u8fd9\u4e2a\u673a\u5236\uff09</p> </li> <li> <p>\u867d\u7136Executor\u7ebf\u7a0b\u91ca\u653e\u4e86\uff0c\u4f46\u662fCustomer Executor\uff0c\u5176\u5b9e\u8fd8\u662f\u963b\u585e\u4f4f\uff0c\u5728\u7b49\u5f85\u8fdc\u7aef\u5e94\u7b54\uff0c\u6574\u4e2a\u7cfb\u7edf\u7684\u963b\u585e\u72b6\u6001\u5e76\u6ca1\u6709\u5f97\u5230\u6539\u53d8\uff1b\u800c\u4e14\u8fd8\u51ed\u7a7a\u591a\u4e86\u4e00\u6b21\u7ebf\u7a0b\u5207\u6362</p> </li> <li> <p>\u8be5\u673a\u5236\u770b\u4e0a\u53bb\uff0c\u552f\u4e00\u7684\u4f5c\u7528\uff0c\u662f\u91ca\u653e\u4e86executor\u7ebf\u7a0b\uff0c\u8ba9executor\u7ebf\u7a0b\u6709\u673a\u4f1a\u5904\u7406\u5176\u4ed6\u8bf7\u6c42\uff0c\u8fd9\u76f8\u5f53\u4e8e\u9694\u79bb\u4ed3\u7684\u6982\u5ff5\uff0c\u5904\u7406\u901f\u5ea6\u6162\u7684\u4e1a\u52a1\u4e0d\u8981\u5f71\u54cd\u5176\u4ed6\u4e1a\u52a1\uff1b\u4f46\u662f\u8fd9\u4e2a\u6982\u5ff5serviceComb\u662f\u53ef\u4ee5\u76f4\u63a5\u652f\u6301\u7684\uff0c\u53ef\u4ee5\u914d\u7f6e\u6307\u5b9a\u7684\u4e1a\u52a1\u65b9\u6cd5\u72ec\u5360\u5168\u65b0\u7684executor\uff0c\u8fd9\u6837\u6574\u4e2a\u6d41\u7a0b\u5c31\u8ddf\u201c\u5d4c\u5957\u540c\u6b65\u8c03\u7528\u201d\u5b8c\u5168\u4e00\u6837\uff0c\u6d41\u7a0b\u66f4\u7b80\u5355\uff0c\u800c\u4e0d\u9700\u8981\u5728\u201cInvoke producer method\u201d\u5c42\u6b21\u6765\u505a\u8fd9\u4e2a\u4e8b\u60c5</p> </li> </ul>"},{"location":"general-development/reactive.html#reactive","title":"\u7eafReactive\u673a\u5236","text":"<p>\u793a\u4f8b\u4ee3\u7801\uff1a</p> <pre><code>public interface Intf{\n  CompletableFuture&lt;String&gt; hello(String name);\n}\n\n@GetMapping(path = \"/hello/{name}\")\npublic CompletableFuture&lt;String&gt; hello(@PathVariable(name = \"name\") String name){\n  CompletableFuture&lt;String&gt; future = new CompletableFuture&lt;&gt;();\n  intf.hello(name).whenComplete((result, exception) -&gt; {\n    if (exception == null) {\n      future.complete(\"from remote: \" + result);\n      return;\n    }\n\n    future.completeExceptionally(exception);\n  });\n  return future;\n}\n</code></pre> <p>\u4e0e\u6b64\u5bf9\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <ul> <li> <p>\u4e0e\u4f20\u7edf\u6d41\u7a0b\u4e0d\u540c\u7684\u662f\uff0c\u6240\u6709\u529f\u80fd\u90fd\u5728eventloop\u4e2d\u6267\u884c\uff0c\u5e76\u4e0d\u4f1a\u8fdb\u884c\u7ebf\u7a0b\u5207\u6362</p> </li> <li> <p>\u6a59\u8272\u7bad\u5934\u8d70\u5b8c\u540e\uff0c\u5bf9\u672c\u7ebf\u7a0b\u7684\u5360\u7528\u5373\u5b8c\u6210\u4e86\uff0c\u4e0d\u4f1a\u963b\u585e\u7b49\u5f85\u5e94\u7b54\uff0c\u8be5\u7ebf\u7a0b\u53ef\u4ee5\u5904\u7406\u5176\u4ed6\u4efb\u52a1</p> </li> <li> <p>\u5f53\u6536\u5230\u8fdc\u7aef\u5e94\u7b54\u540e\uff0c\u7531\u7f51\u7edc\u6570\u636e\u9a71\u52a8\u5f00\u59cb\u8d70\u7ea2\u8272\u7bad\u5934\u7684\u5e94\u7b54\u6d41\u7a0b</p> </li> <li> <p>\u53ea\u8981\u6709\u4efb\u52a1\uff0c\u7ebf\u7a0b\u5c31\u4e0d\u4f1a\u505c\u6b62\uff0c\u4f1a\u4e00\u76f4\u6267\u884c\u4efb\u52a1\uff0c\u53ef\u4ee5\u5145\u5206\u5229\u7528cpu\u8d44\u6e90\uff0c\u4e5f\u4e0d\u4f1a\u4ea7\u751f\u591a\u4f59\u7684\u7ebf\u7a0b\u5207\u6362\uff0c\u53bb\u65e0\u8c13\u5730\u6d88\u8017cpu\u3002</p> </li> </ul> <p>\u56e0\u4e3a\u540c\u6b65\u6a21\u5f0f\u4e0b\uff0c\u9700\u8981\u5927\u91cf\u7684\u7ebf\u7a0b\u6765\u63d0\u5347\u5e76\u53d1\u5ea6\uff0c\u800c\u5927\u91cf\u7684\u7ebf\u7a0b\u53c8\u5e26\u6765\u7ebf\u7a0b\u5207\u6362\u7684\u989d\u5916\u6d88\u8017\u3002</p> <p>\u6d4b\u8bd5\u6570\u636e\u8868\u660e\uff0creactive\u6a21\u5f0f\uff0c\u53ea\u9700\u8981\u6d88\u8017\u540c\u6b65\u6a21\u5f0f\u4e0d\u5230\u4e00\u534a\u7684cpu\uff0c\u5373\u53ef\u8fbe\u5230\u6216\u8d85\u8fc7\u540c\u6b65\u6a21\u5f0f\u7684tps\uff0c\u5e76\u4e14\u65f6\u5ef6\u66f4\u4f4e\u3002</p>"},{"location":"general-development/reactive.html#reactive_1","title":"\u6df7\u5408Reactive\u673a\u5236","text":"<p>Reactvie\u8981\u6c42\uff1a\u6240\u6709\u5728eventloop\u4e2d\u6267\u884c\u7684\u903b\u8f91\uff0c\u4e0d\u5141\u8bb8\u6709\u4efb\u4f55\u7684\u963b\u585e\u52a8\u4f5c\uff0c\u5305\u62ec\u4e0d\u9650\u4e8ewait\u3001sleep\u3001\u5de8\u5927\u5faa\u73af\u3001\u540c\u6b65\u67e5\u8be2DB\u7b49\u7b49\u3002</p> <p>serviceComb\u5e95\u5c42\u662f\u57fa\u4e8evertx\u7684\uff0cvertx\u751f\u6001\u4e2d\u6709jdbc\u3001mq\u3001zooKeeper\u7b49\u7b49\u5404\u79cd\u4e30\u5bcc\u7ec4\u4ef6\u7684reactive\u9a71\u52a8\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u90fd\u53ef\u4ee5\u6ee1\u8db3\u8981\u6c42\u3002</p> <p>\u4f46\u662f\u6709\u7684\u573a\u666f\u4e0b\uff0c\u786e\u5b9e\u6709\u7684\u540c\u6b65\u64cd\u4f5c\u65e0\u6cd5\u907f\u514d\uff0c\u6bd4\u5982\uff1a</p> <ul> <li> <p>\u79c1\u6709\u7684\u5b89\u5168\u52a0\u56fa\u7684redis\uff0c\u53ea\u63d0\u4f9b\u4e86\u540c\u6b65\u9a71\u52a8</p> </li> <li> <p>\u8f83\u590d\u6742\u7684\u4e1a\u52a1\u8fd0\u7b97</p> </li> <li> <p>\u2026\u2026</p> </li> </ul> <p>\u6b64\u65f6\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u540c\u6b65\u7684\u903b\u8f91\u62bd\u53d6\u51fa\u6765\u653e\u5230\u7ebf\u7a0b\u6c60\u4e2d\u53bb\u5904\u7406\uff0c\u800c\u5176\u4ed6\u90e8\u5206\u4ecd\u7136\u4f7f\u7528reactive\u7684\u6d41\u7a0b\u3002</p>"},{"location":"general-development/reactive.html#reactive_2","title":"\u5173\u4e8ereactive\u7684\u4e00\u4e9b\u8bf4\u660e\uff1a","text":"<ul> <li> <p>Producer\uff1a</p> </li> <li> <p>producer\u662f\u5426\u4f7f\u7528reactive\u4e0econsumer\u5982\u4f55\u8c03\u7528\uff0c\u6ca1\u6709\u4efb\u4f55\u8054\u7cfb</p> </li> <li> <p>\u5f53operation\u8fd4\u56de\u503c\u4e3aCompletableFuture\u7c7b\u578b\u65f6\uff0c\u9ed8\u8ba4\u6b64operation\u5de5\u4f5c\u4e8ereactive\u6a21\u5f0f\uff0c\u6b64\u65f6\u5982\u679c\u9700\u8981\u5f3a\u5236\u6b64operation\u5de5\u4f5c\u4e8e\u7ebf\u7a0b\u6c60\u6a21\u5f0f\uff0c\u9700\u8981\u5728microservice.yaml\u4e2d\u660e\u786e\u914d\u7f6e\uff1b\u5047\u8bbe\u67d0operation\uff0c\u5176schemaId\u4e3asid\uff0coperationId\u4e3aasyncQuery\uff0c\u5219\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u914d\u7f6e\uff1a</p> </li> </ul> <pre><code>servicecomb:\n  executors:\n    Provider:\n      sid.asyncQuery: cse.executor.groupThreadPool\n</code></pre> <p>\u8fd9\u91cc\u7684cse.executor.groupThreadPool\u662fserviceComb\u5185\u7f6e\u7684\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\uff0c\u7528\u6237\u53ef\u4ee5\u4efb\u610f\u6307\u5b9a\u4e3a\u81ea\u5df1\u7684\u5b9a\u5236\u7ebf\u7a0b\u6c60\u3002</p> <ul> <li> <p>Consumer\uff1a</p> </li> <li> <p>consumer\u662f\u5426\u4f7f\u7528reactive\u4e0eproducer\u5982\u4f55\u5b9e\u73b0\uff0c\u6ca1\u6709\u4efb\u4f55\u8054\u7cfb</p> </li> <li> <p>\u5f53\u524d\u53ea\u652f\u6301\u900f\u660eRPC\u6a21\u5f0f\uff0c\u4f7f\u7528JDK\u539f\u751f\u7684CompletableFuture\u6765\u627f\u8f7d\u6b64\u529f\u80fd</p> <p>completableFuture\u7684when\u3001then\u7b49\u7b49\u529f\u80fd\u90fd\u53ef\u76f4\u63a5\u4f7f\u7528</p> <p>\u4f46\u662fcompletableFuture\u7684async\u7cfb\u5217\u529f\u80fd\uff0c\u5176\u5b9e\u662f\u53e6\u5916\u542f\u7ebf\u7a0b\u6c60\u6765\u6267\u884c\u529f\u80fd\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528</p> <p>\u5173\u4e8eRxJava Observable\u7684\u652f\u6301\u540e\u7eed\u4f1a\u52a0\u5165</p> <p>\u5173\u4e8eAsyncRestTemplate\u7684\u652f\u6301\u540e\u7eed\u4f1a\u52a0\u5165</p> </li> </ul>"},{"location":"general-development/report-framework-version.html","title":"\u6846\u67b6\u4e0a\u62a5\u7248\u672c\u53f7","text":""},{"location":"general-development/report-framework-version.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u4e3a\u65b9\u4fbf\u6cbb\u7406\uff0c\u4f7f\u7528ServiceComb\u8fdb\u884c\u5f00\u53d1\uff0c\u4f1a\u5c06\u5f53\u524d\u4f7f\u7528\u7684ServiceComb\u7248\u672c\u53f7\u4e0a\u62a5\u81f3\u670d\u52a1\u4e2d\u5fc3\uff0c\u5e76\u4e14\u652f\u6301\u5176\u4ed6\u6846\u67b6\u96c6\u6210ServiceComb\u65f6\u4e0a\u62a5\u5176\u4ed6\u6846\u67b6\u7684\u7248\u672c\u53f7\u3002</p>"},{"location":"general-development/report-framework-version.html#_2","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u6b65\u9aa41 \u9996\u5148\u5b9e\u73b0\u5f00\u6e90\u6846\u67b6ServiceComb\u7684Versions\u63a5\u53e3\uff0c\u5b9e\u73b0\u8be5\u63a5\u53e3\u4e0b\u7684loadVersion\u65b9\u6cd5\uff0c\u5373\u53ef\u5c06\u7248\u672c\u540d\u79f0\u548c\u7248\u672c\u53f7\u4f5c\u4e3a\u952e\u503c\u5bf9\u8fd4\u56de</p> <pre><code>public class MyVersion implements Versions{\n  @Override\n  public Map&lt;String, String&gt; loadVersion() {\n    Map&lt;String, String&gt; map = new HashMap&lt;&gt;();\n    map.put(\"My\", this.getClass().getPackage().getImplementationVersion());\n    return map;\n  }\n}\n</code></pre> <p>\u6b65\u9aa42 \u4e3a\u4e86\u4f7f\u7528SPI\u673a\u5236\u8ba9\u8be5\u8fd4\u56de\u5bf9\u8c61\u88abServiceComb\u8bfb\u53d6\u5230\uff0c\u9700\u8981\u5728META-INF\u4e2d\u589e\u52a0services\u6587\u4ef6\u5939\uff0c\u5e76\u5728\u5176\u4e2d\u589e\u52a0\u4e00\u4e2a\u6587\u4ef6\uff0c\u4ee5\u6240\u5b9e\u73b0\u63a5\u53e3x.x.x.Versions(\u5e26\u5305\u540d)\u4e3a\u540d\uff0c\u4ee5\u5177\u4f53\u5b9e\u73b0\u7c7bx.x.x.CseVersion(\u5e26\u5305\u540d)\u4e3a\u5185\u5bb9</p> <p>\u5f53\u670d\u52a1\u6ce8\u518c\u5230ServiceCenter\u65f6\uff0c\u4f1a\u643a\u5e26\u6240\u6709\u7248\u672c\u53f7\u4fe1\u606f</p> <pre><code>{\n  \"serviceId\": \"xxx\",\n  \"appId\": \"xxx\",\n  \"registerBy\": \"SDK\",\n  \"framework\": {\n    \"name\": \"servicecomb-java-chassis\",\n    \"version\": \"My:x.x.x;ServiceComb:x.x.x\"\n  } \n}\n</code></pre> <ul> <li>\u5907\u6ce8</li> </ul> <p>\u4e0a\u62a5\u7684\u7248\u672c\u53f7\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u4e5f\u53ef\u4ee5\u4ecepom\u6216jar\u5305\u7684MANIFEST.MF\u91cc\u8bfb\u53d6\uff0c\u5982\u679c\u4f7f\u7528.class.getPackage().getImplementationVersion()\u4eceMANIFEST.MF\u83b7\u53d6\u7248\u672c\u53f7\uff0c\u5219\u9700\u8981\u5728pom\u6587\u4ef6\u4e2d\u628amaven-jar-plugin\u7684archive\u5143\u7d20addDefaultImplementationEntries\u548caddDefaultSpecificationEntries\u8bbe\u7f6e\u4e3atrue</p> <pre><code>&lt;plugin&gt;\n  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;\n  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;\n  &lt;configuration&gt;\n    &lt;archive&gt;\n      &lt;manifest&gt;\n        &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;\n        &lt;addDefaultSpecificationEntries&gt;true&lt;/addDefaultSpecificationEntries&gt;\n      &lt;/manifest&gt;\n    &lt;/archive&gt;\n  &lt;/configuration&gt;\n&lt;/plugin&gt;\n</code></pre>"},{"location":"general-development/secret-field.html","title":"\u5b9a\u5236\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5","text":""},{"location":"general-development/secret-field.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7531\u4e8eHTTP\u534f\u8bae\u7684\u975e\u5b89\u5168\u6027\uff0c\u5728\u7f51\u7edc\u4e2d\u4f20\u8f93\u7684\u6570\u636e\u80fd\u8f7b\u6613\u88ab\u5404\u79cd\u6293\u5305\u5de5\u5177\u76d1\u542c\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u4e1a\u52a1\u5bf9\u5e94\u7528\u6216\u670d\u52a1\u95f4\u4f20\u8f93\u7684\u654f\u611f\u6570\u636e\u6709\u8f83\u9ad8\u7684\u5b89\u5168\u8981\u6c42\uff0c\u8fd9\u7c7b\u6570\u636e\u9700\u8981\u7279\u522b\u7684\u52a0\u5bc6\u4fdd\u62a4\uff08\u4e1a\u52a1\u4e0d\u540c\u5bf9\u7b97\u6cd5\u8981\u6c42\u4e0d\u540c\uff09\uff0c\u8fd9\u6837\u5373\u4f7f\u5185\u5bb9\u88ab\u622a\u83b7\uff0c\u4e5f\u53ef\u4ee5\u4fdd\u62a4\u5176\u4e2d\u7684\u654f\u611f\u6570\u636e\u4e0d\u88ab\u8f7b\u6613\u83b7\u53d6\u3002</p>"},{"location":"general-development/secret-field.html#_2","title":"\u89e3\u51b3\u65b9\u6cd5","text":"<p>\u670d\u52a1\u95f4\u7684\u901a\u4fe1\u79bb\u5f00\u4e0d\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\uff0c\u5bf9\u4e8e\u4e0a\u8ff0\u7684\u573a\u666f\uff0c\u4f7f\u7528jackson\u7c7b\u5e93\u63d0\u4f9b\u7684 @JsonSerialize \u548c @JsonDeserialize \u6ce8\u89e3\u529f\u80fd\uff0c\u5bf9\u654f\u611f\u6570\u636e\u5b9a\u5236\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\uff0c\u5e76\u5728\u5b9a\u5236\u5316\u7684\u65b9\u6cd5\u4e2d\u5b9e\u73b0\u52a0\u89e3\u5bc6\u529f\u80fd\u3002</p> <p>\u6ce8\u89e3\u63cf\u8ff0\u53c2\u8003\uff1a\u5728 https://github.com/FasterXML/jackson-databind/wiki \u4e2d\u67e5\u627e\u5bf9\u5e94\u7248\u672c\u7684Javadocs</p>"},{"location":"general-development/secret-field.html#_3","title":"\u793a\u4f8b","text":"<p>1.\u5bf9 Person \u5bf9\u8c61\u4e2d\u7684 name \u5c5e\u6027\uff0c\u901a\u8fc7\u6ce8\u89e3\u8bbe\u5b9a\u4f7f\u7528\u7279\u5b9a\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\u3002\u6ce8\uff1a\u6b64\u5904\u6f14\u793a\u5982\u4f55\u4f7f\u7528\uff0c\u4e0d\u6d89\u53ca\u52a0\u89e3\u5bc6\u76f8\u5173\u3002</p> <pre><code>public class Person {\n  private int usrId;\n\n  //\u6307\u5b9a\u6570\u636e name \u4f7f\u7528\u7279\u5b9a\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\n  @JsonSerialize(using = SecretSerialize.class)\n  @JsonDeserialize(using = SecretDeserialize.class)\n  private String name;\n\n  public int getUsrId() {\n    return usrId;\n  }\n\n  public void setUsrId(int usrId) {\n    this.usrId = usrId;\n  }\n\n  public String getName() {\n    return name;\n  }\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  @Override\n  public String toString() {\n    return \"Person{\" +\n        \"usrId=\" + usrId +\n        \", name='\" + name + '\\'' +\n        '}';\n  }\n}\n</code></pre> <p>2.\u5b9a\u4e49 SecretSerialize \u7c7b \u548c SecretDeserialize \u7c7b\uff0c\u5e76\u91cd\u5199\u5176\u65b9\u6cd5</p> <pre><code>public class SecretSerialize extends JsonSerializer&lt;String&gt; {\n\n  //\u91cd\u5199 name \u7684\u5e8f\u5217\u5316\u65b9\u6cd5\uff0c\u53ef\u5728\u6b64\u5b9e\u73b0\u7528\u6237\u5b9a\u5236\u7684\u52a0\u89e3\u5bc6\u6216\u5176\u4ed6\u64cd\u4f5c\n  @Override\n  public void serialize(String value, JsonGenerator gen, SerializerProvider serializers)\n      throws IOException, JsonProcessingException {\n    //\u5728\u6570\u636e name \u540e\u589e\u52a04\u4e2a\u7279\u5b9a\u5b57\u7b26\n    value = value + \" &amp;#@\";\n\n    //\u6267\u884c\u5e8f\u5217\u5316\u64cd\u4f5c\n    gen.writeString(value);\n  }\n}\n\npublic class SecretDeserialize extends JsonDeserializer&lt;String&gt; {\n\n  //\u91cd\u5199 name \u7684\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\uff0c\u4e0eserialize\u5e8f\u5217\u5316\u65b9\u6cd5\u5339\u914d\uff0c\u6309\u7528\u6237\u5b9a\u5236\u7684\u89c4\u5219\u83b7\u53d6\u771f\u5b9e\u6570\u636e\n  @Override\n  public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n    //\u83b7\u53d6\u53cd\u5e8f\u5217\u5316\u6570\u636e\uff0c\u9664\u53bb4\u4e2a\u7279\u5b9a\u5b57\u7b26\uff0c\u83b7\u53d6\u771f\u5b9e\u7684 name\n    String value = p.getValueAsString();\n    value = value.substring(0, value.length() - 4);\n    return value;\n  }\n}\n</code></pre>"},{"location":"general-development/service-information-printer.html","title":"\u670d\u52a1\u4fe1\u606f\u6253\u5370","text":""},{"location":"general-development/service-information-printer.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u4e3a\u4e86\u4f7f\u7528\u6237\u53ef\u4ee5\u66f4\u5feb\u6377\uff0c\u65b9\u4fbf\u7684\u83b7\u5f97\u670d\u52a1\u4fe1\u606f\uff0c\u5c06\u670d\u52a1\u4fe1\u606f\u8fdb\u884c\u6574\u7406\uff0c\u5e76\u5728\u65e5\u5fd7\u4e2d\u6253\u5370\u51fa\u6765</p>"},{"location":"general-development/service-information-printer.html#_3","title":"\u6548\u679c","text":"<p>\u4e0d\u8bba\u670d\u52a1\u521b\u5efa\u6210\u529f\u4e0e\u5426\uff0c\u670d\u52a1\u4fe1\u606f\u90fd\u4f1a\u5728\u65e5\u5fd7\u4fe1\u606f\u7684\u672b\u5c3e\u88ab\u81ea\u52a8\u6253\u51fa\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u641c\u7d22\"Service Information is shown below\"\u8fdb\u884c\u5b9a\u4f4d</p> <pre><code>2019-08-21 16:37:14,859 [INFO] Service information is shown below:\nservice center: [http://127.0.0.1:30100]\nconfig center: [http://127.0.0.1:30113]\nAppID: Restful-Service-HelloWorld\nServiceName: restful_provider\nVersion: 0.0.1\nEnvironment: production\nServiceID: a3344e9ad4557f883b36d7f53e33306fbc0a54ad\nInstanceID; e0765a8ec3ee11e9910d0255ac105780\n org.apache.servicecomb.core.SCBEngine$1.afterRegistryInstance(SCBEngine.java:243)\n</code></pre>"},{"location":"general-development/service-information-printer.html#_4","title":"\u6269\u5c55","text":""},{"location":"general-development/service-information-printer.html#_5","title":"\u76f8\u5173\u7684\u63a5\u53e3","text":"<p>\u63a5\u53e3BootUpInformationCollector</p> <p>collect(): \u8fd4\u56de\u4e00\u4e2astring\uff0c\u4e5f\u5c31\u662f\u670d\u52a1\u4e2d\u9700\u8981\u6253\u5370\u7684\u4fe1\u606f getOrder(): \u8fd4\u56deBootUpInformationCollector\u5b9e\u73b0\u7c7b\u7684\u4f18\u5148\u7ea7\uff0c\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8</p>"},{"location":"general-development/service-information-printer.html#_6","title":"\u7528\u6237\u6269\u5c55","text":"<p>\u7528\u6237\u5982\u679c\u9700\u8981\u5bf9\u6253\u5370\u4fe1\u606f\u8fdb\u884c\u8fdb\u4e00\u6b65\u6269\u5c55\uff0c\u9700\u8981 1. \u6839\u636eBootUpInformationCollector\u521b\u5efa\u65b0\u7684\u7c7b\uff0c\u5e76\u8d4b\u4e88\u5408\u9002\u7684order\u3002 2. \u521b\u5efaSPI\u6587\u4ef6</p>"},{"location":"general-development/service-information-printer.html#_7","title":"\u6837\u4f8b","text":"<ol> <li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b9e\u73b0\u7c7bHelloCollector</li> </ol> <pre><code>public class HelloCollector implements BootUpInformationCollector {\n  @Override\n  public String collect() {\n    return \"Hello!\";\n  }\n\n  @Override\n  public int getOrder() {\n    return 5;\n  }\n}\n</code></pre> <p>\u7531\u4e8eorder\u662f5\uff0c\u6240\u4ee5\u8fd9\u4e2a\u7c7b\u4f1a\u5728\u5730\u5740\u4fe1\u606f\uff08order 0\uff09\u548c\u670d\u52a1\u4fe1\u606f\uff08order 200\uff09\u4e4b\u95f4\u88ab\u6253\u51fa 2. \u521b\u5efaSPI\u6587\u4ef6 \u5728resources/META-INF/services\u4e2d\u521b\u5efa\u65b0\u7684SPI\u6587\u4ef6 \u540d\u5b57\uff1aorg.apache.servicecomb.core.bootup.BootUpInformationCollector \u5185\u5bb9\uff1a(HelloCollector\u7684\u7c7b\u540d) 3. \u8fd0\u884c\u6548\u679c <code>2019-08-21 16:37:14,859 [INFO] Service information is shown below:    service center: [http://127.0.0.1:30100]    config center: [http://127.0.0.1:30113]    Hello!    AppID: Restful-Service-HelloWorld    ServiceName: restful_provider    Version: 0.0.1    Environment: production    ServiceID: a3344e9ad4557f883b36d7f53e33306fbc0a54ad    InstanceID; e0765a8ec3ee11e9910d0255ac105780     org.apache.servicecomb.core.SCBEngine$1.afterRegistryInstance(SCBEngine.java:243)</code></p>"},{"location":"general-development/shutdown.html","title":"\u4f18\u96c5\u505c\u673a","text":"<p>ServiceComb\u662f\u901a\u8fc7JDK\u7684ShutdownHook\u6765\u5b8c\u6210\u4f18\u96c5\u505c\u673a\u7684\u3002</p>"},{"location":"general-development/shutdown.html#_2","title":"\u4f7f\u7528\u573a\u666f","text":"<p>\u4f18\u96c5\u505c\u673a\u53ef\u4ee5\u89e3\u51b3\u4ee5\u4e0b\u573a\u666f\uff1a * KILL PID * \u5e94\u7528\u610f\u5916\u81ea\u52a8\u9000\u51fa\uff08System.exit(n)\uff09</p> <p>\u4f18\u96c5\u505c\u673a\u89e3\u51b3\u4e0d\u4e86\u4ee5\u4e0b\u573a\u666f\uff1a * KILL -9 PID \u6216 taskkill /f /pid</p>"},{"location":"general-development/shutdown.html#_3","title":"\u6548\u679c","text":"<p>\u89e6\u53d1\u4f18\u96c5\u505c\u673a\u65f6\uff1a * \u670d\u52a1\u63d0\u4f9b\u8005\uff1a   * \u6807\u8bb0\u5f53\u524d\u670d\u52a1\u72b6\u6001\u4e3aSTOPPING\uff0c\u4e0d\u63a5\u53d7\u65b0\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u65b0\u7684\u5ba2\u6237\u7aef\u8bbf\u95ee\u8bf7\u6c42\u4f1a\u5728\u5ba2\u6237\u7aef\u76f4\u63a5\u62a5\u9519\uff0c\u5ba2\u6237\u7aef\u914d\u5408\u91cd\u8bd5\u673a\u5236\u53ef\u91cd\u8bd5\u5176\u4ed6\u5b9e\u4f8b\uff1b   * \u7b49\u5f85\u5f53\u524d\u5df2\u8fd0\u884c\u7ebf\u7a0b\u6267\u884c\u5b8c\u6bd5\uff0c\u5982\u679c\u8bbe\u7f6e\u4e86provider\u7aef\u8d85\u65f6\uff0c\u8d85\u65f6\u5219\u5f3a\u5236\u5173\u95ed\uff1b * \u670d\u52a1\u6d88\u8d39\u8005\uff1a   * \u6807\u8bb0\u5f53\u524d\u670d\u52a1\u72b6\u6001\u4e3aSTOPPING\uff0c\u76f4\u63a5\u62d2\u7edd\u65b0\u7684\u8c03\u7528\u8bf7\u6c42\uff1b   * \u7b49\u5f85\u5f53\u524d\u5df2\u53d1\u9001\u8bf7\u6c42\u7684\u54cd\u5e94\uff0c\u5982\u679c\u8d85\u8fc7\u5ba2\u6237\u7aef\u63a5\u6536\u54cd\u5e94\u7684\u8d85\u65f6\u65f6\u95f4\uff08\u9ed8\u8ba430\u79d2\uff09\uff0c\u5219\u5f3a\u5236\u5173\u95ed\uff1b</p>"},{"location":"general-development/shutdown.html#_4","title":"\u539f\u7406","text":"<p>\u89e6\u53d1\u4f18\u96c5\u505c\u673a\u65f6\uff0c\u4f1a\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u7ed9\u6240\u6709listener\u4e0b\u53d1BEFORE_CLOSE\u4e8b\u4ef6\uff0c\u901a\u77e5listener\u5904\u7406\u5bf9\u5e94\u4e8b\u4ef6\uff1b 2. \u5c06\u5f53\u524d\u670d\u52a1\u72b6\u6001\u6807\u8bb0\u4e3aSTOPPING\uff1b 3. \u4ece\u670d\u52a1\u4e2d\u5fc3\u6ce8\u9500\u5f53\u524d\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u5e76\u5173\u95edregistry\u5bf9\u5e94vertx\uff1b 4. \u7b49\u5f85\u6240\u6709\u5f53\u524d\u5df2\u5b58\u5728invocation\u8c03\u7528\u5b8c\u6210\uff1b 5. \u5173\u95edconfig-center\u548ctransport\u5bf9\u5e94vertx\uff1b 6. \u7ed9\u6240\u6709listener\u4e0b\u53d1AFTER_CLOSE\u4e8b\u4ef6\uff0c\u901a\u77e5listener\u5904\u7406\u5bf9\u5e94\u4e8b\u4ef6\uff1b 7. \u5c06\u5f53\u524d\u670d\u52a1\u72b6\u6001\u6807\u8bb0\u4e3aDOWN\uff1b\u4f18\u96c5\u505c\u673a\u7ed3\u675f\uff1b</p>"},{"location":"general-development/thread-model.html","title":"\u7ebf\u7a0b\u6a21\u578b","text":""},{"location":"general-development/thread-model.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u672c\u5c0f\u8282\u4e3b\u8981\u4ecb\u7ecdserviceComb\u5fae\u670d\u52a1\u7684\u5b8c\u6574\u7ebf\u7a0b\u6a21\u578b  </p>"},{"location":"general-development/thread-model.html#_3","title":"\u540c\u6b65\u6a21\u5f0f\u4e0b\u7684\u7ebf\u7a0b\u6a21\u578b","text":""},{"location":"general-development/thread-model.html#reactive","title":"reactive\u6a21\u5f0f\u4e0b\u7684\u7ebf\u7a0b\u6a21\u578b","text":"<p>\u7ebf\u7a0b\u76f8\u5173\u914d\u7f6e\uff1a  </p> <ul> <li>REST over Vertx</li> <li>Highway</li> <li>\u540c\u6b65\u6a21\u5f0f\u4e0b\u670d\u52a1\u7aef\u4e1a\u52a1\u7ebf\u7a0b\u6c60</li> </ul>"},{"location":"general-development/upload-download.html","title":"\u6587\u4ef6\u4e0a\u4f20\u4e0b\u8f7d","text":"<p>\u901a\u8fc7\u6d4f\u89c8\u5668\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff0c\u662f\u975e\u5e38\u666e\u904d\u7684\u5e94\u7528\u573a\u666f\u3002java-chassis\u57fa\u4e8eREST\u63d0\u4f9b\u4e86\u4e0a\u4f20\u4e0b\u8f7d\u529f\u80fd\uff1a</p> <ul> <li>\u5728\u5b9a\u4e49\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u65f6\u5019\uff0c\u53ea\u5141\u8bb8\u91c7\u7528Spring MVC \u6216\u8005 Jax RS\u6a21\u5f0f\u3002 \u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u4e0d\u53d7\u9650\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528\u900f\u660eRPC\u6216\u8005RestTemplate\u3002</li> <li>\u5728\u5b9a\u4e49\u901a\u4fe1\u6a21\u578b\u7684\u65f6\u5019\uff0c\u53ea\u5141\u8bb8\u4f7f\u7528REST over Vert.x \u6216\u8005 REST over Servlet\uff0c\u4e0d\u80fd\u591f\u4f7f\u7528HIGHWAY\u534f\u8bae\u3002</li> <li>\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\u529f\u80fd\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\u3002\u9700\u8981\u914d\u7f6eservicecomb.uploads.directory\u542f\u7528\uff0c\u5982\u679c\u901a\u8fc7\u8fb9\u7f18\u670d\u52a1(Edge Service)\u8f6c\u53d1\u8bf7\u6c42\uff0c\u8fb9\u7f18\u670d\u52a1\u4e5f\u9700\u8981\u8fd9\u4e2a\u914d\u7f6e\u9879\u3002</li> <li>\u901a\u8fc7HTTP FORM\u7684\u65b9\u5f0f\u4e0a\u4f20\u6587\u4ef6\uff08\u4e00\u822c\u91c7\u7528POST\uff09\uff1b\u901a\u8fc7GET\u4e0b\u8f7d\u6587\u4ef6\u3002</li> </ul> <p>\u672c\u7ae0\u8282\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a</p> <ul> <li>\u6587\u4ef6\u4e0a\u4f20\u5f00\u53d1\u6307\u5bfc</li> <li>\u6587\u4ef6\u4e0b\u8f7d\u5f00\u53d1\u6307\u5bfc</li> </ul> <p>\u6ce8\u610f: \u6587\u4ef6\u4e0a\u4f20\u4e0b\u8f7d\u4e0d\u652f\u6301\u65ad\u70b9\u7eed\u4f20\u7279\u6027\uff0c\u5982\u679c\u4e0a\u4f20\u4e0b\u8f7d\u5927\u6587\u4ef6\uff0c\u9700\u8981\u6ce8\u610f\u4e0a\u4f20\u4e0b\u8f7d\u65f6\u95f4\u9650\u5236\uff0c\u8d85\u65f6\u4f1a\u5bfc\u81f4\u6587\u4ef6\u4e0a\u4f20\u4e0b\u8f7d\u5931\u8d25\u3002</p>"},{"location":"general-development/using-inspector.html","title":"\u4f7f\u7528 inspector \u6a21\u5757\u67e5\u770b\u5951\u7ea6","text":"<p>inspector \u63d0\u4f9b\u4e86\u7528\u6237\u67e5\u770b\u3001\u4e0b\u8f7d\u5951\u7ea6\uff0c\u751f\u6210\u6587\u6863\u548c\u5bf9API\u63a5\u53e3\u8fdb\u884c\u6d4b\u8bd5\u7684\u529f\u80fd\u3002\u8fd9\u4e2a\u529f\u80fd\u76f4\u63a5\u5728\u5fae\u670d\u52a1\u63d0\u4f9b\uff0c\u7528\u4e8e\u5f25\u8865\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u67e5\u770b\u5951\u7ea6\u548c\u5bf9\u63a5\u53e3\u8fdb\u884c\u6d4b\u8bd5\u7684\u4e0d\u8db3\u3002inspector\u529f\u80fd\u540e\u7eed\u4f1a\u505a\u8fdb\u4e00\u6b65\u589e\u5f3a\uff0c\u9664\u4e86\u7ba1\u7406\u5951\u7ea6\uff0c\u8fd8\u53ef\u4ee5\u89c2\u5bdf\u5fae\u670d\u52a1\u7684\u5185\u90e8\u72b6\u6001\uff0c\u5e2e\u52a9\u5b9a\u4f4d\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002</p>"},{"location":"general-development/using-inspector.html#inspector_1","title":"\u542f\u7528inspector","text":"<p>\u5728\u9879\u76ee\u4e2d\u542f\u7528inspector\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728pom\u4e2d\u589e\u52a0\u5982\u4e0b\u4f9d\u8d56\u5373\u53ef\u3002 </p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;inspector&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u5982\u679c\u9879\u76ee\u4e2d\u4f9d\u8d56\u4e86 solution-basic , \u8fd9\u4e2a\u6a21\u5757\u4f1a\u81ea\u52a8\u5305\u542b\u8fdb\u6765\u3002</p> <p>\u5f15\u5165\u4f9d\u7136\u540e\u542f\u52a8\u5fae\u670d\u52a1\u5373\u53ef\u4f7f\u7528\u76f8\u5173\u5951\u7ea6\u7ba1\u7406\u529f\u80fd\u3002\u4e0b\u9762\u5047\u8bbe\u5fae\u670d\u52a1\u76d1\u542c\u7684\u7aef\u53e3\u4e3a8080\u3002</p>"},{"location":"general-development/using-inspector.html#inspector_2","title":"\u4f7f\u7528inspector\u529f\u80fd","text":"<p>inspector\u63d0\u4f9b\u4e86\u7ba1\u7406\u754c\u9762\uff0c\u96c6\u6210\u4e86swagger\u7f16\u8f91\u5668\u3002\u8f93\u5165 http://localhost:8080/inspector/index.html \u540e\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762\u3002</p> <p>SWAGER\u7f16\u8f91\u754c\u9762</p> <p></p> <p>\u5728SWAGGER\u7f16\u8f91\u754c\u9762\uff0c\u53ef\u4ee5\u5bf9\u63a5\u53e3\u8fdb\u884c\u6d4b\u8bd5\u3002</p> <p>HTML\u754c\u9762</p> <p></p> <p>HTML\u9875\u9762\u63d0\u4f9b\u4e86\u66f4\u5bb9\u6613\u8bfb\u5199\u7684\u683c\u5f0f\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u67e5\u770b\u63a5\u53e3\u8bf4\u660e\u3002</p> <p>\u8f93\u5165 http://localhost:8080/inspector/schemas \u53ef\u4ee5\u67e5\u8be2\u6240\u6709\u7684schema\u5217\u8868</p> <pre><code>[\"goodsRepositoryApi\",\"goodsService\",\"onlineMallApi\",\"stockApi\",\"goodsCategoryApi\",\"goodsPriceApi\"]\n</code></pre> <p>\u8f93\u5165 <code>http://localhost:8080/inspector/download/schemas?format=HTML</code> \u53ef\u4ee5\u4e0b\u8f7d\u6587\u6863\u3002format\u652f\u6301HTML\u548cSWAGGER\u4e24\u79cd\u683c\u5f0f\u3002\u8fd9\u4e2a\u63a5\u53e3\u4f1a\u4e0b\u8f7d\u6240\u6709\u5951\u7ea6\u6587\u4ef6\uff0c\u6253\u5305\u4e3azip\u683c\u5f0f\u3002</p> <p>\u8f93\u5165 <code>http://localhost:8080/inspector/schemas/goodsService?download=false&amp;format=HTML</code> \u53ef\u4ee5\u67e5\u770b\u3001\u4e0b\u8f7d\u5355\u4e2a\u5951\u7ea6\u6587\u4ef6\u3002</p>"},{"location":"general-development/using-inspector.html#inspector_3","title":"\u4fdd\u62a4 inspector \u63a5\u53e3\u7684\u8bbf\u95ee\u63a7\u5236","text":"<p>\u8be5\u529f\u80fd\u88ab\u8bbe\u8ba1\u4e3a\u8f85\u52a9\u5f00\u53d1\u3001\u8bbe\u8ba1\u3001\u8fd0\u7ef4\uff0c\u7b2c\u4e00\u6b21\u8bbf\u95ee\u7684\u65f6\u5019\u52a0\u8f7d\u5f88\u6162\uff0c\u4e0d\u5efa\u8bae\u5f00\u653e\u7ed9\u6700\u7ec8\u7528\u6237\u5927\u89c4\u6a21\u5e76\u53d1\u8bbf\u95ee\u4f7f\u7528\u3002 \u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u5e26\u5165 \u8fd9\u4e2a\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u5fc5\u8981\u7684\u9694\u79bb\u63aa\u65bd\u548c\u8bbf\u95ee\u63a7\u5236\uff0c\u9650\u5236\u6700\u7ec8\u7528\u6237\u5bf9\u4e8e\u8fd9\u4e2a\u63a5\u53e3\u7684\u8bbf\u95ee\u3002</p> <p>\u53ef\u4ee5\u4f7f\u7528 java-chassis \u63d0\u4f9b\u7684\u7ebf\u7a0b\u6c60\u9694\u79bb\u529f\u80fd\uff0c \u5c06\u8fd9\u4e2a\u670d\u52a1\u653e\u5230\u72ec\u7acb\u7684\u7ebf\u7a0b\u6c60\uff0c\u907f\u514d\u5bf9\u5176\u4ed6\u670d\u52a1\u7684\u8bbf\u95ee\u4ea7\u751f\u5f71\u54cd\u3002\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5305\u62ec\uff0c</p> <p>\u5b9a\u4e49\u7ebf\u7a0b\u6c60\uff1a</p> <pre><code>  &lt;bean id=\"servicecomb.samples.executor.groupThreadPool\" class=\"org.apache.servicecomb.core.executor.GroupExecutor\"\n    init-method=\"init\"/&gt;\n</code></pre> <p>\u542f\u7528\u7ebf\u7a0b\u6c60:</p> <pre><code>servicecomb:\n  executors:\n   Provider:\n     inspector: servicecomb.samples.executor.groupThreadPool\n</code></pre>"},{"location":"question-and-answer/faq.html","title":"\u5e38\u89c1\u95ee\u9898","text":"<ul> <li>Q: \u5951\u7ea6\u751f\u6210\u4f1a\u62a5\u9519 Caused by: java.lang.Error: OperationId must be unique\uff0c\u4e0d\u652f\u6301\u51fd\u6570\u91cd\u8f7d\uff1f </li> <li>Q: Map\u7c7b\u578b\u7684key\u5fc5\u987b\u4f7f\u7528 String \u7c7b\u578b\uff1f </li> <li>Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u63a5\u53e3\uff1f</li> <li>Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u6cdb\u578b\uff1f</li> <li>Q: \u5b9e\u73b0\u7c7b\u4e2d public \u65b9\u6cd5\u5168\u90e8\u88ab\u53d1\u5e03\u4e3a\u63a5\u53e3\uff0c\u5982\u4f55\u6392\u9664\uff1f</li> <li>Q: \u5982\u4f55\u81ea\u5b9a\u4e49\u67d0\u4e2aJava\u65b9\u6cd5\u5bf9\u5e94\u7684REST\u63a5\u53e3\u91cc\u7684HTTP Status Code\uff1f</li> </ul>"},{"location":"question-and-answer/faq.html#Q2","title":"Q: \u5951\u7ea6\u751f\u6210\u4f1a\u62a5\u9519 Caused by: java.lang.Error: OperationId must be unique\uff0c\u4e0d\u652f\u6301\u51fd\u6570\u91cd\u8f7d\uff1f","text":"<ul> <li>A: \u652f\u6301\u51fd\u6570\u91cd\u8f7d\uff0c\u4f46\u662f\u9700\u8981\u6ce8\u610f\u6bcf\u4e2a\u63a5\u53e3\u5fc5\u987b\u6709\u552f\u4e00\u7684operation id\u3002\u53ef\u4ee5\u52a0\u4e0a<code>@ApiOperation</code>\u6807\u7b7e\u7ed9\u91cd\u8f7d\u7684\u63a5\u53e3\u6307\u5b9a\u552f\u4e00   \u7684 operation id (\u5bf9\u5e94\u4e8e nickname \u5c5e\u6027\uff09\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</li> </ul> <pre><code>  @Path(\"/sayHi\")\n  @GET\n  @Produces(\"text/plain;charset=UTF-8\")\n  @ApiOperation(value = \"\", nickname = \"sayHi\")\n  public String sayHello() {\n    return \"ApiOperationJaxrsSchema#sayHello\";\n  }\n\n  @Path(\"/sayHello\")\n  @GET\n  @Produces(\"application/json;charset=UTF-8\")\n  @ApiOperation(value = \"\", nickname = \"sayHello\")\n  public String sayHello(@ApiParam(\"name\") String name) {\n    return name;\n  }\n</code></pre>"},{"location":"question-and-answer/faq.html#Q3","title":"Q: Map\u7c7b\u578b\u7684 key \u5fc5\u987b\u4f7f\u7528 String \u7c7b\u578b\uff1f","text":"<ul> <li>A: \u662f\u7684\u3002java-chassis \u9075\u5faa Open API \u89c4\u8303, MAP   \u7c7b\u578b\u7684 key \u5fc5\u987b\u4f7f\u7528 String \u7c7b\u578b\u3002 \u4e1a\u52a1\u53ef\u4ee5\u7ed3\u5408\u5b9e\u9645\u60c5\u51b5\uff0c\u4f7f\u7528\u7b26\u5408\u89c4\u8303\u7684\u7c7b\u578b\u3002 \u5982\u679c\u5fc5\u987b\u4f7f\u7528\u5176\u4ed6\u7c7b\u578b\uff0c   \u53ef\u4ee5\u8003\u8651\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528 Object \u89c4\u907f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u5bf9\u8fd4\u56de\u503c\u7ed3\u679c\u81ea\u884c\u8fdb\u884c json \u8f6c\u6362\u3002</li> </ul>"},{"location":"question-and-answer/faq.html#Q4","title":"Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u63a5\u53e3\uff1f","text":"<ul> <li>A: \u662f\u7684\u3002java-chassis \u4e0d\u5141\u8bb8\u53c2\u6570\u3001\u8fd4\u56de\u503c\u7684\u7c7b\u578b\u4e3a <code>Interface</code> \u6216\u8005 <code>Abstract Class</code>\u3002\u56e0\u4e3a\u8fd9\u4e9b\u7c7b\u578b   \u65e0\u6cd5\u6b63\u786e\u7684\u751f\u6210 swagger \u63cf\u8ff0\u3002\u5982\u679c\u5fc5\u987b\u4f7f\u7528\u8fd9\u4e9b\u7c7b\u578b\uff0c\u53ef\u4ee5\u8003\u8651\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528 Object \u89c4\u907f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u5bf9\u8fd4\u56de\u503c\u7ed3\u679c   \u81ea\u884c\u8fdb\u884c json \u8f6c\u6362\u3002</li> </ul>"},{"location":"question-and-answer/faq.html#Q5","title":"Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u6cdb\u578b\uff1f","text":"<ul> <li>A: \u53ef\u4ee5\u4f7f\u7528\u6cdb\u578b\u3002\u4f46\u662f\u5fc5\u987b\u660e\u786e\u6cdb\u578b\u7c7b\u578b\u3002\u6bd4\u5982\uff1a</li> </ul> <pre><code>  @PostMapping(path = \"holderUser\")\n  public Holder&lt;User&gt; holderUser(@RequestBody Holder&lt;User&gt; input) {\n    Assert.isInstanceOf(Holder.class, input);\n    Assert.isInstanceOf(User.class, input.value);\n    return input;\n  }\n\n  @GetMapping(path = \"/genericParams\")\n  @ApiOperation(value = \"genericParams\", nickname = \"genericParams\")\n  public List&lt;List&lt;String&gt;&gt; genericParams(@RequestParam(\"code\") int code, @RequestBody List&lt;List&lt;String&gt;&gt; names) {\n    return names;\n  }\n</code></pre> <p>\u672a\u6307\u5b9a\u6cdb\u578b\u7c7b\u578b\u662f\u4e0d\u5141\u8bb8\u7684\u3002\u6bd4\u5982\uff1a</p> <pre><code>  @GetMapping(path = \"/genericParams\")\n  @ApiOperation(value = \"genericParams\", nickname = \"genericParams\")\n  public List genericParams(@RequestParam(\"code\") int code, @RequestBody List names) {\n    return names;\n  }\n</code></pre> <p>\u5982\u679c\u4e1a\u52a1\u5fc5\u987b\u4f7f\u7528\u6cdb\u578b\uff0c\u5e76\u4e14\u4e0d\u80fd\u786e\u5b9a\u7c7b\u578b\uff0c\u53ef\u4ee5\u8003\u8651\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528 Object \u89c4\u907f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u5bf9\u8fd4\u56de\u503c\u7ed3\u679c \u81ea\u884c\u8fdb\u884c json \u8f6c\u6362\u3002</p>"},{"location":"question-and-answer/faq.html#Q6","title":"Q: \u5b9e\u73b0\u7c7b\u4e2d public \u65b9\u6cd5\u5168\u90e8\u88ab\u53d1\u5e03\u4e3a\u63a5\u53e3\uff0c\u5982\u4f55\u6392\u9664\uff1f","text":"<ul> <li>A: java chassis \u4f1a\u5c06\u6240\u6709 public \u65b9\u6cd5\u53d1\u5e03\u4e3a\u63a5\u53e3\u3002 \u5982\u679c\u6709\u4e9b\u63a5\u53e3\u4e0d\u9700\u8981\u53d1\u5e03\u4e3a\u63a5\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528 @ApiOperation   \u6807\u7b7e\u58f0\u660e\u4e0d\u53d1\u5e03\u4e3a\u63a5\u53e3\u3002\u4f8b\u5b50\u5982\u4e0b\uff1a</li> </ul> <pre><code>  @ApiOperation(value = \"\", hidden = true)\n  public void hidden() {\n\n  }\n</code></pre> <p>\u5728\u8fc1\u79fb\u6539\u9020\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bd4\u5982\u5c06 HSF \u548c Dubbo \u7684\u5185\u90e8 RPC \u63a5\u53e3\u6539\u9020\u4e3a java-chassis \u7684 RPC \u63a5\u53e3\uff0c\u53ef\u80fd\u8fd8\u6709\u66f4\u52a0\u590d\u6742 \u7684\u60c5\u51b5\uff0c\u6bd4\u5982\uff1a</p> <pre><code>@HSFProvider(MyInterface.class)\npublic MyService extends AbstractMyService implements MyInterface\n</code></pre> <p>\u5982\u679c\u76f4\u63a5\u6539\u9020\u4e3a</p> <pre><code>@RpcSchema(schemaId = \"MyService\")\npublic MyService extends AbstractMyService implements MyInterface\n</code></pre> <p>\u90a3\u4e48 <code>AbstractMyService</code> \u7684\u516c\u5171\u65b9\u6cd5\u4e5f\u4f1a\u53d1\u5e03\u4e3a RPC \u63a5\u53e3\uff0c \u800c HSF \u548c dubbo \u5219\u4e0d\u4f1a\u3002 \u8fd9\u79cd\u60c5\u51b5\u5efa\u8bae\u589e\u52a0 \u4e00\u4e2a\u7c7b\uff0c\u800c\u5c06\u539f\u6765\u7684\u63a5\u53e3\u58f0\u660e\u4e3a\u670d\u52a1\u7c7b\u6765\u5904\u7406\uff0c \u6bd4\u5982\uff1a</p> <pre><code>@Service(\"MyService\")\npublic MyService extends AbstractMyService implements MyInterface\n\n@RpcSchema(schemaId = \"MyServiceImpl\")\npublic MyServiceImpl implements MyInterface {\n    @Autowired\n    @Qualifier(\"MyService\")\n    MyInterface service;\n\n    public String hello(String name) {\n       return service.hello(name);\n    }\n}\n</code></pre>"},{"location":"question-and-answer/faq.html#Q7","title":"Q: \u5982\u4f55\u81ea\u5b9a\u4e49\u67d0\u4e2aJava\u65b9\u6cd5\u5bf9\u5e94\u7684REST\u63a5\u53e3\u91cc\u7684HTTP Status Code\uff1f","text":"<ul> <li>A:  \u5bf9\u4e8e 2xx \u7684\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7 @ApiResponse \u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a</li> </ul> <pre><code>@ApiResponse(code = 201, response = Integer.class, message = \"\")\npublic int test(int x) {\n  return 100;\n}\n</code></pre> <p>\u5bf9\u4e8e\u5176\u4ed6\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7\u629b\u51fa\u81ea\u5b9a\u4e49\u7684 InvocationException \u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a</p> <pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic MultiResponse200 errorCode(MultiRequest request) {\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.BAD_REQUEST, r);\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR, r);\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      return r;\n    }\n}\n</code></pre> <ul> <li> <p>Q: \u5982\u4f55\u5b9a\u5236\u81ea\u5df1\u5fae\u670d\u52a1\u7684\u65e5\u5fd7\u914d\u7f6e?</p> <ul> <li>A: ServiceComb\u4e0d\u7ed1\u5b9a\u65e5\u5fd7\u5668\uff0c\u53ea\u662f\u4f7f\u7528\u4e86slf4j\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u9009\u62e9log4j/log4j2/logback\u7b49\u7b49\u3002ServiceComb\u63d0\u4f9b\u4e86\u4e00\u4e2alog4j\u7684\u6269\u5c55\uff0c\u5728\u6807\u51c6log4j\u7684\u57fa\u7840\u4e0a\uff0c\u652f\u6301log4j\u7684properties\u6587\u4ef6\u7684\u589e\u91cf\u914d\u7f6e\u3002<ul> <li>\u9ed8\u8ba4\u4ee5\u89c4\u5219\uff1a\"classpath*:config/log4j.properties\"\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6</li> <li>\u5b9e\u9645\u4f1a\u641c\u7d22\u51faclasspath\u4e2d\u6240\u6709\u7684<code>config/log4j.properties\u548cconfig/log4j.*.properties</code>, \u4ece\u641c\u7d22\u51fa\u7684\u6587\u4ef6\u4e2d\u5207\u51fa<code>\\*</code>\u7684\u90e8\u5206\uff0c\u8fdb\u884calpha\u6392\u5e8f\uff0c\u7136\u540e\u6309\u987a\u5e8f\u52a0\u8f7d\uff0c\u6700\u540e\u5408\u6210\u7684\u6587\u4ef6\u4f5c\u4e3alog4j\u7684\u914d\u7f6e\u6587\u4ef6\u3002</li> <li>\u5982\u679c\u8981\u4f7f\u7528ServiceComb\u7684log4j\u6269\u5c55\uff0c\u5219\u9700\u8981\u8c03\u7528Log4jUtils.init\uff0c\u5426\u5219\u5b8c\u5168\u6309\u6807\u51c6\u7684\u65e5\u5fd7\u5668\u7684\u89c4\u5219\u4f7f\u7528\u3002</li> </ul> </li> </ul> </li> <li> <p>Q: \u5f53\u670d\u52a1\u914d\u7f6e\u4e86\u591a\u4e2atransport\u7684\u65f6\u5019\uff0c\u5728\u8fd0\u884c\u65f6\u662f\u600e\u4e48\u9009\u62e9\u4f7f\u7528\u54ea\u4e2atransport\u7684\uff1f</p> <ul> <li> <p>A: ServiceComb\u7684consumer\u3001transport\u3001handler\u3001producer\u4e4b\u95f4\u662f\u89e3\u8026\u7684\uff0c\u5404\u529f\u80fd\u4e4b\u95f4\u901a\u8fc7\u5951\u7ea6\u5b9a\u4e49\u8054\u5408\u5728\u4e00\u8d77\u5de5\u4f5c\u7684\uff0c\u5373\uff1a       consumer\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fspringmvc\u5f00\u53d1\u4e0e\u4f7f\u7528highway\uff0c\u8fd8\u662fRESTful\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u6ca1\u6709\u5173\u7cfb\u4e0eproducer\u662f\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fjaxrs\uff0c       \u6216\u8005\u662fspringmvc\u5f00\u53d1\uff0c\u4e5f\u6ca1\u6709\u5173\u7cfbhandler\u4e5f\u4e0d\u611f\u77e5\uff0c\u4e1a\u52a1\u5f00\u53d1\u65b9\u5f0f\u4ee5\u53ca\u4f20\u8f93\u65b9\u5f0f\u3002consumer\u8bbf\u95eeproducer\uff0c\u5728\u8fd0\u884c\u65f6\u7684transport\u9009\u62e9\u4e0a\uff0c       \u603b\u89c4\u5219\u4e3a\uff1acnsumer\u7684transport\u4e0eproducer\u7684endpoint\u53d6\u4ea4\u96c6\uff0c\u5982\u679c\u4ea4\u96c6\u540e\uff0c\u8fd8\u6709\u591a\u4e2atransport\u53ef\u9009\u62e9\uff0c\u5219\u8f6e\u6d41\u4f7f\u7528\uff0c\u5206\u89e3\u5f00\u6765\uff0c\u5b58\u5728\u4ee5\u4e0b\u573a\u666f\uff1a</p> <ul> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u540c\u65f6\u5f00\u653e\u4e86highway\u4ee5\u53caRESTful\u7684endpoint</p> <ul> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684highway endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684RESTful endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\uff0c\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u4f1a\u8f6e\u6d41\u8bbf\u95eeproducer\u7684highway\u3001RESTful endpoint</li> </ul> </li> <li> <p>\u5982\u679cconsumer\u60f3\u56fa\u5b9a\u4f7f\u7528\u67d0\u4e2atransport\u8bbf\u95eeproducer\uff0c\u53ef\u4ee5\u5728consumer\u8fdb\u7a0b\u7684microservice.yaml\u4e2d\u914d\u7f6e\uff0c\u6307\u5b9atransport\u7684\u540d\u79f0:</p> <pre><code>servicecomb:\n    references:\n        &lt;service_name&gt;:\n            transport: highway\n</code></pre> </li> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86highway\u7684endpoint</p> <ul> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528highway\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528highway\u8bbf\u95ee</li> </ul> </li> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86RESTful\u7684endpoint</p> <ul> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> </ul> </li> </ul> </li> </ul> </li> <li> <p>Q: ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\u670d\u52a1\u8c03\u7528\u662f\u5426\u4f7f\u7528\u957f\u8fde\u63a5?</p> <ul> <li>A: http\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u6709\u8d85\u65f6\u65f6\u95f4\uff09\uff0chighway\u65b9\u5f0f\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u4e00\u76f4\u4fdd\u6301\uff09\u3002</li> </ul> </li> <li> <p>Q: \u670d\u52a1\u65ad\u8fde\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\u4fe1\u606f\u662f\u5426\u81ea\u52a8\u5220\u9664</p> <ul> <li>A: \u670d\u52a1\u4e2d\u5fc3\u5fc3\u8df3\u68c0\u6d4b\u5230\u670d\u52a1\u5b9e\u4f8b\u4e0d\u53ef\u7528\uff0c\u53ea\u4f1a\u79fb\u9664\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f\uff0c\u670d\u52a1\u7684\u9759\u6001\u6570\u636e\u4e0d\u4f1a\u79fb\u9664\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u4f7f\u7528tomcat\u65b9\u5f0f\u96c6\u6210ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\uff0c\u5982\u4f55\u5b9e\u73b0\u670d\u52a1\u6ce8\u518c</p> <ul> <li>A: \u5982\u679c\u4f7f\u7528ServiceComb sdk servlet\u65b9\u5f0f\uff08\u4f7f\u7528transport-rest-servlet\u4f9d\u8d56\uff09\u5236\u4f5c\u4e3awar\u5305\u90e8\u7f72\u5230tomcat\uff0c\u9700\u8981\u4fdd\u8bc1\uff0c     \u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff08microservice.yaml\uff09\u4e2drest\u7aef\u53e3\u914d\u7f6e\u548c\u5916\u7f6e\u5bb9\u5668\u4e00\u81f4\u624d\u80fd\u5b9e\u73b0\u8be5\u670d\u52a1\u7684\u6b63\u786e\u6ce8\u518c\u3002\u5426\u5219\u65e0\u6cd5\u611f\u77e5tomcat\u5f00\u653e\u7aef\u53e3\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u4f7f\u7528tomcat\u65b9\u5f0f\u96c6\u6210ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\uff0c\u670d\u52a1\u6ce8\u518c\u7684\u65f6\u5019\u5982\u4f55\u5c06war\u5305\u90e8\u7f72\u7684\u4e0a\u4e0b\u6587\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3</p> <ul> <li>A: \u53d1\u5e03\u670d\u52a1\u63a5\u53e3\u7684\u65f6\u5019\u9700\u8981\u5c06war\u5305\u90e8\u7f72\u7684\u4e0a\u4e0b\u6587\uff08context\uff09\u653e\u5728baseurl\u6700\u524d\u9762\uff0c\u8fd9\u6837\u624d\u80fd\u4fdd\u8bc1\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u8def\u5f84\u662f\u5b8c\u6574\u7684\u8def\u5f84\uff08\u5305\u542b\u4e86\u4e0a\u4e0b\u6587\uff09\u3002\u793a\u4f8b\uff1a<pre><code>@path(/{context}/xxx)\nclass ServiceA\n</code></pre> </li> </ul> </li> <li> <p>Q:  ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u591a\u4e2a\u5fae\u670d\u52a1\u95f4\u900f\u4f20</p> <ul> <li> <p>A: \u900f\u4f20\u6570\u636e\u585e\u5165\uff1a</p> <pre><code>CseHttpEntity&lt;xxxx.class&gt; httpEntity = new CseHttpEntity&lt;&gt;(xxx);\n//\u900f\u4f20\u5185\u5bb9\nhttpEntity.addContext(\"contextKey\",\"contextValue\");\nResponseEntity&lt;String&gt; responseEntity = RestTemplateBuilder.create()\n    .exchange(\"cse://springmvc/springmvchello/sayhello\",HttpMethod.POST,httpEntity,String.class);\n</code></pre> <p>\u900f\u4f20\u6570\u636e\u83b7\u53d6\uff1a</p> <pre><code>@Override\n@RequestMapping(path=\"/sayhello\",method = RequestMethod.POST)\npublic String sayHello(@RequestBody Person person,InvocationContext context){\n     //\u900f\u4f20\u6570\u636e\u83b7\u53d6\n     context.getContext();\n     return \"Hello person \" + person.getName();\n}\n</code></pre> </li> </ul> </li> <li> <p>Q:  ServiceComb body Model\u90e8\u5206\u66b4\u9732</p> <ul> <li>A: \u4e00\u4e2a\u63a5\u53e3\u5bf9\u5e94\u7684body\u5bf9\u8c61\u4e2d\uff0c\u53ef\u80fd\u6709\u4e00\u4e9b\u5c5e\u6027\u662f\u5185\u90e8\u7684\uff0c\u4e0d\u60f3\u5f00\u653e\u51fa\u53bb\uff0c\u751f\u6210schema\u7684\u65f6\u5019\u4e0d\u8981\u5e26\u51fa\u53bb\uff0c\u4f7f\u7528\uff1a<pre><code>@ApiModelProperty(hidden = true)\n</code></pre> </li> </ul> </li> <li> <p>Q:  \u670d\u52a1\u8d85\u65f6\u8bbe\u7f6e</p> <ul> <li>A: \u5728\u5fae\u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff08microservice.yaml\uff09\u4e2d\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a<pre><code>servicecomb:\n    request:\n        timeout: 30000\n</code></pre> </li> </ul> </li> <li> <p>Q:  URL \u5730\u5740\u5c31\u53ef\u4ee5\u552f\u4e00\u5b9a\u4f4d\uff0c\u4e3a\u4ec0\u4e48\u8981\u52a0\u4e0a\u4e00\u4e2aschema\uff1f</p> <ul> <li>A: <ol> <li>schema \u662f\u7528\u6765\u5339\u914d\u670d\u52a1\u5951\u7ea6\u7684\uff0c\u7528\u6765\u4fdd\u8bc1\u670d\u52a1\u7aef\u548c\u6d88\u8d39\u7aef\u5951\u7ea6\u517c\u5bb9\uff0c\u6bcf\u4e2a\u5951\u7ea6\u9700\u8981\u4e00\u4e2a\u552f\u4e00ID\uff0c\u5728\u670d\u52a1\u4e2d\u5fc3\u5b58\u50a8\u3002</li> <li>schema\u6620\u5c04\u5230java\u7684interface\u6982\u5ff5\uff0c\u5728consumer\u4f7f\u7528\u900f\u660erpc\u6a21\u5f0f\u5f00\u53d1\u65f6\uff0c\u53ef\u4ee5\u627e\u5230\u662f\u5fae\u670d\u52a1\u91cc\u7684\u54ea\u4e2aoperation\u3002schema\u4e4b\u95f4\u7684\u65b9\u6cd5\u540d\u662f\u6ca1\u6709\u552f\u4e00\u6027\u8981\u6c42\u7684\u3002</li> <li>operation qualified name\u662f\u6cbb\u7406\u7684key\uff0c\u800cURL \u56e0\u4e3apath\u53c2\u6570\u7684\u5b58\u5728\uff0c\u6ca1\u529e\u6cd5\u76f4\u63a5\u67e5\u627e\uff0c\u800cqualified name\u662f\u4e0d\u4f1a\u53d8\u7684\u3002\u6cbb\u7406\u662f\u4e0d\u533a\u5206\u4f20\u8f93\u7684\uff0c\u5982\u679c\u6cbb\u7406\u6309URL \u8d70\uff0c\u90a3\u4e48highway\u8c03\u8fdb\u6765\u65f6\uff0c\u8fd8\u5f97\u6839\u636e\u53c2\u6570\u53cd\u5411\u6784\u9020\u51faurl\uff0c\u518d\u6765\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\uff0c\u592a\u6298\u817e\u4e86\u3002</li> <li>http\u53ea\u662f\u4e00\u79cd\u4f20\u8f93\u901a\u9053\uff0c\u8fd8\u6709\u522b\u7684\u4f20\u8f93\u901a\u9053\u4e0d\u9700\u8981\u6620\u5c04\u5230URL\u7684\u3002</li> </ol> </li> </ul> </li> <li> <p>Q: rest\u5ba2\u6237\u7aef\u8c03\u7528\u7684\u65f6\u5019\uff0c\u5b9e\u9645\u4e0a\u53ea\u5e26\u4e0a\u4e86\u670d\u52a1\u540d\u548cURL\uff0c\u5e76\u4e0d\u9700\u8981\u6307\u5b9aschema id\u7684\uff0c \u800c\u5b9e\u9645\u4e0a\u6839\u636e\u8fd9\u4e2aURL\u4e5f\u80fd\u627e\u5230\u5177\u4f53\u5951\u7ea6\u7684\uff0c\u6240\u4ee5\u6307\u5b9aschema id\u4f5c\u7528\u4f55\u5728\uff1f</p> <ul> <li>A: \u7531\u4e8e\u900f\u660erpc\u662f\u63a5\u53e3\u5f0f\u8c03\u7528\uff0c\u5e76\u6ca1\u6709URL\uff0c\u5185\u90e8\u5b9e\u9645\u90fd\u5f52\u4e00\u5316\u5230operation\u6765\u63cf\u8ff0\u7684\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u7ed3\u5408schema id\u552f\u4e00\u5b9a\u4f4d\u5230\u5177\u4f53\u7684\u8bf7\u6c42\u5904\u7406\u4e2d\u3002</li> </ul> </li> <li> <p>Q:  Transport\u662f\u4e2a\u4ec0\u4e48\u6982\u5ff5\uff1f\u7528\u6765\u5e72\u4ec0\u4e48\u7684\uff1f</p> <ul> <li>A: transport\u8d1f\u8d23\u7f16\u89e3\u7801\uff0c\u4ee5\u53ca\u4f20\u8f93\u3002\u901a\u4fe1\u6a21\u578b\u6709rest\u548chighway\u4e24\u79cd\uff0chighway\u5bf9\u5e94\u7684\u662f\u79c1\u6709\u534f\u8bae\uff0c\u4f7f\u7528protobuf\u7f16\u7801\uff0crest\u7528\u7684\u662fjson\u3002highway\u548crest\u90fd\u662f\u57fa\u4e8evertx\u505a\u7684\uff0cvertx\u662f\u57fa\u4e8enetty\u7684\u3002</li> </ul> </li> <li> <p>Q:  ServiceComb\u548c\u670d\u52a1\u4e2d\u5fc3\u662f\u600e\u4e48\u4ea4\u4e92\u7684?</p> <ul> <li>A: \u8d70rest\uff0c\u4e3b\u8981\u8d1f\u8d23\u6ce8\u518c\uff0c\u53d6\u6570\u636e\u548c\u5fc3\u8df3\u7b49\uff1bwatch\u4e8b\u4ef6\u8d70websocket\uff0cwatch\u4e8b\u4ef6\u662f\u89c2\u5bdf\u670d\u52a1\u4e2d\u5fc3\u5b9e\u4f8b\u4fe1\u606f\u6709\u6ca1\u6709\u53d8\u66f4\u3002</li> </ul> </li> <li> <p>Q:  \u6709\u7c7b\u4f3cdubbo\u90a3\u79cd\u6cbb\u7406\u4e2d\u5fc3\u5417\uff1f</p> <ul> <li>A: bizkeeper\u662f\u4e00\u4e2ahandler\uff0c\u662f\u6cbb\u7406\u7684\u5176\u4e2d\u4e00\u4e2a\u5185\u5bb9\u3002\u6cbb\u7406\u53ef\u4ee5\u901a\u8fc7handler\u6269\u5c55\u3002</li> </ul> </li> <li> <p>Q: service path\u600e\u4e48\u7406\u89e3\uff1f</p> <ul> <li>A: \u6bcf\u4e2a\u5fae\u670d\u52a1\u6709\u4e00\u4e2aservicePathManager\uff0c\u6bcf\u4e00\u4e2aschema\u5c06\u81ea\u5df1\u7684path\u6ce8\u518c\u8fdb\u53bb\u3002</li> </ul> </li> <li> <p>Q:  \u6d4f\u89c8\u5668\u80fd\u76f4\u63a5\u8bbf\u95ee\u5fae\u670d\u52a1Endpoint\u5417\uff1f</p> <ul> <li>A: \u53ef\u4ee5\uff0crestful\u53d1\u5e03\u7684\u5fae\u670d\u52a1Endpoint\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u4f7f\u7528HTTP\u52a0service path\u8bbf\u95ee\u63d0\u4f9bget\u65b9\u6cd5\u7684\u670d\u52a1\uff0c\u5982\u679c\u662f\u8bbf\u95ee\u5176\u4ed6Http\u65b9\u6cd5\u63d0\u4f9b\u7684\u670d\u52a1\u5efa\u8bae\u5b89\u88c5\u4f7f\u7528Postman\u3002</li> </ul> </li> <li> <p>Q:  \u5951\u7ea6\u751f\u6210\u65f6\uff0c\u9700\u8981\u5f3a\u5236\u5e26\u4e0a\u7248\u672c\u53f7\u548c\u8bed\u8a00\u5417\uff1f</p> <ul> <li>A: \u5951\u7ea6\u662f\u5c5e\u4e8e\u5fae\u670d\u52a1\u7684\uff0c\u5fae\u670d\u52a1\u672c\u6765\u5c31\u6709\u7248\u672c\uff0c\u4f46\u8bed\u8a00\u662f\u4e0d\u5e94\u8be5\u5e26\u4e0a\u7248\u672c\u53f7\u7684\u3002\u5e94\u8be5\u5951\u7ea6\u8981\u6c42\u4e0e\u8bed\u8a00\u65e0\u5173\u3002\u5951\u7ea6\u201c\u6ca1\u6709\u7248\u672c\u201d\uff0c\u5951\u7ea6\u7684\u7248\u672c\u4f53\u73b0\u5728\u5fae\u670d\u52a1\u4e0a\uff0c\u5b9e\u4f8b\u80fd\u627e\u5230\u6240\u5c5e\u7684\u5fae\u670d\u52a1\u7684\u7248\u672c\uff0c\u5c31\u80fd\u627e\u5230\u4e00\u4e2a\u786e\u5b9a\u7684\u5951\u7ea6\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u540c\u65f6\u5f15\u5165\u4e86<code>transport-rest-servlet</code>\u548c<code>transport-rest-vertx</code>\u7684\u4f9d\u8d56\uff0c\u90a3\u4e48\u5b83\u600e\u4e48\u51b3\u5b9a\u91c7\u7528\u54ea\u4e00\u4e2a\uff1f</p> <ul> <li>A: \u5982\u679c\u7aef\u53e3\u6ca1\u88ab\u5360\u7528\uff0c\u5c31\u7528vertx\uff1b\u5982\u679c\u88ab\u5360\u7528\u4e86\uff0c\u5c31\u7528servlet\u3002</li> </ul> </li> <li> <p>Q:  qps\u6d41\u63a7\u8bbe\u8ba1\u65f6\u662f\u51fa\u4e8e\u4ec0\u4e48\u573a\u666f\u8003\u8651\u7684\uff1f</p> <ul> <li>A: \u9650\u6d41\u6709\u4e24\u4e2a\u4e3b\u8981\u4f5c\u7528\uff0c\u7b2c\u4e00\u901a\u8fc7\u7ed9\u4e0d\u540c\u7684\u6d88\u8d39\u8005\u9650\u6d41\u4fdd\u8bc1\u5bf9\u4e00\u4e9b\u91cd\u70b9\u670d\u52a1\u7684\u670d\u52a1\u6548\u679c\uff0c\u7b2c\u4e8c\u9632\u6b62\u96ea\u5d29\u6548\u5e94\u3002\u53ef\u6839\u636e\u670d\u52a1\u7684\u91cd\u8981\u6027\u6765\u51b3\u5b9a\u6c34\u7ba1\u7684\u7c97\u7ec6\uff0cServiceComb\u662f\u652f\u6301\u6d88\u8d39\u7aef\u9650\u6d41\u548c\u670d\u52a1\u7aef\u9650\u6d41\u4e24\u79cd\u9650\u6d41\u65b9\u5f0f\u7684\uff0c\u6d88\u8d39\u7aef\u9650\u6d41\u53ef\u4ee5\u505a\u5230\u6bd4\u8f83\u7cbe\u7ec6\u7684\u63a7\u5236\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u670d\u52a1\u7aef\u662f\u94fe\u5f0f\u8c03\u7528\uff0c\u5373\u7c7b\u4f3ca-&gt;b-&gt;c\uff0c\u90a3\u8bbe\u7f6e\u4e86qps \u6d41\u63a7\u4f1a\u4e0d\u4f1a\u9020\u6210\u6c34\u7ba1\u7c97\u7ec6\u4e0d\u5747\u7684\u4e8b\u60c5\uff1f</p> <ul> <li>A: \u4e00\u822c\u91c7\u53d6\u7684\u6a21\u5f0f\u662f\u5148\u6d4b\u91cf\u518d\u8bbe\u7f6e\u3002qps\u8bbe\u7f6e\u6700\u7ec8\u662f\u7ed3\u5408\u6574\u4f53\u4e1a\u52a1\u9700\u6c42\u6765\u8fdb\u884c\u8c03\u63a7\u7684\uff0c\u800c\u4e0d\u662f\u5c31\u5355\u4e2a\u8282\u70b9\u6765\u8fdb\u884c\u8bbe\u7f6e\u3002</li> </ul> </li> <li> <p>Q: \u5982\u4f55\u5728\u5951\u7ea6DTO\u4e2d\u5ffd\u7565\u4e2d\u6307\u5b9a\u7684\u5c5e\u6027\uff1f</p> <ul> <li>A: \u53ef\u4ee5\u4f7f\u7528@JsonIgnore\u6ce8\u89e3\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5c5e\u6027\uff0c \u4f8b\u5982:<pre><code>public class OutputForTest{\n    @JsonIgnore\n    private String outputId = null;\n    private String inputId = null;\n    ...\n }\n</code></pre> </li> </ul> </li> </ul>"},{"location":"question-and-answer/interface-compatibility.html","title":"\u5fae\u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u5e38\u89c1\u95ee\u9898","text":"<p>\u5728\u8fdb\u884c\u5fae\u670d\u52a1\u6301\u7eed\u8fed\u4ee3\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u7531\u4e8e\u65b0\u7279\u6027\u4e0d\u505c\u7684\u52a0\u5165\uff0c\u4e00\u4e9b\u8fc7\u65f6\u7684\u7279\u6027\u4e0d\u505c\u7684\u4fee\u6539\uff0c\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u9762\u4e34\u5de8\u5927\u7684\u6311\u6218\uff0c\u7279\u522b\u662f\u5728\u5141\u8bb8\u591a\u7248\u672c\u5171\u5b58\uff08\u7070\u5ea6\u53d1\u5e03\uff09\u7684\u73af\u5883\u3002\u672c\u7ae0\u8282\u4e3b\u8981\u63cf\u8ff0\u63a5\u53e3\u517c\u5bb9\u7ba1\u7406\u7684\u4e00\u4e9b\u5b9e\u8df5\u5efa\u8bae\uff0c\u4ee5\u53ca\u5728\u4f7f\u7528ServiceComb\u8fc7\u7a0b\u4e2d\u78b0\u5230\u4e86\u517c\u5bb9\u6027\u95ee\u9898\u7684\u89e3\u51b3\u529e\u6cd5\u3002\u7531\u4e8e\u5fae\u670d\u52a1\u4e00\u822c\u90fd\u901a\u8fc7REST\u63a5\u53e3\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\uff0c\u6ca1\u6709\u7279\u6b8a\u8bf4\u660e\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u91cc\u7684\u63a5\u53e3\u90fd\u6307REST\u63a5\u53e3\u3002</p>"},{"location":"question-and-answer/interface-compatibility.html#_2","title":"\u4fdd\u8bc1\u63a5\u53e3\u517c\u5bb9\u7684\u5b9e\u8df5","text":"<p>\u4e3a\u4e86\u9632\u6b62\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\uff0c\u5f00\u53d1\u8005\u5728\u8fdb\u884c\u63a5\u53e3\u53d8\u66f4\uff08\u65b0\u589e\u3001\u4fee\u6539\u3001\u5220\u9664\u7b49\uff09\u7684\u65f6\u5019\uff0c\u5efa\u8bae\u9075\u5faa\u4e0b\u9762\u7684\u4e00\u4e9b\u539f\u5219\u3002</p> <ul> <li> <p>\u53ea\u589e\u52a0\u63a5\u53e3\uff0c\u4e0d\u4fee\u6539\u3001\u4e0d\u5220\u9664\u63a5\u53e3\u3002</p> </li> <li> <p>\u4f5c\u4e3aProvider\uff0c\u589e\u52a0\u63a5\u53e3\u7684\u65f6\u5019\uff0c\u76f8\u5e94\u7684\u5c06\u5fae\u670d\u52a1\u7248\u672c\u53f7\u9012\u589e\uff0c\u6bd4\u5982\u5c062.1.2\u4fee\u6539\u4e3a2.1.3\u3002\u7248\u672c\u53f7\u6309\u7167\u89c4\u8303\u4f7f\u7528x.y.z\u7684\u683c\u5f0f\uff0c\u53ea\u5305\u542b\u6570\u5b57\u4fbf\u4e8e\u7ba1\u7406\uff0c\u5efa\u8bae\u6bcf\u4f4d\u6570\u5b57\u4e0d\u5927\u4e8e125\u3002</p> </li> <li> <p>\u4f5c\u4e3aConsumer\uff0c\u4f7f\u7528Provider\u7684\u65b0\u63a5\u53e3\u65f6\u5019\uff0c\u6307\u5b9aProvider\u7684\u6700\u5c0f\u7248\u672c\u53f7\u3002\u6bd4\u5982\uff1a</p> </li> </ul> <pre><code>servicecomb:\n  references:\n    ProviderMicroserviceName:  # \u4fee\u6539\u4e3aProvide\u7684\u5fae\u670d\u52a1\u540d\u79f0\n      version-rule: 2.1.3+\n</code></pre> <p>\u5176\u4e2dserviceName\u4e3aProvider\u7684\u5fae\u670d\u52a1\u540d\u79f0\u3002</p> <ul> <li>\u5728\u670d\u52a1\u4e2d\u5fc3\uff0c\u5b9a\u671f\u6e05\u7406\u4e0d\u518d\u4f7f\u7528\u7684\u8001\u7248\u672c\u7684\u5fae\u670d\u52a1\u4fe1\u606f\u3002</li> </ul> <p>\u5982\u679c\u5fae\u670d\u52a1\u7684\u7248\u672c\u53f7\u6ca1\u6709\u53d8\u5316\uff0c\u5fae\u670d\u52a1\u542f\u52a8\u7684\u65f6\u5019\uff0c\u4e0d\u4f1a\u8986\u76d6\u670d\u52a1\u4e2d\u5fc3\u7684\u8001\u7248\u672c\u6570\u636e\uff0c\u4eceConsumer\u7684\u89d2\u5ea6\uff0c\u770b\u5230\u7684\u662f\u8001\u7248\u672c\u63a5\u53e3\u3002ServiceComb\u7f3a\u7701\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u51fa\u73b0\u63a5\u53e3\u53d8\u66f4\uff0c\u5e76\u4e14\u5fae\u670d\u52a1\u7248\u672c\u53f7\u6ca1\u6709\u4fee\u6539\uff0c\u542f\u52a8\u4f1a\u5931\u8d25\uff0c\u8fd9\u6837\u5c31\u5f3a\u5236\u8981\u6c42\u5f00\u53d1\u8005\u5fc5\u987b\u4fee\u6539\u7248\u672c\u53f7\uff0c\u907f\u514d\u5c06\u95ee\u9898\u9057\u6f0f\u5230\u751f\u4ea7\u73af\u8282\u3002\u5bf9\u4e8e\u65b0\u9879\u76ee\uff0c\u63a5\u53e3\u4fee\u6539\u548c\u8c03\u6574\u53ef\u80fd\u975e\u5e38\u9891\u7e41\uff0c\u5efa\u8bae\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\uff0c\u53ef\u4ee5\u4e0d\u7528\u4fee\u6539\u7248\u672c\u53f7\uff1a</p> <pre><code>service_description:\n  environment: development\n</code></pre> <p>\u8fd9\u4e2a\u914d\u7f6e\u9879\u4f7f\u5f97Provider\u5f00\u53d1\u7b80\u5355\u4e86\uff0c\u5982\u679cConsumer\u5df2\u7ecf\u542f\u52a8\uff0c\u5e76\u4e14\u5e0c\u671b\u8c03\u7528\u65b0\u7684\u63a5\u53e3\uff0c\u90a3\u4e48Consumer\u4ecd\u7136\u9700\u8981\u91cd\u542f\u3002</p>"},{"location":"question-and-answer/interface-compatibility.html#_3","title":"\u63a5\u53e3\u517c\u5bb9\u5e38\u89c1\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u529e\u6cd5","text":"<ul> <li>\u5f00\u53d1\u9636\u6bb5\uff0c\u7531\u4e8e\u5b58\u5728\u9891\u7e41\u7684\u63a5\u53e3\u4fee\u6539\uff0c\u53c8\u4e0d\u60f3\u9891\u7e41\u4fee\u6539\u7248\u672c\u53f7\uff0c\u5bb9\u6613\u672c\u5730\u548c\u670d\u52a1\u4e2d\u5fc3\u5951\u7ea6\u4e0d\u4e00\u81f4\uff0c\u4e14\u5951\u7ea6\u672a\u88ab\u5141\u8bb8\u66f4\u65b0\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u5bfc\u81f4\u8c03\u8bd5\u7684\u65f6\u5019\u63a5\u53e3\u8c03\u7528\u5931\u8d25\u7684\u60c5\u51b5\u3002</li> </ul> <p>\u63a8\u8350\u4f7f\u7528ServiceComb\u63d0\u4f9b\u4e86\u5fae\u670d\u52a1\u6309environment\u533a\u5206\u3001\u9694\u79bb\u7684\u80fd\u529b(\u5f53\u524d\u652f\u6301development\u548cproduction)\uff0c\u5141\u8bb8\u5904\u4e8edevelopment\u73af\u5883\u7684\u5fae\u670d\u52a1\u5728\u4e0d\u5347\u7ea7\u7248\u672c\u7684\u60c5\u51b5\u4e0b\uff0c\u4ec5\u9700\u91cd\u542f\u670d\u52a1\u5373\u53ef\u91cd\u65b0\u6ce8\u518c\u5951\u7ea6\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</p> <p>\u6240\u6709\u5fae\u670d\u52a1\u5728microservice.yaml\u4e2d\u589e\u5982\u4e0b\u914d\u7f6e\uff0c\u4e14\u9700\u8981\u5728Provider\u542f\u52a8\u540e\uff0c\u518d\u91cd\u542fConsumer(\u82e5\u8bf7\u6c42\u8d70edge\uff0c\u9700\u8981\u91cd\u542fedge\u670d\u52a1)\uff1a</p> <pre><code>service_description:\n  name: xxx-service\n  version: 0.0.1\n  environment: development\n</code></pre> <ul> <li>\u5f00\u53d1\u9636\u6bb5\uff0c\u7531\u4e8e\u5b58\u5728\u9891\u7e41\u7684\u63a5\u53e3\u4fee\u6539\uff0c\u4e5f\u4e0d\u4f1a\u6e05\u7406\u670d\u52a1\u4e2d\u5fc3\u7684\u6570\u636e\uff0c\u5bb9\u6613\u51fa\u73b0\u8c03\u8bd5\u7684\u65f6\u5019\u63a5\u53e3\u8c03\u7528\u5931\u8d25\u7684\u60c5\u51b5\u3002</li> </ul> <p>\u63a8\u8350\u4f7f\u7528\u534e\u4e3a\u516c\u6709\u4e91\u5728\u7ebf\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u76f4\u63a5\u767b\u5f55\u4f7f\u7528\u5fae\u670d\u52a1\u5f15\u64ce\u63d0\u4f9b\u7684\u5fae\u670d\u52a1\u7ba1\u7406\u529f\u80fd\u5220\u9664\u5fae\u670d\u52a1\u6216\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002\u5fae\u670d\u52a1\u5f15\u64ce\u4e5f\u63d0\u4f9b\u4e86\u672c\u5730\u8f7b\u91cf\u5316\u670d\u52a1\u4e2d\u5fc3\uff0c\u5c06\u670d\u52a1\u505c\u6b62\u540e\u5373\u53ef\u6e05\u7406\u670d\u52a1\u4e2d\u5fc3\u6570\u636e\u3002\u670d\u52a1\u4e2d\u5fc3\u53ca\u5176frontend\u4ee3\u7801\u5df2\u5f00\u6e90\uff0c\u9879\u76ee\u5730\u5740\u3002</p> <ul> <li> <p>\u53d1\u5e03\u9636\u6bb5\uff0c\u9700\u8981\u5ba1\u89c6\u4e0b\u63a5\u53e3\u517c\u5bb9\u7684\u5b9e\u8df5\u7684\u6b65\u9aa4\uff0c\u786e\u4fdd\u4e0d\u5728\u7ebf\u4e0a\u5f15\u5165\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u3002\u5982\u679c\u4e0d\u5c0f\u5fc3\u6f0f\u4e86\u5176\u4e2d\u7684\u67d0\u4e2a\u6b65\u9aa4\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u5982\u4e0b\u4e00\u4e9b\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\uff1a</p> </li> <li> <p>[ ] \u5982\u679c\u4fee\u6539\u3001\u5220\u9664\u63a5\u53e3\uff1a\u5bfc\u81f4\u4e00\u4e9b\u8001\u7684Consumer\u5c06\u8bf7\u6c42\u8def\u7531\u5230\u65b0\u7684Provider\uff0c\u8c03\u7528\u5931\u8d25\u3002</p> </li> </ul> <p>\u89e3\u51b3\u529e\u6cd5\uff1a\u6307\u5b9aProvider\u7684\u7248\u672c\u53f7\u3001\u6216\u4fee\u6539Consumer\u9002\u914d\u65b0\u7684Provider\u3002</p> <ul> <li>[ ] \u5982\u679c\u5fd8\u8bb0\u4fee\u6539\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff1a\u5bfc\u81f4\u4e00\u4e9b\u65b0\u7684Consumer\u5c06\u8bf7\u6c42\u8def\u7531\u5230\u8001\u7684Provider\uff0c\u8c03\u7528\u5931\u8d25\u3002</li> </ul> <p>\u89e3\u51b3\u529e\u6cd5\uff1a\u5347\u7ea7Provider\u7248\u672c\u53f7\u3001\u5220\u9664\u8001\u7684Provider\u5b9e\u4f8b\u3001\u91cd\u542fConsumer\u3002</p> <ul> <li>[ ] \u5982\u679c\u5fd8\u8bb0\u914d\u7f6eConsumer\u7684\u6700\u5c0f\u4f9d\u8d56\u7248\u672c\uff1a\u5f53\u90e8\u7f72\u987a\u5e8f\u4e3a\u5148\u505c\u6b62Consumer\uff0c\u518d\u542f\u52a8Consumer\uff0c\u518d\u505c\u6b62Provider\uff0c\u518d\u542f\u52a8Provider\u7684\u60c5\u51b5\uff0cConsumer\u65e0\u6cd5\u83b7\u53d6\u5230\u65b0\u63a5\u53e3\u4fe1\u606f\uff0c\u5c31\u91c7\u7528\u4e86\u8001\u63a5\u53e3\uff0c\u5f53Provider\u542f\u52a8\u4ee5\u540e\uff0cConsumer\u53d1\u8d77\u5bf9\u65b0\u63a5\u53e3\u7684\u8c03\u7528\u4f1a\u5931\u8d25\uff1b\u6216\u8005\u5728Provider\u6ca1\u542f\u52a8\u524d\uff0c\u8c03\u7528\u65b0\u63a5\u53e3\u5931\u8d25\u7b49\u3002</li> </ul> <p>\u89e3\u51b3\u529e\u6cd5\uff1a\u5efa\u8bae\u5148\u542f\u52a8Provider\uff0c\u518d\u542f\u52a8Consumer\u3002</p> <p>\u901a\u7528\u89c4\u907f\u63aa\u65bd\uff1a\u51fa\u73b0\u7684\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u4e0d\u540c\uff0c\u5904\u7406\u65b9\u5f0f\u4f1a\u6709\u5dee\u5f02\u3002\u6781\u7aef\u60c5\u51b5\uff0c\u53ea\u9700\u8981\u6e05\u7406Provider\u3001Consumer\u7684\u5fae\u670d\u52a1\u4fe1\u606f\uff0c\u7136\u540e\u91cd\u542f\u5fae\u670d\u52a1\u5373\u53ef\u3002\u5f53\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u590d\u6742\u7684\u60c5\u51b5\u4e0b\uff0c\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u5f71\u54cd\u8303\u56f4\u4f1a\u66f4\u52a0\u5e7f\u6cdb\uff0c\u540c\u65f6\u6e05\u7406Provider\u3001Consumer\u6570\u636e\u4f1a\u53d8\u5f97\u590d\u6742\uff0c\u56e0\u6b64\u5efa\u8bae\u9075\u5faa\u4e0a\u9762\u7684\u89c4\u8303\uff0c\u907f\u514d\u4e0d\u517c\u5bb9\u7684\u60c5\u51b5\u53d1\u751f\u3002</p>"},{"location":"question-and-answer/interface-compatibility.html#_4","title":"\u5e38\u89c1\u7684\u63a5\u53e3\u4e0d\u517c\u5bb9\u60c5\u51b5\u7684\u65e5\u5fd7","text":"<ul> <li>consumer method [com.huawei.paas.cse.demo.CodeFirstPojoIntf:testUserMap] not exist in swagger</li> </ul> <p>\u53ef\u80fd\u662fProvider\u589e\u52a0\u4e86\u63a5\u53e3\uff0c\u4f46\u662f\u6ca1\u6709\u66f4\u65b0\u7248\u672c\u53f7\u3002\u9700\u8981\u5220\u9664\u5fae\u670d\u52a1\u6570\u636e\u6216\u8005\u66f4\u65b0\u7248\u672c\u53f7\u540e\u91cd\u65b0\u542f\u52a8Provider\uff0c\u5e76\u91cd\u542fConsumer\u3002</p> <ul> <li>\u5951\u7ea6\u6216\u63a5\u53e3\u53d8\u66f4(\u542b\u589e\u5220\u67e5\u6539\u3001\u53c2\u6570\u53d8\u5316\u7b49)\uff0c\u4f46environment\u672a\u8bbe\u5b9a\u4e3adevelopment\uff0c\u5951\u7ea6\u4e0d\u5141\u8bb8\u66f4\u65b0\u3002schemaId\u4e3adownload\u3001upload\u7684\u4e24\u4e2a\u5951\u7ea6\u5df2\u5b58\u5728\uff0c\u4f46\u65b0\u589e\u7684schemaId\u4e3aTaskTemplateController\u7684\u65e0\u6cd5\u6ce8\u518c\uff0c\u76f8\u5e94\u63a5\u53e3\u81ea\u7136\u4f1a\u8c03\u7528\u5931\u8d25\u3002\u9700\u8981\u5347\u7ea7\u7248\u672c\u53f7\uff0c\u6216\u6307\u5b9aenvironment\u4e3adevelopment\u3002</li> </ul> <pre><code>2018-06-14 22:51:55,239 [ERROR] SchemaIds is different between local and service center. Please change microservice version. id=1f4c94c66fe011e8945700ff37174dd4 appId=uploadapp, name=upload-service, version=0.0.1, local schemaIds=[download, upload, TaskTemplateController], service center schemaIds=[download, upload] org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.checkSchemaIdSet(MicroserviceRegisterTask.java:116)\n2018-06-14 22:51:55,243 [INFO] schemaId download exists true org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:144)\n2018-06-14 22:51:55,246 [INFO] schemaId upload exists true org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:144)\n2018-06-14 22:51:55,249 [WARN] get response for org.apache.servicecomb.serviceregistry.api.response.GetExistenceResponse failed, 400:Bad Request, {\"errorCode\":\"400016\",\"errorMessage\":\"Schema does not exist\",\"detail\":\"schema does not exist.\"}\n org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$0(ServiceRegistryClientImpl.java:118)\n2018-06-14 22:51:55,250 [INFO] schemaId TaskTemplateController exists false org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:144)\n2018-06-14 22:51:55,258 [ERROR] Register schema 1f4c94c66fe011e8945700ff37174dd4/TaskTemplateController failed, statusCode: 400, statusMessage: Bad Request, description: {\"errorCode\":\"400014\",\"errorMessage\":\"Undefined schema id\",\"detail\":\"schemaId non-exist\uff0c can't be added, environment is production\"}\n. org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.registerSchema(ServiceRegistryClientImpl.java:306)\n</code></pre> <ul> <li>Provider\u65e0\u53ef\u7528\u7248\u672c\uff0c\u8bf7\u67e5Provider\u548cConsumer\u662f\u5426\u5c5e\u4e8e\u540c\u4e00environment(\u9ed8\u8ba4\u4e3aProduction)\uff0c\u4e14\u6210\u529f\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</li> </ul> <pre><code>2018-06-15 11:03:56,045 [ERROR] invoke failed, invocation=PRODUCER rest customer-service.reactiveClient.hello org.apache.servicecomb.swagger.invocation.exception.DefaultExceptionToResponseConverter.convert(DefaultExceptionToResponseConverter.java:35)\njava.lang.IllegalStateException: Probably invoke a service before it is registered, appId=uploadapp, name=upload-service\n    at org.apache.servicecomb.core.definition.schema.ConsumerSchemaFactory.getOrCreateMicroserviceMeta(ConsumerSchemaFactory.java:90)\n    at org.apache.servicecomb.core.provider.consumer.ReferenceConfig.&lt;init&gt;(ReferenceConfig.java:36)\n    at org.apache.servicecomb.core.provider.consumer.ConsumerProviderManager.getReferenceConfig(ConsumerProviderManager.java:82)\n</code></pre> <ul> <li>\u672c\u5730\u5f00\u53d1\u8c03\u8bd5\u65f6\u65e0\u6cd5\u4f7f\u7528\u90e8\u5206\u4e91\u4e0a\u4eea\u8868\u76d8\u529f\u80fd\uff0c\u4f1a\u51fa\u73b0\u4e0b\u8ff0\u5f02\u5e38\uff0c\u4e0d\u5f71\u54cd\u529f\u80fd\uff0c\u53ef\u4ee5\u5ffd\u7565\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eservicecomb.monitor.client.enable\u4e3afalse\u7981\u7528\u4eea\u8868\u76d8\u529f\u80fd\u3002</li> </ul> <pre><code>2018-06-14 22:23:59,407 [WARN] {\"errorCode\":\"400012\",\"errorMessage\":\"Micro-service does not exist\",\"detail\":\"provider not exist, consumer 8e24bc416fde11e8945700ff37174dd4 find provider default/CseMonitoring/latest\"}\n org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$4(ServiceRegistryClientImpl.java:199)\n2018-06-14 22:23:59,408 [ERROR] Can not find any instances from service center due to previous errors. service=default/CseMonitoring/latest org.apache.servicecomb.serviceregistry.registry.AbstractServiceRegistry.findServiceInstances(AbstractServiceRegistry.java:256)\n</code></pre> <ul> <li>\u4e0b\u9762\u4e24\u79cd\u9519\u8bef(\u524d\u8005\u76f4\u63a5\u6d88\u8d39upload-service\uff0c\u540e\u8005\u901a\u8fc7edge-service\u6d88\u8d39upload-service)\u5747\u8868\u793a\u63a5\u53e3\u672a\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u6216\u6d88\u8d39\u8005\u672a\u62ff\u5230\u6700\u65b0\u5951\u7ea6\uff0c\u8c03\u7528\u62a5locate path failed. \u8bf7\u6392\u9664\uff1a1\u3001Provider\u5bf9\u5e94\u63a5\u53e3\u5951\u7ea6\u5df2\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u5185\u5bb9\u4e0e\u672c\u5730\u5e94\u7528\u542f\u52a8\u65f6\u8f93\u51fa\u4e00\u81f4\uff1b2\u3001\u786e\u4fddConsumer\u548cedge-service\u5728Provider\u542f\u52a8\u540e\uff0c\u624b\u52a8\u91cd\u542f\u4ee5\u91cd\u65b0\u83b7\u53d6Provider\u5951\u7ea6\u4fe1\u606f\uff1b3\u3001Debug\u542f\u52a8Consumer\uff0c\u627e\u5230ConsumerSchemaFactory\u7c7b\u4e2d\u7684loadSwagger\uff08\u4f4d\u4e8eservicecomb\u7684java-chassis-core\u5305\u4e2d\uff09\uff0c\u67e5\u770bschemaContent\u5185\u5bb9\u662f\u5426\u62ff\u5230Consumer\u5bf9\u5e94\u5951\u7ea6\u5185\u5bb9\u3002</li> </ul> <pre><code>2018-06-15 14:52:45,312 [ERROR] locate path failed, status:Not Found, http method:GET, path:/favicon.ico/, microserviceName:upload-service org.apache.servicecomb.common.rest.locator.OperationLocator.locate(OperationLocator.java:72)\n</code></pre> <pre><code>2018-06-15 14:56:35,342 [ERROR] locate path failed, status:Not Found, http method:POST, path:/taskTemplate/uploadTaskTemplate/, microserviceName:upload-service org.apache.servicecomb.common.rest.locator.OperationLocator.locate(OperationLocator.java:72)\n2018-06-15 14:56:35,344 [ERROR] edge server failed. org.apache.servicecomb.edge.core.AbstractEdgeDispatcher.onFailure(AbstractEdgeDispatcher.java:33)\nInvocationException: code=404;msg=CommonExceptionData [message=Not Found]\n    at org.apache.servicecomb.common.rest.locator.OperationLocator.locate(OperationLocator.java:77)\n    at org.apache.servicecomb.common.rest.locator.ServicePathManager.consumerLocateOperation(ServicePathManager.java:107)\n    at org.apache.servicecomb.edge.core.EdgeInvocation.locateOperation(EdgeInvocation.java:114)\n    at org.apache.servicecomb.common.rest.AbstractRestInvocation.findRestOperation(AbstractRestInvocation.java:77)\n    at org.apache.servicecomb.edge.core.EdgeInvocation.edgeInvoke(EdgeInvocation.java:66)\n    at com.huawei.cse.houseapp.edge.ApiDispatcher.onRequest(ApiDispatcher.java:84)\n    at io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:223)\n</code></pre> <ul> <li>\u6d88\u8d39\u63a5\u53e3\u65f6Content-Type\u4e0d\u4e00\u81f4\u5c06\u62a5\u53c2\u6570\u975e\u6cd5\uff0c\u5982\u524d\u7aef\u4f7f\u7528form-data\uff0cProvider\u9700\u8981application/json</li> </ul> <pre><code>2018-06-27 14:51:13,939 [ERROR] invoke failed, invocation=PRODUCER rest loadbalance-isolation-server.hello.sayHello org.apache.servicecomb.swagger.invocation.exception.DefaultExceptionToResponseConverter.convert(DefaultExceptionToResponseConverter.java:35)\njava.lang.IllegalArgumentException: argument type mismatch\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:498)\n</code></pre>"},{"location":"question-and-answer/question_answer.html","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5982\u4f55\u81ea\u5b9a\u4e49\u67d0\u4e2aJava\u65b9\u6cd5\u5bf9\u5e94\u7684REST\u63a5\u53e3\u91cc\u7684HTTP Status Code\uff1f","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u5bf9\u4e8e\u6b63\u5e38\u7684\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7SwaggerAnnotation\u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a</p> <pre><code>@ApiResponse(code = 300, response = String.class, message = \"\")\npublic int test(int x) {\n  return 100;\n}\n</code></pre> <p>\u5bf9\u4e8e\u5f02\u5e38\u7684\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7\u629b\u51fa\u81ea\u5b9a\u4e49\u7684InvocationException\u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a\u3001</p> <pre><code>    public String testException(int code) {\n        String strCode = String.valueOf(code);\n        switch (code) {\n            case 200:\n                return strCode;\n            case 456:\n                throw new InvocationException(code, strCode, strCode + \" error\");\n            case 556:\n                throw new InvocationException(code, strCode, Arrays.asList(strCode + \" error\"));\n            case 557:\n                throw new InvocationException(code, strCode, Arrays.asList(Arrays.asList(strCode + \" error\")));\n            default:\n                break;\n        }\n\n        return \"not expected\";\n    }\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_1","title":"\u95ee\u9898\u63cf\u8ff0\uff1a \u5982\u4f55\u5b9a\u5236\u81ea\u5df1\u5fae\u670d\u52a1\u7684\u65e5\u5fd7\u914d\u7f6e","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a** ServiceComb\u4e0d\u7ed1\u5b9a\u65e5\u5fd7\u5668\uff0c\u53ea\u662f\u4f7f\u7528\u4e86slf4j\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u9009\u62e9log4j/log4j2/logback\u7b49\u7b49\u3002ServiceComb\u63d0\u4f9b\u4e86\u4e00\u4e2alog4j\u7684\u6269\u5c55\uff0c\u5728\u6807\u51c6log4j\u7684\u57fa\u7840\u4e0a\uff0c\u652f\u6301log4j\u7684properties\u6587\u4ef6\u7684\u589e\u91cf\u914d\u7f6e\u3002</p> <ul> <li>\u9ed8\u8ba4\u4ee5\u89c4\u5219\uff1a\"classpath*:config/log4j.properties\"\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6</li> <li>\u5b9e\u9645\u4f1a\u641c\u7d22\u51faclasspath\u4e2d\u6240\u6709\u7684<code>config/log4j.properties\u548cconfig/log4j.*.properties</code>, \u4ece\u641c\u7d22\u51fa\u7684\u6587\u4ef6\u4e2d\u5207\u51fa<code>\\*</code>\u7684\u90e8\u5206\uff0c\u8fdb\u884calpha\u6392\u5e8f\uff0c\u7136\u540e\u6309\u987a\u5e8f\u52a0\u8f7d\uff0c\u6700\u540e\u5408\u6210\u7684\u6587\u4ef6\u4f5c\u4e3alog4j\u7684\u914d\u7f6e\u6587\u4ef6\u3002</li> <li>\u5982\u679c\u8981\u4f7f\u7528ServiceComb\u7684log4j\u6269\u5c55\uff0c\u5219\u9700\u8981\u8c03\u7528Log4jUtils.init\uff0c\u5426\u5219\u5b8c\u5168\u6309\u6807\u51c6\u7684\u65e5\u5fd7\u5668\u7684\u89c4\u5219\u4f7f\u7528\u3002</li> </ul>"},{"location":"question-and-answer/question_answer.html#transporttransport","title":"\u95ee\u9898\u63cf\u8ff0\uff1a \u5f53\u670d\u52a1\u914d\u7f6e\u4e86\u591a\u4e2atransport\u7684\u65f6\u5019\uff0c\u5728\u8fd0\u884c\u65f6\u662f\u600e\u4e48\u9009\u62e9\u4f7f\u7528\u54ea\u4e2atransport\u7684\uff1f","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <ul> <li> <p>ServiceComb\u7684consumer\u3001transport\u3001handler\u3001producer\u4e4b\u95f4\u662f\u89e3\u8026\u7684\uff0c\u5404\u529f\u80fd\u4e4b\u95f4\u901a\u8fc7\u5951\u7ea6\u5b9a\u4e49\u8054\u5408\u5728\u4e00\u8d77\u5de5\u4f5c\u7684\uff0c\u5373\uff1a   consumer\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fspringmvc\u5f00\u53d1\u4e0e\u4f7f\u7528highway\uff0c\u8fd8\u662fRESTful\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u6ca1\u6709\u5173\u7cfb\u4e0eproducer\u662f\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fjaxrs\uff0c\u6216\u8005\u662fspringmvc\u5f00\u53d1\uff0c\u4e5f\u6ca1\u6709\u5173\u7cfbhandler\u4e5f\u4e0d\u611f\u77e5\uff0c\u4e1a\u52a1\u5f00\u53d1\u65b9\u5f0f\u4ee5\u53ca\u4f20\u8f93\u65b9\u5f0f</p> </li> <li> <p>consumer\u8bbf\u95eeproducer\uff0c\u5728\u8fd0\u884c\u65f6\u7684transport\u9009\u62e9\u4e0a\uff0c\u603b\u89c4\u5219\u4e3a\uff1a   consumer\u7684transport\u4e0eproducer\u7684endpoint\u53d6\u4ea4\u96c6\uff0c\u5982\u679c\u4ea4\u96c6\u540e\uff0c\u8fd8\u6709\u591a\u4e2atransport\u53ef\u9009\u62e9\uff0c\u5219\u8f6e\u6d41\u4f7f\u7528</p> </li> </ul> <p>\u5206\u89e3\u5f00\u6765\uff0c\u5b58\u5728\u4ee5\u4e0b\u573a\u666f\uff1a</p> <ul> <li>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u540c\u65f6\u5f00\u653e\u4e86highway\u4ee5\u53caRESTful\u7684endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684highway endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684RESTful endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\uff0c\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u4f1a\u8f6e\u6d41\u8bbf\u95eeproducer\u7684highway\u3001RESTful endpoint</li> </ul> <p>\u5982\u679c\uff0c\u6b64\u65f6consumer\u60f3\u56fa\u5b9a\u4f7f\u7528\u67d0\u4e2atransport\u8bbf\u95eeproducer\uff0c\u53ef\u4ee5\u5728consumer\u8fdb\u7a0b\u7684microservice.yaml\u4e2d\u914d\u7f6e\uff0c\u6307\u5b9atransport\u7684\u540d\u79f0:</p> <pre><code>servicecomb:\n  references:\n    transport:\n      &lt;service_name&gt;: highway\n</code></pre> <ul> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86highway\u7684endpoint</p> </li> <li> <p>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528higway\u8bbf\u95ee</p> </li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</li> <li> <p>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528highway\u8bbf\u95ee</p> </li> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86RESTful\u7684endpoint</p> </li> <li> <p>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</p> </li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> </ul>"},{"location":"question-and-answer/question_answer.html#swagger-body","title":"\u95ee\u9898\u63cf\u8ff0\uff1a swagger body\u53c2\u6570\u7c7b\u578b\u5b9a\u4e49\u9519\u8bef\uff0c\u5bfc\u81f4\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\u7684\u5185\u5bb9\u6ca1\u6709\u7c7b\u578b\u4fe1\u606f","text":"<p>\u73b0\u8c61\u63cf\u8ff0:</p> <p>\u5b9a\u4e49\u5982\u4e0b\u63a5\u53e3\uff0c\u5c06\u53c2\u6570\u653e\u5230body\u4f20\u9012</p> <pre><code>/testInherate:\n    post:\n      operationId: \"testInherate\"\n      parameters:\n      - in: \"body\"\n        name: \"xxxxx\"\n        required: false\n        type: string\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            $ref: \"#/definitions/ReponseImpl\"\n</code></pre> <p>\u91c7\u7528\u4e0a\u9762\u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\u3002\u5728\u670d\u52a1\u6ce8\u518c\u4ee5\u540e\uff0c\u4ece\u670d\u52a1\u4e2d\u5fc3\u67e5\u8be2\u4e0b\u6765\u7684\u63a5\u53e3type: string \u4e22\u5931\uff0c\u53d8\u6210\u4e86\uff1a</p> <pre><code>/testInherate:\n    post:\n      operationId: \"testInherate\"\n      parameters:\n      - in: \"body\"\n        name: \"xxxxx\"\n        required: false\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            $ref: \"#/definitions/ReponseImpl\"\n</code></pre> <p>\u5982\u679c\u5ba2\u6237\u7aef\u6ca1\u6709\u653e\u7f6eswagger\uff0c\u8fd8\u4f1a\u62a5\u544a\u5982\u4e0b\u5f02\u5e38\uff1a</p> <p>Caused by: java.lang.ClassFormatError: Method \"testInherate\" in class ? has illegal signature \"</p> <p>\u89e3\u51b3\u65b9\u6cd5\uff1a</p> <p>\u5b9a\u4e49body\u53c2\u6570\u7684\u7c7b\u578b\u7684\u65f6\u5019\uff0c\u9700\u8981\u4f7f\u7528schema\uff0c\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528type\u3002</p> <pre><code>/testInherate:\n    post:\n      operationId: \"testInherate\"\n      parameters:\n      - in: \"body\"\n        name: \"request\"\n        required: false\n        schema:\n          type: string\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            $ref: \"#/definitions/ReponseImpl\"\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_2","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5fae\u670d\u52a1\u6846\u67b6\u670d\u52a1\u8c03\u7528\u662f\u5426\u4f7f\u7528\u957f\u8fde\u63a5","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>http\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u6709\u8d85\u65f6\u65f6\u95f4\uff09\uff0chighway\u65b9\u5f0f\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u4e00\u76f4\u4fdd\u6301\uff09\u3002</p>"},{"location":"question-and-answer/question_answer.html#_3","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u65ad\u8fde\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\u4fe1\u606f\u662f\u5426\u81ea\u52a8\u5220\u9664","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u670d\u52a1\u4e2d\u5fc3\u5fc3\u8df3\u68c0\u6d4b\u5230\u670d\u52a1\u5b9e\u4f8b\u4e0d\u53ef\u7528\uff0c\u53ea\u4f1a\u79fb\u9664\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f\uff0c\u670d\u52a1\u7684\u9759\u6001\u6570\u636e\u4e0d\u4f1a\u79fb\u9664\u3002</p>"},{"location":"question-and-answer/question_answer.html#_4","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5fae\u670d\u52a1\u6846\u67b6\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u591a\u4e2a\u5fae\u670d\u52a1\u95f4\u900f\u4f20","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u900f\u4f20\u6570\u636e\u585e\u5165\uff1a</p> <pre><code>CseHttpEntity&lt;xxxx.class&gt; httpEntity = new CseHttpEntity&lt;&gt;(xxx);\n//\u900f\u4f20\u5185\u5bb9\nhttpEntity.addContext(\"contextKey\",\"contextValue\");\nResponseEntity&lt;String&gt; responseEntity = RestTemplateBuilder.create().exchange(\"cse://springmvc/springmvchello/sayhello\",HttpMethod.POST,httpEntity,String.class);\n</code></pre> <p>\u900f\u4f20\u6570\u636e\u83b7\u53d6\uff1a</p> <pre><code>@Override\n@RequestMapping(path=\"/sayhello\",method = RequestMethod.POST)\npublic String sayHello(@RequestBody Person person,InvocationContext context){\n    //\u900f\u4f20\u6570\u636e\u83b7\u53d6\n    context.getContext();\n    return \"Hello person \" + person.getName();\n}\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_5","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5fae\u670d\u52a1\u6846\u67b6\u670d\u52a1\u5982\u4f55\u81ea\u5b9a\u4e49\u8fd4\u56de\u72b6\u6001\u7801","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <pre><code>@Override\n@RequestMapping(path = \"/sayhello\",method = RequestMethod.POST)\npublic String sayHello(@RequestBody Person person){\n    InvocationContext context = ContextUtils.getInvocationContext();\n    //\u81ea\u5b9a\u4e49\u72b6\u6001\u7801\n    context.setStatus(Status.CREATED);\n    return \"Hello person \"+person.getName();\n}\n</code></pre>"},{"location":"question-and-answer/question_answer.html#body-model","title":"\u95ee\u9898\u63cf\u8ff0\uff1a body Model\u90e8\u5206\u66b4\u9732","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u4e00\u4e2a\u63a5\u53e3\u5bf9\u5e94\u7684body\u5bf9\u8c61\u4e2d\uff0c\u53ef\u80fd\u6709\u4e00\u4e9b\u5c5e\u6027\u662f\u5185\u90e8\u7684\uff0c\u4e0d\u60f3\u5f00\u653e\u51fa\u53bb\uff0c\u751f\u6210schema\u7684\u65f6\u5019\u4e0d\u8981\u5e26\u51fa\u53bb\uff0c\u4f7f\u7528\uff1a</p> <pre><code>@ApiModelProperty(hidden = true)\n</code></pre>"},{"location":"question-and-answer/question_answer.html#consumer","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u6846\u67b6\u83b7\u53d6\u8fdc\u7aefconsumer\u7684\u5730\u5740","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u5982\u679c\u4f7f\u7528http rest\u65b9\u5f0f\uff08\u4f7f\u7528transport-rest-vertx\u4f9d\u8d56\uff09\u53ef\u4ee5\u7528\u4e0b\u9762\u8fd9\u79cd\u65b9\u5f0f\u83b7\u53d6\uff1a</p> <pre><code>HttpServletRequest request = (HttpServletRequest) invocation.getHandlerContext().get(RestConst.REST_REQUEST);\nString host = request.getRemoteHost();\n</code></pre> <p>\u5b9e\u9645\u573a\u666f\u662f\u62ff\u6700\u5916\u5c42\u7684\u5730\u5740\uff0c\u6240\u4ee5\u5e94\u8be5\u662fLB\u4f20\u5165\u5230edgeservice\uff0cedgeService\u518d\u653e\u5230context\u5916\u4e0b\u4f20\u9012\u3002</p>"},{"location":"question-and-answer/question_answer.html#handler","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5bf9handler\u63cf\u8ff0","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>consumer\u9ed8\u8ba4\u7684handler\u662fsimpleLB\uff0c\u6ca1\u6709\u914d\u7f6e\u7684\u65f6\u5019handler\u94fe\u4f1a\u4f7f\u7528\u8fd9\u4e2a\uff0c\u5982\u679c\u914d\u7f6e\u4e86handler\uff0c\u91cc\u9762\u4e00\u5b9a\u8981\u5305\u542blb\u7684handler\uff0c\u5426\u5219\u8c03\u7528\u62a5\u9519\uff0c\u9700\u8981\u5728\u6587\u6863\u91cc\u9762\u8fdb\u884c\u8bf4\u660e\u3002</p>"},{"location":"question-and-answer/question_answer.html#netty","title":"\u95ee\u9898\u63cf\u8ff0\uff1anetty\u7248\u672c\u95ee\u9898","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>netty3\u548cnetty4\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u4e09\u65b9\u4ef6\uff0c\u56e0\u4e3a\u5750\u6807\u8ddfpackage\u90fd\u4e0d\u76f8\u540c\uff0c\u6240\u4ee5\u53ef\u4ee5\u5171\u5b58\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u5c0f\u7248\u672c\u95ee\u9898\uff0c\u5c0f\u7248\u672c\u5fc5\u987b\u4f7f\u7528\u7684\u7248\u672c\u3002</p>"},{"location":"question-and-answer/question_answer.html#_6","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u8d85\u65f6\u8bbe\u7f6e","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u5728\u5fae\u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff08microservice.yaml\uff09\u4e2d\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  request:\n    timeout: 30000\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_7","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u6cbb\u7406\u7684\u5904\u7406\u94fe\u987a\u5e8f\u662f\u5426\u6709\u8981\u6c42\uff1f","text":"<p>\u89e3\u51b3\u65b9\u6cd5\uff1a</p> <p>\u5904\u7406\u94fe\u7684\u987a\u5e8f\u4e0d\u540c\uff0c\u90a3\u4e48\u7cfb\u7edf\u5de5\u4f5c\u884c\u4e3a\u4e5f\u4e0d\u540c\u3002 \u4e0b\u9762\u5217\u4e3e\u4e00\u4e0b\u5e38\u89c1\u95ee\u9898\u3002</p> <p>1\u3001loadbalance\u548cbizkeeper-consumer</p> <p>\u8fd9\u4e24\u4e2a\u987a\u5e8f\u53ef\u4ee5\u968f\u673a\u7ec4\u5408\u3002\u4f46\u662f\u884c\u4e3a\u662f\u4e0d\u4e00\u6837\u7684\u3002</p> <p>\u5f53loadbalance\u5728\u524d\u9762\u7684\u65f6\u5019\uff0c\u90a3\u4e48loadbalance\u63d0\u4f9b\u7684\u91cd\u8bd5\u529f\u80fd\u4f1a\u5728bizkeeper-consumer\u629b\u51fa\u5f02\u5e38\u65f6\u53d1\u751f\uff0c\u6bd4\u5982\u8d85\u65f6\u7b49\u3002\u4f46\u662f\u5982\u679c\u5df2\u7ecf\u505a\u4e86fallbackpolicy\u914d\u7f6e\uff0c\u6bd4\u5982returnnull\uff0c\u90a3\u4e48loadbalance\u5219\u4e0d\u4f1a\u91cd\u8bd5\u3002</p> <p>\u5982\u679cloadbalance\u5728\u540e\u9762\uff0c\u90a3\u4e48loadbalance\u7684\u91cd\u8bd5\u4f1a\u5ef6\u957f\u8d85\u65f6\u65f6\u95f4\uff0c\u5373\u4f7f\u91cd\u8bd5\u6210\u529f\uff0c\u5982\u679cbizkeeper-consumer\u8bbe\u7f6e\u7684\u8d85\u65f6\u65f6\u95f4\u4e0d\u591f\uff0c\u90a3\u4e48\u6700\u7ec8\u7684\u8c03\u7528\u7ed3\u679c\u4e5f\u662f\u5931\u8d25\u3002</p> <p>2\u3001tracing-consumer\uff0csla-consumer\uff0ctracing-provider\uff0csla-provider</p> <p>\u8fd9\u4e9b\u5904\u7406\u94fe\u5efa\u8bae\u653e\u5230\u5904\u7406\u94fe\u7684\u6700\u5f00\u59cb\u4f4d\u7f6e\uff0c\u4fdd\u8bc1\u6210\u529f\u3001\u5931\u8d25\u7684\u60c5\u51b5\u90fd\u53ef\u4ee5\u8bb0\u5f55\u65e5\u5fd7\uff08\u7531\u4e8e\u8bb0\u5f55\u65e5\u5fd7\u9700\u8981IP\u7b49\u4fe1\u606f\uff0c\u5bf9\u4e8e\u6d88\u8d39\u8005\uff0c\u53ea\u80fd\u653e\u5230loadbalance\u540e\u9762\uff09\u3002</p> <p>\u5982\u679c\u4e0d\u9700\u8981\u8bb0\u5f55\u5ba2\u6237\u7aef\u8fd4\u56de\u7684\u5f02\u5e38\uff0c\u5219\u53ef\u4ee5\u653e\u5230\u672b\u5c3e\uff0c\u53ea\u5173\u6ce8\u7f51\u7edc\u5c42\u8fd4\u56de\u7684\u9519\u8bef\u3002\u4f46\u662f\u5982\u679cbizkeeper-consumer\u7b49\u8d85\u65f6\u63d0\u524d\u8fd4\u56de\u7684\u8bdd\uff0c\u5219\u53ef\u80fd\u4e0d\u4f1a\u8bb0\u5f55\u65e5\u5fd7\u3002</p> <p>3\u3001\u5efa\u8bae\u7684\u987a\u5e8f</p> <p>Consumer: loadbalance, tracing-consumer, sla-consumer, bizkeeper-consumer</p> <p>Provider: tracing-provider, sla-provider, bizkeeper-provider</p> <p>\u8fd9\u79cd\u987a\u5e8f\u80fd\u591f\u6ee1\u8db3\u5927\u591a\u6570\u573a\u666f\uff0c\u5e76\u4e14\u4e0d\u5bb9\u6613\u51fa\u73b0\u4e0d\u53ef\u7406\u89e3\u7684\u9519\u8bef\u3002</p>"},{"location":"question-and-answer/question_answer.html#_8","title":"\u95ee\u9898\u63cf\u8ff0\uff1a \u6587\u4ef6\u4e0a\u4f20\u4e2d\u914d\u7f6e\u9879\u6700\u5927\u8bf7\u6c42\u5927\u5c0f\u7684\u542b\u4e49","text":"<p>\u914d\u7f6e\u9879\uff1a servicecomb.uploads.maxSize</p> <p>\u542b\u4e49\uff1a \u8bf7\u6c42\u4f53\u4e2d\u5141\u8bb8\u7684\u6700\u5927\u5b57\u8282\u6570\uff0c\u9ed8\u8ba4\u503c\u4e3a-1\uff0c\u8868\u793a\u6ca1\u6709\u9650\u5236\u3002</p>"},{"location":"references-handlers/fail-retry.html","title":"\u5feb\u901f\u5931\u8d25\u548c\u91cd\u8bd5","text":"<p>\u968f\u673a\u5931\u8d25\u5728\u5fae\u670d\u52a1\u7cfb\u7edf\u7ecf\u5e38\u53d1\u751f\u3002\u4ea7\u751f\u968f\u673a\u5931\u8d25\u7684\u539f\u56e0\u975e\u5e38\u591a\uff0c\u4ee5JAVA\u5fae\u670d\u52a1\u5e94\u7528\u4e3a\u4f8b\uff0c\u9020\u6210\u8bf7\u6c42\u8d85\u65f6\u8fd9\u79cd\u968f\u673a\u5931\u8d25\u7684\u539f\u56e0\u5305\u62ec\uff1a\u7f51\u7edc\u6ce2\u52a8\u548c\u8f6f\u786c\u4ef6 \u5347\u7ea7\uff0c\u53ef\u80fd\u9020\u6210\u968f\u673a\u7684\u51e0\u79d2\u4e2d\u65ad\uff1bJVM\u5783\u573e\u56de\u6536\u3001\u7ebf\u7a0b\u8c03\u5ea6\u5bfc\u81f4\u7684\u65f6\u5ef6\u589e\u52a0\uff1b\u6d41\u91cf\u5e76\u4e0d\u662f\u5747\u5300\u7684\uff0c\u540c\u65f6\u5230\u6765\u76841000\u4e2a\u8bf7\u6c42\u548c1\u79d2\u5185\u5e73\u5747\u6765\u76841000\u4e2a\u8bf7\u6c42 \u5bf9\u7cfb\u7edf\u7684\u51b2\u51fb\u662f\u4e0d\u540c\u7684\uff0c\u524d\u8005\u66f4\u5bb9\u6613\u5bfc\u81f4\u8d85\u65f6\uff1b\u5e94\u7528\u7a0b\u5e8f\u3001\u7cfb\u7edf\u3001\u7f51\u7edc\u7684\u7efc\u5408\u5f71\u54cd\uff0c\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7a81\u7136\u7684\u5927\u6d41\u91cf\u53ef\u80fd\u4f1a\u5bf9\u5e26\u5bbd\u4ea7\u751f\u5f71\u54cd\uff0c\u4ece\u800c\u5f71\u54cd\u5176\u4ed6 \u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\uff1b\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u573a\u666f\uff0c\u6bd4\u5982SSL\u9700\u8981\u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf\u71b5\uff0c\u5982\u679c\u71b5\u503c\u8fc7\u4f4e\uff0c\u4f1a\u6709\u51e0\u79d2\u7684\u5ef6\u8fdf\u3002\u7cfb\u7edf\u4e0d\u53ef\u907f\u514d\u7684\u9762\u4e34\u968f\u673a\u6545\u969c\uff0c\u5fc5\u987b\u5177\u5907 \u4e00\u5b9a\u7684\u968f\u673a\u6545\u969c\u4fdd\u62a4\u80fd\u529b\u3002</p> <p>\u91cd\u8bd5\u662f\u89e3\u51b3\u968f\u673a\u5931\u8d25\u7684\u4e00\u4e2a\u975e\u5e38\u6709\u6548\u7684\u63aa\u65bd\u3002\u4f46\u662f\u5b9e\u65bd\u91cd\u8bd5\u662f\u4e00\u4e2a\u975e\u5e38\u590d\u6742\u7684\u8bfe\u9898\u3002\u672c\u6587\u63d0\u4f9b\u4e00\u4e2a\u91cd\u8bd5\u7684\u6700\u4f73\u67b6\u6784\u65b9\u6848\uff0c\u5206\u6790\u5982\u4f55\u89e3\u51b3\u91cd\u8bd5\u9762\u4e34\u7684\u5904\u7406 \u5feb\u901f\u5931\u8d25\u7684\u95ee\u9898\u3002 </p> <p>\u4f7f\u7528<code>\u8bf7\u6c42\u8d85\u65f6</code>\u914d\u7f6e\u6765\u63a7\u5236\u5feb\u901f\u5931\u8d25\u662f\u975e\u5e38\u5e38\u89c1\u7684\u624b\u6bb5\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u65e0\u4fb5\u5165\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u5bf9\u4e8e\u6027\u80fd\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f\u3002\u4f46\u662f\u5bf9\u4e8e\u5927\u89c4\u6a21\u5e94\u7528\u7cfb\u7edf\uff0c\u4ee5\u53ca \u5bf9\u4e8e\u8bf7\u6c42\u65f6\u5ef6\u8981\u6c42\u975e\u5e38\u9ad8\u7684\u7cfb\u7edf\uff0c<code>\u8bf7\u6c42\u8d85\u65f6</code>\u5e76\u4e0d\u662f\u5feb\u901f\u5931\u8d25\u7684\u6709\u6548\u624b\u6bb5\uff0c\u6709\u5982\u4e0b\u539f\u56e0\uff1a</p> <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u5728\u4f7f\u7528HTTP\u534f\u8bae\u7684\u60c5\u51b5\u4e0b\uff0c\u4f1a\u5173\u95ed\u8fde\u63a5\u3002\u8fde\u63a5\u91cd\u8fde\u662f\u975e\u5e38\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u5927\u91cf\u91cd\u8fde\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u6027\u80fd\u7684\u4e25\u91cd\u6076\u5316\u3002</li> <li>\u5728\u591a\u7ebf\u7a0b\u7cfb\u7edf\uff0c\u8bf7\u6c42\u8d85\u65f6\u90fd\u662f\u901a\u8fc7\u72ec\u7acb\u7684\u7ebf\u7a0b\u8fdb\u884c\u68c0\u6d4b\u7684\u3002\u8fd9\u91cc\u6d89\u53ca\u4e00\u4e2a\u5b9e\u65f6\u8ba1\u7b97\u7684\u95ee\u9898\u3002JDK\u5e76\u4e0d\u80fd\u5f88\u597d\u7684\u5e94\u7528\u4e8e\u5b9e\u65f6\u8ba1\u7b97\u3002\u7b80\u5355\u7684\u8bb2\u5c31\u662f\u8d85\u65f6   \u68c0\u67e5\u5e76\u4e0d\u662f\u51c6\u786e\u7684\u3002\u5f53\u7cfb\u7edf\u7e41\u5fd9\u7684\u65f6\u5019\uff0c\u8d85\u65f6\u7684\u68c0\u6d4b\u51c6\u786e\u6027\u4f1a\u6301\u7eed\u4e0b\u964d\uff0c\u672c\u6765\u4e00\u4e9b\u6b63\u5e38\u5904\u7406\u672a\u8d85\u65f6\u7684\u8bf7\u6c42\uff0c\u53ef\u80fd\u88ab\u8bef\u8ba4\u4e3a\u8d85\u65f6\uff1b\u4e00\u4e9b\u8d85\u65f6\u7684\u8bf7\u6c42\uff0c   \u53ef\u80fd\u63a8\u8fdf\u4e86\u4e00\u6bb5\u65f6\u95f4\u624d\u68c0\u6d4b\u5230\u3002 \u5e94\u7528\u7a0b\u5e8f\u5e94\u8be5\u51cf\u5c11\u5b9e\u65f6\u6027\u5047\u8bbe\uff0c\u5305\u62ec\uff1aclient\u5b9e\u65f6\u611f\u77e5\u5b9e\u4f8b\u4e0a\u4e0b\u7ebf\uff1b\u8d85\u65f6\u65f6\u95f4\u5f88\u7cbe\u786e\uff1b\u4efb\u52a1\u6309\u7167\u9884\u671f\u7684\u6267\u884c   \u65f6\u95f4\u5904\u7406\uff1b\u4efb\u52a1\u7684\u5904\u7406\u65f6\u95f4\u6052\u5b9a\u7b49\u3002 \u4ece\u53ef\u9760\u6027\u7684\u89d2\u5ea6\uff0c\u7528\u6237\u914d\u7f6e\u7684\u8d85\u65f6\u65f6\u95f4\u4e0d\u5e94\u8be5\u5f88\u77ed\uff0c\u4ece\u7ecf\u9a8c\u4e0a\u6765\u8bb2\uff0c\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u5c0f\u4e8e1s\u7684\u60c5\u51b5\uff0c\u7cfb\u7edf\u53d1\u751f   \u8d85\u65f6\u5931\u8d25\u7684\u6982\u7387\u4f1a\u663e\u8457\u63d0\u5347\u3002\u5982\u679c\u4e1a\u52a1\u7684\u5e73\u5747\u65f6\u5ef610ms\u6570\u91cf\u7ea7\uff0c\u5efa\u8bae\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5e94\u8be5\u4f4e\u4e8e1s\uff0c\u5e73\u5747\u65f6\u5ef6\u8d8a\u9ad8\uff0c\u8d85\u65f6\u65f6\u95f4\u5e94\u8be5\u7b49\u6bd4\u4f8b\u589e\u52a0\u3002</li> <li>\u8d85\u65f6\u4ee5\u540e\uff0c\u8bf7\u6c42\u8fd4\u56de\uff0c\u5e76\u4e0d\u4f1a\u4e2d\u65ad\u5df2\u7ecf\u8fdb\u884c\u7684\u4efb\u52a1\u3002\u5f3a\u5236\u4e2d\u65ad\u8fdb\u884c\u7684\u4efb\u52a1\uff08\u6bd4\u5982\u7ec8\u6b62\u7ebf\u7a0b\u7684\u65b9\u5f0f\uff09\uff0c\u4f1a\u7834\u574f\u7a0b\u5e8f\u5185\u90e8\u72b6\u6001\uff0c\u5bfc\u81f4\u975e\u5e38\u590d\u6742\u96be\u4e8e\u5206\u6790   \u7684\u6545\u969c\uff0c\u6b63\u5728\u6267\u884c\u7684\u4efb\u52a1\u9700\u8981\u4f18\u96c5\u53ef\u63a7\u5236\u7684\u7ed3\u675f\u3002</li> </ul>"},{"location":"references-handlers/fail-retry.html#_2","title":"\u5982\u4f55\u5e94\u7528\u91cd\u8bd5\u548c\u5feb\u901f\u5931\u8d25","text":"<ul> <li>\u91cd\u8bd5\u7684\u6700\u4f73\u53d1\u8d77\u65b9\u662f\u76f4\u63a5\u7684\u6d88\u8d39\u8005\uff0c\u6bd4\u5982\u5bf9\u4e8eWEB\u6d4f\u89c8\u5668\u3001\u624b\u673aAPP\u7b49\u524d\u7aef\u5e94\u7528\u3002</li> <li>\u5982\u679c\u524d\u7aef\u5e94\u7528\u65e0\u6cd5\u91cd\u8bd5\uff0c\u5728\u7f51\u5173\u8fdb\u884c\u91cd\u8bd5\u4e00\u822c\u662f\u6bd4\u8f83\u63a8\u8350\u7684\u505a\u6cd5\uff0c\u9664\u4e86\u91cd\u8bd5\uff0c\u7f51\u5173\u8fd8\u9700\u8981\u52a0\u5165\u6d41\u91cf\u63a7\u5236\u548c\u6d41\u91cf\u68b3\u7406\u529f\u80fd\uff0c\u8fc7\u6ee4\u8d85\u51fa\u7cfb\u7edf\u5904\u7406\u80fd\u529b\u7684\u6d41\u91cf\uff0c\u5e76\u5c06\u7a81\u53d1\u7684\u6d41\u91cf   \u8f6c\u6362\u4e3a\u5e73\u6ed1\u7684\u6d41\u91cf\u3002</li> <li>\u5fae\u670d\u52a1\u7cfb\u7edf\u5185\u90e8\u7684\u8bf7\u6c42\u8fdb\u884c\u91cd\u8bd5\u53ef\u4ee5\u4f5c\u4e3a\u8865\u5145\uff0c\u5efa\u8bae\u9650\u5236\u91cd\u8bd5\u6b21\u6570\u4e3a2\uff0c\u8d85\u65f6\u7b49\u9519\u8bef\u573a\u666f\uff0c\u91cd\u8bd5\u53ef\u80fd\u5e26\u6765\u6027\u80fd\u6076\u5316\u3002</li> <li>\u5f53\u4e1a\u52a1\u7684\u5e73\u5747\u65f6\u5ef6\u57281ms~10ms\uff0c\u5efa\u8bae\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5c0f\u4e8e1s\uff1b10~100ms\uff0c\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5c0f\u4e8e5s\uff1b\u5927\u4e8e100ms\uff0c\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5c0f\u4e8e10s\u3002   \u4e0d\u5efa\u8bae\u8d85\u65f6\u65f6\u95f4\u8d85\u8fc730s\uff08\u7f3a\u7701\u503c\uff09\u3002\u5f53\u4e1a\u52a1\u67d0\u4e9b\u8bf7\u6c42\u9700\u8981\u8d85\u8fc730s\u7684\u65f6\u5019\uff0c\u5e94\u8be5\u5bf9\u8fd9\u4e9b\u4e1a\u52a1\u903b\u8f91\u8fdb\u884c\u7279\u6b8a\u5904\u7406\uff0c\u6bd4\u5982\u4fee\u6539\u4e3a\u72ec\u7acb\u7ebf\u7a0b\u6c60\u6267\u884c\uff0c   \u5e76\u8bbe\u7f6e\u72ec\u7acb\u7684\u8d85\u65f6\u65f6\u95f4\uff1b\u6216\u8005\u4fee\u6539\u4e3a\u5f02\u6b65\u6267\u884c\uff0c\u8bf7\u6c42\u6765\u7684\u65f6\u5019\u7acb\u5373\u8fd4\u56de\uff0c\u901a\u8fc7\u5f02\u6b65\u7684\u65b9\u5f0f\u67e5\u8be2\u4efb\u52a1\u6267\u884c\u7ed3\u679c\u3002</li> </ul> <p>Java Chassis\u5efa\u8bae\u5728\u5e94\u7528\u4e2d\u642d\u914d\u4f7f\u7528\u63d0\u4f9b\u8005\u6d41\u63a7\u548c\u6d88\u8d39\u8005\u9694\u79bb\u4ed3\uff0c\u6765\u5b9e\u73b0\u5feb\u901f\u5931\u8d25\u548c\u91cd\u8bd5\u3002 \u4e0b\u9762\u662f\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u5178\u578b\u6cbb\u7406\u7ed3\u6784\uff1a</p> <p></p> <p>\u8be5\u6cbb\u7406\u7ed3\u6784\u5bf9\u5e94\u7684\u914d\u7f6e\u4e3a:</p> <pre><code>## \u670d\u52a1\u6cbb\u7406\u914d\u7f6e\nservicecomb:\n  matchGroup:\n    allOperation: \n      matches:\n        - apiPath:\n            prefix: \"/\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf10\u6beb\u79d2\u5141\u8bb8\u901a\u8fc7100\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    allOperation: |\n      rate: 10\n      limitRefreshPeriod: 1\n      timeoutDuration: 1000\n  retry:\n  ## \u91cd\u8bd5\u5668\u6700\u591a\u91cd\u8bd52\u6b21\uff0c\u5e76\u4e14\u5c3d\u53ef\u80fd\u9009\u62e9\u4e0d\u540c\u4e8e\u5931\u8d25\u7684\u5b9e\u4f8b\u8fdb\u884c\u91cd\u8bd5\u3002\n    allOperation: |\n      maxAttempts: 2\n      retryOnSame: 0\n  instanceIsolation:\n  ## \u7194\u65ad\u5668\u9519\u8bef\u7387\u8fbe\u523050%\u6216\u8005\u8017\u65f6\u8bf7\u6c42\u8fbe\u5230100%\uff0c\u5c06\u5f00\u542f\u3002\n  ## \u5f00\u542f\u65f6\u95f4\u4e3a5000\u6beb\u79d2\uff0c\u7136\u540e\u4f1a\u653e\u901a10\u4e2a\u8bf7\u6c42\u3002\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 100\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 50\n      slowCallDurationThreshold: 5000\n      waitDurationInOpenState: 5000\n      permittedNumberOfCallsInHalfOpenState: 10\n  instanceBulkhead:\n  ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a20\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre>"},{"location":"references-handlers/fault-injection.html","title":"\u6545\u969c\u6ce8\u5165","text":"<p>\u7528\u6237\u5728consumer\u7aef\u4f7f\u7528\u6545\u969c\u6ce8\u5165\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u53d1\u5f80\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u7684\u65f6\u5ef6\u548c\u9519\u8bef\u53ca\u5176\u89e6\u53d1\u6982\u7387\u3002</p>"},{"location":"references-handlers/fault-injection.html#_2","title":"\u6ce8\u610f\u4e8b\u9879","text":"<p>\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4\u7edf\u4e00\u4e3a\u6beb\u79d2\u3002</p>"},{"location":"references-handlers/fault-injection.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u6545\u969c\u6ce8\u5165\u914d\u7f6e\u9879\u8bf4\u660e</p> <p>[scope]\u4ee3\u8868\u6545\u969c\u6ce8\u5165\u7684\u751f\u6548\u8303\u56f4\uff0c\u53ef\u914d\u7f6e\u503c\u5305\u62ec\u5168\u5c40\u914d\u7f6e_global\uff0c\u6216\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u670d\u52a1\u540d[ServiceName]\u3002</p> <p>[protocol]\u4ee3\u8868\u4f7f\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u914d\u7f6e\u503c\u5305\u62ecrest\u6216highway\u3002</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].delay.fixedDelay \u65e0 (0,9223372036854775807]\uff0c\u957f\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4 \u76ee\u524d\u65f6\u95f4\u5355\u4f4d\u662f\u6beb\u79d2 servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].delay.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].delay.fixedDelay \u65e0 (0,9223372036854775807]\uff0c\u957f\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].delay.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].delay.fixedDelay \u65e0 (0,9223372036854775807]\uff0c\u957f\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].delay.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].abort.httpStatus \u65e0 (100,999]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684http\u9519\u8bef\u7801 servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].abort.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].abort.httpStatus \u65e0 (100,999]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684http\u9519\u8bef\u7801 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].abort.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].abort.httpStatus \u65e0 (100,999]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684http\u9519\u8bef\u7801 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].abort.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e"},{"location":"references-handlers/fault-injection.html#_4","title":"\u793a\u4f8b\u4ee3\u7801","text":"<pre><code>servicecomb:\n  governance:\n    Consumer:\n      _global:\n        policy:\n          fault:\n            protocols:\n              rest:\n                delay:\n                  fixedDelay: 5000\n                  percent: 10\n</code></pre> <pre><code>servicecomb:\n  governance:\n    Consumer:\n      ServerFaultTest:\n        schemas:\n          schema:\n            operations:\n              operation:\n                policy:\n                  fault:\n                    protocols:\n                      rest:\n                        abort:\n                          httpStatus: 421\n                          percent: 100\n</code></pre>"},{"location":"references-handlers/governance.html","title":"\u6d41\u91cf\u7279\u5f81\u6cbb\u7406","text":"<p>\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u65e8\u5728\u63d0\u4f9b\u4e00\u79cd\u901a\u7528\u7684\uff0c\u9002\u5408\u4e0d\u540c\u8bed\u8a00\u3001\u4e0d\u540c\u5fae\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u7684\u6cbb\u7406\u89c4\u5219\u3002\u6cbb\u7406\u89c4\u5219\u89c4\u5b9a\u4e86\u5fae\u670d\u52a1\u6cbb\u7406\u7684\u8fc7\u7a0b\u3001\u6cbb\u7406\u7684\u7b56\u7565\uff0c \u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u5f00\u53d1\u6846\u67b6\u3001\u6280\u672f\u5b9e\u73b0\u6cbb\u7406\u89c4\u5219\u7ea6\u5b9a\u7684\u6cbb\u7406\u80fd\u529b\u3002</p> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u5728 ServiceComb Java Chassis, Go Chassis,Spring Cloud, Dubbo \u4e2d\u4f7f\u7528\u8be5\u529f\u80fd\u3002</p> <p>ServiceComb Java Chassis \u63d0\u4f9b\u4e86\u5b9e\u73b0 SDK\uff0c\u53ef\u4ee5\u5c06\u5176\u7528\u4e8e\u5176\u4ed6\u5f00\u53d1\u6846\u67b6\u3002SDK \u9ed8\u8ba4\u91c7\u7528 Resilience4j \u5b9e\u73b0\u6cbb\u7406\u8fc7\u7a0b\u3002\u89c4\u8303\u6ca1\u6709\u7ea6\u675f\u6cbb\u7406\u8fc7\u7a0b\u7684\u5b9e\u73b0\u6846\u67b6\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u4f7f\u7528\u5176\u4ed6\u7684\u6cbb\u7406\u6846\u67b6\u5b9e\u73b0\u6cbb\u7406\u8fc7\u7a0b\u3002 </p> <p>\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u6982\u5ff5\u548c\u89c4\u8303\u53c2\u8003</p>"},{"location":"references-handlers/governance.html#_2","title":"\u4f7f\u7528\u5ba2\u6237\u7aef\u7194\u65ad","text":"<p>\u914d\u7f6e\u53c2\u6570\uff1a</p> <pre><code>servicecomb:\n  instanceIsolation:\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n</code></pre> <p>\u4e0a\u8bc9\u53c2\u6570\u4f7f\u7528\u8ba1\u7b97\u6ed1\u52a8\u7a97\u53e3\uff0c\u5982\u679c\u9519\u8bef\u7387\u8d85\u8fc750%\uff0c\u5c31\u4f1a\u8fdb\u884c\u7194\u65ad\u3002</p>"},{"location":"references-handlers/governance.html#_3","title":"\u4f7f\u7528\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3","text":"<p>\u914d\u7f6e\u53c2\u6570\uff1a</p> <pre><code>servicecomb:\n  instanceBulkhead:\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre> <p>\u4e0a\u8bc9\u53c2\u6570\u63a7\u5236\u6700\u5927\u5e76\u53d1\u6570\u4e3a20\uff0c\u8d85\u8fc7\u7684\u8bf7\u6c42\u4f1a\u7b49\u5f851000\u6beb\u79d2\u4ee5\u83b7\u53d6\u8bb8\u53ef\uff0c\u5982\u679c\u5f97\u5230\u8bb8\u53ef\uff0c\u53ef\u4ee5\u7ee7\u7eed\u5904\u7406\uff0c\u5426\u5219\u4f1a\u62d2\u7edd\u8bf7\u6c42\u3002</p>"},{"location":"references-handlers/governance.html#_4","title":"\u4f7f\u7528\u91cd\u8bd5","text":"<p>\u914d\u7f6e\u53c2\u6570\uff1a</p> <pre><code>servicecomb:\n  retry:\n    allOperation: |\n      maxAttempts: 2\n      retryOnSame: 0\n</code></pre> <p>maxAttempts\u8868\u793a\u6700\u5927\u91cd\u8bd5\u6b21\u6570\uff08\u4e0d\u5305\u62ec\u7b2c1\u6b21\u8c03\u7528\uff09\uff0cretryOnSame\u8868\u793a\u4f7f\u7528\u7b2c1\u6b21\u8c03\u7528\u7684\u5b9e\u4f8b\u8fdb\u884c\u91cd\u8bd5\u6b21\u6570\u3002\u540e\u7eed\u7684\u91cd\u8bd5\u4f1a\u6839\u636e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u91cd\u65b0\u9009\u62e9\u4e00\u4e2a\u65b0\u7684\u5b9e\u4f8b\u91cd\u8bd5\uff08\u4e5f\u53ef\u80fd\u9009\u62e9\u5230\u540c\u4e00\u4e2a\u5b9e\u4f8b\uff09\u3002 </p> <p>\u6ce8\u610f\u4e8b\u9879:</p> <ul> <li>\u5e76\u4e0d\u662f\u6240\u6709\u7684\u5f02\u5e38\u90fd\u4f1a\u89e6\u53d1\u91cd\u8bd5\u3002\u7f3a\u7701\u7684\u60c5\u51b5\uff0c\u53ea\u6709\u7f51\u7edc\u5f02\u5e38\uff0c\u6216\u8005 502\uff0c503 \u9519\u8bef\u7801\u624d\u4f1a\u89e6\u53d1\u91cd\u8bd5\u3002 \u8be6\u7ec6\u53ef\u4ee5\u53c2\u8003 <code>ServiceCombRetryExtension</code> \u7684\u5b9a\u4e49\u3002</li> </ul>"},{"location":"references-handlers/governance.html#_5","title":"\u7ec4\u5408\u4f7f\u7528","text":"<p>\u4e00\u4e2a\u6bd4\u8f83\u597d\u7684\u5b9e\u8df5\u662f\u7ec4\u5408\u4f7f\u7528 <code>\u91cd\u8bd5</code> \u3001 <code>\u5ba2\u6237\u7aef\u7194\u65ad</code> \u548c <code>\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3</code>\u3002</p> <p>\u8fd9\u79cd\u7ec4\u5408\u53ef\u4ee5\u9632\u6b62\u5076\u7136\u7684\u5b9e\u4f8b\u9519\u8bef\u5bfc\u81f4\u7684\u5931\u8d25\uff0c\u4e5f\u53ef\u4ee5\u9632\u6b62\u5355\u4e2a\u5b9e\u4f8b\u5904\u7406\u80fd\u529b\u4e0b\u964d\uff08\u6bd4\u5982\u521a\u521a\u542f\u52a8\u7684\u5b9e\u4f8b\u3001\u6545\u969c\u7684\u5b9e\u4f8b\u7b49\u573a\u666f\uff09\u5bfc\u81f4\u7684\u6574\u4f53\u6545\u969c\u3002</p> <pre><code>servicecomb:\n  retry:\n    allOperation: |\n      maxAttempts: 2\n      retryOnSame: 0\n  instanceIsolation:\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n  instanceBulkhead:\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre>"},{"location":"references-handlers/intruduction.html","title":"\u5904\u7406\u94fe\u4ecb\u7ecd","text":"<p>\u5904\u7406\u94fe\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5305\u62ec\u7f16\u89e3\u7801\u3001\u670d\u52a1\u6cbb\u7406\u3001\u7f51\u7edc\u53d1\u9001\u7b49\u3002Java Chassis\u7684\u6838\u5fc3\u5904\u7406\u6d41\u7a0b\u5206\u4e3a <code>Provider\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Consumer\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Edge\u5904\u7406\u6d41\u7a0b</code>\u3002</p> <ul> <li>Provider\u5904\u7406\u6d41\u7a0b</li> </ul> <p></p> <ul> <li>Consumer\u5904\u7406\u6d41\u7a0b</li> </ul> <p></p> <ul> <li>Edge\u5904\u7406\u6d41\u7a0b</li> </ul> <p></p> <p>Java Chassis\u63d0\u4f9b\u4e86 <code>ProviderFilter</code>\u3001<code>ConsumerFilter</code>\u3001<code>EdgeFilter</code> \u5206\u522b\u5bf9\u5e94\u4e0a\u8ff0\u5904\u7406\u6d41\u7a0b\u3002</p>"},{"location":"references-handlers/intruduction.html#_2","title":"\u5f00\u53d1\u65b0\u7684\u5904\u7406\u94fe","text":"<p><code>ProviderFilter</code>\u3001<code>ConsumerFilter</code>\u3001<code>EdgeFilter</code>\u7684\u5f00\u53d1\u6d41\u7a0b\u4e00\u6837\u3002\u5f00\u53d1\u8005\u53ea\u9700\u8981\u5b9e\u73b0\u4e0a\u8ff0\u63a5\u53e3\uff0c\u5e76\u5c06\u5176\u58f0\u660e\u4e3a Bean \u5373\u53ef\u3002</p> <ul> <li>\u5b9e\u73b0Filter\u63a5\u53e3</li> </ul> <pre><code>public class EmptyFilter extends AbstractFilter implements ProviderFilter, ConsumerFilter, EdgeFilter {\n  @Override\n  public String getName() {\n    return \"empty\";\n  }\n\n  @Override\n  public CompletableFuture&lt;Response&gt; onFilter(Invocation invocation, FilterNode nextNode) {\n    return CompletableFuture.completedFuture(Response.ok(null));\n  }\n\n  @Override\n  public int getOrder() {\n    return 0;\n  }\n}\n</code></pre> <ul> <li>\u58f0\u660e\u4e3a Bean</li> </ul> <pre><code>@Configuration\npublic class EmptyFilterConfiguration {\n  @Bean\n  public EmptyFilter emptyFilter() {\n    return new EmptyFilter();\n  }\n}\n</code></pre> <p>\u4e0a\u8ff0\u5f00\u53d1\u5b8c\u6210\u7684\u5904\u7406\u94fe\u4f1a\u5728 <code>Provider\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Consumer\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Edge\u5904\u7406\u6d41\u7a0b</code> \u6267\u884c\u3002 \u5b83\u7684 order \u662f 0\u3002 \u7531\u4e8e\u5b83\u7ee7\u627f\u4e86 <code>AbstractFilter</code>\uff0c \u8fd8\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d \u5b9a\u4e49\u662f\u5426\u542f\u7528\uff0c\u6216\u8005\u5b9a\u4e49\u5176\u4f18\u5148\u7ea7\u3002</p> <pre><code>servicecomb:\n  filter:\n    # Filter\u540d\u79f0\n    empty:\n      # \u5e94\u7528\u540d + \u670d\u52a1\u540d\n      ${application}.${name}.order: 10\n      ${application}.${name}.enabled: false\n</code></pre>"},{"location":"references-handlers/loadbalance.html","title":"\u8d1f\u8f7d\u5747\u8861","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u8d1f\u8f7d\u5747\u8861\u80fd\u529b, \u5728\u5b9e\u4f8b\u6570\u975e\u5e38\u591a\u7684\u573a\u666f\uff0c\u4e5f\u80fd\u63d0\u4f9b\u5f88\u597d\u7684\u6027\u80fd\u3002\u8d1f\u8f7d\u5747\u8861\u7684\u6838\u5fc3\u6570\u636e\u7ed3\u6784\u662f <code>DiscoveryTree</code>\uff0c<code>DiscoveryTree</code> \u5305\u542b\u4e86\u4e00\u7cfb\u5217 <code>DiscoveryFilter</code>\u3002  \u4e0b\u56fe\u5c55\u793a\u4e86\u8d1f\u8f7d\u5747\u8861\u7684\u5904\u7406\u8fc7\u7a0b\uff1a</p> <p></p>"},{"location":"references-handlers/loadbalance.html#_2","title":"\u6309\u7167\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u8fdb\u884c\u8def\u7531\u8f6c\u53d1","text":"<p>\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u8005\u90fd\u53ef\u4ee5\u901a\u8fc7\u5728microservice.yaml\u4e2d\u58f0\u660e\u81ea\u5df1\u7684\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\uff1a</p> <pre><code>servicecomb:\n  datacenter:\n    name: mydatacenter\n    region: my-Region\n    availableZone: my-Zone\n</code></pre> <p>\u6d88\u8d39\u8005\u901a\u8fc7\u6bd4\u8f83\u81ea\u5df1\u7684\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u548c\u63d0\u4f9b\u8005\u7684\u4fe1\u606f\uff0c\u4f18\u5148\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230region\u548cavailableZone\u90fd\u76f8\u540c\u7684\u5b9e\u4f8b\uff1b\u5982\u679c\u4e0d\u5b58\u5728\uff0c\u5219\u8f6c\u53d1\u5230region\u76f8\u540c\u7684\u5b9e\u4f8b\uff1b\u5982\u679c\u4ecd\u7136\u4e0d\u5b58\u5728\uff0c\u5219\u8f6c\u53d1\u5230\u5176\u4ed6\u5b9e\u4f8b\u3002</p> <p>\u8fd9\u91cc\u7684region\u548cavailableZone\u662f\u4e00\u822c\u6027\u7684\u6982\u5ff5\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u884c\u786e\u5b9a\u5176\u4e1a\u52a1\u542b\u4e49\u4ee5\u4fbf\u5e94\u7528\u4e8e\u8d44\u6e90\u9694\u79bb\u7684\u573a\u666f\u4e2d\u3002\u53ef\u4ee5\u53c2\u89c1\u5fae\u670d\u52a1\u5b9e\u4f8b\u4e4b\u95f4\u7684\u903b\u8f91\u9694\u79bb\u5173\u7cfb\uff0c\u4e86\u89e3\u66f4\u591a\u5176\u4ed6\u5b9e\u4f8b\u53d1\u73b0\u76f8\u5173\u7684\u9694\u79bb\u673a\u5236\u3002</p> <p>\u8be5\u89c4\u5219\u9ed8\u8ba4\u542f\u7528\uff0c\u5982\u679c\u4e0d\u9700\u8981\u4f7f\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>servicecomb.loadbalance.filter.zoneaware.enabled</code> \u8fdb\u884c\u5173\u95ed\u3002\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u9694\u79bb\u529f\u80fd\u5728 <code>ZoneAwareDiscoveryFilter</code> \u5b9e\u73b0\u3002</p>"},{"location":"references-handlers/loadbalance.html#_3","title":"\u6839\u636e\u5b9e\u4f8b\u5c5e\u6027\u8fdb\u884c\u8def\u7531\u8f6c\u53d1","text":"<p>\u5fae\u670d\u52a1\u53ef\u4ee5\u6307\u5b9a\u5b9e\u4f8b\u7684\u5c5e\u6027\u3002\u5b9e\u4f8b\u5c5e\u6027\u53ef\u4ee5\u5728microservice.yaml\u4e2d\u6307\u5b9a\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u7684API\u8fdb\u884c\u4fee\u6539\u3002</p> <pre><code>instance_description:\n  properties:\n    tags:\n      tag_key: tag_value\n</code></pre> <p>\u6d88\u8d39\u8005\u53ef\u4ee5\u6307\u5b9a\u6d88\u8d39\u5177\u5907\u67d0\u4e9b\u5c5e\u6027\u7684\u5b9e\u4f8b\uff0c\u4e0d\u8bbf\u95ee\u5176\u4ed6\u5b9e\u4f8b</p> <pre><code>servicecomb:\n  loadbalance:\n    provider:   # \u8fd9\u91cc\u8868\u793a\u914d\u7f6e\u5bf9\u540d\u4e3a\"provider\"\u7684\u670d\u52a1\u751f\u6548\uff0c\u5982\u679c\u662f\u8de8\u5e94\u7528\u8c03\u7528\uff0c\u5219\u8fd8\u9700\u8981\u52a0\u4e0aAppID\uff0c\u5982\"AppIDOfProvider:provider\"\n      transactionControl:\n        options:\n          tags:\n            tag_key: expected_tag_value\n</code></pre> <p>\u4e0a\u9762\u7684\u914d\u7f6e\u8868\u793a\u53ea\u8bbf\u95eemyservice\u6240\u6709\u5b9e\u4f8b\u4e2d<code>tag_key</code>\u5c5e\u6027\u4e3a<code>expected_tag_value</code>\u7684\u5b9e\u4f8b\u3002</p> <p>\u8be5\u89c4\u5219\u9700\u8981\u7ed9\u6bcf\u4e2a\u670d\u52a1\u5355\u72ec\u914d\u7f6e\uff0c\u672a\u914d\u7f6e\u8868\u793a\u4e0d\u542f\u7528\u8be5\u89c4\u5219\uff0c\u4e0d\u652f\u6301\u5bf9\u4e8e\u6240\u6709\u670d\u52a1\u7684\u5168\u5c40\u914d\u7f6e\u3002</p> <p>\u8be5\u89c4\u5219\u9ed8\u8ba4\u542f\u7528\uff0c\u5982\u679c\u4e0d\u9700\u8981\u4f7f\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7<code>servicecomb.loadbalance.filter.instanceProperty.enabled</code>\u8fdb\u884c\u5173\u95ed\u3002\u6839\u636e\u5b9e\u4f8b\u5c5e\u6027\u8fdb\u884c\u8def\u7531\u8f6c\u53d1\u529f\u80fd\u5728<code>InstancePropertyDiscoveryFilter</code>\u5b9e\u73b0\u3002</p>"},{"location":"references-handlers/loadbalance.html#_4","title":"\u6839\u636e\u5b9e\u4f8b\u5c5e\u6027\u503c\u7684\u5c42\u7ea7\u8fdb\u884c\u8def\u7531\u8f6c\u53d1","text":"<p>\u5b9e\u4f8b\u5c5e\u6027\u4f18\u5148\u7ea7\u5339\u914d\u53ef\u4ee5\u770b\u505a\u662f\u9488\u5bf9\u5b9e\u4f8b\u5c5e\u6027\u5339\u914d\u7684\u4e00\u79cd\u903b\u8f91\u6269\u5c55\u3002</p> <p>\u5fae\u670d\u52a1\u7684\u5b9e\u4f8b\u5c5e\u6027\u53ef\u4ee5\u5b9a\u4e49\u4e3a\u5177\u5907\u4f18\u5148\u7ea7\u7684\u683c\u5f0f\uff0c\u901a\u8fc7<code>.</code>\u7b26\u53f7\u8fdb\u884c\u5206\u5272\u3002</p> <pre><code>instance_description:\n  properties:\n    KEY: a.b.c\n</code></pre> <p>\u6d88\u8d39\u8005\u9700\u8981\u6307\u5b9a\u7528\u4e8e\u4f18\u5148\u7ea7\u5339\u914d\u7684\u5b9e\u4f8b\u5c5e\u6027key\uff0c\u9ed8\u8ba4\u7684key\u4e3a<code>environment</code>\u3002</p> <pre><code>servicecomb:\n  loadbalance:\n    filter:\n      priorityInstanceProperty:\n        key: KEY\n</code></pre> <p>\u5047\u8bbe\u67d0\u4e2aconsumer\u7684\u5c5e\u6027\u503c\u4e3a<code>a.b.c</code>\uff0c\u90a3\u4e48\u5c06\u4f1a\u6309\u7167<code>a.b.c</code>&gt;<code>a.b</code>&gt;<code>a</code>&gt;<code>[\u7a7a]</code> \u8fd9\u6837\u7684\u4f18\u5148\u7ea7\u987a\u5e8f\u5339\u914dprovider\u7684\u5b9e\u4f8b\uff0c\u4e00\u65e6\u5339\u914d\u5230\u5373\u7ec8\u6b62\uff0c\u4e0b\u9762\u7684\u8868\u683c\u7ed9\u51fa\u4e86\u4e0d\u540c\u60c5\u51b5\u7684\u5177\u4f53\u793a\u4f8b</p> consumer match priority of provider a.b.c a.b.c&gt;a.b&gt;a&gt;[\u7a7a] a.b a.b&gt;a&gt;[\u7a7a] a a&gt;[\u7a7a] [\u7a7a] [\u7a7a] <p>\u6ce8\u610f[\u7a7a]\u662f\u4e00\u79cd\u7279\u6b8a\u60c5\u51b5\uff0c\u5373\u672a\u8bbe\u7f6e\u8be5\u5c5e\u6027\u7684\u5b9e\u4f8b</p> <p>\u8be5\u89c4\u5219\u9ed8\u8ba4\u5173\u95ed\uff0c\u5982\u679c\u9700\u8981\u5f00\u542f\uff0c\u53ef\u4ee5\u901a\u8fc7<code>servicecomb.loadbalance.filter.priorityInstanceProperty.enabled</code>\u914d\u7f6e\u6253\u5f00\u3002\u8be5\u529f\u80fd\u5728<code>PriorityInstancePropertyDiscoveryFilter</code>\u4e2d\u5b9e\u73b0\u3002</p>"},{"location":"references-handlers/loadbalance.html#_5","title":"\u914d\u7f6e\u8def\u7531\u89c4\u5219","text":"<p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u9879\u6307\u5b9a\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u3002</p> <pre><code>servicecomb:\n  loadbalance:\n    strategy:\n      name: RoundRobin # Support RoundRobin,Random,WeightedResponse,SessionStickiness\n</code></pre> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u5fae\u670d\u52a1\u914d\u7f6e\u4e0d\u4e00\u6837\u7684\u7b56\u7565\uff0c\u53ea\u9700\u8981\u7ed9\u914d\u7f6e\u9879\u589e\u52a0\u670d\u52a1\u540d\uff0c\u4f8b\u5982\uff1a</p> <pre><code>servicecomb:\n  loadbalance:\n    myservice:\n      strategy:\n        name: RoundRobin # Support RoundRobin,Random,WeightedResponse,SessionStickiness\n</code></pre> <p>\u6bcf\u79cd\u7b56\u7565\u8fd8\u6709\u4e00\u4e9b\u4e13\u5c5e\u914d\u7f6e\u9879\uff0c\u4e5f\u652f\u6301\u9488\u5bf9\u4e0d\u540c\u5fae\u670d\u52a1\u8fdb\u884c\u914d\u7f6e\u3002</p> <ul> <li>SessionStickiness</li> </ul> <pre><code>servicecomb:\n  loadbalance:\n    SessionStickinessRule:\n      sessionTimeoutInSeconds: 30 # \u5ba2\u6237\u7aef\u95f2\u7f6e\u65f6\u95f4\uff0c\u8d85\u8fc7\u9650\u5236\u540e\u9009\u62e9\u540e\u9762\u7684\u670d\u52a1\u5668\n      successiveFailedTimes: 5 # \u5ba2\u6237\u7aef\u5931\u8d25\u6b21\u6570\uff0c\u8d85\u8fc7\u540e\u4f1a\u5207\u6362\u670d\u52a1\u5668\n</code></pre>"},{"location":"references-handlers/loadbalance.html#_6","title":"\u81ea\u5b9a\u4e49","text":"<p>\u8d1f\u8f7d\u5747\u8861\u6a21\u5757\u63d0\u4f9b\u7684\u529f\u80fd\u5df2\u7ecf\u975e\u5e38\u5f3a\u5927\uff0c\u80fd\u591f\u901a\u8fc7\u914d\u7f6e\u652f\u6301\u5927\u90e8\u5206\u5e94\u7528\u573a\u666f\u3002\u540c\u65f6\u5b83\u4e5f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6269\u5c55\u80fd\u529b\uff0c\u5305\u62ecDiscoveryFilter\u3001ServerListFilterExt\u3001ExtensionsFactory\uff08\u6269\u5c55IRule\uff0cRetryHandler\u7b49\uff09\u3002loadbalance\u6a21\u5757\u672c\u8eab\u5305\u542b\u4e86\u6bcf\u4e00\u4e2a\u6269\u5c55\u7684\u5b9e\u73b0\uff0c\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u6269\u5c55\uff0c\u53ea\u7b80\u5355\u63cf\u8ff0\u6b65\u9aa4\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u81ea\u884c\u4e0b\u8f7dServiceComb\u6e90\u7801\u8fdb\u884c\u53c2\u8003\u3002</p> <ul> <li>DiscoveryFilter</li> <li>\u5b9e\u73b0DiscoveryFilter\u63a5\u53e3</li> <li> <p>\u914d\u7f6eSPI\uff1a\u589e\u52a0META-INF/services/org.apache.servicecomb.serviceregistry.discovery.DiscoveryFilter\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5168\u540d</p> </li> <li> <p>ServerListFilterExt</p> </li> <li>\u5b9e\u73b0ServerListFilterExt\u63a5\u53e3</li> <li>\u914d\u7f6eSPI\uff1a\u589e\u52a0META-INF/services/org.apache.servicecomb.loadbalance.ServerListFilterExt\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5168\u540d</li> <li> <p>\u6ce8\u610f\uff1a\u8fd9\u4e2a\u5f00\u53d1\u8bf4\u660e\u9002\u7528\u4e8e1.0.0\u53ca\u5176\u4ee5\u540e\u7684\u7248\u672c\uff0c\u65e9\u671f\u7684\u7248\u672c\u5f00\u53d1\u65b9\u5f0f\u4e0d\u540c\u3002</p> </li> <li> <p>ExtensionsFactory</p> </li> <li>\u5b9e\u73b0ExtensionsFactory\uff0c\u5e76\u4f7f\u7528@Component\u5c06\u5176\u53d1\u5e03\u4e3a\u4e00\u4e2aspring bean\u3002</li> </ul>"},{"location":"references-handlers/publickey.html","title":"\u516c\u94a5\u8ba4\u8bc1","text":""},{"location":"references-handlers/publickey.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u516c\u94a5\u8ba4\u8bc1\u662fServiceComb\u63d0\u4f9b\u7684\u4e00\u79cd\u7b80\u5355\u9ad8\u6548\u7684\u5fae\u670d\u52a1\u4e4b\u95f4\u8ba4\u8bc1\u673a\u5236\uff0c\u5b83\u7684\u5b89\u5168\u6027\u5efa\u7acb\u5728\u5fae\u670d\u52a1\u4e0e\u670d\u52a1\u4e2d\u5fc3\u4e4b\u95f4\u7684\u4ea4\u4e92\u662f\u53ef\u4fe1\u7684\u57fa\u7840\u4e4b\u4e0a\uff0c\u5373\u5fae\u670d\u52a1\u548c\u670d\u52a1\u4e2d\u5fc3\u4e4b\u95f4\u5fc5\u987b\u5148\u542f\u7528\u8ba4\u8bc1\u673a\u5236\u3002\u5b83\u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <ol> <li>\u5fae\u670d\u52a1\u542f\u52a8\u7684\u65f6\u5019\uff0c\u751f\u6210\u79d8\u94a5\u5bf9\uff0c\u5e76\u5c06\u516c\u94a5\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</li> <li>\u6d88\u8d39\u8005\u8bbf\u95ee\u63d0\u4f9b\u8005\u4e4b\u524d\uff0c\u4f7f\u7528\u81ea\u5df1\u7684\u79c1\u94a5\u5bf9\u6d88\u606f\u8fdb\u884c\u7b7e\u540d\u3002</li> <li>\u63d0\u4f9b\u8005\u4ece\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u6d88\u8d39\u8005\u516c\u94a5\uff0c\u5bf9\u7b7e\u540d\u7684\u6d88\u606f\u8fdb\u884c\u6821\u9a8c\u3002</li> </ol>"},{"location":"references-handlers/publickey.html#_3","title":"\u914d\u7f6e\u9ed1\u767d\u540d\u5355","text":"<p>\u57fa\u4e8e\u516c\u94a5\u8ba4\u8bc1\u673a\u5236\uff0cServiceComb\u63d0\u4f9b\u4e86\u9ed1\u767d\u540d\u5355\u529f\u80fd\u3002\u901a\u8fc7\u9ed1\u767d\u540d\u5355\uff0c\u53ef\u4ee5\u63a7\u5236\u5fae\u670d\u52a1\u5141\u8bb8\u5176\u4ed6\u54ea\u4e9b\u670d\u52a1\u8bbf\u95ee\u3002\u76ee\u524d\u652f\u6301\u901a\u8fc7\u914d\u7f6e\u670d\u52a1\u5c5e\u6027\u6765\u63a7\u5236\uff0c\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  publicKey:\n    accessControl:\n      black:\n        list01:\n          category: property ## property, fixed value\n          propertyName: serviceName ## property name\n# property value match expression. \n# only supports prefix match and postfix match and exactly match. \n# e.g. hacker*, *hacker, hacker\n          rule: hacker \n      white:\n        list02:\n          category: property\n          propertyName: serviceName\n          rule: cust*\n</code></pre> <p>\u4ee5\u4e0a\u89c4\u5219\u914d\u7f6e\u4e86\u9ed1\u540d\u5355\uff0c\u4e0d\u5141\u8bb8\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahacker\u7684\u8bbf\u95ee\uff1b\u767d\u540d\u5355\uff0c\u5141\u8bb8\u5fae\u670d\u52a1\u540d\u79f0\u4e3acust\u524d\u7f00\u7684\u670d\u52a1\u8bbf\u95ee\u3002</p> <p>ServiceComb\u63d0\u4f9b\u4e86trust-sample\u6765\u6f14\u793a\u9ed1\u767d\u540d\u5355\u529f\u80fd\u3002</p>"},{"location":"references-handlers/ratelimit.html","title":"\u9650\u6d41","text":"<p>java-chassis \u652f\u6301 Provider \u9650\u6d41\u548c Consumer \u9650\u6d41\u3002 Provider \u9650\u6d41\u63a7\u5236\u8bbf\u95ee\u672c\u5fae\u670d\u52a1\u7684\u6d41\u91cf\uff0c Consumer \u9650\u6d41\u63a7\u5236\u53d1\u5f80\u5176\u4ed6\u5fae\u670d\u52a1\u7684\u6d41\u91cf\u3002</p> <p>\u6ce8\u610f\u4e8b\u9879\uff1a</p> <ol> <li>\u9650\u6d41\u7b56\u7565\u7684\u63a7\u5236\u5e76\u4e0d\u662f\u7edd\u5bf9\u7cbe\u786e\u7684\uff0c\u53ef\u80fd\u4f1a\u6709\u5c11\u91cf\u8bef\u5dee\u3002</li> <li>\u6d41\u91cf\u63a7\u5236\u662f\u4e1a\u52a1\u5c42\u9762\u7684\u529f\u80fd\uff0c\u4e0d\u662f\u5b89\u5168\u610f\u4e49\u4e0a\u7684\u6d41\u91cf\u63a7\u5236\uff0c\u5982\u9700\u9632\u6b62DDoS\u653b\u51fb\uff0c\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u7684\u4e00\u7cfb\u5217\u63aa\u65bd\u3002</li> <li>\u6d41\u91cf\u63a7\u5236\u662f\u5fae\u670d\u52a1\u7ea7\u7684\uff0c\u4e0d\u662f\u5b9e\u4f8b\u7ea7\u7684\u3002\u4f8b\u5982\u4e00\u4e2aconsumer\u670d\u52a1\u6709\u4e09\u4e2a\u5b9e\u4f8b\uff0c\u5f53\u5bf9\u5b83\u4eec\u4f9d\u8d56\u7684provider\u5b9e\u4f8b\u914d\u7f6e\u9650\u6d41\u7b56\u7565\u540e\uff0c   provider\u4e0d\u4f1a\u533a\u5206consumer\u7684\u8bf7\u6c42\u5177\u4f53\u662f\u7531\u54ea\u4e2a\u5b9e\u4f8b\u53d1\u51fa\u7684\uff0c\u800c\u662f\u6c47\u603b\u6210\u5fae\u670d\u52a1\u7ea7\u7684\u7edf\u8ba1\u6570\u636e\u8fdb\u884c\u9650\u6d41\u5224\u65ad\u3002</li> <li>\u672c\u6a21\u5757\u4ecb\u7ecd\u7684\u9650\u6d41\u673a\u5236\u662f\u57fa\u4e8e <code>operation</code> \u7684\uff0c \u4f7f\u7528\u8d77\u6765\u6bd4\u8f83\u7b80\u5355\u3002\u540e\u7eed\u63a8\u8350\u4f7f\u7528\u6d41\u91cf\u7279\u5f81\u6cbb\u7406 \u6765\u9650\u5236\u6d41\u91cf\u3002 </li> </ol>"},{"location":"references-handlers/ratelimit.html#_2","title":"\u6d41\u63a7\u7b97\u6cd5\u8bf4\u660e","text":"<ul> <li>\u7b97\u6cd5\u8bf4\u660e\uff1a</li> <li>\u56fa\u5b9a\u7a97\u53e3\u7b97\u6cd5\uff1a\u9ed8\u8ba4\u7a97\u53e3\u5927\u5c0f\u4e3a1s\uff0c\u6700\u5927\u53ef\u80fd\u4ea7\u751f2\u500d\u4e8e\u6307\u5b9a\u6d41\u91cf\u8bbe\u7f6e\u5927\u5c0f\u7684\u8bef\u5dee\u3002</li> <li>\u4ee4\u724c\u6876\u7b97\u6cd5\uff1a\u4ee4\u724c\u6876\u7684\u4e3b\u8981\u601d\u60f3\u662f\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u6876\uff0c\u4ee5\u6052\u5b9a\u901f\u7387\u5411\u91cc\u9762\u52a0\u5165\u4ee4\u724c\uff0c\u6bcf\u6b21\u65b0     \u8bf7\u6c42\u5230\u6765\u65f6\u4ece\u91cc\u9762\u53d6\u4e00\u4e2a\u4ee4\u724c\u51fa\u6765\uff0c\u5982\u679c\u6ca1\u6709\u4ee4\u724c\u53ef\u53d6\uff0c\u5219\u8bf7\u6c42\u76f4\u63a5\u5931\u8d25(\u88ab\u9650\u6d41)\u3002</li> <li>\u6f0f\u6876\u7b97\u6cd5\uff1a\u6f0f\u6876\u7b97\u6cd5\u7684\u4e3b\u8981\u601d\u60f3\u662f\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u6876\uff0c\u8bf7\u6c42\u4e0d\u65ad\u52a0\u5165\u6876\u4e2d\u540c\u65f6\u4ee5\u56fa\u5b9a\u5927\u5c0f\u4ece\u6876     \u5185\u90e8\u6d41\u51fa\uff0c\u5982\u679c\u8fbe\u5230\u6876\u7684\u6781\u9650\u5927\u5c0f\uff0c\u5219\u8bf7\u6c42\u6ea2\u51fa(\u5931\u8d25)\u3002\u5728\u5185\u90e8\u5b9e\u73b0\u4e0a\u6f0f\u6876\u7b97\u6cd5\u4e0e\u4ee4\u724c\u6876\u7b97\u6cd5\u7684\u5b9e\u73b0     \u539f\u7406\u76f8\u540c\uff0c\u6839\u636e\u8bbe\u7f6e\u7684\u6876\u5927\u5c0f\u4e0d\u540c\uff0c\u80fd\u627f\u8f7d\u7684\u7a81\u53d1\u6d41\u91cf\u4e0d\u540c\u3002</li> <li>\u7528\u6237\u81ea\u5b9a\u4e49\u6d41\u63a7\u7b97\u6cd5\uff1a\u53ef\u4ee5\u53c2\u8003 \u793a\u4f8b\u5b9e\u73b0 ,\u4ee5\u53ca\u8be5\u5b9e\u73b0\u4e0b\u7684\u914d\u7f6e\u65b9\u6cd5\u3002</li> </ul>"},{"location":"references-handlers/ratelimit.html#provider","title":"Provider\u7aef\u4f7f\u7528\u9650\u6d41","text":"<p>\u7528\u6237\u5728provider\u7aef\u4f7f\u7528\u9650\u6d41\u7b56\u7565\uff0c\u53ef\u4ee5\u9650\u5236\u6307\u5b9a\u5fae\u670d\u52a1\u5411\u5176\u53d1\u9001\u8bf7\u6c42\u7684\u9891\u7387\uff0c\u8fbe\u5230\u9650\u5236\u6bcf\u79d2\u949f\u6700\u5927\u8bf7\u6c42\u6570\u91cf\u7684\u6548\u679c\u3002</p>"},{"location":"references-handlers/ratelimit.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u9650\u6d41\u7b56\u7565\u914d\u7f6e\u5728microservice.yaml\u6587\u4ef6\u4e2d\uff0c\u76f8\u5173\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.flowcontrol.Provider.qps.enabled true true/false \u5426 \u662f\u5426\u542f\u7528Provider\u6d41\u63a7 - servicecomb.flowcontrol.strategy FixedWindow FixedWindow/LeakyBucket/TokenBucket/\u81ea\u5b9a\u4e49 \u5426 \u6d41\u63a7\u7b56\u7565 - servicecomb.flowcontrol.Provider.qps.limit.[ServiceName].[Schema].[operation] 2147483647\uff08max int\uff09 (0,2147483647]\uff0c\u6574\u578b \u5426 \u6bcf\u79d2\u949f\u5141\u8bb8\u7684\u8bf7\u6c42\u6570 \u652f\u6301microservice/schema/operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e\uff0c\u540e\u8005\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u524d\u8005 servicecomb.flowcontrol.Provider.qps.global.limit 2147483647\uff08max int\uff09 (0,2147483647]\uff0c\u6574\u578b \u5426 provider\u63a5\u53d7\u8bf7\u6c42\u6d41\u91cf\u7684\u5168\u5c40\u914d\u7f6e \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 servicecomb.flowcontrol.Provider.qps.bucket.[ServiceName].[Schema].[operation] \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0b\u6876\u7684\u5927\u5c0f \u652f\u6301microservice/schema/operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e\uff0c\u540e\u8005\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u524d\u8005 servicecomb.flowcontrol.Provider.qps.global.bucket \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0bprovider\u6876\u7684\u5927\u5c0f \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 <p>\u6ce8\u610f\uff1a strategy\u662f\u5168\u5c40\u7684\u7b56\u7565\u9009\u62e9\uff0c\u4e00\u65e6\u9009\u62e9\u6240\u6709\u6d41\u63a7\u63a5\u53e3\u90fd\u4f1a\u5e94\u7528\u7edf\u4e00\u7684\u6d41\u63a7\u7b56\u7565\uff0c\u4e14\u4e0d\u652f\u6301\u52a8\u6001\u914d\u7f6e\u53d8\u66f4\uff0c\u5982\u679c\u53d8\u66f4\u6d41\u63a7\u7b56\u7565\u9700\u8981\u91cd\u542f\u670d\u52a1\u3002</p> <p>\u6ce8\u610f\uff1a provider\u7aef\u9650\u6d41\u7b56\u7565\u914d\u7f6e\u4e2d\u7684<code>ServiceName</code>\u6307\u7684\u662f\u8c03\u7528\u8be5provider\u7684consumer\uff0c\u800c<code>schema</code>\u3001<code>operation</code>\u6307\u7684\u662fprovider\u81ea\u8eab\u7684\u3002\u5373provider\u7aef\u9650\u6d41\u914d\u7f6e\u7684\u542b\u4e49\u662f\uff0c\u9650\u5236\u6307\u5b9aconsumer\u8c03\u7528\u672cprovider\u7684\u67d0\u4e2aschema\u3001operation\u7684\u6d41\u91cf\u3002</p> <p><code>ANY</code> \u662f\u4e00\u4e2a\u7279\u6b8a\u7684 <code>ServiceName</code>\uff0c \u8868\u793a\u4e0d\u533a\u5206\u6765\u6e90\u5fae\u670d\u52a1\uff0c \u5bf9\u6240\u6709\u5fae\u670d\u52a1\u4f7f\u7528\u540c\u6837\u7684\u7b56\u7565\u3002 \u6bd4\u5982  <code>servicecomb.flowcontrol.Provider.qps.limit.ANY.mySchema.myOperation=200</code> \u8868\u793a\u5bf9 <code>mySchema.myOperation</code> \u5355\u72ec\u9650\u5236 200 \u7684\u6d41\u91cf\u3002</p>"},{"location":"references-handlers/ratelimit.html#consumer","title":"Consumer\u7aef\u4f7f\u7528\u9650\u6d41","text":"<p>\u7528\u6237\u5728consumer\u7aef\u4f7f\u7528\u9650\u6d41\u7b56\u7565\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u7684\u9891\u7387\u3002</p>"},{"location":"references-handlers/ratelimit.html#_4","title":"\u914d\u7f6e\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.flowcontrol.Consumer.qps.enabled true Boolean \u5426 \u662f\u5426\u542f\u7528Consumer\u6d41\u63a7 - servicecomb.flowcontrol.strategy FixedWindow FixedWindow/LeakyBucket/TokenBucket/\u81ea\u5b9a\u4e49 \u5426 \u6d41\u63a7\u7b56\u7565 - servicecomb.flowcontrol.Consumer.qps.global.limit 2147483647\uff08max int\uff09 (0,2147483647]\uff0c\u6574\u578b \u5426 consumer\u53d1\u9001\u8bf7\u6c42\u6d41\u91cf\u7684\u5168\u5c40\u914d\u7f6e \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 servicecomb.flowcontrol.Consumer.qps.limit.[ServiceName].[Schema].[operation] 2147483647  (max int) (0,2147483647]\uff0c\u6574\u578b \u5426 \u6bcf\u79d2\u949f\u5141\u8bb8\u7684\u8bf7\u6c42\u6570 \u652f\u6301microservice\u3001schema\u3001operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.flowcontrol.Consumer.qps.global.bucket \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0bconsumer\u6876\u7684\u5927\u5c0f \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 servicecomb.flowcontrol.Consumer.qps.bucket.[ServiceName].[Schema].[operation] \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0b\u6876\u7684\u5927\u5c0f \u652f\u6301microservice/schema/operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e\uff0c\u540e\u8005\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u524d\u8005 <p>\u6ce8\u610f\uff1a strategy\u662f\u5168\u5c40\u7684\u7b56\u7565\u9009\u62e9\uff0c\u4e00\u65e6\u9009\u62e9\u6240\u6709\u6d41\u63a7\u63a5\u53e3\u90fd\u4f1a\u5e94\u7528\u7edf\u4e00\u7684\u6d41\u63a7\u7b56\u7565\uff0c\u4e14\u4e0d\u652f\u6301\u52a8\u6001\u914d\u7f6e\u53d8\u66f4\uff0c\u5982\u679c\u53d8\u66f4\u6d41\u63a7\u7b56\u7565\u9700\u8981\u91cd\u542f\u670d\u52a1\u3002</p> <p>\u6ce8\u610f\uff1a consumer\u7aef\u9650\u6d41\u7b56\u7565\u914d\u7f6e\u4e2d\u7684<code>ServiceName</code>\u3001<code>schema</code>\u3001<code>operation</code> \u6307\u7684\u662f\u8bf7\u6c42\u7684\u76ee\u6807\u670d\u52a1\u3002</p> <p><code>ANY</code> \u662f\u4e00\u4e2a\u7279\u6b8a\u7684 <code>ServiceName</code>\uff0c \u8868\u793a\u4e0d\u533a\u5206\u6765\u6e90\u5fae\u670d\u52a1\uff0c \u5bf9\u6240\u6709\u5fae\u670d\u52a1\u4f7f\u7528\u540c\u6837\u7684\u7b56\u7565\u3002 \u6bd4\u5982  <code>servicecomb.flowcontrol.Consumer.qps.limit.ANY.mySchema.myOperation=200</code> \u8868\u793a\u5bf9 <code>mySchema.myOperation</code> \u5355\u72ec\u9650\u5236 200 \u7684\u6d41\u91cf\u3002 \u5982\u679c\u4e0d\u540c\u5fae\u670d\u52a1\u5b58\u5728\u4e00\u6837\u7684 <code>schema</code>\u3001<code>operation</code>\uff0c \u5219\u5171\u4eab\u4e00\u4e2a\u6d41\u91cf\u63a7\u5236\u3002<code>ANY</code> \u5728 Consumer \u6d41\u63a7\u5f88\u5c11\u4f7f\u7528\u3002</p>"},{"location":"references-handlers/router.html","title":"\u7070\u5ea6\u53d1\u5e03","text":"<p>\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u53ef\u4ee5\u5b9e\u73b0\u7248\u672c\u7684\u96f6\u4e2d\u65ad\u5347\u7ea7\u3002\u5047\u8bbe\u5fae\u670d\u52a1A\u5f53\u524d\u662fv1\u7248\u672c\uff0cv1\u7248\u672c\u5b58\u5728\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u73b0\u5728\u9700\u8981\u5347\u7ea7\u5230\u5230v2\u7248\u672c\u3002\u9996\u5148\u914d\u7f6e\u4e00\u4e2a\u7070\u5ea6 \u53d1\u5e03\u89c4\u5219\uff0c\u5c06100%\u7684\u6d41\u91cf\u6307\u5411v1\u7248\u672c\uff1b\u914d\u7f6e\u89c4\u5219\u751f\u6548\u540e\uff0c\u90e8\u7f72v2\u7248\u672c\uff1bv2\u7248\u672c\u542f\u52a8\u5b8c\u6bd5\uff0c\u914d\u7f6e10%\u7684\u6d41\u91cf\u5230v2\u7248\u672c\uff1b\u5f53v2\u7248\u672c \u8fd0\u884c\u7a33\u5b9a\uff0c\u914d\u7f6e100%\u7684\u6d41\u91cf\u5230v2\u7248\u672c\uff1b\u505c\u6b62v1\u7248\u672c\u7684\u5b9e\u4f8b\u3002</p> <ul> <li>\u524d\u63d0\u6761\u4ef6\uff1a\u7070\u5ea6\u53d1\u5e03\u4f9d\u8d56\u8d1f\u8f7d\u5747\u8861\u7ba1\u7406\u6a21\u5757\uff0c \u53c2\u8003\u8d1f\u8f7d\u5747\u8861 \u3002 </li> </ul> \u914d\u7f6e\u9879\u540d \u63cf\u8ff0 servicecomb.routeRule.[targetService] \u76ee\u6807\u670d\u52a1\u7684\u8def\u7531\u7ba1\u7406\u89c4\u5219 servicecomb.router.type \u586b\u5199'router' <p>\u7070\u5ea6\u53d1\u5e03\u89c4\u5219\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb: \n  router:\n    type: router\n  routeRule:\n    business: |\n      - precedence: 2\n        match:\n          apiPath:\n            prefix: \"/business/v2\"\n        route:\n          - weight: 100\n            tags:\n              version: 2.0.0\n      - precedence: 1\n        match:\n          apiPath:\n            prefix: \"/business/v1/dec\"\n        route:\n          - weight: 50\n            tags:\n              version: 1.1.0\n          - weight: 50\n            tags:\n              version: 2.0.0\n\n</code></pre>"},{"location":"references-handlers/router.html#_2","title":"\u89c4\u5219\u8bf4\u660e","text":"<ul> <li>\u5339\u914d\u7279\u5b9a\u8bf7\u6c42\u7531match\u914d\u7f6e,  match\u7684\u914d\u7f6e\u903b\u8f91\u548c \u6d41\u91cf\u7279\u5f81\u6cbb\u7406 \u4e00\u81f4\u3002</li> <li>\u8f6c\u53d1\u6743\u91cd\u5b9a\u4e49\u5728routeRule.{targetServiceName}.route\u4e0b\uff0c\u7531weight\u914d\u7f6e\uff0cweight\u6570\u503c\u8868\u793a\u767e\u5206\u6570\uff0c\u9700\u8981\u6ee1\u8db3\u52a0\u548c\u7b49\u4e8e100\uff0c\u4e0d\u6ee1\u8db3100\u7684\u90e8\u5206\u4f1a\u7528\u6700\u65b0\u7248\u672c\u586b\u5145\u3002</li> <li>\u670d\u52a1\u5206\u7ec4\u5b9a\u4e49\u5728routeRule.{targetServiceName}.route\u4e0b\uff0c\u7531tags\u914d\u7f6e\uff0c\u914d\u7f6e\u5185\u5bb9\u6709version\u548capp\u3002</li> <li>\u4f18\u5148\u7ea7\u6570\u91cf\u8d8a\u5927\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002</li> </ul>"},{"location":"references-handlers/router.html#_3","title":"\u5339\u914d\u6d41\u7a0b","text":"<p>\u5bf9\u4e8e\u4e0a\u9762\u7684\u793a\u4f8b\u914d\u7f6e\uff0c\u6240\u6709\u8bbf\u95eeprovider\u670d\u52a1\u7684\u8bf7\u6c42\uff0c\u9996\u5148\u5c1d\u8bd5\u4e0e\u4f18\u5148\u7ea7\u4e3a2\u7684\u7b2c\u4e00\u4e2a\u7684match\u89c4\u5219\u8fdb\u884c\u5339\u914d header\uff1aheader\u5b58\u5728key\u4e3aregion\u7684\u6309\u7167\u6b63\u5219\u89c4\u5219\u533a\u5206\u5927\u5c0f\u5199\u5339\u914d\uff0c\u5b58\u5728key\u4e3atype\u7684\u8fdb\u884c\u5b57\u7b26\u4e32\u7cbe\u51c6\u5339\u914d\u3002\u82e5\u5339\u914d match\u6210\u529f\u5219\u6309\u7167route\u7684\u914d\u7f6e\u5206\u914d100%\u7684\u6d41\u91cf\u5230version\u548ctags\u5bf9\u5e94\u7684\u5b9e\u4f8b\u3002\u82e5\u5339\u914dmatch\u5931\u8d25\u5219\u8fdb\u5165\u4e0b\u4e2a\u4f18\u5148\u7ea7\u4e3a1\u7684\u89c4\u5219\u3002\u4e0d\u540c\u89c4\u5219\u4f18\u5148\u7ea7\u4e0d\u80fd\u76f8\u7b49\u3002</p>"},{"location":"references-handlers/router.html#_4","title":"\u5f02\u5e38\u60c5\u51b5\u7684\u5904\u7406","text":"<p>\u5982\u679c\u56e0\u4e3a\u89c4\u5219\u914d\u7f6e\u9519\u8bef\uff0c\u6216\u8005\u6ca1\u6709match\u5230\u4efb\u4f55\u4e00\u6761\u89c4\u5219\uff0c\u6d41\u91cf\u4f1a\u76f4\u63a5\u8df3\u8fc7\u7070\u5ea6\u89c4\u5219\uff0c\u76f8\u5f53\u4e8e\u6ca1\u6709\u7070\u5ea6\u53d1\u5e03\u914d\u7f6e\u3002</p> <p>\u5982\u679c\u5df2\u7ecf\u5339\u914d\u4e86match\uff0c\u56e0\u4e3a\u5bf9\u5e94\u7684version\u6216\u8005tags\u627e\u4e0d\u5230\u5b9e\u4f8b\uff0c\u5219\u5269\u4f59\u6d41\u91cf\u81ea\u52a8\u8f6c\u53d1\u5230\u76ee\u524d\u7684\u6700\u65b0\u7248\u672c\u3002</p>"},{"location":"registry/distributed.html","title":"\u8f7b\u91cf\u5316\u914d\u7f6e\u4e2d\u5fc3 zero-config","text":"<p>zero-config\u662fJava Chassis\u63d0\u4f9b\u7684\u8f7b\u91cf\u5316\u670d\u52a1\u4e2d\u5fc3\uff0c\u4ee5\u652f\u6301\u5728\u5c0f\u89c4\u6a21\u7684\u5e94\u7528\u573a\u666f\u4e0b\uff0c\u4e0d\u5fc5\u4e13\u95e8\u90e8\u7f72\u72ec\u7acb\u7684\u670d\u52a1\u4e2d\u5fc3\u3002</p> <p>zero-config\u652f\u6301\u591a\u79cd\u5de5\u4f5c\u6a21\u5f0f\uff1a</p> <ul> <li> <p>local   \u5355\u673a\u6a21\u5f0f\uff0c\u6ca1\u6709\u5b9e\u4f8b\u52a8\u6001\u53d1\u73b0\u80fd\u529b\uff0c\u6240\u6709\u7684\u670d\u52a1\u8c03\u7528\uff0c\u90fd\u4f7f\u7528\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u673a\u5236\u5904\u7406\u3002</p> </li> <li> <p>multicast   \u4f7f\u7528UDP\u591a\u64ad\u53d1\u9001\u5fae\u670d\u52a1\u6ce8\u518c\u4fe1\u606f\uff0c\u9002\u7528\u4e8e\u6240\u6709\u5fae\u670d\u52a1\u5b9e\u4f8b\u90fd\u5728\u540c\u4e00\u4e2a\u5b50\u7f51\u5185\u7684\u573a\u666f\uff0c\u6bcf\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u90fd\u76f8\u5f53\u4e8e\u662f\u4e00\u4e2a\u670d\u52a1\u4e2d\u5fc3\u5b9e\u4f8b\u3002</p> </li> </ul> <p>\u4f7f\u7528 zero-config\uff0c \u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;registry-zero-config&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"registry/distributed.html#zero-config_1","title":"zero-config \u76f8\u5173\u914d\u7f6e","text":"<p>\u914d\u7f6e\u524d\u7f00\uff1a <code>servicecomb.registry.zero-config</code></p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 enabled true \u662f\u5426\u4f7f\u7528zero-config\u670d\u52a1\u4e2d\u5fc3\u529f\u80fd mode multicast \u5de5\u4f5c\u6a21\u5f0f\uff0c\u5185\u7f6emulticast\u548clocal\u6a21\u5f0f heartbeat.interval 30s \u53d1\u9001\u6ce8\u518c/\u5fc3\u8df3\u6d88\u606f\u7684\u95f4\u9694 heartbeat.lost-times 3 \u5fc3\u8df3\u4e22\u5931\u8d85\u8fc7\u6307\u5b9a\u7684\u6b21\u6570\uff0c\u5219\u5220\u9664\u76f8\u5e94\u7684\u5b9e\u4f8b pull-interval 3s consumer\u6d41\u7a0b\u66f4\u65b0\u76ee\u6807\u5b9e\u4f8b\u7684\u95f4\u9694 multicast.address 0.0.0.0:6666 UDP\u7684\u672c\u5730bind\u5730\u5740\uff0c \u5bf9\u4e8e\u4e0d\u5141\u8bb8bind 0.0.0.0\u7684\u573a\u666f\uff0c\u9700\u8981\u4fee\u6539\u672c\u914d\u7f6e\u9879\u3002\u6ce8\u610f\uff1a \u76f8\u5e94\u7684\u7f51\u5361\u8981\u6253\u5f00UDP multicast\u529f\u80fd multicast.group 225.6.7.8 UDP multicast\u591a\u64adgroup\u5730\u5740\uff0c\u6839\u636e\u6807\u51c6\uff0c\u5408\u6cd5\u5730\u5740\u8303\u56f4\u4e3a(224.0.0.0, 239.255.255.255]\u3002\u5f00\u53d1\u9636\u6bb5\uff0c\u4e3a\u907f\u514d\u4e0d\u540c\u5f00\u53d1\u4eba\u5458\u4e4b\u95f4\u4ea7\u751f\u73af\u5883\u4e92\u76f8\u5e72\u6270\uff0c \u53ef\u4ee5\u5404\u81ea\u8bbe\u7f6e\u4e0d\u540c\u7684group\u5730\u5740 <p>\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  registry:\n    zero-config:\n      enable: true\n      mode: multicast\n      heartbeat:\n        interval: 30s\n        lost-times: 3\n      pull-interval: 3s\n      multicast:\n        address: 0.0.0.0:6666\n        group: 225.6.7.8\n</code></pre>"},{"location":"registry/introduction.html","title":"\u6ce8\u518c\u53d1\u73b0\u4ecb\u7ecd","text":"<p>\u91c7\u7528\u7f51\u7edc\u63a5\u53e3\u8fdb\u884c\u901a\u4fe1\uff0c\u5e76\u4e14\u652f\u6301\u591a\u5b9e\u4f8b\u5f39\u6027\u6269\u7f29\u5bb9\u662f\u5fae\u670d\u52a1\u4e00\u4e2a\u91cd\u8981\u7684\u7279\u5f81\u3002 \u4e00\u4e2a\u5fae\u670d\u52a1 A \u9700\u8981\u548c\u53e6\u5916\u4e00\u4e2a\u5fae\u670d\u52a1 B \u8fdb\u884c \u901a\u4fe1\uff0c\u9996\u5148\u9700\u8981\u77e5\u9053\u5fae\u670d\u52a1 B \u7684\u7f51\u7edc\u5730\u5740\u4fe1\u606f\uff0c \u8fd9\u4e2a\u8fc7\u7a0b\u4e00\u822c\u662f\u901a\u8fc7\u6ce8\u518c\u53d1\u73b0\u5b9e\u73b0\u7684\u3002 </p> <p>\u6700\u5e38\u89c1\u7684\u670d\u52a1\u53d1\u73b0\u673a\u5236\u662f\u5f15\u5165\u4e00\u4e2a\u4e2d\u95f4\u4ef6\u670d\u52a1\uff0c \u5fae\u670d\u52a1 B \u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5411\u4e2d\u95f4\u4ef6\u670d\u52a1\u6ce8\u518c\u81ea\u5df1\u7684\u7f51\u7edc\u5730\u5740\u4fe1\u606f\uff0c\u5fae\u670d\u52a1 A \u8bbf\u95ee B \u7684\u65f6\u5019\uff0c \u9996\u5148\u4ece\u4e2d\u95f4\u4ef6\u670d\u52a1\u67e5\u8be2\u5fae\u670d\u52a1 B \u7684\u7f51\u7edc\u5730\u5740\u4fe1\u606f\u3002</p> <p>\u5bf9\u4e8e\u89c4\u6a21\u8f83\u5c0f\u7684\u7cfb\u7edf\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u4f7f\u7528\u4e2d\u95f4\u4ef6\u670d\u52a1\uff0c\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5728\u5fae\u670d\u52a1 A \u4e2d\u6307\u5b9a\u5fae\u670d\u52a1 B \u7684\u5730\u5740\u3002\u8fd9\u79cd\u65b9\u5f0f \u9002\u5408\u7ec4\u7f51\u60c5\u51b5\u56fa\u5b9a\uff0c\u4e0d\u4f1a\u5f39\u6027\u6269\u7f29\u5bb9\u7684\u573a\u666f\u3002</p> <p>\u5728\u5c40\u57df\u7f51\u73af\u5883\u4e0b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7ec4\u64ad\u534f\u8bae\uff0c\u6bd4\u5982 mDNS \u53d1\u73b0\u5176\u4ed6\u7684\u670d\u52a1\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u9700\u8981\u505a\u989d\u5916\u7684\u914d\u7f6e\u3002</p>"},{"location":"registry/introduction.html#_2","title":"\u6ce8\u518c\u53d1\u73b0\u4fe1\u606f","text":"<p>Java Chassis\u5b9a\u4e86\u4e86\u51e0\u4e2a\u7ef4\u5ea6\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u6ce8\u518c\u53d1\u73b0\u548c\u914d\u7f6e\u7ba1\u7406\u90fd\u56f4\u7ed5\u8fd9\u51e0\u4e2a\u6838\u5fc3\u6982\u5ff5\u6765\u7ec4\u7ec7\u3002</p> <ul> <li>\u73af\u5883 environment</li> <li>\u5e94\u7528 application </li> <li>\u5fae\u670d\u52a1\u540d\u79f0 name</li> <li>\u5fae\u670d\u52a1\u7248\u672c version </li> <li>\u5b9e\u4f8b\u5730\u5740\u4fe1\u606f Endpoints\uff0c\u4e00\u4e2a\u5b9e\u4f8b\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u534f\u8bae\u7684 Endpoint\u3002  </li> </ul> <p>\u6b64\u5916\u8fd8\u5305\u62ec\u5951\u7ea6(schema\uff09\u3002 \u5951\u7ea6\u662fJava Chassis\u6cbb\u7406\u7ba1\u63a7\u7684\u57fa\u7840\u3002 </p> <p>\u8fd9\u4e9b\u57fa\u672c\u4fe1\u606f\u901a\u8fc7 yaml \u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  service:\n    application: basic-application\n    name: gateway\n    version: 0.0.1\n\n  rest:\n    address: 0.0.0.0:9090?sslEnabled=false\n</code></pre>"},{"location":"registry/introduction.html#_3","title":"\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u6ce8\u518c\u53d1\u73b0","text":"<p>\u53ef\u4ee5\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u6ce8\u518c\u53d1\u73b0\u7684\u5b9e\u73b0\u3002\u7ec4\u5408\u4e0d\u540c\u7684\u6ce8\u518c\u53d1\u73b0\u7684\u5b9e\u73b0\uff0c\u80fd\u591f\u6ee1\u8db3\u4e00\u4e9b\u975e\u5e38\u91cd\u8981\u573a\u666f\u7684\u9700\u6c42\u3002</p>"},{"location":"registry/introduction.html#_4","title":"\u4f7f\u7528\u591a\u4e2a\u670d\u52a1\u4e2d\u5fc3\u7684\u7ea6\u675f\u548c\u884c\u4e3a","text":"<ul> <li>\u670d\u52a1\u6ce8\u518c</li> </ul> <p>\u53ef\u4ee5\u5f80\u591a\u4e2a\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u6ce8\u518c\uff0c\u4e0d\u540c\u7684\u5b9e\u4f8b\u5728\u6ce8\u518c\u7684\u65f6\u5019\uff0c\u9700\u8981\u4fdd\u8bc1\u6bcf\u4e2a\u5b9e\u4f8b\uff08\u8fdb\u7a0b\uff09\u5177\u5907\u552f\u4e00\u7684\u5b9e\u4f8bID\uff0c\u5982\u679c\u5b9e\u4f8b\u91cd\u542f\uff0c\u9700\u8981\u751f\u6210\u65b0\u7684\u5b9e\u4f8bID\uff0c\u5373\u4f7f\u662f\u5728\u540c\u4e00\u4e2a\u7269\u7406\u4e3b\u673a\u3002</p> <ul> <li>\u670d\u52a1\u53d1\u73b0</li> </ul> <p>\u5b9e\u4f8bID\u76f8\u540c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4f1a\u88ab\u4f5c\u4e3a\u540c\u4e00\u4e2a\u5b9e\u4f8b\u8fdb\u884c\u7ba1\u7406\u3002\u5982\u679c\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u4f8bID\u76f8\u540c\uff0c\u90a3\u4e48\u5fc5\u987b\u4fdd\u8bc1\u8fd9\u4e9b\u5b9e\u4f8b\u662f\u540c\u4e00\u4e2a\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u5b9e\u4f8b\u4e22\u5931\u6216\u8005\u8986\u76d6\u7684\u60c5\u51b5\u3002 </p>"},{"location":"registry/local-registry.html","title":"\u672c\u5730\u6ce8\u518c\u53d1\u73b0","text":"<p>\u672c\u5730\u6ce8\u518c\u53d1\u73b0\u662f\u4e00\u79cd\u9759\u6001\u7684\u670d\u52a1\u53d1\u73b0\u673a\u5236\u3002\u4f7f\u7528\u672c\u5730\u6ce8\u518c\u53d1\u73b0\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;registry-local&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n</code></pre> <p>\u672c\u5730\u670d\u52a1\u53d1\u73b0\u53ef\u4ee5\u5728\u5f88\u591a\u4e0d\u540c\u7684\u573a\u666f\u4f7f\u7528\uff0c\u80fd\u591f\u5e2e\u52a9\u5f00\u53d1\u8005\u89e3\u51b3\u5f88\u591a\u7cfb\u7edf\u96c6\u6210\u95ee\u9898\uff0c\u6bd4\u5982\u548c\u7f51\u5173\u7684\u96c6\u6210\uff0c\u548c\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u96c6\u6210\u3002</p>"},{"location":"registry/local-registry.html#_2","title":"\u6ce8\u518c\u8fc7\u7a0b","text":"<p>\u548c\u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u4e00\u6837\uff0c \u7cfb\u7edf\u4f1a\u81ea\u52a8\u5b8c\u6210\u6ce8\u518c\u3002\u7cfb\u7edf\u4f1a\u4ece\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bfb\u53d6\u672c\u5fae\u670d\u52a1\u7684\u4fe1\u606f\u548c\u5b9e\u4f8b\u4fe1\u606f\uff0c\u4ee5\u53ca\u672c\u5fae\u670d\u52a1\u53d1\u5e03\u7684 \u5951\u7ea6\u4fe1\u606f\uff0c\u5c06\u4fe1\u606f\u6ce8\u518c\u5230\u5185\u5b58\u4e2d\u3002</p>"},{"location":"registry/local-registry.html#_3","title":"\u53d1\u73b0\u8fc7\u7a0b","text":"<p>\u53d1\u73b0\u8fc7\u7a0b\u4e5f\u662f\u4ece\u672c\u5730\u8fdb\u884c\u67e5\u627e\u3002\u56e0\u6b64\u7cfb\u7edf\u9700\u8981\u914d\u7f6e\u672c\u5730\u7684\u5fae\u670d\u52a1\u4fe1\u606f\u548c\u5b9e\u4f8b\u4fe1\u606f\uff0c\u4ee5\u53ca\u5951\u7ea6\u4fe1\u606f\u3002 \u63d0\u4f9b\u4e86\u4e0b\u9762\u4e24\u79cd\u65b9\u5f0f\uff1a</p> <ul> <li>\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u7684\u65b9\u5f0f\u5b9a\u4e49\u670d\u52a1</li> </ul> <p>\u8fd9\u79cd\u65b9\u5f0f\u4ece\u914d\u7f6e\u6587\u4ef6(registry.yaml)\u4e2d\u8bfb\u53d6\u670d\u52a1\u7684 <code>Microservice</code> \u548c    <code>MicroserviceInstance</code> \u4fe1\u606f\uff0c\u4ece\u76ee\u5f55 <code>microservices/{serviceName}/{schemaId}.yaml</code> \u6216\u8005    <code>applications/{appId}/{serviceName}/{schemaId}.yaml</code> \u8bfb\u53d6\u5fae\u670d\u52a1\u7684\u5951\u7ea6    \u4fe1\u606f\u3002</p> <p>registry.yaml \u683c\u5f0f\uff1a</p> <pre><code>    ```yaml\n    ms1:\n      - id: \"001\"\n        version: \"1.0\"\n        appid: exampleApp\n        environment: development\n        schemaIds:\n          - hello\n        instances:\n          - endpoints:\n              - rest://127.0.0.1:8080\n      - id: \"002\"\n        version: \"2.0\"\n        environment: development\n        appid: exampleApp\n        schemaIds:\n          - hello\n        instances:\n          - endpoints:\n              - rest://127.0.0.2:8080\n    ms2:\n      - id: \"003\"\n        version: \"1.0\"\n        environment: development\n        appid: exampleApp\n        schemaIds:\n          - hello\n        instances:\n          - endpoints:\n              - rest://127.0.0.1:8081\n    ```\n</code></pre> <p><code>registry.yaml</code> \u6307\u5b9a\u4e86\u5fae\u670d\u52a1\u7684\u57fa\u672c\u4fe1\u606f\uff1a\u5e94\u7528ID (appId)\uff0c \u5fae\u670d\u52a1\u540d\u79f0 (serviceName),   \u5fae\u670d\u52a1\u7248\u672c(version)\uff0c\u73af\u5883(environment) \u548c\u5951\u7ea6\uff1b\u5fae\u670d\u52a1\u5b9e\u4f8b\u57fa\u672c\u4fe1\u606f\uff1a\u7f51\u7edc\u5730\u5740(endpoints)\u3002</p> <ul> <li>\u4f7f\u7528 <code>bean</code> \u7684\u65b9\u5f0f\u5b9a\u4e49\u670d\u52a1<pre><code>```java\n  @Bean\n  public RegistryBean demoLocalRegistryServerBean2() {\n    List&lt;String&gt; endpoints = new ArrayList&lt;&gt;();\n    endpoints.add(\"rest://localhost:8080\");\n    List&lt;Instance&gt; instances = new ArrayList&lt;&gt;();\n    instances.add(new Instance().setEndpoints(endpoints));\n\n    return new RegistryBean()\n        .setServiceName(\"demo-local-registry-server-bean2\")\n        .setId(\"003\")\n        .setVersion(\"0.0.3\")\n        .setAppId(\"demo-local-registry\")\n        .addSchemaInterface(\"CodeFirstEndpoint2\", CodeFirstService.class)\n        .setInstances(new Instances().setInstances(instances));\n  }\n```\n</code></pre> </li> </ul> <p><code>RegistryBean</code> \u7684\u4fe1\u606f\u548c <code>registry.yaml</code> \u7684\u4fe1\u606f\u7c7b\u4f3c\uff0c \u53ef\u4ee5\u6dfb\u52a0 <code>Schema Interface</code> \u6765\u6dfb\u52a0   \u5951\u7ea6\u4fe1\u606f\uff0c \u5982\u679c\u6ca1\u6709\u6dfb\u52a0\u5951\u7ea6\u4fe1\u606f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4e5f\u4f1a\u4ece\u672c\u5730\u914d\u7f6e\u6587\u4ef6\u67e5\u627e\u5951\u7ea6\u3002 CodeFirstService \u662f\u4e00\u4e2a\u63a5\u53e3\uff0c   \u548c\u666e\u901a\u7684 provider \u63a5\u53e3\u5b9a\u4e49\u7c7b\u4f3c\uff1a</p> <pre><code>    @Path(\"/register/url/codeFirst\")\n    @Produces(\"application/json\")\n    public interface CodeFirstService {\n      @GET\n      @Path(\"getName\")\n      String getName(@QueryParam(\"name\") String name);\n    }\n</code></pre>"},{"location":"registry/local-registry.html#-","title":"\u672c\u5730\u6ce8\u518c\u53d1\u73b0\u7684\u5e94\u7528 - \u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1","text":"<p>\u53ef\u4ee5\u6709\u975e\u5e38\u591a\u7684\u65b9\u5f0f\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u6bd4\u5982\u91c7\u7528\u7b2c\u4e09\u65b9\u63d0\u4f9b\u7684 Rest Client\u3002 \u4f46\u662f\u9700\u8981\u63d0\u4f9b\u4e00\u79cd \u900f\u660e\u7684\u65b9\u5f0f\uff0c\u8ba9\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u5ba2\u6237\u7aef\u4ee3\u7801\u548c\u8c03\u7528 servicecomb \u5fae\u670d\u52a1\u7684 \u5ba2\u6237\u7aef\u4ee3\u7801\u98ce\u683c\u5b8c\u5168\u4e00\u6837\uff0c\u5e76\u4e14\u62e5\u6709\u6240\u6709 servicecomb \u7684\u5ba2\u6237\u7aef\u6cbb\u7406\u80fd\u529b\u3002</p> <p>\u5728\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u91cc\u9762\u4ecb\u7ecd\u4e86servicecomb\u63d0\u4f9b\u7684\u4e00\u79cd \u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u4f7f\u7528\u65b9\u5f0f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4f9d\u8d56\u4e8e\u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u4f5c\u4e3a\u6ce8\u518c\u53d1\u73b0\u3002 \u53ef\u4ee5\u770b\u51fa\u4f7f\u7528\u672c\u5730\u670d\u52a1\u53d1\u73b0\u80fd\u591f\u975e\u5e38\u65b9\u4fbf\u7684\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u3002</p> <p>\u53ea\u9700\u8981\u5728\u539f\u6765\u7684\u9879\u76ee\u4e2d\u5f15\u5165\u672c\u5730\u6ce8\u518c\u53d1\u73b0\uff0c\u6309\u7167\u4e0a\u8ff0\u4e24\u79cd\u65b9\u5f0f\u4e4b\u4e00\u5b9a\u4e49\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u4fe1\u606f\u3002 \u5b9a\u4e49\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u50cf\u8bbf\u95ee servicecomb \u670d\u52a1\u4e00\u6837\u8bbf\u95ee\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u4e0d\u7528\u5173\u5fc3\u7b2c\u4e09\u65b9\u670d\u52a1\u662f\u91c7\u7528\u4ec0\u4e48\u6846\u67b6\u5f00\u53d1\u7684\u3002 \u4e0b\u9762\u4ee3\u7801\u7247\u6bb5\u6765\u6e90\u4e8e demo\uff0c \u6f14\u793a\u4e86\u901a\u8fc7 java chassis \u7684\u65b9\u5f0f\u8c03\u7528\u670d\u52a1\u4e2d\u5fc3\u63a5\u53e3\u3002</p> <pre><code>public interface IServiceCenterEndpoint {\n  // java name can not be `x-domain-name`, so interfaces define all parameters.\n  @GetMapping(path = \"/instances\")\n  Object getInstances(@RequestParam(name = \"appId\") String appId,\n      @RequestParam(name = \"serviceName\") String serviceName,\n      @RequestParam(name = \"global\") String global,\n      @RequestParam(name = \"version\") String version,\n      @RequestHeader(name = \"x-domain-name\") String domain);\n}\n\n@Component\npublic class ServiceCenterTestCase implements CategorizedTestCase {\n  @RpcReference(microserviceName = \"thirdParty-service-center\", schemaId = \"ServiceCenterEndpoint\")\n  IServiceCenterEndpoint serviceCenterEndpoint;\n\n  @Override\n  public void testRestTransport() throws Exception {\n    // invoke service-center(3rd-parties)\n    @SuppressWarnings(\"unchecked\")\n    Map&lt;String, List&lt;?&gt;&gt; result = (Map&lt;String, List&lt;?&gt;&gt;) serviceCenterEndpoint.getInstances(\n        \"demo-multi-registries\",\n        \"demo-multi-registries-server\",\n        \"true\",\n        \"0.0.2\",\n        \"default\");\n    TestMgr.check(result.get(\"instances\").size(), 1);\n  }\n}\n</code></pre>"},{"location":"registry/nacos.html","title":"\u4f7f\u7528 nacos","text":"<p>\u53ef\u4ee5\u901a\u8fc7 nacos\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5 Nacos\u3002</p> <p>Nacos\u7684namespace\u5bf9\u5e94\u4e8e\u73af\u5883Environment\uff0c group\u5bf9\u5e94\u4e8eapplication\uff0c service\u5bf9\u5e94\u4e8e\u5fae\u670d\u52a1\u540d\u79f0\u3002 </p> <ul> <li>\u88681-1 \u8bbf\u95eeNacos\u5e38\u7528\u7684\u914d\u7f6e\u9879</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.registry.nacos.enabled true \u662f \u662f\u5426\u542f\u7528\u3002 servicecomb.registry.nacos.serverAddr http://127.0.0.1:8848 \u662f \u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 servicecomb.registry.nacos.metadata \u7a7a \u5426 \u914d\u7f6eString\u7684\u952e\u503c\u5bf9\u3002 servicecomb.registry.nacos.username \u7a7a \u5426 Nacos\u7528\u6237\u540d servicecomb.registry.nacos.password \u7a7a \u5426 Nacos\u5bc6\u7801 servicecomb.registry.nacos.accessKey \u7a7a \u5426 Nacos Access Key servicecomb.registry.nacos.secretKey \u7a7a \u5426 Nacos Secret Key servicecomb.registry.nacos.clusterName DEFAULT \u5426 Nacos Cluster Name <p>\u4f7f\u7528Nacos\u9700\u8981\u786e\u4fdd\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-nacos&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre>"},{"location":"registry/service-center.html","title":"\u4f7f\u7528 service-center","text":"<p>ServcieComb service-center \u63d0\u4f9b\u4e86\u5b8c\u5907\u7684\u6ce8\u518c\u53d1\u73b0\u673a\u5236\uff0c \u662f Java Chassis \u7f3a\u7701\u4f7f\u7528\u7684\u6ce8\u518c\u53d1\u73b0\u673a\u5236\u3002 </p> <p>\u670d\u52a1\u4e2d\u5fc3\u652f\u6301\u4f7f\u7528 <code>PULL</code> \u548c <code>PUSH</code> \u4e24\u79cd\u6a21\u5f0f\u901a\u77e5\u5b9e\u4f8b\u53d8\u5316\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u914d\u7f6e\u670d\u52a1\u4e2d\u5fc3\u96c6\u7fa4\u5730\u5740\u3001\u8fde\u63a5\u53c2\u6570\u4ee5\u53ca\u5fc3\u8df3\u7ba1\u7406\u7b49\u3002</p> <ul> <li>\u88681-1 \u8bbf\u95ee\u670d\u52a1\u4e2d\u5fc3\u5e38\u7528\u7684\u914d\u7f6e\u9879</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.registry.sc.enabled true \u662f \u662f\u5426\u542f\u7528\u3002 servicecomb.registry.sc.address http://127.0.0.1:30100 \u662f \u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 servicecomb.registry.sc.watch false \u5426 \u662f\u5426\u91c7\u7528PUSH\u6a21\u5f0f\u76d1\u542c\u5b9e\u4f8b\u53d8\u5316\u3002\u4e3afalse\u7684\u65f6\u5019\u8868\u793a\u4f7f\u7528PULL\u6a21\u5f0f\u3002 servicecomb.registry.sc.autodiscovery false \u5426 \u662f\u5426\u81ea\u52a8\u53d1\u73b0\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5f53\u9700\u8981\u914d\u7f6e\u90e8\u5206\u5730\u5740\uff0c\u5176\u4ed6\u5730\u5740\u7531\u914d\u7f6e\u7684\u670d\u52a1\u4e2d\u5fc3\u5b9e\u4f8b\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u5f00\u542f\u8fd9\u4e2a\u914d\u7f6e\u3002 servicecomb.registry.sc.healthCheckIntervalInSeconds 30 \u5426 \u5fc3\u8df3\u95f4\u9694\u3002 servicecomb.registry.sc.healthCheckTimes 3 \u5426 \u5141\u8bb8\u7684\u5fc3\u8df3\u5931\u8d25\u6b21\u6570\u3002\u5f53\u8fde\u7eed\u7b2ctimes+1\u6b21\u5fc3\u8df3\u4ecd\u7136\u5931\u8d25\u65f6\u5219\u5b9e\u4f8b\u88absc\u4e0b\u7ebf\u3002\u5373interval * (times + 1)\u51b3\u5b9a\u4e86\u5b9e\u4f8b\u88ab\u81ea\u52a8\u6ce8\u9500\u7684\u65f6\u95f4\u3002\u5982\u679c\u670d\u52a1\u4e2d\u5fc3\u7b49\u5f85\u8fd9\u4e48\u957f\u7684\u65f6\u95f4\u6ca1\u6709\u6536\u53d6\u5230\u5fc3\u8df3\uff0c\u4f1a\u6ce8\u9500\u5b9e\u4f8b\u3002 <p>servicecomb \u4e0e\u670d\u52a1\u4e2d\u5fc3\u91c7\u7528 HTTP \u8fdb\u884c\u4ea4\u4e92\uff0c HTTP client \u76f8\u5173\u914d\u7f6e\u53ef\u4ee5\u53c2 \u8003 Service Center Client \u914d\u7f6e\u9879</p> <p>\u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u9700\u8981\u786e\u4fdd\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre>"},{"location":"registry/service-center.html#rbac","title":"\u4f7f\u7528 RBAC \u8ba4\u8bc1","text":"<p>\u670d\u52a1\u4e2d\u5fc3\u652f\u6301RBAC\u8ba4\u8bc1\uff0c\u670d\u52a1\u4e2d\u5fc3\u5f00\u542fRBAC\u8ba4\u8bc1\u4e4b \u540e\uff0c\u5ba2\u6237\u7aef\u8c03\u7528\u670d\u52a1\u4e2d\u5fc3\u63a5\u53e3\u90fd\u9700\u8981\u5148\u83b7\u53d6token\uff0c\u4fdd\u8bc1\u670d\u52a1\u7684\u5b89\u5168\u53ef\u4fe1\u3002 \u4f7f\u7528 RBAC \u8ba4\u8bc1\uff0c \u9700\u8981\u4f7f\u7528 2.1.3 \u53ca\u5176\u4ee5\u4e0a\u7684\u7248\u672c\u3002 </p> <ul> <li>\u670d\u52a1\u914d\u7f6e</li> </ul> <p>\u4f7f\u7528 RBAC \u8ba4\u8bc1\uff0c\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff0c \u6307\u5b9a\u8fde\u63a5\u670d\u52a1\u4e2d\u5fc3\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a</p> <pre><code>    ```\n    servicecomb:\n      credentials:\n        rbac.enabled: true # \u4f7f\u7528\u542f\u7528 RBAC\uff0c \u9ed8\u8ba4\u4e3a false\n        account:\n          name: root   #\u670d\u52a1\u4e2d\u5fc3\u652f\u6301\u7684\u7528\u6237\u540d\n          password: your-password  #\u7528\u6237\u540d\u5bf9\u5e94\u7684\u5bc6\u7801\n        cipher: default #\u8d26\u53f7\u5bc6\u7801\u52a0\u89e3\u5bc6\u7528\u7684\u7b97\u6cd5\u5b9e\u73b0\u7c7b\n    ```\n</code></pre> <p>\u8d26\u53f7\u5bc6\u7801\u90fd\u662f\u654f\u611f\u4fe1\u606f\uff0c\u4e00\u822c\u9700\u8981\u52a0\u5bc6\u4fdd\u5b58\uff0c\u4f7f\u7528\u7684\u65f6\u5019\u518d\u89e3\u5bc6\uff0cJava Chassis \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6269\u5c55\u673a\u5236\uff0c\u7528\u6237\u53ea\u9700\u8981\u5b9e\u73b0\u63a5\u53e3   <code>org.apache.servicecomb.foundation.auth.Cipher</code>\uff0c\u5e76\u6ce8\u518c\u6210Spring Bean\uff0c\u5c31\u4f1a\u81ea\u52a8\u88ab\u4f7f\u7528\uff0c\u63a5\u53e3\u91cc\u9762\u5305\u542b\u4e24\u4e2a\u65b9\u6cd5\uff1a</p> <pre><code>    ```java\n      String name();\n\n      char[] decrypt(char[] encrypted);\n    ```\n</code></pre> <p>name\u65b9\u6cd5\u8fd4\u56decipher\u7684\u540d\u79f0\uff0c\u5bf9\u5e94 <code>servicecomb.credentials.cipher</code> \u7684\u914d\u7f6e\uff0cdecrypt\u662f\u89e3\u5bc6\u63a5\u53e3\uff0c\u7528\u6237\u540d\u3001\u5bc6\u7801\u4f7f\u7528\u7684\u65f6\u5019\u90fd\u4f1a\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5\u8fdb\u884c\u89e3\u5bc6\u3002   \u4e0b\u9762\u7ed9\u4e86\u4e00\u4e2a\u6700\u7b80\u5355\u7684base64\u7f16\u89e3\u7801\u7684\u5b9e\u73b0\u793a\u4f8b\uff0c\u7528\u6237\u4f7f\u7528base64\u7f16\u7801\u628a\u8d26\u53f7\u5bc6\u7801\u914d\u7f6e\u5230\u914d\u7f6e\u6587\u4ef6\u5373\u53ef\u3002</p> <p>\u6ce8\u610f: base64 \u5e76\u4e0d\u662f\u5b89\u5168\u52a0\u5bc6\u7b97\u6cd5\uff0c\u8bf7\u52ff\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\u3002 </p> <pre><code>    ```yaml\n    servicecomb:\n      credentials:\n        account:\n          name: cm9vdA==\n          password: eW91ci1wYXNzd29yZCA=\n        cipher: base64\n    ```\n\n    ```java\n    import java.util.Base64;\n\n    import org.apache.servicecomb.foundation.auth.Cipher;\n    import org.springframework.stereotype.Component;\n\n    /**\n     * Base64\u89e3\u7801\u5b9e\u73b0\n     */\n    @Component\n    public class Base64Cipher implements Cipher {\n      @Override\n      public String name() {\n        return \"base64\";\n      }\n\n      @Override\n      public char[] decrypt(char[] encrypted) {\n        return new String(Base64.getDecoder().decode(new String(encrypted))).toCharArray();\n      }\n    }\n    ```\n</code></pre>"},{"location":"registry/service-center.html#aksk","title":"\u4f7f\u7528 AK/SK \u8ba4\u8bc1","text":"<p>\u534e\u4e3a\u4e91\u5fae\u670d\u52a1\u5f15\u64ce\u4e13\u4e1a\u7248\u7684\u670d\u52a1\u4e2d\u5fc3\u9700\u8981\u4f7f\u7528 AK/SK \u8ba4\u8bc1\uff0c \u4f7f\u7528 AK/SK \u8ba4\u8bc1\uff0c \u9700\u8981\u4f7f\u7528 2.1.3 \u53ca\u5176\u4ee5\u4e0a\u7684\u7248\u672c\u3002 AK/SK \u8ba4\u8bc1\u9700\u8981\u914d\u7f6e\u5982\u4e0b\u4fe1\u606f\uff1a</p> <pre><code>servciecomb:\n  credentials:\n    akskEnabled: true\n    accessKey: your access key\n    secretKey: your secrete key\n    akskCustomCipher: default # \u52a0\u5bc6\u7b97\u6cd5\uff0c \u548c RBAC \u4e00\u6837\n    project: cn-south-1 # \u9879\u76ee\u540d\u79f0\uff0c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u586b\u5199\n</code></pre> <p>secreteKey \u652f\u6301\u52a0\u5bc6\u5b58\u50a8\uff0c \u6269\u5c55\u65b9\u5f0f\u540c RBAC \u3002</p> <p>\u4f7f\u7528AK/SK \u9700\u8981\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;servicestage&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre> <p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f9d\u8d56\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre>"},{"location":"security/shi-yong-rsa-ren-zheng.html","title":"\u4f7f\u7528RSA\u8ba4\u8bc1","text":""},{"location":"security/shi-yong-rsa-ren-zheng.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u542f\u7528\u670d\u52a1\u95f4RSA\u8ba4\u8bc1\uff0c\u4ee5\u4fdd\u969c\u670d\u52a1\u63a5\u53e3\u7684\u5b89\u5168\u6027\u3002</p> <p>\u8be6\u7ec6\u4ecb\u7ecd\u53c2\u8003\u516c\u94a5\u8ba4\u8bc1</p>"},{"location":"security/shi-yong-rsa-ren-zheng.html#consumer","title":"Consumer\u914d\u7f6e","text":"<ul> <li>\u5728pom.xml\u4e2d\u589e\u52a0\u4f9d\u8d56\uff1a</li> </ul> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt; \n  &lt;artifactId&gt;handler-publickey-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5728microservice.yaml\u4e2d\u6dfb\u52a0\u8fdb\u5904\u7406\u94fe</li> </ul> <pre><code>servicecomb:\n  handler:\n    chain:\n      Consumer:\n        default: auth-consumer\n</code></pre>"},{"location":"security/shi-yong-rsa-ren-zheng.html#provider","title":"Provider\u914d\u7f6e","text":"<ul> <li>\u5728pom.xml\u4e2d\u589e\u52a0\u4f9d\u8d56\uff1a</li> </ul> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt; \n  &lt;artifactId&gt;handler-publickey-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5728microservice.yaml\u4e2d\u6dfb\u52a0\u8fdb\u5904\u7406\u94fe</li> </ul> <pre><code>servicecomb:\n  handler:\n    chain:\n      Provider:\n        default: auth-provider\n</code></pre>"},{"location":"security/tls.html","title":"\u4f7f\u7528TLS\u901a\u4fe1","text":""},{"location":"security/tls.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u542f\u7528TLS\u901a\u4fe1\uff0c\u4ee5\u4fdd\u969c\u6570\u636e\u7684\u4f20\u8f93\u5b89\u5168\u3002</p>"},{"location":"security/tls.html#_2","title":"\u5916\u90e8\u670d\u52a1\u901a\u4fe1\u914d\u7f6e","text":"<p>\u4e0e\u5916\u90e8\u670d\u52a1\u901a\u4fe1\u76f8\u5173\u7684\u914d\u7f6e\u5199\u5728microservice.yaml\u6587\u4ef6\u4e2d\u3002</p> <ul> <li> <p>\u670d\u52a1\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3TLS\u901a\u4fe1\u914d\u7f6e   \u5fae\u670d\u52a1\u4e0e\u670d\u52a1\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u7684\u8fde\u63a5\u53ef\u4ee5\u901a\u8fc7\u5c06http\u6539\u4e3ahttps\u542f\u7528TLS\u901a\u4fe1\uff0c\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  service:\n    registry:\n      address: https://127.0.0.1:30100\n  config:\n    client:\n      serverUri: https://127.0.0.1:30103\n</code></pre> </li> <li> <p>\u670d\u52a1\u63d0\u4f9b\u8005\u542f\u7528TLS\u901a\u4fe1   \u670d\u52a1\u63d0\u4f9b\u8005\u5728\u914d\u7f6e\u670d\u52a1\u76d1\u542c\u5730\u5740\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>?sslEnabled=true</code>\u5f00\u542fTLS\u901a\u4fe1\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080?sslEnabled=true\n  highway:\n    address: 0.0.0.0:7070?sslEnabled=true\n</code></pre> </li> </ul>"},{"location":"security/tls.html#_3","title":"\u8bc1\u4e66\u914d\u7f6e","text":"<p>\u8bc1\u4e66\u914d\u7f6e\u9879\u5199\u5728microservice.yaml\u6587\u4ef6\u4e2d\uff0c\u652f\u6301\u7edf\u4e00\u5236\u5b9a\u8bc1\u4e66\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0tag\u8fdb\u884c\u66f4\u7ec6\u7c92\u5ea6\u7684\u914d\u7f6e\uff0c\u6709tag\u7684\u914d\u7f6e\u4f1a\u8986\u76d6\u5168\u5c40\u914d\u7f6e\uff0c\u914d\u7f6e\u683c\u5f0f\u5982\u4e0b\uff1a</p> <pre><code>ssl.[tag].[property]\n</code></pre> <p>\u5e38\u89c1\u7684tag\u5982\u4e0b\u8868\uff1a   </p> \u9879\u76ee tag \u670d\u52a1\u4e2d\u5fc3 sc.consumer \u914d\u7f6e\u4e2d\u5fc3 cc.consumer \u770b\u677f\u4e2d\u5fc3 mc.consumer Rest\u670d\u52a1\u7aef rest.provider Highway\u670d\u52a1\u7aef highway.provider Rest\u5ba2\u6237\u7aef rest.consumer Highway\u5ba2\u6237\u7aef highway.consumer auth\u5ba2\u6237\u7aef apiserver.consumer \u4e00\u822c\u4e0d\u9700\u8981\u914d\u7f6etag\uff0c\u6b63\u5e38\u60c5\u51b5\u5206\u4e3a\u4e09\u7c7b\uff1a1\u3001\u8fde\u63a5\u5185\u90e8\u670d\u52a1 2\u3001\u4f5c\u4e3a\u670d\u52a1\u7aef 3\u3001\u4f5c\u4e3a\u5ba2\u6237\u7aef \u6240\u4ee5\u5982\u679c\u8fd9\u4e09\u7c7b\u8981\u6c42\u7684\u8bc1\u4e66\u4e0d\u4e00\u81f4\uff0c\u90a3\u4e48\u9700\u8981\u4f7f\u7528tag\u6765\u533a\u5206 <p>\u8bc1\u4e66\u914d\u7f6e\u9879\u89c1\u88681 \u8bc1\u4e66\u914d\u7f6e\u9879\u8bf4\u660e\u8868\u3002 \u88681 \u8bc1\u4e66\u914d\u7f6e\u9879\u8bf4\u660e\u8868</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f ssl.engine jdk - \u5426 ssl\u534f\u8bae\uff0c\u63d0\u4f9bjdk/openssl\u9009\u62e9 \u9ed8\u8ba4\u4e3ajdk ssl.protocols TLSv1.2 - \u5426 \u534f\u8bae\u5217\u8868 \u4f7f\u7528\u9017\u53f7\u5206\u9694 ssl.ciphers TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - \u5426 \u7b97\u6cd5\u5217\u8868 \u4f7f\u7528\u9017\u53f7\u5206\u9694 ssl.authPeer false - \u5426 \u662f\u5426\u8ba4\u8bc1\u5bf9\u7aef - ssl.checkCN.host false - \u5426 \u662f\u5426\u5bf9\u8bc1\u4e66\u7684CN\u8fdb\u884c\u68c0\u67e5 \u8be5\u914d\u7f6e\u9879\u53ea\u5bf9Consumer\u7aef\uff0c\u5e76\u4e14\u4f7f\u7528http\u534f\u8bae\u6709\u6548\uff0c\u5373Consumser\u7aef\u4f7f\u7528rest\u901a\u9053\u6709\u6548\u3002\u5bf9\u4e8eProvider\u7aef\u3001highway\u901a\u9053\u7b49\u65e0\u6548\u3002\u68c0\u67e5CN\u7684\u76ee\u7684\u662f\u9632\u6b62\u670d\u52a1\u5668\u88ab\u9493\u9c7c\uff0c\u53c2\u8003\u6807\u51c6\u5b9a\u4e49\uff1ahttps://tools.ietf.org/html/rfc2818\u3002 ssl.trustStore trust.jks - \u5426 \u4fe1\u4efb\u8bc1\u4e66\u6587\u4ef6 - ssl.trustStoreType JKS - \u5426 \u4fe1\u4efb\u8bc1\u4e66\u7c7b\u578b - ssl.trustStoreValue - - \u5426 \u4fe1\u4efb\u8bc1\u4e66\u5bc6\u7801 - ssl.keyStore server.p12 - \u5426 \u8eab\u4efd\u8bc1\u4e66\u6587\u4ef6 - ssl.keyStoreType PKCS12 - \u5426 \u8eab\u4efd\u8bc1\u4e66\u7c7b\u578b - ssl.keyStoreValue - - \u5426 \u8eab\u4efd\u8bc1\u4e66\u5bc6\u7801 - ssl.crl revoke.crl - \u5426 \u540a\u9500\u8bc1\u4e66\u6587\u4ef6 - ssl.sslCustomClass - org.apache.servicecomb.foundation.ssl.SSLCustom\u7684\u5b9e\u73b0\u7c7b \u5426 SSLCustom\u7c7b\u7684\u5b9e\u73b0\uff0c\u7528\u4e8e\u5f00\u53d1\u8005\u8f6c\u6362\u5bc6\u7801\u3001\u6587\u4ef6\u8def\u5f84\u7b49\u3002 - <p>\u8bf4\u660e\uff1a</p> <ul> <li>\u9ed8\u8ba4\u7684\u534f\u8bae\u7b97\u6cd5\u662f\u9ad8\u5f3a\u5ea6\u52a0\u5bc6\u7b97\u6cd5\uff0cJDK\u9700\u8981\u5b89\u88c5\u5bf9\u5e94\u7684\u7b56\u7565\u6587\u4ef6\uff0c\u53c2\u8003\uff1ahttp://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html\u3002 \u60a8\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u4f7f\u7528\u975e\u9ad8\u5f3a\u5ea6\u7b97\u6cd5\u3002</li> <li>\u5fae\u670d\u52a1\u6d88\u8d39\u8005\uff0c\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u63d0\u4f9b\u8005\u6307\u5b9a\u8bc1\u4e66\uff08\u5f53\u524d\u8bc1\u4e66\u662f\u6309\u7167HOST\u7b7e\u53d1\u7684\uff0c\u4e0d\u540c\u7684\u63d0\u4f9b\u8005\u90fd\u4f7f\u7528\u4e00\u4efd\u8bc1\u4e66\u5b58\u50a8\u4ecb\u8d28\uff0c\u8fd9\u4efd\u4ecb\u8d28\u540c\u65f6\u7ed9\u5fae\u670d\u52a1\u8bbf\u95ee\u670d\u52a1\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u4f7f\u7528\uff09\u3002</li> </ul>"},{"location":"security/tls.html#_4","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>microservice.yaml\u6587\u4ef6\u4e2d\u542f\u7528TLS\u901a\u4fe1\u7684\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  service:\n    registry:\n      address: https://127.0.0.1:30100\n  config:\n    client:\n      serverUri: https://127.0.0.1:30103\n  rest:\n    address: 0.0.0.0:8080?sslEnabled=true\n  highway:\n    address: 0.0.0.0:7070?sslEnabled=true\n\n#########SSL options\nssl.protocols: TLSv1.2\nssl.authPeer: true\nssl.checkCN.host: true\n\n#########certificates config\nssl.trustStore: trust.jks\nssl.trustStoreType: JKS\nssl.trustStoreValue: Changeme_123\nssl.keyStore: server.p12\nssl.keyStoreType: PKCS12\nssl.keyStoreValue: Changeme_123\nssl.crl: revoke.crl\nssl.sslCustomClass: org.apache.servicecomb.demo.DemoSSLCustom\n</code></pre>"},{"location":"spring-boot/diff-spring-mvc.html","title":"\u4e0eSpring Web MVC\u5f00\u53d1\u4e60\u60ef\u7684\u5dee\u5f02","text":"<p>Java Chassis\u652f\u6301\u4f7f\u7528Spring MVC\u63d0\u4f9b\u7684\u6807\u7b7e(org.springframework.web.bind.annotation)\u6765\u58f0\u660eREST\u63a5\u53e3\uff0c\u4f46\u662f\u4e24\u8005\u662f\u72ec\u7acb\u7684\u5b9e\u73b0\uff0c\u5e76\u4e14\u6709\u4e0d\u4e00\u6837\u7684\u8bbe\u8ba1\u76ee\u6807\u3002Java Chassis\u7684\u76ee\u6807\u662f\u63d0\u4f9b\u8de8\u8bed\u8a00\u3001\u652f\u6301\u591a\u901a\u4fe1\u534f\u8bae\u7684\u6846\u67b6\uff0c\u56e0\u6b64\u53bb\u6389\u4e86Spring Web MVC\u4e2d\u4e00\u4e9b\u5bf9\u8de8\u8bed\u8a00\u652f\u6301\u4e0d\u662f\u5f88\u597d\u7684\u7279\u6027\uff0c\u4e5f\u4e0d\u652f\u6301\u7279\u5b9a\u8fd0\u884c\u6846\u67b6\u5f3a\u76f8\u5173\u7684\u7279\u6027\uff0c\u6bd4\u5982\u76f4\u63a5\u8bbf\u95eeServlet\u534f\u8bae\u5b9a\u4e49\u7684HttpServletRequest\u3002Java Chassis\u652f\u6301\u7684Spring Web MVC\u6807\u7b7e\u662fSpring Boot\u7684\u5b50\u96c6\uff0c \u4e0b\u9762\u662f\u4e00\u4e9b\u663e\u8457\u7684\u5dee\u522b\u3002</p> <ul> <li>\u670d\u52a1\u58f0\u660e\u65b9\u5f0f</li> </ul> <p>Spring MVC\u4f7f\u7528@RestController\u58f0\u660e\u670d\u52a1\uff0c\u800cJava Chassis\u4f7f\u7528@RestSchema\u58f0\u660e\u670d\u52a1\uff0c\u5e76\u4e14\u9700\u8981\u663e\u793a\u7684\u4f7f\u7528@RequestMapping\u58f0\u660e\u670d\u52a1\u8def\u5f84\uff0c\u4ee5\u533a\u5206\u8be5\u670d\u52a1\u662f\u91c7\u7528Spring Web MVC\u7684\u6807\u7b7e\u8fd8\u662f\u4f7f\u7528JAX RS\u7684\u6807\u7b7e\u3002</p> <pre><code>@RestSchema(schemaId = \"hello\")\n@RequestMapping(path = \"/\")\n</code></pre> <p>Schema\u662fjava chassis\u7684\u670d\u52a1\u5951\u7ea6\uff0c\u662f\u670d\u52a1\u8fd0\u884c\u65f6\u7684\u57fa\u7840\uff0c\u670d\u52a1\u6cbb\u7406\u3001\u7f16\u89e3\u7801\u7b49\u90fd\u57fa\u4e8e\u5951\u7ea6\u8fdb\u884c\u3002\u5728\u8de8\u8bed\u8a00\u7684\u573a\u666f\uff0c\u5951\u7ea6\u4e5f\u5b9a\u4e49\u4e86\u4e0d\u540c\u8bed\u8a00\u80fd\u591f\u540c\u65f6\u7406\u89e3\u7684\u90e8\u5206\u3002</p> <ul> <li>\u6570\u636e\u7c7b\u578b\u652f\u6301</li> </ul> <p>\u91c7\u7528Spring Web MVC\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u5b9a\u4e49\u4e2d\u4f7f\u7528\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u53ea\u8981\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u80fd\u591f\u88abJson\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u3002\u6bd4\u5982\uff1a</p> <pre><code>// \u62bd\u8c61\u7c7b\u578b\npublic void postData(@RequestBody Object data)\n// \u63a5\u53e3\u5b9a\u4e49\npublic void postData(@RequestBody IPerson interfaceData)\n// \u6ca1\u6307\u5b9a\u7c7b\u578b\u7684\u6cdb\u578b\npublic void postData(@RequestBody Map rawData)\n// \u5177\u4f53\u534f\u8bae\u76f8\u5173\u7684\u7c7b\u578b\npublic void postData(HttpServletRequest rquest)\n</code></pre> <p>Java Chassis\u4e0d\u652f\u6301\u4e0a\u8bc9\u7c7b\u578b\u3002\u56e0\u4e3aJava Chassis\u4f1a\u6839\u636e\u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u5951\u7ea6\uff0c\u4ece\u4e0a\u9762\u7684\u63a5\u53e3\u5b9a\u4e49\uff0c\u5982\u679c\u4e0d\u7ed3\u5408\u5b9e\u9645\u7684\u5b9e\u73b0\u4ee3\u7801\u6216\u8005\u989d\u5916\u7684\u5f00\u53d1\u6587\u6863\u8bf4\u660e\uff0c\u65e0\u6cd5\u76f4\u63a5\u751f\u6210\u5951\u7ea6\u3002</p> <p>\u8bf4\u660e\uff1a \u4e3a\u4e86\u652f\u6301\u5feb\u901f\u5f00\u53d1\uff0cJava Chassis\u7684\u6570\u636e\u7c7b\u578b\u9650\u5236\u4e5f\u5728\u4e0d\u505c\u7684\u6269\u5145\uff0c\u6bd4\u5982\u652f\u6301HttpServletRequest\uff0c\u4f46\u662f\u5b9e\u9645\u5728\u4f7f\u7528\u7684\u65f6\u5019\uff0c\u4ed6\u4eec\u4e0eWEB\u670d\u52a1\u5668\u7684\u8bed\u4e49\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6bd4\u5982\u4e0d\u80fd\u76f4\u63a5\u64cd\u4f5c\u6d41\u3002\u56e0\u6b64\u5efa\u8bae\u5f00\u53d1\u8005\u5728\u7684\u4f7f\u7528\u573a\u666f\u4e0b\uff0c\u5c3d\u53ef\u80fd\u4f7f\u7528\u5951\u7ea6\u80fd\u591f\u63cf\u8ff0\u7684\u7c7b\u578b\uff0c\u8ba9\u4ee3\u7801\u9605\u8bfb\u6027\u66f4\u597d\u3002\u6b64\u5916\uff0cSpring\u9488\u5bf9DispatcherServlet\u505a\u4e86\u5927\u91cf\u7684\u6269\u5c55\uff0c\u8fd9\u4e9b\u6269\u5c55\u5bf9\u4e8eJava Chassis\u662f\u4e0d\u9002\u7528\u7684\u3002</p> <p>Java Chassis\u5728Spring Web MVC\u65b9\u9762\u7684\u66f4\u591a\u5f00\u53d1\u652f\u6301\uff0c\u53ef\u4ee5\u53c2\u8003\u7528SpringMVC \u5f00\u53d1\u5fae\u670d\u52a1\u3002</p>"},{"location":"spring-boot/introduction.html","title":"Java Chassis\u4e0eSpring Boot \u96c6\u6210\u4ecb\u7ecd","text":"<p>\u5c06 Spring Boot \u7528\u4e8e\u5fae\u670d\u52a1\u5f00\u53d1\uff0c\u53ef\u4ee5\u6781\u5927\u7684\u7b80\u5316\u5f00\u53d1\u8005\u914d\u7f6e\u548c\u90e8\u7f72\u3002Java Chassis\u5728Spring Boot\u57fa\u7840\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u4e86\u5b8c\u5584\u7684\u7684\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\u9700\u8981\u7684\u80fd\u529b\uff0c\u5305\u62ec\u670d\u52a1\u6ce8\u518c\u53d1\u73b0\u3001\u670d\u52a1\u6cbb\u7406\u3001\u826f\u597d\u7684\u8de8\u8bed\u8a00\u7279\u6027\u548c\u9ad8\u6548\u7684\u5f02\u6b65\u901a\u4fe1\u7b49\u80fd\u529b\u3002 </p> <p>Java Chassis\u6709\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528Spring Boot\uff1a</p> <ol> <li> <p>\u9ad8\u6027\u80fd\u6a21\u5f0f\uff1a\u4f7f\u7528Java Chassis\u9ad8\u6027\u80fdHTTP\u670d\u52a1\u5668\u3002</p> </li> <li> <p>Web\u5f00\u53d1\u65b9\u5f0f\uff1a\u4f7f\u7528Spring Boot\u81ea\u5e26\u7684Tomcat\u6216\u8005Jetty\u670d\u52a1\u5668\u3002</p> </li> </ol> <p></p> <ul> <li>\u9ad8\u6027\u80fd\u6a21\u5f0f</li> </ul> <p>\u5f15\u5165\u4f9d\u8d56</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>WebApplicationType\u6307\u5b9a\u4e3aNONE</p> <pre><code>@SpringBootApplication\npublic class ProviderApplication {\n  public static void main(String[] args) {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.NONE)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre> <ul> <li>Web\u6a21\u5f0f</li> </ul> <p>\u5f15\u5165\u4f9d\u8d56</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-servlet&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>WebApplicationType\u6307\u5b9a\u4e3aSERVLET</p> <pre><code>@SpringBootApplication\npublic class ProviderApplication {\n  public static void main(String[] args) {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.SERVLET)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre> <p>\u4e24\u79cd\u5f00\u53d1\u65b9\u5f0f\u90fd\u4f1a\u542f\u7528Java Chassis\u7684\u5168\u91cf\u529f\u80fd\uff0c\u9ad8\u6027\u80fd\u6a21\u5f0f\u8fd0\u884c\u4e8e\u72ec\u7acb\u7684HTTP\u670d\u52a1\u5668\uff08\u57fa\u4e8evert.x\u6784\u5efa\uff09\u4e0a\uff0c\u6027\u80fd\u4e0a\u5b58\u5728\u5f88\u5927\u7684\u4f18\u52bf\u3002Web\u6a21\u5f0f\u8fd0\u884c\u4e8eTomcat\u6216\u8005\u5176\u4ed6\u5185\u7f6e\u7684Web\u670d\u52a1\u5668\u4e4b\u4e0a\uff0c\u4f5c\u4e3a\u4e00\u4e2aServlet\u63a5\u6536\u8bf7\u6c42\uff0c\u56e0\u6b64\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Web\u5bb9\u5668\u63d0\u4f9b\u7684\u4e00\u4e9b\u529f\u80fd\uff0c\u6bd4\u5982\u63d0\u4f9b\u9875\u9762\u670d\u52a1\uff0c\u4f7f\u7528Filter\u7b49\u3002</p> <p>\u5f53\u5e94\u7528\u53ea\u9700\u8981\u63d0\u4f9bREST\u670d\u52a1\uff0c\u5e76\u4e14\u5bf9\u6027\u80fd\u8981\u6c42\u9ad8\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4f7f\u7528\u9ad8\u6027\u80fd\u6a21\u5f0f\u3002</p>"},{"location":"start/deployment-on-cloud.html","title":"Deployment on cloud","text":"<p>\u672c\u7ae0\u8282\u4e3b\u8981\u63cf\u8ff0\u5fae\u670d\u52a1\u53d1\u5e03\u5230\u534e\u4e3a\u516c\u6709\u4e91\u4e0a\u3002\u4e0a\u4e91\u914d\u7f6e\u7684\u57fa\u672c\u539f\u5219\u662f\uff1a\u53ea\u9700\u8981\u5bf9microservice.yaml\u8fdb\u884c\u9002\u5f53\u7684\u914d\u7f6e\uff0c\u4ee5\u53ca\u5728pom\u4e2d\u6dfb\u52a0\u989d\u5916\u7684\u4f9d\u8d56\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u7684\u529f\u80fd\u3002</p>"},{"location":"start/deployment-on-cloud.html#_1","title":"\u4e00\u952e\u5f0f\u914d\u7f6e","text":"<p>\u516c\u6709\u4e91\u7248\u672c\u63d0\u4f9b\u4e86\u4e00\u952e\u5f0f\u7b80\u5316\u914d\u7f6e\u7684\u65b9\u5f0f\uff0c\u8ba9\u57fa\u4e8e\u5f00\u6e90\u7248\u672c\u5f00\u53d1\u7684\u5e94\u7528\u5feb\u901f\u5207\u6362\u4e3a\u4e91\u4e0a\u5e94\u7528\uff0c\u76f4\u63a5\u4f7f\u7528\u516c\u6709\u4e91\u63d0\u4f9b\u7684\u7070\u5ea6\u53d1\u5e03\u3001\u670d\u52a1\u6cbb\u7406\u7b49\u529f\u80fd\u3002</p> <ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;cse-solution-service-engine&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <p>\u5f00\u53d1\u8005\u53ea\u9700\u8981\u914d\u7f6e\u5bf9cse-solution-service-engine\u4f9d\u8d56\uff0c\u5c31\u5b8c\u6210\u4e86\u516c\u6709\u4e91\u7684\u6240\u6709\u914d\u7f6e\u3002\u8fd9\u4e2a\u4f9d\u8d56\u5173\u7cfb\u4e3b\u8981\u7ed9\u5f00\u53d1\u8005\u505a\u4e86\u5982\u4e0b\u4e8b\u60c5\uff1a</p> <ul> <li> <p>\u5f15\u5165\u76f8\u5173\u4f9d\u8d56\u7684\u7ec4\u4ef6</p> </li> <li> <p>\u589e\u52a0\u9ed8\u8ba4\u914d\u7f6e\u9879\u3002\u9ed8\u8ba4\u914d\u7f6e\u5305\u542b\u4e86\u5904\u7406\u94fe\u3001\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u7b49\u3002</p> </li> </ul> <p>\u53ef\u4ee5\u901a\u8fc7\u67e5\u770bpom\u5185\u5bb9\uff0c\u4ee5\u53ca\u8fd9\u4e2ajar\u5305\u91cc\u9762\u7684microservice.yaml\u6587\u4ef6\u67e5\u770b\u5f15\u5165\u7684\u7ec4\u4ef6\u548c\u589e\u52a0\u7684\u914d\u7f6e\u9879\u3002\u5728\u4e0b\u9762\u7684\u7ae0\u8282\u4e2d\uff0c\u8be6\u7ec6\u89e3\u91ca\u4e0a\u4e91\u589e\u52a0\u7684\u7ec4\u4ef6\u4ee5\u53ca\u4ed6\u4eec\u7684\u4f5c\u7528\uff0c\u8ba9\u5f00\u53d1\u8005\u66f4\u52a0\u6df1\u5165\u7684\u4e86\u89e3\u5404\u79cd\u6280\u672f\u7ec6\u8282\u3002</p>"},{"location":"start/deployment-on-cloud.html#_2","title":"\u8fde\u63a5\u670d\u52a1\u4e2d\u5fc3","text":""},{"location":"start/deployment-on-cloud.html#_3","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u670d\u52a1\u4e2d\u5fc3\u5b9e\u73b0\u6ce8\u518c\u548c\u53d1\u73b0\uff0c\u5728FusionStage/ServiceStage\u67e5\u770b\u5fae\u670d\u52a1\u76ee\u5f55\uff0c\u90fd\u9700\u8981\u5fae\u670d\u52a1\u8fde\u63a5\u4e0a\u670d\u52a1\u4e2d\u5fc3\u3002</p>"},{"location":"start/deployment-on-cloud.html#_4","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5982\u679c\u8fde\u63a5\u670d\u52a1\u4e2d\u5fc3\u4f7f\u7528https\u534f\u8bae/AK/SK\u8ba4\u8bc1\uff0c\u8be5jar\u4f9d\u8d56\u5fc5\u9009\u3002\u5982\u679c\u662fhttp\u534f\u8bae\uff0c\u5e76\u4e0d\u5305\u542btoken\u9a8c\u8bc1\uff0c\u5219\u65e0\u9700\u5f15\u5165\u3002</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;foundation-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6e\u9879(microservice.yaml\uff09</li> </ul> <pre><code>servicecomb:\n service:\n  registry:\n   address: https://servicecomb.cn-north-1.myhwclouds.com:443    #\u6839\u636e\u5b9e\u9645\u5730\u5740\u914d\u7f6e\u670d\u52a1\u4e2d\u5fc3\u5730\u5740\n</code></pre> <p>\u8be5\u914d\u7f6e\u9879\u914d\u7f6e\u4e86\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4e2d\uff0caddress\u53ef\u4ee5\u5728\u516c\u6709\u4e91\u201c\u5de5\u5177\u548c\u6848\u4f8b\u201d\u76ee\u5f55\u4e0b\u67e5\u5230\u5bf9\u5e94\u7684\u670d\u52a1\u4e2d\u5fc3\u5730\u5740\uff0c\u4fee\u6539\u534f\u8bae\uff08http/https\uff09\u3001\u4e3b\u673a\u540d\uff08\u53ef\u80fd\u4f7f\u7528\u57df\u540d\uff09\u548c\u7aef\u53e3\u53f7\u3002</p>"},{"location":"start/deployment-on-cloud.html#_5","title":"\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3","text":""},{"location":"start/deployment-on-cloud.html#_6","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u73b0\u914d\u7f6e\u4e0b\u53d1\uff0c\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3\u662f\u4f7f\u7528\u6cbb\u7406\u3001\u7070\u5ea6\u53d1\u5e03\u7b49\u529f\u80fd\u7684\u524d\u53f0\u3002</p>"},{"location":"start/deployment-on-cloud.html#_7","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5982\u679c\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3\u4f7f\u7528https\u534f\u8bae/AK/SK\u8ba4\u8bc1\uff0c\u8be5jar\u4f9d\u8d56\u5fc5\u9009\u3002\u5982\u679c\u662fhttp\u534f\u8bae\uff0c\u5e76\u4e0d\u5305\u542btoken\u9a8c\u8bc1\uff0c\u5219\u65e0\u9700\u5f15\u5165\u3002</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;foundation-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <p>\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3\u8be5jar\u5fc5\u9009</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;foundation-config-cc&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u542f\u7528\u914d\u7f6e(microservice.yaml\uff09</li> </ul> <pre><code>servicecomb:\n config:\n  client:\n   serverUri: https://servicecomb.cn-north-1.myhwclouds.com:443\n</code></pre> <p>\u8be5\u914d\u7f6e\u9879\u914d\u7f6e\u4e86\u914d\u7f6e\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4e2d\uff0caddress\u53ef\u4ee5\u5728\u516c\u6709\u4e91\u201c\u5de5\u5177\u548c\u6848\u4f8b\u201d\u76ee\u5f55\u4e0b\u67e5\u5230\u5bf9\u5e94\u7684\u914d\u7f6e\u4e2d\u5fc3\u5730\u5740\uff0c\u4fee\u6539\u534f\u8bae\uff08http/https\uff09\u3001\u4e3b\u673a\u540d\uff08\u53ef\u80fd\u4f7f\u7528\u57df\u540d\uff09\u548c\u7aef\u53e3\u53f7\u3002</p>"},{"location":"start/deployment-on-cloud.html#_8","title":"\u4f7f\u7528\u670d\u52a1\u6cbb\u7406","text":""},{"location":"start/deployment-on-cloud.html#_9","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u670d\u52a1\u6cbb\u7406\u4e3b\u8981\u6d89\u53ca\u201c\u9694\u79bb\u201d\u3001\u201c\u7194\u65ad\u201d\u3001\u201c\u5bb9\u9519\u201d\u3001\u201c\u9650\u6d41\u201d\u3001\u201c\u8d1f\u8f7d\u5747\u8861\u201d\u7b49\u3002</p>"},{"location":"start/deployment-on-cloud.html#_10","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>\u914d\u7f6e\u9879(microservice.yaml\uff09</p> <p>\u9700\u8981\u589e\u52a0\u4e0b\u9762\u6cbb\u7406\u76f8\u5173\u7684handler\uff0c\u624d\u80fd\u5728\u4ece\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u65f6\u83b7\u53d6\u6cbb\u7406\u6570\u636e\u3002</p> <pre><code>servicecomb:\n handler:\n  chain:\n   Provider:\n    default: bizkeeper-provider,qps-flowcontrol-provider\n   Consumer:\n    default: bizkeeper-consumer,loadbalance,qps-flowcontrol-consumer\n</code></pre>"},{"location":"start/deployment-on-cloud.html#_11","title":"\u4f7f\u7528\u6545\u969c\u6ce8\u5165","text":""},{"location":"start/deployment-on-cloud.html#_12","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u6545\u969c\u6ce8\u5165\u4e3b\u8981\u63d0\u4f9b\u4e86\u5ef6\u65f6\u3001\u9519\u8bef\u4e24\u79cd\u7c7b\u578b\u6545\u969c\u3002</p>"},{"location":"start/deployment-on-cloud.html#_13","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>\u914d\u7f6e\u9879(microservice.yaml\uff09</p> <p>\u9700\u8981\u589e\u52a0\u4e0b\u9762\u6cbb\u7406\u76f8\u5173\u7684handler\u3002</p> <pre><code>servicecomb:\n handler:\n  chain:\n   Consumer:\n    default: loadbalance,fault-injection-consumer\n</code></pre>"},{"location":"start/deployment-on-cloud.html#_14","title":"\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03","text":""},{"location":"start/deployment-on-cloud.html#_15","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u8be5\u529f\u80fd\u5bf9\u5e94\u4e8e\u5fae\u670d\u52a1\u76ee\u5f55\u7070\u5ea6\u53d1\u5e03\u529f\u80fd\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u901a\u8fc7\u4e0b\u53d1\u89c4\u5219\uff0c\u5bf9\u670d\u52a1\u8fdb\u884c\u7070\u5ea6\u53d1\u5e03\u7ba1\u7406\u3002</p>"},{"location":"start/deployment-on-cloud.html#_16","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5f15\u5165\u5fc5\u8981\u7684jar\u5305\u3002</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;cse-handler-cloud-extension&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5728Consumer\u7aef\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861(microservice.yaml\uff09</li> </ul> <p>\u5728\u8d1f\u8f7d\u5747\u8861\u6a21\u5757\u542f\u7528\u4e86\u7070\u5ea6\u53d1\u5e03\u7684filter\u3002</p> <pre><code>servicecomb:\n loadbalance:\n  serverListFilters: darklaunch\n  serverListFilter:\n    darklaunch:\n      className: com.huawei.paas.darklaunch.DarklaunchServerListFilter\n</code></pre>"},{"location":"start/deployment-on-cloud.html#_17","title":"\u4f7f\u7528\u8c03\u7528\u94fe","text":""},{"location":"start/deployment-on-cloud.html#_18","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u534e\u4e3a\u4e91\u63d0\u4f9b\u4e86\u4e1a\u52a1\u65e0\u4fb5\u5165\u7684\u57cb\u70b9\u529f\u80fdAPM\u3002\u53ea\u9700\u8981\u901a\u8fc7\u534e\u4e3a\u4e91\u90e8\u7f72\u5bb9\u5668\u5e94\u7528\uff0c\u5e76\u9009\u62e9\u542f\u7528\u8c03\u7528\u94fe\u76d1\u63a7\u529f\u80fd\uff0c\u5373\u53ef\u4f7f\u7528\u8c03\u7528\u94fe\u670d\u52a1\u3002</p>"},{"location":"start/deployment-on-cloud.html#_19","title":"\u5fae\u670d\u52a1\u8fd0\u884c\u6570\u636e\u4e0a\u62a5","text":""},{"location":"start/deployment-on-cloud.html#_20","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u5fae\u670d\u52a1\u53ef\u4ee5\u5c06\u81ea\u5df1\u7684\u8fd0\u884c\u6570\u636e\u4e0a\u62a5\u7ed9Dashboard\u670d\u52a1\uff0c\u5728\u516c\u6709\u4e91\u4e0a\u67e5\u770b\u4eea\u8868\u76d8\u6570\u636e\u3001\u5206\u5e03\u5f0f\u4e8b\u52a1\u6570\u636e\u7b49\u3002\u8be5\u7ae0\u8282\u662f\u63cf\u8ff0\u5982\u4f55\u542f\u7528\u5fae\u670d\u52a1\u6570\u636e\u4e0a\u62a5\u529f\u80fd\u3002</p>"},{"location":"start/deployment-on-cloud.html#_21","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5f15\u5165\u5fc5\u8981\u7684jar\u5305\u3002</p> <pre><code>&lt;dependency&gt;\n\u3000\u3000&lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;\n\u3000\u3000&lt;artifactId&gt;cse-handler-cloud-extension&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6ehandler</li> </ul> <p>\u4eea\u8868\u76d8\u6570\u636e\u4f9d\u8d56\u4e8e\u4e24\u4e2ahandler\uff0c\u4e00\u4e2abizkeeper-provider\uff08\u5ba2\u6237\u7aef\u4e3abizkeeper-consumer\uff09\uff0c\u4e00\u4e2aperf-stats\uff0c\u6240\u4ee5\u5bf9\u5e94\u7684pom\u4f9d\u8d56\u9700\u8981\u5148\u5f15\u5165\u3002</p> <pre><code>servicecomb:  \n  handler:\n    chain:\n      Provider:\n        default: bizkeeper-provider,perf-stats,tracing-provider,sla-provider\n      Consumer:\n        default: bizkeeper-consumer,loadbalance,perf-stats,tracing-consumer,sla-consumer\n</code></pre> <ul> <li>\u914d\u7f6e\u4e0a\u62a5monitor\u5730\u5740</li> </ul> <p>TenantLB_ADDRESS\u4e3a\u5171\u6709\u4e91\u79df\u6237\u7ba1\u7406\u9762\u63a5\u5165\u5730\u5740\uff0c\u9ed8\u8ba4\u662f100.125.1.34\u3002</p> <pre><code>servicecomb:\n  service:\n    registry:\n      address: https://${TenantLB_ADDRESS}:30100\n  monitor:\n    client:\n      serverUri: https://${TenantLB_ADDRESS}:30109\n</code></pre>"},{"location":"start/deployment-on-cloud.html#tcc","title":"\u5206\u5e03\u5f0f\u4e8b\u52a1: TCC","text":""},{"location":"start/deployment-on-cloud.html#_22","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u4e3b\u8981\u5b9e\u73b0\u57fa\u4e8eTCC\u534f\u8bae\u7684\u5206\u5e03\u5f0f\u670d\u52a1\u95f4\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u65b9\u6848\uff0c\u4fdd\u969c\u4e00\u822c\u573a\u666f\u4e0b\u7684\u5e94\u7528\u4e00\u81f4\u6027\u9700\u6c42\uff0c\u5e76\u53ef\u4ee5\u5728FusionStage/ServiceStage\u5206\u5e03\u5f0f\u4e8b\u52a1\u754c\u9762\u67e5\u770b\u4e8b\u52a1\u8be6\u7ec6\u4fe1\u606f\u3002</p>"},{"location":"start/deployment-on-cloud.html#_23","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5f15\u5165\u5fc5\u8981\u7684jar\u5305</p> <pre><code>&lt;dependency&gt;\n\u3000\u3000&lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;\n\u3000\u3000&lt;artifactId&gt;cse-handler-tcc&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6e\u9879\u53c2\u8003</li> </ul> <p>\u9700\u8981\u589e\u52a0\u4e0b\u9762\u4e8b\u52a1\u76f8\u5173\u7684handler\uff0c\u624d\u80fd\u5728\u4ece\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u65f6\u83b7\u53d6\u6cbb\u7406\u6570\u636e\u3002</p> <pre><code>servicecomb:\n handler:\n  chain:\n   Provider:\n    default: tcc-client,bizkeeper-provider\n   Consumer:\n    default: tcc-server,bizkeeper-consumer,loadbalance\n</code></pre>"},{"location":"start/design.html","title":"Java Chassis \u8bbe\u8ba1\u53c2\u8003","text":"<p>Java Chassis \u7ed3\u5408\u5927\u91cf\u5fae\u670d\u52a1\u5f00\u53d1\u5b9e\u8df5\uff0c\u5b9e\u73b0\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f \uff0c \u5e2e \u52a9\u5f00\u53d1\u8005\u66f4\u52a0\u7b80\u5355\u3001\u5feb\u901f\u7684\u6784\u5efa\u5fae\u670d\u52a1\u5e94\u7528\u3002</p> <p>Java Chassis\u4e3b\u8981\u5b9e\u73b0\u4e86\u5982\u4e0b\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\u529f\u80fd\uff1a</p> <ul> <li>\u5fae\u670d\u52a1\u4e4b\u95f4\u7684 RPC \u901a\u4fe1\u3002Java Chassis \u63d0\u4f9b\u4e86\u975e\u5e38\u9ad8\u6548\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u5e76\u652f\u6301\u591a\u534f\u8bae\u6269\u5c55\uff0c\u6bd4\u5982\u6700\u5feb\u7684 REST \u901a\u4fe1\u6a21\u5f0f\u5b9e\u73b0\uff0c \u5f02\u6b65\u7684\u4e8c\u8fdb\u5236\u901a\u4fe1\u6a21\u5f0f HIGHWAY \u3002 </li> <li>\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u6ce8\u518c\u548c\u670d\u52a1\u53d1\u73b0\u80fd\u529b\u3002Java Chassis\u652f\u6301\u4f7f\u7528\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\uff0c\u5b9e\u73b0\u5206\u5e03\u5f0f\u3001\u591a\u96c6\u7fa4\u670d\u52a1\u53d1\u73b0\u80fd\u529b\uff0c\u4ee5\u53ca\u5fae\u670d\u52a1\u5143\u6570\u636e\u7ba1\u7406\u80fd\u529b\u3002</li> <li>\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u914d\u7f6e\u7ba1\u7406\u80fd\u529b\u3002Java Chassis\u652f\u6301\u4f7f\u7528\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\uff0c\u5b9e\u73b0\u52a8\u6001\u3001\u96c6\u4e2d\u7684\u914d\u7f6e\u7ba1\u7406\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528Spring Boot\u539f\u751fAPI\u8bbf\u95ee\u914d\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528Java Chassis\u65b0\u589eAPI\uff0c \u6ee1\u8db3\u914d\u7f6e\u53d8\u66f4\u76d1\u542c\u3001\u4f18\u5148\u7ea7\u914d\u7f6e\u7b49\u9ad8\u9636\u5f00\u53d1\u80fd\u529b\u3002  </li> <li>\u5206\u5e03\u5f0f\u6545\u969c\u7ba1\u7406\uff0c\u670d\u52a1\u5bb9\u9519\u3001\u9694\u79bb\u3001\u7194\u65ad\u3002 \u5185\u7f6e\u6545\u969c\u5b9e\u4f8b\u9694\u79bb\u3001\u6545\u969c\u91cd\u8bd5\u3001\u6d41\u91cf\u63a7\u5236\u7b49\u8fc7\u8f7d\u9632\u62a4\u548c\u6545\u969c\u5904\u7406\u80fd\u529b\u3002</li> <li>\u5206\u5e03\u5f0f\u65e5\u5fd7\u8ffd\u8e2a\u3002 \u63d0\u4f9b Open Tracing \u652f\u6301\u3002  </li> </ul> <p>\u6b64\u5916\u8fd8\u6709\u6027\u80fd\u76d1\u63a7\u3001\u65e5\u5fd7\u7ba1\u7406\u3001\u5065\u5eb7\u68c0\u67e5\u7b49\u529f\u80fd\u3002 Java Chassis \u91c7\u7528\u4f18\u96c5\u7684\u8bbe\u8ba1\u6a21\u5f0f\uff0c\u5b9e\u73b0\u4e86\u4e0a\u8ff0\u6240\u6709\u7684\u6838\u5fc3\u90e8\u4ef6\u7684\u529f\u80fd\uff0c\u5e76\u4e14\u4f7f\u5f97\u8fd9\u4e9b\u529f\u80fd\u5f00\u7bb1\u5373\u7528\u3002\u4f7f\u7528 Java Chassis , \u5f00\u53d1\u8005\u80fd\u591f\u66f4\u52a0\u805a\u7126\u4e8e\u4e1a\u52a1\u529f\u80fd\u5f00\u53d1\uff0c\u5feb\u901f\u7684\u6784\u5efa\u5546\u4e1a\u53ef\u7528\u7684\u5fae\u670d\u52a1\u5e94\u7528\u3002 </p>"},{"location":"start/design.html#java-chassis_1","title":"Java Chassis \u8f6f\u4ef6\u5de5\u7a0b\u5b9e\u8df5","text":"<p>Java Chassis \u5728\u8bbe\u8ba1\u7684\u65f6\u5019\uff0c \u4e0d\u4ec5\u8003\u8651\u4e86\u5982\u4f55\u66f4\u597d\u7684\u4f7f\u7528\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\uff0c \u8fd8\u628a\u4f18\u79c0\u7684\u8f6f\u4ef6\u5de5\u7a0b\u601d\u60f3\u878d\u5408\u8fdb\u6765\uff0c \u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u7684\u7ba1\u7406\u4fe1\u606f \u8d44\u4ea7\uff0c \u63d0\u5347\u8f6f\u4ef6\u5de5\u7a0b\u7ba1\u7406\u80fd\u529b\u3002 </p> <p>\u4e0b\u56fe\u7b80\u5355\u7684\u63cf\u8ff0 \u201c\u4ee5\u5951\u7ea6\u4e3a\u4e2d\u5fc3\u201d \u7684\u6838\u5fc3\u6982\u5ff5\u3002 </p> <p> </p> <p>\u53ef\u4ee5\u901a\u8fc7 Invocation \u83b7\u53d6\u5230 Java Chassis \u7684\u5951\u7ea6\u7b49\u6e90\u6570\u636e\u4fe1\u606f\uff0c \u662f Java Chassis \u7684\u4e00\u4e2a\u6838\u5fc3\u5bf9\u8c61\u3002 </p> <p>\u53ef\u4ee5\u9605\u8bfb \u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u5de5\u7a0b\u5b9e\u8df5-\u4ee5\u5951\u7ea6\u4e3a\u4e2d\u5fc3 \u4e86\u89e3\u5951\u7ea6\u5982\u4f55\u5e94\u7528\u7684\u66f4\u591a\u5185\u5bb9\u3002 \u5de5\u7a0b \u5b9e\u8df5\u4e0d\u662f Java Chassis \u7684\u5f3a\u5236\u7ea6\u675f\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u7ed3\u5408\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u9009\u62e9\u3002 </p>"},{"location":"start/design.html#java-chassis_2","title":"Java Chassis \u8fd0\u884c\u65f6\u67b6\u6784","text":"<p>\u4e3a\u4e86\u652f\u6301\u8f6f\u4ef6\u5de5\u7a0b\u5b9e\u8df5\uff0c Java Chassis \u7684\u8fd0\u884c\u65f6\u67b6\u6784\u662f\u4e00\u4e2a\u54d1\u94c3\u7ed3\u6784\uff0c \u4e24\u7aef\u5206\u522b\u662f\u201c\u7f16\u7a0b\u6a21\u578b\u201d \u548c \u201c\u901a\u4fe1\u6a21\u578b\u201d\uff0c \u4e2d\u95f4\u662f\u201c\u8fd0\u884c\u6a21\u578b\u201d\u3002 </p> <p></p> <p>\u201c\u7f16\u7a0b\u6a21\u578b\u201d \u9762\u5411\u5f00\u53d1\u8005\u5199\u670d\u52a1\u63a5\u53e3\u7684\u4e60\u60ef\uff0c \u201c\u901a\u4fe1\u6a21\u578b\u201d \u9762\u5411\u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u9ad8\u6548\u7f16\u7801\u548c\u901a\u4fe1\uff0c \u201c\u8fd0\u884c\u6a21\u578b\u201d \u57fa\u4e8e\u201c\u5951\u7ea6\u201d\uff0c \u63d0\u4f9b\u4e00\u79cd\u670d\u52a1\u65e0\u5173 \u7684\u63d2\u62d4\u673a\u5236\uff0c\u80fd\u591f\u8ba9\u5f00\u53d1\u8005\u72ec\u7acb\u4e8e\u4e1a\u52a1\u5b9e\u73b0\u5f00\u53d1\u6cbb\u7406\u529f\u80fd\uff0c\u5e76\u4e14\u7075\u6d3b\u7684\u79fb\u9664\u548c\u589e\u52a0\u529f\u80fd\uff0c\u4ee5\u53ca\u8c03\u6574\u8fd9\u4e9b\u6cbb\u7406\u529f\u80fd\u7684\u5904\u7406\u987a\u5e8f\u3002 </p> <p>\u201c\u8fd0\u884c\u6a21\u578b\u201d \u7684\u6838\u5fc3\u62bd\u8c61\u63a5\u53e3\u662f Filter \uff0c \u8fd9\u4e2a\u63a5\u53e3\u662f\u4e00\u4e2a\u5f02\u6b65\u7684\u5b9a\u4e49\uff0c Java Chassis \u8fd0\u884c\u65f6\u6a21\u578b\u91c7\u7528\u7eaf\u5f02\u6b65\u7684\u5b9e\u73b0\uff0c \u8ba9\u6574\u4e2a\u7cfb\u7edf\u8fd0\u884c\u975e\u5e38 \u9ad8\u6548\u3002 </p> <p>\u53ef\u4ee5\u9605\u8bfb Apache ServiceComb \u7684\u5f00\u653e\u6027\u8bbe\u8ba1 \u4e86\u89e3 Java Chassis \u8fd0\u884c\u65f6\u67b6\u6784\u7684\u5176\u4ed6\u8bbe\u8ba1\u8003\u8651\u3002 </p>"},{"location":"start/design.html#java-chassis_3","title":"Java Chassis \u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784","text":"<p>\u6709\u5f88\u591a\u4f18\u79c0\u7684\u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\u5b9e\u8df5\u3002 \u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\u5e94\u8be5\u5145\u5206\u8003\u8651\u7cfb\u7edf\u7684\u5f39\u6027\uff0c \u80fd\u591f\u9488\u5bf9\u7cfb\u7edf\u7684\u6027\u80fd\u74f6\u9888\u70b9\u8fdb\u884c\u6269\u5bb9\uff0c \u9700\u8981\u8003\u8651\u5e94\u7528\u7cfb\u7edf\u5185\u90e8\u5fae\u670d\u52a1 \u62c6\u5206\u7684\u7075\u6d3b\u6027\uff0c \u4e3a\u4e1a\u52a1\u7684\u53d8\u66f4\u505a\u597d\u53ca\u65f6\u8c03\u6574\u3002 </p> <p>\u4e0b\u56fe\u5c55\u793a\u4e86\u4e00\u4e2a\u5178\u578b\u7684\u5e94\u7528\u67b6\u6784\u3002 \u63a5\u5165\u5c42\u91c7\u7528\u4e00\u4e9b\u7f51\u7edc\u57fa\u7840\u8bbe\u65bd\uff0c\u6bd4\u5982 DNS \uff0c \u6d6e\u52a8 IP \u7b49\u65b9\u4fbf\u7528\u6237\u91c7\u7528\u7edf\u4e00\u7684 URL \u8bbf\u95ee\u7cfb\u7edf\uff0c \u6216\u8005\u91c7\u7528 API \u7f51\u5173\u7b49 \u57fa\u7840\u8bbe\u65bd\u5b9e\u73b0\u7cfb\u7edf\u7684\u80fd\u529b\u5f00\u653e\u3002 \u4e1a\u52a1\u5c42\u5305\u542b\u5e94\u7528\u7f51\u5173\uff0c \u8fdb\u884c\u4e00\u4e9b\u8ba4\u8bc1\u9274\u6743\u3001 \u5ba1\u8ba1\u7b49\u529f\u80fd\uff0c \u7ecf\u8fc7\u8ba4\u8bc1\u7684\u8bf7\u6c42\u88ab\u5e94\u7528\u7f51\u5173\u8f6c\u53d1\u5230\u5fae\u670d\u52a1\u7cfb\u7edf\u5185\u90e8\u3002 </p> <p></p> <p>\u53ef\u4ee5\u9605\u8bfb\u5355\u4f53\u5e94\u7528\u5fae\u670d\u52a1\u6539\u9020\u5b9e\u8df5 \uff0c \u4e86\u89e3\u4e3a\u4ec0\u4e48\u63a8\u8350\u8fd9\u6837\u7684\u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\u3002 Java Chassis \u4e3a\u5e94\u7528\u67b6\u6784\u63d0\u4f9b\u4e86\u63a5\u5165\u7f51\u5173\u670d\u52a1 Edge Servcie\u3002 </p>"},{"location":"start/design.html#java-chassis_4","title":"Java Chassis \u5fae\u670d\u52a1\u6280\u672f\u9009\u578b","text":"<p>Java \u8bed\u8a00\u62e5\u6709\u5e9e\u5927\u7684\u6280\u672f\u4f53\u7cfb\u548c\u6807\u51c6\uff0c \u5e76\u4e14\u5e7f\u6cdb\u7684\u5e94\u7528\u5230\u4e1a\u52a1\u7684\u7cfb\u7edf\u7684\u5404\u4e2a\u65b9\u9762\u3002 \u548c Java Chassis \u6709\u7d27\u5bc6\u5173\u7cfb\u7684\u6280\u672f\u5305\u62ec JSP/Servlet \u6807\u51c6 \u548c\u5bb9\u5668\uff0c Spring \u548c Spring Boot \u6280\u672f\uff0c \u4ee5\u53ca Spring Boot \u63d0\u4f9b\u7684 REST \u5f00\u53d1\u6846\u67b6 Spring MVC\u3002 </p>"},{"location":"start/design.html#java-chassis-servlet","title":"Java Chassis \u548c Servlet \u6807\u51c6","text":"<p>Java Chassis \u57fa\u4e8e Vert.x \u5b9e\u73b0\u4e86 REST \u548c HIGHWAY \u7b49 RPC \u534f\u8bae\u7684\u5b9e\u73b0\uff0c \u5728\u6027\u80fd\u8981\u6c42\u9ad8\u7684\u6838\u5fc3\u4e1a\u52a1\u573a\u666f\uff0c \u4f7f\u7528\u8fd9\u79cd\u8f7b\u91cf\u7ea7\u7684\u6280\u672f\u975e\u5e38\u5408\u9002\u3002 \u8fd9\u79cd\u573a\u666f\u4e0b\uff0c \u6ca1\u6709\u5b8c\u6574\u7684\u5b9e\u73b0 JSP/Servlet \u76f8\u5173\u63a5\u53e3\uff0c \u6bd4\u5982 HttpServletRequest,  HttpServletResponse \u7b49\u3002 servicecomb-samples  \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u4f7f\u7528\u8fd9\u79cd\u90e8\u7f72\u6a21\u5f0f\u7684\u4f8b\u5b50\u3002 \u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u8df5-\u8f7b\u91cf\u7ea7\u67b6\u6784\u6280\u672f\u9009\u578b \u63d0\u4f9b\u4e86 \u4e00\u4e9b\u5e38\u89c1\u7684\u7ec4\u4ef6\u7684\u9009\u578b\u53c2\u8003\u3002 </p> <p>Java Chassis \u652f\u6301 Servlet \u6807\u51c6\u7684\u5bb9\u5668\u3002 \u5728\u8fd9\u4e2a\u573a\u666f\u4e0b\uff0c Java Chassis \u7684\u6838\u5fc3\u90e8\u4ef6\u5c31\u662f\u4e00\u4e2a Servlet \uff0c \u5728\u8fd9\u4e2a Servlet \u91cc\u9762 \u5b9e\u73b0\u4e86 Java Chassis \u7684\u6838\u5fc3 RPC \u7cfb\u7edf\u3002 \u91c7\u7528 JSP/Servlet \u5bb9\u5668\u8fd0\u884c Java Chassis, \u4e1a\u52a1\u8bf7\u6c42\u9996\u5148\u7ecf\u8fc7\u5bb9\u5668\u7684 HTTP \u5b9e\u73b0\uff0c \u7136\u540e\u7ecf\u8fc7 Filter\uff0c  \u8fdb\u5165 Java Chassis \u7684 RestServlet \uff0c \u8fd0\u884c Java Chassis \u7684\u8fd0\u884c\u65f6\u6a21\u578b\uff0c \u8fdb\u5165\u4e1a\u52a1\u63a5\u53e3\u5904\u7406\u3002 \u53ef\u4ee5\u53c2\u8003  REST over Servlet \u4e86\u89e3\u5982\u4f55\u5728 Servlet \u5bb9\u5668\u4e2d\u52a0\u8f7d Java Chassis \u7684 Servlet\u3002  </p>"},{"location":"start/design.html#java-chassis-spring-boot","title":"Java Chassis \u548c Spring Boot","text":"<p>Java Chassis \u5efa\u7acb\u5728 Spring Boot\u6280\u672f\u4e4b\u4e0a\uff0c\u6838\u5fc3\u90e8\u4ef6\u90fd\u901a\u8fc7Spring Boot\u6280\u672f\u63d0\u4f9b\u5b9e\u73b0\u548c\u6269\u5c55\u3002 </p> <p>Spring Boot \u63d0\u4f9b\u4e86\u591a\u79cd\u8fd0\u884c\u73af\u5883\u652f\u6301\uff0c WebApplicationType.NONE, WebApplicationType.SERVLET, WebApplicationType.REACTIVE\uff0c   Java Chassis \u53ef\u4ee5\u96c6\u6210 NONE, SERVLET \u4e24\u79cd\u6a21\u5f0f\u3002 \u5728 NONE \u6a21\u5f0f\u4e0b\u96c6\u6210 Java Chassis\uff0c \u548c Spring Boot \u81ea\u8eab\u7684  REACTIVE \u975e\u5e38\u7c7b\u4f3c\uff0c  \u4f46\u662f\u6bd4 Spring Boot \u7684 REACTIVE \u8fd0\u884c\u66f4\u52a0\u9ad8\u6548\uff0c \u5e76\u4e14\u652f\u6301\u65e9\u671f\u7684 RestTemplate API \u548c RPC API \u6765\u8bbf\u95ee\u670d\u52a1\u3002 </p> <p>\u53ef\u4ee5\u9605\u8bfb\u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u8df5-Spring Boot\u6280\u672f\u6808\u9009\u578b \u4e86\u89e3\u4e00\u4e9b\u5e38\u7528\u7684 Spring Boot  \u5f00\u53d1\u7684\u7ec4\u4ef6\u9009\u578b\u53c2\u8003\u3002 servicecomb-samples \u63d0\u4f9b  \u4e86 WebApplicationType.SERVLET \u4f7f\u7528 Spring Boot \u7684\u5b8c\u6574\u4f8b\u5b50\u3002   WebApplicationType.NONE \u6a21\u5f0f\u7b49\u4ef7\u4e8e\u8f7b\u91cf\u7ea7\u6a21\u5f0f\uff0c \u4f46\u662f\u53ef\u4ee5\u4f7f\u7528 Spring Boot \u7684\u6253\u5305\u529f\u80fd\u4ee5\u53ca\u5176\u4ed6\u5f00\u53d1\u7ec4\u4ef6\u652f\u6301\u3002 </p> <ul> <li>Spring MVC </li> </ul> <p>Java Chassis \u7ee7\u627f\u4e86 Spring MVC \u7684\u63a5\u53e3\u8bbe\u8ba1\uff0c \u63d0\u4f9b\u4e86 Provider \u548c Consumer \u5c42\u9762\u7684 API \u63a5\u53e3\u6765\u5b9a\u4e49 REST \u63a5\u53e3\u548c\u8bbf\u95ee REST \u63a5\u53e3\u3002 \u4f46\u662f\u9700\u8981  \u6ce8\u610f\u7684\u662f\uff0c \u4e24\u4e2a\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u5b9e\u73b0\uff0c \u5b9e\u73b0\u673a\u5236\u4e5f\u4e0d\u4e00\u6837\u3002 Spring Boot \u4e3b\u8981\u57fa\u4e8e Servlet\uff0c \u5b9e\u73b0\u4e86 MVC \u6a21\u5f0f\uff0c \u4e0d\u4ec5\u53ef\u4ee5\u5f00\u53d1 REST \u63a5\u53e3\uff0c \u8fd8\u53ef\u4ee5  \u5f00\u53d1\u5176\u4ed6 HTTP \u529f\u80fd\uff0c \u6bd4\u5982\u91cd\u5b9a\u5411\uff0c \u8fd4\u56de HTML \u9875\u9762\u7b49\uff0c \u8fd8\u53ef\u4ee5\u901a\u8fc7 @ExceptionHandler\uff0c @ControllerAdvice \u7b49\u673a\u5236\u62e6\u622a Servlet \u8bf7\u6c42\uff0c\u8fdb\u884c  \u5f02\u5e38\u5904\u7406\u3002 Java Chassis \u53ea\u5b9e\u73b0\u4e86 REST \u670d\u52a1\u5b9a\u4e49\u548c\u8c03\u7528\uff0c \u5e76\u4e14\u5728\u5f02\u5e38\u5904\u7406\u673a\u5236\u548c\u8bf7\u6c42\u62e6\u622a\u673a\u5236\u4e0a\u4e0d\u4e00\u6837\u3002 \u5f00\u53d1\u7ec6\u8282\u4e0a\u7684\u5dee\u5f02\u53ef\u4ee5\u901a\u8fc7  \u7528SpringMVC \u5f00\u53d1\u5fae\u670d\u52a1 \u8fdb\u884c\u4e86\u89e3\u3002  </p>"},{"location":"start/design.html#java-chassis-spring-cloud","title":"Java Chassis \u4e0e Spring Cloud","text":"<p>Java Chassis \u548c Spring Cloud \u90fd\u5b9e\u73b0\u4e86\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\uff0c \u76f8\u6bd4\u800c\u8a00\uff0c Java Chassis \u662f\u4e00\u4e2a\u66f4\u52a0\u7d27\u51d1\u7684\u5b9e\u73b0\uff0c \u5f00\u7bb1\u5373\u7528\uff0c \u800c Spring Cloud \u5219\u662f \u76f8\u5bf9\u677e\u6563\u7684\u5b9e\u73b0\uff0c \u901a\u5e38\u9700\u8981\u7ed3\u5408\u5f88\u591a\u7b2c\u4e09\u65b9\u7684\u7ec4\u4ef6\u624d\u80fd\u591f\u5b8c\u6210\u7aef\u5230\u7aef\u7684\u5fae\u670d\u52a1\u5f00\u53d1\u3002 </p> <p>\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\u5173\u6ce8\u5fae\u670d\u52a1\u5185\u90e8\u548c\u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u8bbe\u8ba1\uff0c \u4e5f\u5173\u6ce8\u5fae\u670d\u52a1\u4e0e\u5fae\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u4e4b\u95f4\u7684\u5173\u7cfb\u3002 Java Chassis \u5fae\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u5305\u62ec\u670d\u52a1\u6ce8\u518c\u548c\u53d1\u73b0\uff0c \u670d\u52a1\u914d\u7f6e\u7ba1\u7406\uff0c \u7070\u5ea6\u53d1\u5e03\u548c\u5951\u7ea6\u7ba1\u7406\u7b49\u529f\u80fd\u3002 Spring Cloud \u53ef\u4ee5\u4f7f\u7528 spring-cloud-huawei  \u6765\u4f7f\u7528 Java Chassis \u76f8\u5173\u7684\u5fae\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u3002 </p> <p></p> <p>\u53ef\u4ee5\u9605\u8bfb\u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u8df5-Spring Cloud\u6280\u672f\u6808\u9009\u578b \u4e86\u89e3 Java Chassis \u548c Spring Cloud \u7ec4\u4ef6\u9009\u578b\u4e0a\u7684\u4e00\u4e9b\u5dee\u5f02\u3002 </p>"},{"location":"start/development-environment.html","title":"\u5b89\u88c5\u672c\u5730\u5f00\u53d1\u73af\u5883","text":"<p>\u5e94\u7528\u5f00\u53d1\u73af\u5883\u6240\u9700\u5b89\u88c5\u7684\u5de5\u5177\u5305\u62ecJDK\u3001Maven\u3001Eclipse \u548c IDEA \u3002\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u4e86\u8fd9\u4e9b\u5f00\u53d1\u5de5\u5177\uff0c\u8bf7\u8df3\u8fc7\u672c\u8282\u3002</p>"},{"location":"start/development-environment.html#jdk","title":"JDK\u7ea6\u675f\u53ca\u5b89\u88c5\u6b65\u9aa4","text":"<p>1.JDK\u7248\u672c</p> <p>JDK \u7248\u672c\u8981\u6c42 17 \u4ee5\u4e0a\u3002</p> <p>2.JDK\u4e0b\u8f7d</p> <p>\u8bf7\u5230JDK 17 \u7248\u672c\u7684\u5b98\u65b9\u5730\u5740\u4e0b\u8f7d\u3002</p> <p>3.JDK\u5b89\u88c5</p> <p>\u5728\u5b98\u7f51\u4e0b\u8f7dJDK\u5b89\u88c5\u5305\u540e\uff0c\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u8def\u5f84\u5b89\u88c5JDK\u3002</p> <p>\u8fd9\u91cc\u4ee5windows\u7cfb\u7edf\u4e3a\u4f8b\uff1a</p> <p>\u8bbe\u7f6eJAVA_HOME\u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411Java\u5b89\u88c5\u76ee\u5f55\u3002\u5c06%JAVA_HOME%\\bin\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84path\u4e2d\u3002\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u4f7f\u7528java -version\u547d\u4ee4\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0cwindows\u73af\u5883\u4e0b\u56de\u663e\u5982\u4e0b\uff1a</p> <pre><code>C:\\&gt; java -version      \njava version \"17.0.5\" 2022-10-18 LTS\nJava(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)\nJava HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)\n</code></pre>"},{"location":"start/development-environment.html#maven","title":"Maven\u5b89\u88c5\u6b65\u9aa4","text":"<p>Maven\u662f\u4e00\u6b3e\u96c6\u9879\u76ee\u7ba1\u7406\u3001\u4ee3\u7801\u7f16\u8bd1\u3001\u5de5\u7a0b\u7ba1\u7406\u7b49\u7b49\u80fd\u529b\u4e8e\u4e00\u4f53\u7684\u5f00\u53d1\u5de5\u5177\u3002</p>"},{"location":"start/development-environment.html#_2","title":"\u524d\u63d0\u6761\u4ef6","text":"<p>JDK\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002</p>"},{"location":"start/development-environment.html#_3","title":"\u5b89\u88c5\u6b65\u9aa4","text":"<ul> <li>\u5728\u5b98\u65b9\u5730\u5740\u4e0b\u8f7dMaven\u5b89\u88c5\u5305\u3002</li> <li>\u89e3\u538bMaven\u5b89\u88c5\u5305\u5230\u672c\u673a\u8def\u5f84\u3002</li> <li>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf:</li> <li>\u8bbe\u7f6eM2_HOME\u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411Maven\u5b89\u88c5\u76ee\u5f55\u3002</li> <li>\u5c06%M2_HOME%\\bin\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84path\u4e2d\u3002</li> <li>\u7ed3\u679c\u9a8c\u8bc1</li> </ul> <p>\u4f7f\u7528mvn -version\u547d\u4ee4\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0cwindows\u73af\u5883\u4e0b\u56de\u663e\u5982\u4e0b\uff1a</p> <pre><code>C:\\&gt;mvn -version        \nApache Maven 3.8.4\n</code></pre>"},{"location":"start/development-environment.html#eclipse","title":"Eclipse\u5b89\u88c5","text":""},{"location":"start/development-environment.html#_4","title":"\u524d\u63d0\u6761\u4ef6","text":"<p>a.JDK\u5df2\u7ecf\u5b89\u88c5\u3002</p> <p>b.Maven\u5df2\u7ecf\u5b89\u88c5\u3002</p>"},{"location":"start/development-environment.html#_5","title":"\u5b89\u88c5\u6b65\u9aa4","text":"<p>a.\u5728\u5b98\u65b9\u5730\u5740\u4e0b\u8f7dEclipse\u5b89\u88c5\u5305\u3002</p> <p>b.\u5b89\u88c5Eclipse\u5230\u672c\u673a\u3002</p> <p>c.\uff08\u53ef\u9009\uff09\u5c06\u4e4b\u524dMaven\u5b89\u88c5\u4e2d\u4ecb\u7ecd\u7684\u63d2\u4ef6m2eclipse\u89e3\u538b\u5230Eclipse\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684plugins\u548cfeatures\u76ee\u5f55\u3002\u6700\u65b0\u7684Eclipse\u7248\u672c</p> <p>\u4e2d\u5e26\u6709Maven\u63d2\u4ef6\uff0c\u4e0d\u8981\u8fdb\u884c\u6b64\u64cd\u4f5c</p> <p>d.\u542f\u52a8Eclipse\uff0c\u914d\u7f6ejre\u3001maven settings\u4ee5\u53ca\u9ed8\u8ba4\u7f16\u7801\u683c\u5f0f\u4e3autf-8\u3002</p>"},{"location":"start/development-environment.html#idea","title":"IDEA\u5b89\u88c5","text":""},{"location":"start/development-environment.html#_6","title":"\u524d\u63d0\u6761\u4ef6","text":"<p>a.JDK\u5df2\u7ecf\u5b89\u88c5\u3002</p> <p>b.Maven\u5df2\u7ecf\u5b89\u88c5\u3002</p>"},{"location":"start/development-environment.html#_7","title":"\u5b89\u88c5\u6b65\u9aa4","text":"<p>a. \u5728\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d IDEA \u5b89\u88c5\u5305\uff0c\u6536\u8d39\u7248\u6216\u8005\u793e\u533a\u7248\u7684\u6309\u4e2a\u4eba\u9700\u6c42\u3002</p> <p>b. \u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\u90fd\u4e3a utf-8\u3002</p> <p>\u6253\u5f00IDEA\uff0c\u9009\u62e9 File -&gt; Settings -&gt; Editor -&gt; File Encoding \u628a project Encoding \u548c default encoding for properties files \u6539\u4e3a utf-8\u3002</p> <p>c. \u8bbe\u7f6emaven \u914d\u7f6e</p> <p>\u6253\u5f00IDEA\uff0c\u9009\u62e9 File -&gt; Settings -&gt; Build\uff0cExecution,Deployment -&gt; Bulid Tools -&gt; Maven \u6ce8\u610f\u914d\u7f6e Maven home directory  \u548c User settings file</p>"},{"location":"start/first-sample.html","title":"\u5f00\u53d1\u7b2c\u4e00\u4e2a\u5fae\u670d\u52a1\u5e94\u7528","text":""},{"location":"start/first-sample.html#_2","title":"\u51c6\u5907\u5de5\u4f5c","text":"<p>\u5728\u5f00\u53d1\u7b2c\u4e00\u4e2aJava-Chassis\u5fae\u670d\u52a1\u4e4b\u524d\uff0c\u8bf7\u5148\u786e\u4fdd\u672c\u5730\u5f00\u53d1\u73af\u5883\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\uff0c\u53c2\u8003\u5b89\u88c5\u672c\u5730\u5f00\u53d1\u73af\u5883\u3002</p> <p>\u8fd0\u884c\u8fd9\u4e9b\u4f8b\u5b50\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u6ce8\u518c\u4e2d\u5fc3 \u548c\u914d\u7f6e\u4e2d\u5fc3 \u3002\u534e\u4e3a\u4e91\u63d0\u4f9b\u4e00\u4e2a\u51fa\u8272\u7684\u672c\u5730\u8f7b\u91cf\u5316\u5fae\u670d\u52a1\u5f15\u64ce , \u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5b89\u88c5\u4f7f\u7528\uff0c\u5b83\u5305\u542b\u4e86\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u3002</p> <p>Java Chassis\u4f9d\u8d56\u4e8eSpring Boot\uff0c\u5982\u679c\u5bf9\u4e8eSpring Boot\u6bd4\u8f83\u964c\u751f\uff0c\u53ef\u4ee5\u5148\u901a\u8fc7 Spring Boot\u5165\u95e8 \u4e86\u89e3\u3002 </p>"},{"location":"start/first-sample.html#_3","title":"\u4f8b\u5b50\u4ecb\u7ecd","text":"<p>Basic\u793a\u4f8b \u5305\u542b\u4e863\u4e2a\u5fae\u670d\u52a1\uff1a gateway, provider, consumer\u3002 \u8fd93\u4e2a\u670d\u52a1\u5b8c\u6210\u4e86\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u5fae\u670d\u52a1\u67b6\u6784\u3002 \u5176\u4e2d provider \u63d0\u4f9b\u4e00\u4e2a REST \u63a5\u53e3\uff0c consumer \u8c03\u7528 provider \u7684 REST \u63a5\u53e3\u5b8c\u6210\u540c\u6837\u7684\u529f\u80fd\u3002 gateway \u4f5c\u4e3a\u5fae\u670d\u52a1\u7684\u63a5\u5165\u7aef\uff0c \u8d1f\u8d23\u6240\u6709\u5916\u90e8\u8bf7\u6c42\u7684\u63a5\u5165\u3002</p> <p>\u5982\u679c\u5df2\u7ecf\u4e86\u89e3 JAVA + MAVEN \u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\uff0c \u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5e76\u8fd0\u884c\u8fd9\u4e2a\u793a\u4f8b\u3002 \u4e0b\u9762\u4ecb\u7ecd\u8be5\u793a\u4f8b\u7684\u5173\u952e\u5f00\u53d1\u6b65\u9aa4\u3002</p>"},{"location":"start/first-sample.html#rest","title":"\u5f00\u53d1\u4e00\u4e2a\u5e26 REST \u63a5\u53e3\u7684\u5fae\u670d\u52a1","text":""},{"location":"start/first-sample.html#pom","title":"\u914d\u7f6epom\u6587\u4ef6","text":"<p>\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684maven\u5de5\u7a0b\u3002\u5efa\u8bae\u5148\u914d\u7f6e<code>dependencyManagement</code>\u6765\u7ba1\u7406\u4f9d\u8d56\u9879</p> <pre><code>\n&lt;dependencyManagement&gt;\n  &lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;java-chassis-dependencies&lt;/artifactId&gt;\n      &lt;version&gt;${java-chassis-dependencies.version}&lt;/version&gt;\n      &lt;type&gt;pom&lt;/type&gt;\n      &lt;scope&gt;import&lt;/scope&gt;\n    &lt;/dependency&gt;\n  &lt;/dependencies&gt;\n&lt;/dependencyManagement&gt;\n</code></pre> <p>\u4f9d\u8d56\u9879\u9700\u8981\u5f15\u5165<code>solution-basic</code>, \u5e76\u4e14\u5f15\u5165\u6ce8\u518c\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u548cLogger\u7cfb\u7edf\u7684\u4f9d\u8d56</p> <pre><code>\n&lt;dependencies&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;!-- using log4j2 --&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n    &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n    &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n    &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;!-- using service-center &amp; kie --&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;config-kie&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;!-- using java chassis http transport --&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p><code>solution-basic</code>\u4e2d\u5df2\u7ecf\u5305\u542b\u4e86\u5e38\u89c1\u573a\u666f\u4e0b\u5f00\u53d1Java-Chassis\u5fae\u670d\u52a1\u6240\u9700\u7684\u5168\u90e8\u4f9d\u8d56\u9879\u3002</p> <p>\u5f15\u5165<code>maven-compiler-plugin</code>\u63d2\u4ef6\uff0c\u4f7f\u9879\u76ee\u6253\u5305\u65f6\u4fdd\u7559\u65b9\u6cd5\u53c2\u6570\u540d\uff1a</p> <pre><code>\n&lt;plugin&gt;\n  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;\n  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;\n  &lt;version&gt;${maven-compiler-plugin.version}&lt;/version&gt;\n  &lt;configuration&gt;\n    &lt;compilerArgument&gt;-parameters&lt;/compilerArgument&gt;\n    &lt;source&gt;17&lt;/source&gt;\n    &lt;target&gt;17&lt;/target&gt;\n  &lt;/configuration&gt;\n&lt;/plugin&gt;\n</code></pre>"},{"location":"start/first-sample.html#_4","title":"\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6","text":"<p>\u6309\u7167Spring Boot\u5e94\u7528\u7a0b\u5e8f\u8981\u6c42\uff0c\u589e\u52a0 <code>application.yaml</code> \u6587\u4ef6 \uff0c\u5b58\u653e\u5728<code>resources</code>\u76ee\u5f55\u4e2d\u3002</p> <p>\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff0c\u8fd9\u4efd\u6587\u4ef6\u8868\u793a\u5f53\u524d\u5f00\u53d1\u7684\u662f<code>basic-application</code>\u5e94\u7528\u4e0b\u7684\u540d\u4e3a<code>provider</code>\u7684\u5fae\u670d\u52a1\uff0c\u7248\u672c\u4e3a0.0.1\u3002\u8be5\u5fae\u670d\u52a1\u8fde\u63a5\u7684\u6ce8\u518c\u4e2d\u5fc3\u5730\u5740\u4e3a<code>http://localhost:30100</code> \uff0c\u914d\u7f6e\u4e2d\u5fc3\u5730\u5740\u4e3a<code>http://localhost:30110</code>\u3002 \u8be5\u5fae\u670d\u52a1\u76d1\u542cHTTP\u534f\u8bae\u7684<code>9093</code>\u7aef\u53e3\u3002</p> <pre><code>servicecomb:\n  service:\n    application: basic-application\n    name: provider\n    version: 0.0.1\n  rest:\n    address: 0.0.0.0:9093\n  # \u6ce8\u518c\u53d1\u73b0\n  registry:\n    sc:\n      address: http://localhost:30100\n  # \u52a8\u6001\u914d\u7f6e\n  kie:\n    serverUri: http://localhost:30110\n</code></pre>"},{"location":"start/first-sample.html#_5","title":"\u7f16\u5199\u542f\u52a8\u7c7b","text":"<p>Java Chassis\u5e94\u7528\u662f\u4e00\u4e2a\u6807\u51c6\u7684Spring Boot\u5e94\u7528\u3002\u672c\u793a\u4f8b\u4e2d\uff0c\u8bbe\u7f6e <code>WebApplicationType.NONE</code>\uff0c \u8fd9\u6837\u4f1a\u4f7f\u7528 Java Chassis\u81ea\u5e26\u7684\u9ad8\u6027\u80fd HTTP \u5bb9\u5668\uff0c\u800c\u4e0d\u4f7f\u7528 Spring Boot\u81ea\u5e26\u7684WEB\u5bb9\u5668\u3002</p> <pre><code>\n@SpringBootApplication\npublic class ProviderApplication {\n  public static void main(String[] args) throws Exception {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.NONE)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre>"},{"location":"start/first-sample.html#_6","title":"\u7f16\u5199\u670d\u52a1","text":"<p>\u5728\u5de5\u7a0b\u4e2d\u6dfb\u52a0\u4e00\u4e2aREST\u63a5\u53e3\u7c7b\u7528\u4e8e\u63a5\u6536\u8bf7\u6c42\uff1a</p> <pre><code>\n@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  private DynamicProperties dynamicProperties;\n\n  private String example;\n\n  @Autowired\n  public ProviderController(DynamicProperties dynamicProperties) {\n    this.dynamicProperties = dynamicProperties;\n    this.example = this.dynamicProperties.getStringProperty(\"basic.example\",\n        value -&gt; this.example = value, \"not set\");\n  }\n\n  // a very simple service to echo the request parameter\n  @GetMapping(\"/sayHello\")\n  public String sayHello(@RequestParam(\"name\") String name) {\n    return \"Hello \" + name;\n  }\n\n  @GetMapping(\"/exampleConfig\")\n  public String exampleConfig() {\n    return example;\n  }\n}\n</code></pre> <p>\u8be5\u7c7b\u5b9e\u73b0\u4e86\u4e24\u4e2aREST\u63a5\u53e3\uff0c\u5176\u4e2d<code>sayHello</code>\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684echo\u7a0b\u5e8f\uff1b<code>exampleConfig</code>\u6f14\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u4e0b\u53d1\u914d\u7f6e\u9879\uff0c\u5e76\u52a8\u6001\u76d1\u542c\u914d\u7f6e\u9879\u7684\u53d8\u5316\u3002</p>"},{"location":"start/first-sample.html#_7","title":"\u6dfb\u52a0\u65e5\u5fd7\u914d\u7f6e\u6587\u4ef6","text":"<p>\u672c\u4f8b\u5b50\u5f15\u5165\u4e86log4j2\u7ec4\u4ef6\u3002\u5982\u679c\u60f3\u8981\u770b\u5230\u8fd0\u884c\u65e5\u5fd7\uff0c\u8fd8\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u4e00\u4efd\u65e5\u5fd7\u914d\u7f6e\u6587\u4ef6\uff0c\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\u4e3a<code>resources\\log4j2.xml</code>\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a</p> <pre><code>\n&lt;Configuration status=\"INFO\"&gt;\n  &lt;Appenders&gt;\n    &lt;Console name=\"Console\" target=\"SYSTEM_OUT\"&gt;\n      &lt;PatternLayout pattern=\"[%d][%t][%p]%m [%c:%L]%n\"/&gt;\n    &lt;/Console&gt;\n  &lt;/Appenders&gt;\n  &lt;Loggers&gt;\n    &lt;Root level=\"INFO\"&gt;\n      &lt;AppenderRef ref=\"Console\"/&gt;\n    &lt;/Root&gt;\n  &lt;/Loggers&gt;\n&lt;/Configuration&gt;\n</code></pre>"},{"location":"start/first-sample.html#_8","title":"\u8c03\u7528\u670d\u52a1","text":"<p>\u5728 Consumer \u91cc\u9762\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u8c03\u7528 Provider \u7684\u670d\u52a1\u3002 \u9996\u5148\u58f0\u660e\u4e00\u4e2a PRC \u63a5\u53e3\uff0c \u8be5\u63a5\u53e3\u7684\u65b9\u6cd5\u540d\u79f0\u3001\u53c2\u6570\u540d\u79f0\u9700\u8981\u548c\u670d\u52a1\u7aef\u4fdd\u6301\u4e00\u81f4\u3002</p> <pre><code>public interface ProviderService {\n  String sayHello(String name);\n\n  String exampleConfig();\n}\n</code></pre> <p>\u4f7f\u7528 @RpcReference \u58f0\u660e RPC \u63a5\u53e3\u7684\u8fdc\u7a0b\u5f15\u7528\uff0c \u7136\u540e\u53ef\u4ee5\u50cf\u8c03\u7528\u672c\u5730\u65b9\u6cd5\u4e00\u6837\uff0c\u8bbf\u95ee Provider \u7684\u670d\u52a1\u3002</p> <pre><code>\n@RestSchema(schemaId = \"ConsumerController\")\n@RequestMapping(path = \"/\")\npublic class ConsumerController {\n  @RpcReference(schemaId = \"ProviderController\", microserviceName = \"provider\")\n  private ProviderService providerService;\n\n  // consumer service which delegate the implementation to provider service.\n  @GetMapping(\"/sayHello\")\n  public String sayHello(@RequestParam(\"name\") String name) {\n    return providerService.sayHello(name);\n  }\n\n  @GetMapping(\"/exampleConfig\")\n  public String exampleConfig() {\n    return providerService.exampleConfig();\n  }\n}\n</code></pre>"},{"location":"start/first-sample.html#_9","title":"\u5fae\u670d\u52a1\u7f51\u5173","text":"<p>\u5fae\u670d\u52a1\u7f51\u5173\u662f\u4e00\u4e2a\u666e\u901a\u7684\u5fae\u670d\u52a1\uff0c\u9700\u8981\u989d\u5916\u5f15\u5165 <code>edge-core</code> \u3002</p> <pre><code>\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;edge-core&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"start/first-sample.html#_10","title":"\u542f\u52a8\u670d\u52a1","text":"<p>\u4f9d\u6b21\u542f\u52a8 <code>ProviderApplication</code>\u3001<code>ConsumerApplication</code>\u548c<code>GatewayApplication</code>\uff0c \u8bbf\u95ee <code>http://localhost:9090/sayHello?name=World</code> \uff0c\u53ef\u4ee5\u5f97\u5230\u54cd\u5e94<code>\"Hello World!\"</code>\u3002</p> <p>\u6253\u5f00\u6ce8\u518c\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u63a7\u5236\u53f0\uff0c\u8fd8\u53ef\u4ee5\u770b\u5230\u5fae\u670d\u52a1\u7684\u5b9e\u4f8b\u5217\u8868\u3002\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u7ed9 <code>ProviderApplication</code> \u6dfb\u52a0\u914d\u7f6e\uff0c \u8bbf\u95ee <code>http://localhost:9090/exampleConfig</code> , \u53ef\u4ee5\u5f97\u5230\u54cd\u5e94\uff0c\u54cd\u5e94\u5305\u542b\u4e86\u6700\u65b0\u7684\u914d\u7f6e\u9879\u7684\u503c\u3002 </p>"},{"location":"start/first-sample.html#nacos","title":"\u4f7f\u7528<code>Nacos</code>\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3","text":"<p>\u672c\u4f8b\u5b50\u8fd8\u53ef\u4ee5\u4f7f\u7528 <code>Nacos</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u3002 </p> <p>\u7f16\u8bd1\uff1a</p> <pre><code>mvn clean install -Pnacos\n</code></pre> <p>\u8fd0\u884c:</p> <pre><code>java -Dspring.profiles.active=nacos -jar basic-provider-2.0-SNAPSHOT.jar\n</code></pre> <p>\u4e5f\u53ef\u4ee5\u5728IDE\u91cc\u9762\u9009\u62e9 MAVEN \u7684 nacos PROFILE\uff0c\u5e76\u4fee\u6539 application.yml \u7684 <code>spring.profiles.active</code> \u4e3a nacos. </p>"},{"location":"start/terminology.html","title":"\u672f\u8bed\u8868","text":"\u7f29\u7565\u8bed \u82f1\u6587\u8bcd\u6c47 \u4e2d\u6587\u8bcd\u6c47 \u89e3\u91ca Application Application \u5e94\u7528 \u5e94\u7528\u4ee3\u8868\u4e00\u4e2a\u8f6f\u4ef6\u5e94\u7528\u7684\u903b\u8f91\u5b9e\u4f53\uff0c\u8868\u793a\u4e00\u4e2a\u6709\u4e1a\u52a1\u529f\u80fd\u5448\u73b0\u7ed9\u7528\u6237\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5e94\u7528\u3002\u4e00\u4e2a\u4ee5\u5fae\u670d\u52a1\u5316\u67b6\u6784\u6784\u5efa\u7684\u5e94\u7528\u901a\u5e38\u7531\u591a\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\u3002 Service Service \u5fae\u670d\u52a1 \u5fae\u670d\u52a1\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7SOA\u67b6\u6784\uff0c\u901a\u5e38\u7528\u6765\u63cf\u8ff0\u5e7f\u6cdb\u7528\u4e8e\u4e91\u5e94\u7528\u3001\u4e92\u8054\u7f51\u5e94\u7528\u7684\u4e00\u79cd\u677e\u8026\u5408\u5206\u5e03\u5f0f\u67b6\u6784\u3002 Instance Instance \u5fae\u670d\u52a1\u5b9e\u4f8b \u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6700\u5c0f\u8fd0\u884c\u548c\u90e8\u7f72\u5355\u5143\uff0c\u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a\u5e94\u7528\u8fdb\u7a0b\u3002 Provider Provider \u670d\u52a1\u63d0\u4f9b\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u88ab\u8c03\u7528\u4e00\u65b9\u7684\u670d\u52a1\u3002 Consumer Consumer \u670d\u52a1\u6d88\u8d39\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u8c03\u7528\u53d1\u8d77\u65b9\u7684\u670d\u52a1\u3002 Schema Schema \u5fae\u670d\u52a1\u5951\u7ea6 \u5fae\u670d\u52a1\u5951\u7ea6\u662f\u5bf9\u5916\u63a5\u53e3\u7684OpenAPI\u8868\u793a\u3002OpenAPI\u589e\u5f3a\u4e86\u5fae\u670d\u52a1\u7684\u53ef\u89c1\u6027\uff0c\u65b9\u4fbf\u670d\u52a1\u7684\u5206\u53d1\u3001\u4f7f\u7528\u548c\u6cbb\u7406\u3002 Code Style Code Style \u7f16\u7a0b\u6a21\u578b \u7f16\u7a0b\u6a21\u578b\u6307\u5982\u4f55\u8fdb\u884c\u670d\u52a1\u63a5\u53e3\u5f00\u53d1\u548c\u8c03\u7528\uff0cJava Chassis\u63d0\u4f9b\u4e86Spring Web MVC\u3001JAX RS\u7b49\u7f16\u7a0b\u6a21\u578b\u3002\u7f16\u7a0b\u6a21\u578b\u72ec\u7acb\u4e8e\u5904\u7406\u94fe\u548c\u901a\u4fe1\u6a21\u578b Filter Filter \u5904\u7406\u94fe \u5904\u7406\u94fe\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5305\u62ec\u7f16\u89e3\u7801\u3001\u670d\u52a1\u6cbb\u7406\u3001\u7f51\u7edc\u53d1\u9001\u7b49\u3002 Transport Transport \u901a\u4fe1\u6a21\u578b \u901a\u4fe1\u6a21\u578b\u5b9a\u4e49\u4e86\u5bf9\u8c61\u5982\u4f55\u7f16\u89e3\u7801\uff0c\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u4f20\u8f93\u7b49\u3002Java Chassis\u63d0\u4f9b\u4e86REST\u3001HIGHWAY\u7b49\u901a\u4fe1\u6a21\u578b\u3002 Load Balance Load Balance \u8d1f\u8f7d\u5747\u8861 \u5f53\u5e94\u7528\u8bbf\u95ee\u4e00\u4e2a\u5177\u6709\u591a\u4e2a\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u65f6\uff0c\u4f1a\u6d89\u53ca\u5230\u8def\u7531\u8d1f\u8f7d\u5747\u8861\u3002\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u652f\u6301\u968f\u673a\uff0c\u8f6e\u8be2\u3001\u4f1a\u8bdd\u4fdd\u6301\u548c\u57fa\u4e8e\u54cd\u5e94\u65f6\u95f4\u7684\u6743\u503c\u7b49\u591a\u79cd\u8d1f\u8f7d\u5747\u8861\u8def\u7531\u7b56\u7565\u3002 Rate Limiting Rate Limiting \u9650\u6d41 \u5f53\u8d44\u6e90\u6210\u4e3a\u74f6\u9888\u65f6\uff0c\u670d\u52a1\u6846\u67b6\u9700\u8981\u5bf9\u6d88\u8d39\u8005\u7684\u8bbf\u95ee\u8bf7\u6c42\u505a\u9650\u6d41\uff0c\u542f\u52a8\u6d41\u63a7\u4fdd\u62a4\u673a\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u8005\u7aef\u548c\u63d0\u4f9b\u8005\u7aef\u5747\u53ef\u8fdb\u884c\u6d41\u91cf\u63a7\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u67d0\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u8bf7\u6c42\u9891\u7387\uff1b\u5728\u670d\u52a1\u63d0\u4f9b\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u6bcf\u4e2a\u5fae\u670d\u52a1\u6d88\u8d39\u7aef\u53d1\u8fc7\u6765\u7684\u8bf7\u6c42\u9891\u7387\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u670d\u52a1\u63d0\u4f9b\u7aef\u8d44\u6e90\u6d88\u8017\u60c5\u51b5\u786e\u5b9a\u603b\u7684\u8bf7\u6c42\u9891\u7387\u9650\u5236\uff0c\u9632\u6b62\u670d\u52a1\u56e0\u8d44\u6e90\u8017\u5c3d\u800c\u5d29\u6e83\u3002 Service Degrade Service Degrade \u964d\u7ea7 \u670d\u52a1\u964d\u7ea7\u4e3b\u8981\u5305\u62ec\u5c4f\u853d\u964d\u7ea7\u548c\u5bb9\u9519\u964d\u7ea7\u4e24\u79cd\u7b56\u7565\uff1a\u5c4f\u853d\u964d\u7ea7\u662f\u6307\u5f53\u5916\u754c\u7684\u89e6\u53d1\u6761\u4ef6\u8fbe\u5230\u67d0\u4e2a\u4e34\u754c\u503c\u65f6\uff0c\u7531\u8fd0\u7ef4\u4eba\u5458/\u5f00\u53d1\u4eba\u5458\u51b3\u7b56\uff0c\u5bf9\u67d0\u7c7b\u6216\u8005\u67d0\u4e2a\u670d\u52a1\u8fdb\u884c\u5f3a\u5236\u964d\u7ea7\u3002\u5bb9\u9519\u964d\u7ea7\u662f\u6307\u5f53\u975e\u6838\u5fc3\u670d\u52a1\u4e0d\u53ef\u7528\u65f6\uff0c\u53ef\u4ee5\u5bf9\u6545\u969c\u670d\u52a1\u505a\u4e1a\u52a1\u903b\u8f91\u653e\u901a\uff0c\u4ee5\u4fdd\u969c\u6838\u5fc3\u670d\u52a1\u7684\u8fd0\u884c\u3002 Fault Tolerance Fault Tolerance \u5bb9\u9519 \u5bb9\u9519\u662f\u6d88\u8d39\u8005\u8bbf\u95ee\u670d\u52a1\u65f6\u51fa\u73b0\u5f02\u5e38\u7684\u573a\u666f\u4e0b\u7684\u4e00\u79cd\u5904\u7406\u7b56\u7565\uff0c\u51fa\u73b0\u5f02\u5e38\u540e\u7531\u670d\u52a1\u6846\u67b6\u81ea\u52a8\u9009\u62e9\u65b0\u7684\u670d\u52a1\u8def\u7531\u8fdb\u884c\u8c03\u7528\u3002 Circuit Breaker Circuit Breaker \u7194\u65ad \u5fae\u670d\u52a1\u4e4b\u95f4\u901a\u5e38\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\uff0c\u670d\u52a1\u8c03\u7528\u94fe\u8def\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff0c\u5982\u679c\u94fe\u8def\u4e2d\u4e00\u4e2a\u6216\u591a\u4e2a\u670d\u52a1\u8bbf\u95ee\u5ef6\u8fdf\u8fc7\u9ad8\uff0c\u4f1a\u5bfc\u81f4\u5165\u53e3\u670d\u52a1\u7684\u8bf7\u6c42\u4e0d\u65ad\u5806\u79ef\uff0c\u6301\u7eed\u6d88\u8017\u66f4\u591a\u7684\u7ebf\u7a0b\u3001io\u8d44\u6e90\uff0c\u6700\u7ec8\u7531\u4e8e\u8d44\u6e90\u7d2f\u79ef\u4f7f\u7cfb\u7edf\u51fa\u73b0\u74f6\u9888\uff0c\u9020\u6210\u66f4\u591a\u670d\u52a1\u4e0d\u53ef\u7528\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u7194\u65ad\u673a\u5236\u5c31\u662f\u9488\u5bf9\u4e0a\u8ff0\u573a\u666f\u8bbe\u8ba1\u7684\uff0c\u5f53\u67d0\u4e2a\u76ee\u6807\u670d\u52a1\u54cd\u5e94\u7f13\u6162\u6216\u8005\u6709\u5927\u91cf\u8d85\u65f6\u60c5\u51b5\u53d1\u751f\u65f6\uff0c\u7194\u65ad\u8be5\u670d\u52a1\u7684\u8c03\u7528\uff0c\u5bf9\u4e8e\u540e\u7eed\u8c03\u7528\u8bf7\u6c42\uff0c\u4e0d\u518d\u7ee7\u7eed\u8c03\u7528\u76ee\u6807\u670d\u52a1\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u5feb\u901f\u91ca\u653e\u8d44\u6e90\uff0c\u7b49\u5230\u8be5\u76ee\u6807\u670d\u52a1\u60c5\u51b5\u597d\u8f6c\u518d\u6062\u590d\u8c03\u7528\u3002 Bulkhead Bulkhead \u9694\u79bb\u4ed3 \u9694\u79bb\u4ed3\u662f\u4e00\u79cd\u5f02\u5e38\u68c0\u6d4b\u673a\u5236\uff0c\u5e38\u7528\u7684\u68c0\u6d4b\u65b9\u6cd5\u662f\u8bf7\u6c42\u8d85\u65f6\u3001\u6d41\u91cf\u8fc7\u5927\u7b49\u3002\u4e00\u822c\u7684\u8bbe\u7f6e\u53c2\u6570\u5305\u62ec\u8d85\u65f6\u65f6\u95f4\u3001\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u7b49\uff0c\u5f53\u8d85\u8fc7\u8d85\u65f6\u65f6\u95f4\u6216\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u65f6\uff0c\u8bb0\u5f55\u4e00\u6b21\u5f02\u5e38\uff0c\u5728\u7194\u65ad\u3001\u5b9e\u4f8b\u9694\u79bb\u673a\u5236\u4e2d\uff0c\u7528\u4e8e\u8ba1\u7b97\u9519\u8bef\u7387\u3002 Instance Isolation Instance Isolation \u5b9e\u4f8b\u9694\u79bb \u5b9e\u4f8b\u9694\u79bb\u901a\u8fc7\u68c0\u6d4b\u5b9e\u4f8b\u7684\u9519\u8bef\u7387\u3001\u8d85\u65f6\u8bf7\u6c42\u6570\u7b49\u6307\u6807\uff0c\u77ed\u6682\u7684\u5c4f\u853d\u6545\u969c\u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u964d\u4f4e\u9519\u8bef\u7387\u4ee5\u53ca\u9632\u6b62\u53d1\u751f\u96ea\u5d29\u6548\u5e94\u3002"},{"location":"transports/highway-rpc.html","title":"Highway","text":""},{"location":"transports/highway-rpc.html#_1","title":"\u5f00\u53d1\u8bf4\u660e","text":"<p>Highway\u662fJava Chassis\u7684\u9ad8\u6027\u80fd\u79c1\u6709TCP\u534f\u8bae, Highway\u534f\u8bae\u652f\u6301proto-buffer\u7f16\u7801\u3002\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0c\u5efa\u8bae\u5728\u9ad8\u6027\u80fd\u6a21\u5f0f\u4f7f\u7528Highway\u3002</p> <p>application.yaml \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  highway:\n    address: 0.0.0.0:7070\n</code></pre> <p>\u5176\u4e2d <code>0.0.0.0:7070</code> \u4ee3\u8868\u4f7f\u7528Highway\u534f\u8bae\uff0c\u5e76\u4e14\u76d1\u542c7070\u7aef\u53e3\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>sslEnabled=true</code>\u4f7f\u7528HTTPS\u901a\u4fe1\uff0c\u5177\u4f53\u4ecb\u7ecd\u89c1\u4f7f\u7528TLS\u901a\u4fe1\u7ae0\u8282\u3002</p>"},{"location":"transports/highway-rpc.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.highway.address \u670d\u52a1\u76d1\u542c\u5730\u5740\uff0c\u4e0d\u914d\u7f6e\u8868\u793a\u4e0d\u76d1\u542c servicecomb.highway.server.connection-limit Integer.MAX_VALUE \u5141\u8bb8\u5ba2\u6237\u7aef\u6700\u5927\u8fde\u63a5\u6570 servicecomb.highway.server.thread-count verticle-count highway server verticle\u5b9e\u4f8b\u6570(Deprecated) servicecomb.highway.server.verticle-count verticle-count highway server verticle\u5b9e\u4f8b\u6570 servicecomb.highway.client.thread-count verticle-count highway client verticle\u5b9e\u4f8b\u6570(Deprecated) servicecomb.highway.client.verticle-count verticle-count highway client verticle\u5b9e\u4f8b\u6570 servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.highway.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002"},{"location":"transports/http2.html","title":"REST over HTTP2\uff08Vert.x)","text":""},{"location":"transports/http2.html#_1","title":"\u5f00\u53d1\u4ecb\u7ecd","text":"<p>\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0c\u9ad8\u6027\u80fd\u6a21\u5f0f\u4f7f\u7528 REST over HTTP2\uff08Vert.x\uff09\u3002</p> <p>application.yaml \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080?protocol=http2\n    server:\n      verticle-count: 8\n</code></pre> <ul> <li> <p>\u542f\u7528h2(Http2 + TLS)\u8fdb\u884c\u901a\u4fe1   \u670d\u52a1\u7aef\u5728\u914d\u7f6e\u670d\u52a1\u76d1\u542c\u5730\u5740\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>sslEnabled=true</code>\u5f00\u542fTLS\u901a\u4fe1\uff0c\u5177\u4f53\u4ecb\u7ecd\u89c1\u4f7f\u7528TLS\u901a\u4fe1\u7ae0\u8282\u3002\u7136\u540e\u518d\u8ffd\u52a0<code>protocol=http2</code>\u542f\u7528h2\u901a\u4fe1\u3002\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n    rest:\n      address: 0.0.0.0:8080?sslEnabled=true&amp;protocol=http2\n</code></pre> </li> <li> <p>\u542f\u7528h2c(Http2 without TLS)\u8fdb\u884c\u901a\u4fe1   \u670d\u52a1\u7aef\u5728\u914d\u7f6e\u670d\u52a1\u76d1\u542c\u5730\u5740\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>protocol=http2</code>\u542f\u7528h2c\u901a\u4fe1\u3002\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n    rest:\n      address: 0.0.0.0:8080?protocol=http2\n</code></pre> </li> <li> <p>\u5ba2\u6237\u7aef\u4f1a\u901a\u8fc7\u4ece\u670d\u52a1\u4e2d\u5fc3\u8bfb\u53d6\u670d\u52a1\u7aef\u5730\u5740\u4e2d\u7684\u914d\u7f6e\u6765\u4f7f\u7528http2\u8fdb\u884c\u901a\u4fe1\u3002 </p> </li> </ul>"},{"location":"transports/http2.html#_2","title":"\u914d\u7f6e\u53c2\u8003","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 \u6ce8\u610f servicecomb.rest.server.http2.useAlpnEnabled true \u662f\u5426\u542f\u7528 ALPN servicecomb.rest.server.http2.concurrentStreams 100 \u4e00\u6761\u8fde\u63a5\u4e2d\uff0c\u540c\u65f6\u652f\u6301\u7684\u6700\u5927\u7684stream\u5e76\u53d1\u91cf \u4ee5server\u7aef\u7684concurrentStreams\u548cclient\u7aef\u7684multiplexingLimit\u8f83\u5c0f\u503c\u4e3a\u51c6 servicecomb.rest.server.http2.HeaderTableSize 4096 servicecomb.rest.server.http2.pushEnabled true servicecomb.rest.server.http2.initialWindowSize 65535 servicecomb.rest.server.http2.maxFrameSize 16384 servicecomb.rest.server.http2.maxHeaderListSize Integer.MAX_VALUE servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002"},{"location":"transports/introduction.html","title":"\u591a\u534f\u8bae\u4ecb\u7ecd","text":"<p>Java Chassis\u63d0\u51fa\u7f16\u7a0b\u6a21\u578b\u548c\u901a\u4fe1\u6a21\u578b\u5206\u79bb\u7684\u521b\u65b0\u6982\u5ff5\uff0c\u63d0\u4f9b\u65b9\u4fbf\u3001\u7b80\u6d01\u7684\u591a\u534f\u8bae\u901a\u4fe1\u5f00\u53d1\u3002\u7f16\u7a0b\u6a21\u578b\u6307\u7528\u6237\u5199\u4ee3\u7801\u7684\u65b9\u5f0f\uff0cJava Chassis\u975e\u5e38\u7075\u6d3b\u7684\u7f16\u7a0b\u6a21\u578b: </p> <ul> <li>Provider\u7f16\u7a0b\u6a21\u578b\uff1aJAX-RS\u3001Spring Web MVC\u3001\u900f\u660eRPC</li> <li>Consumer\u7f16\u7a0b\u6a21\u578b\uff1a\u900f\u660eRPC\u3001RestOperations\u3001InvokerUtils</li> </ul> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u81ea\u7531\u7ec4\u5408Provider\u548cConsumer\u7684\u7f16\u7a0b\u6a21\u578b\uff0c\u5373\u5b58\u5728 3 * 3 \u79cd\u5f00\u53d1\u7ec4\u5408\uff0c\u6700\u63a8\u8350\u7684\u5f00\u53d1\u7ec4\u5408Provider\u91c7\u7528JAX-RS\uff0cConsumer\u91c7\u7528\u900f\u660eRPC\uff1b\u719f\u6089Spring Web MVC\u7684\u7528\u6237\u91c7\u7528Spring Web MVC\u548c\u900f\u660eRPC\u3002 </p> <p>\u7f16\u7a0b\u6a21\u578b\u548c\u6211\u4eec\u901a\u5e38\u6240\u8bf4\u7684\u591a\u534f\u8bae\u652f\u6301\u6ca1\u6709\u5173\u7cfb\u3002 \u591a\u534f\u8bae\u652f\u6301\u4e00\u822c\u6307\u7684\u662f\u5bf9\u8c61\u5982\u4f55\u7f16\u7801\uff0c\u6bd4\u5982\u91c7\u7528Json\u8fd8\u662f\u91c7\u7528proto-buffer, \u4ee5\u53ca\u901a\u4fe1\u534f\u8bae\u91c7\u7528\u4ec0\u4e48\uff0c\u6bd4\u5982\u91c7\u7528HTTP\u8fd8\u662f\u91c7\u7528\u79c1\u6709TCP\u534f\u8bae\u3002 \u5bf9\u8c61\u7f16\u7801\u65b9\u5f0f\u548c\u901a\u4fe1\u534f\u8bae\u7684\u7ec4\u5408\uff0c\u79f0\u4e3a\u901a\u4fe1\u6a21\u578b\u3002 Java Chassis\u7684\u901a\u4fe1\u6a21\u578b\u53ef\u4ee5\u5206\u6210\u4e24\u7c7b\uff1aREST \u548c Highway\u3002 </p> <ul> <li>REST\uff1a \u652f\u6301\u63a5\u53e3\u53c2\u6570\u4e0eHTTPQuery\u3001Path\u3001Header\u3001Body\u7684\u6620\u5c04\u5173\u7cfb\u3002\u5bf9\u8c61\u7f16\u7801\u652f\u6301Jason\u3001proto-buffer\u3001text\u7b49\uff0c\u901a\u8fc7Content-Type\u8fdb\u884c\u533a\u5206\u3002\u901a\u4fe1\u534f\u8bae\u91c7\u7528HTTP\u534f\u8bae\u65cf\uff0c\u6bd4\u5982HTTP\u3001HTTPS\u3001HTTP2\uff08H2\u548cH2C\uff09\u3002 </li> <li>Highway\uff1a \u5bf9\u8c61\u7f16\u7801\u652f\u6301proto-buffer\u3002\u901a\u4fe1\u534f\u8bae\u91c7\u7528Java Chassis\u81ea\u5b9a\u4e49\u7684\u79c1\u6709TCP\u534f\u8bae\u3002 </li> </ul> <p>Java Chassis\u7684\u7f16\u7a0b\u6a21\u578b\u548c\u901a\u4fe1\u6a21\u578b\u5206\u79bb\uff0c\u610f\u5473\u7740\u4e1a\u52a1\u4ee3\u7801\u5f00\u53d1\u7684\u65f6\u5019\uff0c\u4e0d\u9700\u8981\u5173\u6ce8\u901a\u4fe1\u6a21\u578b\uff0c\u53ef\u4ee5\u5728\u4e0d\u4fee\u6539\u4e1a\u52a1\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c \u4fee\u6539\u901a\u4fe1\u6a21\u578b\u914d\u7f6e\uff0c\u5207\u6362\u4e3a\u65b0\u7684\u901a\u4fe1\u6a21\u578b\u3002 </p>"},{"location":"transports/introduction.html#_2","title":"\u5982\u4f55\u9009\u62e9\u534f\u8bae","text":"<p>\u5728\u591a\u6570\u573a\u666f\uff0c\u5efa\u8bae\u4f7f\u7528REST\u534f\u8bae\uff0c\u7f16\u7801\u4f7f\u7528Json\u3002 Java Chassis\u5bf9REST\u534f\u8bae\u8fdb\u884c\u4e86\u5f88\u597d\u7684\u4f18\u5316\uff0c\u80fd\u591f\u6ee1\u8db3\u7edd\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u7684\u9700\u8981\u3002REST\u534f\u8bae\u548cJson\u7f16\u7801\u5177\u5907\u66f4\u597d\u7684\u8de8\u5e73\u53f0\u7279\u6027\uff0c\u80fd\u591f\u652f\u6301\u4e0d\u540c\u7cfb\u7edf\u76f4\u63a5\u5bf9\u63a5\uff0cHTTP\u534f\u8bae\u5728\u5e94\u5bf9\u5927\u89c4\u6a21\u5e76\u53d1\u573a\u666f\uff0c\u63d0\u4f9b\u4e86\u975e\u5e38\u597d\u7684\u5065\u58ee\u6027\u3002\u5728\u517c\u5bb9\u6027\u65b9\u9762\uff0cREST\u534f\u8bae\u548cJson\u7f16\u7801\u80fd\u591f\u66f4\u597d\u7684\u652f\u6301\u4e1a\u52a1\u5e73\u6ed1\u5347\u7ea7\uff0c\u5f53\u4e1a\u52a1\u63a5\u53e3\u5b58\u5728\u53d8\u5316\uff08\u63a5\u53e3\u53c2\u6570\u4e2a\u6570\u3001\u53c2\u6570\u987a\u5e8f\u3001Model\u589e\u51cf\u5b57\u6bb5\u7b49\u573a\u666f\uff09\u7684\u5927\u90e8\u5206\u5e38\u89c1\u60c5\u51b5\uff0c\u5ba2\u6237\u7aef\u672a\u5347\u7ea7\u80fd\u591f\u6210\u529f\u8c03\u7528\u670d\u52a1\u7aef\uff0c\u8fd9\u6837\u7ed9\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u72ec\u7acb\u5347\u7ea7\u5e26\u6765\u5f88\u591a\u65b9\u4fbf\u3002</p> <p>\u91c7\u7528proto-buffer\u7f16\u7801\uff0c\u5e8f\u5217\u5316\u66f4\u5feb\uff0c\u6570\u636e\u91cf\u66f4\u5c0f\uff0c\u80fd\u591f\u63d0\u4f9b\u66f4\u9ad8\u7684\u541e\u5410\u91cf\u3002 \u4f46\u662fproto-buffer\u4e1a\u52a1\u63a5\u53e3\u5b58\u5728\u53d8\u5316\u7684\u60c5\u51b5\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u672a\u5347\u7ea7\uff0c\u670d\u52a1\u7aef\u5148\u5347\u7ea7\uff0c\u53ef\u80fd\u5bfc\u81f4\u5ba2\u6237\u7aef\u8c03\u7528\u5931\u8d25\u3002\u5728\u5ba2\u6237\u7aef\u4f7f\u7528\u7684\u63a5\u53e3\u548c\u670d\u52a1\u7aef\u4e0d\u5b58\u5728\u7f16\u8bd1\u65f6\u4f9d\u8d56\u7684\u573a\u666f\u4e0b\uff0c\u8fd9\u79cd\u95ee\u9898\u4f1a\u96be\u4e8e\u53d1\u73b0\u3002</p> <p>\u91c7\u7528Highway\u534f\u8bae\uff0c\u5728\u6d89\u53ca\u7cfb\u7edf\u96c6\u6210\u7684\u65f6\u5019\uff0c\u4f1a\u78b0\u5230\u9ebb\u70e6\u3002</p> <p>\u603b\u7ed3\u8d77\u6765\uff0c\u591a\u6570\u60c5\u51b5\u5efa\u8bae\u4f7f\u7528REST\u534f\u8bae\u3002\u5728\u5c11\u91cf\u9700\u8981\u9ad8\u6027\u80fd\u3001\u5e76\u4e14\u529f\u80fd\u76f8\u5bf9\u7a33\u5b9a\uff0c\u4e0d\u600e\u4e48\u53d8\u5316\u7684\u573a\u666f\uff0c\u4f7f\u7528proto-buffer\u6216\u8005\u4f7f\u7528Highway\u534f\u8bae\u63d0\u5347\u7cfb\u7edf\u541e\u5410\u91cf\u548c\u964d\u4f4e\u65f6\u5ef6\u3002 </p>"},{"location":"transports/rest-over-servlet-embedded.html","title":"REST over Servlet(Spring Boot Embedded)","text":""},{"location":"transports/rest-over-servlet-embedded.html#_1","title":"\u5f00\u53d1\u4ecb\u7ecd","text":"<p>\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0cWeb\u5f00\u53d1\u6a21\u5f0f\u4f7f\u7528 REST over Servlet(Spring Boot Embedded)\u3002</p> <p>REST over Servlet\u7684\u672c\u8d28\u662f\u5c06Java Chassis\u4f5c\u4e3a\u4e00\u4e2aServlet\uff0c\u90e8\u7f72\u5230\u652f\u6301Servlet\u7684Web\u5bb9\u5668\u4e2d\u3002 </p>"},{"location":"transports/rest-over-servlet-embedded.html#_2","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>\u4f7f\u7528Spring Boot Embedded\u573a\u666f\uff0c\u76f8\u5173Web\u5bb9\u5668\u53c2\u6570\u9700\u8981\u7ed3\u5408Spring Boot\u914d\u7f6e\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u4ecb\u7ecd\u3002 \u53ea\u7ed9\u51faJava Chassis\u589e\u52a0\u7684\u914d\u7f6e\u3002 </p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.rest.address 0.0.0.0:8080 \u670d\u52a1\u76d1\u542c\u5730\u5740\u5fc5\u987b\u914d\u7f6e\u4e3a\u4e0eweb\u5bb9\u5668\u76d1\u542c\u5730\u5740\u76f8\u540c\u7684\u5730\u5740 servicecomb.rest.server.timeout -1 \u5f02\u6b65servlet\u8d85\u65f6\u65f6\u95f4, \u5355\u4f4d\u4e3a\u6beb\u79d2\u5efa\u8bae\u4fdd\u6301\u9ed8\u8ba4\u503c servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002"},{"location":"transports/rest-over-servlet.html","title":"REST over Servlet(WAR)","text":"<p>\u548c REST over Servlet(Spring Boot Embedded) \u7c7b\u4f3c\uff0c\u53ef\u4ee5\u5c06Spring Boot\u5e94\u7528\u6253\u5305\u4e3a WAR\uff0c\u7136\u540e\u653e\u5230\u72ec\u7acb\u5b89\u88c5\u7684 Tomcat \u5bb9\u5668\u8fd0\u884c\u3002 \u5b83\u4eec\u7684\u5de5\u4f5c\u673a\u5236\u4e00\u6837\uff0c\u53ea\u662f\u5728Spring Boot\u5e94\u7528\u914d\u7f6e\u65b9\u9762\u6709\u4e9b\u5dee\u5f02\u3002  </p> <p>WAR\u76f8\u5173Web\u5bb9\u5668\u53c2\u6570\u9700\u8981\u7ed3\u5408Tomcat\u914d\u7f6e\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u4ecb\u7ecd\u3002 Java Chassis\u914d\u7f6e\u53c2\u6570\u548cEmbedded\u4e00\u6837\u3002</p> <p>basic-tomcat \u63d0\u4f9b\u4e86\u5f00\u53d1\u4f8b\u5b50\u3002 </p>"},{"location":"transports/rest-over-servlet.html#springbootservletinitializer","title":"\u4f7f\u7528 SpringBootServletInitializer","text":"<p>Spring Boot\u542f\u52a8\u7c7b\u9700\u8981\u7ee7\u627f SpringBootServletInitializer, \u5e76\u4e14\u8bbe\u7f6e WebApplicationType.SERVLET\u3002</p> <pre><code>@SpringBootApplication\npublic class ProviderApplication extends SpringBootServletInitializer {\n  public static void main(String[] args) throws Exception {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.SERVLET)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre>"},{"location":"transports/rest-over-servlet.html#_1","title":"\u914d\u7f6e\u6587\u4ef6\u7aef\u53e3","text":"<p>REST\u534f\u8bae\u76d1\u542c\u7aef\u53e3\u9700\u8981\u4fdd\u6301\u548cTomcat\u7aef\u53e3\u4e00\u81f4\u3002 </p> <pre><code>servicecomb:\n  # port should same as tomcat\n  rest:\n    address: 0.0.0.0:8080\n</code></pre>"},{"location":"transports/rest-over-servlet.html#_2","title":"\u4f9d\u8d56","text":"<p>\u9700\u8981\u5728\u4f9d\u8d56\u4e2d\u6dfb\u52a0\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-servlet&lt;/artifactId&gt;\n  &lt;exclusions&gt;\n    &lt;exclusion&gt;\n      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;\n      &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;\n    &lt;/exclusion&gt;\n  &lt;/exclusions&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;\n  &lt;scope&gt;provided&lt;/scope&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"transports/rest-over-servlet.html#edge-service","title":"\u5fae\u670d\u52a1\u7f51\u5173 Edge Service","text":"<p>\u5fae\u670d\u52a1\u7f51\u5173Edge Service\u4e0d\u652f\u6301Servlet\u534f\u8bae\uff0c\u4e0d\u5efa\u8bae\u5c06\u5176\u90e8\u7f72\u5230Tomcat\u3002\u4ecd\u7136\u4f7f\u7528\u53ef\u6267\u884c jar \u5305\u90e8\u7f72\u3002 </p>"},{"location":"transports/rest-over-vertx.html","title":"REST over HTTP\uff08Vert.x)","text":""},{"location":"transports/rest-over-vertx.html#_1","title":"\u5f00\u53d1\u4ecb\u7ecd","text":"<p>\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0c\u9ad8\u6027\u80fd\u6a21\u5f0f\u4f7f\u7528 REST over HTTP\uff08Vert.x\uff09\u3002 </p> <p>application.yaml \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080\n    server:\n      verticle-count: 8\n</code></pre> <p>\u5176\u4e2d <code>0.0.0.0:8080</code> \u4ee3\u8868\u4f7f\u7528HTTP\u534f\u8bae\uff0c\u5e76\u4e14\u76d1\u542c8080\u7aef\u53e3\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>sslEnabled=true</code>\u4f7f\u7528HTTPS\u901a\u4fe1\uff0c\u5177\u4f53\u4ecb\u7ecd\u89c1\u4f7f\u7528TLS\u901a\u4fe1\u7ae0\u8282\u3002</p>"},{"location":"transports/rest-over-vertx.html#_2","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>REST over HTTP\uff08Vert.x)\u6709\u4ee5\u4e0b\u914d\u7f6e\u9879\uff1a</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.rest.address \u670d\u52a1\u76d1\u542c\u5730\u5740\uff0c\u4e0d\u914d\u7f6e\u8868\u793a\u4e0d\u76d1\u542c servicecomb.rest.server.thread-count verticle-count rest server verticle\u5b9e\u4f8b\u6570\uff08Deprecated\uff09 servicecomb.rest.server.verticle-count verticle-count rest server verticle\u5b9e\u4f8b\u6570 servicecomb.rest.server.connection-limit Integer.MAX_VALUE \u5141\u8bb8\u5ba2\u6237\u7aef\u6700\u5927\u8fde\u63a5\u6570 servicecomb.rest.server.connection.idleTimeoutInSeconds 60 \u670d\u52a1\u7aef\u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4\uff0c\u8d85\u65f6\u8fde\u63a5\u4f1a\u88ab\u91ca\u653e servicecomb.rest.server.compression false \u670d\u52a1\u7aef\u662f\u5426\u652f\u6301\u542f\u7528\u538b\u7f29 servicecomb.rest.server.maxInitialLineLength 4096 \u670d\u52a1\u7aef\u63a5\u6536\u8bf7\u6c42\u7684\u6700\u5927 initial line \u957f\u5ea6\uff0c\u5355\u4f4d\u5b57\u8282 servicecomb.rest.server.maxHeaderSize 32768 \u670d\u52a1\u7aef\u63a5\u6536\u8bf7\u6c42\u7684\u6700\u5927header\u957f\u5ea6\uff0c\u5355\u4f4d\u5b57\u8282 servicecomb.rest.server.maxFormAttributeSize 8192 \u670d\u52a1\u7aef\u63a5\u6536\u8bf7\u6c42\u7684\u6700\u5927 form \u957f\u5ea6\uff0c\u5355\u4f4d\u4e3a\u5b57\u8282 servicecomb.rest.server.compressionLevel 6 \u670d\u52a1\u7aefgzip/deflate\u538b\u7f29\u7ea7\u522b servicecomb.rest.server.maxChunkSize 8192 \u6700\u5927http chunk\u5927\u5c0f\uff0c\u5355\u4f4d\u4e3a\u5b57\u8282 servicecomb.rest.server.decoderInitialBufferSize 128 HttpObjectDecoder\u7684\u6700\u5927\u521d\u59cb\u7f13\u51b2\u533a\u5927\u5c0f servicecomb.rest.server.http2ConnectionWindowSize -1 \u5141\u8bb8HTTP/2\u8fde\u63a5\u6570\u5927\u5c0f\uff0c\u65e0\u9650\u5236 servicecomb.rest.server.decompressionSupported false \u662f\u5426\u652f\u6301\u89e3\u538b\u7f29 servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002 servicecomb.uploads.maxSize \u65e0\u9650\u5236 \u6700\u5927 body \u5927\u5c0f\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u5bf9\u6587\u4ef6\u4e0a\u4f20\uff0cREST\u8bf7\u6c42\u90fd\u751f\u6548"},{"location":"transports/rest-over-vertx.html#_3","title":"\u8865\u5145\u8bf4\u660e","text":"<ul> <li>\u6781\u9650\u8fde\u63a5\u6570\u8ba1\u7b97 </li> </ul> <p>\u5047\u8bbe\u5728\u5fae\u670d\u52a1A\u8c03\u7528B\u7684\u60c5\u51b5\u4e0b\uff0c\u5fae\u670d\u52a1A\u548cB\u5404\u670910\u4e2a\u5b9e\u4f8b\uff0c\u5fae\u670d\u52a1A\u7684\u914d\u7f6e\u4e3a\uff1a</p> <ul> <li>servicecomb.rest.client.verticle-count\u914d\u7f6e\u4e3a8</li> <li>servicecomb.rest.client.connection.maxPoolSize\u914d\u7f6e\u4e3a5</li> <li>\u5fae\u670d\u52a1B\u670910\u4e2a\u5b9e\u4f8b  </li> </ul> <p>\u7ad9\u5728A\u7684\u89d2\u5ea6\uff0c\u5728\u6781\u9650\u60c5\u51b5\u4e0b\uff1a   * \u4e00\u4e2a\u5b9e\u4f8b\u6700\u591a\u4f1a\u5efa\u7acb400\u6761\u8fde\u63a5\u3002\uff08<code>8 * 5 * 10 = 400</code>\uff09   * \u5047\u8bbe\u8be5A\u8fd8\u9700\u8981\u8c03\u7528\u5fae\u670d\u52a1C\uff0c\u5fae\u670d\u52a1C\u4e5f\u670910\u4e2a\u5b9e\u4f8b\uff0c\u5219\u6700\u591a\u518d\u5efa\u7acb400\u6761\u8fde\u63a5\uff0c\u5171800\u6761\u8fde\u63a5</p> <p>\u7ad9\u5728B\u7684\u89d2\u5ea6\uff0c\u5728\u6781\u9650\u60c5\u51b5\u4e0b\uff1a   * \u4e00\u4e2aA\u7684\u5b9e\u4f8b\u6700\u591a\u5efa\u7acb40\u6761\u8fde\u63a5\u3002(<code>8 * 5 = 40</code>)   * 10\u4e2aA\u7684\u5b9e\u4f8b\u6700\u591a\u4f1a\u5411\u4e00\u4e2aB\u5efa\u7acb<code>40 * 10 = 400</code>\u6761\u8fde\u63a5</p> <p>\u4e3a\u4e86\u63d0\u9ad8\u6027\u80fd\uff0c\u9700\u8981\u5c3d\u91cf\u4f7f\u7528\u66f4\u5927\u7684\u8fde\u63a5\u6c60\uff0c\u4f46\u662f\u66f4\u5927\u7684\u8fde\u63a5\u6c60\u53c8\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8fde\u63a5\u6570\u66b4\u6da8\uff0c\u5f53\u5fae\u670d\u52a1\u5b9e\u4f8b\u89c4\u6a21\u8fbe\u5230\u767e\u7ea7\u522b\u65f6\uff0c\u6709\u7684\u8fdb\u7a0b\u53ef\u80fd\u9700\u8981\u7ba1\u7406 \u51e0\u4e07\u6761\u8fde\u63a5\uff0c\u4e1a\u52a1\u9700\u8981\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u89c4\u6a21\u8fdb\u884c\u5408\u7406\u7684\u89c4\u5212\u3002\u5728\u5b9e\u4f8b\u89c4\u6a21\u6bd4\u8f83\u5c0f\u7684\u60c5\u51b5\u4e0b\uff0cHTTP\u4ecd\u7136\u662f\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u6700\u4f73\u9009\u62e9\uff0c\u5b83\u5177\u5907\u66f4\u597d\u7684\u517c\u5bb9\u6027 \u548c\u53ef\u9760\u6027\u3002\u5f53\u5355\u4e2a\u5b9e\u4f8b\u7684\u8fde\u63a5\u6570\u7ba1\u7406\u89c4\u6a21\u8d85\u8fc71\u4e07\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u8003\u8651\u5207\u6362\u4e3ahttp2\u3002</p>"},{"location":"transports/verticle-count.html","title":"verticle-count","text":""},{"location":"transports/verticle-count.html#_1","title":"\u540d\u79f0\u53ca\u9ed8\u8ba4\u503c","text":"<ul> <li>1.2.0\u4e4b\u524d\u7684\u7248\u672c </li> </ul> <p>\u547d\u540d\u4e3athread-count\uff0c\u4e14\u9ed8\u8ba4\u503c\u4e3a1\uff0c\u8fd9\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\uff1a  </p> <ul> <li>\u540d\u5b57\u6709\u6b67\u4e49\u3002ServiceComb\u5e95\u5c42\u57fa\u4e8evertx\uff0c\u901a\u4fe1\u5c42\u903b\u8f91\u5747\u7531verticle\u627f\u8f7d\uff0c\u8fd0\u884c\u4e8eeventloop\u7ebf\u7a0b\u4e2d\uff0c\u5e76\u4e0d\u4f1a\u518d\u521b\u5efa\u72ec\u7acb\u7684\u7ebf\u7a0b\uff0c     \u6240\u4ee5thread-count\u5b9e\u9645\u8868\u793a\u7684\u662f\u521b\u5efa\u7684verticle\u5b9e\u4f8b\u7684\u4e2a\u6570\uff0c\u5e76\u4e0d\u662f\u7ebf\u7a0b\u6570\u3002</li> <li> <p>\u9ed8\u8ba4\u503c\u504f\u5c0f\u3002\u65e7\u7248\u672c\u9009\u62e9\u4e86\u6700\u4fdd\u5b88\u7684\u9ed8\u8ba4\u503c\uff0c\u5bfc\u81f4\u5927\u90e8\u5206\u573a\u666f\u90fd\u9700\u8981\u505a\u8fd9\u4e2a\u53c2\u6570\u7684\u8c03\u6574\u3002</p> </li> <li> <p>1.2.0\u53ca\u5176\u4e4b\u540e\u7684\u7248\u672c  </p> </li> </ul> <p>\u91cd\u547d\u540d\u4e3averticle-count\u3002\u540c\u65f6\u5141\u8bb8\u65e7\u7684thread-count\uff0c\u4f46\u662f\u4f1a\u6253\u5370warning\u65e5\u5fd7\uff0c\u63d0\u9192\u5207\u6362\u4e3a\u65b0\u914d\u7f6e\u9879\u3002   \u9ed8\u8ba4\u503c\u89c4\u5219\uff1a  </p> <ul> <li>\u5982\u679cCPU\u6570\u5c0f\u4e8e8\uff0c\u5219\u53d6CPU\u6570</li> <li>\u5982\u679cCPU\u6570\u5927\u4e8e\u7b49\u4e8e8\uff0c\u5219\u4e3a8</li> </ul>"},{"location":"transports/verticle-count.html#eventloopverticle","title":"Eventloop\u4e0everticle\u5b9e\u4f8b\u7684\u5173\u7cfb\uff1a","text":"<p>\u5047\u8bbeCPU\u4e3a2\uff0c\u5219vertx\u9ed8\u8ba4\u521b\u5efa 2 * CPU\uff0c \u53734\u4e2aEventloop\u7ebf\u7a0b \u5047\u8bbe\u914d\u7f6eserver verticle count\u548cclient verticle count\u5747\u4e3a3\uff0c\u5219\u4ed6\u4eec\u7684\u5173\u7cfb\u5982\u4e0b\uff1a</p> <p> </p> <p>\u56e0\u4e3a\u5728Eventloop\u4e2d\u4e0d\u5141\u8bb8\u6267\u884c\u4efb\u4f55\u963b\u585e\u52a8\u4f5c\uff0c\u518d\u7ed3\u5408\u4e0a\u56fe\uff0c\u6211\u4eec\u53ef\u4ee5\u77e5\u9053\uff0c\u5f53\u5145\u5206\u5229\u7528\u4e86CPU\u4e4b\u540e\uff0c\u518d\u589e\u52a0verticle\u5b9e\u4f8b\u662f\u6ca1\u6709\u610f\u4e49\u7684\uff0c \u6240\u4ee51.2.0\u4e4b\u540e\u7684\u7248\u672c\u7684\u7f3a\u7701\u503c\u5bf9\u4e8e\u591a\u6570\u60c5\u51b5\u662f\u6700\u4f18\u7684\u914d\u7f6e\u3002</p>"}]}
\ No newline at end of file
+{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"\u6982\u8ff0","text":"<p>Java Chassis \u7ed9\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u4e2a\u5feb\u901f\u6784\u5efa\u5fae\u670d\u52a1\u7684 JAVA SDK \u3002\u5b83\u5305\u542b\u5982\u4e0b\u7279\u6027\uff1a</p> <ul> <li>\u591a\u79cd\u5f00\u53d1\u98ce\u683c\uff0cREST(JAX-RS\u3001Spring MVC\uff09\u548c RPC</li> <li>\u591a\u79cd\u901a\u4fe1\u534f\u8bae, HTTP over Vert.x\u3001Http Over Servlet\u3001Highway \u7b49</li> <li>\u7edf\u4e00\u4e00\u81f4\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u3001\u670d\u52a1\u6d88\u8d39\u8005\u5904\u7406\u94fe\uff0c\u4ee5\u53ca\u57fa\u4e8e\u5951\u7ea6\u7684\u5f00\u7bb1\u5373\u7528\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b</li> </ul> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7Java Chassis\u8bbe\u8ba1\u53c2\u8003\u4e86\u89e3 Java Chassis \u7684\u8bbe\u8ba1\u601d\u8def\u3002</p> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u94fe\u63a5\u83b7\u53d6\u5176\u4ed6\u7248\u672c\u7684\u5e2e\u52a9\u6587\u6863\u3002</p> \u9002\u7528\u7248\u672c \u6b63\u5f0f\u53d1\u5e03\u5730\u5740 \u9884\u89c8\u7248\u672c\u5730\u5740 Java Chassis 3 \u4e2d\u6587, English \u4e2d\u6587, English Java Chassis 2 \u4e2d\u6587, English \u4e2d\u6587, English Java Chassis 1 \u4e2d\u6587, English \u4e2d\u6587, English"},{"location":"index.html#_2","title":"\u672f\u8bed\u8868","text":"\u7f29\u7565\u8bed \u82f1\u6587\u8bcd\u6c47 \u4e2d\u6587\u8bcd\u6c47 \u89e3\u91ca Application Application \u5e94\u7528 \u5e94\u7528\u4ee3\u8868\u4e00\u4e2a\u8f6f\u4ef6\u5e94\u7528\u7684\u903b\u8f91\u5b9e\u4f53\uff0c\u8868\u793a\u4e00\u4e2a\u6709\u4e1a\u52a1\u529f\u80fd\u5448\u73b0\u7ed9\u7528\u6237\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5e94\u7528\u3002\u4e00\u4e2a\u4ee5\u5fae\u670d\u52a1\u5316\u67b6\u6784\u6784\u5efa\u7684\u5e94\u7528\u901a\u5e38\u7531\u591a\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\u3002 Service Service \u5fae\u670d\u52a1 \u5fae\u670d\u52a1\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7SOA\u67b6\u6784\uff0c\u901a\u5e38\u7528\u6765\u63cf\u8ff0\u5e7f\u6cdb\u7528\u4e8e\u4e91\u5e94\u7528\u3001\u4e92\u8054\u7f51\u5e94\u7528\u7684\u4e00\u79cd\u677e\u8026\u5408\u5206\u5e03\u5f0f\u67b6\u6784\u3002 Instance Instance \u5fae\u670d\u52a1\u5b9e\u4f8b \u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6700\u5c0f\u8fd0\u884c\u548c\u90e8\u7f72\u5355\u5143\uff0c\u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a\u5e94\u7528\u8fdb\u7a0b\u3002 Provider Provider \u670d\u52a1\u63d0\u4f9b\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u88ab\u8c03\u7528\u4e00\u65b9\u7684\u670d\u52a1\u3002 Consumer Consumer \u670d\u52a1\u6d88\u8d39\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u8c03\u7528\u53d1\u8d77\u65b9\u7684\u670d\u52a1\u3002 Schema Schema \u5fae\u670d\u52a1\u5951\u7ea6 \u5fae\u670d\u52a1\u5951\u7ea6\u662f\u5bf9\u5916\u63a5\u53e3\u7684OpenAPI\u8868\u793a\u3002OpenAPI\u589e\u5f3a\u4e86\u5fae\u670d\u52a1\u7684\u53ef\u89c1\u6027\uff0c\u65b9\u4fbf\u670d\u52a1\u7684\u5206\u53d1\u3001\u4f7f\u7528\u548c\u6cbb\u7406\u3002 Code Style Code Style \u7f16\u7a0b\u6a21\u578b \u7f16\u7a0b\u6a21\u578b\u6307\u5982\u4f55\u8fdb\u884c\u670d\u52a1\u63a5\u53e3\u5f00\u53d1\u548c\u8c03\u7528\uff0cJava Chassis\u63d0\u4f9b\u4e86Spring Web MVC\u3001JAX RS\u7b49\u7f16\u7a0b\u6a21\u578b\u3002\u7f16\u7a0b\u6a21\u578b\u72ec\u7acb\u4e8e\u5904\u7406\u94fe\u548c\u901a\u4fe1\u6a21\u578b Filter Filter \u5904\u7406\u94fe \u5904\u7406\u94fe\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5305\u62ec\u7f16\u89e3\u7801\u3001\u670d\u52a1\u6cbb\u7406\u3001\u7f51\u7edc\u53d1\u9001\u7b49\u3002 Transport Transport \u901a\u4fe1\u6a21\u578b \u901a\u4fe1\u6a21\u578b\u5b9a\u4e49\u4e86\u5bf9\u8c61\u5982\u4f55\u7f16\u89e3\u7801\uff0c\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u4f20\u8f93\u7b49\u3002Java Chassis\u63d0\u4f9b\u4e86REST\u3001HIGHWAY\u7b49\u901a\u4fe1\u6a21\u578b\u3002 Load Balance Load Balance \u8d1f\u8f7d\u5747\u8861 \u5f53\u5e94\u7528\u8bbf\u95ee\u4e00\u4e2a\u5177\u6709\u591a\u4e2a\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u65f6\uff0c\u4f1a\u6d89\u53ca\u5230\u8def\u7531\u8d1f\u8f7d\u5747\u8861\u3002\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u652f\u6301\u968f\u673a\uff0c\u8f6e\u8be2\u3001\u4f1a\u8bdd\u4fdd\u6301\u548c\u57fa\u4e8e\u54cd\u5e94\u65f6\u95f4\u7684\u6743\u503c\u7b49\u591a\u79cd\u8d1f\u8f7d\u5747\u8861\u8def\u7531\u7b56\u7565\u3002 Rate Limiting Rate Limiting \u9650\u6d41 \u5f53\u8d44\u6e90\u6210\u4e3a\u74f6\u9888\u65f6\uff0c\u670d\u52a1\u6846\u67b6\u9700\u8981\u5bf9\u6d88\u8d39\u8005\u7684\u8bbf\u95ee\u8bf7\u6c42\u505a\u9650\u6d41\uff0c\u542f\u52a8\u6d41\u63a7\u4fdd\u62a4\u673a\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u8005\u7aef\u548c\u63d0\u4f9b\u8005\u7aef\u5747\u53ef\u8fdb\u884c\u6d41\u91cf\u63a7\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u67d0\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u8bf7\u6c42\u9891\u7387\uff1b\u5728\u670d\u52a1\u63d0\u4f9b\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u6bcf\u4e2a\u5fae\u670d\u52a1\u6d88\u8d39\u7aef\u53d1\u8fc7\u6765\u7684\u8bf7\u6c42\u9891\u7387\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u670d\u52a1\u63d0\u4f9b\u7aef\u8d44\u6e90\u6d88\u8017\u60c5\u51b5\u786e\u5b9a\u603b\u7684\u8bf7\u6c42\u9891\u7387\u9650\u5236\uff0c\u9632\u6b62\u670d\u52a1\u56e0\u8d44\u6e90\u8017\u5c3d\u800c\u5d29\u6e83\u3002 Service Degrade Service Degrade \u964d\u7ea7 \u670d\u52a1\u964d\u7ea7\u4e3b\u8981\u5305\u62ec\u5c4f\u853d\u964d\u7ea7\u548c\u5bb9\u9519\u964d\u7ea7\u4e24\u79cd\u7b56\u7565\uff1a\u5c4f\u853d\u964d\u7ea7\u662f\u6307\u5f53\u5916\u754c\u7684\u89e6\u53d1\u6761\u4ef6\u8fbe\u5230\u67d0\u4e2a\u4e34\u754c\u503c\u65f6\uff0c\u7531\u8fd0\u7ef4\u4eba\u5458/\u5f00\u53d1\u4eba\u5458\u51b3\u7b56\uff0c\u5bf9\u67d0\u7c7b\u6216\u8005\u67d0\u4e2a\u670d\u52a1\u8fdb\u884c\u5f3a\u5236\u964d\u7ea7\u3002\u5bb9\u9519\u964d\u7ea7\u662f\u6307\u5f53\u975e\u6838\u5fc3\u670d\u52a1\u4e0d\u53ef\u7528\u65f6\uff0c\u53ef\u4ee5\u5bf9\u6545\u969c\u670d\u52a1\u505a\u4e1a\u52a1\u903b\u8f91\u653e\u901a\uff0c\u4ee5\u4fdd\u969c\u6838\u5fc3\u670d\u52a1\u7684\u8fd0\u884c\u3002 Fault Tolerance Fault Tolerance \u5bb9\u9519 \u5bb9\u9519\u662f\u6d88\u8d39\u8005\u8bbf\u95ee\u670d\u52a1\u65f6\u51fa\u73b0\u5f02\u5e38\u7684\u573a\u666f\u4e0b\u7684\u4e00\u79cd\u5904\u7406\u7b56\u7565\uff0c\u51fa\u73b0\u5f02\u5e38\u540e\u7531\u670d\u52a1\u6846\u67b6\u81ea\u52a8\u9009\u62e9\u65b0\u7684\u670d\u52a1\u8def\u7531\u8fdb\u884c\u8c03\u7528\u3002 Circuit Breaker Circuit Breaker \u7194\u65ad \u5fae\u670d\u52a1\u4e4b\u95f4\u901a\u5e38\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\uff0c\u670d\u52a1\u8c03\u7528\u94fe\u8def\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff0c\u5982\u679c\u94fe\u8def\u4e2d\u4e00\u4e2a\u6216\u591a\u4e2a\u670d\u52a1\u8bbf\u95ee\u5ef6\u8fdf\u8fc7\u9ad8\uff0c\u4f1a\u5bfc\u81f4\u5165\u53e3\u670d\u52a1\u7684\u8bf7\u6c42\u4e0d\u65ad\u5806\u79ef\uff0c\u6301\u7eed\u6d88\u8017\u66f4\u591a\u7684\u7ebf\u7a0b\u3001io\u8d44\u6e90\uff0c\u6700\u7ec8\u7531\u4e8e\u8d44\u6e90\u7d2f\u79ef\u4f7f\u7cfb\u7edf\u51fa\u73b0\u74f6\u9888\uff0c\u9020\u6210\u66f4\u591a\u670d\u52a1\u4e0d\u53ef\u7528\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u7194\u65ad\u673a\u5236\u5c31\u662f\u9488\u5bf9\u4e0a\u8ff0\u573a\u666f\u8bbe\u8ba1\u7684\uff0c\u5f53\u67d0\u4e2a\u76ee\u6807\u670d\u52a1\u54cd\u5e94\u7f13\u6162\u6216\u8005\u6709\u5927\u91cf\u8d85\u65f6\u60c5\u51b5\u53d1\u751f\u65f6\uff0c\u7194\u65ad\u8be5\u670d\u52a1\u7684\u8c03\u7528\uff0c\u5bf9\u4e8e\u540e\u7eed\u8c03\u7528\u8bf7\u6c42\uff0c\u4e0d\u518d\u7ee7\u7eed\u8c03\u7528\u76ee\u6807\u670d\u52a1\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u5feb\u901f\u91ca\u653e\u8d44\u6e90\uff0c\u7b49\u5230\u8be5\u76ee\u6807\u670d\u52a1\u60c5\u51b5\u597d\u8f6c\u518d\u6062\u590d\u8c03\u7528\u3002 Bulkhead Bulkhead \u9694\u79bb\u4ed3 \u9694\u79bb\u4ed3\u662f\u4e00\u79cd\u5f02\u5e38\u68c0\u6d4b\u673a\u5236\uff0c\u5e38\u7528\u7684\u68c0\u6d4b\u65b9\u6cd5\u662f\u8bf7\u6c42\u8d85\u65f6\u3001\u6d41\u91cf\u8fc7\u5927\u7b49\u3002\u4e00\u822c\u7684\u8bbe\u7f6e\u53c2\u6570\u5305\u62ec\u8d85\u65f6\u65f6\u95f4\u3001\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u7b49\uff0c\u5f53\u8d85\u8fc7\u8d85\u65f6\u65f6\u95f4\u6216\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u65f6\uff0c\u8bb0\u5f55\u4e00\u6b21\u5f02\u5e38\uff0c\u5728\u7194\u65ad\u3001\u5b9e\u4f8b\u9694\u79bb\u673a\u5236\u4e2d\uff0c\u7528\u4e8e\u8ba1\u7b97\u9519\u8bef\u7387\u3002 Instance Isolation Instance Isolation \u5b9e\u4f8b\u9694\u79bb \u5b9e\u4f8b\u9694\u79bb\u901a\u8fc7\u68c0\u6d4b\u5b9e\u4f8b\u7684\u9519\u8bef\u7387\u3001\u8d85\u65f6\u8bf7\u6c42\u6570\u7b49\u6307\u6807\uff0c\u77ed\u6682\u7684\u5c4f\u853d\u6545\u969c\u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u964d\u4f4e\u9519\u8bef\u7387\u4ee5\u53ca\u9632\u6b62\u53d1\u751f\u96ea\u5d29\u6548\u5e94\u3002"},{"location":"index.html#_3","title":"\u5e2e\u52a9\u6539\u5584","text":"<ul> <li>Java Chassis\u7684 \u6587\u6863\u6e90\u4ee3\u7801 \u6258\u7ba1\u5728Github\uff0c \u53ef\u4ee5\u4e0b\u8f7d\u540e \uff0c\u91c7\u7528 MkDocs \u672c\u5730\u4f7f\u7528\u3002 \u4e5f\u53ef\u4ee5\u5728 Issues \u63d0\u4ea4\u6539\u8fdb\u5efa\u8bae\u3002 </li> </ul> <p>\u5907\u6ce8\uff1aJava Chassis 2\u548cJava Chassis 3\u7f3a\u5c11\u82f1\u6587\u7ffb\u8bd1\uff0c\u975e\u5e38\u671f\u5f85\u60a8\u7684\u5e2e\u52a9\u652f\u6301\u3002</p>"},{"location":"introduce3.x.x.html","title":"Java Chassis 3\u7248\u672c\u4ecb\u7ecd","text":"<p>\u76f8\u5bf9\u4e8eJava Chassis 2\uff0cJava Chassis 3\u5728\u4e1a\u52a1\u8fde\u7eed\u6027\u3001\u5f00\u53d1\u6613\u7528\u6027\u3001\u6027\u80fd\u53ef\u9760\u6027\u7b49\u65b9\u9762\u505a\u4e86\u5927\u91cf\u5de5\u4f5c\u3002\u4e3b\u8981\u5305\u62ec\uff1a</p> <ul> <li>\u652f\u6301 JDK 17 \u548c Spring Boot 3\u3002 Java Chassis 3\u5b8c\u5168\u4f7f\u7528JDK 17\u8fdb\u884c\u7f16\u8bd1\uff0c\u5e76\u6839\u636eJDK 17\u7684\u65b0\u7279\u6027\uff0c\u91cd\u6784\u4e86\u90e8\u5206\u4ee3\u7801\uff0c\u8c03\u6574\u4e86\u914d\u5957\u7684\u4e09\u65b9\u8f6f\u4ef6\u9009\u578b\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\uff0c\u8fd0\u884c\u66f4\u52a0\u9ad8\u6548\u3002Java Chassis 3\u5728\u5e95\u5c42\u4f9d\u8d56\u4e0a\u9762\uff0c\u5f7b\u5e95\u62e5\u62b1 Spring Boot 3\uff0c\u5e76\u4f9d\u8d56\u4e8eSpring Boot\u7279\u6027\uff0c\u91cd\u6784\u4e86\u5904\u7406\u94fe\uff08Filter\uff09\u3001\u6ce8\u518c\uff08Registration\uff09\u3001\u53d1\u73b0(Discovery)\u3001\u914d\u7f6e\uff08DynamicPropertiesSource)\u3001\u8d1f\u8f7d\u5747\u8861\uff08DiscoveryTree\u3001DiscoveryFilter)\u7b49\u6838\u5fc3\u7ec4\u4ef6\uff0c\u4ee5\u652f\u6301\u66f4\u52a0\u4e30\u5bcc\u7684\u5e94\u7528\u5f00\u53d1\u751f\u6001\uff0c\u964d\u4f4e\u6269\u5c55\u5b9e\u73b0\u7684\u96be\u5ea6\u3002</li> <li>\u652f\u6301OpenAPI 3.0.x\u3002 Java Chassis 3\u66f4\u65b0\u5347\u7ea7\u4e86OpenAPI 3.0.x\uff0c\u5e76\u5728\u6b64\u57fa\u7840\u4e0a\uff0c\u63d0\u4f9b\u4e86 Content-Type \u4e3a application/protobuf\uff0c application/text\u7b49\u652f\u6301\u3002\u8fd9\u6837\u53ef\u4ee5\u5728HTTP/HTTP2\u7b49\u534f\u8bae\u57fa\u7840\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u66f4\u591a\u7684\u5e8f\u5217\u5316\u534f\u8bae\u652f\u6301\uff0c\u4ee5\u63d0\u5347\u5e8f\u5217\u5316\u7684\u6027\u80fd\u3002 </li> <li>\u4f7f\u7528\u65b0\u7684\u5904\u7406\u94fe\u673a\u5236\uff08Filter\uff09\u53d6\u4ee3\u65e7\u7684\u5904\u7406\u94fe\u673a\u5236(Handler)\uff0c\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u5f02\u6b65\u5904\u7406\u652f\u6301\u3002\u7edf\u4e00\u4e86Handler/HttServerFilter/HttpClientFilter\u7b49\u673a\u5236\uff0c\u90fd\u4f7f\u7528Filter\u6765\u8868\u8fbe\u3002 \u5c06Handler\u7684\u914d\u7f6e\u6587\u4ef6\u7f16\u6392\uff0c\u4fee\u6539\u4e3aSpring Boot\u7684\u4f9d\u8d56\u6ce8\u5165\uff0c\u7b80\u5316\u7528\u6237\u5f00\u53d1\u548c\u4f7f\u7528Filter\u3002 </li> <li>\u7b80\u5316\u4e86\u6ce8\u518c\u53d1\u73b0\uff08Discovery\u3001Registration\uff09\u63a5\u53e3\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u52a0\u7b80\u5355\u7684\u9002\u914d\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\uff0c\u63d0\u4f9b\u4e86\u672c\u5730\u6ce8\u518c\uff08Local\uff09\u3001\u5e7f\u64ad\uff08zero-config\uff09\u3001ServiceComb \u6ce8\u518c\u4e2d\u5fc3\uff08SC)\u3001Nacos\u6ce8\u518c\u4e2d\u5fc3\u7b49\u9ed8\u8ba4\u5b9e\u73b0\u3002 </li> <li>\u63d0\u4f9b\u4e86\u5168\u65b0\u7684\u5b9e\u4f8b\u7ba1\u7406\u548c\u8d1f\u8f7d\u5747\u8861\u673a\u5236\uff0c\u4ee5\u4fdd\u8bc1\u6ce8\u518c\u4e2d\u5fc3\u7f51\u7edc\u5206\u533a\u6545\u969c\u7b49\u573a\u666f\u4e0b\u7684\u53ef\u9760\u6027\u3002\u8be5\u673a\u5236\u80fd\u591f\u5728\u6ce8\u518c\u4e2d\u5fc3\u4e0d\u540c\u7684\u6545\u969c\u573a\u666f\u4e0b\u4fdd\u969c\u5fae\u670d\u52a1\u81ea\u8eab\u8fd0\u884c\u7684\u53ef\u9760\u6027\uff0c\u964d\u4f4e\u4e86\u6ce8\u518c\u4e2d\u5fc3\u53ef\u9760\u6027\u5bf9\u4e8e\u5e94\u7528\u672c\u8eab\u8fd0\u884c\u53ef\u9760\u6027\u7684\u5f71\u54cd\uff0c\u4e3a\u9009\u62e9\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u73b0\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u53ef\u80fd\u6027\u3002 </li> <li>\u7b80\u5316\u4e86\u914d\u7f6e\uff08DynamicPropertiesSource)\u63a5\u53e3\uff0c\u66f4\u597d\u7684\u652f\u6301Spring Boot\u7684Environment\u548cPropertySource\u7b49\u673a\u5236\u3002\u505a\u5230\u548cSpring Boot\u914d\u7f6e\u673a\u5236\u5b8c\u5168\u878d\u5408\u3002\u540c\u65f6\u4fdd\u7559\u4e86DynamicProperties\u3001PriorityPropertyManager\u7b49\u914d\u7f6e\u673a\u5236\uff0c\u5f25\u8865Spring Boot\u914d\u7f6e\u4f7f\u7528\u5728\u53d8\u66f4\u4e8b\u4ef6\u76d1\u542c\u3001\u4f18\u5148\u7ea7\u914d\u7f6e\u7b49\u65b9\u9762\u7684\u4e0d\u8db3\u3002 \u63d0\u4f9b\u4e86ServiceComb Kie\u914d\u7f6e\u4e2d\u5fc3\u3001Nacos\u914d\u7f6e\u4e2d\u5fc3\u3001Apollo\u914d\u7f6e\u4e2d\u5fc3\u7b49\u9ed8\u8ba4\u5b9e\u73b0\u3002</li> <li>\u79fb\u9664\u4e86\u5f71\u54cd\u4e1a\u52a1\u8fde\u7eed\u6027\u7684\u7ec4\u4ef6\uff0c\u5e76\u63d0\u4f9b\u4e86\u66ff\u4ee3\u65b9\u6848\u3002\u5305\u62ecHystrix\u3001Archaius\u3001Commons Configuration\u3001Ribbon\u3001Spectator\u7b49\u3002 </li> </ul>"},{"location":"build-consumer/3rd-party-service-invoke.html","title":"\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1","text":""},{"location":"build-consumer/3rd-party-service-invoke.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u7b2c\u4e09\u65b9\u670d\u52a1\u6ca1\u6709\u5728\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\uff0c\u4e0d\u5b58\u5951\u7ea6\u4fe1\u606f\uff0cJava Chassis \u63d0\u4f9b\u4e00\u79cd\u900f\u660e\u7684\u65b9\u5f0f\u8bbf\u95ee\u7b2c\u4e09\u65b9\u670d\u52a1\u3002  \u4f7f\u7528\u8be5\u529f\u80fd\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u65f6\uff0c\u53d1\u5f80\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u8bf7\u6c42\u4f1a\u7ecf\u8fc7consumer\u7aefhandler\u94fe\u3001HttpClientFilter\u7684\u5904\u7406\uff0c \u5373\u8be5\u529f\u80fd\u652f\u6301\u5bf9\u7b2c\u4e09\u65b9\u670d\u52a1\u8c03\u7528\u7684\u6cbb\u7406\u529f\u80fd\uff0c\u5e76\u4e14\u4e5f\u652f\u6301ServiceComb\u65e2\u6709\u7684\u7528\u6237\u81ea\u5b9a\u4e49\u6269\u5c55\u5904\u7406\u673a\u5236\u3002 </p> <p>\u53e6\u5916\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u4f7f\u7528 \u672c\u5730\u6ce8\u518c\u53d1\u73b0 \u5b9e\u73b0\u7b2c\u4e09\u65b9\u8c03\u7528\uff0c \u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0\u7684\u6548\u679c\u662f\u4e00\u81f4\u7684\u3002 </p>"},{"location":"build-consumer/3rd-party-service-invoke.html#_3","title":"\u793a\u4f8b\u4ee3\u7801","text":"<ol> <li> <p>\u5047\u8bbe\u7528\u6237\u5728\u672c\u5730\u5f00\u53d1\u4e86\u4e00\u4e2aREST\u670d\u52a1\u4f5c\u4e3a\u7b2c\u4e09\u65b9REST\u670d\u52a1\uff0c\u76d1\u542c\u7aef\u53e3\u53f7\u4e3a8080\uff0c\u5176REST\u63a5\u53e3\u5982\u5951\u7ea6\u6240\u793a\uff1a</p> <pre><code>```yaml\n---\nswagger: \"2.0\"\ninfo:\nversion: \"0.0.1\"\ntitle: \"3rd party REST service for example\"\nbasePath: \"/rest\"\nconsumes:\n- \"application/json\"\nproduces:\n- \"text/plain\"\npaths:\n/{pathVar}:\n  get:\n    operationId: \"testPathVar\"\n    parameters:\n    - name: \"pathVar\"\n      in: \"path\"\n      required: true\n      type: \"string\"\n    responses:\n      200:\n        description: \"response of 200, return \\\"Received, OK. [${pathVar}]\\\"\"\n        schema:\n          type: \"string\"\n```\n</code></pre> </li> <li> <p>\u4e3a\u8c03\u7528\u6b64\u670d\u52a1\uff0c\u9700\u8981\u5148\u6839\u636e\u5176REST\u63a5\u53e3\u7f16\u5199\u4e00\u4e2aJava\u63a5\u53e3\u7c7b\uff0c\u5e76\u6253\u4e0a\u53c2\u6570\u6ce8\u89e3\u3002     Java\u63a5\u53e3\u7c7b\u7684\u7f16\u5199\u65b9\u5f0f\u53c2\u7167\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u5f00\u53d1SpringMVC\u548cJAX-RS\u98ce\u683c\u7684provider\u65b9\u5f0f\u3002     \u63a5\u53e3\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>```java\n@Path(\"/rest\")\n@Api(produces = MediaType.TEXT_PLAIN)\npublic interface VertxServerIntf {\n@Path(\"/{pathVar}\")\n@GET\nString testPathVar(@PathParam(\"pathVar\") String pathVar);\n}\n```\n</code></pre> </li> <li> <p>\u901a\u8fc7\u5b9e\u73b0 <code>ThirdServiceWithInvokerRegister</code> \u6ce8\u518c\u7b2c\u4e09\u65b9\u670d\u52a1\u4fe1\u606f\u3002 \u53ef\u4ee5\u6ce8\u518c\u591a\u4e2a schema\u3002 </p> <pre><code>```java\n@Configuration\npublic class ThirdSvc extends ThirdServiceWithInvokerRegister {\n  public ThirdSvc() {\n    super(\"3rd-svc\");\n\n    addSchema(\"schema-1\", VertxServerIntf.class);\n  }\n}\n```\n</code></pre> <p>\u6ce8\u610f\uff1a java chassis 2.1.3 \u4ee5\u4e0a\u7248\u672c\u624d\u652f\u6301 ThirdServiceWithInvokerRegister\u3002 </p> </li> <li> <p>\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u58f0\u660e\u548c\u8c03\u7528\u65b9\u5f0f\u4e0e\u8c03\u7528ServiceComb provider\u670d\u52a1\u76f8\u540c\uff0c\u6b64\u5904\u4ee5RPC\u8c03\u7528\u65b9\u5f0f\u4e3a\u4f8b\u3002</p> <pre><code>```java\nVertxServerIntf client = BeanUtils.getContext().getBean(VertxServerIntf.class);\nclient.testPathVar(pathVar);\n```\n</code></pre> </li> <li> <p>\u4f7f\u7528\u6cbb\u7406\u529f\u80fd\u3002\u4f7f\u7528\u6cbb\u7406\u529f\u80fd\u7684\u65b9\u6cd5\u4e0e\u666e\u901a\u7684consumer\u8c03\u7528provider\u573a\u666f\u7c7b\u4f3c\u3002\u4ee5\u9650\u6d41\u7b56\u7565\u4e3a\u4f8b\uff0c\u5728consumer   \u670d\u52a1\u7684microservice.yaml\u6587\u4ef6\u4e2d\u8fdb\u884c\u5982\u4e0b\u914d\u7f6e:</p> <pre><code>```yaml\nservicecomb:\n  flowcontrol:\n    Consumer:\n      qps:\n        enabled: true\n        limit:\n          thirdPartyService: 1\n```\n</code></pre> <p>\u6b64\u65f6\u5373\u5c06consumer\u8c03\u7528\u540d\u4e3a<code>thirdPartyService</code>\u7684\u7b2c\u4e09\u65b9REST\u670d\u52a1\u7684QPS\u8bbe\u7f6e\u4e3a1\u3002\u5f53consumer\u8c03\u7528<code>thirdPartyService</code>\u7684\u6d41\u91cf\u9ad8\u4e8e1QPS\u65f6\uff0c \u5c06\u4f1a\u5f97\u5230<code>429 Too Many Requests</code>\u7684<code>InvocationException</code>\u5f02\u5e38\u3002</p> </li> <li> <p>\u914d\u7f6e\u7b2c\u4e09\u5206\u670d\u52a1\u7684\u5b9e\u4f8b\u4fe1\u606f</p> <pre><code>3rd-svc:\n  urls:\n    - http://localhost:8080\n</code></pre> </li> </ol>"},{"location":"build-consumer/basics.html","title":"\u57fa\u7840\u6982\u5ff5","text":"<p>Java Chassis \u662f\u4ee5 OpenAPI \u4e3a\u57fa\u7840\u7684\u5fae\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u3002\u4e00\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7 OpenAPI \u8fdb\u884c\u63cf\u8ff0\u3002 \u5fae\u670d\u52a1\u6d88\u8d39\u8005\u548c\u63d0\u4f9b\u8005\u5b8c\u5168\u89e3\u8026\uff0c\u5f00\u53d1\u6d88\u8d39\u8005\u65e0\u9700\u77e5\u9053\u63d0\u4f9b\u8005\u7684\u5f00\u53d1\u65b9\u5f0f\uff0c\u53ea\u9700\u8981\u77e5\u9053\u63d0\u4f9b\u8005\u7684OpenAPI\u4fe1\u606f\u3002 </p> <p>\u672c\u7ae0\u8282\u4ecb\u7ecd\u57fa\u4e8e\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005-\u57fa\u7840\u6982\u5ff5\u63d0\u4f9b\u7684 <code>HelloWorld</code> \u5951\u7ea6, \u63cf\u8ff0\u5982\u4f55\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002</p> <pre><code>openapi: 3.0.1\ninfo:\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /helloWorld:\n    post:\n      operationId: helloWorld\n      requestBody:\n        content:\n          application/json:\n            schema:\n              type: string\n          application/protobuf:\n            schema:\n              type: string\n          text/plain:\n            schema:\n              type: string\n        x-name: name\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents: {}\n</code></pre>"},{"location":"build-consumer/basics.html#restful-restoperations","title":"Restful\u98ce\u683c - \u4f7f\u7528 RestOperations","text":"<pre><code>RestOperations restOperation = \n    RestTemplateBuilder.create();\nString result = restOperation\n    .postForObject(\"servicecomb://provider-service/helloWorld\", \n    \"World\", String.class);\nAssertions.assertTrue(\"Hello World\", result);\n</code></pre> <p>\u4f7f\u7528Restful\u98ce\u683c\u5f00\u53d1\u6d88\u8d39\u8005\uff0c\u9700\u8981\u5173\u6ce8Open API\u7684Path\u3001\u53c2\u6570\u4f4d\u7f6e\uff08Body\u3001Header\u7b49\uff09\u3001\u53c2\u6570\u7c7b\u578b\u4ee5\u53ca\u54cd\u5e94\u7c7b\u578b\uff0c\u5e76\u4e14\u4f7f\u7528RestOperations\u7684\u76f8\u5173\u63a5\u53e3\u548c\u53c2\u6570\u4e00\u4e00\u5bf9\u5e94\u3002 \u5176\u4e2d <code>servicecomb://provider-service</code> \u8868\u793a\u76ee\u6807\u5fae\u670d\u52a1\uff0c\u4f7f\u7528\u76ee\u6807\u5fae\u670d\u52a1\u7684\u670d\u52a1\u540d\u79f0\u3002 </p>"},{"location":"build-consumer/basics.html#rpc","title":"RPC\u98ce\u683c","text":"<p>RPC\u98ce\u683c\u662f\u4e00\u79cd\u8bed\u8a00\u6709\u5173\u7684\u5f00\u53d1\u65b9\u6cd5\uff0c\u66f4\u52a0\u8d34\u8fd1\u8bed\u8a00\u7684\u4f7f\u7528\u4e60\u60ef\u3002\u8bbf\u95ee\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u670d\u52a1\uff0c\u5c31\u50cf\u8c03\u7528\u672c\u5730\u7684API\u4e00\u6837\u3002 </p> <p>\u4f7f\u7528RPC\u98ce\u683c\uff0c\u9996\u5148\u9700\u8981\u58f0\u660e\u4e00\u4e2a <code>interface</code> \u4e0e\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u5bf9\u5e94\u3002 </p> <pre><code>interface HelloWorldService {\n  String helloWorld(String name);\n}\n</code></pre> <p>\u58f0\u660e <code>interface</code> \u4f1a\u4f7f\u7528\u5230 Open API \u7684 <code>operationId</code>\u3001 \u53c2\u6570\u540d\u79f0\u548c\u53c2\u6570\u7c7b\u578b\u3001\u54cd\u5e94\u7c7b\u578b\u3002 \u53ea\u9700\u8981\u4fdd\u8bc1\u65b9\u6cd5\u540d\u7b49\u4e8e<code>operationId</code>\uff0c \u53c2\u6570\u540d\u79f0\u7b49\u4e8eOpen API\u91cc\u9762\u7684\u53c2\u6570\u540d\u79f0\uff08\u5bf9\u4e8ebody\uff0c\u4f7f\u7528\u6269\u5c55\u5c5e\u6027x-name\uff09\u3002 </p> <p>\u4f7f\u7528\u8d77\u6765\u5c31\u975e\u5e38\u7b80\u5355\u4e86\uff1a</p> <pre><code>@RpcReference(schemaId = \"HelloWorld\", \n    microserviceName = \"provider-service\")\nprivate HelloWorldService helloWorldService;\n\nString result = helloWorldService.helloWorld(\"World\");\nAssertions.assertTrue(\"Hello World\", result);\n</code></pre> <p>\u5728\u5177\u4f53\u7684\u5f00\u53d1\u5b9e\u8df5\u4e2d\uff0c\u5f00\u53d1Provider\u5b9a\u4e49interface\uff08API\uff09\uff0c\u7136\u540eConsumer\u4f9d\u8d56Provider\u53d1\u5e03\u7684\u5305\uff0c\u76f4\u63a5\u4f7f\u7528Provider\u7684\u63a5\u53e3\u4e5f\u662f\u975e\u5e38\u5e38\u89c1\u7684\u3002\u5982\u679c\u5df2\u7ecf\u4e60\u60ef\u8fd9\u79cd\u4f7f\u7528\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\u3002 \u5728\u8ba8\u8bba\u5b8c\u5168\u89e3\u8026\u548cAPI\u4f9d\u8d56\u7684\u597d\u5904\u7684\u65f6\u5019\uff0c\u5b58\u5728\u975e\u5e38\u590d\u6742\u548c\u7ec6\u8282\u7684\u5dee\u5f02\u3002\u5b8c\u5168\u89e3\u8026\u7684\u5f62\u5f0f\uff0c\u53ef\u4ee5\u7ed9\u72ec\u7acb\u5f00\u53d1\u5e26\u6765\u5f88\u5927\u7684\u7075\u6d3b\u6027\uff0c\u80fd\u591f\u63d0\u9ad8\u5e76\u884c\u5f00\u53d1\u7684\u6548\u7387\u3002 </p>"},{"location":"build-consumer/basics.html#-invokerutils","title":"\u6cdb\u5316\u8c03\u7528 - InvokerUtils","text":"<pre><code>Map&lt;String, Object&gt; args = new HashMap&lt;&gt;();\nargs.put(\"name\", \"World\");\nString result = InvokerUtils.syncInvoke(\"provider-service\",\n    \"HelloWorld\", \"helloWorld\", args, String.class));\nAssertions.assertTrue(\"Hello World\", result);\n</code></pre> <p>\u6cdb\u5316\u8c03\u7528\u4f7f\u7528\u670d\u52a1\u540d\u3001\u5951\u7ea6\u540d\u79f0\u3001<code>operationId</code>\u3001 \u53c2\u6570\u76f4\u63a5\u8bf7\u6c42\u670d\u52a1\u63d0\u4f9b\u8005\uff0c\u5bf9\u5e94\u5230 Open API \u7684<code>operationId</code>\u3001\u53c2\u6570\u540d\u79f0\u548c\u53c2\u6570\u7c7b\u578b\u3001\u54cd\u5e94\u7c7b\u578b\u3002</p>"},{"location":"build-consumer/code-first.html","title":"Code first","text":""},{"location":"build-consumer/code-first.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u670d\u52a1\u6d88\u8d39\u8005\u53ef\u4ee5\u4e0d\u7528\u663e\u5f0f\u5730\u5c06\u5951\u7ea6\u5b58\u653e\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\uff0c\u5f53\u7a0b\u5e8f\u542f\u52a8\u65f6\uff0cServiceComb\u6846\u67b6\u4f1a\u81ea\u52a8\u6839\u636emicroservice.yaml\u6587\u4ef6\u4e2d\u914d\u7f6e\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u5fae\u670d\u52a1\u540d\u79f0\u548c\u7248\u672c\u53f7\uff0c\u4ece\u670d\u52a1\u4e2d\u5fc3\u62c9\u53d6\u5951\u7ea6\u4fe1\u606f\u3002</p>"},{"location":"build-consumer/code-first.html#api","title":"\u6d89\u53caAPI","text":"<p>\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u53ef\u7528\u4e8eRestTemplate\u3001\u900f\u660eRPC\u4e24\u79cd\u670d\u52a1\u6d88\u8d39\u8005\u5f00\u53d1\u6a21\u5f0f\uff0c\u4f7f\u7528RestTemplate\u7684\u5f00\u53d1\u65b9\u5f0f\u53c2\u89c14.3 \u4f7f\u7528RestTemplate\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002</p>"},{"location":"build-consumer/code-first.html#_2","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u672c\u5c0f\u8282\u4ee5\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4e3a\u4f8b\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002</p> <p>\u670d\u52a1\u6d88\u8d39\u8005\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>import org.springframework.stereotype.Component;\nimport org.apache.servicecomb.foundation.common.utils.BeanUtils;\nimport org.apache.servicecomb.foundation.common.utils.Log4jUtils;\nimport org.apache.servicecomb.provider.pojo.RpcReference;\nimport org.apache.servicecomb.samples.common.schema.Hello;\nimport org.apache.servicecomb.samples.common.schema.models.Person;\n\n@Component\npublic class CodeFirstConsumerMain {\n  @RpcReference(microserviceName = \"codefirst\", schemaId = \"codeFirstHello\")\n  private static Hello hello;\n\n  public static void main(String[] args) throws Exception {\n    init();\n    System.out.println(hello.sayHi(\"Java Chassis\"));\n    Person person = new Person();\n    person.setName(\"ServiceComb/Java Chassis\");\n    System.out.println(hello.sayHello(person));\n  }\n\n  public static void init() throws Exception {\n    Log4jUtils.init();\n    BeanUtils.init();\n  }\n}\n</code></pre> <p>\u5728\u4ee5\u4e0a\u4ee3\u7801\u4e2d\uff0c\u670d\u52a1\u6d88\u8d39\u8005\u5df2\u7ecf\u53d6\u5f97\u4e86\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u63a5\u53e3Hello\uff0c\u5e76\u5728\u4ee3\u7801\u4e2d\u58f0\u660e\u4e00\u4e2aHello\u7c7b\u578b\u7684\u6210\u5458\u3002\u901a\u8fc7\u5728hello\u4e0a\u4f7f\u7528RPCReference\u6ce8\u89e3\u6307\u660e\u5fae\u670d\u52a1\u540d\u79f0\u548cschemaId\uff0cServiceComb\u6846\u67b6\u53ef\u4ee5\u5728\u7a0b\u5e8f\u542f\u52a8\u65f6\u4ece\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u5230\u5bf9\u5e94\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u5b9e\u4f8b\u4fe1\u606f\uff0c\u5e76\u4e14\u751f\u6210\u4e00\u4e2a\u4ee3\u7406\u6ce8\u5165\u5230hello\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u50cf\u8c03\u7528\u672c\u5730\u7c7b\u4e00\u6837\u8c03\u7528\u8fdc\u7a0b\u670d\u52a1\u3002</p>"},{"location":"build-consumer/develop-consumer-using-rpc.html","title":"\u4f7f\u7528RPC\u65b9\u5f0f\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":""},{"location":"build-consumer/develop-consumer-using-rpc.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684java interface\u50cf\u672c\u5730\u8c03\u7528\u4e00\u6837\u8fdb\u884c\u670d\u52a1\u8c03\u7528\u3002 \u900f\u660eRPC\u4ec5\u4ec5\u662f\u4e00\u79cd\u5f00\u53d1\u6a21\u5f0f\uff1a</p> <ul> <li>\u4e0e\u4f7f\u7528highway\u8fd8\u662fRESTful\u4f20\u8f93\u6ca1\u6709\u5173\u8054</li> <li>\u4e0eproducer\u4f7f\u7528\u900f\u660eRPC/Jax-RS\u8fd8\u662fSpringMVC\u6a21\u5f0f\u5f00\u53d1\u6ca1\u6709\u5173\u8054</li> <li>\u4e5f\u4e0eproducer\u4ee3\u7801\u662f\u5426\u5b9e\u73b0\u8fd9\u4e2ainterface\u6ca1\u6709\u5173\u8054\u3002  </li> </ul> <p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4e0espring boot\u7684feign\u7c7b\u4f3c\uff0c\u4e0d\u8fc7\u66f4\u7b80\u5355\uff0c\u56e0\u4e3a\u4e0d\u5fc5\u5728\u8fd9\u4e2ainterface\u4e2d\u589e\u52a0\u4efb\u4f55RESTful annotation\u3002</p>"},{"location":"build-consumer/develop-consumer-using-rpc.html#spring-beanrpcreference","title":"\u5728spring bean\u4e2d\u901a\u8fc7@RpcReference\u58f0\u660e","text":"<pre><code>@Component\npublic class SomeBean {\n  ......\n\n  @RpcReference(microserviceName = \"helloService\", schemaId = \"helloSchema\")\n  private Hello hello;\n\n  ......\n}\n</code></pre>"},{"location":"build-consumer/develop-consumer-using-rpc.html#spring-beanapi","title":"\u8131\u79bbspring bean\uff0c\u76f4\u63a5\u901a\u8fc7api\u58f0\u660e","text":"<pre><code>Hello hello = Invoker.createProxy(\"helloService\", \"helloSchema\", Hello.class);\n</code></pre>"},{"location":"build-consumer/develop-consumer-using-rpc.html#reactive","title":"reactive","text":"<p>\u53ea\u9700\u8981\u4f7f\u7528jdk\u7684CompletableFuture\u5bf9\u8fd4\u56de\u503c\u8fdb\u884c\u5305\u88c5\u5373\u53ef</p> <pre><code>interface Hello {\n  CompletableFuture&lt;String&gt; sayHi(String name);\n}\n</code></pre> <p>\u540c\u4e00\u4e2ainterface\u4e2d\uff0c\u53ef\u4ee5\u540c\u65f6\u58f0\u660e\u540c\u4e00\u4e2a\u65b9\u6cd5\u7684reactive\u548c\u540c\u6b65\u539f\u578b \u56e0\u4e3a\u8981\u6c42\u65b9\u6cd5\u540d\u4e0e\u5951\u7ea6\u4e2d\u7684operationId\u4e00\u4e00\u5bf9\u5e94\uff0c\u800c\u4ec5\u6709\u8fd4\u56de\u503c\u7c7b\u578b\u4e0d\u540c\uff0c\u5728java\u4e2d\u662f\u975e\u6cd5\u7684\uff0c\u6240\u4ee5\u9700\u8981\u4fee\u6539\u65b9\u6cd5\u540d\uff0c\u5e76\u901a\u8fc7swagger annotation\u6765\u58f0\u660e\u771f\u6b63\u7684operationId</p> <pre><code>interface Hello {\n  String sayHi(String name);\n\n  @ApiOperation(nickname = \"sayHi\", value = \"reactive method for sayHi\")\n  CompletableFuture&lt;String&gt; asyncSayHi(String name);\n}\n</code></pre>"},{"location":"build-consumer/invoker.html","title":"\u6cdb\u5316\u8c03\u7528","text":"<p>\u6cdb\u5316\u8c03\u7528\u6307\u5728\u4e0d\u77e5\u9053 Provider \u63a5\u53e3\u5b9a\u4e49\u4fe1\u606f\u7684\u60c5\u51b5\u4e0b\uff0c\u8bbf\u95ee Provider \u63d0\u4f9b\u7684\u670d\u52a1\u3002 \u6cdb\u5316 \u8c03\u7528\u9700\u8981\u63d0\u4f9b Provider \u7684\u670d\u52a1\u5143\u6570\u636e\uff1a \u5fae\u670d\u52a1\u540d\u79f0\uff0c \u7248\u672c\uff0c Schema ID\uff0c Operation ID, \u5951\u7ea6\u53c2\u6570\u7b49\u4fe1\u606f\u3002 </p>"},{"location":"build-consumer/invoker.html#_2","title":"\u4f7f\u7528\u6cdb\u5316\u8c03\u7528","text":"<p>\u5047\u8bbe Provider \u91c7\u7528\u900f\u660e RPC \u7684\u65b9\u5f0f\u63d0\u4f9b\u4e86\u5982\u4e0b\u670d\u52a1\uff1a</p> <pre><code>@RpcSchema(schemaId = \"InvokerEndpoint\")\npublic class InvokerEndpoint {\n  public ServerModel model(ServerModel request) {\n    return request;\n  }\n}\n\npublic class ServerModel {\n  private String name;\n  private int code;\n\n  public String getName() {\n    return name;\n  }\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  public int getCode() {\n    return code;\n  }\n\n  public void setCode(int code) {\n    this.code = code;\n  }\n}\n</code></pre> <p>\u53ef\u4ee5\u91c7\u7528 InvokerUtils \u8bbf\u95ee\u8fd9\u4e2a\u670d\u52a1\uff1a</p> <pre><code>Map&lt;String, Object&gt; args = new HashMap&lt;&gt;();\nClientModel model = new ClientModel();\nmodel.setCode(200);\nmodel.setName(\"hello\");\nargs.put(\"request\", model);\n\nClientModel modelResult = InvokerUtils.syncInvoke(\"pojo\", \"InvokerEndpoint\", \"model\", args, ClientModel.class);\nTestMgr.check(model.getCode(), modelResult.getCode());\nTestMgr.check(model.getName(), modelResult.getName());\n\npublic class ClientModel {\n  private String name;\n  private int code;\n\n  public String getName() {\n    return name;\n  }\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  public int getCode() {\n    return code;\n  }\n\n  public void setCode(int code) {\n    this.code = code;\n  }\n}\n</code></pre> <p>\u53ef\u4ee5\u770b\u51fa\uff0c\u5728\u6cdb\u5316\u8c03\u7528\u7684\u60c5\u51b5\u4e0b\uff0c Provider \u548c Consumer \u53ef\u4ee5\u4f7f\u7528\u4e0d\u4e00\u6837 package \u7684 Model\u3002 Consumer \u8fd8\u53ef\u4ee5\u4e0d\u4f7f\u7528\u4efb\u4f55 Model, \u800c\u91c7\u7528 Map \u7684\u65b9\u5f0f\u8bbf\u95ee\uff1a</p> <pre><code>Map&lt;String, Object&gt; args = new HashMap&lt;&gt;();\nMap model = new HashMap();\nmodel.put(\"code\", 20);\nmodel.put(\"name\", \"hello\");\nargs.put(\"request\", model);\n\nClientModel modelResult = InvokerUtils.syncInvoke(\"pojo\", \"InvokerEndpoint\", \"model\", args, ClientModel.class);\nTestMgr.check(model.get(\"code\"), modelResult.getCode());\nTestMgr.check(model.get(\"name\"), modelResult.getName());\n</code></pre> <p>\u9700\u8981\u7279\u522b\u8bf4\u660e\u7684\u662f\u53c2\u6570 <code>swaggerArguments</code> \uff0c \u8fd9\u4e2a\u53c2\u6570\u662f\u548c Provider \u63a5\u53e3\u751f\u6210\u7684\u5951\u7ea6\u5bf9\u5e94\u7684\uff0c \u4e0d\u5173\u6ce8 Provider \u662f\u91c7\u7528\u900f\u660e RPC\uff0c \u8fd8\u662f \u91c7\u7528 Spring MVC \uff0c \u6216\u8005 JAX RS \u5f00\u53d1\u7684\u670d\u52a1\u3002 \u9700\u8981\u6ce8\u610f <code>swaggerArguments</code> \u53ef\u80fd\u548c Provider \u7684\u63a5\u53e3\u5b9a\u4e49\u7684\u53c2\u6570\u5217\u8868\u4e0d\u4e00\u6837\uff0c\u6bd4\u5982\u900f\u660e RPC \u5f00\u53d1\u6a21\u5f0f\u4e0b\u591a\u4e2a\u53c2\u6570\u7684\u573a\u666f\uff0c Spring MVC \u7684 Bean Param \u7684\u573a\u666f\u7b49\u7b49\u3002 </p>"},{"location":"build-consumer/invoker.html#reactive-api","title":"\u91c7\u7528 reactive API","text":"<pre><code>CountDownLatch countDownLatch = new CountDownLatch(1);\nInvokerUtils.reactiveInvoke(\"pojo\", \"InvokerEndpoint\", \"model\", args, ClientModel.class, response -&gt; {\n  ClientModel reactiveResult = response.getResult();\n  TestMgr.check(model.getCode(), reactiveResult.getCode());\n  TestMgr.check(model.getName(), reactiveResult.getName());\n  countDownLatch.countDown();\n});\ncountDownLatch.await();\n</code></pre>"},{"location":"build-consumer/using-resttemplate.html","title":"Restful\u98ce\u683c - \u4f7f\u7528 RestOperations","text":""},{"location":"build-consumer/using-resttemplate.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>RestOperations\u662fSpring\u63d0\u4f9b\u7684RESTful\u8bbf\u95ee\u63a5\u53e3\uff0cServiceComb\u63d0\u4f9b\u8be5\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\u7528\u4e8e\u670d\u52a1\u7684\u8c03\u7528\u3002</p>"},{"location":"build-consumer/using-resttemplate.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u4f7f\u7528ServiceComb\u63d0\u4f9b\u7684RestOperations\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684URL\u8fdb\u884c\u670d\u52a1\u8c03\u7528\uff0c\u800c\u4e0d\u7528\u5173\u5fc3\u670d\u52a1\u7684\u5177\u4f53\u5730\u5740\u3002</p>"},{"location":"build-consumer/using-resttemplate.html#_3","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>RestOperations\u5b9e\u4f8b\u901a\u8fc7\u8c03\u7528<code>RestTemplateBuilder.create()</code>\u65b9\u6cd5\u83b7\u53d6\uff0c\u518d\u4f7f\u7528\u8be5\u5b9e\u4f8b\u901a\u8fc7\u81ea\u5b9a\u4e49\u7684URL\u8fdb\u884c\u670d\u52a1\u8c03\u7528\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</p> <ul> <li>Spring MVC \u5ba2\u6237\u7aef\u793a\u4f8b\u4ee3\u7801\uff1a</li> </ul> <pre><code>public class SpringmvcConsumerExample {\n    private static RestOperations restTemplate = RestTemplateBuilder.create();\n\n    public static void test() throws Exception {\n        Person person = new Person();\n        person.setName(\"ServiceComb/Java Chassis\");\n        String sayHiResult = restTemplate\n                .postForObject(\"servicecomb://springmvc/springmvchello/sayhi?name=Java Chassis\", null, String.class);\n        String sayHelloResult = restTemplate\n                .postForObject(\"servicecomb://springmvc/springmvchello/sayhello\", person, String.class);\n        System.out.println(\"RestTemplate consumer sayhi services: \" + sayHiResult);\n        System.out.println(\"RestTemplate consumer sayhello services: \" + sayHelloResult);\n    }\n}\n</code></pre> <ul> <li>JAX RS \u5ba2\u6237\u7aef\u793a\u4f8b\u4ee3\u7801\uff1a</li> </ul> <pre><code>public class JaxrsConsumerMain {\n    public static void test() throws Exception {\n        //\u5176\u4ed6\u90fd\u7c7b\u4f3cspring MVC\u793a\u4f8b\u7684\u5ba2\u6237\u7aef\u4ee3\u7801\uff0c\u6ce8\u610f\u5982\u679c\u670d\u52a1\u7aef\u53ea\u63a5\u6536 GET \u8bf7\u6c42\uff0c\u8981\u4f7f\u7528\u65b9\u6cd5 getForObject()\n        RestTemplate restTemplate = RestTemplateBuilder.create();\n        String result = restTemplate.getForObject(\"servicecomb://jaxrs/jaxrshello/saybye\", String.class);\n    }\n}\n</code></pre> <p>\u8bf4\u660e\uff1a</p> <ul> <li>URL\u683c\u5f0f\u4e3a\uff1a<code>servicecomb://microserviceName/path?querystring</code>\u3002\u4ee5\u7528SpringMVC\u5f00\u53d1\u5fae\u670d\u52a1\u4e2d\u5b9a\u4e49\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u4e3a\u4f8b\uff0c\u5176\u5fae\u670d\u52a1\u540d\u79f0\u662f<code>springmvc</code>\uff0cbasePath\u662f<code>/springmvchello</code>\uff0c\u90a3\u4e48URL\u4e2d\u7684microserviceName=<code>springmvc</code>\uff0c\u8bf7\u6c42sayhi\u65f6\u7684path=<code>springmvchello/sayhi</code>\uff0c\u6240\u4ee5\u793a\u4f8b\u4ee3\u7801\u4e2d\u8bf7\u6c42sayhi\u7684URL\u662f<code>servicecomb://springmvc/springmvchello/sayhi?name=Java Chassis</code>\u3002\u5177\u4f53\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b \uff1a</li> </ul> <pre><code>@RestSchema(schemaId = \"springmvcHello\")\n@RequestMapping(path = \"/springmvchello\", produces = MediaType.APPLICATION_JSON)\n//\u8fd9\u91cc path = \u201c/springmvchello\u201d \u4e2d\u7684 springmvchello \u5c31\u662f \u4e0a\u8ff0\u7684basePath\npublic class SpringmvcHelloImpl implements Hello {\n    @Override\n    @RequestMapping(path = \"/sayhi\", method = RequestMethod.POST)\n    public String sayHi(@RequestParam(name = \"name\") String name) {\n        return \"Hello \" + name;\n    }\n\n    @Override\n    @RequestMapping(path = \"/sayhello\", method = RequestMethod.POST)\n    public String sayHello(@RequestBody Person person) {\n        return \"Hello person \" + person.getName();\n    }\n}\n</code></pre>"},{"location":"build-provider/access-log-configuration.html","title":"Access Log","text":""},{"location":"build-provider/access-log-configuration.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>ServiceComb \u63d0\u4f9b\u4e86\u57fa\u4e8e Vert.x \u7684 access log \u548c request log \u529f\u80fd\u3002\u5f53\u7528\u6237\u4f7f\u7528 REST over Vertx \u901a\u4fe1\u65b9\u5f0f\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u542f\u7528 access log \u6253\u5370\u529f\u80fd\u3002\u5f53\u7528\u6237 client \u7aef\u8fdb\u884c\u8fdc\u7a0b\u8c03\u7528\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u542f\u7528 request log \u6253\u5370\u529f\u80fd</p>"},{"location":"build-provider/access-log-configuration.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<ol> <li> <p>\u7528\u6237\u5728\u8c03\u8bd5\u670d\u52a1\u65f6\u53ef\u80fd\u9700\u8981\u5f00\u542f access log\u3002\u5728\u4f7f\u7528 REST over servlet \u901a\u4fe1\u65b9\u5f0f\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528 web\u5bb9\u5668 \u7684 access log \u529f\u80fd\uff1b\u800c\u5728\u4f7f\u7528 REST over Vertx \u901a\u4fe1\u65b9\u5f0f\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528 ServiceComb \u63d0\u4f9b\u7684\u4e00\u5957 access log \u529f\u80fd\u3002</p> </li> <li> <p>\u7528\u6237\u60f3\u8981\u8ddf\u8e2a\uff0c\u8bb0\u5f55\u5ba2\u6237\u7aef\u8fdc\u7a0b\u8c03\u7528\u4fe1\u606f\uff0c \u53ef\u4ee5\u5f00\u542f request log\u3002request log \u540c\u65f6\u652f\u6301\u8bb0\u5f55 rest \u548c highway \u8fdc\u7a0b\u8c03\u7528\u65b9\u5f0f\u3002</p> </li> </ol>"},{"location":"build-provider/access-log-configuration.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":""},{"location":"build-provider/access-log-configuration.html#access-log-request-log","title":"\u542f\u7528 Access Log &amp; Request Log","text":"<p>\u7528\u6237\u9700\u8981\u5728 microservice.yaml \u6587\u4ef6\u4e2d\u589e\u52a0\u914d\u7f6e\u4ee5\u542f\u7528 access log \u548c request log\uff0c\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  accesslog:\n    ## server \u7aef \u542f\u7528access log\n    enabled: true\n    ##  server \u7aef \u81ea\u5b9a\u4e49 access log \u65e5\u5fd7\u683c\u5f0f\n    pattern: \"%h - - %t %r %s %B %D\" \n    request:\n      ## client \u7aef\u5f00\u542f request log\n      enabled: true\n      ## client \u7aef\u81ea\u5b9a\u4e49 request log \u65e5\u5fd7\u683c\u5f0f\n      pattern: \"%h %SCB-transport - - %t %r %s %D\" \n</code></pre> <p>Access log &amp; Request log \u914d\u7f6e\u9879\u8bf4\u660e</p> \u914d\u7f6e\u9879 \u53d6\u503c\u8303\u56f4 \u9ed8\u8ba4\u503c \u8bf4\u660e servicecomb.accesslog.enabled true/false false \u5982\u679c\u4e3atrue\u5219\u542f\u7528access log\uff0c\u5426\u5219\u4e0d\u542f\u7528 servicecomb.accesslog.pattern \u8868\u793a\u6253\u5370\u683c\u5f0f\u7684\u5b57\u7b26\u4e32 \"%h - - %t %r %s %B %D\" \u914d\u7f6e\u9879\u89c1_\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868_ servicecomb.accesslog.request.enabled true/false false \u5982\u679c\u4e3atrue\u5219\u542f\u7528request log\uff0c\u5426\u5219\u4e0d\u542f\u7528 servicecomb.accesslog.request.pattern \u8868\u793a\u6253\u5370\u683c\u5f0f\u7684\u5b57\u7b26\u4e32 \"%h %SCB-transport - - %t %r %s %D\" \u914d\u7f6e\u9879\u89c1_\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868_"},{"location":"build-provider/access-log-configuration.html#_4","title":"\u65e5\u5fd7\u683c\u5f0f\u914d\u7f6e","text":"<p>\u76ee\u524d\u53ef\u7528\u7684\u65e5\u5fd7\u5143\u7d20\u914d\u7f6e\u9879\u89c1 \u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868(Apache &amp; W3C) \u548c \u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868(ServiceComb) \u3002</p> <p>\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868 (Apache &amp; W3C)</p> \u5143\u7d20\u540d\u79f0 Apache\u65e5\u5fd7\u683c\u5f0f W3C\u65e5\u5fd7\u683c\u5f0f \u8bf4\u660e HTTP method %m cs-method - HTTP status %s sc-status - Duration in second %T - - Duration in millisecond %D - - Remote hostname %h - - Local hostname %v - - Local port %p - - Size of response %B - \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"0\" Size of response %b - \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"-\" First line of request %r - \u5305\u542bHTTP Method\u3001Uri\u3001Http\u7248\u672c\u4e09\u90e8\u5206\u5185\u5bb9 URI path %U cs-uri-stem - Query string %q cs-uri-query - URI path and query string - cs-uri - Request protocol %H - - Datetime the request is received %t - \u6309\u7167\u9ed8\u8ba4\u8bbe\u7f6e\u6253\u5370\u65f6\u95f4\u6233\uff0c\u683c\u5f0f\u4e3a\"EEE, dd MMM yyyy HH:mm:ss zzz\"\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request is received %{PATTERN}t - \u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u6253\u5370\u65f6\u95f4\u6233\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request is received %{PATTERN|TIMEZONE|LOCALE}t - \u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u3001\u8bed\u8a00\u3001\u65f6\u533a\u6253\u5370\u65f6\u95f4\u6233\u3002\u5141\u8bb8\u7701\u7565\u5176\u4e2d\u7684\u67d0\u90e8\u5206\u914d\u7f6e\uff08\u4f46\u4e24\u4e2a\u5206\u9694\u7b26\u53f7\"|\"\u4e0d\u53ef\u7701\u7565\uff09\u3002 Request header %{VARNAME}i - \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Response header %{VARNAME}o - \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Cookie %{VARNAME}C - \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684cookie\uff0c\u5219\u6253\u5370\"-\" <p>\u65e5\u5fd7\u5143\u7d20\u8bf4\u660e\u8868(ServiceComb)</p> Element Placeholder Comment TraceId %SCB-traceId \u6253\u5370ServiceComb\u751f\u6210\u7684trace id\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" Invocation Context %{VARNAME}SCB-ctx \u6253\u5370key\u4e3a<code>VARNAME</code>\u7684invocation context\u503c\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" Transport Method %SCB-transport \u6253\u5370\u5f53\u524d\u8c03\u7528\u7684 transport method \u3002 <code>rest</code> \u6216\u8005 <code>highway</code> <p>Access log \u4e0e Request log \u7684\u65e5\u5fd7\u5143\u7d20\u5bf9\u6bd4</p> \u5143\u7d20\u540d\u79f0 Apache&amp;W3C\u65e5\u5fd7\u683c\u5f0f access log access log \u8bf4\u660e request log request log\u8bf4\u660e HTTP method %m &amp; cs-method support - support - HTTP status %s &amp; sc-status support - support - Duration in second %T support - support - Duration in millisecond %D support - support - Remote hostname %h support - support - Local hostname %v support - support - Local port %p support - support - Size of response %B support \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"0\" unsupported - Size of response %b support \u5982\u679c\u6d88\u606f\u4f53\u957f\u5ea6\u4e3a\u96f6\u5219\u6253\u5370\"-\" unsupported - First line of request %r support \u5305\u542bHTTP Method\u3001Uri\u3001Http\u7248\u672c\u4e09\u90e8\u5206\u5185\u5bb9 support \u5305\u542bHTTP Method\u3001Uri\u3001Http\u7248\u672c\u4e09\u90e8\u5206\u5185\u5bb9 URI path %U &amp; cs-uri-stem support - support - Query string %q &amp; cs-uri-query support - support - URI path and query string cs-uri support - support - Request protocol %H support - support - Datetime of the request %t support \u6536\u5230\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u9ed8\u8ba4\u683c\u5f0f\u4e3a\"EEE, dd MMM yyyy HH:mm:ss zzz\"\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT support \u53d1\u9001\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u9ed8\u8ba4\u683c\u5f0f\u4e3a\"EEE, dd MMM yyyy HH:mm:ss zzz\"\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request of the request %{PATTERN}t support \u6536\u5230\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u6253\u5370\u65f6\u95f4\u6233\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT support \u53d1\u9001\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u6253\u5370\u65f6\u95f4\u6233\uff0c\u8bed\u8a00\u4e3a\u82f1\u6587\uff0c\u65f6\u533a\u4e3aGMT Configurable datetime the request of the request %{PATTERN|TIMEZONE|LOCALE}t support \u6536\u5230\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u3001\u8bed\u8a00\u3001\u65f6\u533a\u6253\u5370\u65f6\u95f4\u6233\u3002\u5141\u8bb8\u7701\u7565\u5176\u4e2d\u7684\u67d0\u90e8\u5206\u914d\u7f6e\uff08\u4f46\u4e24\u4e2a\u5206\u9694\u7b26\u53f7\"|\"\u4e0d\u53ef\u7701\u7565\uff09\u3002 support \u53d1\u9001\u8bf7\u6c42\u7684\u65f6\u95f4\u3002\u6309\u7167\u6307\u5b9a\u7684\u683c\u5f0f\u3001\u8bed\u8a00\u3001\u65f6\u533a\u6253\u5370\u65f6\u95f4\u6233\u3002\u5141\u8bb8\u7701\u7565\u5176\u4e2d\u7684\u67d0\u90e8\u5206\u914d\u7f6e\uff08\u4f46\u4e24\u4e2a\u5206\u9694\u7b26\u53f7\"|\"\u4e0d\u53ef\u7701\u7565\uff09\u3002 Request header %{VARNAME}i support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Response header %{VARNAME}o support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684header\uff0c\u5219\u6253\u5370\"-\" Cookie %{VARNAME}C support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684cookie\uff0c\u5219\u6253\u5370\"-\" support \u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u7684cookie\uff0c\u5219\u6253\u5370\"-\" TraceId %SCB-traceId support \u6253\u5370ServiceComb\u751f\u6210\u7684trace id\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" support \u6253\u5370ServiceComb\u751f\u6210\u7684trace id\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" Invocation Context %{VARNAME}SCB-ctx support \u6253\u5370key\u4e3a<code>VARNAME</code>\u7684invocation context\u503c\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" support \u6253\u5370key\u4e3a<code>VARNAME</code>\u7684invocation context\u503c\uff0c\u627e\u4e0d\u5230\u5219\u6253\u5370\"-\" transport method %SCB-transport unsupported \u53ea\u652f\u6301 rest \u5f62\u5f0f\u8c03\u7528 support \u8c03\u7528\u4f7f\u7528\u7684transport method"},{"location":"build-provider/access-log-configuration.html#_5","title":"\u65e5\u5fd7\u8f93\u51fa\u6587\u4ef6\u914d\u7f6e","text":"<p>Access log &amp; Request log \u7684\u65e5\u5fd7\u6253\u5370\u5b9e\u73b0\u6846\u67b6\u9ed8\u8ba4\u91c7\u7528 Slf4j \uff0c\u5176\u4e2d logger \u540d\u79f0\u5206\u522b\u4e3a <code>accesslog</code> \u548c <code>requestlog</code>, \u53ef\u4ee5\u7ed3\u5408\u5e94\u7528\u4f7f\u7528\u7684\u65e5\u5fd7\u6846\u67b6\u5c06\u65e5\u5fd7\u8f93\u51fa\u5230\u4e0d\u540c\u7684\u6587\u4ef6\u4e2d\u3002</p>"},{"location":"build-provider/access-log-configuration.html#access-log-request-log_1","title":"\u81ea\u5b9a\u4e49\u6269\u5c55 Access Log &amp; Request Log","text":"<p>\u7528\u6237\u53ef\u4ee5\u5229\u7528 ServiceComb \u63d0\u4f9b\u7684 AccessLogItem \u6269\u5c55\u673a\u5236\uff0c\u5b9a\u5236\u81ea\u5df1\u7684 AccessLogItem\uff0c \u6211\u4eec\u628a Request Log \u4e5f\u5f53\u505a\u4e00\u79cd Access Log\u3002</p>"},{"location":"build-provider/access-log-configuration.html#_6","title":"\u76f8\u5173\u7c7b\u8bf4\u660e","text":"<ol> <li>AccessLogItem</li> </ol> <pre><code>public interface AccessLogItem&lt;T&gt; {\n  // \u4eceServer\u7aef\u83b7\u53d6\u4fe1\u606f\uff0c\u6253\u5370 Access Log \u65e5\u5fd7\n  default void appendServerFormattedItem(ServerAccessLogEvent accessLogEvent, StringBuilder builder) {\n  }\n\n  // \u4eceClient \u7aef\u83b7\u53d6\u4fe1\u606f\uff0c \u6253\u5370 Request Log\n  default void appendClientFormattedItem(InvocationFinishEvent clientLogEvent, StringBuilder builder) {\n  }\n}\n</code></pre> <p>AccessLogItem \u7684\u5b9a\u4e49\u5982\u4e0a\u6240\u793a</p> <ul> <li> <p>Server \u7aef \u6bcf\u6536\u5230\u4e00\u4e2a\u8bf7\u6c42\uff0c\u4f1a\u89e6\u53d1\u4e00\u6b21 Access Log \u65e5\u5fd7\u6253\u5370\u3002Client \u7aef \u6bcf\u6b21\u5bf9\u5916\u8fdc\u7a0b\u8c03\u7528\u7ed3\u675f\uff0c\u4f1a\u89e6\u53d1\u4e00\u6b21 Request Log \u65e5\u5fd7\u6253\u5370\u3002  </p> </li> <li> <p>\u6bcf\u6b21\u65e5\u5fd7\u6253\u5370\uff0cSDK \u90fd\u4f1a\u904d\u5386\u6709\u6548\u7684 <code>AccessLogItem</code> \uff0c\u8c03\u7528\u5bf9\u5e94\u7684\u65b9\u6cd5\u83b7\u53d6\u6b64 Item \u751f\u6210\u7684 Log\u7247 \u6bb5\uff0c\u5e76\u5c06\u5168\u90e8\u7247\u6bb5\u62fc\u63a5\u6210\u4e00\u6761 Log \u6253\u5370\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002 </p> </li> </ul> <ol> <li>VertxRestAccessLogItemMeta</li> </ol> <pre><code>  // pattern\u5360\u4f4d\u7b26\u524d\u7f00\n  protected String prefix;\n  // pattern\u5360\u4f4d\u7b26\u540e\u7f00\n  protected String suffix;\n  // \u4f18\u5148\u7ea7\u5e8f\u53f7\n  protected int order;\n  // AccessLogItem\u6784\u9020\u5668\n  protected AccessLogItemCreator&lt;RoutingContext&gt; accessLogItemCreator;\n</code></pre> <p><code>VertxRestAccessLogItemMeta</code> \u5305\u542b\u5982\u4e0a\u5c5e\u6027\uff0c\u5b83\u5b9a\u4e49\u4e86 ServiceComb \u5982\u4f55\u89e3\u6790 pattern \u5b57\u7b26\u4e32\u4ee5\u83b7\u5f97\u7279\u5b9a\u7684 AccessLogItem\u3002</p> <ul> <li> <p>\u5982\u679c\u7528\u6237\u60f3\u8981\u5b9a\u4e49\u4e00\u4e2a\u5360\u4f4d\u7b26\u4e3a <code>%user-defined</code> \u7684 <code>AccessLogItem</code> \uff0c\u5219\u9700\u8981\u58f0\u660e\u4e00\u4e2a <code>VertxRestAccessLogItemMeta</code> \u7684\u5b50\u7c7b\uff0c\u8bbe\u7f6e prefix=\"%user-defined\"\uff0csuffix=null\uff0c\u5f53 <code>AccessLogPatternParser</code> \u89e3\u6790\u5230 \"%user-defined\" \u65f6\uff0c\u4ece\u6b64 meta \u7c7b\u4e2d\u53d6\u5f97 <code>AccessLogItemCreator</code> \u521b\u5efa\u5bf9\u5e94\u7684 <code>AccessLogItem</code>\u3002\u6ce8\u610f\uff1a\u7531\u4e8e \"%user-defined\" \u5360\u4f4d\u7b26\u4e2d\u6ca1\u6709\u53d8\u91cf\u90e8\u5206\uff0c\u56e0\u6b64\u8c03\u7528 <code>AccessLogItemCreator</code> \u4f20\u5165\u7684\u914d\u7f6e\u53c2\u6570\u4e3anull\u3002</p> </li> <li> <p>\u5982\u679c\u7528\u6237\u60f3\u8981\u5b9a\u4e49\u4e00\u4e2a\u5360\u4f4d\u7b26\u4e3a <code>%{VARNAME}user-defined</code> \u7684 <code>AccessLogItem</code>\uff0c\u5219\u58f0\u660e\u7684 <code>VertxRestAccessLogItemMeta</code> \u5b50\u7c7b\u4e2d\uff0c\u8bbe\u7f6eprefix=\"%{\"\uff0csuffix=\"}user-defined\"\uff0c\u5f53 <code>AccessLogPatternParser</code> \u89e3\u6790\u5230 \"%{VARNAME}user-defined\"\u65f6\uff0c\u4f1a\u622a\u53d6\u51fa\"VARNAME\"\u4f5c\u4e3a\u914d\u7f6e\u53c2\u6570\u4f20\u5165<code>AccessLogItemCreator</code>\uff0c\u521b\u5efa\u4e00\u4e2a<code>AccessLogItem</code>\u3002</p> </li> </ul> <p><code>VertxRestAccessLogItemMeta</code> \u6709\u4e00\u4e2a\u5b50\u7c7b <code>CompositeVertxRestAccessLogItemMeta</code>\uff0c\u5f53\u7528\u6237\u9700\u8981\u5b9a\u4e49\u591a\u4e2a AccessLogItem \u65f6\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a <code>VertxRestAccessLogItemMeta</code> \u805a\u5408\u5230 <code>CompositeVertxRestAccessLogItemMeta</code> \u4e2d\u3002Parser \u52a0\u8f7d\u5230\u7c7b\u578b\u4e3a <code>CompositeVertxRestAccessLogItemMeta</code> \u7684AccessLogItemMeta\u65f6\uff0c\u4f1a\u8c03\u7528\u5176 <code>getAccessLogItemMetas()</code> \u65b9\u6cd5\u83b7\u5f97\u4e00\u7ec4 AccessLogItemMeta\u3002<code>VertxRestAccessLogItemMeta</code> \u4f7f\u7528SPI\u673a\u5236\u52a0\u8f7d\uff0c\u800c<code>CompositeVertxRestAccessLogItemMeta</code>\u53ef\u4ee5\u8ba9\u7528\u6237\u53ea\u5728SPI\u914d\u7f6e\u6587\u4ef6\u4e2d\u914d\u7f6e\u4e00\u6761\u8bb0\u5f55\u5c31\u52a0\u8f7d\u591a\u6761meta\u4fe1\u606f\uff0c\u7ed9\u4e86\u7528\u6237\u66f4\u7075\u6d3b\u7684\u9009\u62e9\u3002</p> <ol> <li>AccessLogItemCreator</li> </ol> <pre><code>public interface AccessLogItemCreator&lt;T&gt; {\n    // \u63a5\u6536\u914d\u7f6e\u503c\uff0c\u8fd4\u56de\u4e00\u4e2aAccessLogItem\u3002\u5982\u679cAccessLogItem\u7684\u5360\u4f4d\u7b26\u6ca1\u6709\u53ef\u53d8\u7684\u914d\u7f6e\u503c\u90e8\u5206\uff0c\u5219\u6b64\u65b9\u6cd5\u4f1a\u63a5\u6536\u5230null\u3002\n    AccessLogItem&lt;T&gt; createItem(String config);\n}\n</code></pre> <p>\u7528\u6237\u901a\u8fc7\u8bbe\u7f6e\u5728\u81ea\u5b9a\u4e49\u7684 <code>VertxRestAccessLogItemMeta</code> \u4e2d\u7684 <code>AccessLogItemCreator</code> \u5b9e\u4f8b\u5316\u81ea\u5df1\u7684 <code>AccessLogItem</code>\u3002\u7531\u4e8e\u8fd9\u662f\u4e00\u4e2a\u51fd\u6570\u5f0f\u63a5\u53e3\uff0c\u5f53 <code>AccessLogItem</code> \u7684\u521d\u59cb\u5316\u65b9\u5f0f\u8f83\u7b80\u5355\u65f6\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 Lambda\u8868\u8fbe\u5f0f\u5b9a\u4e49Creator\uff0c\u4ee5\u7b80\u5316\u5f00\u53d1\u3002</p>"},{"location":"build-provider/access-log-configuration.html#accesslogitemmeta","title":"AccessLogItemMeta \u7684\u5339\u914d\u89c4\u5219","text":"<p>AccessLogItemMeta \u52a0\u8f7d\u8fdb Parser \u540e\uff0c\u4f1a\u8fdb\u884c\u4e00\u6b21\u6392\u5e8f\u3002Parser \u89e3\u6790 pattern \u4e32\u65f6\u4f1a\u4ece\u524d\u5230\u540e\u5339\u914d meta list\uff0c\u603b\u7684\u5339\u914d\u89c4\u5219\u5982\u4e0b\uff1a</p> <ol> <li> <p>\u4f18\u5148\u5339\u914d\u9ad8\u4f18\u5148\u7ea7\u7684meta\u3002</p> </li> <li> <p>\u4f18\u5148\u5339\u914d\u6709\u540e\u7f00\u7684meta\uff0c\u5f53\u5339\u914d\u4e0a\u591a\u4e2a\u6709\u540e\u7f00meta\u65f6\uff0c\u53d6\u524d\u540e\u7f00\u76f8\u8ddd\u6700\u5c0f\u7684\u4e00\u4e2a\u3002</p> </li> <li> <p>\u4f18\u5148\u5339\u914d\u5360\u4f4d\u7b26\u957f\u7684meta\uff0c\u4f8b\u5982\u6709\u4e24\u4e2a meta\uff0c\"%abc\"\u548c\"%a\"\uff0c\u5982\u679c\u5339\u914d\u4e2d\u4e86\"%abc\"\u5219\u76f4\u63a5\u8fd4\u56de\uff0c\u4e0d\u518d\u5339\u914d\"%a\"\u3002</p> </li> </ol>"},{"location":"build-provider/access-log-configuration.html#_7","title":"\u793a\u4f8b\u8bf4\u660e","text":"<ol> <li>\u6269\u5c55\u81ea\u5b9a\u4e49 AccessLogItem</li> </ol> <p>\u9996\u5148\u7528\u6237\u9700\u8981 <code>AccessLogItem</code> \u63a5\u53e3\u5b9e\u73b0\u81ea\u5df1\u7684 item\uff1a</p> <pre><code>public class UserDefinedAccessLogItem implements AccessLogItem&lt;RoutingContext&gt; {\n    private String config;\n\n    public UserDefinedAccessLogItem(String config) {\n      this.config = config;\n    }\n\n    @Override\n    public void appendServerFormattedItem(ServerAccessLogEvent accessLogEvent, StringBuilder builder) {\n    builder.append(\"user-defined--server-\")\n        .append(accessLogEvent.getRoutingContext().response().getStatusCode())\n        .append(\"-\")\n        .append(config);\n    }\n\n    @Override\n    public void appendClientFormattedItem(InvocationFinishEvent clientLogEvent, StringBuilder builder) {\n    builder.append(\"user-server-defined-\")\n        .append(clientLogEvent.getResponse().getStatus())\n        .append(\"-\")\n        .append(config);\n    }\n}\n</code></pre> <ol> <li>\u5b9a\u4e49 AccessLogItem \u7684 meta \u7c7b</li> </ol> <p>\u7ee7\u627f <code>VertxRestAccessLogItemMeta</code> \u6216 <code>CompositeVertxRestAccessLogItemMeta</code> \u7c7b\uff0c\u5b9a\u4e49AccessLogItem\u7684\u524d\u540e\u7f00\u7b49\u4fe1\u606f\uff1a</p> <pre><code>public class UserDefinedCompositeExtendedAccessLogItemMeta extends CompositeVertxRestAccessLogItemMeta {\n    private static final List&lt;VertxRestAccessLogItemMeta&gt; META_LIST = new ArrayList&lt;&gt;();\n\n    static {\n      META_LIST.add(new VertxRestAccessLogItemMeta(\"%{\", \"}user-defined\", UserDefinedAccessLogItem::new));\n    }\n\n    @Override\n    public List&lt;VertxRestAccessLogItemMeta&gt; getAccessLogItemMetas() {\n      return META_LIST;\n    }\n}\n</code></pre> <ol> <li>\u914d\u7f6eSPI\u52a0\u8f7d\u6587\u4ef6</li> </ol> <p>\u5728 <code>resources/META-INF/services/</code> \u76ee\u5f55\u4e0b\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a \"org.apache.servicecomb.common.accessLog.core.parser.VertxRestAccessLogItemMeta\" \u7684\u6587\u4ef6\uff0c\u5c06\u4e0a\u4e00\u6b65\u4e2d\u5b9a\u4e49\u7684meta\u7c7b\u5b8c\u6574\u7c7b\u540d\u586b\u5199\u5230\u8be5\u6587\u4ef6\u4e2d\uff0c\u4f9bParser\u52a0\u8f7dmeta\u7c7b\u3002</p> <ol> <li>\u914d\u7f6e Access Log \u7684 pattern</li> </ol> <pre><code># \u670d\u52a1\u7aef\u914d\u7f6e\nservicecomb:\n  accesslog:\n    enabled: true ## \u5e94\u7528\u4f5c\u4e3a\u670d\u52a1\u7aef\uff0c\u5f00\u542f Access log\n    pattern: \"%{param}user-defined\" ## Access log \u65e5\u5fd7\u683c\u5f0f\n    request:   \n      enabled: true  ## \u5e94\u7528\u4f5c\u4e3a\u5ba2\u6237\u7aef\uff0c\u5f00\u542f Request log\n      pattern: \"%{param}user-defined\" ## Request log \u65e5\u5fd7\u683c\u5f0f\n</code></pre> <p>\u4ee5\u670d\u52a1\u7aef\u4e3a\u4f8b\uff0c \u8fd0\u884c\u670d\u52a1\u89e6\u53d1Access Log\u6253\u5370\uff0c\u5047\u8bbe\u8bf7\u6c42\u8fd4\u56de\u72b6\u6001\u7801\u662f 200\uff0c\u5219\u53ef\u4ee5\u770b\u5230Access Log\u6253\u5370\u5185\u5bb9\u4e3a \"<code>user-defined--server-200-param</code>\"\u3002</p>"},{"location":"build-provider/basics.html","title":"\u57fa\u7840\u6982\u5ff5","text":"<p>Java Chassis \u662f\u4ee5 OpenAPI \u4e3a\u57fa\u7840\u7684\u5fae\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u3002\u4e00\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7 OpenAPI \u8fdb\u884c\u63cf\u8ff0\uff0c\u5f00\u53d1\u4efb\u52a1\u5c31\u662f\u5b9e\u73b0\u8fd9\u4e9b OpenAPI \u63cf\u8ff0\u7684\u529f\u80fd\u3002 \u53ef\u4ee5\u5c06\u4e00\u4e2a\u5fae\u670d\u52a1\u5f00\u53d1\u5206\u4e3a\u4e24\u4e2a\u57fa\u7840\u6027\u7684\u5de5\u4f5c\uff1a</p> <ul> <li>\u5b9a\u4e49\u5fae\u670d\u52a1\u7684\u529f\u80fd\u3002</li> <li>\u5b9e\u73b0\u5fae\u670d\u52a1\u7684\u529f\u80fd\u3002</li> </ul> <p>Java Chassis\u63d0\u4f9b\u4e863\u79cd\u65b9\u5f0f\u5b9a\u4e49\u5fae\u670d\u52a1\u529f\u80fd\uff1a</p> <ul> <li>Spring Web MVC: \u7b80\u79f0SpringMVC\u3002Spring Web MVC\u662fSpring Boot\u63d0\u4f9b\u7684\u4e00\u7ec4\u63cf\u8ff0 <code>REST</code> \u63a5\u53e3\u7684\u6ce8\u89e3\u3002</li> <li>JAX-RS: JAX-RS \u662f Java SE \u548c Java EE \u63d0\u4f9b\u7684\u4e00\u7ec4\u63cf\u8ff0 <code>REST</code> \u63a5\u53e3\u7684\u6ce8\u89e3\u3002</li> <li>PRC: RPC\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u7528\u6237\u65e0\u9700\u901a\u8fc7\u6ce8\u89e3\u63cf\u8ff0 <code>REST</code> \u63a5\u53e3\uff0cJava Chassis\u901a\u8fc7\u7cfb\u7edf\u9ed8\u8ba4\u7684\u89c4\u5219\uff0c\u5c06\u670d\u52a1\u5b9a\u4e49\u6620\u5c04\u4e3a OpenAPI \u7684\u63cf\u8ff0\u3002 </li> </ul> <p>\u5c3d\u7ba1Java Chassis\u652f\u6301\u5728\u4e00\u4e2a\u5fae\u670d\u52a1\u4e2d\u6df7\u5408\u4f7f\u7528\u4e0a\u8ff0\u51e0\u79cd\u65b9\u5f0f\uff0c\u9879\u76ee\u4e2d\u901a\u5e38\u53ea\u4f1a\u9009\u62e9\u4e00\u79cd\u65b9\u5f0f\u3002\u4ece\u4f7f\u7528\u5e7f\u6cdb\u6027\u7684\u89d2\u5ea6\uff0c\u63a8\u8350Spring Web MVC\u3002 </p> <p>Spring Web MVC \u7684\u4f8b\u5b50\uff1a</p> <pre><code>@RestSchema(schemaId = \"HelloWorld\")\n@RequestMapping(\"/\")\npublic class SpringMVCExample {\n  @PostMapping(\"/helloWorld\")\n  public String helloWorld(@RequestBody String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <p>JAX-RS \u7684\u4f8b\u5b50\uff1a</p> <pre><code>@RestSchema(schemaId = \"HelloWorld\")\n@Path(\"/\")\npublic class JAXRSExample {\n  @POST\n  @Path(\"/helloWorld\")\n  public String helloWorld(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <p>\u8fd9\u4e24\u79cd\u5199\u6cd5\u603b\u4f53\u4e0a\u662f\u7b49\u4ef7\u7684\uff0c\u4ed6\u4eec\u90fd\u5b9a\u4e49\u4e86\u5982\u4e0b\u4f7f\u7528 OpenAPI \u63cf\u8ff0\u7684\u670d\u52a1\uff1a</p> <pre><code>openapi: 3.0.1\ninfo:\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /helloWorld:\n    post:\n      operationId: helloWorld\n      requestBody:\n        content:\n          application/json:\n            schema:\n              type: string\n          application/protobuf:\n            schema:\n              type: string\n          text/plain:\n            schema:\n              type: string\n        x-name: name\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents: {}\n</code></pre> <p>RPC \u7684\u4f8b\u5b50\uff1a</p> <pre><code>@RpcSchema(schemaId = \"HelloWorld\")\npublic class RPCExample {\n  public String helloWorld(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <p>\u8fd9\u4e2a\u670d\u52a1\u4f7f\u7528 OpenAPI \u63cf\u8ff0\u5982\u4e0b\u3002 \u53ef\u4ee5\u770b\u51fa RPC \u63a5\u53e3\u90fd\u4f1a\u88ab\u63cf\u8ff0\u4e3a <code>POST</code> \u65b9\u6cd5\uff0c\u53c2\u6570\u90fd\u4f1a\u4f7f\u7528 <code>RequestBody</code> \u8fdb\u884c\u5305\u88c5\u3002 RPC\u6a21\u5f0f\u901a\u5e38\u7528\u4e8e\u4f7f\u7528\u8005\u4e0d\u5173\u6ce8 <code>REST</code> \u89c4\u8303\u7684\u573a\u666f\uff0cJava Chassis\u7684\u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff0c\u7ed9\u7b2c\u4e09\u65b9\u5de5\u5177\u6d4b\u8bd5 RPC \u63a5\u53e3\u63d0\u4f9b\u4e86\u4fbf\u5229\u3002 </p> <pre><code>openapi: 3.0.1\ninfo:\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /helloWorld:\n    post:\n      operationId: helloWorld\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/helloWorldBody'\n          application/protobuf:\n            schema:\n              $ref: '#/components/schemas/helloWorldBody'\n          text/plain:\n            schema:\n              $ref: '#/components/schemas/helloWorldBody'\n        x-name: helloWorldBody\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents:\n  schemas:\n    helloWorldBody:\n      type: object\n      properties:\n        name:\n          type: string\n</code></pre> <ul> <li>\u4f7f\u7528 <code>OpenAPI</code> \u6ce8\u89e3</li> </ul> <p>Spring Web MVC \u548c JAX-RS \u6ce8\u89e3\u53ea\u5b9a\u4e49\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u670d\u52a1\u63cf\u8ff0\u529f\u80fd\uff0c\u6bd4\u5982\u53c2\u6570\u3001\u8fd4\u56de\u503c\u7b49\u4fe1\u606f\u3002 \u5982\u679c\u9700\u8981\u66f4\u52a0\u7ec6\u7c92\u5ea6\u7684\u63cf\u8ff0\u670d\u52a1\uff0c\u8fd8\u9700\u8981\u501f\u52a9 <code>OpenAPI</code> \u6ce8\u89e3\u3002 <code>OpenAPI</code> \u6ce8\u89e3\u53ef\u4ee5\u57283\u79cd\u6a21\u5f0f\u4e0b\u6df7\u5408\u4f7f\u7528\u3002\u6bd4\u5982\u901a\u8fc7 <code>OpenAPIDefinition</code> \u548c <code>Operation</code> \u4e24\u4e2a\u6ce8\u89e3\uff0c\u7ed9Spring Web MVC\u7684\u670d\u52a1\u589e\u52a0\u4e86\u5206\u7ec4\u548c\u63a5\u53e3\u552f\u4e00\u6807\u8bc6\u3002 \u5229\u7528<code>OpenAPI</code> \u6ce8\u89e3\u80fd\u591f\u66f4\u6e05\u6670\u7684\u63cf\u8ff0\u670d\u52a1\u529f\u80fd\u3001\u793a\u4f8b\u3001\u5b89\u5168\u6027\u7b49\u65b9\u9762\u7684\u7ea6\u675f\u3002</p> <pre><code>@RestSchema(schemaId = \"SpringMVCExample\")\n@RequestMapping(\"/\")\n@OpenAPIDefinition(tags = {@Tag(name = \"example\")})\npublic class SpringMVCExample {\n  @Operation(operationId = \"spring-mvc-example\")\n  @PostMapping(\"/helloWorld\")\n  public String helloWorld(@RequestBody String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <ul> <li>\u670d\u52a1\u5b9a\u4e49\u548c\u670d\u52a1\u5b9e\u73b0\u5206\u79bb</li> </ul> <p>\u4e3a\u4e86\u66f4\u597d\u7684\u7ba1\u7406\u670d\u52a1\u5b9a\u4e49\u548c\u5b9e\u73b0\uff0c\u5c06\u670d\u52a1\u5b9a\u4e49\u548c\u5b9e\u73b0\u5206\u79bb\u662f\u4e00\u4e2a\u597d\u7684\u5de5\u7a0b\u5b9e\u8df5\u3002 Java Chassis\u63d0\u4f9b\u4e86\u76f8\u5173\u652f\u6301\u3002 </p> <p>\u670d\u52a1\u5b9a\u4e49\u5728\u5355\u72ec\u7684 interface \u91cc\u9762\u63cf\u8ff0\uff1a</p> <pre><code>@OpenAPIDefinition(tags = {@Tag(name = \"example\")})\n@RequestMapping(\"/\")\npublic interface ExampleService {\n  @Operation(operationId = \"spring-mvc-example\")\n  @PostMapping(\"/helloWorld\")\n  String helloWorld(@RequestBody String name);\n}\n</code></pre> <p>\u670d\u52a1\u5b9e\u73b0\uff1a</p> <pre><code>@RestSchema(schemaId = \"SpringMVCExample\", schemaInterface = ExampleService.class)\npublic class SpringMVCExample implements ExampleService {\n  @Override\n  public String helloWorld(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre>"},{"location":"build-provider/bootup.html","title":"\u7a0b\u5e8f\u542f\u52a8\u903b\u8f91","text":""},{"location":"build-provider/bootup.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u542f\u52a8\u8fc7\u7a0b\u5206\u4e3a\u521d\u59cb\u5316Log4j\u3001bean\u52a0\u8f7d\uff08\u5305\u62ec\u914d\u7f6e\u52a0\u8f7d\uff09\u548c\u670d\u52a1\u6ce8\u518c\u4e09\u90e8\u5206\u3002</p> <ul> <li>\u521d\u59cb\u5316Log4j</li> </ul> <p><code>Log4jUtils</code>\u9ed8\u8ba4\u4f1a\u4ece<code>classpath\\*:config/base/log4j.properties</code>\u548c<code>classpath\\*:config/log4j.properties</code>\u4e24\u4e2a\u8def\u5f84\u8bfb\u53d6log4j\u914d\u7f6e\u5e76\u5408\u5e76\uff0c\u5c06\u5176\u4f20\u9012\u7ed9Log4j\u7684<code>PropertyConfigurator</code>\u65b9\u6cd5\u521d\u59cb\u5316Log4j\u3002\u5982\u679c\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u914d\u7f6e\u6587\u4ef6\u662f\u5728\u78c1\u76d8\u4e0a\uff0c\u4e14\u5176\u6240\u5728\u76ee\u5f55\u6709\u5199\u6743\u9650\uff0c\u5219\u5c06\u5408\u5e76\u7684\u914d\u7f6e\u8f93\u51fa\u5230\u8be5\u76ee\u5f55\uff0c\u4ee5\u4fbf\u4e8e\u7ef4\u62a4\u65f6\u89c2\u5bdf\u751f\u6548\u7684\u53c2\u6570\u3002</p> <ul> <li>bean\u52a0\u8f7d</li> </ul> <p><code>BeanUtils</code>\u9ed8\u8ba4\u4f1a\u4ece<code>classpath\\*:META-INF/spring/\\*.bean.xml</code>\u8def\u5f84\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u4f20\u9012\u7ed9Spring\u6846\u67b6\u7684<code>ClassPathXmlApplicationContext</code>\u5b8c\u6210\u5e94\u7528\u4e0a\u4e0b\u6587\u52a0\u8f7d\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u4f1a\u52a0\u8f7dfoundation-config\u6a21\u5757\u7684bean\uff0c\u5b8c\u6210\u914d\u7f6e\u52a0\u8f7d\u3002</p> <ul> <li>\u670d\u52a1\u6ce8\u518c</li> </ul> <p>\u5728Spring context\u52a0\u8f7d\u5b8c\u6210\u540e\uff0c<code>org.apache.servicecomb.core.CseApplicationListener</code>\u4f1a\u52a0\u8f7dhandler\u914d\u7f6e\u3001\u52a0\u8f7dprovider\u7684schema\u4fe1\u606f\uff0c\u6700\u540e\u5c06\u5fae\u670d\u52a1\u4fe1\u606f\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</p> <p>\u8bf4\u660e\uff1a ServiceComb\u7684\u914d\u7f6e\u9879\u5206\u4e3a\u4e09\u4e2a\u5c42\u6b21\uff1a\u914d\u7f6e\u4e2d\u5fc3\u3001\u73af\u5883\u53d8\u91cf\u3001\u672c\u5730\u6587\u4ef6\uff0c\u4e09\u8005\u4f18\u5148\u7ea7\u4f9d\u6b21\u9012\u51cf\uff0c\u9ad8\u4f18\u5148\u7ea7\u4e2d\u7684\u914d\u7f6e\u9879\u8986\u76d6\u4f4e\u4f18\u5148\u7ea7\u540c\u540d\u914d\u7f6e\u9879\u3002\u5b58\u653e\u5728\u914d\u7f6e\u4e2d\u5fc3\u7684\u914d\u7f6e\u9879\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u4fee\u6539\u3002</p>"},{"location":"build-provider/context-param.html","title":"\u4f7f\u7528 Context \u53c2\u6570","text":"<p>Context \u53c2\u6570\u6307\u5728\u63a5\u53e3\u58f0\u660e\u4e2d\u7684\u7279\u6b8a\u53c2\u6570\uff0c\u8fd9\u4e9b\u53c2\u6570\u4fe1\u606f\u4e0d\u4f1a\u51fa\u73b0\u5728\u6700\u7ec8\u7684\u5951\u7ea6\u4fe1\u606f\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528 Context \u53c2\u6570 \u83b7\u53d6\u6216\u8005\u4f20\u9012\u4e0e\u8fd0\u884c\u65f6\u6709\u5173\u7684\u4fe1\u606f\u3002 </p> <ul> <li>HttpServletRequest</li> </ul> <p>HttpServletRequest \u7528\u4e8e\u83b7\u53d6\u548cHTTP\u8bf7\u6c42\u6709\u5173\u7684\u4fe1\u606f\uff0c\u6bd4\u5982 header \u7b49\u3002\u5f53 servicecomb \u8fd0\u884c\u4e8e <code>Highway</code>   \u534f\u8bae\uff0c\u6216\u8005\u8fd0\u884c\u4e8e <code>vert.x</code> \u670d\u52a1\u5668\u4e4b\u4e0a\u7684\u65f6\u5019\uff0c\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528\u3002 \u4f46\u662f\u9700\u8981\u6ce8\u610f\uff0c\u548c JSP/Servlet \u534f\u8bae\u6807\u51c6\u7684\u5b9e\u73b0   \u4e0d\u540c\uff0c \u5f00\u53d1\u8005\u65e0\u6cd5\u901a\u8fc7 HttpServletRequest \u64cd\u4f5c\u6d41\uff0c\u53ea\u80fd\u591f\u8fdb\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u83b7\u53d6 header \u7b49\u64cd\u4f5c\u3002\u6bd4\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\uff0c   \u83b7\u53d6 query \u53c2\u6570\uff1a</p> <pre><code>    ```java\n      @GetMapping(path = \"/reduce\")\n      @ApiImplicitParams({@ApiImplicitParam(name = \"a\", dataType = \"integer\", format = \"int32\", paramType = \"query\")})\n      public int reduce(HttpServletRequest request, @CookieValue(name = \"b\") int b) {\n        int a = Integer.parseInt(request.getParameter(\"a\"));\n        return a - b;\n      }\n    ```\n</code></pre> <p>\u7279\u522b\u9700\u8981\u6ce8\u610f\uff0c\u5982\u679c\u8bf7\u6c42\u4e0d\u662f\u76f4\u63a5\u5230\u8fbe provider\uff0c \u800c\u662f\u7ecf\u8fc7 servicecomb \u7684 Edge Service \u8f6c\u53d1\u5230 provider\uff0c   \u4e0a\u9762\u7684\u4ee3\u7801\u8fd8\u5fc5\u987b\u4f7f\u7528 <code>@ApiImplicitParams</code> \u663e\u793a\u7684\u58f0\u660e\u8fd9\u4e2a\u63a5\u53e3\u7684\u5b9e\u73b0\u901a\u8fc7 <code>HttpServletRequest</code> \u8bfb\u53d6\u4e86   query \u53c2\u6570 <code>a</code>\uff0c \u5982\u679c\u4e0d\u58f0\u660e\uff0c Edge Service \u505a\u8bf7\u6c42\u8f6c\u53d1\u7684\u65f6\u5019\uff0c\u4e0d\u4f1a\u8f6c\u53d1\u53c2\u6570 <code>a</code>\uff0c \u4ee3\u7801\u4e2d\u8bfb\u53d6\u7684\u53c2\u6570\u503c\u4e3a   null\u3002</p> <p>\u8fd8\u9700\u8981\u6ce8\u610f\uff0cservicecomb \u4e0d\u652f\u6301 <code>HttpServletResponse</code> Context \u53c2\u6570\u3002</p> <ul> <li>InvocationContext</li> </ul> <p>InvocationContext \u662f servicecomb \u7279\u6709\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u53ef\u4ee5\u5728 <code>Handler</code>, <code>HttpServerFilter</code> \u7b49   \u591a\u79cd\u573a\u666f\u4f7f\u7528\u3002 InvocationContext \u5305\u542b local \u548c context \u4e24\u79cd\u6570\u636e\uff0c local \u6570\u636e\u53ea\u5728\u672c\u8fdb\u7a0b\u7684\u6a21\u5757\u95f4   \u4f20\u9012\uff0c context \u6570\u636e\u53ef\u4ee5\u5728\u5fae\u670d\u52a1\u4e4b\u95f4\u4f20\u9012\u3002 </p> <pre><code>    ```java\n      @ApiResponse(code = 202, response = User.class, message = \"\")\n      @ResponseHeaders({@ResponseHeader(name = \"h1\", response = String.class),\n          @ResponseHeader(name = \"h2\", response = String.class)})\n      @RequestMapping(path = \"/cseResponseCorrect\", method = RequestMethod.GET)\n      public Response cseResponseCorrect(InvocationContext c1) {\n        Response response = Response.createSuccess(Status.ACCEPTED, new User());\n        Headers headers = response.getHeaders();\n        headers.addHeader(\"h1\", \"h1v \" + c1.getContext().get(Const.SRC_MICROSERVICE));\n\n        InvocationContext c2 = ContextUtils.getInvocationContext();\n        headers.addHeader(\"h2\", \"h2v \" + c2.getContext().get(Const.SRC_MICROSERVICE));\n\n        return response;\n      }\n    ```\n</code></pre> <p>\u4e0a\u9762\u7684\u4ee3\u7801\u663e\u793a\u4e86 InvocationContext \u53c2\u6570\u7684\u7528\u6cd5\uff0c \u8fd9\u4e2a\u7528\u6cd5\u548c\u4ee3\u7801\u4e2d\u901a\u8fc7 ContextUtils.getInvocationContext()   \u83b7\u53d6\u662f\u7b49\u4ef7\u7684\u3002</p> <p>InvocationContext \u8fd8\u53ef\u4ee5\u5728 consumer \u7aef\u7684 RPC \u63a5\u53e3\u4e2d\u4f7f\u7528\uff0c \u4f7f\u7528Context\u4f20\u9012\u63a7\u5236\u6d88\u606f \u63cf\u8ff0\u4e86\u66f4\u591a InvocationContext \u7684\u4f7f\u7528   \u573a\u666f\u3002</p> <ul> <li>Endpoint</li> </ul> <p>Endpoint \u63cf\u8ff0\u5f53\u524d\u8bf7\u6c42\u9700\u8981\u53d1\u5f80\u7684\u5b9e\u4f8b\u5730\u5740\u3002 \u8fd9\u4e2a context \u53c2\u6570\u53ea\u80fd\u591f\u5728 consumer \u7aef\u7684 PRC \u63a5\u53e3\u4f7f\u7528\u3002\u5f53   \u5fae\u670d\u52a1\u5b58\u5728\u591a\u4e2a\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u6307\u5b9a\u5c06\u8bf7\u6c42\u53d1\u5f80\u54ea\u4e2a\u5b9e\u4f8b\u3002 </p> <pre><code>    ```java\n    public interface SchemaDiscoveryService {\n      String getSchema(Endpoint endpoint, String schemaId);\n    }\n\n    SchemaDiscoveryService schemaDiscoveryService = Invoker\n              .createProxy(serviceName, SchemaDiscoveryService.SCHEMA_ID,\n                  SchemaDiscoveryService.class);\n\n    schemaDiscoveryService.getSchema(EndpointUtils.parse(endpoint), schemaId);\n    ```\n</code></pre>"},{"location":"build-provider/define-contract.html","title":"\u7406\u89e3\u670d\u52a1\u5951\u7ea6","text":"<p>servicecomb \u7684\u6838\u5fc3\u8bbe\u8ba1\u7406\u5ff5\u662f <code>\u4ee5\u5951\u7ea6\u4e3a\u4e2d\u5fc3</code>\uff0c\u5951\u7ea6\u662f\u5fae\u670d\u52a1\u7cfb\u7edf\u8fd0\u884c\u548c\u6cbb\u7406\u7684\u57fa\u7840\u3002 \u53ef\u4ee5\u5c06\u5951\u7ea6\u7406\u89e3\u4e3a\u57fa \u4e8e OpenAPI \u89c4\u8303\u7684\u5fae\u670d\u52a1\u63a5\u53e3\u63cf\u8ff0\u3002java chassis \u63d0\u4f9b\u4e86\u4e24\u79cd\u65b9\u5f0f\u5b9a\u4e49\u5951\u7ea6\uff1a<code>code first</code> \u548c  <code>contract first</code> \u3002</p> <ul> <li>code first</li> </ul> <p>\u5f00\u53d1\u8005\u9996\u5148\u901a\u8fc7 JAVA \u4ee3\u7801\u5b9a\u4e49\u63a5\u53e3\u4fe1\u606f\uff0cservicecomb \u4f1a\u6839\u636e\u4ee3\u7801\u5b9a\u4e49\uff0c\u751f\u6210\u4ee5 yaml \u6587\u4ef6\u63cf\u8ff0\u7684 OpenAPI   \u6587\u6863\u3002 servicecomb \u652f\u6301\u4f7f\u7528 <code>JAX-RS</code>, <code>Spring MVC</code> \u7b49  REST Annotation \u63cf\u8ff0\u63a5\u53e3\u4fe1\u606f\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7   swagger API \u8865\u5145\u5176\u4ed6\u63a5\u53e3\u4fe1\u606f\u3002 \u5728\u4f7f\u7528 <code>RPC</code> \u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\u7684\u65f6\u5019\uff0c \u7cfb\u7edf\u4f1a\u6309\u7167\u9ed8\u8ba4\u7684\u89c4\u5219\u751f\u6210\u63a5\u53e3\u63cf\u8ff0\uff0c   \u4e5f\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u6807\u7b7e\u4fee\u9970\u63a5\u53e3\u4fe1\u606f\uff0c\u8ba9\u5951\u7ea6\u4fe1\u606f\u66f4\u52a0\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\u3002</p> <ul> <li>contract first</li> </ul> <p>\u5f00\u53d1\u8005\u5148\u901a\u8fc7\u5951\u7ea6\u7f16\u8f91\u5668\u4e66\u5199 yaml \u683c\u5f0f\u7684\u63a5\u53e3\u63cf\u8ff0\uff0c\u7136\u540e\u901a\u8fc7\u4ee3\u7801\u751f\u6210\u5de5\u5177\uff0c\u751f\u6210\u9879\u76ee\u4ee3\u7801\u3002\u8fd9\u79cd\u65b9\u5f0f\u901a\u5e38   \u9700\u8981\u5b9a\u4e49\u4e00\u5957\u6807\u51c6\u7684\u8f6f\u4ef6\u5de5\u7a0b\u89c4\u8303\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u7684\u5de5\u5177\u652f\u6301\u3002\u8fd9\u79cd\u65b9\u5f0f\u66f4\u52a0\u5bb9\u6613\u5b9e\u73b0\u63a5\u53e3\u89c4\u8303\u7ba1\u7406\uff0c\u5b9e\u73b0\u6d4b\u8bd5\u81ea\u52a8\u5316   \u7b49\u8f6f\u4ef6\u5de5\u7a0b\u6d41\u7a0b\u3002</p> <p>\u7531\u4e8e <code>contract first</code> \u5b9e\u8df5\u8d77\u6765\uff0c\u9700\u8981\u914d\u5957\u7684\u7ba1\u7406\u8fc7\u7a0b\u548c\u5de5\u5177\u4f53\u7cfb\u652f\u6301\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u63cf\u8ff0\uff0c \u672c\u7ae0\u8282\u7b80\u5355\u63cf\u8ff0\u5982\u4f55\u4e66\u5199\u5951\u7ea6\u3002\u540e\u7eed\u7684\u7ae0\u8282\u4f1a\u63cf\u8ff0\u4f7f\u7528 <code>code first</code> \u7684\u5f00\u53d1\u7ec6\u8282\u3002</p>"},{"location":"build-provider/define-contract.html#contract-first","title":"contract first \u5f00\u53d1\u6b65\u9aa4\u7b80\u8981\u63cf\u8ff0","text":"<p>ServiceComb \u4f7f\u7528 yaml \u6587\u4ef6\u683c\u5f0f\u5b9a\u4e49\u670d\u52a1\u5951\u7ea6\uff0c\u63a8\u8350\u4f7f\u7528Swagger Editor\u5de5\u5177\u6765\u7f16\u5199\u5951\u7ea6\uff0c \u53ef\u68c0\u67e5\u8bed\u6cd5\u683c\u5f0f\u53ca\u81ea\u52a8\u751f\u6210API\u6587\u6863\u3002\u8be6\u7ec6\u7684\u5951\u7ea6\u6587\u4ef6\u683c\u5f0f\u8bf7\u53c2\u8003OpenAPI\u5b98\u65b9\u6587\u6863\u3002</p> <p>\u5951\u7ea6\u6587\u4ef6\u653e\u7f6e\u5728 <code>resources/microservices</code> \u6216\u8005 <code>resources/application</code> \u76ee\u5f55\u4e0b\uff0c\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\u6240\u793a\u3002</p> <pre><code>resources\n  - microservices  \n    - serviceName #\u5fae\u670d\u52a1\u540d  \n      - schemaId.yaml #schema\u63a5\u53e3\u7684\u5951\u7ea6\n  - applications  \n    - appId #\u5e94\u7528ID  \n      - serviceName #\u5fae\u670d\u52a1\u540d  \n        - schemaId.yaml #schema\u63a5\u53e3\u7684\u5951\u7ea6\n</code></pre> <p>ServiceComb\u7684Swagger\u5951\u7ea6\u6587\u4ef6\u5e94\u5f53\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\u4fdd\u5b58\u3002\u5982\u679c\u5f53\u7528\u6237\u4f7f\u7528\u5176\u4ed6\u5b57\u7b26\u96c6\u4fdd\u5b58\u5951\u7ea6\u6587\u4ef6\uff0c\u4e14\u6587 \u4ef6\u4e2d\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u65f6\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u672a\u77e5\u9519\u8bef\u3002</p>"},{"location":"build-provider/define-contract.html#_2","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p><code>resources/microservices</code>\u76ee\u5f55\u548c<code>resources/application</code> \u76ee\u5f55\u4e0b\u7684schemaId.yaml\u6587\u4ef6\u5185\u5bb9\u793a\u4f8b\u5982\u4e0b\u3002</p> <pre><code>swagger: '2.0'\ninfo:\n  title: hello\n  version: 1.0.0\n  x-java-interface: org.apache.servicecomb.samples.common.schema.Hello\nbasePath: /springmvchello\nproduces:\n  - application/json\n\npaths:\n  /sayhi:\n    post:\n      operationId: sayHi\n      parameters:\n        - name: name\n          in: query\n          required: true\n          type: string\n      responses:\n        200:\n          description: \u6b63\u786e\u8fd4\u56de\n          schema:\n            type: string\n        default:\n          description: \u9ed8\u8ba4\u8fd4\u56de\n          schema:\n            type: string\n  /sayhello:\n    post:\n      operationId: sayHello\n      parameters:\n        - name: person\n          in: body\n          required: true\n          schema:\n            $ref: \"#/definitions/Person\"\n      responses:\n        200:\n          description: \u6b63\u786e\u8fd4\u56de\n          schema:\n            type: string\n        default:\n          description: \u9ed8\u8ba4\u8fd4\u56de\n          schema:\n            type: string\ndefinitions:\n  Person:\n    type: \"object\"\n    properties:\n      name:\n        type: \"string\"\n        description: \"person name\"\n    xml:\n      name: \"Person\"\n</code></pre> <p>ServiceComb\u4e2d\u7684\u5951\u7ea6\uff0cbasePath\u4e0d\u9700\u8981\u5305\u542bweb container\u7684web root\uff0c\u4ee5\u53caservlet\u7684url pattern\u3002 \u56e0\u4e3aServiceComb\u652f\u6301\u90e8\u7f72\u89e3\u8026\uff0c\u65e2\u53ef\u4ee5\u8131\u79bbservlet container\u72ec\u7acb\u90e8\u7f72\uff0c\u4e5f\u53ef\u4f7f\u7528war\u7684\u65b9\u5f0f\u90e8\u7f72 \u5230servlet container\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528embedded servlet container\u7684\u65b9\u5f0f\u8fd0\u884c\u3002 \u90e8\u7f72\u65b9\u5f0f\u4fee\u6539\u5bfc\u81f4\u7684\u5b9e\u9645url\u53d8\u66f4\uff0cServiceComb consumer\u4e1a\u52a1\u4ee3\u7801\u5e76\u4e0d\u9700\u8981\u611f\u77e5\uff0c\u6846\u67b6\u4f1a\u81ea\u52a8\u9002\u914d\u3002 </p> <p>\u8bf4\u660e\uff1a</p> <ul> <li>info.x-java-interface\u9700\u8981\u6807\u660e\u5177\u4f53\u7684\u63a5\u53e3\u8def\u5f84\uff0c\u6839\u636e\u9879\u76ee\u5b9e\u9645\u60c5\u51b5\u800c\u5b9a\u3002\u8be5\u4fe1\u606f\u4e3b\u8981\u662f\u4e3a\u4e86\u548c\u8001\u7248\u672c\u517c\u5bb9\uff0c     \u65b0\u7248\u672c\u53ef\u4ee5\u4e0d\u9700\u8981\u6307\u5b9a\u3002</li> <li>SchemaId\u4e2d\u53ef\u4ee5\u5305\u542b\".\"\u5b57\u7b26\uff0c\u4f46\u4e0d\u63a8\u8350\u8fd9\u6837\u547d\u540d\u3002\u8fd9\u662f\u7531\u4e8eServiceComb\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\u662fyaml\u683c\u5f0f\u7684\uff0c     \".\"\u7b26\u53f7\u7528\u4e8e\u5206\u5272\u914d\u7f6e\u9879\u540d\u79f0\uff0c\u5982\u679cSchemaId\u4e2d\u4e5f\u5305\u542b\u4e86\".\"\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u652f\u6301\u5951\u7ea6\u7ea7\u522b\u7684\u914d\u7f6e\u65e0\u6cd5\u6b63\u786e\u88ab\u8bc6\u522b\u3002</li> <li>OperationId\u7684\u547d\u540d\u4e2d\u4e0d\u53ef\u5305\u542b\".\"\u5b57\u7b26\u3002</li> </ul>"},{"location":"build-provider/event-listener.html","title":"\u670d\u52a1\u542f\u52a8\u4e8b\u4ef6","text":"<p>java chassis \u542f\u52a8\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5e7f\u64ad\u4e8b\u4ef6\u3002 \u4e1a\u52a1\u53ef\u4ee5\u5728\u670d\u52a1\u542f\u52a8\u7684\u4e0d\u540c\u9636\u6bb5\u6267\u884c\u4e00\u4e9b\u521d\u59cb\u5316\u903b\u8f91\u3002 \u4e8b\u4ef6\u7c7b\u578b\u5728 <code>BootListener</code>  \u91cc\u9762\u5b9a\u4e49\uff1a</p> <pre><code>public interface BootListener {\n  enum EventType {\n    BEFORE_HANDLER,\n    AFTER_HANDLER,\n    BEFORE_PRODUCER_PROVIDER,\n    AFTER_PRODUCER_PROVIDER,\n    BEFORE_CONSUMER_PROVIDER,\n    AFTER_CONSUMER_PROVIDER,\n    BEFORE_TRANSPORT,\n    AFTER_TRANSPORT,\n    BEFORE_REGISTRY,\n    AFTER_REGISTRY,\n    BEFORE_CLOSE,\n    AFTER_CLOSE\n  }\n}\n</code></pre> <p>\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u5904\u7406\u5668\u53ea\u9700\u8981\u5b9e\u73b0 <code>BootListener</code> \u7684\u63a5\u53e3\uff0c\u5e76\u4e14\u58f0\u660e\u4e3a <code>Component</code> \u5373\u53ef\u3002</p> <pre><code>@Component\npublic class AuthHandlerBoot implements BootListener {\n  @Override\n  public void onBootEvent(BootEvent event) {\n    if (EventType.BEFORE_REGISTRY.equals(event.getEventType())) {\n      RSAKeyPairEntry rsaKeyPairEntry = RSAUtils.generateRSAKeyPair();\n      RSAKeypair4Auth.INSTANCE.setPrivateKey(rsaKeyPairEntry.getPrivateKey());\n      RSAKeypair4Auth.INSTANCE.setPublicKey(rsaKeyPairEntry.getPublicKey());\n      RSAKeypair4Auth.INSTANCE.setPublicKeyEncoded(rsaKeyPairEntry.getPublicKeyEncoded());\n      RegistryUtils.getMicroserviceInstance().getProperties().put(Const.INSTANCE_PUBKEY_PRO,\n          rsaKeyPairEntry.getPublicKeyEncoded());\n    }\n  }\n}\n</code></pre> <p>\u6bd4\u5982\uff0c\u901a\u8fc7\u4e8b\u4ef6\u5904\u7406\u5668\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u6ce8\u518c\u5b8c\u6210\u6216\u8005\u670d\u52a1\u6ce8\u518c\u4e4b\u524d\u8fdb\u884c\u4e00\u4e9b\u521d\u59cb\u5316\u64cd\u4f5c\u3002</p>"},{"location":"build-provider/http-mapping.html","title":"HTTP\u53c2\u6570\u6620\u5c04\u53c2\u8003","text":"<p>HTTP\u534f\u8bae\u662f\u4e00\u4e2a\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff0cRESTFul\u6846\u67b6\u6838\u5fc3\u90e8\u5206\uff0c\u5c31\u662f\u5c06\u8bed\u8a00\u5bf9\u8c61\u4e0eHTTP\u534f\u8bae\u7684\u7ec4\u6210\u90e8\u4ef6\u6620\u5c04\u8d77\u6765\uff0c\u63d0\u4f9b\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528(RPC)\u80fd\u529b\u3002 HTTP\u7684\u8bf7\u6c42\u54cd\u5e94\u53ef\u4ee5\u7b80\u5316\u63cf\u8ff0\u4e3a\uff1a</p> <ul> <li>\u8bf7\u6c42</li> </ul> <pre><code>GET /apps HTTP/1.1\n\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/x-www-form-urlencoded\n\nqueryParamExample1=example1&amp;queryParamExample2=example2\n</code></pre> <ul> <li>\u54cd\u5e94</li> </ul> <pre><code>Host: 127.0.0.1:8080\nContent-Type: application/x-www-form-urlencoded\n\nqueryParamExample1=example1&amp;queryParamExample2=example2\n</code></pre>"},{"location":"build-provider/http-mapping.html#http_1","title":"HTTP\u8bf7\u6c42\u53c2\u6570\u6620\u5c04","text":""},{"location":"build-provider/http-mapping.html#query","title":"Query","text":"<p>Query\u53c2\u6570\u5c5e\u4e8eHTTP\u534f\u8baeURL\u7684\u4e00\u90e8\u5206\uff0c\u6bd4\u5982:</p> <pre><code>GET /apps?queryParamExample1=example1&amp;queryParamExample2=example2 HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\n</code></pre> <p>\u5b9a\u4e49\u4e86Query\u53c2\u6570 <code>queryParamExample1</code> \u548c <code>queryParamExample2</code>\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(\"\")\npublic String queryExample(@RequestParam(\"queryParamExample1\") String example1,\n    @RequestParam(\"queryParamExample2\") String example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"\")\npublic String queryJAXRSExample(@QueryParam(\"queryParamExample1\") String example1,\n    @QueryParam(\"queryParamExample2\") String example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#path","title":"Path","text":"<p>Path\u53c2\u6570\u5c5e\u4e8eHTTP\u534f\u8baeURL\u7684\u4e00\u90e8\u5206\uff0c\u6bd4\u5982:</p> <pre><code>GET /apps/pathParamExample1/pathParamExample2 HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\n</code></pre> <p>\u5b9a\u4e49\u4e86Path\u53c2\u6570 <code>pathParamExample1</code> \u548c <code>pathParamExample2</code>\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(\"/{pathParamExample1}/{pathParamExample2}\")\npublic String pathSpringMVCExample(@PathVariable(\"pathParamExample1\") String example1,\n    @PathVariable(\"pathParamExample2\") String example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"/{pathParamExample1}/{pathParamExample2}\")\npublic String pathJAXRSExample(@PathParam(\"pathParamExample1\") String example1,\n    @PathParam(\"pathParamExample2\") String example2) \n</code></pre>"},{"location":"build-provider/http-mapping.html#header","title":"Header","text":"<p>Header\u5bf9\u5e94\u4e8eHTTP\u534f\u8bae\u8bf7\u6c42\u5934\uff0c\u6bd4\u5982:</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nheaderParamExample1: example1\nheaderParamExample2: example2\n</code></pre> <p>\u5b9a\u4e49\u4e86Header\u53c2\u6570 <code>headerParamExample1</code> \u548c <code>headerParamExample2</code>\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(\"\")\npublic String headerSpringMVCExample(@RequestHeader(\"headerParamExample1\") String example1,\n    @RequestHeader(\"headerParamExample2\") String example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"\")\npublic String headerJAXRSExample(@HeaderParam(\"headerParamExample1\") String example1,\n    @HeaderParam(\"headerParamExample2\") String example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationx-www-form-urlencoded","title":"application/x-www-form-urlencoded","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/x-www-form-urlencoded</code>\uff0c \u53ef\u4ee5\u4f7f\u7528 Form \u53c2\u6570\u3002 </p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/x-www-form-urlencoded\n\nqueryParamExample1=example1&amp;queryParamExample2=example2\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(path = \"formSpringMVCExample\", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)\npublic String formSpringMVCExample(@RequestAttribute(\"formParamExample1\") String example1,\n    @RequestAttribute(\"formParamExample2\") String example2)\n</code></pre> <p>\u539f\u751f Spring MVC \u7684 RequestAttribute \u8868\u793a HTTP \u7684 Attribute\uff0c \u4f7f\u7528 RequestParam \u8868\u793a form \u53c2\u6570\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u4ee3\u7801\u751f\u6210\u5951\u7ea6\u7684\u65f6\u5019\u4ea7\u751f\u6b67\u4e49\u3002 Java Chassis 3 \u63a8\u8350\u4f7f\u7528 RequestAttribute \u8868\u793aForm\u53c2\u6570\u3002</p> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"formJAXRSExample\")\n@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\npublic String formJAXRSExample(@FormParam(\"formParamExample1\") String example1,\n    @FormParam(\"formParamExample2\") String example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationjson","title":"application/json","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/json</code>\uff0c \u4f7f\u7528json\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/json\n\n{\"name\": \"wang\", \"age\": 20}\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"jsonSpringMVCExample\", consumes = MediaType.APPLICATION_JSON_VALUE)\npublic String jsonSpringMVCExample(@RequestBody Person person) \n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"jsonJAXRSExample\")\n@Consumes(jakarta.ws.rs.core.MediaType.APPLICATION_JSON)\npublic String jsonJAXRSExample(Person person)\n</code></pre> <p>JAX-RS\u6ca1\u6709\u58f0\u660e\u6807\u7b7e\u7684\u65f6\u5019\u8868\u793aBody\u53c2\u6570\u3002 </p>"},{"location":"build-provider/http-mapping.html#applicationprotobuf","title":"application/protobuf","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/protobuf</code>\uff0c \u4f7f\u7528protobuf\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/protobuf\n\nproto-buffer-binary-data\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"protobufSpringMVCExample\", consumes = SwaggerConst.PROTOBUF_TYPE)\npublic String protobufSpringMVCExample(@RequestBody Person person)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"protobufJAXRSExample\")\n@Consumes(SwaggerConst.PROTOBUF_TYPE)\npublic String protobufJAXRSExample(Person person)\n</code></pre> <p>JAX-RS\u6ca1\u6709\u58f0\u660e\u6807\u7b7e\u7684\u65f6\u5019\u8868\u793aBody\u53c2\u6570\u3002</p>"},{"location":"build-provider/http-mapping.html#applicationtext","title":"application/text","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>application/text</code>\uff0c \u4f7f\u7528json\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002</p> <p>application/text \u548c application/json \u5728\u5bf9\u8c61\u5e8f\u5217\u5316\u4e0a\u90fd\u91c7\u7528 json\uff0c\u5bf9\u4e8e\u5927\u591a\u6570\u573a\u666f\u4e24\u8005\u662f\u7b49\u4ef7\u7684\u3002\u53ea\u6709\u5f53\u5bf9\u8c61\u7c7b\u578b\u4e3a String \u7684\u65f6\u5019\uff0c \u5b58\u5728\u5dee\u5f02\uff1aapplication/text \u7684 String \u5e8f\u5217\u5316\u540e\u7684\u6587\u672c\u6ca1\u6709\u53cc\u5f15\u53f7\uff1bapplication/json \u7684 String \u5e8f\u5217\u5316\u540e\u7684\u6587\u672c\u6709\u53cc\u5f15\u53f7\uff1b</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: application/text\n\n{\"name\": \"wang\", \"age\": 20}\n</code></pre> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"textSpringMVCExample\", consumes = MediaType.TEXT_PLAIN_VALUE)\npublic String textSpringMVCExample(@RequestBody Person person)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"textJAXRSExample\")\n@Consumes(MediaType.TEXT_PLAIN)\npublic String textJAXRSExample(Person person) \n</code></pre> <p>JAX-RS\u6ca1\u6709\u58f0\u660e\u6807\u7b7e\u7684\u65f6\u5019\u8868\u793aBody\u53c2\u6570\u3002</p>"},{"location":"build-provider/http-mapping.html#multipartform-data","title":"\u6587\u4ef6\u4e0a\u4f20\uff1amultipart/form-data","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>multipart/form-data</code>\uff0c \u8868\u793a\u6587\u4ef6\u4e0a\u4f20\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: multipart/form-data; boundary=----boundary-example----\n\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample1\"\n\ncontents of multiPartParamExample1\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample2\"\n\ncontents of multiPartParamExample2\n----boundary-example----\n</code></pre> <p>multipart/form-data \u4e5f\u53ef\u4ee5\u8868\u793a Form \u53c2\u6570\uff0c \u548c application/x-www-form-urlencoded \u7528\u6cd5\u4e00\u6837\u3002\u4e3a\u4e86\u907f\u514d\u6df7\u6dc6\u548c\u7b80\u6d01\uff0c\u5efa\u8baemultipart/form-data\u4e13\u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"multiPartSpringMVCExample\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String multiPartSpringMVCExample(@RequestPart(\"multiPartParamExample1\") MultipartFile example1,\n    @RequestPart(\"multiPartParamExample2\") MultipartFile example2)\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"multiPartJAXRSExample\")\n@Consumes(MediaType.MULTIPART_FORM_DATA)\npublic String multiPartJAXRSExample(@FormParam(\"multiPartParamExample1\") Part example1,\n    @FormParam(\"multiPartParamExample2\") Part example2)\n</code></pre>"},{"location":"build-provider/http-mapping.html#http_2","title":"HTTP\u54cd\u5e94\u53c2\u6570\u6620\u5c04","text":""},{"location":"build-provider/http-mapping.html#header_1","title":"\u72b6\u6001\u7801 \u548c Header","text":"<p>\u5728\u6ca1\u6709\u7279\u6b8a\u58f0\u660e\u7684\u60c5\u51b5\u4e0b\uff0c\u6b63\u5e38\u54cd\u5e94\u7684\u72b6\u6001\u7801\u662f <code>200</code>\uff0c\u4e5f\u53ef\u4ee5\u58f0\u660e\u5176\u4ed6\u72b6\u6001\u7801\u3002</p> <p>Java Chassis 2xx \u72b6\u6001\u7801\u8868\u793a\u6b63\u5e38\u54cd\u5e94\uff0c\u4f1a\u8fdb\u884c\u5bf9\u8c61\u5e8f\u5217\u5316\u3002 \u53ef\u4ee5\u4f7f\u7528 <code>@ApiResponse</code> \u81ea\u5b9a\u4e49\u72b6\u6001\u7801\uff0c\u6240\u6709 2xx \u72b6\u6001\u7801\u58f0\u660e\u7684\u5bf9\u8c61\u7c7b\u578b\u5fc5\u987b\u4e00\u6837\u3002 \u5176\u4ed6\u72b6\u6001\u7801\u8868\u793a\u5f02\u5e38\uff0c\u4f1a\u5bf9 <code>InvocationException</code> \u8fdb\u884c\u5e8f\u5217\u5316\uff0c\u4e0d\u8981\u6c42\u5bf9\u8c61\u7c7b\u578b\u4e00\u6837\u3002 </p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"statusHeaderSpringMVCExample\")\n@ApiResponses(value = {\n    @ApiResponse(\n        responseCode = \"200\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"202\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"400\",\n        content = @Content(schema = @Schema(implementation = MultiResponse400.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))})})\npublic ResponseEntity&lt;Person&gt; statusHeaderSpringMVCExample(@RequestBody Person person) {\n    return ResponseEntity.status(200).header(\"h1\", \"h1\")\n    .header(\"h2\", \"h2\").body(person);\n}\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@PostMapping(path = \"statusHeaderJAXRSExample\")\n@ApiResponses(value = {\n    @ApiResponse(\n        responseCode = \"200\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"202\",\n        content = @Content(schema = @Schema(implementation = Person.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))}),\n    @ApiResponse(\n        responseCode = \"400\",\n        content = @Content(schema = @Schema(implementation = MultiResponse400.class)),\n        headers = {\n            @Header(name = \"h1\", schema = @Schema(implementation = String.class)),\n            @Header(name = \"h2\", schema = @Schema(implementation = String.class))})})\npublic Response statusHeaderJAXRSExample(@RequestBody Person person) {\n    return Response.status(200).entity(new Person()).header(\"h1\", \"h1\")\n    .header(\"h2\", \"h2\").build();\n}\n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationjson_1","title":"application/json","text":"<p>\u54cd\u5e94\u7c7b\u578b\u6839\u636e <code>Accept</code> \u6765\u786e\u5b9a\uff0c\u9ed8\u8ba4\u662f application/json\u3002 \u4e5f\u53ef\u4ee5\u58f0\u660e\u63a5\u53e3\u53ea\u652f\u6301 application/json \u54cd\u5e94\u3002 </p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"produceJsonSpringMVCExample\", produces = MediaType.APPLICATION_JSON_VALUE)\npublic Person produceJsonSpringMVCExample()\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"produceJsonJAXRSExample\")\n@Produces(MediaType.APPLICATION_JSON)\npublic Person produceJsonJAXRSExample() \n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationprotobuf_1","title":"application/protobuf","text":"<p>\u54cd\u5e94\u7c7b\u578b\u6839\u636e <code>Accept</code> \u6765\u786e\u5b9a\uff0c\u9ed8\u8ba4\u662f application/json\u3002 \u4e5f\u53ef\u4ee5\u58f0\u660e\u63a5\u53e3\u53ea\u652f\u6301 application/protobuf \u54cd\u5e94\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"produceProtobufSpringMVCExample\", produces = SwaggerConst.PROTOBUF_TYPE)\npublic Person produceProtobufSpringMVCExample()\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"produceProtobufJAXRSExample\")\n@Produces(SwaggerConst.PROTOBUF_TYPE)\npublic Person produceProtobufJAXRSExample() \n</code></pre>"},{"location":"build-provider/http-mapping.html#applicationtext_1","title":"application/text","text":"<p>\u54cd\u5e94\u7c7b\u578b\u6839\u636e <code>Accept</code> \u6765\u786e\u5b9a\uff0c\u9ed8\u8ba4\u662f application/json\u3002 \u4e5f\u53ef\u4ee5\u58f0\u660e\u63a5\u53e3\u53ea\u652f\u6301 application/text \u54cd\u5e94\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"produceTextSpringMVCExample\", produces = MediaType.TEXT_PLAIN_VALUE)\npublic Person produceTextSpringMVCExample()\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@POST\n@Path(\"produceTextJAXRSExample\")\n@Produces(MediaType.TEXT_PLAIN)\npublic Person produceTextJAXRSExample() \n</code></pre>"},{"location":"build-provider/http-mapping.html#_1","title":"\u6587\u4ef6\u4e0b\u8f7d","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u901a\u7528\u7684 <code>\u6587\u4ef6\u4e0b\u8f7d</code> \u652f\u6301\u3002 \u5982\u679c\u8fd4\u56de\u503c\u7c7b\u578b\u4e3a <code>File</code>\u3001<code>Resource</code>\u3001<code>InputStream</code>\u3001<code>Part</code> \u7b49\uff0c\u5219\u88ab\u8ba4\u4e3a\u662f <code>\u6587\u4ef6\u4e0b\u8f7d</code>\u3002 \u6587\u4ef6MIME\u7c7b\u578b\u548c\u6587\u4ef6\u540d\u53ef\u4ee5\u4f7f\u7528 <code>Part</code> \u7684 API \u6307\u5b9a\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(path = \"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre>"},{"location":"build-provider/interface-constraints.html","title":"\u63a5\u53e3\u5b9a\u4e49\u548c\u6570\u636e\u7c7b\u578b","text":"<p>\u4e0d\u8bba\u91c7\u7528 <code>JAX-RS</code>\u3001<code>Spring MVC</code>\uff0c\u8fd8\u662f\u91c7\u7528 <code>\u900f\u660eRPC</code> \u5f00\u53d1\uff0c\u90fd\u6d89\u53ca\u63a5\u53e3\u7684\u8fd4\u56de\u503c\u548c\u53c2\u6570\u3002java-chassis  \u91c7\u7528\u7684\u662f\u4e00\u79cd\u5e73\u53f0\u65e0\u5173\u7684\u6570\u636e\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u5f53 <code>Transport</code> \u4e3a <code>REST</code> \u7684\u65f6\u5019\uff0c\u5e8f\u5217\u5316\u65b9\u5f0f\u4e3a <code>json</code>\uff0c\u5f53 <code>Transport</code> \u4e3a <code>Highway</code> \u7684\u65f6\u5019\uff0c\u5e8f\u5217\u5316\u65b9\u5f0f\u4e3a <code>protobuffer</code>\u3002 \u5e73\u53f0\u65e0\u5173\u7684\u6570\u636e\u5e8f\u5217\u5316\u65b9\u5f0f\u6709\u4e2a\u57fa\u672c \u7279\u5f81\uff1a\u4f5c\u4e3a <code>Consumer</code>\uff0c \u4ece\u5e8f\u5217\u5316\u7684\u6570\u636e\u4e2d\uff0c\u65e0\u6cd5\u83b7\u53d6\u4efb\u4f55\u548c <code>Consuemr</code> \u5f00\u53d1\u8bed\u8a00\u6709\u5173\u7684\u7c7b\u578b\u4fe1\u606f\u3002 \u5e73\u53f0\u65e0\u5173 \u7279\u6027\u7ed9\u63a5\u53e3\u5b9a\u4e49\u7684\u6570\u636e\u7c7b\u578b\u63d0\u4f9b\u4e86\u66f4\u4e25\u683c\u7684\u8981\u6c42\uff0c\u7b26\u5408\u8fd9\u4e9b\u8981\u6c42\u7684\u63a5\u53e3\u5b9a\u4e49\uff0c\u4e00\u65b9\u9762\u8fd0\u884c\u66f4\u52a0\u9ad8\u6548\uff0c\u53e6\u5916\u4e00\u65b9\u9762\u66f4\u52a0\u65b9\u4fbf\u7684 \u52a8\u6001\u8c03\u6574 <code>Transport</code>\uff0c \u800c\u65e0\u9700\u5bf9\u4ee3\u7801\u505a\u51fa\u4fee\u6539\u3002 </p> <p>\u5bf9\u4e8e <code>REST</code>\uff0c \u867d\u7136 <code>json</code> \u672c\u8eab\u4e0d\u5305\u542b\u7279\u5b9a\u5e73\u53f0\u7684\u7c7b\u578b\u4fe1\u606f\uff0c\u4f46\u662f <code>JAVA</code> \u53ef\u4ee5\u901a\u8fc7\u5728\u53cd\u5e8f\u5217\u5316\u7684\u65f6\u5019\uff0c\u6307\u5b9a\u76ee\u6807 \u7c7b\u578b\uff0c\u6240\u4ee5\u5bf9\u4e8e <code>REST</code>\uff0c \u53ef\u4ee5\u66f4\u52a0\u7075\u6d3b\u7684\u4f7f\u7528\u4e0d\u540c\u7684\u7c7b\u578b\u3002 </p> <p>\u672c\u7ae0\u8282\u4e3b\u8981\u4ecb\u7ecd\u4e3a\u4e86\u5b9e\u73b0\u6700\u5927\u7684\u5938\u5e73\u53f0\u548c\u9ad8\u6027\u80fd\uff0c\u5f00\u53d1\u8005\u5b9a\u4e49\u63a5\u53e3\u7684\u6700\u4f73\u5b9e\u8df5\u3002\u540c\u65f6\u4ecb\u7ecd\u5728\u4f7f\u7528 <code>REST</code> \u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u4f55 \u66f4\u52a0\u7075\u6d3b\u7684\u652f\u6301\u4e0d\u540c\u7684\u7c7b\u578b\u3002 </p>"},{"location":"build-provider/interface-constraints.html#_2","title":"\u63a5\u53e3\u5b9a\u4e49\u7684\u6700\u4f73\u5b9e\u8df5\u548c\u7c7b\u578b\u7ea6\u675f","text":"<p>java-chassis \u7684\u6240\u6709\u63a5\u53e3\u5b9a\u4e49\uff0c\u90fd\u53ef\u4ee5\u751f\u6210\u7b26\u5408 <code>OpenAPI</code> \u7684 <code>swagger</code> \u63a5\u53e3\u63cf\u8ff0\uff0c\u5f53\u4f7f\u7528 <code>Highway</code> \u534f\u8bae\u65f6\uff0c <code>swagger</code> \u6587\u4ef6\u8fd8\u4f1a\u5728\u5185\u90e8\u88ab\u8f6c\u6362\u4e3a\u7b49\u4ef7\u7684 <code>proto</code> \u6587\u4ef6\u3002 \u63a5\u53e3\u5b9a\u4e49\u7684\u6700\u4f73\u5b9e\u8df5\u9700\u8981\u6ee1\u8db3 <code>OpenAPI</code> \u548c <code>proto</code>\u7684 \u6570\u636e\u7c7b\u578b\u8981\u6c42\u3002 </p> <ul> <li><code>OpenAPI</code> \u5b9a\u4e49\u4e86\u5982\u4e0b\u4e00\u4e9b\u57fa\u672c\u7c7b\u578b\uff1a</li> </ul> <p>\u4e0b\u9762\u5217\u4e3e\u4e00\u4e9b\u5e38\u89c1\u7684\u7c7b\u578b\u8bf4\u660e\uff0c\u8be6\u7ec6\u53c2\u8003 OpenAPI\u6587\u6863\u3002</p> type format java \u8bf4\u660e string - String string date java.util.Date, java.time.LocalDate \u63a8\u8350\u4f7f\u7528 LocalDate string date-time java.util.Date, java.time.LocalDateTime \u63a8\u8350\u4f7f\u7528 LocalDateTime number - double number float float number double double integer - integer integer int32 int integer int64 long boolean - boolean array ArrayList \u5fc5\u987b\u6307\u5b9a\u7c7b\u578b object \u7531\u4e0a\u9762\u7684\u5c5e\u6027\u6784\u6210\u7684\u5bf9\u8c61\u7c7b\u578b\u3002\u5305\u62ec\u5b57\u5178\uff08HashMap\uff09\uff0c\u5b57\u5178\u7684 key \u5fc5\u987b\u4e3a string \u53c2\u6570\u7c7b\u578b \u901a\u4fe1\u534f\u8bae \u7f16\u7801\u65b9\u5f0f \u662f\u5426\u652f\u6301 \u5907\u6ce8 Query HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean, array Path HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean Header HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean Cookie HTTP/HTTP2 TEXT \u662f \u652f\u6301string, number, boolean Body HTTP/HTTP2 application/x-www-form-urlencoded \u662f \u652f\u6301string, number, boolean Body HTTP/HTTP2 multipart/form-data \u662f \u652f\u6301string, number, boolean Body HTTP/HTTP2 application/json \u662f Body HTTP/HTTP2 application/protobuf \u662f Query HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean, array Path HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean Header HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean Cookie HIGHWAY TEXT \u662f \u652f\u6301string, number, boolean Body HIGHWAY application/x-www-form-urlencoded \u5426 Body HIGHWAY multipart/form-data \u5426 Body HIGHWAY application/json \u662f Body HIGHWAY application/protobuf \u662f <ul> <li><code>proto</code> \u5b9a\u4e49\u4e86\u5982\u4e0b\u4e00\u4e9b\u57fa\u672c\u7c7b\u578b\uff1a</li> </ul> <p>\u4e0b\u9762\u5217\u4e3e\u4e00\u4e9b\u5e38\u89c1\u7684\u7c7b\u578b\u8bf4\u660e\uff0c\u8be6\u7ec6\u53c2\u8003 Proto Buffer\u7c7b\u578b\u8bf4\u660e\u3002</p> type java \u8bf4\u660e double double float float int32 int int64 long uint32 int uint64 long sint32 int sint64 long fixed32 int fixed64 long sfixed32 int sfixed64 long bool boolean string String bytes ByteString map \u5b57\u5178\u7c7b\u578b <p><code>OpenAPI</code> \u7684 <code>date</code> format \u5728 <code>proto</code> \u91cc\u9762\u91c7\u7528 <code>long</code> \u8868\u793a\u3002 java-chassis \u7684\u5f00\u53d1\u5b9e\u8df5\u5206\u4e3a <code>code first</code> \u548c <code>contrast first</code> \u4e24\u79cd\u6a21\u5f0f\uff0c \u5982\u679c\u91c7\u7528 <code>contrast first</code> \u6a21\u5f0f\uff0c\u5148\u5199 <code>swagger</code>\uff0c \u7136\u540e\u901a\u8fc7 <code>swagger</code> \u751f\u6210 \u4ee3\u7801\uff0c \u8fd9\u79cd\u65b9\u5f0f\u751f\u6210\u7684\u6570\u636e\u7c7b\u578b\u90fd\u662f\u7b26\u5408\u6700\u4f73\u5b9e\u8df5\u7684\u3002 \u5982\u679c\u91c7\u7528 <code>code first</code>\uff0c \u8981\u8003\u8651\u54ea\u4e9b\u7c7b\u578b\u662f\u6700\u4f73\u5b9e\u8df5\uff0c\u53ef\u4ee5\u4ece\u601d\u8003\u5b9a\u4e49 \u7684 JAVA \u7c7b\u578b\uff0c\u5bf9\u5e94\u7684 <code>swagger</code> \u662f\u4ec0\u4e48\u6837\u5b50\u7684\u3002 \u5f53\u7136\u8fd9\u6837\u601d\u8003\uff0c\u5bf9\u4e8e\u4e0d\u719f\u6089 <code>swagger</code> \u6216\u8005 <code>proto</code> \u7684\u5f00\u53d1\u8005 \u8fd8\u662f\u663e\u5f97\u590d\u6742\u3002 \u4e0b\u9762\u4ece <code>code first</code> \u7684\u89d2\u5ea6\u63cf\u8ff0\u4f7f\u7528\u54ea\u4e9b\u7c7b\u578b\u662f\u6700\u4f73\u5b9e\u8df5\u3002 </p>"},{"location":"build-provider/interface-constraints.html#code-first","title":"\u4ece <code>code first</code> \u89d2\u5ea6\u7406\u89e3\u5938\u5e73\u53f0\u6570\u636e\u7c7b\u578b\u7684\u7ea6\u675f","text":"<p>\u5f00\u53d1\u8005\u4e0d\u80fd\u5728\u63a5\u53e3\u5b9a\u4e49\u7684\u65f6\u5019\u4f7f\u7528\u5982\u4e0b\u7c7b\u578b\uff1a</p> <ul> <li> <p>\u62bd\u8c61\u7684\u6570\u636e\u7ed3\u6784: java.lang.Object, net.sf.json.JsonObject \u7b49\u3002 \u4f7f\u7528\u8fd9\u4e9b\u7c7b\u578b java-chassis \u542f\u52a8   \u4e0d\u4f1a\u62a5\u9519\uff0c\u529f\u80fd\u4e5f\u662f\u6b63\u5e38\u7684\u3002\u4f46\u4e0d\u662f\u6700\u4f73\u5b9e\u8df5\uff0c\u4e5f\u4f1a\u5bf9\u6027\u80fd\u6709\u4e00\u5b9a\u5f71\u54cd\u3002 </p> </li> <li> <p>\u63a5\u53e3\u6216\u8005\u62bd\u8c61\u7c7b</p> <pre><code>```java\npublic interface IPerson {//...}\npublic abstract class AbstractPerson  {//...}\n```\n</code></pre> </li> <li> <p>\u4e0a\u8ff0\u7c7b\u578b\u7684\u96c6\u5408\u7c7b\u578b\u6216\u8005\u6ca1\u6709\u6307\u5b9a\u5177\u4f53\u7c7b\u578b\u7684\u96c6\u5408\uff0c\u6bd4\u5982\uff1a<code>List&lt;IPerson&gt;, Map&lt;String, PersonHolder&lt;?&gt;&gt;, List, Map</code>\u7b49\u3002 <code>List&lt;String&gt;, List&lt;Person&gt;</code> \u8fd9\u4e9b\u5177\u4f53\u7c7b\u578b\u662f\u652f\u6301\u7684\u3002</p> </li> <li> <p>\u5305\u542b\u4e0a\u8ff0\u7c7b\u578b\u4f5c\u4e3a\u5c5e\u6027\u7684\u7c7b\u578b</p> <pre><code>```java\npublic class GroupOfPerson {IPerson master //...}\n```\n</code></pre> </li> </ul> <p>\u4e0d\u7528\u62c5\u5fc3\u8bb0\u4e0d\u4f4f\u8fd9\u4e9b\u7ea6\u675f\uff0c\u7a0b\u5e8f\u4f1a\u5728\u542f\u52a8\u7684\u65f6\u5019\u68c0\u67e5\u4e0d\u652f\u6301\u7684\u7c7b\u578b\uff0c\u5e76\u7ed9\u4e0e\u9519\u8bef\u63d0\u793a\u3002</p> <p>\u603b\u4e4b\uff0c\u6570\u636e\u7ed3\u6784\u9700\u8981\u80fd\u591f\u4f7f\u7528\u7b80\u5355\u7684\u6570\u636e\u7c7b\u578b\u8fdb\u884c\u63cf\u8ff0\uff0c\u4e00\u76ee\u4e86\u7136\u5c31\u662f\u6700\u597d\u7684\u3002\u8fd9\u4e2a\u5728\u4e0d\u540c\u7684\u8bed\u8a00\uff0c\u4e0d\u540c\u7684\u534f\u8bae\u91cc\u9762\u90fd\u652f\u6301\u7684\u5f88 \u597d\uff0c\u957f\u671f\u6765\u770b\uff0c\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u5f00\u53d1\u8005\u8054\u8c03\u6c9f\u901a\u548c\u540e\u671f\u91cd\u6784\u7684\u6210\u672c\u3002</p>"},{"location":"build-provider/interface-constraints.html#_3","title":"\u5173\u4e8e\u6570\u636e\u7ed3\u6784\u548c\u63a5\u53e3\u53d8\u66f4","text":"<p>\u63a5\u53e3\u540d\u79f0\u3001\u53c2\u6570\u7c7b\u578b\u3001\u53c2\u6570\u987a\u5e8f\u3001\u8fd4\u56de\u503c\u7c7b\u578b\u53d8\u66f4\u90fd\u5c5e\u4e8e\u63a5\u53e3\u53d8\u66f4\u3002ServiceComb\u542f\u52a8\u7684\u65f6\u5019\uff0c\u4f1a\u6839\u636e\u7248\u672c\u53f7\u68c0\u6d4b\u63a5\u53e3\u53d8\u5316\uff0c \u63a5\u53e3\u53d8\u5316\u8981\u6c42\u4fee\u6539\u7248\u672c\u53f7\u3002ServiceComb\u8bc6\u522b\u63a5\u53e3\u662f\u5426\u53d8\u5316\u662f\u901a\u8fc7\u4ee3\u7801\u751f\u6210\u7684\u5951\u7ea6\u5185\u5bb9\uff0c\u6709\u4e9b\u4e0d\u89c4\u8303\u7684\u63a5\u53e3\u5b9a\u4e49\u53ef\u80fd\u5bfc\u81f4\u5728 \u4ee3\u7801\u6ca1\u6709\u53d8\u5316\u7684\u60c5\u51b5\u4e0b\uff0c\u751f\u6210\u7684\u5951\u7ea6\u4e0d\u540c\u3002\u6bd4\u5982\uff1a</p> <pre><code>public void get(Person p)\nclass Person {\n  private String value;\n  private boolean isOk;\n  public String getName() {return value}\n  public boolean isOk() {return isOK}\n}\n</code></pre> <p>\u8fd9\u4e2a\u63a5\u53e3\u901a\u8fc7access method\u5b9a\u4e49\u4e86\"name\"\u548c\"ok\"\u4e24\u4e2a\u5c5e\u6027\uff0c\u548c\u5b9e\u9645\u7684\u5b57\u6bb5\"value\"\u548c\"isOk\"\u4e0d\u540c\u3002\u8fd9\u79cd\u60c5\u51b5\u53ef\u80fd\u5bfc \u81f4\u6bcf\u6b21\u542f\u52a8\u751f\u6210\u7684\u5951\u7ea6\u4e0d\u4e00\u6837\u3002\u9700\u8981\u5c06\u4ee3\u7801\u8c03\u6574\u4e3a\u7b26\u5408JAVA Bean\u89c4\u8303\u7684\u5b9a\u4e49\u3002</p> <pre><code>public void get(Person p)\nclass Person {\n  private String name;\n  private boolean ok;\n  public String getName() {return name}\n  public boolean isOk() {return ok}\n}\n</code></pre> <p>\u6216\u8005\u901a\u8fc7JSON\u6807\u6ce8\uff0c\u663e\u793a\u7684\u6307\u660e\u5b57\u6bb5\u987a\u5e8f\u3002\u6bd4\u5982\uff1a</p> <pre><code>public void get(Person p)\n@JsonPropertyOrder({\"name\", \"ok\"})\nclass Person {\n  private String value;\n  private boolean isOk;\n  public String getName() {return value}\n  public boolean isOk() {return isOK}\n}\n</code></pre> <p>\u8003\u8651\u5230\u63a5\u53e3\u53d8\u66f4\u7684\u5f71\u54cd\uff0c\u5efa\u8bae\u5728\u8fdb\u884c\u5bf9\u5916\u63a5\u53e3\u5b9a\u4e49\u7684\u65f6\u5019\uff0c\u5c3d\u53ef\u80fd\u4e0d\u8981\u4f7f\u7528\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u63d0\u4f9b\u7684\u7c7b\u4f5c\u4e3a\u63a5\u53e3\u53c2\u6570\uff0c\u800c\u662f\u4f7f \u7528\u81ea\u5b9a\u4e49\u7684POJO\u7c7b\u3002\u4e00\u65b9\u9762\u5347\u7ea7\u4e09\u65b9\u4ef6\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u611f\u77e5\u4e0d\u5230\u63a5\u53e3\u53d8\u5316\uff1b\u53e6\u5916\u4e00\u65b9\u9762\uff0c\u5982\u679c\u51fa\u73b0\u95ee\u9898\uff0c\u65e0\u6cd5\u901a\u8fc7 \u4fee\u6539\u7b2c\u4e09\u65b9\u4ee3\u7801\u8fdb\u884c\u89c4\u907f\u3002\u6bd4\u5982\uff1ajava.lang.Timestamp, org.joda.time.JodaTime\u7b49\u3002</p>"},{"location":"build-provider/interface-constraints.html#_4","title":"\u534f\u8bae\u4e0a\u7684\u5dee\u5f02","text":"<p>\u5c3d\u7ba1 ServiceComb-Java-Chassis \u5b9e\u73b0\u4e86\u4e0d\u540c\u534f\u8bae\u4e4b\u95f4\u5f00\u53d1\u65b9\u5f0f\u7684\u900f\u660e\uff0c\u53d7\u9650\u4e8e\u5e95\u5c42\u534f\u8bae\u7684\u9650\u5236\uff0c\u4e0d\u540c\u7684\u534f\u8bae\u5b58\u5728\u5c11\u91cf\u5dee\u5f02\u3002</p> <ul> <li> <p>map\uff0ckey\u53ea\u652f\u6301 string</p> </li> <li> <p>highway (protobuf\u9650\u5236)  </p> <ol> <li>\u4e0d\u652f\u6301\u5728\u7f51\u7edc\u4e0a\u4f20\u9012null\uff0c\u5305\u62ecCollection\u3001array\u4e2d\u7684\u5143\u7d20\uff0cmap\u7684value  </li> <li>\u957f\u5ea6\u4e3a0\u7684\u6570\u7ec4\u3001list\uff0c\u4e0d\u4f1a\u5728\u7f51\u7edc\u4e0a\u4f20\u9012\uff0c\u63a5\u6536\u7aef\u89e3\u7801\u51fa\u6765\u5c31\u662f\u9ed8\u8ba4\u503c</li> </ol> </li> <li> <p>springmvc  </p> <ol> <li>\u4e0d\u652f\u6301 Date \u4f5c\u4e3a path\u3001query \u53c2\u6570\u3002 \u56e0\u4e3aspringmvc \u76f4\u63a5\u5c06 Date \u505a toString \u653e\u5728path\u3001query\u4e2d\uff0c\u4e0e    swagger\u7684\u6807\u51c6\u4e0d\u5339\u914d\u3002</li> </ol> </li> </ul>"},{"location":"build-provider/interface-constraints.html#_5","title":"\u6cdb\u578b\u652f\u6301","text":"<p>ServiceComb-Java-Chassis \u652f\u6301REST\u4f20\u8f93\u65b9\u5f0f\u4e0b\u7684\u6cdb\u578b\u8bf7\u6c42\u53c2\u6570\u548c\u8fd4\u56de\u503c\u3002\u4f8b\u5982\u4f7f\u7528\u4e00\u4e2a\u6cdb\u578b\u7684\u6570\u636e\u7c7b\u578b:</p> <pre><code>public class Generic&lt;T&gt;{\n  public T value;\n}\n</code></pre> <p>\u5176\u4e2d\u7684\u6cdb\u578b\u5c5e\u6027T\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b9e\u4f53\u7c7b\u3001java.util.Date\u3001\u679a\u4e3e\uff0c\u4e5f\u53ef\u4ee5\u5d4c\u5957\u6cdb\u578b\u6570\u636e\u7c7b\u578b\u3002</p> <p>\u5f53\u7528\u6237\u4f7f\u7528\u9690\u5f0f\u5951\u7ea6\u529f\u80fd\u81ea\u52a8\u751f\u6210\u5fae\u670d\u52a1\u5951\u7ea6\u65f6\uff0c\u9700\u8981\u5728provider\u63a5\u53e3\u65b9\u6cd5\u7684\u8fd4\u56de\u6d88\u606f\u4e2d\u660e\u786e\u6307\u5b9a\u6cdb\u578b\u7c7b\u578b\uff0c\u4ee5\u4fdd \u8bc1 ServiceComb-Java-Chassis \u751f\u6210\u7684\u5951\u7ea6\u4e2d\u5305\u542b\u8db3\u591f\u7684\u63a5\u53e3\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u5f53provider\u7aef\u63a5\u53e3\u65b9\u6cd5\u4ee3\u7801\u4e3a</p> <pre><code>public Holder&lt;List&lt;Person&gt;&gt; getHolderListArea() {\n  Holder&lt;List&lt;Person&gt;&gt; response = new Holder&lt;&gt;();\n  // ommited\n  return response;\n}\n</code></pre> <p>\u65f6\uff0c ServiceComb-Java-Chassis \u80fd\u591f\u8bc6\u522b\u51fa\u6cdb\u578b\u8fd4\u56de\u5bf9\u8c61\u7684\u786e\u5207\u4fe1\u606f\uff0c\u4ee5\u4fdd\u8bc1consumer\u7aef\u63a5\u6536\u5230\u7684\u5e94\u7b54\u6d88\u606f\u80fd\u591f\u88ab \u6b63\u786e\u5730\u53cd\u5e8f\u5217\u5316\u3002\u800c\u5982\u679cprovider\u7aef\u63a5\u53e3\u65b9\u6cd5\u7684\u4ee3\u7801\u4e3a</p> <pre><code>public Holder getHolderListArea() {\n  Holder&lt;List&lt;Person&gt;&gt; response = new Holder&lt;&gt;();\n  // ommited\n  return response;\n}\n</code></pre> <p>\u65f6\uff0c\u7531\u4e8e\u5951\u7ea6\u4e2d\u7f3a\u5c11List\u5143\u7d20\u7684\u7c7b\u578b\u4fe1\u606f\uff0c\u5c31\u4f1a\u51fa\u73b0consumer\u7aef\u65e0\u6cd5\u6b63\u786e\u53cd\u5e8f\u5217\u5316\u5e94\u7b54\u7684\u60c5\u51b5\uff0c\u6bd4\u5982consumer\u63a5\u6536 \u5230\u7684\u53c2\u6570\u7c7b\u578b\u53ef\u80fd\u4f1a\u53d8\u4e3a<code>Holder&lt;List&lt;Map&lt;String,String&gt;&gt;&gt;</code>\uff0c<code>Person</code>\u5bf9\u8c61\u9000\u5316\u4e3aMap\u7c7b\u578b\u3002</p> <p>\u8bf4\u660e:  \u867d\u7136 ServiceComb-Java-Chassis \u652f\u6301REST\u6cdb\u578b\u53c2\u6570\uff0c\u4f46\u662f\u6211\u4eec\u66f4\u52a0\u63a8\u8350\u7528\u6237\u4f7f\u7528\u5b9e\u4f53\u7c7b\u4f5c\u4e3a\u53c2\u6570\uff0c\u4ee5\u83b7\u5f97 \u66f4\u52a0\u660e\u786e\u7684\u63a5\u53e3\u8bed\u4e49\u3002</p>"},{"location":"build-provider/interface-constraints.html#_6","title":"\u5176\u4ed6\u5e38\u89c1\u95ee\u9898","text":"<ul> <li>\u4f7f\u7528 RestTemplate \u4f20\u9012 raw json</li> </ul> <p>\u5047\u8bbe\u670d\u52a1\u7aef\u5b9a\u4e49\u4e86\u63a5\u53e3</p> <pre><code>Person test(Person input)\n</code></pre> <p>\u7528\u6237\u671f\u671b\u4f7f\u7528RestTemplate\u81ea\u884c\u62fc\u63a5json\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u8fdb\u884c\u4f20\u9012:</p> <pre><code>      String personStr = JsonUtils.writeValueAsString(input);\n      result = template.postForObject(cseUrlPrefix + \"sayhello\", personStr, Person.class);\n</code></pre> <p>ServiceComb\u4e0d\u63a8\u8350\u5f00\u53d1\u8005\u8fd9\u6837\u4f7f\u7528\uff0c\u91cc\u9762\u7684\u5904\u7406\u903b\u8f91\u5b58\u5728\u5927\u91cf\u6b67\u4e49\u3002\u5982\u679c\u5fc5\u987b\u4f7f\u7528\uff0c\u9700\u8981\u6ee1\u8db3\u51e0\u4e2a\u7ea6\u675f\uff1aPerson \u5fc5\u987b\u5305\u542b\u5e26String\u7c7b\u578b\u7684\u6784\u9020\u51fd\u6570\uff1bprovider/consumer\u90fd\u5fc5\u987b\u5b58\u5728\u8fd9\u4e2aPerson\u7c7b\u578b\u3002</p>"},{"location":"build-provider/interface-constraints.html#rest","title":"<code>REST</code> \u901a\u4fe1\u7c7b\u578b\u6269\u5c55","text":"<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c \u5982\u679c\u5728\u63a5\u53e3\u4e2d\u4f7f\u7528 <code>interface</code> \u6216\u8005 <code>abstract class</code> \u4f5c\u4e3a\u53c2\u6570\u6216\u8005\u8fd4\u56de\u503c\uff0c java-chassis \u542f\u52a8\u4f1a\u62a5\u544a\u9519\u8bef\u3002 java-chassis \u63d0\u4f9b\u4e86\u7c7b\u578b\u6269\u5c55\u673a\u5236\uff0c \u4f7f\u5f97\u7a0b\u5e8f\u4e2d\u53ef\u4ee5\u652f\u6301\u5404\u79cd\u7c7b\u578b\u3002 </p> <p>***\u6ce8\u610f: *** \u4f7f\u7528\u6269\u5c55\u673a\u5236\u7684\u63a5\u53e3\uff0c\u53ea\u80fd\u591f\u5728 <code>REST</code> \u901a\u4fe1\u6a21\u5f0f\u4e0b\u4f7f\u7528\u3002</p> <p>\u4ee5\u652f\u6301 <code>spring-data</code> \u7684 <code>Page</code> \u63a5\u53e3\u4f5c\u4e3a\u8fd4\u56de\u503c\u4e3a\u4f8b\uff0c \u9996\u5148\u9700\u8981\u901a\u8fc7 <code>SPI</code> \u7684\u673a\u5236\u5b9e\u73b0 <code>jackson</code> \u7684\u7c7b\u578b\u6269\u5c55\uff1a</p> <pre><code>public class SpringDataModule extends SimpleModule implements SPIOrder {\n  private static final long serialVersionUID = 1L;\n\n  @JsonDeserialize(as = PageImpl.class)\n  @JsonPropertyOrder(alphabetic = true)\n  public static class PageMixin&lt;T&gt; {\n    @JsonCreator\n    public PageMixin(@JsonProperty(value = \"content\") List&lt;T&gt; content,\n        @JsonProperty(\"pageable\") Pageable pageable,\n        @JsonProperty(\"total\") long total) {\n    }\n  }\n\n  @JsonDeserialize(as = PageRequest.class)\n  @JsonPropertyOrder(alphabetic = true)\n  public static class PageableMixin {\n    @JsonCreator\n    public PageableMixin(@JsonProperty(value = \"pageNumber\") int page,\n        @JsonProperty(\"pageSize\") int size, @JsonProperty(value = \"sort\") Sort sort) {\n    }\n  }\n\n  @JsonPropertyOrder(alphabetic = true)\n  @JsonDeserialize(as = Sort.class)\n  public static class SortMixin {\n    // Notice:\n    // spring data model changed from version to version\n    // for the tested version, sort is not consistency in serialization and deserialization\n    @JsonCreator\n    public SortMixin(String... properties) {\n    }\n  }\n\n  public SpringDataModule() {\n    super(\"springData\");\n\n    setMixInAnnotation(Page.class, PageMixin.class);\n    setMixInAnnotation(Pageable.class, PageableMixin.class);\n    setMixInAnnotation(Sort.class, SortMixin.class);\n\n    setMixInAnnotation(PageImpl.class, PageMixin.class);\n    setMixInAnnotation(PageRequest.class, PageableMixin.class);\n  }\n\n  @Override\n  public Object getTypeId() {\n    return getModuleName();\n  }\n\n  @Override\n  public int getOrder() {\n    return Short.MAX_VALUE;\n  }\n}\n</code></pre> <p>\u518d\u5b9e\u73b0 <code>SPI</code> \u544a\u8bc9 java-chassis \u8df3\u8fc7\u7c7b\u578b\u68c0\u67e5\uff1a</p> <pre><code>public class SpringDataConcreteTypeRegister implements ConcreteTypeRegister {\n  @Override\n  public void register(Set&lt;Type&gt; types) {\n    types.add(Page.class);\n    types.add(Pageable.class);\n  }\n}\n</code></pre> <p>\u7ecf\u8fc7\u8fd9\u4e24\u4e2a\u6b65\u9aa4\uff08\u6b65\u9aa4\u4e2d\u6ca1\u63cf\u8ff0\u5f00\u53d1SPI \u9700\u8981\u589e\u52a0 services \u6587\u4ef6\u7684\u5185\u5bb9\uff09\uff0c \u5c31\u80fd\u591f\u5b9e\u73b0\u4efb\u610f\u7c7b\u578b\u7684\u652f\u6301\u3002 \u9700\u8981\u6ce8\u610f\uff0c\u8fd9\u4e9b\u6269\u5c55\uff0c\u5fc5\u987b \u540c\u65f6\u5305\u542b\u5728 <code>Consumer</code>, <code>Provider</code>, <code>edge service</code> \u4e2d\uff0c\u56e0\u4e3a\u8fd9\u79cd\u5904\u7406\u65b9\u5f0f\u662f\u4f9d\u8d56\u4e8e\u5e73\u53f0\u7c7b\u578b\u7684\u975e\u5938\u5e73\u53f0\u7279\u6027\u3002 </p> <p>\u4e0a\u8ff0\u4f8b\u5b50\u7684\u8be6\u7ec6\u4ee3\u7801\u53ef\u4ee5\u53c2\u8003 java-chassis \u7684\u6e90\u4ee3\u7801\uff0c generator-spring-data \u6a21\u5757\u3002 </p>"},{"location":"build-provider/ipv6-configuration.html","title":"IPV6\u914d\u7f6e\u548c\u4f7f\u7528","text":""},{"location":"build-provider/ipv6-configuration.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u968f\u7740IPV6\u7684\u666e\u53ca\uff0c\u5f88\u591a\u573a\u666f\u4e0b\u5fae\u670d\u52a1\u90fd\u9700\u8981\u652f\u6301IPV6\u5730\u5740\uff0c\u7279\u522b\u662f\u7269\u8054\u7f51\u573a\u666f\u4e0b\uff0c\u9700\u8981\u66f4\u591a\u7684\u5730\u5740\u3002ServiceComb\u652f\u6301Ipv6\u5730\u5740\u76d1\u542c\u3001\u6ce8\u518c\u548c\u8c03\u7528\uff0c\u4f7f\u7528\u8d77\u6765\u548c\u9ed8\u8ba4\u7684Ipv4\u51e0\u4e4e\u6ca1\u6709\u5dee\u522b\uff0c\u53ea\u662f\u914d\u7f6e\u7565\u4e0d\u540c\u3002</p>"},{"location":"build-provider/ipv6-configuration.html#_2","title":"\u914d\u7f6e","text":"<ol> <li>\u628a\u76d1\u542c\u5730\u5740\u6539\u6210ipv6    </li> </ol> <pre><code>servicecomb:\n  rest:\n    address: '[::]:13092'\n</code></pre> <p>\u5982\u679c\u5168\u7f51\u76d1\u542c\uff0cServiceComb JavaChassis 1.2.1\u4ee5\u53ca\u4e4b\u524d\u7684\u7248\u672c\u90fd\u9700\u8981\u518d\u914d\u7f6eservicecomb.service.publishAddress\uff0c\u5426\u5219\u6ce8\u518c\u7684\u8fd8\u662fipv4\u5730\u5740\u3002</p> <p>2\u3001\u4f18\u79c0\u5b9e\u8df5\uff0c\u56e0\u4e3a\u5168\u7f51\u76d1\u542c\u4e0d\u592a\u5b89\u5168\uff0c\u4e00\u822c\u5efa\u8bae\u76d1\u542c\u5230\u5177\u4f53\u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u7684\u65b9\u5f0f\u83b7\u53d6IPV6\u5730\u5740\uff0c\u7136\u540e\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7684\u65b9\u5f0f\u914d\u7f6e\u5730\u5740\uff0c\u6bd4\u5982\u5728\u542f\u52a8\u811a\u672c\u4e2d\u4f7f\u7528\u5982\u4e0b\u811a\u672c\u7684\u65b9\u5f0f\u83b7\u53d6\u7f51\u5361ipv6\u5730\u5740\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u914d\u7f6eservicecomb.service.publishAddress\uff0c\u4e5f\u4e0d\u4f1a\u6709\u5168\u7f51\u76d1\u542c\u7684\u95ee\u9898\u3002</p> <pre><code>servicecomb:\n  rest:\n    address: '[${REST_ADDRESS}]:8080'\n</code></pre> <pre><code>#/bin/bash\n\nethname=eth0  #\u9700\u8981\u76d1\u542c\u7684\u7f51\u5361\u540d\uff0c\u4e00\u822c\u90fd\u662feth0\uff0c\u5982\u679c\u662f\u591a\u7f51\u5361\u573a\u666f\u9700\u8981\u4fee\u6539\nexport REST_ADDRESS=`ifconfig $ethname | awk '/inet6 /{print $2}'`\nnohup java -jar yourapp.jar &gt; console.log 2&gt;&amp;1 &amp;\n</code></pre> <p>\u6700\u540e\u53ef\u4ee5\u4f7f\u7528netstat -nltp|grep 8080\u67e5\u770b\u76d1\u542c\u5730\u5740\u662f\u5426\u6b63\u786e\uff0c\u5e76\u4e14\u5230\u670d\u52a1\u4e2d\u5fc3\u68c0\u67e5\u6ce8\u518c\u7684endpoint\u5730\u5740\u662f\u5426\u6b63\u786e\u3002    </p> <p>3\u3001IPV6\u6d4b\u8bd5\uff0c\u786e\u4fddcurl\u652f\u6301ipv6\uff0c\u53ef\u4ee5\u4f7f\u7528curl --help\uff0c\u68c0\u67e5\u662f\u5426\u6709-6\u9009\u9879   curl -v -6 -g --interface eth0 http://[\u5b9e\u9645ipv6\u5730\u5740]:8080/</p>"},{"location":"build-provider/jaxrs.html","title":"\u7528 JAX-RS \u5f00\u53d1\u5fae\u670d\u52a1","text":""},{"location":"build-provider/jaxrs.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>ServiceComb\u652f\u6301\u5f00\u53d1\u8005\u4f7f\u7528JAX-RS\u6ce8\u89e3\uff0c\u4f7f\u7528 JAX-RS \u6a21\u5f0f\u5f00\u53d1\u670d\u52a1\u3002</p>"},{"location":"build-provider/jaxrs.html#_2","title":"\u5f00\u53d1\u793a\u4f8b","text":""},{"location":"build-provider/jaxrs.html#1","title":"\u6b65\u9aa4 1\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u3002","text":"<p>\u6839\u636e\u5f00\u53d1\u4e4b\u524d\u5b9a\u4e49\u597d\u7684\u5951\u7ea6\uff0c\u7f16\u5199Java\u4e1a\u52a1\u63a5\u53e3\uff0c\u4ee3\u7801\u5982\u4e0b\u3002\u5b9a\u4e49\u63a5\u53e3\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u4f46\u662f \u4e00\u4e2a\u597d\u4e60\u60ef\uff0c\u53ef\u4ee5\u7b80\u5316\u5ba2\u6237\u7aef\u4f7f\u7528RPC\u65b9\u5f0f\u7f16\u5199\u4ee3\u7801\u3002</p> <pre><code>public interface Hello {\n    String sayHi(String name);\n    String sayHello(Person person);\n}\n</code></pre>"},{"location":"build-provider/jaxrs.html#2","title":"\u6b65\u9aa4 2\u5b9e\u73b0\u670d\u52a1\u3002","text":"<p>\u4f7f\u7528JAX-RS\u6ce8\u89e3\u5f00\u53d1\u4e1a\u52a1\u4ee3\u7801\uff0cHello\u7684\u670d\u52a1\u5b9e\u73b0\u5982\u4e0b\uff1a</p> <pre><code>@RestSchema(schemaId = \"jaxrsHello\")\n@Path(\"/jaxrshello\")\n@Produces(MediaType.APPLICATION_JSON)\npublic class JaxrsHelloImpl implements Hello {\n    @Path(\"/sayhi\")\n    @POST\n    @Override\n    public String sayHi(String name) {\n        return \"Hello \" + name;\n    }\n\n    @Path(\"/sayhello\")\n    @POST\n    @Override\n    public String sayHello(Person person) {\n        return \"Hello person \" + person.getName();\n    }\n    /**\n    * \u8fd9\u4e2a\u65b9\u6cd5\u662f\u5b9e\u73b0\u7c7b\u7279\u6709\u7684,\u56e0\u6b64\u5bf9\u5b83\u7684\u8fdc\u7a0b\u8c03\u7528\u4f1a\u6709\u6240\u4e0d\u540c.\n    * \u5177\u4f53\u53ef\u4ee5\u53c2\u8003 jaxrs-consumer\n    */\n    @Path(\"/saybye\")\n    @GET\n    public String sayBye() {\n       return \"Bye !\";\n    }\n}\n</code></pre>"},{"location":"build-provider/jaxrs.html#3","title":"\u6b65\u9aa4 3\u53d1\u5e03\u670d\u52a1\u3002","text":"<p>\u5728resources/META-INF/spring\u76ee\u5f55\u4e0b\u521b\u5efajaxrsHello.bean.xml\u6587\u4ef6\uff0c\u914d\u7f6espring\u8fdb\u884c\u670d\u52a1\u626b\u63cf\u7684base-package\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\u3002\uff08\u6ce8\u610f\u4fee\u6539package\u540d\u79f0\u4e3a\u6b63\u786e\u540d\u79f0\uff09</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;beans xmlns=\" http://www.springframework.org/schema/beans \" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance \"\n       xmlns:p=\" http://www.springframework.org/schema/p \" xmlns:util=\" http://www.springframework.org/schema/util \"\n       xmlns:cse=\" http://www.huawei.com/schema/paas/cse/rpc \"\n       xmlns:context=\" http://www.springframework.org/schema/context \"\n       xsi:schemaLocation=\" http://www.springframework.org/schema/beans classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.huawei.com/schema/paas/cse/rpc classpath:META-INF/spring/spring-paas-cse-rpc.xsd\"&gt;\n\n    &lt;context:component-scan base-package=\"org.apache.servicecomb.samples.jaxrs.provider\"/&gt;\n&lt;/beans&gt;\n</code></pre>"},{"location":"build-provider/jaxrs.html#4","title":"\u6b65\u9aa4 4\u542f\u52a8\u670d\u52a1\u3002","text":"<pre><code>public class JaxrsProviderMain{\n\n  public static void main(String[] args) throws Exception {\n    Log4jUtils.init();\n    BeanUtils.init();\n  }\n}\n</code></pre>"},{"location":"build-provider/jaxrs.html#api","title":"\u6d89\u53caAPI","text":"<p>JAX-RS\u5f00\u53d1\u6a21\u5f0f\u5f53\u524d\u652f\u6301\u5982\u4e0b\u6ce8\u89e3\uff0c\u6240\u6709\u6ce8\u89e3\u7684\u4f7f\u7528\u65b9\u6cd5\u53c2\u8003 JAX-RS\u5b98\u65b9\u6587\u6863\u3002</p>"},{"location":"build-provider/jaxrs.html#1-1jax-rs","title":"\u88681-1JAX-RS\u6ce8\u89e3\u652f\u6301\u6c47\u603b","text":"\u6ce8\u89e3 \u4f4d\u7f6e \u63cf\u8ff0 javax.ws.rs.Path schema/operation URL\u8def\u5f84 javax.ws.rs.Produces schema/operation \u65b9\u6cd5\u652f\u6301\u7684\u7f16\u89e3\u7801\u80fd\u529b javax.ws.rs.DELETE operation http method javax.ws.rs.GET operation http method javax.ws.rs.POST operation http method javax.ws.rs.PUT operation http method javax.ws.rs.QueryParam parameter \u4ecequery string\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.PathParam parameter \u4ecepath\u4e2d\u83b7\u53d6\u53c2\u6570\uff0c\u5fc5\u987b\u5728path\u4e2d\u5b9a\u4e49\u8be5\u53c2\u6570 javax.ws.rs.HeaderParam parameter \u4eceheader\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.CookieParam parameter \u4ececookie\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.FormParam parameter \u4eceform\u4e2d\u83b7\u53d6\u53c2\u6570 javax.ws.rs.BeanParam parameter \u7528\u4e8e\u53c2\u6570\u805a\u5408\uff0c\u5141\u8bb8\u5728\u4e00\u4e2aJavaBean\u7684\u5c5e\u6027\u4e0a\u6253\u4e0a\u53c2\u6570\u6807\u8bb0\u4ee5\u5c06\u591a\u4e2a\u53c2\u6570\u805a\u5408\u4e3a\u4e00\u4e2aJavaBean <p>\u8bf4\u660e:</p> <ul> <li>\u5f53\u65b9\u6cd5\u53c2\u6570\u6ca1\u6709\u6ce8\u89e3\uff0c\u4e14\u4e0d\u4e3a<code>HttpServletRequest</code>\u3001<code>InvocationContext</code>\u7c7b\u578b\u53c2\u6570\u65f6\uff0c\u9ed8\u8ba4\u4e3abody\u7c7b\u578b\u53c2\u6570\uff0c\u4e00\u4e2a\u65b9\u6cd5\u6700\u591a\u53ea\u652f\u6301\u4e00\u4e2abody\u7c7b\u578b\u53c2\u6570\u3002</li> </ul>"},{"location":"build-provider/jaxrs.html#beanparam","title":"\u4f7f\u7528@BeanParam\u805a\u5408\u53c2\u6570","text":""},{"location":"build-provider/jaxrs.html#_3","title":"\u4f7f\u7528\u8bf4\u660e","text":"<p>\u7528\u6237\u53ef\u4ee5\u4f7f\u7528@BeanParam\u6ce8\u89e3\u5c06\u591a\u4e2a\u53c2\u6570\u805a\u5408\u5230\u4e00\u4e2aJavaBean\u4e2d\uff0c\u901a\u8fc7\u5c06@QueryParam\u7b49\u53c2\u6570\u6ce8\u89e3\u6253\u5728\u6b64JavaBean\u7684\u5c5e\u6027\u6216setter\u65b9\u6cd5\u4e0a\u6765\u58f0\u660e\u53c2\u6570\uff0c\u4ece\u800c\u7b80\u5316\u4e1a\u52a1\u63a5\u53e3\u7684\u53c2\u6570\u8868\u3002\u53ef\u4ee5\u53c2\u8003JAX-RS\u7684\u5b98\u65b9\u8bf4\u660e\uff1ahttps://docs.oracle.com/javaee/7/api/javax/ws/rs/BeanParam.html</p> <p>ServiceComb\u73b0\u5728\u4e5f\u652f\u6301\u7c7b\u4f3c\u7684\u7528\u6cd5\uff0c\u8be5\u7528\u6cd5\u7684\u8981\u6c42\u5982\u4e0b\uff1a 1. \u805a\u5408\u53c2\u6570\u6240\u7528\u7684\u7c7b\u578b\u5fc5\u987b\u662f\u6807\u51c6\u7684JavaBean\uff0c\u5373\u7c7b\u578b\u7684\u5c5e\u6027\u4e0egetter\u3001setter\u65b9\u6cd5\u540d\u79f0\u5339\u914d\uff0csetter\u65b9\u6cd5\u7684\u8fd4\u56de\u7c7b\u578b\u4e3a<code>void</code> 2. \u53c2\u6570\u6ce8\u89e3\u53ef\u4ee5\u6253\u5728JavaBean\u7684\u5c5e\u6027\u6216setter\u65b9\u6cd5\u4e0a 3. \u5141\u8bb8\u901a\u8fc7@FormParam\u5c06\u591a\u4e2a\u4e0a\u4f20\u6587\u4ef6\u53c2\u6570\u805a\u5408\u5230JavaBean\u4e2d 4. \u4f5c\u4e3aBeanParam\u7684JavaBean\u5185\u90e8\u5982\u679c\u6709\u591a\u4f59\u7684\u5c5e\u6027\uff0c\u9700\u8981\u6253\u4e0a<code>@JsonIgnore</code>\u5ffd\u7565\u6389 5. body\u53c2\u6570\u65e0\u6cd5\u805a\u5408\u8fdbBeanParam 6. Consumer\u7aef\u4e0d\u652f\u6301\u5c06\u53c2\u6570\u805a\u5408\u4e3aJavaBean\u53d1\u9001\uff0c\u5373\u4ecd\u7136\u9700\u8981\u6309\u7167\u63a5\u53e3\u5951\u7ea6\u5355\u72ec\u586b\u5199\u5404\u4e2a\u53c2\u6570</p>"},{"location":"build-provider/jaxrs.html#_4","title":"\u4ee3\u7801\u793a\u4f8b","text":""},{"location":"build-provider/jaxrs.html#provider","title":"Provider\u7aef\u5f00\u53d1\u670d\u52a1","text":"<ul> <li>Provider\u7aef\u4e1a\u52a1\u63a5\u53e3\u4ee3\u7801\uff1a</li> </ul> <pre><code>  @RestSchema(schemaId = \"helloService\")\n  @Path(\"/hello\")\n  public class HelloService {\n    @Path(\"/sayHello/{name}\")\n    @GET\n    public String sayHello(@BeanParam Person person) {\n      System.out.println(\"sayHello is called, person = [\" + person + \"]\");\n      return \"Hello, your name is \" + person.getName() + \", and age is \" + person.getAge();\n    }\n  }\n</code></pre> <ul> <li>BeanParam\u53c2\u6570\u5b9a\u4e49\uff1a</li> </ul> <pre><code>  public class Person {\n    private String name;\n    @QueryParam(\"age\")\n    private int age;\n    @PathParam(\"name\")\n    public void setName(String name) {\n      this.name = name;\n    }\n    @JsonIgnore // \u5ffd\u7565\u590d\u6742\u5c5e\u6027\n    private List&lt;Person&gt; children;\n\n    // \u5176\u4ed6\u65b9\u6cd5\u5ffd\u7565\n  }\n</code></pre> <ul> <li>\u63a5\u53e3\u5951\u7ea6\uff1a</li> </ul> <pre><code># \u5ffd\u7565\u5951\u7ea6\u7684\u5176\u4ed6\u90e8\u5206\nbasePath: \"/hello\"\npaths:\n  /sayHello/{name}:\n    get:\n      operationId: \"sayHello\"\n      parameters:\n      - name: \"name\"\n        in: \"path\"\n        required: true\n        type: \"string\"\n      - name: \"age\"\n        in: \"query\"\n        required: false\n        type: \"integer\"\n        format: \"int32\"\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            type: \"string\"\n</code></pre>"},{"location":"build-provider/jaxrs.html#consumer","title":"Consumer\u7aef\u8c03\u7528\u670d\u52a1","text":"<p>consumer\u7aefRPC\u5f00\u53d1\u6a21\u5f0f\uff1a</p> <ul> <li>Provider\u63a5\u53e3\u5b9a\u4e49</li> </ul> <pre><code>public interface HelloServiceIntf {\n  String sayHello(String name, int age);\n}\n</code></pre> <ul> <li>\u8c03\u7528\u4ee3\u7801</li> </ul> <pre><code>String result = helloService.sayHello(\"Bob\", 22); // result\u7684\u503c\u4e3a\"Hello, your name is Bob, and age is 22\"\n</code></pre> <ul> <li>consumer\u7aefRestTemplate\u5f00\u53d1\u6a21\u5f0f\uff1a</li> </ul> <pre><code>String result = restTemplate.getForObject(\n  \"cse://provider-service/hello/sayHello/Bob?age=22\",\n  String.class); // \u8c03\u7528\u6548\u679c\u4e0eRPC\u65b9\u5f0f\u76f8\u540c\n</code></pre>"},{"location":"build-provider/listen-address-and-publish-address.html","title":"\u670d\u52a1\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740","text":""},{"location":"build-provider/listen-address-and-publish-address.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5728JavaChassis\u4e2d\uff0c\u670d\u52a1\u7684\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740\u662f\u4e24\u4e2a\u72ec\u7acb\u7684\u6982\u5ff5\uff0c\u53ef\u4ee5\u72ec\u7acb\u914d\u7f6e\uff1a</p> <ul> <li>\u76d1\u542c\u5730\u5740\uff1a\u6307\u5fae\u670d\u52a1\u5b9e\u4f8b\u542f\u52a8\u65f6\u76d1\u542c\u7684\u5730\u5740\u3002\u8be5\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u53ef\u4ee5\u901a\u8fc7\u54ea\u4e9bIP\u8bbf\u95ee\u6b64\u670d\u52a1\u3002</li> <li>\u53d1\u5e03\u5730\u5740\uff1a\u6307\u5fae\u670d\u52a1\u5b9e\u4f8b\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4ed6\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u4f1a\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u6b64\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u6839\u636e\u53d1\u5e03\u5730\u5740\u8bbf\u95ee\u6b64\u670d\u52a1\u5b9e\u4f8b\uff0c\u6240\u4ee5\u8be5\u914d\u7f6e\u9879\u51b3\u5b9a\u4e86\u5176\u4ed6\u670d\u52a1\u5b9e\u9645\u4e0a\u4f1a\u4f7f\u7528\u54ea\u4e2aIP\u8bbf\u95ee\u6b64\u670d\u52a1\u3002</li> </ul>"},{"location":"build-provider/listen-address-and-publish-address.html#_3","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u901a\u8fc7\u914d\u7f6e\u670d\u52a1\u7684\u76d1\u542c\u5730\u5740\u548c\u53d1\u5e03\u5730\u5740\u6765\u786e\u5b9a\u670d\u52a1\u5b9e\u4f8b\u76d1\u542c\u7684IP\u548c\u5176\u4ed6\u670d\u52a1\u5b9e\u4f8b\u8bbf\u95ee\u672c\u5b9e\u4f8b\u65f6\u8bf7\u6c42\u7684IP\u3002</p>"},{"location":"build-provider/listen-address-and-publish-address.html#_4","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u670d\u52a1\u76d1\u542c\u5730\u5740\u7684\u914d\u7f6e\u9879\u662f<code>servicecomb.rest.address</code>\u548c<code>servicecomb.highway.address</code>\uff0c\u5206\u522b\u5bf9\u5e94rest\u4f20\u8f93\u65b9\u5f0f\u548chighway\u4f20\u8f93\u65b9\u5f0f\u7684\u76d1\u542c\u5730\u5740\u3002\u4e24\u8005\u7684\u914d\u7f6e\u89c4\u5219\u76f8\u540c\uff0c\u4ee5\u4e0b\u4ec5\u4ee5<code>servicecomb.rest.address</code>\u4f5c\u4e3a\u8bf4\u660e\u3002 \u670d\u52a1\u53d1\u5e03\u5730\u5740\u7684\u914d\u7f6e\u9879\u662f<code>servicecomb.service.publishAddress</code>\uff0c\u8be5\u5730\u5740\u53ef\u4ee5\u4e0d\u914d\u7f6e\u3002\u4e0d\u914d\u7f6e\u6b64\u9879\u65f6JavaChassis\u4f1a\u6839\u636e\u7279\u5b9a\u7684\u89c4\u5219\u9009\u53d6\u53d1\u5e03\u5730\u5740\u3002</p> <p>\u88681 \u670d\u52a1\u53d1\u5e03\u5730\u5740\u751f\u6548\u89c4\u5219</p> \u89c4\u5219\u7f16\u53f7 \u76d1\u542c\u5730\u5740\u914d\u7f6e \u53d1\u5e03\u5730\u5740\u914d\u7f6e \u5b9e\u9645\u751f\u6548\u7684\u53d1\u5e03\u5730\u5740 1 127.0.0.1 - 127.0.0.1 2 0.0.0.0 - \u9009\u53d6\u4e00\u5f20\u7f51\u5361\u7684IP\u5730\u5740\u4f5c\u4e3a\u53d1\u5e03\u5730\u5740\u3002\u8981\u6c42\u8be5\u5730\u5740\u4e0d\u80fd\u662f\u901a\u914d\u7b26\u5730\u5740\u3001\u56de\u73af\u5730\u5740\u6216\u5e7f\u64ad\u5730\u5740 3 \u5177\u4f53IP - \u4e0e\u76d1\u542c\u5730\u5740\u4e00\u81f4 4 * \u5177\u4f53IP \u4e0e\u53d1\u5e03\u5730\u5740\u914d\u7f6e\u9879\u4e00\u81f4 5 * \"{\u7f51\u5361\u540d}\" \u6307\u5b9a\u7f51\u5361\u540d\u7684IP\uff0c\u6ce8\u610f\u9700\u8981\u52a0\u4e0a\u5f15\u53f7\u548c\u62ec\u53f7 <p>\u8bf4\u660e\uff1a - \u670d\u52a1\u5b9e\u4f8b\u5b9e\u9645\u76d1\u542c\u7684\u5730\u5740\u59cb\u7ec8\u4e0e\u76d1\u542c\u5730\u5740\u914d\u7f6e\u9879\u4fdd\u6301\u4e00\u81f4\u3002 - \u4f7f\u7528\u7f51\u5361\u540d\u914d\u7f6e\u53d1\u5e03\u5730\u5740\u65f6\uff0c\u8981\u6c42\u4f7f\u7528\u53cc\u5f15\u53f7\u5305\u88f9\u4f4f\u7f51\u5361\u540d\u5360\u4f4d\u7b26\uff0c\u5426\u5219\u4f1a\u9020\u6210\u89e3\u6790\u914d\u7f6e\u62a5\u9519\u3002 - \u7f51\u5361\u540d\u5fc5\u987b\u662f\u4e3b\u673a\u5b58\u5728\u7684\u7f51\u5361\u3002</p>"},{"location":"build-provider/listen-address-and-publish-address.html#_5","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>microservice.yaml\u6587\u4ef6\u7684\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  service:\n    publishAddress: \"{eth0}\" # \u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u53d1\u5e03\u5730\u5740\u4f1a\u662feth0\u7f51\u5361\u7684IP\n  rest:\n    publishPort: 8888 # \u53d1\u5e03\u5730\u5740\u7aef\u53e3\uff0c\u4e0d\u914d\u7f6e\u9ed8\u8ba4\u4e0e\u76d1\u542c\u5730\u5740\u7aef\u53e3\u4e00\u81f4\n    address: 0.0.0.0:8080 # \u76d1\u542c\u4e3b\u673a\u7684\u5168\u90e8\u7f51\u5361IP\n  highway:\n    publishPort: 8888 # \u53d1\u5e03\u5730\u5740\u7aef\u53e3\uff0c\u4e0d\u914d\u7f6e\u9ed8\u8ba4\u4e0e\u76d1\u542c\u5730\u5740\u7aef\u53e3\u4e00\u81f4\n    address: 0.0.0.0:7070 # \u76d1\u542c\u4e3b\u673a\u7684\u5168\u90e8\u7f51\u5361IP\n</code></pre>"},{"location":"build-provider/multi-code.html","title":"\u591a\u4e2a\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801","text":"<p>\u4f7f\u7528\u900f\u660eRPC\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\uff0c\u5f00\u53d1\u8005\u5f88\u5bb9\u6613\u7406\u89e3\u4e00\u4e2a\u63a5\u53e3\u53ea\u6709\u4e00\u4e2a\u8fd4\u56de\u503c\u7c7b\u578b\u3002\u4f7f\u7528REST\u98ce\u683c\uff08Spring MVC \u6216\u8005 JAXRS\uff09\uff0c\u5f88\u591a\u573a\u666f\u4f1a\u78b0\u5230 \u591a\u4e2a\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801\u7684\u60c5\u51b5\u3002\u548c\u5f88\u591a\u5176\u4ed6\u5f00\u53d1\u6846\u67b6\uff08\u6bd4\u5982Servlet\u3001Spring MVC\u7b49\uff09\u4e0d\u4e00\u6837\uff0cJava Chassis\u8981\u6c42\u63a5\u53e3\u5b9a\u4e49\u7684\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801\u90fd \u5fc5\u987b\u663e\u793a\u7684\u58f0\u660e\uff0c\u5373\u901a\u8fc7\u4ee3\u7801\u751f\u6210\u7684swagger\uff0c\u5fc5\u987b\u5305\u542b\u6240\u6709\u7684\u9519\u8bef\u7801\u63cf\u8ff0\u548c\u8fd4\u56de\u503c\u7c7b\u578b\u63cf\u8ff0\u3002 \u5728Java Chassis\uff0c\u65e0\u6cd5\u4f7f\u7528\u9690\u85cf\u53c2\u6570\u3001\u672a\u58f0\u660e \u7684\u9519\u8bef\u7801\u3002\u8fd9\u6837\u8bbe\u8ba1\u7684\u76f4\u63a5\u597d\u5904\u662f\u63a5\u53e3\u5b9a\u4e49\u66f4\u52a0\u660e\u786e\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u6587\u6863\u5e2e\u52a9\u4f7f\u7528\u8005\u7406\u89e3\u63a5\u53e3\u7684\u4f7f\u7528\u65b9\u6cd5\u3002 </p> <p>\u5728\u524d\u9762\u7684\u5f00\u53d1\u6307\u5bfc\u91cc\u9762\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u8fd4\u56de\u503c\u548c\u4e00\u4e2a\u9519\u8bef\u7801\u7684\u60c5\u51b5\uff08200\uff09\u3002 \u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u591a\u4e2a\u9519\u8bef\u7801\u548c\u8fd4\u56de\u503c\uff0c\u540c\u65f6\u4f1a\u4ecb\u7ecd\u5982\u4f55\u8fd4\u56de\u989d\u5916\u7684 header\u53c2\u6570\u3002 </p> <p>Java Chassis\u5c06\u9519\u8bef\u7801\u8fdb\u884c\u4e86\u5206\u7c7b\uff1a2xx\u9519\u8bef\u7801\u8ba4\u4e3a\u662f\u4e00\u4e2a\u6b63\u5e38\u7684\u54cd\u5e94\uff0c\u4e00\u4e2a\u63a5\u53e3\u53ea\u5141\u8bb8\u5b58\u5728\u4e00\u4e2a\u6b63\u5e38\u54cd\u5e94\u9519\u8bef\u7801\uff1b \u5176\u4ed6\u9519\u8bef\u7801\u8ba4\u4e3a\u662f\u4e00\u4e2a\u5f02\u5e38\u7684\u54cd\u5e94\uff0c\u4e00\u4e2a\u63a5\u53e3\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u5f02\u5e38\u7684\u54cd\u5e94\uff0c\u5e76\u4e14\u9700\u8981\u91c7\u7528InvocationException\u7684\u65b9\u5f0f\u5c06\u5f02\u5e38\u629b\u51fa\uff0c\u6bcf\u4e2a\u9519\u8bef\u7801\u53ef\u4ee5\u6307\u5b9a \u4e0d\u540c\u7684\u54cd\u5e94\u7c7b\u578b\u3002 </p> <ul> <li>\u91c7\u7528<code>ApiResponse</code>\u5b9a\u4e49\u591a\u4e2a\u8fd4\u56de\u503c\u548c\u9519\u8bef\u7801</li> </ul> <pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic MultiResponse200 errorCode(MultiRequest request) {\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.BAD_REQUEST, r);\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR, r);\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      return r;\n    }\n}\n</code></pre> <ul> <li>\u91c7\u7528 <code>org.apache.servicecomb.swagger.invocation.Response</code> \u54cd\u5e94\u7c7b\u578b</li> </ul> <p>\u91c7\u7528 <code>org.apache.servicecomb.swagger.invocation.Response</code> \u54cd\u5e94\u7c7b\u578b\uff0c\u9664\u4e86\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u9519\u8bef\u7801\u548c\u54cd\u5e94\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 <code>ResponseHeader</code> \u5b9a\u4e49\u989d\u5916\u7684\u54cd\u5e94\u5934\u3002 </p> <pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\n@ResponseHeaders({@ResponseHeader(name = \"x-code\", response = String.class)})\npublic Response errorCodeWithHeader(MultiRequest request) {\n    Response response = new Response();\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      response.setStatus(Status.BAD_REQUEST);\n      response.setResult(new InvocationException(Status.BAD_REQUEST, r));\n      response.setHeader(\"x-code\", \"400\");\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      response.setStatus(Status.INTERNAL_SERVER_ERROR);\n      response.setResult(new InvocationException(Status.INTERNAL_SERVER_ERROR, r));\n      response.setHeader(\"x-code\", \"500\");\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      response.setStatus(Status.OK);\n      response.setResult(r);\n      response.setHeader(\"x-code\", \"200\");\n    }\n    return response;\n}\n</code></pre> <ul> <li>\u91c7\u7528 <code>javax.ws.rs.core.Response</code> \u54cd\u5e94\u7c7b\u578b</li> </ul> <p>\u91c7\u7528 <code>javax.ws.rs.core.Response</code> \u54cd\u5e94\u7c7b\u578b\uff0c\u9664\u4e86\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u9519\u8bef\u7801\u548c\u54cd\u5e94\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 <code>ResponseHeader</code> \u5b9a\u4e49\u989d\u5916\u7684\u54cd\u5e94\u5934\u3002 </p> <pre><code>@Path(\"/errorCodeWithHeaderJAXRS\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic javax.ws.rs.core.Response errorCodeWithHeaderJAXRS(MultiRequest request) {\n    javax.ws.rs.core.Response response;\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(request.getCode());\n      r.setMessage(request.getMessage());\n      response = javax.ws.rs.core.Response.status(Status.BAD_REQUEST)\n          .entity(new InvocationException(Status.BAD_REQUEST, r))\n          .header(\"x-code\", \"400\")\n          .build();\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(request.getCode());\n      r.setMessage(request.getMessage());\n      response = javax.ws.rs.core.Response.status(Status.INTERNAL_SERVER_ERROR)\n          .entity(new InvocationException(Status.INTERNAL_SERVER_ERROR, r))\n          .header(\"x-code\", \"500\")\n          .build();\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(request.getCode());\n      r.setMessage(request.getMessage());\n      // If error code is OK family(like 200), we can use the target type.\n      response = javax.ws.rs.core.Response.status(Status.OK)\n          .entity(r)\n          .header(\"x-code\", \"200\")\n          .build();\n    }\n    return response;\n}\n</code></pre>"},{"location":"build-provider/parameter-validator.html","title":"\u53c2\u6570\u6548\u9a8c","text":""},{"location":"build-provider/parameter-validator.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u5728provider\u7aef\u4f7f\u7528\u53c2\u6570\u6548\u9a8c\uff0c\u53ef\u4ee5\u5bf9\u76f8\u5e94\u7684\u53c2\u6570\u8f93\u5165\u8981\u6c42\u9884\u5148\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5728\u63a5\u53e3\u5b9e\u9645\u8c03\u7528\u524d\u8fdb\u884c\u6548\u9a8c\u5904\u7406\uff0c\u8fbe\u5230\u63a7\u5236\u53c2\u6570\u8f93\u5165\u6807\u51c6\u7684\u6548\u679c\u3002</p>"},{"location":"build-provider/parameter-validator.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"<ul> <li> <p>\u6dfb\u52a0swagger-invocation-validator\u7684pom\u4f9d\u8d56\uff1a</p> <pre><code>```xml\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;swagger-invocation-validator&lt;/artifactId&gt;\n&lt;/dependency&gt;\n```\n</code></pre> </li> <li> <p>\u5728\u9700\u8981\u9a8c\u8bc1\u7684\u4ee3\u7801\u4e0a\u6309\u7167JSR 349\u89c4\u8303\u6dfb\u52a0\u9a8c\u8bc1\u5668\u6ce8\u89e3\uff0c\u5982@NotNull\uff0c@Min\uff0c@Max\u7b49\u3002</p> </li> </ul>"},{"location":"build-provider/parameter-validator.html#_3","title":"\u793a\u4f8b\u4ee3\u7801","text":"<ul> <li>\u63a5\u53e3\u53c2\u6570\u9a8c\u8bc1</li> </ul> <pre><code>@RestSchema(schemaId = \"validator\")\n@Path(\"/validator\")\n@Produces(MediaType.APPLICATION_JSON)\npublic class Validator {\n\n  @Path(\"/add\")\n  @POST\n  public int add(@FormParam(\"a\") int a, @Min(20) @FormParam(\"b\") int b) {\n    return a + b;\n  }\n\n  @Path(\"/sayhi/{name}\")\n  @PUT\n  public String sayHi(@Length(min = 3) @PathParam(\"name\") String name) {\n    ContextUtils.getInvocationContext().setStatus(202);\n    return name + \" sayhi\";\n  }\n\n  @Path(\"/sayhello\")\n  @POST\n  public Student sayHello(@Valid Student student) {\n    student.setName(\"hello \" + student.getName());\n    student.setAge(student.getAge());\n    return student;\n  }\n}\n</code></pre> <ul> <li>bean\u7c7b\u9a8c\u8bc1</li> </ul> <p>\u9700\u8981\u5728\u4f20\u5165\u7684Student\u5bf9\u8c61\u524d\u52a0@Valid\uff0c\u5982\u4e0a\u56fesayHello(@Valid Student student)\u65b9\u6cd5\u3002</p> <pre><code>public class Student {\n  @NotNull\n  private String name;\n\n  @Max(20)\n  private int age;\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  public String getName() {\n    return this.name;\n  }\n\n  public void setAge(int age) {\n    this.age = age;\n  }\n\n  public int getAge() {\n    return age;\n  }\n}\n</code></pre>"},{"location":"build-provider/parameter-validator.html#_4","title":"\u81ea\u5b9a\u4e49\u8fd4\u56de\u5f02\u5e38","text":"<ul> <li>\u9ed8\u8ba4\u7684\u53c2\u6570\u6548\u9a8c\u5668ParameterValidator\u5df2\u7ecf\u5b9e\u73b0\u4e86\u63a5\u53e3ProducerInvokeExtension\uff0c\u6309\u7167JSR 349\u89c4\u8303\u5904\u7406\u6240\u9700\u7684\u53c2\u6570\u9a8c\u8bc1\u3002</li> </ul> <p>\u5982\u679c\u4efb\u4f55\u53c2\u6570\u9a8c\u8bc1\u5931\u8d25\uff0c\u7f3a\u7701\u9519\u8bef\u662fBAD_REQUEST(400, \"Bad Request\")\u3002</p> <p>\u8fd4\u56de\u9519\u8bef\u652f\u6301\u81ea\u5b9a\u4e49\u6269\u5c55\uff0c\u4f7f\u7528SPI\u673a\u5236\u3002</p> <ul> <li> <p>\u53ef\u4ee5\u901a\u8fc7\u5b9e\u73b0\u63a5\u53e3ExceptionToProducerResponseConverter\u6765\u81ea\u5b9a\u4e49\u8fd4\u56de\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u4ee5ConstraintViolationExceptionToProducerResponseConverter\u4e3a\u4f8b\u3002</p> </li> <li> <p>\u5b9e\u73b0ExceptionToProducerResponseConverter\u63a5\u53e3\uff0c\u91cd\u5199\u65b9\u6cd5\uff0c\u5176\u4e2dgetOrder\u65b9\u6cd5\u7684\u8fd4\u56de\u7ed3\u679c\u8868\u793a\u8be5\u9a8c\u8bc1\u5668\u7684\u4f18\u5148\u7ea7\uff0c\u503c\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002</p> <p>```java  public class ConstraintViolationExceptionToProducerResponseConverter      implements ExceptionToProducerResponseConverter {    @Override    public Class getExceptionClass() {      return ConstraintViolationException.class;    } <p>@Override    public Response convert(SwaggerInvocation swaggerInvocation, ConstraintViolationException e) {      return Response.createFail(new InvocationException(Status.BAD_REQUEST, e.getConstraintViolations().toString()));    }</p> <p>@Override    public int getOrder() {      return -100;    }  }  ```</p> <li> <p>\u5728META-INF\u4e0b\u7684services\u6587\u4ef6\u5939\u589e\u52a0\u4e00\u4e2a\u6587\u4ef6\uff0c\u4ee5\u6240\u5b9e\u73b0\u63a5\u53e3x.x.x.ExceptionToProducerResponseConverter(\u5e26\u5305\u540d)\u4e3a\u540d\uff0c\u4ee5\u5177\u4f53\u5b9e\u73b0\u7c7bx.x.x.ConstraintViolationExceptionToProducerResponseConverter(\u5e26\u5305\u540d)\u4e3a\u5185\u5bb9\u3002</p> </li>"},{"location":"build-provider/reactive.html","title":"\u5f02\u6b65\u5904\u7406","text":"<p>\u5f02\u6b65\u5904\u7406\u53ef\u4ee5\u66f4\u52a0\u5145\u5206\u7684\u5229\u7528CPU\uff0c\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002\u76f8\u5bf9\u4e8e\u540c\u6b65\u5904\u7406\uff0c\u5f02\u6b65\u5904\u7406\u7684\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u590d\u6742\uff0c\u51fa\u73b0\u7684\u95ee\u9898\u4e5f\u66f4\u52a0\u96be\u4e8e\u5b9a\u4f4d\u3002Java Chassis \u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u7684\u5f02\u6b65\u5904\u7406\u673a\u5236\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u9009\u62e9\u6027\u7684\u4f7f\u7528\u540c\u6b65\u5904\u7406\u548c\u5f02\u6b65\u5904\u7406\u3002</p>"},{"location":"build-provider/reactive.html#_2","title":"\u5b9a\u4e49\u5f02\u6b65\u5904\u7406\u7684\u63a5\u53e3\u548c\u4f7f\u7528\u5f02\u6b65\u8bbf\u95ee","text":"<p>\u5728Provider\u7aef\uff0cSpring MVC\u3001JAX RS\u548cRPC\u7684\u5f02\u6b65\u63a5\u53e3\u5b9a\u4e49\u7c7b\u4f3c\uff0c\u90fd\u4f7f\u7528<code>CompletableFuture</code>\u6765\u58f0\u660e\u5f02\u6b65\u63a5\u53e3\u3002\u4ee5\u900f\u660eRPC\u4e3a\u4f8b\uff0c\u5b9a\u4e49\u65b9\u6cd5\u5982\u4e0b\uff1a</p> <pre><code>  public CompletableFuture&lt;String&gt; sayHello(String name) {\n    CompletableFuture&lt;String&gt; future = new CompletableFuture&lt;&gt;();\n    future.complete(name);\n    return future;\n  }\n</code></pre> <p>\u5728Consumer\u7aef\uff0c\u53ef\u4ee5\u4f7f\u7528\u900f\u660eRPC\u3001InvokerUtils\u3001AsyncRestTemplate\u6765\u4f7f\u7528\u5f02\u6b65\u3002\u4ee5\u900f\u660eRPC\u4e3a\u4f8b\uff0c\u9996\u5148\u58f0\u660e\u63a5\u53e3\uff1a</p> <pre><code>public interface Hello {\n  @ApiOperation(nickname = \"sayHello\", value = \"\")\n  CompletableFuture&lt;String&gt; sayHelloAsync(String name);\n\n  String sayHello(String name);\n}\n</code></pre> <p>\u4e0a\u9762\u7684\u4f8b\u5b50\u540c\u65f6\u5b9a\u4e49\u4e86\u5f02\u6b65\u8bbf\u95ee\u7684\u63a5\u53e3\u548c\u540c\u6b65\u8bbf\u95ee\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u53ef\u4ee5\u7528\u6765\u8bbf\u95eeProvider\u7684\u540c\u4e00\u4e2a\u63a5\u53e3\u3002 \u4f7f\u7528\u5f02\u6b65\u63a5\u53e3\u548c\u4f7f\u7528\u540c\u6b65\u63a5\u53e3\u7684\u8fc7\u7a0b\u4e00\u6837\uff1a</p> <pre><code>  @RpcReference(microserviceName = \"name\", schemaId = \"Hello\")\n  public Hello hello;\n</code></pre>"},{"location":"build-provider/reactive.html#_3","title":"\u5f02\u6b65\u903b\u8f91\u6267\u884c\u7684\u7ebf\u7a0b\u6c60","text":"<p>\u58f0\u660e\u4e3a\u5f02\u6b65\u63a5\u53e3\uff0c\u5e76\u4e0d\u4f1a\u6539\u53d8\u4e1a\u52a1\u903b\u8f91\u5165\u53e3\u88ab\u6267\u884c\u7684\u7ebf\u7a0b\u3002\u6bd4\u5982\u5728Provider\u7aef\uff0c\u4e1a\u52a1\u903b\u8f91\u7684\u5165\u53e3\u8fd8\u662f\u5728\u540c\u6b65\u7ebf\u7a0b\u6c60\u4e2d\u6267\u884c\u7684\uff0cEdge Service\u5728event-loop\u6267\u884c\u3002 \u6539\u53d8\u5165\u53e3\u903b\u8f91\u7684\u6267\u884c\u7ebf\u7a0b\uff0c\u9700\u8981\u4fee\u6539\u65b9\u6cd5\u7684\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\u3002\u5f02\u6b65\u63a5\u53e3\u6267\u884c\u5b8c\u6bd5\uff0c\u56de\u8c03\u903b\u8f91\u5728\u4e1a\u52a1\u81ea\u5b9a\u4e49\u7684\u5f02\u6b65\u6267\u884c\u7ebf\u7a0b\u6c60\u6267\u884c\u3002 </p> <p>\u8be6\u7ec6\u60c5\u51b5\u53c2\u8003\u7ebf\u7a0b\u6c60\u3002 </p> <p>\u5f02\u6b65\u903b\u8f91\u5728\u66f4\u52a0\u590d\u6742\u573a\u666f\u4e0b\u7684\u6267\u884c\u8fc7\u7a0b\uff0c\u8bf7\u53c2\u8003reactive\u3002</p>"},{"location":"build-provider/reactive.html#event-loop","title":"\u6709\u5173 event-loop \u7ebf\u7a0b\u7684\u7279\u6b8a\u8bf4\u660e","text":"<p>\u5728Edge Service\u7b49\u573a\u666f\uff0c\u6216\u8005\u5728Provider\u4f7f\u7528\u4e86\u5f02\u6b65\u7ebf\u7a0b\u6c60\u7684\u573a\u666f\uff0c\u6240\u6709\u7684\u4e1a\u52a1\u903b\u8f91\u90fd\u662f\u5728event-loop\u6267\u884c\u7684\u3002\u5728event-loop\u6267\u884c\u7684\u4e1a\u52a1\u4ee3\u7801\uff0c\u4e0d\u80fd\u5b58\u5728 \u4efb\u4f55\u963b\u585e\u64cd\u4f5c\uff0c\u5426\u5219\u4f1a\u7834\u574fevent-loop\u7684\u4e8b\u4ef6\u6d3e\u53d1\uff0c\u5bfc\u81f4\u6b7b\u9501\u3002 \u8fd9\u4e9b\u573a\u666f\u8bbf\u95ee\u5176\u4ed6\u5fae\u670d\u52a1\uff0c\u5fc5\u987b\u91c7\u7528\u5f02\u6b65\u63a5\u53e3\u3002 event-loop\u6267\u884c\u963b\u585e\u64cd\u4f5c\u5bfc\u81f4\u6b7b\u9501\u7684\u60c5\u51b5\uff0c \u6216\u8005\u5bfc\u81f4\u6027\u80fd\u4e0b\u964d\u7684\u60c5\u51b5\uff0c\u9700\u8981\u5728\u6ee1\u8db3\u4e00\u5b9a\u7684\u5e76\u53d1\u6761\u4ef6\u624d\u80fd\u591f\u51fa\u73b0\uff0c\u4e0d\u5c0f\u5fc3\u4f7f\u7528\u4f1a\u7ed9\u4e1a\u52a1\u53ef\u9760\u6027\u5e26\u6765\u5f88\u5927\u7684\u98ce\u9669\u3002 Java Chassis\u9488\u5bf9\u5e38\u89c1\u7684\u9519\u8bef\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b \u68c0\u6d4b\u673a\u5236\uff0c\u6bd4\u5982\u5728event-loop\u6267\u884c\u540c\u6b65Consumer\u8c03\u7528\u7684\u65f6\u5019\uff0c\u4f1a\u62a5\u544a\u5f02\u5e38\uff0c\u8ba9\u5f00\u53d1\u8005\u53ca\u65f6\u53d1\u73b0\u95ee\u9898\u3002 </p>"},{"location":"build-provider/springmvc.html","title":"\u7528 Spring MVC \u5f00\u53d1\u5fae\u670d\u52a1","text":"<p>Spring MVC \u662f spring-web \u9879\u76ee\u5b9a\u4e49\u7684\u4e00\u5957\u6ce8\u89e3\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u8fd9\u5957\u6ce8\u89e3\u5b9a\u4e49 REST \u63a5\u53e3\u3002 servicecomb \u4e5f \u652f\u6301\u4f7f\u7528\u8fd9\u5957\u6807\u7b7e\u5b9a\u4e49 REST \u63a5\u53e3\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cservicecomb \u53ea\u662f\u4f7f\u7528\u8fd9\u4e9b\u6ce8\u89e3\uff0c\u800c\u6ce8\u89e3\u7684\u5b9e\u73b0\u662f\u9879\u76ee\u81ea\u884c\u5f00\u53d1\u7684\uff0c \u5b9e\u73b0\u7684\u529f\u80fd\u96c6\u5408\u662f Spring MVC \u6ce8\u89e3\u7684\u5b50\u96c6\u3002\u53ef\u4ee5\u9605\u8bfb\u6587\u7ae0\u540e\u9762\u7684\u5185\u5bb9\u4e86\u89e3\u5177\u4f53\u7684\u6807\u7b7e\u96c6\u5408\u548c\u4f7f\u7528\u7ea6\u675f\u3002</p> <p>SpringMVC Sample \u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4f7f\u7528\u3002</p>"},{"location":"build-provider/springmvc.html#_1","title":"\u5f00\u53d1\u6b65\u9aa4","text":"<p>\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4f7f\u7528 Spring MVC \u5f00\u53d1 REST \u670d\u52a1\u7684\u4e00\u4e9b\u7b80\u5355\u6b65\u9aa4\u3002</p> <ul> <li>\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\uff08\u53ef\u9009\uff09</li> </ul> <p>\u5b9a\u4e49\u63a5\u53e3\u662f\u4e00\u4e2a\u597d\u4e60\u60ef\uff0c \u5b83\u4e0d\u662f\u5fc5\u987b\u7684\u3002</p> <pre><code>    ```java\n    public interface Hello {\n        String sayHi(String name);\n        String sayHello(Person person);\n    }\n    ```\n</code></pre> <ul> <li>\u5b9e\u73b0\u670d\u52a1\u63a5\u53e3</li> </ul> <p>\u5728\u670d\u52a1\u7684\u5b9e\u73b0\u7c7b\u4e0a\u6253\u4e0a\u6ce8\u89e3 <code>@RestSchema</code>\uff0c\u6307\u5b9a <code>schemaId</code>\u3002 \u6ce8\u610f <code>schemaId</code> \u9700\u8981\u4fdd\u8bc1\u5fae\u670d\u52a1\u8303\u56f4\u5185\u552f\u4e00\u3002</p> <pre><code>    ```java\n    @RestSchema(schemaId = \"springmvcHello\")\n    @RequestMapping(path = \"/springmvchello\", produces = MediaType.APPLICATION_JSON)\n    public class SpringmvcHelloImpl implements Hello {\n        @Override\n        @RequestMapping(path = \"/sayhi\", method = RequestMethod.POST)\n        public String sayHi(@RequestParam(name = \"name\") String name) {\n            return \"Hello \" + name;\n        }\n\n        @Override\n        @RequestMapping(path = \"/sayhello\", method = RequestMethod.POST)\n        public String sayHello(@RequestBody Person person) {\n            return \"Hello person \" + person.getName();\n        }\n    }\n    ```\n</code></pre>"},{"location":"build-provider/springmvc.html#servicecomb-spring-mvc","title":"ServiceComb\u652f\u6301\u7684 Spring MVC \u6ce8\u89e3\u8bf4\u660e","text":"<p>servicecomb \u652f\u6301\u4f7f\u7528 Spring MVC \u63d0\u4f9b\u7684\u6ce8\u89e3 <code>org.springframework.web.bind.annotation</code> \u6765\u58f0 \u660eREST\u63a5\u53e3\uff0c\u4f46\u662f\u4e24\u8005\u662f\u72ec\u7acb\u7684\u5b9e\u73b0\uff0c\u800c\u4e14\u6709\u4e0d\u4e00\u6837\u7684\u8bbe\u8ba1\u76ee\u6807\u3002servicecomb \u7684\u76ee\u6807\u662f\u63d0\u4f9b\u8de8\u8bed\u8a00\u3001\u652f\u6301\u591a\u901a\u4fe1\u534f\u8bae\u7684 \u6846\u67b6\uff0c\u56e0\u6b64\u53bb\u6389\u4e86Spring MVC\u4e2d\u4e00\u4e9b\u5bf9\u8de8\u8bed\u8a00\u652f\u6301\u4e0d\u662f\u5f88\u597d\u7684\u7279\u6027\uff0c\u4e5f\u4e0d\u652f\u6301\u7279\u5b9a\u8fd0\u884c\u6846\u67b6\u5f3a\u76f8\u5173\u7684\u7279\u6027\uff0c\u6bd4 \u5982\u76f4\u63a5\u8bbf\u95eeServlet\u534f\u8bae\u5b9a\u4e49\u7684<code>HttpServletRequest</code>\u3002servicecomb \u6ca1\u6709\u5b9e\u73b0<code>@Controller</code>\u76f8\u5173\u529f \u80fd, \u53ea\u5b9e\u73b0\u4e86<code>@RestController</code>\uff0c\u5373\u901a\u8fc7MVC\u6a21\u5f0f\u8fdb\u884c\u9875\u9762\u6e32\u67d3\u7b49\u529f\u80fd\u90fd\u662f\u4e0d\u652f\u6301\u7684\u3002</p> <p>\u4e0b\u9762\u662f\u4e00\u4e9b\u5177\u4f53\u5dee\u5f02\u3002</p> <ul> <li>\u5e38\u7528\u6807\u7b7e\u652f\u6301</li> </ul> <p>\u4e0b\u9762\u662fCSE\u5bf9\u4e8eSpring MVC\u5e38\u7528\u6807\u7b7e\u7684\u652f\u6301\u60c5\u51b5\u3002</p> <p>\u88681-1 Spring MVC\u6ce8\u89e3\u60c5\u51b5\u8bf4\u660e</p> \u6807\u7b7e\u540d\u79f0 \u662f\u5426\u652f\u6301 \u8bf4\u660e RequestMapping \u662f \u4e0d\u5141\u8bb8\u5236\u5b9a\u591a\u4e2aPath\uff0c\u4e00\u4e2a\u63a5\u53e3\u53ea\u5141\u8bb8\u4e00\u4e2aPath\uff0c\u5fc5\u987b\u663e\u793a\u7684\u58f0\u660e method \u5c5e\u6027\uff0c\u53ea\u80fd\u5b9a\u4e49\u552f\u4e00\u4e00\u4e2a method GetMapping \u662f PutMapping \u662f PostMapping \u662f DeleteMapping \u662f PatchMapping \u662f RequestParam \u662f \u6ce8\u610f\u542b\u4e49\u4e0eSpring MVC\u4e0d\u540c\u3002Java Chassis \u8868\u793a query \u53c2\u6570\u3002 CookieValue \u662f PathVariable \u662f RequestHeader \u662f RequestBody \u662f \u76ee\u524d\u652f\u6301application/json\uff0cplain/text RequestPart \u662f \u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u7684\u573a\u666f\uff0c\u5bf9\u5e94\u7684\u6807\u7b7e\u8fd8\u6709Part\u3001MultipartFile ResponseBody \u5426 \u8fd4\u56de\u503c\u7f3a\u7701\u90fd\u662f\u5728body\u8fd4\u56de ResponseStatus \u5426 \u53ef\u4ee5\u901a\u8fc7ApiResponse\u6307\u5b9a\u8fd4\u56de\u7684\u9519\u8bef\u7801 RequestAttribute \u662f \u6ce8\u610f\u542b\u4e49\u4e0eSpring MVC\u4e0d\u540c\u3002Java Chassis \u8868\u793a form \u53c2\u6570\u3002 SessionAttribute \u5426 Servlet\u534f\u8bae\u76f8\u5173\u7684\u6807\u7b7e MatrixVariable \u5426 ModelAttribute \u5426 ControllerAdvice \u5426 CrossOrigin \u5426 ExceptionHandler \u5426 InitBinder \u5426 <ul> <li>\u670d\u52a1\u58f0\u660e\u65b9\u5f0f</li> </ul> <p>Spring MVC\u4f7f\u7528<code>@RestController</code>\u58f0\u660e\u670d\u52a1\uff0c\u800cServiceComb\u4f7f\u7528<code>@RestSchema</code>\u58f0\u660e\u670d\u52a1\uff0c\u5e76\u4e14\u9700   \u8981\u663e\u5f0f\u5730\u4f7f\u7528<code>@RequestMapping</code>\u58f0\u660e\u670d\u52a1\u8def\u5f84\uff0c\u4ee5\u533a\u5206\u8be5\u670d\u52a1\u662f\u91c7\u7528Spring MVC\u7684\u6807\u7b7e\u8fd8\u662f\u4f7f\u7528JAX RS\u7684\u6807\u7b7e\u3002</p> <pre><code>    ```\n    @RestSchema(schemaId = \"springmvcHello\")\n    @RequestMapping(path = \"/springmvchello\", produces = MediaType.APPLICATION_JSON)\n    public class SpringmvcHelloImpl implements Hello {\n      ......\n    }\n    ```\n</code></pre> <p>servicecomb \u4e5f\u652f\u6301 <code>@RestController</code> \u58f0\u660e\uff0c\u7b49\u4ef7\u4e8e <code>@RestSchma(schemaId=\"\u670d\u52a1\u7684class\u540d\u79f0\")</code>\uff0c\u8fd9\u4e2a   \u529f\u80fd\u53ef\u4ee5\u7b80\u5316\u7528\u6237\u5c06\u8001\u7684\u5e94\u7528\u6539\u9020\u4e3a servicecomb \u3002 \u5efa\u8bae\u7528\u6237\u4f7f\u7528<code>@RestSchema</code>\u663e\u5f0f\u58f0\u660eschemaId\uff0c\u5728\u7ba1\u7406   \u63a5\u53e3\u57fa\u672c\u7684\u914d\u7f6e\u9879\u7684\u65f6\u5019\uff0c\u66f4\u52a0\u76f4\u89c2\u3002</p> <p>\u6ce8\u610f\uff1a\u5982\u679c\u4e0d\u5e0c\u671bJava-Chassis\u626b\u63cf<code>@RestController</code>\u6ce8\u89e3\u4f5c\u4e3aREST\u63a5\u53e3\u7c7b\u5904\u7406\uff0c\u9700\u8981\u589e\u52a0\u914d\u7f6e   <code>servicecomb.provider.rest.scanRestController=false</code> \u4ee5\u5173\u95ed\u6b64\u529f\u80fd\u3002</p> <ul> <li>\u6570\u636e\u7c7b\u578b\u652f\u6301</li> </ul> <p>Spring \u6280\u672f\u5b9e\u73b0\u7684 Spring MVC\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u5b9a\u4e49\u4e2d\u4f7f\u7528\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u53ea\u8981\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u80fd\u591f\u88abjson\u5e8f\u5217\u5316\u548c   \u53cd\u5e8f\u5217\u5316\u3002\u6bd4\u5982\uff1a</p> <pre><code>    ```\n    // \u62bd\u8c61\u7c7b\u578b\n    public void postData(@RequestBody Object data)\n    // \u63a5\u53e3\u5b9a\u4e49\n    public void postData(@RequestBody IPerson interfaceData)\n    // \u6ca1\u6307\u5b9a\u7c7b\u578b\u7684\u6cdb\u578b\n    public void postData(@RequestBody Map rawData)\n    ```\n</code></pre> <p>Spring \u6280\u672f\u65e9\u671f\u90fd\u662f\u57fa\u4e8e JSP/Servlet \u534f\u8bae\u6807\u51c6\u7684\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u7684 context \u53c2\u6570\uff0c\u6bd4\u5982\uff1a</p> <pre><code>    ```\n    // \u5177\u4f53\u534f\u8bae\u76f8\u5173\u7684\u7c7b\u578b\n    public void postData(HttpServletRequest rquest, HttpServletResponse response)\n    ```\n</code></pre> <p>servicecomb \u5bf9\u4e8e\u6570\u636e\u7c7b\u578b\u5b58\u5728\u4e00\u5b9a\u7684\u9650\u5236\uff0c\u4e0d\u5141\u8bb8\u4f7f\u7528\u63a5\u53e3\u3001\u62bd\u8c61\u7c7b\u7b49\u6570\u636e\u7c7b\u578b\u5b9a\u4e49\u53c2\u6570\uff0c\u867d\u7136 servicecomb   \u652f\u6301\u4f7f\u7528 Object \u8fd9\u4e2a\u7279\u6b8a\u7684\u7c7b\u578b\u6765\u5904\u7406\u7c7b\u578b\u65e0\u6cd5\u786e\u5b9a\u7684\u60c5\u51b5\uff0c\u4f46\u662f\u5efa\u8bae\u5c3d\u53ef\u80fd\u5c11\u4f7f\u7528\uff0c\u4f7f\u7528 Object \u4f5c\u4e3a\u7c7b\u578b\uff0c   \u8fd0\u884c\u65f6\u7684\u7c7b\u578b\u4e0d\u786e\u5b9a\uff0c\u53ef\u80fd\u7ed9\u5ba2\u6237\u7aef\u4ee3\u7801\u7684\u4e66\u5199\u5e26\u6765\u4e00\u5b9a\u9ebb\u70e6\u3002</p> <p>servicecomb \u4e5f\u652f\u6301\u4e00\u4e9b context \u53c2\u6570\uff0c \u53c2\u8003\u4f7f\u7528 Context \u53c2\u6570 \u3002\u4f46\u662f\u7531\u4e8e servicecomb \u9ed8\u8ba4\u7684\u8fd0\u884c\u73af\u5883\u5e76\u4e0d\u662f JSP/Servlet \u534f\u8bae   \u73af\u5883\uff0c\u56e0\u6b64\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528 <code>HttpServletRequest</code> \u548c <code>HttpServletResponse</code>\u3002 </p> <p>ServiceComb\u5728\u6570\u636e\u7c7b\u578b\u7684\u652f\u6301\u65b9\u9762\u7684\u66f4\u591a\u8bf4\u660e\uff0c\u8bf7\u53c2\u8003\uff1a \u63a5\u53e3\u5b9a\u4e49\u548c\u6570\u636e\u7c7b\u578b</p> <ul> <li>\u5176\u4ed6</li> </ul> <p>\u66f4\u591a\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u78b0\u5230\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u6848\u4f8b\u3002\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u5b58\u5728\u7591\u95ee\uff0c\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u8fdb\u884c\u63d0\u95ee\u3002</p>"},{"location":"build-provider/springmvc.html#http-header","title":"\u5728\u54cd\u5e94\u4e2d\u5305\u542b  HTTP header","text":"<p>\u53ef\u4ee5\u6709\u591a\u79cd\u65b9\u5f0f\u5728\u54cd\u5e94\u4e2d\u5305\u542b HTTP header\uff0c \u4e0b\u9762\u4ee3\u7801\u5c55\u793a\u4e86\u4f7f\u7528 ResponseEntity \u5305\u542b HTTP header\u3002 \u9700\u8981\u6ce8\u610f \u4f7f\u7528 @ResponseHeaders \u58f0\u660e\u8fd4\u56de\u7684 header \u4fe1\u606f\u3002 \u5305\u542b\u4e86 @ResponseHeaders \u4ee5\u540e\uff0c \u63a5\u53e3\u751f\u6210\u7684\u5951\u7ea6\u4e2d\uff0c\u4e5f\u53ef\u4ee5 \u770b\u5230\u5bf9\u5e94\u7684 header \u53c2\u6570\u3002</p> <pre><code>  @ResponseHeaders({@ResponseHeader(name = \"h1\", response = String.class),\n      @ResponseHeader(name = \"h2\", response = String.class)})\n  @RequestMapping(path = \"/responseEntity\", method = RequestMethod.POST)\n  public ResponseEntity&lt;Date&gt; responseEntity(InvocationContext c1, \n        @RequestAttribute(\"date\") Date date) {\n    HttpHeaders headers = new HttpHeaders();\n    headers.add(\"h1\", \"h1v \" + c1.getContext().get(Const.SRC_MICROSERVICE));\n\n    InvocationContext c2 = ContextUtils.getInvocationContext();\n    headers.add(\"h2\", \"h2v \" + c2.getContext().get(Const.SRC_MICROSERVICE));\n\n    return new ResponseEntity&lt;&gt;(date, headers, HttpStatus.ACCEPTED);\n  }\n</code></pre> <p>\u4e5f\u53ef\u4ee5\u4f7f\u7528 Response \u5bf9\u8c61\u8fd4\u56de HTTP header\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>  @ApiResponse(code = 202, response = User.class, message = \"\")\n  @ResponseHeaders({@ResponseHeader(name = \"h1\", response = String.class),\n      @ResponseHeader(name = \"h2\", response = String.class)})\n  @RequestMapping(path = \"/cseResponse\", method = RequestMethod.GET)\n  public Response cseResponse(InvocationContext c1) {\n    Response response = Response.createSuccess(Status.ACCEPTED, new User());\n    Headers headers = response.getHeaders();\n    headers.addHeader(\"h1\", \"h1v \" + c1.getContext().get(Const.SRC_MICROSERVICE));\n\n    InvocationContext c2 = ContextUtils.getInvocationContext();\n    headers.addHeader(\"h2\", \"h2v \" + c2.getContext().get(Const.SRC_MICROSERVICE));\n\n    return response;\n  }\n</code></pre> <p>\u8fd9\u4e2a\u793a\u4f8b\u4ee3\u7801\u8fd8\u901a\u8fc7 @ApiResponse \u6307\u5b9a\u4e86\u8fd4\u56de 202 \u9519\u8bef\u7801\u53ca\u5176\u7c7b\u578b\uff0c \u8fd9\u4e2a\u54cd\u5e94\u503c\u4f1a\u5728\u5951\u7ea6\u4f53\u73b0\u3002</p> <p>\u6ce8\u610f: HIGHWAY \u534f\u8bae\u4e0d\u652f\u6301\u6307\u5b9a\u8fd4\u56de\u9519\u8bef\u7801\u548c\u7c7b\u578b\u3002\u9700\u8981\u540c\u65f6\u4f7f\u7528 HIGHWAY \u548c REST \u8bbf\u95ee\u7684\u63a5\u53e3\uff0c \u8bf7\u52ff\u4f7f\u7528\u3002  </p>"},{"location":"build-provider/springmvc.html#string-body","title":"\u6307\u5b9a String \u7c7b\u578b body \u7f16\u7801\u65b9\u5f0f","text":"<p>\u4f7f\u7528 REST \u901a\u4fe1\u7684\u670d\u52a1\uff0c \u4e00\u822c\u91c7\u7528 json \u8fdb\u884c\u7f16\u89e3\u7801\u3002 String \u7c7b\u578b\u7684\u6570\u636e\uff0c \u7f16\u7801\u4e3a json \u7684\u65f6\u5019\uff0c\u5b58\u5728 \u53cc\u5f15\u53f7\u3002 \u6bd4\u5982 <code>abc</code> \u7f16\u7801\u4ee5\u540e\u4e3a <code>\"abc\"</code> \u3002 \u4f46\u662f Spring \u81ea\u8eab\u7684\u5b9e\u73b0\uff0c \u5c06 String \u7c7b\u578b\u7684\u6570\u636e\uff0c\u7f16\u7801 \u4e3a\u4e0d\u5e26\u53cc\u5f15\u53f7\u3002 \u4e3a\u4e86\u4fdd\u6301 Spring \u539f\u59cb\u5b9e\u73b0\u7684\u65b9\u5f0f\u517c\u5bb9\uff0c servicecomb \u63d0\u4f9b\u4e86 <code>RawJsonRequestBody</code> \u63a5\u6536 \u4e0d\u5e26\u53cc\u5f15\u53f7\u7684\u53c2\u6570\u3002 </p> <pre><code>  @ResponseBody\n  public String testRawJsonAnnotation(@RawJsonRequestBody String jsonInput) {\n    return jsonInput;\n  }\n</code></pre> <p>\u6216\u8005\u4f7f\u7528 MediaType.TEXT_PLAIN_VALUE, \u4e0d\u4f7f\u7528 MediaType.APPLICATION_JSON_VALUE</p> <pre><code>  @RequestMapping(path = \"/textPlain\", method = RequestMethod.POST, \n      consumes = MediaType.TEXT_PLAIN_VALUE)\n  public String textPlain(@RequestBody String body) {\n    return body;\n  }\n</code></pre> <p>\u5982\u679c\u54cd\u5e94\u4e0d\u671f\u671b\u5e26\u53cc\u5f15\u53f7\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>produces = MediaType.TEXT_PLAIN_VALUE</code></p> <pre><code> @RequestMapping(path = \"/sayhi/compressed/{name}/v2\", \n    method = RequestMethod.GET, produces = MediaType.TEXT_PLAIN_VALUE)\n  public String sayHiForCompressed(@PathVariable(name = \"name\") String name) {\n     return name;\n  }\n</code></pre>"},{"location":"build-provider/springmvc.html#querypojo","title":"Query\u53c2\u6570\u805a\u5408\u4e3aPOJO\u5bf9\u8c61","text":"<p>SpringBoot\u652f\u6301\u5c06Java\u4e1a\u52a1\u63a5\u53e3\u4e2d\u7684\u591a\u4e2aquery\u53c2\u6570\u805a\u5408\u4e3a\u4e00\u4e2aPOJO\u7c7b\uff0cSpringBoot\u539f\u751f\u7528\u6cd5\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>@RequestMapping(\"/hello\")\npublic class HelloService {\n  @RequestMapping(value = \"/sayHello\", method = RequestMethod.GET)\n  public String sayHello(Person person) {\n    System.out.println(\"sayHello is called, person = [\" + person + \"]\");\n    return \"Hello, your name is \" + person.getName() + \", and age is \" + person.getAge();\n  }\n}\n</code></pre> <p>\u5176\u4e2d\uff0c\u4f5c\u4e3a\u53c2\u6570\u7684<code>Person</code>\u7c7b\u662f\u4e00\u4e2a\u6807\u51c6\u7684JavaBean\uff0c\u5305\u542b\u5c5e\u6027<code>name</code>\u548c<code>age</code>\u3002\u5f53\u670d\u52a1\u63a5\u6536\u5230\u7684\u8bf7\u6c42\u65f6\uff0cSpringBoot\u4f1a\u5c06query\u53c2\u6570<code>name</code>\u548c<code>age</code>\u805a\u5408\u4e3aPerson\u5bf9\u8c61\u4f20\u5165\u4e1a\u52a1\u63a5\u53e3\u3002</p> <p>ServiceComb\u7684SpringMVC\u5f00\u53d1\u6a21\u5f0f\u73b0\u5728\u4e5f\u652f\u6301\u7c7b\u4f3c\u7684\u7528\u6cd5\uff0c\u8be5\u7528\u6cd5\u7684\u8981\u6c42\u5982\u4e0b\uff1a</p> <ol> <li>POJO\u53c2\u6570\u4e0a\u4e0d\u80fd\u6709Spring\u7684\u53c2\u6570\u6ce8\u89e3\uff0c\u5426\u5219ServiceComb\u4e0d\u4f1a\u5c06\u5176\u4f5c\u4e3a\u805a\u5408\u7684query\u53c2\u6570\u5bf9\u8c61\u5904\u7406\u3002</li> <li>\u4ec5\u652f\u6301\u805a\u5408query\u53c2\u6570</li> <li>POJO\u53c2\u6570\u7c7b\u4e2d\u7684\u5c5e\u6027\u540d\u4e0equery\u53c2\u6570\u540d\u9700\u8981\u4fdd\u6301\u4e00\u81f4</li> <li>POJO\u53c2\u6570\u4e2d\u4e0d\u652f\u6301\u590d\u6742\u7684\u5c5e\u6027\uff0c\u5982\u5176\u4ed6POJO\u5bf9\u8c61\u3001List\u7b49\u3002\u7528\u6237\u53ef\u4ee5\u5728\u8fd9\u4e9b\u590d\u6742\u7c7b\u578b\u6253\u4e0a<code>@JsonIgnore</code>\u6ce8\u89e3\u6765\u8ba9ServiceComb\u5ffd\u7565\u8fd9\u4e9b\u590d\u6742\u5c5e\u6027\u3002</li> <li>consumer\u7aef\u4e0d\u652f\u6301query\u53c2\u6570\u805a\u5408\u4e3aPOJO\u5bf9\u8c61\uff0c\u8c03\u7528\u670d\u52a1\u65f6\u4f9d\u7136\u8981\u6309\u7167\u5951\u7ea6\u53d1\u9001\u8bf7\u6c42\u3002\u5373provider\u7aef\u88ab\u805a\u5408\u7684POJO\u53c2\u6570\u5728\u5951\u7ea6\u4e2d\u4f1a\u88ab\u5c55\u5f00\u6210\u4e00\u7cfb\u5217\u7684query\u53c2\u6570\uff0cconsumer\u7aef\u9700\u8981\u5728provider\u63a5\u53e3\u65b9\u6cd5\u4e2d\u4f9d\u6b21\u5b9a\u4e49\u8fd9\u4e9bquery\u53c2\u6570\uff08RPC\u5f00\u53d1\u6a21\u5f0f\uff09\uff0c\u6216\u5728\u53d1\u9001\u8bf7\u6c42\u65f6\u586b\u5165\u8fd9\u4e9bquery\u53c2\u6570\uff08RestTemplate\u5f00\u53d1\u6a21\u5f0f\uff09\u3002</li> </ol>"},{"location":"build-provider/springmvc.html#_2","title":"\u4ee3\u7801\u793a\u4f8b","text":""},{"location":"build-provider/springmvc.html#provider","title":"Provider\u7aef\u5f00\u53d1\u670d\u52a1","text":"<ul> <li>Provider\u7aef\u4e1a\u52a1\u63a5\u53e3\u4ee3\u7801\uff1a</li> </ul> <pre><code>  @RestSchema(schemaId = \"helloService\")\n  @RequestMapping(\"/hello\")\n  public class HelloService {\n    @RequestMapping(value = \"/sayHello\", method = RequestMethod.GET)\n    public String sayHello(Person person) {\n      System.out.println(\"sayHello is called, person = [\" + person + \"]\");\n      return \"Hello, your name is \" + person.getName() + \", and age is \" + person.getAge();\n    }\n  }\n</code></pre> <ul> <li>POJO\u53c2\u6570\u5bf9\u8c61\u5b9a\u4e49\uff1a</li> </ul> <pre><code>  public class Person {\n    private String name;\n    private int age;\n    @JsonIgnore  // \u590d\u6742\u5c5e\u6027\u9700\u8981\u6807\u8bb0@JsonIgnore\uff0c\u5426\u5219\u542f\u52a8\u65f6\u4f1a\u62a5\u9519\n    private List&lt;Person&gt; children;\n  }\n</code></pre> <ul> <li>\u63a5\u53e3\u5951\u7ea6\uff1a</li> </ul> <pre><code># \u5ffd\u7565\u5951\u7ea6\u7684\u5176\u4ed6\u90e8\u5206\nbasePath: \"/hello\"\npaths:\n  /sayHello:\n    get:\n      operationId: \"sayHello\"\n      parameters:\n        # Person\u7c7b\u7684name\u5c5e\u6027\u548cage\u5c5e\u6027\u4f5c\u4e3a\u5951\u7ea6\u4e2d\u7684query\u53c2\u6570\n      - name: \"name\"\n        in: \"query\"\n        required: false\n        type: \"string\"\n      - name: \"age\"\n        in: \"query\"\n        required: false\n        type: \"integer\"\n        format: \"int32\"\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            type: \"string\"\n</code></pre>"},{"location":"build-provider/springmvc.html#consumer","title":"Consumer\u7aef\u8c03\u7528\u670d\u52a1","text":"<p>consumer\u7aefRPC\u5f00\u53d1\u6a21\u5f0f\uff1a</p> <ul> <li>Provider\u63a5\u53e3\u5b9a\u4e49</li> </ul> <pre><code>public interface HelloServiceIntf {\n  String sayHello(String name, int age);\n}\n</code></pre> <ul> <li>\u8c03\u7528\u4ee3\u7801</li> </ul> <pre><code>String result = helloService.sayHello(\"Bob\", 22); // result\u7684\u503c\u4e3a\"Hello, your name is Bob, and age is 22\"\n</code></pre> <ul> <li>consumer\u7aefRestTemplate\u5f00\u53d1\u6a21\u5f0f\uff1a</li> </ul> <pre><code>String result = restTemplate.getForObject(\n  \"cse://provider-service/hello/sayHello?name=Bob&amp;age=22\",\n  String.class); // \u8c03\u7528\u6548\u679c\u4e0eRPC\u65b9\u5f0f\u76f8\u540c\n</code></pre>"},{"location":"build-provider/swagger-annotation.html","title":"\u4f7f\u7528 Swagger \u6ce8\u89e3","text":"<p>\u91c7\u7528 Spring MVC \u6216\u8005 JAX RS \u6ce8\u89e3\u5df2\u7ecf\u80fd\u591f\u63cf\u8ff0\u5927\u90e8\u5206\u5e38\u7528\u7684\u5951\u7ea6\u4fe1\u606f\uff0c\u4f46\u662f\u4ecd\u7136\u4e0d\u8db3\u4ee5\u63cf\u8ff0\u6240\u6709\u5951\u7ea6\u4fe1\u606f\u3002\u53ef\u4ee5\u6df7\u5408 \u4f7f\u7528 Swagger \u6ce8\u89e3\uff0c\u8fdb\u4e00\u6b65\u8865\u5145\u5951\u7ea6\u4fe1\u606f\uff0c\u4f7f\u5f97\u5951\u7ea6\u4fe1\u606f\u66f4\u52a0\u5b8c\u6574\u3002\u5f53 Spring MVC \u6216\u8005 JAR RS \u6ce8\u89e3\u63cf\u8ff0\u7684\u4fe1\u606f\u4e0e Swagger \u6ce8\u89e3\u63cf\u8ff0\u7684\u4fe1\u606f\u91cd\u590d\u65f6\uff0c\u4ee5 Swagger \u6ce8\u89e3\u63cf\u8ff0\u7684\u4fe1\u606f\u4e3a\u51c6\uff0c\u5373 Swagger \u6ce8\u89e3\u5177\u6709\u66f4\u9ad8\u7684\u4f18\u5148\u7ea7\u3002</p> <p>\u5173\u4e8eSwagger\u6ce8\u89e3\u7684\u542b\u4e49\uff0c\u53ef\u4ee5\u5728Swagger\u6ce8\u89e3\u6587\u6863\u4e2d\u627e\u5230\u5b98\u65b9\u8bf4\u660e\u3002\u53ef\u4ee5\u5bf9 \u7167\u8be5\u5b98\u65b9\u6587\u6863\u4e0e\u672c\u8bf4\u660e\u6765\u4e86\u89e3\u5982\u4f55\u5728ServiceComb\u6846\u67b6\u4e0b\u4f7f\u7528\u6ce8\u89e3\u6307\u5b9aSwagger\u5951\u7ea6\u7684\u5404\u9879\u5c5e\u6027\u3002</p>"},{"location":"build-provider/swagger-annotation.html#api","title":"<code>@Api</code>","text":"<p><code>@Api</code>\u4f5c\u7528\u4e8e\u7c7b\u7ea7\u522b\uff0c\u5728Swagger\u5b98\u65b9\u63cf\u8ff0\u4e2d\u662f\u7528\u4e8e\u5c06\u4e00\u4e2aClass\u6807\u6ce8\u4e3a\u4e00\u4e2aSwagger\u8d44\u6e90\u3002\u4f46\u8be5\u6ce8\u89e3 \u5728ServiceComb\u4e2d\u4e0d\u662f\u5fc5\u987b\u7684\uff0cServiceComb\u53ef\u4ee5\u6839\u636e<code>@RestSchema</code>\u548c<code>@RpcSchema</code>\u786e\u5b9a\u9700\u8981\u4ece\u54ea\u4e9b \u7c7b\u4e2d\u89e3\u6790\u51faSwagger\u5951\u7ea6\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e tags string \u8bbe\u7f6e\u5f53\u524dClass\u4e0b\u5b9a\u4e49\u7684operation\u7684\u9ed8\u8ba4tag\u503c consumes string \u6307\u5b9a\u5951\u7ea6\u7ea7\u522b\u7684\u8bf7\u6c42\u4f53\u6570\u636e\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u9017\u53f7\u5206\u9694\u6307\u5b9a\u591a\u4e2a produces string \u6307\u5b9a\u5951\u7ea6\u7ea7\u522b\u7684\u54cd\u5e94\u4f53\u6570\u636e\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u9017\u53f7\u5206\u9694\u6307\u5b9a\u591a\u4e2a"},{"location":"build-provider/swagger-annotation.html#swaggerdefinition","title":"<code>@SwaggerDefinition</code>","text":"<p>\u4f5c\u7528\u4e8e\u7c7b\u7ea7\u522b\uff0c\u7528\u4e8e\u5b9a\u4e49\u4e00\u4e2aSwagger\u8d44\u6e90\u4e2d\u7684\u4fe1\u606f\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e info.title string \u5951\u7ea6\u6587\u4ef6\u6807\u9898 info.description string \u63cf\u8ff0\u4fe1\u606f info.version string \u5951\u7ea6\u7248\u672c\u53f7 info.termsOfService string \u670d\u52a1\u6761\u6b3e info.contact string \u8054\u7cfb\u4fe1\u606f\uff0c\u5305\u542bname\u3001email\u3001url\u5c5e\u6027 info.license string \u8bb8\u53ef\u8bc1\u4fe1\u606f\uff0c\u5305\u542bname\u3001url\u5c5e\u6027 info.extensions string \u6269\u5c55\u4fe1\u606f consumes string \u63a5\u6536\u7684\u8bf7\u6c42\u683c\u5f0f produces string \u8fd4\u56de\u7684\u5e94\u7b54\u683c\u5f0f schemes SwaggerDefinition.Scheme \u53ef\u9009\u503c\u6709<code>HTTP/HTTPS/WS/WSS/DEFAULT</code> tags <code>@Tag</code> Tag\u5b9a\u4e49\uff0c@Tag\u5305\u542bname\u3001description\u3001externalDocs\u4e09\u4e2a\u5c5e\u6027 externalDocs <code>@externalDocs</code> \u5916\u90e8\u8bf4\u660e\u6587\u6863\u94fe\u63a5\uff0c\u5305\u542bvalue\u3001url\u4e24\u4e2a\u5c5e\u6027"},{"location":"build-provider/swagger-annotation.html#apioperation","title":"<code>@ApiOperation</code>","text":"<p>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u7528\u4e8e\u63cf\u8ff0\u4e00\u4e2aSwagger operation\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e value string \u65b9\u6cd5\u7684\u7b80\u8981\u8bf4\u660e\uff0c\u5bf9\u5e94\u4e8eSwagger\u5951\u7ea6operation\u7684<code>summary</code>\u5b57\u6bb5 notes string \u8be6\u7ec6\u4fe1\u606f\uff0c\u5bf9\u5e94\u4e8eSwagger\u5951\u7ea6operation\u7684<code>description</code>\u5b57\u6bb5 tags string \u6807\u6ce8operation\u7684\u6807\u7b7e code int \u54cd\u5e94\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801 response Class&lt;?&gt; \u65b9\u6cd5\u8fd4\u56de\u503c\u7c7b\u578b responseContainer string \u5305\u88c5\u8fd4\u56de\u503c\u7684\u5bb9\u5668\u7c7b\u578b\uff0c\u53ef\u9009\u503c\u4e3a<code>List</code>\u3001<code>Set</code>\u3001<code>Map</code> responseHeaders <code>@ResponseHeader</code> \u54cd\u5e94\u6d88\u606f\u7684HTTP\u5934\uff0cServiceComb\u652f\u6301\u7684\u5c5e\u6027\u503c\u4e3a<code>name</code>\u3001<code>response</code>\u3001<code>responseContainer</code> consumes string \u6307\u5b9a\u8bf7\u6c42\u4f53\u7684\u6570\u636e\u683c\u5f0f produces string \u6307\u5b9a\u54cd\u5e94\u4f53\u7684\u6570\u636e\u683c\u5f0f protocols string \u8bbe\u7f6e\u53ef\u7528\u7684\u534f\u8bae\uff08schemes\uff09\uff0c\u53ef\u9009\u503c\u6709<code>http</code>\u3001<code>https</code>\u3001<code>ws</code>\u3001<code>wss</code>\uff0c\u9017\u53f7\u5206\u9694 httpMethod string \u8bbe\u7f6eHTTP\u65b9\u6cd5 hidden boolean \u662f\u5426\u9690\u85cf\u6b64\u65b9\u6cd5"},{"location":"build-provider/swagger-annotation.html#apiimplicitparam","title":"<code>@ApiImplicitParam</code>","text":"<p>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u7528\u4e8e\u8bf4\u660eSwagger\u6587\u6863\u4e2doperation\u7684\u53c2\u6570\u7684\u5c5e\u6027\u3002</p> <p>\u6ce8\u610f\uff1aServiceComb\u53ef\u4ee5\u6839\u636e\u4ee3\u7801\u548cSpringMVC\u3001JAX-RS\u7684\u6ce8\u89e3\u81ea\u52a8\u63a8\u65ad\u51fa\u53c2\u6570\u540d\u79f0\u3002\u5982\u679c<code>@ApiImplicitParam</code>\u914d\u7f6e\u7684\u53c2\u6570\u540d\u79f0\u4e0e\u81ea\u52a8\u63a8\u65ad\u7684\u53c2\u6570\u540d\u4e0d\u540c\uff0c\u5219\u5219\u8be5\u6ce8\u89e3\u914d\u7f6e\u7684\u53c2\u6570\u5c06\u88ab\u4f5c\u4e3a\u4e00\u4e2a\u65b0\u7684\u53c2\u6570\u52a0\u5165\u5230\u6ce8\u89e3\u6240\u5728\u7684operation\u4e2d\uff1b\u5426\u5219\u5c06\u8986\u76d6\u540c\u540d\u53c2\u6570\u7684\u5c5e\u6027\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e name string \u53c2\u6570\u540d\u79f0 value string \u53c2\u6570\u8bf4\u660e required boolean \u662f\u5426\u662f\u5fc5\u586b\u53c2\u6570 dataType string \u53c2\u6570\u6570\u636e\u7c7b\u578b paramType string \u53c2\u6570\u4f4d\u7f6e\uff0c\u6709\u6548\u7684\u53ef\u9009\u503c\u4e3apath/query/body/header/form allowableValues string \u53c2\u6570\u7684\u6709\u6548\u503c\u8303\u56f4 allowEmptyValue boolean \u662f\u5426\u5141\u8bb8\u7a7a\u503c allowMultiple boolean \u662f\u5426\u5141\u8bb8\u591a\u4e2a\u503c\uff08\u82e5\u4e3atrue\uff0c\u5219\u53ef\u4ee5\u5c06\u53c2\u6570\u4f5c\u4e3a\u6570\u7ec4\uff09 collectionFormat string \u4ee5\u4f55\u79cd\u683c\u5f0f\u6307\u5b9a\u53c2\u6570\u6570\u7ec4\uff0c\u5f53\u524dServiceComb\u652f\u6301\u7684\u503c\u4e3a<code>csv/multi</code> defaultValue string \u53c2\u6570\u9ed8\u8ba4\u503c example string \u4e00\u4e2a\u975ebody\u53c2\u6570\u7684\u793a\u4f8b\u503c format string \u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u6570\u636e\u683c\u5f0f\uff0c\u8be6\u60c5\u53c2\u89c1Swagger\u5b98\u65b9\u6587\u6863"},{"location":"build-provider/swagger-annotation.html#apiimplicitparams","title":"<code>@ApiImplicitParams</code>","text":"<p><code>@ApiImplicitParams</code>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u3001\u7c7b\u7ea7\u522b\uff0c\u7528\u4e8e\u6279\u91cf\u6307\u5b9a\u591a\u4e2a<code>@ApiImplicitParam</code>\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e value <code>@ApiImplicitParam</code> \u53c2\u6570\u5b9a\u4e49"},{"location":"build-provider/swagger-annotation.html#apiresponse","title":"<code>@ApiResponse</code>","text":"<p>\u7528\u4e8e\u63cf\u8ff0\u8fd4\u56de\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801\u6240\u8868\u8fbe\u7684\u542b\u4e49\u3002\u901a\u5e38<code>@ApiOperation</code>\u53ef\u4ee5\u8868\u793a\u4e00\u4e2a\u6b63\u5e38\u60c5\u51b5\u8fd4\u56de\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801\uff0c\u5176\u4ed6\u60c5\u5f62\u4e0b\u7684HTTP\u72b6\u6001\u7801\u7531\u672c\u6ce8\u89e3\u63cf\u8ff0\u3002\u6839\u636eSwagger\u5b98\u65b9\u6587\u6863\u7684\u63cf\u8ff0\uff0c\u672c\u6ce8\u89e3\u4e0d\u5e94\u8be5\u76f4\u63a5\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u800c\u5e94\u8be5\u88ab\u5305\u542b\u5728<code>@ApiResponses</code>\u4e2d\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e code int \u8fd4\u56de\u6d88\u606f\u7684HTTP\u72b6\u6001\u7801 message string \u8fd4\u56de\u503c\u7684\u8bf4\u660e\u4fe1\u606f response Class&lt;?&gt; \u8fd4\u56de\u503c\u7684\u7c7b\u578b responseContainer string \u8fd4\u56de\u503c\u7684\u5305\u88c5\u5bb9\u5668\uff0c\u53ef\u9009\u503c\u4e3a<code>List/Set/Map</code> responseHeaders @ResponseHeader \u63cf\u8ff0\u4e00\u7ec4\u8fd4\u56de\u6d88\u606f\u7684HTTP\u5934\uff0cServiceComb\u652f\u6301\u7684<code>@ResponseHeader</code>\u7684\u5c5e\u6027\u6709<code>name</code>\u3001<code>description</code>\u3001<code>response</code>\u3001<code>responseContainer</code>"},{"location":"build-provider/swagger-annotation.html#apiresponses","title":"<code>@ApiResponses</code>","text":"<p>\u4f5c\u7528\u4e8e\u65b9\u6cd5\u3001\u7c7b\u7ea7\u522b\uff0c\u7528\u4e8e\u6307\u5b9a\u548c\u8bf4\u660e\u4e00\u7ec4\u8fd4\u56de\u503c\u3002</p> \u5c5e\u6027 \u7c7b\u578b \u8bf4\u660e value <code>@ApiResponse</code> \u8fd4\u56de\u6d88\u606f\u8bf4\u660e"},{"location":"build-provider/thread-pool.html","title":"\u7ebf\u7a0b\u6c60","text":"<p>\u7ebf\u7a0b\u6c60\u7528\u4e8e\u6267\u884c\u540c\u6b65\u6a21\u5f0f\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u7f51\u7edc\u6536\u53d1\u53careactive\u6a21\u5f0f\u7684\u4e1a\u52a1\u903b\u8f91\u5728 event-loop \u4e2d\u6267\u884c\uff0c\u4e0e\u7ebf\u7a0b\u6c60\u65e0\u5173\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c  Consumer \u548c Provider \u7684 \u4e1a\u52a1\u903b\u8f91\u4ee3\u7801\u7684\u6267\u884c\u90fd\u662f\u5728\u7ebf\u7a0b\u6c60\u91cc\u9762\uff0c Edge Service \u7684\u4e1a\u52a1\u903b\u8f91\u6267\u884c\u5728 event-loop \u91cc\u9762\u3002 </p> <p>Java Chassis \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u5c40\u7684\u5185\u7f6e\u7ebf\u7a0b\u6c60\uff0c \u5982\u679c\u4e1a\u52a1\u6709\u7279\u6b8a\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u6307\u5b9a\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u5168\u5c40\u7ebf\u7a0b\u6c60\uff0c\u5e76\u4e14\u53ef\u4ee5\u6839 \u636e schemaId \u6216 operationId \u6307\u5b9a\u5404\u81ea\u4f7f\u7528\u72ec\u7acb\u7684\u7ebf\u7a0b\u6c60\uff0c\u5b9e\u73b0\u9694\u79bb\u4ed3\u7684\u6548\u679c\u3002   </p>"},{"location":"build-provider/thread-pool.html#_2","title":"\u5b9a\u5236\u7ebf\u7a0b\u6c60","text":"<ul> <li>\u5b9e\u73b0\u7ebf\u7a0b\u6c60     \u4e0b\u9762\u7684\u65b9\u6cd5\u4efb\u9009\u5176\u4e00\u5373\u53ef<ul> <li>\u5b9e\u73b0<code>java.util.concurrent.Executor</code>\u63a5\u53e3\uff0c \u4e3a\u4e86\u652f\u6301\u4f18\u96c5\u9000\u51fa\uff0c\u5982\u679c\u5185\u90e8\u7ebf\u7a0b\u672a\u8bbe\u7f6e\u4e3adaemon\u7ebf\u7a0b\uff0c\u5219\u8fd8\u9700\u8981\u5b9e\u73b0<code>java.io.Closeable</code>\u63a5\u53e3\uff0c\u8d1f\u8d23\u9500\u6bc1\u7ebf\u7a0b\u6c60</li> <li>\u5b9e\u73b0<code>java.util.concurrent.ExecutorService</code>\u63a5\u53e3</li> </ul> </li> <li>\u5c06\u5b9e\u73b0\u7684\u7ebf\u7a0b\u6c60\u58f0\u660e\u4e3a spring bean</li> <li>\u542f\u7528\u7ebf\u7a0b\u6c60   \u5047\u8bbe\u65b0\u7ebf\u7a0b\u6c60bean id\u4e3acustom-executor</li> <li>\u66ff\u6362\u5168\u5c40\u7ebf\u7a0b\u6c60\uff1a<code>servicecomb.executors.default: custom-executor</code></li> <li>\u6307\u5b9aschema\u4e13\u7528\u7684\u7ebf\u7a0b\u6c60: <code>servicecomb.executors.Provider.${microserviceId}.${schemaId}: custom-executor</code></li> <li>\u6307\u5b9aoperation\u4e13\u7528\u7684\u7ebf\u7a0b\u6c60: <code>servicecomb.executors.Provider.${microserviceId}.${schemaId}.${operationId}: custom-executor</code></li> <li>\u6307\u5b9amicroservice\u4e13\u7528\u7684\u7ebf\u7a0b\u6c60: <code>servicecomb.executors.Provider.${microserviceId}: custom-executor</code>     \u5176\u4e2dmicroserviceId\u4e3a\u53ef\u9009\u9879\uff0c\u5728edge service\u4e2d\u7528\u4ee5\u533a\u5206\u4e0d\u540c\u7684microservice</li> </ul>"},{"location":"build-provider/thread-pool.html#java-chassis","title":"Java Chassis \u5185\u7f6e\u7ebf\u7a0b\u6c60","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u4e24\u4e2a\u5185\u7f6e\u7684\u7ebf\u7a0b\u6c60\uff0c<code>servicecomb.executor.groupThreadPool</code> \u548c <code>servicecomb.executor.reactive</code>\u3002 \u524d\u8005 \u662f\u540c\u6b65\u7ebf\u7a0b\u6c60\uff0c\u5728Consumer\u548cProvider\u9ed8\u8ba4\u542f\u7528\uff1b\u540e\u8005\u662f\u5f02\u6b65\u7ebf\u7a0b\u6c60\uff0c\u5728Edge Service\u9ed8\u8ba4\u542f\u7528\u3002 </p>"},{"location":"build-provider/thread-pool.html#_3","title":"\u540c\u6b65\u7ebf\u7a0b\u6c60","text":"<p>\u4e00\u822c\u7684\u7ebf\u7a0b\u6c60\u90fd\u662f\u6240\u6709\u7ebf\u7a0b\u5171\u4eab\u4e00\u4e2a\u4efb\u52a1\u961f\u5217\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u7f51\u7edc\u7ebf\u7a0b\u9700\u8981\u5411\u540c\u4e00\u4e2a\u961f\u5217\u7533\u8bf7\u8bf7\u6c42\u5165\u961f\uff0c\u7ebf\u7a0b\u6c60\u4e2d\u7684\u6240\u6709\u7ebf\u7a0b\u9700\u8981\u4ece\u540c\u4e00\u4e2a\u961f\u5217\u4e2d\u62a2\u4efb\u52a1\u6267\u884c\uff0c\u5bf9\u4e8e\u9ad8\u541e\u5410\u7684\u573a\u666f\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u7ade\u4e89\u51b2\u7a81\uff0c\u5f62\u6210\u6027\u80fd\u74f6\u9888 \u6240\u4ee5\uff0c\u4e3a\u4e86\u63d0\u5347\u6027\u80fd\uff0cJava Chassis\u5185\u7f6e\u7ebf\u7a0b\u6c60\u5b9e\u9645\u662f\u771f\u6b63\u7ebf\u7a0b\u6c60\u7684\u5305\u88c5\uff0c\u5141\u8bb8\u5728\u5176\u5185\u90e8\u914d\u7f6e\u591a\u7ec4\u7ebf\u7a0b\u6c60\uff0c\u4e14\u6bcf\u4e2a\u7f51\u7edc\u7ebf\u7a0b\u7ed1\u5b9a\u4e00\u7ec4\u7ebf\u7a0b\u6c60\uff0c\u4ee5\u51cf\u5c0f\u7ade\u4e89\u51b2\u7a81 </p> <ul> <li>1.2.0\u4e4b\u524d\u7684\u7248\u672c</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.executor.default.group 2 \u521b\u5efa\u51e0\u7ec4\u7ebf\u7a0b\u6c60 servicecomb.executor.default.thread-per-group CPU\u6570 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u7ebf\u7a0b\u6570 <ul> <li>\u5927\u4e8e\u7b49\u4e8e1.2.0\u7684\u7248\u672c</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.executor.default.group 2 \u521b\u5efa\u51e0\u7ec4\u7ebf\u7a0b\u6c60 servicecomb.executor.default.thread-per-group 100 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u6700\u5927\u7ebf\u7a0b\u6570Deprecated\uff0c\u65b0\u540d\u5b57\uff1amaxThreads-per-group servicecomb.executor.default.coreThreads-per-group 25 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u6700\u5c0f\u7ebf\u7a0b\u6570\u7ebf\u7a0b\u4e0d\u4f1a\u9884\u521b\u5efa\uff0c\u800c\u662f\u5df2\u7ecf\u521b\u5efa\u540e\uff0c\u53ea\u6709\u5927\u4e8e\u8fd9\u4e2a\u503c\u7684\u7ebf\u7a0b\uff0c\u624d\u4f1a\u56e0idle\u800c\u9500\u6bc1 servicecomb.executor.default.maxThreads-per-group 100 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u7684\u6700\u5927\u7ebf\u7a0b\u6570 servicecomb.executor.default.maxIdleSecond-per-group 60 \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u4e2d\u8d85\u8fc7coreThreads-per-group\u7684\u7ebf\u7a0b\uff0c\u5982\u679cidle\u8d85\u65f6\uff0c\u5219\u4f1a\u9500\u6bc1\u8be5\u7ebf\u7a0b servicecomb.executor.default.maxQueueSize-per-group Integer.MAX_VALUE \u6bcf\u7ec4\u7ebf\u7a0b\u6c60\u4e2d\u4efb\u52a1\u961f\u5217\u7684\u6700\u5927\u957f\u5ea6 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2"},{"location":"build-provider/thread-pool.html#_4","title":"\u5f02\u6b65\u7ebf\u7a0b\u6c60","text":"<p>\u6240\u8c13\u7684\u5f02\u6b65\u7ebf\u7a0b\u6c60\uff0c\u5b9e\u9645\u4e0a\u662f\u6ca1\u6709\u63d0\u4f9b\u989d\u5916\u7684\u7ebf\u7a0b\u6c60\u3002 \u6240\u6709\u7684\u4e1a\u52a1\u903b\u8f91\u76f4\u63a5\u5728 event-loop \u7ebf\u7a0b\u6c60\u6267\u884c\u3002 \u4f7f\u7528\u5f02\u6b65\u7ebf\u7a0b\u6c60\uff0c\u4e1a\u52a1\u4ee3\u7801\u4e0d\u80fd\u591f\u5b58\u5728\u963b\u585e\u64cd\u4f5c\u3002 \u5e38\u89c1\u7684\u963b\u585e\u64cd\u4f5c\u5305\u62ec</p> <ul> <li>\u4f7f\u7528\u540c\u6b65API\uff0c\u8c03\u7528\u5176\u4ed6\u5fae\u670d\u52a1\uff0c\u6bd4\u5982 RestTemplate\u3001\u900f\u660eRPC\u7b49\u3002</li> <li>\u7279\u522b\u8017\u65f6\u7684\u4efb\u52a1\u3002\u6bd4\u5982\u7b49\u5f85IO\u3001\u7b49\u5f85\u9501\u3001Sleep\u7b49\u3002</li> </ul>"},{"location":"build-provider/transparent-rpc.html","title":"\u7528\u900f\u660eRPC\u5f00\u53d1\u5fae\u670d\u52a1","text":""},{"location":"build-provider/transparent-rpc.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u662f\u4e00\u79cd\u57fa\u4e8e\u63a5\u53e3\u548c\u63a5\u53e3\u5b9e\u73b0\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u670d\u52a1\u7684\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u4f7f\u7528Spring MVC\u548cJAX-RS\u6ce8\u89e3\u3002</p> <p>\u900f\u660eRPC\u4f8b\u5b50 \u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4f7f\u7528\u3002</p>"},{"location":"build-provider/transparent-rpc.html#_2","title":"\u5f00\u53d1\u793a\u4f8b","text":"<p>\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u652f\u6301Spring xml\u914d\u7f6e\u548c\u6ce8\u89e3\u914d\u7f6e\u4e24\u79cd\u670d\u52a1\u53d1\u5e03\u65b9\u5f0f\uff0c\u901a\u8fc7Spring xml\u914d\u7f6e\u7684\u65b9\u5f0f\u5982\u4e0b\uff1a</p>"},{"location":"build-provider/transparent-rpc.html#1","title":"\u6b65\u9aa4 1\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u3002","text":"<p>\u6839\u636e\u5f00\u53d1\u4e4b\u524d\u5b9a\u4e49\u597d\u7684\u5951\u7ea6\uff0c\u7f16\u5199Java\u4e1a\u52a1\u63a5\u53e3\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public interface Hello {\n    String sayHi(String name);\n    String sayHello(Person person);\n}\n\npublic interface Compute {\n  int add(int a, int b);\n  int multi(int a, int b);\n  int sub(int a, int b);\n  int divide(int a, int b);\n}\n\n</code></pre>"},{"location":"build-provider/transparent-rpc.html#2","title":"\u6b65\u9aa4 2\u5b9e\u73b0\u670d\u52a1","text":"<p>Hello\u7684\u670d\u52a1\u5b9e\u73b0\u5982\u4e0b\uff1a</p> <p>\u8bf4\u660e\uff1a \u6bcf\u4e00\u4e2a\u670d\u52a1\u63a5\u53e3\u90fd\u9700\u8981\u5b9a\u4e49\u4e00\u4e2aschema\u58f0\u660e\u3002</p> <ul> <li>\u5728\u63a5\u53e3Hello \u548c Compute \u7684\u5b9e\u73b0\u7c7b\u4e0a\u4f7f\u7528@RpcSchema\u6ce8\u89e3\u5b9a\u4e49schema\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</li> </ul> <pre><code>@RpcSchema(schemaId = \"hello\")\npublic class HelloImpl implements Hello {\n    @Override\n    public String sayHi(String name) {\n        return \"Hello \" + name;\n    }\n\n    @Override\n    public String sayHello(Person person) {\n        return \"Hello person \" + person.getName();\n    }\n}\n\n@RpcSchema(schemaId = \"codeFirstCompute\")\npublic class CodeFirstComputeImpl implements Compute {\n  @Override\n  public int add(int a, int b) {\n    return a + b;\n  }\n\n  @Override\n  public int multi(int a, int b) {\n    return a * b;\n  }\n\n  @Override\n  public int sub(int a, int b) {\n    return a - b;\n  }\n\n  @Override\n  public int divide(int a, int b) {\n    if (b != 0) {\n      return a / b;\n    }\n    return 0;\n  }\n}\n</code></pre>"},{"location":"build-provider/transparent-rpc.html#3","title":"\u6b65\u9aa4 3\u53d1\u5e03\u670d\u52a1","text":"<ul> <li>\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u65b9\u5f0f</li> </ul> <p>\u5728resources/META-INF/spring\u76ee\u5f55\u4e0b\u7684pojoHello.bean.xml\u6587\u4ef6\u4e2d\uff0c\u914d\u7f6eSpring\u8fdb\u884c\u670d\u52a1\u626b\u63cf\u7684base-package\uff0c\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;beans xmlns=\" http://www.springframework.org/schema/beans \" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance \"\n       xmlns:p=\" http://www.springframework.org/schema/p \" xmlns:util=\" http://www.springframework.org/schema/util \"\n       xmlns:cse=\" http://www.huawei.com/schema/paas/cse/rpc \"\n       xmlns:context=\" http://www.springframework.org/schema/context \"\n       xsi:schemaLocation=\" http://www.springframework.org/schema/beans classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.huawei.com/schema/paas/cse/rpc classpath:META-INF/spring/spring-paas-cse-rpc.xsd\"&gt;\n\n    &lt;context:component-scan base-package=\"org.apache.servicecomb.samples.pojo.provider\"/&gt;\n&lt;/beans&gt;\n</code></pre>"},{"location":"build-provider/transparent-rpc.html#4","title":"\u6b65\u9aa4 4 \u542f\u52a8\u670d\u52a1","text":"<pre><code>public class PojoProviderMain {\n\n  public static void main(String[] args) throws Exception {\n    Log4jUtils.init();\n    BeanUtils.init();\n  }\n}\n</code></pre> <p>\u8bf4\u660e\uff1a \u4e0eSpring MVC\u5f00\u53d1\u6a21\u5f0f\u548cJAX-RS\u5f00\u53d1\u6a21\u5f0f\u4e0d\u540c\u7684\u662f\uff0c\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4f7f\u7528\u7684\u6ce8\u89e3\u662f<code>@RpcSchema</code>\u800c\u975e<code>@RestSchema</code>\u3002</p>"},{"location":"build-provider/use-interface.html","title":"\u53ea\u53d1\u5e03interface\u7684\u65b9\u6cd5\u4e3a\u670d\u52a1\u63a5\u53e3","text":"<p>\u4e0d\u7ba1\u91c7\u7528 <code>JAX RS</code>, <code>Spring MVC</code>\uff0c \u8fd8\u662f\u91c7\u7528 <code>\u900f\u660eRPC</code> \u5f00\u53d1\uff0c java-chassis \u9ed8\u8ba4\u4f1a\u626b\u63cf\u5b9e\u73b0\u7c7b\u7684\u6240\u6709\u65b9\u6cd5\uff0c \u5c06 <code>public</code> \u65b9\u6cd5\u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\u3002 \u4ece 2.1.1 \u7248\u672c\u5f00\u59cb\uff0c \u589e\u52a0\u4e86 <code>schemaInterface</code> \u5c5e\u6027\uff0c \u5b9e\u73b0\u7c7b\u53ef\u4ee5\u901a\u8fc7 \u5b9e\u73b0 <code>schemaInterface</code> \u5bf9\u5e94\u7684\u63a5\u53e3\uff0c \u6700\u7ec8\u53ea\u6709 <code>schemaInterface</code> \u7684\u65b9\u6cd5\u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\u3002 </p>"},{"location":"build-provider/use-interface.html#jax-rs","title":"JAX RS \u7684\u4f8b\u5b50","text":"<p>\u9996\u5148\u5b9a\u4e49\u63a5\u53e3\uff1a</p> <pre><code>@Path(\"/jaxrs/schemaInterface\")\n@Produces(MediaType.APPLICATION_JSON)\npublic interface SchemeInterfaceJaxrs {\n  @Path(\"/add\")\n  @GET\n  public int add(@Min(1) @RequestParam(\"a\") int a, @Min(1) @RequestParam(\"b\") int b);\n\n  @Path(\"/interfaceModel\")\n  @GET\n  Page&lt;String&gt; interfaceModel(Page&lt;String&gt; model);\n}\n</code></pre> <p>\u5b9e\u73b0\u7c7b\u6307\u5b9a <code>schemaInterface</code>:</p> <pre><code>@RestSchema(schemaId = \"SchemeInterfaceJaxrs\", schemaInterface = SchemeInterfaceJaxrs.class)\npublic class SchemeInterfaceJaxrsImpl implements SchemeInterfaceJaxrs {\n  @Override\n  public int add(@Min(1) int a, @Min(1) int b) {\n    return a + b;\n  }\n\n  public int reduce(int a, int b) {\n    return a - b;\n  }\n\n  @Override\n  public Page&lt;String&gt; interfaceModel(Page&lt;String&gt; model) {\n    return model;\n  }\n}\n</code></pre> <p>\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u53ea\u6709 <code>add</code> \u548c <code>interfaceModel</code> \u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\uff0c <code>reduce</code> \u4e0d\u4f1a\u53d1\u5e03\u4e3a\u670d\u52a1\u63a5\u53e3\u3002 \u5ba2\u6237\u7aef \u901a\u8fc7\u900f\u660e RPC \u7684\u65b9\u5f0f\u8bbf\u95ee\uff1a</p> <pre><code>public interface SchemeInterfaceJaxrs {\n  int add(int a, int b);\n\n  int reduce(int a, int b);\n\n  Page&lt;String&gt; interfaceModel(Page&lt;String&gt; model);\n}\n\n\n@RpcReference(schemaId = \"SchemeInterfaceJaxrs\", microserviceName = \"jaxrs\")\nprivate SchemeInterfaceJaxrs jaxrs;\n\npublic void testAllTransport() throws Exception {\n    TestMgr.check(3, jaxrs.add(1, 2));\n\n    try {\n      jaxrs.reduce(1, 3);\n      TestMgr.failed(\"should throw exception\", new Exception());\n    } catch (Exception e) {\n      TestMgr.check(\n          \"Consumer method org.apache.servicecomb.demo.jaxrs.client.SchemeInterfaceJaxrs:reduce \"\n              + \"not exist in contract, microserviceName=jaxrs, schemaId=SchemeInterfaceJaxrs; \"\n              + \"new producer not running or not deployed.\",\n          e.getMessage());\n    }\n}\n</code></pre> <p>\u8bbf\u95ee <code>reduce</code> \u4f1a\u629b\u51fa\u5f02\u5e38\uff0c \u8bbf\u95ee <code>add</code> \u80fd\u591f\u5f97\u5230\u6b63\u786e\u7684\u7ed3\u679c\u3002 </p>"},{"location":"build-provider/use-interface.html#spring-mvc-rpc","title":"Spring MVC \u548c \u900f\u660eRPC","text":"<p>\u8fd9\u4e24\u79cd\u65b9\u5f0f\u548c JAX RS \u7c7b\u4f3c\uff0c\u4e0d\u8be6\u7ec6\u4e3e\u4f8b\u4e86\u3002 \u4f7f\u7528 @RestSchema\uff0c @RpcSchema \u7684\u65f6\u5019\uff0c \u76f8\u5173\u7684 Annotation \u5fc5\u987b \u5728 schemaInterface \u58f0\u660e\uff0c \u5728\u5b9e\u73b0\u7c7b\u58f0\u660e\u65e0\u6548\uff0c\u8fd9\u4e9b Annotation \u5305\u62ec <code>JAX RS</code>, <code>Spring MVC</code>  \u548c <code>Swagger \u6ce8\u89e3</code> \u3002 \u540c\u65f6\u9700\u8981\u6ce8\u610f\uff0c\u7531\u4e8e @Path, @RequestMapping \u8fd9\u4e9b Annotation \u53ea\u80fd\u5728 schemaInterface \u58f0\u660e, \u6bcf\u4e2a\u63a5\u53e3\u7684 URL \u5fc5\u987b\u552f\u4e00\uff0c\u6240\u4ee5\u8fd9\u4e2a\u529f\u80fd\u9650\u5236\u4e86\u4e00\u4e2a\u63a5\u53e3\u53ea\u80fd\u5b9a\u4e49\u4e00\u4e2a\u5b9e\u73b0\u7c7b\u3002 </p>"},{"location":"build-provider/definition/heartbeats.html","title":"Heartbeats","text":""},{"location":"build-provider/definition/heartbeats.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u5f53\u5fae\u670d\u52a1\u5b9e\u4f8b\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u540e\uff0c\u5fae\u670d\u52a1\u9700\u8981\u5b9a\u65f6\u5411\u670d\u52a1\u4e2d\u5fc3\u53d1\u9001\u5fc3\u8df3\u3002\u82e5\u670d\u52a1\u4e2d\u5fc3\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709\u6536\u5230\u5fc3\u8df3\u4fe1\u606f\uff0c\u5219\u4f1a\u6ce8\u9500\u6b64\u5b9e\u4f8b\u3002</p>"},{"location":"build-provider/definition/heartbeats.html#api","title":"\u6d89\u53caAPI","text":"<ul> <li><code>org.apache.servicecomb.serviceregistry.client.ServiceRegistryClient</code>\uff1a\u670d\u52a1\u4e2d\u5fc3\u5ba2\u6237\u7aef</li> </ul>"},{"location":"build-provider/definition/heartbeats.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p><code>ServiceRegistryClient</code>\u63d0\u4f9b\u4e86\u53d1\u9001\u5fc3\u8df3\u7684\u65b9\u6cd5<code>heartbeat</code>\uff0c\u7528\u6237\u76f4\u63a5\u8c03\u7528\u5373\u53ef\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public static void main(String[] args) throws Exception {\n    // \u9996\u5148\u9700\u8981\u6ce8\u518c\u5fae\u670d\u52a1\u548c\u5b9e\u4f8b\u2026\u2026\n    // \u53d1\u9001\u5fc3\u8df3\uff0c\u4e0d\u7136\u5b9e\u4f8b\u4f1a\u6d88\u5931\n    while (true) {\n        System.out.println(\"heartbeat sended:\" + client.heartbeat(service2.getServiceId(), instance.getInstanceId()));\n        Thread.sleep(3000);\n    }\n}\n</code></pre>"},{"location":"build-provider/definition/isolate-relationship.html","title":"Isolate relationship","text":""},{"location":"build-provider/definition/isolate-relationship.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4e86\u89e3\u672c\u5fae\u670d\u52a1\u80fd\u591f\u53d1\u73b0\u90a3\u4e9b\u5176\u4ed6\u670d\u52a1\u7684\u5b9e\u4f8b\u3002ServiceComb\u63d0\u4f9b\u4e86\u5206\u5c42\u6b21\u7684\u5b9e\u4f8b\u9694\u79bb\u3002</p>"},{"location":"build-provider/definition/isolate-relationship.html#_2","title":"\u5fae\u670d\u52a1\u5b9e\u4f8b\u5206\u5c42\u7ba1\u7406","text":"<p>\u8981\u4e86\u89e3\u5b9e\u4f8b\u95f4\u7684\u9694\u79bb\u5c42\u6b21\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3ServiceComb\u5b9a\u4e49\u7684\u4e00\u4e2a\u4f53\u7cfb\u5b8c\u5907\u7684\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\uff1a</p> <p></p> <p>\u5728\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\u4e2d\uff0c\u9876\u5c42\u662f\u201c\u9879\u76ee\u201d\uff0c\u5728\u9879\u76ee\u4e0b\u5206\u4e3a\u591a\u4e2a\u79df\u6237\uff0c\u79df\u6237\u4e2d\u5305\u542b\u591a\u4e2a\u5e94\u7528\uff0c\u800c\u6bcf\u4e2a\u5e94\u7528\u7531\u5305\u542b\u591a\u4e2a\u73af\u5883\uff0c\u5373\u6d4b\u8bd5\u548c\u751f\u4ea7\u73af\u5883\u53ef\u4ee5\u5206\u5f00\u3002\u5728\u67d0\u4e2a\u7279\u5b9a\u5e94\u7528\u7684\u7279\u5b9a\u73af\u5883\u4e2d\uff0c\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff0c\u800c\u4e00\u4e2a\u5fae\u670d\u52a1\u53c8\u53ef\u4ee5\u540c\u65f6\u5b58\u5728\u591a\u4e2a\u7248\u672c\u3002\u4ee5\u4e0a\uff0c\u662f\u6240\u6709\u9759\u6001\u5143\u6570\u636e\u7684\u8303\u7574\uff0c\u67d0\u4e2a\u7279\u5b9a\u670d\u52a1\u7684\u7279\u5b9a\u7248\u672c\u5219\u5305\u542b\u591a\u4e2a\u5728\u8fd0\u884c\u65f6\u6ce8\u518c\u4e0a\u6765\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u56e0\u4e3a\u670d\u52a1\u5b9e\u4f8b\u7684\u4fe1\u606f\u5728\u8fd0\u884c\u65f6\u968f\u7740\u7cfb\u7edf\u7684\u4f38\u7f29\u3001\u6545\u969c\u7b49\u539f\u56e0\u662f\u52a8\u6001\u53d8\u5316\u7684\uff0c\u6240\u4ee5\u670d\u52a1\u5b9e\u4f8b\u7684\u8def\u7531\u4fe1\u606f\u53c8\u4e3a\u52a8\u6001\u6570\u636e\u3002\u901a\u8fc7\u5206\u5c42\u7ba1\u7406\u5fae\u670d\u52a1\u7684\u8fd9\u4e9b\u6570\u636e\uff0c\u4e5f\u5c31\u81ea\u7136\u800c\u7136\u7684\u5b9e\u73b0\u4e86\u5b9e\u4f8b\u4e4b\u95f4\u7684\u903b\u8f91\u9694\u79bb\u3002</p>"},{"location":"build-provider/definition/isolate-relationship.html#_3","title":"\u9694\u79bb\u5c42\u6b21\u8bf4\u660e","text":"<p>ServiceComb\u652f\u6301\u81ea\u5b9a\u4e49\u5206\u5c42\u914d\u7f6e\uff0c\u6ee1\u8db3\u7528\u6237\u7684\u5b9e\u4f8b\u5206\u5c42\u7ba1\u7406\u9700\u6c42\uff0c\u4ee5\u4e0b\u662f\u5177\u4f53\u914d\u7f6e\u8bf4\u660e\u3002</p> <ul> <li>\u5e94\u7528ID</li> </ul> <p>\u901a\u8fc7APPLICATIOIN_ID\u6765\u5b9a\u4e49\uff0c\u7f3a\u7701\u503c\u4e3adefault\u3002\u5fae\u670d\u52a1\u5728\u53d1\u73b0\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u7f3a\u7701\u53ea\u80fd\u591f\u88ab\u76f8\u540cAPPLICATIOIN_ID\u4e0b\u7684\u6d88\u8d39\u8005\u53d1\u73b0\u3002</p> <ul> <li>Domain\u540d\u79f0</li> </ul> <p>\u901a\u8fc7cse.config.client.domainName\u6765\u5b9a\u4e49\uff0c\u7f3a\u7701\u503c\u4e3adefault\u3002\u4f5c\u4e3a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\uff0c\u7528\u4e8e\u8868\u660e\u81ea\u8eab\u6240\u5c5e\u79df\u6237\u4fe1\u606f\u3002\u5fae\u670d\u52a1\u5728\u53d1\u73b0\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u53ea\u80fd\u88ab\u76f8\u540c\u79df\u6237\u4e0b\u7684\u6d88\u8d39\u8005\u53d1\u73b0\u3002</p> <ul> <li>\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f</li> </ul> <p>\u6570\u636e\u4e2d\u5fc3\u5305\u62ec3\u4e2a\u5c5e\u6027\uff1acse.datacenter.name\uff0c cse.datacenter.region, cse.datacenter.availableZone\u3002\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u4e0d\u63d0\u4f9b\u9694\u79bb\u80fd\u529b\uff0c\u5fae\u670d\u52a1\u53ef\u4ee5\u53d1\u73b0\u5176\u4ed6\u6570\u636e\u4e2d\u5fc3\u7684\u5b9e\u4f8b\u3002\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u542f\u7528\u5b9e\u4f8b\u4eb2\u548c\u6027\uff0c\u6765\u4f18\u5148\u5f80\u6307\u5b9a\u7684\u533a\u57df\u6216\u8005Zone\u53d1\u6d88\u606f\uff1a</p> <pre><code>cse:\n  loadbalance:\n    serverListFilters: zoneaware\n    serverListFilter:\n      zoneaware:\n        className: org.apache.servicecomb.loadbalance.filter.ZoneAwareServerListFilterExt\n</code></pre> <p>\u8fd9\u6837\u914d\u7f6e\u540e\uff0c\u5ba2\u6237\u7aef\u5728\u8def\u7531\u7684\u65f6\u5019\uff0c\u4f1a\u4f18\u5148\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230zone/region\u90fd\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u7136\u540e\u662fregion\u76f8\u540c\uff0c\u4f46zone\u4e0d\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u90fd\u4e0d\u76f8\u540c\u7684\u65f6\u5019\uff0c\u5219\u6309\u7167\u8def\u7531\u89c4\u5219\u9009\u62e9\u4e00\u4e2a\u3002\u4eb2\u548c\u6027\u4e0d\u662f\u903b\u8f91\u9694\u79bb\uff0c\u53ea\u8981\u5b9e\u4f8b\u4e4b\u95f4\u7f51\u7edc\u662f\u8054\u901a\u7684\uff0c\u90a3\u4e48\u90fd\u6709\u53ef\u80fd\u8bbf\u95ee\u5230\uff1b\u5982\u679c\u7f51\u7edc\u4e0d\u901a\uff0c\u5219\u4f1a\u8bbf\u95ee\u5931\u8d25\u3002</p> <ul> <li>\u73af\u5883\u4fe1\u606f</li> </ul> <p>\u5728yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.environment\u6765\u914d\u7f6e\uff0c\u540c\u65f6\u652f\u6301\u901a\u8fc7\u73af\u5883\u53d8\u91cfSERVICECOMB_ENV\u914d\u7f6e\uff0c\u4ec5\u652f\u6301\u4ee5\u4e0b\u679a\u4e3e\u503c development,testing,acceptance,production\uff0c\u7f3a\u7701\u503c\u4e3a\"\"(\u7a7a)\u3002\u5fae\u670d\u52a1\u5728\u53d1\u73b0\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u7f3a\u7701\u53ea\u80fd\u591f\u88ab\u76f8\u540cenvironment\u4e0b\u7684\u6d88\u8d39\u8005\u53d1\u73b0\u3002</p> <pre><code>service_description:\n  environment: production\n</code></pre>"},{"location":"build-provider/definition/isolate-relationship.html#_4","title":"\u4e0e\u534e\u4e3a\u516c\u6709\u4e91\u6982\u5ff5\u7684\u5bf9\u5e94\u5173\u7cfb","text":"<p>\u534e\u4e3a\u516c\u6709\u4e91\u6709\u7c7b\u4f3c\u7684\u6982\u5ff5\uff0c\u5e94\u7528\u3001\u79df\u6237\u3001Project\u3001Cluster\u7b49\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5206\u522b\u5bf9\u5e94\u5230ServiceComb\u7684\u5e94\u7528\u3001\u79df\u6237\u3001Domain\u3001Zone\u7b49\u4fe1\u606f\u3002\u6bd4\u5982\u5728\u516c\u6709\u4e91\u4e0a\u5982\u679cCluster\u5171\u4eabProject\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u901a\u8fc7zone\u6765\u5bf9\u5e94Cluster\uff0c\u5b9e\u73b0\u96c6\u7fa4\u4e4b\u95f4\u7684\u4eb2\u548c\u6027\u8bbf\u95ee\u3002</p>"},{"location":"build-provider/definition/service-definition.html","title":"\u5fae\u670d\u52a1\u5b9a\u4e49","text":"<p>Java Chassis\u5b9a\u4e49\u4e86\u4e00\u7ec4\u57fa\u7840\u7684\u6982\u5ff5\uff0c\u8fd9\u4e9b\u6982\u5ff5\u4f1a\u7528\u4e8e\u5fae\u670d\u52a1\u6ce8\u518c\u53d1\u73b0\u3001\u670d\u52a1\u6cbb\u7406\u7b49\u591a\u79cd\u573a\u666f\u3002\u4e13\u9898\u6587\u7ae0\u5fae\u670d\u52a1\u5b9e\u4f8b\u95f4\u591a\u73af\u5883\u9694\u79bb\u4ecb\u7ecd\u4e86\u4e00\u4e9b\u5e38\u89c1\u5e94\u7528\u573a\u666f\u3002</p> <p>Java Chassis\u6700\u6838\u5fc3\u7684\u51e0\u4e2a\u6982\u5ff5\u5982\u4e0b\u3002</p> <ul> <li>\u73af\u5883\u540d\u79f0\uff1a\u7528\u4e8e\u8868\u793a\u90e8\u7f72\u73af\u5883\uff0c\u4e0d\u540c\u73af\u5883\u7684\u5fae\u670d\u52a1\u4e4b\u95f4\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u73af\u5883\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>namespace</code> \u6765\u8868\u793a\u73af\u5883\u3002</li> <li>\u5e94\u7528\u540d\u79f0\uff1a\u7528\u4e8e\u63cf\u8ff0\u4e00\u7ec4\u53ef\u4ee5\u76f8\u4e92\u8bbf\u95ee\u7684\u5fae\u670d\u52a1\uff0c\u4e0d\u540c\u5e94\u7528\u540d\u79f0\u4e4b\u95f4\u662f\u903b\u8f91\u9694\u79bb\u7684\uff0c\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u5e94\u7528\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>group</code> \u6765\u8868\u793a\u5e94\u7528\u3002 </li> <li>\u5fae\u670d\u52a1\u540d\u79f0\uff1a\u7528\u4e8e\u6807\u8bc6\u4e00\u4e2a\u5fae\u670d\u52a1\u3002\u53ef\u4ee5\u901a\u8fc7\u5fae\u670d\u52a1\u540d\u79f0\u67e5\u8be2\u9700\u8981\u8bbf\u95ee\u7684\u76ee\u6807\u5fae\u670d\u52a1\u3002</li> <li>\u5fae\u670d\u52a1\u7248\u672c\uff1a\u8868\u793a\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u5f53\u5b58\u5728\u5fae\u670d\u52a1\u5c5e\u6027\u53d8\u5316\u3001\u63a5\u53e3\u53d8\u5316\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4fee\u6539\u7248\u672c\u53f7\u3002</li> <li>\u5fae\u670d\u52a1\u63cf\u8ff0\uff1a\u7b80\u5355\u7684\u5fae\u670d\u52a1\u63cf\u8ff0\u4fe1\u606f\u3002</li> <li>\u5fae\u670d\u52a1\u5c5e\u6027\uff1a\u7528\u4e8e\u63cf\u8ff0\u5fae\u670d\u52a1\u7684\u6269\u5c55\u4fe1\u606f\u3002</li> </ul> <p>\u5f00\u53d1\u4e00\u4e2a\u5fae\u670d\u52a1\uff0c\u9700\u8981\u5728 <code>application.yaml</code> \u6587\u4ef6\u4e2d\u914d\u7f6e\u5fae\u670d\u52a1\u7684\u57fa\u672c\u4fe1\u606f\u3002</p> <pre><code>servicecomb:\n  service:\n    application: helloTest\n    name: helloServer \n    version: 0.0.1 \n    properties: \n      key1: value1\n      key2: value2\n    description: This is a description about the microservice\n</code></pre>"},{"location":"build-provider/definition/service-definition.html#_2","title":"\u914d\u7f6e\u9879\u53c2\u8003","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.service.environment - \u5426 \u73af\u5883\u540d\u79f0\uff0c\u6bd4\u5982 development, production \u7b49 servicecomb.service.application default \u662f \u5e94\u7528\u540d\u79f0 servicecomb.service.name defaultMicroservice \u662f \u5fae\u670d\u52a1\u540d\u79f0, \u5e94\u786e\u4fdd\u5e94\u7528\u5185\u90e8\u552f\u4e00\u3002\u5fae\u670d\u52a1\u540d\u652f\u6301\u6570\u5b57\u3001\u5927\u5c0f\u5199\u5b57\u6bcd\u548c\"-\"\u3001\"_\"\u3001\".\"\u4e09\u4e2a\u7279\u6b8a\u5b57\u7b26\uff0c\u4f46\u662f\u4e0d\u80fd\u4ee5\u7279\u6b8a\u5b57\u7b26\u4f5c\u4e3a\u9996\u5c3e\u5b57\u7b26\uff0c\u547d\u540d\u89c4\u8303\u4e3a\uff1a^[a-zA-Z0-9]+$|^[a-zA-Z0-9][a-zA-Z0-9_-.]*[a-zA-Z0-9]$\u3002 servicecomb.service.version 1.0.0.0 \u662f \u5fae\u670d\u52a1\u7248\u672c servicecomb.service.description - \u5426 \u5fae\u670d\u52a1\u63cf\u8ff0 servicecomb.service.properties - \u5426 \u5fae\u670d\u52a1\u5c5e\u6027 <p>\u8bf4\u660e\uff1a</p> <ul> <li>\u5fae\u670d\u52a1\u5c5e\u6027\u4f1a\u968f\u670d\u52a1\u4e00\u540c\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002\u5982\u679c\u5b58\u5728\u53d8\u66f4\uff0c\u5efa\u8bae\u540c\u65f6\u4fee\u6539\u5fae\u670d\u52a1\u7248\u672c\u53f7\u3002</li> <li>\u867d\u7136\u5fae\u670d\u52a1\u540d\u79f0\u53ef\u4ee5\u4f7f\u7528 <code>.</code> \u5b57\u7b26\uff0c\u4f46\u662f\u4e0d\u63a8\u8350\u5728\u547d\u540d\u4e2d\u4f7f\u7528 <code>.</code> \u3002\u8fd9\u662f\u7531\u4e8eyaml\u683c\u5f0f\u7684\u914d\u7f6e\u6587\u4ef6\u5c06 <code>.</code> \u7b26\u53f7\u7528\u4e8e\u5206\u5272\u914d\u7f6e\u9879\u540d\u79f0\uff0c      \u5982\u679c\u5fae\u670d\u52a1\u540d\u79f0\u5305\u542b\u4e86 <code>.</code> \u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u652f\u6301\u5fae\u670d\u52a1\u3001\u5951\u7ea6\u7ea7\u522b\u7684\u914d\u7f6e\u65e0\u6cd5\u6b63\u786e\u88ab\u8bc6\u522b\u3002</li> </ul>"},{"location":"config/apollo.html","title":"\u4f7f\u7528 Apollo","text":"<p>\u6ce8\u610f\uff1a\u672c\u5b9e\u73b0\u4f5c\u4e3a\u9002\u914d Apollo \u7684\u53c2\u8003\uff0c\u6574\u4f53\u903b\u8f91\u529f\u80fd\u548c\u8bbe\u8ba1\u89c4\u683c\u4e0d\u5b8c\u5584\uff0c\u4e0d\u5efa\u8bae\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\u3002 \u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\uff0c\u5efa\u8bae\u57fa\u4e8e Apollo \u63d0\u4f9b\u7684 SDK \u81ea\u884c\u6269\u5c55\u5b9e\u73b0\u3002</p> <p>Apollo \u662f\u643a\u7a0b\u6846\u67b6\u90e8\u95e8\u7814\u53d1\u7684\u5206\u5e03\u5f0f\u914d\u7f6e\u4e2d\u5fc3\u3002 Apollo\u7684\u4e0b\u8f7d\u5b89\u88c5\u8bf7\u53c2\u8003\u5b98\u7f51\u4ecb\u7ecd\u3002</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-apollo&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>apollo:\n  config:\n    serverUri: http://127.0.0.1:8070\n    serviceName: apollo-test\n    env: DEV\n    clusters: test-cluster\n    namespace: application\n    token: xxx\n    refreshInterval: 30\n    firstRefreshInterval: 0\n</code></pre>"},{"location":"config/cse1.html","title":"\u534e\u4e3a\u4e91CSE1.0\u914d\u7f6e\u4e2d\u5fc3","text":"<p>\u6ce8\u610f\uff1aCSE1.0\u914d\u7f6e\u4e2d\u5fc3\u5df2\u7ecf\u9010\u6b65\u4e0b\u7ebf\uff0c \u672c\u5b9e\u73b0\u4ec5\u4f9b\u9057\u7559\u529f\u80fd\u4f7f\u7528\uff0c\u65b0\u529f\u80fd\u4e0d\u5efa\u8bae\u4f7f\u7528\u3002</p> <p>\u534e\u4e3a\u4e91CSE1.0\u914d\u7f6e\u4e2d\u5fc3\u662f\u534e\u4e3a\u4e91CSE\u4ea7\u54c1\u7684\u4e00\u4e2a\u90e8\u4ef6\uff0cjava-chassis \u6700\u65e9\u4f7f\u7528\u5b83\u4f5c\u4e3a\u914d\u7f6e\u4e2d\u5fc3\u3002 \u5bf9\u63a5\u8fd9\u4e2a\u914d\u7f6e\u4e2d\u5fc3\u7684\u4ee3\u7801\u5728 config-cc \u6a21\u5757\u5b9e\u73b0\u3002</p> <p>\u53ef\u4ee5\u4ece \u8f7b\u91cf\u5316\u5fae\u670d\u52a1\u5f15\u64ce \u4e0b\u8f7d\u672c\u5730\u4f7f\u7528\u7684\u7248\u672c\u3002\u4e5f\u53ef\u4ee5 \u76f4\u63a5\u8bbf\u95ee\u534e\u4e3a\u4e91 ServiceStage \u4ea7\u54c1\uff0c\u4f7f\u7528\u5728\u7ebf\u7684\u7248\u672c\u3002</p> <p>\u4f7f\u7528\u534e\u4e3a\u4e91\u914d\u7f6e\u4e2d\u5fc3\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-cc&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  config:\n    client:\n      serverUri: http://127.0.0.1:30113\n      refreshMode: 0\n      refresh_interval: 5000\n      refreshPort: 30114\n</code></pre> <p>\u534e\u4e3a\u4e91\u914d\u7f6e\u4e2d\u5fc3\u7684\u5176\u4ed6\u914d\u7f6e\u9879\u542b\u4e49\u5982\u4e0b\uff1a</p> \u914d\u7f6e\u9879\u540d \u63cf\u8ff0 servicecomb.config.client.refreshMode \u5e94\u7528\u914d\u7f6e\u7684\u5237\u65b0\u65b9\u5f0f\uff0c<code>0</code>\u4e3aconfig-center\u4e3b\u52a8push\uff0c<code>1</code>\u4e3aclient\u5468\u671fpull\uff0c\u9ed8\u8ba4\u4e3a<code>0</code> servicecomb.config.client.refreshPort config-center\u63a8\u9001\u914d\u7f6e\u7684\u7aef\u53e3 servicecomb.config.client.tenantName \u5e94\u7528\u7684\u79df\u6237\u540d\u79f0 servicecomb.config.client.serverUri config-center\u8bbf\u95ee\u5730\u5740\uff0c\u683c\u5f0f\u4e3a<code>http(s)://{ip}:{port}</code>\uff0c\u4ee5<code>,</code>\u5206\u9694\u591a\u4e2a\u5730\u5740 servicecomb.config.client.refresh_interval pull\u6a21\u5f0f\u4e0b\u5237\u65b0\u914d\u7f6e\u9879\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\uff0c\u9ed8\u8ba4\u503c\u4e3a15000 servicecomb.config.client.fileSource \u6307\u5b9a\u8be5\u914d\u7f6e\u9879\u7684\u5185\u5bb9\u4e3ayaml\u6587\u4ef6\uff0c\u591a\u4e2a\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u7528<code>,</code>\u5206\u9694"},{"location":"config/general-config.html","title":"\u670d\u52a1\u914d\u7f6e\u4ecb\u7ecd","text":"<p>\u5e94\u7528\u7a0b\u5e8f\u4e00\u822c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u3001\u73af\u5883\u53d8\u91cf\u7b49\u7ba1\u7406\u914d\u7f6e\u4fe1\u606f\u3002\u5fae\u670d\u52a1\u67b6\u6784\u5bf9\u7edf\u4e00\u914d\u7f6e\u63d0\u51fa\u4e86\u66f4\u9ad8\u7684\u8981\u6c42\uff0c\u5f88\u591a\u914d\u7f6e\u4fe1\u606f\u9700\u8981\u5728\u4e0d\u542f\u505c\u670d\u52a1\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0\u52a8\u6001\u4fee\u6539\u3002 Java Chassis \u652f\u6301\u4e30\u5bcc\u7684\u914d\u7f6e\u6e90\uff0c\u5bf9\u4e0d\u540c\u7684\u914d\u7f6e\u6e90\u8fdb\u884c\u4e86\u62bd\u8c61\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u4e0d\u5173\u5fc3\u914d\u7f6e\u9879\u5177\u4f53\u7684\u914d\u7f6e\u6e90\uff0c\u91c7\u7528\u7edf\u4e00\u7684\u63a5\u53e3\u8bfb\u53d6\u914d\u7f6e\u3002</p>"},{"location":"config/general-config.html#_2","title":"\u914d\u7f6e\u6e90\u5c42\u7ea7","text":"<p>Java \u63d0\u4f9b\u4e86\u5206\u5c42\u6b21\u7684\u914d\u7f6e\u673a\u5236\u3002\u6309\u7167\u4f18\u5148\u7ea7\u4ece\u9ad8\u5230\u4f4e\uff0c\u5206\u4e3a\uff1a</p> <ul> <li>\u914d\u7f6e\u4e2d\u5fc3\uff08\u52a8\u6001\u914d\u7f6e\uff09</li> <li>Java System Property\uff08-D\u53c2\u6570\uff09</li> <li>\u73af\u5883\u53d8\u91cf</li> <li>\u914d\u7f6e\u6587\u4ef6</li> </ul>"},{"location":"config/general-config.html#_3","title":"\u914d\u7f6e\u6587\u4ef6","text":"<ul> <li>microservice.yaml</li> </ul> <p>microservice.yaml \u6587\u4ef6\u662f\u4f18\u5148\u7ea7\u6700\u4f4e\u7684\u914d\u7f6e\u6587\u4ef6\u3002Java Chassis \u542f\u52a8\u65f6\u4f1a\u4ece classpath \u7684\u5404\u4e2a jar \u5305\u3001\u78c1\u76d8\u76ee\u5f55\u4e2d\u52a0\u8f7d microservice.yaml \u6587\u4ef6\uff0c\u5e76\u5c06\u8fd9\u4e9b\u6587\u4ef6\u5408\u5e76\u4e3a\u4e00\u4efd microservice.yaml \u914d\u7f6e\u3002\u4f4d\u4e8e\u78c1\u76d8\u4e0a\u7684 microservice.yaml \u6587\u4ef6\u4f18\u5148\u7ea7\u9ad8\u4e8ejar\u5305\u4e2d\u7684microservice.yaml \u6587\u4ef6\u3002\u7528\u6237\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a <code>servicecomb-config-order</code>\u6765\u6307\u5b9a\u4f18\u5148\u7ea7\uff0c \u5982\u679c\u4e0d\u540c\u8def\u5f84\u4e0b\u7684 microservice.yaml \u5305\u542b\u4e00\u6837\u7684\u914d\u7f6e\u9879\uff0c\u6587\u4ef6\u4e2d <code>servicecomb-config-order</code> \u503c\u5927\u7684\u914d\u7f6e\u9879\u4f1a\u8986\u76d6\u503c\u5c0f\u7684\u914d\u7f6e\u9879\u3002</p> <p>Tips\uff1a\u7531\u4e8e\u78c1\u76d8\u4e0a\u7684microservice.yaml\u6587\u4ef6\u4f18\u5148\u7ea7\u8f83\u9ad8\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u6253\u5305\u65f6\u5728\u670d\u52a1\u53ef\u6267\u884cjar\u5305\u7684classpath\u91cc\u52a0\u4e0a<code>.</code>\u76ee\u5f55\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u670d\u52a1jar\u5305\u6240\u5728\u7684\u76ee\u5f55\u91cc\u653e\u7f6e\u4e00\u4efdmicroservice.yaml\u6765\u8986\u76d6jar\u5305\u5185\u7684\u914d\u7f6e\u6587\u4ef6\u3002</p> <ul> <li>Spring Boot \u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6 application.yaml \u7b49</li> </ul> <p>Java Chassis \u7ee7\u627f\u4e86 Spring Boot \u7684\u914d\u7f6e\u673a\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528Spring Boot \u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u3002 microservice.yaml \u7684\u4f18\u5148\u7ea7\u6bd4 application.yaml \u4f4e\u3002</p>"},{"location":"config/general-config.html#_4","title":"\u73af\u5883\u53d8\u91cf","text":"<p>Linux\u7684\u73af\u5883\u53d8\u91cf\u540d\u4e0d\u5141\u8bb8\u5e26<code>.</code>\u7b26\u53f7\uff0c\u56e0\u6b64\u67d0\u4e9b\u914d\u7f6e\u9879\u65e0\u6cd5\u76f4\u63a5\u914d\u7f6e\u5728\u73af\u5883\u53d8\u91cf\u91cc\u3002\u53ef\u4ee5\u5c06\u914d\u7f6e\u9879key\u7684<code>.</code>\u7b26\u53f7\u6539\u4e3a\u4e0b\u5212\u7ebf<code>_</code>\uff0c\u5c06\u8f6c\u6362\u540e\u7684\u914d\u7f6e\u9879\u914d\u5728\u73af\u5883\u53d8\u91cf\u91cc\uff0cJava Chassis \u53ef\u4ee5\u81ea\u52a8\u5c06\u73af\u5883\u53d8\u91cf\u5339\u914d\u5230\u539f\u914d\u7f6e\u9879\u4e0a\u3002</p> <p>\u4f8b\u5982\uff1a\u5bf9\u4e8e microservice.yaml \u4e2d\u914d\u7f6e\u7684</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080\n</code></pre> <p>\u53ef\u4ee5\u5728\u73af\u5883\u53d8\u91cf\u4e2d\u8bbe\u7f6e <code>servicecomb_rest_address=0.0.0.0:9090</code> \u6765\u5c06\u670d\u52a1\u76d1\u542c\u7684\u7aef\u53e3\u8986\u5199\u4e3a9090\u3002\u8fd9\u79cd\u4e0b\u5212\u7ebf\u8f6c\u70b9\u53f7\u7684\u673a\u5236\u4e5f\u9002\u7528\u4e8e\u5176\u4ed6\u7684\u914d\u7f6e\u5c42\u7ea7\u3002</p> <p>\u7531\u4e8e\u4e0a\u8ff0\u9650\u5236\uff0c\u6700\u597d\u7684\u65b9\u5f0f\u662f\u5728\u542f\u52a8\u53c2\u6570\u91cc\u9762\u4f7f\u7528 Java System Property\u3002 \u6bd4\u5982 <code>-Dservicecomb.rest.address=${LISTEN_ADDRESS}</code>\uff0c \u8bbe\u7f6e\u7684\u73af\u5883\u53d8\u91cf LISTEN_ADDRESS \u7b26\u5408\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u540d\u89c4\u8303\u3002</p>"},{"location":"config/general-config.html#_5","title":"\u914d\u7f6e\u4e2d\u5fc3\uff08\u52a8\u6001\u914d\u7f6e\uff09","text":"<p>\u914d\u7f6e\u4e2d\u5fc3\u662f\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u4e2d\u95f4\u4ef6\uff0c\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u7528\u6237\u53ef\u4ee5\u589e\u52a0\u548c\u5220\u9664\u914d\u7f6e\u4fe1\u606f\uff0c\u914d\u7f6e\u4fe1\u606f\u4f1a\u901a\u8fc7\u4e0d\u540c\u7684\u901a\u77e5\u673a\u5236\uff0c \u5c06\u914d\u7f6e\u7684\u53d8\u5316\u63a8\u9001\u5230\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002 Java Chassis \u5141\u8bb8\u7528\u6237\u4f7f\u7528\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\uff0c \u5e76\u652f\u6301\u591a\u4e2a\u914d\u7f6e\u4e2d\u5fc3\u5171\u5b58\u3002</p> <p>\u914d\u7f6e\u4e2d\u5fc3\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u6587\u4ef6\u914d\u7f6e\u3002 </p>"},{"location":"config/general-config.html#_6","title":"\u8fdb\u884c\u914d\u7f6e\u9879\u6620\u5c04","text":"<p>\u914d\u7f6e\u9879\u6620\u5c04\u53ef\u4ee5\u7528\u4e8e\u7ed9\u914d\u7f6e\u9879\u53d6\u4e00\u4e2a\u522b\u540d\uff0c\u5728\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u8986\u76d6\u4e1a\u52a1\u914d\u7f6e\u3001\u517c\u5bb9\u6027\u573a\u666f\u5e7f\u6cdb\u4f7f\u7528\u3002 \u8fdb\u884c\u914d\u7f6e\u9879\u6620\u5c04\u901a\u8fc7 classpath \u4e0b\u7684 mapping.yaml \u5b9a\u4e49\uff1a</p> <pre><code>PAAS_CSE_SC_ENDPOINT:\n  - servicecomb.registry.sc.address\n</code></pre> <p>\u5047\u8bbe <code>PAAS_CSE_SC_ENDPOINT</code> \u662f\u73af\u5883\u53d8\u91cf\uff0c\u5e94\u7528\u7a0b\u5e8f\u8bfb\u53d6 <code>servicecomb.service.registry.address</code> \u7684\u5730\u65b9\uff0c \u4f1a\u53d6\u5230\u73af\u5883\u53d8\u91cf<code>PAAS_CSE_SC_ENDPOINT</code>\u7684\u503c\u3002</p> <p>\u4f7f\u7528\u914d\u7f6e\u9879\u6620\u5c04\u4e5f\u53ef\u4ee5\u4f7f\u7528 Spring Boot \u7684 place holder \u673a\u5236\uff0c \u4e0a\u8ff0\u7684\u89e3\u51b3\u65b9\u6848\u53ef\u4ee5\u66ff\u6362\u4e3a\u5728 application.yaml \u6587\u4ef6\u4e2d\u4f7f\u7528\uff1a</p> <pre><code>servicecomb:\n  registry:\n   sc:\n     address: ${PAAS_CSE_SC_ENDPOINT:http://localhost:30100}\n</code></pre> <p>\u63a8\u8350\u4f7f\u7528 Spring Boot \u7684 place holder \u673a\u5236\uff0c \u66f4\u52a0\u7b80\u6d01\u548c\u5bb9\u6613\u7406\u89e3\u3002 </p>"},{"location":"config/kie.html","title":"\u4f7f\u7528 Kie","text":""},{"location":"config/kie.html#_1","title":"\u4e0b\u8f7d\u5b89\u88c5","text":"<p>\u53ef\u4ee5\u901a\u8fc7 Kie\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5Kie\u3002\u534e\u4e3a\u4e91\u63d0\u4f9b\u4e86\u4e00\u4e2a\u96c6\u6210\u6ce8\u518c\u4e2d\u5fc3\u7684\u672c\u5730\u7248\u672c\uff0c\u5e76\u63d0\u4f9b\u4e86\u53cb\u597d\u7684\u754c\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7 \u534e\u4e3a\u4e91 \u4e0b\u8f7d\u548c\u4f7f\u7528\u3002</p>"},{"location":"config/kie.html#_2","title":"\u5f00\u53d1\u4f7f\u7528","text":"<p>\u4f7f\u7528 Kie\uff0c \u9700\u8981\u5f15\u5165\u4e0b\u9762\u7684\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-kie&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  kie:\n    serverUri: http://127.0.0.1:30110\n</code></pre> <ul> <li>\u4f7f\u7528\u914d\u7f6e\u4e2d\u5fc3\u589e\u52a0\u914d\u7f6e</li> </ul> <p>\u5ba2\u6237\u7aef\u9ed8\u8ba4\u4f1a\u8bfb\u53d6\u4e0b\u9762\u51e0\u4e2a\u5c42\u6b21\u7684\u914d\u7f6e\uff1a</p> <pre><code>* \u5e94\u7528\u7ea7\u914d\u7f6e\uff1aLabel\u53ea\u5305\u542benvironment\u3001app\uff0c\u5e76\u4e14\u4e0e\u5fae\u670d\u52a1\u7684\u73af\u5883\u3001\u5e94\u7528\u5339\u914d\u7684\u914d\u7f6e\u3002\n* \u670d\u52a1\u7ea7\u914d\u7f6e\uff1aLabel\u53ea\u5305\u542benvironment\u3001app\u3001service\uff0c\u5e76\u4e14\u4e0e\u5fae\u670d\u52a1\u7684\u73af\u5883\u3001\u5e94\u7528\u3001\u5fae\u670d\u52a1\u540d\u79f0\u5339\u914d\u7684\u914d\u7f6e\u3002\n* \u7248\u672c\u7ea7\u914d\u7f6e\uff1aLabel\u53ea\u5305\u542benvironment\u3001app\u3001service\u3001version\uff0c\u5e76\u4e14\u4e0e\u5fae\u670d\u52a1\u7684\u73af\u5883\u3001\u5e94\u7528\u3001\u5fae\u670d\u52a1\u540d\u79f0\u3001\u7248\u672c\u5339\u914d\u7684\u914d\u7f6e\u3002\n* \u81ea\u5b9a\u4e49\u914d\u7f6e\uff1aLabel\u5305\u542bcustom-label, \u5e76\u4e14\u4e0e custom-value\u5339\u914d\u7684\u914d\u7f6e\u3002\n</code></pre> <p>\u4e0a\u8ff0\u7684\u914d\u7f6e\u7ea7\u522b\uff0c\u4f18\u5148\u7ea7\u4ece\u4f4e\u5230\u9ad8\u3002 Kie \u7684 yaml \u548c properties \u7c7b\u578b\u4f1a\u6620\u5c04\u4e3a\u591a\u4e2a\u914d\u7f6e\u9879\uff0c \u5176\u4ed6\u7c7b\u578b\uff0c\u6bd4\u5982 json, text\uff0c \u53ea\u4f1a\u6620\u5c04\u4e3a\u4e00\u4e2a\u914d\u7f6e\u9879\u3002\u5f00\u53d1\u8005\u9700\u8981\u8bfb\u53d6\u914d\u7f6e\u9879\u81ea\u5df1\u89e3\u6790\u5185\u5bb9\u3002</p> <ul> <li>\u914d\u7f6e\u9879\u53c2\u8003</li> </ul> \u914d\u7f6e\u9879\u540d \u542b\u4e49 \u7f3a\u7701\u503c servicecomb.kie.serverUri servicecomb-kie\u8bbf\u95ee\u5730\u5740\uff0c\u683c\u5f0f\u4e3a<code>http(s)://{ip}:{port}</code>\uff0c\u4ee5<code>,</code>\u5206\u9694\u591a\u4e2a\u5730\u5740 \u7a7a servicecomb.kie.enableLongPolling Long Polling \u6a21\u5f0f\u662f\u5426\u5f00\u542f true servicecomb.kie.pollingWaitTime Long Polling \u6a21\u5f0f\u4e0b\u7b49\u5f85\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u79d2 10 servicecomb.kie.firstPullRequired \u542f\u52a8\u7684\u65f6\u5019\u7b2c\u4e00\u6b21\u67e5\u8be2\u914d\u7f6e\u5931\u8d25\uff0c\u662f\u5426\u7ec8\u6b62\u542f\u52a8\u3002 true servicecomb.kie.domainName \u533a\u57df\u540d\u79f0 default servicecomb.kie.refresh_interval Pull \u6a21\u5f0f\u4e0b\u5237\u65b0\u914d\u7f6e\u9879\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u3002 15000 servicecomb.kie.firstRefreshInterval Pull \u6a21\u5f0f\u4e0b\u542f\u52a8\u8fc7\u7a0b\u4e2d\u9996\u6b21\u5237\u65b0\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u3002 3000 servicecomb.kie.enableAppConfig \u662f\u5426\u5f00\u542f\u5e94\u7528\u914d\u7f6e true servicecomb.kie.enableServiceConfig \u662f\u5426\u5f00\u542f\u670d\u52a1\u914d\u7f6e true servicecomb.kie.enableVersionConfig \u662f\u5426\u5f00\u542f\u7248\u672c\u914d\u7f6e true servicecomb.kie.enableVersionConfig \u662f\u5426\u5f00\u542f\u81ea\u5b9a\u4e49\u914d\u7f6e true servicecomb.kie.customLabel \u81ea\u5b9a\u4e49\u914d\u7f6e\u7684Label public servicecomb.kie.customLabelValue \u81ea\u5b9a\u4e49\u914d\u7f6e\u7684Value \u7a7a"},{"location":"config/nacos.html","title":"\u4f7f\u7528 Nacos","text":""},{"location":"config/nacos.html#_1","title":"\u4e0b\u8f7d\u5b89\u88c5","text":"<p>\u53ef\u4ee5\u901a\u8fc7 Nacos\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5 Nacos\u3002</p>"},{"location":"config/nacos.html#_2","title":"\u5f00\u53d1\u4f7f\u7528","text":"<p>\u4f7f\u7528Nacos\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-nacos&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  nacos:\n    serverAddr: http://127.0.0.1:8848\n</code></pre> <ul> <li>\u914d\u7f6e\u4e2d\u5fc3\u589e\u52a0\u914d\u7f6e</li> </ul> <p>Nacos\u7684namespace\u5bf9\u5e94\u4e8eJava Chassis Environment, group\u5bf9\u5e94\u4e8eapplication\u3002 \u5ba2\u6237\u7aef\u9ed8\u8ba4\u4f1a\u8bfb\u53d6\u4e0b\u9762\u51e0\u4e2a\u5c42\u6b21\u7684\u914d\u7f6e\uff1a</p> <pre><code>* \u5e94\u7528\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3aapplication\u540d\u79f0\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\u3002\n* \u670d\u52a1\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3a\u5fae\u670d\u52a1\u540d\u79f0\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\u3002\n* \u7248\u672c\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3a\u5fae\u670d\u52a1\u540d\u79f0+\u7248\u672c\u53f7\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\uff0c \u6bd4\u5982: service-0.1\n* Profile\u7ea7\u914d\u7f6e\uff1agroup\u4e3aapplication\u540d\u79f0\uff0cdata-id\u4e3a\u5fae\u670d\u52a1\u540d\u79f0+Profile\u540d\u79f0\uff0c\u5e76\u4e14\u7c7b\u578b\u4e3ayaml\u7684\u914d\u7f6e\uff0c \u6bd4\u5982: service-dev\n* \u81ea\u5b9a\u4e49\u914d\u7f6e\uff1a\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u9879\u5b9a\u4e49group\u3001data-id\u3001\u7c7b\u578b\u7b49\u4fe1\u606f\uff0c\u8be6\u60c5\u53c2\u8003\u914d\u7f6e\u9879\u3002\u3002\n</code></pre> <p>\u4e0a\u8ff0\u7684\u914d\u7f6e\u7ea7\u522b\uff0c\u4f18\u5148\u7ea7\u4ece\u4f4e\u5230\u9ad8\u3002</p> <ul> <li>\u914d\u7f6e\u9879\u53c2\u8003</li> </ul> \u914d\u7f6e\u9879\u540d \u542b\u4e49 \u7f3a\u7701\u503c servicecomb.nacos.serverAddr NACOS\u8bbf\u95ee\u5730\u5740\uff0c\u683c\u5f0f\u4e3a<code>http(s)://{ip}:{port}</code>\uff0c\u4ee5<code>,</code>\u5206\u9694\u591a\u4e2a\u5730\u5740 \u7a7a servicecomb.nacos.group \u81ea\u5b9a\u4e49group \u7a7a servicecomb.nacos.dataId \u81ea\u5b9a\u4e49data-id \u7a7a servicecomb.nacos.addPrefix \u662f\u5426\u4f7f\u7528group+data-id\u4f5c\u4e3a\u914d\u7f6e\u9879\u524d\u7f00 false servicecomb.nacos.contentType \u81ea\u5b9a\u4e49\u7c7b\u578b yaml servicecomb.nacos.username \u8fde\u63a5Nacos\u7684\u7528\u6237\u540d \u7a7a servicecomb.nacos.password \u8fde\u63a5Nacos\u7684\u5bc6\u7801 \u7a7a servicecomb.nacos.accessKey \u8fde\u63a5Nacos\u7684Access Key \u7a7a servicecomb.nacos.secretKey \u8fde\u63a5Nacos\u7684Secret Key \u7a7a"},{"location":"config/read-config.html","title":"\u5728\u7a0b\u5e8f\u4e2d\u8bfb\u53d6\u914d\u7f6e\u4fe1\u606f","text":"<p>Java Chassis\u652f\u6301\u4f7f\u7528\u4e00\u81f4\u7684API\u83b7\u53d6\u914d\u7f6e\uff0c\u5f00\u53d1\u8005\u4e0d\u9700\u8981\u5173\u6ce8\u4ece\u54ea\u91cc\u8bfb\u53d6\u914d\u7f6e\u9879\u7684 \u503c\uff0cJava Chassis\u4f1a\u81ea\u52a8\u4ece\u5404\u5904\u8bfb\u53d6\u914d\u7f6e\uff0c\u5e76\u6309\u7167\u4f18\u5148\u7ea7\u8fdb\u884c\u5408\u5e76\u4ee5\u4fdd\u8bc1\u7528\u6237\u53d6\u5230\u7684\u662f\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u914d\u7f6e\u503c\u3002\u8bfb\u53d6\u914d\u7f6e\u4fe1\u606f\u652f\u6301\u4e0b\u9762\u51e0\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u3002 </p>"},{"location":"config/read-config.html#spring-boot","title":"\u4f7f\u7528 Spring Boot \u7684\u914d\u7f6e\u673a\u5236\u8bfb\u53d6\u914d\u7f6e","text":"<p>Java Chassis\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u53ef\u4ee5\u901a\u8fc7Spring\u548cSpring Boot\u7684\u914d\u7f6e\u673a\u5236\u8fdb\u884c\u8bfb\u53d6\uff0c\u6bd4\u5982 <code>@Value</code>\u3001<code>@ConfigurationProperties</code>\u3001 <code>Environment</code> \u7b49\u3002 Java Chassis \u5c06\u914d\u7f6e\u5c42\u6b21\u5e94\u7528\u4e8eSpring Environment\u4e2d\uff0cSpring\u548cSpring Boot\u8bfb\u53d6\u914d\u7f6e\u7684\u65b9\u5f0f\uff0c\u4e5f\u80fd\u591f\u8bfb\u53d6\u5230<code>microservice.yaml</code>\u548c\u52a8\u6001\u914d\u7f6e\u7684\u503c\u3002</p> <p>\u6ce8\u610f\uff1a <code>@Value</code>\u3001<code>@ConfigurationProperties</code> \u4e24\u79cd\u4f7f\u7528\u65b9\u5f0f\uff0c\u5728\u52a8\u6001\u914d\u7f6e\u53d8\u5316\u7684\u65f6\u5019\uff0c\u503c\u4e0d\u4f1a\u53d8\u5316\u3002 \u4f7f\u7528 <code>Environment</code>, \u5728\u52a8\u6001\u914d\u7f6e\u53d8\u5316\u7684\u65f6\u5019\uff0c\u503c\u4f1a\u5b9e\u65f6\u53d8\u5316\u3002 </p>"},{"location":"config/read-config.html#dymamicproperties","title":"\u4f7f\u7528 <code>DymamicProperties</code> \u76d1\u542c\u914d\u7f6e\u53d8\u5316","text":"<p>\u6ce8\u5165 <code>DymamicProperties</code>\uff0c \u901a\u8fc7\u5176 API \u8bfb\u53d6\u914d\u7f6e\u548c\u76d1\u542c\u914d\u7f6e\u53d8\u5316\u3002 </p> <pre><code>@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  private DynamicProperties dynamicProperties;\n\n  private String example;\n\n  @Autowired\n  public ProviderController(DynamicProperties dynamicProperties) {\n    this.dynamicProperties = dynamicProperties;\n    this.example = this.dynamicProperties.getStringProperty(\"basic.example\",\n            value -&gt; this.example = value, \"not set\");\n  }\n}\n</code></pre>"},{"location":"config/read-config.html#java-chassis","title":"\u4f7f\u7528 Java Chassis \u4f18\u5148\u7ea7\u914d\u7f6e","text":"<p>\u4f18\u5148\u7ea7\u914d\u7f6e\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u7ba1\u7406\u5927\u91cf\u590d\u6742\u914d\u7f6e\u7684\u673a\u5236\uff0c\u5f00\u53d1\u8005\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684 JAVA Bean\uff0c \u5b9a\u4e49\u8fd9\u4e2a Bean \u7684\u5c5e\u6027\u5bf9\u5e94\u7684\u914d\u7f6e\u9879\uff0c \u5f53\u914d\u7f6e\u4fe1\u606f\u53d8\u5316\u7684\u65f6\u5019\uff0c Bean \u7684\u5c5e\u6027\u4f1a\u81ea\u52a8\u5237\u65b0\uff0c\u6781\u5927 \u7684\u7b80\u5316\u4e86\u7528\u6237\u7ba1\u7406\u5927\u91cf\u590d\u6742\u914d\u7f6e\u7684\u590d\u6742\u5ea6\u3002 </p> <p>Bean \u5c5e\u6027\u5bf9\u5e94\u7684\u914d\u7f6e\u9879\u540d\u79f0\u652f\u6301\u901a\u914d\u7b26\uff0c \u4e00\u4e2a\u5c5e\u6027\u53ef\u4ee5\u5173\u8054\u82e5\u5e72\u914d\u7f6e\u9879\uff0c\u53ef\u4ee5\u58f0\u660e\u8fd9\u4e9b\u914d\u7f6e\u9879\u7684\u4f18\u5148\u7ea7\u3002 Java\u5bf9\u8c61\u53ef\u4ee5\u662f\u4e00\u4e2a Java Bean\uff0c\u6216\u662f\u4e00\u4e2a\u62e5\u6709public\u5b57\u6bb5\u7684\u7c7b\u3002</p> <ul> <li>\u914d\u7f6e\u6ce8\u5165\u5bf9\u8c61</li> </ul> <p>\u6211\u4eec\u9996\u5148\u8bbe\u8ba1\u4e24\u4e2aJava\u7c7b\u7528\u4e8e\u6ce8\u5165\u914d\u7f6e\u5c5e\u6027\uff0c\u5206\u522b\u7528\u6765\u6f14\u793a\u4e0d\u4f7f\u7528\u6ce8\u89e3\u548c\u4f7f\u7528\u6ce8\u89e3\u7684\u573a\u666f\u3002\u4f7f\u7528@InjectProperties\u6ce8\u89e3\u5e76\u58f0\u660e\u4e3aBean:</p> <pre><code>  ```Java\n  @Component\n  @InjectProperties(prefix = \"jaxrstest.jaxrsclient\")\n  public class Configuration {\n    /*\n     * \u65b9\u6cd5\u7684 prefix \u5c5e\u6027\u503c \"override\" \u4f1a\u8986\u76d6\u6807\u6ce8\u5728\u7c7b\u5b9a\u4e49\u7684 @InjectProperties\n     * \u6ce8\u89e3\u7684 prefix \u5c5e\u6027\u503c\u3002\n     *\n     * keys\u5c5e\u6027\u53ef\u4ee5\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\uff0c\u4e0b\u6807\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002\n     *\n     * \u8fd9\u91cc\u4f1a\u6309\u7167\u5982\u4e0b\u987a\u5e8f\u7684\u5c5e\u6027\u540d\u79f0\u67e5\u627e\u914d\u7f6e\u5c5e\u6027\uff0c\u76f4\u5230\u627e\u5230\u5df2\u88ab\u914d\u7f6e\u7684\u914d\u7f6e\u5c5e\u6027\uff0c\u5219\u505c\u6b62\u67e5\u627e\uff1a\n     * 1) jaxrstest.jaxrsclient.override.high\n     * 2) jaxrstest.jaxrsclient.override.low\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.override.high: hello high\n     * jaxrstest.jaxrsclient.override.low: hello low\n     * \u9884\u671f\uff1a\n     * hello high\n     */\n    @InjectProperty(prefix = \"jaxrstest.jaxrsclient.override\", keys = {\"high\", \"low\"})\n    public String strValue;\n\n    /**\n     * keys\u652f\u6301\u901a\u914d\u7b26\uff0c\u5e76\u5728\u53ef\u4ee5\u5728\u5c06\u914d\u7f6e\u5c5e\u6027\u6ce8\u5165\u7684\u65f6\u5019\u6307\u5b9a\u901a\u914d\u7b26\u7684\u4ee3\u5165\u5bf9\u8c61\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.k.value: 3\n     * \u9884\u671f\uff1a\n     * 3\n     */\n    @InjectProperty(keys = \"${key}.value\")\n    public int intValue;\n\n    /**\n     * \u901a\u914d\u7b26\u7684\u4ee3\u5165\u5bf9\u8c61\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32List\uff0c\u4f18\u5148\u7ea7\u9075\u5faa\u6570\u7ec4\u5143\u7d20\u4e0b\u6807\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u7b56\u7565\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.l1-1: 3.0\n     * jaxrstest.jaxrsclient.l1-2: 2.0\n     *\n     * \u9884\u671f\uff1a\n     * 3.0\n     */\n    @InjectProperty(keys = \"${full-list}\")\n    public float floatValue;\n\n    /**\n     * keys\u5c5e\u6027\u4e5f\u652f\u6301\u591a\u4e2a\u901a\u914d\u7b26\uff0c\u4f18\u5148\u7ea7\u5982\u4e0b\uff1a\u9996\u5148\u901a\u914d\u7b26\u7684\u4f18\u5148\u7ea7\u4ece\u5de6\u5230\u53f3\u9012\u51cf\uff0c\n     * \u7136\u540e\u5982\u679c\u901a\u914d\u7b26\u88ab\u4ee3\u5165List\uff0c\u9075\u5faaList\u4e2d\u5143\u7d20index\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u7b56\u7565\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * jaxrstest.jaxrsclient.low-1.a.high-1.b: 1\n     * jaxrstest.jaxrsclient.low-1.a.high-2.b: 2\n     * jaxrstest.jaxrsclient.low-2.a.high-1.b: 3\n     * jaxrstest.jaxrsclient.low-2.a.high-2.b: 4\n     * \u9884\u671f\uff1a\n     * 1\n     */\n    @InjectProperty(keys = \"${low-list}.a.${high-list}.b\")\n    public long longValue;\n\n    /**\n     * \u53ef\u4ee5\u901a\u8fc7\u6ce8\u89e3\u7684defaultValue\u5c5e\u6027\u6307\u5b9a\u9ed8\u8ba4\u503c\u3002\u5982\u679c\u5b57\u6bb5\u672a\u5173\u8054\u4efb\u4f55\u914d\u7f6e\u5c5e\u6027\uff0c\n     * \u5b9a\u4e49\u7684\u9ed8\u8ba4\u503c\u4f1a\u751f\u6548\uff0c\u5426\u5219\u9ed8\u8ba4\u503c\u4f1a\u88ab\u8986\u76d6\u3002\n     *\n     * \u6d4b\u8bd5\u7528\u4f8b\uff1a\n     * \u9884\u671f\uff1a\n     * abc\n     */\n    @InjectProperty(defaultValue = \"abc\")\n    public String strDef;\n  }\n  ```\n</code></pre> <p>Configuration\u5bf9\u8c61\u7684longValue\u5b57\u6bb5\u6309\u4ee5\u4e0b\u987a\u5e8f\u67e5\u627e\u5df2\u914d\u7f6e\u7684\u5c5e\u6027:</p> <pre><code>    1.  root.low-1.a.high-1.b\n    2.  root.low-1.a.high-2.b\n    3.  root.low-2.a.high-1.b\n    4.  root.low-2.a.high-2.b\n</code></pre> <p>Configuration\u5bf9\u8c61\u7684floatValue\u5b57\u6bb5\u6309\u4ee5\u4e0b\u987a\u5e8f\u67e5\u627e\u5df2\u914d\u7f6e\u7684\u5c5e\u6027:</p> <pre><code>    1.  root.l1-1\n    2.  root.l1-2\n</code></pre> <p>\u4e0d\u4f7f\u7528\u6ce8\u89e3\uff1a</p> <pre><code>    ```Java\n    @Component\n    @InjectProperties(prefix = \"jaxrstest.jaxrsclient\")\n    public class ConfigNoAnnotation {\n        /*\n         * \u5982\u679c\u672a\u63d0\u4f9b@InjectProperties\u548c@InjectProperty\u6ce8\u89e3\uff0c\u4f1a\u9ed8\u8ba4\u4f7f\u7528\u5b57\u6bb5\u540d\u4f5c\u4e3a\u914d\u7f6e\u5c5e\u6027\u540d\u3002\n         * \u6ce8\u610f\u7c7b\u540d\u4e0d\u4f5c\u4e3a\u524d\u7f00\u8d77\u4f5c\u7528\u3002\n         * \u6b64\u5904\u5c06\u914d\u7f6e\u5c5e\u6027 strValue \u7ed1\u5b9a\u5230\u8be5\u5b57\u6bb5\n        */\n      public String strValue;\n    }\n    ```\n</code></pre> <p>ConfigNoAnnotation \u5bf9\u8c61\u7684 strValue \u5b57\u6bb5\u4f1a\u67e5\u627e\u5df2\u914d\u7f6e\u7684\u5c5e\u6027 strValue\uff0c\u6ca1\u6709\u524d\u7f00\u548c\u4f18\u5148\u7ea7\u3002</p> <p>\u66f4\u591a\u5173\u4e8e\u914d\u7f6e\u6ce8\u5165\u7684\u7528\u6cd5\uff0c\u5efa\u8bae\u4e0b\u8f7d java-chassis \u7684\u6e90\u7801\uff0c \u67e5\u770b TestConfigObjectFactory \u7c7b\u91cc\u9762\u7684\u793a\u4f8b\u3002</p>"},{"location":"config/zookeeper.html","title":"\u4f7f\u7528 Zookeeper","text":""},{"location":"config/zookeeper.html#_1","title":"\u4e0b\u8f7d\u5b89\u88c5","text":"<p>\u53ef\u4ee5\u901a\u8fc7 ZooKeeper\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5 ZooKeeper\u3002</p>"},{"location":"config/zookeeper.html#_2","title":"\u5f00\u53d1\u4f7f\u7528","text":"<p>\u4f7f\u7528ZooKeeper\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;config-zookeeper&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u7136\u540e\u5728\u914d\u7f6e\u6587\u4ef6 microservice.yaml \u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  config:\n    zk:\n      connectString: 127.0.0.1:2181\n</code></pre> <ul> <li>\u914d\u7f6e\u4e2d\u5fc3\u589e\u52a0\u914d\u7f6e</li> </ul> <p>ZooKeeper \u4f7f\u7528\u4e0b\u9762\u7684\u914d\u7f6e\u7ed3\u6784\u548c\u73af\u5883\uff08Environment\uff09\u3001\u5e94\u7528\uff08Application\uff09\u3001\u670d\u52a1\uff08Service\uff09\u3001\u7248\u672c\uff08Version\uff09\u3001Tag\u5bf9\u5e94\uff0c \u914d\u7f6e\u7ea7\u522b\u4f18\u5148\u7ea7\u4ece\u4f4e\u5230\u9ad8\u3002 </p> <pre><code>servicecomb:\n  config:\n    environment:  \n      ${environment}:\n        exampleText: exampleTextValue\n        exampleYaml.yaml: exampleYamlValue\n        exampleYaml.yml: exampleYamlValue\n        exampleProperties.properties: examplePropertiesValue\n    application:\n      ${environment}:\n        ${application}:\n          exampleText: exampleTextValue\n          exampleYaml.yaml: exampleYamlValue\n          exampleYaml.yml: exampleYamlValue\n          exampleProperties.properties: examplePropertiesValue\n    service:\n      ${environment}:\n        ${application}:\n          ${service}:\n            exampleText: exampleTextValue\n            exampleYaml.yaml: exampleYamlValue\n            exampleYaml.yml: exampleYamlValue\n            exampleProperties.properties: examplePropertiesValue\n    version:\n      ${environment}:\n        ${application}:\n          ${service}:\n            ${version}:\n              exampleText: exampleTextValue\n              exampleYaml.yaml: exampleYamlValue\n              exampleYaml.yml: exampleYamlValue\n              exampleProperties.properties: examplePropertiesValue\n    tag:\n      ${environment}:\n        ${application}:\n          ${service}:\n            ${tag}:\n              exampleText: exampleTextValue\n              exampleYaml.yaml: exampleYamlValue\n              exampleYaml.yml: exampleYamlValue\n              exampleProperties.properties: examplePropertiesValue\n</code></pre> <ul> <li>\u914d\u7f6e\u9879\u53c2\u8003</li> </ul> \u914d\u7f6e\u9879\u540d \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u987b \u542b\u4e49 servicecomb.config.zk.connect-string 127.0.0.1:2181 \u662f ZooKeeper\u7684\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 servicecomb.config.zk.authenticationSchema \u7a7a \u5426 \u8ba4\u8bc1\u65b9\u5f0f\uff0c\u76ee\u524d\u53ea\u80fd\u914d\u7f6e\u4e3a digest\u3002 servicecomb.config.zk.authenticationInfo \u7a7a \u5426 \u5f53\u8ba4\u8bc1\u65b9\u5f0f\u4e3a digest \u7684\u65f6\u5019\uff0c\u914d\u7f6e\u7528\u6237\u540d\u5bc6\u7801\u4fe1\u606f\uff0c\u6bd4\u5982: user:password servicecomb.config.zk.connectionTimeoutMillis 1000 \u5426 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.config.zk.sessionTimeoutMillis 60000 \u5426 \u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4"},{"location":"config-reference/rest-transport-client.html","title":"REST Transport Client \u914d\u7f6e\u9879","text":"<ul> <li>\u57fa\u672c\u914d\u7f6e</li> </ul> <p>REST Trasnport Client \u5206\u4e3a HTTP \u548c HTTP2, \u5b83\u4eec\u5171\u4eab\u5f88\u591a\u914d\u7f6e\u9879\u3002\u4e0b\u8868\u4e2d\u914d\u7f6e\u9879\u540d\u79f0\u5305\u542b <code>http2</code> \u7684\u914d\u7f6e\u9879\uff0c \u662f HTTP2 \u72ec\u6709\u7684\u3002   HTTP2\u534f\u8bae\u4f9d\u8d56\u4e8eHTTP\u534f\u8bae\uff0cHTTP\u548cHTTP2\u7684\u8fde\u63a5\u6c60\u662f\u5171\u4eab\u7684\uff0c\u5728\u4f7f\u7528HTTP2\u7684\u60c5\u51b5\u4e0b\uff0c\u540c\u6837\u9700\u8981\u914d\u7f6eHTTP\u7684\u8fde\u63a5\u6c60\u53c2\u6570\u3002\u6bd4\u5982\uff1a</p> <pre><code>servicecomb:\n  rest:\n    client:\n      connection:\n        maxPoolSize: 50\n      http2:\n        maxPoolSize: 5\n</code></pre> <p>\u8fde\u63a5\u6c60\u5728\u8ba1\u7b97\u662f\u5426\u8d85\u8fc7\u5927\u5c0f\u7684\u65f6\u5019\uff0c\u4f1a\u540c\u65f6\u68c0\u67e5\u8fd9\u4e24\u4e2a\u914d\u7f6e\u9879\u3002\u5047\u8bbe\u8bbf\u95ee\u7684\u670d\u52a1\u5668\u4e3aH\uff0c\u90a3\u4e48\u4e0a\u8ff0\u914d\u7f6e\uff0c\u548cH\u5efa\u7acb\u7684\u6700\u5927\u8fde\u63a5\u53ef\u80fd\u6027\u4e3a   HTTP:HTTP2=50:0, HTTP:HTTP2=0:5, HTTP:HTTP2=20:3\u7b49\u3002\u4e00\u4e2a\u5ba2\u6237\u7aef\u548cH\u5efa\u7acb\u7684\u603b\u7684\u8fde\u63a5\u6570\u8fd8\u548cservicecomb.rest.client.verticle-count   \u6709\u5173\u3002\u53ef\u4ee5\u7406\u89e3\u4e3a\u6bcf\u4e2avertical\u4f1a\u9488\u5bf9H\u521b\u5efa\u4e00\u4e2a\u8fde\u63a5\u6c60\uff0c\u8fde\u63a5\u6c60\u4e2a\u6570\u4e3avertical-count\u3002</p> <p>\u7531\u4e8eHTTP\u548cHTTP2\u534f\u8bae\u4e4b\u95f4\u8fd9\u79cd\u7d27\u5bc6\u7684\u5173\u7cfb\uff0c\u5728\u4f7f\u7528HTTP2\u7684\u60c5\u51b5\u4e0b\uff0c\u5176\u4ed6\u76f8\u5173\u7684HTTP\u53c2\u6570\u5efa\u8bae\u4e00\u5e76\u9700\u8981\u5408\u7406\u8bbe\u7f6e\uff0c\u6bd4\u5982\u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4\u7b49\u3002</p> \u914d\u7f6e\u9879\u540d\u79f0 \u7248\u672c \u7f3a\u7701\u503c \u529f\u80fd\u63cf\u8ff0 servicecomb.rest.client.enabled 2.0.2 true \u662f\u5426\u542f\u7528Rest Transport Client, HTTP 1 servicecomb.rest.client.verticle-count \u5907\u6ce81 \u5907\u6ce82 servicecomb.rest.client.thread-count \u5e9f\u5f03 \u540cverticle-count servicecomb.rest.client.connection.timeoutInMillis 2.0.2 1000 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.rest.client.connection.idleTimeoutInSeconds 30 HTTP \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 servicecomb.rest.client.connection.compression false \u662f\u5426\u542f\u7528\u538b\u7f29 servicecomb.rest.client.maxWaitQueueSize -1 HTTP HTTP2 \u7b49\u5f85\u961f\u5217\u5927\u5c0f servicecomb.rest.client.connection.maxPoolSize 5 HTTP \u5ba2\u6237\u7aef\u8fde\u63a5\u6c60\u5927\u5c0f servicecomb.rest.client.connection.keepAlive true HTTP \u8fde\u63a5\u662f\u5426\u4fdd\u6d3b servicecomb.rest.client.maxHeaderSize 8192 HTTP \u6700\u5927\u5934\u90e8\u9650\u5236 servicecomb.rest.client.http2.enabled 2.0.2 true \u662f\u5426\u542f\u7528Rest Transport Client\uff0cHTTP 2 servicecomb.rest.client.http2.useAlpnEnabled true servicecomb.rest.client.http2.multiplexingLimit -1 \u4e00\u6761\u8fde\u63a5\u4e2d\uff0c\u540c\u65f6\u652f\u6301\u7684\u6700\u5927\u7684stream\u5e76\u53d1\u91cf\uff0c-1\u8868\u793a\u4e0d\u9650\u5236\u3002\u6700\u7ec8\u4ee5\u670d\u52a1\u7aef\u7684concurrentStreams\u548c\u5ba2\u6237\u7aef\u7684multiplexingLimit\u8f83\u5c0f\u503c\u4e3a\u51c6\u3002 servicecomb.rest.client.http2.maxPoolSize 1 HTTP2 \u5ba2\u6237\u7aef\u8fde\u63a5\u6c60\u5927\u5c0f servicecomb.rest.client.http2.idleTimeoutInSeconds 2.0.1 0 HTTP2 \u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4 <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u914d\u7f6e</li> </ul> <p>\u53ef\u4ee5\u9488\u5bf9\u6bcf\u4e2a\u5177\u4f53\u7684\u63a5\u53e3\u8bbe\u7f6e\u8d85\u65f6\uff0c\u914d\u7f6e\u9879 <code>request.${op-any-priority}.timeout</code> \uff0c \u5355\u4f4d\u662f\u6beb\u79d2\uff0c\u9ed8\u8ba4 30000\u3002 \u4e3e\u4f8b\uff1a</p> <pre><code>    servicecomb.request.timeout=30000\n    servicecomb.request.MyService.timeout=40000\n    servicecomb.request.MyService.MySchema.MyOperation.timeout=50000\n</code></pre> <ul> <li>SSL \u914d\u7f6e</li> </ul> <p>\u53c2\u8003 \u4f7f\u7528TLS\u901a\u4fe1\u3002 tag \u4e3a <code>rest.consumer</code>\u3002</p> <ul> <li>Proxy \u914d\u7f6e</li> </ul> <p>\u4e0d\u652f\u6301\u3002</p> <p>\u5907\u6ce8:</p> <ol> <li> <p> \u5982\u679cCPU\u6570\u5c0f\u4e8e8\uff0c\u5219\u53d6CPU\u6570\u3002\u5982\u679cCPU\u6570\u5927\u4e8e\u7b49\u4e8e8\uff0c\u5219\u4e3a8\u3002</p> </li> <li> <p> java-chassis \u9ed8\u8ba4\u91c7\u7528 vert.x \u7684 HTTP Client \u529f\u80fd\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u5bf9\u5e94\u7684\u662f verticle instances \u6570\u91cf\u3002 verticle instances \u6570\u91cf    \u4f1a\u5f71\u54cd\u5e76\u53d1\u8d44\u6e90\u5206\u914d\u3002\u6bd4\u5982\uff1a \u5982\u679c verticle instances \u4e3a 2\uff0c maxPoolSize \u4e3a 5\uff0c \u90a3\u4e48\u5b9e\u9645\u521b\u5efa\u7684\u8fde\u63a5\u6570\u4e3a 2*5=10\u3002</p> </li> </ol>"},{"location":"edge/by-servicecomb-sdk.html","title":"\u4f7f\u7528 Edge Service \u505a\u7f51\u5173","text":"<p>Edge Service \u662fServiceComb \u63d0\u4f9b\u7684JAVA\u7f51\u5173\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u3002Edge Service\u4f5c\u4e3a\u6574\u4e2a\u5fae\u670d\u52a1\u7cfb\u7edf\u5bf9\u5916\u7684\u63a5\u53e3\uff0c\u5411\u6700\u7ec8\u7528\u6237\u63d0\u4f9b\u670d\u52a1\uff0c\u63a5\u5165REST\u8bf7\u6c42\uff0c\u8f6c\u53d1\u7ed9\u5185\u90e8\u5fae\u670d\u52a1\uff0cEdge Service\u652f\u6301REST\u8bf7\u6c42\u548cHighway\u8bf7\u6c42\u7684\u8f6c\u53d1\u3002Edge Service\u4ee5\u5f00\u53d1\u6846\u67b6\u7684\u5f62\u5f0f\u63d0\u4f9b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u975e\u5e38\u7b80\u5355\u7684\u642d\u5efa\u4e00\u4e2aEdge Service\u670d\u52a1\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5c31\u53ef\u4ee5\u5b9a\u4e49\u8def\u7531\u8f6c\u53d1\u89c4\u5219\u3002\u540c\u65f6Edge Service\u652f\u6301\u5f3a\u5927\u7684\u6269\u5c55\u80fd\u529b\uff0c\u670d\u52a1\u6620\u5c04\u3001\u8bf7\u6c42\u89e3\u6790\u3001\u52a0\u5bc6\u89e3\u5bc6\u3001\u9274\u6743\u7b49\u903b\u8f91\u90fd\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u5b9e\u73b0\u3002</p> <p>Edge Service \u672c\u8eab\u4e5f\u662f\u4e00\u4e2a\u5fae\u670d\u52a1\uff0c\u9700\u9075\u5b88\u6240\u6709\u5fae\u670d\u52a1\u5f00\u53d1\u7684\u89c4\u5219\u3002\u5176\u672c\u8eab\u53ef\u4ee5\u90e8\u7f72\u4e3a\u591a\u5b9e\u4f8b\uff0c\u524d\u7aef\u4f7f\u7528\u8d1f\u8f7d\u5747\u8861\u88c5\u7f6e\u8fdb\u884c\u8d1f\u8f7d\u5206\u53d1\uff1b\u4e5f\u53ef\u4ee5\u90e8\u7f72\u4e3a\u4e3b\u5907\uff0c\u76f4\u63a5\u63a5\u5165\u7528\u6237\u8bf7\u6c42\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636eEdge Service\u627f\u8f7d\u7684\u903b\u8f91\u548c\u4e1a\u52a1\u8bbf\u95ee\u91cf\u3001\u7ec4\u7f51\u60c5\u51b5\u6765\u89c4\u5212\u3002</p>"},{"location":"edge/by-servicecomb-sdk.html#edge-service_1","title":"\u5f00\u53d1 Edge Service \u670d\u52a1","text":"<p>\u5f00\u53d1 Edge Service \u548c\u5f00\u53d1\u4e00\u4e2a\u666e\u901a\u7684\u5fae\u670d\u52a1\u6b65\u9aa4\u5dee\u4e0d\u591a\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4ece\u5bfc\u5165ServiceComb Edge Service Samples\u5165\u624b\u3002\u4ece\u5934\u642d\u5efa\u9879\u76ee\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a</p> <ul> <li>\u914d\u7f6e\u4f9d\u8d56\u5173\u7cfb</li> </ul> <p>\u5728\u9879\u76ee\u4e2d\u52a0\u5165edge-core\u7684\u4f9d\u8d56\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8Edge Service\u7684\u529f\u80fd\u3002</p> <pre><code>    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;edge-core&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n</code></pre> <ul> <li>\u5b9a\u4e49\u542f\u52a8\u7c7b</li> </ul> <p>\u548c\u5f00\u53d1\u666e\u901a\u5fae\u670d\u52a1\u4e00\u6837\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>@EnableServiceComb</code> \u7684\u65b9\u5f0f\u5c06\u670d\u52a1\u62c9\u8d77\u6765\u3002</p> <pre><code>@SpringBootApplication\n@EnableServiceComb\npublic class GatewayApplication {\n  public static void main(String[] args) throws Exception {\n    try {\n      new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(GatewayApplication.class).run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre> <ul> <li>\u589e\u52a0\u914d\u7f6e\u6587\u4ef6 microservice.yaml</li> </ul> <p>Edge Service\u672c\u8eab\u4e5f\u662f\u4e00\u4e2a\u5fae\u670d\u52a1\uff0c\u9075\u5faa\u5fae\u670d\u52a1\u67e5\u627e\u7684\u89c4\u5219\uff0c\u81ea\u5df1\u4e5f\u4f1a\u8fdb\u884c\u6ce8\u518c\u3002\u6ce8\u610f <code>application</code> \u4e0e\u9700\u8981\u8f6c\u53d1\u7684\u5fae\u670d\u52a1\u76f8\u540c\u3002\u5728\u4e0b\u9762\u7684\u914d\u7f6e\u4e2d\uff0c\u6307\u5b9a\u4e86Edge Service\u76d1\u542c\u7684\u5730\u5740\uff0c\u5904\u7406\u94fe\u7b49\u4fe1\u606f\u3002\u5176\u4e2dauth\u5904\u7406\u94fe\u662fDEMO\u9879\u76ee\u4e2d\u81ea\u5b9a\u4e49\u7684\u5904\u7406\u94fe\uff0c\u7528\u4e8e\u5b9e\u73b0\u8ba4\u8bc1\u3002\u540c\u65f6auth\u670d\u52a1\u672c\u8eab\uff0c\u4e0d\u7ecf\u8fc7\u8fd9\u4e2a\u5904\u7406\u94fe\uff0c\u76f8\u5f53\u4e8e\u4e0d\u9274\u6743\u3002</p> <pre><code>servicecomb:\n  service:\n    application: edge\n    name: edge\n    version: 0.0.1\n    registry:\n      address: http://127.0.0.1:30100\n  rest:\n    address: 127.0.0.1:18080\n  handler:\n    chain:\n      Consumer:\n        default: auth,loadbalance\n        service:\n          auth: loadbalance\n</code></pre>"},{"location":"edge/by-servicecomb-sdk.html#_1","title":"\u5de5\u4f5c\u6d41\u7a0b","text":"<p>Edge Service\u7684\u5de5\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff0c\u84dd\u8272\u80cc\u666f\u90e8\u5206\u5728Eventloop\u7ebf\u7a0b\u4e2d\u6267\u884c\uff0c\u9ec4\u8272\u80cc\u666f\u90e8\u5206\uff1a   * \u5982\u679c\u5de5\u4f5c\u4e8ereactive\u6a21\u5f0f\uff0c\u5219\u76f4\u63a5\u5728Eventloop\u7ebf\u7a0b\u6267\u884c   * \u5982\u679c\u5de5\u4f5c\u4e8e\u7ebf\u7a0b\u6c60\u6a21\u5f0f\uff0c\u5219\u5728\u7ebf\u7a0b\u6c60\u7684\u7ebf\u7a0b\u4e2d\u6267\u884c </p>"},{"location":"edge/by-servicecomb-sdk.html#header","title":"\u5b9a\u5236\u516c\u5171\u8f6c\u53d1 Header","text":"<p>Edge Service \u5728\u8f6c\u53d1\u8bf7\u6c42\u7684\u65f6\u5019, \u4f1a\u9ed8\u8ba4\u8fc7\u6ee4\u6389 <code>\u516c\u5171\u8bf7\u6c42\u5934</code> \u3002 \u4e5f\u5c31\u662f\u9664\u4e86 Provider \u7aef\u663e\u793a \u58f0\u660e\u9700\u8981\u7684 <code>HEADER</code> \u5916\uff0c \u5176\u4ed6\u7684 header \u5728\u8f6c\u53d1\u7684\u65f6\u5019\u90fd\u4f1a\u4e22\u5931\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u76f8\u5173\u53c2\u6570\u4fdd\u7559 \u516c\u5171\u8bf7\u6c42\u5934\u3002</p> <pre><code>servicecomb:\n  edge:\n    filter:\n      addHeader:\n        # \u5f00\u542f \u516c\u5171\u8bf7\u6c42\u5934\u4fdd\u7559\u529f\u80fd\u3002\u9ed8\u8ba4 false\n        enabled: true\n        # \u8981\u4fdd\u7559\u7684\u516c\u5171\u8bf7\u6c42\u5934\uff0c\u4ee5\u9017\u53f7\u9694\u5f00\n        allowedHeaders: external_1,external_2\n</code></pre> <p>\u5982\u679c\u5bf9\u63a5\u4e86\u914d\u7f6e\u4e2d\u5fc3\uff0c \u53ef\u4ee5\u5728\u914d\u7f6e\u4e2d\u5fc3\u52a8\u6001\u4fee\u6539 \u914d\u7f6e <code>servicecomb.edge.filter.addHeader.enabled</code> \u548c <code>servicecomb.edge.filter.addHeader.allowedHeaders</code> \uff0c \u914d\u7f6e\u52a8\u6001\u751f\u6548\u3002</p>"},{"location":"edge/by-servicecomb-sdk.html#_2","title":"\u5b9a\u5236\u8def\u7531\u89c4\u5219","text":"<p>\u4f7f\u7528Edge Service\u7684\u6838\u5fc3\u5de5\u4f5c\u662f\u914d\u7f6e\u8def\u7531\u89c4\u5219\u3002\u573a\u666f\u4e0d\u540c\uff0c\u89c4\u5219\u4e5f\u4e0d\u540c\u3002 \u8def\u7531\u89c4\u5219\u7531\u4e00\u7cfb\u5217AbstractEdgeDispatcher\u7ec4\u6210\u3002Edge Service\u63d0\u4f9b\u4e86\u51e0\u4e2a\u5e38\u89c1\u7684Dispatcher\uff0c\u901a\u8fc7\u914d\u7f6e\u5373\u53ef\u542f\u7528\uff0c\u5982\u679c\u8fd9\u4e9bDispatcher\u4e0d\u6ee1\u8db3\u4e1a\u52a1\u573a\u666f\u9700\u8981\uff0c\u8fd8\u53ef\u4ee5\u81ea\u5b9a\u4e49\u3002</p> <ul> <li>\u4f7f\u7528 DefaultEdgeDispatcher</li> </ul> <p>DefaultEdgeDispatcher\u662f\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u3001\u5bb9\u6613\u7ba1\u7406\u7684Dispatcher\uff0c\u4f7f\u7528\u8fd9\u4e2aDispatcher\uff0c\u7528\u6237\u4e0d\u7528\u52a8\u6001\u7ba1\u7406\u8f6c\u53d1\u89c4\u5219\uff0c\u5e94\u7528\u4e8e\u5b9e\u9645\u7684\u4e1a\u52a1\u573a\u666f\u975e\u5e38\u65b9\u4fbf\uff0c\u8fd9\u4e2a\u4e5f\u662f\u63a8\u8350\u7684\u4e00\u79cd\u7ba1\u7406\u673a\u5236\u3002\u5b83\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n      edge:\n        default:\n          enabled: true\n          prefix: rest\n          withVersion: true\n          prefixSegmentCount: 1\n</code></pre> <p>\u5e38\u89c1\u7684\u8fd9\u4e9b\u914d\u7f6e\u9879\u7684\u793a\u4f8b\u53ca\u542b\u4e49\u5982\u4e0b:</p> <ul> <li>[prefix=rest;withVersion=true;prefixSegmentCount=1]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /xService/v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ea\u8f6c\u53d1\u5230[1.0.0-2.0.0)\u7248\u672c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=true;prefixSegmentCount=2]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ea\u8f6c\u53d1\u5230[1.0.0-2.0.0)\u7248\u672c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=true;prefixSegmentCount=3]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ea\u8f6c\u53d1\u5230[1.0.0-2.0.0)\u7248\u672c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=false;prefixSegmentCount=1]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /xService/v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\u8bf7\u6c42\u53ef\u80fd\u8f6c\u53d1\u5230\u4efb\u610f\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=false;prefixSegmentCount=2]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /v1/abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/v1/abc\uff0c\uff0c\u8bf7\u6c42\u53ef\u80fd\u8f6c\u53d1\u5230\u4efb\u610f\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> <li>[prefix=rest;withVersion=false;prefixSegmentCount=2]\u5fae\u670d\u52a1xService\u63d0\u4f9b\u7684URL\u4e3a: /abc\uff0c\u901a\u8fc7Edge\u8bbf\u95ee\u7684\u5730\u5740\u4e3a/rest/xService/abc\uff0c\uff0c\u8bf7\u6c42\u53ef\u80fd\u8f6c\u53d1\u5230\u4efb\u610f\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002</li> </ul> <p>withVersion\u914d\u7f6e\u9879\u63d0\u4f9b\u4e86\u5ba2\u6237\u7aef\u7070\u5ea6\u89c4\u5219\uff0c\u53ef\u4ee5\u8ba9\u5ba2\u6237\u7aef\u6307\u5b9a\u8bbf\u95ee\u7684\u670d\u52a1\u7aef\u7248\u672c\u3002Edge Service\u8fd8\u5305\u542b\u6839\u636e\u63a5\u53e3\u517c\u5bb9\u6027\u81ea\u52a8\u8def\u7531\u7684\u529f\u80fd\uff0c\u8bf7\u6c42\u4f1a\u8f6c\u53d1\u5230\u5305\u542b\u4e86\u8be5\u63a5\u53e3\u7684\u5b9e\u4f8b\u3002\u5047\u8bbe\u67d0\u5fae\u670d\u52a1\uff0c\u517c\u5bb9\u89c4\u5212\u4e3a\u6240\u6709\u9ad8\u7248\u672c\u5fc5\u987b\u517c\u5bb9\u4f4e\u7248\u672c\uff0c\u90e8\u7f72\u4e86\u4ee5\u4e0b\u7248\u672c\u5b9e\u4f8b\uff1a</p> <ul> <li> <p>1.0.0\uff0c\u63d0\u4f9b\u4e86operation1</p> </li> <li> <p>1.1.0\uff0c\u63d0\u4f9b\u4e86operation1\u3001operation2</p> </li> </ul> <p>Edge Service\u5728\u8f6c\u53d1operation1\u65f6\uff0c\u4f1a\u81ea\u52a8\u4f7f\u75281.0.0+\u7684\u89c4\u5219\u6765\u8fc7\u6ee4\u5b9e\u4f8b</p> <p>Edge Service\u5728\u8f6c\u53d1operation2\u65f6\uff0c\u4f1a\u81ea\u52a8\u4f7f\u75281.1.0+\u7684\u89c4\u5219\u6765\u8fc7\u6ee4\u5b9e\u4f8b</p> <p>\u4ee5\u4e0a\u8fc7\u7a0b\u7528\u6237\u4e0d\u5fc5\u505a\u4efb\u4f55\u5e72\u9884\uff0c\u5168\u81ea\u52a8\u5b8c\u6210\uff0c\u4ee5\u907f\u514d\u5c06\u65b0\u7248\u672c\u7684operation\u8f6c\u53d1\u5230\u65e7\u7248\u672c\u7684\u5b9e\u4f8b\u4e2d\u53bb\u3002</p> <ul> <li>\u4f7f\u7528 URLMappedEdgeDispatcher</li> </ul> <p>URLMappedEdgeDispatcher \u5141\u8bb8\u7528\u6237\u914d\u7f6eURL\u548c\u5fae\u670d\u52a1\u7684\u6620\u5c04\u5173\u7cfb\u3002\u4f7f\u7528\u5b83\u53ef\u4ee5\u975e\u5e38\u7075\u6d3b\u7684\u5b9a\u4e49\u54ea\u4e9bURL\u8f6c\u53d1\u5230\u54ea\u4e9b\u5fae\u670d\u52a1\u3002\u5b83\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n      edge:\n        url:\n          enabled: true\n          ## \u9ed8\u8ba4\u503c\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u914d\u7f6e\n          pattern: \"/(.*)\"\n          mappings:\n            businessV1:\n              prefixSegmentCount: 1\n              path: \"/url/business/v1/.*\"\n              microserviceName: business\n              versionRule: 1.0.0-2.0.0\n            businessV2:\n              prefixSegmentCount: 1\n              path: \"/url/business/v2/.*\"\n              microserviceName: business\n              versionRule: 2.0.0-3.0.0\n</code></pre> <p><code>businessV1</code> \u914d\u7f6e\u9879\u8868\u793a\u7684\u542b\u4e49\u662f\u5c06\u8bf7\u6c42\u8def\u5f84\u4e3a <code>/url/business/v1/.*</code> \u7684\u8bf7\u6c42\uff0c\u8f6c\u53d1\u5230<code>business</code> \u8fd9\u4e2a\u5fae\u670d\u52a1\uff0c\u5e76\u4e14\u53ea\u8f6c\u53d1\u5230\u7248\u672c\u53f7\u4e3a1.0.0-2.0.0\u7684\u5b9e\u4f8b\uff08\u4e0d\u542b2.0.0\uff09\u3002\u8f6c\u53d1\u7684\u65f6\u5019URL\u4e3a <code>/business/v1/.*</code> \u3002path\u4f7f\u7528\u7684\u662fJDK\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u67e5\u770bPattern\u7c7b\u7684\u8bf4\u660e\u3002prefixSegmentCount\u8868\u793a\u524d\u7f00\u7684URL Segment\u6570\u91cf\uff0c\u524d\u7f00\u4e0d\u5305\u542b\u5728\u8f6c\u53d1\u7684URL\u8def\u5f84\u4e2d\u3002\u6709\u4e09\u79cd\u5f62\u5f0f\u7684versionRule\u53ef\u4ee5\u6307\u5b9a\u30022.0.0-3.0.0\u8868\u793a\u7248\u672c\u8303\u56f4\uff0c\u542b2.0.0\uff0c\u4f46\u4e0d\u542b3.0.0\uff1b2.0.0+\u8868\u793a\u5927\u4e8e2.0.0\u7684\u7248\u672c\uff0c\u542b2.0.0\uff1b2.0.0\u8868\u793a\u53ea\u8f6c\u53d1\u52302.0.0\u7248\u672c\u30022\uff0c2.0\u7b49\u4ef7\u4e8e2.0.0\u3002</p> <p>\u4ece\u4e0a\u9762\u7684\u914d\u7f6e\u53ef\u4ee5\u770b\u51fa\uff0cURLMappedEdgeDispatcher\u4e5f\u652f\u6301\u5ba2\u6237\u7aef\u7070\u5ea6\u3002\u5f53\u7136\u914d\u7f6e\u9879\u4f1a\u6bd4DefaultEdgeDispatcher\u591a\u3002URLMappedEdgeDispatcher\u652f\u6301\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u52a8\u6001\u7684\u4fee\u6539\u914d\u7f6e\uff0c\u8c03\u6574\u8def\u7531\u89c4\u5219\u3002</p> <ul> <li>\u4f7f\u7528 CommonHttpEdgeDispatcher</li> </ul> <p>CommonHttpEdgeDispatcher \u80fd\u591f\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u76d1\u542c HTTP \u6216\u8005 HTTP 2 \u534f\u8bae\u7684 Provider\uff0c \u5bf9\u4e8e Provider \u7684\u5f00\u53d1\u6846\u67b6\u6ca1\u6709\u9650\u5236\uff0c\u4e5f\u4e0d \u8981\u6c42 Provider \u6ce8\u518c\u5951\u7ea6\u4fe1\u606f\u3002 </p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n      edge:\n        http:\n          enabled: true\n          ## \u9ed8\u8ba4\u503c\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u914d\u7f6e\n          pattern: \"/(.*)\" \n          mappings:\n            businessV2:\n              prefixSegmentCount: 1\n              path: \"/http/business/v2/.*\"\n              microserviceName: business\n              versionRule: 2.0.0\n</code></pre> <p>CommonHttpEdgeDispatcher \u914d\u7f6e\u9879\u7684\u542b\u4e49\u548c URLMappedEdgeDispatcher \u7c7b\u4f3c\u3002</p> <ul> <li>\u81ea\u5b9a\u4e49 Dispatcher</li> </ul> <p>\u81ea\u5b9a\u4e49Dispatcher\u5305\u542b\u4e24\u4e2a\u6b65\u9aa4\uff1a</p> <ol> <li>\u5b9e\u73b0AbstractEdgeDispatcher</li> <li>\u901a\u8fc7SPI\u53d1\u5e03\uff1a\u589e\u52a0\u6587\u4ef6META-INF/services/org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher\uff0c\u5e76\u5199\u5165\u5b9e\u73b0\u7c7b</li> </ol> <p>\u8be6\u7ec6\u7684\u4ee3\u7801\u7ec6\u8282\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u7ae0\u8282\"DEMO\u529f\u80fd\u8bf4\u660e\"\u3002\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u53c2\u8003DefaultEdgeDispatcher\u7b49\u4ee3\u7801\u6765\u5b9a\u4e49\u81ea\u5df1\u7684Dispatcher\u3002</p> <ul> <li>\u8fdb\u884c\u8ba4\u8bc1\u9274\u6743\u548c\u5176\u4ed6\u4e1a\u52a1\u5904\u7406</li> </ul> <p>\u901a\u8fc7Edge Servie\u5de5\u4f5c\u6d41\u7a0b\u53ef\u4ee5\u770b\u51fa\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6765\u6269\u5c55Edge Service\u7684\u529f\u80fd\uff0c\u5305\u62ecDispatcher\u3001HttpServerFilter\u3001Handler\u3001HttpClientFilter\u7b49\u3002\u6bd4\u8f83\u5e38\u7528\u548c\u7b80\u5355\u7684\u662f\u901a\u8fc7Handler\u6765\u6269\u5c55\u3002DEMO\u91cc\u9762\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7Handler\u6269\u5c55\u6765\u5b9e\u73b0\u9274\u6743\u3002\u8be6\u7ec6\u7684\u4ee3\u7801\u7ec6\u8282\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u7ae0\u8282\"DEMO\u529f\u80fd\u8bf4\u660e\"\u3002</p>"},{"location":"edge/by-servicecomb-sdk.html#_3","title":"\u90e8\u7f72\u793a\u4f8b","text":""},{"location":"edge/by-servicecomb-sdk.html#_4","title":"\u5de5\u4f5c\u6a21\u5f0f","text":"<ul> <li>reactive (\u9ed8\u8ba4)</li> </ul> <p>Edge Service\u9ed8\u8ba4\u5de5\u4f5c\u4e8e\u9ad8\u6027\u80fd\u7684reactive\u6a21\u5f0f\uff0c\u6b64\u6a21\u5f0f\u8981\u6c42\u5de5\u4f5c\u4e8eEdge Service\u8f6c\u53d1\u6d41\u7a0b\u4e2d\u7684\u4e1a\u52a1\u4ee3\u7801\u4e0d\u80fd\u6709\u4efb\u4f55\u7684\u963b\u585e\u64cd\u4f5c\uff0c\u5305\u62ec\u4e0d\u9650\u4e8e\uff1a</p> <ul> <li> <p>\u8fdc\u7a0b\u540c\u6b65\u8c03\u7528\uff0c\u6bd4\u5982\u540c\u6b65\u67e5\u8be2\u6570\u636e\u5e93\u3001\u540c\u6b65\u8c03\u7528\u5fae\u670d\u52a1\uff0c\u6216\u662f\u540c\u6b65\u67e5\u8be2\u8fdc\u7a0b\u7f13\u5b58\u7b49\u7b49</p> </li> <li> <p>\u4efb\u4f55\u7684sleep\u8c03\u7528</p> </li> <li> <p>\u4efb\u4f55\u7684wait\u8c03\u7528</p> </li> <li> <p>\u8d85\u5927\u7684\u5faa\u73af</p> </li> </ul> <p>Edge Service\u7684\u5e95\u5c42\u662f\u57fa\u4e8enetty\u7684vertx\uff0c\u4ee5\u4e0a\u7ea6\u675f\u5373\u662fnetty\u7684reactive\u6a21\u5f0f\u7ea6\u675f\u3002</p> <p></p> <ul> <li>\u7ebf\u7a0b\u6c60</li> </ul> <p>\u5982\u679c\u4e1a\u52a1\u6a21\u578b\u65e0\u6cd5\u6ee1\u8db3reactive\u8981\u6c42\uff0c\u5219\u9700\u8981\u4f7f\u7528\u7ebf\u7a0b\u6c60\u6a21\u5f0f\u3002</p> <p>\u6b64\u65f6\u9700\u8981\u5728Edge Service\u7684microservice.yaml\u4e2d\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  executors:\n    default: servicecomb.executor.groupThreadPool\n</code></pre> <p>\u8fd9\u91cc\u7684servicecomb.executor.groupThreadPool\u662fServiceComb\u5185\u7f6e\u7684\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\u5bf9\u5e94\u7684spring bean\u7684beanId\uff1b\u4e1a\u52a1\u53ef\u4ee5\u5b9a\u5236\u81ea\u5df1\u7684\u7ebf\u7a0b\u6c60\uff0c\u5e76\u58f0\u660e\u4e3a\u4e00\u4e2abean\uff0c\u5176beanId\u4e5f\u53ef\u4ee5\u914d\u7f6e\u5230\u8fd9\u91cc\u3002</p> <p></p>"},{"location":"edge/by-servicecomb-sdk.html#demo","title":"DEMO\u529f\u80fd\u8bf4\u660e","text":"<p>DEMO \u6e90\u7801\u8bf7\u53c2\u8003 edge service demo</p> <ul> <li>\u6ce8\u518cDispatcher</li> </ul> <p>\u5b9e\u73b0\u63a5\u53e3org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher\uff0c\u6216\u4ece org.apache.servicecomb.edge.core.AbstractEdgeDispatcher\u7ee7\u627f\uff0c\u5b9e\u73b0\u81ea\u5df1\u7684dispatcher\u529f\u80fd\u3002</p> <p>\u5b9e\u73b0\u7c7b\u901a\u8fc7java\u6807\u51c6\u7684SPI\u673a\u5236\u6ce8\u518c\u5230\u7cfb\u7edf\u4e2d\u53bb\u3002</p> <p>Dispatcher\u9700\u8981\u5b9e\u73b02\u4e2a\u65b9\u6cd5\uff1a</p> <ul> <li>getOrder</li> </ul> <p>Dispatcher\u9700\u8981\u5411vertx\u6ce8\u5165\u8def\u7531\u89c4\u5219\uff0c\u8def\u7531\u89c4\u5219\u4e4b\u95f4\u662f\u6709\u4f18\u5148\u7ea7\u987a\u5e8f\u5173\u7cfb\u7684\u3002</p> <p>\u7cfb\u7edf\u4e2d\u6240\u6709\u7684Dispatcher\u6309\u7167getOrder\u7684\u8fd4\u56de\u503c\u6309\u4ece\u5c0f\u5230\u5927\u7684\u65b9\u5f0f\u6392\u5e8f\uff0c\u6309\u987a\u5e8f\u521d\u59cb\u5316\u3002</p> <p>\u5982\u679c2\u4e2aDispatcher\u7684getOrder\u8fd4\u56de\u503c\u76f8\u540c\uff0c\u52192\u8005\u7684\u987a\u5e8f\u4e0d\u53ef\u9884\u77e5\u3002</p> <ul> <li>init</li> </ul> <p>init\u65b9\u6cd5\u5165\u53c2\u4e3avertx\u6846\u67b6\u4e2d\u7684io.vertx.ext.web.Router\uff0c\u9700\u8981\u901a\u8fc7\u8be5\u5bf9\u8c61\u5b9e\u73b0\u8def\u7531\u89c4\u5219\u7684\u5b9a\u5236\u3002</p> <p>\u53ef\u4ee5\u6307\u5b9a\u6ee1\u8db3\u8981\u6c42\u7684url\uff0c\u662f\u5426\u9700\u8981\u5904\u7406cookie\u3001\u662f\u5426\u9700\u8981\u5904\u7406body\u3001\u4f7f\u7528\u54ea\u4e2a\u81ea\u5b9a\u4e49\u65b9\u6cd5\u5904\u7406\u6536\u5230\u7684\u8bf7\u6c42\u7b49\u7b49</p> <p>\u66f4\u591a\u8def\u7531\u89c4\u5219\u7ec6\u8282\u8bf7\u53c2\u8003vertx\u5b98\u65b9\u6587\u6863\uff1avertx\u8def\u7531\u673a\u5236</p> <p>\u63d0\u793a\uff1a</p> <p>\u591a\u4e2aDispatcher\u53ef\u4ee5\u8bbe\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u8986\u76d6\u5230\u76f8\u540c\u7684url\u3002</p> <p>\u5047\u8bbeDispatcher A\u548cB\u90fd\u53ef\u4ee5\u5904\u7406\u540c\u4e00\u4e2aurl\uff0c\u5e76\u4e14A\u4f18\u5148\u7ea7\u66f4\u9ad8\uff0c\u5219\uff1a</p> <ul> <li> <p>\u5982\u679cA\u5904\u7406\u5b8c\uff0c\u65e2\u6ca1\u5e94\u7b54\uff0c\u4e5f\u6ca1\u6709\u8c03\u7528RoutingContext.next()\uff0c\u5219\u5c5e\u4e8ebug\uff0c\u672c\u6b21\u8bf7\u6c42\u6302\u6b7b\u4e86</p> </li> <li> <p>\u5982\u679cA\u5904\u7406\u5b8c\uff0c\u7136\u540e\u8c03\u7528\u4e86RoutingContext.next()\uff0c\u5219\u4f1a\u5c06\u8bf7\u6c42\u8f6c\u79fb\u7ed9B\u5904\u7406</p> </li> <li> <p>\u8f6c\u53d1\u8bf7\u6c42</p> </li> </ul> <p>\u6ce8\u518c\u8def\u7531\u65f6\uff0c\u6307\u5b9a\u4e86\u4f7f\u7528\u54ea\u4e2a\u65b9\u6cd5\u6765\u5904\u7406\u8bf7\u6c42\uff08\u4e0b\u9762\u4f7f\u7528onRequest\u6765\u6307\u4ee3\u8be5\u65b9\u6cd5\uff09\uff0c\u5728onRequest\u4e2d\u5b9e\u73b0\u8f6c\u53d1\u903b\u8f91\u3002</p> <p>\u65b9\u6cd5\u539f\u578b\u4e3a\uff1a</p> <pre><code>void onRequest(RoutingContext context)\n</code></pre> <p>\u7cfb\u7edf\u5c01\u88c5\u4e86org.apache.servicecomb.edge.core.EdgeInvocation\u6765\u5b9e\u73b0\u8f6c\u53d1\u529f\u80fd\uff0c\u81f3\u5c11\u9700\u8981\u51c6\u5907\u4ee5\u4e0b\u53c2\u6570\uff1a</p> <ul> <li> <p>microserviceName\uff0c\u4e1a\u52a1\u81ea\u884c\u5236\u5b9a\u89c4\u5219\uff0c\u53ef\u4ee5\u5728url\u4f20\u5165\uff0c\u6216\u662f\u6839\u636eurl\u67e5\u627e\u7b49\u7b49</p> </li> <li> <p>context\uff0c\u5373onRequest\u7684\u5165\u53c2</p> </li> <li> <p>path\uff0c\u8f6c\u53d1\u76ee\u6807\u7684url</p> </li> <li> <p>httpServerFilters\uff0cDispatcher\u7236\u7c7b\u5df2\u7ecf\u521d\u59cb\u5316\u597d\u7684\u6210\u5458\u53d8\u91cf</p> </li> </ul> <pre><code> EdgeInvocation edgeInvocation = new EdgeInvocation();\n edgeInvocation.init(microserviceName, context, path, httpServerFilters);\n edgeInvocation.edgeInvoke();\n</code></pre> <p>edgeInvoke\u8c03\u7528\u5185\u90e8\uff0c\u4f1a\u4f5c\u4e3aServiceComb\u6807\u51c6consumer\u53bb\u8f6c\u53d1\u8c03\u7528\u3002</p> <p>\u4f5c\u4e3a\u6807\u51c6consumer\uff0c\u610f\u5473\u7740ServiceComb\u6240\u6709\u6807\u51c6\u7684\u6cbb\u7406\u80fd\u529b\u5728\u8fd9\u91cc\u90fd\u662f\u751f\u6548\u7684\u3002</p> <ul> <li>\u8bbe\u7f6e\u517c\u5bb9\u89c4\u5219</li> </ul> <p>\u4e0d\u540c\u7684\u4e1a\u52a1\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u517c\u5bb9\u89c4\u5212\uff0cservicecomb\u9ed8\u8ba4\u7684\u517c\u5bb9\u89c4\u5219\uff0c\u8981\u6c42\u6240\u6709\u65b0\u7248\u672c\u517c\u5bb9\u65e7\u7248\u672c\u3002\u5982\u679c\u6ee1\u8db3\u8fd9\u4e2a\u8981\u6c42\uff0c\u5219\u4e0d\u5fc5\u505a\u4efb\u4f55\u7279\u6b8a\u7684\u8bbe\u7f6e\u3002</p> <p>\u8fd8\u6709\u4e00\u79cd\u5178\u578b\u7684\u89c4\u5212\uff1a</p> <ul> <li> <p>1.0.0-2.0.0\u5185\u90e8\u517c\u5bb9\uff0curl\u4e3a/microserviceName/v1/\u2026.\u7684\u5f62\u5f0f</p> </li> <li> <p>2.0.0-3.0.0\u5185\u90e8\u517c\u5bb9\uff0curl\u4e3a/microserviceName/v2/\u2026.\u7684\u5f62\u5f0f</p> </li> </ul> <p>\u2026\u2026</p> <p>\u5404\u5927\u7248\u672c\u4e4b\u95f4\u4e0d\u517c\u5bb9</p> <p>\u6b64\u65f6\uff0c\u5f00\u53d1\u4eba\u5458\u9700\u8981\u9488\u5bf9EdgeInvocation\u8bbe\u7f6e\u517c\u5bb9\u89c4\u5219\uff1a</p> <pre><code>private CompatiblePathVersionMapper versionMapper = new CompatiblePathVersionMapper();\n\n\u2026\u2026\n\nedgeInvocation.setVersionRule(versionMapper.getOrCreate(pathVersion).getVersionRule());\n</code></pre> <p>versionMapper\u7684\u4f5c\u7528\u662f\u5c06v1\u6216\u662fv2\u8fd9\u6837\u7684\u4e32\uff0c\u8f6c\u4e3a1.0.0-2.0.0\u62162.0.0-3.0.0\u8fd9\u6837\u7684\u517c\u5bb9\u89c4\u5219\u3002</p> <ul> <li>\u9274\u6743</li> </ul> <p>Edge Service\u662f\u7cfb\u7edf\u7684\u8fb9\u754c\uff0c\u5bf9\u4e8e\u5f88\u591a\u8bf7\u6c42\u9700\u8981\u6267\u884c\u9274\u6743\u903b\u8f91\u3002</p> <p>\u57fa\u4e8e\u6807\u51c6\u7684ServiceComb\u673a\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7handler\u6765\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002</p> <p>\u6700\u7b80\u5355\u7684\u793a\u610f\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public class AuthHandler implements Handler {\n  private static Logger LOGGER = LoggerFactory.getLogger(AuthHandler.class);\n\n  private static Auth auth;\n\n  static {\n    auth = Invoker.createProxy(\"auth\", \"auth\", Auth.class);\n  }\n\n  @Override\n  public void init(MicroserviceMeta microserviceMeta, InvocationType invocationType) {\n  }\n\n  @Override\n  public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {\n    if (invocation.getHandlerContext().get(EdgeConst.ENCRYPT_CONTEXT) != null) {\n      invocation.next(asyncResp);\n      return;\n    }\n\n    auth.auth(\"\").whenComplete((succ, e) -&gt; doHandle(invocation, asyncResp, succ, e));\n  }\n</code></pre> <p>Auth\u8868\u793a\u662f\u9274\u6743\u5fae\u670d\u52a1\u63d0\u4f9b\u7684\u63a5\u53e3\uff0cInvoker.createProxy(\"auth\", \"auth\", Auth.class)\u662f\u900f\u660eRPC\u5f00\u53d1\u6a21\u5f0f\u4e2dconsumer\u7684\u5e95\u5c42api\uff0c\u4e0e@ReferenceRpc\u662f\u7b49\u6548\uff0c\u53ea\u4e0d\u8fc7\u4e0d\u9700\u8981\u4f9d\u8d56spring bean\u673a\u5236\u3002</p> <p>Auth\u63a5\u53e3\u5b8c\u5168\u7531\u4e1a\u52a1\u5b9a\u4e49\uff0c\u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u793a\u4f8b\u3002</p> <p>Handler\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u914d\u7f6e\u5230edge service\u7684microservice.yaml\u4e2d\uff1a</p> <pre><code>servicecomb:\n  handler:\n    chain:\n      Consumer:\n        default: auth,\u2026\u2026\n        service:\n          auth: \u2026\u2026\n</code></pre> <p>\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u8868\u793a\u8f6c\u53d1\u8bf7\u6c42\u7ed9\u6240\u6709\u7684\u5fae\u670d\u52a1\u90fd\u5fc5\u987b\u7ecf\u8fc7\u9274\u6743\uff0c\u4f46\u662f\u8c03\u7528\u9274\u6743\u5fae\u670d\u52a1\u65f6\u4e0d\u9700\u8981\u9274\u6743\u3002</p> <p>\u7279\u522b\u6ce8\u610f\uff1a  edge service \u7684\u5b9a\u5236\u903b\u8f91\uff0c\u5305\u62ec Dispatcher, Handler, HttpServerFilter \u7b49\uff0c\u5747\u5728 \u4e8b\u4ef6\u6d3e\u53d1\u7ebf\u7a0b event-loop \u4e2d\u6267\u884c\uff0c \u4efb\u4f55\u5b9a\u5236\u903b\u8f91\u5fc5\u987b\u4e0d\u80fd\u591f\u5b58\u5728\u963b\u585e\u903b\u8f91\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4 edge service \u51fa\u73b0\u6b7b\u9501\u3002 \u6bd4\u5982\u4e0a\u9762\u9274\u6743\u7684\u903b\u8f91\uff0c\u5fc5\u987b\u4f7f\u7528\u5f02\u6b65\u63a5\u53e3\uff0c\u800c\u4e0d\u80fd\u591f\u53c2\u8003 provider \u5f00\u53d1\u7684\u903b\u8f91\u90a3\u6837\uff0c\u4f7f\u7528\u540c\u6b65\u63a5\u53e3\u3002 \u5efa\u8bae\u4e1a\u52a1\u4f7f\u7528 \u5b9a\u5236\u903b\u8f91\u7684\u65f6\u5019\uff0c\u5bf9 edge service \u8fdb\u884c\u5e76\u53d1\u6d4b\u8bd5\uff0c\u6b7b\u9501\u95ee\u9898\u4f1a\u5728\u5e76\u53d1\u6570\u5927\u4e8e event-loop \u7ebf\u7a0b\u6570\u91cf\u7684\u60c5\u51b5\u4e0b\u51fa\u73b0\u3002 \uff08event-loop\u7ebf\u7a0b\u6570\u91cf\u9ed8\u8ba4\u662fCPU\u6838\u6570\u7684\u4e24\u500d\uff0c \u53ef\u4ee5\u901a\u8fc7 jstack \u547d\u4ee4\u67e5\u770b\u7ebf\u7a0b\u3002\uff09</p>"},{"location":"edge/nginx.html","title":"nginx \u7f51\u5173\u7b80\u5355\u4ecb\u7ecd","text":""},{"location":"edge/nginx.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":""},{"location":"edge/nginx.html#confd","title":"confd","text":"<p>confd\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u914d\u7f6e\u7ba1\u7406\u5de5\u5177\uff0c\u6e90\u7801\u5730\u5740\uff1ahttps://github.com/kelseyhightower/confd\uff0c \u5b83\u53ef\u4ee5\u5c06\u914d\u7f6e\u4fe1\u606f\u5b58\u50a8\u5728etcd\u3001consul\u3001dynamodb\u3001redis\u4ee5\u53cazookeeper\u7b49\u3002confd\u5b9a\u671f\u4f1a\u4ece\u8fd9\u4e9b\u5b58\u50a8\u8282\u70b9pull\u6700 \u65b0\u7684\u914d\u7f6e\uff0c\u7136\u540e\u91cd\u65b0\u52a0\u8f7d\u670d\u52a1\uff0c\u5b8c\u6210\u914d\u7f6e\u6587\u4ef6\u7684\u66f4\u65b0\u3002</p>"},{"location":"edge/nginx.html#nginx_1","title":"Nginx","text":"<p>Nginx (engine x)\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684HTTP\u548c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5177\u6709\u8d1f\u8f7d\u5747\u8861\u7684\u529f\u80fd\u3002\u8be6\u60c5\u8bf7 \u53c2\u8003http://www.nginx.cn/doc/\u3002</p>"},{"location":"edge/nginx.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u672c\u5c0f\u8282\u7b80\u5355\u4ecb\u7ecd Nginx \u5bf9\u63a5\u670d\u52a1\u4e2d\u5fc3\uff0c\u4ece\u670d\u52a1\u4e2d\u5fc3\u4e2d\u83b7\u53d6\u670d\u52a1\u4fe1\u606f\u5e76\u901a\u8fc7 confd \u52a8\u6001\u66f4\u65b0 Nginx \u7684\u914d\u7f6e\u3002</p> <p>\u4f7f\u7528 nginx+confd \u52a8\u6001\u53cd\u5411\u4ee3\u7406\u7684\u5b9e\u73b0\u6b65\u9aa4\u53ef\u53c2\u8003\u6587 \u7ae0http://www.cnblogs.com/Anker/p/6112022.html\u3002</p> <ul> <li>\u65b9\u6cd5\u4e00\uff1ahttp\u8c03\u7528</li> </ul> <p>\u670d\u52a1\u4e2d\u5fc3\u5f00\u653ehttp\u63a5\u53e3\u5747\u9700\u8981\u6dfb\u52a0\u79df\u6237\u5934\u90e8\u4fe1\u606f\uff1a\u201cX-Tenant-Name:tenantName\u201d\uff0ctenameName\u4e3a\u79df\u6237\u540d\uff0c\u9ed8   \u8ba4\u4e3adefault\uff0c\u4f8b\u5982\"X-Tenant-Name:default\"\u3002</p> <ul> <li> <p>\u68c0\u67e5\u670d\u52a1\u4e2d\u5fc3\u5065\u5eb7\u72b6\u6001</p> <pre><code>    ```\n    GET 127.0.0.1:30100/health\n    ```\n</code></pre> </li> <li> <p>\u83b7\u53d6\u6240\u6709\u5fae\u670d\u52a1\u4fe1\u606f</p> <pre><code>    ```\n    GET 127.0.0.1:30100/registry/v3/microservices\n    ```\n</code></pre> </li> <li> <p>\u83b7\u53d6\u6307\u5b9aid\u7684\u5fae\u670d\u52a1\u4fe1\u606f</p> <p>\u9996\u5148\u6839\u636e\u5fae\u670d\u52a1\u4fe1\u606f\u83b7\u53d6serviceId</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/existence?type=microservice&amp;appId={appId}&amp;serviceName={serviceName}&amp;version={version}\n</code></pre> <p>\u6839\u636e\u4e0a\u8ff0\u63a5\u53e3\u8fd4\u56de\u7684serviceId\u83b7\u53d6\u5fae\u670d\u52a1\u5b8c\u6574\u4fe1\u606f</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/microservices/{serviceId}\n</code></pre> </li> <li> <p>\u83b7\u53d6\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b\u4fe1\u606f</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/microservices/{serviceId}/instances\n</code></pre> <p>\u9700\u8981\u5728header\u4e2d\u6dfb\u52a0\uff1a\"X-ConsumerId:{serviceId}\"\u3002</p> </li> <li> <p>\u67e5\u627e\u5fae\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f</p> <pre><code>    GET 127.0.0.1:30100/registry/v3/instances?appId={appId}&amp;serviceName={serviceName}&amp;version={version}\n</code></pre> <p>\u9700\u8981\u5728header\u4e2d\u6dfb\u52a0: \"X-ConsumerId:{serviceId}\"\u3002</p> </li> <li> <p>\u65b9\u6cd5\u4e8c\uff1a\u4f7f\u7528servicecomb\u5f00\u6e90\u4ee3\u7801\u63a5\u53e3</p> </li> </ul> <p>\u5728\u5f00\u53d1\u5fae\u670d\u52a1\u5e94\u7528\uff0c\u53ea\u9700\u8981\u8c03\u7528servicecomb\u6846\u67b6\u4ee3\u7801\u4e2d\u7684\u5de5\u5177\u7c7bRegistryUtil.java\u4e2d\u63d0\u4f9b\u7684\u63a5\u53e3\uff0c\u5373\u53ef   \u83b7\u53d6\u670d\u52a1\u4e2d\u5fc3\u7684\u4fe1\u606f\uff0c\u63a5\u53e3\u63cf\u8ff0\u5982\u4e0b\uff1a</p> <ul> <li> <p>\u83b7\u53d6\u6240\u6709\u5fae\u670d\u52a1\u4fe1\u606f  </p> <pre><code>    List&lt;Microservice&gt; getAllMicroservices();\n</code></pre> </li> <li> <p>\u83b7\u53d6\u5fae\u670d\u52a1\u552f\u4e00\u6807\u8bc6  </p> <pre><code>    String getMicroserviceId(String appId, String microserviceName, String versionRule);\n</code></pre> </li> <li> <p>\u6839\u636e\u5fae\u670d\u52a1\u552f\u4e00\u6807\u8bc6\u67e5\u8be2\u5fae\u670d\u52a1\u9759\u6001\u4fe1\u606f  </p> <pre><code>    Microservice getMicroservice(String microserviceId);\n</code></pre> </li> <li> <p>\u6839\u636e\u591a\u4e2a\u5fae\u670d\u52a1\u552f\u4e00\u6807\u8bc6\u67e5\u8be2\u6240\u6709\u5fae\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f  </p> <pre><code>    List&lt;MicroserviceInstance&gt; getMicroserviceInstance(String consumerId, String providerId);\n</code></pre> </li> <li> <p>\u6309\u7167app+interface+version\u67e5\u8be2\u5b9e\u4f8bendpoints\u4fe1\u606f  </p> <pre><code>    List&lt;MicroserviceInstance&gt; findServiceInstance(String consumerId, String appId, String serviceName,String versionRule);\n</code></pre> </li> </ul> <p>\u901a\u8fc7\u4e0a\u8ff0http\u63a5\u53e3\u53ef\u83b7\u53d6\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u5fae\u670d\u52a1\u548c\u5176\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u901a\u8fc7confd\u52a8\u6001\u66f4\u65b0nginx\u914d\u7f6e\u3002</p>"},{"location":"edge/open-service.html","title":"\u670d\u52a1\u80fd\u529b\u5f00\u653e","text":"<p>\u5fae\u670d\u52a1\u80fd\u529b\u9700\u8981\u901a\u8fc7\u7f51\u5173\u5f00\u653e\u7ed9\u7528\u6237\u3001\u5176\u4ed6\u5916\u90e8\u7cfb\u7edf\u8bbf\u95ee\u3002\u7f51\u5173\u4e00\u65b9\u9762\u626e\u6f14\u7740\u6c47\u96c6\u7528\u6237\u8bf7\u6c42\u7684\u4f5c\u7528\uff0c\u540c\u65f6\u626e\u6f14\u8ba4\u8bc1\u3001\u9274\u6743\u3001\u6d41\u91cf \u63a7\u5236\u3001\u9632\u653b\u51fb\u7684\u7528\u9014\u3002\u7531\u4e8e\u7f51\u5173\u662f\u4e00\u4e2a\u6c47\u805a\u70b9\uff0c\u5bb9\u6613\u5f62\u6210\u4e1a\u52a1\u7684\u74f6\u9888\uff0c\u901a\u5e38\u8fd8\u4f1a\u91c7\u7528\u591a\u7ea7\u7f51\u5173\uff0c\u5916\u5c42\u7684\u7f51\u5173\u63d0\u4f9b\u4e3b\u5907\u4ee5\u53ca\u7b80\u5355 \u7684\u8bf7\u6c42\u8f6c\u53d1\u529f\u80fd\uff0c\u5185\u5c42\u7f51\u5173\u5b9e\u73b0\u9274\u6743\u7b49\u529f\u80fd\uff0c\u591a\u5b9e\u4f8b\u90e8\u7f72\u3002\u5e38\u89c1\u7684\u53ef\u4ee5\u7528\u4e8e\u5916\u5c42\u7f51\u5173\u7684\u6280\u672f\u548c\u670d\u52a1\u5305\u62ec <code>LVS</code>\u3001<code>DNS</code>, <code>Nginx</code> \u7b49\uff0c\u5185\u5c42\u7f51\u5173\u5305\u62ec <code>spring cloud gateway</code>\u3001<code>zuul</code> \u7b49\u3002</p> <p>ServiceComb \u4e5f\u63d0\u4f9b\u4e86\u5185\u5c42\u7f51\u5173\u670d\u52a1 <code>Edge Service</code>\u3002Edge Service \u5185\u5efa\u4e86\u5f3a\u5927\u7684\u8def\u7531\u7b56\u7565\uff0c\u652f\u6301\u63a5\u53e3\u7ea7\u522b\u7684 \u517c\u5bb9\u6027\u8f6c\u53d1\uff08\u7070\u5ea6\u53d1\u5e03\uff09\uff0c\u5185\u5d4c\u6cbb\u7406\u80fd\u529b\uff0c\u5e76\u652f\u6301\u975e\u5e38\u7075\u6d3b\u7684\u6269\u5c55\u673a\u5236\u3002</p>"},{"location":"edge/zuul.html","title":"\u4f7f\u7528 <code>zuul</code> \u548c <code>spring cloud gateway</code> \u505a\u7f51\u5173","text":"<p>Zuul\u662fNetflix\u7684\u57fa\u4e8eJVM\u7684\u8def\u7531\u5668\u548c\u670d\u52a1\u5668\u7aef\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528Zuul\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a</p> <ul> <li>\u8ba4\u8bc1</li> <li>\u6d1e\u5bdf</li> <li>\u538b\u529b\u6d4b\u8bd5</li> <li>\u91d1\u4e1d\u96c0\u6d4b\u8bd5</li> <li>\u52a8\u6001\u8def\u7531</li> <li>\u670d\u52a1\u8fc1\u79fb</li> <li>\u8d1f\u8f7d\u8131\u843d</li> <li>\u5b89\u5168</li> <li>\u9759\u6001\u76f8\u54cd\u5e94\u5904\u7406</li> <li>\u4e3b\u52a8/\u88ab\u52a8\u6d41\u91cf\u7ba1\u7406</li> </ul> <p>\u5173\u4e8eZuul\u7684\u8be6\u7ec6\u529f\u80fd\u4ecb\u7ecd\u8bf7\u53c2\u8003\u8def\u7531\u5668\u548c\u8fc7\u6ee4\u5668\uff1aZuul\u3002</p> <p>spring cloud gateway \u662f spring cloud \u5f00\u53d1\u7684\u65b0\u4e00\u4ee3\u7f51\u5173\u670d\u52a1\uff0c\u8be6\u7ec6\u4ecb\u7ecd\u53ef\u4ee5\u53c2\u8003sprig cloud gateway</p> <p>\u4f7f\u7528 <code>zuul</code> \u548c <code>spring cloud gateway</code> \u4f5c\u4e3a\u7f51\u5173\uff0c\u6838\u5fc3\u9700\u8981\u89e3\u51b3\u7684\u95ee\u9898\u662f\u4ece\u670d\u52a1\u4e2d\u5fc3\u53d1\u73b0\u5176\u4ed6\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c \u9700\u8981\u4f7f\u7528\u5230 spring cloud huawei \u7684\u7ec4\u4ef6\uff0c \u8be6\u7ec6\u5f00\u53d1\u6307\u5357\u53ef\u4ee5\u53c2\u8003zuul\u7528spring cloud huawei\u7684\u4f8b\u5b50\uff0cgateway\u7528spring cloud huawei\u7684\u4f8b\u5b50</p>"},{"location":"featured-topics/application-bmi.html","title":"Java-Chassis \u5165\u95e8\u6307\u5357 - \u5f00\u53d1BMI\u5e94\u7528","text":"<p>\u672c\u6307\u5357\u5c06\u4ee5\u4e00\u4e2a\u7b80\u5355\u7684 \u4f53\u8d28\u6307\u6570(BMI) \u5e94\u7528\u5f00\u5c55\u5fae\u670d\u52a1\u4e4b\u65c5\u3002\u4f53\u8d28\u6307\u6570\u4e3b\u8981\u7528\u4e8e\u8861\u91cf\u4eba\u4f53\u80d6\u7626\u7a0b\u5ea6\u3002\u8be5\u5e94\u7528\u4e3b\u8981\u5305\u542b\u4e24\u4e2a\u5fae\u670d\u52a1\uff1a</p> <ul> <li> <p>\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\uff1a\u8d1f\u8d23\u5904\u7406\u8fd0\u7b97\u4e8b\u52a1\u3002</p> </li> <li> <p>\u4f53\u8d28\u6307\u6570\u754c\u9762\uff1a\u63d0\u4f9b\u7528\u6237\u754c\u9762\u53ca\u7f51\u5173\u670d\u52a1\u3002</p> </li> </ul> <p>\u5176\u8fd0\u884c\u6d41\u7a0b\u4e3a\uff1a </p> <p>\u5176\u4e2d\uff0c\u865a\u7ebf\u8868\u793a\u670d\u52a1\u6ce8\u518c\u53ca\u670d\u52a1\u53d1\u73b0\u7684\u8fc7\u7a0b\u3002</p> <p>\u672c\u6307\u5357\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a</p> <ul> <li>\u5feb\u901f\u5165\u95e8</li> <li>\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1</li> <li>\u5fae\u670d\u52a1\u5f00\u53d1\u8fdb\u9636</li> </ul> <p>\u4ecb\u7ecd\u6587\u6863\u7684\u6e90\u4ee3\u7801\u6258\u7ba1\u5728github</p>"},{"location":"featured-topics/application-porter.html","title":"Java-Chassis \u5165\u95e8\u6307\u5357 - \u5f00\u53d1 porter \u5e94\u7528","text":"<p>\u793a\u4f8b\u9879\u76ee\u5305\u542b\u5982\u4e0b\u7ae0\u8282\uff1a</p> <ul> <li>User Story</li> <li>\u8bbe\u8ba1\u5fae\u670d\u52a1</li> <li>\u5f00\u53d1\u754c\u9762(porter-website)</li> <li>\u5f00\u53d1\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd(file-service)</li> <li>\u5f00\u53d1\u7f51\u5173(gateway-service)</li> <li>\u4f7f\u7528MyBatis\u8bbf\u95ee\u6570\u636e\u5e93(user-service)</li> <li>\u8fdb\u884c\u8ba4\u8bc1\u548c\u9274\u6743\u8bbe\u8ba1</li> <li>\u7f51\u5173HTTPS\u5b89\u5168\u914d\u7f6e</li> </ul> <p>\u793a\u4f8b\u9879\u76ee\u7684\u51fa\u53d1\u70b9\u662f\u5e2e\u52a9\u5f00\u53d1\u8005\u5f00\u53d1\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u5e94\u7528\u3002\u901a\u8fc7\u4e00\u4e2a\u5178\u578b\u7684\u5e94\u7528\u573a\u666f\uff0c\u5c55\u73b0\u4e00\u4e2a\u5fae\u670d\u52a1\u5e94\u7528\u9700\u8981\u89e3\u51b3\u90a3\u4e9b\u95ee\u9898\uff0c\u5728\u4e0d\u540c\u7684\u7ae0\u8282\u91cc\u9762\uff0c\u4f1a\u8be6\u7ec6\u89e3\u91ca\u89e3\u51b3\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u6280\u672f\u539f\u7406\u548c\u5b9e\u73b0\u8fc7\u7a0b\u3002</p> <p>\u8fd9\u4e2a\u5e94\u7528\u573a\u666f\uff0c\u662f\u901a\u8fc7\u6536\u96c6\u4e86\u4e00\u4e9b\u7528\u6237\u7684\u771f\u5b9e\u4e1a\u52a1\u573a\u666f\u63d0\u53d6\u51fa\u6765\u7684\u3002\u5177\u4f53\u5305\u62ec\uff1a</p> <ol> <li> <p>\u4e00\u4e2a\u63a8\u8350\u7684\u5fae\u670d\u52a1\u8bbe\u8ba1\u65b9\u6848\uff1b</p> </li> <li> <p>\u8ba4\u8bc1\u9274\u6743\uff1b</p> </li> <li> <p>\u4f7f\u7528mybatis\u8bbf\u95ee\u6570\u636e\u5e93\uff1b</p> </li> <li> <p>\u4f7f\u7528html+js\u63d0\u4f9b\u754c\u9762\u670d\u52a1\uff1b</p> </li> <li> <p>\u4e0a\u4f20\u6587\u4ef6\uff1b</p> </li> <li> <p>\u4f7f\u7528\u7f51\u5173\u548c\u914d\u7f6eHTTPS\uff1b</p> </li> </ol> <p>\u5728\u8fd9\u4e2a\u5e94\u7528\u4e2d\uff0c\u5c3d\u53ef\u80fd\u8ba9\u670d\u52a1\u5c0f\u3001\u6bcf\u4e2a\u5fae\u670d\u52a1\u5b8c\u5168\u72ec\u7acb\uff0c\u6ca1\u6709\u4ee3\u7801\u4e0a\u7684\u4f9d\u8d56\uff0c\u670d\u52a1\u4e4b\u95f4\u901a\u8fc7REST\u63a5\u53e3\u76f8\u4e92\u8bbf\u95ee\u3002\u4e3a\u4e86\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\uff0c\u53ef\u80fd\u4f1a\u6709\u4e9b\u91cd\u590d\u4ee3\u7801\uff08\u5305\u62ec\u914d\u7f6e\u7c7b\u6587\u4ef6\u5982pom.xml\u3001\u6570\u636e\u6a21\u578b\u7c7b\u6587\u4ef6\u7b49\uff09\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u7ed3\u5408\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u662f\u5426\u63d0\u4f9b\u516c\u5171\u6a21\u5757\uff0c\u6765\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u3002\u5728\u8fd9\u4e2a\u9879\u76ee\u4e2d\u9009\u62e9\u7684\u662f\u7528\u91cd\u590d\u4ee3\u7801\u6765\u6362\u53d6\u81ea\u7531\u5ea6\u7684\u65b9\u6848\u3002</p> <p>\u5728\u5b9e\u9645\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u8fd8\u4f1a\u9075\u5faa\u5176\u4ed6\u4e00\u4e9b\u548c\u5fae\u670d\u52a1\u5f00\u53d1\u6709\u5173\u7684\u539f\u5219\uff0c\u5305\u62ec\u65e0\u72b6\u6001\u8bbe\u8ba1\u7b49\u3002\u8fd9\u91cc\u7684\u4f8b\u5b50\u7684\u76ee\u7684\u662f\u642d\u5efa\u4e00\u4e2a\u5546\u4e1a\u53ef\u7528\u7684\u5fae\u670d\u52a1\uff0c\u56e0\u6b64\u6211\u4eec\u4f1a\u5728\u67b6\u6784\u8bbe\u8ba1\u3001\u65b9\u6848\u8bbe\u8ba1\u4e0a\u4e5f\u7ed9\u51fa\u4e00\u5b9a\u7684\u5efa\u8bae\u4ee5\u53ca\u8bf4\u660e\u8fd9\u6837\u5904\u7406\u7684\u76ee\u7684\u3002</p> <p>\u672c\u4e13\u9898\u7684\u6d89\u53ca\u7684\u4ee3\u7801\u5747\u6258\u7ba1\u5728github\uff0c\u53c2\u8003 Porter\u5e94\u7528 \u3002\u5f00\u53d1\u8005\u53ef\u4ee5clone\u4e00\u4efd\u4f9b\u5b66\u4e60\u4f7f\u7528\uff0c\u6216\u8005\u4f5c\u4e3a\u6b63\u5f0f\u9879\u76ee\u7684\u6a21\u677f\u3002</p>"},{"location":"featured-topics/compatibility.html","title":"\u517c\u5bb9\u95ee\u9898\u548c\u517c\u5bb9\u6027\u7b56\u7565","text":"<p>\u517c\u5bb9\u662f\u88ab\u5e7f\u6cdb\u8ba8\u8bba\u7684\u95ee\u9898\uff0c\u5927\u91cf\u5f00\u53d1\u8005\u4e5f\u5173\u6ce8 ServiceComb \u7684\u517c\u5bb9\u6027\u5982\u4f55\u3002 \u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u89e6\u53d1\u70b9\u662f\u5728 ServiceComb \u4e2d \u56de\u7b54\u4e86\u4e00\u4e2a\u5173\u4e8e\u517c\u5bb9\u7684\u95ee\u9898 \u3002 \u5728 \u8fd9\u4e2a\u95ee\u9898\u4e2d\uff0c \u5f00\u53d1\u8005\u4e3a\u4e86\u9690\u85cf\u7cfb\u7edf\u5185\u90e8\u7684\u53d8\u5316\uff0c\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u989d\u5916\u589e\u52a0\u7279\u6b8a\u903b\u8f91\uff0c\u4ee5\u4fdd\u969c\u4f7f\u7528\u8005\u4e0d\u611f\u77e5\u8fd9\u4e2a\u53d8\u5316\u3002 \u8fd9\u4e2a\u95ee\u9898 \u53cd\u6620\u4e86\u517c\u5bb9\u95ee\u9898\u7684\u4e24\u9762\u6027\uff1a\uff081\uff09\u4fdd\u6301\u517c\u5bb9\u53ef\u4ee5\u5c4f\u853d\u4f7f\u7528\u8005\u5bf9\u4e8e\u53d8\u5316\u7684\u611f\u77e5\uff0c\u7ef4\u6301\u73b0\u6709\u529f\u80fd\u7684\u7a33\u5b9a\u6027\uff0c\u964d\u4f4e\u5f15\u5165\u65b0\u7248\u672c\u7684\u6210\u672c\uff0c \u51cf\u5c11\u5bf9\u73b0\u6709\u7cfb\u7edf\u529f\u80fd\u7684\u5f71\u54cd\uff1b\uff082\uff09\u4fdd\u6301\u517c\u5bb9\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u589e\u52a0\u590d\u6742\u6027\uff0c\u8fd9\u4e9b\u590d\u6742\u6027\u53ef\u80fd\u5e76\u4e0d\u662f\u5b9e\u73b0\u73b0\u5b9e\u4e1a\u52a1\u903b\u8f91\u5fc5\u987b\u7684\uff0c\u7ee7\u800c \u7ed9\u73b0\u6709\u7cfb\u7edf\u529f\u80fd\u7684\u53ef\u9760\u6027\u5e26\u6765\u95f4\u63a5\u5f71\u54cd\uff1b\u4ece\u5f00\u53d1\u8005\u7684\u89d2\u5ea6\uff0c\u505a\u4e0d\u517c\u5bb9\u6027\u91cd\u6784\u901a\u5e38\u662f\u4e0d\u5f97\u5df2\u800c\u4e3a\u4e4b\uff0c\u6216\u8005\u7531\u4e8e\u73b0\u6709\u63a5\u53e3\u8bbe\u8ba1\u4e0d \u5408\u7406\u5f71\u54cd\u6269\u5c55\uff0c\u6216\u8005\u5b58\u5728\u67d0\u4e9b\u672a\u8003\u8651\u7684\u7f3a\u9677\uff0c\u4e0d\u671f\u671b\u4f7f\u7528\u8005\u7ee7\u7eed\u4f7f\u7528\u3002\u5982\u679c\u4fdd\u6301\u517c\u5bb9\uff0c\u4f7f\u7528\u8005\u4e0d\u80fd\u611f\u77e5\u5230\u8fd9\u4e2a\u53d8\u5316\uff0c \u76f4\u5230\u8be5\u529f\u80fd\u5728\u5b9e\u9645\u73af\u5883\u51fa\u73b0\u95ee\u9898\uff0c\u589e\u52a0\u4e86\u95ee\u9898\u53d1\u73b0\u65f6\u95f4\u3002</p> <p>\u8f6f\u4ef6\u4e0d\u53ef\u80fd\u4e00\u5f00\u59cb\u5c31\u88ab\u8bbe\u8ba1\u7684\u5b8c\u7f8e\uff0c\u56e0\u6b64\u517c\u5bb9\u6027\u95ee\u9898\u4f1a\u4e00\u76f4\u5b58\u5728\u3002\u9700\u8981\u7ed3\u5408\u517c\u5bb9\u6027\u7684\u573a\u666f\u548c\u517c\u5bb9\u6027\u7684\u5f71\u54cd\uff0c\u7efc\u5408\u8bc4\u4f30\u517c\u5bb9\u7b56\u7565\uff0c \u4f7f\u5f97\u65e2\u4fdd\u6301\u5f15\u5165\u65b0\u7248\u672c\u7684\u6548\u7387\uff0c\u53c8\u80fd\u591f\u5728\u6bcf\u6b21\u5347\u7ea7\u65b0\u7248\u672c\u7684\u65f6\u5019\uff0c\u4fee\u590d\u5df2\u77e5\u95ee\u9898\uff0c\u8ba9\u7248\u672c\u5347\u7ea7\u53d8\u5f97\u66f4\u6709\u4ef7\u503c\u3002</p>"},{"location":"featured-topics/compatibility.html#_2","title":"\u517c\u5bb9\u6027\u573a\u666f\u548c\u5206\u7c7b","text":"<p>\u4e3a\u4e86\u8bc4\u4f30\u517c\u5bb9\u6027\u7684\u5f71\u54cd\uff0c\u9700\u8981\u7ec6\u5316\u517c\u5bb9\u6027\u7684\u573a\u666f\u548c\u5206\u7c7b\u3002</p> <ul> <li> <p>\u8fd0\u884c\u65f6\u517c\u5bb9\u3002\u8003\u8651\u4e00\u538b\u7f29\u6587\u4ef6\u7684\u7a0b\u5e8f <code>zip.exe</code>\uff0c \u8fd9\u4e2a\u7a0b\u5e8f\u5728\u8001\u7248\u672c\u7684 windows \u91cc\u9762\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\uff0c\u7136\u540e\u5c06\u8fd9\u4e2a   \u7a0b\u5e8f\u62f7\u8d1d\u5230\u65b0\u7248\u672c\u7684 windows \u91cc\u9762\uff0c\u5982\u679c\u4ecd\u7136\u53ef\u4ee5\u6267\u884c\uff0c\u90a3\u4e48\u8ba4\u4e3a\u662f\u8fd0\u884c\u65f6\u517c\u5bb9\uff1b\u518d\u8003\u8651\u4f7f\u7528\u8001\u7248\u672c JDK \u6267\u884c\u7684   \u7a0b\u5e8f <code>hello.jar</code>\uff0c \u4f7f\u7528\u65b0\u7248\u672c JDK \uff0c\u5982\u679c\u4ecd\u7136\u53ef\u4ee5\u6267\u884c\uff0c\u90a3\u4e48\u8ba4\u4e3a\u662f\u8fd0\u884c\u65f6\u517c\u5bb9\u7684\u3002 \u8fd0\u884c\u65f6\u517c\u5bb9\u901a\u5e38   \u9002\u7528\u4e8e\u64cd\u4f5c\u7cfb\u7edf\uff0c\u8fd0\u884c\u5bb9\u5668\u7b49\u57fa\u7840\u8f6f\u4ef6\u5e73\u53f0\uff0c\u6216\u8005\u5b9e\u73b0\u6807\u51c6\u534f\u8bae\u7684\u8fd0\u884c\u73af\u5883\uff0c\u5982 JSP/Servlet \u7684\u5b9e\u73b0 Tomcat\u3002    \u5728\u65e9\u4e9b\u65f6\u5019\uff0c\u8fd9\u4e9b\u57fa\u7840\u8f6f\u4ef6\u5e73\u53f0\u7684\u517c\u5bb9\u6027\u4e00\u76f4\u505a\u7684\u4e0d\u9519\uff0c\u968f\u7740\u6280\u672f\u53d1\u5c55\u8d8a\u6765\u8d8a\u5feb\uff0c\u7528\u6237\u5bf9\u4e8e\u4f53\u9a8c\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c   \u57fa\u7840\u8f6f\u4ef6\u5e73\u53f0\u5728\u4fdd\u6301\u517c\u5bb9\u6027\u7684\u65b9\u9762\u8d8a\u6765\u8d8a\u653e\u5f00\uff0c\u517c\u5bb9\u7248\u672c\u8d8a\u6765\u8d8a\u5c11\u3002\u6bd4\u5982 windows 10 \u7684\u7248\u672c\u5e76\u4e0d\u517c\u5bb9\u90e8\u5206\u8001\u7684   \u6267\u884c\u7a0b\u5e8f\uff0cJDK 12 \u4e5f\u4e0d\u518d\u517c\u5bb9\u90e8\u5206 jar \u5305\uff0c\u82f9\u679c\u7684\u5e73\u53f0\u4e00\u76f4\u91c7\u53d6\u7684\u662f\u4e00\u79cd\u79ef\u6781\u7684\u5411\u524d\u770b\u7684\u7b56\u7565\uff0c\u591a\u6570\u65b0\u7248\u672c   \u5e73\u53f0\u7684\u63a8\u51fa\uff0c\u90fd\u8981\u6c42\u5e94\u7528\u4f7f\u7528\u65b0\u7248\u672c\u5e73\u53f0\u91cd\u65b0\u7f16\u8bd1\u540e\u5728\u5e94\u7528\u5e02\u573a\u53d1\u5e03\u3002 </p> </li> <li> <p>\u7f16\u8bd1\u65f6\u517c\u5bb9\u3002\u7f16\u8bd1\u65f6\u517c\u5bb9\u662f\u7ec4\u4ef6/\u6a21\u5757\u7c7b\u8f6f\u4ef6\u5e38\u89c1\u7684\u517c\u5bb9\u6027\u7c7b\u578b\uff0c\u6bd4\u5982 ServiceComb\uff0c \u901a\u5e38\u4f5c\u4e3a\u8fd0\u884c\u7a0b\u5e8f\u7684\u4e00\u90e8\u5206\uff0c   \u901a\u8fc7\u7f16\u8bd1\u5de5\u5177\uff0c\u4e0e\u4e1a\u52a1\u4ee3\u7801\u4e00\u8d77\u7f16\u8bd1\u4e3a\u53ef\u6267\u884c\u7684\u7a0b\u5e8f\u3002 \u4ee5 ServiceComb \u4e3a\u4f8b\uff0c\u4f7f\u7528\u5b83\u7684\u5e94\u7528\u7a0b\u5e8f\u91c7\u7528 maven \u5de5\u5177   \u8fdb\u884c\u7f16\u8bd1\uff0c\u5982\u679c\u80fd\u591f\u901a\u8fc7\u4fee\u6539\u4f9d\u8d56\u7684 pom \u7684\u7248\u672c\u53f7\uff0c\u7f16\u8bd1\u901a\u8fc7\uff0c\u5e76\u4e14\u529f\u80fd\u6ca1\u6709\u53d8\u5316\uff0c\u90a3\u4e48\u5c31\u8ba4\u4e3a\u662f\u7f16\u8bd1\u65f6\u517c\u5bb9\u3002 \u7f16\u8bd1\u53ef\u4ee5\u8ba4\u4e3a\u662f\u5f00\u53d1   \u8fc7\u7a0b\u7684\u4e00\u90e8\u5206\uff0c\u4e0d\u517c\u5bb9\u5bfc\u81f4\u7684\u7f16\u8bd1\u5931\u8d25\uff0c\u901a\u5e38\u4e0d\u4f1a\u7ed9\u6700\u7ec8\u7528\u6237\u5e26\u6765\u5f71\u54cd\uff0c\u7ec4\u4ef6\u4f7f\u7528\u8005\u901a\u8fc7\u4fee\u6539\u7f16\u8bd1\u4e0d\u901a\u8fc7\u7684\u6a21\u5757\uff0c\u4f7f\u7528   \u65b0\u63d0\u4f9b\u7684 API\uff0c\u5c31\u80fd\u591f\u7f16\u8bd1\u901a\u8fc7\u3002\u7f16\u8bd1\u4e0d\u517c\u5bb9\u7684\u4fee\u6b63\u4f1a\u6d89\u53ca\u63a5\u53e3\u7684\u66ff\u6362\uff0c\u5982\u679c\u65b0\u66ff\u6362\u7684\u63a5\u53e3\u4e0e\u8001\u63a5\u53e3\u529f\u80fd\u4e0d\u4e00\u81f4\uff0c\u800c   \u5f00\u53d1\u8005\u53c8\u6ca1\u6709\u9488\u5bf9\u8fd9\u4e9b\u53d8\u66f4\u7684\u529f\u80fd\u8fdb\u884c\u6d4b\u8bd5\uff0c\u5219\u53ef\u80fd\u5c06\u95ee\u9898\u9057\u6f0f\u5230\u6700\u7ec8\u7528\u6237\u3002 \u4fee\u6b63\u7f16\u8bd1\u4e0d\u517c\u5bb9\u95ee\u9898\u9700\u8981\u6709\u66ff\u6362\u7684\u63a5\u53e3\uff0c\u5982\u679c   \u6ca1\u6709\u53ef\u66ff\u6362\u7684\u63a5\u53e3\uff0c\u90a3\u4e48\u5f00\u53d1\u8005\u6ca1\u6cd5\u4f7f\u7528\u65b0\u7248\u672c\uff0c\u8fd9\u4e2a\u4e0d\u4f1a\u7ed9\u6700\u7ec8\u7528\u6237\u5e26\u6765\u5f71\u54cd\uff0c\u5f00\u53d1\u8005\u9700\u8981\u8054\u7cfb\u7ec4\u4ef6\u63d0\u4f9b\u8005\u63d0\u4f9b\u5bf9\u5e94\u7684   \u89e3\u51b3\u65b9\u6848\u6ee1\u8db3\u8981\u6c42\u3002\u7ec4\u4ef6\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9\u505a\u7684\u6bd4\u8f83\u597d\u7684\u4e00\u822c\u662f\u4e00\u4e9b\u7b97\u6cd5\u7c7b\u3001\u534f\u8bae\u7c7b\u7ec4\u4ef6\uff0c\u6bd4\u5982 JDK \u7684\u6570\u636e\u7ed3\u6784\u5e93\uff0cjackson    \u7684 JSON \u89e3\u6790\u5e93\uff0c\u8d8a\u662f\u9762\u5411\u5e94\u7528\u5c42\uff0c\u7f16\u8bd1\u4e0d\u517c\u5bb9\u7684\u60c5\u51b5\u8d8a\u662f\u53d1\u751f\u9891\u7e41\uff0c\u6bd4\u5982 spring cloud \u76f8\u5173\u7684\u5e93\u3002</p> </li> <li> <p>\u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u3002 \u670d\u52a1\u63a5\u53e3\u662f\u5e94\u7528\u670d\u52a1\u5316\u4ee5\u540e\u51fa\u73b0\u7684\u6982\u5ff5\uff0c\u901a\u5e38\u8868\u793a\u4e3a\u5e94\u7528\u5bf9\u5916\u63d0\u4f9b\u7684 REST \u63a5\u53e3\u3002 \u670d\u52a1\u63a5\u53e3\u7531\u4e8e\u90fd\u662f   \u5728\u7ebf\u4f7f\u7528\uff0c\u4e00\u65e6\u63a5\u53e3\u53d8\u5316\uff0c\u5c31\u53ef\u80fd\u5bf9\u4f7f\u7528\u8005\u7684\u4e1a\u52a1\u7cfb\u7edf\u4ea7\u751f\u5f71\u54cd\u3002\u670d\u52a1\u63a5\u53e3\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4f7f\u7528\u8005\u4e5f\u65e0\u6cd5\u901a\u8fc7\u79bb\u7ebf\u7f16\u8bd1   \u53d1\u73b0\uff0c\u6240\u6709\u7684\u95ee\u9898\u90fd\u662f\u5bf9\u7528\u6237\u4ea7\u751f\u5f71\u54cd\u540e\u624d\u88ab\u53d1\u73b0\uff0c\u56e0\u6b64\u670d\u52a1\u63a5\u53e3\u7684\u517c\u5bb9\u663e\u5f97\u5c24\u5176\u91cd\u8981\u3002 </p> </li> </ul> <p>\u6839\u636e\u4e0a\u9762\u7684\u517c\u5bb9\u6027\u573a\u666f\uff0c\u53ef\u4ee5\u6309\u7167\u517c\u5bb9\u6027\u7b26\u5408\u5ea6\uff0c\u5206\u4e3a\u4e0b\u9762\u51e0\u7c7b\u3002</p> <ul> <li>\u5b8c\u7f8e\u3002\u5b8c\u7f8e\u8fd0\u884c\u65f6\u517c\u5bb9\u4ee3\u8868\u8001\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u5c31\u53ef\u4ee5\u5728\u65b0\u73af\u5883\u6267\u884c\uff1b\u5b8c\u7f8e\u7f16\u8bd1\u65f6\u517c\u5bb9\u4ee3\u8868\u4f7f\u7528\u65b0\u7248\u672c\u7f16\u8bd1\u65f6   \u4e0d\u4f1a\u51fa\u73b0\u7f16\u8bd1\u9519\u8bef\uff0c\u5e76\u4e14\u8fd0\u884c\u65f6\u884c\u4e3a\u4e00\u81f4\u3002</li> <li>\u6070\u5f53\u3002\u6070\u5f53\u8fd0\u884c\u65f6\u517c\u5bb9\u4ee3\u8868\u8001\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528\u65b0\u5e73\u53f0\u63d0\u4f9b\u7684\u7f16\u8bd1/\u6253\u5305\u7b49\u5de5\u5177\u91cd\u65b0\u7f16\u8bd1\u4fee\u6539\uff0c\u5982\u679c\u5b58\u5728\u5931\u8d25\uff0c\u6839\u636e\u76f8\u5173\u7684\u6307\u5f15   \u4fee\u590d\u91cd\u65b0\u53d1\u5e03\uff0c\u80fd\u591f\u7ee7\u7eed\u8fd0\u884c\uff0c\u5728\u65b0\u5e73\u53f0\u8fd0\u884c\u7684\u6548\u679c\u548c\u8001\u7248\u672c\u4e00\u81f4\u3002\u6070\u5f53\u7f16\u8bd1\u65f6\u517c\u5bb9\u6307\u5b58\u5728\u7f16\u8bd1\u5931\u8d25\uff0c\u4f7f\u7528\u65b0\u7248\u672c\u7684API\u66ff\u6362   \u8001\u7684API\u7f16\u8bd1\u901a\u8fc7\u540e\uff0c\u5e94\u7528\u7a0b\u5e8f\u7684\u884c\u4e3a\u548c\u8001\u7248\u672c\u4e00\u81f4\u3002\u6070\u5f53\u517c\u5bb9\u548c\u4fee\u6539\u5de5\u4f5c\u91cf\u6709\u5173\u7cfb\uff0c\u6bd4\u5982\u8001\u7248\u672c\u5207\u6362\u4e3a\u65b0\u7248\u672c\uff0c\u5982\u679c\u5de5\u4f5c\u91cf   \u80fd\u591f\u63a7\u5236\u57281\u4eba\u5929\uff0c \u53ef\u4ee5\u8ba4\u4e3a\u662f\u6070\u5f53\u517c\u5bb9\u3002 </li> <li>\u4e0d\u517c\u5bb9\u3002\u4e0d\u517c\u5bb9\u6307\u4fee\u6539\u5de5\u4f5c\u91cf\u8d85\u8fc7\u53ef\u63a5\u7eb3\u7684\u9650\u5ea6\uff0c\u6216\u8005\u67d0\u4e2a\u63a5\u53e3\u6ca1\u6709\u66ff\u6362\u65b9\u6848\u3002</li> </ul>"},{"location":"featured-topics/compatibility.html#servicecomb","title":"ServiceComb \u7684\u517c\u5bb9\u6027\u7b56\u7565","text":"<p>ServiceComb \u5b58\u5728\u591a\u4e2a\u4e0d\u540c\u7684\u7ec4\u4ef6\uff0c\u5bf9\u4e8e\u4e2d\u95f4\u4ef6\u7c7b\u670d\u52a1\uff0c\u6bd4\u5982 servicecomb-service-center \u7684\u517c\u5bb9\u6027\u7b56\u7565\u662f \u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u3002 \u5bf9\u4e8e\u5f00\u53d1 SDK \u7c7b\uff0c\u6bd4\u5982 servicecomb-java-chassis \u7684\u517c\u5bb9\u6027\u7b56\u7565\u662f<code>\u6070\u5f53\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9</code>\u3002 </p> <p>\u76f8\u5bf9\u4e8e\u5b9e\u9645\u60c5\u51b5\uff0c\u4e0a\u9762\u7684\u7b56\u7565\u63cf\u8ff0\u4ecd\u7136\u6bd4\u8f83\u7b80\u5355\uff0c\u56e0\u4e3a\u5b9e\u9645\u60c5\u51b5\u6bd4\u8bbe\u60f3\u7684\u60c5\u51b5\u8981\u590d\u6742\u7684\u591a\u3002\u672c\u6587\u5173\u4e8e\u517c\u5bb9\u6027\u573a\u666f\u7684\u63cf\u8ff0\uff0c \u5e76\u4e0d\u80fd\u6982\u51b5\u6240\u6709\u7684\u517c\u5bb9\u6027\u573a\u666f\uff0c\u6bd4\u5982\u5bf9\u4e8e SDK \u7c7b\uff0c\u4e5f\u53ef\u80fd\u5b58\u5728\u8fd0\u884c\u65f6\u517c\u5bb9\u7684\u8981\u6c42\uff0c\u7279\u522b\u662f\u6709\u4e9b\u4e1a\u52a1\u7cfb\u7edf\u662f\u57fa\u4e8e\u8001\u7684\u6784\u5efa \u5de5\u5177\uff0c\u6bd4\u5982 ANT \u7684\u60c5\u51b5\uff0c\u4e1a\u52a1\u53ef\u80fd\u9700\u8981\u66ff\u6362 jar \u7684\u65b9\u5f0f\u6ee1\u8db3\u517c\u5bb9\u6027\u8981\u6c42\u3002 SDK \u7c7b\u4e5f\u5b58\u5728\u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u7684\u8981\u6c42\uff0c\u6bd4\u5982 \u901a\u8fc7 SDK \u7684 <code>HIGHWAY</code> \u53d1\u5e03\u63a5\u53e3\uff0c\u5982\u679c <code>HIGHWAY</code> \u5e95\u5c42\u7684\u901a\u4fe1\u534f\u8bae\u6216\u8005\u7f16\u89e3\u7801\u65b9\u5f0f\u53d1\u751f\u53d8\u5316\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u670d\u52a1 \u63a5\u53e3\u4e0d\u517c\u5bb9\u3002 </p> <p>\u4e3a\u4e86\u5bf9\u5404\u79cd\u590d\u6742\u7684\u517c\u5bb9\u6027\u573a\u666f\u8fdb\u884c\u6709\u6548\u7ba1\u7406\uff0cjava-chassis \u4f7f\u7528 3 \u4f4d\u7248\u672c\u53f7(major.minor.patch)\u9002\u5f53\u533a\u5206\uff1a</p> <ul> <li>patch: \u6070\u5f53\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9\u7248\u672c\u3002\u5347\u7ea7 patch \u7248\u672c\uff0c\u901a\u5e38\u5de5\u4f5c\u91cf\u53ef\u4ee5\u63a7\u5236\u57281\u4eba\u5929\u4ee5\u5185\u3002patch \u7248\u672c\u591a\u6570\u53ea\u9700\u8981   \u5347\u7ea7\u7248\u672c\u53f7\uff0c\u7136\u540e\u91cd\u65b0\u7f16\u8bd1\u53d1\u5e03\u5373\u53ef\u3002 \u5c11\u91cf\u7684\u7248\u672c\u53ef\u80fd\u5b58\u5728\u5f71\u54cd\u6781\u5c0f\u7684\u4e0d\u517c\u5bb9\u8c03\u6574\uff0c\u6bd4\u5982\u5c06\u65b9\u6cd5 <code>wong</code> \u91cd\u547d\u540d   \u4e3a <code>wrong</code>\u3002</li> <li>minor: \u6070\u5f53\u7684\u7f16\u8bd1\u65f6\u517c\u5bb9\u7248\u672c\u3002\u76f8\u8f83\u4e8e patch \u7248\u672c\uff0c minor \u7248\u672c\u53ef\u80fd\u5b58\u5728\u66f4\u591a\u7684\u65b0\u7279\u6027\u4ea4\u4ed8\uff0c\u9879\u76ee\u7ed3\u6784\u5b58\u5728   \u4e00\u5b9a\u7a0b\u5ea6\u7684\u91cd\u6784\uff0c\u4f7f\u7528\u5185\u90e8 API \u7684\u5f00\u53d1\u8005\u53ef\u80fd\u9700\u8981\u89e3\u51b3\u8f83\u591a\u7684\u7f16\u8bd1\u95ee\u9898\uff0c\u4f7f\u7528\u65b0\u7684 API \u66ff\u6362\u8001\u7684 API\u3002minor   \u7248\u672c\u7684\u5347\u7ea7\u5de5\u4f5c\u91cf\u901a\u5e38\u63a7\u5236\u57283\u4eba\u5929\u4ee5\u5185\u3002</li> <li>major\uff1a\u63d0\u4f9b major \u7248\u672c\uff0c\u901a\u5e38\u662f\u7531\u4e8e\u67d0\u4e9b\u7279\u6027\u53ef\u80fd\u5bfc\u81f4\u8fd0\u884c\u65f6\u517c\u5bb9\u95ee\u9898\u3002\u6bd4\u5982 <code>2.0.0</code> \u7248\u672c\u7684 <code>HIGHWAY</code>   \u534f\u8bae\u7684\u4fee\u6539\u3002 \u56e0\u4e3a\u8fd0\u884c\u65f6\u517c\u5bb9\u51fa\u73b0\u7684\u65f6\u5019\uff0c\u53ea\u8981\u4f7f\u7528\u4e86\u8be5\u529f\u80fd\u7684\u6240\u6709\u5fae\u670d\u52a1\u90fd\u9700\u8981\u4e00\u5e76\u5347\u7ea7\uff0c\u5de5\u4f5c\u91cf\u4ece\u5355\u4e2a\u670d\u52a1\u63d0\u5347   \u5230\u6574\u4e2a\u5e94\u7528\uff0c\u89c6\u5e94\u7528\u7684\u89c4\u6a21\u5927\u5c0f\uff0c\u5de5\u4f5c\u91cf\u4f1a\u5dee\u522b\u5f88\u5927\u3002\u5f53\u7136\u5e76\u4e0d\u610f\u5473\u7740 major \u7248\u672c\u5347\u7ea7\u4e00\u5b9a\u975e\u5e38\u590d\u6742\uff0c\u5b9e\u9645\u4e0a\u6ca1\u6709   \u4f7f\u7528 <code>HIGHWAY</code> \u7684\u60c5\u51b5\uff0c2.0.0 \u5347\u7ea7\u7684\u5de5\u4f5c\u91cf\u4ecd\u7136\u4e0d\u8d85\u8fc7\u4e00\u822c\u7684 minor \u7248\u672c\u3002\u9488\u5bf9 major \u7248\u672c\uff0c    ServiceComb \u4f1a\u63d0\u4f9b\u76f8\u5173\u7684\u5347\u7ea7\u6307\u5bfc\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u8bc4\u4f30\u517c\u5bb9\u6027\u5f71\u54cd\u3002</li> </ul> <p>java-chassis \u81ea\u8eab\u4e5f\u4f7f\u7528\u4e86\u5927\u91cf\u7684\u4e09\u65b9\u4ef6\uff0c\u4e3a\u4e86\u66f4\u597d\u7684\u5e73\u8861\u5347\u7ea7\u6548\u7387\u548c\u9879\u76ee\u7684\u6301\u7eed\u9ad8\u8d28\u91cf\u53d1\u5c55\uff0c\u4e0b\u9762\u603b\u7ed3\u4e86\u4e00\u4e9b \u517c\u5bb9\u6027\u7ba1\u7406\u7684\u4f18\u79c0\u5b9e\u8df5\u4ee5\u53ca\u5bf9\u4e8e\u5f00\u53d1\u8005\u7684\u5efa\u8bae\uff1a</p> <ul> <li>\u5c3d\u53ef\u80fd\u4f7f\u7528\u6838\u5fc3 API\uff0c\u51cf\u5c11\u91cd\u6784\u5bf9\u4e8e\u4ea7\u54c1\u517c\u5bb9\u7684\u5f71\u54cd\u3002\u533a\u5206\u6838\u5fc3 API \u662f\u9700\u8981\u4e00\u4e9b\u5f00\u53d1\u7ecf\u9a8c\u7684\uff0cjava-chassis \u5e76   \u6ca1\u6709\u7ed9\u51fa\u6838\u5fc3 API \u7684\u8303\u56f4\u548c\u72ec\u7acb\u6587\u6863\u8bf4\u660e\u3002 \u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u9605\u8bfb\u5f00\u53d1\u6307\u5357\uff0c\u5f00\u53d1\u6307\u5357\u91cc\u9762\u63d0\u5230\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5c31\u662f   \u6838\u5fc3 API \u7684\u5185\u5bb9\uff0c\u6bd4\u5982\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\u7684 JAX RS \u6807\u7b7e\u6216\u8005Spring MVC\u6807\u7b7e\uff0c <code>Handler</code> \u548c <code>Invocation</code>   \u6838\u5fc3\u6a21\u578b\uff0c\u4ee5\u53ca\u4e0d\u540c\u7684\u6a21\u5757\u63d0\u4f9b\u7684\u914d\u7f6e\u9879\u7b49\u3002 </li> <li>\u4f7f\u7528\u975e\u6838\u5fc3 API \u7684\u65f6\u5019\uff0c\u9002\u5f53\u589e\u52a0\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u3002\u7531\u4e8e\u4e1a\u52a1\u7684\u9700\u8981\uff0c\u4f7f\u7528\u975e\u6838\u5fc3 API \u4e0d\u53ef\u907f\u514d\uff0c\u6bd4\u5982\u6709\u4e9b\u4e1a\u52a1\u9700\u8981   \u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u7684 API \u66f4\u65b0\u670d\u52a1\u72b6\u6001\uff0c\u8c03\u7528 <code>RegistryUtils</code> \u7684\u63a5\u53e3\u3002 \u4e0d\u7528\u62c5\u5fc3\u8fd9\u4e9b API \u53d8\u5316\u800c\u4e0d\u6562\u4f7f\u7528\uff0c   \u5148\u9488\u5bf9\u4f7f\u7528\u8fd9\u4e9b API \u7684\u573a\u666f\u6216\u8005\u76f4\u63a5\u9488\u5bf9\u8fd9\u4e2a API \u5199\u4e00\u4e9b\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u3002\u5347\u7ea7\u7248\u672c\u7684\u65f6\u5019\uff0c\u8fd9\u4e9b API \u7684   \u539f\u578b\u53d8\u5316\u751a\u81f3\u8bed\u4e49\u53d8\u5316\uff0c\u90fd\u80fd\u591f\u53ca\u65f6\u88ab\u53d1\u73b0\u3002 </li> <li>\u6301\u7eed\u5347\u7ea7\u65b0\u7248\u672c\u662f\u4e00\u628a\u53cc\u5203\u5251\uff0c\u4f46\u603b\u4f53\u6765\u8bb2\uff0c\u6536\u76ca\u8fdc\u5927\u4e8e\u95ee\u9898\u3002\u5982\u679c\u4e1a\u52a1\u7cfb\u7edf\u9700\u8981\u4e0d\u65ad\u7684\u66f4\u65b0\uff0c\u5efa\u8bae\u5c31\u5e94\u8be5\u5728\u6bcf\u4e2a\u4ea7\u54c1   \u8fed\u4ee3\u4e2d\u5b89\u6392\u4e00\u4e2a\u4efb\u52a1\u5347\u7ea7\u65b0\u7248\u672c\u3002java-chassis \u7684\u6bcf\u4e2a\u7248\u672c\u8fed\u4ee3\uff0c\u90fd\u56fa\u5b9a\u4f1a\u5b89\u6392\u5347\u7ea7\u4e09\u65b9\u4ef6\u7684\u4efb\u52a1\u3002\u53ca\u65f6\u5347\u7ea7\u7248\u672c\uff0c   \u80fd\u591f\u5feb\u901f\u4fee\u590d\u8001\u7248\u672c\u5b58\u5728\u7684\u5b89\u5168\u6f0f\u6d1e\uff0c\u89e3\u51b3\u8001\u7248\u672c\u5df2\u77e5\u7684\u53ef\u9760\u6027\u3001\u6027\u80fd\u95ee\u9898\u3001\u53d1\u73b0\u7684bug\uff1b\u8fd8\u80fd\u591f\u8bc6\u522b\u51fa\u4e00\u4e9b\u9519\u8bef\u7684   \u5e9f\u5f03\u7528\u6cd5\uff0c\u53ca\u65f6\u8c03\u6574\u4e3a\u6b63\u786e\u7684\u7528\u6cd5\uff0c\u4f7f\u7528\u65b0\u7684\u7248\u672c\uff0c\u66f4\u5bb9\u6613\u4ece\u793e\u533a\u83b7\u5f97\u5bf9\u4e8e\u65b0\u53d1\u73b0\u95ee\u9898\u7684\u5e2e\u52a9\u3002\u6301\u7eed\u5347\u7ea7\u662f\u4e00\u4e2a\u7cfb\u7edf   \u7684\u5de5\u7a0b\u5b9e\u8df5\uff0c\u4e0d\u5355\u5355\u6307\u5347\u7ea7\u7248\u672c\uff0c\u8fd8\u5305\u62ec\u4e3a\u4e86\u9884\u9632\u5347\u7ea7\u7248\u672c\u7ed9\u8d28\u91cf\u5e26\u6765\u98ce\u9669\u800c\u91c7\u53d6\u7684\u5176\u4ed6\u63aa\u65bd\uff0c\u6bd4\u5982\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u6301\u7eed   \u6784\u5efa\uff0c\u6301\u7eed\u96c6\u6210\u6d41\u6c34\u7ebf\u7684\u6784\u5efa\uff0c\u5b9a\u671f\u9605\u8bfb\u91cd\u8981\u9879\u76ee\u7684 Release Notes\uff0c\u5173\u6ce8\u9879\u76ee\u53d1\u5c55\u65b9\u5411\u7b49\u7b49\u3002 \u8fd9\u79cd\u65b9\u5f0f\u662f\u4e00\u79cd\u4e3b\u52a8   \u8d28\u91cf\u52a0\u56fa\u63aa\u65bd\uff0c\u53ef\u4ee5\u514d\u4e8e\u95ee\u9898\u53d1\u751f\u3002\u53ef\u60dc\u591a\u6570\u51b3\u7b56\u8005\u770b\u5230\u7684\u662f\u66f4\u65b0\u7248\u672c\u5e26\u6765\u7684\u95ee\u9898\uff0c\u770b\u4e0d\u5230\u9884\u9632\u63aa\u65bd\u7684\u79ef\u6781\u6548\u679c\uff0c   \u6ca1\u6709\u628a\u6301\u7eed\u5347\u7ea7\u4f5c\u4e3a\u4e00\u9879\u91cd\u8981\u7684\u80fd\u529b\u5efa\u8bbe\u4e8b\u9879\u7eb3\u5165\u8ba1\u5212\uff0c\u8fd9\u9879\u80fd\u529b\u4e00\u76f4\u5f97\u4e0d\u5230\u63d0\u5347\uff0c\u5f53\u5b9e\u65bd\u5347\u7ea7\u7684\u65f6\u5019\uff0c\u66f4\u5bb9\u6613\u5f15\u5165\u6545\u969c\u3002</li> </ul>"},{"location":"featured-topics/features.html","title":"\u7279\u6027\u4ecb\u7ecd","text":"<ul> <li>\u7279\u6027\u4ecb\u7ecd\uff1a date\u548cdate-time</li> <li>\u7279\u6027\u4ecb\u7ecd\uff1a Edge Service \u901a\u7528\u7684 HTTP \u8f6c\u53d1\u5668 CommonHttpEdgeDispatcher</li> </ul>"},{"location":"featured-topics/performance.html","title":"\u6027\u80fd\u95ee\u9898\u5206\u6790\u548c\u8c03\u4f18","text":"<p>\u6027\u80fd\u4f18\u5316\u662f\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u5f88\u91cd\u8981\u7684\u73af\u8282\uff0c\u4e5f\u662f\u6bd4\u8f83\u590d\u6742\u7684\u8fc7\u7a0b\u3002\u5206\u6790\u6027\u80fd\u95ee\u9898\u7684\u5173\u952e\u662f\u80fd\u591f\u6536\u96c6\u5230\u5c3d\u53ef\u80fd\u591a\u7684\u4fe1\u606f\uff0c\u8bc6\u522b\u6027\u80fd\u74f6\u9888\u3002 Java Chassis\u9488\u5bf9\u6027\u80fd\u5206\u6790\u63d0\u4f9b\u7684\u6700\u6709\u7528\u5de5\u5177\u662f\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u3002\u5e94\u7528\u6027\u80fd\u76d1\u63a7 \u9ed8\u8ba4\u5468\u671f\u6027\u6536\u96c6\u7cfb\u7edf\u6027\u80fd\u6570\u636e\uff0c\u5e76\u5c06\u6570\u636e\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u3002\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u6570\u636e\u7edf\u8ba1\u63d0\u4f9b\u4e86\u975e\u5e38\u9ad8\u6548\u7684\u5b9e\u73b0\uff0c\u5efa\u8bae\u5e94\u7528\u7a0b\u5e8f\u9ed8\u8ba4\u6253\u5f00\u3002</p> <p>\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u63a8\u8350\u4e0b\u9762\u7684\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  metrics:\n    window_time: 60000\n    invocation:\n      latencyDistribution: 0,1,10,100,1000\n    Consumer.invocation.slow:\n      enabled: true\n      msTime: 1000\n    Provider.invocation.slow:\n      enabled: true\n      msTime: 1000\n    publisher.defaultLog:\n      enabled: true\n      endpoints.client.detail.enabled: true\n</code></pre> <p>\u7ed3\u5408\u4e1a\u52a1\u81ea\u5df1\u7684\u65e5\u5fd7\u7cfb\u7edf\uff0c\u53ef\u4ee5\u5c06\u6027\u80fd\u7edf\u8ba1\u65e5\u5fd7\u5b58\u50a8\u5230\u72ec\u7acb\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u51cf\u5c11\u5bf9\u4e1a\u52a1\u65e5\u5fd7\u67e5\u770b\u7684\u5e72\u6270\u3002</p>"},{"location":"featured-topics/performance.html#_2","title":"\u5173\u952e\u5904\u7406\u73af\u8282","text":"<p>\u5728 <code>RPC</code> \u8bf7\u6c42\u7684\u5904\u7406\u8fc7\u7a0b\u4e2d\uff0c\u6709\u4e9b\u5904\u7406\u73af\u8282\u975e\u5e38\u91cd\u8981\uff0c\u591a\u6570\u6027\u80fd\u74f6\u9888\u90fd\u548c\u8fd9\u4e9b\u73af\u8282\u6709\u5173\u3002<code>Java Chassis</code> \u6838\u5fc3\u5904\u7406\u73af\u8282\u53ef\u4ee5\u7b80\u5355\u6982\u8ff0\u4e3a\uff1a</p> <ul> <li>Provider\u6d41\u7a0b : \u63a5\u6536\u8bf7\u6c42 -&gt; \u521b\u5efa Producer Invocation -&gt; \u6267\u884c\u5904\u7406\u94fe -&gt; \u6267\u884c\u4e1a\u52a1\u903b\u8f91 -&gt; \u6267\u884c\u5904\u7406\u94fe -&gt; \u53d1\u9001\u54cd\u5e94</li> <li>Consumer\u6d41\u7a0b : \u521b\u5efa Producer Invocation -&gt; \u6267\u884c\u5904\u7406\u94fe -&gt; \u53d1\u9001\u8bf7\u6c42 -&gt; \u7b49\u5f85\u54cd\u5e94 -&gt; \u6267\u884c\u5904\u7406\u94fe</li> </ul> <p>\u5728<code>Provider\u6d41\u7a0b</code>\u4e2d\uff0c\u5b58\u5728\u7ebf\u7a0b\u6c60\u8d44\u6e90\uff0c\u7ebf\u7a0b\u6c60\u7ade\u4e89\u7684\u65f6\u95f4\u901a\u8fc7 <code>queue</code> \u6765\u8868\u793a\u3002 \u5728 <code>Consumer\u6d41\u7a0b</code>\u4e2d\uff0c\u5b58\u5728\u8fde\u63a5\u6c60\u8d44\u6e90\uff0c\u8fde\u63a5\u6c60\u7ade\u4e89\u7684\u65f6\u95f4\u901a\u8fc7 <code>connection</code> \u6765\u8868\u793a\u3002 \u7f51\u8def\u4f20\u8f93\u7684\u65f6\u95f4\u5728 <code>metrics</code> \u91cc\u9762\u672a\u4f53\u73b0\uff0c\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u95ee\u9898\uff0c\u8fd8\u9700\u8981\u7ed3\u5408\u5e73\u65f6\u7684\u6027\u80fd\u6d4b\u8bd5\u7ecf\u9a8c\u6570\u636e\uff0c\u6765\u5224\u65ad\u662f\u5426\u5b58\u5728\u6027\u80fd\u95ee\u9898\uff0c\u6bd4\u5982\uff0c<code>Consumer\u6d41\u7a0b</code>\u7684<code>wait</code>\u8868\u793a\u7b49\u5f85\u54cd\u5e94\u65f6\u95f4\uff0c\u5982\u679c\u4ece<code>Provider</code>\u7684 metrics \u65e5\u5fd7\u4e2d\uff0c\u67e5\u8be2\u5230\u603b\u7684\u5904\u7406\u65f6\u95f4\u4e3a 100ms\uff0c <code>wait</code> \u65f6\u95f4\u53ef\u80fd\u4e3a 200ms\uff0c \u4e2d\u95f4\u7684100ms\u65f6\u95f4\u662f metrics \u7edf\u8ba1\u4e0d\u5230\u7684\u65f6\u95f4\uff0c\u8fd9\u4e9b\u65f6\u95f4\u901a\u5e38\u7528\u4e8e\u7f51\u7edc\u8d44\u6e90\u7684\u7ade\u4e89\uff0c\u7531\u64cd\u4f5c\u7cfb\u7edf\u7b49\u5e95\u5c42\u5904\u7406\u7a0b\u5e8f\u7ba1\u7406\u3002 </p> <p>\u9700\u8981\u8be6\u7ec6\u4e86\u89e3 Java Chassis\u7684\u5904\u7406\u73af\u8282\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u6e90\u7801\uff0c\u67e5\u770b <code>InvocationStageTrace</code> \u7684\u5404\u4e2a\u65b9\u6cd5\u88ab\u8c03\u7528\u7684\u60c5\u51b5\u3002 \u901a\u8fc7\u6b64\u65b9\u6cd5\uff0c\u80fd\u591f\u5feb\u901f\u4e86\u89e3 Java Chassis\u7684\u4ee3\u7801\u7ed3\u6784\u548c\u5404\u4e2a metrics \u73af\u8282\u7684\u8be6\u7ec6\u542b\u4e49\u3002 </p>"},{"location":"featured-topics/performance.html#_3","title":"\u65f6\u5ef6\u6ce2\u52a8","text":"<p>\u4efb\u4f55\u5904\u7406\u73af\u8282\u7684\u5904\u7406\u65f6\u95f4\u90fd\u53ef\u80fd\u5b58\u5728\u6ce2\u52a8\uff0c\u5373\u4f7f\u8fd9\u4e2a\u73af\u8282\u7684\u5904\u7406\u903b\u8f91\u975e\u5e38\u7b80\u5355\uff0c\u6bd4\u5982\u4e1a\u52a1\u903b\u8f91\u4e2d\u53ea\u5305\u542b\u4e86\u4e00\u6bb5 <code>a+b</code> \u7684\u8ba1\u7b97\uff0c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002 \u5728 Java \u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u9020\u6210\u6ce2\u52a8\u7684\u56e0\u7d20\u5927\u6982\u6709\u5982\u4e0b\u51e0\u79cd\u60c5\u51b5\uff1a</p> <ul> <li>\u5e76\u53d1\u8bf7\u6c42\u3002\u5e76\u53d1\u8bf7\u6c42\u4f1a\u7ade\u4e89CPU\u8d44\u6e90\uff0c\u8bf7\u6c42\u8d8a\u591a\uff0c\u903b\u8f91\u88ab\u4e2d\u65ad\u548c\u5ef6\u8fdf\u5904\u7406\u7684\u6982\u7387\u5c31\u4f1a\u589e\u591a\uff0c\u8868\u73b0\u4e3a\u6574\u4f53\u5904\u7406\u65f6\u95f4\u53d8\u957f\u3002</li> <li>\u5783\u573e\u56de\u6536\u3002Java \u6267\u884c\u5783\u573e\u56de\u6536\u4f1a\u4e2d\u65ad\u5904\u7406\u8fc7\u7a0b\uff0c\u4e5f\u4f1a\u8868\u73b0\u4e3a\u903b\u8f91\u5904\u7406\u53d8\u957f\u3002 </li> </ul> <p>\u56e0\u6b64\uff0c\u5f53\u8bc6\u522b\u5230 <code>metrics</code> \u7684\u67d0\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u5904\u7406\u73af\u8282\uff08\u6ca1\u6709IO\u3001\u6ca1\u6709\u9501\uff09\u7684\u65f6\u5ef6\u53d8\u957f\u7684\u65f6\u5019\uff0c\u8fd9\u901a\u5e38\u662f\u7cfb\u7edf\u7e41\u5fd9\u7684\u4e00\u79cd\u8868\u73b0\uff0c\u5728\u5206\u6790\u6027\u80fd\u74f6\u9888\u7684\u8fc7\u7a0b\u4e2d\uff0c \u9700\u8981\u6536\u96c6 CPU\u3001\u5185\u5b58\u4f7f\u7528\u7387\u3001TPS\u3001\u5783\u573e\u56de\u6536\u65f6\u95f4\u7b49\u6570\u636e\uff0c\u6765\u8fdb\u4e00\u6b65\u5224\u65ad\u89e6\u53d1\u6027\u80fd\u95ee\u9898\u7684\u539f\u56e0\u3002 </p>"},{"location":"featured-topics/performance.html#_4","title":"\u521d\u59cb\u5316\u8fc7\u7a0b\u7684\u65f6\u5ef6","text":"<p>\u5e94\u7528\u7a0b\u5e8f\u63a5\u6536\u7684\u7b2c\u4e00\u4e2a\u8bf7\u6c42\uff0c\u901a\u5e38\u65f6\u5ef6\u6bd4\u8f83\u9ad8\uff0c\u8fd9\u662f\u56e0\u4e3a\u5f88\u591a\u9884\u5904\u7406\u8fc7\u7a0b\u9700\u8981\u5728\u7b2c\u4e00\u6b21\u8bf7\u6c42\u7684\u521d\u59cb\u5316\u3002\u5305\u62ec\uff1a\u52a0\u8f7d\u670d\u52a1\u5143\u6570\u636e\u4fe1\u606f\u3001\u521d\u59cb\u5316\u7ebf\u7a0b\u6c60\u3001\u8fde\u63a5\u6c60\u3001\u5efa\u7acb\u8fde\u63a5\uff0c\u4ee5\u53ca\u4e1a\u52a1\u903b\u8f91\u7684\u521d\u59cb\u5316\u6570\u636e\u5e93\u7b49\u64cd\u4f5c\u3002\u8fd9\u4e9b\u521d\u59cb\u5316\u64cd\u4f5c\u901a\u5e38\u90fd\u4f1a\u4f7f\u7528\u9501\uff0c\u5982\u679c\u662f\u5e76\u53d1\u8bf7\u6c42\uff0c\u90a3\u4e48\u6bcf\u4e2a\u5e76\u53d1\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\u90fd\u4f1a\u53d8\u957f\u3002 </p> <p>\u5728\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u4e5f\u53ef\u80fd\u51fa\u73b0\u7c7b\u4f3c\u7684\u521d\u59cb\u5316\u73b0\u8c61\u3002\u6bd4\u5982\u7cfb\u7edf\u5728\u665a\u95f4\u5f88\u4e45\u6ca1\u6709\u7528\u6237\u4f7f\u7528\uff0c\u4e0a\u73ed\u65f6\u95f4\u7a81\u7136\u5927\u91cf\u7528\u6237\u5e76\u53d1\u767b\u5f55\u3002 \u7cfb\u7edf\u672a\u4f7f\u7528\u671f\u95f4\uff0c\u6709\u4e9b\u8d44\u6e90\u4f1a\u88ab\u91ca\u653e\uff0c\u6bd4\u5982\u7ebf\u7a0b\u6c60\u3001\u8fde\u63a5\u6c60\uff0c\u7528\u6237\u4f1a\u8bdd\u4fe1\u606f\u7b49\u3002 </p> <p>\u521d\u59cb\u5316\u8fc7\u7a0b\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u6bdb\u523a\uff0c\u521d\u59cb\u5316\u8fc7\u7a0b\u8017\u65f6\uff0c\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u7684\u9519\u8bef\u7387\u3002\u7279\u522b\u662f\u8bbe\u7f6e\u975e\u5e38\u77ed\u7684\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\u7684\u6761\u4ef6\u4e0b\u3002 </p>"},{"location":"featured-topics/performance.html#_5","title":"\u5176\u4ed6\u91cd\u8981\u73af\u8282\u7684\u65f6\u5ef6","text":"<ul> <li>\u7ebf\u7a0b\u6c60\u6392\u961f(queue) : \u63d0\u4f9b\u8005\u4e00\u822c\u4f1a\u901a\u8fc7\u7ebf\u7a0b\u6c60\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u3002\u5982\u679c\u7ebf\u7a0b\u6c60\u51fa\u73b0\u6392\u961f\u8bf7\u6c42\uff0c\u5373\u4f7f\u6392\u961f\u8bf7\u6c42\u5f88\u5c11\uff0c\u4e5f\u610f\u5473\u7740\u5f53\u524d\u7684\u8bf7\u6c42\u9891\u7387\u8d85\u8fc7\u4e86\u7cfb\u7edf\u5904\u7406\u80fd\u529b\u3002\u9996\u5148\u53ef\u4ee5\u67e5\u770bCPU\u4f7f\u7528\u7387\uff0c\u5982\u679c\u4f7f\u7528\u7387\u9ad8\uff0c\u8fd9\u79cd\u60c5\u51b5\u5c31\u53ea\u80fd\u4f18\u5316\u6307\u4ee4\uff0c\u6216\u8005\u63d0\u5347\u5904\u7406\u80fd\u529b\uff1b\u5982\u679cCPU\u4f7f\u7528\u7387\u4f4e\uff0c\u53ef\u4ee5\u7ed3\u5408\u5806\u6808\u4fe1\u606f\uff0c\u8fdb\u4e00\u6b65\u5206\u6790\u5bfc\u81f4\u6392\u961f\u7684\u5177\u4f53\u903b\u8f91\u662f\u7b49\u5f85IO\u8fd8\u662f\u7531\u4e8e\u9501\u3001\u8d44\u6e90\u7ade\u4e89\u5bfc\u81f4\u7684\u3002</li> <li>\u83b7\u53d6\u8fde\u63a5\u6c60(connection): \u5efa\u7acb\u8fde\u63a5\u548c\u8fde\u63a5\u6c60\u7ade\u4e89\u662f <code>RPC</code> \u5e38\u89c1\u7684\u6027\u80fd\u74f6\u9888\u3002 \u5efa\u7acb\u8fde\u63a5\u662f\u6bd4\u8f83\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u4ee5 <code>HTTP</code> \u4e3a\u4f8b\uff0c \u5efa\u7acb\u4e00\u6b21\u8fde\u63a5\u901a\u5e38\u9700\u8981 <code>100ms</code> \u5de6\u53f3\u7684\u65f6\u95f4\uff0c\u670d\u52a1\u7aef\u901a\u5e38\u53ea\u80fd\u5904\u7406\u6570\u767e\u7684\u5e76\u53d1\u8fde\u63a5\u3002 \u5982\u679c\u5e76\u53d1\u8fc7\u5927\uff0c\u5c31\u4f1a\u5bfc\u81f4\u8fde\u63a5\u8d85\u65f6\u3002 \u6d89\u53ca\u8fde\u63a5\u8017\u65f6\u7684\u60c5\u51b5\uff0c\u9700\u8981\u901a\u8fc7\u8fde\u63a5\u6c60\u8bbe\u7f6e\uff0c\u5206\u6790\u9002\u5408\u8fd0\u884c\u73af\u5883\u9700\u8981\u7684\u6700\u5927\u8fde\u63a5\u6570\uff0c\u8fdb\u884c\u5408\u7406\u7684\u8fde\u63a5\u89c4\u5212\u3002 </li> </ul>"},{"location":"featured-topics/performance.html#_6","title":"\u6027\u80fd\u95ee\u9898\u5206\u6790","text":"<p>\u7efc\u5408\u4e0a\u9762\u7684\u4e00\u4e9b\u573a\u666f\uff0c\u53ef\u4ee5\u53d1\u4e0b\u6027\u80fd\u95ee\u9898\u5206\u6790\u4e0d\u662f\u7b80\u5355\u7684\u770b\u67d0\u6761\u8017\u65f6\u6570\u636e\u5c31\u53ef\u4ee5\u8fdb\u884c\u51c6\u786e\u7684\u5206\u6790\uff0c\u8fd9\u4e9b\u6570\u636e\u901a\u5e38\u53ea\u662f\u7ed9\u4e00\u4e2a\u6307\u793a\uff0c\u7528\u4e8e\u5224\u65ad\u6027\u80fd\u5206\u6790\u7684\u57fa\u672c\u65b9\u5411\uff0c\u7136\u540e\u7ed3\u5408\u65b9\u5411\uff0c\u6536\u96c6\u66f4\u591a\u7684\u4fe1\u606f\u53bb\u5370\u8bc1\u3002 \u6027\u80fd\u95ee\u9898\u4e00\u822c\u4ee5\u8d85\u65f6\u7684\u65b9\u5f0f\u8868\u73b0\u51fa\u6765\uff0c\u5f53\u51fa\u73b0\u6027\u80fd\u95ee\u9898\u7684\u65f6\u5019\uff0c\u5efa\u8bae\u6536\u96c6\u5982\u4e0b\u65e5\u5fd7\uff1a</p> <ol> <li>consumer\u8c03\u7528\u51fa\u9519\u65e5\u5fd7\uff08\u5982\u679c\u6709\u7684\u8bdd\uff0c\u6bd4\u5982\u8d85\u65f6\uff09\uff1b</li> <li>provider\u8c03\u7528\u51fa\u9519\u65e5\u5fd7\uff08\u5982\u679c\u6709\u7684\u8bdd\uff0c\u6bd4\u5982\u4e22\u5f03\u8bf7\u6c42\uff09\uff1b</li> <li>consumer\u5bf9\u5e94\u65f6\u95f4\u6bb5\u7684metrics\u65e5\u5fd7\uff0c\u5305\u62ec\u5468\u671f\u7edf\u8ba1\u6570\u636e\u548c\u6162\u8c03\u7528\u65e5\u5fd7\uff1b</li> <li>provider\u5bf9\u5e94\u65f6\u95f4\u6bb5\u7684metrics\u65e5\u5fd7\uff0c\u5305\u62ec\u5468\u671f\u7edf\u8ba1\u6570\u636e\u548c\u6162\u8c03\u7528\u65e5\u5fd7\uff1b</li> </ol> <p>\u901a\u5e38\u7ed3\u5408\u4e0a\u9762\u7684\u65e5\u5fd7\uff0c\u5c31\u80fd\u591f\u521d\u6b65\u8bc6\u522b\u51fa\u6027\u80fd\u74f6\u9888\u7684\u4f4d\u7f6e\u4e86\u3002metrics\u65e5\u5fd7\u91cd\u70b9\u53cd\u6620\u7684\u662fJava Chassis\u5404\u4e2a\u5904\u7406\u73af\u8282\u7684\u8017\u65f6\uff0c \u5bf9\u4e8e\u7ebf\u7a0b\u6392\u961f\u7684\u573a\u666f\uff0c\u9700\u8981\u8fdb\u4e00\u6b65\u8bc6\u522b\u4e1a\u52a1\u7684\u6027\u80fd\u74f6\u9888\uff1a</p> <ol> <li>\u901a\u8fc7 <code>jstack</code> \u91c7\u96c6\u5806\u6808\u4fe1\u606f\u3002\u8fd9\u4e2a\u901a\u5e38\u6bd4\u8f83\u96be\u4e8e\u6536\u96c6\uff0c\u9700\u8981\u5728\u51fa\u73b0\u6027\u80fd\u7f13\u6162\u7684\u65f6\u523b\uff0c\u6293\u53d6\u3002\u5efa\u8bae\u6bcf\u9694\u51e0\u79d2\u949f\uff0c\u8fde\u7eed\u6293\u53d63\u4e2a\u4ee5\u4e0a\u5806\u6808\uff0c\u7528\u4e8e\u5206\u6790\u3002</li> <li>\u5bf9\u4e8e\u6d89\u53ca\u5185\u5b58\u7ba1\u7406\u548c\u5783\u573e\u56de\u6536\u7684\u95ee\u9898\uff0c\u9700\u8981\u6536\u96c6GC\u7684\u4fe1\u606f\uff0c\u548c\u5185\u5b58\u589e\u957f\u8d8b\u52bf\u3002 </li> </ol> <p>\u6536\u96c6\u6027\u80fd\u6570\u636e\u662f\u5206\u6790\u7684\u7b2c\u4e00\u6b65\uff0c\u7406\u89e3\u6027\u80fd\u6570\u636e\u9700\u8981\u719f\u6089Java Chassis\u7684\u5904\u7406\u8fc7\u7a0b\u3001\u7ebf\u7a0b\u6c60\u6392\u961f\u548c\u6267\u884c\u539f\u7406\u3001JVM\u7ebf\u7a0b\u5806\u6808\u548cGC\u673a\u5236\u7b49\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6 \u63cf\u8ff0\uff0c\u7ed3\u5408\u5b9e\u9645\u95ee\u9898\u5728\u8fc7\u7a0b\u4e2d\u5b66\u4e60\u662f\u66f4\u597d\u7684\u63d0\u5347\u65b9\u5f0f\u3002 Java Chassis\u4e2d\u901a\u8fc7performance\u6807\u7b7e\u7684\u95ee\u9898\u548c\u6027\u80fd\u6709\u5173\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u4e1a\u52a1\u6027\u80fd\u95ee\u9898 \u5206\u6790\u7684\u53c2\u8003\uff0c\u78b0\u5230\u6027\u80fd\u95ee\u9898\uff0c\u4e5f\u53ef\u4ee5\u63d0\u4ea4issue\uff0c\u627e\u793e\u533a\u5bfb\u6c42\u5e2e\u52a9\uff0c\u8bb0\u5f97\u5728issue\u4e2d\u5305\u542bmetrics\u4fe1\u606f\u3002 </p>"},{"location":"featured-topics/performance.html#_7","title":"\u6027\u80fd\u5e38\u8bc6","text":"<p>\u4e0b\u9762\u63d0\u4f9b\u4e00\u4e9b\u5e38\u89c1\u7684\u6570\u636e\uff0c\u5e2e\u52a9\u8bc6\u522b\u6027\u80fd\u74f6\u9888\u3002\u8fd9\u4e9b\u6570\u636e\u5e76\u4e0d\u662f\u7406\u8bba\u4e0a\u7cbe\u786e\u7684\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002 </p> <ul> <li>\u901a\u8fc7\u4e00\u6b21\u8c03\u7528\uff0c\u53ef\u4ee5\u6536\u96c6\u5230\u4e00\u4e2a\u8bf7\u6c42\u53d1\u51fa\u5230\u6536\u5230\u54cd\u5e94\u7684\u65f6\u5ef6\uff0c\u8fd9\u4e2a\u65f6\u5ef6\u79f0\u4e3a\u5e73\u5747\u65f6\u5ef6\u3002\u5e76\u53d1\u573a\u666f\uff0c\u5e73\u5747\u65f6\u5ef6\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u901a\u5e38\u968f\u7740\u5e76\u53d1\u6570   \u589e\u5927\u800c\u589e\u5927\u3002</li> <li>\u4e00\u4e2a\u8bf7\u6c42\u7684\u5e73\u5747\u65f6\u5ef6\u57280.1ms~1ms\u4e4b\u95f4\uff0cTPS\u53ef\u4ee5\u8fbe\u52301\u4e07~10\u4e07\u3002 0.1ms\u7684\u65f6\u5ef6\uff0c\u662f\u4e0d\u5e26\u4efb\u4f55\u4e1a\u52a1\u903b\u8f91\u7684\u5f00\u53d1\u6846\u67b6\u65f6\u5ef6\uff0c\u5f53\u5e73\u5747\u65f6\u5ef6   \u5c0f\u4e8e1ms\u7684\u60c5\u51b5\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u6027\u80fd\uff0c\u9700\u8981\u8003\u8651\u6846\u67b6\u6027\u80fd\u8c03\u4f18\uff0c\u8fd8\u4f1a\u6d89\u53ca\u64cd\u4f5c\u7cfb\u7edf\u3001\u7f51\u7edc\u7b49\u8c03\u4f18\uff0c\u6bd4\u8f83\u590d\u6742\uff1b\u5927\u4e8e1ms\u7684\u60c5\u51b5\uff0c\u901a\u5e38\u90fd\u9700\u8981   \u8c03\u4f18\u4e1a\u52a1\u4ee3\u7801\uff0c\u6846\u67b6\u4e0d\u662f\u6027\u80fd\u74f6\u9888\u3002</li> <li>\u4e00\u4e2a\u8bf7\u6c42\u7684\u5e73\u5747\u65f6\u5ef6\u57281ms~10ms\u4e4b\u95f4\uff0cTPS\u53ef\u4ee5\u8fbe\u52301\u5343~1\u4e07\u3002</li> <li>\u4e00\u4e2a\u8bf7\u6c42\u7684\u5e73\u5747\u65f6\u5ef6\u572810ms~100ms\u4e4b\u95f4\uff0cTPS\u53ef\u4ee5\u8fbe\u52301\u767e~1\u5343\u3002</li> <li>\u6709\u4e2a\u7b80\u5355\u7684\u516c\u5f0f\uff0c\u53ef\u4ee5\u4f30\u7b97\u6700\u5927TPS\uff1a <code>CPU\u6838\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code> &lt; TPS &lt; <code>\u7ebf\u7a0b\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code>\u3002 \u8d8a\u662f\u8ba1\u7b97\u5bc6\u96c6\u578b\u7684   \u4efb\u52a1\uff0cTPS\u8d8a\u63a5\u8fd1<code>CPU\u6838\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code>\uff1b\u7a7a\u95f2\u7b49\u5f85\u4efb\u52a1\u8d8a\u591a\uff0c\u8d8a\u662f\u63a5\u8fd1<code>\u7ebf\u7a0b\u6570 * (1000/\u5e73\u5747\u65f6\u5ef6)</code>\u3002 \u538b\u6d4b\u7684\u65f6\u5019\uff0c\u5982\u679c\u5e76\u53d1   \u8bf7\u6c42\u5927\u4e8e\u4e0a\u8ff0\u4f30\u7b97\u503c\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u5927\u91cf\u8bf7\u6c42\u8d85\u65f6\u3002 </li> </ul>"},{"location":"featured-topics/secrets.html","title":"\u6280\u672f\u89e3\u5bc6","text":"<ul> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u591a\u79cd\u5e8f\u5217\u5316\u65b9\u5f0f\u652f\u6301</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u7194\u65ad\u673a\u5236\u7684\u6539\u8fdb\u8def\u7a0b</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8fc7\u8f7d\u72b6\u6001\u4e0b\u7684\u5feb\u901f\u5931\u8d25</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u5e94\u7528\u89c6\u89d2\u7684\u914d\u7f6e\u7ba1\u7406</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6613\u6269\u5c55\u7684\u591a\u79cd\u6ce8\u518c\u4e2d\u5fc3\u652f\u6301</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u4e0eSpring Cloud\u7684\u4e92\u64cd\u4f5c</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1aZooKeeper\u6ce8\u518c\u548c\u914d\u7f6e\u4e2d\u5fc3</li> <li>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u5951\u7ea6\u4f18\u5148\uff08API First\uff09\u5f00\u53d1</li> </ul>"},{"location":"featured-topics/upgrading.html","title":"\u5347\u7ea7\u6307\u5bfc","text":"<ul> <li>2.8.x \u5347\u7ea7 3.0.0\u6307\u5bfc</li> </ul>"},{"location":"featured-topics/application-bmi/flow-control.html","title":"\u6d41\u91cf\u63a7\u5236","text":"<p>\u6d41\u91cf\u63a7\u5236\u673a\u5236\u901a\u8fc7\u63a7\u5236\u6570\u636e\u4f20\u8f93\u901f\u7387\u6765\u907f\u514d\u5fae\u670d\u52a1\u8fc7\u8f7d\u8fd0\u884c\u3002\u672c\u6307\u5357\u5c06\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528\u6d41\u91cf\u63a7\u5236\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/flow-control.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/flow-control.html#_3","title":"\u5f00\u542f","text":"<ul> <li>\u5728 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u6307\u660e\u6d41\u63a7\u7b56\u7565\uff1a</li> </ul> <pre><code>servicecomb:\n  matchGroup:\n    bmi-operation: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n  rateLimiting:\n    bmi-operation: |\n      timeoutDuration: 0\n      limitRefreshPeriod: 1000\n      rate: 1\n</code></pre>"},{"location":"featured-topics/application-bmi/flow-control.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u8bbf\u95ee http://localhost:8889\uff0c\u5728\u8eab\u9ad8\u548c\u4f53\u91cd\u7684\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u6b63\u6570\uff0c\u5c1d\u8bd5\u57281\u79d2\u5185\u591a\u6b21\u70b9\u51fb Submit \u6309\u94ae\uff0c\u6b64\u65f6\u5c31\u80fd\u770b\u5230\u7f51\u9875\u7531\u5de6\u4fa7\u7684\u6b63\u5e38\u7684\u754c\u9762\u53d8\u6210\u4e86\u53f3\u4fa7\u63d0\u793a\u7531\u4e8e\u6d41\u63a7\u53d7\u9650\u800c\u8bf7\u6c42\u88ab\u62d2\u7684\u754c\u9762\u3002</p> <p></p>"},{"location":"featured-topics/application-bmi/gray-release.html","title":"\u7070\u5ea6\u53d1\u5e03","text":"<p>\u7070\u5ea6\u53d1\u5e03\u5b58\u5728\u5f88\u591a\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u5305\u62ec\u89e3\u51b3\u7248\u672c\u517c\u5bb9\u6027\u95ee\u9898\u3001A/B Test\u3001\u5e73\u6ed1\u5347\u7ea7\u7b49\u3002\u672c\u6307\u5357\u5c06\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/gray-release.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/gray-release.html#_3","title":"\u542f\u7528","text":"<ul> <li>\u9996\u5148\u9700\u8981\u8fdb\u884c\u7070\u5ea6\u53d1\u5e03\u7b56\u7565\u8bbe\u8ba1\u3002 \u5728\u8fd9\u4e2a\u5b9e\u4f8b\u4e2d\uff0c\u5c06\u4f53\u91cd &gt;= 60 \u7684\u8bf7\u6c42\u8f6c\u53d1\u5230 0.0.2 \u7248\u672c\uff0c \u5c06\u4f53\u91cd &lt;60 \u7684\u8bf7\u6c42\u8f6c\u53d1\u5230 0.0.1 \u7248\u672c\u3002 \u7070\u5ea6\u53d1\u5e03\u7b56\u7565\u4e00\u822c\u4f7f\u7528\u8bf7\u6c42\u5934\u8fdb\u884c\u6807\u8bb0\uff0c   \u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u7684\uff0c\u4f7f\u7528 Java Chassis\u7684Context Mapper\u673a\u5236\uff0c\u5c06\u7b26\u5408\u8bf7\u6c42\u7279\u5f81\u7684\u8bf7\u6c42\u8bbe\u7f6e\u4e0d\u4e00\u6837\u7684 header\u3002 \u4e0b\u9762\u7684\u914d\u7f6e\u4f1a\u6839\u636e\u8bf7\u6c42\u7279\u6027\uff0c\u8bbe\u7f6e x-gray = 1\uff0c \u6216\u8005   x-gray= 0 \u3002 </li> </ul> <p>\u6ce8\u610f\uff1a\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u7684\u5339\u914d\u89c4\u5219\u90fd\u662f String - String \u7684\u952e\u503c\u5bf9\u3002\u4f7f\u7528 yaml \u6587\u4ef6\u914d\u7f6e\u7684\u65f6\u5019\uff0c\u5982\u679c\u6d89\u53ca\u6570\u5b57\u548c\u7279\u6b8a\u5b57\u7b26\uff0c\u9700\u8981\u4f7f\u7528\u5f15\u53f7\uff0c\u5426\u5219\u4f1a\u89e3\u6790\u4e3a\u5176\u4ed6\u7c7b\u578b\u51fa\u73b0\u9519\u8bef\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    bmi-operation: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n    bmi-operation-heavy: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n          queries:\n            weight:\n              compare: \"&gt;=60\"\n    bmi-operation-thin: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n          queries:\n            weight:\n              compare: \"&lt;60\"\n  mapper:\n    bmi-operation-heavy: |\n      target:\n        x-gray: \"1\"\n    bmi-operation-thin: |\n      target:\n        x-gray: \"0\"\n</code></pre> <ul> <li>\u5728 \u4f53\u8d28\u6307\u6570\u754c\u9762 \u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u6dfb\u52a0\u7070\u5ea6\u53d1\u5e03\u7b56\u7565\uff1a</li> </ul> <pre><code>servicecomb:\n  router:\n    type: router\n  globalRouteRule: |\n    - precedence: 2\n      match:\n        headers:\n          x-gray: \n            exact: \"1\"\n      route:\n        - weight: 100\n          tags:\n            version: 0.0.2\n    - precedence: 1\n      match:\n        headers:\n          x-gray: \n            exact: \"0\"\n      route:\n        - weight: 100\n          tags:\n            version: 0.0.1\n</code></pre> <p>\u6ce8\u610f\uff1a\u8def\u7531\u63a7\u5236\u662f\u5728\u6d88\u8d39\u8005\u65b9\u3002</p>"},{"location":"featured-topics/application-bmi/gray-release.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u5bf9 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u5fae\u670d\u52a1\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f7f\u5176\u8fd0\u884c\u5b9e\u4f8b\u6570\u4e3a2\uff0c\u5373\u65b0\u589e\u4e00\u4e2a\u8fd0\u884c\u5b9e\u4f8b\u3002 \u8be5\u5b9e\u4f8b\u7684\u7248\u672c\u53f7\u662f 0.0.2. </p> <pre><code>mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Dservicecomb.rest.address=0.0.0.0:7779 -Dservicecomb.service.version=0.0.2\"\n</code></pre> <ul> <li> <p>\u8bbf\u95ee http://localhost:8889 \uff0c\u5728\u8eab\u9ad8\u548c\u4f53\u91cd\u680f\u5904\u8f93\u5165\u6b63\u6570\uff0c\u5e76\u70b9\u51fb Submit \u6309\u94ae\u3002</p> </li> <li> <p>\u5982\u679c\u4f53\u91cd\u5927\u4e8e\u7b49\u4e8e60\uff0c \u8bf7\u6c42\u59cb\u7ec8\u8f6c\u53d1\u5230\u4e00\u4e2a0.0.2\u7248\u672c\u5b9e\u4f8b\uff1b\u4f53\u91cd\u5c0f\u4e8e60\uff0c \u8bf7\u6c42\u4f1a\u8f6c\u53d1\u52300.0.1\u7248\u672c\u7684\u5b9e\u4f8b\u3002 </p> </li> </ul> <p></p>"},{"location":"featured-topics/application-bmi/load-balance.html","title":"\u8d1f\u8f7d\u5747\u8861","text":"<p>\u5f53\u5bf9\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\u65f6\uff0c\u9700\u8981\u5c06\u8bf7\u6c42\u5747\u8861\u5730\u5206\u53d1\u5230\u591a\u4e2a\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u4e0a\u3002\u672c\u6307\u5357\u5c06\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528 ServiceComb \u63d0\u4f9b\u7684\u8d1f\u8f7d\u5747\u8861\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/load-balance.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/load-balance.html#_3","title":"\u5f00\u542f","text":"<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u4f7f\u7528\u5185\u7f6e\u7684\u4e00\u4e2a\u7b80\u5355\u7684\u8d1f\u8f7d\u5747\u8861\u7684\u5b9e\u73b0\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u914d\u7f6e\u3002</p>"},{"location":"featured-topics/application-bmi/load-balance.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u5bf9 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u5fae\u670d\u52a1\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f7f\u5176\u8fd0\u884c\u5b9e\u4f8b\u6570\u4e3a2\uff0c\u5373\u65b0\u589e\u4e00\u4e2a\u8fd0\u884c\u5b9e\u4f8b\uff1a</p> <pre><code>mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Dservicecomb.rest.address=0.0.0.0:7779\"\n</code></pre> <p>\u4e3a\u4e86\u4fbf\u4e8e\u533a\u5206\u4e0d\u540c\u7684\u8fd0\u884c\u5b9e\u4f8b\uff0c\u5728\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u7684\u5b9e\u73b0\u4e2d\u65b0\u589e\u4e86\u8fd4\u56de\u5b9e\u4f8bID\u548c\u8fd0\u884c\u65f6\u95f4\u7684\u63a5\u53e3\u3002\u800c\u4e3a\u4e86\u907f\u514d\u7aef\u53e3\u51b2\u7a81\uff0c\u65b0\u7684\u5b9e\u4f8b\u5728\u53e6\u4e00\u4e2a\u7aef\u53e3\u4e0a\u8fd0\u884c\u3002</p> <p>\u6b64\u65f6\u70b9\u51fb Submit \u6309\u94ae\u5c31\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u4e24\u4e2a\u754c\u9762\u4e2d\u7684\u5b9e\u4f8bID\u4ea4\u66ff\u51fa\u73b0\u3002</p> <p></p>"},{"location":"featured-topics/application-bmi/quick-start-advance.html","title":"\u5fae\u670d\u52a1\u5f00\u53d1\u8fdb\u9636","text":"<p>\u672c\u6307\u5357\u5c06\u5e26\u60a8\u8fdb\u5165\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\u7684\u8fdb\u9636\u4e4b\u65c5\u3002\u5728\u6b64\u65c5\u7a0b\uff0c\u60a8\u5c06\u80fd\u5b66\u5230 ServiceComb \u6846\u67b6\u5982\u4f55\u901a\u8fc7\u5904\u7406\u94fe\u4fdd\u8bc1\u5fae\u670d\u52a1\u7684\u53ef\u9760\u6027\uff1a</p> <ul> <li> <p>\u8d1f\u8f7d\u5747\u8861\u3002\u5747\u8861\u5730\u5c06\u8bf7\u6c42\u5206\u53d1\u81f3\u591a\u4e2a\u670d\u52a1\u5b9e\u4f8b\u4e2d\u5904\u7406\u3002</p> </li> <li> <p>\u6d41\u91cf\u63a7\u5236\u3002\u9650\u5236\u5355\u4f4d\u65f6\u95f4\u5185\u8bbf\u95ee\u67d0\u4e2a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u6570\u91cf\u3002</p> </li> <li> <p>\u7194\u65ad\u63a7\u5236\u3002\u5728\u5fae\u670d\u52a1\u5e94\u7528\u4e2d\u9694\u79bb\u5f02\u5e38\u670d\u52a1\u5e76\u963b\u6b62\u5f02\u5e38\u4f20\u9012\u3002</p> </li> <li> <p>\u7070\u5ea6\u53d1\u5e03\u3002\u5bf9\u5fae\u670d\u52a1\u8fdb\u884c\u591a\u7248\u672c\u53d1\u5e03\u3002</p> </li> </ul>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html","title":"\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u5feb\u901f\u5165\u95e8\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002\u63a5\u4e0b\u6765\u5c06\u8fdb\u5165\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u7684\u5f00\u53d1\u4e4b\u65c5\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_2","title":"\u5feb\u901f\u5f00\u53d1\u5fae\u670d\u52a1\u5e94\u7528","text":"<p>BMI\u4e3b\u8981\u7531\u4e24\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\uff1a</p> <ul> <li> <p>\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\uff1a\u8d1f\u8d23\u5904\u7406\u8fd0\u7b97\u4e8b\u52a1\u3002</p> </li> <li> <p>\u4f53\u8d28\u6307\u6570\u754c\u9762\uff1a\u63d0\u4f9b\u7528\u6237\u754c\u9762\u53ca\u7f51\u5173\u670d\u52a1\u3002</p> </li> </ul> <p>\u5728\u5f00\u59cb\u524d\uff0c\u9700\u8981\u5148\u5728\u670d\u52a1\u7684\u7236\u5de5\u7a0b\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4f9d\u8d56\u9879\uff1a</p> <pre><code>\n&lt;dependencyManagement&gt;\n  &lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;java-chassis-dependencies&lt;/artifactId&gt;\n      &lt;version&gt;${servicecomb.version}&lt;/version&gt;\n      &lt;type&gt;pom&lt;/type&gt;\n      &lt;scope&gt;import&lt;/scope&gt;\n    &lt;/dependency&gt;\n  &lt;/dependencies&gt;\n&lt;/dependencyManagement&gt;\n</code></pre> <p>\u6ce8\u610f: <code>java-chassis-dependencies</code> \u8fd9\u4e2a\u4f9d\u8d56\u662f\u4ee5pom\u7684\u5f62\u5f0f\u5bfc\u5165\u6765\u7edf\u4e00\u9879\u76ee\u4e2d\u7684\u4f9d\u8d56\u9879\u7684\u7248\u672c\u7ba1\u7406\u3002</p> <p>\u4e0b\u9762\u5c06\u5bf9\u8fd9\u4e24\u4e2a\u5fae\u670d\u52a1\u7684\u5b9e\u73b0\u8fdb\u884c\u4ecb\u7ecd\uff0c\u5176\u4ee3\u7801\u5df2\u6258\u7ba1\u4e8egithub\u4e0a\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_3","title":"\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u5b9e\u73b0","text":"<p>\u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668\u63d0\u4f9b\u8fd0\u7b97\u670d\u52a1\uff0c\u5176\u5b9e\u73b0\u5206\u4e3a\u4e09\u90e8\u5206\uff1a</p> <ul> <li> <p>\u5177\u4f53\u8fd0\u7b97\u5b9e\u73b0</p> </li> <li> <p>\u670d\u52a1\u7aef\u70b9\u5b9a\u4e49</p> </li> <li> <p>\u670d\u52a1\u542f\u52a8\u5165\u53e3</p> </li> </ul>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_4","title":"\u5177\u4f53\u8fd0\u7b97\u5b9e\u73b0","text":"<p>\u672c\u6a21\u5757\u8d1f\u8d23\u8ba1\u7b97\u4f53\u8d28\u6307\u6570\uff0c\u6839\u636e\u516c\u5f0f <code>\u4f53\u8d28\u6307\u6570=\u4f53\u91cd / \u8eab\u9ad8^2</code> \u8fdb\u884c\u5b9e\u73b0\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>public interface CalculatorService {\n  double calculate(double height, double weight);\n}\n\n@Service\npublic class CalculatorServiceImpl implements CalculatorService {\n  @Override\n  public double calculate(double height, double weight) {\n    if (height &lt;= 0 || weight &lt;= 0) {\n      throw new IllegalArgumentException(\"Arguments must be above 0\");\n    }\n    double heightInMeter = height / 100;\n    return weight / (heightInMeter * heightInMeter);\n  }\n}\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_5","title":"\u670d\u52a1\u7aef\u70b9\u5b9a\u4e49","text":"<p>\u670d\u52a1\u7aef\u70b9\u7528\u4e8e\u751f\u6210\u670d\u52a1\u5951\u7ea6\uff0c\u4f7f\u5f97\u670d\u52a1\u95f4\u80fd\u65e0\u7f1d\u8fdb\u884c\u901a\u4fe1\u3002\u9996\u5148\u5b9a\u4e49\u7aef\u70b9\u63a5\u53e3\uff1a</p> <pre><code>public interface CalculatorEndpoint {\n  double calculate(double height, double weight);\n}\n</code></pre> <p>\u5f15\u5165 ServiceComb \u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependencies&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p>\u66b4\u9732\u8fd0\u7b97\u670d\u52a1\u7684Restful\u7aef\u70b9\uff1a</p> <pre><code>@RestSchema(schemaId = \"calculatorRestEndpoint\")\n@RequestMapping(\"/\")\npublic class CalculatorRestEndpoint implements CalculatorEndpoint {\n\n  private final CalculatorService calculatorService;\n\n  @Autowired\n  public CalculatorRestEndpoint(CalculatorService calculatorService) {\n    this.calculatorService = calculatorService;\n  }\n\n  @Override\n  @GetMapping(\"/bmi\")\n  public double calculate(double height, double weight) {\n    return calculatorService.calculate(height, weight);\n  }\n}\n</code></pre> <p>\u8fd9\u91cc\u7528<code>@RestSchema</code>\u6ce8\u91ca\u7aef\u70b9\u540e\uff0c ServiceComb \u5fae\u670d\u52a1\u6846\u67b6\u4f1a\u81ea\u52a8\u751f\u6210\u5bf9\u5e94\u7684\u670d\u52a1\u7aef\u70b9\u5951\u7ea6\uff0c\u5e76\u6839\u636e \u5982\u4e0b\u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u7684\u5b9a\u4e49\u6765\u914d\u7f6e\u7aef\u70b9\u7aef\u53e3\uff0c\u5c06\u5951\u7ea6\u548c\u670d\u52a1\u4e00\u8d77\u6ce8\u518c\u5230\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u3002</p> <pre><code>servicecomb:\n  registry:\n    sc:\n      address: http://127.0.0.1:30100\n  service:\n    application: bmi\n    name: calculator\n    version: 0.0.1\n\n  rest:\n    address: 0.0.0.0:7777\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_6","title":"\u670d\u52a1\u542f\u52a8\u5165\u53e3","text":"<p>\u670d\u52a1\u542f\u52a8\u5165\u53e3\u6309\u7167\u9ad8\u6027\u80fd\u6a21\u5f0f \u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>@SpringBootApplication\npublic class CalculatorApplication {\n  public static void main(String[] args) {\n    try {\n      new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(CalculatorApplication.class).run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_7","title":"\u4f53\u8d28\u6307\u6570\u754c\u9762\u5b9e\u73b0","text":"<p>\u672c\u6a21\u5757\u8d1f\u8d23\u63d0\u4f9b\u7528\u6237\u754c\u9762\u53ca\u7f51\u5173\u670d\u52a1\u3002\u5176\u5b9e\u73b0\u4e3b\u8981\u5206\u4e3a\u4e09\u90e8\u5206\uff1a</p> <ul> <li> <p>\u524d\u7aef\u754c\u9762</p> </li> <li> <p>\u7f51\u5173\u53ca\u8def\u7531\u89c4\u5219</p> </li> <li> <p>\u670d\u52a1\u542f\u52a8\u5165\u53e3</p> </li> </ul> <p>\u5176\u4e2d\uff0c\u524d\u7aef\u754c\u9762\u7684\u7ec4\u4ef6\u4f7f\u7528\u4e86Bootstrap\u6765\u5f00\u53d1\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_8","title":"\u7f51\u5173\u53ca\u8def\u7531\u89c4\u5219","text":"<p>\u7f51\u5173\u670d\u52a1\u4f7f\u7528 ServiceComb \u63d0\u4f9b\u7684 Edge Service \u6765\u5b9e\u73b0\u3002</p> <p>\u5f15\u5165\u4f9d\u8d56\uff1a</p> <pre><code>\n&lt;dependencies&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;edge-core&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p>\u5728 <code>application.yml</code> \u6587\u4ef6\u4e2d\u914d\u7f6e\u8def\u7531\u89c4\u5219\u53ca\u670d\u52a1\u7aef\u53e3\u4fe1\u606f\uff1a</p> <pre><code>servicecomb:\n  registry:\n    sc:\n      address: http://127.0.0.1:30100\n  service:\n    application: bmi\n    name: gateway\n    version: 0.0.1\n\n  rest:\n    address: 0.0.0.0:8889\n\n  tracing:\n    enabled: false\n\n  http:\n    dispatcher:\n      edge:\n        default:\n          enabled: false\n          prefix: api\n          withVersion: false\n          prefixSegmentCount: 1\n        url:\n          enabled: true\n          mappings:\n            calculator:\n              prefixSegmentCount: 1\n              path: \"/calculator/.*\"\n              microserviceName: calculator\n              versionRule: 0.0.0+\n\n# This is web root for windows server, change this path according to where you put your source code\ngateway:\n  webroot: /code/servicecomb-samples/java-chassis-samples/bmi/webapp/src/main/resources/static\n</code></pre> <p>\u5176\u4e2d <code>servicecomb.http.dispatcher.edge.default.enabled</code> \u7981\u7528\u4e86\u9ed8\u8ba4\u7684\u8def\u7531\u89c4\u5219\uff0c <code>servicecomb.http.dispatcher.edge.url.enabled</code> \u542f\u7528\u4e86\u57fa\u4e8eURL\u6620\u5c04\u7684\u8def\u7531\u89c4\u5219\u3002 \u89c4\u5219\u7684\u542b\u4e49\u8868\u793a\u5c06URL\u4e3a <code>/calculator/.*</code> \u7684\u8bf7\u6c42\u8f6c\u53d1\u5230 <code>calculator</code>\u670d\u52a1\u3002</p> <p><code>gateway.webroot</code> \u914d\u7f6e\u4e86\u9759\u6001\u9875\u9762\u6240\u5728\u7684\u76ee\u5f55\u4f4d\u7f6e\u3002 \u793a\u4f8b\u91cc\u9762\u91c7\u7528\u7684\u662f Windows \u76ee\u5f55\u73af\u5883\uff0c\u5982\u679c\u91c7\u7528 Linux \u73af\u5883\uff0c\u9700\u8981\u914d\u7f6e\u76f8\u5bf9\u8def\u5f84\u3002</p> <p><code>StaticWebpageDispatcher</code> \u6269\u5c55\u4e86 Edge Service \u7684\u8f6c\u53d1\u89c4\u5219\uff0c \u4f7f\u7528\u4e86 vert.x \u63d0\u4f9b\u7684 <code>StaticHandler</code> \u53d1\u5e03\u9759\u6001\u9875\u9762\u3002 Edge  Service \u91c7\u7528 SPI \u7684\u65b9\u5f0f\u6269\u5c55 Dispatcher\uff0c \u9700\u8981\u521b\u5efa\u6587\u4ef6 <code>org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher</code>\u3002 </p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_9","title":"\u670d\u52a1\u542f\u52a8\u5165\u53e3","text":"<p>\u670d\u52a1\u542f\u52a8\u5165\u53e3\u6309\u7167\u9ad8\u6027\u80fd\u6a21\u5f0f \u4ee3\u7801\u5982\u4e0b\uff1a</p> <pre><code>@SpringBootApplication\npublic class GatewayApplication {\n  public static void main(String[] args) {\n    new SpringApplicationBuilder().web(WebApplicationType.NONE).sources(GatewayApplication.class).run(args);\n  }\n}\n</code></pre> <p>\u81f3\u6b64\uff0c\u4f53\u8d28\u6307\u6570\u5e94\u7528\u5df2\u5f00\u53d1\u5b8c\u6bd5\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5feb\u901f\u5165\u95e8\u4e2d\u7684\u6b65\u9aa4\u5bf9\u5176\u8fdb\u884c\u9a8c\u8bc1\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start-bmi.html#_10","title":"\u4e0b\u4e00\u6b65","text":"<ul> <li>\u9605\u8bfb \u5fae\u670d\u52a1\u5f00\u53d1\u8fdb\u9636</li> </ul>"},{"location":"featured-topics/application-bmi/quick-start.html","title":"\u5feb\u901f\u5165\u95e8","text":""},{"location":"featured-topics/application-bmi/quick-start.html#java","title":"\u5b89\u88c5 Java \u5f00\u53d1\u73af\u5883","text":"<ul> <li> <p>\u5b89\u88c5git\uff0c\u8be6\u60c5\u53ef\u53c2\u8003git\u5b89\u88c5\u6559\u7a0b \u3002</p> </li> <li> <p>\u5b89\u88c5JDK 17\uff0c\u8be6\u60c5\u53ef\u53c2\u8003JDK\u5b89\u88c5\u6559\u7a0b \u3002</p> </li> <li> <p>\u5b89\u88c5Maven 3.x\uff0c\u8be6\u60c5\u53ef\u53c2\u8003Maven\u5b89\u88c5\u6559\u7a0b \u3002</p> </li> <li> <p>\u4e0b\u8f7d BMI \u4f8b\u5b50</p> </li> </ul> <pre><code>git clone https://github.com/apache/servicecomb-samples.git\ncd servicecomb-samples/bmi\nmvn clean install\n</code></pre>"},{"location":"featured-topics/application-bmi/quick-start.html#service-center","title":"\u8fd0\u884c Service Center","text":"<p>\u5728 ServiceComb \u5fae\u670d\u52a1\u6846\u67b6\u4e2d\uff0cService Center \u63d0\u4f9b\u670d\u52a1\u6ce8\u518c\u53ca\u670d\u52a1\u53d1\u73b0\u529f\u80fd\uff0c\u53ef\u76f4\u63a5\u4f7f\u7528 Docker \u8fd0\u884c\u3002 </p> <pre><code>docker pull servicecomb/service-center\ndocker run -d -p 30100:30100 servicecomb/service-center:latest\n</code></pre> <p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u73af\u5883\u5b89\u88c5 \u83b7\u53d6\u5728\u672c\u5730\u4ee5\u4e8c\u8fdb\u5236\u65b9\u5f0f\u8fd0\u884cService Center\u7684\u65b9\u6cd5\u3002</p>"},{"location":"featured-topics/application-bmi/quick-start.html#_2","title":"\u8fd0\u884c\u5fae\u670d\u52a1\u5e94\u7528","text":"<ul> <li>\u8fdb\u5165 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4ee3\u7801\u76ee\u5f55\u3002</li> </ul> <pre><code>cd servicecomb-samples/bmi\n</code></pre> <p>\u6ce8\u610f\uff1a\u5728windows\u5f00\u53d1\u73af\u5883\u4e0b\uff0cdocker\u662f\u5728\u865a\u62df\u673a\u4e2d\u542f\u52a8\uff0c\u56e0\u6b64\u9700\u8981\u4fee\u6539\u5fae\u670d\u52a1\u7684 Service Center IP\u5730\u5740\u4e3a\u865a\u62df\u673aIP\u5730\u5740\u3002\u4fee\u65392\u4e2a\u914d\u7f6e\u6587\u4ef6[calculator|webapp]/src/main/resources/application.yml\uff0c\u5c06\u5176\u4e2dhttp://127.0.0.1:30100\u4fee\u6539\u4e3ahttp://192.168.99.100:30100\uff0c\u5176\u4e2d192.168.99.100\u662f\u865a\u62df\u673aIP\uff0c\u9700\u8981\u4e0e\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u865a\u62df\u673aIP\u4fdd\u6301\u4e00\u81f4\u3002</p> <ul> <li>\u542f\u52a8 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u548c \u4f53\u8d28\u6307\u6570\u754c\u9762 \u5fae\u670d\u52a1\uff0c\u5206\u522b\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4\uff1a</li> </ul> <pre><code>cd calculator; mvn spring-boot:run\ncd webapp; mvn spring-boot:run\n</code></pre> <ul> <li>\u9a8c\u8bc1\u670d\u52a1\u3002\u5fae\u670d\u52a1\u542f\u52a8\u5b8c\u6bd5\u540e\uff0c\u5373\u53ef\u901a\u8fc7 http://localhost:8889 \u8bbf\u95ee \u4f53\u8d28\u6307\u6570 \u5e94\u7528\uff0c\u5c4a\u65f6\u5c06\u80fd\u770b\u5230\u5982\u4e0b\u754c\u9762\uff0c\u5e76\u53ef\u8f93\u5165\u60a8\u7684\u8eab\u9ad8\u548c\u4f53\u91cd\u4fe1\u606f\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c\u3002</li> </ul> <p></p>"},{"location":"featured-topics/application-bmi/service-management.html","title":"\u7194\u65ad\u63a7\u5236","text":"<p>\u7194\u65ad\u63a7\u5236\u4e3b\u8981\u7528\u4e8e\u89e3\u51b3\u6216\u7f13\u89e3\u670d\u52a1\u96ea\u5d29\u7684\u60c5\u51b5\uff0c\u5373\u4e2a\u522b\u5fae\u670d\u52a1\u8868\u73b0\u5f02\u5e38\u65f6\uff0c\u7cfb\u7edf\u80fd\u5bf9\u5176\u8fdb\u884c\u5bb9\u9519\u5904\u7406\u3002\u672c\u6307\u5357\u5c06\u4f1a\u5c55\u793a\u5982\u4f55\u5728 \u4f53\u8d28\u6307\u6570 \u5e94\u7528\u4e2d\u4f7f\u7528\u7194\u65ad\u63a7\u5236\u80fd\u529b\u3002</p>"},{"location":"featured-topics/application-bmi/service-management.html#_2","title":"\u524d\u8a00","text":"<p>\u5728\u60a8\u8fdb\u4e00\u6b65\u9605\u8bfb\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u9605\u8bfb\u4e86\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u5e94\u7528\u5f00\u53d1\uff0c\u5e76\u5df2\u6210\u529f\u8fd0\u884c\u4f53\u8d28\u6307\u6570\u5fae\u670d\u52a1\u3002</p>"},{"location":"featured-topics/application-bmi/service-management.html#_3","title":"\u542f\u7528","text":"<ul> <li>\u5728 \u4f53\u8d28\u6307\u6570\u754c\u9762 \u7684 <code>application.yml</code> \u6587\u4ef6\u4e2d\u6307\u660e\u4f7f\u7528\u670d\u52a1\u6cbb\u7406\u7684\u5904\u7406\u94fe\u53ca\u6307\u5b9a\u7194\u65ad\u548c\u5bb9\u9519\u7b56\u7565\uff1a</li> </ul> <pre><code>servicecomb:\n  matchGroup:\n    bmi-operation: |\n      matches:\n        - apiPath:\n            exact: \"/bmi\"\n  instanceIsolation:\n    bmi-operation: |\n      minimumNumberOfCalls: 5\n      slidingWindowSize: 10\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n\n</code></pre> <p>\u6ce8\u610f\uff1a\u7194\u65ad\u63a7\u5236\u662f\u5728\u6d88\u8d39\u8005\u65b9\u3002</p>"},{"location":"featured-topics/application-bmi/service-management.html#_4","title":"\u9a8c\u8bc1","text":"<p>\u5bf9 \u4f53\u8d28\u6307\u6570\u8ba1\u7b97\u5668 \u5fae\u670d\u52a1\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\uff0c\u4f7f\u5176\u8fd0\u884c\u5b9e\u4f8b\u6570\u4e3a2\uff0c\u5373\u65b0\u589e\u4e00\u4e2a\u8fd0\u884c\u5b9e\u4f8b\uff1a</p> <pre><code>mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Dservicecomb.rest.address=0.0.0.0:7779 -Dbmi.mock.error=true\"\n</code></pre> <ul> <li>\u8bbf\u95ee http://localhost:8889 \u3002 \u8f93\u51fa\u8eab\u9ad8\u548c\u4f53\u91cd\uff0c\u8fde\u7eed\u70b9\u51fb\u51e0\u6b21\u63d0\u4ea4\uff0c\u53ef\u4ee5\u770b\u5230\u754c\u9762\u4ea4\u66ff\u51fa\u73b0\u6b63\u5e38\u548c\u9519\u8bef\u754c\u9762\u3002\u8fd9\u662f\u56e0\u4e3a\u5728\u5176\u4e2d\u4e00\u4e2a\u5b9e\u4f8b\u91cc\u9762\u6784\u9020\u4e86\u6545\u969c\u3002</li> </ul> <p></p> <ul> <li> <p>\u7ee7\u7eed\u70b9\u51fb\u754c\u9762\uff0c\u7ecf\u8fc710\u6b21\u4ee5\u540e\uff0c\u53d1\u73b0\u6545\u969c\u5b9e\u4f8b\u88ab\u7194\u65ad\u3002\u4e0d\u518d\u51fa\u73b0\u9519\u8bef\uff0c\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u88ab\u6b63\u5e38\u5b9e\u4f8b\u5904\u7406\u3002\u6bcf\u95f4\u969410\u79d2\uff0c\u4f1a\u5c1d\u8bd5\u5f80\u6545\u969c\u5b9e\u4f8b\u53d1\u751f\u82e5\u5e72\u8bf7\u6c42\u3002 </p> </li> <li> <p>\u9a8c\u8bc1\u670d\u52a1\u6062\u590d\u6b63\u5e38\u3002\u91cd\u542f\u6545\u969c\u5b9e\u4f8b\uff0c\u4e0d\u6ce8\u5165\u6545\u969c\u3002 \u53ef\u4ee5\u770b\u5230\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u88ab\u6b63\u5e38\u5904\u7406\uff0c\u800c\u4e14\u8bf7\u6c42\u5747\u5300\u7684\u5206\u5e03\u5728\u4e24\u4e2a\u6b63\u5e38\u5b9e\u4f8b\u3002 </p> </li> </ul>"},{"location":"featured-topics/application-porter/authentication.html","title":"\u8fdb\u884c\u8ba4\u8bc1\u548c\u9274\u6743\u8bbe\u8ba1","text":"<p>\u4f20\u7edf\u7684WEB\u5bb9\u5668\u90fd\u63d0\u4f9b\u4e86\u4f1a\u8bdd\u7ba1\u7406\uff0c\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\uff0c\u8fd9\u4e9b\u4f1a\u8bdd\u7ba1\u7406\u5b58\u5728\u5f88\u591a\u7684\u9650\u5236\uff0c\u5982\u679c\u9700\u8981\u505a\u5230\u5f39\u6027\u6269\u7f29\u5bb9\uff0c\u5219\u9700\u8981\u505a\u5927\u91cf\u7684\u5b9a\u5236\u3002 \u5728porter\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528user-service\u505a\u4f1a\u8bdd\u7ba1\u7406\uff0c\u53ef\u4ee5\u901a\u8fc7login\u548csession\u4e24\u4e2a\u63a5\u53e3\u521b\u5efa\u548c\u83b7\u53d6\u4f1a\u8bdd\u4fe1\u606f\u3002\u4f1a\u8bdd\u4fe1\u606f\u6301\u4e45\u5316\u5230\u6570\u636e\u5e93\u4e2d\uff0c\u4ece\u800c\u5b9e\u73b0\u5fae\u670d\u52a1\u672c\u8eab\u7684\u65e0\u72b6\u6001\uff0c\u5fae\u670d\u52a1\u53ef\u4ee5\u5f39\u6027\u6269\u7f29\u5bb9\u3002\u5728\u66f4\u5927\u89c4\u6a21\u5e76\u53d1\u6216\u8005\u9ad8\u6027\u80fd\u8981\u6c42\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u8003\u8651\u5c06\u4f1a\u8bdd\u4fe1\u606f\u5b58\u50a8\u5230\u9ad8\u901f\u7f13\u5b58\u3002</p> <pre><code>@PostMapping(path = \"/login\", produces = MediaType.APPLICATION_JSON_VALUE)\n\npublic SessionInfo login(@RequestParam(name = \"userName\") String userName,\n\n@RequestParam(name = \"password\") String password)\n\n\n\n@GetMapping(path = \"/session\", produces = MediaType.APPLICATION_JSON_VALUE)\n\npublic SessionInfo getSession(@RequestParam(name = \"sessionId\") String sessionId)\n</code></pre> <p>\u540c\u65f6\u65b0\u589e\u4e86\u4f1a\u8bdd\u7ba1\u7406\u7684\u6570\u636e\u8868\u8bbe\u8ba1\uff1a</p> <pre><code>CREATE TABLE `T_SESSION` (\n  `ID`  INTEGER(8) NOT NULL AUTO_INCREMENT COMMENT '\u552f\u4e00\u6807\u8bc6',\n  `SESSION_ID`  VARCHAR(64) NOT NULL COMMENT '\u4e34\u65f6\u4f1a\u8bddID',\n  `USER_NAME`  VARCHAR(64) NOT NULL COMMENT '\u7528\u6237\u540d\u79f0',\n  `ROLE_NAME`  VARCHAR(64) NOT NULL COMMENT '\u89d2\u8272\u540d\u79f0',\n  `CREATION_TIME`  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '\u521b\u5efa\u65f6\u95f4',\n  `ACTIVE_TIME`  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '\u6700\u8fd1\u6d3b\u8dc3\u65f6\u95f4',\n  PRIMARY KEY (`ID`)\n);\n</code></pre> <p>\u4f1a\u8bdd\u7ba1\u7406\u548c\u8ba4\u8bc1\u90fd\u5728gateway-service\u8fdb\u884c\uff0c\u9274\u6743\u5219\u9700\u8981\u4f7f\u7528\u5230\u7528\u6237\u4fe1\u606f\u3002\u4e3a\u4e86\u8ba9\u5fae\u670d\u52a1\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u4e0d\u81f3\u4e8e\u518d\u67e5\u8be2user-service\uff0c\u6211\u4eec\u5229\u7528\u4e86Context\u673a\u5236\uff0c\u5728Context\u91cc\u9762\u5b58\u50a8\u4e86session\u4fe1\u606f\uff0c\u6240\u6709\u7684\u5fae\u670d\u52a1\u90fd\u53ef\u4ee5\u76f4\u63a5\u4eceContext\u91cc\u9762\u53d6\u5230session\u4fe1\u606f\uff0c\u975e\u5e38\u65b9\u4fbf\u548c\u7075\u6d3b\u3002\u5b8c\u6210\u8fd9\u4e2a\u529f\u80fd\u6709\u5982\u4e0b\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a</p> <ul> <li>gateway-service\u8fdb\u884cHTTP\u534f\u8bae\u5230Invocation\u7684\u8f6c\u6362</li> </ul> <p>\u8fd9\u4e2a\u901a\u8fc7\u91cd\u8f7d InvocationCreator \u5b9e\u73b0\u3002\u5c06\u4f1a\u8bddID\u901a\u8fc7Context\u4f20\u9012\u7ed9handler\u3002</p> <pre><code>InvocationCreator creator = new EdgeInvocationCreator(context, requestEx, responseEx,\n    microserviceName, path) {\n  @Override\n  protected Invocation createInstance() {\n    Invocation invocation = super.createInstance();\n    // get session id from header and cookie for debug reasons\n    String sessionId = context.request().getHeader(\"session-id\");\n    if (sessionId != null) {\n      invocation.addContext(\"session-id\", sessionId);\n    } else {\n      Cookie sessionCookie = context.request().getCookie(\"session-id\");\n      if (sessionCookie != null) {\n        invocation.addContext(\"session-id\", sessionCookie.getValue());\n      }\n    }\n    return invocation;\n  }\n};\n</code></pre> <ul> <li>\u901a\u8fc7\u5904\u7406\u94fe\u6765\u8fdb\u884c\u8ba4\u8bc1\u548c\u4f1a\u8bdd\u7ba1\u7406</li> </ul> <p>\u5bf9\u4e8eui\u754c\u9762\uff0c\u4e0d\u63d0\u4f9b\u8ba4\u8bc1\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u3002\u5bf9\u4e8eREST\u63a5\u53e3\u9700\u8981\u8fdb\u884c\u8ba4\u8bc1\uff0c\u56e0\u6b64\u6211\u4eec\u5c06\u8ba4\u8bc1\u548c\u4f1a\u8bdd\u7ba1\u7406\u7684\u529f\u80fd\u5728Hanlder\u4e2d\u5b9e\u73b0\u3002\u4e0b\u9762\u7684\u4ee3\u7801\u5bf9user-service\u7684login\u63a5\u53e3\u76f4\u63a5\u8f6c\u53d1\u8bf7\u6c42\uff0c\u5176\u4ed6\u8bf7\u6c42\u5148\u7ecf\u8fc7\u4f1a\u8bdd\u6821\u9a8c\uff0c\u518d\u8fdb\u884c\u8f6c\u53d1\u3002</p> <p>\u6ce8\u610f: \u5728\u7f51\u5173\u6267\u884c\u7684\u5904\u7406\u94fe\u903b\u8f91\uff0c\u662freactive\u6a21\u5f0f\u7684\uff0c\u4e0d\u80fd\u4f7f\u7528\u963b\u585e\u8c03\u7528\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u7ebf\u7a0b\u963b\u585e\u3002</p> <pre><code>@Component\npublic class AuthHandler extends AbstractFilter implements EdgeFilter {\n  @RpcReference(microserviceName = \"user-service\", schemaId = \"user\")\n  private UserService userService;\n\n  // session expires in 10 minutes, cache for 1 seconds to get rid of concurrent scenarios.\n  private Cache&lt;String, String&gt; sessionCache = CacheBuilder.newBuilder()\n      .expireAfterAccess(30, TimeUnit.SECONDS)\n      .build();\n\n  @Override\n  public CompletableFuture&lt;Response&gt; onFilter(Invocation invocation, FilterNode nextNode) {\n    if (invocation.getMicroserviceName().equals(\"user-service\")\n        &amp;&amp; (invocation.getOperationName().equals(\"login\")\n        || (invocation.getOperationName().equals(\"getSession\")))) {\n      // login\uff1areturn session id, set cookie by javascript\n      return nextNode.onFilter(invocation);\n    } else {\n      // check session\n      String sessionId = invocation.getContext(\"session-id\");\n      if (sessionId == null) {\n        throw new InvocationException(403, \"\", \"session is not valid.\");\n      }\n\n      String sessionInfo = sessionCache.getIfPresent(sessionId);\n      if (sessionInfo != null) {\n        try {\n          // session info stored in InvocationContext. Microservices can get it. \n          invocation.addContext(\"session-id\", sessionId);\n          invocation.addContext(\"session-info\", sessionInfo);\n          return nextNode.onFilter(invocation);\n        } catch (Exception e) {\n          return CompletableFuture.completedFuture(Response.failResp(new InvocationException(500, \"\", e.getMessage())));\n        }\n      }\n\n      // In edge, handler is executed in reactively. Must have no blocking logic.\n      CompletableFuture&lt;SessionInfo&gt; result = userService.getSession(sessionId);\n      return result.whenComplete((info, e) -&gt; {\n        if (result.isCompletedExceptionally()) {\n          throw new InvocationException(403, \"\", \"session is not valid.\");\n        } else {\n          if (info == null) {\n            throw new InvocationException(403, \"\", \"session is not valid.\");\n          }\n          try {\n            // session info stored in InvocationContext. Microservices can get it. \n            invocation.addContext(\"session-id\", sessionId);\n            String sessionInfoStr = JsonUtils.writeValueAsString(info);\n            invocation.addContext(\"session-info\", sessionInfoStr);\n            sessionCache.put(sessionId, sessionInfoStr);\n          } catch (Exception ee) {\n            throw new InvocationException(500, \"\", ee.getMessage());\n          }\n        }\n      }).thenCompose(info -&gt; nextNode.onFilter(invocation));\n    }\n  }\n\n  @Override\n  public int getOrder() {\n    return -1890;\n  }\n\n  @Override\n  public String getName() {\n    return \"edge-auth\";\n  }\n}\n\n</code></pre> <ul> <li>\u7ed9\u5220\u9664\u6587\u4ef6\u589e\u52a0\u9274\u6743</li> </ul> <p>\u5728\u4e0a\u9762\u7684\u6b65\u9aa4\u4e2d\uff0c\u5df2\u7ecf\u5c06\u4f1a\u8bdd\u4fe1\u606f\u8bbe\u7f6e\u5230Context\u91cc\u9762\uff0cfile-service\u53ef\u4ee5\u65b9\u4fbf\u7684\u4f7f\u7528\u8fd9\u4e9b\u4fe1\u606f\u8fdb\u884c\u9274\u6743\u64cd\u4f5c\u3002</p> <pre><code>@DeleteMapping(path = \"/delete\", produces = MediaType.APPLICATION_JSON_VALUE)\npublic boolean deleteFile(@RequestParam(name = \"id\") String id) {\n    String session = ContextUtils.getInvocationContext().getContext(\"session-info\");\n    if (session == null) {\n        throw new InvocationException(403, \"\", \"not allowed\");\n    } else {\n        SessionInfo sessionInfo = null;\n        try {\n            sessionInfo = JsonUtils.readValue(session.getBytes(\"UTF-8\"), SessionInfo.class);\n        } catch (Exception e) {\n            throw new InvocationException(403, \"\", \"session not allowed\");\n        }\n        if (sessionInfo == null || !sessionInfo.getRoleName().equals(\"admin\")) {\n            throw new InvocationException(403, \"\", \"not allowed\");\n        }\n    }\n    return fileService.deleteFile(id);\n}\n</code></pre> <p>\u5230\u8fd9\u91cc\u4e3a\u6b62\uff0c\u8ba4\u8bc1\u3001\u4f1a\u8bdd\u7ba1\u7406\u548c\u9274\u6743\u7684\u903b\u8f91\u57fa\u672c\u5df2\u7ecf\u5b8c\u6210\u4e86\u3002\u53ef\u4ee5\u901a\u8fc7Postman\u7b49\u5de5\u5177\u8fdb\u884c\u6d41\u7a0b\u76f8\u5173\u7684\u6d4b\u8bd5\u3002</p> <pre><code>#### \u4f1a\u8bdd\u7ba1\u7406\u63a5\u53e3\u8c03\u7528\u793a\u4f8b\uff0c\u8c03\u7528\u5220\u9664\u6587\u4ef6\u63a5\u53e3\u3002\u4f7f\u7528guest\u7528\u6237\u7684\u4f1a\u8bdd\u7684\u60c5\u51b5\u3002\n\n#Request\nDELETE http://localhost:9090/api/file-service/delete?id=ba6bd8a2-d31a-42cd-a1be-9fb3d6ab4c82\n\nsession-id: 1be646c0-50cb-4c0a-968d-2a512775f5e8\n\n#Response\n{\n    \"message\": \"not allowed\"\n}\n</code></pre>"},{"location":"featured-topics/application-porter/authentication.html#js","title":"\u5f00\u53d1JS\u811a\u672c\u7ba1\u7406\u4f1a\u8bdd","text":"<p>\u9996\u5148\u9700\u8981\u63d0\u4f9b\u767b\u9646\u6846\uff0c\u8ba9\u7528\u6237\u8f93\u5165\u7528\u6237\u540d\u5bc6\u7801\uff1a</p> <pre><code>&lt;div class=\"form\"&gt;\n    &lt;h2&gt;\u767b\u5f55&lt;/h2&gt;\n    &lt;input id=\"username\" type=\"text\" name=\"Username\" placeholder=\"Username\"&gt;\n    &lt;input id=\"paasword\" type=\"password\" name=\"Password\" placeholder=\"Password\" &gt;\n    &lt;input type=\"button\" value=\"Login\" onclick=\"loginAction()\"&gt;\n&lt;/div&gt;\n</code></pre> <p>\u5b9e\u73b0\u767b\u9646\u903b\u8f91\u3002\u767b\u9646\u9996\u5148\u8c03\u7528\u540e\u53f0\u767b\u9646\u63a5\u53e3\uff0c\u767b\u9646\u6210\u529f\u540e\u8bbe\u7f6e\u4f1a\u8bddcookie:</p> <pre><code>function loginAction() {\n     var username = document.getElementById(\"username\").value;\n     var password = document.getElementById(\"paasword\").value;\n     var formData = {};\n     formData.userName = username;\n     formData.password = password;\n\n     $.ajax({\n        type: 'POST',\n        url: \"/api/user-service/login\",\n        data: formData,\n        success: function (data) {\n            setCookie(\"session-id\", data.sessiondId, false);\n            window.alert('\u767b\u9646\u6210\u529f\uff01');\n        },\n        error: function(data) {\n            console.log(data);\n            window.alert('\u767b\u9646\u5931\u8d25\uff01' + data);\n        },\n        async: true\n    });\n}\n</code></pre>"},{"location":"featured-topics/application-porter/design.html","title":"\u8bbe\u8ba1\u5fae\u670d\u52a1","text":"<p>\u6839\u636eUser Story\uff0c\u5e94\u7528\u81f3\u5c11\u5305\u542b\u7528\u6237\u7ba1\u7406\u3001\u6587\u4ef6\u7ba1\u7406\u7b49\u5fae\u670d\u52a1\uff0c\u6bcf\u4e2a\u5fae\u670d\u52a1\u90fd\u884c\u4f7f\u4e0d\u4e00\u6837\u7684\u529f\u80fd\u3002\u4e0b\u9762\u662f\u5206\u89e3\u540e\u8bbe\u8ba1\u7684\u5fae\u670d\u52a1\u7ed3\u6784\uff1a</p> <p></p> <p>\u7f51\u5173\uff1a\u8d1f\u8d23\u8fdb\u884c\u8bf7\u6c42\u8f6c\u53d1\u3001\u7528\u6237\u8ba4\u8bc1\u4ee5\u53ca\u5176\u4ed6\u5185\u5bb9\uff0c\u6bd4\u5982\u89e3\u51b3\u8de8\u7ad9\u8bbf\u95ee\u3001\u8bbe\u7f6eHTTP\u5b89\u5168\u6d88\u606f\u5934\u7b49\u3002\u901a\u8fc7\u8bbe\u7f6e\u9632\u706b\u5899\uff0c\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u5fc5\u987b\u7ecf\u8fc7\u7f51\u5173\uff0c\u8fd9\u6837\u5c31\u5c06\u5185\u90e8\u670d\u52a1\u4e0e\u5916\u90e8\u7528\u6237\u9694\u79bb\u8d77\u6765\uff0c\u9632\u6b62\u5185\u90e8\u670d\u52a1\u88ab\u975e\u6cd5\u8bbf\u95ee\u3002</p> <p>\u6587\u4ef6\u7ba1\u7406\uff1a \u63d0\u4f9b\u6587\u4ef6\u4e0a\u4f20\u3001\u5220\u9664\u7b49\u6587\u4ef6\u7ba1\u7406\u529f\u80fd\u3002</p> <p>\u7528\u6237\u7ba1\u7406\uff1a \u63d0\u4f9b\u8ba4\u8bc1\u3001\u89d2\u8272\u548c\u6743\u9650\u7ba1\u7406\u7b49\u529f\u80fd\u3002</p> <p>\u754c\u9762\uff1a  \u91c7\u7528\u9759\u6001\u9875\u9762\u6280\u672f, html+js+css\u5b9e\u73b0\u3002\u754c\u9762\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u5fae\u670d\u52a1\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u653e\u5230\u7f51\u5173\u670d\u52a1\u91cc\u9762\u3002\u6216\u8005\u4f7f\u7528CDN\u7b49\u8fdb\u884c\u90e8\u7f72\u3002\u5728\u672c\u4f8b\u5b50\u4e2d\uff0c\u4e3a\u4e86\u90e8\u7f72\u7b80\u5355\uff0c\u5c06\u754c\u9762\u4f7f\u7528\u7f51\u5173\u8fdb\u884c\u6258\u7ba1\u3002</p> <p>\u4e3a\u4e86\u53ef\u9760\u6027\uff0c\u8fd9\u4e9b\u670d\u52a1\u90fd\u5e94\u8be5\u652f\u6301\u5206\u5e03\u5f0f\u96c6\u7fa4\u90e8\u7f72\u3002\u56e0\u6b64\u5728\u4e1a\u52a1\u903b\u8f91\u4e2d\u6d89\u53ca\u5230\u5e76\u53d1\u548c\u8d1f\u8f7d\u5747\u8861\u7684\u573a\u666f\uff0c\u90fd\u9700\u8981\u8003\u8651\u65e0\u72b6\u6001\u8bbe\u8ba1\u3002\u53ef\u4ee5\u7ed9\u7f51\u5173\u914d\u7f6e\u57df\u540d\u6216\u8005\u5728\u4e0a\u5c42\u518d\u6302\u4e00\u4e2a\u5f39\u6027\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u5b9e\u73b0\u7f51\u5173\u7684\u591a\u5b9e\u4f8b\u90e8\u7f72\u3002</p> <p>\u5fae\u670d\u52a1\u8bbe\u8ba1\u597d\u4ee5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5df2\u6709\u9879\u76ee\u5feb\u901f\u642d\u5efa\u9879\u76ee\u67b6\u5b50\u3002\u53ef\u4ee5\u4ece\uff1a</p> <p>Porter\u5e94\u7528 </p> <p>\u4e0b\u8f7d\u8be5\u9879\u76ee\u3002</p>"},{"location":"featured-topics/application-porter/file-service.html","title":"\u5f00\u53d1\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd","text":"<p>\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u3001\u7528\u6237\u7ba1\u7406\u529f\u80fd\u90fd\u53ea\u9700\u8981\u63d0\u4f9bREST\u63a5\u53e3\u3002</p> <ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb</li> </ul> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3</li> </ul> <p>\u670d\u52a1\u63a5\u53e3\u5b9a\u4e49\u4e0a\u67093\u79cd\u9009\u62e9\uff1aRPC\u3001Spring MVC\u3001JAX RS\u3002 \u8fd9\u91cc\u9009\u62e9\u4e86Sping MVC\uff0c\u76f8\u6bd4RPC\u9700\u8981\u989d\u5916\u589e\u52a0Annotation\uff0c\u7075\u6d3b\u6027\u5728\u4e8e\u63a5\u53e3\u5373\u53ef\u4ee5\u901a\u8fc7RPC\u7684\u65b9\u5f0f\u5728\u670d\u52a1\u5185\u90e8\u8bbf\u95ee\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\uff0c\u671f\u671b\u524d\u53f0js\u811a\u672c\u5f00\u53d1\u8005\u4e5f\u80fd\u591f\u5bf9\u7167\u751f\u6210\u7684\u5951\u7ea6\u5b8c\u6210\u5f00\u53d1\u3002</p> <pre><code>@RestSchema(schemaId = \"file\")\n@RequestMapping(path = \"/\")\npublic class FileEndpoint {\n  @Autowired\n  private FileService fileService;\n\n  /**\n   * upload and return file id\n   */\n  @PostMapping(path = \"/upload\", produces = MediaType.TEXT_PLAIN_VALUE)\n  public String uploadFile(@RequestPart(name = \"fileName\") MultipartFile file) {\n      return fileService.uploadFile(file);\n  }\n\n  /**\n   * delete file by id\n   */\n  @DeleteMapping(path = \"/delete\", produces = MediaType.APPLICATION_JSON_VALUE)\n  public boolean deleteFile(@RequestParam(name = \"id\") String id) {\n      return fileService.deleteFile(id);\n  }\n}\n\n</code></pre> <p>\u4e3a\u4e86\u5b9e\u73b0\u4e0d\u540c\u65b9\u5f0f\u7684\u6587\u4ef6\u5b58\u50a8\uff0c\u5c06\u5b9e\u73b0\u62bd\u8c61\u51fa\u6765FileService\u3002\u4e3a\u4e86\u7b80\u5355\uff0c\u5f53\u524d\u53ea\u63d0\u4f9b\u4e86\u672c\u5730\u6587\u4ef6\u5b9e\u73b0\u3002\u8fd9\u4e2a\u5b9e\u73b0\u9650\u5236\u4e86\u8be5\u670d\u52a1\u65e0\u6cd5\u8fdb\u884c\u591a\u5b9e\u4f8b\u90e8\u7f72\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5bf9\u8c61\u5b58\u50a8\u670d\u52a1\u5668\u3001\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7b49\u6ee1\u8db3\u5b58\u50a8\u8981\u6c42\u3002</p> <ul> <li>\u8bbe\u7f6e\u4e34\u65f6\u76ee\u5f55</li> </ul> <p>\u9700\u8981\u589e\u52a0 <code>servicecomb.uploads.directory</code> \u914d\u7f6e\u9879\uff0c\u6307\u5b9a\u4e34\u65f6\u76ee\u5f55\u7684\u8def\u5f84\u3002\u9700\u8981\u4fdd\u8bc1\u76ee\u5f55\u6709\u5199\u6743\u9650\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5982\u679c\u6ca1\u8bbe\u7f6e\u4e34\u65f6\u76ee\u5f55\uff0c\u4e0d\u5141\u8bb8\u542f\u7528\u4e0a\u4f20\u529f\u80fd\u3002\u5982\u679c\u4f7f\u7528\u7f51\u5173\uff0c\u7f51\u5173\u4e5f\u9700\u8981\u589e\u52a0\u8fd9\u4e2a\u914d\u7f6e\u9879\u3002</p> <ul> <li>\u5f00\u53d1\u6d4b\u8bd5HTML\uff0c\u8bbf\u95ee\u4e0a\u4f20\u670d\u52a1</li> </ul> <p>\u4e3a\u4e86\u6d4b\u8bd5\u5f00\u53d1\u7684\u63a5\u53e3\uff0c\u53ef\u4ee5\u5199\u4e00\u4e2aHTML\u7a0b\u5e8f\u3002\u6ce8\u610fname\u53c2\u6570\u9700\u8981\u548c\u63a5\u53e3\u5b9a\u4e49\u7684\u540d\u79f0\u4e00\u6837\u3002</p> <pre><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;title&gt;Upload Example&lt;/title&gt;\n&lt;/head&gt;\n&lt;body&gt;\n    &lt;h2&gt;Upload Example&lt;/h2&gt;\n    &lt;hr/&gt;\n    &lt;form method=\"POST\" enctype=\"multipart/form-data\"\n        action=\"http://localhost:9091/upload\"&gt;\n        &lt;p&gt;\n            File Name: &lt;input type=\"file\" name=\"fileName\" /&gt;\n        &lt;/p&gt;\n        &lt;p&gt;\n            &lt;input type=\"submit\" value=\"Upload\" /&gt;\n        &lt;/p&gt;\n    &lt;/form&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n</code></pre> <p>\u53ef\u4ee5\u4f7f\u7528Postman\u7b49\u5de5\u5177\u6d4b\u8bd5\u5220\u9664\u63a5\u53e3\uff1a</p> <pre><code>DELETE http://localhost:9091/delete?id=ba6bd8a2-d31a-42cd-a1be-9fb3d6ab4c82\n</code></pre> <p>\u8fd8\u53ef\u4ee5\u5f00\u53d1\u4e00\u4e2a\u5ba2\u6237\u7aef\u6d4b\u8bd5\u8fd9\u4e9b\u63a5\u53e3\uff0c\u5bf9\u4e8e\u81ea\u52a8\u5316\u6d4b\u8bd5\u7528\u4f8b\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u8bf4\u660e\u3002</p>"},{"location":"featured-topics/application-porter/gateway-service.html","title":"\u5f00\u53d1\u7f51\u5173","text":"<p>\u8fd9\u4e2a\u7ae0\u8282\u4e2d\uff0c\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u7f51\u5173\u8f6c\u53d1\u8bf7\u6c42\u3002Java Chassis \u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u7684\u7f51\u5173\u670d\u52a1\uff0c\u5f00\u53d1\u8005\u80fd\u591f\u975e\u5e38\u7b80\u5355\u7684\u5b9e\u73b0\u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u8f6c\u53d1\uff0c\u7f51\u5173\u62e5\u6709\u5ba2\u6237\u7aef\u4e00\u6837\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b\u3002</p> <p>\u7f51\u5173\u670d\u52a1\u7531\u4e00\u7cfb\u5217\u7684VertxHttpDispatcher\u7ec4\u6210\uff0c\u5f00\u53d1\u8005\u901a\u8fc7\u7ee7\u627fAbstractEdgeDispatcher\uff0c\u6765\u5b9e\u73b0\u81ea\u5df1\u7684\u8f6c\u53d1\u673a\u5236\u3002</p> <p>\u4e3a\u4e86\u5b9e\u73b0gateway-service\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230file-service\uff0c\u5b9a\u4e49\u4e86\u5982\u4e0b\u89c4\u5219\uff1a</p> <ul> <li> <p>\u76f4\u63a5\u8bf7\u6c42file-service: DELETE http://localhost:9091/delete</p> </li> <li> <p>\u901a\u8fc7\u7f51\u5173\uff1aDELETE http://localhost:9090/api/file-service/delete</p> </li> </ul> <p>\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\u7684\u4ee3\u7801\u5982\u4e0b\uff0c\u5728\u8bf7\u6c42\u5904\u7406\u7684\u65f6\u5019\uff0c\u4f7f\u7528EdgeInvocation\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8bf7\u6c42\u8f6c\u53d1\uff0c\u5e76\u5f00\u542f\u5404\u79cd\u6cbb\u7406\u529f\u80fd\u3002\u4e0b\u9762\u4ee3\u7801\u7684\u6838\u5fc3\u5185\u5bb9\u662f\u5b9a\u4e49\u8f6c\u53d1\u89c4\u5219regex\u3002</p> <pre><code>public class ApiDispatcher extends AbstractEdgeDispatcher {\n  public static final String MICROSERVICE_NAME = \"param0\";\n\n  @Override\n  public int getOrder() {\n    return 10002;\n  }\n\n  @Override\n  public void init(Router router) {\n    String regex = \"/api/([^\\\\/]+)/(.*)\";\n    router.routeWithRegex(regex).handler(createBodyHandler());\n    router.routeWithRegex(regex).failureHandler(this::onFailure).handler(this::onRequest);\n  }\n\n  protected void onRequest(RoutingContext context) {\n    String microserviceName = extractMicroserviceName(context);\n    String path = Utils.findActualPath(context.request().path(), 2);\n\n    requestByFilter(context, microserviceName, path);\n  }\n\n  @Nullable\n  private String extractMicroserviceName(RoutingContext context) {\n    return context.pathParam(MICROSERVICE_NAME);\n  }\n\n  protected void requestByFilter(RoutingContext context, String microserviceName, String path) {\n    HttpServletRequestEx requestEx = new VertxServerRequestToHttpServletRequest(context);\n    HttpServletResponseEx responseEx = new VertxServerResponseToHttpServletResponse(context.response());\n    InvocationCreator creator = new EdgeInvocationCreator(context, requestEx, responseEx,\n        microserviceName, path) {\n      @Override\n      protected Invocation createInstance() {\n        Invocation invocation = super.createInstance();\n        // get session id from header and cookie for debug reasons\n        String sessionId = context.request().getHeader(\"session-id\");\n        if (sessionId != null) {\n          invocation.addContext(\"session-id\", sessionId);\n        } else {\n          Cookie sessionCookie = context.request().getCookie(\"session-id\");\n          if (sessionCookie != null) {\n            invocation.addContext(\"session-id\", sessionCookie.getValue());\n          }\n        }\n        return invocation;\n      }\n    };\n    new RestProducerInvocationFlow(creator, requestEx, responseEx)\n        .run();\n  }\n}\n</code></pre> <p>\u4e3a\u4e86\u5b9e\u73b0gateway-service\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230porter-website\uff0c\u5b9a\u4e49\u4e86\u5982\u4e0b\u89c4\u5219\uff1a</p> <ul> <li> <p>\u76f4\u63a5\u8bf7\u6c42porter-website: GET http://localhost:9093/index.html</p> </li> <li> <p>\u901a\u8fc7\u7f51\u5173\uff1aGET http://localhost:9090/ui/porter-website/index.html</p> </li> </ul> <p>\u5b8c\u6210VertxHttpDispatcher\u5f00\u53d1\u540e\uff0c\u9700\u8981\u901a\u8fc7SPI\u7684\u65b9\u5f0f\u52a0\u8f7d\u5230\u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u589e\u52a0META-INF/services/org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5c06\u589e\u52a0\u7684\u4e24\u4e2a\u5b9e\u73b0\u5199\u5165\u8be5\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002</p> <p>\u7f51\u5173\u670d\u52a1\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u6240\u6709\u7684\u7528\u6237\u8bf7\u6c42\u90fd\u53ef\u4ee5\u901a\u8fc7\u7f51\u5173\u6765\u53d1\u9001\u3002\u5f00\u53d1\u8005\u901a\u8fc7\u901a\u8fc7\u8bbe\u7f6e\u9632\u706b\u5899\u7b49\u673a\u5236\uff0c\u9650\u5236\u7528\u6237\u76f4\u63a5\u8bbf\u95ee\u5185\u90e8\u670d\u52a1\uff0c\u4fdd\u8bc1\u5185\u90e8\u670d\u52a1\u7684\u5b89\u5168\u3002</p>"},{"location":"featured-topics/application-porter/https.html","title":"\u7f51\u5173HTTPS\u5b89\u5168\u914d\u7f6e","text":"<p>HTTP\u534f\u8bae\u5df2\u9010\u6e10\u88ab\u6807\u8bb0\u4e3a\u4e0d\u5b89\u5168\uff0c\u914d\u7f6eHTTPS\u53ef\u4ee5\u9632\u6b62\u7528\u6237\u6570\u636e\u88ab\u7a83\u53d6\u548c\u7be1\u6539\uff0c\u63d0\u5347\u4e86\u5b89\u5168\u6027\u3002\u8003\u8651\u5230\u6027\u80fd\u7684\u5f71\u54cd\uff0c\u6211\u4eec\u53ea\u5728\u7f51\u5173\u4f7f\u7528HTTPS\u63a5\u5165\uff0c\u5185\u90e8\u670d\u52a1\u4e4b\u95f4\u4ecd\u7136\u4f7f\u7528HTTP\u3002</p> <p>\u4f7f\u7528HTTPS\u4e4b\u524d\uff0c\u9700\u8981\u51c6\u5907\u8bc1\u4e66\u3002\u901a\u5e38\u662f\u5411\u6743\u5a01\u673a\u6784\u7533\u8bf7\uff0c\u8fd9\u6837\u7684\u8bc1\u4e66\u624d\u4f1a\u88ab\u6d4f\u89c8\u5668\u7b49\u8bbe\u5907\u6807\u8bb0\u4e3a\u53ef\u4fe1\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u901a\u8fc7\u5de5\u5177\u5df2\u7ecf\u751f\u6210\u597d\u7684\u8bc1\u4e66\u3002\u5e76\u4e14\u5c06\u81ea\u5df1\u7684\u8bc1\u4e66\u901a\u8fc7PKCS12\u683c\u5f0f\u5b58\u50a8\u5728server.p12\u6587\u4ef6\u4e2d\uff0c\u5c06CA\u7684\u8bc1\u4e66\u4f7f\u7528JKS\u683c\u5f0f\u5b58\u50a8\u5728trust.jks\u4e2d\u3002</p> <p>\u7f51\u5173\u542f\u7528HTTP\u53ea\u9700\u8981\u5728\u76d1\u542c\u7684\u7aef\u53e3\u4e2d\u589e\u52a0sslEnabled\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:9090?sslEnabled=true\n</code></pre> <p>\u7136\u540e\u589e\u52a0ssl\u76f8\u5173\u7684\u914d\u7f6e\u3002\u4e0b\u9762\u7684\u914d\u7f6e\u5305\u542b\u4e86TLS\u7684\u534f\u8bae\u3001\u662f\u5426\u8ba4\u8bc1\u5bf9\u7aef\u4ee5\u53ca\u8bc1\u4e66\u548c\u5bc6\u7801\u4fe1\u606f\u3002\u5176\u4e2d<code>EdgeSSLCustom</code>\u7528\u4e8e\u8bc1\u4e66\u8def\u5f84\u548c\u8bc1\u4e66\u5bc6\u7801\u7684\u8f6c\u6362\uff0c\u4e0d\u5b9e\u73b0\u7684\u65f6\u5019\uff0c\u9ed8\u8ba4\u4ece\u5f53\u524d\u76ee\u5f55\u8bfb\u53d6\u8bc1\u4e66\u6587\u4ef6\uff0c\u8bc1\u4e66\u7684\u5bc6\u7801\u660e\u6587\u5b58\u50a8\u3002\u5f53\u4e1a\u52a1\u9700\u8981\u505a\u4e00\u4e9b\u9ad8\u7ea7\u5b89\u5168\u7279\u6027\uff0c\u6bd4\u5982\u5bc6\u7801\u4fdd\u62a4\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u8fd9\u4e2a\u7c7b\u5b9e\u73b0\u3002</p> <pre><code>ssl.protocols: TLSv1.2\nssl.authPeer: false\nssl.checkCN.host: false\nssl.trustStore: trust.jks\nssl.trustStoreType: JKS\nssl.trustStoreValue: Changeme_123\nssl.keyStore: server.p12\nssl.keyStoreType: PKCS12\nssl.keyStoreValue: Changeme_123\nssl.crl: revoke.crl\nssl.sslCustomClass: org.apache.servicecomb.samples.porter.gateway.EdgeSSLCustom\n</code></pre> <p>\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u8bbf\u95ee\u754c\u9762\u5c31\u53ef\u4ee5\u901a\u8fc7https\u8fdb\u884c\u4e86</p> <pre><code>https://localhost:9090/ui/porter-website/index.html\n</code></pre>"},{"location":"featured-topics/application-porter/porter-website.html","title":"\u5f00\u53d1\u754c\u9762","text":"<p>\u5728\u6280\u672f\u9009\u62e9\u4e0a\uff0c\u754c\u9762\u5b8c\u5168\u7531html+js+css\u7b49\u9759\u6001\u7f51\u9875\u6280\u672f\u6784\u6210\uff0c\u4e0d\u91c7\u7528\u52a8\u6001\u9875\u9762\u6280\u672f\u3002\u91c7\u7528\u9759\u6001\u9875\u9762\u6280\u672f\u6784\u5efa\u754c\u9762\uff0c\u4f7f\u5f97\u6574\u4e2a\u5fae\u670d\u52a1\u7cfb\u7edf\u66f4\u52a0\u5177\u5907\u5f39\u6027\uff0c\u80fd\u591f\u975e\u5e38\u5bb9\u6613\u7684\u8fdb\u884c\u6269\u5bb9\uff0c\u76f8\u5173\u5f00\u53d1\u6210\u679c\u4e5f\u80fd\u591f\u66f4\u597d\u7684\u88ab\u5176\u4ed6\u5e94\u7528\u7ee7\u627f\u3002</p> <p>\u91c7\u7528\u9759\u6001\u9875\u9762\u6280\u672f\uff0c\u4e5f\u4f7f\u5f97\u754c\u9762\u670d\u52a1\u90e8\u7f72\u66f4\u52a0\u7075\u6d3b\u591a\u6837\uff1a</p> <ul> <li>\u5c06\u9759\u6001\u9875\u9762\u90e8\u7f72\u5230nginx\uff0cnginx\u5c06REST\u8bf7\u6c42\u8f6c\u53d1\u5230gateway-service\u3002</li> <li>\u5c06\u9759\u6001\u9875\u9762\u76f4\u63a5\u90e8\u7f72\u5230gateway-service\u3002</li> <li>\u9759\u6001\u9875\u9762\u901a\u8fc7Tomcat\u3001Spring Boot\u7b49Web\u670d\u52a1\u5668\u90e8\u7f72\uff0c\u5e76\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0cgateway-service\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u5bf9\u5e94\u7684\u5e94\u7528\u670d\u52a1\u5668\u4e0a\u3002</li> <li>\u9759\u6001\u9875\u9762\u7531\u7b2c\u4e09\u65b9\u5f00\u53d1\uff0c\u7b2c\u4e09\u65b9\u76f4\u63a5\u901a\u8fc7gateway-service\u8bbf\u95eeREST\u63a5\u53e3\u3002\u7531\u7b2c\u4e09\u65b9\u9009\u62e9\u754c\u9762\u7684\u5f00\u53d1\u6280\u672f\u3002</li> </ul> <p>\u8fd9\u51e0\u79cd\u65b9\u5f0f\u90fd\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002</p>"},{"location":"featured-topics/application-porter/porter-website.html#gateway-service","title":"\u5c06\u9759\u6001\u9875\u9762\u76f4\u63a5\u90e8\u7f72\u5230gateway-service","text":"<p>\u5728 porter \u9879\u76ee\u4e2d\uff0c\u91c7\u7528\u4e86\u5c06\u9759\u6001\u9875\u9762\u76f4\u63a5\u90e8\u7f72\u5230gateway-service\u7684\u65b9\u5f0f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u7b80\u6d01\u9ad8\u6548\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u6838\u5fc3\u4ee3\u7801\u662fStaticWebpageDispatcher\u3002\u5b83\u91c7\u7528vert.x\u63d0\u4f9b\u7684\u9759\u6001\u9875\u9762\u529f\u80fd\uff0c\u76f4\u63a5\u6302\u8f7d\u4e86\u9759\u6001\u9875\u9762\u670d\u52a1\u3002</p> <pre><code>public class StaticWebpageDispatcher implements VertxHttpDispatcher {\n  private static final Logger LOGGER = LoggerFactory.getLogger(StaticWebpageDispatcher.class);\n\n  private static final String WEB_ROOT = LegacyPropertyFactory\n      .getStringProperty(\"gateway.webroot\", \"/var/static\");\n\n  @Override\n  public int getOrder() {\n    return Integer.MAX_VALUE;\n  }\n\n  @Override\n  public void init(Router router) {\n    String regex = \"/ui/(.*)\";\n    StaticHandler webpageHandler = StaticHandler.create(WEB_ROOT);\n    LOGGER.info(\"server static web page for WEB_ROOT={}\", WEB_ROOT);\n    router.routeWithRegex(regex).failureHandler((context) -&gt; {\n      LOGGER.error(\"\", context.failure());\n    }).handler(webpageHandler);\n  }\n}\n</code></pre>"},{"location":"featured-topics/application-porter/user-service.html","title":"\u4f7f\u7528MyBatis\u8bbf\u95ee\u6570\u636e\u5e93","text":"<p>\u8bbf\u95ee\u6570\u636e\u5e93\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u63d0\u4f9b\u7684\u7ec4\u4ef6\u3002\u8fd9\u91cc\u9009\u62e9\u4e86MyBatis\u8bf4\u660e\u5982\u4f55\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u76f4\u63a5\u53c2\u8003\uff1a</p> <p>http://www.mybatis.org/spring/zh/index.html</p> <p>\u8fd9\u91cc\u7ed9\u51fa\u4e00\u4e2a\u5feb\u901f\u96c6\u6210\u53c2\u8003\u3002\u5728\u672c\u7ae0\u4e2d\u6d89\u53ca\u5230\u5efa\u8868\u7b49\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u6570\u636e\u5e93\u9009\u7528MySQL\u3002</p>"},{"location":"featured-topics/application-porter/user-service.html#_1","title":"\u8bbe\u8ba1\u8868","text":"<p>\u672c\u5e94\u7528\u63d0\u4f9b\u4e86\u975e\u5e38\u7b80\u5355\u7684\u7528\u6237\u7ba1\u7406\u548c\u57fa\u4e8e\u89d2\u8272\u7684\u9274\u6743\u673a\u5236\u3002\u56e0\u6b64\u6211\u4eec\u8bbe\u8ba1\u4e86\u975e\u5e38\u7b80\u5355\u7684\u7528\u6237\u8868\uff0c\u8868\u683c\u5305\u542b\u4e86\u7528\u6237\u540d\u79f0\u53ca\u7528\u6237\u6240\u5c5e\u7684\u89d2\u8272\u3002\u4e3a\u4e86\u6d4b\u8bd5\u7684\u76ee\u7684\uff0c\u8fd8\u63d2\u5165\u4e86\u4e24\u4e2a\u7528\u6237\u6570\u636e\uff0c\u5176\u4e2d\u5bc6\u7801\u91c7\u7528SHA256\u8fdb\u884c\u5355\u5411\u52a0\u5bc6\u4fdd\u5b58\u3002</p> <pre><code>CREATE DATABASE IF NOT EXISTS porter_user_db;\n\nUSE porter_user_db;\n\nDROP TABLE IF EXISTS T_USER;\n\nCREATE TABLE `T_USER` (\n  `ID`  INTEGER(20) NOT NULL COMMENT '\u7528\u6237ID',\n  `USER_NAME`  VARCHAR(64) NOT NULL COMMENT '\u7528\u6237\u540d\u79f0',\n  `PASSWORD`  VARCHAR(64) NOT NULL COMMENT '\u7528\u6237\u5bc6\u7801',\n  `ROLE_NAME`  VARCHAR(64) NOT NULL COMMENT '\u89d2\u8272\u540d\u79f0',\n  PRIMARY KEY (`ID`)\n);\n\ninsert into T_USER(ID, USER_NAME, PASSWORD, ROLE_NAME) values(1, \"admin\", \"n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=\", \"admin\");\ninsert into T_USER(ID, USER_NAME, PASSWORD, ROLE_NAME) values(2, \"guest\", \"n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=\", \"guest\");\n</code></pre>"},{"location":"featured-topics/application-porter/user-service.html#mybatis_1","title":"\u4f7f\u7528MyBatis","text":"<ul> <li>\u5f15\u7528MyBatis\u7684\u76f8\u5173\u4f9d\u8d56</li> </ul> <p>\u4f9d\u8d56\u5305\u542b\u4e86MyBatis\u548cSpring\u3001DBCP2\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u7ba1\u7406\u76f8\u5173\u7ec4\u4ef6\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u90fd\u662f\u4f7f\u7528Spring\u548cMyBatis\u5fc5\u987b\u7684\u3002</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;\n  &lt;artifactId&gt;mybatis-spring-boot-starter&lt;/artifactId&gt;\n  &lt;exclusions&gt;\n    &lt;exclusion&gt;\n      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;\n      &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;\n    &lt;/exclusion&gt;\n  &lt;/exclusions&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;mysql&lt;/groupId&gt;\n  &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;\n  &lt;artifactId&gt;commons-dbcp2&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;\n  &lt;scope&gt;compile&lt;/scope&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6e\u6570\u636e\u6e90\u548cSqlSessionFactory</li> </ul> <p>\u672c\u4f8b\u5b50\u4f7f\u7528Spring Data Source\uff0c \u53ea\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u4e0a\u914d\u7f6e\u4fe1\u606f\uff1a</p> <pre><code>spring:\n  datasource:\n    url: jdbc:mysql://localhost/porter_user_db\n    username: root\n    password: root\n    driver-class-name: com.mysql.jdbc.Driver\n</code></pre> <ul> <li>\u4e66\u5199Mapper\u6587\u4ef6</li> </ul> <p>\u6d89\u53ca\u5230JAVA\u7684Mapper\u5b9a\u4e49UserMapper\u3002</p> <pre><code>@Mapper\npublic interface UserMapper {\n  @Insert(\"\"\"\n      insert into T_USER (ID, USER_NAME, PASSWORD, ROLE_NAME)\n        values(#{id,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR},\n               #{password,jdbcType=VARCHAR}, #{roleName,jdbcType=VARCHAR})\"\"\")\n  void createUser(UserInfo userInfo);\n\n  @Select(\"\"\"\n      select ID, USER_NAME, PASSWORD, ROLE_NAME\n        from T_USER where USER_NAME = #{userName,jdbcType=VARCHAR}\"\"\")\n  @Results({\n      @Result(property = \"id\", column = \"ID\"),\n      @Result(property = \"userName\", column = \"USER_NAME\"),\n      @Result(property = \"password\", column = \"PASSWORD\"),\n      @Result(property = \"roleName\", column = \"ROLE_NAME\")\n  })\n  UserInfo getUserInfo(String userName);\n}\n\n</code></pre>"},{"location":"featured-topics/application-porter/user-service.html#_2","title":"\u8bbe\u8ba1\u7528\u6237\u670d\u52a1","text":"<p>\u7ecf\u8fc7\u4e0a\u9762\u7684\u914d\u7f6e\uff0c\u6570\u636e\u5e93\u8bbf\u95ee\u76f8\u5173\u5f00\u53d1\u5df2\u7ecf\u5b8c\u6210\u4e86\u3002 \u7ed3\u5408User Story\uff0c\u53ef\u4ee5\u5148\u8bbe\u8ba1\u4e00\u4e2alogin\u7684\u670d\u52a1\u63a5\u53e3\u3002 \u8fd9\u4e2a\u670d\u52a1\u5728UserServiceEndpoint\u91cc\u9762\u8fdb\u884c\u5b9a\u4e49\u3002</p> <pre><code>@PostMapping(path = \"/login\", produces = MediaType.APPLICATION_JSON_VALUE)\npublic SessionInfo login(@RequestParam(name = \"userName\") String userName, \n    @RequestParam(name = \"password\") String password)\n</code></pre> <p>\u63a5\u53e3\u4f1a\u8fd4\u56deSessionInfo\uff0c\u8fd9\u4e9b\u5fc5\u8981\u7684\u4fe1\u606f\uff0c\u4f1a\u5728\u540e\u7eed\u7684\u9274\u6743\u3001\u8ba4\u8bc1\u64cd\u4f5c\u4e2d\u8d77\u5230\u5f88\u5927\u7684\u65b9\u4fbf\u3002</p> <p>\u7ecf\u8fc7\u4ee5\u4e0a\u7684\u5f00\u53d1\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8\u7528\u6237\u670d\u52a1\uff0c\u914d\u7f6e\u6570\u636e\u5e93\u548c\u63d2\u5165\u76f8\u5173\u6570\u636e\uff0c\u4ece\u754c\u9762\u8bbf\u95ee\u8fd9\u4e2a\u63a5\u53e3\u3002</p> <pre><code>#### \u8bbf\u95eelogin\u63a5\u53e3\u7684HTTP\u8bf7\u6c42\u548c\u54cd\u5e94\n\n#Request\nPOST http://localhost:9090/api/user-service/v1/user/login\n\nContent-Type: application/x-www-form-urlencoded\n\nuserName=admin&amp;password=test\n\n#Response\n{\n    \"id\": 0,\n    \"sessiondId\": \"1be646c0-50cb-4c0a-968d-2a512775f5e8\",\n    \"userName\": \"guest\",\n    \"roleName\": \"guest\",\n    \"creationTime\": null,\n    \"activeTime\": null\n}\n</code></pre>"},{"location":"featured-topics/application-porter/user-story.html","title":"User Story","text":"<p>\u5f00\u59cb\u524d\uff0c\u7ed9\u5e94\u7528\u53d6\u4e00\u4e2a\u540d\u5b57 <code>porter</code>\u3002 </p> <p><code>porter</code> \u5e94\u7528\u4e3b\u8981\u5b9e\u73b0\u5982\u4e0b\u51e0\u4e2a\u7528\u6237\u6545\u4e8b\uff1a</p> <ul> <li>\u8f93\u5165\u7528\u6237\u540d\u3001\u5bc6\u7801\u767b\u5f55\u7cfb\u7edf\u3002</li> <li>\u4e0a\u4f20\u6587\u4ef6\u5230\u7cfb\u7edf\u4e2d\u3002\u7cfb\u7edf\u4f1a\u68c0\u67e5\u7528\u6237\u7684\u6743\u9650\uff0c\u5982\u679c\u7528\u6237\u88ab\u6388\u6743\uff0c\u6587\u4ef6\u4e0a\u4f20\u6210\u529f\u5e76\u8fd4\u56de\u6587\u4ef6\u6807\u8bc6\uff1b\u5982\u679c\u7528\u6237\u672a\u88ab\u6388\u6743\uff0c\u5219\u8fd4\u56de\u9519\u8bef\u3002</li> <li>\u5220\u9664\u6587\u4ef6\u3002\u8f93\u5165\u6587\u4ef6\u6807\u8bc6\u5220\u9664\u6587\u4ef6\u3002\u5220\u9664\u6587\u4ef6\u4e5f\u4f1a\u68c0\u67e5\u7528\u6237\u662f\u5426\u88ab\u6388\u6743\u3002</li> </ul>"},{"location":"featured-topics/features/date-time.html","title":"\u7279\u6027\u4ecb\u7ecd\uff1a date\u548cdate-time","text":"<p>OpenAPI \u9488\u5bf9\u65f6\u95f4\u5b9a\u4e49\u4e86\u4e24\u79cd\u7c7b\u578b date \u548c date-time\u3002</p>"},{"location":"featured-topics/features/date-time.html#date","title":"\u4f7f\u7528 date","text":"<p>\u53ef\u4ee5\u5728 query, path, body \u7b49\u53c2\u6570\u4e2d\u4f7f\u7528 date \u7c7b\u578b\u3002 date \u7c7b\u578b\u5bf9\u5e94\u7684 Java \u7c7b\u578b\u4e3a <code>java.time.LocalDate</code>\u3002 \u4f7f\u7528 Spring MVC\uff0c \u5206\u522b\u91c7\u7528\u5982\u4e0b\u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\uff1a</p> <pre><code>@GetMapping(path = \"/getLocalDate\")\npublic LocalDate getLocalDate(@RequestParam(\"date\") LocalDate date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getLocalDate/{date}\")\npublic LocalDate getLocalDatePath(@PathParam(\"date\") LocalDate date) {\nreturn date;\n}\n\n@PostMapping(path = \"/postLocalDate\")\npublic LocalDate postLocalDate(@RequestBody LocalDate date) {\nreturn date;\n}\n</code></pre> <p>\u5176\u4e2d <code>getLocalDatePath</code> \u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u7684 swagger \u63cf\u8ff0\u5982\u4e0b\uff1a</p> <pre><code>/getLocalDate/{date}:\nget:\n  operationId: \"getLocalDatePath\"\n  parameters:\n  - name: \"date\"\n    in: \"path\"\n    required: true\n    type: \"string\"\n    format: \"date\"\n  responses:\n    \"200\":\n      description: \"response of 200\"\n      schema:\n        type: \"string\"\n        format: \"date\"\n</code></pre> <p>\u53ef\u4ee5\u770b\u51fa\uff0cdate \u5728\u7f51\u7edc\u4e0a\u662f\u901a\u8fc7 String \u8fdb\u884c\u7f16\u7801\u8fdb\u884c\u4f20\u8f93\u7684\uff0c \u683c\u5f0f\u662f\u6807\u51c6\u7684\u683c\u5f0f\uff0c \u6bd4\u5982 <code>2020-02-20</code>\u3002</p>"},{"location":"featured-topics/features/date-time.html#date-time","title":"\u4f7f\u7528 date-time","text":"<p>\u53ef\u4ee5\u5728 query, path, body \u7b49\u53c2\u6570\u4e2d\u4f7f\u7528 date-time \u7c7b\u578b\u3002 date \u7c7b\u578b\u5bf9\u5e94\u7684 Java \u7c7b\u578b\u4e3a <code>java.time.LocalDateTime</code>\uff0c \u6216\u8005 <code>java.util.Date</code> \u3002 \u4f7f\u7528 Spring MVC\uff0c \u5206\u522b\u91c7\u7528\u5982\u4e0b\u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\uff1a</p> <pre><code>@GetMapping(path = \"/getDate\")\npublic Date getDate(@RequestParam(\"date\") Date date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getDatePath/{date}\")\npublic Date getDatePath(@PathParam(\"date\") Date date) {\nreturn date;\n}\n\n@PostMapping(path = \"/postDate\")\npublic Date postDate(@RequestBody Date date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getLocalDateTime\")\npublic LocalDateTime getLocalDateTime(@RequestParam(\"date\") LocalDateTime date) {\nreturn date;\n}\n\n@GetMapping(path = \"/getLocalDateTime/{date}\")\npublic LocalDateTime getLocalDateTimePath(@PathParam(\"date\") LocalDateTime date) {\nreturn date;\n}\n\n@PostMapping(path = \"/postLocalDateTime\")\npublic LocalDateTime postLocalDateTime(@RequestBody LocalDateTime date) {\nreturn date;\n}\n</code></pre> <p>\u5176\u4e2d <code>getLocalDateTimePath</code> \u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u7684 swagger \u63cf\u8ff0\u5982\u4e0b\uff1a</p> <pre><code>/getLocalDateTime/{date}:\nget:\n  operationId: \"getLocalDateTimePath\"\n  parameters:\n  - name: \"date\"\n    in: \"path\"\n    required: true\n    type: \"string\"\n    format: \"date-time\"\n  responses:\n    \"200\":\n      description: \"response of 200\"\n      schema:\n        type: \"string\"\n        format: \"date-time\"\n</code></pre> <p>\u53ef\u4ee5\u770b\u51fa\uff0cdate-time \u5728\u7f51\u7edc\u4e0a\u662f\u901a\u8fc7 String \u8fdb\u884c\u7f16\u7801\u8fdb\u884c\u4f20\u8f93\u7684\uff0c \u683c\u5f0f\u662f\u6807\u51c6\u7684\u683c\u5f0f\uff0c \u6bd4\u5982 <code>2017-07-21T17:32:28Z</code>\u3002 \u7531\u4e8e date-time \u7684\u6807\u51c6\u683c\u5f0f\u5305\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u5728\u4f5c\u4e3a query \u6216\u8005 path \u53c2\u6570\u7684\u65f6\u5019\uff0c \u9700\u8981\u505a\u597d URL \u7f16\u89e3\u7801\uff0c \u7f51\u7edc\u4e0a\u4f20\u9012\u7684\u5b9e\u9645\u5185\u5bb9\u4e3a <code>2017-07-21T17%3A32%3A28Z</code>\uff0c \u6bd4\u5982\uff1a <code>http://localhost:8082/dateTime/getLocalDateTime?date=2017-07-21T17%3A32%3A28Z</code>, \u4f5c\u4e3a body \u53c2\u6570\uff0c \u5185\u5bb9\u4e0d\u4f1a\u7f16\u89e3\u7801\uff0c \u662f\u5f15\u53f7\u5305\u542b\u8d77\u6765\u7684 String \u7c7b\u578b\uff0c \u6bd4\u5982 <code>\"2017-07-21T17:32:28Z\"</code>\u3002</p>"},{"location":"featured-topics/features/http-dispatcher.html","title":"\u7279\u6027\u4ecb\u7ecd\uff1a Edge Service \u901a\u7528\u7684 HTTP \u8f6c\u53d1\u5668 CommonHttpEdgeDispatcher","text":"<p>Edge Service \u63d0\u4f9b\u4e86\u975e\u5e38\u4e30\u5bcc\u7684 HTTP \u8f6c\u53d1\u5668\uff0c\u5e76\u652f\u6301\u81ea\u5b9a\u4e49\u6269\u5c55\u3002\u5728\u5b9e\u9645\u4e1a\u52a1\u4e2d\uff0c\u53ef\u80fd\u5b58\u5728\u4e0d\u540c\u5f00\u53d1\u6846\u67b6\u5e76\u5b58\u7684\u60c5\u51b5\uff0c\u4e5f\u53ef\u80fd\u5305\u542b\u9057\u7559\u5e94\u7528 \u7cfb\u7edf\uff0c\u6216\u8005\u9700\u8981\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u5176\u4ed6\u7b2c\u4e09\u65b9\u7cfb\u7edf\u7684\u573a\u666f\u3002 Java Chassis\u63d0\u4f9b\u4e86 CommonHttpEdgeDispatcher \u652f\u6301\u8fd9\u4e9b\u573a\u666f\u3002 </p> <p>CommonHttpEdgeDispatcher \u8981\u6c42\u76ee\u6807\u5fae\u670d\u52a1\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u80fd\u591f\u88ab\u81ea\u52a8\u53d1\u73b0\u3002\u65b0\u7684\u8f6c\u53d1\u5668\u53ef\u4ee5\u7ba1\u7406\u5b9e\u4f8b\u72b6\u6001\uff0c\u63d0\u4f9b\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u914d\u7f6e\uff0c \u63d0\u4f9b\u5b9e\u4f8b\u9694\u79bb\u7b49\u57fa\u672c\u6cbb\u7406\u529f\u80fd\u3002 </p> <p>CommonHttpEdgeDispatcher \u80fd\u591f\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u76d1\u542c HTTP \u6216\u8005 HTTP 2 \u534f\u8bae\u7684 Provider\uff0c \u5bf9\u4e8e Provider \u7684\u5f00\u53d1\u6846\u67b6\u6ca1\u6709\u9650\u5236\uff0c\u4e5f\u4e0d \u8981\u6c42 Provider \u6ce8\u518c\u5951\u7ea6\u4fe1\u606f\u3002 </p>"},{"location":"featured-topics/features/http-dispatcher.html#commonhttpedgedispatcher","title":"\u4f7f\u7528 CommonHttpEdgeDispatcher","text":"<p>\u5728 Edge Service \u542f\u7528 CommonHttpEdgeDispatcher \u975e\u5e38\u7b80\u5355\uff0c \u53ea\u9700\u8981\u5728 <code>microservice.yaml</code> \u4e2d\u589e\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\u3002 </p> <pre><code>servicecomb:\n  http:\n    dispatcher:\n        http:\n          enabled: true\n          mappings:\n            businessV2:\n              prefixSegmentCount: 1\n              path: \"/http/business/v2/.*\"\n              microserviceName: business\n              versionRule: 2.0.0\n            businessV1:\n              prefixSegmentCount: 1\n              path: \"/http/business/v1/add.*\"\n              microserviceName: business\n              versionRule: 1.0.0-1.2.0\n            businessV1_1:\n              prefixSegmentCount: 1\n              path: \"/http/business/v1/dec.*\"\n              microserviceName: business\n              versionRule: 1.1.0\n</code></pre> <p>\u901a\u7528\u7684 HTTP \u8f6c\u53d1\u5668\u7684\u914d\u7f6e\u9879\u548c <code>URLMappedEdgeDispatcher</code> \u975e\u5e38\u7c7b\u4f3c\u3002 \u53ef\u4ee5\u914d\u7f6e\u4e00\u7cfb\u5217\u7684 mappings \u5b9a\u4e49 URL \u4e0e \u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u8f6c\u53d1\u5173\u7cfb\u3002 \u4e0a\u8ff0\u914d\u7f6e\u5b9a\u4e49\u4e86 3 \u4e2a mappings\uff0c \u7b2c 1 \u4e2a\u5c06 URL \u6ee1\u8db3 <code>/http/business/v2/.*</code> \u7684\u8bf7\u6c42 \u8f6c\u53d1\u5230 business \u670d\u52a1 2.0.0 \u7248\u672c\u5b9e\u4f8b\uff0c \u540e\u7aef\u670d\u52a1\u5b9e\u9645\u7684 URL \u4e3a <code>/business/v2/.*</code> \u3002 \u7b2c 2 \u4e2a\u6f14\u793a\u4e86\u7070\u5ea6\u8f6c\u53d1\uff0c \u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230 1.0.0 \u4ee5\u4e0a\uff08\u542b\uff09\uff0c 1.2.0 \u4ee5\u4e0b\uff08\u4e0d\u542b\uff09 \u7684\u7248\u672c\u3002 </p>"},{"location":"featured-topics/features/http-dispatcher.html#commonhttpedgedispatcher_1","title":"CommonHttpEdgeDispatcher \u7684\u6cbb\u7406","text":"<p>CommonHttpEdgeDispatcher \u96c6\u6210\u4e86 loadbalance \u6a21\u5757\u63d0\u4f9b\u7684\u6cbb\u7406\u80fd\u529b\uff0c \u5728 \u8d1f\u8f7d\u5747\u8861 \u91cc\u9762\u7684\u6cbb\u7406 \u80fd\u529b\u90fd\u53ef\u4ee5\u4f7f\u7528\uff0c\u9664\u4e86 <code>\u8bbe\u7f6e\u91cd\u8bd5\u7b56\u7565</code> \u3002 \u8fd9\u4e2a\u8f6c\u53d1\u5668\u901a\u5e38\u88ab\u7528\u4e8e\u8f6c\u53d1 UI \u8bf7\u6c42\u5230\u540e\u7aef\u7684\u9759\u6001\u9875\u9762\u670d\u52a1\uff0c\u4ee5\u53ca\u9057\u7559\u7684\u4f7f\u7528 spring boot \u5f00\u53d1\u7684\u5fae\u670d\u52a1\uff0c \u6216\u8005\u91c7\u7528 spring-cloud-huawei \u63a5\u5165\u670d\u52a1\u4e2d\u5fc3\u7684 spring cloud \u5fae\u670d\u52a1\u5e94\u7528\u3002 </p>"},{"location":"featured-topics/secrets/api-first.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u5951\u7ea6\u4f18\u5148\uff08API First\uff09\u5f00\u53d1","text":"<p>\u5951\u7ea6\u4f18\u5148\uff08API First\uff09\u5f00\u53d1\u662f\u6307\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5c06API\u8bbe\u8ba1\u4f5c\u4e3a\u7b2c\u4e00\u4f18\u5148\u7ea7\u7684\u4efb\u52a1\u3002\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u968f\u7740Web Services\u6982\u5ff5\u7684\u53d1\u5c55\u800c\u4e0d\u65ad\u5f97\u5230\u91cd\u89c6\uff0c\u7279\u522b\u662f\u5fae\u670d\u52a1\u67b6\u6784\u51fa\u73b0\u4ee5\u540e\uff0cAPI\u8bbe\u8ba1\u6210\u4e3a\u5f71\u54cd\u529f\u80fd\u5f00\u653e\u3001\u6027\u80fd\u4f18\u5316\u7b49\u95ee\u9898\u7684\u5173\u952e\u56e0\u7d20\u3002\u5e38\u89c1\u7684\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u6846\u67b6\u548c\u6a21\u5f0f\u6709\u5982\u4e0b\u51e0\u79cd\uff1a</p> <ul> <li>Web Services\u6280\u672f\u53ef\u4ee5\u7531\u8bbe\u8ba1\u4eba\u5458\u5148\u7f16\u5199WSDL\u63cf\u8ff0WEB\u670d\u52a1\u5185\u5bb9\uff0c\u7136\u540e\u7ed3\u5408\u5de5\u5177\u751f\u6210\u4ee3\u7801\u3002WSDL\u53ef\u4ee5\u8fdb\u884c\u5206\u53d1\uff0c\u4e0d\u540c\u7684\u8bed\u8a00\u90fd\u53ef\u4ee5\u7ed3\u5408WSDL\u751f\u6210\u5ba2\u6237\u7aef\u3002</li> <li>gRPC\u6280\u672f\u53ef\u4ee5\u7531\u8bbe\u8ba1\u4eba\u5458\u5148\u7f16\u5199IDL\u63cf\u8ff0RPC\u670d\u52a1\u5185\u5bb9\uff0c\u7136\u540e\u7ed3\u5408\u5de5\u5177\u751f\u6210\u4ee3\u7801\u3002gRPC\u4e3b\u8981\u89e3\u51b3\u670d\u52a1\u5185\u90e8\u4e4b\u95f4\u7684\u8c03\u7528\u3002</li> <li>Spring Boot\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u5229\u7528swagger\u5de5\u5177\uff0c\u5148\u7f16\u5199Open API\u63a5\u53e3\uff0c\u7136\u540e\u901a\u8fc7\u5de5\u5177\u751f\u6210RESTFul\u7684\u670d\u52a1\u7aef\u4ee3\u7801\u3002</li> </ul> <p>\u8fd9\u4e9b\u6280\u672f\u90fd\u8981\u6c42\u8bbe\u8ba1\u4eba\u5458\u638c\u63e1\u4e00\u79cd\u8bed\u8a00\u65e0\u5173\u7684\u63cf\u8ff0\u8bed\u8a00\uff08WSDL\u3001IDL\u3001Swagger\u7b49\uff09\uff0c\u5e76\u4e14\u901a\u8fc7\u5de5\u5177\u751f\u6210\u5177\u4f53\u8bed\u8a00\u7684\u4ee3\u7801\u3002\u5b83\u4eec\u652f\u6301\u7684\u5e94\u7528\u573a\u666f\u4e5f\u6709\u6240\u5dee\u5f02\uff0cWeb Service\u9002\u5408\u5bf9\u5916\u7684WEB\u670d\u52a1\uff0cgRPC\u9002\u5408\u5bf9\u5185\u7684RPC\u670d\u52a1\u3002Java Chassis\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u5177\u5907\u4e0b\u9762\u7684\u51e0\u4e2a\u6539\u8fdb\uff1a</p> <ul> <li>\u5141\u8bb8\u76f4\u63a5\u4f7f\u7528Java\u8bed\u8a00\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\uff0c\u4e0d\u9700\u8981\u8bbe\u8ba1\u8005\u638c\u63e1\u65b0\u7684\u63cf\u8ff0\u8bed\u8a00\u3002</li> <li>\u540c\u65f6\u5b9a\u4e49Web\u670d\u52a1\u63a5\u53e3\u548c\u5185\u90e8RPC\u63a5\u53e3\u3002</li> </ul> <p>\u548cSpring Boot\u4e00\u6837\uff0c Java Chassis\u7684\u8bed\u8a00\u65e0\u5173\u6027\u63cf\u8ff0\u8bed\u8a00\u4ecd\u7136\u662fOpen API\uff0c\u901a\u8fc7Open API\uff0c\u53ef\u4ee5\u6ee1\u8db3\u8de8\u8bed\u8a00\u548c\u670d\u52a1\u5206\u53d1\u7684\u8981\u6c42\u3002</p>"},{"location":"featured-topics/secrets/api-first.html#_1","title":"\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u7684\u8fc7\u7a0b","text":"<p>\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u53ef\u4ee5\u6db5\u76d6\u8bbe\u8ba1\u3001\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u90e8\u7f72\u3001\u8fd0\u7ef4\u7b49\u8f6f\u4ef6\u5f00\u53d1\u7684\u5168\u6d41\u7a0b\uff0c\u901a\u8fc7\u5951\u7ea6\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u540c\u73af\u8282\u7684\u5e76\u884c\u5de5\u4f5c\uff0c\u4ece\u800c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002 \u4e00\u4e2a\u7b80\u5355\u7684\u5951\u7ea6\u5f00\u53d1\u8fc7\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <p>\u4e0b\u9762\u901a\u8fc7\u4ee3\u7801\u7b80\u5355\u5c55\u793a\u901a\u8fc7Java\u8bed\u4e49\u5b9a\u4e49\u5951\u7ea6\uff0c\u5e76\u5b9e\u73b0\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u8005\u7684\u8fc7\u7a0b\u3002</p> <ul> <li>\u5b9a\u4e49\u670d\u52a1\u5951\u7ea6</li> </ul> <pre><code>@RequestMapping(path = \"/provider\")\npublic interface ProviderService {\n  @GetMapping(\"/sayHello\")\n  String sayHello(@RequestParam(\"name\") String name);\n}\n</code></pre> <ul> <li>\u5b9a\u4e49\u63d0\u4f9b\u8005</li> </ul> <pre><code>@RestSchema(schemaId = \"ProviderController\", schemaInterface = ProviderService.class)\npublic class ProviderController implements ProviderService {\n  @Override\n  public String sayHello(String name) {\n    return \"Hello \" + name;\n  }\n}\n</code></pre> <ul> <li>\u5b9a\u4e49\u6d88\u8d39\u8005</li> </ul> <pre><code>@Configuration\npublic class ProviderServiceConfiguration {\n  @Bean\n  public ProviderService providerService() {\n    return Invoker.createProxy(\"provider\", \"ProviderController\", ProviderService.class);\n  }\n}\n</code></pre> <p>\u4f7f\u7528RPC\u65b9\u5f0f\u8bbf\u95ee\u63d0\u4f9b\u8005\u3002</p> <pre><code>@RestSchema(schemaId = \"ConsumerController\", schemaInterface = ConsumerService.class)\npublic class ConsumerController implements ConsumerService {\n  private ProviderService providerService;\n\n  @Autowired\n  public void setProviderService(ProviderService providerService) {\n    this.providerService = providerService;\n  }\n\n  @Override\n  public String sayHello(String name) {\n    return providerService.sayHello(name);\n  }\n}\n</code></pre> <ul> <li>\u670d\u52a1\u5206\u53d1\u548cWeb\u670d\u52a1\u8bbf\u95ee</li> </ul> <p>\u63d0\u4f9b\u8005\u7684\u670d\u52a1\u5b9a\u4e49\u4f1a\u751f\u6210\u5982\u4e0bOpen API\u4fe1\u606f</p> <pre><code>openapi: 3.0.1\ninfo:\n  title: swagger definition for org.apache.servicecomb.samples.api.ProviderService\n  version: 1.0.0\nservers:\n- url: /provider\npaths:\n  /sayHello:\n    get:\n      operationId: sayHello\n      parameters:\n      - name: name\n        in: query\n        required: true\n        schema:\n          type: string\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                type: string\n            application/protobuf:\n              schema:\n                type: string\n            text/plain:\n              schema:\n                type: string\ncomponents: {}\n</code></pre> <p>\u8fd9\u4e2a\u4fe1\u606f\u53ef\u4ee5\u7528\u4e8eWEB\u670d\u52a1\u8bbf\u95ee\uff0c\u6bd4\u5982\u4e0a\u9762\u7684\u4fe1\u606f\u53ef\u4ee5\u4f7f\u7528</p> <pre><code>GET /providers/sayHello?name=World\n</code></pre> <p>\u7684HTTP\u8bf7\u6c42\u6765\u8bbf\u95ee\u3002 \u5bf9\u4e8e\u5176\u4ed6\u6846\u67b6\u6216\u8005\u8bed\u8a00\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528Open API\u751f\u6210\u5bf9\u5e94\u7684\u4ee3\u7801\u6765\u8bbf\u95ee\u3002 </p>"},{"location":"featured-topics/secrets/api-first.html#_2","title":"\u670d\u52a1\u6cbb\u7406","text":"<p>\u670d\u52a1\u6cbb\u7406\u88ab\u8bbe\u8ba1\u4e3a\u72ec\u7acb\u4e8e\u5f00\u53d1\u8fc7\u7a0b\uff0c\u7ed3\u5408Open API\u548c\u670d\u52a1\u6cbb\u7406\u89c4\u5219\u63cf\u8ff0\u8bed\u8a00\uff0c\u80fd\u591f\u5bf9API\u8fdb\u884c\u670d\u52a1\u6cbb\u7406\u914d\u7f6e\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    helloOperation: |\n      matches:\n        - apiPath:\n            prefix: \"/provider/sayHello\"\n  rateLimiting:\n    ## \u9650\u6d41\u5668\u6bcf10\u6beb\u79d2\u5141\u8bb8\u901a\u8fc7100\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n    ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    helloOperation: |\n      rate: 100\n      limitRefreshPeriod: 10\n      timeoutDuration: 1000\n</code></pre> <p>\u4e0a\u8ff0\u89c4\u5219\u5bf9API\u63a5\u53e3\u8fdb\u884c\u9650\u6d41\u63a7\u5236\u3002 </p>"},{"location":"featured-topics/secrets/api-first.html#_3","title":"\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u7684\u5176\u4ed6\u65b9\u9762","text":"<p>\u6d4b\u8bd5\u65b9\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7\u5951\u7ea6\u751f\u6210\u81ea\u52a8\u5316\u6d4b\u8bd5\u4ee3\u7801\uff0c\u4ee5\u8986\u76d6API\u7684\u6d4b\u8bd5\u3002 \u90e8\u7f72\u5b9e\u65bd\u65b9\u9762\uff0c\u53ef\u4ee5\u5c06Open API\u4fe1\u606f\u5bfc\u5165\u7f51\u5173\uff0c\u5b9e\u73b0API\u80fd\u529b\u5f00\u653e\u3001\u8ba4\u8bc1\u9274\u6743\u3001\u8ba1\u8d39\u7b49\u3002 \u6b64\u5916\uff0c\u5951\u7ea6\u8fd8\u53ef\u4ee5\u7528\u4e8e\u6587\u6863\u751f\u6210\u3001\u5e94\u7528\u76d1\u63a7\u7edf\u8ba1\u7b49\u5404\u4e2a\u65b9\u9762\u3002</p>"},{"location":"featured-topics/secrets/api-first.html#_4","title":"\u603b\u7ed3","text":"<p>Java Chassis\u57fa\u4e8eJAVA\u8bed\u8a00\u7684\u63a5\u53e3\u5b9a\u4e49\uff0c\u53ef\u4ee5\u540c\u65f6\u6ee1\u8db3Native\u8bed\u8a00\u548c\u5e73\u53f0\u65e0\u5173\u63cf\u8ff0\u8bed\u8a00\u4e24\u79cd\u60c5\u51b5\u7684SDK\u5206\u53d1\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u4f7f\u7528\u5de5\u5177\u751f\u6210\u989d\u5916\u7684\u8fd0\u884c\u4ee3\u7801\uff0c\u7ed9\u5916\u90e8\u670d\u52a1\u5f00\u53d1\u548c\u5185\u90e8\u670d\u52a1\u5f00\u53d1\u63d0\u4f9b\u4e86\u7edf\u4e00\u4e00\u81f4\u7684\u5f00\u53d1\u4f53\u9a8c\u3002 \u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u662f\u9762\u5411\u670d\u52a1\u5316/\u5fae\u670d\u52a1\u5316\u975e\u5e38\u9ad8\u6548\u7684\u8fc7\u7a0b\u65b9\u6cd5\uff0cJava Chassis\u7ed9\u652f\u6301\u5951\u7ea6\u4f18\u5148\u5f00\u53d1\u63d0\u4f9b\u4e86\u5f88\u597d\u7684\u5de5\u5177\u652f\u6301\u3002 </p>"},{"location":"featured-topics/secrets/applied-config.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u5e94\u7528\u89c6\u89d2\u7684\u914d\u7f6e\u7ba1\u7406","text":"<p>\u8c08\u8bba\u5fae\u670d\u52a1\u914d\u7f6e\u7ba1\u7406\u7684\u65f6\u5019\uff0c\u6700\u591a\u7684\u662f\u4ee5\u914d\u7f6e\u4e2d\u5fc3\u4e3a\u89c6\u89d2\uff0c\u8ba8\u8bba\u5176\u914d\u7f6e\u7ba1\u7406\u80fd\u529b\u3002 \u548c\u6ce8\u518c\u4e2d\u5fc3\u4e00\u6837\uff0c\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\u4f1a\u6709\u4e00\u4e9b\u5173\u952e\u7684\u8bbe\u8ba1\u6307\u6807\u3002 </p> <ul> <li>\u914d\u7f6e\u7684\u683c\u5f0f\u548c\u7c7b\u578b\u3002\u652f\u6301\u4e0d\u540c\u683c\u5f0f\u548c\u7c7b\u578b\u7684\u914d\u7f6e\u9879\uff0c\u6bd4\u5982YAML\u3001\u6587\u672c\u3001JSON\u3001XML\u7b49\u3002</li> <li>\u914d\u7f6e\u7684\u903b\u8f91\u5c42\u6b21\u3002\u6bd4\u5982 Kie \u63d0\u4f9b\u4e86 Label \u6765\u8868\u8fbe\u914d\u7f6e\u7684\u5c42\u6b21\uff0c\u53ef\u4ee5\u7b80\u5316\u4e3a\u5e94\u7528\u914d\u7f6e\u3001\u670d\u52a1\u914d\u7f6e\u548c\u81ea\u5b9a\u4e49\u914d\u7f6e\u7b49\uff1bNacos \u4f7f\u7528 Namespace\u3001Group\u7b49\u6982\u5ff5\u6765\u8868\u8fbe\u914d\u7f6e\u7684\u5c42\u6b21\u3002 </li> <li>\u53d8\u66f4\u901a\u77e5\u673a\u5236\u3002\u548c\u6ce8\u518c\u4e2d\u5fc3\u4e00\u6837\uff0c\u914d\u7f6e\u4e2d\u5fc3\u4e5f\u6709\u53d8\u66f4\u901a\u77e5\u673a\u5236\uff0c\u4e24\u8005\u7684\u673a\u5236\u76f8\u4f3c\u3002\u76f8\u8f83\u800c\u8a00\uff0c\u914d\u7f6e\u4e2d\u5fc3\u5bf9\u4e8e\u53d8\u66f4\u611f\u77e5\u5468\u671f\u7684\u7684\u8981\u6c42\u66f4\u4f4e\u3002</li> <li>\u914d\u7f6e\u5386\u53f2\u548c\u63a8\u9001\u8f68\u8ff9\u3002\u901a\u8fc7\u914d\u7f6e\u5386\u53f2\uff0c\u80fd\u591f\u4e86\u89e3\u914d\u7f6e\u9879\u7684\u6539\u52a8\u8bb0\u5f55\uff0c\u65b9\u4fbf\u8fdb\u884c\u5ba1\u8ba1\u548c\u56de\u9000\uff0c\u63a8\u9001\u8f68\u8ff9\u5219\u5e2e\u52a9\u4e86\u89e3\u914d\u7f6e\u9879\u88ab\u5e94\u7528\u5230\u4e86\u54ea\u4e9b\u5fae\u670d\u52a1\u3002 </li> </ul> <p>Java Chassis 3\u7684\u8bbe\u8ba1\u76ee\u6807\u4e4b\u4e00\uff0c\u5c31\u662f\u4ee5\u5e94\u7528\u7684\u89c6\u89d2\uff0c\u652f\u6301\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\uff0c\u5e76\u63d0\u4f9b\u7edf\u4e00\u4e00\u81f4\u7684\u4f7f\u7528\u65b9\u5f0f\u3002</p> <p>Java Chassis 3\u7b80\u5316\u4e86\u5fae\u670d\u52a1\u5b9a\u4e49\uff0c\u53ea\u5305\u542b\u5982\u4e0b\u6838\u5fc3\u6982\u5ff5\uff1a</p> <ul> <li>\u73af\u5883\u540d\u79f0\uff1a\u7528\u4e8e\u8868\u793a\u90e8\u7f72\u73af\u5883\uff0c\u4e0d\u540c\u73af\u5883\u7684\u5fae\u670d\u52a1\u4e4b\u95f4\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u73af\u5883\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>namespace</code> \u6765\u8868\u793a\u73af\u5883\u3002</li> <li>\u5e94\u7528\u540d\u79f0\uff1a\u7528\u4e8e\u63cf\u8ff0\u4e00\u7ec4\u53ef\u4ee5\u76f8\u4e92\u8bbf\u95ee\u7684\u5fae\u670d\u52a1\uff0c\u4e0d\u540c\u5e94\u7528\u540d\u79f0\u4e4b\u95f4\u662f\u903b\u8f91\u9694\u79bb\u7684\uff0c\u4e0d\u80fd\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\uff0c\u4f1a\u4ee5\u5bf9\u5e94\u7684\u6982\u5ff5\u8868\u793a\u5e94\u7528\u3002\u6bd4\u5982Nacos\u4f7f\u7528 <code>group</code> \u6765\u8868\u793a\u5e94\u7528\u3002</li> <li>\u5fae\u670d\u52a1\u540d\u79f0\uff1a\u7528\u4e8e\u6807\u8bc6\u4e00\u4e2a\u5fae\u670d\u52a1\u3002\u53ef\u4ee5\u901a\u8fc7\u5fae\u670d\u52a1\u540d\u79f0\u67e5\u8be2\u9700\u8981\u8bbf\u95ee\u7684\u76ee\u6807\u5fae\u670d\u52a1\u3002</li> <li>\u5fae\u670d\u52a1\u7248\u672c\uff1a\u8868\u793a\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u5f53\u5b58\u5728\u5fae\u670d\u52a1\u5c5e\u6027\u53d8\u5316\u3001\u63a5\u53e3\u53d8\u5316\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4fee\u6539\u7248\u672c\u53f7\u3002</li> <li>\u5fae\u670d\u52a1\u63cf\u8ff0\uff1a\u7b80\u5355\u7684\u5fae\u670d\u52a1\u63cf\u8ff0\u4fe1\u606f\u3002</li> <li>\u5fae\u670d\u52a1\u5c5e\u6027\uff1a\u7528\u4e8e\u63cf\u8ff0\u5fae\u670d\u52a1\u7684\u6269\u5c55\u4fe1\u606f\u3002</li> </ul> <pre><code>servicecomb:\n  service:\n    application: hello-applicaton\n    name: hello-service\n    version: 0.0.1 \n    properties: \n      key1: value1\n      key2: value2\n    description: This is a description about the microservice\n    environment: production\n</code></pre> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1\u63a5\u5165\u914d\u7f6e\u4e2d\u5fc3\u4ee5\u540e\uff0cJava Chassis 3\u7684\u914d\u7f6e\u7ba1\u7406\u6a21\u5757\uff0c\u4f1a\u81ea\u52a8\u4ece\u914d\u7f6e\u4e2d\u5fc3\u83b7\u53d6\u5982\u4e0b\u914d\u7f6e\u5c42\u6b21\u7684\u914d\u7f6e\u4fe1\u606f\uff1a</p> <ul> <li>\u5e94\u7528\u914d\u7f6e\u3002</li> <li>\u670d\u52a1\u914d\u7f6e\u3002</li> <li>\u7248\u672c\u914d\u7f6e\u3002</li> <li>\u81ea\u5b9a\u4e49\u914d\u7f6e\u3002</li> </ul> <p>\u8fd9\u4e9b\u914d\u7f6e\u5728\u4e0d\u540c\u914d\u7f6e\u4e2d\u5fc3\u7684\u5bf9\u5e94\u5173\u7cfb\uff1a</p> \u9879\u76ee Nacos \u914d\u7f6e\u4e2d\u5fc3 Kie \u914d\u7f6e\u4e2d\u5fc3 \u5907\u6ce8 \u5e94\u7528\u914d\u7f6e namespace=environment group=application dataId=application environment=environment app=application \u670d\u52a1\u914d\u7f6e namespace=environment group=application dataId=service environment=environment app=application service=service \u7248\u672c\u914d\u7f6e namespace=environment group=application dataId=service-version environment=environment app=application service=service version=version \u81ea\u5b9a\u4e49\u914d\u7f6e namespace=environment group=group dataId=dataId customLabel=customLabelValue <p>\u4ee5\u5e94\u7528\u89c6\u89d2\u5efa\u7acb\u8fd9\u79cd\u5bf9\u5e94\u5173\u7cfb\u7684\u597d\u5904\uff0c\u662f\u7528\u6237\u4e0d\u9700\u8981\u81ea\u884c\u89c4\u5212\u5982\u4f55\u5728\u914d\u7f6e\u4e2d\u5fc3\u5b58\u653e\u6570\u636e\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u4e00\u4e2a\u4f18\u79c0\u7684\u7ba1\u7406\u5b9e\u8df5\u5e94\u7528\u4e8e\u4e1a\u52a1\u573a\u666f\u3002\u5c06\u7528\u6237\u9700\u8981\u601d\u8003\u7684\u95ee\u9898\uff0c\u56fa\u5b9a\u4e3a\u51e0\u4e2a\u5177\u4f53\u7684\u95ee\u9898\uff1a\u5982\u4f55\u521b\u5efa\u5e94\u7528\u7ea7\u522b\u7684\u914d\u7f6e\uff1f\u5982\u4f55\u521b\u5efa\u670d\u52a1\u7ea7\u522b\u7684\u914d\u7f6e\uff1f\u5982\u4f55\u521b\u5efa\u5fae\u670d\u52a1\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\uff1f</p> <p>\u5e94\u7528\u89c6\u89d2\u7684\u914d\u7f6e\u7ba1\u7406\u53e6\u5916\u4e00\u4e2a\u5173\u952e\u95ee\u9898\uff0c\u662f\u5f00\u53d1\u8005\u5982\u4f55\u4f7f\u7528\u914d\u7f6e\u3002</p> <ul> <li>Spring Boot\u4f7f\u7528\u914d\u7f6e</li> </ul> <p>Spring Boot\u7684\u5f00\u53d1\u8005\u4e00\u822c\u901a\u8fc7 <code>@Value</code>\u3001<code>@ConfigurationProperties</code> \u548c <code>Environment</code> \u83b7\u53d6\u914d\u7f6e\u3002 \u5b83\u63d0\u4f9b\u4e86 <code>PropertySource</code> \u6765\u6269\u5c55\u914d\u7f6e\u6e90\u3002 Spring Boot\u5e76\u672a\u9488\u5bf9\u914d\u7f6e\u53d8\u66f4\u63d0\u4f9b\u989d\u5916\u7684\u5904\u7406\u673a\u5236\uff0c\u65e0\u6cd5\u5f88\u597d\u7684\u5904\u7406\u914d\u7f6e\u53d8\u66f4\u3002 \u5c3d\u7ba1\u5f53 <code>PropertySource</code> \u7684\u5185\u5bb9\u53d8\u5316\u540e\uff0c\u901a\u8fc7 <code>Environment</code> \u53ef\u4ee5\u83b7\u53d6\u5230\u6700\u65b0\u7684\u7248\u672c\u5185\u5bb9\uff0c\u4f46\u662f <code>@Value</code>\u3001<code>@ConfigurationProperties</code> \u5b9a\u4e49\u7684\u914d\u7f6e\u9879\u5219\u4e0d\u4f1a\u53d1\u751f\u53d8\u5316\u3002 </p> <ul> <li>Spring Cloud\u4f7f\u7528\u914d\u7f6e</li> </ul> <p>Spring Cloud\u5728Spring Boot\u57fa\u7840\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u4e86\u52a8\u6001\u914d\u7f6e\u7684\u80fd\u529b\u3002 \u53ef\u4ee5\u4f7f\u7528 <code>@RefershScope</code> \u6807\u7b7e\u58f0\u660e Bean\uff0c \u5728\u914d\u7f6e\u53d8\u5316\u540e\uff0cSpring Cloud\u4f1a\u9500\u6bc1\u8001\u7684 Bean\uff0c \u5e76\u91cd\u5efa\u65b0\u7684 Bean\uff0c\u65b0\u7684 Bean\u4f1a\u4f7f\u7528\u6700\u65b0\u7684\u914d\u7f6e\u503c\u8fdb\u884c\u521d\u59cb\u5316\u3002 Spring Cloud\u5728\u5904\u7406\u914d\u7f6e\u53d8\u66f4\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5bf9Bean\u7684\u8bbf\u95ee\u52a0\u8bfb\u5199\u9501\u3002 </p> <ul> <li>Java Chassis 3\u4f7f\u7528\u914d\u7f6e</li> </ul> <p>Java Chassis 3\u5b8c\u5168\u517c\u5bb9 Spring Boot\u7684\u914d\u7f6e\u4f7f\u7528\u65b9\u5f0f\u3002 \u5e76\u63d0\u4f9b\u4e86\u66f4\u52a0\u53cb\u597d\u7684 API \u76d1\u542c\u914d\u7f6e\u53d8\u66f4\u548c\u5904\u7406\u4f18\u5148\u7ea7\u914d\u7f6e\u3002 \u914d\u7f6e\u76d1\u542c API \u4e3b\u8981\u7528\u4e8e\u9ad8\u6027\u80fd\u573a\u666f\uff1a\u914d\u7f6e\u53d8\u66f4\u540e\u9700\u8981\u8fdb\u884c\u5fc5\u8981\u7684\u4e1a\u52a1\u903b\u8f91\u521d\u59cb\u5316\uff0c\u521d\u59cb\u5316\u53ef\u4ee5\u5728\u914d\u7f6e\u53d8\u66f4\u7ebf\u7a0b\u4e2d\u6267\u884c\uff0c\u800c\u4e0d\u963b\u585e\u5f53\u524d\u4e1a\u52a1\u6267\u884c\u3002 </p> <pre><code>@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  private DynamicProperties dynamicProperties;\n\n  private String example;\n\n  @Autowired\n  public ProviderController(DynamicProperties dynamicProperties) {\n    this.dynamicProperties = dynamicProperties;\n    this.example = this.dynamicProperties.getStringProperty(\"basic.example\",\n            value -&gt; this.example = value, \"not set\");\n  }\n}\n</code></pre> <p>\u4f18\u5148\u7ea7\u914d\u7f6e\u662fJava Chassis3\u7279\u6709\u7684\u7ba1\u7406\u914d\u7f6e\u4f18\u5148\u7ea7\u65b9\u5f0f\u3002\u6bd4\u5982\u5bf9\u4e8e\u67d0\u4e2a\u65b9\u6cd5\uff0c\u4f1a\u8003\u8651\u662f\u5426\u6709\u5e94\u7528\u7ea7\u522b\u7684\u5168\u5c40\u914d\u7f6e\u3001\u9488\u5bf9\u670d\u52a1\u7684\u914d\u7f6e\u548c\u9488\u5bf9\u8fd9\u4e2a\u65b9\u6cd5\u7684\u914d\u7f6e\uff0c\u9488\u5bf9\u65b9\u6cd5\u7684\u914d\u7f6e\u4f18\u5148\u7ea7\u6700\u9ad8\u3002 \u8fd9\u79cd\u914d\u7f6e\u65b9\u5f0f\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8eJava Chassis 3\u7684\u9650\u6d41\u7b49\u670d\u52a1\u6cbb\u7406\u573a\u666f\u4e2d\u3002 \u4e0b\u9762\u7684\u4ee3\u7801\u7247\u6bb5\u662fJava Chassis\u7684\u63a5\u53e3\u8d85\u65f6\u914d\u7f6e\u793a\u4f8b\u3002</p> <pre><code>@InjectProperties(prefix = \"servicecomb\")\npublic class OperationConfig {\n  public static final List&lt;String&gt; CONSUMER_OP_ANY_PRIORITY = Arrays.asList(\n      \"${service}.${schema}.${operation}\",\n      \"${service}.${schema}\",\n      \"${service}\");\n\n  /**\n   * consumer request timeout\n   */\n  @InjectProperty(keys = {\"request.${op-any-priority}.timeout\", \"request.timeout\"}, defaultValue = \"30000\")\n  private long msRequestTimeout;\n}\n</code></pre> <p>\u76f8\u5bf9\u4e8eSpring Cloud\uff0cJava Chassis3\u7684\u914d\u7f6eAPI\uff0c\u80fd\u591f\u66f4\u52a0\u65b9\u4fbf\u7684\u76d1\u542c\u914d\u7f6e\u53d8\u5316\uff0c\u5e76\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u6027\u80fd\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1aSpring Cloud\u914d\u7f6e\u53d8\u66f4\u4f1a\u52a0\u9501\u3002\u5728\u9ad8\u5e76\u53d1\u573a\u666f\uff0c\u914d\u7f6e\u53d8\u66f4\u4f1a\u963b\u585e\u6240\u6709\u8bf7\u6c42\u7684\u6267\u884c\u3002\u5982\u679c\u4e1a\u52a1\u6267\u884c\uff08\u5df2\u7ecf\u83b7\u53d6\u8bfb\u9501\uff09\u5305\u542bRPC\u7b49\u76f8\u5bf9\u6162\u7684\u903b\u8f91\uff0c\u914d\u7f6e\u53d8\u66f4\u7b49\u5f85\u5199\u9501\u4ee5\u53ca\u5176\u4ed6\u6267\u4e1a\u52a1\u7ebf\u7a0b\u7b49\u5f85\u8bfb\u9501\u90fd\u4f1a\u88ab\u963b\u585e\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\uff0c\u89e6\u53d1\u5e94\u7528\u541e\u5410\u6025\u5267\u4e0b\u964d\u3002Java Chassis 3\u914d\u7f6e\u53d8\u66f4\u4e0d\u963b\u585e\u4e1a\u52a1\u5904\u7406\uff0c\u80fd\u591f\u6709\u6548\u7684\u9632\u6b62\u914d\u7f6e\u53d8\u66f4\u89e6\u53d1\u96ea\u5d29\u6548\u5e94\uff0c\u7279\u522b\u662f\u5728\u9ad8\u5e76\u53d1\u3001\u9700\u8981\u52a8\u6001\u8c03\u6574\u8fd0\u884c\u3001\u6cbb\u7406\u89c4\u5219\u7684\u4e1a\u52a1\u573a\u666f\u3002 </p>"},{"location":"featured-topics/secrets/circuit-breaker.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u7194\u65ad\u673a\u5236\u7684\u6539\u8fdb\u8def\u7a0b","text":"<p>\u7194\u65ad\u673a\u5236\u662f\u5fae\u670d\u52a1\u6cbb\u7406\u975e\u5e38\u91cd\u8981\u7684\u624b\u6bb5\u3002\u5f53\u5e94\u7528\u7a0b\u5e8f\u51fa\u73b0\u5c40\u90e8\u6545\u969c\uff0c\u6bd4\u5982\u591a\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u7684\u5176\u4e2d\u4e00\u4e2a\u5b9e\u4f8b\u6545\u969c\uff0c\u6216\u8005\u4e00\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u7684\u591a\u4e2a\u63a5\u53e3\u4e2d\u7684\u4e00\u4e2a\u6545\u969c\uff0c\u6070\u5f53\u7684\u7194\u65ad\u673a\u5236\u80fd\u591f\u907f\u514d\u51fa\u73b0\u96ea\u5d29\u6548\u5e94\u3002\u7194\u65ad\u673a\u5236\u901a\u5e38\u6709\u5982\u4e0b\u51e0\u4e2a\u91cd\u8981\u7684\u6280\u672f\u90e8\u4ef6\u3002</p> <ul> <li>\u7194\u65ad\u7684\u76ee\u6807\u5bf9\u8c61\u3002\u76ee\u6807\u5bf9\u8c61\u53ef\u4ee5\u662f\u4e00\u4e2a\u5b9e\u4f8b\u7684\u67d0\u4e2a\u670d\u52a1\u63a5\u53e3\uff0c\u4e5f\u53ef\u4ee5\u662f\u6b63\u5728\u8bbf\u95ee\u7684\u67d0\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4e5f\u53ef\u4ee5\u662f\u6b63\u5728\u8bbf\u95ee\u7684\u67d0\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u7684\u67d0\u4e2a\u63a5\u53e3\u3002 \u7ad9\u5728Provider\u89c6\u89d2\u548c\u7ad9\u5728Consumer\u89c6\u89d2\uff0c\u4f1a\u6709\u4e0d\u540c\u7684\u76ee\u6807\u5bf9\u8c61\u3002\u9700\u8981\u5bf9\u76ee\u6807\u5bf9\u8c61\u8fdb\u884c\u51c6\u786e\u7684\u62bd\u8c61\uff0c\u624d\u80fd\u591f\u63d0\u4f9b\u4e00\u4e2a\u597d\u7528\u7684\u7194\u65ad\u673a\u5236\u3002 </li> <li>\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u3002\u5bf9\u76ee\u6807\u5bf9\u8c61\u7684\u6bcf\u6b21\u8bbf\u95ee\uff0c\u9700\u8981\u5bf9\u8bbf\u95ee\u7ed3\u679c\u8fdb\u884c\u68c0\u67e5\u548c\u5206\u7c7b\uff0c\u5e76\u7edf\u8ba1\u76f8\u5173\u6307\u6807\u3002\u901a\u5e38\u68c0\u67e5\u7684\u7ed3\u679c\u5305\u62ec\u629b\u51fa\u5f02\u5e38\u3001\u8fd4\u56de\u72b6\u6001\u7801\u3001\u8bf7\u6c42\u5904\u7406\u65f6\u5ef6\u7b49\u3002 \u8fd8\u9700\u8981\u8003\u8651\u9002\u5f53\u7684\u7b97\u6cd5\u8fdb\u884c\u6307\u6807\u7edf\u8ba1\uff0c\u6bd4\u5982\u91c7\u7528\u57fa\u4e8e\u65f6\u95f4\u6216\u8005\u57fa\u4e8e\u8bf7\u6c42\u6570\u91cf\u7684\u6ed1\u52a8\u7a97\u53e3\u7b97\u6cd5\u3002</li> <li>\u7194\u65ad\u7684\u7b56\u7565\u3002\u5f53\u6545\u969c\u79ef\u7d2f\u7684\u65f6\u5019\uff0c\u5982\u4f55\u907f\u514d\u6545\u969c\u79ef\u7d2f\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u5e38\u89c1\u7684\u7b56\u7565\u5305\u62ec\uff1a\u5feb\u901f\u5931\u8d25\uff0c\u5bf9\u76ee\u6807\u5bf9\u8c61\u7684\u8bbf\u95ee\uff0c\u7acb\u5373\u629b\u51fa\u5f02\u5e38\uff0c\u8fd4\u56de\u5931\u8d25\uff1b\u9694\u79bb\u9519\u8bef\u5bf9\u8c61\uff0c\u5f53\u76ee\u6807\u5bf9\u8c61\u5b58\u5728\u53ef\u66ff\u6362\u526f\u672c\uff0c\u6bd4\u5982\u5176\u4ed6\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4e0d\u518d\u8bbf\u95ee\u6545\u969c\u5b9e\u4f8b\uff0c\u53ea\u8bbf\u95ee\u5176\u4ed6\u975e\u6545\u969c\u5b9e\u4f8b\u3002 </li> <li>\u7194\u65ad\u7684\u6062\u590d\u7b56\u7565\u3002\u76ee\u6807\u5bf9\u8c61\u7684\u7194\u65ad\u65f6\u957f\uff0c\u5982\u4f55\u4ece\u7194\u65ad\u72b6\u6001\u4e2d\u6062\u590d\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002</li> </ul> <p>\u53ef\u4ee5\u770b\u51fa\uff0c\u8bbe\u8ba1\u4e00\u4e2a\u826f\u597d\u7684\u7194\u65ad\u673a\u5236\u662f\u975e\u5e38\u590d\u6742\u7684\uff0cJava Chassis 3\u7684\u7194\u65ad\u673a\u5236\u4e5f\u7ecf\u5386\u4e86\u591a\u6b21\u8c03\u6574\u548c\u4f18\u5316\u3002 </p> <ul> <li>Spring Cloud Circuit Breaker</li> </ul> <p>\u4ece <code>Spring Cloud</code> \u5b98\u7f51\u63d0\u4f9b\u7684\u4f8b\u5b50\u4ee5\u53ca\u5f00\u53d1\u6307\u5357\uff0c\u53ef\u4ee5\u7b80\u5355\u7684\u5206\u89e3\u4e0b\u4e0a\u8ff0\u6280\u672f\u90e8\u4ef6\uff1a</p> <pre><code>@Service\npublic static class DemoControllerService {\n    private ReactiveCircuitBreakerFactory cbFactory;\n    private WebClient webClient;\n\n\n    public DemoControllerService(WebClient webClient, ReactiveCircuitBreakerFactory cbFactory) {\n        this.webClient = webClient;\n        this.cbFactory = cbFactory;\n    }\n\n    public Mono&lt;String&gt; slow() {\n        return webClient.get().uri(\"/slow\").retrieve().bodyToMono(String.class).transform(\n        it -&gt; cbFactory.create(\"slow\").run(it, throwable -&gt; return Mono.just(\"fallback\")));\n    }\n}\n</code></pre> <p>\u76ee\u6807\u5bf9\u8c61\u662f\u7531\u5f00\u53d1\u8005\u5728\u4ee3\u7801\u4e2d\u6307\u5b9a\u7684\u3002 \u5bf9\u4e8e\u63a5\u53e3\u65b9\u6cd5\u8fd9\u7c7b\u76ee\u6807\u5bf9\u8c61\uff0c\u5f00\u53d1\u8d77\u6765\u662f\u6bd4\u8f83\u5bb9\u6613\u7684\uff0c\u4f46\u662f\u5bf9\u4e8e\u5b9e\u4f8b\uff0c\u5219\u975e\u5e38\u9ebb\u70e6\uff0c\u800c\u4e14\u65e0\u6cd5\u52a8\u6001\u7684\u8c03\u6574\u76ee\u6807\u5bf9\u8c61\uff0c\u5728\u5f00\u53d1\u7684\u65f6\u5019\u5c31\u9700\u8981\u786e\u5b9a\u597d\u3002 \u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u4e3b\u8981\u662f\u57fa\u4e8e\u5f02\u5e38\uff0c\u5373\u76ee\u6807\u5bf9\u8c61\u629b\u51fa\u5f02\u5e38\u7684\u65f6\u5019\uff0c\u4f1a\u89e6\u53d1\u7194\u65ad\u3002\u7194\u65ad\u7684\u7b56\u7565\u4e3a\u5feb\u901f\u5931\u8d25\u6a21\u5f0f\u3002 </p> <ul> <li>Java Chassis Bizkeeper</li> </ul> <p>Java Chassis \u7684\u65e9\u671f\u7248\u672c\uff0c\u57fa\u4e8e Bizkeeper \u63d0\u4f9b\u4e86\u7194\u65ad\u529f\u80fd\u3002 Bizkeeper \u96c6\u6210\u4e86 <code>Hystrix</code> \u7ec4\u4ef6\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u914d\u7f6e\u793a\u4f8b\u3002  </p> <pre><code>servicecomb:\n  handler:\n    chain:\n      Consumer:\n        default: bizkeeper-consumer\n  isolation:\n    Consumer:\n      timeout:\n        enabled: true\n      timeoutInMilliseconds: 30000\n  circuitBreaker:\n    Consumer:\n      enabled: true\n      sleepWindowInMilliseconds: 15000\n      requestVolumeThreshold: 20\n  fallback:\n    Consumer:\n      enabled: true\n  fallbackpolicy:\n    Consumer:\n      policy: throwException\n</code></pre> <p>\u76ee\u6807\u5bf9\u8c61\u662f\u5f53\u524d\u8bbf\u95ee\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6307\u5b9a\u6240\u6709\u65b9\u6cd5\u3001\u67d0\u4e2aSchema\u7684\u6240\u6709\u65b9\u6cd5\u3001\u67d0\u4e2a\u5177\u4f53\u65b9\u6cd5\u3002\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u6709\u5f02\u5e38\u3001\u8d85\u65f6\u9519\u8bef\u4e24\u79cd\u3002\u7194\u65ad\u7684\u7b56\u7565\u4e3a\u5feb\u901f\u5931\u8d25\u6a21\u5f0f\u3002 </p> <p>\u7531\u4e8e <code>Hystrix</code> \u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\uff0c\u8fd9\u4e2a\u673a\u5236\u5728 Java Chassis 3\u5df2\u7ecf\u5220\u9664\u3002 </p> <ul> <li>Java Chassis Instance Isolation</li> </ul> <p>\u8fd9\u4e2a\u673a\u5236\u662f\u57fa\u4e8e loadbalancer filter \u5f00\u53d1\u7684\u5b9e\u4f8b\u9694\u79bb\u529f\u80fd\u3002 </p> <pre><code>servicecomb:\n  loadbalance:\n    isolation:\n      enabled: false\n      errorThresholdPercentage: 0\n      enableRequestThreshold: 5\n      singleTestTime: 60000\n      continuousFailureThreshold: 5\n      maxSingleTestWindow: 60000 # \u4e3a\u4e86\u4fdd\u8bc1\u5728\u5e76\u53d1\u60c5\u51b5\u4e0b\u53ea\u6709\u4e00\u4e2a\u5b9e\u4f8b\u653e\u901a\uff0c\u4f1a\u9501\u5b9a\u653e\u901a\u5b9e\u4f8b\u3002\u8fd9\u4e2a\u65f6\u95f4\u8868\u793a\u6700\u5927\u9501\u5b9a\u65f6\u95f4\u3002\n      minIsolationTime: 3000 # \u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\u5e76\u53d1\u60c5\u51b5\u4e0b\uff0c\u5b9e\u4f8b\u9694\u79bb\u540e\u8fdb\u884c\u4e2d\u7684\u8bf7\u6c42\u53ef\u80fd\u5feb\u901f\u5237\u65b0\u9694\u79bb\u72b6\u6001\uff0c\u589e\u52a0\u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\n      recoverImmediatelyWhenSuccess: true # \u653e\u901a\u5b9e\u4f8b\uff0c\u5982\u679c\u8c03\u7528\u6210\u529f\uff0c\u7acb\u5373\u6e05\u9664\u7edf\u8ba1\u72b6\u6001\uff0c\u4fdd\u8bc1\u540e\u7eed\u8bf7\u6c42\u80fd\u591f\u4f7f\u7528\u8be5\u5b9e\u4f8b\u3002 \n</code></pre> <p>\u76ee\u6807\u5bf9\u8c61\u662f\u5b9e\u4f8b\u3002 \u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u662f\u57fa\u4e8e\u5f02\u5e38\u3002 \u7194\u65ad\u7684\u7b56\u7565\u4e3a\u4e0d\u518d\u8bbf\u95ee\u6545\u969c\u5b9e\u4f8b\uff0c\u53ea\u8bbf\u95ee\u5176\u4ed6\u975e\u6545\u969c\u5b9e\u4f8b\u3002 </p> <p>\u8be5\u529f\u80fd\u5728\u6545\u969c\u7edf\u8ba1\u65b9\u9762\u6ca1\u6709\u6ed1\u52a8\u7a97\u53e3\u7b49\u7b97\u6cd5\uff0c\u5728\u8ba1\u7b97\u9519\u8bef\u7387\u7684\u65f6\u5019\uff0c\u4f1a\u5b58\u5728\u4e0d\u7a33\u5b9a\u6ce2\u52a8\u3002 \u9519\u8bef\u7387\u8ba1\u7b97\u95ee\u9898\u4f1a\u5bfc\u81f4\u9694\u79bb\u548c\u9694\u79bb\u6062\u590d\u51fa\u73b0\u95ee\u9898\uff0c\u53ef\u4ee5\u770b\u51fa\uff0c\u4ed6\u7684\u6062\u590d\u673a\u5236\u8bbe\u8ba1\u53c2\u6570\u6bd4\u8f83\u591a\u3002 \u8fd9\u4e2a\u673a\u5236\u5728 Java Chassis 3\u5df2\u7ecf\u5220\u9664\u3002 </p> <ul> <li>Java Chassis 3 \u7684\u7194\u65ad\u673a\u5236</li> </ul> <p>Java Chassis 3 \u9488\u5bf9 <code>Provider</code> \u548c <code>Consumer</code> \u4e24\u4e2a\u89c6\u89d2\uff0c\u63d0\u4f9b\u4e86\u7194\u65ad\u673a\u5236\u3002 \u4e24\u4e2a\u673a\u5236\u7684\u6545\u969c\u68c0\u6d4b\u7684\u65b9\u6cd5\u3001\u7194\u65ad\u7b56\u7565\u548c\u7194\u65ad\u6062\u590d\u7b56\u7565\u662f\u76f8\u540c\u7684\uff0c\u53ea\u662f\u5728\u76ee\u6807\u5bf9\u8c61\u4e0d\u4e00\u81f4\u3002 </p> <p><code>Provider</code> \u89c6\u89d2\u7684\u7194\u65ad\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  circuitBreaker:\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      recordFailureStatus: \n        - 502\n        - 503\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n</code></pre> <p><code>Consumer</code> \u89c6\u89d2\u7684\u7194\u65ad\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  instanceIsolation:\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      recordFailureStatus: \n        - 502\n        - 503\n      slowCallDurationThreshold: 3000\n      waitDurationInOpenState: 10000 \n      permittedNumberOfCallsInHalfOpenState: 10\n</code></pre> <p>Java Chassis\u63d0\u4f9b\u4e86\u57fa\u4e8e\u6162\u8bf7\u6c42\u3001\u5f02\u5e38\u3001\u9519\u8bef\u7801\uff0c\u4ee5\u53ca <code>AbstractCircuitBreakerExtension</code>\u3001<code>AbstractInstanceIsolationExtension</code> \u63a5\u53e3\u8ba9\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u7b49\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u3002 \u5bf9\u4e8e\u6027\u80fd\u573a\u666f\uff0c\u8fd8\u53ef\u4ee5\u57fa\u4e8e\u9694\u79bb\u4ed3\u589e\u52a0\u5e76\u53d1\u6570\u9650\u5236\u6545\u969c\u68c0\u6d4b\u65b9\u6cd5\u3002 </p> <p><code>Provider</code> \u89c6\u89d2\u7684\u9694\u79bb\u4ed3\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  bulkhead:\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre> <p><code>Consumer</code> \u89c6\u89d2\u7684\u9694\u79bb\u4ed3\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  instanceBulkhead:\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre> <p><code>Provider</code> \u89c6\u89d2\u7684\u7194\u65ad\u5668\uff0c\u7194\u65ad\u7b56\u7565\u662f\u5feb\u901f\u5931\u8d25\uff0c\u629b\u51fa\u5f02\u5e38\uff1b<code>Consumer</code> \u89c6\u89d2\u7684\u7194\u65ad\u5668\uff0c\u7194\u65ad\u7b56\u7565\u662f\u4e3a\u4e0d\u518d\u8bbf\u95ee\u6545\u969c\u5b9e\u4f8b\uff0c\u53ea\u8bbf\u95ee\u5176\u4ed6\u975e\u6545\u969c\u5b9e\u4f8b\u3002 </p> <p>\u5728\u524d\u9762\u7684\u793a\u4f8b\u4e2d\uff0c<code>allOperation</code> \u4ee3\u8868\u4e86\u7194\u65ad\u5bf9\u8c61\u3002 Java Chassis 3\u7684\u7194\u65ad\u5bf9\u8c61\u5b9a\u4e49\u4e5f\u662f\u975e\u5e38\u7b80\u5355\u548c\u7075\u6d3b\u7684\uff1a</p> <pre><code>servicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath:\n            exact: \"/\"\n          method:\n            - POST\n          headers:\n            Authentication: \n              prefix: Basic\n          serviceName: exampleService\n</code></pre> <p>\u7ad9\u5728<code>Provider</code> \u89c6\u89d2\uff0c \u4e0a\u8ff0\u5b9a\u4e49\u8868\u793a\u7194\u65ad\u5bf9\u8c61\u662f\u6765\u81ea <code>exampleService</code> \u7684\u8bbe\u7f6e\u4e86\u8ba4\u8bc1\u5934\u7684\u6240\u6709 POST \u65b9\u6cd5\uff1b \u7ad9\u5728<code>Consumer</code> \u89c6\u89d2\uff0c \u4e0a\u8ff0\u5b9a\u4e49\u8868\u793a\u7194\u65ad\u5bf9\u8c61\u662f\u53d1\u5f80 <code>exampleService</code> \u7684\u67d0\u4e2a\u5177\u4f53\u7684\u5b9e\u4f8b\uff0c\u5e76\u4e14\u8bbe\u7f6e\u4e86\u8ba4\u8bc1\u5934\u7684\u6240\u6709 POST \u65b9\u6cd5\u3002 </p> <p>Java Chassis 3\u7194\u65ad\u673a\u5236\u9010\u6b65\u6210\u4e3a\u662f\u4e00\u4e2a\u7b80\u5355\u6613\u7528\uff0c \u6ee1\u8db3\u7edd\u5927\u90e8\u5206\u4e1a\u52a1\u573a\u666f\u9700\u8981\u7684\u901a\u7528\u8bbe\u8ba1\u89c4\u8303\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u5ba2\u6237\u671f\u671b\u5efa\u7acb\u4e00\u79cd\u6301\u7eed\u6f14\u8fdb\u7684\u6545\u969c\u5904\u7406\u673a\u5236\uff0c\u4ee5\u964d\u4f4e\u968f\u7740\u7cfb\u7edf\u957f\u671f\u8fd0\u884c\uff0c\u968f\u673a\u6545\u969c\u3001\u7cfb\u7edf\u53d8\u6162\u7b49\u573a\u666f\u5bf9\u6574\u4f53\u6545\u969c\u7684\u5f71\u54cd\uff0c\u52a8\u6001\u9002\u5e94\u6301\u7eed\u53d8\u5316\u7684\u73af\u5883\u5bf9\u53ef\u9760\u6027\u5e26\u6765\u7684\u6311\u6218\u3002Java Chassis 3\u7684\u670d\u52a1\u6cbb\u7406\u914d\u7f6e\u673a\u5236\uff0c\u53ef\u4ee5\u4f7f\u5f97\u5ba2\u6237\u4e0d\u9700\u8981\u4fee\u6539\u4ee3\u7801\u548c\u91cd\u542f\u5e94\u7528\uff0c\u5c31\u80fd\u591f\u52a8\u6001\u8c03\u6574\u8017\u65f6\u63a5\u53e3\u548c\u6545\u969c\u63a5\u53e3\u7684\u7194\u65ad\u7b56\u7565\u3002\u901a\u8fc7\u89c4\u8303\u8d4b\u80fd\uff0c\u8fd0\u7ef4\u4eba\u5458\u5c31\u80fd\u591f\u89e3\u51b3\u4e00\u4e9b\u5e38\u89c1\u7684\u8fc7\u8f7d\u9632\u62a4\u95ee\u9898\u3002 </p>"},{"location":"featured-topics/secrets/fail-fast.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8fc7\u8f7d\u72b6\u6001\u4e0b\u7684\u5feb\u901f\u5931\u8d25","text":"<p>\u5728 <code>\u7194\u65ad\u673a\u5236\u7684\u6539\u8fdb\u8def\u7a0b</code> \u6280\u672f\u89e3\u5bc6\u4e2d\uff0c\u603b\u7ed3\u4e86\u5982\u4f55\u8bbe\u8ba1\u4e00\u4e2a\u4f18\u96c5\u7684\u7194\u65ad\u673a\u5236\u3002 \u4f5c\u4e3a\u5fae\u670d\u52a1\u6700\u91cd\u8981\u7684\u6cbb\u7406\u7b56\u7565\u4e4b\u4e00\uff0c\u7194\u65ad\u673a\u5236\u80fd\u591f\u5728\u6545\u969c\u573a\u666f\u8d77\u5230\u9632\u6b62\u96ea\u5d29\u6548\u5e94\u7684\u4f5c\u7528\u3002\u8fc7\u8f7d\u72b6\u6001\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6545\u969c\u573a\u666f\uff0c\u4e3b\u8981\u6307\u8d85\u51fa\u4e86\u7cfb\u7edf\u5904\u7406\u80fd\u529b\u7684\u8bf7\u6c42\u91cf\u3002 \u5728\u8fc7\u8f7d\u72b6\u6001\uff0c\u7194\u65ad\u673a\u5236\u53ef\u80fd\u65e0\u6cd5\u8d77\u5230\u9884\u671f\u7684\u6548\u679c\u3002 \u4e3a\u4e86\u5bf9\u8fc7\u8f7d\u72b6\u6001\u4e0b\u7684\u9632\u62a4\u6709\u4e2a\u6bd4\u8f83\u76f4\u89c2\u7684\u8ba4\u8bc6\uff0c \u6211\u4eec\u5148\u8ba8\u8bba\u51e0\u4e2a\u5178\u578b\u573a\u666f\uff1a</p> <ul> <li>\u5047\u8bbe\u7cfb\u7edf\u542f\u7528\u4e86\u7194\u65ad\u673a\u5236\uff0c\u5e76\u4e14\u8bbe\u7f6e\u4e86\u9694\u79bb\u4ed3\u6765\u68c0\u6d4b\u8fc7\u8f7d\u60c5\u51b5\u3002 \u5f53\u7cfb\u7edf\u6d41\u91cf\u8fc7\u8f7d\u7684\u65f6\u5019\uff0c\u9694\u79bb\u4ed3\u89e6\u53d1\u8fc7\u8f7d\u4fdd\u62a4\uff0c\u7194\u65ad\u673a\u5236\u4f1a\u77ed\u6682\u9694\u79bb\u5bf9\u4e8e\u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u5e76\u5c06\u6d41\u91cf\u8f6c\u79fb\u5230\u5176\u4ed6\u5b9e\u4f8b\u3002 \u7531\u4e8e\u603b\u7684\u5904\u7406\u5b9e\u4f8b\u6570\u51cf\u5c11\uff0c\u7cfb\u7edf\u5b9e\u9645\u80fd\u591f\u5904\u7406\u7684\u8d1f\u8377\u5728\u7194\u65ad\u673a\u5236\u751f\u6548\u7684\u573a\u666f\u4e0b\uff0c\u4f1a\u8fdb\u4e00\u6b65\u964d\u4f4e\u3002 \u8fd9\u610f\u5473\u7740\uff0c\u76f8\u8f83\u4e8e\u6ca1\u6709\u7194\u65ad\u673a\u5236\uff0c\u8fc7\u8f7d\u573a\u666f\u7194\u65ad\u673a\u5236\u53cd\u800c\u66f4\u5bb9\u6613\u89e6\u53d1\u96ea\u5d29\u6548\u5e94\u3002</li> <li>\u5b9e\u9645\u4e1a\u52a1\u573a\u666f\u4e2d\uff0c\u4e00\u4e9b\u63a5\u53e3\u6bd4\u8f83\u8017\u65f6\uff0c\u5176\u4ed6\u63a5\u53e3\u90fd\u5f88\u5feb\u7684\u60c5\u51b5\u975e\u5e38\u5e38\u89c1\u3002 \u5982\u679c\u5bf9\u8017\u65f6\u63a5\u53e3\u5f00\u542f\u9694\u79bb\u4ed3\u8fdb\u884c\u8fc7\u8f7d\u9632\u62a4\uff0c\u4f1a\u589e\u52a0\u8017\u65f6\u63a5\u53e3\u7684\u5931\u8d25\u7387\uff1b\u5982\u679c\u4e0d\u5f00\u542f\u8fc7\u8f7d\u9632\u62a4\uff0c\u8017\u65f6\u63a5\u53e3\u7684\u5e76\u53d1\u589e\u52a0\uff0c\u76f4\u89c2\u7684\u8868\u73b0\u662f\u7528\u6237\u54cd\u5e94\u65f6\u95f4\u7684\u589e\u52a0\u3002\u5728\u4e00\u4e9b\u4e1a\u52a1\u7cfb\u7edf\u770b\u6765\uff0c\u7528\u6237\u4f53\u9a8c\u7684\u4e0b\u964d\u7684\u5f71\u54cd\u8fdc\u5c0f\u4e8e\u6545\u969c\u7387\u589e\u52a0\u7684\u5f71\u54cd\u3002 \u5fae\u670d\u52a1\u6cbb\u7406\u7b56\u7565\u5bf9\u4e8e\u8fd9\u7c7b\u7cfb\u7edf\uff0c\u4e5f\u53ef\u80fd\u5e26\u6765\u9002\u5f97\u5176\u53cd\u7684\u6548\u679c\u3002 </li> </ul> <p>\u5728\u8fc7\u8f7d\u573a\u666f\uff0c\u4e0d\u80fd\u8fdb\u5165\u7194\u65ad\u72b6\u6001\uff0c\u8fd9\u9700\u8981\u989d\u5916\u7684\u4fdd\u62a4\u673a\u5236\u6765\u9632\u6b62\u8fc7\u8f7d\u3002 \u5feb\u901f\u5931\u8d25\u673a\u5236\u662f\u9632\u6b62\u8fc7\u8f7d\u7684\u6700\u5e38\u7528\u624b\u6bb5\uff0c\u867d\u7136\u5b58\u5728\u6027\u80fd\u8981\u6c42\u4e0d\u9ad8\u7684\u4e1a\u52a1\u573a\u666f\uff0c\u5feb\u901f\u5931\u8d25\u4f1a\u5bfc\u81f4\u9519\u8bef\u7387\u63d0\u5347\u8fd9\u79cd\u770b\u4f3c\u77db\u76fe\u7684\u60c5\u51b5\uff0c\u4f46\u662f\u6ca1\u6709\u8ba9\u5feb\u901f\u5931\u8d25\u673a\u5236\u5173\u4e0a\u5927\u95e8\uff0c\u6070\u5f53\u7684\u5feb\u901f\u5931\u8d25\u5e76\u642d\u914d\u4e1a\u52a1\u4e0a\u7684\u91cd\u8bd5\u7684\u5904\u7406\u8fd8\u53ef\u4ee5\u660e\u663e\u6539\u5584\u7528\u6237\u4f53\u9a8c\u3002 \u5feb\u901f\u5931\u8d25\u673a\u5236\u7684\u8981\u6c42\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u5c3d\u65e9\u7684\u62d2\u7edd\u8fc7\u8f7d\u6d41\u91cf\uff0c\u5c3d\u53ef\u80fd\u51cf\u5c11\u8fc7\u8f7d\u6d41\u91cf\u5360\u7528\u7684CPU\u548c\u5176\u4ed6\u8d44\u6e90\u65f6\u95f4\u3002</p>"},{"location":"featured-topics/secrets/fail-fast.html#_1","title":"\u9650\u6d41","text":"<p>\u9650\u6d41\u662f\u6700\u5e38\u7528\u7684\u5feb\u901f\u5931\u8d25\u63aa\u65bd\u3002 \u4f46\u6709\u4e2a\u7ec6\u8282\u7ecf\u5e38\u4f1a\u88ab\u5ffd\u7565\uff1a\u6d41\u91cf\u7ecf\u5e38\u662f\u4e0d\u5747\u8861\u7684\uff0c\u77ac\u65f6\u6d41\u91cf\u8d85\u8fc7\u9608\u503c\uff0c\u4e0d\u4ee3\u8868\u8fd9\u4e9b\u6d41\u91cf\u5c31\u5e94\u8be5\u88ab\u62d2\u7edd\u6389\u3002 \u4e00\u4e2a\u826f\u597d\u7684\u9650\u6d41\u63aa\u65bd\uff0c\u9700\u8981\u5bf9\u6d41\u91cf\u8fdb\u884c\u9002\u5f53\u7684\u68b3\u7406\uff0c\u4ee5\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u9650\u6d41\u3002 \u6bd4\u5982\u4e0b\u56fe\uff0c\u9650\u6d41\u7684\u6838\u5fc3\u4f5c\u7528\u662f\u5c06\u6bcf\u4e2a\u65f6\u95f4\u7247\u5185\uff0c\u4e0d\u5747\u5300\u7684\u6d41\u91cf\uff0c\u53d8\u6210\u5747\u5300\u7684\u6d41\u91cf\u3002 </p> <p></p> <p>\u9650\u6d41\u53d1\u751f\u7684\u65f6\u673a\u8d8a\u65e9\u8d8a\u597d\u3002\u901a\u5e38\u4f1a\u5728 edge service \u5e94\u7528\u9650\u6d41\u7b56\u7565\u3002 </p> <pre><code>## \u670d\u52a1\u6cbb\u7406\u914d\u7f6e\nservicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath: \n            prefix: \"/\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf1\u6beb\u79d2\u5141\u8bb8\u901a\u8fc710\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    allOperation: |\n      rate: 10\n      limitRefreshPeriod: 1\n      timeoutDuration: 1000\n</code></pre> <p>\u4e0a\u8ff0\u9650\u6d41\u7b56\u7565\u9650\u5236\u4e86\u5355\u4f4d\u65f6\u95f4\u5185\u8fdb\u5165 edge service \u7684\u8bf7\u6c42\u6570\u91cf\uff0c\u5e76\u80fd\u5bf9\u8bf7\u6c42\u8fdb\u884c\u68b3\u7406\u3002\u9650\u5236\u6570\u91cf\u53ef\u80fd\u5728\u5e94\u7528\u7a0b\u5e8f\u751f\u547d\u5468\u671f\u8fc7\u7a0b\u4e2d\u96be\u4e8e\u89c4\u5212\uff0c\u9700\u8981\u901a\u8fc7\u7cfb\u7edf\u6027\u7684\u6027\u80fd\u6d4b\u8bd5\u6765\u8bc4\u4f30\u9650\u5236\u5927\u5c0f\u3002 \u4e00\u4e2a\u6bd4\u8f83\u597d\u7684\u7b56\u7565\u662f\u901a\u8fc7\u5e76\u53d1\u6570\u6765\u9650\u5236\u6d41\u91cf\u3002\u5728 edge service\uff0c \u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u67d0\u4e2a\u4e0b\u6e38\u7684\u5b9e\u4f8b\u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u3002 </p> <pre><code>## \u670d\u52a1\u6cbb\u7406\u914d\u7f6e\nservicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath: \n            prefix: \"/\"\n  instanceBulkhead:\n    ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a20\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    allOperation: |\n      maxConcurrentCalls: 100\n      maxWaitDuration: 1000\n</code></pre> <p>\u76f8\u6bd4\u8f83\u4e8e\u5355\u4f4d\u65f6\u95f4\u5185\u8bf7\u6c42\u6570\uff0c \u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u80fd\u591f\u5f88\u597d\u7684\u53cd\u9988\u5f53\u524d\u7684\u7cfb\u7edf\u7e41\u5fd9\u7a0b\u5ea6\uff0c\u56e0\u4e3a\u4e00\u4e2a\u8bf7\u6c42\u7684\u65f6\u5ef6\u589e\u52a0\uff0c\u4f1a\u5bfc\u81f4\u5f53\u524d\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u589e\u52a0\u3002\u5bf9\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c \u53ef\u4ee5\u8bbe\u7f6e\u7a0d\u5fae\u5c0f\u4e00\u70b9\u7684\u503c\uff1b\u5bf9\u4e8eIO\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u7a0d\u5fae\u5927\u4e00\u70b9\u7684\u503c\u3002 </p>"},{"location":"featured-topics/secrets/fail-fast.html#_2","title":"\u7ebf\u7a0b\u6c60\u961f\u5217\u548c\u8fde\u63a5\u6c60\u961f\u5217","text":"<p>\u5728\u7ebf\u7a0b\u6c60\u5165\u961f\u548c\u51fa\u961f\u7684\u65f6\u5019\uff0c\u8fdb\u884c\u5feb\u901f\u5931\u8d25\uff0c\u4e5f\u662f\u975e\u5e38\u5e38\u7528\u800c\u4e14\u6bd4\u8f83\u6709\u6548\u7684\u624b\u6bb5\u3002 </p> <pre><code>servicecomb:\n  executor:\n    default:\n      maxQueueSize-per-group: 1000\n</code></pre> <p>\u4e0a\u8ff0\u914d\u7f6e\u9650\u5236\u4e86\u7ebf\u7a0b\u6c60\u7684\u961f\u5217\u5927\u5c0f\uff0c \u5c11\u91cf\u7684\u8fc7\u8f7d\u8bf7\u6c42\u4f1a\u88ab\u6392\u961f\uff0c\u961f\u5217\u8d85\u9650\u540e\u5c31\u4f1a\u5feb\u901f\u62d2\u7edd\u5e76\u5931\u8d25\u3002 </p> <pre><code>servicecomb:\n  rest:\n    server:\n      requestWaitInPoolTimeout: 1000\n</code></pre> <p>Java Chassis\u5728\u51fa\u961f\u7684\u65f6\u5019\uff0c\u4e5f\u4f1a\u68c0\u6d4b\u4efb\u52a1\u7b49\u5f85\u7684\u65f6\u95f4\u3002 \u5982\u679c\u7b49\u5f85\u65f6\u95f4\u8fc7\u957f\uff0c \u4e5f\u4f1a\u7acb\u5373\u62d2\u7edd\u8be5\u4efb\u52a1\uff0c\u907f\u514d\u989d\u5916\u7684\u5904\u7406\u8d44\u6e90\u6d6a\u8d39\u3002 </p> <p>\u7ebf\u7a0b\u6c60\u961f\u5217\u4e0d\u9002\u7528\u4e8eedge service\u6216\u8005\u91c7\u7528reactive\u5b9a\u4e49\u63a5\u53e3\u7684\u573a\u666f\uff0c \u5728reactive\u6a21\u5f0f\uff0c\u901a\u5e38\u7684\u7ade\u4e89\u8d44\u6e90\u662f\u8fde\u63a5\u6c60\uff0c\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u914d\u7f6e\u9879\u63a7\u5236\u8fde\u63a5\u6c60\u7b49\u5f85\u961f\u5217\uff1a</p> <pre><code>servicecomb:\n  rest:\n    client:\n      maxWaitQueueSize: 100\n</code></pre>"},{"location":"featured-topics/secrets/fail-fast.html#_3","title":"\u5168\u5c40\u7684\u8d85\u65f6\u68c0\u6d4b","text":"<p>\u4e00\u822c\u7684RPC\u7cfb\u7edf\u4f1a\u9488\u5bf9\u8bf7\u6c42\u53d1\u9001\u5230\u54cd\u5e94\u63a5\u6536\u8bbe\u7f6e\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\u3002 \u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\u901a\u5e38\u7684\u8c03\u7528\u5173\u7cfb\u6bd4\u8f83\u590d\u6742\u3002 \u6bd4\u5982\u4e00\u4e2a\u8bf7\u6c42\u94fe\u8def\u53ef\u80fd\u6d89\u53ca a -&gt; b -&gt; c -&gt; d\u3002  \u5982\u679c\u6211\u4eec\u7684\u8bbe\u8ba1\u76ee\u6807\u662f\u8bf7\u6c42\u5904\u7406\u65f6\u95f4\u5c0f\u4e8e30s\uff0c \u5982\u679c\u5728 b \u63a5\u6536\u5230 a \u7684\u8bf7\u6c42\u7684\u65f6\u5019\uff0c \u53d1\u73b0\u5df2\u7ecf\u5904\u7406\u4e86 30s\uff0c b\u5b8c\u5168\u53ef\u4ee5\u4e0d\u9700\u8981\u8bf7\u6c42c\u6765\u5904\u7406\u8fd9\u4e2a\u8bf7\u6c42\uff0c \u5feb\u901f\u5931\u8d25\u3002 Java Chassis \u80fd\u591f\u5728\u4efb\u52a1\u5904\u7406\u7684\u5173\u952e\u9636\u6bb5\uff0c\u8fdb\u884c\u5168\u5c40\u7684\u5df2\u7ecf\u5904\u7406\u7684\u65f6\u95f4\u68c0\u67e5\u3002 </p> <p>\u5168\u5c40\u7684\u8d85\u65f6\u68c0\u6d4b\u53ef\u4ee5\u5904\u7406\u5bf9\u5feb\u901f\u5931\u8d25\u6709\u975e\u5e38\u7279\u6b8a\u8981\u6c42\u7684\u4e1a\u52a1\u573a\u666f\uff0c\u8003\u8651\u5230\u591a\u6570\u60c5\u51b5\u4e0b\u90fd\u4f1a\u5f88\u5c11\u4f7f\u7528\uff0c\u8fd9\u91cc\u4e0d\u5728\u8be6\u7ec6\u63cf\u8ff0\u5176\u6280\u672f\u7ec6\u8282\uff0c \u611f\u5174\u8da3\u7684\u5f00\u53d1\u8005\u53ef\u4ee5\u53c2\u8003Java Chassis\u7684\u5f00\u53d1\u6307\u5bfc\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u7cfb\u7edf\u6bdb\u523a\uff08\u6307\u7cfb\u7edf\u4e2d\u6781\u4f4e\u6982\u7387\u7684\u8bf7\u6c42\u7f13\u6162\u6216\u8005\u5904\u7406\u8d85\u65f6\uff09\u662f\u56f0\u6270\u89c9\u5927\u591a\u6570\u5e94\u7528\u7684\u8001\u5927\u96be\u95ee\u9898\u3002 \u56e0\u4e3a\u5bfc\u81f4\u7cfb\u7edf\u6bdb\u523a\u7684\u56e0\u7d20\u975e\u5e38\u591a\uff0c\u5305\u62ec\u8bf7\u6c42\u7684\u5206\u5e03\u4e0d\u5747\u8861\u3001CPU\u8c03\u5ea6\u7684\u4e0d\u53ef\u9884\u671f\u3001\u5783\u573e\u56de\u6536\u7b49\u7b49\u3002 \u7cfb\u7edf\u6bdb\u523a\u7ed9\u5ba2\u6237\u7684\u7528\u6237\u4f53\u9a8c\u8bc4\u4ef7\u5e26\u6765\u5f88\u591a\u8d1f\u9762\u7684\u5f71\u54cd\uff0c\u6574\u4f53\u8bf7\u6c42\u6210\u529f\u7387\u504f\u4f4e\uff0c\u5e73\u5747\u54cd\u5e94\u65f6\u5ef6\u504f\u9ad8\u3002 \u4e3a\u4e86\u6539\u5584\u6bdb\u523a\uff0c\u65e9\u671f\u7684\u4e3b\u8981\u673a\u5236\u662f\u8bbe\u7f6e\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0c\u5305\u62ec\u8bbe\u7f6e\u67d0\u4e2a\u5177\u4f53\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0c\u6216\u8005\u6839\u636e\u8c03\u7528\u7684\u987a\u5e8f\uff0c\u914d\u7f6e\u9010\u7ea7\u9012\u51cf\u7684\u8d85\u65f6\u65f6\u95f4\u3002 \u8d85\u65f6\u65f6\u95f4\u7684\u914d\u7f6e\u786e\u5b9e\u8d77\u5230\u4e86\u5feb\u901f\u5931\u8d25\u7684\u76ee\u7684\uff0c\u7136\u800c\u5728HTTP\u573a\u666f\u4e0b\uff0c\u8d85\u65f6\u4f1a\u5bfc\u81f4\u5173\u95ed\u8fde\u63a5\u5e76\u91cd\u65b0\u5efa\u8fde\uff0c\u5728\u5927\u5e76\u53d1\u573a\u666f\uff0c\u4f1a\u5f15\u5165\u66f4\u957f\u65f6\u95f4\u7684\u6bdb\u523a\u548c\u8bf7\u6c42\u8d85\u65f6\u3002 \u5f15\u5165\u6d41\u91cf\u68b3\u7406\u548c\u9694\u79bb\u4ed3\u673a\u5236\u540e\uff0c\u7cfb\u7edf\u6bdb\u523a\u95ee\u9898\u548c\u8d85\u65f6\u5bfc\u81f4\u7684\u8fde\u63a5\u91cd\u8fde\u95ee\u9898\u5f97\u5230\u4e86\u6781\u5927\u7684\u6539\u5584\u3002 </p>"},{"location":"featured-topics/secrets/interoperability.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u4e0eSpring Cloud\u7684\u4e92\u64cd\u4f5c","text":"<p>Java Chassis 3\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u8bbe\u8ba1\u539f\u5219\uff1a\u5229\u7528\u67b6\u6784\u7684\u97e7\u6027\u8bbe\u8ba1\u6765\u89e3\u51b3\u517c\u5bb9\u6027\u95ee\u9898\u3002 </p> <p></p> <p>\u6bd4\u5982\u901a\u8fc7\u5f15\u5165\u5fae\u670d\u52a1\u7f51\u5173\uff0c\u6765\u89e3\u51b3\u4e0d\u540c\u8bed\u8a00\u3001\u4e0d\u540c\u6846\u67b6\u3001\u9057\u7559\u7cfb\u7edf\u4e4b\u95f4\u7684\u4e92\u64cd\u4f5c\u95ee\u9898\u3002 \u672c\u6587\u5728\u8fd9\u4e2a\u67b6\u6784\u539f\u5219\u57fa\u7840\u4e0a\uff0c\u8ba8\u8bba\u4e00\u4e2a\u66f4\u52a0\u7ec6\u7c92\u5ea6\u7684\u4e92\u64cd\u4f5c\u95ee\u9898\uff0c\u5e76\u501f\u6b64\u89e3\u5bc6Java Chassis3\u5728\u8fd0\u884c\u65f6\u8bbe\u8ba1\u4f9d\u8d56\u4e0a\u7684\u6280\u672f\u7ec6\u8282\u3002</p> <p>\u9996\u5148\uff0c\u6211\u4eec\u63cf\u8ff0\u4e00\u4e2a\u4e92\u64cd\u4f5c\u7684\u573a\u666f\u548c\u5047\u8bbe\u3002 </p> <p></p> <ul> <li>Spring Cloud\u548cJava Chassis\u5e94\u7528\u540c\u65f6\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\u3002\u5f15\u5165\u4e86Spring Cloud Gateway\u4f5c\u4e3a\u7f51\u5173\uff0c\u7f51\u5173\u4e5f\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\u3002 </li> <li>Spring Cloud\u5fae\u670d\u52a1\u548cJava Chassis\u5fae\u670d\u52a1\u76f8\u4e92\u8c03\u7528\u3002\u5b83\u4eec\u5f7c\u6b64\u4f5c\u4e3a\u6d88\u8d39\u8005\u7684\u65f6\u5019\uff0c\u4e0d\u9700\u8981\u611f\u77e5\u5bf9\u65b9\u662f\u4e0d\u540c\u7684\u6846\u67b6\uff0c\u505a\u5230\u900f\u660e\u8c03\u7528\u3002 </li> </ul> <p>\u4ece\u6280\u672f\u539f\u7406\u4e0a\u68b3\u7406\u4e0b\u4e0a\u8ff0\u4e92\u64cd\u4f5c\u9700\u8981\u6ee1\u8db3\u7684\u6761\u4ef6\uff1a</p> <ul> <li>Spring Cloud\u548cJava Chassis\u9700\u8981\u6709\u76f8\u4e92\u8ba4\u8bc6\u7684\u6ce8\u518c\u4fe1\u606f\u3002\u6838\u5fc3\u5305\u62ec\uff1a\u5e94\u7528\u540d\u79f0\u3001\u670d\u52a1\u540d\u79f0\u3001\u5730\u5740\u4fe1\u606f\u548c\u683c\u5f0f\u7b49\u3002 \u9700\u8981\u7684\u5171\u540c\u6ce8\u518c\u4e2d\u5fc3\u8d8a\u5c11\uff0c\u8d8a\u5bb9\u6613\u5bf9\u6ce8\u518c\u4e2d\u5fc3\u548c\u5ba2\u6237\u7aef\u8fdb\u884c\u9009\u578b\u3002 \u5728\u672c\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9009\u62e9 <code>Service Center</code> \u6216\u8005 <code>Nacos</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u5e76\u9009\u62e9Spring Cloud Huawei\u5b9e\u73b0Spring Cloud\u6ce8\u518c\u3002 </li> <li>Spring Cloud\u8bbf\u95eeJava Chassis\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u5730\u5740\u4fe1\u606f\uff0c\u4f9d\u8d56\u8f83\u5c11\u3002 Java Chassis\u8bbf\u95eeSpring Cloud\uff0c\u9700\u8981\u77e5\u9053Spring Cloud\u5e94\u7528\u63d0\u4f9b\u7684\u5951\u7ea6\u4fe1\u606f\u3002 </li> </ul> <p>Java Chassis\u533a\u522b\u4e8eSpring Cloud\u7684REST\u8c03\u7528\u7684\u90e8\u5206\uff0c\u5c31\u662f\u5951\u7ea6\u4f9d\u8d56\u3002 Spring Cloud\u901a\u8fc7FeignClient\u6765\u58f0\u660e\u5ba2\u6237\u7aef\u5951\u7ea6\uff0c\u5ba2\u6237\u7aef\u90fd\u9700\u8981\u5728FeignClient\u4e2d\u91cd\u590d\u4e66\u5199REST\u6807\u7b7e\uff1bJava Chassis\u6709\u4e24\u79cd\u6a21\u5f0f\u53d1\u73b0\u5951\u7ea6\uff1a\u4ece\u6ce8\u518c\u4e2d\u5fc3\u53d1\u73b0\u548c\u4eceProvider\u5b9e\u4f8b\u53d1\u73b0\u3002 Java Chassis3\u9ed8\u8ba4\u91c7\u7528\u4eceProvider\u5b9e\u4f8b\u53d1\u73b0\uff0c Java Chassis2\u91c7\u7528\u4ece\u6ce8\u518c\u4e2d\u5fc3\u53d1\u73b0\u3002 \u4eceProvider\u53d1\u73b0\u7684\u597d\u5904\u662f\u53ef\u4ee5\u964d\u4f4e\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u5143\u6570\u636e\u7ba1\u7406\u80fd\u529b\u7684\u8981\u6c42\uff0c\u672c\u4f8b\u65e2\u53ef\u4ee5\u91c7\u7528 <code>Service Center</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9 <code>Nacos</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u3002 </p> <p>\u4eceProvider\u53d1\u73b0\uff0c\u8981\u6c42Provider\u5b9e\u73b0\u5982\u4e0b\u63a5\u53e3\uff1a</p> <pre><code>/**\n * Java Chassis internal management apis.\n */\n@Path(\"/scb/management\")\npublic interface ManagementEndpoint {\n  String NAME = \"scb-management\";\n\n  /**\n   * Health of this instance. If the instanceId match this instance, and this service is ready\n   * to service return true. Otherwise, return false.\n   *\n   * This api is for internal instance status usage. Load balancer will call this api to check if\n   * the target instance is alive.\n   */\n  @GET\n  @Path(\"/health\")\n  boolean health(@QueryParam(\"instanceId\") String instanceId, @QueryParam(\"registryName\") String registryName);\n\n  /**\n   * Schemas of this instance.\n   *\n   * This api is for internal schema loading usage.\n   */\n  @POST\n  @Path(\"/schema/contents\")\n  Map&lt;String, String&gt; schemaContents();\n}\n</code></pre> <p>\u5b83\u5305\u542b\u4e00\u4e2a\u5065\u5eb7\u68c0\u67e5\u63a5\u53e3\u548c\u4e00\u4e2a\u67e5\u8be2\u5951\u7ea6\u7684\u63a5\u53e3\u3002 \u5f53Spring Cloud\u5e94\u7528\u5b9e\u73b0\u4e0a\u8ff0\u63a5\u53e3\u4ee5\u540e\uff0c\u5b83\u5c31\u5177\u5907\u4e86Java Chassis\u5fae\u670d\u52a1\u9700\u8981\u7684\u57fa\u7840\u7279\u5f81\uff0c\u8fd9\u6837Java Chassis\u5c31\u53ef\u4ee5\u50cf\u8bbf\u95ee\u672c\u6846\u67b6\u7684\u5fae\u670d\u52a1\u4e00\u6837\u8bbf\u95eeSpring Cloud\u6846\u67b6\u5f00\u53d1\u7684\u5fae\u670d\u52a1\u5e94\u7528\u3002 \u4e3a\u4e86\u7b80\u5316\uff0c\u5728Spring Cloud\u7b80\u5355\u5b9e\u73b0\u4e86\u8be5\u63a5\u53e3\uff0c\u8be5\u5b9e\u73b0\u63a5\u53e3\u4ece <code>export</code> \u76ee\u5f55\u52a0\u8f7d\u5951\u7ea6\u4fe1\u606f\uff0c\u53ea\u9700\u8981\u5c06Spring Cloud\u9700\u8981\u5bf9\u5916\u66b4\u9732\u7684 REST \u63a5\u53e3\u7684\u7b26\u5408 Open API 3.0\u89c4\u8303\u7684\u5951\u7ea6\u6587\u4ef6\u653e\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u9762 \u3002</p> <pre><code>@RestController\n@RequestMapping((\"/scb/management\"))\npublic class JavaChassisManagementEndpoint {\n  private static final Logger LOGGER = LoggerFactory.getLogger(JavaChassisManagementEndpoint.class);\n\n  @Autowired\n  private Registration registration;\n\n  @GetMapping(path = \"/health\")\n  public boolean health(@RequestParam(\"instanceId\") String instanceId,\n      @RequestParam(\"registryName\") String registryName) {\n    return \"sc-registry\".equals(registryName) &amp;&amp; registration.getInstanceId().equals(instanceId);\n  }\n\n  @PostMapping(path = \"/schema/contents\")\n  public Map&lt;String, String&gt; schemaContents() {\n    try {\n      List&lt;URI&gt; resourceUris = ResourceUtil.findResourcesBySuffix(\"export\", \".yaml\");\n      Map&lt;String, String&gt; result = new HashMap&lt;&gt;(resourceUris.size());\n      for (URI uri : resourceUris) {\n        String path = uri.toURL().getPath();\n        String[] segments = path.split(\"/\");\n        if (segments.length &lt; 2 || !\"export\".equals(segments[segments.length - 2])) {\n          continue;\n        }\n        result.put(segments[segments.length - 1].substring(0, segments[segments.length - 1].indexOf(\".yaml\")),\n            IOUtils.toString(uri, StandardCharsets.UTF_8));\n      }\n      return result;\n    } catch (IOException | URISyntaxException e) {\n      LOGGER.error(\"Load schema ids failed from microservices. {}.\", e.getMessage());\n      return Collections.emptyMap();\n    }\n  }\n}\n</code></pre> <p>Java Chassis\u4e0eSpring Cloud\u4e92\u64cd\u4f5c\u7684\u4f8b\u5b50\u653e\u5230\u4e86ServiceComb Samples \uff0c \u8fd9\u4e2a\u4f8b\u5b50\u4e5f\u63d0\u4f9b\u4e86\u4f7f\u7528 Nacos \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u7684\u5b9e\u73b0\uff0c \u53ea\u9700\u8981\u5c06 Profile \u8bbe\u7f6e\u4e3a Nacos \u5373\u53ef\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u5728\u67b6\u6784\u9009\u578b\u53d8\u5316\u7684\u65f6\u5019\uff0c\u89e3\u51b3\u529f\u80fd\u8fc1\u79fb\u548c\u517c\u5bb9\u6027\u95ee\u9898\u662f\u6700\u5927\u7684\u6311\u6218\u3002\u4e00\u4e9b\u5ba2\u6237\u5c06Spring Cloud\u5e94\u7528\u6539\u9020\u4e3aJava Chassis\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0\u4e00\u4e9b\u529f\u80fd\u4e0d\u652f\u6301\uff0c\u6bd4\u5982SseEmitter\u3001WebSocket\u7b49\u3002 \u5982\u679c\u9009\u62e9\u652f\u6301\u8fd9\u4e9b\u80fd\u529b\uff0cJava Chassis\u9700\u8981\u5b9e\u73b0\u5f88\u591aServlet\u80fd\u529b\uff0c\u8fd9\u4e9b\u80fd\u529b\u89c4\u5212\u4f1a\u548c\u5fae\u670d\u52a1\u6280\u672f\u67b6\u6784\u5b58\u5728\u51b2\u7a81\u3002 \u5bf9\u4e8e\u8fd9\u4e9b\u573a\u666f\uff0c\u6211\u4eec\u9009\u62e9\u901a\u8fc7\u67b6\u6784\u97e7\u6027\u6765\u4fdd\u7559\u8fd9\u4e9b\u529f\u80fd\uff0c\u6bd4\u5982\u5c06\u63d0\u4f9bSseEmitter\u3001WebSocket\u529f\u80fd\u7684\u72ec\u7acb\u51fa\u5fae\u670d\u52a1\uff0c\u91c7\u7528Spring Boot\u5f00\u53d1\uff0c\u8fd9\u4e9b\u5e94\u7528\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528Java Chassis\u5fae\u670d\u52a1\u7684REST\u63a5\u53e3\u6765\u5b9e\u73b0\u5176\u7279\u6b8a\u529f\u80fd\u3002\u901a\u8fc7\u8fd9\u79cd\u67b6\u6784\u97e7\u6027\u7684\u7406\u5ff5\uff0c\u964d\u4f4e\u4e86\u6280\u672f\u6301\u7eed\u6f14\u8fdb\u7684\u5305\u88b1\uff0c\u4e3a\u654f\u6377\u8fed\u4ee3\uff0c\u6301\u7eed\u521b\u65b0\u5960\u5b9a\u4e86\u65b9\u5411\uff0c\u51cf\u5c11\u4e86\u517c\u5bb9\u6027\u95ee\u9898\u7684\u4e89\u8bba\u3002 </p>"},{"location":"featured-topics/secrets/load-balancer.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668","text":"<p>\u8d1f\u8f7d\u5747\u8861\u7528\u4e8e\u7ba1\u7406\u5fae\u670d\u52a1\u5b9e\u4f8b\u4e4b\u95f4\u7684\u8bbf\u95ee\u7b56\u7565\u3002\u5b83\u8d1f\u8d23\u5728\u6bcf\u6b21\u8bf7\u6c42\u4e2d\u9ad8\u6548\u9009\u62e9\u76ee\u6807\u5b9e\u4f8b\uff0c\u5e76\u4fdd\u6301\u8bf7\u6c42\u5728\u591a\u4e2a\u76ee\u6807\u5b9e\u4f8b\u4e2d\u5747\u8861\u3002\u76ee\u6807\u5b9e\u4f8b\u9009\u62e9\u8fc7\u7a0b\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u793a\u4f8b\u56fe\u7b80\u5355\u5c55\u793a\uff1a</p> <p></p> <p>AZ\u4eb2\u548c\u662f\u5e38\u89c1\u7684\u9009\u62e9\u5668\u4e4b\u4e00\u3002\u5b83\u6839\u636e\u672c\u5b9e\u4f8b\u7684AZ\u4fe1\u606f\u548c\u76ee\u6807\u5b9e\u4f8b\u7684AZ\u4fe1\u606f\uff0c\u786e\u5b9a\u5408\u9002\u7684\u76ee\u6807\u5b9e\u4f8b\u5b50\u96c6\uff0c\u5b9e\u4f8b\u5b50\u96c6\u4e0e\u672c\u5b9e\u4f8b\u5177\u6709\u76f8\u540c\u7684AZ\u4fe1\u606f\u3002</p> <p>\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668\u662f\u4e00\u4e2a\u5178\u578b\u7684\u804c\u8d23\u94fe\u6a21\u5f0f\u3002</p> <ul> <li>Ribbon \u7684\u804c\u8d23\u94fe</li> </ul> <pre><code>public interface ServerListFilter&lt;T extends Server&gt; {\n  List&lt;T&gt; getFilteredListOfServers(List&lt;T&gt; servers);\n}\n</code></pre> <ul> <li>Spring Cloud Commons \u7684\u804c\u8d23\u94fe</li> </ul> <pre><code>public abstract class DelegatingServiceInstanceListSupplier implements ServiceInstanceListSupplier, InitializingBean, DisposableBean {\n  protected final ServiceInstanceListSupplier delegate;\n\n  public DelegatingServiceInstanceListSupplier(ServiceInstanceListSupplier delegate) {\n    this.delegate = delegate;\n  }\n\n  public ServiceInstanceListSupplier getDelegate() {\n    return this.delegate;\n  }\n}\n</code></pre> <ul> <li>Java Chassis \u7684\u804c\u8d23\u94fe</li> </ul> <pre><code>public interface DiscoveryFilter extends Ordered {\n  DiscoveryTreeNode discovery(DiscoveryContext context, DiscoveryTreeNode parent);\n}\n</code></pre> <p>Java Chassis \u4f7f\u7528\u4e86\u6811\u578b\u7ed3\u6784\u7684\u804c\u8d23\u94fe\uff0c\u5b83\u7684\u5de5\u4f5c\u8fc7\u7a0b\u5982\u4e0b\uff1a</p> <ul> <li>\u5c06\u5b9e\u4f8b\u9884\u5206\u7ec4\u3002</li> <li>\u901a\u8fc7\u6811\u578b\u7ed3\u6784\u7d22\u5f15\uff0c\u5feb\u901f\u627e\u5230\u76ee\u6807\u5b9e\u4f8b\u96c6\u5408\u3002</li> <li>\u5f53\u67d0\u4e2a\u6811\u8282\u70b9\u4e3a\u7a7a\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u8fd4\u56de\u4e0a\u5c42\u9009\u62e9\u5668\uff0c\u91cd\u65b0\u67e5\u627e\u3002 </li> </ul> <p>\u80fd\u591f\u5feb\u901f\u68c0\u7d22\u5230\u5b9e\u4f8b\u7684\u573a\u666f\uff1a</p> <p></p> <p>\u51fa\u73b0\u5b9e\u4f8b\u4e3a\u7a7a\u7684\u7684\u573a\u666f\uff1a</p> <p></p> <p>\u76f8\u5bf9\u4e8e\u7ebf\u6027\u7684\u804c\u8d23\u94fe\u6a21\u5f0f\uff0c\u6811\u578b\u804c\u8d23\u94fe\u6a21\u5f0f\u5b58\u5728\u4e24\u65b9\u9762\u660e\u663e\u7684\u4f18\u52bf\uff1a</p> <ul> <li>\u8ba1\u7b97\u590d\u6742\u5ea6\u4ece O(N) \u964d\u4f4e\u4e3a O(1)\u3002 \u5f53\u5b9e\u4f8b\u89c4\u6a21\u5f88\u5927\uff0c\u6bd4\u5982\u8d85\u8fc71000\u7684\u65f6\u5019\uff0c\u8be5\u7b97\u6cd5\u80fd\u591f\u6781\u5927\u7684\u964d\u4f4eCPU\u4f7f\u7528\u7387\uff0c\u51cf\u5c11\u5783\u573e\u56de\u6536\u7684\u6570\u91cf\u3002 </li> <li>\u80fd\u591f\u89e3\u51b3\u4e0a\u5c42\u9009\u62e9\u5668\u7684\u7ed3\u679c\u5728\u4e0b\u5c42\u9009\u62e9\u5668\u7684\u7ed3\u679c\u4e3a\u7a7a\u7684\u95ee\u9898\u3002\u6bd4\u5982\u5728AZ\u4eb2\u548c\u573a\u666f\uff0c\u5982\u679c\u672cAZ\u7684\u5b9e\u4f8b\u4e0d\u6ee1\u8db3\u540e\u7eed\u9009\u62e9\u5668\u7684\u6761\u4ef6\uff0c\u90a3\u4e48\u4f7f\u7528\u975e\u672cAZ\u7684\u5b9e\u4f8b\uff0c\u80fd\u591f\u786e\u4fdd\u672c\u6b21\u8bbf\u95ee\u7684\u6b63\u786e\u6027\uff0c\u964d\u4f4e\u9519\u8bef\u7387\uff0c\u4e5f\u80fd\u591f\u66f4\u597d\u7684\u6ee1\u8db3\u8bf7\u6c42\u5747\u8861\u7684\u8981\u6c42\u3002</li> </ul> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u5728\u67d0\u4e2a\u5ba2\u6237\u7684\u5b9e\u9645\u573a\u666f\u4e2d\uff0c\u5982\u679c\u5b9e\u4f8b\u6570\u8d85\u8fc71000\uff0c\u8d1f\u8f7d\u5747\u8861\u7684CPU\u6d88\u8017\u5360\u5230\u6574\u4e2a\u8bf7\u6c42\u5904\u7406\u65f6\u95f4\u768420%\u4ee5\u4e0a\uff0c\u968f\u7740\u5e94\u7528\u89c4\u6a21\u7684\u53d8\u5927\uff0c\u8d1f\u8f7d\u5747\u8861\u5904\u7406\u7b97\u6cd5\u7684\u6027\u80fd\u4f18\u5316\u53d8\u5f97\u66f4\u52a0\u91cd\u8981\u4e86\u3002 </p>"},{"location":"featured-topics/secrets/registries.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6613\u6269\u5c55\u7684\u591a\u79cd\u6ce8\u518c\u4e2d\u5fc3\u652f\u6301","text":"<p>Java Chassis \u7684\u65e9\u671f\u7248\u672c\u4f9d\u8d56\u4e8e Service Center\uff0c\u63d0\u4f9b\u4e86\u5f88\u591a\u5dee\u5f02\u5316\u7684\u7ade\u4e89\u529b\uff1a</p> <ul> <li>\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u3002 \u901a\u8fc7\u6ce8\u518c\u4e2d\u5fc3\u7ba1\u7406\u5fae\u670d\u52a1\u7684\u6bcf\u4e2a\u7248\u672c\u7684\u5143\u6570\u636e\uff0c\u7279\u522b\u662f\u5951\u7ea6\u6570\u636e\u3002 \u7ed3\u5408\u5951\u7ea6\u6570\u636e\uff0c\u80fd\u591f\u5b9e\u73b0\u7248\u672c\u7ea7\u522b\u7684\u8def\u7531\u80fd\u529b\u3002 \u6bd4\u5982\u4e00\u4e2a\u5fae\u670d\u52a1\u5b58\u5728 v1 \u548c v2 \u4e24\u4e2a\u7248\u672c\uff0c \u5176\u4e2d v1 \u7248\u672c\u5b58\u5728\u63a5\u53e3 op1, op2\uff0c v2 \u7248\u672c\u5b58\u5728\u63a5\u53e3 op1, op2, op3\uff0c \u5728\u7070\u5ea6\u573a\u666f\uff0c Java Chassis\u80fd\u591f\u81ea\u52a8\u5c06 op3 \u7684\u8bbf\u95ee\u8f6c\u53d1\u5230 v2 \u7248\u672c\uff0c\u5c06 op1, op2 \u7684\u8bbf\u95ee\u5728 v1, v2\u7248\u672c\u505a\u8d1f\u8f7d\u5747\u8861\u3002 </li> <li>\u57fa\u4e8e version-rule \u7684\u5b9e\u4f8b\u9009\u62e9\u3002 \u5ba2\u6237\u7aef\u80fd\u591f\u914d\u7f6e version-rule\uff0c \u6bd4\u5982 last, 2.0+\u7b49\u3002 \u8fd9\u6837\u5ba2\u6237\u7aef\u80fd\u591f\u6839\u636e\u5b9e\u9645\u60c5\u51b5\uff0c\u7b5b\u9009\u5b9e\u4f8b\u7684\u7248\u672c\u3002 </li> </ul> <p>Java Chassis\u8fc7\u5ea6\u4f9d\u8d56 Service Center\uff0c \u4e3a\u4ea7\u54c1\u7684\u53d1\u5c55\u5e26\u6765\u4e86\u4e00\u4e9b\u74f6\u9888\u3002 Java Chassis\u7684\u751f\u6001\u63a8\u5e7f\u4f9d\u8d56\u4e8e Service Center\u7684\u751f\u6001\u63a8\u5e7f\uff0c \u4e0d\u5229\u4e8eJava Chassis\u88ab\u66f4\u591a\u7528\u6237\u4f7f\u7528\u3002 \u968f\u7740\u4e91\u7684\u53d1\u5c55\uff0c \u8d8a\u6765\u8d8a\u591a\u7684\u5ba2\u6237\u4e5f\u671f\u671b\u4e00\u5957\u4ee3\u7801\uff0c\u80fd\u591f\u5728\u4e0d\u540c\u7684\u4e91\u73af\u5883\u8fd0\u884c\uff0c\u6709\u4e9b\u4e91\u4ea7\u5546\u672a\u63d0\u4f9bService Center\u8fd0\u884c\u73af\u5883\uff0c\u90a3\u4e48\u7528\u6237\u9009\u62e9Java Chassis \u5c31\u4f1a\u5b58\u5728\u987e\u8651\u3002 </p> <p>\u57fa\u4e8e\u4e0a\u8ff0\u539f\u56e0\uff0c Java Chassis\u7b80\u5316\u4e86\u6ce8\u518c\u53d1\u73b0\u7684\u4f9d\u8d56\uff0c\u5b9a\u4e49\u4e86\u7b80\u5355\u5bb9\u6613\u5b9e\u73b0\u7684\u63a5\u53e3\uff0c\u5e76\u57fa\u4e8e <code>Nacos</code> \u63d0\u4f9b\u4e86\u5b9e\u73b0\uff0c\u672a\u6765\u8fd8\u4f1a\u63d0\u4f9b <code>zookeeper</code> \u7b49\u5b9e\u73b0\u3002 Java Chassis \u91c7\u7528\u4e86\u4e00\u7cfb\u5217\u65b0\u7684\u8bbe\u8ba1\u6a21\u5f0f\uff0c \u4fdd\u8bc1\u4e86\u5728\u964d\u4f4e\u6ce8\u518c\u4e2d\u5fc3\u529f\u80fd\u4f9d\u8d56\u7684\u524d\u63d0\u4e0b\uff0c\u4e0d\u964d\u4f4e\u5e94\u7528\u81ea\u8eab\u7684\u53ef\u9760\u6027\u3002 </p>"},{"location":"featured-topics/secrets/registries.html#_1","title":"\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u7684\u66ff\u4ee3\u65b9\u6848","text":"<p>\u4f9d\u8d56\u4e8e Service Center\uff0c Java Chassis\u63d0\u4f9b\u4e86\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u3002 Java Chassis 3 \u9996\u5148\u505a\u7684\u4e00\u4e2a\u53d8\u5316\u662f\u5220\u9664\u4e86\u5bf9\u4e8e\u63a5\u53e3\u7ea7\u522b\u8f6c\u53d1\u7684\u652f\u6301\u3002 \u8fd9\u6837\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u7684\u4f9d\u8d56\u590d\u6742\u5ea6\u81f3\u5c11\u53ef\u4ee5\u964d\u4f4e 70%\u3002 \u7136\u800c\u7070\u5ea6\u573a\u666f\u4f9d\u7136\u5bf9\u5f88\u591a\u4e1a\u52a1\u6bd4\u8f83\u91cd\u8981\uff0c Java Chassis 3\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002 \u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u7684\u597d\u5904\u662f\u4e0d\u7528\u4f9d\u8d56\u6ce8\u518c\u4e2d\u5fc3\u63d0\u4f9b\u7248\u672c\u5143\u6570\u636e\u7ba1\u7406\u80fd\u529b\uff0c\u53ea\u9700\u8981\u6bcf\u4e2a\u5b9e\u4f8b\u5177\u5907\u7248\u672c\u53f7\u7b49\u7b80\u5355\u5143\u6570\u636e\u4fe1\u606f\u3002 </p> <pre><code>servicecomb:\n  # enable router for edge service\n  router:\n    type: router\n  routeRule:\n    business: |\n      - precedence: 2\n        match:\n          apiPath:\n            prefix: \"/business/v2\"\n        route:\n          - weight: 100\n            tags:\n              version: 2.0.0\n      - precedence: 1\n        match:\n          apiPath:\n            prefix: \"/business/v1/dec\"\n        route:\n          - weight: 50\n            tags:\n              version: 1.1.0\n          - weight: 50\n            tags:\n              version: 2.0.0\n</code></pre>"},{"location":"featured-topics/secrets/registries.html#_2","title":"\u6ce8\u518c\u53d1\u73b0\u63a5\u53e3\u53ca\u5176\u5b9e\u73b0","text":"<p>Java Chassis 3 \u53ea\u9700\u8981\u4f7f\u7528 <code>Discovery</code> \u63a5\u53e3\u5c31\u80fd\u591f\u63d0\u4f9b\u65b0\u7684\u6ce8\u518c\u53d1\u73b0\u652f\u6301\u3002 Java Chassis\u4f1a\u8c03\u7528 <code>findServiceInstances</code> \u67e5\u8be2\u5b9e\u4f8b\uff0c\u5982\u679c\u540e\u7eed\u5b9e\u4f8b\u53d1\u751f\u53d8\u66f4\uff0c\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u73b0\u901a\u8fc7 <code>InstanceChangedListener</code> \u901a\u77e5 Java Chassis. </p> <pre><code>/**\n * This is the core service discovery interface. &lt;br/&gt;\n */\npublic interface Discovery&lt;D extends DiscoveryInstance&gt; extends SPIEnabled, SPIOrder, LifeCycle {\n  interface InstanceChangedListener&lt;D extends DiscoveryInstance&gt; {\n    /**\n     * Called by Discovery Implementations when instance list changed.\n     * @param registryName Name of the calling discovery implementation\n     * @param application Microservice application\n     * @param serviceName Microservice name\n     * @param updatedInstances The latest updated instances.\n     */\n    void onInstanceChanged(String registryName, String application, String serviceName, List&lt;D&gt; updatedInstances);\n  }\n\n  String name();\n\n  /**\n   * If this implementation enabled for this microservice.\n   */\n  boolean enabled(String application, String serviceName);\n\n  /**\n   * Find all instances.\n   *\n   * Life Cycle\uff1aThis method is called anytime after &lt;code&gt;run&lt;/code&gt;.\n   *\n   * @param application application\n   * @param serviceName microservice name\n   * @return all instances match the criteria.\n   */\n  List&lt;D&gt; findServiceInstances(String application, String serviceName);\n\n  /**\n   * Discovery can call InstanceChangedListener when instance get changed.\n   */\n  void setInstanceChangedListener(InstanceChangedListener&lt;D&gt; instanceChangedListener);\n}\n\n</code></pre> <p>Java Chassis 3 \u901a\u8fc7 <code>Registration</code> \u6765\u7ba1\u7406\u6ce8\u518c\uff0c \u6ce8\u518c\u8fc7\u7a0b\u5206\u4e3a <code>init</code>\u3001<code>run</code>\u3001<code>destroy</code>\u7b80\u5355\u7684\u751f\u547d\u5468\u671f\uff0c \u53ef\u4ee5\u5728 <code>init</code> \u51c6\u5907\u6ce8\u518c\u7684\u6570\u636e\uff0c <code>run</code> \u6267\u884c\u6ce8\u518c\uff0c <code>destroy</code> \u5219\u5728\u6ce8\u518c\u5931\u8d25\u6216\u8005\u7cfb\u7edf\u505c\u6b62\u7684\u65f6\u5019\u6267\u884c\u3002 </p> <pre><code>/**\n * This is the core service registration interface. &lt;br/&gt;\n */\npublic interface Registration&lt;R extends RegistrationInstance&gt; extends SPIEnabled, SPIOrder, LifeCycle {\n  String name();\n\n  /**\n   * get MicroserviceInstance &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called anytime after &lt;code&gt;run&lt;/code&gt;.\n   */\n  R getMicroserviceInstance();\n\n  /**\n   * update MicroserviceInstance status &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called anytime after &lt;code&gt;run&lt;/code&gt;.\n   */\n  boolean updateMicroserviceInstanceStatus(MicroserviceInstanceStatus status);\n\n  /**\n   * adding schemas to Microservice &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called after &lt;code&gt;init&lt;/code&gt; and before &lt;code&gt;run&lt;/code&gt;.\n   */\n  void addSchema(String schemaId, String content);\n\n  /**\n   * adding endpoints to MicroserviceInstance &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called after &lt;code&gt;init&lt;/code&gt; and before &lt;code&gt;run&lt;/code&gt;.\n   */\n  void addEndpoint(String endpoint);\n\n  /**\n   * adding property to MicroserviceInstance &lt;/br&gt;\n   *\n   * Life Cycle\uff1aThis method is called after &lt;code&gt;init&lt;/code&gt; and before &lt;code&gt;run&lt;/code&gt;.\n   */\n  void addProperty(String key, String value);\n}\n\n</code></pre>"},{"location":"featured-topics/secrets/registries.html#_3","title":"\u6ce8\u518c\u53d1\u73b0\u7684\u7ec4\u5408","text":"<p>Java Chassis 3\u53ef\u4ee5\u72ec\u7acb\u5b9e\u73b0\u591a\u4e2a <code>Discovery</code> \u548c <code>Registration</code>, \u8fbe\u5230\u5411\u591a\u4e2a\u6ce8\u518c\u4e2d\u5fc3\u6ce8\u518c\u548c\u4ece\u591a\u4e2a\u6ce8\u518c\u4e2d\u5fc3\u53d1\u73b0\u5b9e\u4f8b\u7684\u4f5c\u7528\u3002 \u6bcf\u4e2a\u5b9e\u4f8b\u6839\u636e\u5b9e\u4f8bID\u552f\u4e00\u6765\u6807\u8bc6\u3002 \u5982\u679c\u5b9e\u4f8bID\u76f8\u540c\uff0c \u4f1a\u88ab\u8ba4\u4e3a\u662f\u540c\u4e00\u4e2a\u5b9e\u4f8b\uff0c \u5982\u679c\u4e0d\u540c\uff0c \u5219\u4f1a\u8ba4\u4e3a\u662f\u4e0d\u540c\u7684\u5b9e\u4f8b\u3002 \u5728 <code>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb</code> \u4e2d\u804a\u5230\u4e86\uff0c Java Chassis \u8981\u6c42\u6bcf\u6b21\u5b9e\u4f8b\u6ce8\u518c\uff08\u65b0\u7684\u8fdb\u7a0b\uff09\uff0c \u751f\u6210\u552f\u4e00\u7684\u5b9e\u4f8bID\uff0c \u4ee5\u89e3\u51b3\u6ce8\u518c\u5206\u533a\u9694\u79bb\u5e26\u6765\u7684\u5b9e\u4f8b\u5047\u4e0b\u7ebf\u95ee\u9898\u3002 <code>Discovery</code> \u548c <code>Registration</code> \u90fd\u5305\u542b\u4e86 Java Chassis \u5b9a\u4e49\u7684\u57fa\u7840\u4fe1\u606f\u3002</p> <pre><code>/**\n * Standard information used for microservice instance registration and discovery.\n */\npublic interface MicroserviceInstance {\n  /**\n   * Environment(Required): Used for logic separation of microservice instance. Only\n   * microservice instance with same environment can discovery each other.\n   */\n  String getEnvironment();\n\n  /**\n   * Application(Required): Used for logic separation of microservice instance. Only\n   * microservice instance with same application can discovery each other.\n   */\n  String getApplication();\n\n  /**\n   * Service Name(Required): Unique identifier for microservice.\n   */\n  String getServiceName();\n\n  /**\n   * Service Name Alias(Optional): Unique identifier for microservice.\n   *   This alias is used by registry implementation to support rename\n   *   of a microservice, e.g. old consumers use old service name can\n   *   find a renamed microservice service.\n   */\n  String getAlias();\n\n  /**\n   * Service Version(Required): version of this microservice.\n   */\n  String getVersion();\n\n  /**\n   * Data center info(Optional).\n   */\n  DataCenterInfo getDataCenterInfo();\n\n  /**\n   * Service Description(Optional)\n   */\n  String getDescription();\n\n  /**\n   * Service Properties(Optional)\n   */\n  Map&lt;String, String&gt; getProperties();\n\n  /**\n   * Service Schemas(Optional): Open API information.\n   */\n  Map&lt;String, String&gt; getSchemas();\n\n  /**\n   * Service endpoints(Optional).\n   */\n  List&lt;String&gt; getEndpoints();\n\n  /**\n   * Microservice instance id(Required). This id can be generated when microservice instance is starting\n   * or assigned by registry implementation.\n   *\n   * When microservice instance is restarted, this id should be changed.\n   */\n  String getInstanceId();\n\n  /**\n   * Microservice service id(Optional). This is used for service center, other implementations may not\n   * support service id.\n   */\n  default String getServiceId() {\n    return \"\";\n  }\n}\n\n</code></pre> <p>\u5728\u5b9e\u73b0\u6ce8\u518c\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u9700\u8981\u4fdd\u8bc1\u8be5\u63a5\u53e3\u5b9a\u4e49\u7684\u57fa\u7840\u4fe1\u606f\u80fd\u591f\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\uff0c\u67e5\u8be2\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u80fd\u591f\u83b7\u53d6\u5230\u8fd9\u4e9b\u4fe1\u606f\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u4e0d\u628a\u9e21\u86cb\u653e\u5230\u540c\u4e00\u4e2a\u7bee\u5b50\u91cc\u9762\uff0c\u662f\u6280\u672f\u9009\u578b\u91cc\u9762\u5f88\u91cd\u8981\u7684\u8003\u91cf\u3002\u89e3\u51b3\u65b9\u6848\u7684\u5f00\u653e\u6027\u548c\u53ef\u66ff\u4ee3\u6027\u3001\u4e91\u670d\u52a1\u7684\u53ef\u66ff\u4ee3\u6027\uff0c\u662f\u5f88\u591a\u5ba2\u6237\u90fd\u5173\u6ce8\u7684\u95ee\u9898\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5f00\u6e90\u7684\u6280\u672f\u6846\u67b6\uff0cJava Chassis\u65e9\u671f\u7684\u7248\u672c\u867d\u7136\u8bbe\u8ba1\u4e0a\u4e5f\u652f\u6301\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u6269\u5c55\uff0c\u4f46\u662f\u5b9e\u73b0\u96be\u5ea6\u5f88\u9ad8\uff0c\u4e0d\u81ea\u89c9\u7684\u628a\u5ba2\u6237\u4f7f\u7528\u5176\u4ed6\u6ce8\u518c\u4e2d\u5fc3\u66ff\u6362 service center\u7684\u8981\u6c42\u53d8\u5f97\u4e0d\u53ef\u884c\u3002\u63d0\u4f9b\u66f4\u52a0\u7b80\u5316\u7684\u6ce8\u518c\u53d1\u73b0\u5b9e\u73b0\uff0c\u867d\u7136\u51cf\u5c11\u4e86\u5c11\u91cf\u6709\u6709\u7ade\u4e89\u529b\u7684\u529f\u80fd\u7279\u6027\uff0c\u4f46\u662f\u6781\u5927\u964d\u4f4e\u4e86\u5ba2\u6237\u9009\u578b\u7684\u987e\u8651\u3002 </p>"},{"location":"featured-topics/secrets/serialization.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u591a\u79cd\u5e8f\u5217\u5316\u65b9\u5f0f\u652f\u6301","text":"<p>\u6253\u5f00\u4e00\u4e2a\u7b80\u5355\u7684 <code>REST</code> \u63a5\u53e3\uff1a</p> <pre><code>@RestSchema(schemaId = \"ProviderController\")\n@RequestMapping(path = \"/\")\npublic class ProviderController {\n  @PostMapping(\"/benchmark\")\n  public DataModel sayHello(@RequestHeader(\"wait\") int wait, @RequestBody DataModel dataModel) {\n    if (wait &gt; 0) {\n      Thread.sleep(wait);\n    }\n    return dataModel;\n  }\n}\n</code></pre> <p>\u7684<code>\u5951\u7ea6</code>:</p> <pre><code>openapi: 3.0.1\ninfo:\n  title: swagger definition for org.apache.servicecomb.samples.ProviderController\n  version: 1.0.0\nservers:\n- url: /\npaths:\n  /benchmark:\n    post:\n      operationId: sayHello\n      parameters:\n      - name: wait\n        in: header\n        required: true\n        schema:\n          type: integer\n          format: int32\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/DataModel'\n          application/protobuf:\n            schema:\n              $ref: '#/components/schemas/DataModel'\n          text/plain:\n            schema:\n              $ref: '#/components/schemas/DataModel'\n        required: true\n        x-name: dataModel\n      responses:\n        \"200\":\n          description: response of 200\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/DataModel'\n            application/protobuf:\n              schema:\n                $ref: '#/components/schemas/DataModel'\n            text/plain:\n              schema:\n                $ref: '#/components/schemas/DataModel'\ncomponents:\n  schemas:\n    ChildDataModel:\n      type: object\n      properties:\n        numInt:\n          type: integer\n          format: int32\n        numLong:\n          type: integer\n          format: int64\n        numDouble:\n          type: number\n          format: double\n        numFloat:\n          type: number\n          format: float\n        data:\n          type: string\n      x-java-class: org.apache.servicecomb.samples.ChildDataModel\n    DataModel:\n      type: object\n      properties:\n        data:\n          type: object\n          additionalProperties:\n            $ref: '#/components/schemas/ChildDataModel'\n      x-java-class: org.apache.servicecomb.samples.DataModel\n</code></pre> <p>\u53ef\u4ee5\u770b\u5230 Java Chassis\u4f7f\u7528\u4e86Open API 3.0.1\u7684\u534f\u8bae\u89c4\u8303\uff0c<code>Request Body</code> \u548c <code>responses</code> \u589e\u52a0\u4e86 <code>application/protobuf</code> \u3001 <code>text/plain</code> \u7684\u652f\u6301\u3002 \u8fd9\u79cd\u4f7f\u7528\u5f62\u5f0f\uff0c\u5960\u5b9a\u4e86Java Chassis 3\u591a\u5e8f\u5217\u5316\u652f\u6301\u65b9\u5f0f\u7684\u57fa\u7840\uff0c\u7ec6\u5fc3\u7684\u8bfb\u8005\u5e94\u8be5\u5f88\u5feb\u80fd\u591f\u53d1\u73b0\u8fd9\u79cd\u65b9\u5f0f\u4e0e\u5176\u4ed6\u652f\u6301\u591a\u5e8f\u5217\u5316\u6846\u67b6\u4e4b\u95f4\u7684\u5dee\u5f02\u3002 </p> <ul> <li>Spring Boot</li> </ul> <p>\u652f\u6301\u591a\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u9700\u8981\u5b9e\u73b0 <code>HttpMessageConverter</code> \u63a5\u53e3\uff0c\u5e76\u5728 <code>Controller</code> \u58f0\u660e\u652f\u6301\u7684 <code>Content-Type</code>\u3002 \u5982\u679c\u4f7f\u7528 <code>Spring Fox</code> \u6216\u8005 <code>Spring Doc</code> \u7b49 Open API\u5de5\u5177\u751f\u6210\u5951\u7ea6\uff0c\u5951\u7ea6\u5185\u5bb9\u53ea\u4f1a\u5305\u542b <code>Controller</code> \u58f0\u660e\u7684\u5e8f\u5217\u5316\u7c7b\u578b\u3002 Spring Boot\u5b58\u5728\u9690\u5f0f\u7684\u5951\u7ea6\u60c5\u51b5\uff0c\u8fd9\u610f\u5473\u7740\u5951\u7ea6\u5e76\u4e0d\u80fd\u5b8c\u5168\u4ee3\u8868 <code>Controller</code> \u670d\u52a1\u7684\u80fd\u529b\u3002 \u5982\u679c\u9700\u8981\u5bf9\u63a5\u53e3\u589e\u52a0\u6216\u8005\u51cf\u5c11\u5e8f\u5217\u5316\u652f\u6301\uff0c\u90fd\u9700\u8981\u4fee\u6539\u4ee3\u7801\u3002 </p> <ul> <li>Dubbo</li> </ul> <p>Dubbo \u9700\u8981\u5728 Provider \u4f7f\u7528 <code>dubbo:protocol</code> \u58f0\u660e\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c  \u5728Consumer\u4f7f\u7528 <code>dubbo:reference</code>  \u58f0\u660e\u5e8f\u5217\u5316\u65b9\u5f0f\u3002 \u7531\u4e8e Dubbo \u662f\u57fa\u4e8e<code>IDL</code>\u7684\u5951\u7ea6\u7cfb\u7edf\uff0c \u5728\u4f7f\u7528 RPC \u7684\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u52a8\u6001\u8c03\u6574\u5e8f\u5217\u5316\u65b9\u5f0f\u3002 <code>REST</code> \u652f\u6301\u5728 Dubbo \u662f\u5b8c\u5168\u72ec\u7acb\u7684\u5355\u5143\uff0c \u5e8f\u5217\u5316\u65b9\u5f0f\u4e5f\u72ec\u7acb\u4e8e RPC \u63a5\u53e3\uff0c <code>RPC</code> \u548c <code>REST</code> \u4e0d\u80fd\u4e92\u64cd\u4f5c\u3002 </p> <p>Open API\u57fa\u4e8e <code>REST</code> \u7684\u8bed\u4e49\uff0c\u6765\u652f\u6301 <code>IDL</code> \u7684\u8bed\u4e49\u3002 Java Chassis\u80fd\u591f\u66f4\u52a0\u76f4\u89c2\u7684\u652f\u6301\u901a\u8fc7\u7b2c\u4e09\u65b9\u5de5\u5177\u4ee5HTTP\u534f\u8bae\u65cf\u8bbf\u95ee\u5fae\u670d\u52a1\uff0c \u53ea\u9700\u8981\u6309\u7167\u5951\u7ea6\u7684\u63cf\u8ff0\u6784\u9020HTTP\u7684\u62a5\u6587\u3002 \u5728\u7f16\u7801\u4fa7\uff0c Java Chassis\u7684\u5ba2\u6237\u7aef\u53ef\u4ee5\u4f7f\u7528 REST \u8bed\u4e49\u7684\u63a5\u53e3\uff0c\u5982 <code>RestOperations</code>\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 RPC \u8bed\u4e49\u7684\u63a5\u53e3\u8bbf\u95ee\u670d\u52a1\u7aef\u3002 </p> <p>\u5b9a\u4e49\u670d\u52a1\u7aef\u63a5\u53e3\uff1a</p> <pre><code>public interface ProviderService {\n  DataModel sayHello(int wait, DataModel dataModel);\n}\n</code></pre> <p>\u901a\u8fc7RPC\u8bbf\u95ee\uff1a</p> <pre><code>@RestSchema(schemaId = \"ConsumerController\")\n@RequestMapping(path = \"/\")\npublic class ConsumerController {\n  @RpcReference(schemaId = \"ProviderController\", microserviceName = \"provider\")\n  private ProviderService providerService;\n\n  @PostMapping(\"/benchmark\")\n  public DataModel sayHello(@RequestHeader(\"wait\") int wait, @RequestBody DataModel dataModel) {\n    return providerService.sayHello(wait, dataModel);\n  }\n}\n</code></pre> <p>Java Chassis\u4ee5OpenAPI\u4e3a\u57fa\u7840\u7684Edge Service\u90e8\u4ef6\uff0c\u80fd\u591f\u5b9e\u73b0\u8bf7\u6c42\u5728\u901a\u4fe1\u534f\u8bae\u3001\u5e8f\u5217\u5316\u65b9\u5f0f\u4e0a\u7684\u81ea\u52a8\u8f6c\u6362\u3002\u6bd4\u5982\u5c06HTTP\u534f\u8bae\u8f6cHighway\u534f\u8bae\u3001application/json\u8f6capplication/protobuf\u7b49\u3002 </p> <p>\u57fa\u4e8e Java Chassis Benchmark \uff0c\u505a\u4e00\u4e2a\u7b80\u5355\u6027\u80fd\u6d4b\u8bd5\u3002\u8be5\u6d4b\u8bd5\u5bf9\u6bd4\u4e86\u4e24\u79cd\u573a\u666f\uff1a</p> <p></p> <p>\u573a\u666f\u4e00\u7684\u9ed8\u8ba4\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  rest:\n    parameter:\n      default-request-encoding: \"application/json\"\n      default-response-encoding: \"application/json\"\n</code></pre> <p>\u573a\u666f\u4e8c\u7684\u9ed8\u8ba4\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  rest:\n    parameter:\n      default-request-encoding: \"application/protobuf\"\n      default-response-encoding: \"application/protobuf\"\n</code></pre> <p>\u6d4b\u8bd5\u7ed3\u679c\u53c2\u8003\u4e0b\u8868\u3002\u8be5\u6570\u636e\u4e3b\u8981\u7528\u4e8e\u8bf4\u660e\u5e8f\u5217\u5316\u5dee\u5f02\uff0c\u56e0\u6b64\u7701\u53bb\u4e86\u6d4b\u8bd5\u73af\u5883\u7684\u63cf\u8ff0\u3002\u4e0b\u8868\u7684\u5e73\u5747\u65f6\u5ef6\u7edf\u8ba1\u4e86\u6d4b\u8bd5\u5ba2\u6237\u7aef\u8ba1\u7b97\u7684\u8bf7\u6c42-\u54cd\u5e94\u65f6\u95f4\u7684\u5e73\u5747\u503c\u3002 </p> \u7248\u672c \u6570\u636e\u5355\u4f4d \u7b49\u5f85\u65f6\u95f4 \u7ebf\u7a0b\u6570 \u6267\u884c\u6b21\u6570 \u6267\u884c\u65f6\u95f4 \u5e73\u5747\u65f6\u5ef6 protobuffer 1 0 10 1000 6642 6 protobuffer 100 0 10 1000 9418 9 protobuffer 1000 0 10 1000 25205 24 protobuffer 1 10 10 1000 15432 15 protobuffer 100 10 10 1000 15965 15 protobuffer 1000 10 10 1000 25926 25 protobuffer 1 100 10 1000 105727 105 protobuffer 100 100 10 1000 106376 106 protobuffer 1000 100 10 1000 114452 114 jason 1 0 10 1000 6736 6 jason 100 0 10 1000 15063 14 jason 1000 0 10 1000 69757 68 jason 1 10 10 1000 16632 16 jason 100 10 10 1000 20033 19 jason 1000 10 10 1000 66104 65 jason 1 100 10 1000 104868 104 jason 100 100 10 1000 107439 107 jason 1000 100 10 1000 132786 131 <p>\u4ece\u8fd9\u7ec4\u6570\u636e\u53ef\u4ee5\u770b\u51fa\uff1a</p> <ul> <li>\u5728\u6570\u636e\u91cf\u6bd4\u8f83\u5c0f\u7684\u573a\u666f\u4e0b\uff0c\u4f7f\u7528 <code>json</code> \u548c <code>proto-buffer</code> \u6027\u80fd\u5dee\u5f02\u5f88\u5c0f\u3002 \u5728\u6570\u636e\u91cf\u6bd4\u8f83\u5927\u7684\u60c5\u51b5\u4e0b\uff0c<code>proto-buffer</code> \u7684\u6027\u80fd\u660e\u663e\u597d\u4e8e <code>json</code>\u3002 </li> <li>\u5728\u4e1a\u52a1\u65f6\u5ef6\u6bd4\u8f83\u5927\uff08&gt;100ms\uff09\u7684\u65f6\u5019\uff0c \u5e8f\u5217\u5316\u7684\u65f6\u5ef6\u53ef\u4ee5\u5ffd\u7565\u3002 </li> </ul> <p>\u4e0d\u540c\u7684\u5e8f\u5217\u5316\u65b9\u5f0f\u9664\u4e86\u6027\u80fd\u5dee\u5f02\uff0c\u5728\u53ef\u7ef4\u62a4\u65b9\u9762\u4e5f\u4f1a\u5b58\u5728\u5f88\u5927\u7684\u5dee\u5f02\u3002\u6bd4\u5982 <code>proto-buffer</code> \u5728\u517c\u5bb9\u6027\u65b9\u9762\u7684\u8868\u73b0\u4f1a\u6bd4 <code>json</code> \u5dee\uff0c\u5f53\u4fee\u6539\u63a5\u53e3\u5b9a\u4e49\u7684\u65f6\u5019\uff0c \u6bd4\u5982\u589e\u52a0\u5c5e\u6027\u3001\u5220\u9664\u5c5e\u6027\u3001\u4fee\u6539\u5c5e\u6027\u7b49\uff0c<code>proto-buffer</code> \u66f4\u5bb9\u6613\u5bfc\u81f4\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u505a\u597d\u517c\u5bb9\u6027\u9632\u8303\u5bf9\u591a\u6570\u7528\u6237\u800c\u8a00\uff0c\u90fd\u662f\u6bd4\u8f83\u56f0\u96be\u7684\u4e8b\u60c5\u3002 </p> <p>\u652f\u6301\u591a\u534f\u8bae\u3001\u591a\u5e8f\u5217\u5316\u65b9\u5f0f\u7684\u53e6\u5916\u4e00\u4e2a\u8003\u8651\uff0c\u662f\u5bf9\u63a5\u9057\u7559\u7cfb\u7edf\u3002\u5bf9\u63a5\u9057\u7559\u7cfb\u7edf\u4f1a\u80cc\u8d1f\u5927\u91cf\u5386\u53f2\u503a\u52a1\uff0c\u4f7f\u5f97\u65b0\u7cfb\u7edf\u672c\u8eab\u8bbe\u8ba1\u504f\u79bb\u9884\u671f\u7684\u65b9\u5411\u3002\u5728 Java Chassis \u591a\u5e8f\u5217\u5316\u65b9\u5f0f\u7684\u9009\u62e9\u4e0a\uff0c \u53ea\u63d0\u4f9b\u4e86\u76ee\u524d\u5e7f\u6cdb\u4f7f\u7528\u7684 <code>json</code> \u548c <code>proto-buffer</code> \u652f\u6301\uff0c \u800c\u6ca1\u6709\u9009\u62e9\u652f\u6301\u5176\u4ed6\u5e8f\u5217\u5316\u65b9\u6848\u3002 \u4ee5\u67b6\u6784\u7684\u97e7\u6027\u53bb\u5904\u7406\u9057\u7559\u7cfb\u7edf\u95ee\u9898\uff0c\u662f Java Chassis\u575a\u6301\u7684\u4e00\u4e2a\u91cd\u8981\u8bbe\u8ba1\u7406\u5ff5\uff0c\u5bf9\u63a5\u9057\u7559\u7cfb\u7edf\u6216\u8005\u4fdd\u6301\u4e0e\u9057\u7559\u7cfb\u7edf\u7684\u517c\u5bb9\uff0c\u4e0d\u662f\u5b83\u7684\u4e3b\u8981\u8bbe\u8ba1\u76ee\u6807\u3002 </p> <p></p> <p>\u5728\u5e8f\u5217\u5316\u65b9\u5f0f\u9009\u62e9\u4e0a\uff0c\u7b80\u5355\u7684\u603b\u7ed3\u5982\u4e0b\uff1a</p> <ul> <li>\u4f7f\u7528 <code>REST</code> \u534f\u8bae\u662f\u7edd\u5927\u591a\u6570\u573a\u666f\u7684\u6700\u4f18\u9009\u62e9\uff0c\u80fd\u591f\u6700\u597d\u7684\u517c\u987e\u6027\u80fd\u3001\u53ef\u9760\u6027\u3001\u97e7\u6027\u7b49\u65b9\u9762\u7684\u8981\u6c42\u3002</li> <li>\u5bf9\u4e8e\u6570\u636e\u91cf\u6bd4\u8f83\u5927\uff0c\u4e1a\u52a1\u65f6\u5ef6\u5f88\u4f4e(&lt;100ms)\uff0c\u5e76\u4e14\u4e1a\u52a1\u6bd4\u8f83\u7a33\u5b9a\uff0c\u4e1a\u52a1\u63a5\u53e3\u4e0d\u9700\u8981\u9891\u7e41\u53d8\u52a8\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u91c7\u7528 <code>proto-buffer</code>\u6765\u4f18\u5316\u6027\u80fd\uff0c\u6309\u9700\u8c03\u6574\u3002</li> </ul> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u67d0\u4e2a\u5ba2\u6237\u7684\u5173\u952e\u6838\u5fc3\u7cfb\u7edf\u5bf9\u4e8e\u65f6\u5ef6\u8981\u6c42\u5f88\u9ad8\uff0c\u56e0\u6b64\u9700\u8981\u91c7\u7528\u79c1\u6709\u534f\u8bae\u548c\u5e8f\u5217\u5316\u65b9\u5f0f\u6765\u63d0\u5347\u6027\u80fd\u3002\u4f46\u662f\u5bf9\u4e8e\u4e00\u4e9b\u975e\u6838\u5fc3\u7cfb\u7edf\uff0c\u9700\u8981\u4f7f\u7528REST\u63a5\u53e3\uff0c\u65b9\u4fbf\u65e5\u5e38\u5f00\u53d1\u3001\u8c03\u8bd5\u3002Java Chassis\u7684\u89e3\u8026\u8bbe\u8ba1\u4f7f\u5f97\u5ba2\u6237\u65e0\u9700\u5bf9\u4ee3\u7801\u8fdb\u884c\u4efb\u4f55\u6539\u9020\uff0c\u5c31\u53ef\u4ee5\u6ee1\u8db3\u4e24\u65b9\u9762\u7684\u8981\u6c42\u3002</p>"},{"location":"featured-topics/secrets/zone-isolation.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb","text":"<p>\u6ce8\u518c\u4e2d\u5fc3\u8d1f\u8d23\u5b9e\u4f8b\u7684\u6ce8\u518c\u548c\u53d1\u73b0\uff0c\u5bf9\u5fae\u670d\u52a1\u53ef\u9760\u8fd0\u884c\u8d77\u5230\u4e3e\u8db3\u8f7b\u91cd\u7684\u4f5c\u7528\u3002\u5b9e\u4f8b\u53d8\u66f4\u611f\u77e5\u5468\u671f\u662f\u6ce8\u518c\u4e2d\u5fc3\u6700\u91cd\u8981\u7684\u6280\u672f\u6307\u6807\u4e4b\u4e00\u3002\u611f\u77e5\u5468\u671f\u4ee3\u8868\u63d0\u4f9b\u8005\u7684\u5b9e\u4f8b\u6ce8\u518c\u6216\u8005\u4e0b\u7ebf\u540e\uff0c\u6d88\u8d39\u8005\u611f\u77e5\u5b9e\u4f8b\u6ce8\u518c\u6216\u8005\u4e0b\u7ebf\u7684\u5468\u671f\u3002\u5f71\u54cd\u5b9e\u4f8b\u53d8\u66f4\u611f\u77e5\u5468\u671f\u7684\u6280\u672f\u56e0\u7d20\u6709\u5f88\u591a\u3002</p> <ul> <li>\u6570\u636e\u4e00\u81f4\u6027\u3002\u4e00\u81f4\u6027\u6307\u5b9e\u4f8b\u5728\u6ce8\u518c\u4e2d\u5fc3\u7684\u4e00\u4e2a\u8282\u70b9\u6ce8\u518c\uff0c\u4ece\u6ce8\u518c\u4e2d\u5fc3\u7684\u4e0d\u540c\u8282\u70b9\u80fd\u5426\u540c\u65f6\u8bfb\u53d6\u5230\u5b9e\u4f8b\u7684\u6ce8\u518c\u4fe1\u606f\u3002\u8fd9\u4e2a\u6280\u672f\u56e0\u7d20\u5bf9\u4e8e\u5b9e\u4f8b\u53d8\u66f4\u611f\u77e5\u5468\u671f\u6709\u4e00\u5b9a\u5f71\u54cd\uff0c\u6bd4\u5982\u6700\u7ec8\u4e00\u81f4\u6027\u7684\u611f\u77e5\u901f\u5ea6\u4f1a\u6162\uff0c\u5f3a\u4e00\u81f4\u6027\u7684\u611f\u77e5\u901f\u5ea6\u4f1a\u5feb\u3002\u4f46\u591a\u6570\u573a\u666f\uff0c\u8fd9\u4e2a\u6280\u672f\u6307\u6807\u4e0d\u662f\u6838\u5fc3\u56e0\u7d20\u3002</li> <li>\u53d8\u66f4\u901a\u77e5\u673a\u5236\u3002\u53d8\u66f4\u901a\u77e5\u673a\u5236\u6307\u6d88\u8d39\u8005\u83b7\u53d6\u6700\u65b0\u5b9e\u4f8b\u5217\u8868\u7684\u65b9\u5f0f\uff0c\u901a\u5e38\u6709\u51e0\u79cd\u65b9\u5f0f\uff1a\u5b9a\u671fPull\u7684\u65b9\u5f0f\uff0c\u6d88\u8d39\u8005\u5468\u671f\u6027\u7684\u4ece\u6ce8\u518c\u4e2d\u5fc3\u67e5\u8be2\u5b9e\u4f8b\u5217\u8868\uff1b\u6ce8\u518c\u4e2d\u5fc3Push\u7684\u65b9\u5f0f\uff0c\u6ce8\u518c\u4e2d\u5fc3\u901a\u8fc7\u957f\u8fde\u63a5\u3001WebSocket\u7b49\u534f\u8bae\uff0c\u5c06\u5b9e\u4f8b\u53d8\u5316\u901a\u77e5\u6d88\u8d39\u8005\u3002\u5b9a\u671fPull\u7684\u65b9\u5f0f\u611f\u77e5\u5468\u671f\u76f8\u5bf9\u8f83\u957f\uff0c\u5de5\u4f5c\u673a\u5236\u6bd4\u8f83\u53ef\u9760\uff0c\u5bb9\u9519\u6548\u7387\u9ad8\uff0c\u5bf9\u4e8e\u7f51\u7edc\u8981\u6c42\u4f4e\uff0c\u66f4\u52a0\u5b89\u5168\uff1b\u6ce8\u518c\u4e2d\u5fc3Push\u7684\u65b9\u5f0f\u611f\u77e5\u5468\u671f\u5f88\u77ed\uff0c\u5bb9\u6613\u51fa\u73b0\u4e8b\u4ef6\u9519\u4e71\u6216\u8005\u5806\u79ef\uff0c\u5bf9\u4e8e\u7f51\u7edc\u89c4\u5212\u6709\u4e00\u5b9a\u8981\u6c42\u3002</li> <li>\u6ce8\u518c\u4e2d\u5fc3\u68c0\u6d4b\u5b9e\u4f8b\u72b6\u6001\u7684\u65b9\u5f0f\u3002\u6ce8\u518c\u4e2d\u5fc3\u68c0\u6d4b\u5b9e\u4f8b\u72b6\u6001\u7684\u65b9\u5f0f\u8868\u793a\u5982\u4f55\u5224\u65ad\u5b9e\u4f8b\u7684\u72b6\u6001\u662f\u6b63\u5e38\u8fd8\u662f\u5f02\u5e38\u3002\u6bd4\u5982Service Center\u9700\u8981\u5b9e\u4f8b\u5b9a\u671f\u7684\u53d1\u9001\u5fc3\u8df3\uff0c\u5982\u679c\u57283\u4e2a\u5fc3\u8df3\u5468\u671f\u672a\u68c0\u6d4b\u5230\u5fc3\u8df3\uff0c\u90a3\u4e48\u8ba4\u4e3a\u5b9e\u4f8b\u5f02\u5e38\uff1b\u6bd4\u5982Nacos\u5219\u6839\u636e\u5fae\u670d\u52a1\u5b9e\u4f8b\u4e0e\u6ce8\u518c\u4e2d\u5fc3\u7684\u957f\u8fde\u63a5\u72b6\u6001\u5224\u65ad\u5b9e\u4f8b\u662f\u5426\u5f02\u5e38\u3002</li> </ul> <p>\u6b64\u5916\uff0c\u5b9e\u4f8b\u7ba1\u7406\u89c4\u6a21\u3001\u652f\u6301\u5143\u6570\u636e\u7ba1\u7406\u7b49\u4e5f\u662f\u6ce8\u518c\u6ce8\u518c\u4e2d\u5fc3\u6bd4\u8f83\u5e38\u89c1\u7684\u529f\u80fd\u7279\u6027\u3002\u6bd4\u5982Java Chassis 2\u8981\u6c42\u6ce8\u518c\u4e2d\u5fc3\u5fc5\u987b\u652f\u6301\u5951\u7ea6\u7684\u6ce8\u518c\u548c\u7ba1\u7406\u3002</p> <p>Java Chassis 3\u7684\u8bbe\u8ba1\u76ee\u6807\u4e4b\u4e00\uff0c\u5c31\u662f\u964d\u4f4e\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u529f\u80fd\u7684\u4f9d\u8d56\uff0c\u80fd\u591f\u652f\u6301\u5c3d\u53ef\u80fd\u591a\u7684\u6ce8\u518c\u4e2d\u5fc3\uff0c\u800c\u4e0d\u964d\u4f4e\u5fae\u670d\u52a1\u81ea\u8eab\u7684\u53ef\u9760\u6027\u3002 \u5728\u63cf\u8ff0 Java Chassis 3\u7684\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236\u4e4b\u524d\uff0c\u5148\u8ba8\u8bba\u4e00\u4e2a\u5178\u578b\u7684\u95ee\u9898\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u3002</p> <p>\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u662f\u6307\u5982\u4e0b\u573a\u666f\uff1a</p> <p></p> <p>\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u4e0e\u6ce8\u518c\u4e2d\u5fc3\u4e4b\u95f4\u7684\u7f51\u7edc\u53d1\u751f\u6545\u969c\uff0c\u800c\u670d\u52a1\u6d88\u8d39\u8005\u4e0e\u6ce8\u518c\u4e2d\u5fc3\u4e4b\u95f4\u7684\u7f51\u7edc\u662f\u6b63\u5e38\u7684\uff0c\u5373\u4ea7\u751f\u5206\u533a\u9694\u79bb\u3002\u5728\u53d1\u751f\u5206\u533a\u9694\u79bb\u7684\u573a\u666f\u4e0b\uff0c\u73b0\u6709\u7684\u4fdd\u6d3b\u673a\u5236\u90fd\u4f1a\u8ba4\u4e3a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u4e0b\u7ebf\uff0c\u8fdb\u800c\u5bfc\u81f4\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u8bbf\u95ee\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u51fa\u73b0\u5927\u89c4\u6a21\u5931\u8d25\u3002\u5206\u533a\u9694\u79bb\u901a\u5e38\u4f1a\u53d1\u751f\u5728\u6ce8\u518c\u4e2d\u5fc3\u5728\u591aAZ\u90e8\u7f72/\u5bb9\u707e\u7684\u573a\u666f\uff0c\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u8fde\u63a5\u7684\u662f\u4e0d\u540cAZ\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u4f8b\u3002\u5728\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u8005\u8de8AZ\u90e8\u7f72\u7684\u65f6\u5019\uff0c\u4e5f\u53ef\u80fd\u53d1\u751f\u3002</p> <p>\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u6545\u969c\u4f1a\u9020\u6210\u5927\u9762\u79ef\u7684\u5e94\u7528\u8c03\u7528\u5931\u8d25\uff0c\u662f\u6ce8\u518c\u4e2d\u5fc3\u6709\u5173\u6545\u969c\u4e2d\uff0c\u6700\u4e25\u91cd\u7684\u6545\u969c\u4e4b\u4e00\u3002</p> <ul> <li>Ribbon\u7684\u89e3\u51b3\u65b9\u6848</li> </ul> <p>Ribbon\u5728\u5ba2\u6237\u7aef\u63d0\u4f9b\u4e86 <code>IPing</code> \u63a5\u53e3\u6765\u68c0\u6d4b\u5b9e\u4f8b\u6545\u969c\uff0c\u4ee5\u68c0\u6d4b\u6ce8\u518c\u4e2d\u5fc3\u9519\u8bef\u4e0b\u7ebf\u5b9e\u4f8b\uff0c\u800c\u5b9e\u4f8b\u5b9e\u9645\u53ef\u4ee5\u5de5\u4f5c\u7684\u573a\u666f\u3002 \u8be5\u673a\u5236\u5728\u591a\u6570\u573a\u666f\u5de5\u4f5c\u826f\u597d\uff0c\u7136\u800c\u5728\u5bb9\u5668\u573a\u666f\u4e0b\uff0c\u53ef\u80fd\u957f\u671f\u4fdd\u7559\u9519\u8bef\u7684\u5b9e\u4f8b\u3002\u56e0\u4e3a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u4e0d\u662f\u7531\u4e8e\u5206\u533a\u9694\u79bb\u9519\u8bef\uff0c\u800c\u662f\u91cd\u542f\u7684\u573a\u666f\u4e0b\uff0c\u5982\u679c\u539f\u6765\u7684\u7aef\u53e3\u88ab\u5176\u4ed6\u670d\u52a1\u5360\u7528\uff0c\u5219\u4f1a\u5bfc\u81f4\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u59cb\u7ec8\u4fdd\u7559\u9519\u8bef\u7684\u5b9e\u4f8b\u3002</p> <pre><code>public interface IPing {\n    boolean isAlive(Server server);\n}\n</code></pre> <ul> <li>Spring Cloud\u7684\u89e3\u51b3\u65b9\u6848</li> </ul> <p>Spring Cloud\u7684\u673a\u5236\u548cRibbon\u7c7b\u4f3c\uff0c\u63d0\u4f9b\u4e86 <code>HealthCheckServiceInstanceListSupplier</code> \uff0c\u5e76\u5141\u8bb8\u5f00\u53d1\u8005\u5b9a\u4e49\u5b9e\u4f8b\u76d1\u63a7\u72b6\u6001\u68c0\u6d4b\u65b9\u5f0f\u3002 </p> <ul> <li>Java Chassis\u7684\u89e3\u51b3\u65b9\u6848</li> </ul> <p>Java Chassis\u7ed3\u5408\u5b9e\u4f8b\u662f\u5426\u5728\u6ce8\u518c\u4e2d\u5fc3\u67e5\u8be2\u5230(History)\u3001\u5b9e\u4f8b\u72b6\u6001(Status)\u3001Ping\u72b6\u6001(Ping)\u3001\u9694\u79bb\u72b6\u6001\uff08Isolation\uff09\u5c06\u5b9e\u4f8b\u5206\u7ec4\uff0c\u5e76\u7ed9\u4e0d\u540c\u7684\u7ec4\u5206\u914d\u4e0d\u540c\u7684\u4f18\u5148\u7ea7\u3002 </p> <p></p> <p>\u5728 <code>Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u8d1f\u8f7d\u5747\u8861\u9009\u62e9\u5668</code> \u4e2d\uff0c\u89e3\u5bc6\u4e86Java Chassis\u5206\u7ec4\u5b9e\u4f8b\u4f7f\u7528\u7684\u673a\u5236\u3002\u5f53\u51fa\u73b0\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u7684\u60c5\u51b5\uff0c\u5b9e\u4f8b\u5728\u6ce8\u518c\u4e2d\u5fc3\u67e5\u8be2\u4e0d\u5230\uff0c\u4ecd\u7136\u88ab\u4fdd\u7559\u5230\u4e86 <code>History</code> \u5206\u7ec4\uff0c\u53ea\u8981\u5b9e\u4f8b Ping \u72b6\u6001\u6b63\u5e38\uff0c \u8fd9\u4e2a\u5b9e\u4f8b\u4ecd\u7136\u4f1a\u88ab\u4f7f\u7528\uff0c \u4ece\u800c\u9632\u6b62\u4e86\u5b9e\u4f8b\u88ab\u9519\u8bef\u4e0b\u7ebf\u3002 </p> <p>Java Chassis\u8fd8\u8bbe\u8ba1\u4e86\u65b0\u7684Ping\u673a\u5236\uff0c\u89e3\u51b3\u5bb9\u5668\u573a\u666f\u4e0b\uff0c\u53ef\u80fd\u957f\u671f\u4fdd\u7559\u9519\u8bef\u7684\u5b9e\u4f8b\u7684\u95ee\u9898\u3002 Ping\u673a\u5236\u7684\u6838\u5fc3\u903b\u8f91\u5305\u542b\u5982\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a</p> <ul> <li>\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u5411\u6ce8\u518c\u4e2d\u5fc3\u6ce8\u518c\u7684\u65f6\u5019\uff0c\u751f\u6210\u5b9e\u4f8bID\u3002\u5b9e\u4f8bID\u9700\u8981\u4fdd\u8bc1\u8fdb\u7a0b\u7684\u6bcf\u6b21\u91cd\u542f\uff0c\u90fd\u662f\u552f\u4e00\u7684\u3002</li> <li>\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7PING\u6d88\u606f\u68c0\u6d4b\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u5b58\u6d3b\u72b6\u6001\u3002PING\u6d88\u606f\u5305\u542b\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u5b9e\u4f8bID\u3002</li> <li>\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u68c0\u6d4bPING\u6d88\u606f\u91cc\u9762\u7684\u5b9e\u4f8bID\uff0c\u5982\u679c\u5b9e\u4f8bID\u4e0e\u81ea\u5df1\u7684\u5b9e\u4f8bID\u76f8\u540c\uff0c\u5219\u8fd4\u56de\u5065\u5eb7\uff0c\u5426\u5219\u8fd4\u56de\u5f02\u5e38\u3002</li> </ul> <p></p> <p>Java Chassis\u63d0\u4f9b\u4e86\u65b0\u7684\u5065\u5eb7\u68c0\u67e5\u63a5\u53e3\uff1a</p> <pre><code>@RestSchema(schemaId = ManagementEndpoint.NAME, schemaInterface = ManagementEndpoint.class)\npublic class ManagementEndpointImpl implements ManagementEndpoint {\n  private RegistrationManager registrationManager;\n\n  @Autowired\n  public void setRegistrationManager(RegistrationManager registrationManager) {\n    this.registrationManager = registrationManager;\n  }\n\n  @Override\n  public boolean health(String instanceId, String registryName) {\n    String mySelf = registrationManager.getInstanceId(registryName);\n    if (StringUtils.isEmpty(mySelf)) {\n      return false;\n    }\n    return mySelf.equals(instanceId);\n  }\n}\n</code></pre> <p>Java Chassis 2\u7ed3\u5408Service Center\u7684\u529f\u80fd\u8bbe\u8ba1\uff0c\u5171\u540c\u4fdd\u969c\u4e86\u6ce8\u518c\u53d1\u73b0\u7684\u53ef\u9760\u6027\u3002Java Chassis 3\u901a\u8fc7\u5e94\u7528\u5ba2\u6237\u7aef\u6280\u672f\uff0c\u964d\u4f4e\u4e86\u5bf9\u4e8e\u6ce8\u518c\u4e2d\u5fc3\u7684\u4f9d\u8d56\uff0c\u4f7f\u5f97 Java Chassis 3\u4f7f\u7528\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u90fd\u80fd\u591f\u53d6\u5f97\u5f88\u9ad8\u7684\u53ef\u9760\u6027\u3002 \u5185\u7f6e\u7684\u5b9e\u4f8b\u72b6\u6001\u5206\u7ec4\u7ba1\u7406\u548c\u521b\u65b0\u7684Ping\u673a\u5236\u8bbe\u8ba1\uff0c\u4f7f\u5f97 Java Chassis 3\u5728\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u6545\u969c\u6761\u4ef6\u4e0b\u4e5f\u80fd\u7a33\u5b9a\u7684\u5de5\u4f5c\u3002 </p> <p>\u5ba2\u6237\u6545\u4e8b\uff1a\u6ce8\u518c\u4e2d\u5fc3\u63a8\u7a7a\u6545\u969c\u662f <code>Nacos</code> \u7684\u7ecf\u5178\u6545\u969c\uff0c\u5bf9\u4e8e\u7cfb\u7edf\u53ef\u9760\u6027\u8fd0\u884c\u4ea7\u751f\u4e86\u975e\u5e38\u5927\u7684\u5f71\u54cd\u3002\u63a8\u7a7a\u6545\u969c\u7684\u5f71\u54cd\u673a\u5236\u548c\u5206\u533a\u9694\u79bb\u6545\u969c\u7684\u5f71\u54cd\u673a\u5236\u7c7b\u4f3c\u3002\u501f\u52a9\u4e8eJava Chassis 3\uff0c\u80fd\u591f\u5c06\u4e1a\u52a1\u5f71\u54cd\u7684\u65f6\u95f4\u548c\u8303\u56f4\u964d\u5230\u6700\u4f4e\u3002</p>"},{"location":"featured-topics/secrets/zookeeper.html","title":"Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1aZooKeeper\u6ce8\u518c\u548c\u914d\u7f6e\u4e2d\u5fc3","text":"<p>ZooKeeper \u662f\u4e00\u4e2a\u9ad8\u53ef\u7528\u7684\u5206\u5e03\u5f0f\u534f\u8c03\u7cfb\u7edf\uff0c\u5b83\u4e5f\u88ab\u5e7f\u6cdb\u7528\u4e8e\u670d\u52a1\u6ce8\u518c\u53d1\u73b0\u3001\u670d\u52a1\u914d\u7f6e\u7b49\u573a\u666f\u3002 </p> <p>Java Chassis 3 \u4f7f\u7528 Curator Service Discovery Extensions \u5b9e\u73b0\u6ce8\u518c\u53d1\u73b0\u3002 </p>"},{"location":"featured-topics/secrets/zookeeper.html#_1","title":"\u6ce8\u518c\u548c\u914d\u7f6e\u57fa\u672c\u539f\u7406","text":"<p>\u4f7f\u7528ZooKeeper\u5b9e\u73b0\u6ce8\u518c\u914d\u7f6e\u7684\u539f\u7406\u6bd4\u8f83\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5c06\u5b9e\u4f8b\u4fe1\u606f\u548c\u914d\u7f6e\u4fe1\u606f\u4f5c\u4e3a\u5408\u9002\u7684 key-value \u5bf9\u5199\u5165\u3002\u6ce8\u518c\u573a\u666f\u4f7f\u7528\u4e0b\u9762\u7684\u7ed3\u6784\uff1a</p> <pre><code>servicecomb:\n  registry:\n    ${environment}\n      ${application}:\n        ${service}:\n          ${instance-id}: \u8be6\u7ec6\u7684\u6ce8\u518c\u5185\u5bb9\n</code></pre> <p>\u914d\u7f6e\u573a\u666f\u4f7f\u7528\u4e0b\u9762\u7684\u7ed3\u6784\uff1a</p> <pre><code>servicecomb:\n  config:\n    environment:  \n      ${environment}: \u8be6\u7ec6\u7684\u914d\u7f6e\u5185\u5bb9\n    application:\n      ${environment}:\n        ${application}: \u8be6\u7ec6\u7684\u914d\u7f6e\u5185\u5bb9\n    service:\n      ${environment}:\n        ${application}:\n          ${service}: \u8be6\u7ec6\u7684\u914d\u7f6e\u5185\u5bb9\n    version:\n      ${environment}:\n        ${application}:\n          ${service}:\n            ${version}: \u8be6\u7ec6\u7684\u914d\u7f6e\u5185\u5bb9\n    tag:\n      ${environment}:\n        ${application}:\n          ${service}:\n            ${tag}: \u8be6\u7ec6\u7684\u914d\u7f6e\u5185\u5bb9\n</code></pre>"},{"location":"featured-topics/secrets/zookeeper.html#_2","title":"\u53ef\u9760\u6027\u8bbe\u8ba1","text":"<p>ZooKeeper\u81ea\u8eab\u88ab\u8bbe\u8ba1\u4e3a\u4e00\u4e2a\u9ad8\u53ef\u9760\u7684\u4e2d\u95f4\u4ef6\uff0cJava Chassis 3\u8fdb\u4e00\u6b65\u589e\u5f3a\u4e86\u5176\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u7684\u53ef\u9760\u6027\uff0c\u5373\u4f7f\u5728ZooKeeper\u81ea\u8eab\u4e0d\u53ef\u7528\u7684\u60c5\u51b5\u4e0b\uff0c\u4ecd\u7136\u4e0d\u5f71\u54cd\u670d\u52a1\u4e4b\u95f4\u7684\u8c03\u7528\uff0c\u8be6\u7ec6\u4e86\u89e3\u8fd9\u4e2a\u673a\u5236\uff0c\u53ef\u4ee5\u53c2\u8003Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u3002 </p> <p>\u4e3a\u4e86\u9a8c\u8bc1\u8fd9\u90e8\u5206\u53ef\u9760\u6027\uff0c\u53ef\u4ee5\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u6d4b\u8bd5\u573a\u666f\uff1a</p> <pre><code>\u6d4b\u8bd5\u5de5\u5177 -&gt; edge service -&gt; consumer -&gt; provider\n</code></pre> <p>\u542f\u52a8 edge service\u3001 consumer \u548c provider\uff0c \u901a\u8fc7\u6d4b\u8bd5\u5de5\u5177\u8bf7\u6c42\u63a5\u53e3\u3002 \u7136\u540e\u505c\u6b62 ZooKeeper\uff0c \u5e76\u4f7f\u7528\u6d4b\u8bd5\u5de5\u5177\u6301\u7eed\u8c03\u7528\uff0c\u53ef\u4ee5\u53d1\u73b0\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u8bf7\u6c42\u5931\u8d25\u3002 \u542f\u52a8 Zookeeper, \u670d\u52a1\u6ce8\u518c\u4fe1\u606f\u6062\u590d\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u4ecd\u7136\u6ca1\u6709\u8bf7\u6c42\u5931\u8d25\u3002 </p> <p>\u5f53\u7136\uff0c\u5728ZooKeeper\u4e0d\u53ef\u7528\u7684\u8fc7\u7a0b\u4e2d\uff0c\u65e0\u6cd5\u6ce8\u518c\u65b0\u7684\u5b9e\u4f8b\u3002</p>"},{"location":"featured-topics/secrets/zookeeper.html#zookeeper","title":"\u5173\u4e8e Zookeeper \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u7684\u6df1\u5165\u8ba8\u8bba","text":"<p>\u6709\u89c2\u70b9\u8ba4\u4e3a\uff0c ZooKeeper\u4e0d\u9002\u5408\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u4e00\u822c\u7684\uff0cCP\u7cfb\u7edf\u90fd\u4e0d\u9002\u5408\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u800cAP\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u624d\u662f\u6700\u4f73\u9009\u62e9\u3002 \u4e2a\u4eba\u89c9\u5f97\u8fd9\u6837\u7684\u89c2\u70b9\u662f\u7247\u9762\u800c\u4e14\u975e\u5e38\u4e0d\u6070\u5f53\u7684\u3002 </p> <p>\u4eceZooKeeper \u5e76\u4e0d\u9002\u5408\u505a\u6ce8\u518c\u4e2d\u5fc3 \u548c \u4e3a\u4ec0\u4e48\u6211\u4eec\u8981\u628a\u670d\u52a1\u6ce8\u518c\u53d1\u73b0\u6539\u4e3a\u963f\u91cc\u5df4\u5df4\u7684Nacos\u800c\u4e0d\u7528 ZooKeeper\uff1f \u6458\u53d6\u4e86\u51e0\u4e2a\u6838\u5fc3\u89c2\u70b9\uff08\u540e\u9762\u7b80\u79f0\u201c\u89c2\u70b9\u6587\u7ae0\u201d\uff09\uff1a</p> <ul> <li>\u7f51\u7edc\u5206\u533a\u9694\u79bb\u60c5\u51b5\u4e0b\uff0cZooKeeper\u4f1a\u5bfc\u81f4\u670d\u52a1\u95f4\u8c03\u7528\u9519\u8bef\uff0c\u4e5f\u4f1a\u5bfc\u81f4\u65b0\u7684\u670d\u52a1\u65e0\u6cd5\u6ce8\u518c\uff0c\u4e0d\u9002\u5408\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u3002</li> <li>ZooKeeper\u6240\u6709\u5199\u64cd\u4f5c\u90fd\u5728Leader\u8fdb\u884c\uff0c\u65e0\u6cd5\u652f\u6301\u5927\u89c4\u6a21\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4e0d\u9002\u5408\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u3002</li> </ul> <p>\u4e0b\u9762\u7b80\u5355\u8ba8\u8bba\u4e0b\u8fd9\u4e24\u4e2a\u89c2\u70b9\u3002</p>"},{"location":"featured-topics/secrets/zookeeper.html#_3","title":"\u5173\u4e8e\u7f51\u7edc\u5206\u533a\u9694\u79bb","text":"<p>\u7f51\u7edc\u5206\u533a\u9694\u79bb\u7684\u573a\u666f\u6bd4\u8f83\u591a\uff0c\u5728Java Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u6ce8\u518c\u4e2d\u5fc3\u5206\u533a\u9694\u79bb\u63cf\u8ff0\u7684\u573a\u666f\u4e0b\uff0cJava Chassis\u80fd\u591f\u4fdd\u8bc1\u670d\u52a1\u4e4b\u95f4\u7684\u8c03\u7528\u4e0d\u53d7\u5f71\u54cd\u3002\u5728\u89c2\u70b9\u6587\u7ae0\u63d0\u5230\u7684\u573a\u666f\u4e2d\uff0cJava Chassis\u4e5f\u80fd\u591f\u4fdd\u8bc1\u670d\u52a1\u4e4b\u95f4\u7684\u8c03\u7528\u4e0d\u53d7\u5f71\u54cd\uff0c\u4f46\u662f\u670d\u52a1\u65e0\u6cd5\u6ce8\u518c\u3002\u7f51\u7edc\u5206\u533a\u9694\u79bb\u573a\u666f\u4e0b\uff0c\u6838\u5fc3\u9700\u8981\u8ba8\u8bba\u7684\u95ee\u9898\u53d8\u6210\u662f\u5426\u9700\u8981\u5141\u8bb8\u670d\u52a1\u8fdb\u884c\u6ce8\u518c/\u6269\u5bb9\uff1f\u5c3d\u7ba1\u53ef\u80fd\u5b58\u5728\u4e89\u8bae\uff0c\u4f46\u6211\u4eec\u7684\u89c2\u70b9\u662f\u7cfb\u7edf\u51fa\u73b0\u90e8\u5206\u6545\u969c\u7684\u60c5\u51b5\u4e0b\uff0c\u7cfb\u7edf\u4e0d\u5e94\u8be5\u6269\u5bb9\uff0c\u800c\u662f\u5c3d\u53ef\u80fd\u7ef4\u6301\u5904\u7406\u80fd\u529b\u4e0d\u53d8\uff0c\u8fd9\u6837\u4f1a\u4f7f\u5f97\u6545\u969c\u6062\u590d\u66f4\u52a0\u53ef\u63a7\uff0c\u4ece\u800c\u51cf\u5c11\u7cfb\u7edf\u6062\u590d\u65f6\u95f4\u3002</p> <p>\u89c2\u70b9\u6587\u7ae0\u63d0\u5230\u7684\u573a\u666f\u76f8\u5bf9\u4e8e\u5b9e\u9645\u90e8\u7f72\u573a\u666f\u8fd8\u8fc7\u4e8e\u7b80\u5355\uff0c\u6211\u4eec\u628a\u5b83\u6269\u5c55\u5230\u5b9e\u9645\u573a\u666f\uff1a</p> <p></p> <p>\u5b9e\u9645\u573a\u666f\u9664\u4e86\u4fdd\u969c\u5355AZ\u5185\u7684\u8bf7\u6c42\u95ed\u73af\uff0c\u8fd8\u9700\u8981\u4fdd\u8bc1\u4e0d\u540cAZ\u7684\u5b9e\u4f8b\u80fd\u591f\u5206\u62c5\u6d41\u91cf\u3002\u5f53\u51fa\u73b0AZ\u7f51\u7edc\u9694\u79bb\uff0c\u7531\u4e8e\u6bcf\u4e2aAZ\u5b9e\u4f8b\u611f\u77e5\u5230\u7684\u603b\u7684\u5b9e\u4f8b\u6570\u51cf\u5c11\uff0c\u4f1a\u89e6\u53d1\u5f39\u6027\u6269\u7f29\u5bb9\uff0c\u4ece\u800c\u9700\u8981\u6ce8\u518c\u4e2d\u5fc3\u652f\u6301\u65b0\u5b9e\u4f8b\u6ce8\u518c\u3002 \u4f46\u662f\u672c\u8d28\u4e0a\uff0c\u8fd9\u4e2a\u573a\u666f\u7cfb\u7edf\u7684\u5904\u7406\u80fd\u529b\u5e76\u6ca1\u6709\u964d\u4f4e\uff0c\u5f39\u6027\u6269\u7f29\u5bb9\u5c06\u4f1a\u662f\u4e00\u4e2a\u9519\u8bef\u7684\u884c\u4e3a\uff0c\u8fd9\u4e2a\u9519\u8bef\u7684\u884c\u4e3a\uff0c\u4f1a\u7ed9\u7cfb\u7edf\u8d44\u6e90\u7684\u4f7f\u7528\u548c\u6545\u969c\u6062\u590d\u5e26\u6765\u66f4\u591a\u7684\u4e0d\u53ef\u9884\u6d4b\u56e0\u7d20\u3002</p>"},{"location":"featured-topics/secrets/zookeeper.html#_4","title":"\u5173\u4e8e\u6027\u80fd","text":"<p>ZooKeeper\u53ea\u6709Leader\u53ef\u4ee5\u5199\u5165\uff0c\u901a\u8fc7\u6269\u5bb9Learner(Follower/Observer)\u63d0\u5347\u8bfb\u53d6\u6027\u80fd\u3002\u6ce8\u518c\u914d\u7f6e\u4e2d\u5fc3\u7684\u573a\u666f\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u8bfb\u8981\u6c42\u9ad8\uff0c\u5199\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f, ZooKeeper\u5f88\u597d\u7684\u6ee1\u8db3\u4e86\u5199\u4e0d\u9891\u7e41\uff0c\u8bfb\u5f88\u9891\u7e41\u7684\u8981\u6c42\u3002 \u6700\u590d\u6742\u7684\u4e1a\u52a1\u7cfb\u7edf\uff0cZooKeeper\u7ba1\u7406\u7684\u5b9e\u4f8b\u4e2a\u6570\u572810000\u4ee5\u4e0b\uff0c\u5373\u4f7f\u8fd9\u4e9b\u7cfb\u7edf\u88ab\u8bbe\u8ba1\u4e3a\u5141\u8bb8\u52a8\u6001\u5f39\u6027\u6269\u7f29\u5bb9\u3002\u8d85\u5927\u89c4\u6a21\u7684\u4e1a\u52a1\u7cfb\u7edf\uff0c\u4e00\u822c\u5fae\u670d\u52a1\u7f51\u5173\u6765\u63d0\u5347\u7cfb\u7edf\u97e7\u6027\uff0c\u5e76\u9632\u6b62\u672a\u77e5\u6545\u969c\u5e26\u6765\u7684\u7206\u70b8\u534a\u5f84\u6269\u5927\u3002 \u5728\u524d\u671fJava Chassis 3\u6280\u672f\u89e3\u5bc6\uff1a\u4e0eSpring Cloud\u7684\u4e92\u64cd\u4f5c\u5206\u4eab\u4e86\u67b6\u6784\u97e7\u6027\u7684\u4e00\u4e9b\u5185\u5bb9\u3002</p> <p></p> <p>\u56e0\u6b64\uff0c\u652f\u6301\u8d85\u5927\u89c4\u6a21\u670d\u52a1\u6ce8\u518c\u7684\u573a\u666f\uff0c\u4e0d\u5177\u5907\u5927\u7684\u73b0\u5b9e\u610f\u4e49\u3002 \u5173\u4e8e\u8d85\u5927\u89c4\u6a21\u5b9e\u4f8b\u7ba1\u7406\u7684\u95ee\u9898\uff0c\u53ef\u80fd\u66f4\u591a\u6765\u81ea\u4e8e\u4e0d\u6070\u5f53\u7684\u67b6\u6784\u8bbe\u8ba1\u6216\u8005\u5fae\u670d\u52a1\u53d1\u73b0\u673a\u5236\uff08\u6bd4\u5982\u65e9\u671fDubbo\u7248\u672c\u4f7f\u7528\u7684\u57fa\u4e8e\u63a5\u53e3\u7684\u670d\u52a1\u53d1\u73b0\uff0c\u5b9e\u4f8b\u4e2a\u6570\u548c\u63a5\u53e3\u6570\u91cf\u6210\u6b63\u6bd4\uff09\u3002</p>"},{"location":"featured-topics/secrets/zookeeper.html#_5","title":"\u603b\u7ed3","text":"<p>Java Chassis 3\u4f7f\u7528ZooKeeper\u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u662f\u975e\u5e38\u597d\u7684\u9009\u62e9\uff0cZooKeeper\u53ef\u4ee5\u5728\u5e94\u7528\u7cfb\u7edf\u4e2d\u540c\u65f6\u626e\u6f14\u6ce8\u518c\u3001\u914d\u7f6e\u548c\u9009\u4e3e\u7b49\u529f\u80fd\uff0c\u80fd\u591f\u6781\u5927\u7684\u7b80\u5316\u5e94\u7528\u90e8\u7f72\u548c\u670d\u52a1\u4f9d\u8d56\u3002CP\u4e00\u81f4\u6027\u4e5f\u4f7f\u5f97\u5e38\u89c1\u6545\u969c\u573a\u666f\u4e0b\u5e94\u7528\u7a0b\u5e8f\u7684\u884c\u4e3a\u5177\u5907\u66f4\u597d\u7684\u9884\u6d4b\u6027\u3002\u5927\u89c4\u6a21\u7cfb\u7edf\u53ef\u4ee5\u91c7\u7528\u5fae\u670d\u52a1\u7f51\u5173\u6765\u63d0\u5347\u7cfb\u7edf\u97e7\u6027\uff0c\u964d\u4f4e\u7cfb\u7edf\u7206\u70b8\u534a\u5f84\u3002</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html","title":"2.8.x \u5347\u7ea7 3.0.0 \u6307\u5bfc","text":"<p>3.0.0\u7248\u672c\u7684\u91cd\u8981\u66f4\u65b0\uff1a</p> <ul> <li>\u6700\u5c0f\u652f\u6301 JDK 17</li> <li>\u91c7\u7528Spring Boot 3\u4f5c\u4e3a\u5f00\u53d1\u5e95\u5ea7\uff0c\u5e95\u5c42\u5b9e\u73b0\u4f9d\u8d56Spring Boot 3\uff0c\u4e0d\u518d\u63d0\u4f9bSpring\u542f\u52a8\u65b9\u5f0f\u3002</li> <li>\u652f\u6301 OpenAPI 3.0 \u89c4\u8303</li> </ul> <p>\u672c\u6587\u6863\u63d0\u4f9b2.8.x\u5347\u7ea7\u52303.0.0\u7684\u6307\u5bfc\u3002</p> <p>\u8bf4\u660e\uff1a\u7531\u4e8eSpring Boot 3\u4e0d\u518d\u517c\u5bb9 javax.servlet\uff0c javax.ws \u7b49\u7ec4\u4ef6\uff0c\u5e76\u4e14 swagger 1.x \u6ca1\u6709\u63d0\u4f9b jakarta.servlet\u652f\u6301\uff0c3.0.0 \u7248\u672c\u4f7f\u7528 swagger 2.x \u652f\u6301 Open API 3.0\u3002 \u56e0\u6b64\uff0c3.0.0 \u7248\u672c\u4e0d\u80fd\u4fdd\u8bc1\u4e0e 2.x.x \u7248\u672c\u4e4b\u95f4\u7684\u6b63\u5e38\u901a\u4fe1\u3002 \u5728\u5347\u7ea7 3.0.0 \u7684\u65f6\u5019\uff0c\u9700\u8981\u6ce8\u610f\u5bf9\u73b0\u6709\u670d\u52a1\u8fdb\u884c\u5168\u91cf\u5347\u7ea7\uff0c\u4e0d\u652f\u6301\u72ec\u7acb\u5347\u7ea7\u5ba2\u6237\u7aef\u6216\u8005\u670d\u52a1\u7aef\u5fae\u670d\u52a1\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_1","title":"\u4f9d\u8d56\u914d\u7f6e\u548c\u542f\u52a8\u7c7b","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#java-chassistransport","title":"Java Chassis\u539f\u751fTransport","text":"<p>Java Chassis\u539f\u751f\u63d0\u4f9b\u4e86 Rest Over Vert.x, Highway\u7b49\u539f\u751fTransport\u3002Edge Service\u4e5f\u4f7f\u7528\u539f\u751fTransport\u8fd0\u884c\u3002</p> <p>TODO</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#spring-boot-servlet-transport","title":"Spring Boot Servlet Transport","text":"<p>Java Chassis\u652f\u6301\u8fd0\u884c\u4e0eServlet\u5bb9\u5668\uff0c\u81ea\u8eab\u4f5c\u4e3a\u4e00\u4e2aServlet\u542f\u52a8\u3002</p> <p>TODO</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#web-servlet-transport","title":"\u72ec\u7acbWEB\u5bb9\u5668 Servlet Transport","text":"<p>Java Chassis\u652f\u6301\u8fd0\u884c\u4e0eServlet\u5bb9\u5668\uff0c\u81ea\u8eab\u4f5c\u4e3a\u4e00\u4e2aServlet\u542f\u52a8\u3002</p> <p>TODO</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#spi-bean","title":"SPI \u4fee\u6539\u4e3a Bean","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#bootlistener","title":"BootListener","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#metricsinitializer","title":"MetricsInitializer","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#discoveryfilter","title":"DiscoveryFilter","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#cse","title":"\u914d\u7f6e\u9879\u4e0d\u518d\u652f\u6301 <code>cse</code> \u524d\u7f00","text":"<p>Java Chassis \u7684\u6240\u6709\u914d\u7f6e\u9879\u5168\u90e8\u4f7f\u7528 <code>servicecomb</code> \u4f5c\u4e3a\u524d\u7f00\uff0c\u6bd4\u5982\uff1a</p> <pre><code>servicecomb:\n  service:\n    application: my-application\n    name: my-service\n</code></pre> <p>\u65e9\u671f\u7248\u672c\uff0c\u4e5f\u652f\u6301\u4e0b\u9762\u7684\u914d\u7f6e\uff1a</p> <pre><code>cse:\n  service:\n    application: my-application\n    name: my-service\n</code></pre> <p>3.0.0 \u7248\u672c\u4e0d\u518d\u63d0\u4f9b <code>cse</code> \u524d\u7f00\u652f\u6301\uff0c\u9700\u8981\u5c06 <code>cse</code> \u524d\u7f00\u4fee\u6539\u4e3a <code>servicecomb</code>\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_2","title":"\u7248\u672c\u7ba1\u7406","text":"<p>3.0.0 \u7b80\u5316\u4e86\u6ce8\u518c\u53d1\u73b0\u7684\u4f9d\u8d56\u548c\u5b9e\u73b0\uff0c\u4ee5\u652f\u6301\u66f4\u591a\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u73b0\u3002 3.0.0 \u4e0d\u518d\u652f\u6301\u7248\u672c\u7684\u7ba1\u7406\u3002\u5177\u4f53\u8868\u73b0\u4e3a\u51e0\u4e2a\u5e38\u7528\u7684\u573a\u666f\uff1a</p> <ul> <li>\u5ba2\u6237\u7aef\u6307\u5b9a version-rule\uff0c\u6307\u660e\u53ea\u8c03\u7528\u670d\u52a1\u7aef\u7684\u67d0\u4e9b\u7248\u672c\uff1b</li> <li>\u5ba2\u6237\u7aef\u6839\u636e\u6bcf\u4e2a\u7248\u672c\u7684 Open API \u5b9a\u4e49\uff0c\u80fd\u591f\u533a\u5206\u67d0\u4e2a operation \u662f\u5426\u5b58\u5728\u4e8e\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u907f\u514d\u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u4e0d\u5b58\u5728\u8be5 operation \u7684\u5b9e\u4f8b\u3002</li> <li>Edge Service\u4e0d\u518d\u652f\u6301\u7248\u672c\u914d\u7f6e\u3002 \u5373\u53ea\u80fd\u914d\u7f6e /microservice/path\uff0c \u4e0d\u80fd\u914d\u7f6e /microservice/version-rule/path\u3002 \u7c7b\u4f3c\u7684\u573a\u666f\u53ef\u4ee5\u91c7\u7528\u7070\u5ea6\u53d1\u5e03\u6765\u89e3\u51b3\u3002</li> </ul>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_3","title":"\u5951\u7ea6\u52a0\u8f7d\u6d41\u7a0b\u53d8\u5316","text":"<ul> <li> <p>\u4f5c\u4e3a\u63d0\u4f9b\u8005\u7684\u5951\u7ea6\u52a0\u8f7d</p> <p>3.0.0\u7248\u672c\u63d0\u4f9b\u8005\u4e0d\u518d\u52a0\u8f7d\u672c\u5730\u5951\u7ea6\uff0c\u800c\u662f\u6839\u636e\u4ee3\u7801\u751f\u6210\u5951\u7ea6\uff0c\u5e76\u5c06\u751f\u6210\u7684\u5951\u7ea6\u6ce8\u518c\u5230\u6ce8\u518c\u4e2d\u5fc3\u3002\u505a\u8fd9\u4e2a\u53d8\u5316\u7684\u76ee\u7684\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u624b\u5199\u5951\u7ea6\u548c\u4ee3\u7801\u672c\u8eab\u751f\u6210\u5951\u7ea6\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u4f1a\u5bfc\u81f4\u4ee3\u7801\u8bed\u4e49\u9605\u8bfb\u56f0\u96be\uff0c\u5e26\u6765\u5f88\u591a\u9690\u85cf\u4e0d\u6613\u53d1\u73b0\u7684\u9519\u8bef\u3002\u800c\u8bed\u4e49\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u8fd9\u79cd\u4f7f\u7528\u65b9\u5f0f\u6ca1\u6709\u5b9e\u9645\u610f\u4e49\uff0c\u4f7f\u7528\u4ee3\u7801\u751f\u6210\u5951\u7ea6\u5f97\u5230\u4e00\u6837\u7684\u7ed3\u679c\u3002</p> </li> <li> <p>\u4f5c\u4e3a\u6d88\u8d39\u8005\u7684\u5951\u7ea6\u52a0\u8f7d</p> <p>3.0.0\u7248\u672c\u6d88\u8d39\u8005\u5951\u7ea6\u52a0\u8f7d\u6d41\u7a0b\u4e0d\u53d8\u3002\u4f18\u5148\u52a0\u8f7d\u672c\u5730\u5951\u7ea6\u3002</p> </li> </ul>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#1x","title":"1.x \u517c\u5bb9\u6027\u5220\u9664","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_4","title":"\u53c2\u6570\u4f4d\u7f6e\u5339\u914d","text":"<p>1.x \u548c 2.x \u7248\u672c\uff0c Java\u4ee3\u7801\u751f\u6210\u5951\u7ea6\u540e\uff0c\u5951\u7ea6\u7684\u53c2\u6570\u4e2a\u6570\u548c\u987a\u5e8f\u53ef\u4ee5\u4fdd\u6301Java\u4ee3\u7801\u7684Method\u4e00\u81f4\u3002Java Chassis 2.x \u57fa\u4e8e\u5951\u7ea6\uff0c\u9ed8\u8ba4\u6839\u636e\u53c2\u6570\u540d\u79f0\u4ece\u5951\u7ea6\u4e2d\u67e5\u627e\u662f\u5426\u5b58\u5728\u8be5\u53c2\u6570\u3002 \u4f46\u662f1.x\u7248\u672c\uff0c\u4e0d\u662f\u57fa\u4e8e\u540d\u79f0\u67e5\u627e\u7684\uff0c\u800c\u662f\u57fa\u4e8e\u53c2\u6570\u4f4d\u7f6e\u67e5\u627e\u7684\u3002 \u6240\u4ee5\u5728\u90e8\u5206\u53c2\u6570\u540d\u79f0\u4e0d\u5339\u914d\u7684\u60c5\u51b5\u4e0b\uff0c2.x\u505a\u4e86\u4e00\u4e9b\u517c\u5bb9\u6027\u5904\u7406\uff0c\u5229\u7528\u4e86Open API 2.0\u53ef\u4ee5\u4fdd\u8bc1\uff08\u6700\u5927\u9650\u5ea6\uff0c\u975e\u786e\u5b9a\u6027\u7b97\u6cd5\uff09\u987a\u5e8f\u7684\u673a\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f4d\u7f6e\u5339\u914d\u5230\u53c2\u6570\u3002Open API 3.0.0\u7684\u53c2\u6570\u57fa\u4e8e\u540d\u79f0\uff0c\u5e76\u4e14\u4e0d\u5728\u4fdd\u8bc1\u548cJava\u7684Method\u53c2\u6570\u4f4d\u7f6e\u4e00\u81f4\uff0c\u56e0\u6b643.0.0\u7248\u672c\u4e0d\u5728\u652f\u6301\u8fd9\u4e2a\u53c2\u6570\u4f4d\u7f6e\u5339\u914d\u7684\u67e5\u627e\u573a\u666f\u3002  \u5728\u5b9a\u4e49\u53c2\u6570\u7684\u65f6\u5019\uff0c\u9700\u8981\u4fdd\u8bc1Java\u7684Method\u53c2\u6570\u540d\u79f0\uff08\u6216\u8005\u901a\u8fc7annotation\u58f0\u660e\u7684\u53c2\u6570\u540d\u79f0\uff09\u4e0e\u5951\u7ea6\u7684\u540d\u79f0\u4e00\u81f4\u3002\uff08Parameter\u4f7f\u7528name\u5c5e\u6027\uff1bRequestBody\u4f7f\u7528\u6269\u5c55\u5c5e\u6027x-name\uff0c\u5982\u679c\u662fform\u683c\u5f0f\uff0c\u5219\u4f7f\u7528Property\u7684key\u4f5c\u4e3a\u540d\u79f0\u3002\uff09</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#rest-open-api","title":"REST \u548c Open API\u5e38\u89c1\u4e0d\u517c\u5bb9\u95ee\u9898","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#collectionformat","title":"collectionFormat","text":"<p>collectionFormat \u5728 2.0 \u7528\u6765\u8868\u793a Query \u53c2\u6570\u7684\u5f62\u5f0f\u3002 \u5728 3.0 \u540e\uff0c \u4e0d\u518d\u652f\u6301  tsv \u548c jason \u683c\u5f0f\u3002 \u800c\u662f\u6307\u5b9a style \u548c explode\u3002 \u8be6\u7ec6\u53c2\u8003\uff1a https://swagger.io/docs/specification/serialization/</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#springmvc","title":"SpringMVC\u3000\u53d8\u66f4\u9879","text":""},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#requestattribute-requestparam","title":"@RequestAttribute \u548c @RequestParam \u6807\u7b7e","text":"<p>\u5728 servicecomb \u7684\u5f00\u53d1\u6307\u5357\u91cc\u9762\uff0c @RequestAttribute \u6807\u7b7e\u63cf\u8ff0\u4e3a\u4e0d\u652f\u6301\u3002 \u4f46\u662f\u5b9e\u9645\u7528\u6237\u4f7f\u7528\u5e76\u4e0d\u4f1a\u62a5\u9519\uff0c\u800c\u4e14\u5c06\u8fd9\u4e2a\u6620\u5c04\u4e3aHTTP\u7684form\u53c2\u6570\u3002 3.0.0 \u91c7\u7528 @RequestAttribute \u8868\u793a form \u53c2\u6570\uff0c @RequestParam \u8868\u793a query\u53c2\u6570\u3002</p> <p>\u5728\u4f7f\u7528\u4e0a\u9700\u8981\u6ce8\u610f\u4e0espring web\u539f\u751f\u884c\u4e3a\u7684\u5dee\u5f02\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#asyncresttemplate","title":"\u4e0d\u5728\u652f\u6301 AsyncRestTemplate","text":"<p>Spring 6 \u5220\u9664\u4e86 AsyncRestTemplate \u652f\u6301\uff0c Java Chassis 3.0.0 \u4e5f\u5220\u9664\u4e86\u652f\u6301\u3002 \u76f8\u5173\u4ee3\u7801\u9700\u8981\u4f7f\u7528 <code>CompletableFuture</code> \u5f02\u6b65\u4ee3\u7801\u66ff\u6362\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#log4j-logback","title":"\u79fb\u9664 log4j , logback \u7684\u5c01\u88c5","text":"<p>Java Chassis \u7cfb\u7edf\u5185\u90e8\u5168\u90e8\u91c7\u7528 <code>slf4j</code> \u8bb0\u5f55\u65e5\u5fd7\uff0c \u4e0d\u518d\u63d0\u4f9b log4j \u7684\u5c01\u88c5\u529f\u80fd\uff0c \u5220\u9664\u4e86 Log4jUtils \u7b49\u7c7b\u3002 \u5982\u679c\u4f7f\u7528\u4e86 Log4jUtils \u7c7b\u6765\u521d\u59cb\u5316\u65e5\u5fd7\uff0c \u53ef\u4ee5\u53c2\u8003 \u914d\u7f6e\u65e5\u5fd7 \u6765\u8bbe\u7f6e\u7cfb\u7edf\u65e5\u5fd7\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#bizkeeper","title":"\u79fb\u9664 bizkeeper \u5904\u7406\u94fe","text":"<p>Java Chassis \u65e9\u671f\u7248\u672c\u57fa\u4e8e <code>Hystrix</code> \u63d0\u4f9b\u4e86\u57fa\u4e8e\u65b9\u6cd5\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b\uff0c\u7531\u4e8e\u793e\u533a\u5df2\u7ecf\u505c\u6b62 <code>Hystrix</code> \u7ef4\u62a4\uff0c\u5e76\u4e14 <code>bizkeeper</code> \u8bbe\u8ba1\u4e0a\u4e0d\u80fd\u5f88\u597d\u7684\u6ee1\u8db3\u573a\u666f\u7684\u6545\u969c\u6a21\u5f0f\u4fdd\u62a4\uff0c 3.0.0 \u7248\u672c\u5220\u9664\u4e86\u8fd9\u4e2a\u6a21\u5757\u3002 \u670d\u52a1\u6cbb\u7406\u53ef\u4ee5\u4f7f\u7528\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u6765\u5b9e\u73b0\uff0c\u8fc7\u8f7d\u4fdd\u62a4\u7684\u6700\u4f73\u5904\u7406\u65b9\u6848\u662f\u914d\u7f6e\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\u3002</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_5","title":"\u79fb\u9664\u5b9e\u4f8b\u9694\u79bb\u529f\u80fd","text":"<p>Java Chassis 3.0.0 \u4e0d\u518d\u652f\u6301\u4e0b\u9762\u7684\u914d\u7f6e\u9879\uff1a</p> <pre><code>servicecomb:\n  loadbalance:\n    isolation:\n      enabled: false\n      errorThresholdPercentage: 0\n      enableRequestThreshold: 5\n      singleTestTime: 60000\n      continuousFailureThreshold: 5\n      maxSingleTestWindow: 60000 # \u4e3a\u4e86\u4fdd\u8bc1\u5728\u5e76\u53d1\u60c5\u51b5\u4e0b\u53ea\u6709\u4e00\u4e2a\u5b9e\u4f8b\u653e\u901a\uff0c\u4f1a\u9501\u5b9a\u653e\u901a\u5b9e\u4f8b\u3002\u8fd9\u4e2a\u65f6\u95f4\u8868\u793a\u6700\u5927\u9501\u5b9a\u65f6\u95f4\u3002\n      minIsolationTime: 3000 # \u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\u5e76\u53d1\u60c5\u51b5\u4e0b\uff0c\u5b9e\u4f8b\u9694\u79bb\u540e\u8fdb\u884c\u4e2d\u7684\u8bf7\u6c42\u53ef\u80fd\u5feb\u901f\u5237\u65b0\u9694\u79bb\u72b6\u6001\uff0c\u589e\u52a0\u6700\u77ed\u9694\u79bb\u65f6\u95f4\u3002\n      recoverImmediatelyWhenSuccess: true # \u653e\u901a\u5b9e\u4f8b\uff0c\u5982\u679c\u8c03\u7528\u6210\u529f\uff0c\u7acb\u5373\u6e05\u9664\u7edf\u8ba1\u72b6\u6001\uff0c\u4fdd\u8bc1\u540e\u7eed\u8bf7\u6c42\u80fd\u591f\u4f7f\u7528\u8be5\u5b9e\u4f8b\u3002 2.1.3 \u65b0\u589e\u3002\n</code></pre> <p>\u5355\u5b9e\u4f8b\u6545\u969c\u9632\u62a4\u53ef\u4ee5\u4f7f\u7528\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u6765\u5b9e\u73b0\uff0c\u542f\u7528\u5ba2\u6237\u7aef\u7194\u65ad\u548c\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\u3002</p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#archaius","title":"\u79fb\u9664 archaius","text":"<p>Java Chassis \u65e9\u671f\u7248\u672c\u57fa\u4e8earchaius\u5b9e\u73b0\u52a8\u6001\u914d\u7f6e\uff0c \u7531\u4e8e\u8fd9\u4e2a\u8f6f\u4ef6\u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\uff0c 3.0.0\u79fb\u9664\u4e86\u8fd9\u4e2a\u4f9d\u8d56\uff0c\u5b8c\u6210\u96c6\u6210\u548c\u4f7f\u7528 Spring Boot\u914d\u7f6e\u673a\u5236\u3002 \u610f\u5473\u7740\u4e1a\u52a1 \u4f7f\u7528 DynamicPropertyFactory \u7b49 archaius API\u8bfb\u53d6\u914d\u7f6e\u7684\u5730\u65b9\uff0c\u9700\u8981\u4f7f\u7528 Spring Boot \u7684 Environment API\u3002 Java Chassis\u4ecd\u7136\u4fdd\u7559\u4e86 DynamicProperties  \u63a5\u53e3\uff0c @InjectProperty\u7684\u914d\u7f6e\u4f7f\u7528\u65b9\u5f0f\uff0c \u80fd\u591f\u66f4\u52a0\u65b9\u4fbf\u7684\u4f7f\u7528\u52a8\u6001\u914d\u7f6e\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#_6","title":"\u591a\u79cd\u5e8f\u5217\u5316\u652f\u6301","text":"<p>3.0.0\u7248\u672c\u652f\u6301REST\u98ce\u683c\u591a\u79cd\u5e8f\u5217\u5316\u652f\u6301\uff0c\u5728application/json\u57fa\u7840\u4e4b\u4e0a\uff0c\u652f\u6301text/plain, application/protobuf\u652f\u6301\u3002 </p>"},{"location":"featured-topics/upgrading/2_8_0T3_0_0.html#archetypes","title":"\u63d0\u4f9b\u65b0\u7684 archetypes \u63d2\u4ef6","text":"<p>TODO</p>"},{"location":"general-development/AlarmEvent.html","title":"\u76d1\u542c\u544a\u8b66\u4e8b\u4ef6","text":""},{"location":"general-development/AlarmEvent.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>Java-Chassis \u4f1a\u5728\u8fd0\u884c\u671f\u95f4\u629b\u51fa\u4e00\u4e9b\u4e0e\u5fae\u670d\u52a1\u6cbb\u7406\u76f8\u5173\u7684\u544a\u8b66\u4e8b\u4ef6\uff0c\u5f53\u524d\u6d89\u53ca\u7684\u573a\u666f\u5305\u62ec\uff1a</p> <ul> <li>\u670d\u52a1\u7194\u65ad</li> <li>\u5b9e\u4f8b\u9694\u79bb</li> </ul> <p>\u7528\u6237\u53ef\u4ee5\u81ea\u884c\u6269\u5c55\u544a\u8b66\u4e8b\u4ef6\u76d1\u542c\u5668\uff0c\u83b7\u53d6\u76f8\u5173\u4e8b\u4ef6\u3002</p>"},{"location":"general-development/AlarmEvent.html#_3","title":"\u544a\u8b66\u4e8b\u4ef6\u5217\u8868","text":"\u4e8b\u4ef6 \u4e8b\u4ef6\u5c5e\u6027 \u5c5e\u6027\u8bf4\u660e CircutBreakerEvent\u670d\u52a1\u7194\u65ad\u4e8b\u4ef6 type \u4e8b\u4ef6\u7c7b\u578b\uff0c\u5305\u542b`OPEN`/`CLOSE`\u4e24\u4e2a\u679a\u4e3e\u503c\uff0c\u5206\u522b\u8868\u793a\u4e8b\u4ef6\u53d1\u751f\u548c\u4e8b\u4ef6\u6062\u590d role \u7194\u65ad\u4e8b\u4ef6\u53d1\u751f\u65f6\u672c\u670d\u52a1\u5b9e\u4f8b\u7684\u89d2\u8272\uff0c\u6709`CONSUMER`/`PRODUCER`\u4e24\u79cd\u53d6\u503c microservice \u88ab\u7194\u65ad\u7684\u670d\u52a1\u540d schema \u88ab\u7194\u65ad\u7684\u670d\u52a1\u7684\u5951\u7ea6ID operation \u88ab\u7194\u65ad\u7684\u670d\u52a1\u7684\u65b9\u6cd5\u540d currentTotalRequest \u5f53\u524d\u603b\u8bf7\u6c42\u6570 currentErrorCount \u5f53\u524d\u8bf7\u6c42\u51fa\u9519\u8ba1\u6570 currentErrorPercentage \u5f53\u524d\u8bf7\u6c42\u51fa\u9519\u767e\u5206\u6bd4 requestVolumeThreshold 10s\u5185\u8bf7\u6c42\u6570\u9700\u8981\u5927\u4e8e\u7b49\u4e8e\u8fd9\u4e2a\u53c2\u6570\u503c\uff0c\u624d\u5f00\u59cb\u8ba1\u7b97\u9519\u8bef\u7387\u548c\u5224\u65ad\u662f\u5426\u8fdb\u884c\u7194\u65ad sleepWindowInMilliseconds \u7194\u65ad\u6548\u679c\u7ef4\u6301\u65f6\u95f4 errorThresholdPercentage \u9519\u8bef\u7387\u9608\u503c\uff0c\u8fbe\u5230\u6b64\u9608\u503c\u5219\u89e6\u53d1\u7194\u65ad IsolationServerEvent\u5b9e\u4f8b\u9694\u79bb\u4e8b\u4ef6 type \u4e8b\u4ef6\u7c7b\u578b\uff0c\u5305\u542b`OPEN`/`CLOSE`\u4e24\u4e2a\u679a\u4e3e\u503c\uff0c\u5206\u522b\u8868\u793a\u4e8b\u4ef6\u53d1\u751f\u548c\u4e8b\u4ef6\u6062\u590d microserviceName \u88ab\u9694\u79bb\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u540d endpoint \u88ab\u9694\u79bb\u5b9e\u4f8b\u7684endpoint\u4fe1\u606f instance \u88ab\u9694\u79bb\u5b9e\u4f8b\u7684\u5b9e\u4f8b\u4fe1\u606f\uff0c\u7c7b\u578b\u4e3a<code>org.apache.servicecomb.serviceregistry.api.registry.MicroserviceInstance</code> currentTotalRequest \u5f53\u524d\u5b9e\u4f8b\u603b\u8bf7\u6c42\u6570 currentCountinuousFailureCount \u5f53\u524d\u5b9e\u4f8b\u8fde\u7eed\u51fa\u9519\u6b21\u6570 currentErrorPercentage \u5f53\u524d\u5b9e\u4f8b\u51fa\u9519\u767e\u5206\u6bd4 minIsolationTime \u5b9e\u4f8b\u9694\u79bb\u6548\u679c\u7ef4\u6301\u7684\u6700\u77ed\u4e8b\u4ef6\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 enableRequestThreshold \u5f00\u542f\u5b9e\u4f8b\u9694\u79bb\u72b6\u6001\u7edf\u8ba1\u7684\u9608\u503c\uff0c\u603b\u8bf7\u6c42\u6b21\u6570\u8d85\u8fc7\u6b64\u9608\u503c\u65f6\u5f00\u59cb\u8ba1\u7b97\u8bf7\u6c42\u5931\u8d25\u60c5\u51b5\uff0c\u5224\u65ad\u662f\u5426\u9694\u79bb\u5b9e\u4f8b continuousFailureThreshold \u8fde\u7eed\u8bf7\u6c42\u5931\u8d25\u9608\u503c\uff0c\u5728\u8fde\u7eed\u8bf7\u6c42\u5931\u8d25\u6b21\u6570\u89e6\u53d1\u9694\u79bb\u7684\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u4e00\u4e2a\u5b9e\u4f8b\u8fde\u7eed\u8c03\u7528\u5931\u8d25\u6b21\u6570\u8d85\u8fc7\u6b64\u9608\u503c\u5219\u88ab\u9694\u79bb errorThresholdPercentage \u8bf7\u6c42\u9519\u8bef\u7387\u9608\u503c\uff0c\u5728\u8bf7\u6c42\u9519\u8bef\u7387\u89e6\u53d1\u9694\u79bb\u7684\u6a21\u5f0f\u4e0b\uff0c\u5982\u679c\u4e00\u4e2a\u5b9e\u4f8b\u7684\u8bf7\u6c42\u5931\u8d25\u7387\u8d85\u8fc7\u6b64\u9608\u503c\u5219\u88ab\u9694\u79bb singleTestTime \u5b9e\u4f8b\u9694\u79bb\u6548\u679c\u7ef4\u6301\u65f6\u95f4"},{"location":"general-development/AlarmEvent.html#_4","title":"\u4f7f\u7528\u53c2\u8003","text":"<ul> <li>\u5b9a\u4e49\u544a\u8b66\u4e8b\u4ef6\u76d1\u542c\u5668</li> </ul> <pre><code>public class AlarmListener {\n  @Subscribe\n  public void onAllKindsOfEvent(AlarmEvent event) {\n    // \u76d1\u542c\u544a\u8b66\u4e8b\u4ef6\u7684\u57fa\u7c7b\u4ee5\u83b7\u53d6\u6240\u6709\u79cd\u7c7b\u7684\u544a\u8b66\u4e8b\u4ef6\n  }\n\n  @Subscribe\n  public void onCircutBreakerEvent(CircutBreakerEvent event) {\n    // \u4ec5\u76d1\u542c\u670d\u52a1\u7194\u65ad\u4e8b\u4ef6\n  }\n\n  @Subscribe\n  public void onIsolationServerEvent(IsolationServerEvent event) {\n    // \u4ec5\u76d1\u542c\u5b9e\u4f8b\u9694\u79bb\u4e8b\u4ef6\n  }\n}\n</code></pre> <p>\u4e8b\u4ef6\u76d1\u542c\u5668\u793a\u4f8b\u5982\u4e0a\u6240\u793a\uff0c\u76d1\u542c\u5668\u91cc\u7684\u4e09\u4e2a\u65b9\u6cd5\u5206\u522b\u7528\u4e8e\u76d1\u542c\u5168\u90e8\u544a\u8b66\u4e8b\u4ef6\u3001\u4ec5\u76d1\u542c\u670d\u52a1\u7194\u65ad\u4e8b\u4ef6\u3001\u4ec5\u76d1\u542c\u5b9e\u4f8b\u9694\u79bb\u4e8b\u4ef6\u3002 \u6ce8\u610f\uff0c\u76d1\u542c\u5668\u91cc\u7684\u4e09\u4e2a\u65b9\u6cd5\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u4f7f\u7528\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u8eab\u9700\u8981\uff0c\u81ea\u884c\u51b3\u5b9a\u9700\u8981\u5728\u76d1\u542c\u5668\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u3002</p> <ul> <li>\u5728<code>EventBus</code>\u4e2d\u6ce8\u518c\u4e8b\u4ef6\u76d1\u542c\u5668</li> </ul> <pre><code>EventManager.getEventBus().register(receiveEvent);\n</code></pre>"},{"location":"general-development/CORS.html","title":"\u8de8\u57df\u8d44\u6e90\u5171\u4eab(CORS)","text":""},{"location":"general-development/CORS.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u8de8\u57df\u8d44\u6e90\u5171\u4eab(CORS, Cross-Origin Resource Sharing)\u5141\u8bb8\u6d4f\u89c8\u5668\u5b89\u5168\u7684\u8fdb\u884c\u8de8\u57df\u8d44\u6e90\u8bbf\u95ee\u3002</p>"},{"location":"general-development/CORS.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u5f53\u7528\u6237\u9700\u8981\u4ece\u6d4f\u89c8\u5668\u4e0a\u8de8\u57df\u53d1\u9001REST\u8bf7\u6c42\u65f6\u5c31\u6709\u53ef\u80fd\u8981\u7528\u5230CORS\u673a\u5236\uff0c\u63a5\u6536\u8de8\u57df\u8bf7\u6c42\u7684\u5fae\u670d\u52a1\u9700\u8981\u5f00\u542fCORS\u652f\u6301\u3002</p>"},{"location":"general-development/CORS.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>CORS\u529f\u80fd\u5728microservice.yaml\u6587\u4ef6\u4e2d\u914d\u7f6e\uff0c\u914d\u7f6e\u9879\u89c1\u4e0b\u8868\u6240\u8ff0\u3002</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.cors.enabled <code>false</code> <code>true</code>/<code>false</code> \u5426 \u662f\u5426\u5f00\u542fCORS\u529f\u80fd - servicecomb.cors.origin <code>*</code> - \u5426 Access-Control-Allow-Origin \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.allowCredentials <code>false</code> <code>true</code>/<code>false</code> \u5426 Access-Control-Allow-Credentials \u6839\u636eCORS\u6807\u51c6\uff0c\u5f53Access-Control-Allow-Credentials\u8bbe\u7f6e\u4e3a<code>true</code>\u65f6\uff0cAccess-Control-Allow-Origin\u4e0d\u53ef\u8bbe\u7f6e\u4e3a\"*\"\uff0c\u5426\u5219\u5c06\u4f1a\u629b\u51fa\u5f02\u5e38 servicecomb.cors.allowedHeader \u65e0 - \u5426 Access-Control-Allow-Headers \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.allowedMethod \u65e0 - \u5426 Access-Control-Allow-Methods \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.exposedHeader \u65e0 - \u5426 Access-Control-Expose-Headers \u591a\u4e2a\u503c\u4f7f\u7528\u9017\u53f7\u5206\u9694 servicecomb.cors.maxAge \u65e0 (0,2147483647]\uff0c\u6574\u578b \u5426 Access-Control-Max-Age \u5355\u4f4d\u662f\u79d2\uff0c\u5982\u679c\u7528\u6237\u4e0d\u914d\u7f6e\u6b64\u9879\uff0c\u5219CORS\u5e94\u7b54\u4e2d\u6ca1\u6709Access-Control-Max-Age"},{"location":"general-development/CORS.html#_4","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u5141\u8bb8\u6240\u6709\uff1a</p> <pre><code>servicecomb:\n  cors:\n    enabled: true\n    origin: \"*\"\n    allowCredentials: false\n    allowedMethod: PUT,DELETE\n    maxAge: 3600\n</code></pre> <p>\u5141\u8bb8\u5355\u4e2aorigin\uff1a</p> <pre><code>servicecomb:\n  cors:\n    enabled: true\n    origin: \"http://test.domain:8080\"\n    allowCredentials: false\n    allowedMethod: PUT,DELETE\n    maxAge: 3600\n</code></pre> <p>\u914d\u7f6e\u591a\u4e2aorigin\uff1a</p> <pre><code>servicecomb:\n  cors:\n    enabled: true\n    origin: \"http://test.domain:8080,http://test.domain:9090\"\n    allowCredentials: false\n    allowedMethod: PUT,DELETE\n    maxAge: 3600\n</code></pre>"},{"location":"general-development/config-logs.html","title":"\u914d\u7f6e\u65e5\u5fd7","text":"<p>java chassis \u7cfb\u7edf\u5185\u90e8\u5168\u90e8\u91c7\u7528 <code>slf4j</code> \u8bb0\u5f55\u65e5\u5fd7\u3002 <code>slf4j</code> \u662f\u4e00\u5957\u65e5\u5fd7 API \u6807\u51c6\uff0c\u5177\u4f53\u5b9e\u73b0\u53ef\u4ee5\u7531 <code>log4j</code>, <code>log4j2</code>, <code>logback</code> \u7b49 \u63d0\u4f9b\u3002 java chassis \u9ed8\u8ba4\u6ca1\u6709\u63d0\u4f9b\u5b9e\u73b0\u7684\u4f9d\u8d56\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u9879\u4f9d\u8d56\u9002\u5408\u81ea\u5df1\u7684\u65e5\u5fd7\u5b9e\u73b0\uff0c \u4e0b\u9762\u7b80\u5355\u7684\u4ecb\u7ecd\u5982\u4f55\u5f15\u5165\u5e38\u89c1\u7684\u5b9e\u73b0\u3002</p> <ul> <li>log4j2</li> </ul> <p>\u4f7f\u7528 log4j2 \u9700\u8981\u5728\u9879\u76ee\u4e2d\u63d0\u4f9b\u5982\u4e0b\u4f9d\u8d56\u3002</p> <pre><code>&lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n      &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n      &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <ul> <li>logback</li> </ul> <p>\u4f7f\u7528 logback \u9700\u8981\u5728\u9879\u76ee\u4e2d\u63d0\u4f9b\u5982\u4e0b\u4f9d\u8d56\u3002</p> <pre><code>&lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;\n      &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p>\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\uff0c\u9700\u8981\u90e8\u7f72\u5927\u91cf\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u8c03\u7528\u60c5\u51b5\u590d\u6742\uff0c\u7ed9\u95ee\u9898\u5b9a\u4f4d\u5e26\u6765\u4e86\u5f88\u5927\u7684\u9ebb\u70e6\u3002 \u901a\u8fc7\u8c03\u7528\u94fe\u7cfb\u7edf\u80fd\u591f\u5f88\u597d\u7684\u89e3\u51b3\u65e5\u5fd7\u8ffd\u8e2a\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5bf9\u4e8e\u65e5\u5e38\u7684\u5f00\u53d1\u8c03\u8bd5\uff0c\u90e8\u7f72\u8c03\u7528\u94fe\u4ecd\u7136\u663e\u5f97\u590d\u6742\u3002 java-chassis \u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u673a\u5236\uff0c\u5141\u8bb8\u4e1a\u52a1\u5728\u8bb0\u5f55\u65e5\u5fd7\u7684\u65f6\u5019\uff0c\u5305\u542btrace id\u3002</p>"},{"location":"general-development/config-logs.html#trace-id","title":"\u5728\u65e5\u5fd7\u7cfb\u7edf\u4e2d\u8bb0\u5f55 trace id","text":"<p>\u53ef\u4ee5\u5728 log4j2 \u6216\u8005 logback \u4e2d\u4f7f\u7528 MDC \u7684\u65b9\u5f0f\u8bb0\u5f55 trace id\u3002</p> <p>log4j2\u7684\u914d\u7f6e\u5982\u4e0b\uff1a</p> <pre><code>  &lt;Appenders&gt;\n    &lt;Console name=\"Console\" target=\"SYSTEM_OUT\"&gt;\n      &lt;PatternLayout pattern=\"[%d][%t][%p][%c:%L][%X{SERVICECOMB_TRACE_ID}] %m%n\"/&gt;\n    &lt;/Console&gt;\n  &lt;/Appenders&gt;\n</code></pre> <p>logback\u7684\u914d\u7f6e\u5982\u4e0b:</p> <pre><code>  &lt;appender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\"&gt;\n    &lt;encoder&gt;\n      &lt;pattern&gt;%d [%level] [%thread][%X{SERVICECOMB_TRACE_ID}] - %msg (%F:%L\\)%n&lt;/pattern&gt;\n    &lt;/encoder&gt;\n  &lt;/appender&gt;\n</code></pre>"},{"location":"general-development/context.html","title":"\u4f7f\u7528Context\u4f20\u9012\u63a7\u5236\u6d88\u606f","text":"<p>Context \u7528\u4e8e\u5728\u5fae\u670d\u52a1\u4e4b\u95f4\u548c\u5fae\u670d\u52a1\u5185\u90e8\u4f20\u9012\u4e0a\u4e0b\u6587\u6570\u636e\u3002 Context \u662f key/value \u5bf9\uff0c\u53ea\u80fd\u591f\u4f7f\u7528 String \u7c7b\u578b\u3002 Context \u4f1a\u5e8f\u5217\u5316\u4e3a json \u683c\u5f0f\u5e76\u901a\u8fc7 HTTP Header \u4f20\u9012\uff0c\u56e0\u6b64\u4e5f\u4e0d\u652f\u6301 ASCII \u4e4b\u5916\u7684\u5b57\u7b26\uff0c\u5176\u4ed6\u5b57\u7b26\u9700\u8981\u5f00\u53d1\u8005\u5148\u81ea\u884c\u7f16\u7801\u518d\u4f20\u9012\u3002 Context \u5728\u4e00\u6b21\u8bf7\u6c42\u4e2d\uff0c\u4f1a\u5728\u8bf7\u6c42\u94fe\u4e0a\u4f20\u9012\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u8bbe\u7f6e\u3002access log\u7684 trace id \u7b49 \u529f\u80fd\u90fd\u57fa\u4e8e\u8fd9\u4e2a\u7279\u6027\u5b9e\u73b0\u7684\u3002</p> <p>Context \u4fdd\u5b58\u7684\u5185\u5bb9\u5206\u4e3a context \u548c localContext\u3002 localContext \u5728\u8c03\u7528\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5728\u8fdb\u7a0b\u5185\u90e8\u4f20\u9012\uff0c \u800c context \u7684\u5185\u5bb9\u4f1a\u4f20\u9012\u5230\u8c03\u7528\u8fc7\u7a0b\u4e2d \u8fdc\u7aef\u670d\u52a1\u3002 \u8fd9\u79cd\u4f20\u9012\u662f\u5355\u5411\u7684\u3002\u6bd4\u5982\u5728\u4e00\u4e2a Provider \u5185\u90e8\uff0c \u8c03\u7528\u63a5\u53e3\uff0c \u90a3\u4e48 localContext \u7684\u5185\u5bb9\u4f1a\u590d\u5236\u7ed9\u8c03\u7528\u63a5\u53e3\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u7684 localContext\uff0c \u5982\u679c\u8fd9\u4e2a\u63a5\u53e3\u5728\u8c03\u7528\u8fc7\u7a0b\u4e2d\u4fee\u6539\u4e86 localContext\uff0c \u63a5\u53e3\u8fd4\u56de\u540e\uff0c Provider \u540e\u7eed\u7684\u903b\u8f91\u5904\u7406\u770b\u4e0d\u5230\u5bf9\u4e8e context \u7684\u4fee\u6539\u3002 </p> <p>\u5728 Handler \u6216\u8005 Filter \u4e2d\u8c03\u7528\u5176\u4ed6\u5fae\u670d\u52a1\uff0c context \u4fe1\u606f\u9ed8\u8ba4\u4e0d\u4f1a\u590d\u5236\uff0c\u9700\u8981\u5f00\u53d1\u8005\u663e\u793a\u7684\u5c06 context \u4fe1\u606f\u4f20\u9012\u8fc7\u53bb\u3002 \u4f7f\u7528 RestTemplate \u6216\u8005 RPC \u65b9\u5f0f\u4f20\u9012 context \u7684\u4f8b\u5b50\uff0c\u8bf7\u53c2\u8003\u672c\u6587\u540e\u9762\u7684\u6848\u4f8b\u3002  </p>"},{"location":"general-development/context.html#context_1","title":"\u4f7f\u7528 Context \u7684\u573a\u666f","text":"<ul> <li>\u5728\u8ba4\u8bc1\u573a\u666f\uff0cEdge Service \u8ba4\u8bc1\u901a\u8fc7\u4ee5\u540e\uff0c\u9700\u8981\u5c06\u4f1a\u8bdd ID\u3001\u7528\u6237\u540d\u79f0\u7b49\u4fe1\u606f\u4f20\u9012\u7ed9\u5fae\u670d\u52a1\uff0c\u5b9e\u73b0\u9274\u6743\u7b49\u903b\u8f91\u3002</li> <li>\u7070\u5ea6\u53d1\u5e03\u573a\u666f\uff0c\u9700\u8981\u7ed3\u5408\u81ea\u5b9a\u4e49\u7684 tag \u5b9e\u73b0\u5f15\u6d41\uff0ctag \u4fe1\u606f\u9700\u8981\u4f20\u9012\u7ed9\u5fae\u670d\u52a1\u3002</li> <li>\u5f00\u53d1 Handler \u5904\u7406\u94fe\u7684\u65f6\u5019\uff0c\u4e00\u4e2a Handler \u9700\u8981\u5c06\u8ba1\u7b97\u7ed3\u679c\u4f20\u9012\u7ed9\u4e0b\u4e00\u4e2a Handler\u3002</li> </ul>"},{"location":"general-development/context.html#_1","title":"\u4f7f\u7528\u53c2\u8003","text":"<ul> <li> <p>\u5728 Hanlder \u4e2d\u83b7\u53d6\u548c\u8bbe\u7f6eContext     Handler \u5305\u542b\u4e86 Invocation \u5bf9\u8c61\uff0c\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528 invocation.addContext \u548c invocation.getContext \u3002</p> </li> <li> <p>\u5728\u670d\u52a1\u63a5\u53e3\u4e2d\u83b7\u53d6Context</p> <p>\u901a\u8fc7\u63a5\u53e3\u6ce8\u5165</p> <pre><code>```\npublic Response cseResponse(InvocationContext c1)\n```\n</code></pre> <p>\u6216\u8005</p> <pre><code>```\nContextUtils.getInvocationContext()\n```\n</code></pre> </li> <li> <p>\u5728Edge Service\u4e2d\u8bbe\u7f6eContext</p> <p>\u901a\u8fc7\u91cd\u8f7dEdgeInvocation</p> <pre><code>```\nEdgeInvocation edgeInvocation = new EdgeInvocation() {\n  protected void createInvocation() {\n    super.createInvocation();\n    this.invocation.addContext(\"hello\", \"world\");\n  }\n};\n```\n</code></pre> </li> </ul>"},{"location":"general-development/context.html#context-discoverytree","title":"\u6848\u4f8b\uff1a \u4f7f\u7528 Context \u548c DiscoveryTree \u5b9e\u73b0\u8f6e\u8be2\u8c03\u7528\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b","text":"<p>\u901a\u5e38\u5fae\u670d\u52a1\u7684\u8c03\u7528\uff0c\u662f\u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u8fd9\u4e2a\u5b9e\u4f8b\u662f\u6839\u636e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u51b3\u5b9a\u7684\uff0c\u4e1a\u52a1\u5f00\u53d1\u4e0d\u53ef\u63a7\u5236\u3002\u4e3a\u4e86\u5b9e\u73b0\u8f6e\u8be2\u8c03\u7528\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b\uff0c \u9996\u5148\u9700\u8981\u83b7\u53d6\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6240\u6709\u5b9e\u4f8b\u5217\u8868\uff0c\u7136\u540e\u9010\u4e2a\u8c03\u7528\u3002 LoadBalance \u6a21\u5757\u652f\u6301\u901a\u8fc7 Context \u4f20\u9012 Endpoint \u4fe1\u606f\uff0c \u5982\u679c Endpoint \u5df2\u7ecf \u8bbe\u7f6e\uff0c \u53ef\u4ee5\u8df3\u8fc7\u8d1f\u8f7d\u5747\u8861\u5224\u65ad\uff0c \u4f7f\u7528\u7528\u6237\u81ea\u5df1\u6307\u5b9a\u7684 Endpoint\u3002 </p> <ul> <li> <p>\u4f7f\u7528 DiscoveryTree \u83b7\u53d6\u5fae\u670d\u52a1\u5b9e\u4f8b\u5217\u8868</p> <pre><code>```java\npublic class TestDateTimeSchema {\n  private DiscoveryTree discoveryTree = new DiscoveryTree();\n\n  public TestDateTimeSchema() {\n    discoveryTree.addFilter(new CustomEndpointDiscoveryFilter());\n    discoveryTree.sort();\n  }\n\n  private void testDateTimeSchemaMulticast() throws Exception {\n    DiscoveryContext context = new DiscoveryContext();\n    VersionedCache serversVersionedCache = discoveryTree.discovery(context, \"springmvctest\", \"springmvc\", \"0+\");\n    List&lt;String&gt; enpoints = serversVersionedCache.data(); // \u83b7\u53d6\u5230\u5b9e\u4f8b\u5217\u8868\uff0c\u53ef\u4ee5\u7ed9\u4e0b\u9762\u7684\u5904\u7406\u6d41\u7a0b\u4f7f\u7528\n  }\n}\n\npublic class CustomEndpointDiscoveryFilter extends AbstractEndpointDiscoveryFilter {\n  @Override\n  protected String findTransportName(DiscoveryContext context, DiscoveryTreeNode parent) {\n    //only need rest endpoints\n    return \"rest\";\n  }\n\n  @Override\n  protected Object createEndpoint(String transportName, String endpoint, MicroserviceInstance instance) {\n    return endpoint;\n  }\n\n  @Override\n  public int getOrder() {\n    return 0;\n  }\n}\n```\n</code></pre> <p>\u4e0a\u9762\u7684\u4ee3\u7801\u901a\u8fc7 DiscoveryTree \u53d1\u73b0\u5b9e\u4f8b\u5217\u8868\uff0c \u5e76\u4e14\u5b9e\u73b0\u4e86 CustomEndpointDiscoveryFilter \uff0c \u5c06\u53d1\u73b0\u7684\u5b9e\u4f8b\u4fe1\u606f\u8f6c\u6362\u4e3a cache \u7684\u8fd4\u56de \u7c7b\u578b\uff0c \u5373 String\u3002</p> </li> <li> <p>\u901a\u8fc7 InvocationContext \u4f20\u9012 Endpoint \u4fe1\u606f\u7ed9 Load Balance, \u6bcf\u6b21\u8c03\u7528\u8bbf\u95ee\u7528\u6237\u6307\u5b9a\u7684 Endpoint\u3002     \u8bbf\u95ee InvocationContext \u5206\u51e0\u79cd\u573a\u666f\uff0c \u53c2\u8003\u6587\u7ae0\u4e0a\u9762\u63d0\u5230\u7684\u60c5\u51b5\u3002 \u5728 Consumer \u8c03\u7528\u7684\u573a\u666f\u4e0b\uff0c \u53ef\u80fd\u4e0d\u5728\u4e00\u4e2a Provider \u7684\u5904\u7406\u4e0a\u4e0b\u6587\u4e2d\uff0c     \u8fd9\u4e2a\u65f6\u5019\u7cfb\u7edf\u4e2d\u8fd8\u6ca1\u6709 InvocationContext \u5b9e\u4f8b\uff0c \u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u65b0\u521b\u5efa\u4e00\u4e2a\u5b9e\u4f8b\uff0c \u65b0\u521b\u5efa\u7684\u5b9e\u4f8b\u4fe1\u606f\u4f1a\u590d\u5236\u5230\u7cfb\u7edf\u5185\u90e8\u3002 </p> <p>\u4f7f\u7528 RPC Consumer \u4f20\u9012 InvocationContext \u7684\u4f8b\u5b50\uff1a</p> <pre><code>```java\n  interface DateTimeSchemaWithContextInf {\n    Date getDate(InvocationContext context, Date date);\n  }\n\n  @RpcReference(microserviceName = \"springmvc\", schemaId = \"DateTimeSchema\")\n  private DateTimeSchemaWithContextInf dateTimeSchemaWithContextInf;\n\n  // code slip\n  for (String endpoint : enpoints) {\n    InvocationContext invocationContext = new InvocationContext();\n    invocationContext.addLocalContext(LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT, parseEndpoint(endpoint));\n    Date date = new Date();\n    TestMgr.check(date.getTime(), dateTimeSchemaWithContextInf.getDate(invocationContext, date).getTime());\n  }\n\n  // code slip\n  private Endpoint parseEndpoint(String endpointUri) throws Exception {\n    URI formatUri = new URI(endpointUri);\n    Transport transport = SCBEngine.getInstance().getTransportManager().findTransport(formatUri.getScheme());\n    return new Endpoint(transport, endpointUri);\n  }\n```\n</code></pre> <p>\u4f7f\u7528 RestTemplate \u4f20\u9012  InvocationContext \u7684\u4f8b\u5b50\uff1a</p> <pre><code>```\nfor (String endpoint : enpoints) {\n  CseHttpEntity&lt;?&gt; entity = new CseHttpEntity&lt;&gt;(null);\n  InvocationContext invocationContext = new InvocationContext();\n  invocationContext.addLocalContext(LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT, parseEndpoint(endpoint));\n  entity.setContext(invocationContext);\n\n  Date date = new Date();\n  String dateValue = RestObjectMapperFactory.getRestObjectMapper().convertToString(date);\n  TestMgr.check(date.getTime(),\n      restTemplate\n          .exchange(\"cse://springmvc/dateTime/getDate?date={1}\", HttpMethod.GET,\n              entity, Date.class, dateValue).getBody().getTime());\n \uff5d\n ```\n</code></pre> <p>\u6ce8\u610f\uff1a 2.0.2 \u7248\u672c\u5f00\u59cb\uff0c LoadbalanceHandler.SERVICECOMB_SERVER_ENDPOINT \u4f20\u9012\u7684\u7c7b\u578b\u662f Endpoint, \u65e9\u671f\u7248\u672c\u53ef\u4ee5\u76f4\u63a5\u4f20\u9012 String \u7c7b\u578b\uff0c  LoadBalance \u6a21\u5757\u4f1a\u5c06 String \u7c7b\u578b\u8f6c\u6362\u4e3a Endpoint\u3002 \u5728\u6709\u5927\u91cf Endpoint \u7684\u60c5\u51b5\uff0c \u63d0\u524d\u4f7f\u7528 Endpoint \u7c7b\u578b\u80fd\u591f\u51cf\u5c11\u7c7b\u578b\u8f6c\u6362\uff0c\u8282\u7701\u5904\u7406\u65f6\u95f4\u3002</p> </li> </ul>"},{"location":"general-development/cross-app-invocation.html","title":"\u8de8\u5e94\u7528\u8c03\u7528","text":""},{"location":"general-development/cross-app-invocation.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5e94\u7528\u662f\u5fae\u670d\u52a1\u5b9e\u4f8b\u9694\u79bb\u5c42\u6b21\u4e2d\u7684\u4e00\u5c42\uff0c\u4e00\u4e2a\u5e94\u7528\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u5141\u8bb8\u540c\u5e94\u7528\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\u76f8\u4e92\u8c03\u7528\u3002</p>"},{"location":"general-development/cross-app-invocation.html#_3","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u5f53\u7528\u6237\u9700\u8981\u4e0d\u540c\u5e94\u7528\u95f4\u7684\u5fae\u670d\u52a1\u76f8\u4e92\u8c03\u7528\u65f6\uff0c\u5c31\u9700\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u529f\u80fd\u3002</p>"},{"location":"general-development/cross-app-invocation.html#_4","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u82e5\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\uff0c\u9996\u5148\u9700\u5728provider\u7aef\u7684microservice.yaml\u6587\u4ef6\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u914d\u7f6e\u3002 \u6ce8\u610f\uff1a  \u9700\u8981\u5347\u7ea7\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff0c\u4ee5\u4fbf\u5728\u670d\u52a1\u4e2d\u5fc3\u91cd\u65b0\u6ce8\u518c\u5fae\u670d\u52a1\u4fe1\u606f  \u5373\u4f7f\u662fdevelopment\u5f00\u53d1\u73af\u5883\uff0c\u4e5f\u9700\u8981\u5347\u7ea7\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff0c\u56e0\u4e3adevelopment\u73af\u5883\u4e0b\uff0c\u4e5f\u53ea\u6709\u5951\u7ea6\u53d1\u751f\u53d8\u5316\uff0c\u624d\u4f1a\u91cd\u65b0\u6ce8\u518c\u5951\u7ea6</p> <p>\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</p> <pre><code>service_description:\n  # other configuration omitted\n  properties:\n    allowCrossApp: true # enable cross app invocation\n</code></pre> <p>consumer\u7aef\u6307\u5b9a\u5fae\u670d\u52a1\u540d\u79f0\u8c03\u7528provider\u7684\u65f6\u5019\uff0c\u9700\u8981\u52a0\u4e0aprovider\u6240\u5c5e\u7684\u5e94\u7528ID\uff0c\u683c\u5f0f\u53d8\u4e3a<code>[appID]:[microserviceName]</code>\u3002</p>"},{"location":"general-development/cross-app-invocation.html#_5","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u793a\u4f8b\u5047\u8bbeprovider\u6240\u5c5e\u5e94\u7528\u4e3ahelloApp\uff0c\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahelloProvider\uff1bconsumer\u6240\u5c5e\u5e94\u7528\u4e3ahelloApp2\uff0c\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahelloConsumer\u3002</p> <ul> <li>RestTemplate\u8c03\u7528\u65b9\u5f0f</li> </ul> <p>\u5f53consumer\u7aef\u4ee5RestTemplate\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u9700\u8981\u5728\u8c03\u7528\u7684URL\u4e2d\u5c06<code>[microserviceName]</code>\u6539\u4e3a<code>[appID]:[microserviceName]</code>\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a   ```java     RestTemplate restTemplate = RestTemplateBuilder.create();</p> <pre><code>ResponseEntity&lt;String&gt; responseEntity = restTemplate\n    .getForEntity(\"cse://helloApp:helloProvider/hello/sayHello?name={name}\",\n        String.class, \"ServiceComb\");\n</code></pre> <p>```</p> <ul> <li>RPC\u8c03\u7528\u65b9\u5f0f</li> </ul> <p>\u5f53consumer\u7aef\u4ee5RPC\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u58f0\u660e\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u4ee3\u7406\u5982\u4e0b\uff1a   <code>java     @RpcReference(schemaId = \"hello\", microserviceName = \"helloApp:helloProvider\")     private Hello hello;</code>   \u8de8\u5e94\u7528\u8c03\u7528\u4e0e\u540c\u5e94\u7528\u4e0b\u8c03\u7528\u5fae\u670d\u52a1\u7684\u65b9\u5f0f\u76f8\u540c\uff1a   <code>java     hello.sayHello(\"ServiceComb\");</code></p>"},{"location":"general-development/customized-tracing.html","title":"\u81ea\u5b9a\u4e49\u8c03\u7528\u94fe\u6253\u70b9","text":""},{"location":"general-development/customized-tracing.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u63d0\u4f9b\u4e86\u670d\u52a1\u95f4\u8c03\u7528\u7684\u65f6\u5e8f\u4fe1\u606f\uff0c\u4f46\u670d\u52a1\u5185\u90e8\u7684\u94fe\u8def\u8c03\u7528\u4fe1\u606f\u5bf9\u5f00\u53d1\u8005\u540c\u6837\u91cd\u8981\uff0c\u5982\u679c\u80fd\u5c06\u4e24\u8005\u5408\u4e8c\u4e3a\u4e00\uff0c\u5c31\u80fd\u63d0\u4f9b\u66f4\u5b8c\u6574\u7684\u8c03\u7528\u94fe\uff0c\u66f4\u5bb9\u6613\u5b9a\u4f4d\u9519\u8bef\u548c\u6f5c\u5728\u6027\u80fd\u95ee\u9898\u3002</p>"},{"location":"general-development/customized-tracing.html#_2","title":"\u524d\u63d0\u6761\u4ef6","text":"<ul> <li>\u4f7f\u7528\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd\u9700\u8981\u9996\u5148\u914d\u7f6e\u5e76\u542f\u7528Java Chassis\u5fae\u670d\u52a1\u8c03\u7528\u94fe\u3002</li> </ul>"},{"location":"general-development/customized-tracing.html#_3","title":"\u6ce8\u610f\u4e8b\u9879","text":"<ul> <li>\u4f7f\u7528<code>@Span</code>\u6ce8\u91ca\u7684\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd\u53ea\u652f\u6301\u548cJava Chassis\u8c03\u7528\u8bf7\u6c42\u540c\u4e00\u7ebf\u7a0b\u7684\u65b9\u6cd5\u8c03\u7528\u3002</li> <li>\u6dfb\u52a0<code>@Span</code>\u6ce8\u91ca\u7684\u65b9\u6cd5\u5fc5\u987b\u662fSpring\u7ba1\u7406\u7684Bean\uff0c\u5426\u5219\u9700\u8981\u6309\u8fd9\u91cc\u63d0\u5230\u7684\u65b9\u6cd5\u914d\u7f6e\u3002</li> </ul>"},{"location":"general-development/customized-tracing.html#_4","title":"\u81ea\u5b9a\u4e49\u8c03\u7528\u94fe\u6253\u70b9","text":"<p>\u8be5\u529f\u80fd\u96c6\u6210\u4e86Zipkin\uff0c\u63d0\u4f9b<code>@Span</code>\u6ce8\u91ca\u4e3a\u9700\u8981\u8ffd\u8e2a\u7684\u65b9\u6cd5\u81ea\u5b9a\u4e49\u6253\u70b9\u3002Java Chassis\u5c06\u81ea\u52a8\u8ffd\u8e2a\u6240\u6709\u6dfb\u52a0<code>@Span</code>\u6ce8\u91ca\u7684\u65b9\u6cd5\uff0c\u628a\u6bcf\u4e2a\u65b9\u6cd5\u7684\u672c\u5730\u8c03\u7528\u4fe1\u606f\u4e0e\u670d\u52a1\u95f4\u8c03\u7528\u4fe1\u606f\u8fde\u63a5\u8d77\u6765\u3002</p>"},{"location":"general-development/customized-tracing.html#_5","title":"\u4f7f\u7528\u6b65\u9aa4:","text":""},{"location":"general-development/customized-tracing.html#_6","title":"\u6dfb\u52a0\u4f9d\u8d56","text":"<p>\u57fa\u4e8e ServiceComb Java Chassis \u7684\u5fae\u670d\u52a1\u53ea\u9700\u8981\u6dfb\u52a0\u5982\u4e0b\u4f9d\u8d56\u5230 pom.xml\uff1a</p> <pre><code>    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;tracing-zipkin&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n</code></pre>"},{"location":"general-development/customized-tracing.html#_7","title":"\u542f\u7528\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd {#\u914d\u7f6e\u8ffd\u8e2a\u5904\u7406\u548c\u6570\u636e\u6536\u96c6}","text":"<p>\u5728\u5e94\u7528\u5165\u53e3\u6216Spring\u914d\u7f6e\u7c7b\u4e0a\u6dfb\u52a0<code>@EnableZipkinTracing</code>\u6ce8\u91ca\uff1a</p> <pre><code>@SpringBootApplication\n@EnableZipkinTracing\npublic class ZipkinSpanTestApplication {\n  public static void main(String[] args) {\n    SpringApplication.run(ZipkinSpanTestApplication.class);\n  }\n}\n</code></pre>"},{"location":"general-development/customized-tracing.html#_8","title":"\u5b9a\u5236\u6253\u70b9","text":"<p>\u5728\u9700\u8981\u5b9a\u5236\u6253\u70b9\u7684\u65b9\u6cd5\u4e0a\u6dfb\u52a0<code>@Span</code>\u6ce8\u91ca\uff1a</p> <pre><code>@Component\npublic class SlowRepoImpl implements SlowRepo {\n  private static final Logger logger = LoggerFactory.getLogger(SlowRepoImpl.class);\n\n  private final Random random = new Random();\n\n  @Span\n  @Override\n  public String crawl() throws InterruptedException {\n    logger.info(\"in /crawl\");\n    Thread.sleep(random.nextInt(200));\n    return \"crawled\";\n  }\n}\n</code></pre> <p>\u5c31\u8fd9\u6837\uff0c\u901a\u8fc7\u4f7f\u7528<code>@Span</code>\u6ce8\u91ca\uff0c\u6211\u4eec\u542f\u52a8\u4e86\u57fa\u4e8e Zipkin \u7684\u81ea\u5b9a\u4e49\u6253\u70b9\u529f\u80fd\u3002</p>"},{"location":"general-development/customized-tracing.html#_9","title":"\u5b9a\u5236\u4e0a\u62a5\u7684\u6570\u636e","text":"<p>\u901a\u8fc7\u81ea\u5b9a\u4e49\u6253\u70b9\u4e0a\u62a5\u7684\u8c03\u7528\u94fe\u5305\u542b\u4e24\u6761\u6570\u636e\uff1a</p> <ul> <li>span name \u9ed8\u8ba4\u4e3a\u5f53\u524d\u6ce8\u91ca\u7684\u65b9\u6cd5\u5168\u540d\u3002</li> <li>call.path \u9ed8\u8ba4\u4e3a\u5f53\u524d\u6ce8\u91ca\u7684\u65b9\u6cd5\u7b7e\u540d\u3002</li> </ul> <p>\u4f8b\u5982\uff0c\u4e0a\u8ff0\u4f8b\u5b50<code>SlowRepoImp</code>\u91cc\u4e0a\u62a5\u7684\u6570\u636e\u5982\u4e0b\uff1a</p> key value span name crawl call.path public abstract java.lang.String org.apache.servicecomb.tests.tracing.SlowRepo.crawl() throws java.lang.InterruptedException <p>\u5982\u679c\u9700\u8981\u5b9a\u5236\u4e0a\u62a5\u7684\u6570\u636e\u5185\u5bb9\uff0c\u53ef\u4ee5\u4f20\u5165\u81ea\u5b9a\u4e49\u7684\u53c2\u6570\uff1a</p> <pre><code>  public static class CustomSpanTask {\n    @Span(spanName = \"transaction1\", callPath = \"startA\")\n    public String invoke() {\n      return \"invoke the method\";\n    }\n  }\n</code></pre>"},{"location":"general-development/dnsconfig.html","title":"DNS\u81ea\u5b9a\u4e49\u914d\u7f6e","text":""},{"location":"general-development/dnsconfig.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u4f7f\u7528\u57df\u540d\u8fde\u63a5\u516c\u6709\u4e91\u6216\u8005\u4e09\u65b9\u7cfb\u7edf\u65f6\uff0c\u9700\u8981\u4f7f\u7528\u5230\u57df\u540d\u89e3\u6790\u7cfb\u7edf\u3002\u5728\u4e0d\u540c\u7684\u7cfb\u7edf\u3001\u4e0d\u540c\u7684\u6846\u67b6\u4f7f\u7528\u7684\u57df\u540d\u89e3\u6790\u673a\u5236\u90fd\u53ef\u80fd\u4e0d\u592a\u4e00\u6837\u3002\u6240\u4ee5\u6211\u4eec\u6709\u5fc5\u8981\u63d0\u4f9b\u4e00\u4e2a\u7edf\u4e00\u7684\u914d\u7f6e\u5165\u53e3\uff0c\u4ee5\u4fbf\u5f00\u53d1\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u81ea\u5b9a\u4e49DNS\u89e3\u6790\u673a\u5236\uff0c\u800c\u4e0d\u5b8c\u5168\u53d7\u5236\u4e8e\u7cfb\u7edf\u914d\u7f6e\u3002</p>"},{"location":"general-development/dnsconfig.html#dns","title":"DNS\u914d\u7f6e","text":"<p>DNS\u914d\u7f6e\u9879\u5199\u5728microservice.yaml\u6587\u4ef6\u4e2d\uff0c\u652f\u6301\u7edf\u4e00\u5236\u5b9a\u8bc1\u4e66\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0tag\u8fdb\u884c\u66f4\u7ec6\u7c92\u5ea6\u7684\u914d\u7f6e\uff0c\u6709tag\u7684\u914d\u7f6e\u4f1a\u8986\u76d6\u5168\u5c40\u914d\u7f6e\uff0c\u914d\u7f6e\u683c\u5f0f\u5982\u4e0b\uff1a</p> <pre><code>addressResolver.[tag].[property]\n</code></pre> <p>\u5e38\u89c1\u7684tag\u5982\u4e0b\u8868\uff1a   </p> \u9879\u76ee tag \u670d\u52a1\u4e2d\u5fc3 sc.consumer \u914d\u7f6e\u4e2d\u5fc3 cc.consumer \u770b\u677f\u4e2d\u5fc3 mc.consumer \u7528\u6237\u81ea\u5b9a\u4e49 self.tag <p>\u5404\u4e2aproperties\u8be6\u7ec6\u8bf4\u660e\uff08\u8bbe\u7f6eVertx DNS\u89e3\u6790\uff09    </p> <pre><code>addressResolver:\n  servers: 8.8.8.8,8.8.4.4   #\u5bf9\u5e94Linux /etc/resolv.conf\u7684nameserver,DNS\u670d\u52a1\u5668\u5730\u5740\uff0c\u652f\u6301\u914d\u7f6e\u591a\u4e2a\uff0c\u4ee5\u9017\u53f7\u9694\u5f00\n  ndots: 1                   #\u5bf9\u5e94linux /etc/resolv.conf\u91cc\u9762\u7684options: ndots, \u4f5c\u7528\u5c31\u662f\u5982\u679c\u7ed9\u7684\u57df\u540d\u91cc\u9762\u5305\u542b\u7684\u70b9\u7684\u4e2a\u6570\u5c11\u4e8e\u8be5\u9608\u503c\uff0c\u90a3\u4e48DNS\u89e3\u6790\u7684\u65f6\u5019\u5c31\u4f1a\u9ed8\u8ba4\u52a0\u4e0asearchDomains\u7684\u503c\uff0c\u8fd9\u4e2a\u5fc5\u987b\u548csearchDomains\u642d\u914d\u4f7f\u7528\uff0cLinux\u9ed8\u8ba4\u4e3a1\n  searchDomains: a,b,c       #\u5bf9\u5e94linux /etc/resolv.conf\u91cc\u9762\u7684search\uff0c\u548cndots\u642d\u914d\u4f7f\u7528\uff0c\u5982\u679c\u5f53\u524d\u57df\u540d\u7684\u70b9\u4e2a\u6570\u5c11\u4e8e\u8bbe\u7f6e\u503c\uff0c\u89e3\u6790\u65f6\u5c31\u4f1a\u628a\u8fd9\u4e9b\u503c\u6dfb\u52a0\u5230\u57df\u540d\u540e\u9762\u4e00\u8d77\u89e3\u6790\uff0c\u6bd4\u5982ndots\u8bbe\u7f6e\u7684\u4e3a4\uff0c\u5f53\u524d\u57df\u540d\u4e3aservicecomb.cn-north-1.myhwclouds.com\uff0c\u53ea\u6709\u4e09\u4e2a\u70b9\uff0c\u90a3\u4e48\u89e3\u6790\u7684\u65f6\u5019\u5c31\u4f1a\u81ea\u52a8\u52a0\u4e0aservicecomb.cn-north-1.myhwclouds.com.a\u53bb\u89e3\u6790\uff0c\u6ca1\u89e3\u6790\u51fa\u6765\u5728\u7528servicecomb.cn-north-1.myhwclouds.com.b\uff0c\u76f4\u5230\u80fd\u6700\u540e\u89e3\u6790\u51fa\u6765\n  optResourceEnabled: true   #optional record is automatically included in DNS queries\n  cacheMinTimeToLive: 0      #\u6700\u5c0f\u7f13\u5b58\u65f6\u95f4\n  cacheMaxTimeToLive: 10000  #\u6700\u5927\u7f13\u5b58\u65f6\u95f4\n  cacheNegativeTimeToLive: 0 #DNS\u89e3\u6790\u5931\u8d25\u540e\uff0c\u4e0b\u6b21\u91cd\u8bd5\u7684\u7b49\u5f85\u65f6\u95f4\n  queryTimeout: 5000         #\u67e5\u8be2\u8d85\u65f6\u65f6\u95f4\n  maxQueries: 4              #\u67e5\u8be2\u6b21\u6570\n  rdFlag: true               #\u8bbe\u7f6eDNS\u9012\u5f52\u67e5\u8be2\n  rotateServers: true        #\u8bbe\u7f6e\u662f\u5426\u652f\u6301\u8f6e\u8be2\n</code></pre>"},{"location":"general-development/dnsconfig.html#_2","title":"\u793a\u4f8b","text":"<pre><code>VertxOptions vertxOptions = new VertxOptions();\nvertxOptions.setAddressResolverOptions(AddressResolverConfig.getAddressResover(\"self.tag\"));\nVertx vertx = VertxUtils.getOrCreateVertxByName(\"registry\", vertxOptions);\n// this has to set the client options\nHttpClientOptions httpClientOptions = createHttpClientOptions();\nClientPoolManager&lt;HttpClientWithContext&gt; clientMgr = new ClientPoolManager&lt;&gt;(vertx, new HttpClientPoolFactory(httpClientOptions));\nclientMgr.findThreadBindClientPool().runOnContext(httpClient -&gt; {\n    // do some http request\n});\n</code></pre>"},{"location":"general-development/error-handling.html","title":"\u5f02\u5e38\u5904\u7406","text":""},{"location":"general-development/error-handling.html#_2","title":"\u5f02\u5e38\u5206\u7c7b\u53ca\u5ba2\u6237\u7aef\u5982\u4f55\u5224\u65ad\u5f02\u5e38\u7c7b\u578b","text":"<ul> <li>\u4e1a\u52a1\u5f02\u5e38\uff1a\u8fd9\u7c7b\u5f02\u5e38\u7531\u4e1a\u52a1\u63a5\u53e3\u5b9a\u4e49\u3002\u7528\u6237\u5728\u83b7\u53d6\u5230\u670d\u52a1swagger\u5b9a\u4e49\u7684\u65f6\u5019\uff0c\u5c31\u80fd\u591f\u4ece\u5b9a\u4e49\u4e2d\u770b\u5230\u8fd9\u7c7b\u5f02\u5e38\u5bf9   \u5e94\u7684\u9519\u8bef\u7801\uff0c\u4ee5\u53ca\u8fd4\u56de\u503c\u7c7b\u578b\u3002 \u4e0b\u9762\u7684\u4f8b\u5b50\u5c55\u73b0\u4e86\u4e1a\u52a1\u5b9a\u4e49\u5f02\u5e38\u3002<pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic MultiResponse200 errorCode(MultiRequest request) {\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.BAD_REQUEST, r);\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR, r);\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      return r;\n    }\n}\n</code></pre> </li> </ul> <p>\u6ce8\u610f\uff1a \u5bf9\u4e8e 2xx \u9519\u8bef\u7801\uff0c\u53ef\u4ee5\u8fd4\u56de\u5177\u4f53\u7684\u4e1a\u52a1 model\uff0c \u5bf9\u4e8e\u5176\u4ed6\u7684\u9519\u8bef\u7801\uff0c    \u5fc5\u987b\u629b\u51fa InvocationException\u3002 </p> <p>\u5ba2\u6237\u7aef\u4ee3\u7801\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u5904\u7406\u5f02\u5e38\u3002\u5f02\u5e38\u7684\u7c7b\u578b\u662f\u786e\u5b9a\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7cast\u83b7\u53d6\u5230\u5f02\u5e38\u7c7b\u578b\u3002</p> <pre><code>    MultiRequest request = new MultiRequest();\n\n    request.setCode(200);\n    ResponseEntity&lt;MultiResponse200&gt; result = template\n        .postForEntity(SERVER + \"/MultiErrorCodeService/errorCode\", request, MultiResponse200.class);\n    TestMgr.check(result.getStatusCode(), 200);\n    TestMgr.check(result.getBody().getMessage(), \"success result\");\n\n    request.setCode(400);\n    MultiResponse400 t400 = null;\n    try {\n      template.postForEntity(SERVER + \"/MultiErrorCodeService/errorCode\", request, MultiResponse400.class);\n    } catch (InvocationException e) {\n      t400 = (MultiResponse400) e.getErrorData();\n    }\n    TestMgr.check(t400.getCode(), 400);\n    TestMgr.check(t400.getMessage(), \"bad request\");\n\n    request.setCode(500);\n    MultiResponse500 t500 = null;\n    try {\n      template.postForEntity(SERVER + \"/MultiErrorCodeService/errorCode\", request, MultiResponse400.class);\n    } catch (InvocationException e) {\n      t500 = (MultiResponse500) e.getErrorData();\n    }\n    TestMgr.check(t500.getCode(), 500);\n    TestMgr.check(t500.getMessage(), \"internal error\");\n</code></pre> <ul> <li>\u63a7\u5236\u5f02\u5e38\uff1a\u8fd9\u7c7b\u5f02\u5e38\u901a\u5e38\u662f\u6846\u67b6\u5904\u7406\u6d41\u7a0b\u4e0a\u7684\u5f02\u5e38\u3002\u6bd4\u5982\u6d41\u63a7Handler\u629b\u51faTOO_MANY_REQUESTS_STATUS\u5f02\u5e38\u3002<pre><code>public class ConsumerQpsFlowControlHandler implements Handler {\n     ... ...\n     if (qpsController.isLimitNewRequest()) {\n      // return http status 429\n      CommonExceptionData errorData = new CommonExceptionData(\"rejected by qps flowcontrol\");\n      asyncResp.consumerFail(\n          new InvocationException(QpsConst.TOO_MANY_REQUESTS_STATUS, errorData));\n      return;\n    }\n\n    invocation.next(asyncResp);\n  }\n}\n</code></pre> </li> </ul> <p>\u63a7\u5236\u5f02\u5e38\u5728\u63a5\u53e3\u5b9a\u4e49\u91cc\u9762\u6ca1\u6709\u58f0\u660e\u3002\u5ba2\u6237\u7aef\u5728\u505a\u5f02\u5e38\u5904\u7406\u7684\u65f6\u5019\uff0c\u4e0d\u77e5\u9053\u5f02\u5e38\u7c7b\u578b\u3002\u53ef\u4ee5\u91c7\u7528\u5f31\u7c7b\u578b\u7684\u65b9\u5f0f\u5904\u7406\u5f02\u5e38\uff1a</p> <pre><code>    JsonObject requestJson = new JsonObject();\n    requestJson.put(\"code\", 400);\n    requestJson.put(\"message\", \"test message\");\n\n    try {\n      template\n          .postForEntity(SERVER + \"/MultiErrorCodeService/noClientErrorCode\", requestJson, Object.class);\n    } catch (InvocationException e) {\n      TestMgr.check(e.getStatusCode(), 400);\n      mapResult = RestObjectMapperFactory.getRestObjectMapper().convertValue(e.getErrorData(), Map.class);\n      TestMgr.check(mapResult.get(\"message\"), \"test message\");\n      TestMgr.check(mapResult.get(\"code\"), 400);\n      TestMgr.check(mapResult.get(\"t400\"), 400);\n    }\n</code></pre> <p>\u4e0a\u9762\u7684\u4ee3\u7801\u5047\u8bbe\u4e0d\u77e5\u9053\u5f02\u5e38\u7c7b\u578b\uff0c\u901a\u8fc7API\u5c06\u5f02\u5e38\u7c7b\u578b\u8f6c\u6362\u4e3aMap\u7c7b\u578b\uff0c\u7136\u540e\u4eceMap\u91cc\u9762\u8bfb\u53d6\u5f02\u5e38\u7c7b\u578b\u3002   ServiceComb\u81ea\u5df1\u629b\u51fa\u7684\u5f02\u5e38\u7c7b\u578b\u4e2d\uff0c\u4e00\u822c\u63a7\u5236\u5f02\u5e38\u7684\u7c7b\u578b\u4e5f\u662f\u56fa\u5b9a\u7684\uff0c\u4e3aCommonExceptionData\u3002</p> <ul> <li>\u672a\u77e5\u5f02\u5e38\uff1a\u8fd9\u7c7b\u5f02\u5e38\u53d1\u751f\u7684\u60c5\u51b5\u4e0d\u786e\u5b9a\u3002\u6bd4\u5982\u4e1a\u52a1\u4ee3\u7801\u5b9e\u73b0\u7684\u65f6\u5019\uff0c\u629b\u51faNullPointerException\u7b49\u672a\u6355\u83b7\u5f02\u5e38\u3001\u5e95\u5c42   \u7684\u7f51\u7edc\u8fde\u63a5\u8d85\u65f6\u5f02\u5e38\u7b49\u3002\u8fd9\u7c7b\u5f02\u5e38\u4f1a\u7531ServiceComb\u5c01\u88c5\u6210590\u6216\u8005490\u9519\u8bef\u8fd4\u56de\u3002\u6bd4\u5982\uff1a<pre><code>CommonExceptionData errorData = new CommonExceptionData(cause.getMessage());\nasyncResp.producerFail(new InvocationException(590, errorData)\n</code></pre> </li> </ul> <p>\u6216\u8005</p> <pre><code>    asyncResp.consumerFail(new InvocationException(490, errorData)\n</code></pre> <p>\u672a\u77e5\u5f02\u5e38\u6d88\u606f\u7684\u7c7b\u578b\u56fa\u5b9a\u4e3aCommonExceptionData\u7c7b\u578b\u3002</p>"},{"location":"general-development/error-handling.html#_3","title":"\u5f02\u5e38\u62e6\u622a\u5668","text":"<p>\u6709\u65f6\u5019\uff0c\u4e1a\u52a1\u9700\u8981\u5c06\u6240\u6709\u7684\u672a\u77e5\u5f02\u5e38\u3001\u63a7\u5236\u5f02\u5e38\u8fdb\u884c\u6355\u83b7\uff0c\u8f6c\u6362\u4e3a\u5bf9\u7528\u6237\u53cb\u597d\u7684\u6d88\u606f\u3002\u6216\u8005\u5bf9\u63a7\u5236\u5f02\u5e38\u8fdb\u884c\u6355\u83b7\uff0c\u5c06 \u6d88\u606f\u4f53\u8f6c\u6362\u4e3a\u81ea\u5b9a\u4e49\u7684JSON\u683c\u5f0f\u3002\u8fd9\u91cc\u9762\u6709\u51e0\u4e2a\u53c2\u8003\u70b9\u3002</p> <ul> <li> <p>\u901a\u8fc7 <code>ExceptionToProducerResponseConverter</code> \u62e6\u622a\u5f02\u5e38</p> <p><code>ExceptionToProducerResponseConverter</code>\u80fd\u591f\u62e6\u622a\u4e1a\u52a1\u5f02\u5e38\u4ee5\u53ca\u4e1a\u52a1\u5b9e\u73b0\u91cc\u9762\u629b\u51fa\u7684\u672a\u77e5\u5f02\u5e38\u3002\u4f46\u662f\u4e0d\u80fd\u62e6\u622a Handler\uff0cHttpServerFilter \u7b49\u629b\u51fa\u7684\u5f02\u5e38\u3002\u66f4\u52a0\u786e\u5207\u7684\u662f <code>ProducerOperationHandler</code> \u6355\u83b7\u7684\u5f02\u5e38\u90fd\u4f1a\u88ab <code>ExceptionToProducerResponseConverter</code> \u5904\u7406\u3002 <code>ExceptionToProducerResponseConverter</code> \u5305\u542b\u5982\u4e0b \u51e0\u4e2a\u63a5\u53e3\uff1a</p> <ul> <li><code>getExceptionClass()</code> \u5b9e\u73b0\u7c7b\u6240\u5904\u7406\u7684\u5f02\u5e38\u7c7b\u578b\u3002\u5982\u679c\u8be5\u65b9\u6cd5\u8fd4\u56de<code>null</code>\uff0c\u5219\u8bf4\u660e\u6b64\u5b9e\u73b0\u7c7b\u4e3a\u9ed8\u8ba4converter\u3002</li> <li><code>Response convert(SwaggerInvocation swaggerInvocation, T e)</code> \u5904\u7406\u5f02\u5e38\u903b\u8f91\uff0c\u8be5\u65b9\u6cd5\u8fd4\u56de\u7684<code>Response</code>\u51b3\u5b9a\u4e86ServiceComb\u5c06\u4f1a\u8fd4\u56de\u4f55\u79cd\u72b6\u6001\u7801\u3001\u4f55\u79cdresponse body\u7684\u5e94\u7b54\u3002</li> <li><code>getOrder()</code> \u5b9e\u73b0\u7c7b\u7684\u4f18\u5148\u7ea7\uff0c\u8be5\u65b9\u6cd5\u8fd4\u56de\u7684\u503c\u8d8a\u5c0f\uff0c\u4f18\u5148\u7ea7\u8d8a\u9ad8\uff0c\u5982\u679c\u4e0d\u8986\u5199\u8be5\u65b9\u6cd5\u7684\u8bdd\uff0c\u5219\u8fd4\u56de\u9ed8\u8ba4\u4f18\u5148\u7ea7<code>0</code>\u3002\u5bf9\u4e8e\u5904\u7406\u540c\u4e00\u5f02\u5e38\u7c7b\u578b\u7684converter\uff08\u6216\u9ed8\u8ba4converter\uff09\uff0c\u53ea\u6709\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u751f\u6548\u3002</li> </ul> </li> </ul> <p>\u5728\u4e3a\u5f02\u5e38\u9009\u62e9converter\u65f6\uff0c\u4f1a\u4ece\u5f02\u5e38\u672c\u8eab\u7684\u7c7b\u578b\u5f00\u59cb\u5339\u914d\uff0c\u5982\u679c\u627e\u4e0d\u5230\u5bf9\u5e94\u7684converter\u5219\u9010\u7ea7\u5411\u4e0a\u67e5\u627e\u7236\u7c7b\u578b\u7684converter\u3002\u5f53\u5339\u914d\u5230<code>Throwable</code>\u4ecd\u672a\u627e\u5230converter\u65f6\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4converter\u5904\u7406\u5f02\u5e38\u3002</p> <pre><code>    public class CustomExceptionToProducerResponseConverter implements ExceptionToProducerResponseConverter&lt;IllegalStateException&gt; {\n        @Override\n        public Class&lt;IllegalStateException&gt; getExceptionClass() {\n          // \u8fd4\u56deIllegalStateException\u8868\u793a\u8be5converter\u5904\u7406IllegalStateException\u7c7b\u578b\u7684\u5f02\u5e38\n          return IllegalStateException.class;\n        }\n\n        @Override\n        public int getOrder() {\n          // \u8fd4\u56de\u7684order\u503c\u8d8a\u5c0f\uff0c\u4f18\u5148\u7ea7\u8d8a\u9ad8\n          return 100;\n        }\n\n        @Override\n        public Response convert(SwaggerInvocation swaggerInvocation, IllegalStateException e) {\n          // \u8fd9\u91cc\u662f\u5904\u7406\u5f02\u5e38\u7684\u903b\u8f91\n          IllegalStateErrorData data = new IllegalStateErrorData();\n          data.setId(500);\n          data.setMessage(e.getMessage());\n          data.setState(e.getMessage());\n          InvocationException state = new InvocationException(Status.INTERNAL_SERVER_ERROR, data);\n          return Response.failResp(state);\n        }\n    }\n</code></pre> <p>\u8bf4\u660e : 2.0.2 \u4e4b\u524d\u7684\u7248\u672c\u90e8\u5206\u4e1a\u52a1\u5f02\u5e38\u65e0\u6cd5\u901a\u8fc7 ExceptionToProducerResponseConverter \u6355\u83b7\uff0c     \u7cfb\u7edf\u505a\u4e86\u81ea\u52a8\u5904\u7406\uff0c\u4e0d\u7ecf\u8fc7 ExceptionToProducerResponseConverter\u3002 2.0.2 \u7248\u672c\u89c4\u8303\u5316\u4e86\u5904\u7406\u6d41\u7a0b\u3002 </p> <ul> <li>\u63a7\u5236\u6d88\u606f\u6d88\u606f\u4f53\u5e8f\u5217\u5316</li> </ul> <p>\u63a7\u5236\u6d88\u606f\u6d88\u606f\u4f53\u5e8f\u5217\u5316\u7684\u76ee\u7684\u662f\u7b80\u5316\u6d88\u8d39\u8005\u7684\u5f02\u5e38\u5904\u7406\u903b\u8f91\uff0c\u4e0d\u7528\u4f7f\u7528\u5f31\u7c7b\u578b\uff0c\u800c\u662f\u4f7f\u7528\u786e\u5207\u7c7b\u578b\u3002\u53ef\u4ee5\u91c7\u7528\u6ce8\u518c\u5168\u5c40\u7684\u9519\u8bef\u7801\u7c7b\u578b\u3002   \u4e1a\u52a1\u9700\u8981\u901a\u8fc7SPI\u5b9e\u73b0org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper\u63a5\u53e3\u3002   \u63a5\u53e3\u7684\u6838\u5fc3\u5185\u5bb9\u662f\u4e3a\u6bcf\u4e2a\u9519\u8bef\u7801\u6307\u5b9a\u5e8f\u5217\u5316\u7c7b\u578b\uff1a</p> <pre><code>    private final static Map&lt;Integer, ResponseMeta&gt; CODES = new HashMap&lt;&gt;(1);\n\n    static {\n      ResponseMeta meta = new ResponseMeta();\n      meta.setJavaType(SimpleType.constructUnsafe(IllegalStateErrorData.class));\n      CODES.put(500, meta);\n    }\n\n    @Override\n    public Map&lt;Integer, ResponseMeta&gt; getMapper() {\n      return CODES;\n    }\n</code></pre>"},{"location":"general-development/file-download.html","title":"\u6587\u4ef6\u4e0b\u8f7d\u5f00\u53d1\u6307\u5bfc","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u901a\u7528\u7684 <code>\u6587\u4ef6\u4e0b\u8f7d</code> \u652f\u6301\u3002 \u5982\u679c\u8fd4\u56de\u503c\u7c7b\u578b\u4e3a <code>File</code>\u3001<code>Resource</code>\u3001<code>InputStream</code>\u3001<code>Part</code> \u7b49\uff0c\u5219\u88ab\u8ba4\u4e3a\u662f <code>\u6587\u4ef6\u4e0b\u8f7d</code>\u3002 \u6587\u4ef6MIME\u7c7b\u578b\u548c\u6587\u4ef6\u540d\u53ef\u4ee5\u4f7f\u7528 <code>Part</code> \u7684 API \u6307\u5b9a\u3002</p> <ul> <li>Spring MVC</li> </ul> <pre><code>@GetMapping(path = \"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre> <ul> <li>JAX-RS</li> </ul> <pre><code>@GET\n@Path(\"/downloadSpringMVCExample\")\npublic Part downloadSpringMVCExample(String content) throws IOException {\n    File file = createTempFile(content);\n    return new FilePart(null, file)\n        .setDeleteAfterFinished(true)\n        .setSubmittedFileName(\"test.bin\")\n        .contentType(\"application/octet-stream\");\n}\n</code></pre> <p>\u4e0a\u8ff0\u63a5\u53e3\u4f1a\u8fd4\u56de\u5982\u4e0b\u54cd\u5e94\u5934:</p> <pre><code>Content-Disposition: attachment;filename=test.bin;filename*=utf-8\u2019\u2019test.bin\nContent-Encoding: gzip\nContent-Type: application/octet-stream\nTransfer-Encoding: chunked\n</code></pre>"},{"location":"general-development/file-download.html#_2","title":"\u670d\u52a1\u63d0\u4f9b\u8005\u5f00\u53d1","text":"<p>\u6587\u4ef6\u4e0b\u8f7d\u670d\u52a1\u7aef\u5b9a\u4e49\u5efa\u8bae\u4f7f\u7528 <code>Part</code>\uff0c \u5b83\u63d0\u4f9b\u4e86\u6700\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5305\u62ec\u6307\u5b9a\u6587\u4ef6\u540d\u3001\u6587\u4ef6\u5220\u9664\u7b56\u7565\u4ee5\u53ca\u6307\u5b9aContent-Type\u7b49\u3002 Java Chassis\u4e5f\u63d0\u4f9b\u4e86\u4e0b\u9762\u7684\u4e00\u4e9b\u7c7b\u578b\u652f\u6301\u3002 </p> <ul> <li>File</li> </ul> <p>\u6700\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u63a5\u53e3\u7684\u8fd4\u56de\u53c2\u6570\u58f0\u660e\u4e3a File \u7c7b\u578b\u7684\u53c2\u6570\uff0c \u5373\u53ef\u5b9a\u4e49\u4e00\u4e2a\u4e0b\u8f7d\u63a5\u53e3\u3002 </p> <pre><code>@GetMapping(path = \"/file\")\npublic File file(String name)\n</code></pre> <ul> <li>Resource</li> </ul> <p>\u53ef\u4ee5\u5c06\u63a5\u53e3\u58f0\u660e\u4e3a org.springframework.core.io.Resource\u3002 \u7531\u4e8eresource\u4e0d\u4e00\u5b9a\u8868\u793a\u6587\u4ef6\u4e0b\u8f7d\uff0c\u6240\u4ee5\u9700\u8981\u901a\u8fc7 @ApiResponse \u6807\u8bc6\u8fd9\u662f\u4e00\u4e2a\u6587\u4ef6\u4e0b\u8f7d\u573a\u666f</p> <p>\u4ee5ByteArrayResource\u4e3a\u4f8b\u8bf4\u660e\uff1a</p> <pre><code>@GetMapping(path = \"/resource\")\n@ApiResponses({\n  @ApiResponse(code = 200, response = File.class, message = \"\")\n})\npublic Resource resource() {\n  return new ByteArrayResource(bytes) {\n    @Override\n    public String getFilename() {\n      return \"resource.txt\";\n    }\n  };\n}\n</code></pre> <p>\u4e0a\u4f8b\u4e2d\uff0c\u56e0\u4e3aByteArrayResource\u6ca1\u6709\u6587\u4ef6\u540d\u7684\u6982\u5ff5\uff0c\u6240\u4ee5\u9700\u8981\u5b9e\u73b0Resource\u7684getFilename\u65b9\u6cd5\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7ResponseEntity\u8fdb\u884c\u5305\u88c5\uff1a</p> <pre><code>@GetMapping(path = \"/resource\")\n@ApiResponses({\n  @ApiResponse(code = 200, response = File.class, message = \"\")\n})\npublic ResponseEntity&lt;Resource&gt; resource() {\n  return ResponseEntity\n      .ok()\n      .header(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN_VALUE)\n      .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment;filename=resource.txt\")\n      .body(resource);\n}\n</code></pre> <ul> <li>InputStream</li> </ul> <p>\u4e00\u6837\u7684\uff0c \u4f7f\u7528 InputStream \u9700\u8981 @ApiResponse \u6807\u8bc6\u8fd9\u662f\u4e00\u4e2a\u6587\u4ef6\u4e0b\u8f7d\u573a\u666f</p> <pre><code>@GetMapping(path = \"/inputStream\")\n@ApiResponses({\n  @ApiResponse(code = 200, response = File.class, message = \"\"),\n})\npublic ResponseEntity&lt;InputStream&gt; download() throws IOException {\n    return ResponseEntity\n        .ok()\n        .header(HttpHeaders.CONTENT_TYPE, MediaType.TEXT_PLAIN_VALUE)\n        .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment;filename=resource.txt\")\n        .body(stream);\n}\n</code></pre> <p>\u5728\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0cServiceComb\u4f1a\u81ea\u52a8\u5173\u95edstream\uff0c\u5f00\u53d1\u4eba\u5458\u4e0d\u5fc5\u518d\u5173\u6ce8\u3002</p> <ul> <li>\u6587\u4ef6\u7c7b\u578b\u5224\u5b9a</li> </ul> <p>\u53ea\u8981\u6ca1\u6709\u901a\u8fc7ResponseEntity\u76f4\u63a5\u8bbe\u7f6eHttpHeaders.CONTENT_TYPE\uff0cJava Chassis\u90fd\u4f1a\u5c1d\u8bd5\u901a\u8fc7File\u3001Part\u3001Resource\u4e2d\u7684\u6587\u4ef6\u540d\u540e\u7f00\u8fdb\u884c\u81ea\u52a8\u5224\u5b9a\u3002</p> <p>Java Chassis\u4f7f\u7528java\u7684mime type\u673a\u5236\u8fdb\u884c\u6587\u4ef6\u7c7b\u578b\u5224\u5b9a\uff0c\u5982\u679c\u4e1a\u52a1\u573a\u666f\u4e2d\u7684\u6587\u4ef6\u540e\u7f00\u65e0\u6cd5\u88ab\u8bc6\u522b\uff0cJava Chassis\u4f1a\u9ed8\u8ba4\u5904\u7406\u4e3aapplication/octet-stream</p> <p>\u5982\u679c\u8fd9\u4e0d\u6ee1\u8db3\u8981\u6c42\uff0c\u5047\u8bbe\u6587\u4ef6\u540e\u7f00\u4e3axyz\uff0c\u671f\u671b\u6587\u4ef6\u7c7b\u578b\u4e3aapplication/file-xyz\uff0c\u4ee5\u4e0b\u65b9\u5f0f\u4efb\u9009\u4e00\u79cd\u5747\u53ef\u89e3\u51b3\uff1a</p> <ol> <li>\u901a\u8fc7Java\u7684mime type\u673a\u5236\u6269\u5c55</li> </ol> <p>\u5728META-INF\u76ee\u5f55\u4e0b\uff0c\u521b\u5efamime.types\u6587\u4ef6\uff0c\u5176\u5185\u5bb9\u4e3a\uff1a</p> <pre><code>application/file-xyz xyz\n</code></pre> <pre><code>2. \u5728\u4e1a\u52a1\u4ee3\u7801\u4e2d\u901a\u8fc7Part\u6307\u5b9a\n</code></pre> <pre><code>@GetMapping(path = \"/tempFilePart\")\npublic Part tempFilePart(String content) throws IOException {\nFile file = createTempFile(content);\n\nreturn new FilePart(null, file)\n    .setDeleteAfterFinished(true)\n    .contentType(\"application/file-xyz\")\n    .setSubmittedFileName(\"tempFilePart.txt\");\n}\n\n</code></pre> <pre><code>3. \u5728\u4e1a\u52a1\u4ee3\u7801\u4e2d\u901a\u8fc7ResponseEntity\u6307\u5b9a\n</code></pre> <pre><code>@GetMapping(path = \"/tempFileEntity\")\npublic ResponseEntity&lt;Part&gt; tempFileEntity(String content) throws IOException {\n    File file = createTempFile(content);\n\n    return ResponseEntity\n        .ok()\n        .header(HttpHeaders.CONTENT_TYPE, \"application/file-xyz\")\n        .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment;filename=tempFileEntity.txt\")\n        .body(new FilePart(null, file)\n            .setDeleteAfterFinished(true));\n}\n</code></pre> <ul> <li>\u6307\u5b9a\u6587\u4ef6\u540d</li> </ul> <p>\u53ea\u8981\u6ca1\u6709\u901a\u8fc7ResponseEntity\u76f4\u63a5\u8bbe\u7f6eHttpHeaders.CONTENT_DISPOSITION\uff0cJava Chassis\u90fd\u4f1a\u5c1d\u8bd5\u901a\u8fc7File\u3001Part\u3001Resource\u4e2d\u7684\u6587\u4ef6\u540d\u751f\u6210HttpHeaders.CONTENT_DISPOSITION\uff0c\u5047\u8bbe\u6587\u4ef6\u540d\u4e3afile.txt\uff0c\u5219\u751f\u6210\u7684\u6570\u636e\u5982\u4e0b\uff1a</p> <pre><code>Content-Disposition: attachment;filename=file.txt;filename*=utf-8\u2019\u2019file.txt\n</code></pre> <p>\u4e0d\u4ec5\u4ec5\u751f\u6210 <code>filename</code> \uff0c\u8fd8\u751f\u6210\u4e86 <code>filename\\*</code> \uff0c\u8fd9\u662f\u56e0\u4e3a\u5982\u679c\u6587\u4ef6\u540d\u4e2d\u51fa\u73b0\u4e86\u4e2d\u6587\u3001\u7a7a\u683c\uff0c\u5e76\u4e14filename\u6b63\u786e\u5730\u505a\u4e86encode\uff0cie\u3001chrome\u90fd\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662ffirefox\u76f4\u63a5\u5c06encode\u540e\u7684\u4e32\u5f53\u4f5c\u6587\u4ef6\u540d\u76f4\u63a5\u4f7f\u7528\u4e86\u3002firefox\u6309\u7167https://tools.ietf.org/html/rtf6266 \uff0c\u53ea\u5bf9 <code>filename\\*</code> \u8fdb\u884c\u89e3\u7801\u3002</p> <p>\u5982\u679c\u4e1a\u52a1\u4ee3\u7801\u4e2d\u76f4\u63a5\u8bbe\u7f6eContent-Disposition\uff0c\u9700\u8981\u81ea\u884c\u5904\u7406\u591a\u6d4f\u89c8\u5668\u652f\u6301\u7684\u95ee\u9898\u3002</p>"},{"location":"general-development/file-download.html#_3","title":"\u670d\u52a1\u6d88\u8d39\u8005\u5f00\u53d1","text":"<p>\u6d88\u8d39\u8005\u7edf\u4e00\u4f7f\u7528 org.apache.servicecomb.foundation.vertx.http.ReadStreamPart \u5904\u7406\u6587\u4ef6\u4e0b\u8f7d\u3002 \u53ef\u4ee5\u4f7f\u7528\u900f\u660e RPC \u65b9\u5f0f\uff0c </p> <pre><code>public interface \u2026\u2026{\n  ReadStreamPart download1(\u2026\u2026);\n  ReadStreamPart download2(\u2026\u2026);\n}\n</code></pre> <p>\u6216\u8005 RestTemplate</p> <pre><code>ReadStreamPart part = restTemplate.getForObject(url, ReadStreamPart.class);\n</code></pre> <p>ReadStreamPart\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u65b9\u6cd5\uff0c\u5c06\u6570\u636e\u6d41\u4fdd\u5b58\u4e3a\u672c\u5730\u6570\u636e\uff1a</p> <pre><code>org.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveAsBytes()\norg.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveAsString()\norg.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveToFile(String)\norg.apache.servicecomb.foundation.vertx.http.ReadStreamPart.saveToFile(File, OpenOptions)\n</code></pre> <p>\u6ce8\u610f\uff1a</p> <ul> <li>\u5728\u5f97\u5230ReadStreamPart\u5b9e\u4f8b\u65f6\uff0c\u5e76\u6ca1\u6709\u5b8c\u6210\u6587\u4ef6\u5185\u5bb9\u7684\u4e0b\u8f7d\uff0c\u8c03\u7528save\u7cfb\u5217\u65b9\u6cd5\u624d\u5f00\u59cb\u771f\u6b63\u4ece\u7f51\u7edc\u4e0a\u8bfb\u53d6\u6587\u4ef6\u6570\u636e\u3002</li> <li>\u5982\u679c\u4f7f\u7528saveAsBytes\u3001saveAsString\uff0c\u6570\u636e\u662f\u76f4\u63a5\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\u7684\uff0c\u5982\u679c\u4e0b\u8f7d\u7684\u6587\u4ef6\u5f88\u5927\uff0c\u4f1a\u5bfc\u81f4\u5185\u5b58\u6ea2\u51fa\u3002</li> <li>save\u7cfb\u5217\u65b9\u6cd5\uff0c\u8fd4\u56de\u7684\u90fd\u662fCompletableFuture\u5bf9\u8c61\uff0c \u5982\u679c\u8981\u963b\u585e\u7b49\u5f85\u4e0b\u8f7d\u5b8c\u6210\uff0c\u901a\u8fc7future.get()\u5373\u53ef\uff1b  \u5982\u679c\u901a\u8fc7future.whenComplete\u8fdb\u884c\u5f02\u6b65\u56de\u8c03\u5904\u7406\uff0c\u8981\u6ce8\u610f\u56de\u8c03\u662f\u53d1\u751f\u5728\u7f51\u7edc\u7ebf\u7a0b\u4e2d\u7684\uff0c\u6b64\u65f6\u9700\u8981\u9075\u5b88reactive\u7684\u7ebf\u7a0b\u89c4\u5219\u3002</li> </ul>"},{"location":"general-development/file-upload.html","title":"\u6587\u4ef6\u4e0a\u4f20\u5f00\u53d1\u6307\u5bfc","text":"<p>\u5f53 HTTP \u6d88\u606f\u4f53\u662f <code>multipart/form-data</code>\uff0c \u8868\u793a\u6587\u4ef6\u4e0a\u4f20\u3002</p> <pre><code>GET /apps HTTP/1.1\nHost: 127.0.0.1:8080\nAccept-Language: zh\nContent-Type: multipart/form-data; boundary=----boundary-example----\n\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample1\"\n\ncontents of multiPartParamExample1\n----boundary-example----\nContent-Disposition: form-data; name=\"multiPartParamExample2\"\n\ncontents of multiPartParamExample2\n----boundary-example----\n</code></pre> <p>multipart/form-data \u4e5f\u53ef\u4ee5\u8868\u793a Form \u53c2\u6570\uff0c \u548c application/x-www-form-urlencoded \u7528\u6cd5\u4e00\u6837\u3002\u4e3a\u4e86\u907f\u514d\u6df7\u6dc6\u548c\u7b80\u6d01\uff0c\u5efa\u8baemultipart/form-data\u4e13\u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u3002</p>"},{"location":"general-development/file-upload.html#_2","title":"\u670d\u52a1\u63d0\u4f9b\u8005\u5f00\u53d1","text":"<p>\u670d\u52a1\u63d0\u4f9b\u8005\u53ef\u4ee5\u91c7\u7528Spring MVC \u6216\u8005 Jax RS\u5b9a\u4e49\u4e0a\u4f20\u63a5\u53e3\u3002</p> <ul> <li>\u91c7\u7528Spring MVC</li> </ul> <pre><code>@PostMapping(path = \"multiPartSpringMVCExample\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String multiPartSpringMVCExample(@RequestPart(\"multiPartParamExample1\") MultipartFile example1,\n@RequestPart(\"multiPartParamExample2\") MultipartFile example2)\n</code></pre> <p>\u6587\u4ef6\u4e0a\u4f20\u9700\u8981\u901a\u8fc7 @RequestPart \u58f0\u660e\u53c2\u6570\uff0c\u53c2\u6570\u7c7b\u578b\u652f\u6301 servlet \u5b9a\u4e49\u7684 javax.servlet.http.Part \u7c7b\u578b\uff0c\u4e5f\u652f\u6301 org.springframework.web.multipart.MultipartFile \u7c7b\u578b\uff0c\u4e24\u79cd\u6570\u636e\u7c7b\u578b\u529f\u80fd\u662f\u4e00\u81f4\u7684\uff0cMultipartFile \u7684\u5e95 \u5c42\u4e5f\u662fPart\u3002 \u4e24\u79cd\u6570\u636e\u7c7b\u578b\u53ef\u4ee5\u6df7\u5408\u4f7f\u7528\uff0c\u6bd4\u5982\u7b2c\u4e00\u4e2a\u53c2\u6570\u662fPart\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662fMultipartFile\u3002 </p> <p>\u9664\u4e86\u901a\u8fc7\u5b9a\u4e49\u591a\u4e2a\u53c2\u6570\u7684\u65b9\u5f0f\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7List\u6216\u8005\u6570\u7ec4\u7684\u65b9\u5f0f\u58f0\u660e\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\u3002</p> <pre><code>@PostMapping(path = \"/fileUpload\", produces = MediaType.TEXT_PLAIN_VALUE, \n  consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String fileUpload(@RequestPart(name = \"files\")  List&lt;MultipartFile&gt; files)\n\n@PostMapping(path = \"/fileUpload\", produces = MediaType.TEXT_PLAIN_VALUE, \n  consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String fileUpload(@RequestPart(name = \"files\") MultipartFile[] files)\n</code></pre> <p>\u8bf4\u660e\uff1a \u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\uff0c\u5728HTTP\u53c2\u6570\u6620\u5c04\u4e2d\uff0c\u591a\u4e2a\u6587\u4ef6\u5bf9\u5e94\u4e8e\u540c\u540d\u7684 form \u5185\u5bb9\uff0c\u8fd9\u4e0d\u662f\u4e00\u4e2a\u597d\u7684 API \u8bbe\u8ba1\u5b9e\u8df5\u3002\u5efa\u8bae\u975e\u5fc5\u8981\u4e0d\u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\u4f5c\u4e3a\u6587\u4ef6\u4e0a\u4f20\u53c2\u6570\u3002 </p> <p>\u53ef\u4ee5\u901a\u8fc7 <code>@RequestAttribute</code> \u83b7\u53d6\u5176\u4ed6\u989d\u5916\u4fe1\u606f\u3002</p> <pre><code>@PostMapping(path = \"multiPartSpringMVCExample\", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)\npublic String multiPartSpringMVCExample(@RequestPart(\"multiPartParamExample1\") MultipartFile example1,\n@RequestPart(\"multiPartParamExample2\") MultipartFile example2,\n     @RequestAttribute(\"message\") String message)\n</code></pre> <p>\u8bf4\u660e\uff1a<code>@RequestAttribute</code> \u8bfb\u53d6 form \u5185\u5bb9\uff0c \u5e76\u5c06 form \u5185\u5bb9\u8f6c\u6362\u4e3a String \u7c7b\u578b\u3002 \u7531\u4e8e <code>multipart/form-data</code> \u7684 Content-Type \u53ef\u80fd\u5b58\u5728\u591a\u6837\u6027\uff0c \u5efa\u8bae\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u4e0d\u4f7f\u7528 <code>@RequestAttribute</code>\uff0c \u800c\u662f\u4f7f\u7528 <code>@RequestHeader</code> \u4f20\u9012\u989d\u5916\u4fe1\u606f\u3002 </p> <ul> <li>\u91c7\u7528Jax RS</li> </ul> <pre><code>@POST\n@Path(\"multiPartJAXRSExample\")\n@Consumes(MediaType.MULTIPART_FORM_DATA)\npublic String multiPartJAXRSExample(@FormParam(\"multiPartParamExample1\") Part example1,\n@FormParam(\"multiPartParamExample2\") Part example2)\n</code></pre> <p>\u6587\u4ef6\u4e0a\u4f20\u9700\u8981\u901a\u8fc7 @FormParam \u58f0\u660e\u53c2\u6570\uff0c\u53c2\u6570\u7c7b\u578b\u652f\u6301servlet\u5b9a\u4e49\u7684javax.servlet.http.Part\u7c7b\u578b\u3002</p> <p>\u9664\u4e86\u901a\u8fc7\u5b9a\u4e49\u591a\u4e2a\u53c2\u6570\u7684\u65b9\u5f0f\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7List\u6216\u8005\u6570\u7ec4\u7684\u65b9\u5f0f\u58f0\u660e\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\u3002</p> <pre><code>@Path(\"/fileUpload\")\n@POST\n@Produces(MediaType.TEXT_PLAIN)\npublic String fileUpload(@FormParam(name = \"files\") List&lt;Part&gt; files)\n\n@Path(\"/fileUpload\")\n@POST\n@Produces(MediaType.TEXT_PLAIN)\npublic String fileUpload(@FormParam(name = \"files\") Part[] files)\n</code></pre> <p>\u8bf4\u660e\uff1a \u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\uff0c\u5728HTTP\u53c2\u6570\u6620\u5c04\u4e2d\uff0c\u591a\u4e2a\u6587\u4ef6\u5bf9\u5e94\u4e8e\u540c\u540d\u7684 form \u5185\u5bb9\u3002 \u5c3d\u7ba1\u5728\u975e\u6d4f\u89c8\u5668\u573a\u666f\uff0c\u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\u4f1a\u5e26\u6765\u4fbf\u5229\uff0c\u4f46\u662f\u5bf9\u4e8e\u6d4f\u89c8\u5668\u4e0a\u4f20\u573a\u666f\u5219\u4e0d\u5229\u4e8e\u7406\u89e3\u3002\u5efa\u8bae\u975e\u5fc5\u8981\u4e0d\u4f7f\u7528 List \u6216\u8005\u6570\u7ec4\u4f5c\u4e3a\u6587\u4ef6\u4e0a\u4f20\u53c2\u6570\u3002</p> <p>\u53ef\u4ee5\u901a\u8fc7@FormParam\u83b7\u53d6\u5176\u4ed6\u989d\u5916\u4fe1\u606f\u3002</p> <pre><code>@POST\n@Path(\"multiPartJAXRSExample\")\n@Consumes(MediaType.MULTIPART_FORM_DATA)\npublic String multiPartJAXRSExample(@FormParam(\"multiPartParamExample1\") Part example1,\n@FormParam(\"multiPartParamExample2\") Part example2,\n    @FormParam(\"message\") String message)\n</code></pre> <p>\u8bf4\u660e\uff1a<code>@FormParam</code> \u8bfb\u53d6 form \u5185\u5bb9\uff0c \u5e76\u5c06 form \u5185\u5bb9\u8f6c\u6362\u4e3a String \u7c7b\u578b\u3002 \u7531\u4e8e <code>multipart/form-data</code> \u7684 Content-Type \u53ef\u80fd\u5b58\u5728\u591a\u6837\u6027\uff0c \u5efa\u8bae\u6587\u4ef6\u4e0a\u4f20\u573a\u666f\u4e0d\u4f7f\u7528 <code>@FormParam</code>\uff0c \u800c\u662f\u4f7f\u7528 <code>@RequestHeader</code> \u4f20\u9012\u989d\u5916\u4fe1\u606f\u3002</p> <ul> <li>\u4e1a\u52a1\u5f00\u53d1\u6ce8\u610f\u4e8b\u9879</li> </ul> <p>\u901a\u8fc7MultipartFile\u6216Part\u6253\u5f00\u6d41\u540e\uff0c\u8bb0\u5f97\u5173\u95ed\uff0c\u5426\u5219\u4e0a\u4f20\u7684\u4e34\u65f6\u6587\u4ef6\u4f1a\u65e0\u6cd5\u5220\u9664\uff0c\u5bfc\u81f4\u8d44\u6e90\u6cc4\u9732\u548c\u78c1\u76d8\u7a7a\u95f4\u8017\u5c3d\u3002</p>"},{"location":"general-development/file-upload.html#_3","title":"\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005","text":"<p>\u53ef\u4ee5\u4f7f\u7528\u900f\u660e RPC </p> <pre><code> interface UploadIntf {\n   String upload(File file);\n }\n\n @RpcReference(microserviceName = \"name\", schemaId = \"schema\")\n UploadIntf uploadIntf;\n\n String result = uploadIntf.upload(file);\n</code></pre> <p>\u6216\u8005 RestTemplate \u8fdb\u884c\u6587\u4ef6\u4e0a\u4f20\u3002 </p> <pre><code>Map&lt;String, Object&gt; map = new HashMap&lt;&gt;();\nmap.put(\"file\", new FileSystemResource(\"a file path!\"));\nmap.put(\"param1\", \"test\");\nHttpHeaders headers = new HttpHeaders();\nheaders.setContentType(org.springframework.http.MediaType.MULTIPART_FORM_DATA);\nHttpEntity&lt;Map&lt;String, Object&gt;&gt; entity = new HttpEntity&lt;&gt;(map, headers);\n\nString reseult = template.postForObject(url, entity, String.class);\n</code></pre> <p>\u670d\u52a1\u6d88\u8d39\u8005\u4e0d\u533a\u5206\u670d\u52a1\u63d0\u4f9b\u8005\u662f Spring MVC \u6216\u8005 Jax RS\u3002 \u5728\u4f7f\u7528\u900f\u660e RPC \u6216\u8005 RestTemplate \u7684\u65f6\u5019\uff0c \u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u7c7b\u578b\u4e0e\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u6587\u4ef6\u5bf9\u5e94\uff1a </p> <ul> <li>java.io.File</li> <li>javax.servlet.http.Part</li> <li>java.io.InputStream</li> <li>org.springframework.core.io.Resource</li> </ul> <p>\u4f7f\u7528InputStream\u65f6\uff0c\u56e0\u4e3a\u662f\u6d41\u7684\u65b9\u5f0f\uff0c\u6b64\u65f6\u6ca1\u6709\u5ba2\u6237\u7aef\u6587\u4ef6\u540d\u7684\u6982\u5ff5\uff0c\u670d\u52a1\u63d0\u4f9b\u8005\u83b7\u53d6\u5230\u7684\u6587\u4ef6\u540d\u4e3anull\u3002 \u5982\u679c\u65e2\u8981\u4f7f\u7528\u5185\u5b58\u6570\u636e\uff0c\u53c8\u60f3\u8ba9producer\u53ef\u4ee5\u83b7\u53d6\u5ba2\u6237\u7aef\u6587\u4ef6\u540d\uff0c\u53ef\u4ee5\u4f7f\u7528resource\u7c7b\u578b\uff0c\u7ee7\u627forg.springframework.core.io.ByteArrayResource\uff0c\u4e14\u9700\u8981\u5b9e\u73b0 getFilename \u65b9\u6cd5\u3002</p>"},{"location":"general-development/file-upload.html#_4","title":"\u4f7f\u7528\u6d4f\u89c8\u5668\u4e0a\u4f20\u6587\u4ef6","text":"<p>\u6d4f\u89c8\u5668\u901a\u8fc7Form\u7684\u65b9\u5f0f\u4e0a\u4f20\u6587\u4ef6\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684HTML \u548c JS \u793a\u4f8b</p> <pre><code>&lt;form id=\"upload_form\" method=\"POST\"&gt;\n    &lt;p&gt;\n        File Name: &lt;input type=\"file\" name=\"fileName\"/&gt;\n    &lt;/p&gt;\n    &lt;p&gt;\n        &lt;input type=\"button\" value=\"Upload\" onclick=\"uploadAction()\"&gt;\n    &lt;/p&gt;\n&lt;/form&gt;\n</code></pre> <p>\u4e8b\u4ef6\u5904\u7406\uff1a</p> <pre><code>function uploadAction() {\n     var formData = new FormData(document.getElementById(\"upload_form\"));\n\n     $.ajax({\n        type: 'POST',\n        url: \"/api/file-service/upload\",\n        data: formData,\n        processData:false,\n        contentType:false,\n        success: function (data) {\n            console.log(data);\n            var error = document.getElementById(\"error\");\n            error.textContent=\"Upload Successfully, file id=\" + data;\n            error.hidden=false;\n        },\n        error: function(data) {\n            console.log(data);\n            var error = document.getElementById(\"error\");\n            error.textContent=\"Upload failed\";\n            error.hidden=false;\n        },\n        async: true\n    });\n</code></pre>"},{"location":"general-development/file-upload.html#_5","title":"\u914d\u7f6e\u53c2\u6570\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u542b\u4e49 servicecomb.uploads.directory null \u4e0a\u4f20\u7684\u4e34\u65f6\u6587\u4ef6\u4fdd\u5b58\u5728\u54ea\u4e2a\u76ee\u5f55\uff0c\u9ed8\u8ba4\u503cnull\u8868\u793a\u4e0d\u652f\u6301\u6587\u4ef6\u4e0a\u4f20 servicecomb.uploads.maxSize -1 http body\u7684\u6700\u5927\u5141\u8bb8\u5927\u5c0f\uff0c\u5355\u4f4dbyte\uff0c\u9ed8\u8ba4\u503c-1\u8868\u793a\u65e0\u9650\u5236"},{"location":"general-development/local-develop-test.html","title":"\u672c\u5730\u5f00\u53d1\u548c\u6d4b\u8bd5","text":""},{"location":"general-development/local-develop-test.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u672c\u5c0f\u8282\u4ecb\u7ecd\u5982\u4f55\u5728\u5f00\u53d1\u8005\u672c\u5730\u8fdb\u884c\u6d88\u8d39\u8005/\u63d0\u4f9b\u8005\u5e94\u7528\u7684\u5f00\u53d1\u8c03\u8bd5\u3002\u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\u8bf7\u53c2\u80033 \u5f00\u53d1\u670d\u52a1\u63d0\u4f9b\u8005\u7ae0\u8282\uff0c\u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u8bf7\u53c2\u80034 \u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u3002\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u63d0\u4f9b\u8005\u5747\u9700\u8981\u8fde\u63a5\u5230\u5728\u8fdc\u7a0b\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u4e3a\u4e86\u672c\u5730\u5fae\u670d\u52a1\u7684\u5f00\u53d1\u548c\u8c03\u8bd5\uff0c\u672c\u5c0f\u8282\u4ecb\u7ecd\u4e86\u4e24\u79cd\u642d\u5efa\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u7684\u65b9\u6cd5\u8fdb\u884c\u672c\u5730\u5fae\u670d\u52a1\u8c03\u8bd5\uff1a</p> <ul> <li> <p>\u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3</p> </li> <li> <p>\u901a\u8fc7local file\u6a21\u62df\u542f\u52a8\u670d\u52a1\u4e2d\u5fc3Mock\u673a\u5236</p> </li> <li> <p>\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u4fe1\u606f\u65b9\u4fbf\u672c\u5730\u8c03\u8bd5</p> </li> </ul> <p>\u670d\u52a1\u4e2d\u5fc3\u662f\u5fae\u670d\u52a1\u6846\u67b6\u4e2d\u7684\u91cd\u8981\u7ec4\u4ef6\uff0c\u7528\u4e8e\u670d\u52a1\u5143\u6570\u636e\u4ee5\u53ca\u670d\u52a1\u5b9e\u4f8b\u5143\u6570\u636e\u7684\u7ba1\u7406\u548c\u5904\u7406\u6ce8\u518c\u3001\u53d1\u73b0\u3002\u670d\u52a1\u4e2d\u5fc3\u4e0e\u5fae\u670d\u52a1\u63d0\u4f9b/\u6d88\u8d39\u8005\u7684\u903b\u8f91\u5173\u7cfb\u4e0b\u56fe\u6240\u793a\uff1a </p>"},{"location":"general-development/local-develop-test.html#_2","title":"\u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3","text":"<ul> <li> <p>\u6b65\u9aa4 1 \u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3</p> </li> <li> <p>\u4ee5\u53ef\u6267\u884c\u6587\u4ef6\u7684\u65b9\u5f0f\u8fd0\u884c</p> </li> </ul> <ul> <li>Windows</li> <li>Linux</li> </ul>     1. \u4e0b\u8f7d[\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5305](http://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-service-center/1.0.0-m1/apache-servicecomb-incubating-service-center-1.0.0-m1-windows-amd64.tar.gz)    2. \u89e3\u538b\u7f29\u5230\u5f53\u524d\u6587\u4ef6\u5939    3. \u8fdb\u5165\u89e3\u538b\u7f29\u540e\u7684\u76ee\u5f55\uff0c\u7136\u540e\u53cc\u51fb\u8fd0\u884c**start-service-center.bat**\u6587\u4ef6           1. \u4e0b\u8f7d\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5305\u5e76\u89e3\u538b\u7f29    ```bash    wget http://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-service-center/1.0.0-m1/apache-servicecomb-incubating-service-center-1.0.0-m1-linux-amd64.tar.gz    tar xvf apache-servicecomb-incubating-service-center-1.0.0-m1-linux-amd64.tar.gz    ```    2. \u8fd0\u884c\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3    ```bash    bash apache-servicecomb-incubating-service-center-1.0.0-m1-linux-amd64/start-service-center.sh    ```      \u6ce8\u610f\uff1a\u524d\u7aef\uff08frontend\uff09\u5728Linux\u73af\u5883\u4e0b\u9ed8\u8ba4\u4f1a\u7ed1\u5b9aipv6\u5730\u5740\uff0c\u5bfc\u81f4\u6d4f\u89c8\u5668\u62a5\u9519\uff0c\u4fee\u590d\u529e\u6cd5\u4e3a\uff1a\u5148\u4fee\u6539conf/app.conf\u4e2d\u7684httpaddr\u4e3a\u5916\u90e8\u53ef\u8fbe\u7f51\u5361ip\uff0c\u4e4b\u540e\u4fee\u6539app/appList/apiList.js\u4e2d`ip : 'http://127.0.0.1'`\u4e3a\u5bf9\u5e94ip\uff0c\u6700\u540e\u91cd\u542fServiceCenter\u5373\u53ef\u3002       <p>\u6ce8\u610f\uff1aWindow\u548cLinux\u7248\u672c\u5747\u53ea\u652f\u630164\u4f4d\u7cfb\u7edf\u3002</p> <ol> <li>\u4ee5Docker\u7684\u65b9\u5f0f\u8fd0\u884c</li> </ol> <p><code>bash docker pull servicecomb/service-center docker run -d -p 30100:30100 servicecomb/service-center:latest</code></p> <ul> <li>\u6b65\u9aa4 2 \u542f\u52a8\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u540e\uff0c\u5728\u670d\u52a1\u63d0\u4f9b/\u6d88\u8d39\u8005\u7684microservice.yaml\u6587\u4ef6\u4e2d\u914d\u7f6eServerCenter\u7684\u5730\u5740\u548c\u7aef\u53e3\uff0c\u793a\u4f8b\u4ee3\u7801\uff1a</li> </ul> <p><code>yaml servicecomb:   service:     registry:       address:         # \u670d\u52a1\u4e2d\u5fc3\u5730\u5740\u53ca\u7aef\u53e3         http://127.0.0.1:30100</code></p> <ul> <li>\u6b65\u9aa4 3 \u5f00\u53d1\u670d\u52a1\u63d0\u4f9b/\u6d88\u8d39\u8005\uff0c\u542f\u52a8\u5fae\u670d\u52a1\u8fdb\u884c\u672c\u5730\u6d4b\u8bd5\u3002</li> </ul> <p>----\u7ed3\u675f</p>"},{"location":"general-development/local-develop-test.html#mock","title":"Mock\u673a\u5236\u542f\u52a8\u670d\u52a1\u4e2d\u5fc3","text":"<p>\u5728\u672c\u8fdb\u7a0b\u5185\u5b58\u4e2d\u6a21\u62df\u4e00\u4e2a\u53ea\u80fd\u672c\u8fdb\u7a0b\u4f7f\u7528\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u4e00\u822c\u662f\u5728\u6d4b\u8bd5\u573a\u666f\u4e2d\u4f7f\u7528\u3002 * ### \u8fdb\u7a0b\u5185\u8c03\u7528 \u53ea\u9700\u8981\u5728\u542f\u52a8ServiceComb\u5f15\u64ce\u4e4b\u524d\u58f0\u660e\u4e00\u4e0b\u5373\u53ef\u542f\u7528\uff1a</p> <pre><code>System.setProperty(\"local.registry.file\", \"notExistJustForceLocal\");\n</code></pre> <ul> <li> <p>\u6b65\u9aa4 1 \u65b0\u5efa\u672c\u5730\u670d\u52a1\u4e2d\u5fc3\u5b9a\u4e49\u6587\u4ef6\uff0c\u5047\u8bbe\u540d\u5b57\u4e3aregistry.yaml\uff0c\u5185\u5bb9\u793a\u4f8b\u5982\u4e0b\uff1a</p> </li> </ul> <p><code>yaml localserv:   - id: \"100\"     version: \"0.0.1\"     appid: localservreg     schemaIds:       - hello     instances:       - endpoints:         - rest://localhost:8080         - highway://localhost:7070</code> * \u6b65\u9aa4 2 consumer\u672c\u5730\u90e8\u7f72\u5951\u7ea6\u6587\u4ef6</p> <p>\u53c2\u8003\uff1a\u5b9a\u4e49\u670d\u52a1\u5951\u7ea6 * \u6b65\u9aa4 3 \u5728consumer main\u51fd\u6570\uff0c\u542f\u52a8ServiceComb\u5f15\u64ce\u4e4b\u524d\u58f0\u660e\uff1a</p> <pre><code>\u3000\u3000System.setProperty(\"local.registry.file\", \"/path/registry.yaml\");\n</code></pre> <p>setProperty\u7b2c\u4e8c\u4e2a\u53c2\u6570\u586b\u5199registry.yaml\u5728\u78c1\u76d8\u4e2d\u7684\u7cfb\u7edf\u7edd\u5bf9\u8def\u5f84\uff0c\u6ce8\u610f\u533a\u5206\u5728\u4e0d\u540c\u7cfb\u7edf\u4e0b\u4f7f\u7528\u5bf9\u5e94\u7684\u8def\u5f84\u5206\u9694\u7b26\u3002</p>"},{"location":"general-development/local-develop-test.html#_3","title":"\u8de8\u8fdb\u7a0b\u8c03\u7528","text":"<p>\u5982\u679c\u90e8\u7f72\u6bd4\u8f83\u7b80\u5355\uff0c\u5e76\u4e14\u90e8\u7f72\u4fe1\u606f\u662f\u9759\u6001\u7684\uff0c\u5373\u4f7f\u6709\u8de8\u8fdb\u7a0b\u8c03\u7528\u4e5f\u53ef\u4ee5\u4f7f\u7528\u672cMock\u673a\u5236 producer\u7aef\u4ecd\u7136\u50cf\u201c\u8fdb\u7a0b\u5185\u8c03\u7528\u201d\u4e00\u6837\u58f0\u660e\u5373\u53ef \u4f46\u662f\uff0c\u56e0\u4e3aMock\u5e76\u4e0d\u80fd\u8de8\u8fdb\u7a0b\u751f\u6548\uff0c\u6240\u4ee5consumer\u7aef\u7684Mock\uff0c\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a\u672c\u5730\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u91cc\u9762\u63cf\u8ff0\u8c03\u7528\u76ee\u6807\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u540d\u5b57\u3001\u7248\u672c\u3001\u5730\u5740\u3001schema id\u7b49\u7b49\u4fe1\u606f \u540c\u6837\uff0c\u56e0\u4e3aMock\u4e0d\u80fd\u8de8\u8fdb\u7a0b\uff0cconsumer\u4e5f\u65e0\u6cd5\u52a8\u6001\u53d6\u5f97producer\u7684\u5951\u7ea6\u4fe1\u606f\uff0c\u6240\u4ee5\uff0c\u9700\u8981\u5728\u672c\u5730\u63d0\u4f9b\u5951\u7ea6\u6587\u4ef6 \uff08\u8fd9\u4e2a\u573a\u666f\uff0c\u4f7f\u7528Mock\u670d\u52a1\u4e2d\u5fc3\uff0c\u6bd4\u4f7f\u7528standalone\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u6210\u672c\u9ad8\u5f97\u591a\u5f97\u591a\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528\uff09</p>"},{"location":"general-development/local-develop-test.html#_4","title":"\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u4fe1\u606f\u65b9\u4fbf\u672c\u5730\u8c03\u8bd5","text":"<p>java chassis\u5728\u8bbe\u8ba1\u65f6\uff0c\u4e25\u683c\u4f9d\u8d56\u4e8e\u5951\u7ea6\uff0c\u6240\u4ee5\u6b63\u5e38\u6765\u8bf4\u5951\u7ea6\u53d8\u4e86\u5c31\u5fc5\u987b\u8981\u4fee\u6539\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u4f46\u662f\u5982\u679c\u5f53\u524d\u8fd8\u662f\u5f00\u53d1\u6a21\u5f0f\uff0c\u90a3\u4e48\u4fee\u6539\u63a5\u53e3\u662f\u5f88\u6b63\u5e38\u7684\u60c5\u51b5\uff0c\u6bcf\u6b21\u90fd\u9700\u8981\u6539\u7248\u672c\u7684\u8bdd\uff0c\u5bf9\u7528\u6237\u6765\u8bf4\u975e\u5e38\u7684\u4e0d\u53cb\u597d\uff0c\u6240\u4ee5\u589e\u52a0\u4e86\u4e00\u4e2a\u73af\u5883\u8bbe\u7f6e\u3002\u5982\u679c\u5fae\u670d\u52a1\u914d\u7f6e\u6210\u5f00\u53d1\u73af\u5883\uff0c\u63a5\u53e3\u4fee\u6539\u4e86\uff08schema\u53d1\u751f\u4e86\u53d8\u5316\uff09\uff0c\u91cd\u542f\u5c31\u53ef\u4ee5\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u800c\u4e0d\u7528\u4fee\u6539\u7248\u672c\u53f7\u3002\u4f46\u662f\u5982\u679c\u6709consumer\u5df2\u7ecf\u8c03\u7528\u4e86\u91cd\u542f\u4e4b\u524d\u7684\u670d\u52a1\uff0c\u90a3\u4e48consumer\u7aef\u9700\u8981\u91cd\u542f\u624d\u80fd\u83b7\u53d6\u6700\u65b0\u7684schema\u3002\u6bd4\u5982A -&gt; B\uff0cB\u63a5\u53e3\u8fdb\u884c\u4e86\u4fee\u6539\u5e76\u4e14\u91cd\u542f\uff0c\u90a3\u4e48A\u8fd9\u4e2a\u65f6\u5019\u8fd8\u662f\u4f7f\u7528B\u8001\u7684schema\uff0c\u8c03\u7528\u53ef\u80fd\u4f1a\u51fa\u9519\uff0c\u4ee5\u514d\u51fa\u73b0\u672a\u77e5\u5f02\u5e38\uff0cA\u4e5f\u9700\u8981\u91cd\u542f\u3002\u6709\u4e09\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8bbe\u7f6e\uff0c\u63a8\u8350\u4f7f\u7528\u65b9\u6cd51 * \u65b9\u6cd51\uff1a\u901a\u8fc7JVM\u542f\u52a8\u53c2\u6570-Dservice_description.environment=development\u8fdb\u884c\u8bbe\u7f6e</p> <ul> <li>\u65b9\u6cd52\uff1a\u901a\u8fc7microservice.yaml\u914d\u7f6e\u6587\u4ef6\u6765\u6307\u5b9a</li> </ul> <p><code>yaml service_description:   environment: development</code></p> <ul> <li>\u65b9\u6cd53\uff1a\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6765\u6307\u5b9a\uff08\u4ec5\u9650\u4e8eWindows\u7cfb\u7edf\uff09\uff0c\u6bd4\u5982\u5728Eclipse\u4e0b\u9762\u8fdb\u884c\u5982\u4e0b\u8bbe\u7f6e </li> </ul>"},{"location":"general-development/metrics.html","title":"\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff08metrics\uff09","text":"<p>\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u901a\u8fc7\u5468\u671f\u6027\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5206\u6790\u4e1a\u52a1\u6027\u80fd\u74f6\u9888\uff0c\u5728\u6027\u80fd\u4f18\u5316\u3001\u6545\u969c\u5b9a\u4f4d\u7684\u65f6\u5019\u975e\u5e38\u6709\u5e2e\u52a9\u3002\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u7684\u6307\u6807\u5305\u62ec \u8bf7\u6c42\u5404\u4e2a\u73af\u8282\u7684\u65f6\u5ef6\u3001\u7ebf\u7a0b\u6c60\u4f7f\u7528\u60c5\u51b5\u3001\u8fde\u63a5\u6c60\u4f7f\u7528\u60c5\u51b5\u3001CPU\u548c\u7f51\u7edc\u4f7f\u7528\u60c5\u51b5\u7b49\u3002</p> <p>\u7edf\u8ba1\u6570\u636e\u662f\u4e00\u4e2a\u5468\u671f\u6027\u65f6\u6548\u6570\u636e\uff0c\u53ea\u5728\u7edf\u8ba1\u5468\u671f\u5185\u5177\u6709\u610f\u4e49\u3002\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7 <code>REST</code> \u63a5\u53e3\u67e5\u8be2\u5b9e\u65f6\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u65e5\u5fd7\u5f00\u5173\uff0c\u5c06 \u7edf\u8ba1\u6570\u636e\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u91cc\u9762\uff0c\u5e2e\u52a9\u5206\u6790\u6027\u80fd\u95ee\u9898\u3002</p>"},{"location":"general-development/metrics.html#_1","title":"\u4f7f\u7528\u65b9\u6cd5","text":"<p>\u4f7f\u7528\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u975e\u5e38\u7b80\u5355\uff0c \u53ea\u9700\u8981\u5728\u5e94\u7528\u4e2d\u5305\u542b\u76f8\u5173\u7684\u4f9d\u8d56\u5305\uff0c\u901a\u8fc7\u914d\u7f6e\u9879\u5f00\u542f\u548c\u5173\u95ed\u76f8\u5173\u529f\u80fd\u3002 </p> <ol> <li>\u5f00\u542f\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u529f\u80fd\uff0c \u9700\u8981\u5f15\u5165\u4e0b\u9762\u7684\u4f9d\u8d56\uff1a<pre><code>```\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;metrics-core&lt;/artifactId&gt;\n&lt;/dependency&gt;\n```\n</code></pre> </li> </ol> <p>\u901a\u8fc7\u5728 <code>microservice.yaml</code> \u4e2d\u589e\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\u9879\uff0c\u5c31\u53ef\u4ee5\u5c06\u6027\u80fd\u7edf\u8ba1\u6570\u636e\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002</p> <pre><code>    ```\n    servicecomb:\n      metrics:\n        window_time: 60000\n        invocation:\n          latencyDistribution: 0,1,10,100,1000\n        Consumer.invocation.slow:\n          enabled: true\n          msTime: 1000\n        Provider.invocation.slow:\n          enabled: true\n          msTime: 1000\n        publisher.defaultLog:\n          enabled: true\n          endpoints.client.detail.enabled: true\n    ```\n</code></pre> <p>\u4e0a\u8ff0\u914d\u7f6e\u5f00\u542f\u4e86\u6162\u8c03\u7528\u68c0\u6d4b\uff0c\u5982\u679c\u5b58\u5728\u6162\u8c03\u7528\uff0c\u5219\u4f1a\u7acb\u5373\u8f93\u51fa\u76f8\u5e94\u65e5\u5fd7\uff1a</p> <pre><code>    ```\n    2019-04-02 23:01:09,103\\[WARN]\\[pool-7-thread-74]\\[5ca37935c00ff2c7-350076] - slow(40 ms) invocation, CONSUMER highway perf1.impl.syncQuery\n      http method: GET\n      url        : /v1/syncQuery/{id}/\n      server     : highway://192.168.0.152:7070?login=true\n      status code: 200\n      total      : 50.760 ms\n        prepare                : 0.0 ms\n        handlers request       : 0.0 ms\n        client filters request : 0.0 ms\n        send request           : 0.5 ms\n        get connection         : 0.0 ms\n        write to buf           : 0.5 ms\n        wait response          : 50.727 ms\n        wake consumer          : 0.23 ms\n        client filters response: 0.2 ms\n        handlers response      : 0.0 ms (SlowInvocationLogger.java:121)\n    ```\n</code></pre> <p>\u5176\u4e2d 5ca37935c00ff2c7-350076 \u662f <code>${traceId}-${invocationId}</code> \u7684\u7ed3\u6784\uff0c\u5728log4j2 \u6216 logback \u7684\u8f93\u51fa\u683c\u5f0f\u4e2d\u901a\u8fc7 %marker \u5f15\u7528\u3002</p> <p>\u4e5f\u53ef\u4ee5\u901a\u8fc7 <code>REST</code> \u63a5\u53e3\u67e5\u8be2\u6027\u80fd\u7edf\u6570\u636e\u3002\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95eehttp://ip:port/metrics \u5373\u53ef\uff0c\u5c06\u4f1a\u5f97\u5230\u7c7b\u4f3c\u4e0b\u9762\u683c\u5f0f\u7684json\u6570\u636e\uff1a</p> <pre><code>    ```\n    {\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connectCount,type=client)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=disconnectCount,type=client)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=connections,type=client)\": 1.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesRead,type=client)\": 508011.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=bytesWritten,type=client)\": 542163.0,\n    \"servicecomb.vertx.endpoints(address=192.168.0.124:7070,statistic=queueCount,type=client)\": 0.0,\n\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connectCount,type=server)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=disconnectCount,type=server)\": 0.0,\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=connections,type=server)\": 1.0,\n    \"servicecomb.vertx.endpoints(address=0.0.0.0:7070,statistic=bytesRead,type=server)\": 542163.0\n    ... ...\n    }\n    ```\n</code></pre>"},{"location":"general-development/metrics.html#prometheus","title":"\u96c6\u6210Prometheus","text":"<p>Prometheus (\u666e\u7f57\u7c73\u4fee\u65af)\u662f\u4e00\u4e2a\u540d\u5b57\u975e\u5e38\u9177\u7684\u5f00\u6e90\u76d1\u63a7\u7cfb\u7edf\u3002</p> <p>\u5b83\u652f\u6301\u591a\u7ef4\u5ea6\u7684\u6307\u6807\u6570\u636e\u6a21\u578b\uff0c\u670d\u52a1\u7aef\u901a\u8fc7HTTP\u534f\u8bae\u5b9a\u65f6\u62c9\u53d6\u6570\u636e\u540e\uff0c\u901a\u8fc7\u7075\u6d3b\u7684\u67e5\u8be2\u8bed\u8a00\uff0c\u5b9e\u73b0\u76d1\u63a7\u7684\u76ee\u7684\u3002</p> <p>servicecomb\u7684\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u529f\u80fd\u652f\u6301\u5bf9\u63a5Prometheus,\u9996\u5148\u9700\u8981\u5728\u60a8\u7684\u4e1a\u52a1\u9879\u76ee\u4e2d\u52a0\u5165\u5982\u4e0b\u4f9d\u8d56:</p> <pre><code>    ```\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;metrics-prometheus&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n    ```\n</code></pre> <p>\u7136\u540e\u5728 microservice.yaml \u4e2d\u589e\u52a0\u4e0b\u9762\u7684\u914d\u7f6e\u9879:</p> <pre><code>    ```\n    servicecomb:\n        metrics:\n            prometheus:\n                address: ${ip}:${port}\n    ```\n</code></pre> <p>\u8be5\u914d\u7f6e\u9879\u662f\u8bbe\u7f6e\u666e\u7f57\u7c73\u4fee\u65af\u6846\u67b6\u76d1\u542c\u7684\u7aef\u53e3,\u60a8\u53ea\u9700\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\u5bf9\u5e94\u7684ip\u5730\u5740\u52a0\u8be5\u7aef\u53e3\u5373http://ip:port/metrics \u5c31\u53ef\u4ee5\u83b7\u5f97\u5982\u4e0b\u683c\u5f0f\u7684\u76d1\u63a7\u6570\u636e:</p> <pre><code>    ```\n    # HELP ServiceComb_Metrics ServiceComb Metrics\n    # TYPE ServiceComb_Metrics untyped\n    threadpool_rejectedCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} 0.0\n    threadpool_rejectedCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} 0.0\n    threadpool_taskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} 0.0\n    threadpool_currentThreadsBusy{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_taskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} 0.0\n    threadpool_currentThreadsBusy{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_poolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_poolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_completedTaskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"connectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"disconnectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"connections\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"bytesRead\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"bytesWritten\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"requests\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"latency\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:7070\",statistic=\"rejectByConnectionLimit\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"connectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"disconnectCount\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"connections\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"bytesRead\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"bytesWritten\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"requests\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"latency\",type=\"server\",} 0.0\n    servicecomb_vertx_endpoints{appId=\"springmvctest\",address=\"0.0.0.0:8080\",statistic=\"rejectByConnectionLimit\",type=\"server\",} 0.0\n    threadpool_completedTaskCount{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} 0.0\n    threadpool_maxThreads{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_maxThreads{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_queueSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_queueSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    threadpool_corePoolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group0\",} NaN\n    threadpool_corePoolSize{appId=\"springmvctest\",id=\"cse.executor.groupThreadPool-group1\",} NaN\n    ```\n</code></pre> <p>\u6ce8:\u9ed8\u8ba4\u7aef\u53e3\u662f9696\uff0c\u60a8\u4e5f\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u8981\u6c42\u8fdb\u884c\u4fee\u6539\u3002</p>"},{"location":"general-development/metrics.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.metrics.window_time 60000 \u7edf\u8ba1\u5468\u671f\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2TPS\u3001\u65f6\u5ef6\u7b49\u7b49\u5468\u671f\u6027\u7684\u6570\u636e\uff0c\u6bcf\u5468\u671f\u66f4\u65b0\u4e00\u6b21\uff0c\u5728\u5468\u671f\u5185\u83b7\u53d6\u5230\u7684\u503c\uff0c\u5b9e\u9645\u662f\u4e0a\u4e00\u5468\u671f\u7684\u503c servicecomb.metrics.invocation.latencyDistribution \u65f6\u5ef6\u5206\u5e03\u65f6\u95f4\u6bb5\u5b9a\u4e49\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u4f8b\u5982\uff1a0,1,10,100,1000\u8868\u793a\u5b9a\u4e49\u4e86\u4e0b\u5217\u65f6\u5ef6\u6bb5[0, 1),[1, 10),[10, 100),[100, 1000),[1000, ) servicecomb.metrics.Consumer.invocation.slow.enabled false \u662f\u5426\u5f00\u542fConsumer\u7aef\u7684\u6162\u8c03\u7528\u68c0\u6d4b\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.Consumer.invocation.slow.msTime 1000 \u65f6\u5ef6\u8d85\u8fc7\u914d\u7f6e\u503c\uff0c\u5219\u4f1a\u7acb\u5373\u8f93\u51fa\u65e5\u5fd7\uff0c\u8bb0\u5f55\u672c\u6b21\u8c03\u7528\u7684stage\u8017\u65f6\u4fe1\u606f\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.Provider.invocation.slow.enabled false \u662f\u5426\u5f00\u542fProvide\u7aef\u7684\u6162\u8c03\u7528\u68c0\u6d4b\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.Provider.invocation.slow.msTime 1000 \u65f6\u5ef6\u8d85\u8fc7\u914d\u7f6e\u503c\uff0c\u5219\u4f1a\u7acb\u5373\u8f93\u51fa\u65e5\u5fd7\uff0c\u8bb0\u5f55\u672c\u6b21\u8c03\u7528\u7684stage\u8017\u65f6\u4fe1\u606f\u901a\u8fc7\u589e\u52a0\u540e\u7f00.${service}.${schema}.${operation}\uff0c\u53ef\u4ee5\u652f\u63014\u7ea7\u4f18\u5148\u7ea7\u5b9a\u4e49 servicecomb.metrics.prometheus.address 0.0.0.0:9696 prometheus\u76d1\u542c\u5730\u5740 servicecomb.metrics.publisher.defaultLog.enabled false \u662f\u5426\u8f93\u51fa\u9ed8\u8ba4\u7684\u7edf\u8ba1\u65e5\u5fd7 servicecomb.metrics.publisher.defaultLog.endpoints.client.detail.enabled false \u662f\u5426\u8f93\u51fa\u6bcf\u4e00\u6761client endpoint\u7edf\u8ba1\u65e5\u5fd7\uff0c\u56e0\u4e3a\u8ddf\u76ee\u6807\u7684ip:port\u6570\u6709\u5173\uff0c\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u6570\u636e\uff0c\u6240\u4ee5\u9ed8\u8ba4\u4e0d\u8f93\u51fa"},{"location":"general-development/metrics.html#_3","title":"\u7edf\u8ba1\u6307\u6807\u542b\u4e49\u8bf4\u660e","text":"<ul> <li>CPU \u7edf\u8ba1\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 os type cpu \u5f53\u524d\u5468\u671f\u5185\u7cfb\u7edfCPU\u4f7f\u7528\u7387\uff0cSolaris\u6a21\u5f0f processCpu \u5f53\u524d\u5468\u671f\u5185\u5fae\u670d\u52a1\u8fdb\u7a0bCPU\u4f7f\u7528\u7387\uff0cIRIX\u6a21\u5f0f         processCpu\u9664\u4ee5cpu\u8fd1\u4f3c\u7b49\u4e8e\u7cfb\u7edfCPU\u6570 <ul> <li>\u7f51\u7edc\u7edf\u8ba1\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 os type net statistic send \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5b57\u8282\u6570(Bps) receive \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5b57\u8282\u6570(Bps) sendPackets \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5305\u6570(pps) receivePackets \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5305\u6570(pps) interface \u7f51\u5361\u8bbe\u5907\u540d <ul> <li>vertx client endpoints \u7edf\u8ba1\u4fe1\u606f </li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.vertx.endpoints type client address ${ip}:${port} \u670d\u52a1\u7aef\u7684ip:port statistic connectCount \u5f53\u524d\u5468\u671f\u5185\u5171\u53d1\u8d77\u591a\u5c11\u6b21\u8fde\u63a5 disconnectCount \u5f53\u524d\u5468\u671f\u5185\u65ad\u8fde\u7684\u6b21\u6570 queueCount http\u8fde\u63a5\u6c60\u4e2d\u6b63\u5728\u7b49\u5f85\u83b7\u53d6\u8fde\u63a5\u7684\u8bf7\u6c42\u6570 connections \u5f53\u524d\u65f6\u523b\u7684\u8fde\u63a5\u6570 bytesRead \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f bytesWritten \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f <ul> <li>vertx server endpoints \u7edf\u8ba1\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.vertx.endpoints type server address ${ip}:${port} \u76d1\u542c\u7684ip:port statistic connectCount \u5f53\u524d\u5468\u671f\u5185\u5171\u63a5\u5165\u591a\u5c11\u6b21\u8fde\u63a5 disconnectCount \u5f53\u524d\u5468\u671f\u5185\u65ad\u8fde\u7684\u6b21\u6570 rejectByConnectionLimit \u5f53\u524d\u5468\u671f\u5185\u56e0\u8d85\u51fa\u8fde\u63a5\u6570\u9650\u5236\u800c\u4e3b\u52a8\u65ad\u8fde\u7684\u6b21\u6570 connections \u5f53\u524d\u65f6\u523b\u7684\u8fde\u63a5\u6570 bytesRead \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u53d1\u9001\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f bytesWritten \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63a5\u6536\u7684\u5b57\u8282\u6570(Bps)         \u4e1a\u52a1\u5c42\u7684\u7edf\u8ba1\uff0c\u76f8\u5bf9\u4ece\u7f51\u5361\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8fd9\u91cc\u7684\u6570\u636e\u4e0d\u5305\u62ec\u5305\u5934\u7684\u5927\u5c0f         \u5bf9\u4e8ehttp\u6d88\u606f\uff0c\u4e0d\u5305\u62echttp header\u5927\u5c0f <ul> <li>\u65f6\u5ef6\u5206\u5e03\u6982\u89c8</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role CONSUMER\u3001PRODUCER\u3001EDGE \u662fCONSUMER\u3001PRODUCER\u8fd8\u662fEDGE\u7aef\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type latencyDistribution \u8c03\u7528\u65f6\u5ef6\u5206\u5e03 scope [${min}, ${max}) \u5f53\u524d\u5468\u671f\u5185\u8c03\u7528\u65f6\u5ef6\u5927\u4e8e\u7b49\u4e8emin\uff0c\u5c0f\u4e8emax\u7684\u6b21\u6570         [${min},)\u8868\u793amax\u4e3a\u65e0\u9650\u5927 <ul> <li>consumer \u8be6\u7ec6\u65f6\u5ef6\u5206\u5e03</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role CONSUMER CONSUMER\u7aef\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type stage stage\u65f6\u5ef6 stage total \u5168\u6d41\u7a0b prepare \u521d\u59cb\u5316 handlers_request handler\u94fe\u8bf7\u6c42\u6d41\u7a0b client_filters_request http client filter\u94fe\u8bf7\u6c42\u6d41\u7a0b         \u53ea\u6709\u8d70rest transport\u624d\u6709\u672c\u9636\u6bb5 consumer_send_request \u53d1\u9001\u8bf7\u6c42\u9636\u6bb5\uff0c\u5305\u62ecconsumer_get_connection\u548cconsumer_write_to_buf consumer_get_connection \u4ece\u8fde\u63a5\u6c60\u83b7\u53d6\u8fde\u63a5 consumer_write_to_buf \u5411\u7f51\u7edc\u7f13\u51b2\u533a\u5199\u6570\u636e consumer_wait_response \u7b49\u5f85\u670d\u52a1\u7aef\u5e94\u7b54 consumer_wake_consumer \u540c\u6b65\u6d41\u7a0b\u4e2d\uff0c\u6536\u5230\u5e94\u7b54\u540e\uff0c\u4ece\u5524\u9192\u7b49\u5f85\u7ebf\u7a0b\uff0c\u5230\u7b49\u5f85\u7ebf\u7a0b\u5f00\u59cb\u5904\u7406\u5e94\u7b54\u7684\u8017\u65f6 client_filters_response http client filter\u94fe\u5e94\u7b54\u6d41\u7a0b handlers_response handler\u94fe\u5e94\u7b54\u6d41\u7a0b statistic count \u5e73\u5747\u6bcf\u79d2\u8c03\u7528\u6b21\u6570\uff0c\u5373TPS         count=\u7edf\u8ba1\u5468\u671f\u5185\u7684\u8c03\u7528\u6b21\u6570/\u5468\u671f\uff08\u79d2\uff09 totalTime \u5355\u4f4d\u4e3a\u79d2         totalTime=\u5f53\u524d\u5468\u671f\u5185\u7684\u8c03\u7528\u8017\u65f6\u603b\u65f6\u957f/\u5468\u671f\uff08\u79d2\uff09         totalTime\u9664\u4ee5count\u5373\u53ef\u5f97\u5230\u5e73\u5747\u65f6\u5ef6 max \u5355\u4f4d\u4e3a\u79d2         \u5f53\u524d\u5468\u671f\u5185\u6700\u5927\u8017\u65f6 <ul> <li>provider \u8be6\u7ec6\u65f6\u5ef6\u5206\u5e03</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role PRODUCER PRODUCER\u7aef\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type stage stage\u65f6\u5ef6 stage total \u5168\u6d41\u7a0b prepare \u521d\u59cb\u5316 queue \u4ec5\u5728\u4f7f\u7528\u7ebf\u7a0b\u6c60\u65f6\u6709\u610f\u4e49         \u8868\u793a\u8c03\u7528\u5728\u7ebf\u7a0b\u6c60\u4e2d\u6392\u961f\u7684\u65f6\u957f server_filters_request http server filter\u94fe\u8bf7\u6c42\u6d41\u7a0b         \u53ea\u6709\u8d70rest transport\u624d\u6709\u672c\u9636\u6bb5 handlers_request handler\u94fe\u8bf7\u6c42\u6d41\u7a0b execution \u4e1a\u52a1\u65b9\u6cd5 handlers_response handler\u94fe\u5e94\u7b54\u6d41\u7a0b server_filters_response http server filter\u94fe\u5e94\u7b54\u6d41\u7a0b producer_send_response \u53d1\u9001\u5e94\u7b54 statistic count \u5e73\u5747\u6bcf\u79d2\u8c03\u7528\u6b21\u6570\uff0c\u5373TPS         count=\u7edf\u8ba1\u5468\u671f\u5185\u7684\u8c03\u7528\u6b21\u6570/\u5468\u671f\uff08\u79d2\uff09 totalTime \u5355\u4f4d\u4e3a\u79d2         totalTime=\u5f53\u524d\u5468\u671f\u5185\u7684\u8c03\u7528\u8017\u65f6\u603b\u65f6\u957f/\u5468\u671f\uff08\u79d2\uff09         totalTime\u9664\u4ee5count\u5373\u53ef\u5f97\u5230\u5e73\u5747\u65f6\u5ef6 max \u5355\u4f4d\u4e3a\u79d2         \u5f53\u524d\u5468\u671f\u5185\u6700\u5927\u8017\u65f6 <ul> <li>edge service \u8be6\u7ec6\u65f6\u5ef6\u5206\u5e03</li> </ul> Name Tag keys Tag values \u542b\u4e49 servicecomb.invocation role EDGE EDGE\u7684\u7edf\u8ba1 operation ${microserviceName}.${schemaId}.${operationName} \u8c03\u7528\u7684\u65b9\u6cd5\u540d transport highway\u6216rest \u8c03\u7528\u662f\u5728\u54ea\u4e2a\u4f20\u8f93\u901a\u9053\u4e0a\u53d1\u751f\u7684 status http status code type stage stage\u65f6\u5ef6 stage total \u5168\u6d41\u7a0b prepare \u521d\u59cb\u5316 queue \u4ec5\u5728\u4f7f\u7528\u7ebf\u7a0b\u6c60\u65f6\u6709\u610f\u4e49         \u8868\u793a\u8c03\u7528\u5728\u7ebf\u7a0b\u6c60\u4e2d\u6392\u961f\u7684\u65f6\u957f server_filters_request http server filter\u94fe\u8bf7\u6c42\u6d41\u7a0b handlers_request handler\u94fe\u8bf7\u6c42\u6d41\u7a0b client_filters_request http client filter\u94fe\u8bf7\u6c42\u6d41\u7a0b consumer_send_request \u53d1\u9001\u8bf7\u6c42\u9636\u6bb5\uff0c\u5305\u62ecconsumer_get_connection\u548cconsumer_write_to_buf consumer_get_connection \u4ece\u8fde\u63a5\u6c60\u83b7\u53d6\u8fde\u63a5 consumer_write_to_buf \u5411\u7f51\u7edc\u7f13\u51b2\u533a\u5199\u6570\u636e consumer_wait_response \u7b49\u5f85\u670d\u52a1\u7aef\u5e94\u7b54 consumer_wake_consumer \u540c\u6b65\u6d41\u7a0b\u4e2d\uff0c\u6536\u5230\u5e94\u7b54\u540e\uff0c\u4ece\u5524\u9192\u7b49\u5f85\u7ebf\u7a0b\uff0c\u5230\u7b49\u5f85\u7ebf\u7a0b\u5f00\u59cb\u5904\u7406\u5e94\u7b54\u7684\u8017\u65f6 client_filters_response http client filter\u94fe\u5e94\u7b54\u6d41\u7a0b handlers_response handler\u94fe\u5e94\u7b54\u6d41\u7a0b server_filters_response http server filter\u94fe\u5e94\u7b54\u6d41\u7a0b producer_send_response \u53d1\u9001\u5e94\u7b54 statistic count \u5e73\u5747\u6bcf\u79d2\u8c03\u7528\u6b21\u6570\uff0c\u5373TPS         count=\u7edf\u8ba1\u5468\u671f\u5185\u7684\u8c03\u7528\u6b21\u6570/\u5468\u671f\uff08\u79d2\uff09 totalTime \u5355\u4f4d\u4e3a\u79d2         totalTime=\u5f53\u524d\u5468\u671f\u5185\u7684\u8c03\u7528\u8017\u65f6\u603b\u65f6\u957f/\u5468\u671f\uff08\u79d2\uff09         totalTime\u9664\u4ee5count\u5373\u53ef\u5f97\u5230\u5e73\u5747\u65f6\u5ef6 max \u5355\u4f4d\u4e3a\u79d2         \u5f53\u524d\u5468\u671f\u5185\u6700\u5927\u8017\u65f6 <ul> <li>\u7ebf\u7a0b\u6c60\u4fe1\u606f</li> </ul> Name Tag keys Tag values \u542b\u4e49 threadpool.corePoolSize   id ${threadPoolName} \u6700\u5c0f\u7ebf\u7a0b\u6570 threadpool.maxThreads  \u6700\u5927\u5141\u8bb8\u7684\u7ebf\u7a0b\u6570 threadpool.poolSize  \u5f53\u524d\u5b9e\u9645\u7ebf\u7a0b\u6570 threadpool.currentThreadsBusy  \u5f53\u524d\u7684\u6d3b\u52a8\u7ebf\u7a0b\u6570\uff0c\u5373\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u4efb\u52a1\u6570 threadpool.queueSize  \u5f53\u524d\u6b63\u5728\u6392\u961f\u7684\u4efb\u52a1\u6570 threadpool.rejectedCount  \u5f53\u524d\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u88ab\u62d2\u7edd\u7684\u4efb\u52a1\u6570 threadpool.taskCount \u7edf\u8ba1\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u63d0\u4ea4\u7684\u4efb\u52a1\u6570taskCount=\uff08completed + queue + active\uff09/\u5468\u671f\uff08\u79d2\uff09 threadpool.completedTaskCount  \u7edf\u8ba1\u5468\u671f\u5185\u5e73\u5747\u6bcf\u79d2\u5b8c\u6210\u7684\u4efb\u52a1\u6570completedTaskCount=completed/\u5468\u671f\uff08\u79d2\uff09"},{"location":"general-development/metrics.html#_4","title":"\u5f00\u53d1\u8005\u4fe1\u606f\u548c\u9ad8\u7ea7\u8bfe\u9898","text":"<ul> <li>\u5b9e\u73b0\u539f\u7406</li> </ul> <pre><code>1. \u57fa\u4e8e[netflix spectator](https://github.com/Netflix/spectator)\n2. Foundation-metrics\u901a\u8fc7SPI\u673a\u5236\u52a0\u8f7d\u6240\u6709MetricsInitializer\u5b9e\u73b0\uff0c\u5b9e\u73b0\u8005\u53ef\u4ee5\u901a\u8fc7MetricsInitializer\u4e2d\u7684getOrder\u89c4\u5212\u6267\u884c\u987a\u5e8f\uff0corder\u6570\u5b57\u8d8a\u5c0f\uff0c\u8d8a\u5148\u6267\u884c\u3002\n3. Metrics-core\u5b9e\u73b03\u7c7bMetricsInitializer\uff1a\n  1. DefaultRegistryInitializer: \u5b9e\u4f8b\u5316\u5e76\u6ce8\u518cspectator-reg-servo\uff0c\u8bbe\u7f6e\u8f83\u5c0f\u7684order\uff0c\u4fdd\u8bc1\u6bd4\u4e0b\u97622\u7c7bMetricsInitializer\u5148\u6267\u884c\n  2. Meters Initializer: \u5b9e\u73b0TPS\u3001\u65f6\u5ef6\u3001\u7ebf\u7a0b\u6c60\u3001jvm\u8d44\u6e90\u7b49\u7b49\u6570\u636e\u7684\u7edf\u8ba1\n  3. Publisher: \u8f93\u51fa\u7edf\u8ba1\u7ed3\u679c\uff0c\u5185\u7f6e\u4e86\u65e5\u5fd7\u8f93\u51fa\uff0c\u4ee5\u53ca\u901a\u8fc7RESTful\u63a5\u53e3\u8f93\u51fa\n4. Metrics-prometheus\u63d0\u4f9b\u4e0eprometheus\u5bf9\u63a5\u7684\u80fd\u529b\n</code></pre> <ul> <li>\u4e1a\u52a1\u5b9a\u5236</li> </ul> <p>\u56e0\u4e3aServiceComb\u5df2\u7ecf\u521d\u59cb\u5316\u4e86servo\u7684registry\uff0c\u6240\u4ee5\u4e1a\u52a1\u4e0d\u5fc5\u518d\u521b\u5efaregistry\u3002\u5b9e\u73b0MetricsInitializer\u63a5\u53e3\uff0c\u5b9a   \u4e49\u4e1a\u52a1\u7ea7\u7684Meters\uff0c\u6216\u5b9e\u73b0\u5b9a\u5236\u7684Publisher\uff0c\u518d\u901a\u8fc7SPI\u673a\u5236\u58f0\u660e\u81ea\u5df1\u7684\u5b9e\u73b0\u5373\u53ef\u3002</p> <p>1.Meters</p> <pre><code>\u521b\u5efaMeters\u80fd\u529b\u5747\u7531spectator\u63d0\u4f9b\uff0c\u53ef\u67e5\u9605[netflix spectator](https://github.com/Netflix/spectator)\u6587\u6863\n</code></pre> <p>2.Publisher</p> <pre><code>\u5468\u671f\u6027\u8f93\u51fa\u7684\u573a\u666f\uff0c\u6bd4\u5982\u65e5\u5fd7\u573a\u666f\uff0c\u901a\u8fc7eventBus\u8ba2\u9605org.apache.servicecomb.foundation.metrics.PolledEvent\uff0cPolledEvent.getMeters()\u5373\u662f\u672c\u5468\u671f\u7684\u7edf\u8ba1\u7ed3\u679c\n \u975e\u5468\u671f\u6027\u8f93\u51fa\u7684\u573a\u666f\uff0c\u6bd4\u5982\u901a\u8fc7RESTful\u63a5\u53e3\u8bbf\u95ee\uff0c\u901a\u8fc7globalRegistry.iterator()\u5373\u53ef\u5f97\u5230\u672c\u5468\u671f\u7684\u7edf\u8ba1\u7ed3\u679c\n</code></pre>"},{"location":"general-development/microservice-invocation-chain.html","title":"\u5fae\u670d\u52a1\u8c03\u7528\u94fe","text":""},{"location":"general-development/microservice-invocation-chain.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5fae\u670d\u52a1\u67b6\u6784\u89e3\u51b3\u4e86\u5f88\u591a\u5355\u4f53\u5e94\u7528\u5e26\u6765\u7684\u95ee\u9898\uff0c\u4f46\u540c\u65f6\u4e5f\u9700\u8981\u6211\u4eec\u4ed8\u51fa\u989d\u5916\u7684\u4ee3\u4ef7\u3002\u7531\u4e8e\u7f51\u7edc\u7684\u4e0d\u7a33\u5b9a\u6027\u5e26\u6765\u7684\u8bf7\u6c42\u5904\u7406\u5ef6\u8fdf\u5c31\u662f\u4ee3\u4ef7\u4e4b\u4e00\u3002</p> <p>\u5728\u5355\u4f53\u5e94\u7528\u4e2d\uff0c\u6240\u6709\u6a21\u5757\u90fd\u5728\u540c\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u8fd0\u884c\uff0c\u6240\u4ee5\u5e76\u6ca1\u6709\u6a21\u5757\u95f4\u4e92\u901a\u7684\u95ee\u9898\u3002\u4f46\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u670d\u52a1\u95f4\u901a\u8fc7\u7f51\u7edc\u6c9f\u901a\uff0c\u56e0\u6b64\u6211\u4eec\u4e0d\u5f97\u4e0d\u5904\u7406\u548c\u7f51\u7edc\u6709\u5173\u7684 \u95ee\u9898\uff0c\u4f8b\u5982\uff1a\u5ef6\u8fdf\u3001\u8d85\u65f6\u3001\u7f51\u7edc\u5206\u533a\u7b49\u3002</p> <p>\u53e6\u5916\uff0c\u968f\u7740\u4e1a\u52a1\u7684\u6269\u5c55\u670d\u52a1\u589e\u591a\uff0c\u6211\u4eec\u5f88\u96be\u6d1e\u5bdf\u6570\u636e\u5982\u4f55\u5728\u86db\u7f51\u822c\u590d\u6742\u7684\u670d\u52a1\u7ed3\u6784\u4e2d\u6d41\u8f6c\u3002\u6211\u4eec\u5982\u4f55\u624d\u80fd\u6709\u6548\u7684\u76d1\u63a7\u7f51\u7edc\u5ef6\u8fdf\u5e76\u4e14\u53ef\u89c6\u5316\u670d\u52a1\u4e2d\u7684\u6570\u636e\u6d41\u8f6c\u5462\uff1f</p> <p>\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7528\u4e8e\u6709\u6548\u5730\u76d1\u63a7\u5fae\u670d\u52a1\u7684\u7f51\u7edc\u5ef6\u65f6\u5e76\u53ef\u89c6\u5316\u5fae\u670d\u52a1\u4e2d\u7684\u6570\u636e\u6d41\u8f6c\u3002</p>"},{"location":"general-development/microservice-invocation-chain.html#zipkin","title":"Zipkin","text":"<p>Zipkin\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7cfb\u7edf\u3002 \u5b83\u80fd\u5e2e\u52a9\u7528\u6237\u6536\u96c6\u65f6\u5e8f\u6570\u636e\u7528\u4ee5\u5b9a\u4f4d\u5fae\u670d\u52a1\u4e2d\u7684\u5ef6\u8fdf\u95ee\u9898\uff0c\u5b83\u540c\u65f6\u7ba1\u7406\u8ffd\u8e2a\u6570\u636e\u7684\u6536\u96c6 \u548c\u67e5\u8be2\u3002Zipkin \u7684\u8bbe\u8ba1\u57fa\u4e8e Google Dapper paper\u3002</p> <p>ServiceComb \u96c6\u6210\u4e86 Zipkin \u63d0\u4f9b\u81ea\u52a8\u8c03\u7528\u94fe\u8ffd\u8e2a\u80fd\u529b\uff0c\u5982\u6b64\u4e00\u6765\u7528\u6237\u53ea\u9700\u8981\u4e13\u6ce8\u5b9e\u73b0\u5176\u4e1a\u52a1\u9700\u6c42\u3002</p>"},{"location":"general-development/microservice-invocation-chain.html#_2","title":"\u4f7f\u7528\u6b65\u9aa4:","text":""},{"location":"general-development/microservice-invocation-chain.html#_3","title":"\u6dfb\u52a0\u4f9d\u8d56","text":"<p>\u57fa\u4e8e ServiceComb Java Chassis \u7684\u5fae\u670d\u52a1\u53ea\u9700\u8981\u6dfb\u52a0\u5982\u4e0b\u4f9d\u8d56\u5230 pom.xml\uff1a</p> <pre><code>&lt;dependency&gt;   \n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;handler-tracing-zipkin&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u5982\u679c\u5fae\u670d\u52a1\u662f\u57fa\u4e8e Spring Cloud + Zuul \u7684 API \u7f51\u5173\uff0c\u4f8b\u5982 workshop demo \u4e2d\u7684 manager service \uff0c\u6211\u4eec\u8fd8\u9700\u8981\u52a0\u5165\u5982\u4e0b\u7684\u989d\u5916\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;    \n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;spring-cloud-zuul-zipkin&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"general-development/microservice-invocation-chain.html#_4","title":"\u914d\u7f6e\u8ffd\u8e2a\u5904\u7406\u548c\u6570\u636e\u6536\u96c6 {#\u914d\u7f6e\u8ffd\u8e2a\u5904\u7406\u548c\u6570\u636e\u6536\u96c6}","text":"<p>\u5728microservice.yaml\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u8ffd\u8e2a\u5904\u7406\u5668\u548c\u6570\u636e\u6536\u96c6\u670d\u52a1\u5730\u5740</p> <pre><code>  servicecomb: \n    handler: \n      chain: \n        Consumer: \n          default: tracing-consumer\n        Provider: \n          default: tracing-provider\n  servicecomb: \n    tracing: \n      collector: \n        address: http://zipkin.servicecomb.io:9411\n</code></pre> <p>\u5c31\u8fd9\u6837\uff0c\u5728\u52a0\u4e86\u4e24\u4e2a\u914d\u7f6e\u9879\uff0c\u6ca1\u6539\u52a8\u4e00\u884c\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u542f\u52a8\u4e86\u57fa\u4e8e Zipkin \u548c Java chassis \u7684\u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7684\u529f\u80fd\u3002</p> <p>\u6ce8\u610f \u5982\u679c\u9879\u76ee\u4e2d\u7684\u5176\u4ed6\u4f9d\u8d56\u4e5f\u5f15\u5165\u4e86 zipkin \uff08\u4f8b\u5982 Spring Cloud\uff09\uff0c\u53ef\u80fd\u5bfc\u81f4 zipkin \u7248\u672c\u4e0d\u4e00\u81f4\u800c\u8fd0\u884c\u51fa\u9519\uff0c\u8fd9\u65f6\u9700\u8981\u5728\u9879\u76ee pom \u4e2d\u58f0\u660e zipkin \u7248\u672c\u3002</p>"},{"location":"general-development/multienvironment.html","title":"\u5fae\u670d\u52a1\u5b9e\u4f8b\u95f4\u591a\u73af\u5883\u9694\u79bb","text":"<p>\u8fdb\u884c\u670d\u52a1\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4e86\u89e3\u672c\u5fae\u670d\u52a1\u80fd\u591f\u53d1\u73b0\u90a3\u4e9b\u5176\u4ed6\u670d\u52a1\u7684\u5b9e\u4f8b\u3002ServiceComb\u63d0\u4f9b\u4e86\u5206\u5c42\u6b21\u7684\u5b9e\u4f8b\u9694\u79bb\u3002</p>"},{"location":"general-development/multienvironment.html#_2","title":"\u5fae\u670d\u52a1\u5b9e\u4f8b\u5206\u5c42\u7ba1\u7406","text":"<p>\u8981\u4e86\u89e3\u5b9e\u4f8b\u95f4\u7684\u9694\u79bb\u5c42\u6b21\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3ServiceComb\u5b9a\u4e49\u7684\u4e00\u4e2a\u4f53\u7cfb\u5b8c\u5907\u7684\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\uff1a</p> <p></p> <p>\u5728\u5fae\u670d\u52a1\u7cfb\u7edf\u7ed3\u6784\u4e2d\uff0c\u9876\u5c42\u662f\u9879\u76ee\uff08project\uff09\uff0c\u9879\u76ee\u4e2d\u7684\u5e94\u7528\u5206\u5c5e\u4e8e\u4e0d\u540c\u73af\u5883\uff08environment\uff09\uff0c\u5373\u6d4b\u8bd5\u548c\u751f\u4ea7\u73af\u5883\u53ef\u4ee5\u5206\u5f00\uff0c\u6bcf\u4e2a\u73af\u5883\u4e0b\u5305\u542b\u591a\u4e2a\u5e94\u7528\uff08application\uff09\uff0c\u5728\u67d0\u4e2a\u7279\u5b9a\u5e94\u7528\u7684\u7279\u5b9a\u73af\u5883\u4e2d\uff0c\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff08service\uff09\uff0c\u4e00\u4e2a\u5fae\u670d\u52a1\u53c8\u53ef\u4ee5\u540c\u65f6\u5b58\u5728\u591a\u4e2a\u7248\u672c\uff08version\uff09\u3002 \u4ee5\u4e0a\uff0c\u662f\u6240\u6709\u9759\u6001\u5143\u6570\u636e\u7684\u8303\u7574\uff0c\u67d0\u4e2a\u7279\u5b9a\u670d\u52a1\u7684\u7279\u5b9a\u7248\u672c\u5219\u5305\u542b\u591a\u4e2a\u5728\u8fd0\u884c\u65f6\u6ce8\u518c\u4e0a\u6765\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u56e0\u4e3a\u670d\u52a1\u5b9e\u4f8b\u7684\u4fe1\u606f\u5728\u8fd0\u884c\u65f6\u968f\u7740\u7cfb\u7edf\u7684\u4f38\u7f29\u3001\u6545\u969c\u7b49\u539f\u56e0\u662f\u52a8\u6001\u53d8\u5316\u7684\uff0c\u6240\u4ee5\u670d\u52a1\u5b9e\u4f8b\u7684\u8def\u7531\u4fe1\u606f\u53c8\u4e3a\u52a8\u6001\u6570\u636e\u3002\u901a\u8fc7\u5206\u5c42\u7ba1\u7406\u5fae\u670d\u52a1\u7684\u8fd9\u4e9b\u6570\u636e\uff0c\u4e5f\u5c31\u81ea\u7136\u800c\u7136\u5730\u5b9e\u73b0\u4e86\u5b9e\u4f8b\u4e4b\u95f4\u7684\u903b\u8f91\u9694\u79bb\u3002 * Project\u5bf9\u5e94\u5230\u534e\u4e3a\u4e91\u4e0a\u5404region\u4e0b\u521b\u5efa\u7684project\uff0c\u4e0d\u540c\u7684project\u4e92\u76f8\u9694\u79bb\uff0c\u5982\u679c\u8be5region\u4e0b\u6ca1\u6709\u65b0\u5efaproject\uff0c\u5219\u4ee3\u8868\u8be5region\uff1b\u4f8b\u5982\uff0c\u5728\u534e\u5317\u533a\uff08cn-north-1\uff09\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u5b57\u4e3atianjing\u7684project\uff0c\u82e5\u60f3\u5fae\u670d\u52a1\u6ce8\u518c\u5230\u8be5project\u4e0b\uff0c\u53ef\u4ee5\u5728microservice.yaml\u6587\u4ef6\u91cc\u914d\u7f6e\uff1a</p> <pre><code>  servicecomb:\n    credentials:\n      project: cn-north-1_tianjing\n</code></pre> <ul> <li> <p>Environment\u8868\u793a\u5f53\u524d\u5fae\u670d\u52a1\u5b9e\u4f8b\u6240\u5c5e\u73af\u5883\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.environment\u914d\u7f6e\u5f53\u524d\u5b9e\u4f8b\u73af\u5883\u3002</p> </li> <li> <p>Application\u4ee3\u8868\u4e00\u4e2a\u8f6f\u4ef6\u5e94\u7528\u7684\u903b\u8f91\u5b9e\u4f53\uff0c\u8868\u793a\u4e00\u4e2a\u6709\u4e1a\u52a1\u529f\u80fd\u5448\u73b0\u7ed9\u7528\u6237\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5e94\u7528\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7APPLICATION_ID\u914d\u7f6e\u5e94\u7528\u540d\u3002</p> </li> <li> <p>Service\u662f\u5bf9\u6309\u9700\u53d6\u7528\u7684\u529f\u80fd\u5bf9\u8c61\u7684\u4e00\u79cd\u63cf\u8ff0\uff0c\u4e00\u4e2a\u5e94\u7528\u4e0b\u5b58\u5728\u591a\u4e2a\u670d\u52a1\uff0c\u5404\u670d\u52a1\u95f4\u76f8\u4e92\u8c03\u7528\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.name\u6307\u5b9a\u670d\u52a1\u540d\u3002</p> </li> <li> <p>Version\u8868\u793a\u5f53\u524d\u670d\u52a1\u7684\u7248\u672c\uff0c\u4e00\u4e2a\u670d\u52a1\u4e0b\u53ef\u5b58\u5728\u591a\u4e2a\u7248\u672c\uff0c\u53ef\u5728microservice.yaml\u6587\u4ef6\u91cc\u901a\u8fc7service_description.version\u914d\u7f6e\u5f53\u524d\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff1b\u6d88\u8d39\u7aef\u8fdb\u884c\u8bbf\u95ee\u65f6\uff0c\u9ed8\u8ba4\u6309\u7167\u8def\u7531\u89c4\u5219\u8fdb\u884c\u8bbf\u95ee\uff0c\u53ef\u4ee5\u5728\u6d88\u8d39\u7aef\u901a\u8fc7servicecomb.references.[providerName].version-rule\u8bbe\u7f6e\u7248\u672c\u89c4\u5219\u3002</p> </li> </ul>"},{"location":"general-development/multienvironment.html#_3","title":"\u5178\u578b\u573a\u666f","text":""},{"location":"general-development/multienvironment.html#_4","title":"\u5e94\u7528\u95f4\u9694\u79bb\u53ca\u8de8\u5e94\u7528\u8c03\u7528","text":""},{"location":"general-development/multienvironment.html#_5","title":"\u529f\u80fd\u4ecb\u7ecd","text":"<p>\u5728ServiceComb\u6846\u67b6\u4e2d\uff0c\u4e00\u4e2a\u5e94\u7528\u4e0b\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\u3002 \u540c\u4e00\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u516c\u5171\u670d\u52a1\u90e8\u7f72\u5230\u591a\u4e2a\u5e94\u7528\uff0c\u901a\u8fc7\u6307\u5b9a\u4e0d\u540c\u7684APPLICATION_ID\u6765\u5b9e\u73b0\u3002</p> <p></p> <p>\u4e0d\u540c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u5141\u8bb8\u5728\u540c\u4e00\u4e2a\u5e94\u7528\u91cc\u76f8\u4e92\u8c03\u7528\uff0c\u5f53\u7528\u6237\u9700\u8981\u4e0d\u540c\u5e94\u7528\u95f4\u7684\u5fae\u670d\u52a1\u76f8\u4e92\u8c03\u7528\u65f6\uff0c\u5c31\u9700\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u529f\u80fd\u3002  </p>"},{"location":"general-development/multienvironment.html#_6","title":"\u914d\u7f6e\u8bf4\u660e\uff1a","text":"<ol> <li>\u82e5\u8981\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\uff0c\u9996\u5148\u9700\u5728provider\u7aef\u7684microservice.yaml\u6587\u4ef6\u5f00\u542f\u8de8\u5e94\u7528\u8c03\u7528\u914d\u7f6e\u3002\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</li> </ol> <pre><code>    service_description:\n      properties:\n        allowCrossApp: true\n</code></pre> <ol> <li>Consumer\u7aef\u6307\u5b9a\u5fae\u670d\u52a1\u540d\u79f0\u8c03\u7528provider\u7684\u65f6\u5019\uff0c\u9700\u8981\u52a0\u4e0aprovider\u6240\u5c5e\u7684\u5e94\u7528ID\uff0c\u683c\u5f0f\u7531[microserviceName]\u53d8\u4e3a[appID]:[microserviceName]\u3002</li> </ol>"},{"location":"general-development/multienvironment.html#_7","title":"\u4ee3\u7801\u793a\u4f8b\uff1a","text":"<p>\u5047\u8bbeconsumer\u6240\u5c5e\u5e94\u7528\u4e3ahelloApp\uff0cprovider\u6240\u5c5e\u5e94\u7528\u4e3ahellApp2\uff0c\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahelloProvider\u3002 * RestTemplate\u8c03\u7528\u65b9\u5f0f \u5f53consumer\u7aef\u4ee5RestTemplate\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u9700\u8981\u5728\u8c03\u7528\u7684URL\u4e2d\u5c06[microserviceName]\u6539\u4e3a[appID]:[microserviceName]\uff0c\u5982\u4e0b\uff1a</p> <pre><code>RestTemplate restTemplate = RestTemplateBuilder.create();\nResponseEntity&lt;String&gt; responseEntity = restTemplate.getForEntity(\u201ccse://helloApp2:helloProvider/hello/sayHello?name={name}\u201d, String.class, \u201cServiceComb\u201d);\n</code></pre> <ul> <li>RPC\u8c03\u7528\u65b9\u5f0f \u5f53consumer\u7aef\u4ee5RPC\u65b9\u5f0f\u5f00\u53d1\u5fae\u670d\u52a1\u6d88\u8d39\u8005\u65f6\uff0c\u58f0\u660e\u7684\u670d\u52a1\u63d0\u4f9b\u8005\u4ee3\u7406\u5982\u4e0b\uff1a</li> </ul> <pre><code>@RpcReference(schemaId = \u201chello\u201d, microserviceName = \u201chelloApp2:helloProvider\u201d)\nprivate Hello hello;\n</code></pre> <p>\u8de8\u5e94\u7528\u8c03\u7528\u4e0e\u540c\u5e94\u7528\u4e0b\u8c03\u7528\u5fae\u670d\u52a1\u7684\u65b9\u5f0f\u76f8\u540c\uff1a</p> <pre><code>hello.sayHello(\u201cServiceComb\u201d);\n</code></pre>"},{"location":"general-development/multienvironment.html#_8","title":"\u5178\u578b\u573a\u666f","text":""},{"location":"general-development/multienvironment.html#_9","title":"\u5f00\u53d1\u73af\u5883\u4e92\u76f8\u9694\u79bb\u53ca\u5feb\u901f\u5f00\u53d1","text":""},{"location":"general-development/multienvironment.html#_10","title":"\u529f\u80fd\u4ecb\u7ecd","text":"<p>ServiceComb\u6846\u67b6\u901a\u8fc7\u8bbe\u7f6eenvironment\uff0c\u53ef\u4ee5\u5c06\u5fae\u670d\u52a1\u5b9e\u4f8b\u6807\u8bb0\u4e3a\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u9884\u751f\u4ea7\u3001\u751f\u4ea7\u73af\u5883\uff0c\u5b9e\u73b0\u4e86\u5728\u5b9e\u4f8b\u7ea7\u522b\u7684\u5929\u7136\u9694\u79bb\uff1b\u5ba2\u6237\u7aef\u5728\u67e5\u627e\u670d\u52a1\u7aef\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u53ea\u80fd\u53d1\u73b0\u76f8\u540cenvironment\u4e0b\u7684\u670d\u52a1\u7aef\u5b9e\u4f8b\u3002</p> <p></p> <p>ServiceComb\u5728\u8bbe\u8ba1\u65f6\uff0c\u4e25\u683c\u4f9d\u8d56\u4e8e\u5951\u7ea6\uff0c\u6240\u4ee5\u6b63\u5e38\u60c5\u51b5\u4e0b\u5951\u7ea6\u53d8\u4e86\uff0c\u5c31\u5fc5\u987b\u8981\u4fee\u6539\u5fae\u670d\u52a1\u7684\u7248\u672c\u3002\u4f46\u662f\u5982\u679c\u5f53\u524d\u8fd8\u662f\u5f00\u53d1\u6a21\u5f0f\uff0c\u90a3\u4e48\u4fee\u6539\u63a5\u53e3\u5c31\u662f\u5f88\u6b63\u5e38\u7684\u60c5\u51b5\uff0c\u5f53\u4fee\u6539\u5b8c\u6bd5\u518d\u6b21\u542f\u52a8\u5f53\u524d\u670d\u52a1\u65f6\uff0c\u65b0\u751f\u6210\u7684\u5951\u7ea6\u548cService Center\u4e0a\u4fdd\u5b58\u7684\u65e7\u5951\u7ea6\u4f1a\u51b2\u7a81\u5e76\u62a5\u9519\uff0c\u5bfc\u81f4\u542f\u52a8\u5931\u8d25\uff0c\u5982\u679c\u6bcf\u6b21\u90fd\u901a\u8fc7\u4fee\u6539\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff0c\u6216\u8005\u5220\u9664\u8be5\u670d\u52a1\u5728Service Center\u4e0a\u7684\u7f13\u5b58\u6570\u636e\u6765\u89e3\u51b3\uff0c\u663e\u7136\u5bf9\u5f00\u53d1\u4eba\u5458\u5f88\u4e0d\u53cb\u597d\u3002 ServiceComb\u6846\u67b6\u652f\u6301\u5728\u5f00\u53d1\u6001\u8fdb\u884c\u5fae\u670d\u52a1\u7684\u5feb\u901f\u8c03\u8bd5\uff0c\u901a\u8fc7\u5c06environment\u914d\u7f6e\u4e3adevelopment\u5373\u53ef\u3002\u5f53\u63a5\u53e3\u4fee\u6539\u4e86\uff08Schema\u53d1\u751f\u4e86\u53d8\u5316\uff09\uff0c\u91cd\u542f\u5c31\u53ef\u4ee5\u6b63\u5e38\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u800c\u4e0d\u7528\u4fee\u6539\u7248\u672c\u53f7\u3002 \u4f46\u662f\u5982\u679c\u6709consumer\u5df2\u7ecf\u8c03\u7528\u4e86\u91cd\u542f\u4e4b\u524d\u7684\u670d\u52a1\uff0c\u90a3\u4e48consumer\u7aef\u4e5f\u9700\u8981\u91cd\u542f\u624d\u80fd\u83b7\u53d6\u6700\u65b0provider\u7684schema\uff1b\u6bd4\u5982A-&gt;B\uff0cB\u63a5\u53e3\u8fdb\u884c\u4e86\u4fee\u6539\u5e76\u4e14\u91cd\u542f\uff0c\u90a3\u4e48A\u8fd9\u4e2a\u65f6\u5019\u8fd8\u662f\u4f7f\u7528B\u4e4b\u524d\u7684schema\uff0c\u8c03\u7528\u53ef\u80fd\u4f1a\u51fa\u9519\uff0c\u4ee5\u514d\u51fa\u73b0\u672a\u77e5\u5f02\u5e38\uff0cA\u4e5f\u9700\u8981\u91cd\u542f\u3002  </p>"},{"location":"general-development/multienvironment.html#_11","title":"\u914d\u7f6e\u8bf4\u660e\uff1a","text":"<p>\u4ec5\u652f\u6301\u4ee5\u4e0b\u679a\u4e3e\u503c\uff1adevelopment,testing,acceptance,production\uff0c\u4e0d\u914d\u7f6e\u7684\u60c5\u51b5\u4e0b\u7f3a\u7701\u503c\u4e3a\"\"\uff08\u7a7a\uff09\u3002  \u65b9\u6cd51\uff1a\u901a\u8fc7JVM\u542f\u52a8\u53c2\u6570-Dservice_description.environment=development\uff08\u679a\u4e3e\u503c\uff09\u8fdb\u884c\u8bbe\u7f6e\uff1b  \u65b9\u6cd52\uff1a\u901a\u8fc7microservice.yaml\u914d\u7f6e\u6587\u4ef6\u6765\u6307\u5b9a\uff1a</p> <pre><code>  service_description:\n    environment: development\n</code></pre> <ul> <li>\u65b9\u6cd53\uff1a\u901a\u8fc7\u73af\u5883\u53d8\u91cfSERVICECOMB_ENV\u6765\u6307\u5b9a\uff08\u4ec5\u9650\u4e8ewindows\u7cfb\u7edf\uff09\uff0c\u82e5\u662f\u5f00\u53d1\u6001\uff0c\u5176\u503c\u914d\u7f6e\u4e3adevelopment\uff1b</li> </ul>"},{"location":"general-development/multienvironment.html#_12","title":"\u5178\u578b\u573a\u666f","text":""},{"location":"general-development/multienvironment.html#_13","title":"\u4e24\u5730\u4e09\u4e2d\u5fc3","text":""},{"location":"general-development/multienvironment.html#_14","title":"\u529f\u80fd\u4ecb\u7ecd","text":"<p>\u5728\u4ee5\u4e24\u5730\u4e09\u4e2d\u5fc3\u7684\u89e3\u51b3\u65b9\u6848\u8fdb\u884c\u8de8\u5730\u533a\u90e8\u7f72\u670d\u52a1\u7684\u573a\u666f\uff0c\u540c\u4e00\u5957\u670d\u52a1\u5b58\u5728\u4e8e\u591a\u4e2aavailableZone\u4e2d\uff0c\u9700\u8981\u5b9e\u73b0\u4f18\u5148\u8c03\u7528\u540c\u4e00\u4e2aAZ\u5185\u7684\u5e94\u7528\uff0c\u82e5\u672cAZ\u51fa\u73b0\u95ee\u9898\uff0c\u8981\u80fd\u591f\u8bbf\u95ee\u53e6\u4e00\u4e2aAZ\u4e0b\u7684\u5e94\u7528\uff0c\u4ece\u800c\u4fdd\u8bc1\u670d\u52a1\u7684\u53ef\u9760\u6027\u3002 ServiceComb\u63d0\u4f9b\u4e86\u6570\u636e\u4e2d\u5fc3\u914d\u7f6e\uff0c\u6765\u5b9e\u73b0\u5bf9\u5fae\u670d\u52a1\u7684\u5206\u533a\u548c\u7ba1\u7406\u3002\u6570\u636e\u4e2d\u5fc3\u5305\u542b3\u4e2a\u5c5e\u6027\uff1aservicecomb.datacenter.name, servicecomb.datacenter.region, servicecomb.datacenter.availableZone\uff0c\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u4e0d\u63d0\u4f9b\u9694\u79bb\u80fd\u529b\uff0c\u5fae\u670d\u52a1\u53ef\u4ee5\u53d1\u73b0\u5176\u4ed6\u6570\u636e\u4e2d\u5fc3\u7684\u5b9e\u4f8b\u3002\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u542f\u7528\u5b9e\u4f8b\u4eb2\u548c\u6027\uff0c\u6765\u4f18\u5148\u5f80\u6307\u5b9a\u7684\u533a\u57df\u6216\u8005Zone\u53d1\u6d88\u606f\u3002</p> <p></p> <p>\u5ba2\u6237\u7aef\u5728\u8def\u7531\u7684\u65f6\u5019\uff0c\u4f1a\u4f18\u5148\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230zone/region\u90fd\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u7136\u540e\u662fregion\u76f8\u540c\uff0c\u4f46zone\u4e0d\u76f8\u540c\u7684\u5b9e\u4f8b\uff0c\u90fd\u4e0d\u76f8\u540c\u7684\u65f6\u5019\uff0c\u5219\u6309\u7167\u8def\u7531\u89c4\u5219\u9009\u62e9\u4e00\u4e2a\u3002\u4eb2\u548c\u6027\u4e0d\u662f\u903b\u8f91\u9694\u79bb\uff0c\u53ea\u8981\u5b9e\u4f8b\u4e4b\u95f4\u7f51\u7edc\u662f\u8054\u901a\u7684\uff0c\u90a3\u4e48\u90fd\u6709\u53ef\u80fd\u8bbf\u95ee\u5230\uff1b\u5982\u679c\u7f51\u7edc\u4e0d\u901a\uff0c\u5219\u4f1a\u8bbf\u95ee\u5931\u8d25\u3002 \u5728\u534e\u4e3a\u4e91\u4e0a\u90e8\u7f72\u65f6\uff0c\u53ef\u5c06region\u548cavailableZone\u7684\u503c\u4e0e\u534e\u4e3a\u4e91\u7684region\uff08\u4f8b\u5982\uff1acn-north-1\uff09\u548c\u53ef\u7528\u533a\u5bf9\u5e94\u8d77\u6765\uff0c\u4f46\u662f\u56e0\u4e3a\u534e\u4e3a\u4e91\u4e0a\u7684\u4e0d\u540cregion\u76ee\u524d\u7f51\u7edc\u4e0d\u4e92\u901a\uff0c\u6240\u4ee5\u6b64\u65f6\u4e0d\u652f\u6301\u8de8region\u8bbf\u95ee\uff1b\u9664\u4e86\u5bf9\u5e94\u534e\u4e3a\u4e91\u7684region\u503c\uff0c\u4e5f\u53ef\u4ee5\u81ea\u884c\u5b9a\u4e49\u5176\u4ed6\u503c\uff0c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4f5c\u76f8\u5e94\u8c03\u6574\uff0c\u975e\u5e38\u7075\u6d3b\u3002  </p>"},{"location":"general-development/multienvironment.html#_15","title":"\u914d\u7f6e\u8bf4\u660e\uff1a","text":"<pre><code>servicecomb:\n  datacenter:\n    name: mydatacenter\n    region: my-Region\n    availableZone: my-Zone\n</code></pre>"},{"location":"general-development/produceprocess.html","title":"\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u6269\u5c55","text":""},{"location":"general-development/produceprocess.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u5f53\u524dREST\u901a\u9053\u8fd4\u56de\u503c\u652f\u6301application/json\u548ctext/plain\u4e24\u79cd\u683c\u5f0f\uff0c\u652f\u6301\u5f00\u53d1\u4eba\u5458\u6269\u5c55\u548c\u91cd\u5199\uff0c\u670d\u52a1\u63d0\u4f9b\u8005\u901a\u8fc7produces\u58f0\u660e\u53ef\u63d0\u4f9b\u5e8f\u5217\u5316\u80fd\u529b\uff0c\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7\u8bf7\u6c42\u7684Accept\u5934\u6307\u660e\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u8fd4\u56deapplication/json\u683c\u5f0f\u7684\u6570\u636e\u3002</p>"},{"location":"general-development/produceprocess.html#_3","title":"\u5f00\u53d1\u8bf4\u660e","text":"<ul> <li>\u6269\u5c55</li> </ul> <p>\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u8981\uff0c\u901a\u8fc7\u7f16\u7a0b\u7684\u65b9\u5f0f\u6765\u6269\u5c55\u8fd4\u56de\u503c\u5e8f\u5217\u5316\u65b9\u5f0f\u3002\u5b9e\u65bd\u6b65\u9aa4\u5982\u4e0b\uff0c\u4ee5\u6269\u5c55\u652f\u6301application/xml\u683c\u5f0f\u4e3a\u4f8b\uff1a</p> <p>1.\u5b9e\u73b0\u63a5\u53e3<code>ProduceProcessor</code></p> <p>getName()\u8fd4\u56de\u5f53\u524d\u6269\u5c55\u7684\u6570\u636e\u7c7b\u578b\u540d</p> <p>getOrder()\u8fd4\u56de\u5f53\u524d\u6570\u636e\u7c7b\u578b\u4f18\u5148\u7ea7\uff0c\u6709\u591a\u4e2a\u540c\u540d\u5b9e\u73b0\u7c7b\u65f6\u751f\u6548\uff0c\u53ea\u52a0\u8f7d\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\uff0c\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8</p> <p>doEncodeResponse(OutputStream output, Object result)\u628aresult\u5bf9\u8c61\u7f16\u7801\u6210output\uff0c\u6b64\u5904\u903b\u8f91\u9700\u8981\u81ea\u884c\u5b9e\u73b0</p> <p>doDecodeResponse(InputStream input, JavaType type)\u628ainput\u89e3\u6790\u6210\u76f8\u5e94\u5bf9\u8c61\uff0c\u6b64\u5904\u903b\u8f91\u9700\u8981\u81ea\u884c\u5b9e\u73b0</p> <p>```java   public class ProduceAppXmlProcessor implements ProduceProcessor {</p> <pre><code>@Override\npublic String getName() {\n  return MediaType.APPLICATION_XML;\n}\n\n@Override\npublic int getOrder() {\n  return 0;\n}\n\n@Override\npublic void doEncodeResponse(OutputStream output, Object result) throws Exception {\n  output.write(JAXBUtils.convertToXml(result).getBytes());\n}\n\n@Override\npublic Object doDecodeResponse(InputStream input, JavaType type) throws Exception {\n  return JAXBUtils.convertToJavaBean(input, type);\n}\n</code></pre> <p>}   ```</p> <p>2.\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6</p> <p>\u5728resources\u4e0bMETA-INF/services/\u6587\u4ef6\u5939\u65b0\u5efa\u6587\u4ef6xxx.ProduceProcessor\uff08xxx\u4e3a\u63a5\u53e3\u7684\u5305\u540d\uff09\uff0c\u5185\u5bb9\u586b\u5199xxx.ProduceAppXmlProcessor\uff08xxx\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5305\u540d\uff09\u3002</p> <ul> <li>\u91cd\u5199</li> </ul> <p>\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5bf9\u73b0\u6709\u7684application/json\u548ctext/plain\u4e24\u79cd\u683c\u5f0f\u5b9e\u73b0\u903b\u8f91\u8fdb\u884c\u91cd\u5199\uff0c\u4e5f\u53ef\u4ee5\u5bf9\u81ea\u884c\u6269\u5c55\u7684\u683c\u5f0f\u8fdb\u884c\u91cd\u5199\uff0c\u4ee5\u91cd\u5199xml\u5e8f\u5217\u5316\u65b9\u5f0f\u4e3a\u4f8b\uff1a</p> <p>1.\u521b\u5efa\u4e00\u4e2a\u540c\u540d\u7c7b<code>ProduceAppXmlProcessor</code>\uff0c\u5b9e\u73b0\u63a5\u53e3<code>ProduceProcessor</code></p> <p>2.\u91cd\u5199<code>doEncodeResponse</code>\u548c<code>doDecodeResponse</code>\u65b9\u6cd5\u91cc\u7684\u7f16\u89e3\u7801\u903b\u8f91</p> <p>3.\u66f4\u6539getOrder\u65b9\u6cd5\u91cc\u7684\u8fd4\u56de\u503c\uff0c\u8981\u6bd4\u539f\u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u5c0f\uff0c\u4f8b\u5982\u8fd4\u56de-1\uff0capplication/json\u548ctext/plain\u7684\u539f\u65b9\u6cd5\u8fd4\u56de\u503c\u9ed8\u8ba4\u90fd\u4e3a0</p> <p>4.\u5728resources\u4e0bMETA-INF/services/\u6587\u4ef6\u5939\u65b0\u5efa\u6587\u4ef6xxx.ProduceProcessor\uff08xxx\u4e3a\u63a5\u53e3\u7684\u5305\u540d\uff09\uff0c\u5185\u5bb9\u586b\u5199xxx.ProduceAppXmlProcessor\uff08xxx\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5305\u540d\uff09\u3002</p> <ul> <li>\u9a8c\u8bc1</li> </ul> <p>\u670d\u52a1\u63d0\u4f9b\u8005\u901a\u8fc7produces\u58f0\u660e\u53ef\u63d0\u4f9bxml\u5e8f\u5217\u5316\u80fd\u529b</p> <p><code>java     @RequestMapping(path = \"/appXml\", method = RequestMethod.POST, produces = MediaType.APPLICATION_XML_VALUE)     public JAXBPerson appXml(@RequestBody JAXBPerson person) {       return person;     }</code></p> <p>\u670d\u52a1\u6d88\u8d39\u8005\u901a\u8fc7\u8bf7\u6c42\u7684Accept\u5934\u6307\u660e\u8fd4\u56de\u503cxml\u5e8f\u5217\u5316\u65b9\u5f0f</p> <p><code>java     private void testCodeFirstAppXml(RestTemplate template, String cseUrlPrefix) {       JAXBPerson person = new JAXBPerson(\"jake\", 22, \"it\", \"60kg\");       person.setJob(new JAXBJob(\"developer\", \"coding\"));       HttpHeaders headers = new HttpHeaders();       headers.add(\"Accept\", MediaType.APPLICATION_XML_VALUE);       HttpEntity&lt;JAXBPerson&gt; requestEntity = new HttpEntity&lt;&gt;(person, headers);       ResponseEntity&lt;JAXBPerson&gt; resEntity = template.exchange(cseUrlPrefix + \"appXml\",           HttpMethod.POST,           requestEntity,           JAXBPerson.class);       TestMgr.check(person, resEntity.getBody());     }</code></p>"},{"location":"general-development/proxy.html","title":"\u4ee3\u7406\u8bbe\u7f6e","text":"<p>\u4f5c\u4e3a\u4e00\u540d\u5f00\u53d1\u8005\uff0c\u5728\u516c\u53f8\u5f00\u53d1\u73af\u5883\uff0c\u53ef\u80fd\u662f\u901a\u8fc7\u516c\u53f8\u4ee3\u7406\u7f51\u7edc\u63a5\u5165\u5230\u56e0\u7279\u7f51\u3002\u5982\u679c\u8c03\u8bd5\u670d\u52a1\u65f6\u8fd8\u5fc5\u987b\u4f9d\u8d56\u7f51\u4e0a\u8d44\u6e90\uff0c\u6bd4\u5982\u76f4\u63a5\u8fde\u63a5\u516c\u6709\u4e91\u670d\u52a1\u4e2d\u5fc3\uff0c\u90a3\u4e48\u5c31\u5fc5\u987b\u914d\u7f6e\u4ee3\u7406\u3002</p> <p>\u914d\u7f6e\u65b9\u5f0f\uff0c\u5728 microservice.yaml \u6587\u4ef6\u589e\u52a0 proxy \u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  proxy:\n    enable: true            #\u662f\u5426\u5f00\u542f\u4ee3\u7406\n    host: yourproxyaddress  #\u4ee3\u7406\u5730\u5740\n    port: 80                #\u4ee3\u7406\u7aef\u53e3\n    username: yourname      #\u7528\u6237\u540d\n    passwd: yourpassword    #\u5bc6\u7801\n</code></pre> <p>\u6709\u4e9b\u7528\u6237\u9700\u8981\u901a\u8fc7\u52a0\u5bc6\u4fdd\u62a4\u5bc6\u7801\u4fe1\u606f\u3002\u53ef\u4ee5\u901a\u8fc7\u5b9e\u73b0SPI\u6269\u5c55\u6765\u5b9e\u73b0\u3002\u9700\u8981\u6269\u5c55\u7684SPI\u63a5\u53e3\u540d\u79f0\u4e3a\uff1aorg.apache.servicecomb.foundation.common.encrypt.Encryption\uff0c\u5b9e\u73b0 decode \u63a5\u53e3\u5373\u53ef\u3002</p>"},{"location":"general-development/reactive.html","title":"Reactive","text":""},{"location":"general-development/reactive.html#producer","title":"\u7b80\u5355\u540c\u6b65\u6a21\u5f0f\u7684Producer\uff1a","text":"<p>\u793a\u4f8b\u4ee3\u7801\uff1a</p> <pre><code>@GetMapping(path = \"/hello/{name}\")\npublic String hello(@PathVariable(name = \"name\") String name){\n  return \"hello \" + name;\n}\n</code></pre> <p>\u4e0e\u6b64\u5bf9\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <p>\u8fd9\u662f\u4f20\u7edf\u5178\u578b\u7684\u5de5\u4f5c\u6a21\u578b\uff0c\u6838\u5fc3\u601d\u60f3\u662f\u4e0d\u963b\u585e\u7f51\u7edc\u7ebf\u7a0b\uff0c\u5c06\u4e1a\u52a1\u653e\u5728\u72ec\u7acb\u7684\u7ebf\u7a0b\u4e2d\u5904\u7406\uff08\u4e3a\u4e86\u7b80\u5316\u8868\u8fbe\uff0cexecutor\u4e2d\u53ea\u753b\u4e00\u4e2a\u7ebf\u7a0b\uff09</p> <p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6b64\u6a21\u5f0f\u95ee\u9898\u4e0d\u5927\u3002</p>"},{"location":"general-development/reactive.html#_1","title":"\u5d4c\u5957\u540c\u6b65\u8c03\u7528\uff1a","text":"<p>\u4e0d\u662f\u6240\u6709\u7684\u4e1a\u52a1\u90fd\u662f\u7b80\u5355\u5904\u7406\u4e00\u4e0b\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u5e94\u7b54\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u8c03\u7528\u5176\u4ed6\u5fae\u670d\u52a1.</p> <p>\u793a\u4f8b\u4ee3\u7801\uff1a</p> <pre><code>public interface Intf{\n  String hello(String name);\n}\n\n@GetMapping(path = \"/hello/{name}\")\npublic String hello(@PathVariable(name = \"name\") String name){\n  return \"from remote: hello \" + intf.hello(name);\n}\n</code></pre> <p>\u4e0e\u6b64\u5bf9\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <p>\u6839\u636e\u8fd9\u4e2a\u6d41\u7a0b\u7684\u7279\u70b9\uff0c\u53ef\u4ee5\u770b\u5230\u4f1a\u4ea7\u751f\u4ee5\u4e0b\u7ed3\u679c\uff1a</p> <ul> <li> <p>\u56e0\u4e3a\u662f\u540c\u6b65\u8c03\u7528\uff0c\u5728\u201cOther microservices\u201d\u672a\u5e94\u7b54\u4e4b\u524d\u201cMicroservice A\u201d\u7684\u8c03\u7528\u7ebf\u7a0b\u4e00\u76f4\u5904\u4e8e\u963b\u585e\u7b49\u5f85\u72b6\u6001\uff0c\u4e0d\u5904\u7406\u4efb\u4f55\u5176\u4ed6\u4e8b\u52a1</p> </li> <li> <p>\u5f53Executor\u4e2d\u6240\u6709\u7ebf\u7a0b\u90fd\u5728\u7b49\u5f85\u8fdc\u7a0b\u5e94\u7b54\u65f6\uff0c\u6240\u6709\u65b0\u7684\u8bf7\u6c42\u90fd\u53ea\u80fd\u5728Queue\u4e2d\u6392\u961f\uff0c\u5f97\u4e0d\u5230\u5904\u7406\uff0c\u6b64\u65f6\u6574\u4e2a\u7cfb\u7edf\u76f8\u5f53\u4e8e\u505c\u6b62\u5de5\u4f5c\u4e86</p> </li> <li> <p>\u8981\u589e\u52a0\u5904\u7406\u80fd\u529b\uff0c\u53ea\u80fd\u589e\u52a0Executor\u4e2d\u7684\u7ebf\u7a0b\u6570\uff0c\u800c\u64cd\u4f5c\u7cfb\u7edf\u5e76\u4e0d\u80fd\u65e0\u9650\u5730\u589e\u52a0\u7ebf\u7a0b\u6570\uff0c\u4e8b\u5b9e\u4e0a\u589e\u52a0\u7ebf\u7a0b\u6570\u5e26\u6765\u7684\u6536\u76ca\u662f\u4e00\u4e2a\u629b\u7269\u7ebf\u6a21\u578b\uff0c\u8d85\u51fa\u4e00\u5b9a\u7684\u4e34\u754c\u503c\u540e\uff0c\u7cfb\u7edf\u7684\u5904\u7406\u80fd\u529b\u5176\u5b9e\u4f1a\u4e0b\u964d\uff0c\u800c\u8fd9\u4e2a\u4e34\u754c\u503c\u5e76\u4e0d\u4f1a\u592a\u5927</p> </li> <li> <p>\u5f53\u4e1a\u52a1\u903b\u8f91\u4e2d\uff0c\u9700\u8981\u591a\u6b21\u8fdb\u884c\u8fdc\u7a0b\u540c\u6b65\u64cd\u4f5c\u65f6\uff0c\u4f1a\u66f4\u52a0\u6076\u5316\u8fd9\u4e2a\u73b0\u8c61</p> </li> </ul>"},{"location":"general-development/reactive.html#_2","title":"\u5d4c\u5957\u540c\u6b65\u8c03\u7528\u7684\u201c\u9519\u8bef\u201d\u4f18\u5316\uff1a","text":"<p>\u9488\u5bf9\u524d\u4e00\u573a\u666f\uff0c\u6709\u4eba\u4f1a\u8ba4\u4e3a\u5c06\u201cInvoke producer method\u201d\u4e22\u8fdb\u53e6\u4e00\u4e2a\u7ebf\u7a0b\u6c60\uff0c\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\uff0c\u5305\u62ec\u4ee5\u4e0b\u5904\u7406\u65b9\u5f0f\uff1a</p> <ul> <li> <p>\u5728producer method\u6253\u6807\u6ce8@Async\uff0c\u7531AOP\u8d1f\u8d23\u5c06\u5bf9\u8be5\u65b9\u6cd5\u7684\u8c03\u7528\u4e22\u8fdb\u5176\u4ed6\u7ebf\u7a0b\u6c60\u53bb</p> </li> <li> <p>\u5728producer method\u5185\u90e8\u901a\u8fc7\u4e1a\u52a1\u4ee3\u7801\u8f6c\u79fb\u7ebf\u7a0b</p> </li> </ul> <p>\u5f62\u6210\u4ee5\u4e0b\u6d41\u7a0b\uff1a</p> <p></p> <p>\u6839\u636e\u8fd9\u4e2a\u6d41\u7a0b\u7684\u7279\u70b9\uff0c\u53ef\u4ee5\u770b\u5230\u4f1a\u4ea7\u751f\u4ee5\u4e0b\u7ed3\u679c\uff1a</p> <ul> <li> <p>\u201cInvoke producer method\u201d\u5fc5\u987b\u7acb\u5373\u8fd4\u56de\uff0c\u5426\u5219Executor\u7ebf\u7a0b\u8fd8\u662f\u5f97\u4e0d\u5230\u91ca\u653e</p> </li> <li> <p>\u201cInvoke producer method\u201d\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e2a\u65b0\u7684\u673a\u5236\u544a\u77e5\u8c03\u7528\u6d41\u7a0b\u81ea\u5df1\u7684\u8fd4\u56de\u503c\uff0c\u4e0d\u662f\u6700\u7ec8\u8fd4\u56de\u503c\uff08\u5f53\u524d\u6ca1\u6709\u8fd9\u4e2a\u673a\u5236\uff09</p> </li> <li> <p>\u867d\u7136Executor\u7ebf\u7a0b\u91ca\u653e\u4e86\uff0c\u4f46\u662fCustomer Executor\uff0c\u5176\u5b9e\u8fd8\u662f\u963b\u585e\u4f4f\uff0c\u5728\u7b49\u5f85\u8fdc\u7aef\u5e94\u7b54\uff0c\u6574\u4e2a\u7cfb\u7edf\u7684\u963b\u585e\u72b6\u6001\u5e76\u6ca1\u6709\u5f97\u5230\u6539\u53d8\uff1b\u800c\u4e14\u8fd8\u51ed\u7a7a\u591a\u4e86\u4e00\u6b21\u7ebf\u7a0b\u5207\u6362</p> </li> <li> <p>\u8be5\u673a\u5236\u770b\u4e0a\u53bb\uff0c\u552f\u4e00\u7684\u4f5c\u7528\uff0c\u662f\u91ca\u653e\u4e86executor\u7ebf\u7a0b\uff0c\u8ba9executor\u7ebf\u7a0b\u6709\u673a\u4f1a\u5904\u7406\u5176\u4ed6\u8bf7\u6c42\uff0c\u8fd9\u76f8\u5f53\u4e8e\u9694\u79bb\u4ed3\u7684\u6982\u5ff5\uff0c\u5904\u7406\u901f\u5ea6\u6162\u7684\u4e1a\u52a1\u4e0d\u8981\u5f71\u54cd\u5176\u4ed6\u4e1a\u52a1\uff1b\u4f46\u662f\u8fd9\u4e2a\u6982\u5ff5serviceComb\u662f\u53ef\u4ee5\u76f4\u63a5\u652f\u6301\u7684\uff0c\u53ef\u4ee5\u914d\u7f6e\u6307\u5b9a\u7684\u4e1a\u52a1\u65b9\u6cd5\u72ec\u5360\u5168\u65b0\u7684executor\uff0c\u8fd9\u6837\u6574\u4e2a\u6d41\u7a0b\u5c31\u8ddf\u201c\u5d4c\u5957\u540c\u6b65\u8c03\u7528\u201d\u5b8c\u5168\u4e00\u6837\uff0c\u6d41\u7a0b\u66f4\u7b80\u5355\uff0c\u800c\u4e0d\u9700\u8981\u5728\u201cInvoke producer method\u201d\u5c42\u6b21\u6765\u505a\u8fd9\u4e2a\u4e8b\u60c5</p> </li> </ul>"},{"location":"general-development/reactive.html#reactive","title":"\u7eafReactive\u673a\u5236","text":"<p>\u793a\u4f8b\u4ee3\u7801\uff1a</p> <pre><code>public interface Intf{\n  CompletableFuture&lt;String&gt; hello(String name);\n}\n\n@GetMapping(path = \"/hello/{name}\")\npublic CompletableFuture&lt;String&gt; hello(@PathVariable(name = \"name\") String name){\n  CompletableFuture&lt;String&gt; future = new CompletableFuture&lt;&gt;();\n  intf.hello(name).whenComplete((result, exception) -&gt; {\n    if (exception == null) {\n      future.complete(\"from remote: \" + result);\n      return;\n    }\n\n    future.completeExceptionally(exception);\n  });\n  return future;\n}\n</code></pre> <p>\u4e0e\u6b64\u5bf9\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <p></p> <ul> <li> <p>\u4e0e\u4f20\u7edf\u6d41\u7a0b\u4e0d\u540c\u7684\u662f\uff0c\u6240\u6709\u529f\u80fd\u90fd\u5728eventloop\u4e2d\u6267\u884c\uff0c\u5e76\u4e0d\u4f1a\u8fdb\u884c\u7ebf\u7a0b\u5207\u6362</p> </li> <li> <p>\u6a59\u8272\u7bad\u5934\u8d70\u5b8c\u540e\uff0c\u5bf9\u672c\u7ebf\u7a0b\u7684\u5360\u7528\u5373\u5b8c\u6210\u4e86\uff0c\u4e0d\u4f1a\u963b\u585e\u7b49\u5f85\u5e94\u7b54\uff0c\u8be5\u7ebf\u7a0b\u53ef\u4ee5\u5904\u7406\u5176\u4ed6\u4efb\u52a1</p> </li> <li> <p>\u5f53\u6536\u5230\u8fdc\u7aef\u5e94\u7b54\u540e\uff0c\u7531\u7f51\u7edc\u6570\u636e\u9a71\u52a8\u5f00\u59cb\u8d70\u7ea2\u8272\u7bad\u5934\u7684\u5e94\u7b54\u6d41\u7a0b</p> </li> <li> <p>\u53ea\u8981\u6709\u4efb\u52a1\uff0c\u7ebf\u7a0b\u5c31\u4e0d\u4f1a\u505c\u6b62\uff0c\u4f1a\u4e00\u76f4\u6267\u884c\u4efb\u52a1\uff0c\u53ef\u4ee5\u5145\u5206\u5229\u7528cpu\u8d44\u6e90\uff0c\u4e5f\u4e0d\u4f1a\u4ea7\u751f\u591a\u4f59\u7684\u7ebf\u7a0b\u5207\u6362\uff0c\u53bb\u65e0\u8c13\u5730\u6d88\u8017cpu\u3002</p> </li> </ul> <p>\u56e0\u4e3a\u540c\u6b65\u6a21\u5f0f\u4e0b\uff0c\u9700\u8981\u5927\u91cf\u7684\u7ebf\u7a0b\u6765\u63d0\u5347\u5e76\u53d1\u5ea6\uff0c\u800c\u5927\u91cf\u7684\u7ebf\u7a0b\u53c8\u5e26\u6765\u7ebf\u7a0b\u5207\u6362\u7684\u989d\u5916\u6d88\u8017\u3002</p> <p>\u6d4b\u8bd5\u6570\u636e\u8868\u660e\uff0creactive\u6a21\u5f0f\uff0c\u53ea\u9700\u8981\u6d88\u8017\u540c\u6b65\u6a21\u5f0f\u4e0d\u5230\u4e00\u534a\u7684cpu\uff0c\u5373\u53ef\u8fbe\u5230\u6216\u8d85\u8fc7\u540c\u6b65\u6a21\u5f0f\u7684tps\uff0c\u5e76\u4e14\u65f6\u5ef6\u66f4\u4f4e\u3002</p>"},{"location":"general-development/reactive.html#reactive_1","title":"\u6df7\u5408Reactive\u673a\u5236","text":"<p>Reactvie\u8981\u6c42\uff1a\u6240\u6709\u5728eventloop\u4e2d\u6267\u884c\u7684\u903b\u8f91\uff0c\u4e0d\u5141\u8bb8\u6709\u4efb\u4f55\u7684\u963b\u585e\u52a8\u4f5c\uff0c\u5305\u62ec\u4e0d\u9650\u4e8ewait\u3001sleep\u3001\u5de8\u5927\u5faa\u73af\u3001\u540c\u6b65\u67e5\u8be2DB\u7b49\u7b49\u3002</p> <p>serviceComb\u5e95\u5c42\u662f\u57fa\u4e8evertx\u7684\uff0cvertx\u751f\u6001\u4e2d\u6709jdbc\u3001mq\u3001zooKeeper\u7b49\u7b49\u5404\u79cd\u4e30\u5bcc\u7ec4\u4ef6\u7684reactive\u9a71\u52a8\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u90fd\u53ef\u4ee5\u6ee1\u8db3\u8981\u6c42\u3002</p> <p>\u4f46\u662f\u6709\u7684\u573a\u666f\u4e0b\uff0c\u786e\u5b9e\u6709\u7684\u540c\u6b65\u64cd\u4f5c\u65e0\u6cd5\u907f\u514d\uff0c\u6bd4\u5982\uff1a</p> <ul> <li> <p>\u79c1\u6709\u7684\u5b89\u5168\u52a0\u56fa\u7684redis\uff0c\u53ea\u63d0\u4f9b\u4e86\u540c\u6b65\u9a71\u52a8</p> </li> <li> <p>\u8f83\u590d\u6742\u7684\u4e1a\u52a1\u8fd0\u7b97</p> </li> <li> <p>\u2026\u2026</p> </li> </ul> <p>\u6b64\u65f6\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u540c\u6b65\u7684\u903b\u8f91\u62bd\u53d6\u51fa\u6765\u653e\u5230\u7ebf\u7a0b\u6c60\u4e2d\u53bb\u5904\u7406\uff0c\u800c\u5176\u4ed6\u90e8\u5206\u4ecd\u7136\u4f7f\u7528reactive\u7684\u6d41\u7a0b\u3002</p>"},{"location":"general-development/reactive.html#reactive_2","title":"\u5173\u4e8ereactive\u7684\u4e00\u4e9b\u8bf4\u660e\uff1a","text":"<ul> <li> <p>Producer\uff1a</p> </li> <li> <p>producer\u662f\u5426\u4f7f\u7528reactive\u4e0econsumer\u5982\u4f55\u8c03\u7528\uff0c\u6ca1\u6709\u4efb\u4f55\u8054\u7cfb</p> </li> <li> <p>\u5f53operation\u8fd4\u56de\u503c\u4e3aCompletableFuture\u7c7b\u578b\u65f6\uff0c\u9ed8\u8ba4\u6b64operation\u5de5\u4f5c\u4e8ereactive\u6a21\u5f0f\uff0c\u6b64\u65f6\u5982\u679c\u9700\u8981\u5f3a\u5236\u6b64operation\u5de5\u4f5c\u4e8e\u7ebf\u7a0b\u6c60\u6a21\u5f0f\uff0c\u9700\u8981\u5728microservice.yaml\u4e2d\u660e\u786e\u914d\u7f6e\uff1b\u5047\u8bbe\u67d0operation\uff0c\u5176schemaId\u4e3asid\uff0coperationId\u4e3aasyncQuery\uff0c\u5219\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u914d\u7f6e\uff1a</p> </li> </ul> <pre><code>servicecomb:\n  executors:\n    Provider:\n      sid.asyncQuery: cse.executor.groupThreadPool\n</code></pre> <p>\u8fd9\u91cc\u7684cse.executor.groupThreadPool\u662fserviceComb\u5185\u7f6e\u7684\u9ed8\u8ba4\u7ebf\u7a0b\u6c60\uff0c\u7528\u6237\u53ef\u4ee5\u4efb\u610f\u6307\u5b9a\u4e3a\u81ea\u5df1\u7684\u5b9a\u5236\u7ebf\u7a0b\u6c60\u3002</p> <ul> <li> <p>Consumer\uff1a</p> </li> <li> <p>consumer\u662f\u5426\u4f7f\u7528reactive\u4e0eproducer\u5982\u4f55\u5b9e\u73b0\uff0c\u6ca1\u6709\u4efb\u4f55\u8054\u7cfb</p> </li> <li> <p>\u5f53\u524d\u53ea\u652f\u6301\u900f\u660eRPC\u6a21\u5f0f\uff0c\u4f7f\u7528JDK\u539f\u751f\u7684CompletableFuture\u6765\u627f\u8f7d\u6b64\u529f\u80fd</p> <p>completableFuture\u7684when\u3001then\u7b49\u7b49\u529f\u80fd\u90fd\u53ef\u76f4\u63a5\u4f7f\u7528</p> <p>\u4f46\u662fcompletableFuture\u7684async\u7cfb\u5217\u529f\u80fd\uff0c\u5176\u5b9e\u662f\u53e6\u5916\u542f\u7ebf\u7a0b\u6c60\u6765\u6267\u884c\u529f\u80fd\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528</p> <p>\u5173\u4e8eRxJava Observable\u7684\u652f\u6301\u540e\u7eed\u4f1a\u52a0\u5165</p> <p>\u5173\u4e8eAsyncRestTemplate\u7684\u652f\u6301\u540e\u7eed\u4f1a\u52a0\u5165</p> </li> </ul>"},{"location":"general-development/report-framework-version.html","title":"\u6846\u67b6\u4e0a\u62a5\u7248\u672c\u53f7","text":""},{"location":"general-development/report-framework-version.html#_1","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u4e3a\u65b9\u4fbf\u6cbb\u7406\uff0c\u4f7f\u7528ServiceComb\u8fdb\u884c\u5f00\u53d1\uff0c\u4f1a\u5c06\u5f53\u524d\u4f7f\u7528\u7684ServiceComb\u7248\u672c\u53f7\u4e0a\u62a5\u81f3\u670d\u52a1\u4e2d\u5fc3\uff0c\u5e76\u4e14\u652f\u6301\u5176\u4ed6\u6846\u67b6\u96c6\u6210ServiceComb\u65f6\u4e0a\u62a5\u5176\u4ed6\u6846\u67b6\u7684\u7248\u672c\u53f7\u3002</p>"},{"location":"general-development/report-framework-version.html#_2","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>\u6b65\u9aa41 \u9996\u5148\u5b9e\u73b0\u5f00\u6e90\u6846\u67b6ServiceComb\u7684Versions\u63a5\u53e3\uff0c\u5b9e\u73b0\u8be5\u63a5\u53e3\u4e0b\u7684loadVersion\u65b9\u6cd5\uff0c\u5373\u53ef\u5c06\u7248\u672c\u540d\u79f0\u548c\u7248\u672c\u53f7\u4f5c\u4e3a\u952e\u503c\u5bf9\u8fd4\u56de</p> <pre><code>public class MyVersion implements Versions{\n  @Override\n  public Map&lt;String, String&gt; loadVersion() {\n    Map&lt;String, String&gt; map = new HashMap&lt;&gt;();\n    map.put(\"My\", this.getClass().getPackage().getImplementationVersion());\n    return map;\n  }\n}\n</code></pre> <p>\u6b65\u9aa42 \u4e3a\u4e86\u4f7f\u7528SPI\u673a\u5236\u8ba9\u8be5\u8fd4\u56de\u5bf9\u8c61\u88abServiceComb\u8bfb\u53d6\u5230\uff0c\u9700\u8981\u5728META-INF\u4e2d\u589e\u52a0services\u6587\u4ef6\u5939\uff0c\u5e76\u5728\u5176\u4e2d\u589e\u52a0\u4e00\u4e2a\u6587\u4ef6\uff0c\u4ee5\u6240\u5b9e\u73b0\u63a5\u53e3x.x.x.Versions(\u5e26\u5305\u540d)\u4e3a\u540d\uff0c\u4ee5\u5177\u4f53\u5b9e\u73b0\u7c7bx.x.x.CseVersion(\u5e26\u5305\u540d)\u4e3a\u5185\u5bb9</p> <p>\u5f53\u670d\u52a1\u6ce8\u518c\u5230ServiceCenter\u65f6\uff0c\u4f1a\u643a\u5e26\u6240\u6709\u7248\u672c\u53f7\u4fe1\u606f</p> <pre><code>{\n  \"serviceId\": \"xxx\",\n  \"appId\": \"xxx\",\n  \"registerBy\": \"SDK\",\n  \"framework\": {\n    \"name\": \"servicecomb-java-chassis\",\n    \"version\": \"My:x.x.x;ServiceComb:x.x.x\"\n  } \n}\n</code></pre> <ul> <li>\u5907\u6ce8</li> </ul> <p>\u4e0a\u62a5\u7684\u7248\u672c\u53f7\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u4e5f\u53ef\u4ee5\u4ecepom\u6216jar\u5305\u7684MANIFEST.MF\u91cc\u8bfb\u53d6\uff0c\u5982\u679c\u4f7f\u7528.class.getPackage().getImplementationVersion()\u4eceMANIFEST.MF\u83b7\u53d6\u7248\u672c\u53f7\uff0c\u5219\u9700\u8981\u5728pom\u6587\u4ef6\u4e2d\u628amaven-jar-plugin\u7684archive\u5143\u7d20addDefaultImplementationEntries\u548caddDefaultSpecificationEntries\u8bbe\u7f6e\u4e3atrue</p> <pre><code>&lt;plugin&gt;\n  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;\n  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;\n  &lt;configuration&gt;\n    &lt;archive&gt;\n      &lt;manifest&gt;\n        &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;\n        &lt;addDefaultSpecificationEntries&gt;true&lt;/addDefaultSpecificationEntries&gt;\n      &lt;/manifest&gt;\n    &lt;/archive&gt;\n  &lt;/configuration&gt;\n&lt;/plugin&gt;\n</code></pre>"},{"location":"general-development/secret-field.html","title":"\u5b9a\u5236\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5","text":""},{"location":"general-development/secret-field.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7531\u4e8eHTTP\u534f\u8bae\u7684\u975e\u5b89\u5168\u6027\uff0c\u5728\u7f51\u7edc\u4e2d\u4f20\u8f93\u7684\u6570\u636e\u80fd\u8f7b\u6613\u88ab\u5404\u79cd\u6293\u5305\u5de5\u5177\u76d1\u542c\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u4e1a\u52a1\u5bf9\u5e94\u7528\u6216\u670d\u52a1\u95f4\u4f20\u8f93\u7684\u654f\u611f\u6570\u636e\u6709\u8f83\u9ad8\u7684\u5b89\u5168\u8981\u6c42\uff0c\u8fd9\u7c7b\u6570\u636e\u9700\u8981\u7279\u522b\u7684\u52a0\u5bc6\u4fdd\u62a4\uff08\u4e1a\u52a1\u4e0d\u540c\u5bf9\u7b97\u6cd5\u8981\u6c42\u4e0d\u540c\uff09\uff0c\u8fd9\u6837\u5373\u4f7f\u5185\u5bb9\u88ab\u622a\u83b7\uff0c\u4e5f\u53ef\u4ee5\u4fdd\u62a4\u5176\u4e2d\u7684\u654f\u611f\u6570\u636e\u4e0d\u88ab\u8f7b\u6613\u83b7\u53d6\u3002</p>"},{"location":"general-development/secret-field.html#_2","title":"\u89e3\u51b3\u65b9\u6cd5","text":"<p>\u670d\u52a1\u95f4\u7684\u901a\u4fe1\u79bb\u5f00\u4e0d\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\uff0c\u5bf9\u4e8e\u4e0a\u8ff0\u7684\u573a\u666f\uff0c\u4f7f\u7528jackson\u7c7b\u5e93\u63d0\u4f9b\u7684 @JsonSerialize \u548c @JsonDeserialize \u6ce8\u89e3\u529f\u80fd\uff0c\u5bf9\u654f\u611f\u6570\u636e\u5b9a\u5236\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\uff0c\u5e76\u5728\u5b9a\u5236\u5316\u7684\u65b9\u6cd5\u4e2d\u5b9e\u73b0\u52a0\u89e3\u5bc6\u529f\u80fd\u3002</p> <p>\u6ce8\u89e3\u63cf\u8ff0\u53c2\u8003\uff1a\u5728 https://github.com/FasterXML/jackson-databind/wiki \u4e2d\u67e5\u627e\u5bf9\u5e94\u7248\u672c\u7684Javadocs</p>"},{"location":"general-development/secret-field.html#_3","title":"\u793a\u4f8b","text":"<p>1.\u5bf9 Person \u5bf9\u8c61\u4e2d\u7684 name \u5c5e\u6027\uff0c\u901a\u8fc7\u6ce8\u89e3\u8bbe\u5b9a\u4f7f\u7528\u7279\u5b9a\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\u3002\u6ce8\uff1a\u6b64\u5904\u6f14\u793a\u5982\u4f55\u4f7f\u7528\uff0c\u4e0d\u6d89\u53ca\u52a0\u89e3\u5bc6\u76f8\u5173\u3002</p> <pre><code>public class Person {\n  private int usrId;\n\n  //\u6307\u5b9a\u6570\u636e name \u4f7f\u7528\u7279\u5b9a\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\n  @JsonSerialize(using = SecretSerialize.class)\n  @JsonDeserialize(using = SecretDeserialize.class)\n  private String name;\n\n  public int getUsrId() {\n    return usrId;\n  }\n\n  public void setUsrId(int usrId) {\n    this.usrId = usrId;\n  }\n\n  public String getName() {\n    return name;\n  }\n\n  public void setName(String name) {\n    this.name = name;\n  }\n\n  @Override\n  public String toString() {\n    return \"Person{\" +\n        \"usrId=\" + usrId +\n        \", name='\" + name + '\\'' +\n        '}';\n  }\n}\n</code></pre> <p>2.\u5b9a\u4e49 SecretSerialize \u7c7b \u548c SecretDeserialize \u7c7b\uff0c\u5e76\u91cd\u5199\u5176\u65b9\u6cd5</p> <pre><code>public class SecretSerialize extends JsonSerializer&lt;String&gt; {\n\n  //\u91cd\u5199 name \u7684\u5e8f\u5217\u5316\u65b9\u6cd5\uff0c\u53ef\u5728\u6b64\u5b9e\u73b0\u7528\u6237\u5b9a\u5236\u7684\u52a0\u89e3\u5bc6\u6216\u5176\u4ed6\u64cd\u4f5c\n  @Override\n  public void serialize(String value, JsonGenerator gen, SerializerProvider serializers)\n      throws IOException, JsonProcessingException {\n    //\u5728\u6570\u636e name \u540e\u589e\u52a04\u4e2a\u7279\u5b9a\u5b57\u7b26\n    value = value + \" &amp;#@\";\n\n    //\u6267\u884c\u5e8f\u5217\u5316\u64cd\u4f5c\n    gen.writeString(value);\n  }\n}\n\npublic class SecretDeserialize extends JsonDeserializer&lt;String&gt; {\n\n  //\u91cd\u5199 name \u7684\u53cd\u5e8f\u5217\u5316\u65b9\u6cd5\uff0c\u4e0eserialize\u5e8f\u5217\u5316\u65b9\u6cd5\u5339\u914d\uff0c\u6309\u7528\u6237\u5b9a\u5236\u7684\u89c4\u5219\u83b7\u53d6\u771f\u5b9e\u6570\u636e\n  @Override\n  public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n    //\u83b7\u53d6\u53cd\u5e8f\u5217\u5316\u6570\u636e\uff0c\u9664\u53bb4\u4e2a\u7279\u5b9a\u5b57\u7b26\uff0c\u83b7\u53d6\u771f\u5b9e\u7684 name\n    String value = p.getValueAsString();\n    value = value.substring(0, value.length() - 4);\n    return value;\n  }\n}\n</code></pre>"},{"location":"general-development/service-information-printer.html","title":"\u670d\u52a1\u4fe1\u606f\u6253\u5370","text":""},{"location":"general-development/service-information-printer.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u4e3a\u4e86\u4f7f\u7528\u6237\u53ef\u4ee5\u66f4\u5feb\u6377\uff0c\u65b9\u4fbf\u7684\u83b7\u5f97\u670d\u52a1\u4fe1\u606f\uff0c\u5c06\u670d\u52a1\u4fe1\u606f\u8fdb\u884c\u6574\u7406\uff0c\u5e76\u5728\u65e5\u5fd7\u4e2d\u6253\u5370\u51fa\u6765</p>"},{"location":"general-development/service-information-printer.html#_3","title":"\u6548\u679c","text":"<p>\u4e0d\u8bba\u670d\u52a1\u521b\u5efa\u6210\u529f\u4e0e\u5426\uff0c\u670d\u52a1\u4fe1\u606f\u90fd\u4f1a\u5728\u65e5\u5fd7\u4fe1\u606f\u7684\u672b\u5c3e\u88ab\u81ea\u52a8\u6253\u51fa\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u641c\u7d22\"Service Information is shown below\"\u8fdb\u884c\u5b9a\u4f4d</p> <pre><code>2019-08-21 16:37:14,859 [INFO] Service information is shown below:\nservice center: [http://127.0.0.1:30100]\nconfig center: [http://127.0.0.1:30113]\nAppID: Restful-Service-HelloWorld\nServiceName: restful_provider\nVersion: 0.0.1\nEnvironment: production\nServiceID: a3344e9ad4557f883b36d7f53e33306fbc0a54ad\nInstanceID; e0765a8ec3ee11e9910d0255ac105780\n org.apache.servicecomb.core.SCBEngine$1.afterRegistryInstance(SCBEngine.java:243)\n</code></pre>"},{"location":"general-development/service-information-printer.html#_4","title":"\u6269\u5c55","text":""},{"location":"general-development/service-information-printer.html#_5","title":"\u76f8\u5173\u7684\u63a5\u53e3","text":"<p>\u63a5\u53e3BootUpInformationCollector</p> <p>collect(): \u8fd4\u56de\u4e00\u4e2astring\uff0c\u4e5f\u5c31\u662f\u670d\u52a1\u4e2d\u9700\u8981\u6253\u5370\u7684\u4fe1\u606f getOrder(): \u8fd4\u56deBootUpInformationCollector\u5b9e\u73b0\u7c7b\u7684\u4f18\u5148\u7ea7\uff0c\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8</p>"},{"location":"general-development/service-information-printer.html#_6","title":"\u7528\u6237\u6269\u5c55","text":"<p>\u7528\u6237\u5982\u679c\u9700\u8981\u5bf9\u6253\u5370\u4fe1\u606f\u8fdb\u884c\u8fdb\u4e00\u6b65\u6269\u5c55\uff0c\u9700\u8981 1. \u6839\u636eBootUpInformationCollector\u521b\u5efa\u65b0\u7684\u7c7b\uff0c\u5e76\u8d4b\u4e88\u5408\u9002\u7684order\u3002 2. \u521b\u5efaSPI\u6587\u4ef6</p>"},{"location":"general-development/service-information-printer.html#_7","title":"\u6837\u4f8b","text":"<ol> <li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b9e\u73b0\u7c7bHelloCollector</li> </ol> <pre><code>public class HelloCollector implements BootUpInformationCollector {\n  @Override\n  public String collect() {\n    return \"Hello!\";\n  }\n\n  @Override\n  public int getOrder() {\n    return 5;\n  }\n}\n</code></pre> <p>\u7531\u4e8eorder\u662f5\uff0c\u6240\u4ee5\u8fd9\u4e2a\u7c7b\u4f1a\u5728\u5730\u5740\u4fe1\u606f\uff08order 0\uff09\u548c\u670d\u52a1\u4fe1\u606f\uff08order 200\uff09\u4e4b\u95f4\u88ab\u6253\u51fa 2. \u521b\u5efaSPI\u6587\u4ef6 \u5728resources/META-INF/services\u4e2d\u521b\u5efa\u65b0\u7684SPI\u6587\u4ef6 \u540d\u5b57\uff1aorg.apache.servicecomb.core.bootup.BootUpInformationCollector \u5185\u5bb9\uff1a(HelloCollector\u7684\u7c7b\u540d) 3. \u8fd0\u884c\u6548\u679c <code>2019-08-21 16:37:14,859 [INFO] Service information is shown below:    service center: [http://127.0.0.1:30100]    config center: [http://127.0.0.1:30113]    Hello!    AppID: Restful-Service-HelloWorld    ServiceName: restful_provider    Version: 0.0.1    Environment: production    ServiceID: a3344e9ad4557f883b36d7f53e33306fbc0a54ad    InstanceID; e0765a8ec3ee11e9910d0255ac105780     org.apache.servicecomb.core.SCBEngine$1.afterRegistryInstance(SCBEngine.java:243)</code></p>"},{"location":"general-development/shutdown.html","title":"\u4f18\u96c5\u505c\u673a","text":"<p>ServiceComb\u662f\u901a\u8fc7JDK\u7684ShutdownHook\u6765\u5b8c\u6210\u4f18\u96c5\u505c\u673a\u7684\u3002</p>"},{"location":"general-development/shutdown.html#_2","title":"\u4f7f\u7528\u573a\u666f","text":"<p>\u4f18\u96c5\u505c\u673a\u53ef\u4ee5\u89e3\u51b3\u4ee5\u4e0b\u573a\u666f\uff1a * KILL PID * \u5e94\u7528\u610f\u5916\u81ea\u52a8\u9000\u51fa\uff08System.exit(n)\uff09</p> <p>\u4f18\u96c5\u505c\u673a\u89e3\u51b3\u4e0d\u4e86\u4ee5\u4e0b\u573a\u666f\uff1a * KILL -9 PID \u6216 taskkill /f /pid</p>"},{"location":"general-development/shutdown.html#_3","title":"\u6548\u679c","text":"<p>\u89e6\u53d1\u4f18\u96c5\u505c\u673a\u65f6\uff1a * \u670d\u52a1\u63d0\u4f9b\u8005\uff1a   * \u6807\u8bb0\u5f53\u524d\u670d\u52a1\u72b6\u6001\u4e3aSTOPPING\uff0c\u4e0d\u63a5\u53d7\u65b0\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u65b0\u7684\u5ba2\u6237\u7aef\u8bbf\u95ee\u8bf7\u6c42\u4f1a\u5728\u5ba2\u6237\u7aef\u76f4\u63a5\u62a5\u9519\uff0c\u5ba2\u6237\u7aef\u914d\u5408\u91cd\u8bd5\u673a\u5236\u53ef\u91cd\u8bd5\u5176\u4ed6\u5b9e\u4f8b\uff1b   * \u7b49\u5f85\u5f53\u524d\u5df2\u8fd0\u884c\u7ebf\u7a0b\u6267\u884c\u5b8c\u6bd5\uff0c\u5982\u679c\u8bbe\u7f6e\u4e86provider\u7aef\u8d85\u65f6\uff0c\u8d85\u65f6\u5219\u5f3a\u5236\u5173\u95ed\uff1b * \u670d\u52a1\u6d88\u8d39\u8005\uff1a   * \u6807\u8bb0\u5f53\u524d\u670d\u52a1\u72b6\u6001\u4e3aSTOPPING\uff0c\u76f4\u63a5\u62d2\u7edd\u65b0\u7684\u8c03\u7528\u8bf7\u6c42\uff1b   * \u7b49\u5f85\u5f53\u524d\u5df2\u53d1\u9001\u8bf7\u6c42\u7684\u54cd\u5e94\uff0c\u5982\u679c\u8d85\u8fc7\u5ba2\u6237\u7aef\u63a5\u6536\u54cd\u5e94\u7684\u8d85\u65f6\u65f6\u95f4\uff08\u9ed8\u8ba430\u79d2\uff09\uff0c\u5219\u5f3a\u5236\u5173\u95ed\uff1b</p>"},{"location":"general-development/shutdown.html#_4","title":"\u539f\u7406","text":"<p>\u89e6\u53d1\u4f18\u96c5\u505c\u673a\u65f6\uff0c\u4f1a\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u7ed9\u6240\u6709listener\u4e0b\u53d1BEFORE_CLOSE\u4e8b\u4ef6\uff0c\u901a\u77e5listener\u5904\u7406\u5bf9\u5e94\u4e8b\u4ef6\uff1b 2. \u5c06\u5f53\u524d\u670d\u52a1\u72b6\u6001\u6807\u8bb0\u4e3aSTOPPING\uff1b 3. \u4ece\u670d\u52a1\u4e2d\u5fc3\u6ce8\u9500\u5f53\u524d\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u5e76\u5173\u95edregistry\u5bf9\u5e94vertx\uff1b 4. \u7b49\u5f85\u6240\u6709\u5f53\u524d\u5df2\u5b58\u5728invocation\u8c03\u7528\u5b8c\u6210\uff1b 5. \u5173\u95edconfig-center\u548ctransport\u5bf9\u5e94vertx\uff1b 6. \u7ed9\u6240\u6709listener\u4e0b\u53d1AFTER_CLOSE\u4e8b\u4ef6\uff0c\u901a\u77e5listener\u5904\u7406\u5bf9\u5e94\u4e8b\u4ef6\uff1b 7. \u5c06\u5f53\u524d\u670d\u52a1\u72b6\u6001\u6807\u8bb0\u4e3aDOWN\uff1b\u4f18\u96c5\u505c\u673a\u7ed3\u675f\uff1b</p>"},{"location":"general-development/thread-model.html","title":"\u7ebf\u7a0b\u6a21\u578b","text":""},{"location":"general-development/thread-model.html#_2","title":"\u6982\u5ff5\u9610\u8ff0","text":"<p>\u672c\u5c0f\u8282\u4e3b\u8981\u4ecb\u7ecdserviceComb\u5fae\u670d\u52a1\u7684\u5b8c\u6574\u7ebf\u7a0b\u6a21\u578b  </p>"},{"location":"general-development/thread-model.html#_3","title":"\u540c\u6b65\u6a21\u5f0f\u4e0b\u7684\u7ebf\u7a0b\u6a21\u578b","text":""},{"location":"general-development/thread-model.html#reactive","title":"reactive\u6a21\u5f0f\u4e0b\u7684\u7ebf\u7a0b\u6a21\u578b","text":"<p>\u7ebf\u7a0b\u76f8\u5173\u914d\u7f6e\uff1a  </p> <ul> <li>REST over Vertx</li> <li>Highway</li> <li>\u540c\u6b65\u6a21\u5f0f\u4e0b\u670d\u52a1\u7aef\u4e1a\u52a1\u7ebf\u7a0b\u6c60</li> </ul>"},{"location":"general-development/upload-download.html","title":"\u6587\u4ef6\u4e0a\u4f20\u4e0b\u8f7d","text":"<p>\u901a\u8fc7\u6d4f\u89c8\u5668\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff0c\u662f\u975e\u5e38\u666e\u904d\u7684\u5e94\u7528\u573a\u666f\u3002java-chassis\u57fa\u4e8eREST\u63d0\u4f9b\u4e86\u4e0a\u4f20\u4e0b\u8f7d\u529f\u80fd\uff1a</p> <ul> <li>\u5728\u5b9a\u4e49\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u65f6\u5019\uff0c\u53ea\u5141\u8bb8\u91c7\u7528Spring MVC \u6216\u8005 Jax RS\u6a21\u5f0f\u3002 \u5f00\u53d1\u670d\u52a1\u6d88\u8d39\u8005\u4e0d\u53d7\u9650\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528\u900f\u660eRPC\u6216\u8005RestTemplate\u3002</li> <li>\u5728\u5b9a\u4e49\u901a\u4fe1\u6a21\u578b\u7684\u65f6\u5019\uff0c\u53ea\u5141\u8bb8\u4f7f\u7528REST over Vert.x \u6216\u8005 REST over Servlet\uff0c\u4e0d\u80fd\u591f\u4f7f\u7528HIGHWAY\u534f\u8bae\u3002</li> <li>\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\u529f\u80fd\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\u3002\u9700\u8981\u914d\u7f6eservicecomb.uploads.directory\u542f\u7528\uff0c\u5982\u679c\u901a\u8fc7\u8fb9\u7f18\u670d\u52a1(Edge Service)\u8f6c\u53d1\u8bf7\u6c42\uff0c\u8fb9\u7f18\u670d\u52a1\u4e5f\u9700\u8981\u8fd9\u4e2a\u914d\u7f6e\u9879\u3002</li> <li>\u901a\u8fc7HTTP FORM\u7684\u65b9\u5f0f\u4e0a\u4f20\u6587\u4ef6\uff08\u4e00\u822c\u91c7\u7528POST\uff09\uff1b\u901a\u8fc7GET\u4e0b\u8f7d\u6587\u4ef6\u3002</li> </ul> <p>\u672c\u7ae0\u8282\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a</p> <ul> <li>\u6587\u4ef6\u4e0a\u4f20\u5f00\u53d1\u6307\u5bfc</li> <li>\u6587\u4ef6\u4e0b\u8f7d\u5f00\u53d1\u6307\u5bfc</li> </ul> <p>\u6ce8\u610f: \u6587\u4ef6\u4e0a\u4f20\u4e0b\u8f7d\u4e0d\u652f\u6301\u65ad\u70b9\u7eed\u4f20\u7279\u6027\uff0c\u5982\u679c\u4e0a\u4f20\u4e0b\u8f7d\u5927\u6587\u4ef6\uff0c\u9700\u8981\u6ce8\u610f\u4e0a\u4f20\u4e0b\u8f7d\u65f6\u95f4\u9650\u5236\uff0c\u8d85\u65f6\u4f1a\u5bfc\u81f4\u6587\u4ef6\u4e0a\u4f20\u4e0b\u8f7d\u5931\u8d25\u3002</p>"},{"location":"general-development/using-inspector.html","title":"\u4f7f\u7528 inspector \u6a21\u5757\u67e5\u770b\u5951\u7ea6","text":"<p>inspector \u63d0\u4f9b\u4e86\u7528\u6237\u67e5\u770b\u3001\u4e0b\u8f7d\u5951\u7ea6\uff0c\u751f\u6210\u6587\u6863\u548c\u5bf9API\u63a5\u53e3\u8fdb\u884c\u6d4b\u8bd5\u7684\u529f\u80fd\u3002\u8fd9\u4e2a\u529f\u80fd\u76f4\u63a5\u5728\u5fae\u670d\u52a1\u63d0\u4f9b\uff0c\u7528\u4e8e\u5f25\u8865\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u67e5\u770b\u5951\u7ea6\u548c\u5bf9\u63a5\u53e3\u8fdb\u884c\u6d4b\u8bd5\u7684\u4e0d\u8db3\u3002inspector\u529f\u80fd\u540e\u7eed\u4f1a\u505a\u8fdb\u4e00\u6b65\u589e\u5f3a\uff0c\u9664\u4e86\u7ba1\u7406\u5951\u7ea6\uff0c\u8fd8\u53ef\u4ee5\u89c2\u5bdf\u5fae\u670d\u52a1\u7684\u5185\u90e8\u72b6\u6001\uff0c\u5e2e\u52a9\u5b9a\u4f4d\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002</p>"},{"location":"general-development/using-inspector.html#inspector_1","title":"\u542f\u7528inspector","text":"<p>\u5728\u9879\u76ee\u4e2d\u542f\u7528inspector\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728pom\u4e2d\u589e\u52a0\u5982\u4e0b\u4f9d\u8d56\u5373\u53ef\u3002 </p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;inspector&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>\u5982\u679c\u9879\u76ee\u4e2d\u4f9d\u8d56\u4e86 solution-basic , \u8fd9\u4e2a\u6a21\u5757\u4f1a\u81ea\u52a8\u5305\u542b\u8fdb\u6765\u3002</p> <p>\u5f15\u5165\u4f9d\u7136\u540e\u542f\u52a8\u5fae\u670d\u52a1\u5373\u53ef\u4f7f\u7528\u76f8\u5173\u5951\u7ea6\u7ba1\u7406\u529f\u80fd\u3002\u4e0b\u9762\u5047\u8bbe\u5fae\u670d\u52a1\u76d1\u542c\u7684\u7aef\u53e3\u4e3a8080\u3002</p>"},{"location":"general-development/using-inspector.html#inspector_2","title":"\u4f7f\u7528inspector\u529f\u80fd","text":"<p>inspector\u63d0\u4f9b\u4e86\u7ba1\u7406\u754c\u9762\uff0c\u96c6\u6210\u4e86swagger\u7f16\u8f91\u5668\u3002\u8f93\u5165 http://localhost:8080/inspector/index.html \u540e\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762\u3002</p> <p>SWAGER\u7f16\u8f91\u754c\u9762</p> <p></p> <p>\u5728SWAGGER\u7f16\u8f91\u754c\u9762\uff0c\u53ef\u4ee5\u5bf9\u63a5\u53e3\u8fdb\u884c\u6d4b\u8bd5\u3002</p> <p>HTML\u754c\u9762</p> <p></p> <p>HTML\u9875\u9762\u63d0\u4f9b\u4e86\u66f4\u5bb9\u6613\u8bfb\u5199\u7684\u683c\u5f0f\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u67e5\u770b\u63a5\u53e3\u8bf4\u660e\u3002</p> <p>\u8f93\u5165 http://localhost:8080/inspector/schemas \u53ef\u4ee5\u67e5\u8be2\u6240\u6709\u7684schema\u5217\u8868</p> <pre><code>[\"goodsRepositoryApi\",\"goodsService\",\"onlineMallApi\",\"stockApi\",\"goodsCategoryApi\",\"goodsPriceApi\"]\n</code></pre> <p>\u8f93\u5165 <code>http://localhost:8080/inspector/download/schemas?format=HTML</code> \u53ef\u4ee5\u4e0b\u8f7d\u6587\u6863\u3002format\u652f\u6301HTML\u548cSWAGGER\u4e24\u79cd\u683c\u5f0f\u3002\u8fd9\u4e2a\u63a5\u53e3\u4f1a\u4e0b\u8f7d\u6240\u6709\u5951\u7ea6\u6587\u4ef6\uff0c\u6253\u5305\u4e3azip\u683c\u5f0f\u3002</p> <p>\u8f93\u5165 <code>http://localhost:8080/inspector/schemas/goodsService?download=false&amp;format=HTML</code> \u53ef\u4ee5\u67e5\u770b\u3001\u4e0b\u8f7d\u5355\u4e2a\u5951\u7ea6\u6587\u4ef6\u3002</p>"},{"location":"general-development/using-inspector.html#inspector_3","title":"\u4fdd\u62a4 inspector \u63a5\u53e3\u7684\u8bbf\u95ee\u63a7\u5236","text":"<p>\u8be5\u529f\u80fd\u88ab\u8bbe\u8ba1\u4e3a\u8f85\u52a9\u5f00\u53d1\u3001\u8bbe\u8ba1\u3001\u8fd0\u7ef4\uff0c\u7b2c\u4e00\u6b21\u8bbf\u95ee\u7684\u65f6\u5019\u52a0\u8f7d\u5f88\u6162\uff0c\u4e0d\u5efa\u8bae\u5f00\u653e\u7ed9\u6700\u7ec8\u7528\u6237\u5927\u89c4\u6a21\u5e76\u53d1\u8bbf\u95ee\u4f7f\u7528\u3002 \u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u5e26\u5165 \u8fd9\u4e2a\u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u5fc5\u8981\u7684\u9694\u79bb\u63aa\u65bd\u548c\u8bbf\u95ee\u63a7\u5236\uff0c\u9650\u5236\u6700\u7ec8\u7528\u6237\u5bf9\u4e8e\u8fd9\u4e2a\u63a5\u53e3\u7684\u8bbf\u95ee\u3002</p> <p>\u53ef\u4ee5\u4f7f\u7528 java-chassis \u63d0\u4f9b\u7684\u7ebf\u7a0b\u6c60\u9694\u79bb\u529f\u80fd\uff0c \u5c06\u8fd9\u4e2a\u670d\u52a1\u653e\u5230\u72ec\u7acb\u7684\u7ebf\u7a0b\u6c60\uff0c\u907f\u514d\u5bf9\u5176\u4ed6\u670d\u52a1\u7684\u8bbf\u95ee\u4ea7\u751f\u5f71\u54cd\u3002\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u5305\u62ec\uff0c</p> <p>\u5b9a\u4e49\u7ebf\u7a0b\u6c60\uff1a</p> <pre><code>  &lt;bean id=\"servicecomb.samples.executor.groupThreadPool\" class=\"org.apache.servicecomb.core.executor.GroupExecutor\"\n    init-method=\"init\"/&gt;\n</code></pre> <p>\u542f\u7528\u7ebf\u7a0b\u6c60:</p> <pre><code>servicecomb:\n  executors:\n   Provider:\n     inspector: servicecomb.samples.executor.groupThreadPool\n</code></pre>"},{"location":"question-and-answer/faq.html","title":"\u5e38\u89c1\u95ee\u9898","text":"<ul> <li>Q: \u5951\u7ea6\u751f\u6210\u4f1a\u62a5\u9519 Caused by: java.lang.Error: OperationId must be unique\uff0c\u4e0d\u652f\u6301\u51fd\u6570\u91cd\u8f7d\uff1f </li> <li>Q: Map\u7c7b\u578b\u7684key\u5fc5\u987b\u4f7f\u7528 String \u7c7b\u578b\uff1f </li> <li>Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u63a5\u53e3\uff1f</li> <li>Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u6cdb\u578b\uff1f</li> <li>Q: \u5b9e\u73b0\u7c7b\u4e2d public \u65b9\u6cd5\u5168\u90e8\u88ab\u53d1\u5e03\u4e3a\u63a5\u53e3\uff0c\u5982\u4f55\u6392\u9664\uff1f</li> <li>Q: \u5982\u4f55\u81ea\u5b9a\u4e49\u67d0\u4e2aJava\u65b9\u6cd5\u5bf9\u5e94\u7684REST\u63a5\u53e3\u91cc\u7684HTTP Status Code\uff1f</li> </ul>"},{"location":"question-and-answer/faq.html#Q2","title":"Q: \u5951\u7ea6\u751f\u6210\u4f1a\u62a5\u9519 Caused by: java.lang.Error: OperationId must be unique\uff0c\u4e0d\u652f\u6301\u51fd\u6570\u91cd\u8f7d\uff1f","text":"<ul> <li>A: \u652f\u6301\u51fd\u6570\u91cd\u8f7d\uff0c\u4f46\u662f\u9700\u8981\u6ce8\u610f\u6bcf\u4e2a\u63a5\u53e3\u5fc5\u987b\u6709\u552f\u4e00\u7684operation id\u3002\u53ef\u4ee5\u52a0\u4e0a<code>@ApiOperation</code>\u6807\u7b7e\u7ed9\u91cd\u8f7d\u7684\u63a5\u53e3\u6307\u5b9a\u552f\u4e00   \u7684 operation id (\u5bf9\u5e94\u4e8e nickname \u5c5e\u6027\uff09\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a</li> </ul> <pre><code>  @Path(\"/sayHi\")\n  @GET\n  @Produces(\"text/plain;charset=UTF-8\")\n  @ApiOperation(value = \"\", nickname = \"sayHi\")\n  public String sayHello() {\n    return \"ApiOperationJaxrsSchema#sayHello\";\n  }\n\n  @Path(\"/sayHello\")\n  @GET\n  @Produces(\"application/json;charset=UTF-8\")\n  @ApiOperation(value = \"\", nickname = \"sayHello\")\n  public String sayHello(@ApiParam(\"name\") String name) {\n    return name;\n  }\n</code></pre>"},{"location":"question-and-answer/faq.html#Q3","title":"Q: Map\u7c7b\u578b\u7684 key \u5fc5\u987b\u4f7f\u7528 String \u7c7b\u578b\uff1f","text":"<ul> <li>A: \u662f\u7684\u3002java-chassis \u9075\u5faa Open API \u89c4\u8303, MAP   \u7c7b\u578b\u7684 key \u5fc5\u987b\u4f7f\u7528 String \u7c7b\u578b\u3002 \u4e1a\u52a1\u53ef\u4ee5\u7ed3\u5408\u5b9e\u9645\u60c5\u51b5\uff0c\u4f7f\u7528\u7b26\u5408\u89c4\u8303\u7684\u7c7b\u578b\u3002 \u5982\u679c\u5fc5\u987b\u4f7f\u7528\u5176\u4ed6\u7c7b\u578b\uff0c   \u53ef\u4ee5\u8003\u8651\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528 Object \u89c4\u907f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u5bf9\u8fd4\u56de\u503c\u7ed3\u679c\u81ea\u884c\u8fdb\u884c json \u8f6c\u6362\u3002</li> </ul>"},{"location":"question-and-answer/faq.html#Q4","title":"Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u63a5\u53e3\uff1f","text":"<ul> <li>A: \u662f\u7684\u3002java-chassis \u4e0d\u5141\u8bb8\u53c2\u6570\u3001\u8fd4\u56de\u503c\u7684\u7c7b\u578b\u4e3a <code>Interface</code> \u6216\u8005 <code>Abstract Class</code>\u3002\u56e0\u4e3a\u8fd9\u4e9b\u7c7b\u578b   \u65e0\u6cd5\u6b63\u786e\u7684\u751f\u6210 swagger \u63cf\u8ff0\u3002\u5982\u679c\u5fc5\u987b\u4f7f\u7528\u8fd9\u4e9b\u7c7b\u578b\uff0c\u53ef\u4ee5\u8003\u8651\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528 Object \u89c4\u907f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u5bf9\u8fd4\u56de\u503c\u7ed3\u679c   \u81ea\u884c\u8fdb\u884c json \u8f6c\u6362\u3002</li> </ul>"},{"location":"question-and-answer/faq.html#Q5","title":"Q: \u53c2\u6570\u8fd4\u56de\u503c\u4e0d\u80fd\u4f7f\u7528\u6cdb\u578b\uff1f","text":"<ul> <li>A: \u53ef\u4ee5\u4f7f\u7528\u6cdb\u578b\u3002\u4f46\u662f\u5fc5\u987b\u660e\u786e\u6cdb\u578b\u7c7b\u578b\u3002\u6bd4\u5982\uff1a</li> </ul> <pre><code>  @PostMapping(path = \"holderUser\")\n  public Holder&lt;User&gt; holderUser(@RequestBody Holder&lt;User&gt; input) {\n    Assert.isInstanceOf(Holder.class, input);\n    Assert.isInstanceOf(User.class, input.value);\n    return input;\n  }\n\n  @GetMapping(path = \"/genericParams\")\n  @ApiOperation(value = \"genericParams\", nickname = \"genericParams\")\n  public List&lt;List&lt;String&gt;&gt; genericParams(@RequestParam(\"code\") int code, @RequestBody List&lt;List&lt;String&gt;&gt; names) {\n    return names;\n  }\n</code></pre> <p>\u672a\u6307\u5b9a\u6cdb\u578b\u7c7b\u578b\u662f\u4e0d\u5141\u8bb8\u7684\u3002\u6bd4\u5982\uff1a</p> <pre><code>  @GetMapping(path = \"/genericParams\")\n  @ApiOperation(value = \"genericParams\", nickname = \"genericParams\")\n  public List genericParams(@RequestParam(\"code\") int code, @RequestBody List names) {\n    return names;\n  }\n</code></pre> <p>\u5982\u679c\u4e1a\u52a1\u5fc5\u987b\u4f7f\u7528\u6cdb\u578b\uff0c\u5e76\u4e14\u4e0d\u80fd\u786e\u5b9a\u7c7b\u578b\uff0c\u53ef\u4ee5\u8003\u8651\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528 Object \u89c4\u907f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u5bf9\u8fd4\u56de\u503c\u7ed3\u679c \u81ea\u884c\u8fdb\u884c json \u8f6c\u6362\u3002</p>"},{"location":"question-and-answer/faq.html#Q6","title":"Q: \u5b9e\u73b0\u7c7b\u4e2d public \u65b9\u6cd5\u5168\u90e8\u88ab\u53d1\u5e03\u4e3a\u63a5\u53e3\uff0c\u5982\u4f55\u6392\u9664\uff1f","text":"<ul> <li>A: java chassis \u4f1a\u5c06\u6240\u6709 public \u65b9\u6cd5\u53d1\u5e03\u4e3a\u63a5\u53e3\u3002 \u5982\u679c\u6709\u4e9b\u63a5\u53e3\u4e0d\u9700\u8981\u53d1\u5e03\u4e3a\u63a5\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528 @ApiOperation   \u6807\u7b7e\u58f0\u660e\u4e0d\u53d1\u5e03\u4e3a\u63a5\u53e3\u3002\u4f8b\u5b50\u5982\u4e0b\uff1a</li> </ul> <pre><code>  @ApiOperation(value = \"\", hidden = true)\n  public void hidden() {\n\n  }\n</code></pre> <p>\u5728\u8fc1\u79fb\u6539\u9020\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bd4\u5982\u5c06 HSF \u548c Dubbo \u7684\u5185\u90e8 RPC \u63a5\u53e3\u6539\u9020\u4e3a java-chassis \u7684 RPC \u63a5\u53e3\uff0c\u53ef\u80fd\u8fd8\u6709\u66f4\u52a0\u590d\u6742 \u7684\u60c5\u51b5\uff0c\u6bd4\u5982\uff1a</p> <pre><code>@HSFProvider(MyInterface.class)\npublic MyService extends AbstractMyService implements MyInterface\n</code></pre> <p>\u5982\u679c\u76f4\u63a5\u6539\u9020\u4e3a</p> <pre><code>@RpcSchema(schemaId = \"MyService\")\npublic MyService extends AbstractMyService implements MyInterface\n</code></pre> <p>\u90a3\u4e48 <code>AbstractMyService</code> \u7684\u516c\u5171\u65b9\u6cd5\u4e5f\u4f1a\u53d1\u5e03\u4e3a RPC \u63a5\u53e3\uff0c \u800c HSF \u548c dubbo \u5219\u4e0d\u4f1a\u3002 \u8fd9\u79cd\u60c5\u51b5\u5efa\u8bae\u589e\u52a0 \u4e00\u4e2a\u7c7b\uff0c\u800c\u5c06\u539f\u6765\u7684\u63a5\u53e3\u58f0\u660e\u4e3a\u670d\u52a1\u7c7b\u6765\u5904\u7406\uff0c \u6bd4\u5982\uff1a</p> <pre><code>@Service(\"MyService\")\npublic MyService extends AbstractMyService implements MyInterface\n\n@RpcSchema(schemaId = \"MyServiceImpl\")\npublic MyServiceImpl implements MyInterface {\n    @Autowired\n    @Qualifier(\"MyService\")\n    MyInterface service;\n\n    public String hello(String name) {\n       return service.hello(name);\n    }\n}\n</code></pre>"},{"location":"question-and-answer/faq.html#Q7","title":"Q: \u5982\u4f55\u81ea\u5b9a\u4e49\u67d0\u4e2aJava\u65b9\u6cd5\u5bf9\u5e94\u7684REST\u63a5\u53e3\u91cc\u7684HTTP Status Code\uff1f","text":"<ul> <li>A:  \u5bf9\u4e8e 2xx \u7684\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7 @ApiResponse \u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a</li> </ul> <pre><code>@ApiResponse(code = 201, response = Integer.class, message = \"\")\npublic int test(int x) {\n  return 100;\n}\n</code></pre> <p>\u5bf9\u4e8e\u5176\u4ed6\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7\u629b\u51fa\u81ea\u5b9a\u4e49\u7684 InvocationException \u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a</p> <pre><code>@Path(\"/errorCode\")\n@POST\n@ApiResponses({\n  @ApiResponse(code = 200, response = MultiResponse200.class, message = \"\"),\n  @ApiResponse(code = 400, response = MultiResponse400.class, message = \"\"),\n  @ApiResponse(code = 500, response = MultiResponse500.class, message = \"\")})\npublic MultiResponse200 errorCode(MultiRequest request) {\n    if (request.getCode() == 400) {\n      MultiResponse400 r = new MultiResponse400();\n      r.setCode(400);\n      r.setMessage(\"bad request\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.BAD_REQUEST, r);\n    } else if (request.getCode() == 500) {\n      MultiResponse500 r = new MultiResponse500();\n      r.setCode(500);\n      r.setMessage(\"internal error\");\n      throw new InvocationException(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR, r);\n    } else {\n      MultiResponse200 r = new MultiResponse200();\n      r.setCode(200);\n      r.setMessage(\"success result\");\n      return r;\n    }\n}\n</code></pre> <ul> <li> <p>Q: \u5982\u4f55\u5b9a\u5236\u81ea\u5df1\u5fae\u670d\u52a1\u7684\u65e5\u5fd7\u914d\u7f6e?</p> <ul> <li>A: ServiceComb\u4e0d\u7ed1\u5b9a\u65e5\u5fd7\u5668\uff0c\u53ea\u662f\u4f7f\u7528\u4e86slf4j\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u9009\u62e9log4j/log4j2/logback\u7b49\u7b49\u3002ServiceComb\u63d0\u4f9b\u4e86\u4e00\u4e2alog4j\u7684\u6269\u5c55\uff0c\u5728\u6807\u51c6log4j\u7684\u57fa\u7840\u4e0a\uff0c\u652f\u6301log4j\u7684properties\u6587\u4ef6\u7684\u589e\u91cf\u914d\u7f6e\u3002<ul> <li>\u9ed8\u8ba4\u4ee5\u89c4\u5219\uff1a\"classpath*:config/log4j.properties\"\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6</li> <li>\u5b9e\u9645\u4f1a\u641c\u7d22\u51faclasspath\u4e2d\u6240\u6709\u7684<code>config/log4j.properties\u548cconfig/log4j.*.properties</code>, \u4ece\u641c\u7d22\u51fa\u7684\u6587\u4ef6\u4e2d\u5207\u51fa<code>\\*</code>\u7684\u90e8\u5206\uff0c\u8fdb\u884calpha\u6392\u5e8f\uff0c\u7136\u540e\u6309\u987a\u5e8f\u52a0\u8f7d\uff0c\u6700\u540e\u5408\u6210\u7684\u6587\u4ef6\u4f5c\u4e3alog4j\u7684\u914d\u7f6e\u6587\u4ef6\u3002</li> <li>\u5982\u679c\u8981\u4f7f\u7528ServiceComb\u7684log4j\u6269\u5c55\uff0c\u5219\u9700\u8981\u8c03\u7528Log4jUtils.init\uff0c\u5426\u5219\u5b8c\u5168\u6309\u6807\u51c6\u7684\u65e5\u5fd7\u5668\u7684\u89c4\u5219\u4f7f\u7528\u3002</li> </ul> </li> </ul> </li> <li> <p>Q: \u5f53\u670d\u52a1\u914d\u7f6e\u4e86\u591a\u4e2atransport\u7684\u65f6\u5019\uff0c\u5728\u8fd0\u884c\u65f6\u662f\u600e\u4e48\u9009\u62e9\u4f7f\u7528\u54ea\u4e2atransport\u7684\uff1f</p> <ul> <li> <p>A: ServiceComb\u7684consumer\u3001transport\u3001handler\u3001producer\u4e4b\u95f4\u662f\u89e3\u8026\u7684\uff0c\u5404\u529f\u80fd\u4e4b\u95f4\u901a\u8fc7\u5951\u7ea6\u5b9a\u4e49\u8054\u5408\u5728\u4e00\u8d77\u5de5\u4f5c\u7684\uff0c\u5373\uff1a       consumer\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fspringmvc\u5f00\u53d1\u4e0e\u4f7f\u7528highway\uff0c\u8fd8\u662fRESTful\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u6ca1\u6709\u5173\u7cfb\u4e0eproducer\u662f\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fjaxrs\uff0c       \u6216\u8005\u662fspringmvc\u5f00\u53d1\uff0c\u4e5f\u6ca1\u6709\u5173\u7cfbhandler\u4e5f\u4e0d\u611f\u77e5\uff0c\u4e1a\u52a1\u5f00\u53d1\u65b9\u5f0f\u4ee5\u53ca\u4f20\u8f93\u65b9\u5f0f\u3002consumer\u8bbf\u95eeproducer\uff0c\u5728\u8fd0\u884c\u65f6\u7684transport\u9009\u62e9\u4e0a\uff0c       \u603b\u89c4\u5219\u4e3a\uff1acnsumer\u7684transport\u4e0eproducer\u7684endpoint\u53d6\u4ea4\u96c6\uff0c\u5982\u679c\u4ea4\u96c6\u540e\uff0c\u8fd8\u6709\u591a\u4e2atransport\u53ef\u9009\u62e9\uff0c\u5219\u8f6e\u6d41\u4f7f\u7528\uff0c\u5206\u89e3\u5f00\u6765\uff0c\u5b58\u5728\u4ee5\u4e0b\u573a\u666f\uff1a</p> <ul> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u540c\u65f6\u5f00\u653e\u4e86highway\u4ee5\u53caRESTful\u7684endpoint</p> <ul> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684highway endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684RESTful endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\uff0c\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u4f1a\u8f6e\u6d41\u8bbf\u95eeproducer\u7684highway\u3001RESTful endpoint</li> </ul> </li> <li> <p>\u5982\u679cconsumer\u60f3\u56fa\u5b9a\u4f7f\u7528\u67d0\u4e2atransport\u8bbf\u95eeproducer\uff0c\u53ef\u4ee5\u5728consumer\u8fdb\u7a0b\u7684microservice.yaml\u4e2d\u914d\u7f6e\uff0c\u6307\u5b9atransport\u7684\u540d\u79f0:</p> <pre><code>servicecomb:\n    references:\n        &lt;service_name&gt;:\n            transport: highway\n</code></pre> </li> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86highway\u7684endpoint</p> <ul> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528highway\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528highway\u8bbf\u95ee</li> </ul> </li> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86RESTful\u7684endpoint</p> <ul> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> </ul> </li> </ul> </li> </ul> </li> <li> <p>Q: ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\u670d\u52a1\u8c03\u7528\u662f\u5426\u4f7f\u7528\u957f\u8fde\u63a5?</p> <ul> <li>A: http\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u6709\u8d85\u65f6\u65f6\u95f4\uff09\uff0chighway\u65b9\u5f0f\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u4e00\u76f4\u4fdd\u6301\uff09\u3002</li> </ul> </li> <li> <p>Q: \u670d\u52a1\u65ad\u8fde\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\u4fe1\u606f\u662f\u5426\u81ea\u52a8\u5220\u9664</p> <ul> <li>A: \u670d\u52a1\u4e2d\u5fc3\u5fc3\u8df3\u68c0\u6d4b\u5230\u670d\u52a1\u5b9e\u4f8b\u4e0d\u53ef\u7528\uff0c\u53ea\u4f1a\u79fb\u9664\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f\uff0c\u670d\u52a1\u7684\u9759\u6001\u6570\u636e\u4e0d\u4f1a\u79fb\u9664\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u4f7f\u7528tomcat\u65b9\u5f0f\u96c6\u6210ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\uff0c\u5982\u4f55\u5b9e\u73b0\u670d\u52a1\u6ce8\u518c</p> <ul> <li>A: \u5982\u679c\u4f7f\u7528ServiceComb sdk servlet\u65b9\u5f0f\uff08\u4f7f\u7528transport-rest-servlet\u4f9d\u8d56\uff09\u5236\u4f5c\u4e3awar\u5305\u90e8\u7f72\u5230tomcat\uff0c\u9700\u8981\u4fdd\u8bc1\uff0c     \u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff08microservice.yaml\uff09\u4e2drest\u7aef\u53e3\u914d\u7f6e\u548c\u5916\u7f6e\u5bb9\u5668\u4e00\u81f4\u624d\u80fd\u5b9e\u73b0\u8be5\u670d\u52a1\u7684\u6b63\u786e\u6ce8\u518c\u3002\u5426\u5219\u65e0\u6cd5\u611f\u77e5tomcat\u5f00\u653e\u7aef\u53e3\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u4f7f\u7528tomcat\u65b9\u5f0f\u96c6\u6210ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\uff0c\u670d\u52a1\u6ce8\u518c\u7684\u65f6\u5019\u5982\u4f55\u5c06war\u5305\u90e8\u7f72\u7684\u4e0a\u4e0b\u6587\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3</p> <ul> <li>A: \u53d1\u5e03\u670d\u52a1\u63a5\u53e3\u7684\u65f6\u5019\u9700\u8981\u5c06war\u5305\u90e8\u7f72\u7684\u4e0a\u4e0b\u6587\uff08context\uff09\u653e\u5728baseurl\u6700\u524d\u9762\uff0c\u8fd9\u6837\u624d\u80fd\u4fdd\u8bc1\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u7684\u8def\u5f84\u662f\u5b8c\u6574\u7684\u8def\u5f84\uff08\u5305\u542b\u4e86\u4e0a\u4e0b\u6587\uff09\u3002\u793a\u4f8b\uff1a<pre><code>@path(/{context}/xxx)\nclass ServiceA\n</code></pre> </li> </ul> </li> <li> <p>Q:  ServiceComb\u5fae\u670d\u52a1\u6846\u67b6\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u591a\u4e2a\u5fae\u670d\u52a1\u95f4\u900f\u4f20</p> <ul> <li> <p>A: \u900f\u4f20\u6570\u636e\u585e\u5165\uff1a</p> <pre><code>CseHttpEntity&lt;xxxx.class&gt; httpEntity = new CseHttpEntity&lt;&gt;(xxx);\n//\u900f\u4f20\u5185\u5bb9\nhttpEntity.addContext(\"contextKey\",\"contextValue\");\nResponseEntity&lt;String&gt; responseEntity = RestTemplateBuilder.create()\n    .exchange(\"cse://springmvc/springmvchello/sayhello\",HttpMethod.POST,httpEntity,String.class);\n</code></pre> <p>\u900f\u4f20\u6570\u636e\u83b7\u53d6\uff1a</p> <pre><code>@Override\n@RequestMapping(path=\"/sayhello\",method = RequestMethod.POST)\npublic String sayHello(@RequestBody Person person,InvocationContext context){\n     //\u900f\u4f20\u6570\u636e\u83b7\u53d6\n     context.getContext();\n     return \"Hello person \" + person.getName();\n}\n</code></pre> </li> </ul> </li> <li> <p>Q:  ServiceComb body Model\u90e8\u5206\u66b4\u9732</p> <ul> <li>A: \u4e00\u4e2a\u63a5\u53e3\u5bf9\u5e94\u7684body\u5bf9\u8c61\u4e2d\uff0c\u53ef\u80fd\u6709\u4e00\u4e9b\u5c5e\u6027\u662f\u5185\u90e8\u7684\uff0c\u4e0d\u60f3\u5f00\u653e\u51fa\u53bb\uff0c\u751f\u6210schema\u7684\u65f6\u5019\u4e0d\u8981\u5e26\u51fa\u53bb\uff0c\u4f7f\u7528\uff1a<pre><code>@ApiModelProperty(hidden = true)\n</code></pre> </li> </ul> </li> <li> <p>Q:  \u670d\u52a1\u8d85\u65f6\u8bbe\u7f6e</p> <ul> <li>A: \u5728\u5fae\u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff08microservice.yaml\uff09\u4e2d\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a<pre><code>servicecomb:\n    request:\n        timeout: 30000\n</code></pre> </li> </ul> </li> <li> <p>Q:  URL \u5730\u5740\u5c31\u53ef\u4ee5\u552f\u4e00\u5b9a\u4f4d\uff0c\u4e3a\u4ec0\u4e48\u8981\u52a0\u4e0a\u4e00\u4e2aschema\uff1f</p> <ul> <li>A: <ol> <li>schema \u662f\u7528\u6765\u5339\u914d\u670d\u52a1\u5951\u7ea6\u7684\uff0c\u7528\u6765\u4fdd\u8bc1\u670d\u52a1\u7aef\u548c\u6d88\u8d39\u7aef\u5951\u7ea6\u517c\u5bb9\uff0c\u6bcf\u4e2a\u5951\u7ea6\u9700\u8981\u4e00\u4e2a\u552f\u4e00ID\uff0c\u5728\u670d\u52a1\u4e2d\u5fc3\u5b58\u50a8\u3002</li> <li>schema\u6620\u5c04\u5230java\u7684interface\u6982\u5ff5\uff0c\u5728consumer\u4f7f\u7528\u900f\u660erpc\u6a21\u5f0f\u5f00\u53d1\u65f6\uff0c\u53ef\u4ee5\u627e\u5230\u662f\u5fae\u670d\u52a1\u91cc\u7684\u54ea\u4e2aoperation\u3002schema\u4e4b\u95f4\u7684\u65b9\u6cd5\u540d\u662f\u6ca1\u6709\u552f\u4e00\u6027\u8981\u6c42\u7684\u3002</li> <li>operation qualified name\u662f\u6cbb\u7406\u7684key\uff0c\u800cURL \u56e0\u4e3apath\u53c2\u6570\u7684\u5b58\u5728\uff0c\u6ca1\u529e\u6cd5\u76f4\u63a5\u67e5\u627e\uff0c\u800cqualified name\u662f\u4e0d\u4f1a\u53d8\u7684\u3002\u6cbb\u7406\u662f\u4e0d\u533a\u5206\u4f20\u8f93\u7684\uff0c\u5982\u679c\u6cbb\u7406\u6309URL \u8d70\uff0c\u90a3\u4e48highway\u8c03\u8fdb\u6765\u65f6\uff0c\u8fd8\u5f97\u6839\u636e\u53c2\u6570\u53cd\u5411\u6784\u9020\u51faurl\uff0c\u518d\u6765\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\uff0c\u592a\u6298\u817e\u4e86\u3002</li> <li>http\u53ea\u662f\u4e00\u79cd\u4f20\u8f93\u901a\u9053\uff0c\u8fd8\u6709\u522b\u7684\u4f20\u8f93\u901a\u9053\u4e0d\u9700\u8981\u6620\u5c04\u5230URL\u7684\u3002</li> </ol> </li> </ul> </li> <li> <p>Q: rest\u5ba2\u6237\u7aef\u8c03\u7528\u7684\u65f6\u5019\uff0c\u5b9e\u9645\u4e0a\u53ea\u5e26\u4e0a\u4e86\u670d\u52a1\u540d\u548cURL\uff0c\u5e76\u4e0d\u9700\u8981\u6307\u5b9aschema id\u7684\uff0c \u800c\u5b9e\u9645\u4e0a\u6839\u636e\u8fd9\u4e2aURL\u4e5f\u80fd\u627e\u5230\u5177\u4f53\u5951\u7ea6\u7684\uff0c\u6240\u4ee5\u6307\u5b9aschema id\u4f5c\u7528\u4f55\u5728\uff1f</p> <ul> <li>A: \u7531\u4e8e\u900f\u660erpc\u662f\u63a5\u53e3\u5f0f\u8c03\u7528\uff0c\u5e76\u6ca1\u6709URL\uff0c\u5185\u90e8\u5b9e\u9645\u90fd\u5f52\u4e00\u5316\u5230operation\u6765\u63cf\u8ff0\u7684\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u7ed3\u5408schema id\u552f\u4e00\u5b9a\u4f4d\u5230\u5177\u4f53\u7684\u8bf7\u6c42\u5904\u7406\u4e2d\u3002</li> </ul> </li> <li> <p>Q:  Transport\u662f\u4e2a\u4ec0\u4e48\u6982\u5ff5\uff1f\u7528\u6765\u5e72\u4ec0\u4e48\u7684\uff1f</p> <ul> <li>A: transport\u8d1f\u8d23\u7f16\u89e3\u7801\uff0c\u4ee5\u53ca\u4f20\u8f93\u3002\u901a\u4fe1\u6a21\u578b\u6709rest\u548chighway\u4e24\u79cd\uff0chighway\u5bf9\u5e94\u7684\u662f\u79c1\u6709\u534f\u8bae\uff0c\u4f7f\u7528protobuf\u7f16\u7801\uff0crest\u7528\u7684\u662fjson\u3002highway\u548crest\u90fd\u662f\u57fa\u4e8evertx\u505a\u7684\uff0cvertx\u662f\u57fa\u4e8enetty\u7684\u3002</li> </ul> </li> <li> <p>Q:  ServiceComb\u548c\u670d\u52a1\u4e2d\u5fc3\u662f\u600e\u4e48\u4ea4\u4e92\u7684?</p> <ul> <li>A: \u8d70rest\uff0c\u4e3b\u8981\u8d1f\u8d23\u6ce8\u518c\uff0c\u53d6\u6570\u636e\u548c\u5fc3\u8df3\u7b49\uff1bwatch\u4e8b\u4ef6\u8d70websocket\uff0cwatch\u4e8b\u4ef6\u662f\u89c2\u5bdf\u670d\u52a1\u4e2d\u5fc3\u5b9e\u4f8b\u4fe1\u606f\u6709\u6ca1\u6709\u53d8\u66f4\u3002</li> </ul> </li> <li> <p>Q:  \u6709\u7c7b\u4f3cdubbo\u90a3\u79cd\u6cbb\u7406\u4e2d\u5fc3\u5417\uff1f</p> <ul> <li>A: bizkeeper\u662f\u4e00\u4e2ahandler\uff0c\u662f\u6cbb\u7406\u7684\u5176\u4e2d\u4e00\u4e2a\u5185\u5bb9\u3002\u6cbb\u7406\u53ef\u4ee5\u901a\u8fc7handler\u6269\u5c55\u3002</li> </ul> </li> <li> <p>Q: service path\u600e\u4e48\u7406\u89e3\uff1f</p> <ul> <li>A: \u6bcf\u4e2a\u5fae\u670d\u52a1\u6709\u4e00\u4e2aservicePathManager\uff0c\u6bcf\u4e00\u4e2aschema\u5c06\u81ea\u5df1\u7684path\u6ce8\u518c\u8fdb\u53bb\u3002</li> </ul> </li> <li> <p>Q:  \u6d4f\u89c8\u5668\u80fd\u76f4\u63a5\u8bbf\u95ee\u5fae\u670d\u52a1Endpoint\u5417\uff1f</p> <ul> <li>A: \u53ef\u4ee5\uff0crestful\u53d1\u5e03\u7684\u5fae\u670d\u52a1Endpoint\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u4f7f\u7528HTTP\u52a0service path\u8bbf\u95ee\u63d0\u4f9bget\u65b9\u6cd5\u7684\u670d\u52a1\uff0c\u5982\u679c\u662f\u8bbf\u95ee\u5176\u4ed6Http\u65b9\u6cd5\u63d0\u4f9b\u7684\u670d\u52a1\u5efa\u8bae\u5b89\u88c5\u4f7f\u7528Postman\u3002</li> </ul> </li> <li> <p>Q:  \u5951\u7ea6\u751f\u6210\u65f6\uff0c\u9700\u8981\u5f3a\u5236\u5e26\u4e0a\u7248\u672c\u53f7\u548c\u8bed\u8a00\u5417\uff1f</p> <ul> <li>A: \u5951\u7ea6\u662f\u5c5e\u4e8e\u5fae\u670d\u52a1\u7684\uff0c\u5fae\u670d\u52a1\u672c\u6765\u5c31\u6709\u7248\u672c\uff0c\u4f46\u8bed\u8a00\u662f\u4e0d\u5e94\u8be5\u5e26\u4e0a\u7248\u672c\u53f7\u7684\u3002\u5e94\u8be5\u5951\u7ea6\u8981\u6c42\u4e0e\u8bed\u8a00\u65e0\u5173\u3002\u5951\u7ea6\u201c\u6ca1\u6709\u7248\u672c\u201d\uff0c\u5951\u7ea6\u7684\u7248\u672c\u4f53\u73b0\u5728\u5fae\u670d\u52a1\u4e0a\uff0c\u5b9e\u4f8b\u80fd\u627e\u5230\u6240\u5c5e\u7684\u5fae\u670d\u52a1\u7684\u7248\u672c\uff0c\u5c31\u80fd\u627e\u5230\u4e00\u4e2a\u786e\u5b9a\u7684\u5951\u7ea6\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u540c\u65f6\u5f15\u5165\u4e86<code>transport-rest-servlet</code>\u548c<code>transport-rest-vertx</code>\u7684\u4f9d\u8d56\uff0c\u90a3\u4e48\u5b83\u600e\u4e48\u51b3\u5b9a\u91c7\u7528\u54ea\u4e00\u4e2a\uff1f</p> <ul> <li>A: \u5982\u679c\u7aef\u53e3\u6ca1\u88ab\u5360\u7528\uff0c\u5c31\u7528vertx\uff1b\u5982\u679c\u88ab\u5360\u7528\u4e86\uff0c\u5c31\u7528servlet\u3002</li> </ul> </li> <li> <p>Q:  qps\u6d41\u63a7\u8bbe\u8ba1\u65f6\u662f\u51fa\u4e8e\u4ec0\u4e48\u573a\u666f\u8003\u8651\u7684\uff1f</p> <ul> <li>A: \u9650\u6d41\u6709\u4e24\u4e2a\u4e3b\u8981\u4f5c\u7528\uff0c\u7b2c\u4e00\u901a\u8fc7\u7ed9\u4e0d\u540c\u7684\u6d88\u8d39\u8005\u9650\u6d41\u4fdd\u8bc1\u5bf9\u4e00\u4e9b\u91cd\u70b9\u670d\u52a1\u7684\u670d\u52a1\u6548\u679c\uff0c\u7b2c\u4e8c\u9632\u6b62\u96ea\u5d29\u6548\u5e94\u3002\u53ef\u6839\u636e\u670d\u52a1\u7684\u91cd\u8981\u6027\u6765\u51b3\u5b9a\u6c34\u7ba1\u7684\u7c97\u7ec6\uff0cServiceComb\u662f\u652f\u6301\u6d88\u8d39\u7aef\u9650\u6d41\u548c\u670d\u52a1\u7aef\u9650\u6d41\u4e24\u79cd\u9650\u6d41\u65b9\u5f0f\u7684\uff0c\u6d88\u8d39\u7aef\u9650\u6d41\u53ef\u4ee5\u505a\u5230\u6bd4\u8f83\u7cbe\u7ec6\u7684\u63a7\u5236\u3002</li> </ul> </li> <li> <p>Q: \u5982\u679c\u670d\u52a1\u7aef\u662f\u94fe\u5f0f\u8c03\u7528\uff0c\u5373\u7c7b\u4f3ca-&gt;b-&gt;c\uff0c\u90a3\u8bbe\u7f6e\u4e86qps \u6d41\u63a7\u4f1a\u4e0d\u4f1a\u9020\u6210\u6c34\u7ba1\u7c97\u7ec6\u4e0d\u5747\u7684\u4e8b\u60c5\uff1f</p> <ul> <li>A: \u4e00\u822c\u91c7\u53d6\u7684\u6a21\u5f0f\u662f\u5148\u6d4b\u91cf\u518d\u8bbe\u7f6e\u3002qps\u8bbe\u7f6e\u6700\u7ec8\u662f\u7ed3\u5408\u6574\u4f53\u4e1a\u52a1\u9700\u6c42\u6765\u8fdb\u884c\u8c03\u63a7\u7684\uff0c\u800c\u4e0d\u662f\u5c31\u5355\u4e2a\u8282\u70b9\u6765\u8fdb\u884c\u8bbe\u7f6e\u3002</li> </ul> </li> <li> <p>Q: \u5982\u4f55\u5728\u5951\u7ea6DTO\u4e2d\u5ffd\u7565\u4e2d\u6307\u5b9a\u7684\u5c5e\u6027\uff1f</p> <ul> <li>A: \u53ef\u4ee5\u4f7f\u7528@JsonIgnore\u6ce8\u89e3\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5c5e\u6027\uff0c \u4f8b\u5982:<pre><code>public class OutputForTest{\n    @JsonIgnore\n    private String outputId = null;\n    private String inputId = null;\n    ...\n }\n</code></pre> </li> </ul> </li> </ul>"},{"location":"question-and-answer/interface-compatibility.html","title":"\u5fae\u670d\u52a1\u63a5\u53e3\u517c\u5bb9\u5e38\u89c1\u95ee\u9898","text":"<p>\u5728\u8fdb\u884c\u5fae\u670d\u52a1\u6301\u7eed\u8fed\u4ee3\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u7531\u4e8e\u65b0\u7279\u6027\u4e0d\u505c\u7684\u52a0\u5165\uff0c\u4e00\u4e9b\u8fc7\u65f6\u7684\u7279\u6027\u4e0d\u505c\u7684\u4fee\u6539\uff0c\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u9762\u4e34\u5de8\u5927\u7684\u6311\u6218\uff0c\u7279\u522b\u662f\u5728\u5141\u8bb8\u591a\u7248\u672c\u5171\u5b58\uff08\u7070\u5ea6\u53d1\u5e03\uff09\u7684\u73af\u5883\u3002\u672c\u7ae0\u8282\u4e3b\u8981\u63cf\u8ff0\u63a5\u53e3\u517c\u5bb9\u7ba1\u7406\u7684\u4e00\u4e9b\u5b9e\u8df5\u5efa\u8bae\uff0c\u4ee5\u53ca\u5728\u4f7f\u7528ServiceComb\u8fc7\u7a0b\u4e2d\u78b0\u5230\u4e86\u517c\u5bb9\u6027\u95ee\u9898\u7684\u89e3\u51b3\u529e\u6cd5\u3002\u7531\u4e8e\u5fae\u670d\u52a1\u4e00\u822c\u90fd\u901a\u8fc7REST\u63a5\u53e3\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\uff0c\u6ca1\u6709\u7279\u6b8a\u8bf4\u660e\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u91cc\u7684\u63a5\u53e3\u90fd\u6307REST\u63a5\u53e3\u3002</p>"},{"location":"question-and-answer/interface-compatibility.html#_2","title":"\u4fdd\u8bc1\u63a5\u53e3\u517c\u5bb9\u7684\u5b9e\u8df5","text":"<p>\u4e3a\u4e86\u9632\u6b62\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\uff0c\u5f00\u53d1\u8005\u5728\u8fdb\u884c\u63a5\u53e3\u53d8\u66f4\uff08\u65b0\u589e\u3001\u4fee\u6539\u3001\u5220\u9664\u7b49\uff09\u7684\u65f6\u5019\uff0c\u5efa\u8bae\u9075\u5faa\u4e0b\u9762\u7684\u4e00\u4e9b\u539f\u5219\u3002</p> <ul> <li> <p>\u53ea\u589e\u52a0\u63a5\u53e3\uff0c\u4e0d\u4fee\u6539\u3001\u4e0d\u5220\u9664\u63a5\u53e3\u3002</p> </li> <li> <p>\u4f5c\u4e3aProvider\uff0c\u589e\u52a0\u63a5\u53e3\u7684\u65f6\u5019\uff0c\u76f8\u5e94\u7684\u5c06\u5fae\u670d\u52a1\u7248\u672c\u53f7\u9012\u589e\uff0c\u6bd4\u5982\u5c062.1.2\u4fee\u6539\u4e3a2.1.3\u3002\u7248\u672c\u53f7\u6309\u7167\u89c4\u8303\u4f7f\u7528x.y.z\u7684\u683c\u5f0f\uff0c\u53ea\u5305\u542b\u6570\u5b57\u4fbf\u4e8e\u7ba1\u7406\uff0c\u5efa\u8bae\u6bcf\u4f4d\u6570\u5b57\u4e0d\u5927\u4e8e125\u3002</p> </li> <li> <p>\u4f5c\u4e3aConsumer\uff0c\u4f7f\u7528Provider\u7684\u65b0\u63a5\u53e3\u65f6\u5019\uff0c\u6307\u5b9aProvider\u7684\u6700\u5c0f\u7248\u672c\u53f7\u3002\u6bd4\u5982\uff1a</p> </li> </ul> <pre><code>servicecomb:\n  references:\n    ProviderMicroserviceName:  # \u4fee\u6539\u4e3aProvide\u7684\u5fae\u670d\u52a1\u540d\u79f0\n      version-rule: 2.1.3+\n</code></pre> <p>\u5176\u4e2dserviceName\u4e3aProvider\u7684\u5fae\u670d\u52a1\u540d\u79f0\u3002</p> <ul> <li>\u5728\u670d\u52a1\u4e2d\u5fc3\uff0c\u5b9a\u671f\u6e05\u7406\u4e0d\u518d\u4f7f\u7528\u7684\u8001\u7248\u672c\u7684\u5fae\u670d\u52a1\u4fe1\u606f\u3002</li> </ul> <p>\u5982\u679c\u5fae\u670d\u52a1\u7684\u7248\u672c\u53f7\u6ca1\u6709\u53d8\u5316\uff0c\u5fae\u670d\u52a1\u542f\u52a8\u7684\u65f6\u5019\uff0c\u4e0d\u4f1a\u8986\u76d6\u670d\u52a1\u4e2d\u5fc3\u7684\u8001\u7248\u672c\u6570\u636e\uff0c\u4eceConsumer\u7684\u89d2\u5ea6\uff0c\u770b\u5230\u7684\u662f\u8001\u7248\u672c\u63a5\u53e3\u3002ServiceComb\u7f3a\u7701\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u51fa\u73b0\u63a5\u53e3\u53d8\u66f4\uff0c\u5e76\u4e14\u5fae\u670d\u52a1\u7248\u672c\u53f7\u6ca1\u6709\u4fee\u6539\uff0c\u542f\u52a8\u4f1a\u5931\u8d25\uff0c\u8fd9\u6837\u5c31\u5f3a\u5236\u8981\u6c42\u5f00\u53d1\u8005\u5fc5\u987b\u4fee\u6539\u7248\u672c\u53f7\uff0c\u907f\u514d\u5c06\u95ee\u9898\u9057\u6f0f\u5230\u751f\u4ea7\u73af\u8282\u3002\u5bf9\u4e8e\u65b0\u9879\u76ee\uff0c\u63a5\u53e3\u4fee\u6539\u548c\u8c03\u6574\u53ef\u80fd\u975e\u5e38\u9891\u7e41\uff0c\u5efa\u8bae\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\uff0c\u53ef\u4ee5\u4e0d\u7528\u4fee\u6539\u7248\u672c\u53f7\uff1a</p> <pre><code>service_description:\n  environment: development\n</code></pre> <p>\u8fd9\u4e2a\u914d\u7f6e\u9879\u4f7f\u5f97Provider\u5f00\u53d1\u7b80\u5355\u4e86\uff0c\u5982\u679cConsumer\u5df2\u7ecf\u542f\u52a8\uff0c\u5e76\u4e14\u5e0c\u671b\u8c03\u7528\u65b0\u7684\u63a5\u53e3\uff0c\u90a3\u4e48Consumer\u4ecd\u7136\u9700\u8981\u91cd\u542f\u3002</p>"},{"location":"question-and-answer/interface-compatibility.html#_3","title":"\u63a5\u53e3\u517c\u5bb9\u5e38\u89c1\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u529e\u6cd5","text":"<ul> <li>\u5f00\u53d1\u9636\u6bb5\uff0c\u7531\u4e8e\u5b58\u5728\u9891\u7e41\u7684\u63a5\u53e3\u4fee\u6539\uff0c\u53c8\u4e0d\u60f3\u9891\u7e41\u4fee\u6539\u7248\u672c\u53f7\uff0c\u5bb9\u6613\u672c\u5730\u548c\u670d\u52a1\u4e2d\u5fc3\u5951\u7ea6\u4e0d\u4e00\u81f4\uff0c\u4e14\u5951\u7ea6\u672a\u88ab\u5141\u8bb8\u66f4\u65b0\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u5bfc\u81f4\u8c03\u8bd5\u7684\u65f6\u5019\u63a5\u53e3\u8c03\u7528\u5931\u8d25\u7684\u60c5\u51b5\u3002</li> </ul> <p>\u63a8\u8350\u4f7f\u7528ServiceComb\u63d0\u4f9b\u4e86\u5fae\u670d\u52a1\u6309environment\u533a\u5206\u3001\u9694\u79bb\u7684\u80fd\u529b(\u5f53\u524d\u652f\u6301development\u548cproduction)\uff0c\u5141\u8bb8\u5904\u4e8edevelopment\u73af\u5883\u7684\u5fae\u670d\u52a1\u5728\u4e0d\u5347\u7ea7\u7248\u672c\u7684\u60c5\u51b5\u4e0b\uff0c\u4ec5\u9700\u91cd\u542f\u670d\u52a1\u5373\u53ef\u91cd\u65b0\u6ce8\u518c\u5951\u7ea6\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</p> <p>\u6240\u6709\u5fae\u670d\u52a1\u5728microservice.yaml\u4e2d\u589e\u5982\u4e0b\u914d\u7f6e\uff0c\u4e14\u9700\u8981\u5728Provider\u542f\u52a8\u540e\uff0c\u518d\u91cd\u542fConsumer(\u82e5\u8bf7\u6c42\u8d70edge\uff0c\u9700\u8981\u91cd\u542fedge\u670d\u52a1)\uff1a</p> <pre><code>service_description:\n  name: xxx-service\n  version: 0.0.1\n  environment: development\n</code></pre> <ul> <li>\u5f00\u53d1\u9636\u6bb5\uff0c\u7531\u4e8e\u5b58\u5728\u9891\u7e41\u7684\u63a5\u53e3\u4fee\u6539\uff0c\u4e5f\u4e0d\u4f1a\u6e05\u7406\u670d\u52a1\u4e2d\u5fc3\u7684\u6570\u636e\uff0c\u5bb9\u6613\u51fa\u73b0\u8c03\u8bd5\u7684\u65f6\u5019\u63a5\u53e3\u8c03\u7528\u5931\u8d25\u7684\u60c5\u51b5\u3002</li> </ul> <p>\u63a8\u8350\u4f7f\u7528\u534e\u4e3a\u516c\u6709\u4e91\u5728\u7ebf\u7684\u670d\u52a1\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u76f4\u63a5\u767b\u5f55\u4f7f\u7528\u5fae\u670d\u52a1\u5f15\u64ce\u63d0\u4f9b\u7684\u5fae\u670d\u52a1\u7ba1\u7406\u529f\u80fd\u5220\u9664\u5fae\u670d\u52a1\u6216\u5fae\u670d\u52a1\u5b9e\u4f8b\u3002\u5fae\u670d\u52a1\u5f15\u64ce\u4e5f\u63d0\u4f9b\u4e86\u672c\u5730\u8f7b\u91cf\u5316\u670d\u52a1\u4e2d\u5fc3\uff0c\u5c06\u670d\u52a1\u505c\u6b62\u540e\u5373\u53ef\u6e05\u7406\u670d\u52a1\u4e2d\u5fc3\u6570\u636e\u3002\u670d\u52a1\u4e2d\u5fc3\u53ca\u5176frontend\u4ee3\u7801\u5df2\u5f00\u6e90\uff0c\u9879\u76ee\u5730\u5740\u3002</p> <ul> <li> <p>\u53d1\u5e03\u9636\u6bb5\uff0c\u9700\u8981\u5ba1\u89c6\u4e0b\u63a5\u53e3\u517c\u5bb9\u7684\u5b9e\u8df5\u7684\u6b65\u9aa4\uff0c\u786e\u4fdd\u4e0d\u5728\u7ebf\u4e0a\u5f15\u5165\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u3002\u5982\u679c\u4e0d\u5c0f\u5fc3\u6f0f\u4e86\u5176\u4e2d\u7684\u67d0\u4e2a\u6b65\u9aa4\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u5982\u4e0b\u4e00\u4e9b\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\uff1a</p> </li> <li> <p>[ ] \u5982\u679c\u4fee\u6539\u3001\u5220\u9664\u63a5\u53e3\uff1a\u5bfc\u81f4\u4e00\u4e9b\u8001\u7684Consumer\u5c06\u8bf7\u6c42\u8def\u7531\u5230\u65b0\u7684Provider\uff0c\u8c03\u7528\u5931\u8d25\u3002</p> </li> </ul> <p>\u89e3\u51b3\u529e\u6cd5\uff1a\u6307\u5b9aProvider\u7684\u7248\u672c\u53f7\u3001\u6216\u4fee\u6539Consumer\u9002\u914d\u65b0\u7684Provider\u3002</p> <ul> <li>[ ] \u5982\u679c\u5fd8\u8bb0\u4fee\u6539\u5fae\u670d\u52a1\u7248\u672c\u53f7\uff1a\u5bfc\u81f4\u4e00\u4e9b\u65b0\u7684Consumer\u5c06\u8bf7\u6c42\u8def\u7531\u5230\u8001\u7684Provider\uff0c\u8c03\u7528\u5931\u8d25\u3002</li> </ul> <p>\u89e3\u51b3\u529e\u6cd5\uff1a\u5347\u7ea7Provider\u7248\u672c\u53f7\u3001\u5220\u9664\u8001\u7684Provider\u5b9e\u4f8b\u3001\u91cd\u542fConsumer\u3002</p> <ul> <li>[ ] \u5982\u679c\u5fd8\u8bb0\u914d\u7f6eConsumer\u7684\u6700\u5c0f\u4f9d\u8d56\u7248\u672c\uff1a\u5f53\u90e8\u7f72\u987a\u5e8f\u4e3a\u5148\u505c\u6b62Consumer\uff0c\u518d\u542f\u52a8Consumer\uff0c\u518d\u505c\u6b62Provider\uff0c\u518d\u542f\u52a8Provider\u7684\u60c5\u51b5\uff0cConsumer\u65e0\u6cd5\u83b7\u53d6\u5230\u65b0\u63a5\u53e3\u4fe1\u606f\uff0c\u5c31\u91c7\u7528\u4e86\u8001\u63a5\u53e3\uff0c\u5f53Provider\u542f\u52a8\u4ee5\u540e\uff0cConsumer\u53d1\u8d77\u5bf9\u65b0\u63a5\u53e3\u7684\u8c03\u7528\u4f1a\u5931\u8d25\uff1b\u6216\u8005\u5728Provider\u6ca1\u542f\u52a8\u524d\uff0c\u8c03\u7528\u65b0\u63a5\u53e3\u5931\u8d25\u7b49\u3002</li> </ul> <p>\u89e3\u51b3\u529e\u6cd5\uff1a\u5efa\u8bae\u5148\u542f\u52a8Provider\uff0c\u518d\u542f\u52a8Consumer\u3002</p> <p>\u901a\u7528\u89c4\u907f\u63aa\u65bd\uff1a\u51fa\u73b0\u7684\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u4e0d\u540c\uff0c\u5904\u7406\u65b9\u5f0f\u4f1a\u6709\u5dee\u5f02\u3002\u6781\u7aef\u60c5\u51b5\uff0c\u53ea\u9700\u8981\u6e05\u7406Provider\u3001Consumer\u7684\u5fae\u670d\u52a1\u4fe1\u606f\uff0c\u7136\u540e\u91cd\u542f\u5fae\u670d\u52a1\u5373\u53ef\u3002\u5f53\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u590d\u6742\u7684\u60c5\u51b5\u4e0b\uff0c\u63a5\u53e3\u517c\u5bb9\u95ee\u9898\u5f71\u54cd\u8303\u56f4\u4f1a\u66f4\u52a0\u5e7f\u6cdb\uff0c\u540c\u65f6\u6e05\u7406Provider\u3001Consumer\u6570\u636e\u4f1a\u53d8\u5f97\u590d\u6742\uff0c\u56e0\u6b64\u5efa\u8bae\u9075\u5faa\u4e0a\u9762\u7684\u89c4\u8303\uff0c\u907f\u514d\u4e0d\u517c\u5bb9\u7684\u60c5\u51b5\u53d1\u751f\u3002</p>"},{"location":"question-and-answer/interface-compatibility.html#_4","title":"\u5e38\u89c1\u7684\u63a5\u53e3\u4e0d\u517c\u5bb9\u60c5\u51b5\u7684\u65e5\u5fd7","text":"<ul> <li>consumer method [com.huawei.paas.cse.demo.CodeFirstPojoIntf:testUserMap] not exist in swagger</li> </ul> <p>\u53ef\u80fd\u662fProvider\u589e\u52a0\u4e86\u63a5\u53e3\uff0c\u4f46\u662f\u6ca1\u6709\u66f4\u65b0\u7248\u672c\u53f7\u3002\u9700\u8981\u5220\u9664\u5fae\u670d\u52a1\u6570\u636e\u6216\u8005\u66f4\u65b0\u7248\u672c\u53f7\u540e\u91cd\u65b0\u542f\u52a8Provider\uff0c\u5e76\u91cd\u542fConsumer\u3002</p> <ul> <li>\u5951\u7ea6\u6216\u63a5\u53e3\u53d8\u66f4(\u542b\u589e\u5220\u67e5\u6539\u3001\u53c2\u6570\u53d8\u5316\u7b49)\uff0c\u4f46environment\u672a\u8bbe\u5b9a\u4e3adevelopment\uff0c\u5951\u7ea6\u4e0d\u5141\u8bb8\u66f4\u65b0\u3002schemaId\u4e3adownload\u3001upload\u7684\u4e24\u4e2a\u5951\u7ea6\u5df2\u5b58\u5728\uff0c\u4f46\u65b0\u589e\u7684schemaId\u4e3aTaskTemplateController\u7684\u65e0\u6cd5\u6ce8\u518c\uff0c\u76f8\u5e94\u63a5\u53e3\u81ea\u7136\u4f1a\u8c03\u7528\u5931\u8d25\u3002\u9700\u8981\u5347\u7ea7\u7248\u672c\u53f7\uff0c\u6216\u6307\u5b9aenvironment\u4e3adevelopment\u3002</li> </ul> <pre><code>2018-06-14 22:51:55,239 [ERROR] SchemaIds is different between local and service center. Please change microservice version. id=1f4c94c66fe011e8945700ff37174dd4 appId=uploadapp, name=upload-service, version=0.0.1, local schemaIds=[download, upload, TaskTemplateController], service center schemaIds=[download, upload] org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.checkSchemaIdSet(MicroserviceRegisterTask.java:116)\n2018-06-14 22:51:55,243 [INFO] schemaId download exists true org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:144)\n2018-06-14 22:51:55,246 [INFO] schemaId upload exists true org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:144)\n2018-06-14 22:51:55,249 [WARN] get response for org.apache.servicecomb.serviceregistry.api.response.GetExistenceResponse failed, 400:Bad Request, {\"errorCode\":\"400016\",\"errorMessage\":\"Schema does not exist\",\"detail\":\"schema does not exist.\"}\n org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$0(ServiceRegistryClientImpl.java:118)\n2018-06-14 22:51:55,250 [INFO] schemaId TaskTemplateController exists false org.apache.servicecomb.serviceregistry.task.MicroserviceRegisterTask.registerSchemas(MicroserviceRegisterTask.java:144)\n2018-06-14 22:51:55,258 [ERROR] Register schema 1f4c94c66fe011e8945700ff37174dd4/TaskTemplateController failed, statusCode: 400, statusMessage: Bad Request, description: {\"errorCode\":\"400014\",\"errorMessage\":\"Undefined schema id\",\"detail\":\"schemaId non-exist\uff0c can't be added, environment is production\"}\n. org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.registerSchema(ServiceRegistryClientImpl.java:306)\n</code></pre> <ul> <li>Provider\u65e0\u53ef\u7528\u7248\u672c\uff0c\u8bf7\u67e5Provider\u548cConsumer\u662f\u5426\u5c5e\u4e8e\u540c\u4e00environment(\u9ed8\u8ba4\u4e3aProduction)\uff0c\u4e14\u6210\u529f\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</li> </ul> <pre><code>2018-06-15 11:03:56,045 [ERROR] invoke failed, invocation=PRODUCER rest customer-service.reactiveClient.hello org.apache.servicecomb.swagger.invocation.exception.DefaultExceptionToResponseConverter.convert(DefaultExceptionToResponseConverter.java:35)\njava.lang.IllegalStateException: Probably invoke a service before it is registered, appId=uploadapp, name=upload-service\n    at org.apache.servicecomb.core.definition.schema.ConsumerSchemaFactory.getOrCreateMicroserviceMeta(ConsumerSchemaFactory.java:90)\n    at org.apache.servicecomb.core.provider.consumer.ReferenceConfig.&lt;init&gt;(ReferenceConfig.java:36)\n    at org.apache.servicecomb.core.provider.consumer.ConsumerProviderManager.getReferenceConfig(ConsumerProviderManager.java:82)\n</code></pre> <ul> <li>\u672c\u5730\u5f00\u53d1\u8c03\u8bd5\u65f6\u65e0\u6cd5\u4f7f\u7528\u90e8\u5206\u4e91\u4e0a\u4eea\u8868\u76d8\u529f\u80fd\uff0c\u4f1a\u51fa\u73b0\u4e0b\u8ff0\u5f02\u5e38\uff0c\u4e0d\u5f71\u54cd\u529f\u80fd\uff0c\u53ef\u4ee5\u5ffd\u7565\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eservicecomb.monitor.client.enable\u4e3afalse\u7981\u7528\u4eea\u8868\u76d8\u529f\u80fd\u3002</li> </ul> <pre><code>2018-06-14 22:23:59,407 [WARN] {\"errorCode\":\"400012\",\"errorMessage\":\"Micro-service does not exist\",\"detail\":\"provider not exist, consumer 8e24bc416fde11e8945700ff37174dd4 find provider default/CseMonitoring/latest\"}\n org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$4(ServiceRegistryClientImpl.java:199)\n2018-06-14 22:23:59,408 [ERROR] Can not find any instances from service center due to previous errors. service=default/CseMonitoring/latest org.apache.servicecomb.serviceregistry.registry.AbstractServiceRegistry.findServiceInstances(AbstractServiceRegistry.java:256)\n</code></pre> <ul> <li>\u4e0b\u9762\u4e24\u79cd\u9519\u8bef(\u524d\u8005\u76f4\u63a5\u6d88\u8d39upload-service\uff0c\u540e\u8005\u901a\u8fc7edge-service\u6d88\u8d39upload-service)\u5747\u8868\u793a\u63a5\u53e3\u672a\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u6216\u6d88\u8d39\u8005\u672a\u62ff\u5230\u6700\u65b0\u5951\u7ea6\uff0c\u8c03\u7528\u62a5locate path failed. \u8bf7\u6392\u9664\uff1a1\u3001Provider\u5bf9\u5e94\u63a5\u53e3\u5951\u7ea6\u5df2\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\uff0c\u5185\u5bb9\u4e0e\u672c\u5730\u5e94\u7528\u542f\u52a8\u65f6\u8f93\u51fa\u4e00\u81f4\uff1b2\u3001\u786e\u4fddConsumer\u548cedge-service\u5728Provider\u542f\u52a8\u540e\uff0c\u624b\u52a8\u91cd\u542f\u4ee5\u91cd\u65b0\u83b7\u53d6Provider\u5951\u7ea6\u4fe1\u606f\uff1b3\u3001Debug\u542f\u52a8Consumer\uff0c\u627e\u5230ConsumerSchemaFactory\u7c7b\u4e2d\u7684loadSwagger\uff08\u4f4d\u4e8eservicecomb\u7684java-chassis-core\u5305\u4e2d\uff09\uff0c\u67e5\u770bschemaContent\u5185\u5bb9\u662f\u5426\u62ff\u5230Consumer\u5bf9\u5e94\u5951\u7ea6\u5185\u5bb9\u3002</li> </ul> <pre><code>2018-06-15 14:52:45,312 [ERROR] locate path failed, status:Not Found, http method:GET, path:/favicon.ico/, microserviceName:upload-service org.apache.servicecomb.common.rest.locator.OperationLocator.locate(OperationLocator.java:72)\n</code></pre> <pre><code>2018-06-15 14:56:35,342 [ERROR] locate path failed, status:Not Found, http method:POST, path:/taskTemplate/uploadTaskTemplate/, microserviceName:upload-service org.apache.servicecomb.common.rest.locator.OperationLocator.locate(OperationLocator.java:72)\n2018-06-15 14:56:35,344 [ERROR] edge server failed. org.apache.servicecomb.edge.core.AbstractEdgeDispatcher.onFailure(AbstractEdgeDispatcher.java:33)\nInvocationException: code=404;msg=CommonExceptionData [message=Not Found]\n    at org.apache.servicecomb.common.rest.locator.OperationLocator.locate(OperationLocator.java:77)\n    at org.apache.servicecomb.common.rest.locator.ServicePathManager.consumerLocateOperation(ServicePathManager.java:107)\n    at org.apache.servicecomb.edge.core.EdgeInvocation.locateOperation(EdgeInvocation.java:114)\n    at org.apache.servicecomb.common.rest.AbstractRestInvocation.findRestOperation(AbstractRestInvocation.java:77)\n    at org.apache.servicecomb.edge.core.EdgeInvocation.edgeInvoke(EdgeInvocation.java:66)\n    at com.huawei.cse.houseapp.edge.ApiDispatcher.onRequest(ApiDispatcher.java:84)\n    at io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:223)\n</code></pre> <ul> <li>\u6d88\u8d39\u63a5\u53e3\u65f6Content-Type\u4e0d\u4e00\u81f4\u5c06\u62a5\u53c2\u6570\u975e\u6cd5\uff0c\u5982\u524d\u7aef\u4f7f\u7528form-data\uff0cProvider\u9700\u8981application/json</li> </ul> <pre><code>2018-06-27 14:51:13,939 [ERROR] invoke failed, invocation=PRODUCER rest loadbalance-isolation-server.hello.sayHello org.apache.servicecomb.swagger.invocation.exception.DefaultExceptionToResponseConverter.convert(DefaultExceptionToResponseConverter.java:35)\njava.lang.IllegalArgumentException: argument type mismatch\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:498)\n</code></pre>"},{"location":"question-and-answer/question_answer.html","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5982\u4f55\u81ea\u5b9a\u4e49\u67d0\u4e2aJava\u65b9\u6cd5\u5bf9\u5e94\u7684REST\u63a5\u53e3\u91cc\u7684HTTP Status Code\uff1f","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u5bf9\u4e8e\u6b63\u5e38\u7684\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7SwaggerAnnotation\u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a</p> <pre><code>@ApiResponse(code = 300, response = String.class, message = \"\")\npublic int test(int x) {\n  return 100;\n}\n</code></pre> <p>\u5bf9\u4e8e\u5f02\u5e38\u7684\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7\u629b\u51fa\u81ea\u5b9a\u4e49\u7684InvocationException\u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a\u3001</p> <pre><code>    public String testException(int code) {\n        String strCode = String.valueOf(code);\n        switch (code) {\n            case 200:\n                return strCode;\n            case 456:\n                throw new InvocationException(code, strCode, strCode + \" error\");\n            case 556:\n                throw new InvocationException(code, strCode, Arrays.asList(strCode + \" error\"));\n            case 557:\n                throw new InvocationException(code, strCode, Arrays.asList(Arrays.asList(strCode + \" error\")));\n            default:\n                break;\n        }\n\n        return \"not expected\";\n    }\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_1","title":"\u95ee\u9898\u63cf\u8ff0\uff1a \u5982\u4f55\u5b9a\u5236\u81ea\u5df1\u5fae\u670d\u52a1\u7684\u65e5\u5fd7\u914d\u7f6e","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a** ServiceComb\u4e0d\u7ed1\u5b9a\u65e5\u5fd7\u5668\uff0c\u53ea\u662f\u4f7f\u7528\u4e86slf4j\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u9009\u62e9log4j/log4j2/logback\u7b49\u7b49\u3002ServiceComb\u63d0\u4f9b\u4e86\u4e00\u4e2alog4j\u7684\u6269\u5c55\uff0c\u5728\u6807\u51c6log4j\u7684\u57fa\u7840\u4e0a\uff0c\u652f\u6301log4j\u7684properties\u6587\u4ef6\u7684\u589e\u91cf\u914d\u7f6e\u3002</p> <ul> <li>\u9ed8\u8ba4\u4ee5\u89c4\u5219\uff1a\"classpath*:config/log4j.properties\"\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6</li> <li>\u5b9e\u9645\u4f1a\u641c\u7d22\u51faclasspath\u4e2d\u6240\u6709\u7684<code>config/log4j.properties\u548cconfig/log4j.*.properties</code>, \u4ece\u641c\u7d22\u51fa\u7684\u6587\u4ef6\u4e2d\u5207\u51fa<code>\\*</code>\u7684\u90e8\u5206\uff0c\u8fdb\u884calpha\u6392\u5e8f\uff0c\u7136\u540e\u6309\u987a\u5e8f\u52a0\u8f7d\uff0c\u6700\u540e\u5408\u6210\u7684\u6587\u4ef6\u4f5c\u4e3alog4j\u7684\u914d\u7f6e\u6587\u4ef6\u3002</li> <li>\u5982\u679c\u8981\u4f7f\u7528ServiceComb\u7684log4j\u6269\u5c55\uff0c\u5219\u9700\u8981\u8c03\u7528Log4jUtils.init\uff0c\u5426\u5219\u5b8c\u5168\u6309\u6807\u51c6\u7684\u65e5\u5fd7\u5668\u7684\u89c4\u5219\u4f7f\u7528\u3002</li> </ul>"},{"location":"question-and-answer/question_answer.html#transporttransport","title":"\u95ee\u9898\u63cf\u8ff0\uff1a \u5f53\u670d\u52a1\u914d\u7f6e\u4e86\u591a\u4e2atransport\u7684\u65f6\u5019\uff0c\u5728\u8fd0\u884c\u65f6\u662f\u600e\u4e48\u9009\u62e9\u4f7f\u7528\u54ea\u4e2atransport\u7684\uff1f","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <ul> <li> <p>ServiceComb\u7684consumer\u3001transport\u3001handler\u3001producer\u4e4b\u95f4\u662f\u89e3\u8026\u7684\uff0c\u5404\u529f\u80fd\u4e4b\u95f4\u901a\u8fc7\u5951\u7ea6\u5b9a\u4e49\u8054\u5408\u5728\u4e00\u8d77\u5de5\u4f5c\u7684\uff0c\u5373\uff1a   consumer\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fspringmvc\u5f00\u53d1\u4e0e\u4f7f\u7528highway\uff0c\u8fd8\u662fRESTful\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u6ca1\u6709\u5173\u7cfb\u4e0eproducer\u662f\u4f7f\u7528\u900f\u660erpc\uff0c\u8fd8\u662fjaxrs\uff0c\u6216\u8005\u662fspringmvc\u5f00\u53d1\uff0c\u4e5f\u6ca1\u6709\u5173\u7cfbhandler\u4e5f\u4e0d\u611f\u77e5\uff0c\u4e1a\u52a1\u5f00\u53d1\u65b9\u5f0f\u4ee5\u53ca\u4f20\u8f93\u65b9\u5f0f</p> </li> <li> <p>consumer\u8bbf\u95eeproducer\uff0c\u5728\u8fd0\u884c\u65f6\u7684transport\u9009\u62e9\u4e0a\uff0c\u603b\u89c4\u5219\u4e3a\uff1a   consumer\u7684transport\u4e0eproducer\u7684endpoint\u53d6\u4ea4\u96c6\uff0c\u5982\u679c\u4ea4\u96c6\u540e\uff0c\u8fd8\u6709\u591a\u4e2atransport\u53ef\u9009\u62e9\uff0c\u5219\u8f6e\u6d41\u4f7f\u7528</p> </li> </ul> <p>\u5206\u89e3\u5f00\u6765\uff0c\u5b58\u5728\u4ee5\u4e0b\u573a\u666f\uff1a</p> <ul> <li>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u540c\u65f6\u5f00\u653e\u4e86highway\u4ee5\u53caRESTful\u7684endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684highway endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u53ea\u4f1a\u8bbf\u95eeproducer\u7684RESTful endpoint</li> <li>consumer\u8fdb\u7a0b\u4e2d\uff0c\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u4f1a\u8f6e\u6d41\u8bbf\u95eeproducer\u7684highway\u3001RESTful endpoint</li> </ul> <p>\u5982\u679c\uff0c\u6b64\u65f6consumer\u60f3\u56fa\u5b9a\u4f7f\u7528\u67d0\u4e2atransport\u8bbf\u95eeproducer\uff0c\u53ef\u4ee5\u5728consumer\u8fdb\u7a0b\u7684microservice.yaml\u4e2d\u914d\u7f6e\uff0c\u6307\u5b9atransport\u7684\u540d\u79f0:</p> <pre><code>servicecomb:\n  references:\n    transport:\n      &lt;service_name&gt;: highway\n</code></pre> <ul> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86highway\u7684endpoint</p> </li> <li> <p>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528higway\u8bbf\u95ee</p> </li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</li> <li> <p>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528highway\u8bbf\u95ee</p> </li> <li> <p>\u5f53\u4e00\u4e2a\u5fae\u670d\u52a1producer\u53ea\u5f00\u653e\u4e86RESTful\u7684endpoint</p> </li> <li> <p>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86highway transport jar\uff0c\u5219\u65e0\u6cd5\u8bbf\u95ee</p> </li> <li>consumer\u8fdb\u7a0b\u53ea\u90e8\u7f72\u4e86RESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> <li>consumer\u8fdb\u7a0b\u540c\u65f6\u90e8\u7f72\u4e86highway\u548cRESTful transport jar\uff0c\u5219\u6b63\u5e38\u4f7f\u7528RESTful\u8bbf\u95ee</li> </ul>"},{"location":"question-and-answer/question_answer.html#swagger-body","title":"\u95ee\u9898\u63cf\u8ff0\uff1a swagger body\u53c2\u6570\u7c7b\u578b\u5b9a\u4e49\u9519\u8bef\uff0c\u5bfc\u81f4\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\u7684\u5185\u5bb9\u6ca1\u6709\u7c7b\u578b\u4fe1\u606f","text":"<p>\u73b0\u8c61\u63cf\u8ff0:</p> <p>\u5b9a\u4e49\u5982\u4e0b\u63a5\u53e3\uff0c\u5c06\u53c2\u6570\u653e\u5230body\u4f20\u9012</p> <pre><code>/testInherate:\n    post:\n      operationId: \"testInherate\"\n      parameters:\n      - in: \"body\"\n        name: \"xxxxx\"\n        required: false\n        type: string\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            $ref: \"#/definitions/ReponseImpl\"\n</code></pre> <p>\u91c7\u7528\u4e0a\u9762\u65b9\u5f0f\u5b9a\u4e49\u63a5\u53e3\u3002\u5728\u670d\u52a1\u6ce8\u518c\u4ee5\u540e\uff0c\u4ece\u670d\u52a1\u4e2d\u5fc3\u67e5\u8be2\u4e0b\u6765\u7684\u63a5\u53e3type: string \u4e22\u5931\uff0c\u53d8\u6210\u4e86\uff1a</p> <pre><code>/testInherate:\n    post:\n      operationId: \"testInherate\"\n      parameters:\n      - in: \"body\"\n        name: \"xxxxx\"\n        required: false\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            $ref: \"#/definitions/ReponseImpl\"\n</code></pre> <p>\u5982\u679c\u5ba2\u6237\u7aef\u6ca1\u6709\u653e\u7f6eswagger\uff0c\u8fd8\u4f1a\u62a5\u544a\u5982\u4e0b\u5f02\u5e38\uff1a</p> <p>Caused by: java.lang.ClassFormatError: Method \"testInherate\" in class ? has illegal signature \"</p> <p>\u89e3\u51b3\u65b9\u6cd5\uff1a</p> <p>\u5b9a\u4e49body\u53c2\u6570\u7684\u7c7b\u578b\u7684\u65f6\u5019\uff0c\u9700\u8981\u4f7f\u7528schema\uff0c\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528type\u3002</p> <pre><code>/testInherate:\n    post:\n      operationId: \"testInherate\"\n      parameters:\n      - in: \"body\"\n        name: \"request\"\n        required: false\n        schema:\n          type: string\n      responses:\n        200:\n          description: \"response of 200\"\n          schema:\n            $ref: \"#/definitions/ReponseImpl\"\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_2","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5fae\u670d\u52a1\u6846\u67b6\u670d\u52a1\u8c03\u7528\u662f\u5426\u4f7f\u7528\u957f\u8fde\u63a5","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>http\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u6709\u8d85\u65f6\u65f6\u95f4\uff09\uff0chighway\u65b9\u5f0f\u4f7f\u7528\u7684\u662f\u957f\u8fde\u63a5\uff08\u4e00\u76f4\u4fdd\u6301\uff09\u3002</p>"},{"location":"question-and-answer/question_answer.html#_3","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u65ad\u8fde\u670d\u52a1\u4e2d\u5fc3\u6ce8\u518c\u4fe1\u606f\u662f\u5426\u81ea\u52a8\u5220\u9664","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u670d\u52a1\u4e2d\u5fc3\u5fc3\u8df3\u68c0\u6d4b\u5230\u670d\u52a1\u5b9e\u4f8b\u4e0d\u53ef\u7528\uff0c\u53ea\u4f1a\u79fb\u9664\u670d\u52a1\u5b9e\u4f8b\u4fe1\u606f\uff0c\u670d\u52a1\u7684\u9759\u6001\u6570\u636e\u4e0d\u4f1a\u79fb\u9664\u3002</p>"},{"location":"question-and-answer/question_answer.html#_4","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5fae\u670d\u52a1\u6846\u67b6\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u591a\u4e2a\u5fae\u670d\u52a1\u95f4\u900f\u4f20","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u900f\u4f20\u6570\u636e\u585e\u5165\uff1a</p> <pre><code>CseHttpEntity&lt;xxxx.class&gt; httpEntity = new CseHttpEntity&lt;&gt;(xxx);\n//\u900f\u4f20\u5185\u5bb9\nhttpEntity.addContext(\"contextKey\",\"contextValue\");\nResponseEntity&lt;String&gt; responseEntity = RestTemplateBuilder.create().exchange(\"cse://springmvc/springmvchello/sayhello\",HttpMethod.POST,httpEntity,String.class);\n</code></pre> <p>\u900f\u4f20\u6570\u636e\u83b7\u53d6\uff1a</p> <pre><code>@Override\n@RequestMapping(path=\"/sayhello\",method = RequestMethod.POST)\npublic String sayHello(@RequestBody Person person,InvocationContext context){\n    //\u900f\u4f20\u6570\u636e\u83b7\u53d6\n    context.getContext();\n    return \"Hello person \" + person.getName();\n}\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_5","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5fae\u670d\u52a1\u6846\u67b6\u670d\u52a1\u5982\u4f55\u81ea\u5b9a\u4e49\u8fd4\u56de\u72b6\u6001\u7801","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <pre><code>@Override\n@RequestMapping(path = \"/sayhello\",method = RequestMethod.POST)\npublic String sayHello(@RequestBody Person person){\n    InvocationContext context = ContextUtils.getInvocationContext();\n    //\u81ea\u5b9a\u4e49\u72b6\u6001\u7801\n    context.setStatus(Status.CREATED);\n    return \"Hello person \"+person.getName();\n}\n</code></pre>"},{"location":"question-and-answer/question_answer.html#body-model","title":"\u95ee\u9898\u63cf\u8ff0\uff1a body Model\u90e8\u5206\u66b4\u9732","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u4e00\u4e2a\u63a5\u53e3\u5bf9\u5e94\u7684body\u5bf9\u8c61\u4e2d\uff0c\u53ef\u80fd\u6709\u4e00\u4e9b\u5c5e\u6027\u662f\u5185\u90e8\u7684\uff0c\u4e0d\u60f3\u5f00\u653e\u51fa\u53bb\uff0c\u751f\u6210schema\u7684\u65f6\u5019\u4e0d\u8981\u5e26\u51fa\u53bb\uff0c\u4f7f\u7528\uff1a</p> <pre><code>@ApiModelProperty(hidden = true)\n</code></pre>"},{"location":"question-and-answer/question_answer.html#consumer","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u6846\u67b6\u83b7\u53d6\u8fdc\u7aefconsumer\u7684\u5730\u5740","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u5982\u679c\u4f7f\u7528http rest\u65b9\u5f0f\uff08\u4f7f\u7528transport-rest-vertx\u4f9d\u8d56\uff09\u53ef\u4ee5\u7528\u4e0b\u9762\u8fd9\u79cd\u65b9\u5f0f\u83b7\u53d6\uff1a</p> <pre><code>HttpServletRequest request = (HttpServletRequest) invocation.getHandlerContext().get(RestConst.REST_REQUEST);\nString host = request.getRemoteHost();\n</code></pre> <p>\u5b9e\u9645\u573a\u666f\u662f\u62ff\u6700\u5916\u5c42\u7684\u5730\u5740\uff0c\u6240\u4ee5\u5e94\u8be5\u662fLB\u4f20\u5165\u5230edgeservice\uff0cedgeService\u518d\u653e\u5230context\u5916\u4e0b\u4f20\u9012\u3002</p>"},{"location":"question-and-answer/question_answer.html#handler","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u5bf9handler\u63cf\u8ff0","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>consumer\u9ed8\u8ba4\u7684handler\u662fsimpleLB\uff0c\u6ca1\u6709\u914d\u7f6e\u7684\u65f6\u5019handler\u94fe\u4f1a\u4f7f\u7528\u8fd9\u4e2a\uff0c\u5982\u679c\u914d\u7f6e\u4e86handler\uff0c\u91cc\u9762\u4e00\u5b9a\u8981\u5305\u542blb\u7684handler\uff0c\u5426\u5219\u8c03\u7528\u62a5\u9519\uff0c\u9700\u8981\u5728\u6587\u6863\u91cc\u9762\u8fdb\u884c\u8bf4\u660e\u3002</p>"},{"location":"question-and-answer/question_answer.html#netty","title":"\u95ee\u9898\u63cf\u8ff0\uff1anetty\u7248\u672c\u95ee\u9898","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>netty3\u548cnetty4\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u4e09\u65b9\u4ef6\uff0c\u56e0\u4e3a\u5750\u6807\u8ddfpackage\u90fd\u4e0d\u76f8\u540c\uff0c\u6240\u4ee5\u53ef\u4ee5\u5171\u5b58\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u5c0f\u7248\u672c\u95ee\u9898\uff0c\u5c0f\u7248\u672c\u5fc5\u987b\u4f7f\u7528\u7684\u7248\u672c\u3002</p>"},{"location":"question-and-answer/question_answer.html#_6","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u8d85\u65f6\u8bbe\u7f6e","text":"<p>** \u89e3\u51b3\u65b9\u6cd5\uff1a**</p> <p>\u5728\u5fae\u670d\u52a1\u63cf\u8ff0\u6587\u4ef6\uff08microservice.yaml\uff09\u4e2d\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  request:\n    timeout: 30000\n</code></pre>"},{"location":"question-and-answer/question_answer.html#_7","title":"\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u6cbb\u7406\u7684\u5904\u7406\u94fe\u987a\u5e8f\u662f\u5426\u6709\u8981\u6c42\uff1f","text":"<p>\u89e3\u51b3\u65b9\u6cd5\uff1a</p> <p>\u5904\u7406\u94fe\u7684\u987a\u5e8f\u4e0d\u540c\uff0c\u90a3\u4e48\u7cfb\u7edf\u5de5\u4f5c\u884c\u4e3a\u4e5f\u4e0d\u540c\u3002 \u4e0b\u9762\u5217\u4e3e\u4e00\u4e0b\u5e38\u89c1\u95ee\u9898\u3002</p> <p>1\u3001loadbalance\u548cbizkeeper-consumer</p> <p>\u8fd9\u4e24\u4e2a\u987a\u5e8f\u53ef\u4ee5\u968f\u673a\u7ec4\u5408\u3002\u4f46\u662f\u884c\u4e3a\u662f\u4e0d\u4e00\u6837\u7684\u3002</p> <p>\u5f53loadbalance\u5728\u524d\u9762\u7684\u65f6\u5019\uff0c\u90a3\u4e48loadbalance\u63d0\u4f9b\u7684\u91cd\u8bd5\u529f\u80fd\u4f1a\u5728bizkeeper-consumer\u629b\u51fa\u5f02\u5e38\u65f6\u53d1\u751f\uff0c\u6bd4\u5982\u8d85\u65f6\u7b49\u3002\u4f46\u662f\u5982\u679c\u5df2\u7ecf\u505a\u4e86fallbackpolicy\u914d\u7f6e\uff0c\u6bd4\u5982returnnull\uff0c\u90a3\u4e48loadbalance\u5219\u4e0d\u4f1a\u91cd\u8bd5\u3002</p> <p>\u5982\u679cloadbalance\u5728\u540e\u9762\uff0c\u90a3\u4e48loadbalance\u7684\u91cd\u8bd5\u4f1a\u5ef6\u957f\u8d85\u65f6\u65f6\u95f4\uff0c\u5373\u4f7f\u91cd\u8bd5\u6210\u529f\uff0c\u5982\u679cbizkeeper-consumer\u8bbe\u7f6e\u7684\u8d85\u65f6\u65f6\u95f4\u4e0d\u591f\uff0c\u90a3\u4e48\u6700\u7ec8\u7684\u8c03\u7528\u7ed3\u679c\u4e5f\u662f\u5931\u8d25\u3002</p> <p>2\u3001tracing-consumer\uff0csla-consumer\uff0ctracing-provider\uff0csla-provider</p> <p>\u8fd9\u4e9b\u5904\u7406\u94fe\u5efa\u8bae\u653e\u5230\u5904\u7406\u94fe\u7684\u6700\u5f00\u59cb\u4f4d\u7f6e\uff0c\u4fdd\u8bc1\u6210\u529f\u3001\u5931\u8d25\u7684\u60c5\u51b5\u90fd\u53ef\u4ee5\u8bb0\u5f55\u65e5\u5fd7\uff08\u7531\u4e8e\u8bb0\u5f55\u65e5\u5fd7\u9700\u8981IP\u7b49\u4fe1\u606f\uff0c\u5bf9\u4e8e\u6d88\u8d39\u8005\uff0c\u53ea\u80fd\u653e\u5230loadbalance\u540e\u9762\uff09\u3002</p> <p>\u5982\u679c\u4e0d\u9700\u8981\u8bb0\u5f55\u5ba2\u6237\u7aef\u8fd4\u56de\u7684\u5f02\u5e38\uff0c\u5219\u53ef\u4ee5\u653e\u5230\u672b\u5c3e\uff0c\u53ea\u5173\u6ce8\u7f51\u7edc\u5c42\u8fd4\u56de\u7684\u9519\u8bef\u3002\u4f46\u662f\u5982\u679cbizkeeper-consumer\u7b49\u8d85\u65f6\u63d0\u524d\u8fd4\u56de\u7684\u8bdd\uff0c\u5219\u53ef\u80fd\u4e0d\u4f1a\u8bb0\u5f55\u65e5\u5fd7\u3002</p> <p>3\u3001\u5efa\u8bae\u7684\u987a\u5e8f</p> <p>Consumer: loadbalance, tracing-consumer, sla-consumer, bizkeeper-consumer</p> <p>Provider: tracing-provider, sla-provider, bizkeeper-provider</p> <p>\u8fd9\u79cd\u987a\u5e8f\u80fd\u591f\u6ee1\u8db3\u5927\u591a\u6570\u573a\u666f\uff0c\u5e76\u4e14\u4e0d\u5bb9\u6613\u51fa\u73b0\u4e0d\u53ef\u7406\u89e3\u7684\u9519\u8bef\u3002</p>"},{"location":"question-and-answer/question_answer.html#_8","title":"\u95ee\u9898\u63cf\u8ff0\uff1a \u6587\u4ef6\u4e0a\u4f20\u4e2d\u914d\u7f6e\u9879\u6700\u5927\u8bf7\u6c42\u5927\u5c0f\u7684\u542b\u4e49","text":"<p>\u914d\u7f6e\u9879\uff1a servicecomb.uploads.maxSize</p> <p>\u542b\u4e49\uff1a \u8bf7\u6c42\u4f53\u4e2d\u5141\u8bb8\u7684\u6700\u5927\u5b57\u8282\u6570\uff0c\u9ed8\u8ba4\u503c\u4e3a-1\uff0c\u8868\u793a\u6ca1\u6709\u9650\u5236\u3002</p>"},{"location":"references-handlers/fail-retry.html","title":"\u5feb\u901f\u5931\u8d25\u548c\u91cd\u8bd5","text":"<p>\u968f\u673a\u5931\u8d25\u5728\u5fae\u670d\u52a1\u7cfb\u7edf\u7ecf\u5e38\u53d1\u751f\u3002\u4ea7\u751f\u968f\u673a\u5931\u8d25\u7684\u539f\u56e0\u975e\u5e38\u591a\uff0c\u4ee5JAVA\u5fae\u670d\u52a1\u5e94\u7528\u4e3a\u4f8b\uff0c\u9020\u6210\u8bf7\u6c42\u8d85\u65f6\u8fd9\u79cd\u968f\u673a\u5931\u8d25\u7684\u539f\u56e0\u5305\u62ec\uff1a\u7f51\u7edc\u6ce2\u52a8\u548c\u8f6f\u786c\u4ef6 \u5347\u7ea7\uff0c\u53ef\u80fd\u9020\u6210\u968f\u673a\u7684\u51e0\u79d2\u4e2d\u65ad\uff1bJVM\u5783\u573e\u56de\u6536\u3001\u7ebf\u7a0b\u8c03\u5ea6\u5bfc\u81f4\u7684\u65f6\u5ef6\u589e\u52a0\uff1b\u6d41\u91cf\u5e76\u4e0d\u662f\u5747\u5300\u7684\uff0c\u540c\u65f6\u5230\u6765\u76841000\u4e2a\u8bf7\u6c42\u548c1\u79d2\u5185\u5e73\u5747\u6765\u76841000\u4e2a\u8bf7\u6c42 \u5bf9\u7cfb\u7edf\u7684\u51b2\u51fb\u662f\u4e0d\u540c\u7684\uff0c\u524d\u8005\u66f4\u5bb9\u6613\u5bfc\u81f4\u8d85\u65f6\uff1b\u5e94\u7528\u7a0b\u5e8f\u3001\u7cfb\u7edf\u3001\u7f51\u7edc\u7684\u7efc\u5408\u5f71\u54cd\uff0c\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7a81\u7136\u7684\u5927\u6d41\u91cf\u53ef\u80fd\u4f1a\u5bf9\u5e26\u5bbd\u4ea7\u751f\u5f71\u54cd\uff0c\u4ece\u800c\u5f71\u54cd\u5176\u4ed6 \u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\uff1b\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u573a\u666f\uff0c\u6bd4\u5982SSL\u9700\u8981\u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf\u71b5\uff0c\u5982\u679c\u71b5\u503c\u8fc7\u4f4e\uff0c\u4f1a\u6709\u51e0\u79d2\u7684\u5ef6\u8fdf\u3002\u7cfb\u7edf\u4e0d\u53ef\u907f\u514d\u7684\u9762\u4e34\u968f\u673a\u6545\u969c\uff0c\u5fc5\u987b\u5177\u5907 \u4e00\u5b9a\u7684\u968f\u673a\u6545\u969c\u4fdd\u62a4\u80fd\u529b\u3002</p> <p>\u91cd\u8bd5\u662f\u89e3\u51b3\u968f\u673a\u5931\u8d25\u7684\u4e00\u4e2a\u975e\u5e38\u6709\u6548\u7684\u63aa\u65bd\u3002\u4f46\u662f\u5b9e\u65bd\u91cd\u8bd5\u662f\u4e00\u4e2a\u975e\u5e38\u590d\u6742\u7684\u8bfe\u9898\u3002\u672c\u6587\u63d0\u4f9b\u4e00\u4e2a\u91cd\u8bd5\u7684\u6700\u4f73\u67b6\u6784\u65b9\u6848\uff0c\u5206\u6790\u5982\u4f55\u89e3\u51b3\u91cd\u8bd5\u9762\u4e34\u7684\u5904\u7406 \u5feb\u901f\u5931\u8d25\u7684\u95ee\u9898\u3002 </p> <p>\u4f7f\u7528<code>\u8bf7\u6c42\u8d85\u65f6</code>\u914d\u7f6e\u6765\u63a7\u5236\u5feb\u901f\u5931\u8d25\u662f\u975e\u5e38\u5e38\u89c1\u7684\u624b\u6bb5\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u65e0\u4fb5\u5165\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u5bf9\u4e8e\u6027\u80fd\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f\u3002\u4f46\u662f\u5bf9\u4e8e\u5927\u89c4\u6a21\u5e94\u7528\u7cfb\u7edf\uff0c\u4ee5\u53ca \u5bf9\u4e8e\u8bf7\u6c42\u65f6\u5ef6\u8981\u6c42\u975e\u5e38\u9ad8\u7684\u7cfb\u7edf\uff0c<code>\u8bf7\u6c42\u8d85\u65f6</code>\u5e76\u4e0d\u662f\u5feb\u901f\u5931\u8d25\u7684\u6709\u6548\u624b\u6bb5\uff0c\u6709\u5982\u4e0b\u539f\u56e0\uff1a</p> <ul> <li>\u8bf7\u6c42\u8d85\u65f6\u5728\u4f7f\u7528HTTP\u534f\u8bae\u7684\u60c5\u51b5\u4e0b\uff0c\u4f1a\u5173\u95ed\u8fde\u63a5\u3002\u8fde\u63a5\u91cd\u8fde\u662f\u975e\u5e38\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u5927\u91cf\u91cd\u8fde\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u6027\u80fd\u7684\u4e25\u91cd\u6076\u5316\u3002</li> <li>\u5728\u591a\u7ebf\u7a0b\u7cfb\u7edf\uff0c\u8bf7\u6c42\u8d85\u65f6\u90fd\u662f\u901a\u8fc7\u72ec\u7acb\u7684\u7ebf\u7a0b\u8fdb\u884c\u68c0\u6d4b\u7684\u3002\u8fd9\u91cc\u6d89\u53ca\u4e00\u4e2a\u5b9e\u65f6\u8ba1\u7b97\u7684\u95ee\u9898\u3002JDK\u5e76\u4e0d\u80fd\u5f88\u597d\u7684\u5e94\u7528\u4e8e\u5b9e\u65f6\u8ba1\u7b97\u3002\u7b80\u5355\u7684\u8bb2\u5c31\u662f\u8d85\u65f6   \u68c0\u67e5\u5e76\u4e0d\u662f\u51c6\u786e\u7684\u3002\u5f53\u7cfb\u7edf\u7e41\u5fd9\u7684\u65f6\u5019\uff0c\u8d85\u65f6\u7684\u68c0\u6d4b\u51c6\u786e\u6027\u4f1a\u6301\u7eed\u4e0b\u964d\uff0c\u672c\u6765\u4e00\u4e9b\u6b63\u5e38\u5904\u7406\u672a\u8d85\u65f6\u7684\u8bf7\u6c42\uff0c\u53ef\u80fd\u88ab\u8bef\u8ba4\u4e3a\u8d85\u65f6\uff1b\u4e00\u4e9b\u8d85\u65f6\u7684\u8bf7\u6c42\uff0c   \u53ef\u80fd\u63a8\u8fdf\u4e86\u4e00\u6bb5\u65f6\u95f4\u624d\u68c0\u6d4b\u5230\u3002 \u5e94\u7528\u7a0b\u5e8f\u5e94\u8be5\u51cf\u5c11\u5b9e\u65f6\u6027\u5047\u8bbe\uff0c\u5305\u62ec\uff1aclient\u5b9e\u65f6\u611f\u77e5\u5b9e\u4f8b\u4e0a\u4e0b\u7ebf\uff1b\u8d85\u65f6\u65f6\u95f4\u5f88\u7cbe\u786e\uff1b\u4efb\u52a1\u6309\u7167\u9884\u671f\u7684\u6267\u884c   \u65f6\u95f4\u5904\u7406\uff1b\u4efb\u52a1\u7684\u5904\u7406\u65f6\u95f4\u6052\u5b9a\u7b49\u3002 \u4ece\u53ef\u9760\u6027\u7684\u89d2\u5ea6\uff0c\u7528\u6237\u914d\u7f6e\u7684\u8d85\u65f6\u65f6\u95f4\u4e0d\u5e94\u8be5\u5f88\u77ed\uff0c\u4ece\u7ecf\u9a8c\u4e0a\u6765\u8bb2\uff0c\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u5c0f\u4e8e1s\u7684\u60c5\u51b5\uff0c\u7cfb\u7edf\u53d1\u751f   \u8d85\u65f6\u5931\u8d25\u7684\u6982\u7387\u4f1a\u663e\u8457\u63d0\u5347\u3002\u5982\u679c\u4e1a\u52a1\u7684\u5e73\u5747\u65f6\u5ef610ms\u6570\u91cf\u7ea7\uff0c\u5efa\u8bae\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5e94\u8be5\u4f4e\u4e8e1s\uff0c\u5e73\u5747\u65f6\u5ef6\u8d8a\u9ad8\uff0c\u8d85\u65f6\u65f6\u95f4\u5e94\u8be5\u7b49\u6bd4\u4f8b\u589e\u52a0\u3002</li> <li>\u8d85\u65f6\u4ee5\u540e\uff0c\u8bf7\u6c42\u8fd4\u56de\uff0c\u5e76\u4e0d\u4f1a\u4e2d\u65ad\u5df2\u7ecf\u8fdb\u884c\u7684\u4efb\u52a1\u3002\u5f3a\u5236\u4e2d\u65ad\u8fdb\u884c\u7684\u4efb\u52a1\uff08\u6bd4\u5982\u7ec8\u6b62\u7ebf\u7a0b\u7684\u65b9\u5f0f\uff09\uff0c\u4f1a\u7834\u574f\u7a0b\u5e8f\u5185\u90e8\u72b6\u6001\uff0c\u5bfc\u81f4\u975e\u5e38\u590d\u6742\u96be\u4e8e\u5206\u6790   \u7684\u6545\u969c\uff0c\u6b63\u5728\u6267\u884c\u7684\u4efb\u52a1\u9700\u8981\u4f18\u96c5\u53ef\u63a7\u5236\u7684\u7ed3\u675f\u3002</li> </ul>"},{"location":"references-handlers/fail-retry.html#_2","title":"\u5982\u4f55\u5e94\u7528\u91cd\u8bd5\u548c\u5feb\u901f\u5931\u8d25","text":"<ul> <li>\u91cd\u8bd5\u7684\u6700\u4f73\u53d1\u8d77\u65b9\u662f\u76f4\u63a5\u7684\u6d88\u8d39\u8005\uff0c\u6bd4\u5982\u5bf9\u4e8eWEB\u6d4f\u89c8\u5668\u3001\u624b\u673aAPP\u7b49\u524d\u7aef\u5e94\u7528\u3002</li> <li>\u5982\u679c\u524d\u7aef\u5e94\u7528\u65e0\u6cd5\u91cd\u8bd5\uff0c\u5728\u7f51\u5173\u8fdb\u884c\u91cd\u8bd5\u4e00\u822c\u662f\u6bd4\u8f83\u63a8\u8350\u7684\u505a\u6cd5\uff0c\u9664\u4e86\u91cd\u8bd5\uff0c\u7f51\u5173\u8fd8\u9700\u8981\u52a0\u5165\u6d41\u91cf\u63a7\u5236\u548c\u6d41\u91cf\u68b3\u7406\u529f\u80fd\uff0c\u8fc7\u6ee4\u8d85\u51fa\u7cfb\u7edf\u5904\u7406\u80fd\u529b\u7684\u6d41\u91cf\uff0c\u5e76\u5c06\u7a81\u53d1\u7684\u6d41\u91cf   \u8f6c\u6362\u4e3a\u5e73\u6ed1\u7684\u6d41\u91cf\u3002</li> <li>\u5fae\u670d\u52a1\u7cfb\u7edf\u5185\u90e8\u7684\u8bf7\u6c42\u8fdb\u884c\u91cd\u8bd5\u53ef\u4ee5\u4f5c\u4e3a\u8865\u5145\uff0c\u5efa\u8bae\u9650\u5236\u91cd\u8bd5\u6b21\u6570\u4e3a2\uff0c\u8d85\u65f6\u7b49\u9519\u8bef\u573a\u666f\uff0c\u91cd\u8bd5\u53ef\u80fd\u5e26\u6765\u6027\u80fd\u6076\u5316\u3002</li> <li>\u5f53\u4e1a\u52a1\u7684\u5e73\u5747\u65f6\u5ef6\u57281ms~10ms\uff0c\u5efa\u8bae\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5c0f\u4e8e1s\uff1b10~100ms\uff0c\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5c0f\u4e8e5s\uff1b\u5927\u4e8e100ms\uff0c\u8d85\u65f6\u65f6\u95f4\u914d\u7f6e\u4e0d\u5c0f\u4e8e10s\u3002   \u4e0d\u5efa\u8bae\u8d85\u65f6\u65f6\u95f4\u8d85\u8fc730s\uff08\u7f3a\u7701\u503c\uff09\u3002\u5f53\u4e1a\u52a1\u67d0\u4e9b\u8bf7\u6c42\u9700\u8981\u8d85\u8fc730s\u7684\u65f6\u5019\uff0c\u5e94\u8be5\u5bf9\u8fd9\u4e9b\u4e1a\u52a1\u903b\u8f91\u8fdb\u884c\u7279\u6b8a\u5904\u7406\uff0c\u6bd4\u5982\u4fee\u6539\u4e3a\u72ec\u7acb\u7ebf\u7a0b\u6c60\u6267\u884c\uff0c   \u5e76\u8bbe\u7f6e\u72ec\u7acb\u7684\u8d85\u65f6\u65f6\u95f4\uff1b\u6216\u8005\u4fee\u6539\u4e3a\u5f02\u6b65\u6267\u884c\uff0c\u8bf7\u6c42\u6765\u7684\u65f6\u5019\u7acb\u5373\u8fd4\u56de\uff0c\u901a\u8fc7\u5f02\u6b65\u7684\u65b9\u5f0f\u67e5\u8be2\u4efb\u52a1\u6267\u884c\u7ed3\u679c\u3002</li> </ul> <p>Java Chassis\u5efa\u8bae\u5728\u5e94\u7528\u4e2d\u642d\u914d\u4f7f\u7528\u63d0\u4f9b\u8005\u6d41\u63a7\u548c\u6d88\u8d39\u8005\u9694\u79bb\u4ed3\uff0c\u6765\u5b9e\u73b0\u5feb\u901f\u5931\u8d25\u548c\u91cd\u8bd5\u3002 \u4e0b\u9762\u662f\u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u5178\u578b\u6cbb\u7406\u7ed3\u6784\uff1a</p> <p></p> <p>\u8be5\u6cbb\u7406\u7ed3\u6784\u5bf9\u5e94\u7684\u914d\u7f6e\u4e3a:</p> <pre><code>## \u670d\u52a1\u6cbb\u7406\u914d\u7f6e\nservicecomb:\n  matchGroup:\n    allOperation: \n      matches:\n        - apiPath:\n            prefix: \"/\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf10\u6beb\u79d2\u5141\u8bb8\u901a\u8fc7100\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    allOperation: |\n      rate: 10\n      limitRefreshPeriod: 1\n      timeoutDuration: 1000\n  retry:\n  ## \u91cd\u8bd5\u5668\u6700\u591a\u91cd\u8bd52\u6b21\uff0c\u5e76\u4e14\u5c3d\u53ef\u80fd\u9009\u62e9\u4e0d\u540c\u4e8e\u5931\u8d25\u7684\u5b9e\u4f8b\u8fdb\u884c\u91cd\u8bd5\u3002\n    allOperation: |\n      maxAttempts: 2\n      retryOnSame: 0\n  instanceIsolation:\n  ## \u7194\u65ad\u5668\u9519\u8bef\u7387\u8fbe\u523050%\u6216\u8005\u8017\u65f6\u8bf7\u6c42\u8fbe\u5230100%\uff0c\u5c06\u5f00\u542f\u3002\n  ## \u5f00\u542f\u65f6\u95f4\u4e3a5000\u6beb\u79d2\uff0c\u7136\u540e\u4f1a\u653e\u901a10\u4e2a\u8bf7\u6c42\u3002\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 100\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 50\n      slowCallDurationThreshold: 5000\n      waitDurationInOpenState: 5000\n      permittedNumberOfCallsInHalfOpenState: 10\n  instanceBulkhead:\n  ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a20\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre>"},{"location":"references-handlers/fault-injection.html","title":"\u6545\u969c\u6ce8\u5165","text":"<p>\u7528\u6237\u5728consumer\u7aef\u4f7f\u7528\u6545\u969c\u6ce8\u5165\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u53d1\u5f80\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u7684\u65f6\u5ef6\u548c\u9519\u8bef\u53ca\u5176\u89e6\u53d1\u6982\u7387\u3002</p>"},{"location":"references-handlers/fault-injection.html#_2","title":"\u6ce8\u610f\u4e8b\u9879","text":"<p>\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4\u7edf\u4e00\u4e3a\u6beb\u79d2\u3002</p>"},{"location":"references-handlers/fault-injection.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u6545\u969c\u6ce8\u5165\u914d\u7f6e\u9879\u8bf4\u660e</p> <p>[scope]\u4ee3\u8868\u6545\u969c\u6ce8\u5165\u7684\u751f\u6548\u8303\u56f4\uff0c\u53ef\u914d\u7f6e\u503c\u5305\u62ec\u5168\u5c40\u914d\u7f6e_global\uff0c\u6216\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u670d\u52a1\u540d[ServiceName]\u3002</p> <p>[protocol]\u4ee3\u8868\u4f7f\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u914d\u7f6e\u503c\u5305\u62ecrest\u6216highway\u3002</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].delay.fixedDelay \u65e0 (0,9223372036854775807]\uff0c\u957f\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4 \u76ee\u524d\u65f6\u95f4\u5355\u4f4d\u662f\u6beb\u79d2 servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].delay.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].delay.fixedDelay \u65e0 (0,9223372036854775807]\uff0c\u957f\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].delay.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].delay.fixedDelay \u65e0 (0,9223372036854775807]\uff0c\u957f\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].delay.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u5ef6\u8fdf\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].abort.httpStatus \u65e0 (100,999]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684http\u9519\u8bef\u7801 servicecomb.governance.Consumer.[scope].policy.fault.protocols.[protocol].abort.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].abort.httpStatus \u65e0 (100,999]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684http\u9519\u8bef\u7801 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].policy.fault.protocols.[protocol].abort.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94schema\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301schema\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].abort.httpStatus \u65e0 (100,999]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684http\u9519\u8bef\u7801 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.governance.Consumer.[ServiceName].schemas.[schema].operations.[operation].policy.fault.protocols.[protocol].abort.percent 100 (0,100]\uff0c\u6574\u578b \u5426 Consumer\u7aef\u53d1\u9001\u5230\u5bf9\u5e94operation\u7684\u9519\u8bef\u6ce8\u5165\u8bf7\u6c42\u7684\u89e6\u53d1\u6982\u7387 \u652f\u6301operation\u7ea7\u522b\u7684\u914d\u7f6e"},{"location":"references-handlers/fault-injection.html#_4","title":"\u793a\u4f8b\u4ee3\u7801","text":"<pre><code>servicecomb:\n  governance:\n    Consumer:\n      _global:\n        policy:\n          fault:\n            protocols:\n              rest:\n                delay:\n                  fixedDelay: 5000\n                  percent: 10\n</code></pre> <pre><code>servicecomb:\n  governance:\n    Consumer:\n      ServerFaultTest:\n        schemas:\n          schema:\n            operations:\n              operation:\n                policy:\n                  fault:\n                    protocols:\n                      rest:\n                        abort:\n                          httpStatus: 421\n                          percent: 100\n</code></pre>"},{"location":"references-handlers/governance-best-practise.html","title":"\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u6700\u4f73\u5b9e\u8df5","text":"<p>\u5728Java Chassis\u8bbe\u8ba1\u53c2\u8003\u4e2d\u603b\u7ed3\u4e86\u5178\u578b\u7684\u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\uff1a</p> <p></p> <p>\u53c2\u8003\u8fd9\u4e2a\u67b6\u6784\uff0c\u5fae\u670d\u52a1\u7cfb\u7edf\u6709\u4e24\u4e2a\u6bd4\u8f83\u91cd\u8981\u7684\u5fae\u670d\u52a1\u90e8\u4ef6\uff1a\u5e94\u7528\u7f51\u5173\u548c\u5fae\u670d\u52a1\u3002 \u8fd9\u4e24\u4e2a\u90e8\u4ef6\u662f\u5fae\u670d\u52a1\u6cbb\u7406\u7684\u91cd\u70b9\u5bf9\u8c61\uff0c\u5b83\u4eec\u6240\u5904\u7684\u4f4d\u7f6e\u548c\u4f5c\u7528\u5b58\u5728\u4e00\u4e9b\u5dee\u5f02\uff0c\u56e0\u6b64\u5e94\u7528\u670d\u52a1\u6cbb\u7406\u7684\u7b56\u7565\u4e5f\u4f1a\u6709\u6240\u4e0d\u540c\u3002 \u672c\u6587\u4ee5\u8fd9\u4e2a\u4e24\u4e2a\u90e8\u4ef6\u8bf4\u660e\u5e38\u89c1\u7684\u6cbb\u7406\u7b56\u7565\u8bbe\u8ba1\u3002 </p> <p>\u9996\u5148\uff0c\u5bf9\u5e94\u7cfb\u7edf\u7684\u6240\u6709API\u8bbf\u95ee\uff0c\u505a\u4e00\u4e2a\u5168\u5c40\u7684\u4e1a\u52a1\u5b9a\u4e49\u3002 </p> <pre><code>servicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath:\n            prefix: \"/\"\n</code></pre>"},{"location":"references-handlers/governance-best-practise.html#_2","title":"\u5e94\u7528\u7f51\u5173\u6cbb\u7406\u8bbe\u8ba1","text":"<p>\u5e94\u7528\u7f51\u5173\u9700\u8981\u6839\u636e\u7cfb\u7edf\u80fd\u591f\u5904\u7406\u7684\u6700\u5927\u6d41\u91cf\uff0c\u914d\u7f6e\u9650\u6d41\u5668\uff0c\u5feb\u901f\u62d2\u7edd\u8d85\u8fc7\u7cfb\u7edf\u7684\u6d41\u91cf\uff0c\u7531\u7528\u6237\uff08\u524d\u7aef\u811a\u672c\uff09\u53d1\u8d77\u91cd\u8bd5\uff0c\u5728\u4fdd\u8bc1\u7cfb\u7edf\u53ef\u7528\u6027\u7684\u540c\u65f6\uff0c\u5c3d\u53ef\u80fd\u964d\u4f4e\u5bf9\u4e8e\u7528\u6237\u4f53\u9a8c\u7684\u5f71\u54cd\u3002\u8fd8\u9700\u8981\u63d0\u4f9b\u4e00\u5b9a\u7684\u57fa\u4e8e\u80cc\u538b\u7684\u670d\u52a1\u6cbb\u7406\u80fd\u529b\uff0c\u6bd4\u5982\u5982\u679c\u540e\u7aef\u670d\u52a1\u67d0\u4e2a\u5b9e\u4f8b\u4e0d\u53ef\u7528\uff0c\u6216\u8005\u67d0\u4e2a\u670d\u52a1\u521a\u521a\u542f\u52a8\u5b8c\u6bd5\uff0c\u9700\u8981\u521d\u59cb\u5316\uff0c\u53d1\u5f80\u8fd9\u4e9b\u670d\u52a1\u7684\u8bf7\u6c42\u4f1a\u8868\u73b0\u4e3a\u65f6\u5ef6\u589e\u52a0\uff0c\u5982\u679c\u4e0d\u6839\u636e\u65f6\u5ef6\u589e\u52a0\u7684\u53cd\u9988\u8fdb\u884c\u6d41\u91cf\u63a7\u5236\uff0c\u5c31\u4f1a\u5bfc\u81f4\u7528\u6237\u4f53\u9a8c\u6781\u901f\u4e0b\u964d\u3002</p> <p></p> <p>\u5e94\u7528\u7f51\u5173\u914d\u7f6e\u9650\u6d41\u5668\u3001\u7194\u65ad\u5668\u548c\u9694\u79bb\u4ed3\u3002</p> <ul> <li>\u670d\u52a1\u7aef\u9650\u6d41\u5668\uff1a\u8d85\u8fc7\u7cfb\u7edf\u6700\u5927\u5904\u7406\u80fd\u529b\u7684\u8bf7\u6c42\u573a\u666f\uff0c\u9650\u6d41\u503c\u7684\u4f9d\u636e\u662f\u538b\u6d4b\u7684\u771f\u5b9e\u80fd\u529b\u6570\u636e\uff0c\u53ef\u4ee5\u63a7\u5236\u5728\u6700\u5927\u5904\u7406\u80fd\u529b\u768480%\u5de6\u53f3\u3002\u5728\u7cfb\u7edf\u4e0a\u7ebf\u521d\u59cb\u9636\u6bb5\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u5168\u5c40\u9650\u6d41\u5668\u3002\u5728\u65e0\u6cd5\u4f30\u7b97\u9650\u6d41\u5927\u5c0f\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5c06\u6d41\u91cf\u9650\u5236\u8bbe\u7f6e\u4e3a\u4e00\u4e2a\u6700\u5927\u503c\uff0c\u9650\u6d41\u5668\u4e5f\u53ef\u4ee5\u8d77\u5230\u6d41\u91cf\u68b3\u7406\u5e73\u6ed1\u6d41\u91cf\u7684\u4f5c\u7528\u3002</li> <li>\u5ba2\u6237\u7aef\u7194\u65ad\u5668\uff1a\u4e3b\u8981\u89e3\u51b3\u5b9e\u4f8b\u5f02\u5e38\u4e0b\u7ebf\uff0c\u672c\u5730\u7f13\u5b58\u611f\u77e5\u4e0d\u53ca\u65f6\u7684\u95ee\u9898\u3002\u5b9e\u4f8b\u7194\u65ad\u540e\u4f1a\u89e6\u53d1\u5b9e\u4f8b\u67e5\u8be2\u3002\u56e0\u6b64\uff0c\u5e94\u7528\u7f51\u5173\u7684\u7194\u65ad\u5668\u7684\u9694\u79bb\u65f6\u95f4\u4f1a\u8bbe\u7f6e\u7684\u6bd4\u8f83\u77ed\u3002</li> <li>\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\uff1a\u4e3b\u8981\u89e3\u51b3\u6545\u969c\u573a\u666f\uff0c\u6bd4\u5982\u6570\u636e\u5e93\u6545\u969c\u6062\u590d\u3001\u5b9e\u4f8b\u91cd\u542f\u7b49\uff0c\u7cfb\u7edf\u541e\u5410\u91cf\u4e0b\u964d\u7684\u60c5\u51b5\uff1b\u6216\u8005\u5fae\u670d\u52a1\u7b2c\u4e00\u6b21\u542f\u52a8\u3001\u5fae\u670d\u52a1\u957f\u671f\u6ca1\u6709\u8bf7\u6c42\u7a81\u7136\u8fdb\u6765\u5927\u91cf\u8bf7\u6c42\u7684\u573a\u666f\uff0c\u8fd9\u4e9b\u573a\u666f\u53ef\u4ee5\u9650\u5236\u5e76\u53d1\u8fde\u63a5\uff0c\u907f\u514d\u9020\u6210\u5fae\u670d\u52a1\u548c\u7f51\u5173CPU\u5927\u91cf\u4f7f\u7528\uff0c\u8bf7\u6c42\u8d85\u65f6\u3002</li> <li>\u5e94\u7528\u7f51\u5173\u53ef\u9009\u5ba2\u6237\u7aef\u5bb9\u9519\u914d\u7f6e\u3002\u6700\u4f73\u7684\u65b9\u6848\u662f\u7531\u5c0f\u7a0b\u5e8f\u3001WEB\u7aef\u5e94\u7528\u53d1\u8d77\u91cd\u8bd5\uff0c\u8fdb\u884c\u5ba2\u6237\u7aef\u5bb9\u9519\u3002 </li> </ul>"},{"location":"references-handlers/governance-best-practise.html#_3","title":"\u914d\u7f6e","text":"<pre><code>servicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n       - apiPath:\n           prefix: \"/\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf10\u6beb\u79d2\u5141\u8bb8\u901a\u8fc7100\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    allOperation: |\n      rate: 100\n      limitRefreshPeriod: 10\n      timeoutDuration: 1000\n  instanceIsolation:\n  ## \u7194\u65ad\u5668\u9519\u8bef\u7387\u8fbe\u523050%\u6216\u8005\u8017\u65f6\u8bf7\u6c42\u8fbe\u5230100%\uff0c\u5c06\u5f00\u542f\u3002\n  ## \u5f00\u542f\u65f6\u95f4\u4e3a5000\u6beb\u79d2\uff0c\u7136\u540e\u4f1a\u653e\u901a10\u4e2a\u8bf7\u6c42\u3002\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 1000\n      waitDurationInOpenState: 5000\n      permittedNumberOfCallsInHalfOpenState: 10\n  instanceBulkhead:\n  ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a20\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre>"},{"location":"references-handlers/governance-best-practise.html#_4","title":"\u6301\u7eed\u6f14\u8fdb","text":"<p>\u573a\u666f\u4e00\uff1a\u8017\u65f6\u8bf7\u6c42\u9700\u8981\u914d\u7f6e\u72ec\u7acb\u7684\u9650\u6d41\u7b56\u7565\u3002\u9700\u8981\u7ed3\u5408\u4e1a\u52a1\u7684\u6301\u7eed\u6f14\u8fdb\uff0c\u8fdb\u884c\u914d\u7f6e\u589e\u52a0\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    timeConsumingOperation: |\n      matches:\n        - apiPath:\n            prefix: \"/timeConsumingOperation\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf100\u6beb\u79d2\u5141\u8bb8\u901a\u8fc71\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n  timeConsumingOperation: |\n      rate: 1\n      limitRefreshPeriod: 100\n      timeoutDuration: 1000\n</code></pre> <p>\u573a\u666f\u4e8c\uff1a\u9700\u8981\u9632\u6b62\u673a\u5668\u4eba\u7684\u573a\u666f\uff0c\u6216\u8005\u9700\u8981\u9632\u6b62DDOS\u7684\u573a\u666f\uff0c\u9700\u8981\u5148\u8003\u8651\u5e94\u7528\u7f51\u5173\u7684\u6269\u5bb9\uff0c\u7136\u540e\u6839\u636e\u7528\u6237ID\u6216\u8005\u8bf7\u6c42\u7aefIP\u8fdb\u884c\u5206\u5e03\u5f0f\u9650\u6d41\u3002\u5e94\u7528\u7cfb\u7edf\u5728\u89c4\u5212\u7684\u65f6\u5019\uff0c\u9700\u8981\u8003\u8651\u5c06\u7528\u6237ID\u901a\u8fc7HTTP HEADER\u7684\u65b9\u5f0f\u4f20\u9012\uff1b\u6216\u8005ELB\u9700\u8981\u5c06\u5ba2\u6237\u7684IP\u901a\u8fc7x-real-ip HTTP HEADER\u4f20\u9012\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n        - apiPath:\n            prefix: \"/\"\n  identifierRateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf100\u6beb\u79d2\u5141\u8bb8\u901a\u8fc71\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\u76f8\u5f53\u4e8e\u9650\u5236\u6bcf\u4e2a\u7528\u62371\u79d2\u949f10\u4e2a\u8bf7\u6c42\u3002\n    allOperation: |\n      rate: 1\n      limitRefreshPeriod: 100\n      timeoutDuration: 1000\n      identifier: user-id\n</code></pre>"},{"location":"references-handlers/governance-best-practise.html#_5","title":"\u5fae\u670d\u52a1\u6cbb\u7406\u8bbe\u8ba1","text":"<p>\u5fae\u670d\u52a1\u6cbb\u7406\u8bbe\u8ba1\u548c\u7f51\u5173\u8bbe\u8ba1\u6709\u5f88\u591a\u7c7b\u4f3c\u4e4b\u5904\uff0c\u4e5f\u6709\u5c11\u91cf\u7684\u5dee\u5f02\u3002 </p> <p></p> <p>\u5fae\u670d\u52a1\u914d\u7f6e\u670d\u52a1\u7aef\u9650\u6d41\u3001\u670d\u52a1\u7aef\u9694\u79bb\u4ed3\u3001\u5ba2\u6237\u7aef\u5bb9\u9519\u3001\u5ba2\u6237\u7aef\u7194\u65ad\u548c\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\u3002</p> <ul> <li>\u670d\u52a1\u7aef\u9650\u6d41\u5668\uff1a\u8d85\u8fc7\u7cfb\u7edf\u6700\u5927\u5904\u7406\u80fd\u529b\u7684\u8bf7\u6c42\u573a\u666f\uff0c\u9650\u6d41\u503c\u7684\u4f9d\u636e\u662f\u538b\u6d4b\u7684\u771f\u5b9e\u80fd\u529b\u6570\u636e\uff0c\u53ef\u4ee5\u63a7\u5236\u5728\u6700\u5927\u5904\u7406\u80fd\u529b\u768480%\u5de6\u53f3\u3002\u5728\u7cfb\u7edf\u4e0a\u7ebf\u521d\u59cb\u9636\u6bb5\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u5168\u5c40\u9650\u6d41\u5668\u3002\u5728\u65e0\u6cd5\u4f30\u7b97\u9650\u6d41\u5927\u5c0f\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5c06\u6d41\u91cf\u9650\u5236\u8bbe\u7f6e\u4e3a\u4e00\u4e2a\u6700\u5927\u503c\uff0c\u9650\u6d41\u5668\u4e5f\u53ef\u4ee5\u8d77\u5230\u6d41\u91cf\u68b3\u7406\u5e73\u6ed1\u6d41\u91cf\u7684\u4f5c\u7528\u3002</li> <li>\u670d\u52a1\u7aef\u9694\u79bb\u4ed3\uff1a\u4e3b\u8981\u9488\u5bf9\u8017\u65f6\u8bf7\u6c42\u8fdb\u884c\u914d\u7f6e\uff0c\u9632\u6b62\u8017\u65f6\u8bf7\u6c42\u5360\u7528\u5176\u4ed6\u8bf7\u6c42\u7684\u5904\u7406\u8d44\u6e90\u3002</li> <li>\u5ba2\u6237\u7aef\u91cd\u8bd5\u5668\uff1a\u4e3b\u8981\u89e3\u51b3\u7f51\u7edc\u9519\u8bef\u3001\u670d\u52a1\u4e0a\u4e0b\u7ebf\u7684\u77ed\u6682\u6545\u969c\u7b49\u8fdb\u884c\u5feb\u901f\u91cd\u8bd5\uff0c\u964d\u4f4e\u9519\u8bef\u7387\u3002\u8be5\u91cd\u8bd5\u5668\u53ea\u9488\u5bf9\u53d1\u9001\u8bf7\u6c42\u5931\u8d25\u7684\u573a\u666f\uff0c\u4e0d\u6d89\u53ca\u63a5\u53e3\u5e42\u7b49\u95ee\u9898\u3002</li> <li>\u5ba2\u6237\u7aef\u7194\u65ad\u5668\uff1a\u4e3b\u8981\u89e3\u51b3\u5b9e\u4f8b\u6545\u969c\u5ba2\u6237\u7aef\u6ca1\u611f\u77e5\u7684\u573a\u666f\uff0c\u5b9e\u73b0\u5b9e\u4f8b\u7684\u5feb\u901f\u5237\u65b0\u548c\u540c\u6b65\u3002</li> <li>\u5ba2\u6237\u7aef\u9694\u79bb\u4ed3\uff1a\u4e3b\u8981\u89e3\u51b3\u6545\u969c\u573a\u666f\uff0c\u6bd4\u5982\u6570\u636e\u5e93\u6545\u969c\u6062\u590d\u3001\u5b9e\u4f8b\u91cd\u542f\u7b49\uff0c\u7cfb\u7edf\u541e\u5410\u91cf\u4e0b\u964d\u7684\u60c5\u51b5\uff1b\u6216\u8005\u5fae\u670d\u52a1\u7b2c\u4e00\u6b21\u542f\u52a8\u3001\u5fae\u670d\u52a1\u957f\u671f\u6ca1\u6709\u8bf7\u6c42\u7a81\u7136\u8fdb\u6765\u5927\u91cf\u8bf7\u6c42\u7684\u573a\u666f\uff0c\u8fd9\u4e9b\u573a\u666f\u53ef\u4ee5\u9650\u5236\u5e76\u53d1\u8fde\u63a5\uff0c\u907f\u514d\u9020\u6210\u5fae\u670d\u52a1\u548c\u7f51\u5173CPU\u5927\u91cf\u4f7f\u7528\uff0c\u8bf7\u6c42\u8d85\u65f6\u3002</li> </ul>"},{"location":"references-handlers/governance-best-practise.html#_6","title":"\u914d\u7f6e","text":"<pre><code>servicecomb:\n  matchGroup:\n    allOperation: |\n      matches:\n       - apiPath:\n           prefix: \"/\"\n  rateLimiting:\n  ## \u9650\u6d41\u5668\u6bcf10\u6beb\u79d2\u5141\u8bb8\u901a\u8fc7100\u4e2a\u8bf7\u6c42\uff0c\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8d85\u8fc71000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\n    allOperation: |\n      rate: 100\n      limitRefreshPeriod: 10\n      timeoutDuration: 1000\n  instanceIsolation:\n  ## \u7194\u65ad\u5668\u9519\u8bef\u7387\u8fbe\u523050%\u6216\u8005\u8017\u65f6\u8bf7\u6c42\u8fbe\u5230100%\uff0c\u5c06\u5f00\u542f\u3002\n  ## \u5f00\u542f\u65f6\u95f4\u4e3a5000\u6beb\u79d2\uff0c\u7136\u540e\u4f1a\u653e\u901a10\u4e2a\u8bf7\u6c42\u3002\n    allOperation: |\n      minimumNumberOfCalls: 10\n      slidingWindowSize: 20\n      slidingWindowType: COUNT_BASED\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 1000\n      waitDurationInOpenState: 5000\n      permittedNumberOfCallsInHalfOpenState: 10\n  instanceBulkhead:\n  ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a20\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    allOperation: |\n      maxConcurrentCalls: 20\n      maxWaitDuration: 1000\n</code></pre>"},{"location":"references-handlers/governance-best-practise.html#_7","title":"\u6301\u7eed\u6f14\u8fdb","text":"<p>\u573a\u666f\u4e00\uff1a\u670d\u52a1\u7aef\u8017\u65f6\u8bf7\u6c42\uff0c\u9700\u8981\u589e\u52a0\u9694\u79bb\u4ed3\u914d\u7f6e\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    timeConsumingOperation: |\n      matches:\n        - apiPath:\n            prefix: \"/timeConsumingOperation\"\n  bulkhead:\n  ## \u9694\u79bb\u4ed3\u9650\u5236\u6b63\u5728\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e3a2\u4e2a\uff0c\u65b0\u6765\u7684\u8bf7\u6c42\u7b49\u5f851000\u6beb\u79d2\u6ca1\u6709\u83b7\u53d6\u5230\n  ## \u8bb8\u53ef\uff0c\u5c06\u88ab\u62d2\u7edd\u3002\n    timeConsumingOperation: |\n      maxConcurrentCalls: 2\n      maxWaitDuration: 1000\n</code></pre>"},{"location":"references-handlers/governance-best-practise.html#_8","title":"\u5173\u4e8e\u6700\u4f73\u5b9e\u8df5\u7684\u8bf4\u660e","text":"<p>\u4efb\u4f55\u7684\u670d\u52a1\u6cbb\u7406\u7b56\u7565\uff0c\u90fd\u65e0\u6cd5\u4fdd\u8bc1\u6240\u6709\u573a\u666f\u90fd\u80fd\u591f\u4f18\u96c5\u7684\u5de5\u4f5c\uff0c\u9700\u8981\u5728\u6210\u529f\u7387\u3001\u53ef\u9760\u6027\u3001\u7528\u6237\u4f53\u9a8c\u7b49\u591a\u65b9\u9762\u8fdb\u884c\u6743\u8861\uff0c\u6700\u4f73\u5b9e\u8df5\u63d0\u5230\u7684\u7b56\u7565\u4e5f\u4e0d\u4f8b\u5916\u3002\u6700\u4f73\u5b9e\u8df5\u603b\u4f53\u4e0a\u503e\u5411\u4e8e\u8bbe\u8ba1\u4e00\u4e2a\u51c6\u5b9e\u65f6\u3001\u4f18\u5148\u4fdd\u8bc1\u7528\u6237\u4f53\u9a8c\u7684\u7b56\u7565\uff0c\u5e76\u4e14\u5c3d\u53ef\u80fd\u7684\u9632\u6b62\u7cfb\u7edf\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u8fd9\u4e2a\u7b56\u7565\u5728\u68c0\u6d4b\u5230\u7cfb\u7edf\u8fc7\u8f7d\u7684\u6761\u4ef6\u4e0b\uff0c\u4f18\u5148\u4f7f\u7528\u5feb\u901f\u5931\u8d25\u7684\u7b56\u7565\uff0c\u964d\u4f4e\u5bf9\u4e8e\u7cfb\u7edf\u8d44\u6e90\u7684\u5360\u7528\uff0c\u5e76\u901a\u8fc7\u91cd\u8bd5\u6765\u964d\u4f4e\u5feb\u901f\u5931\u8d25\u5bf9\u4e8e\u7528\u6237\u4f53\u9a8c\u7684\u5f71\u54cd\u3002\u8fd9\u79cd\u7b56\u7565\u5bf9\u4e8e\u8ffd\u6c42\u7528\u6237\u4f53\u9a8c\u7684\u4e92\u8054\u7f51\u7cfb\u7edf\u662f\u975e\u5e38\u68d2\u7684\u9009\u62e9\u3002\u8fd9\u79cd\u7b56\u7565\u4f1a\u5bfc\u81f4\u8f83\u591a\u7684\u8bf7\u6c42\u5931\u8d25\uff08\u867d\u7136\u901a\u8fc7\u91cd\u8bd5\u53ef\u4ee5\u6210\u529f\uff09\uff0c\u6240\u4ee5\u5b83\u4e0d\u592a\u9002\u5408\u5bf9\u4e8e\u6210\u529f\u7387\u8981\u6c42\u9ad8\u4e8e\u7528\u6237\u4f53\u9a8c\u5f71\u54cd\u7684\u573a\u666f\uff0c\u5bf9\u4e8e\u8fd9\u4e9b\u573a\u666f\uff0c\u5728\u9694\u79bb\u4ed3\u4e0a\u9762\u5e94\u8be5\u914d\u7f6e\u66f4\u5927\u7684\u5e76\u53d1\u6570\u9650\u5236\uff0c\u5e76\u8bbe\u7f6e\u8f83\u957f\u7684\u8bf7\u6c42\u7b49\u5f85\u65f6\u95f4\u3002</p>"},{"location":"references-handlers/intruduction.html","title":"\u5904\u7406\u94fe\u4ecb\u7ecd","text":"<p>\u5904\u7406\u94fe\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5305\u62ec\u7f16\u89e3\u7801\u3001\u670d\u52a1\u6cbb\u7406\u3001\u7f51\u7edc\u53d1\u9001\u7b49\u3002Java Chassis\u7684\u6838\u5fc3\u5904\u7406\u6d41\u7a0b\u5206\u4e3a <code>Provider\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Consumer\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Edge\u5904\u7406\u6d41\u7a0b</code>\u3002</p> <ul> <li>Provider\u5904\u7406\u6d41\u7a0b</li> </ul> <p></p> <ul> <li>Consumer\u5904\u7406\u6d41\u7a0b</li> </ul> <p></p> <ul> <li>Edge\u5904\u7406\u6d41\u7a0b</li> </ul> <p></p> <p>Java Chassis\u63d0\u4f9b\u4e86 <code>ProviderFilter</code>\u3001<code>ConsumerFilter</code>\u3001<code>EdgeFilter</code> \u5206\u522b\u5bf9\u5e94\u4e0a\u8ff0\u5904\u7406\u6d41\u7a0b\u3002</p>"},{"location":"references-handlers/intruduction.html#_2","title":"\u5f00\u53d1\u65b0\u7684\u5904\u7406\u94fe","text":"<p><code>ProviderFilter</code>\u3001<code>ConsumerFilter</code>\u3001<code>EdgeFilter</code>\u7684\u5f00\u53d1\u6d41\u7a0b\u4e00\u6837\u3002\u5f00\u53d1\u8005\u53ea\u9700\u8981\u5b9e\u73b0\u4e0a\u8ff0\u63a5\u53e3\uff0c\u5e76\u5c06\u5176\u58f0\u660e\u4e3a Bean \u5373\u53ef\u3002</p> <ul> <li>\u5b9e\u73b0Filter\u63a5\u53e3</li> </ul> <pre><code>public class EmptyFilter extends AbstractFilter implements ProviderFilter, ConsumerFilter, EdgeFilter {\n  @Override\n  public String getName() {\n    return \"empty\";\n  }\n\n  @Override\n  public CompletableFuture&lt;Response&gt; onFilter(Invocation invocation, FilterNode nextNode) {\n    return CompletableFuture.completedFuture(Response.ok(null));\n  }\n\n  @Override\n  public int getOrder() {\n    return 0;\n  }\n}\n</code></pre> <ul> <li>\u58f0\u660e\u4e3a Bean</li> </ul> <pre><code>@Configuration\npublic class EmptyFilterConfiguration {\n  @Bean\n  public EmptyFilter emptyFilter() {\n    return new EmptyFilter();\n  }\n}\n</code></pre> <p>\u4e0a\u8ff0\u5f00\u53d1\u5b8c\u6210\u7684\u5904\u7406\u94fe\u4f1a\u5728 <code>Provider\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Consumer\u5904\u7406\u6d41\u7a0b</code>\u3001<code>Edge\u5904\u7406\u6d41\u7a0b</code> \u6267\u884c\u3002 \u5b83\u7684 order \u662f 0\u3002 \u7531\u4e8e\u5b83\u7ee7\u627f\u4e86 <code>AbstractFilter</code>\uff0c \u8fd8\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d \u5b9a\u4e49\u662f\u5426\u542f\u7528\uff0c\u6216\u8005\u5b9a\u4e49\u5176\u4f18\u5148\u7ea7\u3002</p> <pre><code>servicecomb:\n  filter:\n    # Filter\u540d\u79f0\n    empty:\n      # \u5e94\u7528\u540d + \u670d\u52a1\u540d\n      ${application}.${name}.order: 10\n      ${application}.${name}.enabled: false\n</code></pre>"},{"location":"references-handlers/loadbalance.html","title":"\u8d1f\u8f7d\u5747\u8861","text":"<p>Java Chassis\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u8d1f\u8f7d\u5747\u8861\u80fd\u529b, \u5728\u5b9e\u4f8b\u6570\u975e\u5e38\u591a\u7684\u573a\u666f\uff0c\u4e5f\u80fd\u63d0\u4f9b\u5f88\u597d\u7684\u6027\u80fd\u3002\u8d1f\u8f7d\u5747\u8861\u7684\u6838\u5fc3\u6570\u636e\u7ed3\u6784\u662f <code>DiscoveryTree</code>\uff0c<code>DiscoveryTree</code> \u5305\u542b\u4e86\u4e00\u7cfb\u5217 <code>DiscoveryFilter</code>\u3002  \u4e0b\u56fe\u5c55\u793a\u4e86\u8d1f\u8f7d\u5747\u8861\u7684\u5904\u7406\u8fc7\u7a0b\uff1a</p> <p></p>"},{"location":"references-handlers/loadbalance.html#_2","title":"\u6309\u7167\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u8fdb\u884c\u8def\u7531\u8f6c\u53d1","text":"<p>\u670d\u52a1\u63d0\u4f9b\u8005\u548c\u6d88\u8d39\u8005\u90fd\u53ef\u4ee5\u901a\u8fc7\u5728microservice.yaml\u4e2d\u58f0\u660e\u81ea\u5df1\u7684\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\uff1a</p> <pre><code>servicecomb:\n  datacenter:\n    name: mydatacenter\n    region: my-Region\n    availableZone: my-Zone\n</code></pre> <p>\u6d88\u8d39\u8005\u901a\u8fc7\u6bd4\u8f83\u81ea\u5df1\u7684\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u548c\u63d0\u4f9b\u8005\u7684\u4fe1\u606f\uff0c\u4f18\u5148\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230region\u548cavailableZone\u90fd\u76f8\u540c\u7684\u5b9e\u4f8b\uff1b\u5982\u679c\u4e0d\u5b58\u5728\uff0c\u5219\u8f6c\u53d1\u5230region\u76f8\u540c\u7684\u5b9e\u4f8b\uff1b\u5982\u679c\u4ecd\u7136\u4e0d\u5b58\u5728\uff0c\u5219\u8f6c\u53d1\u5230\u5176\u4ed6\u5b9e\u4f8b\u3002</p> <p>\u8fd9\u91cc\u7684region\u548cavailableZone\u662f\u4e00\u822c\u6027\u7684\u6982\u5ff5\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u884c\u786e\u5b9a\u5176\u4e1a\u52a1\u542b\u4e49\u4ee5\u4fbf\u5e94\u7528\u4e8e\u8d44\u6e90\u9694\u79bb\u7684\u573a\u666f\u4e2d\u3002\u53ef\u4ee5\u53c2\u89c1\u5fae\u670d\u52a1\u5b9e\u4f8b\u4e4b\u95f4\u7684\u903b\u8f91\u9694\u79bb\u5173\u7cfb\uff0c\u4e86\u89e3\u66f4\u591a\u5176\u4ed6\u5b9e\u4f8b\u53d1\u73b0\u76f8\u5173\u7684\u9694\u79bb\u673a\u5236\u3002</p> <p>\u8be5\u89c4\u5219\u9ed8\u8ba4\u542f\u7528\uff0c\u5982\u679c\u4e0d\u9700\u8981\u4f7f\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>servicecomb.loadbalance.filter.zoneaware.enabled</code> \u8fdb\u884c\u5173\u95ed\u3002\u6570\u636e\u4e2d\u5fc3\u4fe1\u606f\u9694\u79bb\u529f\u80fd\u5728 <code>ZoneAwareDiscoveryFilter</code> \u5b9e\u73b0\u3002</p>"},{"location":"references-handlers/loadbalance.html#_3","title":"\u6839\u636e\u5b9e\u4f8b\u5c5e\u6027\u8fdb\u884c\u8def\u7531\u8f6c\u53d1","text":"<p>\u5fae\u670d\u52a1\u53ef\u4ee5\u6307\u5b9a\u5b9e\u4f8b\u7684\u5c5e\u6027\u3002\u5b9e\u4f8b\u5c5e\u6027\u53ef\u4ee5\u5728microservice.yaml\u4e2d\u6307\u5b9a\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u670d\u52a1\u4e2d\u5fc3\u7684API\u8fdb\u884c\u4fee\u6539\u3002</p> <pre><code>instance_description:\n  properties:\n    tags:\n      tag_key: tag_value\n</code></pre> <p>\u6d88\u8d39\u8005\u53ef\u4ee5\u6307\u5b9a\u6d88\u8d39\u5177\u5907\u67d0\u4e9b\u5c5e\u6027\u7684\u5b9e\u4f8b\uff0c\u4e0d\u8bbf\u95ee\u5176\u4ed6\u5b9e\u4f8b</p> <pre><code>servicecomb:\n  loadbalance:\n    provider:   # \u8fd9\u91cc\u8868\u793a\u914d\u7f6e\u5bf9\u540d\u4e3a\"provider\"\u7684\u670d\u52a1\u751f\u6548\uff0c\u5982\u679c\u662f\u8de8\u5e94\u7528\u8c03\u7528\uff0c\u5219\u8fd8\u9700\u8981\u52a0\u4e0aAppID\uff0c\u5982\"AppIDOfProvider:provider\"\n      transactionControl:\n        options:\n          tags:\n            tag_key: expected_tag_value\n</code></pre> <p>\u4e0a\u9762\u7684\u914d\u7f6e\u8868\u793a\u53ea\u8bbf\u95eemyservice\u6240\u6709\u5b9e\u4f8b\u4e2d<code>tag_key</code>\u5c5e\u6027\u4e3a<code>expected_tag_value</code>\u7684\u5b9e\u4f8b\u3002</p> <p>\u8be5\u89c4\u5219\u9700\u8981\u7ed9\u6bcf\u4e2a\u670d\u52a1\u5355\u72ec\u914d\u7f6e\uff0c\u672a\u914d\u7f6e\u8868\u793a\u4e0d\u542f\u7528\u8be5\u89c4\u5219\uff0c\u4e0d\u652f\u6301\u5bf9\u4e8e\u6240\u6709\u670d\u52a1\u7684\u5168\u5c40\u914d\u7f6e\u3002</p> <p>\u8be5\u89c4\u5219\u9ed8\u8ba4\u542f\u7528\uff0c\u5982\u679c\u4e0d\u9700\u8981\u4f7f\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7<code>servicecomb.loadbalance.filter.instanceProperty.enabled</code>\u8fdb\u884c\u5173\u95ed\u3002\u6839\u636e\u5b9e\u4f8b\u5c5e\u6027\u8fdb\u884c\u8def\u7531\u8f6c\u53d1\u529f\u80fd\u5728<code>InstancePropertyDiscoveryFilter</code>\u5b9e\u73b0\u3002</p>"},{"location":"references-handlers/loadbalance.html#_4","title":"\u6839\u636e\u5b9e\u4f8b\u5c5e\u6027\u503c\u7684\u5c42\u7ea7\u8fdb\u884c\u8def\u7531\u8f6c\u53d1","text":"<p>\u5b9e\u4f8b\u5c5e\u6027\u4f18\u5148\u7ea7\u5339\u914d\u53ef\u4ee5\u770b\u505a\u662f\u9488\u5bf9\u5b9e\u4f8b\u5c5e\u6027\u5339\u914d\u7684\u4e00\u79cd\u903b\u8f91\u6269\u5c55\u3002</p> <p>\u5fae\u670d\u52a1\u7684\u5b9e\u4f8b\u5c5e\u6027\u53ef\u4ee5\u5b9a\u4e49\u4e3a\u5177\u5907\u4f18\u5148\u7ea7\u7684\u683c\u5f0f\uff0c\u901a\u8fc7<code>.</code>\u7b26\u53f7\u8fdb\u884c\u5206\u5272\u3002</p> <pre><code>instance_description:\n  properties:\n    KEY: a.b.c\n</code></pre> <p>\u6d88\u8d39\u8005\u9700\u8981\u6307\u5b9a\u7528\u4e8e\u4f18\u5148\u7ea7\u5339\u914d\u7684\u5b9e\u4f8b\u5c5e\u6027key\uff0c\u9ed8\u8ba4\u7684key\u4e3a<code>environment</code>\u3002</p> <pre><code>servicecomb:\n  loadbalance:\n    filter:\n      priorityInstanceProperty:\n        key: KEY\n</code></pre> <p>\u5047\u8bbe\u67d0\u4e2aconsumer\u7684\u5c5e\u6027\u503c\u4e3a<code>a.b.c</code>\uff0c\u90a3\u4e48\u5c06\u4f1a\u6309\u7167<code>a.b.c</code>&gt;<code>a.b</code>&gt;<code>a</code>&gt;<code>[\u7a7a]</code> \u8fd9\u6837\u7684\u4f18\u5148\u7ea7\u987a\u5e8f\u5339\u914dprovider\u7684\u5b9e\u4f8b\uff0c\u4e00\u65e6\u5339\u914d\u5230\u5373\u7ec8\u6b62\uff0c\u4e0b\u9762\u7684\u8868\u683c\u7ed9\u51fa\u4e86\u4e0d\u540c\u60c5\u51b5\u7684\u5177\u4f53\u793a\u4f8b</p> consumer match priority of provider a.b.c a.b.c&gt;a.b&gt;a&gt;[\u7a7a] a.b a.b&gt;a&gt;[\u7a7a] a a&gt;[\u7a7a] [\u7a7a] [\u7a7a] <p>\u6ce8\u610f[\u7a7a]\u662f\u4e00\u79cd\u7279\u6b8a\u60c5\u51b5\uff0c\u5373\u672a\u8bbe\u7f6e\u8be5\u5c5e\u6027\u7684\u5b9e\u4f8b</p> <p>\u8be5\u89c4\u5219\u9ed8\u8ba4\u5173\u95ed\uff0c\u5982\u679c\u9700\u8981\u5f00\u542f\uff0c\u53ef\u4ee5\u901a\u8fc7<code>servicecomb.loadbalance.filter.priorityInstanceProperty.enabled</code>\u914d\u7f6e\u6253\u5f00\u3002\u8be5\u529f\u80fd\u5728<code>PriorityInstancePropertyDiscoveryFilter</code>\u4e2d\u5b9e\u73b0\u3002</p>"},{"location":"references-handlers/loadbalance.html#_5","title":"\u914d\u7f6e\u8def\u7531\u89c4\u5219","text":"<p>\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u9879\u6307\u5b9a\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u3002</p> <pre><code>servicecomb:\n  loadbalance:\n    strategy:\n      name: RoundRobin # Support RoundRobin,Random,WeightedResponse,SessionStickiness\n</code></pre> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u5fae\u670d\u52a1\u914d\u7f6e\u4e0d\u4e00\u6837\u7684\u7b56\u7565\uff0c\u53ea\u9700\u8981\u7ed9\u914d\u7f6e\u9879\u589e\u52a0\u670d\u52a1\u540d\uff0c\u4f8b\u5982\uff1a</p> <pre><code>servicecomb:\n  loadbalance:\n    myservice:\n      strategy:\n        name: RoundRobin # Support RoundRobin,Random,WeightedResponse,SessionStickiness\n</code></pre> <p>\u6bcf\u79cd\u7b56\u7565\u8fd8\u6709\u4e00\u4e9b\u4e13\u5c5e\u914d\u7f6e\u9879\uff0c\u4e5f\u652f\u6301\u9488\u5bf9\u4e0d\u540c\u5fae\u670d\u52a1\u8fdb\u884c\u914d\u7f6e\u3002</p> <ul> <li>SessionStickiness</li> </ul> <pre><code>servicecomb:\n  loadbalance:\n    SessionStickinessRule:\n      sessionTimeoutInSeconds: 30 # \u5ba2\u6237\u7aef\u95f2\u7f6e\u65f6\u95f4\uff0c\u8d85\u8fc7\u9650\u5236\u540e\u9009\u62e9\u540e\u9762\u7684\u670d\u52a1\u5668\n      successiveFailedTimes: 5 # \u5ba2\u6237\u7aef\u5931\u8d25\u6b21\u6570\uff0c\u8d85\u8fc7\u540e\u4f1a\u5207\u6362\u670d\u52a1\u5668\n</code></pre>"},{"location":"references-handlers/loadbalance.html#_6","title":"\u81ea\u5b9a\u4e49","text":"<p>\u8d1f\u8f7d\u5747\u8861\u6a21\u5757\u63d0\u4f9b\u7684\u529f\u80fd\u5df2\u7ecf\u975e\u5e38\u5f3a\u5927\uff0c\u80fd\u591f\u901a\u8fc7\u914d\u7f6e\u652f\u6301\u5927\u90e8\u5206\u5e94\u7528\u573a\u666f\u3002\u540c\u65f6\u5b83\u4e5f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6269\u5c55\u80fd\u529b\uff0c\u5305\u62ecDiscoveryFilter\u3001ServerListFilterExt\u3001ExtensionsFactory\uff08\u6269\u5c55IRule\uff0cRetryHandler\u7b49\uff09\u3002loadbalance\u6a21\u5757\u672c\u8eab\u5305\u542b\u4e86\u6bcf\u4e00\u4e2a\u6269\u5c55\u7684\u5b9e\u73b0\uff0c\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u6269\u5c55\uff0c\u53ea\u7b80\u5355\u63cf\u8ff0\u6b65\u9aa4\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u81ea\u884c\u4e0b\u8f7dServiceComb\u6e90\u7801\u8fdb\u884c\u53c2\u8003\u3002</p> <ul> <li>DiscoveryFilter</li> <li>\u5b9e\u73b0DiscoveryFilter\u63a5\u53e3</li> <li> <p>\u914d\u7f6eSPI\uff1a\u589e\u52a0META-INF/services/org.apache.servicecomb.serviceregistry.discovery.DiscoveryFilter\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5168\u540d</p> </li> <li> <p>ServerListFilterExt</p> </li> <li>\u5b9e\u73b0ServerListFilterExt\u63a5\u53e3</li> <li>\u914d\u7f6eSPI\uff1a\u589e\u52a0META-INF/services/org.apache.servicecomb.loadbalance.ServerListFilterExt\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a\u5b9e\u73b0\u7c7b\u7684\u5168\u540d</li> <li> <p>\u6ce8\u610f\uff1a\u8fd9\u4e2a\u5f00\u53d1\u8bf4\u660e\u9002\u7528\u4e8e1.0.0\u53ca\u5176\u4ee5\u540e\u7684\u7248\u672c\uff0c\u65e9\u671f\u7684\u7248\u672c\u5f00\u53d1\u65b9\u5f0f\u4e0d\u540c\u3002</p> </li> <li> <p>ExtensionsFactory</p> </li> <li>\u5b9e\u73b0ExtensionsFactory\uff0c\u5e76\u4f7f\u7528@Component\u5c06\u5176\u53d1\u5e03\u4e3a\u4e00\u4e2aspring bean\u3002</li> </ul>"},{"location":"references-handlers/publickey.html","title":"\u516c\u94a5\u8ba4\u8bc1","text":""},{"location":"references-handlers/publickey.html#_2","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u516c\u94a5\u8ba4\u8bc1\u662fServiceComb\u63d0\u4f9b\u7684\u4e00\u79cd\u7b80\u5355\u9ad8\u6548\u7684\u5fae\u670d\u52a1\u4e4b\u95f4\u8ba4\u8bc1\u673a\u5236\uff0c\u5b83\u7684\u5b89\u5168\u6027\u5efa\u7acb\u5728\u5fae\u670d\u52a1\u4e0e\u670d\u52a1\u4e2d\u5fc3\u4e4b\u95f4\u7684\u4ea4\u4e92\u662f\u53ef\u4fe1\u7684\u57fa\u7840\u4e4b\u4e0a\uff0c\u5373\u5fae\u670d\u52a1\u548c\u670d\u52a1\u4e2d\u5fc3\u4e4b\u95f4\u5fc5\u987b\u5148\u542f\u7528\u8ba4\u8bc1\u673a\u5236\u3002\u5b83\u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a</p> <ol> <li>\u5fae\u670d\u52a1\u542f\u52a8\u7684\u65f6\u5019\uff0c\u751f\u6210\u79d8\u94a5\u5bf9\uff0c\u5e76\u5c06\u516c\u94a5\u6ce8\u518c\u5230\u670d\u52a1\u4e2d\u5fc3\u3002</li> <li>\u6d88\u8d39\u8005\u8bbf\u95ee\u63d0\u4f9b\u8005\u4e4b\u524d\uff0c\u4f7f\u7528\u81ea\u5df1\u7684\u79c1\u94a5\u5bf9\u6d88\u606f\u8fdb\u884c\u7b7e\u540d\u3002</li> <li>\u63d0\u4f9b\u8005\u4ece\u670d\u52a1\u4e2d\u5fc3\u83b7\u53d6\u6d88\u8d39\u8005\u516c\u94a5\uff0c\u5bf9\u7b7e\u540d\u7684\u6d88\u606f\u8fdb\u884c\u6821\u9a8c\u3002</li> </ol>"},{"location":"references-handlers/publickey.html#_3","title":"\u914d\u7f6e\u9ed1\u767d\u540d\u5355","text":"<p>\u57fa\u4e8e\u516c\u94a5\u8ba4\u8bc1\u673a\u5236\uff0cServiceComb\u63d0\u4f9b\u4e86\u9ed1\u767d\u540d\u5355\u529f\u80fd\u3002\u901a\u8fc7\u9ed1\u767d\u540d\u5355\uff0c\u53ef\u4ee5\u63a7\u5236\u5fae\u670d\u52a1\u5141\u8bb8\u5176\u4ed6\u54ea\u4e9b\u670d\u52a1\u8bbf\u95ee\u3002\u76ee\u524d\u652f\u6301\u901a\u8fc7\u914d\u7f6e\u670d\u52a1\u5c5e\u6027\u6765\u63a7\u5236\uff0c\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  publicKey:\n    accessControl:\n      black:\n        list01:\n          category: property ## property, fixed value\n          propertyName: serviceName ## property name\n# property value match expression. \n# only supports prefix match and postfix match and exactly match. \n# e.g. hacker*, *hacker, hacker\n          rule: hacker \n      white:\n        list02:\n          category: property\n          propertyName: serviceName\n          rule: cust*\n</code></pre> <p>\u4ee5\u4e0a\u89c4\u5219\u914d\u7f6e\u4e86\u9ed1\u540d\u5355\uff0c\u4e0d\u5141\u8bb8\u5fae\u670d\u52a1\u540d\u79f0\u4e3ahacker\u7684\u8bbf\u95ee\uff1b\u767d\u540d\u5355\uff0c\u5141\u8bb8\u5fae\u670d\u52a1\u540d\u79f0\u4e3acust\u524d\u7f00\u7684\u670d\u52a1\u8bbf\u95ee\u3002</p> <p>ServiceComb\u63d0\u4f9b\u4e86trust-sample\u6765\u6f14\u793a\u9ed1\u767d\u540d\u5355\u529f\u80fd\u3002</p>"},{"location":"references-handlers/ratelimit.html","title":"\u9650\u6d41","text":"<p>java-chassis \u652f\u6301 Provider \u9650\u6d41\u548c Consumer \u9650\u6d41\u3002 Provider \u9650\u6d41\u63a7\u5236\u8bbf\u95ee\u672c\u5fae\u670d\u52a1\u7684\u6d41\u91cf\uff0c Consumer \u9650\u6d41\u63a7\u5236\u53d1\u5f80\u5176\u4ed6\u5fae\u670d\u52a1\u7684\u6d41\u91cf\u3002</p> <p>\u6ce8\u610f\u4e8b\u9879\uff1a</p> <ol> <li>\u9650\u6d41\u7b56\u7565\u7684\u63a7\u5236\u5e76\u4e0d\u662f\u7edd\u5bf9\u7cbe\u786e\u7684\uff0c\u53ef\u80fd\u4f1a\u6709\u5c11\u91cf\u8bef\u5dee\u3002</li> <li>\u6d41\u91cf\u63a7\u5236\u662f\u4e1a\u52a1\u5c42\u9762\u7684\u529f\u80fd\uff0c\u4e0d\u662f\u5b89\u5168\u610f\u4e49\u4e0a\u7684\u6d41\u91cf\u63a7\u5236\uff0c\u5982\u9700\u9632\u6b62DDoS\u653b\u51fb\uff0c\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u7684\u4e00\u7cfb\u5217\u63aa\u65bd\u3002</li> <li>\u6d41\u91cf\u63a7\u5236\u662f\u5fae\u670d\u52a1\u7ea7\u7684\uff0c\u4e0d\u662f\u5b9e\u4f8b\u7ea7\u7684\u3002\u4f8b\u5982\u4e00\u4e2aconsumer\u670d\u52a1\u6709\u4e09\u4e2a\u5b9e\u4f8b\uff0c\u5f53\u5bf9\u5b83\u4eec\u4f9d\u8d56\u7684provider\u5b9e\u4f8b\u914d\u7f6e\u9650\u6d41\u7b56\u7565\u540e\uff0c   provider\u4e0d\u4f1a\u533a\u5206consumer\u7684\u8bf7\u6c42\u5177\u4f53\u662f\u7531\u54ea\u4e2a\u5b9e\u4f8b\u53d1\u51fa\u7684\uff0c\u800c\u662f\u6c47\u603b\u6210\u5fae\u670d\u52a1\u7ea7\u7684\u7edf\u8ba1\u6570\u636e\u8fdb\u884c\u9650\u6d41\u5224\u65ad\u3002</li> <li>\u672c\u6a21\u5757\u4ecb\u7ecd\u7684\u9650\u6d41\u673a\u5236\u662f\u57fa\u4e8e <code>operation</code> \u7684\uff0c \u4f7f\u7528\u8d77\u6765\u6bd4\u8f83\u7b80\u5355\u3002\u540e\u7eed\u63a8\u8350\u4f7f\u7528\u6d41\u91cf\u7279\u5f81\u6cbb\u7406 \u6765\u9650\u5236\u6d41\u91cf\u3002 </li> </ol>"},{"location":"references-handlers/ratelimit.html#_2","title":"\u6d41\u63a7\u7b97\u6cd5\u8bf4\u660e","text":"<ul> <li>\u7b97\u6cd5\u8bf4\u660e\uff1a</li> <li>\u56fa\u5b9a\u7a97\u53e3\u7b97\u6cd5\uff1a\u9ed8\u8ba4\u7a97\u53e3\u5927\u5c0f\u4e3a1s\uff0c\u6700\u5927\u53ef\u80fd\u4ea7\u751f2\u500d\u4e8e\u6307\u5b9a\u6d41\u91cf\u8bbe\u7f6e\u5927\u5c0f\u7684\u8bef\u5dee\u3002</li> <li>\u4ee4\u724c\u6876\u7b97\u6cd5\uff1a\u4ee4\u724c\u6876\u7684\u4e3b\u8981\u601d\u60f3\u662f\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u6876\uff0c\u4ee5\u6052\u5b9a\u901f\u7387\u5411\u91cc\u9762\u52a0\u5165\u4ee4\u724c\uff0c\u6bcf\u6b21\u65b0     \u8bf7\u6c42\u5230\u6765\u65f6\u4ece\u91cc\u9762\u53d6\u4e00\u4e2a\u4ee4\u724c\u51fa\u6765\uff0c\u5982\u679c\u6ca1\u6709\u4ee4\u724c\u53ef\u53d6\uff0c\u5219\u8bf7\u6c42\u76f4\u63a5\u5931\u8d25(\u88ab\u9650\u6d41)\u3002</li> <li>\u6f0f\u6876\u7b97\u6cd5\uff1a\u6f0f\u6876\u7b97\u6cd5\u7684\u4e3b\u8981\u601d\u60f3\u662f\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u6876\uff0c\u8bf7\u6c42\u4e0d\u65ad\u52a0\u5165\u6876\u4e2d\u540c\u65f6\u4ee5\u56fa\u5b9a\u5927\u5c0f\u4ece\u6876     \u5185\u90e8\u6d41\u51fa\uff0c\u5982\u679c\u8fbe\u5230\u6876\u7684\u6781\u9650\u5927\u5c0f\uff0c\u5219\u8bf7\u6c42\u6ea2\u51fa(\u5931\u8d25)\u3002\u5728\u5185\u90e8\u5b9e\u73b0\u4e0a\u6f0f\u6876\u7b97\u6cd5\u4e0e\u4ee4\u724c\u6876\u7b97\u6cd5\u7684\u5b9e\u73b0     \u539f\u7406\u76f8\u540c\uff0c\u6839\u636e\u8bbe\u7f6e\u7684\u6876\u5927\u5c0f\u4e0d\u540c\uff0c\u80fd\u627f\u8f7d\u7684\u7a81\u53d1\u6d41\u91cf\u4e0d\u540c\u3002</li> <li>\u7528\u6237\u81ea\u5b9a\u4e49\u6d41\u63a7\u7b97\u6cd5\uff1a\u53ef\u4ee5\u53c2\u8003 \u793a\u4f8b\u5b9e\u73b0 ,\u4ee5\u53ca\u8be5\u5b9e\u73b0\u4e0b\u7684\u914d\u7f6e\u65b9\u6cd5\u3002</li> </ul>"},{"location":"references-handlers/ratelimit.html#provider","title":"Provider\u7aef\u4f7f\u7528\u9650\u6d41","text":"<p>\u7528\u6237\u5728provider\u7aef\u4f7f\u7528\u9650\u6d41\u7b56\u7565\uff0c\u53ef\u4ee5\u9650\u5236\u6307\u5b9a\u5fae\u670d\u52a1\u5411\u5176\u53d1\u9001\u8bf7\u6c42\u7684\u9891\u7387\uff0c\u8fbe\u5230\u9650\u5236\u6bcf\u79d2\u949f\u6700\u5927\u8bf7\u6c42\u6570\u91cf\u7684\u6548\u679c\u3002</p>"},{"location":"references-handlers/ratelimit.html#_3","title":"\u914d\u7f6e\u8bf4\u660e","text":"<p>\u9650\u6d41\u7b56\u7565\u914d\u7f6e\u5728microservice.yaml\u6587\u4ef6\u4e2d\uff0c\u76f8\u5173\u914d\u7f6e\u9879\u5982\u4e0b\uff1a</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.flowcontrol.Provider.qps.enabled true true/false \u5426 \u662f\u5426\u542f\u7528Provider\u6d41\u63a7 - servicecomb.flowcontrol.strategy FixedWindow FixedWindow/LeakyBucket/TokenBucket/\u81ea\u5b9a\u4e49 \u5426 \u6d41\u63a7\u7b56\u7565 - servicecomb.flowcontrol.Provider.qps.limit.[ServiceName].[Schema].[operation] 2147483647\uff08max int\uff09 (0,2147483647]\uff0c\u6574\u578b \u5426 \u6bcf\u79d2\u949f\u5141\u8bb8\u7684\u8bf7\u6c42\u6570 \u652f\u6301microservice/schema/operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e\uff0c\u540e\u8005\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u524d\u8005 servicecomb.flowcontrol.Provider.qps.global.limit 2147483647\uff08max int\uff09 (0,2147483647]\uff0c\u6574\u578b \u5426 provider\u63a5\u53d7\u8bf7\u6c42\u6d41\u91cf\u7684\u5168\u5c40\u914d\u7f6e \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 servicecomb.flowcontrol.Provider.qps.bucket.[ServiceName].[Schema].[operation] \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0b\u6876\u7684\u5927\u5c0f \u652f\u6301microservice/schema/operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e\uff0c\u540e\u8005\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u524d\u8005 servicecomb.flowcontrol.Provider.qps.global.bucket \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0bprovider\u6876\u7684\u5927\u5c0f \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 <p>\u6ce8\u610f\uff1a strategy\u662f\u5168\u5c40\u7684\u7b56\u7565\u9009\u62e9\uff0c\u4e00\u65e6\u9009\u62e9\u6240\u6709\u6d41\u63a7\u63a5\u53e3\u90fd\u4f1a\u5e94\u7528\u7edf\u4e00\u7684\u6d41\u63a7\u7b56\u7565\uff0c\u4e14\u4e0d\u652f\u6301\u52a8\u6001\u914d\u7f6e\u53d8\u66f4\uff0c\u5982\u679c\u53d8\u66f4\u6d41\u63a7\u7b56\u7565\u9700\u8981\u91cd\u542f\u670d\u52a1\u3002</p> <p>\u6ce8\u610f\uff1a provider\u7aef\u9650\u6d41\u7b56\u7565\u914d\u7f6e\u4e2d\u7684<code>ServiceName</code>\u6307\u7684\u662f\u8c03\u7528\u8be5provider\u7684consumer\uff0c\u800c<code>schema</code>\u3001<code>operation</code>\u6307\u7684\u662fprovider\u81ea\u8eab\u7684\u3002\u5373provider\u7aef\u9650\u6d41\u914d\u7f6e\u7684\u542b\u4e49\u662f\uff0c\u9650\u5236\u6307\u5b9aconsumer\u8c03\u7528\u672cprovider\u7684\u67d0\u4e2aschema\u3001operation\u7684\u6d41\u91cf\u3002</p> <p><code>ANY</code> \u662f\u4e00\u4e2a\u7279\u6b8a\u7684 <code>ServiceName</code>\uff0c \u8868\u793a\u4e0d\u533a\u5206\u6765\u6e90\u5fae\u670d\u52a1\uff0c \u5bf9\u6240\u6709\u5fae\u670d\u52a1\u4f7f\u7528\u540c\u6837\u7684\u7b56\u7565\u3002 \u6bd4\u5982  <code>servicecomb.flowcontrol.Provider.qps.limit.ANY.mySchema.myOperation=200</code> \u8868\u793a\u5bf9 <code>mySchema.myOperation</code> \u5355\u72ec\u9650\u5236 200 \u7684\u6d41\u91cf\u3002</p>"},{"location":"references-handlers/ratelimit.html#consumer","title":"Consumer\u7aef\u4f7f\u7528\u9650\u6d41","text":"<p>\u7528\u6237\u5728consumer\u7aef\u4f7f\u7528\u9650\u6d41\u7b56\u7565\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u6307\u5b9a\u5fae\u670d\u52a1\u7684\u8bf7\u6c42\u7684\u9891\u7387\u3002</p>"},{"location":"references-handlers/ratelimit.html#_4","title":"\u914d\u7f6e\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f servicecomb.flowcontrol.Consumer.qps.enabled true Boolean \u5426 \u662f\u5426\u542f\u7528Consumer\u6d41\u63a7 - servicecomb.flowcontrol.strategy FixedWindow FixedWindow/LeakyBucket/TokenBucket/\u81ea\u5b9a\u4e49 \u5426 \u6d41\u63a7\u7b56\u7565 - servicecomb.flowcontrol.Consumer.qps.global.limit 2147483647\uff08max int\uff09 (0,2147483647]\uff0c\u6574\u578b \u5426 consumer\u53d1\u9001\u8bf7\u6c42\u6d41\u91cf\u7684\u5168\u5c40\u914d\u7f6e \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 servicecomb.flowcontrol.Consumer.qps.limit.[ServiceName].[Schema].[operation] 2147483647  (max int) (0,2147483647]\uff0c\u6574\u578b \u5426 \u6bcf\u79d2\u949f\u5141\u8bb8\u7684\u8bf7\u6c42\u6570 \u652f\u6301microservice\u3001schema\u3001operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e servicecomb.flowcontrol.Consumer.qps.global.bucket \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0bconsumer\u6876\u7684\u5927\u5c0f \u6ca1\u6709\u5177\u4f53\u7684\u6d41\u63a7\u914d\u7f6e\u65f6\uff0c\u6b64\u914d\u7f6e\u751f\u6548 servicecomb.flowcontrol.Consumer.qps.bucket.[ServiceName].[Schema].[operation] \u4e24\u500dlimit\u5927\u5c0f\uff0c\u4e0d\u8d85\u8fc7max int (0,2147483647]\uff0c\u6574\u578b \u5426 \u4ee4\u724c\u6876\u573a\u666f\u4e0b\u6876\u7684\u5927\u5c0f \u652f\u6301microservice/schema/operation\u4e09\u4e2a\u7ea7\u522b\u7684\u914d\u7f6e\uff0c\u540e\u8005\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u524d\u8005 <p>\u6ce8\u610f\uff1a strategy\u662f\u5168\u5c40\u7684\u7b56\u7565\u9009\u62e9\uff0c\u4e00\u65e6\u9009\u62e9\u6240\u6709\u6d41\u63a7\u63a5\u53e3\u90fd\u4f1a\u5e94\u7528\u7edf\u4e00\u7684\u6d41\u63a7\u7b56\u7565\uff0c\u4e14\u4e0d\u652f\u6301\u52a8\u6001\u914d\u7f6e\u53d8\u66f4\uff0c\u5982\u679c\u53d8\u66f4\u6d41\u63a7\u7b56\u7565\u9700\u8981\u91cd\u542f\u670d\u52a1\u3002</p> <p>\u6ce8\u610f\uff1a consumer\u7aef\u9650\u6d41\u7b56\u7565\u914d\u7f6e\u4e2d\u7684<code>ServiceName</code>\u3001<code>schema</code>\u3001<code>operation</code> \u6307\u7684\u662f\u8bf7\u6c42\u7684\u76ee\u6807\u670d\u52a1\u3002</p> <p><code>ANY</code> \u662f\u4e00\u4e2a\u7279\u6b8a\u7684 <code>ServiceName</code>\uff0c \u8868\u793a\u4e0d\u533a\u5206\u6765\u6e90\u5fae\u670d\u52a1\uff0c \u5bf9\u6240\u6709\u5fae\u670d\u52a1\u4f7f\u7528\u540c\u6837\u7684\u7b56\u7565\u3002 \u6bd4\u5982  <code>servicecomb.flowcontrol.Consumer.qps.limit.ANY.mySchema.myOperation=200</code> \u8868\u793a\u5bf9 <code>mySchema.myOperation</code> \u5355\u72ec\u9650\u5236 200 \u7684\u6d41\u91cf\u3002 \u5982\u679c\u4e0d\u540c\u5fae\u670d\u52a1\u5b58\u5728\u4e00\u6837\u7684 <code>schema</code>\u3001<code>operation</code>\uff0c \u5219\u5171\u4eab\u4e00\u4e2a\u6d41\u91cf\u63a7\u5236\u3002<code>ANY</code> \u5728 Consumer \u6d41\u63a7\u5f88\u5c11\u4f7f\u7528\u3002</p>"},{"location":"references-handlers/router.html","title":"\u7070\u5ea6\u53d1\u5e03","text":"<p>\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03\u53ef\u4ee5\u5b9e\u73b0\u7248\u672c\u7684\u96f6\u4e2d\u65ad\u5347\u7ea7\u3002\u5047\u8bbe\u5fae\u670d\u52a1A\u5f53\u524d\u662fv1\u7248\u672c\uff0cv1\u7248\u672c\u5b58\u5728\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u73b0\u5728\u9700\u8981\u5347\u7ea7\u5230\u5230v2\u7248\u672c\u3002\u9996\u5148\u914d\u7f6e\u4e00\u4e2a\u7070\u5ea6 \u53d1\u5e03\u89c4\u5219\uff0c\u5c06100%\u7684\u6d41\u91cf\u6307\u5411v1\u7248\u672c\uff1b\u914d\u7f6e\u89c4\u5219\u751f\u6548\u540e\uff0c\u90e8\u7f72v2\u7248\u672c\uff1bv2\u7248\u672c\u542f\u52a8\u5b8c\u6bd5\uff0c\u914d\u7f6e10%\u7684\u6d41\u91cf\u5230v2\u7248\u672c\uff1b\u5f53v2\u7248\u672c \u8fd0\u884c\u7a33\u5b9a\uff0c\u914d\u7f6e100%\u7684\u6d41\u91cf\u5230v2\u7248\u672c\uff1b\u505c\u6b62v1\u7248\u672c\u7684\u5b9e\u4f8b\u3002</p> <ul> <li>\u524d\u63d0\u6761\u4ef6\uff1a\u7070\u5ea6\u53d1\u5e03\u4f9d\u8d56\u8d1f\u8f7d\u5747\u8861\u7ba1\u7406\u6a21\u5757\uff0c \u53c2\u8003\u8d1f\u8f7d\u5747\u8861 \u3002 </li> </ul> \u914d\u7f6e\u9879\u540d \u63cf\u8ff0 servicecomb.routeRule.[targetService] \u76ee\u6807\u670d\u52a1\u7684\u8def\u7531\u7ba1\u7406\u89c4\u5219 servicecomb.router.type \u586b\u5199'router' <p>\u7070\u5ea6\u53d1\u5e03\u89c4\u5219\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb: \n  router:\n    type: router\n  routeRule:\n    business: |\n      - precedence: 2\n        match:\n          apiPath:\n            prefix: \"/business/v2\"\n        route:\n          - weight: 100\n            tags:\n              version: 2.0.0\n      - precedence: 1\n        match:\n          apiPath:\n            prefix: \"/business/v1/dec\"\n        route:\n          - weight: 50\n            tags:\n              version: 1.1.0\n          - weight: 50\n            tags:\n              version: 2.0.0\n\n</code></pre>"},{"location":"references-handlers/router.html#_2","title":"\u89c4\u5219\u8bf4\u660e","text":"<ul> <li>\u5339\u914d\u7279\u5b9a\u8bf7\u6c42\u7531match\u914d\u7f6e,  match\u7684\u914d\u7f6e\u903b\u8f91\u548c \u6d41\u91cf\u7279\u5f81\u6cbb\u7406 \u4e00\u81f4\u3002</li> <li>\u8f6c\u53d1\u6743\u91cd\u5b9a\u4e49\u5728routeRule.{targetServiceName}.route\u4e0b\uff0c\u7531weight\u914d\u7f6e\uff0cweight\u6570\u503c\u8868\u793a\u767e\u5206\u6570\uff0c\u9700\u8981\u6ee1\u8db3\u52a0\u548c\u7b49\u4e8e100\uff0c\u4e0d\u6ee1\u8db3100\u7684\u90e8\u5206\u4f1a\u7528\u6700\u65b0\u7248\u672c\u586b\u5145\u3002</li> <li>\u670d\u52a1\u5206\u7ec4\u5b9a\u4e49\u5728routeRule.{targetServiceName}.route\u4e0b\uff0c\u7531tags\u914d\u7f6e\uff0c\u914d\u7f6e\u5185\u5bb9\u6709version\u548capp\u3002</li> <li>\u4f18\u5148\u7ea7\u6570\u91cf\u8d8a\u5927\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002</li> </ul>"},{"location":"references-handlers/router.html#_3","title":"\u5339\u914d\u6d41\u7a0b","text":"<p>\u5bf9\u4e8e\u4e0a\u9762\u7684\u793a\u4f8b\u914d\u7f6e\uff0c\u6240\u6709\u8bbf\u95eeprovider\u670d\u52a1\u7684\u8bf7\u6c42\uff0c\u9996\u5148\u5c1d\u8bd5\u4e0e\u4f18\u5148\u7ea7\u4e3a2\u7684\u7b2c\u4e00\u4e2a\u7684match\u89c4\u5219\u8fdb\u884c\u5339\u914d header\uff1aheader\u5b58\u5728key\u4e3aregion\u7684\u6309\u7167\u6b63\u5219\u89c4\u5219\u533a\u5206\u5927\u5c0f\u5199\u5339\u914d\uff0c\u5b58\u5728key\u4e3atype\u7684\u8fdb\u884c\u5b57\u7b26\u4e32\u7cbe\u51c6\u5339\u914d\u3002\u82e5\u5339\u914d match\u6210\u529f\u5219\u6309\u7167route\u7684\u914d\u7f6e\u5206\u914d100%\u7684\u6d41\u91cf\u5230version\u548ctags\u5bf9\u5e94\u7684\u5b9e\u4f8b\u3002\u82e5\u5339\u914dmatch\u5931\u8d25\u5219\u8fdb\u5165\u4e0b\u4e2a\u4f18\u5148\u7ea7\u4e3a1\u7684\u89c4\u5219\u3002\u4e0d\u540c\u89c4\u5219\u4f18\u5148\u7ea7\u4e0d\u80fd\u76f8\u7b49\u3002</p>"},{"location":"references-handlers/router.html#_4","title":"\u5f02\u5e38\u60c5\u51b5\u7684\u5904\u7406","text":"<p>\u5982\u679c\u56e0\u4e3a\u89c4\u5219\u914d\u7f6e\u9519\u8bef\uff0c\u6216\u8005\u6ca1\u6709match\u5230\u4efb\u4f55\u4e00\u6761\u89c4\u5219\uff0c\u6d41\u91cf\u4f1a\u76f4\u63a5\u8df3\u8fc7\u7070\u5ea6\u89c4\u5219\uff0c\u76f8\u5f53\u4e8e\u6ca1\u6709\u7070\u5ea6\u53d1\u5e03\u914d\u7f6e\u3002</p> <p>\u5982\u679c\u5df2\u7ecf\u5339\u914d\u4e86match\uff0c\u56e0\u4e3a\u5bf9\u5e94\u7684version\u6216\u8005tags\u627e\u4e0d\u5230\u5b9e\u4f8b\uff0c\u5219\u5269\u4f59\u6d41\u91cf\u81ea\u52a8\u8f6c\u53d1\u5230\u76ee\u524d\u7684\u6700\u65b0\u7248\u672c\u3002</p>"},{"location":"references-handlers/rule-governance.html","title":"\u6d41\u91cf\u7279\u5f81\u6cbb\u7406","text":"<p>\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u65e8\u5728\u63d0\u4f9b\u4e00\u79cd\u901a\u7528\u7684\uff0c\u9002\u5408\u4e0d\u540c\u8bed\u8a00\u3001\u4e0d\u540c\u5fae\u670d\u52a1\u5f00\u53d1\u6846\u67b6\u7684\u6cbb\u7406\u89c4\u5219\u3002\u6cbb\u7406\u89c4\u5219\u89c4\u5b9a\u4e86\u5fae\u670d\u52a1\u6cbb\u7406\u7684\u8fc7\u7a0b\u3001\u6cbb\u7406\u7684\u7b56\u7565\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u5f00\u53d1\u6846\u67b6\u3001\u6280\u672f\u5b9e\u73b0\u6cbb\u7406\u89c4\u5219\u7ea6\u5b9a\u7684\u6cbb\u7406\u80fd\u529b\u3002</p> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u5728 Java Chassis, Spring Cloud, Go Chassis \u4e2d\u4f7f\u7528\u8be5\u529f\u80fd\u3002</p> <p>Java Chassis\u63d0\u4f9b\u4e86\u5b9e\u73b0 SDK\uff0c\u53ef\u4ee5\u5c06\u5176\u7528\u4e8e\u5176\u4ed6\u5f00\u53d1\u6846\u67b6\u3002SDK \u9ed8\u8ba4\u91c7\u7528 Resilience4j \u5b9e\u73b0\u6cbb\u7406\u8fc7\u7a0b\uff0c\u5e76\u5728\u89c4\u8303\u4e2d\u53c2\u8003\u5f15\u7528\u4e86\u5f88\u591a\u5176\u8bbe\u8ba1\u7406\u5ff5\u3002\u89c4\u8303\u6ca1\u6709\u7ea6\u675f\u6cbb\u7406\u8fc7\u7a0b\u7684\u5b9e\u73b0\u6846\u67b6\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u4f7f\u7528\u5176\u4ed6\u7684\u6cbb\u7406\u6846\u67b6\u5b9e\u73b0\u6cbb\u7406\u8fc7\u7a0b\u3002 </p>"},{"location":"references-handlers/rule-governance.html#_2","title":"\u6982\u5ff5\u5b9a\u4e49","text":"<p>\u6d41\u91cf\u7279\u5f81\u6cbb\u7406\u53ef\u4ee5\u4ece\u4e24\u4e2a\u4e0d\u540c\u7684\u89d2\u5ea6\u8fdb\u884c\u63cf\u8ff0\u3002</p> <p>\u4ece\u7ba1\u7406\u6d41\u7a0b\u4e0a\uff0c\u53ef\u4ee5\u5206\u4e3a\u8fdb\u884c <code>\u4e1a\u52a1\u5b9a\u4e49</code> \u548c\u8bbe\u7f6e <code>\u6cbb\u7406\u89c4\u5219</code> \u4e24\u4e2a\u6b65\u9aa4\u3002\u7cfb\u7edf\u67b6\u6784\u5e08\u5c06\u8bf7\u6c42\u6d41\u91cf\u6839\u636e\u7279\u5f81\u6253\u4e0a\u6807\u8bb0\uff0c\u7528\u4e8e\u533a\u5206\u4e00\u4e2a\u6216\u8005\u4e00\u7ec4\u4ee3\u8868\u5177\u4f53\u542b\u4e49\u7684\u4e1a\u52a1\uff0c\u7136\u540e\u5bf9\u8fd9\u4e9b\u4e1a\u52a1\u8bbe\u7f6e\u6cbb\u7406\u89c4\u5219\u3002</p> <p>\u4ece\u5904\u7406\u8fc7\u7a0b\u4e0a\uff0c\u53ef\u4ee5\u5206\u4e3a <code>\u4e0b\u53d1\u914d\u7f6e</code> \u548c \u5e94\u7528 <code>\u6cbb\u7406\u89c4\u5219</code> \u4e24\u4e2a\u6b65\u9aa4\u3002 \u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u3001\u914d\u7f6e\u4e2d\u5fc3\u3001\u73af\u5883\u53d8\u91cf\u7b49\u5e38\u89c1\u7684\u914d\u7f6e\u7ba1\u7406\u624b\u6bb5\u4e0b\u53d1\u914d\u7f6e\u3002\u5fae\u670d\u52a1 SDK \u8d1f\u8d23\u8bfb\u53d6\u914d\u7f6e\uff0c\u89e3\u6790\u6cbb\u7406\u89c4\u5219\uff0c\u5b9e\u73b0\u6cbb\u7406\u6548\u679c\u3002</p> <ul> <li><code>\u4e1a\u52a1\u5b9a\u4e49</code></li> </ul> <p>\u53ef\u4ee5\u6839\u636e\u8bf7\u6c42\u7684\u7279\u5f81\u8fdb\u884c\u4e1a\u52a1\u5b9a\u4e49\u3002</p> <pre><code>servicecomb:\n  matchGroup:\n    userLoginAction: |\n      matches:\n        - apiPath:\n            exact: \"/login\"\n          method:\n            - POST\n        - headers:\n          Authentication: \n            prefix: Basic\n</code></pre> <p>\u6bd4\u5982\u4e0a\u9762\u7684\u793a\u4f8b\u5b9a\u4e49\u4e86\u4e00\u4e2a\u4e1a\u52a1 <code>userLoginAction</code>\uff0c\u5982\u679c\u6d41\u91cf\u7684 <code>apiPath=/login&amp;method=POST</code>\uff0c \u6216\u8005 \u8bf7\u6c42\u5934 <code>Authentication=Basic*</code> \u90a3\u4e48\u8ba4\u4e3a\u8fd9\u4e2a\u6d41\u91cf\u662f\u4e00\u4e2a\u767b\u9646\u64cd\u4f5c\u3002</p> <ul> <li><code>\u6cbb\u7406\u89c4\u5219</code></li> </ul> <p>\u5b9a\u4e49\u597d\u4e1a\u52a1\u540e\uff0c\u53ef\u4ee5\u7ed9\u5b83\u4eec\u8bbe\u7f6e\u6cbb\u7406\u89c4\u5219\u3002</p> <pre><code>servicecomb:\n  rateLimiting:\n    userLoginAction: |\n      rate: 100\n</code></pre> <p>\u6bd4\u5982\u4e0a\u9762\u7684\u793a\u4f8b\u8bbe\u7f6e <code>userLoginAction</code> \u7684\u9650\u6d41\u7b56\u7565\u662f 100 TPS\u3002 </p>"},{"location":"references-handlers/rule-governance.html#_3","title":"\u89c4\u8303\u53c2\u8003","text":""},{"location":"references-handlers/rule-governance.html#_4","title":"\u4e1a\u52a1\u5b9a\u4e49","text":"<pre><code>servicecomb:\n  matchGroup:\n    userLoginAction: |\n      matches:\n        - name: firstMatch\n          apiPath:\n            exact: \"/login/v1\"\n          method:\n            - POST\n          headers:\n            Authentication: \n              prefix: Basic\n          serviceName: exampleService\n        - name: secondeMatch\n          apiPath:\n            exact: \"/login/v2\"\n          method:\n            - POST\n          headers:\n            Authentication: \n              prefix: Basic\n           serviceName: exampleService\n      services: exampleService\n      name: userLoginAction\n</code></pre> <p>\u4e00\u4e2a\u4e1a\u52a1\u5bf9\u5e94\u4e00\u4e2a Key\uff0c userLoginAction \u4e3a Key \u7684\u540d\u79f0\u3002 \u4e00\u4e2a\u4e1a\u52a1\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u6807\u8bb0\u89c4\u5219\uff0c\u6bcf\u4e2a\u6807\u8bb0\u89c4\u5219\u91cc\u9762\u53ef\u4ee5\u5b9a\u4e49 <code>apiPath</code>, <code>method</code>, <code>headers</code>, <code>serviceName</code> \u7b49\u5339\u914d\u89c4\u5219\u3002 \u4e0d\u540c\u6807\u8bb0\u89c4\u5219\u662f\u6216\u7684\u5173\u7cfb\uff0c\u5339\u914d\u89c4\u5219\u662f\u4e0e\u7684\u5173\u7cfb\u3002</p> <ul> <li> <p><code>services</code>: \u53ef\u9009\u3002\u6307\u51fa\u8fd9\u4e2a\u4e1a\u52a1\u5b9a\u4e49\u7684\u751f\u6548\u8303\u56f4\u3002 \u5728\u5e94\u7528\u7cfb\u7edf\u4e2d\uff0c\u4e1a\u52a1\u5b9a\u4e49\u53ef\u80fd\u5bf9\u4e8e\u6240\u6709\u5fae\u670d\u52a1\u90fd\u662f\u53ef\u89c1\u7684\uff08\u5982\u679c\u4e1a\u52a1\u5b9a\u4e49\u53ea\u4e0b\u53d1\u5230\u8be5\u5fae\u670d\u52a1\uff0c\u5219\u4e0d\u9700\u8981\u8fd9\u4e2a\u914d\u7f6e\uff09\uff0c\u4e00\u4e2a\u5fae\u670d\u52a1\u53ea\u4f1a\u542f\u7528 <code>services</code> \u5305\u542b\u81ea\u5df1\u7684\u89c4\u5219\u3002\u8fd9\u4e2a\u5c5e\u6027\u53ef\u9009\uff0c\u8868\u793a\u8fd9\u6761\u89c4\u5219\u9ed8\u8ba4\u751f\u6548\u3002\u53ef\u4ee5\u4f7f\u7528 <code>example:1.0.0</code> \u683c\u5f0f\u6307\u660e\u670d\u52a1\u548c\u7248\u672c\uff0c\u591a\u4e2a\u670d\u52a1\u7528\u9017\u53f7\u5206\u9694\uff0c\u6bd4\u5982\uff1a<code>foo:1.0.0,bar</code>\u3002</p> </li> <li> <p><code>name</code>: \u53ef\u9009\u3002\u4e1a\u52a1\u5b9a\u4e49\u7684\u540d\u79f0\u3002</p> </li> </ul> <p>\u5728match\u4e2d\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u7b97\u5b50\u6765\u5bf9 <code>apiPath</code> \u6216\u8005 <code>headers</code> \u8fdb\u884c\u5339\u914d. </p> <ul> <li><code>exact</code>: \u7cbe\u786e\u5339\u914d</li> <li><code>prefix</code>: \u524d\u7f00\u5339\u914d</li> <li><code>suffix</code>: \u540e\u7f00\u5339\u914d</li> <li><code>contains</code>: \u5305\u542b\uff0c \u76ee\u6807\u5b57\u7b26\u4e32\u662f\u5426\u5305\u542b\u6a21\u5f0f\u5b57\u7b26\u4e32</li> <li><code>compare</code>: \u6bd4\u8f83\uff1a \u652f\u6301 &gt;,&lt;,&gt;=,&lt;=,=,!= \u7b26\u53f7\u5339\u914d\uff0c\u5904\u7406\u65f6\u4f1a\u628a\u6a21\u5f0f\u5b57\u7b26\u4e32\u548c\u76ee\u6807\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a Double \u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83\uff0c\u652f\u6301\u7684\u6570\u636e\u8303\u56f4\u4e3a Double \u7684\u6570\u636e\u8303\u56f4\u3002\u5728\u8fdb\u884c = \u548c != \u5224\u65ad\u65f6 \uff0c \u5982\u679c\u4e8c\u8005\u7684\u5dee\u503c\u5c0f\u4e8e1e-6\u5c31\u89c6\u4e3a\u76f8\u7b49\u3002\u4f8b\u5982\u6a21\u5f0f\u4e32\u4e3a: &gt;-10 \u4f1a\u5bf9\u5927\u4e8e-10\u4ee5\u4e0a\u7684\u76ee\u6807\u4e32\u5339\u914d\u6210\u529f\u3002</li> </ul> <p>\u4e1a\u52a1\u5b9a\u4e49\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5e94\u7528\u5c42\u5b9e\u73b0\uff0c\u6bd4\u5982\u5728\u63d0\u4f9b REST \u63a5\u53e3\u7684\u670d\u52a1\u7aef\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>HttpServletRequest</code> \u83b7\u53d6\u8bf7\u6c42\u4fe1\u606f\u3002\u5728 RestTemplate \u8c03\u7528\u7684\u5ba2\u6237\u7aef\uff0c\u53ef\u4ee5\u4ece <code>RestTemplate</code> \u83b7\u53d6\u8bf7\u6c42\u4fe1\u606f\u3002\u4e0d\u540c\u7684\u6846\u67b6\u548c\u5e94\u7528\u5c42\uff0c\u63d0\u53d6\u4fe1\u606f\u7684\u65b9\u5f0f\u4e0d\u4e00\u6837\u3002 \u5b9e\u73b0\u5c42\u901a\u8fc7\u5c06\u7279\u5f81\u6620\u5c04\u5230 <code>GovernanceRequest</code> \u6765\u5c4f\u853d\u8fd9\u4e9b\u5dee\u5f02\uff0c\u4f7f\u5f97\u5728\u4e0d\u540c\u7684\u6846\u67b6\uff0c\u4e0d\u540c\u7684\u5e94\u7528\u5c42\u90fd\u53ef\u4ee5\u4f7f\u7528\u6cbb\u7406\u3002</p> <pre><code>public class GovernanceRequest {\n     /**\n      headers with this request, maybe null.\n      For provider: headers indicates the request headers to me.\n      For consumer: headers indicates the request headers to the target.\n      */\n     private Map&lt;String, String&gt; headers;\n\n     /**\n      uri with this request, maybe null.\n      For provider: uri indicates the request uri to me.\n      For consumer: uri indicates the request uri to the target.\n      */\n     private String uri;\n\n     /**\n      method with this request, maybe null.\n      For provider: method indicates the request method to me.\n      For consumer: method indicates the request method to the target.\n      */\n     private String method;\n\n     /**\n      instance id with this request, maybe null.\n      For provider: instanceId indicates who calls me.\n      For consumer: instanceId indicates the target instance.\n      */\n     private String instanceId;\n\n     /**\n      microservice id (microservice name or application name + microservice name) with this request, maybe null.\n      For provider: serviceName indicates who calls me.\n      For consumer: serviceName indicates the target service.\n      */\n     private String serviceName;\n}\n\n</code></pre>"},{"location":"references-handlers/rule-governance.html#_5","title":"\u9650\u6d41","text":"<pre><code>servicecomb:\n  rateLimiting:\n    userLoginAction: |\n      timeoutDuration: 0\n      limitRefreshPeriod: 1000\n      rate: 1\n</code></pre> <p>\u89c4\u5219\u89e3\u91ca\uff1a\u9650\u6d41\u89c4\u5219\u501f\u9274\u4e86<code>Resilience4j</code>\u7684\u601d\u60f3\uff0c\u5176\u539f\u7406\u4e3a\uff1a \u6bcf\u9694limitRefreshPeriod\u7684\u65f6\u95f4\u4f1a\u52a0\u5165limitForPeriod\uff08\u5373rate\uff09\u4e2a\u65b0\u8bb8\u53ef\uff0c\u5982\u679c\u83b7\u53d6\u4e0d\u5230\u65b0\u7684\u8bb8\u53ef(\u5df2\u7ecf\u89e6\u53d1\u9650\u6d41)\uff0c\u5f53\u524d\u7ebf\u7a0b\u4f1apark\uff0c\u6700\u591a\u7b49\u5f85timeoutDuration\u7684\u65f6\u95f4\uff0c\u9ed8\u8ba4\u5355\u4f4d\u4e3a\u6beb\u79d2\u3002</p>"},{"location":"references-handlers/rule-governance.html#header","title":"\u57fa\u4e8eheader\u7684\u9650\u6d41","text":"<pre><code>servicecomb:\n  identifierRateLimiting:\n    userLoginAction: |\n      timeoutDuration: 0\n      limitRefreshPeriod: 1000\n      rate: 1\n      identifier: user-id\n</code></pre> <p>\u57fa\u4e8eheader\u7684\u9650\u6d41\u548c\u9650\u6d41\u542b\u4e49\u7c7b\u4f3c\uff0c\u5b83\u4f1a\u9488\u5bf9 <code>identifier</code> \u6307\u5b9a\u7684 header \u503c\uff0c \u6bcf\u4e2a\u503c\u521b\u5efa\u4e00\u4e2a\u9650\u6d41\u5668\u3002</p>"},{"location":"references-handlers/rule-governance.html#_6","title":"\u91cd\u8bd5","text":"<pre><code>servicecomb:\n  retry:\n    userLoginAction: |\n      maxAttempts: 3\n      retryOnSame: 0\n      retryOnResponseStatus: \n         - 502\n         - 503\n      waitDuration: 1\n</code></pre> <p>\u89c4\u5219\u89e3\u91ca\uff1a\u91cd\u8bd5\u89c4\u5219\u501f\u9274\u4e86<code>Resilience4j</code>\u7684\u601d\u60f3\uff0c\u5176\u539f\u7406\u4e3a\uff1a\u5982\u679c\u54cd\u5e94\u7684\u9519\u8bef\u7801(502, 503)\u8ba1\u7b97\u7ed3\u679c\u6ee1\u8db3\u91cd\u8bd5\u6761\u4ef6\uff0c\u6216\u8005\u5f02\u5e38\u5728\u91cd\u8bd5\u5f02\u5e38\u6e05\u5355\u91cc\u9762\uff0c\u5219\u8fdb\u884c\u91cd\u8bd5\u3002\u4e0b\u4e00\u6b21\u91cd\u8bd5\u7b49\u5f85\u65f6\u95f4\u4e3a waitDuration\u3002 </p> <p>\u91cd\u8bd5\u7b49\u5f85\u65f6\u95f4\u548c\u5177\u4f53\u7684\u6846\u67b6\u4e0e\u8fd0\u884c\u673a\u5236\u6709\u5173\u3002\u91cd\u8bd5\u7b49\u5f85\u65f6\u95f4\u5fc5\u987b\u5927\u4e8e0\u3002</p>"},{"location":"references-handlers/rule-governance.html#_7","title":"\u7194\u65ad","text":"<pre><code>servicecomb:\n  circuitBreaker:\n    userLoginAction: |\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 60000\n      minimumNumberOfCalls: 100\n      slidingWindowType: COUNT_BASED\n      slidingWindowSize: 100\n      recordFailureStatus:\n        - 502\n        - 503\n      waitDurationInOpenState: 60000\n      permittedNumberOfCallsInHalfOpenState: 10\n      forceClosed: false\n      forceOpen: false\n</code></pre> <p>\u89c4\u5219\u89e3\u91ca\uff1a\u7194\u65ad\u89c4\u5219\u501f\u9274\u4e86<code>Resilience4j</code>\u7684\u601d\u60f3\uff0c\u5176\u539f\u7406\u4e3a\uff1a\u8fbe\u5230\u6307\u5b9a failureRateThreshold \u9519\u8bef\u7387\u6216\u8005 slowCallRateThreshold \u6162\u8bf7\u6c42\u7387\u65f6\u8fdb\u884c\u7194\u65ad\uff0c\u6162\u8bf7\u6c42\u901a\u8fc7 slowCallDurationThreshold \u5b9a\u4e49\u3002minimumNumberOfCalls \u662f\u8fbe\u5230\u7194\u65ad\u8981\u6c42\u7684\u6700\u4f4e\u8bf7\u6c42\u6570\u91cf\u95e8\u69db\u3002slidingWindowType\u6307\u5b9a\u6ed1\u52a8\u7a97\u53e3 \u7c7b\u578b\uff0c\u9ed8\u8ba4\u53ef\u9009 COUNT_BASED\u548cTIME_BASED \u5206\u522b\u662f\u57fa\u4e8e\u8bf7\u6c42\u6570\u91cf\u7a97\u53e3\u548c\u57fa\u4e8e\u65f6\u95f4\u7a97\u53e3\u3002slidingWindowSize \u6307\u5b9a\u7a97\u53e3\u5927\u5c0f\uff0c\u6839\u636e\u6ed1\u52a8\u7a97\u53e3\u7c7b\u578b\uff0c\u5355\u4f4d\u662f\u8bf7\u6c42\u6570\u91cf\u6216\u8005\u79d2\uff0c\u6839\u636e\u6ed1\u52a8\u7a97\u53e3\u7c7b\u578b\u51b3\u5b9a\u3002 forceClosed \u8868\u793a\u5f3a\u5236\u5173\u95ed\u7194\u65ad\u5668\uff0c\u5373\u7194\u65ad\u5668\u4e0d\u5de5\u4f5c\uff1bforceOpen\u8868\u793a\u5f3a\u5236\u5f00\u542f\u7194\u65ad\u5668\uff0c\u5373\u8bf7\u6c42\u90fd\u4f1a\u53d1\u751f\u7194\u65ad\u3002</p> <p>\u7194\u65ad\u65f6\u95f4\u662fwaitDurationInOpenState\uff0c\u8fbe\u5230\u65f6\u95f4\u4f1a\u653e\u901apermittedNumberOfCallsInHalfOpenState\u4e2a\u8bf7\u6c42\u3002\u653e\u901a\u540e\uff0c\u5982\u679c\u964d\u4f4e\u5230\u9608\u503c\u4e00\u4e0b\uff0c\u5219\u6062\u590d\uff1b\u5982\u679c\u6ca1\u6709\u964d\u4f4e\u5230\u9608\u503c\u4ee5\u4e0b\uff0c\u5219\u7ee7\u7eed\u9694\u79bb\u3002</p>"},{"location":"references-handlers/rule-governance.html#_8","title":"\u5b9e\u4f8b\u7ea7\u7194\u65ad","text":"<pre><code>servicecomb:\n  instanceIsolation:\n    userLoginAction: |\n      failureRateThreshold: 50\n      slowCallRateThreshold: 100\n      slowCallDurationThreshold: 60000\n      minimumNumberOfCalls: 100\n      slidingWindowType: COUNT_BASED\n      slidingWindowSize: 100\n      recordFailureStatus:\n        - 502\n        - 503\n      waitDurationInOpenState: 60000\n      permittedNumberOfCallsInHalfOpenState: 10\n      forceClosed: false\n      forceOpen: false\n</code></pre> <p>\u5b9e\u4f8b\u7ea7\u7194\u65ad\u548c\u7194\u65ad\u7684\u542b\u4e49\u7c7b\u4f3c\uff0c\u4f46\u662f\u4ed6\u4f1a\u9488\u5bf9\u6bcf\u4e2a\u5b9e\u4f8b\u521b\u5efa\u4e00\u4e2a\u7194\u65ad\u5668\u3002Java Chassis\u4f1a\u76d1\u542c\u5b9e\u4f8b\u7194\u65ad\u4e8b\u4ef6\uff0c\u5e76\u8c03\u6574\u7194\u65ad\u5b9e\u4f8b\u7684\u4f18\u5148\u7ea7\uff0c\u964d\u4f4e\u5bf9\u7194\u65ad\u5b9e\u4f8b\u7684\u4f7f\u7528\u9891\u7387\u4ee5\u8fbe\u5230\u5b9e\u4f8b\u9694\u79bb\u7684\u4f5c\u7528\u3002</p>"},{"location":"references-handlers/rule-governance.html#_9","title":"\u9694\u79bb\u4ed3","text":"<pre><code>servicecomb:\n  bulkhead:\n    userLoginAction: |\n      maxConcurrentCalls: 1000\n      maxWaitDuration: 0\n</code></pre> <p>\u89c4\u5219\u89e3\u91ca\uff1a\u9694\u79bb\u4ed3\u89c4\u5219\u501f\u9274\u4e86<code>Resilience4j</code>\u7684\u601d\u60f3\uff0c\u5176\u539f\u7406\u4e3a\uff1a\u5f53\u6700\u5927\u5e76\u53d1\u6570\u8d85\u8fc7 maxConcurrentCalls\uff0c\u7b49\u5f85 maxWaitDuration \u7ade\u4e89\u8d44\u6e90\uff0c\u5982\u679c\u83b7\u5f97\u8d44\u6e90\uff0c\u5219\u7ee7\u7eed\u5904\u7406\uff0c\u5982\u679c\u83b7\u53d6\u4e0d\u5230\uff0c\u5219\u62d2\u7edd\u6267\u884c\u8bf7\u6c42\u3002\u5728\u5f02\u6b65\u6846\u67b6\uff0c\u5efa\u8bae maxWaitDuration \u8bbe\u7f6e\u4e3a0\uff0c\u9632\u6b62\u963b\u585e\u4e8b\u4ef6\u6d3e\u53d1\u7ebf\u7a0b\u3002</p>"},{"location":"references-handlers/rule-governance.html#_10","title":"\u5b9e\u4f8b\u7ea7\u9694\u79bb\u4ed3","text":"<pre><code>servicecomb:\n  instanceBulkhead:\n    userLoginAction: |\n      maxConcurrentCalls: 1000\n      maxWaitDuration: 0\n</code></pre> <p>\u5b9e\u4f8b\u7ea7\u9694\u79bb\u4ed3\u548c\u9694\u79bb\u4ed3\u7684\u542b\u4e49\u7c7b\u4f3c\uff0c\u4f46\u662f\u4ed6\u4f1a\u9488\u5bf9\u6bcf\u4e2a\u5b9e\u4f8b\u521b\u5efa\u4e00\u4e2a\u9694\u79bb\u4ed3\u3002</p>"},{"location":"references-handlers/rule-governance.html#_11","title":"\u9519\u8bef\u6ce8\u5165","text":"<pre><code>servicecomb:\n  faultInjection:\n    userLoginAction: |\n      type: delay\n      delayTime: 1000\n      percentage: 50\n      errorCode: 500\n      fallbackType: ThrowException\n      forceClosed: false\n</code></pre> <p>\u89c4\u5219\u89e3\u91ca\uff1a\u9519\u8bef\u6ce8\u5165\u5206\u4e3a <code>delay</code> \u548c <code>abort</code> \u4e24\u79cd\u3002<code>delay</code> \u8868\u793a\u5bf9\u4e8e <code>percentage</code> \u7684\u8bf7\u6c42\uff0c\u5ef6\u8fdf <code>delayTime</code>\u3002 <code>abort</code> \u8868\u793a\u5bf9\u4e8e <code>percentage</code> \u7684\u8bf7\u6c42\uff0c\u6839\u636e <code>fallbackType</code> \u629b\u51fa\u5f02\u5e38\u8fd8\u662f\u8fd4\u56de null\u3002 </p>"},{"location":"references-handlers/rule-governance.html#_12","title":"\u516c\u5171\u53c2\u6570","text":"<p>\u6cbb\u7406\u89c4\u5219\u5b58\u5728\u4e00\u4e9b\u516c\u5171\u53c2\u6570\uff0c \u6bd4\u5982 <code>services</code>, <code>order</code>, <code>name</code>\u3002\u6bd4\u5982\uff1a</p> <pre><code>servicecomb:\n  faultInjection:\n    userLoginAction: |\n      type: delay\n      delayTime: 1000\n      percentage: 50\n      errorCode: 500\n      fallbackType: ThrowException\n      forceClosed: false\n      services: helloService\n      order: 1\n      name: userLoginAction\n</code></pre> <ul> <li>services: \u8868\u793a\u8be5\u6cbb\u7406\u89c4\u5219\u751f\u6548\u7684\u5fae\u670d\u52a1\u540d\u79f0\u5217\u8868\u3002 \u5728\u5e94\u7528\u7cfb\u7edf\u4e2d\uff0c\u6cbb\u7406\u89c4\u5219\u53ef\u80fd\u5bf9\u4e8e\u6240\u6709\u5fae\u670d\u52a1\u90fd\u662f\u53ef\u89c1\u7684\uff08\u5982\u679c\u6cbb\u7406\u89c4\u5219\u53ea\u4e0b\u53d1\u5230\u8be5\u5fae\u670d\u52a1\uff0c\u5219\u4e0d\u9700\u8981\u8fd9\u4e2a\u914d\u7f6e\uff09\uff0c\u4e00\u4e2a\u5fae\u670d\u52a1\u53ea\u4f1a\u542f\u7528 <code>services</code> \u5305\u542b\u81ea\u5df1\u7684\u89c4\u5219\u3002\u8fd9\u4e2a\u5c5e\u6027\u53ef\u9009\uff0c\u8868\u793a\u8fd9\u6761\u89c4\u5219\u9ed8\u8ba4\u751f\u6548\u3002\u53ef\u4ee5\u4f7f\u7528 <code>example:1.0.0</code> \u683c\u5f0f\u6307\u660e\u670d\u52a1\u548c\u7248\u672c\uff0c\u591a\u4e2a\u670d\u52a1\u7528\u9017\u53f7\u5206\u9694\uff0c\u6bd4\u5982\uff1a<code>foo:1.0.0,bar</code>\u3002</li> <li>order: \u8868\u793a\u8be5\u6cbb\u7406\u89c4\u5219\u7684\u4f18\u5148\u7ea7\uff0c\u503c\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002 \u5f53\u4e00\u4e2a\u8bf7\u6c42\u5339\u914d\u591a\u4e2a\u6cbb\u7406\u89c4\u5219\u7684\u65f6\u5019\uff0c\u6309\u7167\u4f18\u5148\u7ea7\u4f7f\u7528\u4f18\u5148\u7ea7\u9ad8\u7684\u6cbb\u7406\u89c4\u5219\u3002</li> <li>name: \u8868\u793a\u8be5\u6cbb\u7406\u89c4\u5219\u7684\u540d\u79f0\uff0c\u7cfb\u7edf\u5185\u90e8\u4f7f\u7528\u5c5e\u6027\uff0c\u5176\u503c\u7b49\u4e8e\u89c4\u5219\u91cc\u9762\u7684\u4e1a\u52a1\u540d\u79f0\uff0c\u7528\u6237\u4e0d\u80fd\u4fee\u6539\u3002</li> </ul>"},{"location":"registry/distributed.html","title":"\u8f7b\u91cf\u5316\u914d\u7f6e\u4e2d\u5fc3 zero-config","text":"<p>zero-config\u662fJava Chassis\u63d0\u4f9b\u7684\u8f7b\u91cf\u5316\u670d\u52a1\u4e2d\u5fc3\uff0c\u4ee5\u652f\u6301\u5728\u5c0f\u89c4\u6a21\u7684\u5e94\u7528\u573a\u666f\u4e0b\uff0c\u4e0d\u5fc5\u4e13\u95e8\u90e8\u7f72\u72ec\u7acb\u7684\u670d\u52a1\u4e2d\u5fc3\u3002</p> <p>zero-config\u652f\u6301\u591a\u79cd\u5de5\u4f5c\u6a21\u5f0f\uff1a</p> <ul> <li> <p>local   \u5355\u673a\u6a21\u5f0f\uff0c\u6ca1\u6709\u5b9e\u4f8b\u52a8\u6001\u53d1\u73b0\u80fd\u529b\uff0c\u6240\u6709\u7684\u670d\u52a1\u8c03\u7528\uff0c\u90fd\u4f7f\u7528\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u673a\u5236\u5904\u7406\u3002</p> </li> <li> <p>multicast   \u4f7f\u7528UDP\u591a\u64ad\u53d1\u9001\u5fae\u670d\u52a1\u6ce8\u518c\u4fe1\u606f\uff0c\u9002\u7528\u4e8e\u6240\u6709\u5fae\u670d\u52a1\u5b9e\u4f8b\u90fd\u5728\u540c\u4e00\u4e2a\u5b50\u7f51\u5185\u7684\u573a\u666f\uff0c\u6bcf\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u90fd\u76f8\u5f53\u4e8e\u662f\u4e00\u4e2a\u670d\u52a1\u4e2d\u5fc3\u5b9e\u4f8b\u3002</p> </li> </ul> <p>\u4f7f\u7528 zero-config\uff0c \u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;registry-zero-config&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"registry/distributed.html#zero-config_1","title":"zero-config \u76f8\u5173\u914d\u7f6e","text":"<p>\u914d\u7f6e\u524d\u7f00\uff1a <code>servicecomb.registry.zero-config</code></p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 enabled true \u662f\u5426\u4f7f\u7528zero-config\u670d\u52a1\u4e2d\u5fc3\u529f\u80fd mode multicast \u5de5\u4f5c\u6a21\u5f0f\uff0c\u5185\u7f6emulticast\u548clocal\u6a21\u5f0f heartbeat.interval 30s \u53d1\u9001\u6ce8\u518c/\u5fc3\u8df3\u6d88\u606f\u7684\u95f4\u9694 heartbeat.lost-times 3 \u5fc3\u8df3\u4e22\u5931\u8d85\u8fc7\u6307\u5b9a\u7684\u6b21\u6570\uff0c\u5219\u5220\u9664\u76f8\u5e94\u7684\u5b9e\u4f8b pull-interval 3s consumer\u6d41\u7a0b\u66f4\u65b0\u76ee\u6807\u5b9e\u4f8b\u7684\u95f4\u9694 multicast.address 0.0.0.0:6666 UDP\u7684\u672c\u5730bind\u5730\u5740\uff0c \u5bf9\u4e8e\u4e0d\u5141\u8bb8bind 0.0.0.0\u7684\u573a\u666f\uff0c\u9700\u8981\u4fee\u6539\u672c\u914d\u7f6e\u9879\u3002\u6ce8\u610f\uff1a \u76f8\u5e94\u7684\u7f51\u5361\u8981\u6253\u5f00UDP multicast\u529f\u80fd multicast.group 225.6.7.8 UDP multicast\u591a\u64adgroup\u5730\u5740\uff0c\u6839\u636e\u6807\u51c6\uff0c\u5408\u6cd5\u5730\u5740\u8303\u56f4\u4e3a(224.0.0.0, 239.255.255.255]\u3002\u5f00\u53d1\u9636\u6bb5\uff0c\u4e3a\u907f\u514d\u4e0d\u540c\u5f00\u53d1\u4eba\u5458\u4e4b\u95f4\u4ea7\u751f\u73af\u5883\u4e92\u76f8\u5e72\u6270\uff0c \u53ef\u4ee5\u5404\u81ea\u8bbe\u7f6e\u4e0d\u540c\u7684group\u5730\u5740 <p>\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  registry:\n    zero-config:\n      enable: true\n      mode: multicast\n      heartbeat:\n        interval: 30s\n        lost-times: 3\n      pull-interval: 3s\n      multicast:\n        address: 0.0.0.0:6666\n        group: 225.6.7.8\n</code></pre>"},{"location":"registry/introduction.html","title":"\u6ce8\u518c\u53d1\u73b0\u4ecb\u7ecd","text":"<p>\u91c7\u7528\u7f51\u7edc\u63a5\u53e3\u8fdb\u884c\u901a\u4fe1\uff0c\u5e76\u4e14\u652f\u6301\u591a\u5b9e\u4f8b\u5f39\u6027\u6269\u7f29\u5bb9\u662f\u5fae\u670d\u52a1\u4e00\u4e2a\u91cd\u8981\u7684\u7279\u5f81\u3002 \u4e00\u4e2a\u5fae\u670d\u52a1 A \u9700\u8981\u548c\u53e6\u5916\u4e00\u4e2a\u5fae\u670d\u52a1 B \u8fdb\u884c \u901a\u4fe1\uff0c\u9996\u5148\u9700\u8981\u77e5\u9053\u5fae\u670d\u52a1 B \u7684\u7f51\u7edc\u5730\u5740\u4fe1\u606f\uff0c \u8fd9\u4e2a\u8fc7\u7a0b\u4e00\u822c\u662f\u901a\u8fc7\u6ce8\u518c\u53d1\u73b0\u5b9e\u73b0\u7684\u3002 </p> <p>\u6700\u5e38\u89c1\u7684\u670d\u52a1\u53d1\u73b0\u673a\u5236\u662f\u5f15\u5165\u4e00\u4e2a\u4e2d\u95f4\u4ef6\u670d\u52a1\uff0c \u5fae\u670d\u52a1 B \u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5411\u4e2d\u95f4\u4ef6\u670d\u52a1\u6ce8\u518c\u81ea\u5df1\u7684\u7f51\u7edc\u5730\u5740\u4fe1\u606f\uff0c\u5fae\u670d\u52a1 A \u8bbf\u95ee B \u7684\u65f6\u5019\uff0c \u9996\u5148\u4ece\u4e2d\u95f4\u4ef6\u670d\u52a1\u67e5\u8be2\u5fae\u670d\u52a1 B \u7684\u7f51\u7edc\u5730\u5740\u4fe1\u606f\u3002</p> <p>\u5bf9\u4e8e\u89c4\u6a21\u8f83\u5c0f\u7684\u7cfb\u7edf\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u4f7f\u7528\u4e2d\u95f4\u4ef6\u670d\u52a1\uff0c\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5728\u5fae\u670d\u52a1 A \u4e2d\u6307\u5b9a\u5fae\u670d\u52a1 B \u7684\u5730\u5740\u3002\u8fd9\u79cd\u65b9\u5f0f \u9002\u5408\u7ec4\u7f51\u60c5\u51b5\u56fa\u5b9a\uff0c\u4e0d\u4f1a\u5f39\u6027\u6269\u7f29\u5bb9\u7684\u573a\u666f\u3002</p> <p>\u5728\u5c40\u57df\u7f51\u73af\u5883\u4e0b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7ec4\u64ad\u534f\u8bae\uff0c\u6bd4\u5982 mDNS \u53d1\u73b0\u5176\u4ed6\u7684\u670d\u52a1\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u9700\u8981\u505a\u989d\u5916\u7684\u914d\u7f6e\u3002</p>"},{"location":"registry/introduction.html#_2","title":"\u6ce8\u518c\u53d1\u73b0\u4fe1\u606f","text":"<p>Java Chassis\u5b9a\u4e86\u4e86\u51e0\u4e2a\u7ef4\u5ea6\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u6ce8\u518c\u53d1\u73b0\u548c\u914d\u7f6e\u7ba1\u7406\u90fd\u56f4\u7ed5\u8fd9\u51e0\u4e2a\u6838\u5fc3\u6982\u5ff5\u6765\u7ec4\u7ec7\u3002</p> <ul> <li>\u73af\u5883 environment</li> <li>\u5e94\u7528 application </li> <li>\u5fae\u670d\u52a1\u540d\u79f0 name</li> <li>\u5fae\u670d\u52a1\u7248\u672c version </li> <li>\u5b9e\u4f8b\u5730\u5740\u4fe1\u606f Endpoints\uff0c\u4e00\u4e2a\u5b9e\u4f8b\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u534f\u8bae\u7684 Endpoint\u3002  </li> </ul> <p>\u6b64\u5916\u8fd8\u5305\u62ec\u5951\u7ea6(schema\uff09\u3002 \u5951\u7ea6\u662fJava Chassis\u6cbb\u7406\u7ba1\u63a7\u7684\u57fa\u7840\u3002 </p> <p>\u8fd9\u4e9b\u57fa\u672c\u4fe1\u606f\u901a\u8fc7 yaml \u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\uff1a</p> <pre><code>servicecomb:\n  service:\n    application: basic-application\n    name: gateway\n    version: 0.0.1\n\n  rest:\n    address: 0.0.0.0:9090?sslEnabled=false\n</code></pre>"},{"location":"registry/introduction.html#_3","title":"\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u6ce8\u518c\u53d1\u73b0","text":"<p>\u53ef\u4ee5\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u6ce8\u518c\u53d1\u73b0\u7684\u5b9e\u73b0\u3002\u7ec4\u5408\u4e0d\u540c\u7684\u6ce8\u518c\u53d1\u73b0\u7684\u5b9e\u73b0\uff0c\u80fd\u591f\u6ee1\u8db3\u4e00\u4e9b\u975e\u5e38\u91cd\u8981\u573a\u666f\u7684\u9700\u6c42\u3002</p>"},{"location":"registry/introduction.html#_4","title":"\u4f7f\u7528\u591a\u4e2a\u670d\u52a1\u4e2d\u5fc3\u7684\u7ea6\u675f\u548c\u884c\u4e3a","text":"<ul> <li>\u670d\u52a1\u6ce8\u518c</li> </ul> <p>\u53ef\u4ee5\u5f80\u591a\u4e2a\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u6ce8\u518c\uff0c\u4e0d\u540c\u7684\u5b9e\u4f8b\u5728\u6ce8\u518c\u7684\u65f6\u5019\uff0c\u9700\u8981\u4fdd\u8bc1\u6bcf\u4e2a\u5b9e\u4f8b\uff08\u8fdb\u7a0b\uff09\u5177\u5907\u552f\u4e00\u7684\u5b9e\u4f8bID\uff0c\u5982\u679c\u5b9e\u4f8b\u91cd\u542f\uff0c\u9700\u8981\u751f\u6210\u65b0\u7684\u5b9e\u4f8bID\uff0c\u5373\u4f7f\u662f\u5728\u540c\u4e00\u4e2a\u7269\u7406\u4e3b\u673a\u3002</p> <ul> <li>\u670d\u52a1\u53d1\u73b0</li> </ul> <p>\u5b9e\u4f8bID\u76f8\u540c\u7684\u5fae\u670d\u52a1\u5b9e\u4f8b\uff0c\u4f1a\u88ab\u4f5c\u4e3a\u540c\u4e00\u4e2a\u5b9e\u4f8b\u8fdb\u884c\u7ba1\u7406\u3002\u5982\u679c\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\u5b9e\u4f8bID\u76f8\u540c\uff0c\u90a3\u4e48\u5fc5\u987b\u4fdd\u8bc1\u8fd9\u4e9b\u5b9e\u4f8b\u662f\u540c\u4e00\u4e2a\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u5b9e\u4f8b\u4e22\u5931\u6216\u8005\u8986\u76d6\u7684\u60c5\u51b5\u3002 </p>"},{"location":"registry/local-registry.html","title":"\u672c\u5730\u6ce8\u518c\u53d1\u73b0","text":"<p>\u672c\u5730\u6ce8\u518c\u53d1\u73b0\u662f\u4e00\u79cd\u9759\u6001\u7684\u670d\u52a1\u53d1\u73b0\u673a\u5236\u3002\u4f7f\u7528\u672c\u5730\u6ce8\u518c\u53d1\u73b0\uff0c\u9700\u8981\u5728\u9879\u76ee\u4e2d\u5f15\u5165\u5982\u4e0b\u4f9d\u8d56\uff1a</p> <pre><code>    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;registry-local&lt;/artifactId&gt;\n    &lt;/dependency&gt;\n</code></pre> <p>\u672c\u5730\u670d\u52a1\u53d1\u73b0\u53ef\u4ee5\u5728\u5f88\u591a\u4e0d\u540c\u7684\u573a\u666f\u4f7f\u7528\uff0c\u80fd\u591f\u5e2e\u52a9\u5f00\u53d1\u8005\u89e3\u51b3\u5f88\u591a\u7cfb\u7edf\u96c6\u6210\u95ee\u9898\uff0c\u6bd4\u5982\u548c\u7f51\u5173\u7684\u96c6\u6210\uff0c\u548c\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u96c6\u6210\u3002</p>"},{"location":"registry/local-registry.html#_2","title":"\u6ce8\u518c\u8fc7\u7a0b","text":"<p>\u548c\u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u4e00\u6837\uff0c \u7cfb\u7edf\u4f1a\u81ea\u52a8\u5b8c\u6210\u6ce8\u518c\u3002\u7cfb\u7edf\u4f1a\u4ece\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bfb\u53d6\u672c\u5fae\u670d\u52a1\u7684\u4fe1\u606f\u548c\u5b9e\u4f8b\u4fe1\u606f\uff0c\u4ee5\u53ca\u672c\u5fae\u670d\u52a1\u53d1\u5e03\u7684 \u5951\u7ea6\u4fe1\u606f\uff0c\u5c06\u4fe1\u606f\u6ce8\u518c\u5230\u5185\u5b58\u4e2d\u3002</p>"},{"location":"registry/local-registry.html#_3","title":"\u53d1\u73b0\u8fc7\u7a0b","text":"<p>\u53d1\u73b0\u8fc7\u7a0b\u4e5f\u662f\u4ece\u672c\u5730\u8fdb\u884c\u67e5\u627e\u3002\u56e0\u6b64\u7cfb\u7edf\u9700\u8981\u914d\u7f6e\u672c\u5730\u7684\u5fae\u670d\u52a1\u4fe1\u606f\u548c\u5b9e\u4f8b\u4fe1\u606f\uff0c\u4ee5\u53ca\u5951\u7ea6\u4fe1\u606f\u3002 \u63d0\u4f9b\u4e86\u4e0b\u9762\u4e24\u79cd\u65b9\u5f0f\uff1a</p> <ul> <li>\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u7684\u65b9\u5f0f\u5b9a\u4e49\u670d\u52a1</li> </ul> <p>\u8fd9\u79cd\u65b9\u5f0f\u4ece\u914d\u7f6e\u6587\u4ef6(registry.yaml)\u4e2d\u8bfb\u53d6\u670d\u52a1\u7684 <code>Microservice</code> \u548c    <code>MicroserviceInstance</code> \u4fe1\u606f\uff0c\u4ece\u76ee\u5f55 <code>microservices/{serviceName}/{schemaId}.yaml</code> \u6216\u8005    <code>applications/{appId}/{serviceName}/{schemaId}.yaml</code> \u8bfb\u53d6\u5fae\u670d\u52a1\u7684\u5951\u7ea6    \u4fe1\u606f\u3002</p> <p>registry.yaml \u683c\u5f0f\uff1a</p> <pre><code>    ```yaml\n    ms1:\n      - id: \"001\"\n        version: \"1.0\"\n        appid: exampleApp\n        environment: development\n        schemaIds:\n          - hello\n        instances:\n          - endpoints:\n              - rest://127.0.0.1:8080\n      - id: \"002\"\n        version: \"2.0\"\n        environment: development\n        appid: exampleApp\n        schemaIds:\n          - hello\n        instances:\n          - endpoints:\n              - rest://127.0.0.2:8080\n    ms2:\n      - id: \"003\"\n        version: \"1.0\"\n        environment: development\n        appid: exampleApp\n        schemaIds:\n          - hello\n        instances:\n          - endpoints:\n              - rest://127.0.0.1:8081\n    ```\n</code></pre> <p><code>registry.yaml</code> \u6307\u5b9a\u4e86\u5fae\u670d\u52a1\u7684\u57fa\u672c\u4fe1\u606f\uff1a\u5e94\u7528ID (appId)\uff0c \u5fae\u670d\u52a1\u540d\u79f0 (serviceName),   \u5fae\u670d\u52a1\u7248\u672c(version)\uff0c\u73af\u5883(environment) \u548c\u5951\u7ea6\uff1b\u5fae\u670d\u52a1\u5b9e\u4f8b\u57fa\u672c\u4fe1\u606f\uff1a\u7f51\u7edc\u5730\u5740(endpoints)\u3002</p> <ul> <li>\u4f7f\u7528 <code>bean</code> \u7684\u65b9\u5f0f\u5b9a\u4e49\u670d\u52a1<pre><code>```java\n  @Bean\n  public RegistryBean demoLocalRegistryServerBean2() {\n    List&lt;String&gt; endpoints = new ArrayList&lt;&gt;();\n    endpoints.add(\"rest://localhost:8080\");\n    List&lt;Instance&gt; instances = new ArrayList&lt;&gt;();\n    instances.add(new Instance().setEndpoints(endpoints));\n\n    return new RegistryBean()\n        .setServiceName(\"demo-local-registry-server-bean2\")\n        .setId(\"003\")\n        .setVersion(\"0.0.3\")\n        .setAppId(\"demo-local-registry\")\n        .addSchemaInterface(\"CodeFirstEndpoint2\", CodeFirstService.class)\n        .setInstances(new Instances().setInstances(instances));\n  }\n```\n</code></pre> </li> </ul> <p><code>RegistryBean</code> \u7684\u4fe1\u606f\u548c <code>registry.yaml</code> \u7684\u4fe1\u606f\u7c7b\u4f3c\uff0c \u53ef\u4ee5\u6dfb\u52a0 <code>Schema Interface</code> \u6765\u6dfb\u52a0   \u5951\u7ea6\u4fe1\u606f\uff0c \u5982\u679c\u6ca1\u6709\u6dfb\u52a0\u5951\u7ea6\u4fe1\u606f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4e5f\u4f1a\u4ece\u672c\u5730\u914d\u7f6e\u6587\u4ef6\u67e5\u627e\u5951\u7ea6\u3002 CodeFirstService \u662f\u4e00\u4e2a\u63a5\u53e3\uff0c   \u548c\u666e\u901a\u7684 provider \u63a5\u53e3\u5b9a\u4e49\u7c7b\u4f3c\uff1a</p> <pre><code>    @Path(\"/register/url/codeFirst\")\n    @Produces(\"application/json\")\n    public interface CodeFirstService {\n      @GET\n      @Path(\"getName\")\n      String getName(@QueryParam(\"name\") String name);\n    }\n</code></pre>"},{"location":"registry/local-registry.html#-","title":"\u672c\u5730\u6ce8\u518c\u53d1\u73b0\u7684\u5e94\u7528 - \u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1","text":"<p>\u53ef\u4ee5\u6709\u975e\u5e38\u591a\u7684\u65b9\u5f0f\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u6bd4\u5982\u91c7\u7528\u7b2c\u4e09\u65b9\u63d0\u4f9b\u7684 Rest Client\u3002 \u4f46\u662f\u9700\u8981\u63d0\u4f9b\u4e00\u79cd \u900f\u660e\u7684\u65b9\u5f0f\uff0c\u8ba9\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u5ba2\u6237\u7aef\u4ee3\u7801\u548c\u8c03\u7528 servicecomb \u5fae\u670d\u52a1\u7684 \u5ba2\u6237\u7aef\u4ee3\u7801\u98ce\u683c\u5b8c\u5168\u4e00\u6837\uff0c\u5e76\u4e14\u62e5\u6709\u6240\u6709 servicecomb \u7684\u5ba2\u6237\u7aef\u6cbb\u7406\u80fd\u529b\u3002</p> <p>\u5728\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u91cc\u9762\u4ecb\u7ecd\u4e86servicecomb\u63d0\u4f9b\u7684\u4e00\u79cd \u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u4f7f\u7528\u65b9\u5f0f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4f9d\u8d56\u4e8e\u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u4f5c\u4e3a\u6ce8\u518c\u53d1\u73b0\u3002 \u53ef\u4ee5\u770b\u51fa\u4f7f\u7528\u672c\u5730\u670d\u52a1\u53d1\u73b0\u80fd\u591f\u975e\u5e38\u65b9\u4fbf\u7684\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u3002</p> <p>\u53ea\u9700\u8981\u5728\u539f\u6765\u7684\u9879\u76ee\u4e2d\u5f15\u5165\u672c\u5730\u6ce8\u518c\u53d1\u73b0\uff0c\u6309\u7167\u4e0a\u8ff0\u4e24\u79cd\u65b9\u5f0f\u4e4b\u4e00\u5b9a\u4e49\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u4fe1\u606f\u3002 \u5b9a\u4e49\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u50cf\u8bbf\u95ee servicecomb \u670d\u52a1\u4e00\u6837\u8bbf\u95ee\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u4e0d\u7528\u5173\u5fc3\u7b2c\u4e09\u65b9\u670d\u52a1\u662f\u91c7\u7528\u4ec0\u4e48\u6846\u67b6\u5f00\u53d1\u7684\u3002 \u4e0b\u9762\u4ee3\u7801\u7247\u6bb5\u6765\u6e90\u4e8e demo\uff0c \u6f14\u793a\u4e86\u901a\u8fc7 java chassis \u7684\u65b9\u5f0f\u8c03\u7528\u670d\u52a1\u4e2d\u5fc3\u63a5\u53e3\u3002</p> <pre><code>public interface IServiceCenterEndpoint {\n  // java name can not be `x-domain-name`, so interfaces define all parameters.\n  @GetMapping(path = \"/instances\")\n  Object getInstances(@RequestParam(name = \"appId\") String appId,\n      @RequestParam(name = \"serviceName\") String serviceName,\n      @RequestParam(name = \"global\") String global,\n      @RequestParam(name = \"version\") String version,\n      @RequestHeader(name = \"x-domain-name\") String domain);\n}\n\n@Component\npublic class ServiceCenterTestCase implements CategorizedTestCase {\n  @RpcReference(microserviceName = \"thirdParty-service-center\", schemaId = \"ServiceCenterEndpoint\")\n  IServiceCenterEndpoint serviceCenterEndpoint;\n\n  @Override\n  public void testRestTransport() throws Exception {\n    // invoke service-center(3rd-parties)\n    @SuppressWarnings(\"unchecked\")\n    Map&lt;String, List&lt;?&gt;&gt; result = (Map&lt;String, List&lt;?&gt;&gt;) serviceCenterEndpoint.getInstances(\n        \"demo-multi-registries\",\n        \"demo-multi-registries-server\",\n        \"true\",\n        \"0.0.2\",\n        \"default\");\n    TestMgr.check(result.get(\"instances\").size(), 1);\n  }\n}\n</code></pre>"},{"location":"registry/nacos.html","title":"\u4f7f\u7528 Nacos","text":"<p>\u53ef\u4ee5\u901a\u8fc7 Nacos\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5 Nacos\u3002</p> <p>Nacos\u7684namespace\u5bf9\u5e94\u4e8e\u73af\u5883Environment\uff0c group\u5bf9\u5e94\u4e8eapplication\uff0c service\u5bf9\u5e94\u4e8e\u5fae\u670d\u52a1\u540d\u79f0\u3002 </p> <ul> <li>\u88681-1 \u8bbf\u95eeNacos\u5e38\u7528\u7684\u914d\u7f6e\u9879</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.registry.nacos.enabled true \u662f \u662f\u5426\u542f\u7528\u3002 servicecomb.registry.nacos.serverAddr http://127.0.0.1:8848 \u662f \u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 servicecomb.registry.nacos.metadata \u7a7a \u5426 \u914d\u7f6eString\u7684\u952e\u503c\u5bf9\u3002 servicecomb.registry.nacos.username \u7a7a \u5426 Nacos\u7528\u6237\u540d servicecomb.registry.nacos.password \u7a7a \u5426 Nacos\u5bc6\u7801 servicecomb.registry.nacos.accessKey \u7a7a \u5426 Nacos Access Key servicecomb.registry.nacos.secretKey \u7a7a \u5426 Nacos Secret Key servicecomb.registry.nacos.clusterName DEFAULT \u5426 Nacos Cluster Name <p>\u4f7f\u7528Nacos\u9700\u8981\u786e\u4fdd\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-nacos&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre>"},{"location":"registry/service-center.html","title":"\u4f7f\u7528 Service Center","text":"<p>ServcieComb Service Center \u63d0\u4f9b\u4e86\u5b8c\u5907\u7684\u6ce8\u518c\u53d1\u73b0\u673a\u5236\uff0c \u662f Java Chassis \u7f3a\u7701\u4f7f\u7528\u7684\u6ce8\u518c\u53d1\u73b0\u673a\u5236\u3002 </p> <p>\u670d\u52a1\u4e2d\u5fc3\u652f\u6301\u4f7f\u7528 <code>PULL</code> \u548c <code>PUSH</code> \u4e24\u79cd\u6a21\u5f0f\u901a\u77e5\u5b9e\u4f8b\u53d8\u5316\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u914d\u7f6e\u670d\u52a1\u4e2d\u5fc3\u96c6\u7fa4\u5730\u5740\u3001\u8fde\u63a5\u53c2\u6570\u4ee5\u53ca\u5fc3\u8df3\u7ba1\u7406\u7b49\u3002</p> <ul> <li>\u88681-1 \u8bbf\u95ee\u670d\u52a1\u4e2d\u5fc3\u5e38\u7528\u7684\u914d\u7f6e\u9879</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.registry.sc.enabled true \u662f \u662f\u5426\u542f\u7528\u3002 servicecomb.registry.sc.address http://127.0.0.1:30100 \u662f \u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 servicecomb.registry.sc.watch false \u5426 \u662f\u5426\u91c7\u7528PUSH\u6a21\u5f0f\u76d1\u542c\u5b9e\u4f8b\u53d8\u5316\u3002\u4e3afalse\u7684\u65f6\u5019\u8868\u793a\u4f7f\u7528PULL\u6a21\u5f0f\u3002 servicecomb.registry.sc.autodiscovery false \u5426 \u662f\u5426\u81ea\u52a8\u53d1\u73b0\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5f53\u9700\u8981\u914d\u7f6e\u90e8\u5206\u5730\u5740\uff0c\u5176\u4ed6\u5730\u5740\u7531\u914d\u7f6e\u7684\u670d\u52a1\u4e2d\u5fc3\u5b9e\u4f8b\u53d1\u73b0\u7684\u65f6\u5019\uff0c\u5f00\u542f\u8fd9\u4e2a\u914d\u7f6e\u3002 servicecomb.registry.sc.healthCheckIntervalInSeconds 30 \u5426 \u5fc3\u8df3\u95f4\u9694\u3002 servicecomb.registry.sc.healthCheckTimes 3 \u5426 \u5141\u8bb8\u7684\u5fc3\u8df3\u5931\u8d25\u6b21\u6570\u3002\u5f53\u8fde\u7eed\u7b2ctimes+1\u6b21\u5fc3\u8df3\u4ecd\u7136\u5931\u8d25\u65f6\u5219\u5b9e\u4f8b\u88absc\u4e0b\u7ebf\u3002\u5373interval * (times + 1)\u51b3\u5b9a\u4e86\u5b9e\u4f8b\u88ab\u81ea\u52a8\u6ce8\u9500\u7684\u65f6\u95f4\u3002\u5982\u679c\u670d\u52a1\u4e2d\u5fc3\u7b49\u5f85\u8fd9\u4e48\u957f\u7684\u65f6\u95f4\u6ca1\u6709\u6536\u53d6\u5230\u5fc3\u8df3\uff0c\u4f1a\u6ce8\u9500\u5b9e\u4f8b\u3002 <p>\u4f7f\u7528\u670d\u52a1\u4e2d\u5fc3\u9700\u8981\u786e\u4fdd\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre>"},{"location":"registry/service-center.html#rbac","title":"\u4f7f\u7528 RBAC \u8ba4\u8bc1","text":"<p>\u670d\u52a1\u4e2d\u5fc3\u652f\u6301RBAC\u8ba4\u8bc1\uff0c\u670d\u52a1\u4e2d\u5fc3\u5f00\u542fRBAC\u8ba4\u8bc1\u4e4b \u540e\uff0c\u5ba2\u6237\u7aef\u8c03\u7528\u670d\u52a1\u4e2d\u5fc3\u63a5\u53e3\u90fd\u9700\u8981\u5148\u83b7\u53d6token\uff0c\u4fdd\u8bc1\u670d\u52a1\u7684\u5b89\u5168\u53ef\u4fe1\u3002 \u4f7f\u7528 RBAC \u8ba4\u8bc1\uff0c \u9700\u8981\u4f7f\u7528 2.1.3 \u53ca\u5176\u4ee5\u4e0a\u7684\u7248\u672c\u3002 </p> <ul> <li>\u670d\u52a1\u914d\u7f6e</li> </ul> <p>\u4f7f\u7528 RBAC \u8ba4\u8bc1\uff0c\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u9879\uff0c \u6307\u5b9a\u8fde\u63a5\u670d\u52a1\u4e2d\u5fc3\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a</p> <pre><code>    ```\n    servicecomb:\n      credentials:\n        rbac.enabled: true # \u4f7f\u7528\u542f\u7528 RBAC\uff0c \u9ed8\u8ba4\u4e3a false\n        account:\n          name: root   #\u670d\u52a1\u4e2d\u5fc3\u652f\u6301\u7684\u7528\u6237\u540d\n          password: your-password  #\u7528\u6237\u540d\u5bf9\u5e94\u7684\u5bc6\u7801\n        cipher: default #\u8d26\u53f7\u5bc6\u7801\u52a0\u89e3\u5bc6\u7528\u7684\u7b97\u6cd5\u5b9e\u73b0\u7c7b\n    ```\n</code></pre> <p>\u8d26\u53f7\u5bc6\u7801\u90fd\u662f\u654f\u611f\u4fe1\u606f\uff0c\u4e00\u822c\u9700\u8981\u52a0\u5bc6\u4fdd\u5b58\uff0c\u4f7f\u7528\u7684\u65f6\u5019\u518d\u89e3\u5bc6\uff0cJava Chassis \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6269\u5c55\u673a\u5236\uff0c\u7528\u6237\u53ea\u9700\u8981\u5b9e\u73b0\u63a5\u53e3   <code>org.apache.servicecomb.foundation.auth.Cipher</code>\uff0c\u5e76\u6ce8\u518c\u6210Spring Bean\uff0c\u5c31\u4f1a\u81ea\u52a8\u88ab\u4f7f\u7528\uff0c\u63a5\u53e3\u91cc\u9762\u5305\u542b\u4e24\u4e2a\u65b9\u6cd5\uff1a</p> <pre><code>    ```java\n      String name();\n\n      char[] decrypt(char[] encrypted);\n    ```\n</code></pre> <p>name\u65b9\u6cd5\u8fd4\u56decipher\u7684\u540d\u79f0\uff0c\u5bf9\u5e94 <code>servicecomb.credentials.cipher</code> \u7684\u914d\u7f6e\uff0cdecrypt\u662f\u89e3\u5bc6\u63a5\u53e3\uff0c\u7528\u6237\u540d\u3001\u5bc6\u7801\u4f7f\u7528\u7684\u65f6\u5019\u90fd\u4f1a\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5\u8fdb\u884c\u89e3\u5bc6\u3002   \u4e0b\u9762\u7ed9\u4e86\u4e00\u4e2a\u6700\u7b80\u5355\u7684base64\u7f16\u89e3\u7801\u7684\u5b9e\u73b0\u793a\u4f8b\uff0c\u7528\u6237\u4f7f\u7528base64\u7f16\u7801\u628a\u8d26\u53f7\u5bc6\u7801\u914d\u7f6e\u5230\u914d\u7f6e\u6587\u4ef6\u5373\u53ef\u3002</p> <p>\u6ce8\u610f: base64 \u5e76\u4e0d\u662f\u5b89\u5168\u52a0\u5bc6\u7b97\u6cd5\uff0c\u8bf7\u52ff\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\u3002 </p> <pre><code>    ```yaml\n    servicecomb:\n      credentials:\n        account:\n          name: cm9vdA==\n          password: eW91ci1wYXNzd29yZCA=\n        cipher: base64\n    ```\n\n    ```java\n    import java.util.Base64;\n\n    import org.apache.servicecomb.foundation.auth.Cipher;\n    import org.springframework.stereotype.Component;\n\n    /**\n     * Base64\u89e3\u7801\u5b9e\u73b0\n     */\n    @Component\n    public class Base64Cipher implements Cipher {\n      @Override\n      public String name() {\n        return \"base64\";\n      }\n\n      @Override\n      public char[] decrypt(char[] encrypted) {\n        return new String(Base64.getDecoder().decode(new String(encrypted))).toCharArray();\n      }\n    }\n    ```\n</code></pre>"},{"location":"registry/service-center.html#aksk","title":"\u4f7f\u7528 AK/SK \u8ba4\u8bc1","text":"<p>\u534e\u4e3a\u4e91\u5fae\u670d\u52a1\u5f15\u64ce\u4e13\u4e1a\u7248\u7684\u670d\u52a1\u4e2d\u5fc3\u9700\u8981\u4f7f\u7528 AK/SK \u8ba4\u8bc1\uff0c \u4f7f\u7528 AK/SK \u8ba4\u8bc1\uff0c \u9700\u8981\u4f7f\u7528 2.1.3 \u53ca\u5176\u4ee5\u4e0a\u7684\u7248\u672c\u3002 AK/SK \u8ba4\u8bc1\u9700\u8981\u914d\u7f6e\u5982\u4e0b\u4fe1\u606f\uff1a</p> <pre><code>servciecomb:\n  credentials:\n    akskEnabled: true\n    accessKey: your access key\n    secretKey: your secrete key\n    akskCustomCipher: default # \u52a0\u5bc6\u7b97\u6cd5\uff0c \u548c RBAC \u4e00\u6837\n    project: cn-south-1 # \u9879\u76ee\u540d\u79f0\uff0c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u586b\u5199\n</code></pre> <p>secreteKey \u652f\u6301\u52a0\u5bc6\u5b58\u50a8\uff0c \u6269\u5c55\u65b9\u5f0f\u540c RBAC \u3002</p> <p>\u4f7f\u7528AK/SK \u9700\u8981\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;servicestage&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre> <p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f9d\u8d56\uff1a</p> <pre><code>  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n</code></pre>"},{"location":"registry/zookeeper.html","title":"\u4f7f\u7528 ZooKeeper","text":"<p>\u53ef\u4ee5\u901a\u8fc7 ZooKeeper\u5b98\u7f51 \u4e0b\u8f7d\u548c\u5b89\u88c5 ZooKeeper\u3002</p> <p>\u4f7f\u7528ZooKeeper\u9700\u8981\u786e\u4fdd\u4e0b\u9762\u7684\u8f6f\u4ef6\u5305\u5f15\u5165\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;registry-zookeeper&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u88681-1 \u8bbf\u95eeZooKeeper\u5e38\u7528\u7684\u914d\u7f6e\u9879</li> </ul> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u662f\u5426\u5fc5\u9009 \u542b\u4e49 servicecomb.registry.zk.enabled true \u662f \u662f\u5426\u542f\u7528\u3002 servicecomb.registry.zk.connectString 127.0.0.1:2181 \u662f ZooKeeper\u7684\u5730\u5740\u4fe1\u606f\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528\u9017\u53f7\u5206\u9694\u3002 servicecomb.registry.zk.authenticationSchema \u7a7a \u5426 \u8ba4\u8bc1\u65b9\u5f0f\uff0c\u76ee\u524d\u53ea\u80fd\u914d\u7f6e\u4e3a digest\u3002 servicecomb.registry.zk.authenticationInfo \u7a7a \u5426 \u5f53\u8ba4\u8bc1\u65b9\u5f0f\u4e3a digest \u7684\u65f6\u5019\uff0c\u914d\u7f6e\u7528\u6237\u540d\u5bc6\u7801\u4fe1\u606f\uff0c\u6bd4\u5982: user:password servicecomb.registry.zk.connectionTimeoutMillis 1000 \u5426 \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4 servicecomb.registry.zk.sessionTimeoutMillis 60000 \u5426 \u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4 servicecomb.registry.zk.enableSwaggerRegistration false \u5426 \u662f\u5426\u6ce8\u518c\u5951\u7ea6"},{"location":"registry/zookeeper.html#zookeeper_1","title":"ZooKeeper\u4f7f\u7528\u8ba4\u8bc1","text":"<p>ZooKeeper\u4f7f\u7528\u8ba4\u8bc1\u8be6\u7ec6\u60c5\u51b5\u53ef\u4ee5\u53c2\u8003\u5b98\u7f51\u3002\u8fd9\u91cc\u7ed9\u51fa\u6838\u5fc3\u91cd\u8981\u7684\u6b65\u9aa4\uff0c\u672c\u6b65\u9aa4\u57fa\u4e8eZookeeper 3.8.3\u7248\u672c\u8fdb\u884c\u9a8c\u8bc1\u3002 </p> <ol> <li> <p>\u4fee\u6539 zoo.cfg</p> <p>\u5728\u914d\u7f6e\u6587\u4ef6\u589e\u52a0\u3002\u5176\u4e2d <code>sessionRequireClientSASLAuth</code> \u6307\u5b9a\u4e86\u5fc5\u987b\u767b\u5f55\u624d\u80fd\u591f\u8bbf\u95ee Zookeeper\u3002 </p> </li> </ol> <pre><code>authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider\nsessionRequireClientSASLAuth=true\n</code></pre> <ol> <li>\u4fee\u6539 java.env</li> </ol> <p>\u5728\u914d\u7f6e\u6587\u4ef6\u589e\u52a0\u3002 \u5176\u4e2d <code>file.conf</code> \u662f\u7b2c3\u6b65\u589e\u52a0\u7684\u6587\u4ef6\u8def\u5f84</p> <pre><code>SERVER_JVMFLAGS=\"-Djava.security.auth.login.config=/opt/file.conf\"\n</code></pre> <ol> <li> <p>\u589e\u52a0 file.conf</p> <p>\u914d\u7f6e\u6587\u4ef6\u6307\u5b9a\u5408\u6cd5\u7684\u767b\u5f55\u7528\u6237\u3002 </p> </li> </ol> <pre><code>Server {\n org.apache.zookeeper.server.auth.DigestLoginModule required\n user_super=\"adminsecret\"\n user_bob=\"bobsecret\";\n};\n</code></pre>"},{"location":"security/shi-yong-rsa-ren-zheng.html","title":"\u4f7f\u7528RSA\u8ba4\u8bc1","text":""},{"location":"security/shi-yong-rsa-ren-zheng.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u542f\u7528\u670d\u52a1\u95f4RSA\u8ba4\u8bc1\uff0c\u4ee5\u4fdd\u969c\u670d\u52a1\u63a5\u53e3\u7684\u5b89\u5168\u6027\u3002</p> <p>\u8be6\u7ec6\u4ecb\u7ecd\u53c2\u8003\u516c\u94a5\u8ba4\u8bc1</p>"},{"location":"security/shi-yong-rsa-ren-zheng.html#consumer","title":"Consumer\u914d\u7f6e","text":"<ul> <li>\u5728pom.xml\u4e2d\u589e\u52a0\u4f9d\u8d56\uff1a</li> </ul> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt; \n  &lt;artifactId&gt;handler-publickey-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5728microservice.yaml\u4e2d\u6dfb\u52a0\u8fdb\u5904\u7406\u94fe</li> </ul> <pre><code>servicecomb:\n  handler:\n    chain:\n      Consumer:\n        default: auth-consumer\n</code></pre>"},{"location":"security/shi-yong-rsa-ren-zheng.html#provider","title":"Provider\u914d\u7f6e","text":"<ul> <li>\u5728pom.xml\u4e2d\u589e\u52a0\u4f9d\u8d56\uff1a</li> </ul> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt; \n  &lt;artifactId&gt;handler-publickey-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5728microservice.yaml\u4e2d\u6dfb\u52a0\u8fdb\u5904\u7406\u94fe</li> </ul> <pre><code>servicecomb:\n  handler:\n    chain:\n      Provider:\n        default: auth-provider\n</code></pre>"},{"location":"security/tls.html","title":"\u4f7f\u7528TLS\u901a\u4fe1","text":""},{"location":"security/tls.html#_1","title":"\u573a\u666f\u63cf\u8ff0","text":"<p>\u7528\u6237\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u542f\u7528TLS\u901a\u4fe1\uff0c\u4ee5\u4fdd\u969c\u6570\u636e\u7684\u4f20\u8f93\u5b89\u5168\u3002</p>"},{"location":"security/tls.html#_2","title":"\u5916\u90e8\u670d\u52a1\u901a\u4fe1\u914d\u7f6e","text":"<p>\u4e0e\u5916\u90e8\u670d\u52a1\u901a\u4fe1\u76f8\u5173\u7684\u914d\u7f6e\u5199\u5728microservice.yaml\u6587\u4ef6\u4e2d\u3002</p> <ul> <li> <p>\u670d\u52a1\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3TLS\u901a\u4fe1\u914d\u7f6e   \u5fae\u670d\u52a1\u4e0e\u670d\u52a1\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u7684\u8fde\u63a5\u53ef\u4ee5\u901a\u8fc7\u5c06http\u6539\u4e3ahttps\u542f\u7528TLS\u901a\u4fe1\uff0c\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  service:\n    registry:\n      address: https://127.0.0.1:30100\n  config:\n    client:\n      serverUri: https://127.0.0.1:30103\n</code></pre> </li> <li> <p>\u670d\u52a1\u63d0\u4f9b\u8005\u542f\u7528TLS\u901a\u4fe1   \u670d\u52a1\u63d0\u4f9b\u8005\u5728\u914d\u7f6e\u670d\u52a1\u76d1\u542c\u5730\u5740\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>?sslEnabled=true</code>\u5f00\u542fTLS\u901a\u4fe1\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080?sslEnabled=true\n  highway:\n    address: 0.0.0.0:7070?sslEnabled=true\n</code></pre> </li> </ul>"},{"location":"security/tls.html#_3","title":"\u8bc1\u4e66\u914d\u7f6e","text":"<p>\u8bc1\u4e66\u914d\u7f6e\u9879\u5199\u5728microservice.yaml\u6587\u4ef6\u4e2d\uff0c\u652f\u6301\u7edf\u4e00\u5236\u5b9a\u8bc1\u4e66\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0tag\u8fdb\u884c\u66f4\u7ec6\u7c92\u5ea6\u7684\u914d\u7f6e\uff0c\u6709tag\u7684\u914d\u7f6e\u4f1a\u8986\u76d6\u5168\u5c40\u914d\u7f6e\uff0c\u914d\u7f6e\u683c\u5f0f\u5982\u4e0b\uff1a</p> <pre><code>ssl.[tag].[property]\n</code></pre> <p>\u5e38\u89c1\u7684tag\u5982\u4e0b\u8868\uff1a   </p> \u9879\u76ee tag \u670d\u52a1\u4e2d\u5fc3 sc.consumer \u914d\u7f6e\u4e2d\u5fc3 cc.consumer \u770b\u677f\u4e2d\u5fc3 mc.consumer Rest\u670d\u52a1\u7aef rest.provider Highway\u670d\u52a1\u7aef highway.provider Rest\u5ba2\u6237\u7aef rest.consumer Highway\u5ba2\u6237\u7aef highway.consumer auth\u5ba2\u6237\u7aef apiserver.consumer \u4e00\u822c\u4e0d\u9700\u8981\u914d\u7f6etag\uff0c\u6b63\u5e38\u60c5\u51b5\u5206\u4e3a\u4e09\u7c7b\uff1a1\u3001\u8fde\u63a5\u5185\u90e8\u670d\u52a1 2\u3001\u4f5c\u4e3a\u670d\u52a1\u7aef 3\u3001\u4f5c\u4e3a\u5ba2\u6237\u7aef \u6240\u4ee5\u5982\u679c\u8fd9\u4e09\u7c7b\u8981\u6c42\u7684\u8bc1\u4e66\u4e0d\u4e00\u81f4\uff0c\u90a3\u4e48\u9700\u8981\u4f7f\u7528tag\u6765\u533a\u5206 <p>\u8bc1\u4e66\u914d\u7f6e\u9879\u89c1\u88681 \u8bc1\u4e66\u914d\u7f6e\u9879\u8bf4\u660e\u8868\u3002 \u88681 \u8bc1\u4e66\u914d\u7f6e\u9879\u8bf4\u660e\u8868</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u53d6\u503c\u8303\u56f4 \u662f\u5426\u5fc5\u9009 \u542b\u4e49 \u6ce8\u610f ssl.engine jdk - \u5426 ssl\u534f\u8bae\uff0c\u63d0\u4f9bjdk/openssl\u9009\u62e9 \u9ed8\u8ba4\u4e3ajdk ssl.protocols TLSv1.2 - \u5426 \u534f\u8bae\u5217\u8868 \u4f7f\u7528\u9017\u53f7\u5206\u9694 ssl.ciphers TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - \u5426 \u7b97\u6cd5\u5217\u8868 \u4f7f\u7528\u9017\u53f7\u5206\u9694 ssl.authPeer false - \u5426 \u662f\u5426\u8ba4\u8bc1\u5bf9\u7aef - ssl.checkCN.host false - \u5426 \u662f\u5426\u5bf9\u8bc1\u4e66\u7684CN\u8fdb\u884c\u68c0\u67e5 \u8be5\u914d\u7f6e\u9879\u53ea\u5bf9Consumer\u7aef\uff0c\u5e76\u4e14\u4f7f\u7528http\u534f\u8bae\u6709\u6548\uff0c\u5373Consumser\u7aef\u4f7f\u7528rest\u901a\u9053\u6709\u6548\u3002\u5bf9\u4e8eProvider\u7aef\u3001highway\u901a\u9053\u7b49\u65e0\u6548\u3002\u68c0\u67e5CN\u7684\u76ee\u7684\u662f\u9632\u6b62\u670d\u52a1\u5668\u88ab\u9493\u9c7c\uff0c\u53c2\u8003\u6807\u51c6\u5b9a\u4e49\uff1ahttps://tools.ietf.org/html/rfc2818\u3002 ssl.trustStore trust.jks - \u5426 \u4fe1\u4efb\u8bc1\u4e66\u6587\u4ef6 - ssl.trustStoreType JKS - \u5426 \u4fe1\u4efb\u8bc1\u4e66\u7c7b\u578b - ssl.trustStoreValue - - \u5426 \u4fe1\u4efb\u8bc1\u4e66\u5bc6\u7801 - ssl.keyStore server.p12 - \u5426 \u8eab\u4efd\u8bc1\u4e66\u6587\u4ef6 - ssl.keyStoreType PKCS12 - \u5426 \u8eab\u4efd\u8bc1\u4e66\u7c7b\u578b - ssl.keyStoreValue - - \u5426 \u8eab\u4efd\u8bc1\u4e66\u5bc6\u7801 - ssl.crl revoke.crl - \u5426 \u540a\u9500\u8bc1\u4e66\u6587\u4ef6 - ssl.sslCustomClass - org.apache.servicecomb.foundation.ssl.SSLCustom\u7684\u5b9e\u73b0\u7c7b \u5426 SSLCustom\u7c7b\u7684\u5b9e\u73b0\uff0c\u7528\u4e8e\u5f00\u53d1\u8005\u8f6c\u6362\u5bc6\u7801\u3001\u6587\u4ef6\u8def\u5f84\u7b49\u3002 - <p>\u8bf4\u660e\uff1a</p> <ul> <li>\u9ed8\u8ba4\u7684\u534f\u8bae\u7b97\u6cd5\u662f\u9ad8\u5f3a\u5ea6\u52a0\u5bc6\u7b97\u6cd5\uff0cJDK\u9700\u8981\u5b89\u88c5\u5bf9\u5e94\u7684\u7b56\u7565\u6587\u4ef6\uff0c\u53c2\u8003\uff1ahttp://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html\u3002 \u60a8\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u4f7f\u7528\u975e\u9ad8\u5f3a\u5ea6\u7b97\u6cd5\u3002</li> <li>\u5fae\u670d\u52a1\u6d88\u8d39\u8005\uff0c\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684\u63d0\u4f9b\u8005\u6307\u5b9a\u8bc1\u4e66\uff08\u5f53\u524d\u8bc1\u4e66\u662f\u6309\u7167HOST\u7b7e\u53d1\u7684\uff0c\u4e0d\u540c\u7684\u63d0\u4f9b\u8005\u90fd\u4f7f\u7528\u4e00\u4efd\u8bc1\u4e66\u5b58\u50a8\u4ecb\u8d28\uff0c\u8fd9\u4efd\u4ecb\u8d28\u540c\u65f6\u7ed9\u5fae\u670d\u52a1\u8bbf\u95ee\u670d\u52a1\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u4f7f\u7528\uff09\u3002</li> </ul>"},{"location":"security/tls.html#_4","title":"\u793a\u4f8b\u4ee3\u7801","text":"<p>microservice.yaml\u6587\u4ef6\u4e2d\u542f\u7528TLS\u901a\u4fe1\u7684\u914d\u7f6e\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n  service:\n    registry:\n      address: https://127.0.0.1:30100\n  config:\n    client:\n      serverUri: https://127.0.0.1:30103\n  rest:\n    address: 0.0.0.0:8080?sslEnabled=true\n  highway:\n    address: 0.0.0.0:7070?sslEnabled=true\n\n#########SSL options\nssl.protocols: TLSv1.2\nssl.authPeer: true\nssl.checkCN.host: true\n\n#########certificates config\nssl.trustStore: trust.jks\nssl.trustStoreType: JKS\nssl.trustStoreValue: Changeme_123\nssl.keyStore: server.p12\nssl.keyStoreType: PKCS12\nssl.keyStoreValue: Changeme_123\nssl.crl: revoke.crl\nssl.sslCustomClass: org.apache.servicecomb.demo.DemoSSLCustom\n</code></pre>"},{"location":"spring-boot/diff-spring-mvc.html","title":"\u4e0eSpring Web MVC\u5f00\u53d1\u4e60\u60ef\u7684\u5dee\u5f02","text":"<p>Java Chassis\u652f\u6301\u4f7f\u7528Spring MVC\u63d0\u4f9b\u7684\u6807\u7b7e(org.springframework.web.bind.annotation)\u6765\u58f0\u660eREST\u63a5\u53e3\uff0c\u4f46\u662f\u4e24\u8005\u662f\u72ec\u7acb\u7684\u5b9e\u73b0\uff0c\u5e76\u4e14\u6709\u4e0d\u4e00\u6837\u7684\u8bbe\u8ba1\u76ee\u6807\u3002Java Chassis\u7684\u76ee\u6807\u662f\u63d0\u4f9b\u8de8\u8bed\u8a00\u3001\u652f\u6301\u591a\u901a\u4fe1\u534f\u8bae\u7684\u6846\u67b6\uff0c\u56e0\u6b64\u53bb\u6389\u4e86Spring Web MVC\u4e2d\u4e00\u4e9b\u5bf9\u8de8\u8bed\u8a00\u652f\u6301\u4e0d\u662f\u5f88\u597d\u7684\u7279\u6027\uff0c\u4e5f\u4e0d\u652f\u6301\u7279\u5b9a\u8fd0\u884c\u6846\u67b6\u5f3a\u76f8\u5173\u7684\u7279\u6027\uff0c\u6bd4\u5982\u76f4\u63a5\u8bbf\u95eeServlet\u534f\u8bae\u5b9a\u4e49\u7684HttpServletRequest\u3002Java Chassis\u652f\u6301\u7684Spring Web MVC\u6807\u7b7e\u662fSpring Boot\u7684\u5b50\u96c6\uff0c \u4e0b\u9762\u662f\u4e00\u4e9b\u663e\u8457\u7684\u5dee\u522b\u3002</p> <ul> <li>\u670d\u52a1\u58f0\u660e\u65b9\u5f0f</li> </ul> <p>Spring MVC\u4f7f\u7528@RestController\u58f0\u660e\u670d\u52a1\uff0c\u800cJava Chassis\u4f7f\u7528@RestSchema\u58f0\u660e\u670d\u52a1\uff0c\u5e76\u4e14\u9700\u8981\u663e\u793a\u7684\u4f7f\u7528@RequestMapping\u58f0\u660e\u670d\u52a1\u8def\u5f84\uff0c\u4ee5\u533a\u5206\u8be5\u670d\u52a1\u662f\u91c7\u7528Spring Web MVC\u7684\u6807\u7b7e\u8fd8\u662f\u4f7f\u7528JAX RS\u7684\u6807\u7b7e\u3002</p> <pre><code>@RestSchema(schemaId = \"hello\")\n@RequestMapping(path = \"/\")\n</code></pre> <p>Schema\u662fjava chassis\u7684\u670d\u52a1\u5951\u7ea6\uff0c\u662f\u670d\u52a1\u8fd0\u884c\u65f6\u7684\u57fa\u7840\uff0c\u670d\u52a1\u6cbb\u7406\u3001\u7f16\u89e3\u7801\u7b49\u90fd\u57fa\u4e8e\u5951\u7ea6\u8fdb\u884c\u3002\u5728\u8de8\u8bed\u8a00\u7684\u573a\u666f\uff0c\u5951\u7ea6\u4e5f\u5b9a\u4e49\u4e86\u4e0d\u540c\u8bed\u8a00\u80fd\u591f\u540c\u65f6\u7406\u89e3\u7684\u90e8\u5206\u3002</p> <ul> <li>\u6570\u636e\u7c7b\u578b\u652f\u6301</li> </ul> <p>\u91c7\u7528Spring Web MVC\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u5b9a\u4e49\u4e2d\u4f7f\u7528\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u53ea\u8981\u8fd9\u79cd\u6570\u636e\u7c7b\u578b\u80fd\u591f\u88abJson\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u3002\u6bd4\u5982\uff1a</p> <pre><code>// \u62bd\u8c61\u7c7b\u578b\npublic void postData(@RequestBody Object data)\n// \u63a5\u53e3\u5b9a\u4e49\npublic void postData(@RequestBody IPerson interfaceData)\n// \u6ca1\u6307\u5b9a\u7c7b\u578b\u7684\u6cdb\u578b\npublic void postData(@RequestBody Map rawData)\n// \u5177\u4f53\u534f\u8bae\u76f8\u5173\u7684\u7c7b\u578b\npublic void postData(HttpServletRequest rquest)\n</code></pre> <p>Java Chassis\u4e0d\u652f\u6301\u4e0a\u8bc9\u7c7b\u578b\u3002\u56e0\u4e3aJava Chassis\u4f1a\u6839\u636e\u63a5\u53e3\u5b9a\u4e49\u751f\u6210\u5951\u7ea6\uff0c\u4ece\u4e0a\u9762\u7684\u63a5\u53e3\u5b9a\u4e49\uff0c\u5982\u679c\u4e0d\u7ed3\u5408\u5b9e\u9645\u7684\u5b9e\u73b0\u4ee3\u7801\u6216\u8005\u989d\u5916\u7684\u5f00\u53d1\u6587\u6863\u8bf4\u660e\uff0c\u65e0\u6cd5\u76f4\u63a5\u751f\u6210\u5951\u7ea6\u3002</p> <p>\u8bf4\u660e\uff1a \u4e3a\u4e86\u652f\u6301\u5feb\u901f\u5f00\u53d1\uff0cJava Chassis\u7684\u6570\u636e\u7c7b\u578b\u9650\u5236\u4e5f\u5728\u4e0d\u505c\u7684\u6269\u5145\uff0c\u6bd4\u5982\u652f\u6301HttpServletRequest\uff0c\u4f46\u662f\u5b9e\u9645\u5728\u4f7f\u7528\u7684\u65f6\u5019\uff0c\u4ed6\u4eec\u4e0eWEB\u670d\u52a1\u5668\u7684\u8bed\u4e49\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6bd4\u5982\u4e0d\u80fd\u76f4\u63a5\u64cd\u4f5c\u6d41\u3002\u56e0\u6b64\u5efa\u8bae\u5f00\u53d1\u8005\u5728\u7684\u4f7f\u7528\u573a\u666f\u4e0b\uff0c\u5c3d\u53ef\u80fd\u4f7f\u7528\u5951\u7ea6\u80fd\u591f\u63cf\u8ff0\u7684\u7c7b\u578b\uff0c\u8ba9\u4ee3\u7801\u9605\u8bfb\u6027\u66f4\u597d\u3002\u6b64\u5916\uff0cSpring\u9488\u5bf9DispatcherServlet\u505a\u4e86\u5927\u91cf\u7684\u6269\u5c55\uff0c\u8fd9\u4e9b\u6269\u5c55\u5bf9\u4e8eJava Chassis\u662f\u4e0d\u9002\u7528\u7684\u3002</p> <p>Java Chassis\u5728Spring Web MVC\u65b9\u9762\u7684\u66f4\u591a\u5f00\u53d1\u652f\u6301\uff0c\u53ef\u4ee5\u53c2\u8003\u7528SpringMVC \u5f00\u53d1\u5fae\u670d\u52a1\u3002</p>"},{"location":"spring-boot/introduction.html","title":"Java Chassis\u4e0eSpring Boot \u96c6\u6210\u4ecb\u7ecd","text":"<p>\u5c06 Spring Boot \u7528\u4e8e\u5fae\u670d\u52a1\u5f00\u53d1\uff0c\u53ef\u4ee5\u6781\u5927\u7684\u7b80\u5316\u5f00\u53d1\u8005\u914d\u7f6e\u548c\u90e8\u7f72\u3002Java Chassis\u5728Spring Boot\u57fa\u7840\u4e4b\u4e0a\uff0c\u63d0\u4f9b\u4e86\u5b8c\u5584\u7684\u7684\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\u9700\u8981\u7684\u80fd\u529b\uff0c\u5305\u62ec\u670d\u52a1\u6ce8\u518c\u53d1\u73b0\u3001\u670d\u52a1\u6cbb\u7406\u3001\u826f\u597d\u7684\u8de8\u8bed\u8a00\u7279\u6027\u548c\u9ad8\u6548\u7684\u5f02\u6b65\u901a\u4fe1\u7b49\u80fd\u529b\u3002 </p> <p>Java Chassis\u6709\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528Spring Boot\uff1a</p> <ol> <li> <p>\u9ad8\u6027\u80fd\u6a21\u5f0f\uff1a\u4f7f\u7528Java Chassis\u9ad8\u6027\u80fdHTTP\u670d\u52a1\u5668\u3002</p> </li> <li> <p>Web\u5f00\u53d1\u65b9\u5f0f\uff1a\u4f7f\u7528Spring Boot\u81ea\u5e26\u7684Tomcat\u6216\u8005Jetty\u670d\u52a1\u5668\u3002</p> </li> </ol> <p></p> <ul> <li>\u9ad8\u6027\u80fd\u6a21\u5f0f</li> </ul> <p>\u5f15\u5165\u4f9d\u8d56</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>WebApplicationType\u6307\u5b9a\u4e3aNONE</p> <pre><code>@SpringBootApplication\npublic class ProviderApplication {\n  public static void main(String[] args) {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.NONE)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre> <ul> <li>Web\u6a21\u5f0f</li> </ul> <p>\u5f15\u5165\u4f9d\u8d56</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-servlet&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <p>WebApplicationType\u6307\u5b9a\u4e3aSERVLET</p> <pre><code>@SpringBootApplication\npublic class ProviderApplication {\n  public static void main(String[] args) {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.SERVLET)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre> <p>\u4e24\u79cd\u5f00\u53d1\u65b9\u5f0f\u90fd\u4f1a\u542f\u7528Java Chassis\u7684\u5168\u91cf\u529f\u80fd\uff0c\u9ad8\u6027\u80fd\u6a21\u5f0f\u8fd0\u884c\u4e8e\u72ec\u7acb\u7684HTTP\u670d\u52a1\u5668\uff08\u57fa\u4e8evert.x\u6784\u5efa\uff09\u4e0a\uff0c\u6027\u80fd\u4e0a\u5b58\u5728\u5f88\u5927\u7684\u4f18\u52bf\u3002Web\u6a21\u5f0f\u8fd0\u884c\u4e8eTomcat\u6216\u8005\u5176\u4ed6\u5185\u7f6e\u7684Web\u670d\u52a1\u5668\u4e4b\u4e0a\uff0c\u4f5c\u4e3a\u4e00\u4e2aServlet\u63a5\u6536\u8bf7\u6c42\uff0c\u56e0\u6b64\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Web\u5bb9\u5668\u63d0\u4f9b\u7684\u4e00\u4e9b\u529f\u80fd\uff0c\u6bd4\u5982\u63d0\u4f9b\u9875\u9762\u670d\u52a1\uff0c\u4f7f\u7528Filter\u7b49\u3002</p> <p>\u5f53\u5e94\u7528\u53ea\u9700\u8981\u63d0\u4f9bREST\u670d\u52a1\uff0c\u5e76\u4e14\u5bf9\u6027\u80fd\u8981\u6c42\u9ad8\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4f7f\u7528\u9ad8\u6027\u80fd\u6a21\u5f0f\u3002</p>"},{"location":"start/deployment-on-cloud.html","title":"Deployment on cloud","text":"<p>\u672c\u7ae0\u8282\u4e3b\u8981\u63cf\u8ff0\u5fae\u670d\u52a1\u53d1\u5e03\u5230\u534e\u4e3a\u516c\u6709\u4e91\u4e0a\u3002\u4e0a\u4e91\u914d\u7f6e\u7684\u57fa\u672c\u539f\u5219\u662f\uff1a\u53ea\u9700\u8981\u5bf9microservice.yaml\u8fdb\u884c\u9002\u5f53\u7684\u914d\u7f6e\uff0c\u4ee5\u53ca\u5728pom\u4e2d\u6dfb\u52a0\u989d\u5916\u7684\u4f9d\u8d56\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u76f8\u5173\u7684\u529f\u80fd\u3002</p>"},{"location":"start/deployment-on-cloud.html#_1","title":"\u4e00\u952e\u5f0f\u914d\u7f6e","text":"<p>\u516c\u6709\u4e91\u7248\u672c\u63d0\u4f9b\u4e86\u4e00\u952e\u5f0f\u7b80\u5316\u914d\u7f6e\u7684\u65b9\u5f0f\uff0c\u8ba9\u57fa\u4e8e\u5f00\u6e90\u7248\u672c\u5f00\u53d1\u7684\u5e94\u7528\u5feb\u901f\u5207\u6362\u4e3a\u4e91\u4e0a\u5e94\u7528\uff0c\u76f4\u63a5\u4f7f\u7528\u516c\u6709\u4e91\u63d0\u4f9b\u7684\u7070\u5ea6\u53d1\u5e03\u3001\u670d\u52a1\u6cbb\u7406\u7b49\u529f\u80fd\u3002</p> <ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;cse-solution-service-engine&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <p>\u5f00\u53d1\u8005\u53ea\u9700\u8981\u914d\u7f6e\u5bf9cse-solution-service-engine\u4f9d\u8d56\uff0c\u5c31\u5b8c\u6210\u4e86\u516c\u6709\u4e91\u7684\u6240\u6709\u914d\u7f6e\u3002\u8fd9\u4e2a\u4f9d\u8d56\u5173\u7cfb\u4e3b\u8981\u7ed9\u5f00\u53d1\u8005\u505a\u4e86\u5982\u4e0b\u4e8b\u60c5\uff1a</p> <ul> <li> <p>\u5f15\u5165\u76f8\u5173\u4f9d\u8d56\u7684\u7ec4\u4ef6</p> </li> <li> <p>\u589e\u52a0\u9ed8\u8ba4\u914d\u7f6e\u9879\u3002\u9ed8\u8ba4\u914d\u7f6e\u5305\u542b\u4e86\u5904\u7406\u94fe\u3001\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u7b49\u3002</p> </li> </ul> <p>\u53ef\u4ee5\u901a\u8fc7\u67e5\u770bpom\u5185\u5bb9\uff0c\u4ee5\u53ca\u8fd9\u4e2ajar\u5305\u91cc\u9762\u7684microservice.yaml\u6587\u4ef6\u67e5\u770b\u5f15\u5165\u7684\u7ec4\u4ef6\u548c\u589e\u52a0\u7684\u914d\u7f6e\u9879\u3002\u5728\u4e0b\u9762\u7684\u7ae0\u8282\u4e2d\uff0c\u8be6\u7ec6\u89e3\u91ca\u4e0a\u4e91\u589e\u52a0\u7684\u7ec4\u4ef6\u4ee5\u53ca\u4ed6\u4eec\u7684\u4f5c\u7528\uff0c\u8ba9\u5f00\u53d1\u8005\u66f4\u52a0\u6df1\u5165\u7684\u4e86\u89e3\u5404\u79cd\u6280\u672f\u7ec6\u8282\u3002</p>"},{"location":"start/deployment-on-cloud.html#_2","title":"\u8fde\u63a5\u670d\u52a1\u4e2d\u5fc3","text":""},{"location":"start/deployment-on-cloud.html#_3","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u670d\u52a1\u4e2d\u5fc3\u5b9e\u73b0\u6ce8\u518c\u548c\u53d1\u73b0\uff0c\u5728FusionStage/ServiceStage\u67e5\u770b\u5fae\u670d\u52a1\u76ee\u5f55\uff0c\u90fd\u9700\u8981\u5fae\u670d\u52a1\u8fde\u63a5\u4e0a\u670d\u52a1\u4e2d\u5fc3\u3002</p>"},{"location":"start/deployment-on-cloud.html#_4","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5982\u679c\u8fde\u63a5\u670d\u52a1\u4e2d\u5fc3\u4f7f\u7528https\u534f\u8bae/AK/SK\u8ba4\u8bc1\uff0c\u8be5jar\u4f9d\u8d56\u5fc5\u9009\u3002\u5982\u679c\u662fhttp\u534f\u8bae\uff0c\u5e76\u4e0d\u5305\u542btoken\u9a8c\u8bc1\uff0c\u5219\u65e0\u9700\u5f15\u5165\u3002</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;foundation-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6e\u9879(microservice.yaml\uff09</li> </ul> <pre><code>servicecomb:\n service:\n  registry:\n   address: https://servicecomb.cn-north-1.myhwclouds.com:443    #\u6839\u636e\u5b9e\u9645\u5730\u5740\u914d\u7f6e\u670d\u52a1\u4e2d\u5fc3\u5730\u5740\n</code></pre> <p>\u8be5\u914d\u7f6e\u9879\u914d\u7f6e\u4e86\u670d\u52a1\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4e2d\uff0caddress\u53ef\u4ee5\u5728\u516c\u6709\u4e91\u201c\u5de5\u5177\u548c\u6848\u4f8b\u201d\u76ee\u5f55\u4e0b\u67e5\u5230\u5bf9\u5e94\u7684\u670d\u52a1\u4e2d\u5fc3\u5730\u5740\uff0c\u4fee\u6539\u534f\u8bae\uff08http/https\uff09\u3001\u4e3b\u673a\u540d\uff08\u53ef\u80fd\u4f7f\u7528\u57df\u540d\uff09\u548c\u7aef\u53e3\u53f7\u3002</p>"},{"location":"start/deployment-on-cloud.html#_5","title":"\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3","text":""},{"location":"start/deployment-on-cloud.html#_6","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u73b0\u914d\u7f6e\u4e0b\u53d1\uff0c\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3\u662f\u4f7f\u7528\u6cbb\u7406\u3001\u7070\u5ea6\u53d1\u5e03\u7b49\u529f\u80fd\u7684\u524d\u53f0\u3002</p>"},{"location":"start/deployment-on-cloud.html#_7","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5982\u679c\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3\u4f7f\u7528https\u534f\u8bae/AK/SK\u8ba4\u8bc1\uff0c\u8be5jar\u4f9d\u8d56\u5fc5\u9009\u3002\u5982\u679c\u662fhttp\u534f\u8bae\uff0c\u5e76\u4e0d\u5305\u542btoken\u9a8c\u8bc1\uff0c\u5219\u65e0\u9700\u5f15\u5165\u3002</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;foundation-auth&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <p>\u8fde\u63a5\u914d\u7f6e\u4e2d\u5fc3\u8be5jar\u5fc5\u9009</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;foundation-config-cc&lt;/artifactId&gt; \n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u542f\u7528\u914d\u7f6e(microservice.yaml\uff09</li> </ul> <pre><code>servicecomb:\n config:\n  client:\n   serverUri: https://servicecomb.cn-north-1.myhwclouds.com:443\n</code></pre> <p>\u8be5\u914d\u7f6e\u9879\u914d\u7f6e\u4e86\u914d\u7f6e\u4e2d\u5fc3\u7684\u5730\u5740\u3002\u5176\u4e2d\uff0caddress\u53ef\u4ee5\u5728\u516c\u6709\u4e91\u201c\u5de5\u5177\u548c\u6848\u4f8b\u201d\u76ee\u5f55\u4e0b\u67e5\u5230\u5bf9\u5e94\u7684\u914d\u7f6e\u4e2d\u5fc3\u5730\u5740\uff0c\u4fee\u6539\u534f\u8bae\uff08http/https\uff09\u3001\u4e3b\u673a\u540d\uff08\u53ef\u80fd\u4f7f\u7528\u57df\u540d\uff09\u548c\u7aef\u53e3\u53f7\u3002</p>"},{"location":"start/deployment-on-cloud.html#_8","title":"\u4f7f\u7528\u670d\u52a1\u6cbb\u7406","text":""},{"location":"start/deployment-on-cloud.html#_9","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u670d\u52a1\u6cbb\u7406\u4e3b\u8981\u6d89\u53ca\u201c\u9694\u79bb\u201d\u3001\u201c\u7194\u65ad\u201d\u3001\u201c\u5bb9\u9519\u201d\u3001\u201c\u9650\u6d41\u201d\u3001\u201c\u8d1f\u8f7d\u5747\u8861\u201d\u7b49\u3002</p>"},{"location":"start/deployment-on-cloud.html#_10","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>\u914d\u7f6e\u9879(microservice.yaml\uff09</p> <p>\u9700\u8981\u589e\u52a0\u4e0b\u9762\u6cbb\u7406\u76f8\u5173\u7684handler\uff0c\u624d\u80fd\u5728\u4ece\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u65f6\u83b7\u53d6\u6cbb\u7406\u6570\u636e\u3002</p> <pre><code>servicecomb:\n handler:\n  chain:\n   Provider:\n    default: bizkeeper-provider,qps-flowcontrol-provider\n   Consumer:\n    default: bizkeeper-consumer,loadbalance,qps-flowcontrol-consumer\n</code></pre>"},{"location":"start/deployment-on-cloud.html#_11","title":"\u4f7f\u7528\u6545\u969c\u6ce8\u5165","text":""},{"location":"start/deployment-on-cloud.html#_12","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u6545\u969c\u6ce8\u5165\u4e3b\u8981\u63d0\u4f9b\u4e86\u5ef6\u65f6\u3001\u9519\u8bef\u4e24\u79cd\u7c7b\u578b\u6545\u969c\u3002</p>"},{"location":"start/deployment-on-cloud.html#_13","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>\u914d\u7f6e\u9879(microservice.yaml\uff09</p> <p>\u9700\u8981\u589e\u52a0\u4e0b\u9762\u6cbb\u7406\u76f8\u5173\u7684handler\u3002</p> <pre><code>servicecomb:\n handler:\n  chain:\n   Consumer:\n    default: loadbalance,fault-injection-consumer\n</code></pre>"},{"location":"start/deployment-on-cloud.html#_14","title":"\u4f7f\u7528\u7070\u5ea6\u53d1\u5e03","text":""},{"location":"start/deployment-on-cloud.html#_15","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u8be5\u529f\u80fd\u5bf9\u5e94\u4e8e\u5fae\u670d\u52a1\u76ee\u5f55\u7070\u5ea6\u53d1\u5e03\u529f\u80fd\u3002\u7ba1\u7406\u5458\u53ef\u4ee5\u901a\u8fc7\u4e0b\u53d1\u89c4\u5219\uff0c\u5bf9\u670d\u52a1\u8fdb\u884c\u7070\u5ea6\u53d1\u5e03\u7ba1\u7406\u3002</p>"},{"location":"start/deployment-on-cloud.html#_16","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5f15\u5165\u5fc5\u8981\u7684jar\u5305\u3002</p> <pre><code>&lt;dependency&gt; \n  &lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;  \n  &lt;artifactId&gt;cse-handler-cloud-extension&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u5728Consumer\u7aef\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861(microservice.yaml\uff09</li> </ul> <p>\u5728\u8d1f\u8f7d\u5747\u8861\u6a21\u5757\u542f\u7528\u4e86\u7070\u5ea6\u53d1\u5e03\u7684filter\u3002</p> <pre><code>servicecomb:\n loadbalance:\n  serverListFilters: darklaunch\n  serverListFilter:\n    darklaunch:\n      className: com.huawei.paas.darklaunch.DarklaunchServerListFilter\n</code></pre>"},{"location":"start/deployment-on-cloud.html#_17","title":"\u4f7f\u7528\u8c03\u7528\u94fe","text":""},{"location":"start/deployment-on-cloud.html#_18","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u534e\u4e3a\u4e91\u63d0\u4f9b\u4e86\u4e1a\u52a1\u65e0\u4fb5\u5165\u7684\u57cb\u70b9\u529f\u80fdAPM\u3002\u53ea\u9700\u8981\u901a\u8fc7\u534e\u4e3a\u4e91\u90e8\u7f72\u5bb9\u5668\u5e94\u7528\uff0c\u5e76\u9009\u62e9\u542f\u7528\u8c03\u7528\u94fe\u76d1\u63a7\u529f\u80fd\uff0c\u5373\u53ef\u4f7f\u7528\u8c03\u7528\u94fe\u670d\u52a1\u3002</p>"},{"location":"start/deployment-on-cloud.html#_19","title":"\u5fae\u670d\u52a1\u8fd0\u884c\u6570\u636e\u4e0a\u62a5","text":""},{"location":"start/deployment-on-cloud.html#_20","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u5fae\u670d\u52a1\u53ef\u4ee5\u5c06\u81ea\u5df1\u7684\u8fd0\u884c\u6570\u636e\u4e0a\u62a5\u7ed9Dashboard\u670d\u52a1\uff0c\u5728\u516c\u6709\u4e91\u4e0a\u67e5\u770b\u4eea\u8868\u76d8\u6570\u636e\u3001\u5206\u5e03\u5f0f\u4e8b\u52a1\u6570\u636e\u7b49\u3002\u8be5\u7ae0\u8282\u662f\u63cf\u8ff0\u5982\u4f55\u542f\u7528\u5fae\u670d\u52a1\u6570\u636e\u4e0a\u62a5\u529f\u80fd\u3002</p>"},{"location":"start/deployment-on-cloud.html#_21","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5f15\u5165\u5fc5\u8981\u7684jar\u5305\u3002</p> <pre><code>&lt;dependency&gt;\n\u3000\u3000&lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;\n\u3000\u3000&lt;artifactId&gt;cse-handler-cloud-extension&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6ehandler</li> </ul> <p>\u4eea\u8868\u76d8\u6570\u636e\u4f9d\u8d56\u4e8e\u4e24\u4e2ahandler\uff0c\u4e00\u4e2abizkeeper-provider\uff08\u5ba2\u6237\u7aef\u4e3abizkeeper-consumer\uff09\uff0c\u4e00\u4e2aperf-stats\uff0c\u6240\u4ee5\u5bf9\u5e94\u7684pom\u4f9d\u8d56\u9700\u8981\u5148\u5f15\u5165\u3002</p> <pre><code>servicecomb:  \n  handler:\n    chain:\n      Provider:\n        default: bizkeeper-provider,perf-stats,tracing-provider,sla-provider\n      Consumer:\n        default: bizkeeper-consumer,loadbalance,perf-stats,tracing-consumer,sla-consumer\n</code></pre> <ul> <li>\u914d\u7f6e\u4e0a\u62a5monitor\u5730\u5740</li> </ul> <p>TenantLB_ADDRESS\u4e3a\u5171\u6709\u4e91\u79df\u6237\u7ba1\u7406\u9762\u63a5\u5165\u5730\u5740\uff0c\u9ed8\u8ba4\u662f100.125.1.34\u3002</p> <pre><code>servicecomb:\n  service:\n    registry:\n      address: https://${TenantLB_ADDRESS}:30100\n  monitor:\n    client:\n      serverUri: https://${TenantLB_ADDRESS}:30109\n</code></pre>"},{"location":"start/deployment-on-cloud.html#tcc","title":"\u5206\u5e03\u5f0f\u4e8b\u52a1: TCC","text":""},{"location":"start/deployment-on-cloud.html#_22","title":"\u529f\u80fd\u63cf\u8ff0","text":"<p>\u4e3b\u8981\u5b9e\u73b0\u57fa\u4e8eTCC\u534f\u8bae\u7684\u5206\u5e03\u5f0f\u670d\u52a1\u95f4\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u65b9\u6848\uff0c\u4fdd\u969c\u4e00\u822c\u573a\u666f\u4e0b\u7684\u5e94\u7528\u4e00\u81f4\u6027\u9700\u6c42\uff0c\u5e76\u53ef\u4ee5\u5728FusionStage/ServiceStage\u5206\u5e03\u5f0f\u4e8b\u52a1\u754c\u9762\u67e5\u770b\u4e8b\u52a1\u8be6\u7ec6\u4fe1\u606f\u3002</p>"},{"location":"start/deployment-on-cloud.html#_23","title":"\u914d\u7f6e\u53c2\u8003","text":"<ul> <li>\u589e\u52a0\u4f9d\u8d56\u5173\u7cfb(pom.xml)</li> </ul> <p>\u5f15\u5165\u5fc5\u8981\u7684jar\u5305</p> <pre><code>&lt;dependency&gt;\n\u3000\u3000&lt;groupId&gt;com.huawei.paas.cse&lt;/groupId&gt;\n\u3000\u3000&lt;artifactId&gt;cse-handler-tcc&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre> <ul> <li>\u914d\u7f6e\u9879\u53c2\u8003</li> </ul> <p>\u9700\u8981\u589e\u52a0\u4e0b\u9762\u4e8b\u52a1\u76f8\u5173\u7684handler\uff0c\u624d\u80fd\u5728\u4ece\u914d\u7f6e\u4e2d\u5fc3\u5b9e\u65f6\u83b7\u53d6\u6cbb\u7406\u6570\u636e\u3002</p> <pre><code>servicecomb:\n handler:\n  chain:\n   Provider:\n    default: tcc-client,bizkeeper-provider\n   Consumer:\n    default: tcc-server,bizkeeper-consumer,loadbalance\n</code></pre>"},{"location":"start/design.html","title":"Java Chassis \u8bbe\u8ba1\u53c2\u8003","text":"<p>Java Chassis \u7ed3\u5408\u5927\u91cf\u5fae\u670d\u52a1\u5f00\u53d1\u5b9e\u8df5\uff0c\u5b9e\u73b0\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f \uff0c \u5e2e \u52a9\u5f00\u53d1\u8005\u66f4\u52a0\u7b80\u5355\u3001\u5feb\u901f\u7684\u6784\u5efa\u5fae\u670d\u52a1\u5e94\u7528\u3002</p> <p>Java Chassis\u4e3b\u8981\u5b9e\u73b0\u4e86\u5982\u4e0b\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\u529f\u80fd\uff1a</p> <ul> <li>\u5fae\u670d\u52a1\u4e4b\u95f4\u7684 RPC \u901a\u4fe1\u3002Java Chassis \u63d0\u4f9b\u4e86\u975e\u5e38\u9ad8\u6548\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u5e76\u652f\u6301\u591a\u534f\u8bae\u6269\u5c55\uff0c\u6bd4\u5982\u6700\u5feb\u7684 REST \u901a\u4fe1\u6a21\u5f0f\u5b9e\u73b0\uff0c \u5f02\u6b65\u7684\u4e8c\u8fdb\u5236\u901a\u4fe1\u6a21\u5f0f HIGHWAY \u3002 </li> <li>\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u6ce8\u518c\u548c\u670d\u52a1\u53d1\u73b0\u80fd\u529b\u3002Java Chassis\u652f\u6301\u4f7f\u7528\u4e0d\u540c\u7684\u6ce8\u518c\u4e2d\u5fc3\uff0c\u5b9e\u73b0\u5206\u5e03\u5f0f\u3001\u591a\u96c6\u7fa4\u670d\u52a1\u53d1\u73b0\u80fd\u529b\uff0c\u4ee5\u53ca\u5fae\u670d\u52a1\u5143\u6570\u636e\u7ba1\u7406\u80fd\u529b\u3002</li> <li>\u5206\u5e03\u5f0f\u5fae\u670d\u52a1\u914d\u7f6e\u7ba1\u7406\u80fd\u529b\u3002Java Chassis\u652f\u6301\u4f7f\u7528\u4e0d\u540c\u7684\u914d\u7f6e\u4e2d\u5fc3\uff0c\u5b9e\u73b0\u52a8\u6001\u3001\u96c6\u4e2d\u7684\u914d\u7f6e\u7ba1\u7406\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528Spring Boot\u539f\u751fAPI\u8bbf\u95ee\u914d\u7f6e\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528Java Chassis\u65b0\u589eAPI\uff0c \u6ee1\u8db3\u914d\u7f6e\u53d8\u66f4\u76d1\u542c\u3001\u4f18\u5148\u7ea7\u914d\u7f6e\u7b49\u9ad8\u9636\u5f00\u53d1\u80fd\u529b\u3002  </li> <li>\u5206\u5e03\u5f0f\u6545\u969c\u7ba1\u7406\uff0c\u670d\u52a1\u5bb9\u9519\u3001\u9694\u79bb\u3001\u7194\u65ad\u3002 \u5185\u7f6e\u6545\u969c\u5b9e\u4f8b\u9694\u79bb\u3001\u6545\u969c\u91cd\u8bd5\u3001\u6d41\u91cf\u63a7\u5236\u7b49\u8fc7\u8f7d\u9632\u62a4\u548c\u6545\u969c\u5904\u7406\u80fd\u529b\u3002</li> <li>\u5206\u5e03\u5f0f\u65e5\u5fd7\u8ffd\u8e2a\u3002 \u63d0\u4f9b Open Tracing \u652f\u6301\u3002  </li> </ul> <p>\u6b64\u5916\u8fd8\u6709\u6027\u80fd\u76d1\u63a7\u3001\u65e5\u5fd7\u7ba1\u7406\u3001\u5065\u5eb7\u68c0\u67e5\u7b49\u529f\u80fd\u3002 Java Chassis \u91c7\u7528\u4f18\u96c5\u7684\u8bbe\u8ba1\u6a21\u5f0f\uff0c\u5b9e\u73b0\u4e86\u4e0a\u8ff0\u6240\u6709\u7684\u6838\u5fc3\u90e8\u4ef6\u7684\u529f\u80fd\uff0c\u5e76\u4e14\u4f7f\u5f97\u8fd9\u4e9b\u529f\u80fd\u5f00\u7bb1\u5373\u7528\u3002\u4f7f\u7528 Java Chassis , \u5f00\u53d1\u8005\u80fd\u591f\u66f4\u52a0\u805a\u7126\u4e8e\u4e1a\u52a1\u529f\u80fd\u5f00\u53d1\uff0c\u5feb\u901f\u7684\u6784\u5efa\u5546\u4e1a\u53ef\u7528\u7684\u5fae\u670d\u52a1\u5e94\u7528\u3002 </p>"},{"location":"start/design.html#java-chassis_1","title":"Java Chassis \u8f6f\u4ef6\u5de5\u7a0b\u5b9e\u8df5","text":"<p>Java Chassis \u5728\u8bbe\u8ba1\u7684\u65f6\u5019\uff0c \u4e0d\u4ec5\u8003\u8651\u4e86\u5982\u4f55\u66f4\u597d\u7684\u4f7f\u7528\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\uff0c \u8fd8\u628a\u4f18\u79c0\u7684\u8f6f\u4ef6\u5de5\u7a0b\u601d\u60f3\u878d\u5408\u8fdb\u6765\uff0c \u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u7684\u7ba1\u7406\u4fe1\u606f \u8d44\u4ea7\uff0c \u63d0\u5347\u8f6f\u4ef6\u5de5\u7a0b\u7ba1\u7406\u80fd\u529b\u3002 </p> <p>\u4e0b\u56fe\u7b80\u5355\u7684\u63cf\u8ff0 \u201c\u4ee5\u5951\u7ea6\u4e3a\u4e2d\u5fc3\u201d \u7684\u6838\u5fc3\u6982\u5ff5\u3002 </p> <p> </p> <p>\u53ef\u4ee5\u901a\u8fc7 Invocation \u83b7\u53d6\u5230 Java Chassis \u7684\u5951\u7ea6\u7b49\u6e90\u6570\u636e\u4fe1\u606f\uff0c \u662f Java Chassis \u7684\u4e00\u4e2a\u6838\u5fc3\u5bf9\u8c61\u3002 </p> <p>\u53ef\u4ee5\u9605\u8bfb \u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u5de5\u7a0b\u5b9e\u8df5-\u4ee5\u5951\u7ea6\u4e3a\u4e2d\u5fc3 \u4e86\u89e3\u5951\u7ea6\u5982\u4f55\u5e94\u7528\u7684\u66f4\u591a\u5185\u5bb9\u3002 \u5de5\u7a0b \u5b9e\u8df5\u4e0d\u662f Java Chassis \u7684\u5f3a\u5236\u7ea6\u675f\uff0c \u5f00\u53d1\u8005\u53ef\u4ee5\u7ed3\u5408\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u9009\u62e9\u3002 </p>"},{"location":"start/design.html#java-chassis_2","title":"Java Chassis \u8fd0\u884c\u65f6\u67b6\u6784","text":"<p>\u4e3a\u4e86\u652f\u6301\u8f6f\u4ef6\u5de5\u7a0b\u5b9e\u8df5\uff0c Java Chassis \u7684\u8fd0\u884c\u65f6\u67b6\u6784\u662f\u4e00\u4e2a\u54d1\u94c3\u7ed3\u6784\uff0c \u4e24\u7aef\u5206\u522b\u662f\u201c\u7f16\u7a0b\u6a21\u578b\u201d \u548c \u201c\u901a\u4fe1\u6a21\u578b\u201d\uff0c \u4e2d\u95f4\u662f\u201c\u8fd0\u884c\u6a21\u578b\u201d\u3002 </p> <p></p> <p>\u201c\u7f16\u7a0b\u6a21\u578b\u201d \u9762\u5411\u5f00\u53d1\u8005\u5199\u670d\u52a1\u63a5\u53e3\u7684\u4e60\u60ef\uff0c \u201c\u901a\u4fe1\u6a21\u578b\u201d \u9762\u5411\u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u9ad8\u6548\u7f16\u7801\u548c\u901a\u4fe1\uff0c \u201c\u8fd0\u884c\u6a21\u578b\u201d \u57fa\u4e8e\u201c\u5951\u7ea6\u201d\uff0c \u63d0\u4f9b\u4e00\u79cd\u670d\u52a1\u65e0\u5173 \u7684\u63d2\u62d4\u673a\u5236\uff0c\u80fd\u591f\u8ba9\u5f00\u53d1\u8005\u72ec\u7acb\u4e8e\u4e1a\u52a1\u5b9e\u73b0\u5f00\u53d1\u6cbb\u7406\u529f\u80fd\uff0c\u5e76\u4e14\u7075\u6d3b\u7684\u79fb\u9664\u548c\u589e\u52a0\u529f\u80fd\uff0c\u4ee5\u53ca\u8c03\u6574\u8fd9\u4e9b\u6cbb\u7406\u529f\u80fd\u7684\u5904\u7406\u987a\u5e8f\u3002 </p> <p>\u201c\u8fd0\u884c\u6a21\u578b\u201d \u7684\u6838\u5fc3\u62bd\u8c61\u63a5\u53e3\u662f Filter \uff0c \u8fd9\u4e2a\u63a5\u53e3\u662f\u4e00\u4e2a\u5f02\u6b65\u7684\u5b9a\u4e49\uff0c Java Chassis \u8fd0\u884c\u65f6\u6a21\u578b\u91c7\u7528\u7eaf\u5f02\u6b65\u7684\u5b9e\u73b0\uff0c \u8ba9\u6574\u4e2a\u7cfb\u7edf\u8fd0\u884c\u975e\u5e38 \u9ad8\u6548\u3002 </p> <p>\u53ef\u4ee5\u9605\u8bfb Apache ServiceComb \u7684\u5f00\u653e\u6027\u8bbe\u8ba1 \u4e86\u89e3 Java Chassis \u8fd0\u884c\u65f6\u67b6\u6784\u7684\u5176\u4ed6\u8bbe\u8ba1\u8003\u8651\u3002 </p>"},{"location":"start/design.html#java-chassis_3","title":"Java Chassis \u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784","text":"<p>\u6709\u5f88\u591a\u4f18\u79c0\u7684\u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\u5b9e\u8df5\u3002 \u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\u5e94\u8be5\u5145\u5206\u8003\u8651\u7cfb\u7edf\u7684\u5f39\u6027\uff0c \u80fd\u591f\u9488\u5bf9\u7cfb\u7edf\u7684\u6027\u80fd\u74f6\u9888\u70b9\u8fdb\u884c\u6269\u5bb9\uff0c \u9700\u8981\u8003\u8651\u5e94\u7528\u7cfb\u7edf\u5185\u90e8\u5fae\u670d\u52a1 \u62c6\u5206\u7684\u7075\u6d3b\u6027\uff0c \u4e3a\u4e1a\u52a1\u7684\u53d8\u66f4\u505a\u597d\u53ca\u65f6\u8c03\u6574\u3002 </p> <p>\u4e0b\u56fe\u5c55\u793a\u4e86\u4e00\u4e2a\u5178\u578b\u7684\u5e94\u7528\u67b6\u6784\u3002 \u63a5\u5165\u5c42\u91c7\u7528\u4e00\u4e9b\u7f51\u7edc\u57fa\u7840\u8bbe\u65bd\uff0c\u6bd4\u5982 DNS \uff0c \u6d6e\u52a8 IP \u7b49\u65b9\u4fbf\u7528\u6237\u91c7\u7528\u7edf\u4e00\u7684 URL \u8bbf\u95ee\u7cfb\u7edf\uff0c \u6216\u8005\u91c7\u7528 API \u7f51\u5173\u7b49 \u57fa\u7840\u8bbe\u65bd\u5b9e\u73b0\u7cfb\u7edf\u7684\u80fd\u529b\u5f00\u653e\u3002 \u4e1a\u52a1\u5c42\u5305\u542b\u5e94\u7528\u7f51\u5173\uff0c \u8fdb\u884c\u4e00\u4e9b\u8ba4\u8bc1\u9274\u6743\u3001 \u5ba1\u8ba1\u7b49\u529f\u80fd\uff0c \u7ecf\u8fc7\u8ba4\u8bc1\u7684\u8bf7\u6c42\u88ab\u5e94\u7528\u7f51\u5173\u8f6c\u53d1\u5230\u5fae\u670d\u52a1\u7cfb\u7edf\u5185\u90e8\u3002 </p> <p></p> <p>\u53ef\u4ee5\u9605\u8bfb\u5355\u4f53\u5e94\u7528\u5fae\u670d\u52a1\u6539\u9020\u5b9e\u8df5 \uff0c \u4e86\u89e3\u4e3a\u4ec0\u4e48\u63a8\u8350\u8fd9\u6837\u7684\u5fae\u670d\u52a1\u5e94\u7528\u67b6\u6784\u3002 Java Chassis \u4e3a\u5e94\u7528\u67b6\u6784\u63d0\u4f9b\u4e86\u63a5\u5165\u7f51\u5173\u670d\u52a1 Edge Servcie\u3002 </p>"},{"location":"start/design.html#java-chassis_4","title":"Java Chassis \u5fae\u670d\u52a1\u6280\u672f\u9009\u578b","text":"<p>Java \u8bed\u8a00\u62e5\u6709\u5e9e\u5927\u7684\u6280\u672f\u4f53\u7cfb\u548c\u6807\u51c6\uff0c \u5e76\u4e14\u5e7f\u6cdb\u7684\u5e94\u7528\u5230\u4e1a\u52a1\u7684\u7cfb\u7edf\u7684\u5404\u4e2a\u65b9\u9762\u3002 \u548c Java Chassis \u6709\u7d27\u5bc6\u5173\u7cfb\u7684\u6280\u672f\u5305\u62ec JSP/Servlet \u6807\u51c6 \u548c\u5bb9\u5668\uff0c Spring \u548c Spring Boot \u6280\u672f\uff0c \u4ee5\u53ca Spring Boot \u63d0\u4f9b\u7684 REST \u5f00\u53d1\u6846\u67b6 Spring MVC\u3002 </p>"},{"location":"start/design.html#java-chassis-servlet","title":"Java Chassis \u548c Servlet \u6807\u51c6","text":"<p>Java Chassis \u57fa\u4e8e Vert.x \u5b9e\u73b0\u4e86 REST \u548c HIGHWAY \u7b49 RPC \u534f\u8bae\u7684\u5b9e\u73b0\uff0c \u5728\u6027\u80fd\u8981\u6c42\u9ad8\u7684\u6838\u5fc3\u4e1a\u52a1\u573a\u666f\uff0c \u4f7f\u7528\u8fd9\u79cd\u8f7b\u91cf\u7ea7\u7684\u6280\u672f\u975e\u5e38\u5408\u9002\u3002 \u8fd9\u79cd\u573a\u666f\u4e0b\uff0c \u6ca1\u6709\u5b8c\u6574\u7684\u5b9e\u73b0 JSP/Servlet \u76f8\u5173\u63a5\u53e3\uff0c \u6bd4\u5982 HttpServletRequest,  HttpServletResponse \u7b49\u3002 servicecomb-samples  \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u4f7f\u7528\u8fd9\u79cd\u90e8\u7f72\u6a21\u5f0f\u7684\u4f8b\u5b50\u3002 \u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u8df5-\u8f7b\u91cf\u7ea7\u67b6\u6784\u6280\u672f\u9009\u578b \u63d0\u4f9b\u4e86 \u4e00\u4e9b\u5e38\u89c1\u7684\u7ec4\u4ef6\u7684\u9009\u578b\u53c2\u8003\u3002 </p> <p>Java Chassis \u652f\u6301 Servlet \u6807\u51c6\u7684\u5bb9\u5668\u3002 \u5728\u8fd9\u4e2a\u573a\u666f\u4e0b\uff0c Java Chassis \u7684\u6838\u5fc3\u90e8\u4ef6\u5c31\u662f\u4e00\u4e2a Servlet \uff0c \u5728\u8fd9\u4e2a Servlet \u91cc\u9762 \u5b9e\u73b0\u4e86 Java Chassis \u7684\u6838\u5fc3 RPC \u7cfb\u7edf\u3002 \u91c7\u7528 JSP/Servlet \u5bb9\u5668\u8fd0\u884c Java Chassis, \u4e1a\u52a1\u8bf7\u6c42\u9996\u5148\u7ecf\u8fc7\u5bb9\u5668\u7684 HTTP \u5b9e\u73b0\uff0c \u7136\u540e\u7ecf\u8fc7 Filter\uff0c  \u8fdb\u5165 Java Chassis \u7684 RestServlet \uff0c \u8fd0\u884c Java Chassis \u7684\u8fd0\u884c\u65f6\u6a21\u578b\uff0c \u8fdb\u5165\u4e1a\u52a1\u63a5\u53e3\u5904\u7406\u3002 \u53ef\u4ee5\u53c2\u8003  REST over Servlet \u4e86\u89e3\u5982\u4f55\u5728 Servlet \u5bb9\u5668\u4e2d\u52a0\u8f7d Java Chassis \u7684 Servlet\u3002  </p>"},{"location":"start/design.html#java-chassis-spring-boot","title":"Java Chassis \u548c Spring Boot","text":"<p>Java Chassis \u5efa\u7acb\u5728 Spring Boot\u6280\u672f\u4e4b\u4e0a\uff0c\u6838\u5fc3\u90e8\u4ef6\u90fd\u901a\u8fc7Spring Boot\u6280\u672f\u63d0\u4f9b\u5b9e\u73b0\u548c\u6269\u5c55\u3002 </p> <p>Spring Boot \u63d0\u4f9b\u4e86\u591a\u79cd\u8fd0\u884c\u73af\u5883\u652f\u6301\uff0c WebApplicationType.NONE, WebApplicationType.SERVLET, WebApplicationType.REACTIVE\uff0c   Java Chassis \u53ef\u4ee5\u96c6\u6210 NONE, SERVLET \u4e24\u79cd\u6a21\u5f0f\u3002 \u5728 NONE \u6a21\u5f0f\u4e0b\u96c6\u6210 Java Chassis\uff0c \u548c Spring Boot \u81ea\u8eab\u7684  REACTIVE \u975e\u5e38\u7c7b\u4f3c\uff0c  \u4f46\u662f\u6bd4 Spring Boot \u7684 REACTIVE \u8fd0\u884c\u66f4\u52a0\u9ad8\u6548\uff0c \u5e76\u4e14\u652f\u6301\u65e9\u671f\u7684 RestTemplate API \u548c RPC API \u6765\u8bbf\u95ee\u670d\u52a1\u3002 </p> <p>\u53ef\u4ee5\u9605\u8bfb\u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u8df5-Spring Boot\u6280\u672f\u6808\u9009\u578b \u4e86\u89e3\u4e00\u4e9b\u5e38\u7528\u7684 Spring Boot  \u5f00\u53d1\u7684\u7ec4\u4ef6\u9009\u578b\u53c2\u8003\u3002 servicecomb-samples \u63d0\u4f9b  \u4e86 WebApplicationType.SERVLET \u4f7f\u7528 Spring Boot \u7684\u5b8c\u6574\u4f8b\u5b50\u3002   WebApplicationType.NONE \u6a21\u5f0f\u7b49\u4ef7\u4e8e\u8f7b\u91cf\u7ea7\u6a21\u5f0f\uff0c \u4f46\u662f\u53ef\u4ee5\u4f7f\u7528 Spring Boot \u7684\u6253\u5305\u529f\u80fd\u4ee5\u53ca\u5176\u4ed6\u5f00\u53d1\u7ec4\u4ef6\u652f\u6301\u3002 </p> <ul> <li>Spring MVC </li> </ul> <p>Java Chassis \u7ee7\u627f\u4e86 Spring MVC \u7684\u63a5\u53e3\u8bbe\u8ba1\uff0c \u63d0\u4f9b\u4e86 Provider \u548c Consumer \u5c42\u9762\u7684 API \u63a5\u53e3\u6765\u5b9a\u4e49 REST \u63a5\u53e3\u548c\u8bbf\u95ee REST \u63a5\u53e3\u3002 \u4f46\u662f\u9700\u8981  \u6ce8\u610f\u7684\u662f\uff0c \u4e24\u4e2a\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u5b9e\u73b0\uff0c \u5b9e\u73b0\u673a\u5236\u4e5f\u4e0d\u4e00\u6837\u3002 Spring Boot \u4e3b\u8981\u57fa\u4e8e Servlet\uff0c \u5b9e\u73b0\u4e86 MVC \u6a21\u5f0f\uff0c \u4e0d\u4ec5\u53ef\u4ee5\u5f00\u53d1 REST \u63a5\u53e3\uff0c \u8fd8\u53ef\u4ee5  \u5f00\u53d1\u5176\u4ed6 HTTP \u529f\u80fd\uff0c \u6bd4\u5982\u91cd\u5b9a\u5411\uff0c \u8fd4\u56de HTML \u9875\u9762\u7b49\uff0c \u8fd8\u53ef\u4ee5\u901a\u8fc7 @ExceptionHandler\uff0c @ControllerAdvice \u7b49\u673a\u5236\u62e6\u622a Servlet \u8bf7\u6c42\uff0c\u8fdb\u884c  \u5f02\u5e38\u5904\u7406\u3002 Java Chassis \u53ea\u5b9e\u73b0\u4e86 REST \u670d\u52a1\u5b9a\u4e49\u548c\u8c03\u7528\uff0c \u5e76\u4e14\u5728\u5f02\u5e38\u5904\u7406\u673a\u5236\u548c\u8bf7\u6c42\u62e6\u622a\u673a\u5236\u4e0a\u4e0d\u4e00\u6837\u3002 \u5f00\u53d1\u7ec6\u8282\u4e0a\u7684\u5dee\u5f02\u53ef\u4ee5\u901a\u8fc7  \u7528SpringMVC \u5f00\u53d1\u5fae\u670d\u52a1 \u8fdb\u884c\u4e86\u89e3\u3002  </p>"},{"location":"start/design.html#java-chassis-spring-cloud","title":"Java Chassis \u4e0e Spring Cloud","text":"<p>Java Chassis \u548c Spring Cloud \u90fd\u5b9e\u73b0\u4e86\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\uff0c \u76f8\u6bd4\u800c\u8a00\uff0c Java Chassis \u662f\u4e00\u4e2a\u66f4\u52a0\u7d27\u51d1\u7684\u5b9e\u73b0\uff0c \u5f00\u7bb1\u5373\u7528\uff0c \u800c Spring Cloud \u5219\u662f \u76f8\u5bf9\u677e\u6563\u7684\u5b9e\u73b0\uff0c \u901a\u5e38\u9700\u8981\u7ed3\u5408\u5f88\u591a\u7b2c\u4e09\u65b9\u7684\u7ec4\u4ef6\u624d\u80fd\u591f\u5b8c\u6210\u7aef\u5230\u7aef\u7684\u5fae\u670d\u52a1\u5f00\u53d1\u3002 </p> <p>\u5fae\u670d\u52a1\u67b6\u6784\u6a21\u5f0f\u5173\u6ce8\u5fae\u670d\u52a1\u5185\u90e8\u548c\u5fae\u670d\u52a1\u4e4b\u95f4\u7684\u8bbe\u8ba1\uff0c \u4e5f\u5173\u6ce8\u5fae\u670d\u52a1\u4e0e\u5fae\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u4e4b\u95f4\u7684\u5173\u7cfb\u3002 Java Chassis \u5fae\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u5305\u62ec\u670d\u52a1\u6ce8\u518c\u548c\u53d1\u73b0\uff0c \u670d\u52a1\u914d\u7f6e\u7ba1\u7406\uff0c \u7070\u5ea6\u53d1\u5e03\u548c\u5951\u7ea6\u7ba1\u7406\u7b49\u529f\u80fd\u3002 Spring Cloud \u53ef\u4ee5\u4f7f\u7528 spring-cloud-huawei  \u6765\u4f7f\u7528 Java Chassis \u76f8\u5173\u7684\u5fae\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u3002 </p> <p></p> <p>\u53ef\u4ee5\u9605\u8bfb\u57fa\u4e8eCSE\u7684\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u8df5-Spring Cloud\u6280\u672f\u6808\u9009\u578b \u4e86\u89e3 Java Chassis \u548c Spring Cloud \u7ec4\u4ef6\u9009\u578b\u4e0a\u7684\u4e00\u4e9b\u5dee\u5f02\u3002 </p>"},{"location":"start/development-environment.html","title":"\u5b89\u88c5\u672c\u5730\u5f00\u53d1\u73af\u5883","text":"<p>\u5e94\u7528\u5f00\u53d1\u73af\u5883\u6240\u9700\u5b89\u88c5\u7684\u5de5\u5177\u5305\u62ecJDK\u3001Maven\u3001Eclipse \u548c IDEA \u3002\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u4e86\u8fd9\u4e9b\u5f00\u53d1\u5de5\u5177\uff0c\u8bf7\u8df3\u8fc7\u672c\u8282\u3002</p>"},{"location":"start/development-environment.html#jdk","title":"JDK\u7ea6\u675f\u53ca\u5b89\u88c5\u6b65\u9aa4","text":"<p>1.JDK\u7248\u672c</p> <p>JDK \u7248\u672c\u8981\u6c42 17 \u4ee5\u4e0a\u3002</p> <p>2.JDK\u4e0b\u8f7d</p> <p>\u8bf7\u5230JDK 17 \u7248\u672c\u7684\u5b98\u65b9\u5730\u5740\u4e0b\u8f7d\u3002</p> <p>3.JDK\u5b89\u88c5</p> <p>\u5728\u5b98\u7f51\u4e0b\u8f7dJDK\u5b89\u88c5\u5305\u540e\uff0c\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u8def\u5f84\u5b89\u88c5JDK\u3002</p> <p>\u8fd9\u91cc\u4ee5windows\u7cfb\u7edf\u4e3a\u4f8b\uff1a</p> <p>\u8bbe\u7f6eJAVA_HOME\u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411Java\u5b89\u88c5\u76ee\u5f55\u3002\u5c06%JAVA_HOME%\\bin\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84path\u4e2d\u3002\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u4f7f\u7528java -version\u547d\u4ee4\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0cwindows\u73af\u5883\u4e0b\u56de\u663e\u5982\u4e0b\uff1a</p> <pre><code>C:\\&gt; java -version      \njava version \"17.0.5\" 2022-10-18 LTS\nJava(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)\nJava HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)\n</code></pre>"},{"location":"start/development-environment.html#maven","title":"Maven\u5b89\u88c5\u6b65\u9aa4","text":"<p>Maven\u662f\u4e00\u6b3e\u96c6\u9879\u76ee\u7ba1\u7406\u3001\u4ee3\u7801\u7f16\u8bd1\u3001\u5de5\u7a0b\u7ba1\u7406\u7b49\u7b49\u80fd\u529b\u4e8e\u4e00\u4f53\u7684\u5f00\u53d1\u5de5\u5177\u3002</p>"},{"location":"start/development-environment.html#_2","title":"\u524d\u63d0\u6761\u4ef6","text":"<p>JDK\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002</p>"},{"location":"start/development-environment.html#_3","title":"\u5b89\u88c5\u6b65\u9aa4","text":"<ul> <li>\u5728\u5b98\u65b9\u5730\u5740\u4e0b\u8f7dMaven\u5b89\u88c5\u5305\u3002</li> <li>\u89e3\u538bMaven\u5b89\u88c5\u5305\u5230\u672c\u673a\u8def\u5f84\u3002</li> <li>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf:</li> <li>\u8bbe\u7f6eM2_HOME\u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411Maven\u5b89\u88c5\u76ee\u5f55\u3002</li> <li>\u5c06%M2_HOME%\\bin\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84path\u4e2d\u3002</li> <li>\u7ed3\u679c\u9a8c\u8bc1</li> </ul> <p>\u4f7f\u7528mvn -version\u547d\u4ee4\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0cwindows\u73af\u5883\u4e0b\u56de\u663e\u5982\u4e0b\uff1a</p> <pre><code>C:\\&gt;mvn -version        \nApache Maven 3.8.4\n</code></pre>"},{"location":"start/development-environment.html#eclipse","title":"Eclipse\u5b89\u88c5","text":""},{"location":"start/development-environment.html#_4","title":"\u524d\u63d0\u6761\u4ef6","text":"<p>a.JDK\u5df2\u7ecf\u5b89\u88c5\u3002</p> <p>b.Maven\u5df2\u7ecf\u5b89\u88c5\u3002</p>"},{"location":"start/development-environment.html#_5","title":"\u5b89\u88c5\u6b65\u9aa4","text":"<p>a.\u5728\u5b98\u65b9\u5730\u5740\u4e0b\u8f7dEclipse\u5b89\u88c5\u5305\u3002</p> <p>b.\u5b89\u88c5Eclipse\u5230\u672c\u673a\u3002</p> <p>c.\uff08\u53ef\u9009\uff09\u5c06\u4e4b\u524dMaven\u5b89\u88c5\u4e2d\u4ecb\u7ecd\u7684\u63d2\u4ef6m2eclipse\u89e3\u538b\u5230Eclipse\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684plugins\u548cfeatures\u76ee\u5f55\u3002\u6700\u65b0\u7684Eclipse\u7248\u672c</p> <p>\u4e2d\u5e26\u6709Maven\u63d2\u4ef6\uff0c\u4e0d\u8981\u8fdb\u884c\u6b64\u64cd\u4f5c</p> <p>d.\u542f\u52a8Eclipse\uff0c\u914d\u7f6ejre\u3001maven settings\u4ee5\u53ca\u9ed8\u8ba4\u7f16\u7801\u683c\u5f0f\u4e3autf-8\u3002</p>"},{"location":"start/development-environment.html#idea","title":"IDEA\u5b89\u88c5","text":""},{"location":"start/development-environment.html#_6","title":"\u524d\u63d0\u6761\u4ef6","text":"<p>a.JDK\u5df2\u7ecf\u5b89\u88c5\u3002</p> <p>b.Maven\u5df2\u7ecf\u5b89\u88c5\u3002</p>"},{"location":"start/development-environment.html#_7","title":"\u5b89\u88c5\u6b65\u9aa4","text":"<p>a. \u5728\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d IDEA \u5b89\u88c5\u5305\uff0c\u6536\u8d39\u7248\u6216\u8005\u793e\u533a\u7248\u7684\u6309\u4e2a\u4eba\u9700\u6c42\u3002</p> <p>b. \u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\u90fd\u4e3a utf-8\u3002</p> <p>\u6253\u5f00IDEA\uff0c\u9009\u62e9 File -&gt; Settings -&gt; Editor -&gt; File Encoding \u628a project Encoding \u548c default encoding for properties files \u6539\u4e3a utf-8\u3002</p> <p>c. \u8bbe\u7f6emaven \u914d\u7f6e</p> <p>\u6253\u5f00IDEA\uff0c\u9009\u62e9 File -&gt; Settings -&gt; Build\uff0cExecution,Deployment -&gt; Bulid Tools -&gt; Maven \u6ce8\u610f\u914d\u7f6e Maven home directory  \u548c User settings file</p>"},{"location":"start/first-sample.html","title":"\u5f00\u53d1\u7b2c\u4e00\u4e2a\u5fae\u670d\u52a1\u5e94\u7528","text":""},{"location":"start/first-sample.html#_2","title":"\u51c6\u5907\u5de5\u4f5c","text":"<p>\u5728\u5f00\u53d1\u7b2c\u4e00\u4e2aJava-Chassis\u5fae\u670d\u52a1\u4e4b\u524d\uff0c\u8bf7\u5148\u786e\u4fdd\u672c\u5730\u5f00\u53d1\u73af\u5883\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\uff0c\u53c2\u8003\u5b89\u88c5\u672c\u5730\u5f00\u53d1\u73af\u5883\u3002</p> <p>\u8fd0\u884c\u8fd9\u4e9b\u4f8b\u5b50\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u6ce8\u518c\u4e2d\u5fc3 \u548c\u914d\u7f6e\u4e2d\u5fc3 \u3002\u534e\u4e3a\u4e91\u63d0\u4f9b\u4e00\u4e2a\u51fa\u8272\u7684\u672c\u5730\u8f7b\u91cf\u5316\u5fae\u670d\u52a1\u5f15\u64ce , \u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5b89\u88c5\u4f7f\u7528\uff0c\u5b83\u5305\u542b\u4e86\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u3002</p> <p>Java Chassis\u4f9d\u8d56\u4e8eSpring Boot\uff0c\u5982\u679c\u5bf9\u4e8eSpring Boot\u6bd4\u8f83\u964c\u751f\uff0c\u53ef\u4ee5\u5148\u901a\u8fc7 Spring Boot\u5165\u95e8 \u4e86\u89e3\u3002 </p>"},{"location":"start/first-sample.html#_3","title":"\u4f8b\u5b50\u4ecb\u7ecd","text":"<p>Basic\u793a\u4f8b \u5305\u542b\u4e863\u4e2a\u5fae\u670d\u52a1\uff1a gateway, provider, consumer\u3002 \u8fd93\u4e2a\u670d\u52a1\u5b8c\u6210\u4e86\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u5fae\u670d\u52a1\u67b6\u6784\u3002 \u5176\u4e2d provider \u63d0\u4f9b\u4e00\u4e2a REST \u63a5\u53e3\uff0c consumer \u8c03\u7528 provider \u7684 REST \u63a5\u53e3\u5b8c\u6210\u540c\u6837\u7684\u529f\u80fd\u3002 gateway \u4f5c\u4e3a\u5fae\u670d\u52a1\u7684\u63a5\u5165\u7aef\uff0c \u8d1f\u8d23\u6240\u6709\u5916\u90e8\u8bf7\u6c42\u7684\u63a5\u5165\u3002</p> <p>\u5982\u679c\u5df2\u7ecf\u4e86\u89e3 JAVA + MAVEN \u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\uff0c \u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5e76\u8fd0\u884c\u8fd9\u4e2a\u793a\u4f8b\u3002 \u4e0b\u9762\u4ecb\u7ecd\u8be5\u793a\u4f8b\u7684\u5173\u952e\u5f00\u53d1\u6b65\u9aa4\u3002</p>"},{"location":"start/first-sample.html#rest","title":"\u5f00\u53d1\u4e00\u4e2a\u5e26 REST \u63a5\u53e3\u7684\u5fae\u670d\u52a1","text":""},{"location":"start/first-sample.html#pom","title":"\u914d\u7f6epom\u6587\u4ef6","text":"<p>\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684maven\u5de5\u7a0b\u3002\u5efa\u8bae\u5148\u914d\u7f6e<code>dependencyManagement</code>\u6765\u7ba1\u7406\u4f9d\u8d56\u9879</p> <pre><code>\n&lt;dependencyManagement&gt;\n  &lt;dependencies&gt;\n    &lt;dependency&gt;\n      &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n      &lt;artifactId&gt;java-chassis-dependencies&lt;/artifactId&gt;\n      &lt;version&gt;${java-chassis-dependencies.version}&lt;/version&gt;\n      &lt;type&gt;pom&lt;/type&gt;\n      &lt;scope&gt;import&lt;/scope&gt;\n    &lt;/dependency&gt;\n  &lt;/dependencies&gt;\n&lt;/dependencyManagement&gt;\n</code></pre> <p>\u4f9d\u8d56\u9879\u9700\u8981\u5f15\u5165<code>solution-basic</code>, \u5e76\u4e14\u5f15\u5165\u6ce8\u518c\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u548cLogger\u7cfb\u7edf\u7684\u4f9d\u8d56</p> <pre><code>\n&lt;dependencies&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;solution-basic&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;!-- using log4j2 --&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n    &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n    &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;\n    &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;!-- using service-center &amp; kie --&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;registry-service-center&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;config-kie&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n  &lt;!-- using java chassis http transport --&gt;\n  &lt;dependency&gt;\n    &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n    &lt;artifactId&gt;java-chassis-spring-boot-starter-standalone&lt;/artifactId&gt;\n  &lt;/dependency&gt;\n&lt;/dependencies&gt;\n</code></pre> <p><code>solution-basic</code>\u4e2d\u5df2\u7ecf\u5305\u542b\u4e86\u5e38\u89c1\u573a\u666f\u4e0b\u5f00\u53d1Java-Chassis\u5fae\u670d\u52a1\u6240\u9700\u7684\u5168\u90e8\u4f9d\u8d56\u9879\u3002</p> <p>\u5f15\u5165<code>maven-compiler-plugin</code>\u63d2\u4ef6\uff0c\u4f7f\u9879\u76ee\u6253\u5305\u65f6\u4fdd\u7559\u65b9\u6cd5\u53c2\u6570\u540d\uff1a</p> <pre><code>\n&lt;plugin&gt;\n  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;\n  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;\n  &lt;version&gt;${maven-compiler-plugin.version}&lt;/version&gt;\n  &lt;configuration&gt;\n    &lt;compilerArgument&gt;-parameters&lt;/compilerArgument&gt;\n    &lt;source&gt;17&lt;/source&gt;\n    &lt;target&gt;17&lt;/target&gt;\n  &lt;/configuration&gt;\n&lt;/plugin&gt;\n</code></pre>"},{"location":"start/first-sample.html#_4","title":"\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6","text":"<p>\u6309\u7167Spring Boot\u5e94\u7528\u7a0b\u5e8f\u8981\u6c42\uff0c\u589e\u52a0 <code>application.yaml</code> \u6587\u4ef6 \uff0c\u5b58\u653e\u5728<code>resources</code>\u76ee\u5f55\u4e2d\u3002</p> <p>\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff0c\u8fd9\u4efd\u6587\u4ef6\u8868\u793a\u5f53\u524d\u5f00\u53d1\u7684\u662f<code>basic-application</code>\u5e94\u7528\u4e0b\u7684\u540d\u4e3a<code>provider</code>\u7684\u5fae\u670d\u52a1\uff0c\u7248\u672c\u4e3a0.0.1\u3002\u8be5\u5fae\u670d\u52a1\u8fde\u63a5\u7684\u6ce8\u518c\u4e2d\u5fc3\u5730\u5740\u4e3a<code>http://localhost:30100</code> \uff0c\u914d\u7f6e\u4e2d\u5fc3\u5730\u5740\u4e3a<code>http://localhost:30110</code>\u3002 \u8be5\u5fae\u670d\u52a1\u76d1\u542cHTTP\u534f\u8bae\u7684<code>9093</code>\u7aef\u53e3\u3002</p> <pre><code>servicecomb:\n  service:\n    application: basic-application\n    name: provider\n    version: 0.0.1\n  rest:\n    address: 0.0.0.0:9093\n  # \u6ce8\u518c\u53d1\u73b0\n  registry:\n    sc:\n      address: http://localhost:30100\n  # \u52a8\u6001\u914d\u7f6e\n  kie:\n    serverUri: http://localhost:30110\n</code></pre>"},{"location":"start/first-sample.html#_5","title":"\u7f16\u5199\u542f\u52a8\u7c7b","text":"<p>Java Chassis\u5e94\u7528\u662f\u4e00\u4e2a\u6807\u51c6\u7684Spring Boot\u5e94\u7528\u3002\u672c\u793a\u4f8b\u4e2d\uff0c\u8bbe\u7f6e <code>WebApplicationType.NONE</code>\uff0c \u8fd9\u6837\u4f1a\u4f7f\u7528 Java Chassis\u81ea\u5e26\u7684\u9ad8\u6027\u80fd HTTP \u5bb9\u5668\uff0c\u800c\u4e0d\u4f7f\u7528 Spring Boot\u81ea\u5e26\u7684WEB\u5bb9\u5668\u3002</p> <pre><code>\n@SpringBootApplication\npublic class ProviderApplication {\n  public static void main(String[] args) throws Exception {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.NONE)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre>"},{"location":"start/first-sample.html#_6","title":"\u7f16\u5199\u670d\u52a1","text":"<p>\u672c\u4f8b\u5b50\u91c7\u7528\u5951\u7ea6\u4f18\u5148\u7684\u5f00\u53d1\u65b9\u6cd5\u3002</p> <p>\u9996\u5148\u5b9a\u4e49\u670d\u52a1\u63a5\u53e3\uff1a</p> <pre><code>@RequestMapping(path = \"/provider\")\npublic interface ProviderService {\n  @GetMapping(\"/sayHello\")\n  String sayHello(@RequestParam(\"name\") String name);\n\n  @GetMapping(\"/exampleConfig\")\n  String exampleConfig();\n}\n</code></pre> <p>\u5728\u5de5\u7a0b\u4e2d\u6dfb\u52a0\u4e00\u4e2aREST\u63a5\u53e3\u7c7b\u7528\u4e8e\u63a5\u6536\u8bf7\u6c42\uff1a</p> <pre><code>@RestSchema(schemaId = \"ProviderController\", schemaInterface = ProviderService.class)\npublic class ProviderController implements ProviderService {\n  private DynamicProperties dynamicProperties;\n\n  private String example;\n\n  @Autowired\n  public ProviderController(DynamicProperties dynamicProperties) {\n    this.dynamicProperties = dynamicProperties;\n    this.example = this.dynamicProperties.getStringProperty(\"basic.example\",\n        value -&gt; this.example = value, \"not set\");\n  }\n\n  @Override\n  public String sayHello(String name) {\n    return \"Hello \" + name;\n  }\n\n  @Override\n  public String exampleConfig() {\n    return example;\n  }\n}\n</code></pre> <p>\u8be5\u7c7b\u5b9e\u73b0\u4e86\u4e24\u4e2aREST\u63a5\u53e3\uff0c\u5176\u4e2d<code>sayHello</code>\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684echo\u7a0b\u5e8f\uff1b<code>exampleConfig</code>\u6f14\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u4e0b\u53d1\u914d\u7f6e\u9879\uff0c\u5e76\u52a8\u6001\u76d1\u542c\u914d\u7f6e\u9879\u7684\u53d8\u5316\u3002</p>"},{"location":"start/first-sample.html#_7","title":"\u6dfb\u52a0\u65e5\u5fd7\u914d\u7f6e\u6587\u4ef6","text":"<p>\u672c\u4f8b\u5b50\u5f15\u5165\u4e86log4j2\u7ec4\u4ef6\u3002\u5982\u679c\u60f3\u8981\u770b\u5230\u8fd0\u884c\u65e5\u5fd7\uff0c\u8fd8\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u4e00\u4efd\u65e5\u5fd7\u914d\u7f6e\u6587\u4ef6\uff0c\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\u4e3a<code>resources\\log4j2.xml</code>\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a</p> <pre><code>\n&lt;Configuration status=\"INFO\"&gt;\n  &lt;Appenders&gt;\n    &lt;Console name=\"Console\" target=\"SYSTEM_OUT\"&gt;\n      &lt;PatternLayout pattern=\"[%d][%t][%p]%m [%c:%L]%n\"/&gt;\n    &lt;/Console&gt;\n  &lt;/Appenders&gt;\n  &lt;Loggers&gt;\n    &lt;Root level=\"INFO\"&gt;\n      &lt;AppenderRef ref=\"Console\"/&gt;\n    &lt;/Root&gt;\n  &lt;/Loggers&gt;\n&lt;/Configuration&gt;\n</code></pre>"},{"location":"start/first-sample.html#_8","title":"\u8c03\u7528\u670d\u52a1","text":"<p>\u5728 Consumer \u91cc\u9762\uff0c\u6f14\u793a\u4e86\u5982\u4f55\u8c03\u7528 Provider \u7684\u670d\u52a1\u3002 \u9996\u5148\u58f0\u660e\u4e00\u4e2a PRC \u63a5\u53e3\u7684 Bean\u3002</p> <pre><code>@Configuration\npublic class ProviderServiceConfiguration {\n  @Bean\n  public ProviderService providerService() {\n    return Invoker.createProxy(\"provider\", \"ProviderController\", ProviderService.class);\n  }\n}\n</code></pre> <p>\u4f7f\u7528 @Autowired \u58f0\u660e RPC \u63a5\u53e3\u7684\u8fdc\u7a0b\u5f15\u7528\uff0c \u7136\u540e\u53ef\u4ee5\u50cf\u8c03\u7528\u672c\u5730\u65b9\u6cd5\u4e00\u6837\uff0c\u8bbf\u95ee Provider \u7684\u670d\u52a1\u3002</p> <pre><code>@RestSchema(schemaId = \"ConsumerController\", schemaInterface = ConsumerService.class)\npublic class ConsumerController implements ConsumerService {\n  private ProviderService providerService;\n\n  @Autowired\n  public void setProviderService(ProviderService providerService) {\n    this.providerService = providerService;\n  }\n\n  @Override\n  public String sayHello(String name) {\n    return providerService.sayHello(name);\n  }\n\n  @Override\n  public String exampleConfig() {\n    return providerService.exampleConfig();\n  }\n}\n</code></pre>"},{"location":"start/first-sample.html#_9","title":"\u5fae\u670d\u52a1\u7f51\u5173","text":"<p>\u5fae\u670d\u52a1\u7f51\u5173\u662f\u4e00\u4e2a\u666e\u901a\u7684\u5fae\u670d\u52a1\uff0c\u9700\u8981\u989d\u5916\u5f15\u5165 <code>edge-core</code> \u3002</p> <pre><code>\n&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;edge-core&lt;/artifactId&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"start/first-sample.html#_10","title":"\u542f\u52a8\u670d\u52a1","text":"<p>\u4f9d\u6b21\u542f\u52a8 <code>ProviderApplication</code>\u3001<code>ConsumerApplication</code>\u548c<code>GatewayApplication</code>\uff0c \u8bbf\u95ee <code>http://localhost:9090/sayHello?name=World</code> \uff0c\u53ef\u4ee5\u5f97\u5230\u54cd\u5e94<code>\"Hello World!\"</code>\u3002</p> <p>\u6253\u5f00\u6ce8\u518c\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u63a7\u5236\u53f0\uff0c\u8fd8\u53ef\u4ee5\u770b\u5230\u5fae\u670d\u52a1\u7684\u5b9e\u4f8b\u5217\u8868\u3002\u901a\u8fc7\u914d\u7f6e\u4e2d\u5fc3\u7ed9 <code>ProviderApplication</code> \u6dfb\u52a0\u914d\u7f6e\uff0c \u8bbf\u95ee <code>http://localhost:9090/exampleConfig</code> , \u53ef\u4ee5\u5f97\u5230\u54cd\u5e94\uff0c\u54cd\u5e94\u5305\u542b\u4e86\u6700\u65b0\u7684\u914d\u7f6e\u9879\u7684\u503c\u3002 </p>"},{"location":"start/first-sample.html#nacos","title":"\u4f7f\u7528<code>Nacos</code>\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3","text":"<p>\u672c\u4f8b\u5b50\u8fd8\u53ef\u4ee5\u4f7f\u7528 <code>Nacos</code> \u4f5c\u4e3a\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3\u3002 </p> <p>\u7f16\u8bd1\uff1a</p> <pre><code>mvn clean install -Pnacos\n</code></pre> <p>\u8fd0\u884c:</p> <pre><code>java -Dspring.profiles.active=nacos -jar basic-provider-2.0-SNAPSHOT.jar\n</code></pre> <p>\u4e5f\u53ef\u4ee5\u5728IDE\u91cc\u9762\u9009\u62e9 MAVEN \u7684 nacos PROFILE\uff0c\u5e76\u4fee\u6539 application.yml \u7684 <code>spring.profiles.active</code> \u4e3a nacos. </p>"},{"location":"start/terminology.html","title":"\u672f\u8bed\u8868","text":"\u7f29\u7565\u8bed \u82f1\u6587\u8bcd\u6c47 \u4e2d\u6587\u8bcd\u6c47 \u89e3\u91ca Application Application \u5e94\u7528 \u5e94\u7528\u4ee3\u8868\u4e00\u4e2a\u8f6f\u4ef6\u5e94\u7528\u7684\u903b\u8f91\u5b9e\u4f53\uff0c\u8868\u793a\u4e00\u4e2a\u6709\u4e1a\u52a1\u529f\u80fd\u5448\u73b0\u7ed9\u7528\u6237\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6\u5e94\u7528\u3002\u4e00\u4e2a\u4ee5\u5fae\u670d\u52a1\u5316\u67b6\u6784\u6784\u5efa\u7684\u5e94\u7528\u901a\u5e38\u7531\u591a\u4e2a\u5fae\u670d\u52a1\u7ec4\u6210\u3002 Service Service \u5fae\u670d\u52a1 \u5fae\u670d\u52a1\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7SOA\u67b6\u6784\uff0c\u901a\u5e38\u7528\u6765\u63cf\u8ff0\u5e7f\u6cdb\u7528\u4e8e\u4e91\u5e94\u7528\u3001\u4e92\u8054\u7f51\u5e94\u7528\u7684\u4e00\u79cd\u677e\u8026\u5408\u5206\u5e03\u5f0f\u67b6\u6784\u3002 Instance Instance \u5fae\u670d\u52a1\u5b9e\u4f8b \u4e00\u4e2a\u5fae\u670d\u52a1\u7684\u6700\u5c0f\u8fd0\u884c\u548c\u90e8\u7f72\u5355\u5143\uff0c\u901a\u5e38\u5bf9\u5e94\u4e00\u4e2a\u5e94\u7528\u8fdb\u7a0b\u3002 Provider Provider \u670d\u52a1\u63d0\u4f9b\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u88ab\u8c03\u7528\u4e00\u65b9\u7684\u670d\u52a1\u3002 Consumer Consumer \u670d\u52a1\u6d88\u8d39\u8005 \u5728\u5fae\u670d\u52a1\u8c03\u7528\u5173\u7cfb\u4e2d\u5904\u4e8e\u8c03\u7528\u53d1\u8d77\u65b9\u7684\u670d\u52a1\u3002 Schema Schema \u5fae\u670d\u52a1\u5951\u7ea6 \u5fae\u670d\u52a1\u5951\u7ea6\u662f\u5bf9\u5916\u63a5\u53e3\u7684OpenAPI\u8868\u793a\u3002OpenAPI\u589e\u5f3a\u4e86\u5fae\u670d\u52a1\u7684\u53ef\u89c1\u6027\uff0c\u65b9\u4fbf\u670d\u52a1\u7684\u5206\u53d1\u3001\u4f7f\u7528\u548c\u6cbb\u7406\u3002 Code Style Code Style \u7f16\u7a0b\u6a21\u578b \u7f16\u7a0b\u6a21\u578b\u6307\u5982\u4f55\u8fdb\u884c\u670d\u52a1\u63a5\u53e3\u5f00\u53d1\u548c\u8c03\u7528\uff0cJava Chassis\u63d0\u4f9b\u4e86Spring Web MVC\u3001JAX RS\u7b49\u7f16\u7a0b\u6a21\u578b\u3002\u7f16\u7a0b\u6a21\u578b\u72ec\u7acb\u4e8e\u5904\u7406\u94fe\u548c\u901a\u4fe1\u6a21\u578b Filter Filter \u5904\u7406\u94fe \u5904\u7406\u94fe\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5305\u62ec\u7f16\u89e3\u7801\u3001\u670d\u52a1\u6cbb\u7406\u3001\u7f51\u7edc\u53d1\u9001\u7b49\u3002 Transport Transport \u901a\u4fe1\u6a21\u578b \u901a\u4fe1\u6a21\u578b\u5b9a\u4e49\u4e86\u5bf9\u8c61\u5982\u4f55\u7f16\u89e3\u7801\uff0c\u4f7f\u7528\u4ec0\u4e48\u534f\u8bae\u4f20\u8f93\u7b49\u3002Java Chassis\u63d0\u4f9b\u4e86REST\u3001HIGHWAY\u7b49\u901a\u4fe1\u6a21\u578b\u3002 Load Balance Load Balance \u8d1f\u8f7d\u5747\u8861 \u5f53\u5e94\u7528\u8bbf\u95ee\u4e00\u4e2a\u5177\u6709\u591a\u4e2a\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u65f6\uff0c\u4f1a\u6d89\u53ca\u5230\u8def\u7531\u8d1f\u8f7d\u5747\u8861\u3002\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u652f\u6301\u968f\u673a\uff0c\u8f6e\u8be2\u3001\u4f1a\u8bdd\u4fdd\u6301\u548c\u57fa\u4e8e\u54cd\u5e94\u65f6\u95f4\u7684\u6743\u503c\u7b49\u591a\u79cd\u8d1f\u8f7d\u5747\u8861\u8def\u7531\u7b56\u7565\u3002 Rate Limiting Rate Limiting \u9650\u6d41 \u5f53\u8d44\u6e90\u6210\u4e3a\u74f6\u9888\u65f6\uff0c\u670d\u52a1\u6846\u67b6\u9700\u8981\u5bf9\u6d88\u8d39\u8005\u7684\u8bbf\u95ee\u8bf7\u6c42\u505a\u9650\u6d41\uff0c\u542f\u52a8\u6d41\u63a7\u4fdd\u62a4\u673a\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u8005\u7aef\u548c\u63d0\u4f9b\u8005\u7aef\u5747\u53ef\u8fdb\u884c\u6d41\u91cf\u63a7\u5236\u3002\u5728\u670d\u52a1\u6d88\u8d39\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u53d1\u5f80\u67d0\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u8005\u7684\u8bf7\u6c42\u9891\u7387\uff1b\u5728\u670d\u52a1\u63d0\u4f9b\u7aef\uff0c\u53ef\u4ee5\u9650\u5236\u6bcf\u4e2a\u5fae\u670d\u52a1\u6d88\u8d39\u7aef\u53d1\u8fc7\u6765\u7684\u8bf7\u6c42\u9891\u7387\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u670d\u52a1\u63d0\u4f9b\u7aef\u8d44\u6e90\u6d88\u8017\u60c5\u51b5\u786e\u5b9a\u603b\u7684\u8bf7\u6c42\u9891\u7387\u9650\u5236\uff0c\u9632\u6b62\u670d\u52a1\u56e0\u8d44\u6e90\u8017\u5c3d\u800c\u5d29\u6e83\u3002 Service Degrade Service Degrade \u964d\u7ea7 \u670d\u52a1\u964d\u7ea7\u4e3b\u8981\u5305\u62ec\u5c4f\u853d\u964d\u7ea7\u548c\u5bb9\u9519\u964d\u7ea7\u4e24\u79cd\u7b56\u7565\uff1a\u5c4f\u853d\u964d\u7ea7\u662f\u6307\u5f53\u5916\u754c\u7684\u89e6\u53d1\u6761\u4ef6\u8fbe\u5230\u67d0\u4e2a\u4e34\u754c\u503c\u65f6\uff0c\u7531\u8fd0\u7ef4\u4eba\u5458/\u5f00\u53d1\u4eba\u5458\u51b3\u7b56\uff0c\u5bf9\u67d0\u7c7b\u6216\u8005\u67d0\u4e2a\u670d\u52a1\u8fdb\u884c\u5f3a\u5236\u964d\u7ea7\u3002\u5bb9\u9519\u964d\u7ea7\u662f\u6307\u5f53\u975e\u6838\u5fc3\u670d\u52a1\u4e0d\u53ef\u7528\u65f6\uff0c\u53ef\u4ee5\u5bf9\u6545\u969c\u670d\u52a1\u505a\u4e1a\u52a1\u903b\u8f91\u653e\u901a\uff0c\u4ee5\u4fdd\u969c\u6838\u5fc3\u670d\u52a1\u7684\u8fd0\u884c\u3002 Fault Tolerance Fault Tolerance \u5bb9\u9519 \u5bb9\u9519\u662f\u6d88\u8d39\u8005\u8bbf\u95ee\u670d\u52a1\u65f6\u51fa\u73b0\u5f02\u5e38\u7684\u573a\u666f\u4e0b\u7684\u4e00\u79cd\u5904\u7406\u7b56\u7565\uff0c\u51fa\u73b0\u5f02\u5e38\u540e\u7531\u670d\u52a1\u6846\u67b6\u81ea\u52a8\u9009\u62e9\u65b0\u7684\u670d\u52a1\u8def\u7531\u8fdb\u884c\u8c03\u7528\u3002 Circuit Breaker Circuit Breaker \u7194\u65ad \u5fae\u670d\u52a1\u4e4b\u95f4\u901a\u5e38\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\uff0c\u670d\u52a1\u8c03\u7528\u94fe\u8def\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u5fae\u670d\u52a1\uff0c\u5982\u679c\u94fe\u8def\u4e2d\u4e00\u4e2a\u6216\u591a\u4e2a\u670d\u52a1\u8bbf\u95ee\u5ef6\u8fdf\u8fc7\u9ad8\uff0c\u4f1a\u5bfc\u81f4\u5165\u53e3\u670d\u52a1\u7684\u8bf7\u6c42\u4e0d\u65ad\u5806\u79ef\uff0c\u6301\u7eed\u6d88\u8017\u66f4\u591a\u7684\u7ebf\u7a0b\u3001io\u8d44\u6e90\uff0c\u6700\u7ec8\u7531\u4e8e\u8d44\u6e90\u7d2f\u79ef\u4f7f\u7cfb\u7edf\u51fa\u73b0\u74f6\u9888\uff0c\u9020\u6210\u66f4\u591a\u670d\u52a1\u4e0d\u53ef\u7528\uff0c\u4ea7\u751f\u96ea\u5d29\u6548\u5e94\u3002\u7194\u65ad\u673a\u5236\u5c31\u662f\u9488\u5bf9\u4e0a\u8ff0\u573a\u666f\u8bbe\u8ba1\u7684\uff0c\u5f53\u67d0\u4e2a\u76ee\u6807\u670d\u52a1\u54cd\u5e94\u7f13\u6162\u6216\u8005\u6709\u5927\u91cf\u8d85\u65f6\u60c5\u51b5\u53d1\u751f\u65f6\uff0c\u7194\u65ad\u8be5\u670d\u52a1\u7684\u8c03\u7528\uff0c\u5bf9\u4e8e\u540e\u7eed\u8c03\u7528\u8bf7\u6c42\uff0c\u4e0d\u518d\u7ee7\u7eed\u8c03\u7528\u76ee\u6807\u670d\u52a1\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u5feb\u901f\u91ca\u653e\u8d44\u6e90\uff0c\u7b49\u5230\u8be5\u76ee\u6807\u670d\u52a1\u60c5\u51b5\u597d\u8f6c\u518d\u6062\u590d\u8c03\u7528\u3002 Bulkhead Bulkhead \u9694\u79bb\u4ed3 \u9694\u79bb\u4ed3\u662f\u4e00\u79cd\u5f02\u5e38\u68c0\u6d4b\u673a\u5236\uff0c\u5e38\u7528\u7684\u68c0\u6d4b\u65b9\u6cd5\u662f\u8bf7\u6c42\u8d85\u65f6\u3001\u6d41\u91cf\u8fc7\u5927\u7b49\u3002\u4e00\u822c\u7684\u8bbe\u7f6e\u53c2\u6570\u5305\u62ec\u8d85\u65f6\u65f6\u95f4\u3001\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u7b49\uff0c\u5f53\u8d85\u8fc7\u8d85\u65f6\u65f6\u95f4\u6216\u6700\u5927\u5e76\u53d1\u8bf7\u6c42\u6570\u65f6\uff0c\u8bb0\u5f55\u4e00\u6b21\u5f02\u5e38\uff0c\u5728\u7194\u65ad\u3001\u5b9e\u4f8b\u9694\u79bb\u673a\u5236\u4e2d\uff0c\u7528\u4e8e\u8ba1\u7b97\u9519\u8bef\u7387\u3002 Instance Isolation Instance Isolation \u5b9e\u4f8b\u9694\u79bb \u5b9e\u4f8b\u9694\u79bb\u901a\u8fc7\u68c0\u6d4b\u5b9e\u4f8b\u7684\u9519\u8bef\u7387\u3001\u8d85\u65f6\u8bf7\u6c42\u6570\u7b49\u6307\u6807\uff0c\u77ed\u6682\u7684\u5c4f\u853d\u6545\u969c\u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u964d\u4f4e\u9519\u8bef\u7387\u4ee5\u53ca\u9632\u6b62\u53d1\u751f\u96ea\u5d29\u6548\u5e94\u3002"},{"location":"transports/highway-rpc.html","title":"Highway","text":""},{"location":"transports/highway-rpc.html#_1","title":"\u5f00\u53d1\u8bf4\u660e","text":"<p>Highway\u662fJava Chassis\u7684\u9ad8\u6027\u80fd\u79c1\u6709TCP\u534f\u8bae, Highway\u534f\u8bae\u652f\u6301proto-buffer\u7f16\u7801\u3002\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0c\u5efa\u8bae\u5728\u9ad8\u6027\u80fd\u6a21\u5f0f\u4f7f\u7528Highway\u3002</p> <p>application.yaml \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  highway:\n    address: 0.0.0.0:7070\n</code></pre> <p>\u5176\u4e2d <code>0.0.0.0:7070</code> \u4ee3\u8868\u4f7f\u7528Highway\u534f\u8bae\uff0c\u5e76\u4e14\u76d1\u542c7070\u7aef\u53e3\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>sslEnabled=true</code>\u4f7f\u7528HTTPS\u901a\u4fe1\uff0c\u5177\u4f53\u4ecb\u7ecd\u89c1\u4f7f\u7528TLS\u901a\u4fe1\u7ae0\u8282\u3002</p>"},{"location":"transports/highway-rpc.html#_2","title":"\u914d\u7f6e\u8bf4\u660e","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.highway.address \u670d\u52a1\u76d1\u542c\u5730\u5740\uff0c\u4e0d\u914d\u7f6e\u8868\u793a\u4e0d\u76d1\u542c servicecomb.highway.server.connection-limit Integer.MAX_VALUE \u5141\u8bb8\u5ba2\u6237\u7aef\u6700\u5927\u8fde\u63a5\u6570 servicecomb.highway.server.thread-count verticle-count highway server verticle\u5b9e\u4f8b\u6570(Deprecated) servicecomb.highway.server.verticle-count verticle-count highway server verticle\u5b9e\u4f8b\u6570 servicecomb.highway.client.thread-count verticle-count highway client verticle\u5b9e\u4f8b\u6570(Deprecated) servicecomb.highway.client.verticle-count verticle-count highway client verticle\u5b9e\u4f8b\u6570 servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.highway.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002"},{"location":"transports/http2.html","title":"REST over HTTP2\uff08Vert.x)","text":""},{"location":"transports/http2.html#_1","title":"\u5f00\u53d1\u4ecb\u7ecd","text":"<p>\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0c\u9ad8\u6027\u80fd\u6a21\u5f0f\u4f7f\u7528 REST over HTTP2\uff08Vert.x\uff09\u3002</p> <p>application.yaml \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080?protocol=http2\n    server:\n      verticle-count: 8\n</code></pre> <ul> <li> <p>\u542f\u7528h2(Http2 + TLS)\u8fdb\u884c\u901a\u4fe1   \u670d\u52a1\u7aef\u5728\u914d\u7f6e\u670d\u52a1\u76d1\u542c\u5730\u5740\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>sslEnabled=true</code>\u5f00\u542fTLS\u901a\u4fe1\uff0c\u5177\u4f53\u4ecb\u7ecd\u89c1\u4f7f\u7528TLS\u901a\u4fe1\u7ae0\u8282\u3002\u7136\u540e\u518d\u8ffd\u52a0<code>protocol=http2</code>\u542f\u7528h2\u901a\u4fe1\u3002\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n    rest:\n      address: 0.0.0.0:8080?sslEnabled=true&amp;protocol=http2\n</code></pre> </li> <li> <p>\u542f\u7528h2c(Http2 without TLS)\u8fdb\u884c\u901a\u4fe1   \u670d\u52a1\u7aef\u5728\u914d\u7f6e\u670d\u52a1\u76d1\u542c\u5730\u5740\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>protocol=http2</code>\u542f\u7528h2c\u901a\u4fe1\u3002\u793a\u4f8b\u5982\u4e0b\uff1a</p> <pre><code>servicecomb:\n    rest:\n      address: 0.0.0.0:8080?protocol=http2\n</code></pre> </li> <li> <p>\u5ba2\u6237\u7aef\u4f1a\u901a\u8fc7\u4ece\u670d\u52a1\u4e2d\u5fc3\u8bfb\u53d6\u670d\u52a1\u7aef\u5730\u5740\u4e2d\u7684\u914d\u7f6e\u6765\u4f7f\u7528http2\u8fdb\u884c\u901a\u4fe1\u3002 </p> </li> </ul>"},{"location":"transports/http2.html#_2","title":"\u914d\u7f6e\u53c2\u8003","text":"\u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 \u6ce8\u610f servicecomb.rest.server.http2.useAlpnEnabled true \u662f\u5426\u542f\u7528 ALPN servicecomb.rest.server.http2.concurrentStreams 100 \u4e00\u6761\u8fde\u63a5\u4e2d\uff0c\u540c\u65f6\u652f\u6301\u7684\u6700\u5927\u7684stream\u5e76\u53d1\u91cf \u4ee5server\u7aef\u7684concurrentStreams\u548cclient\u7aef\u7684multiplexingLimit\u8f83\u5c0f\u503c\u4e3a\u51c6 servicecomb.rest.server.http2.HeaderTableSize 4096 servicecomb.rest.server.http2.pushEnabled true servicecomb.rest.server.http2.initialWindowSize 65535 servicecomb.rest.server.http2.maxFrameSize 16384 servicecomb.rest.server.http2.maxHeaderListSize Integer.MAX_VALUE servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002"},{"location":"transports/introduction.html","title":"\u591a\u534f\u8bae\u4ecb\u7ecd","text":"<p>Java Chassis\u63d0\u51fa\u7f16\u7a0b\u6a21\u578b\u548c\u901a\u4fe1\u6a21\u578b\u5206\u79bb\u7684\u521b\u65b0\u6982\u5ff5\uff0c\u63d0\u4f9b\u65b9\u4fbf\u3001\u7b80\u6d01\u7684\u591a\u534f\u8bae\u901a\u4fe1\u5f00\u53d1\u3002\u7f16\u7a0b\u6a21\u578b\u6307\u7528\u6237\u5199\u4ee3\u7801\u7684\u65b9\u5f0f\uff0cJava Chassis\u975e\u5e38\u7075\u6d3b\u7684\u7f16\u7a0b\u6a21\u578b: </p> <ul> <li>Provider\u7f16\u7a0b\u6a21\u578b\uff1aJAX-RS\u3001Spring Web MVC\u3001\u900f\u660eRPC</li> <li>Consumer\u7f16\u7a0b\u6a21\u578b\uff1a\u900f\u660eRPC\u3001RestOperations\u3001InvokerUtils</li> </ul> <p>\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u81ea\u7531\u7ec4\u5408Provider\u548cConsumer\u7684\u7f16\u7a0b\u6a21\u578b\uff0c\u5373\u5b58\u5728 3 * 3 \u79cd\u5f00\u53d1\u7ec4\u5408\uff0c\u6700\u63a8\u8350\u7684\u5f00\u53d1\u7ec4\u5408Provider\u91c7\u7528JAX-RS\uff0cConsumer\u91c7\u7528\u900f\u660eRPC\uff1b\u719f\u6089Spring Web MVC\u7684\u7528\u6237\u91c7\u7528Spring Web MVC\u548c\u900f\u660eRPC\u3002 </p> <p>\u7f16\u7a0b\u6a21\u578b\u548c\u6211\u4eec\u901a\u5e38\u6240\u8bf4\u7684\u591a\u534f\u8bae\u652f\u6301\u6ca1\u6709\u5173\u7cfb\u3002 \u591a\u534f\u8bae\u652f\u6301\u4e00\u822c\u6307\u7684\u662f\u5bf9\u8c61\u5982\u4f55\u7f16\u7801\uff0c\u6bd4\u5982\u91c7\u7528Json\u8fd8\u662f\u91c7\u7528proto-buffer, \u4ee5\u53ca\u901a\u4fe1\u534f\u8bae\u91c7\u7528\u4ec0\u4e48\uff0c\u6bd4\u5982\u91c7\u7528HTTP\u8fd8\u662f\u91c7\u7528\u79c1\u6709TCP\u534f\u8bae\u3002 \u5bf9\u8c61\u7f16\u7801\u65b9\u5f0f\u548c\u901a\u4fe1\u534f\u8bae\u7684\u7ec4\u5408\uff0c\u79f0\u4e3a\u901a\u4fe1\u6a21\u578b\u3002 Java Chassis\u7684\u901a\u4fe1\u6a21\u578b\u53ef\u4ee5\u5206\u6210\u4e24\u7c7b\uff1aREST \u548c Highway\u3002 </p> <ul> <li>REST\uff1a \u652f\u6301\u63a5\u53e3\u53c2\u6570\u4e0eHTTPQuery\u3001Path\u3001Header\u3001Body\u7684\u6620\u5c04\u5173\u7cfb\u3002\u5bf9\u8c61\u7f16\u7801\u652f\u6301Jason\u3001proto-buffer\u3001text\u7b49\uff0c\u901a\u8fc7Content-Type\u8fdb\u884c\u533a\u5206\u3002\u901a\u4fe1\u534f\u8bae\u91c7\u7528HTTP\u534f\u8bae\u65cf\uff0c\u6bd4\u5982HTTP\u3001HTTPS\u3001HTTP2\uff08H2\u548cH2C\uff09\u3002 </li> <li>Highway\uff1a \u5bf9\u8c61\u7f16\u7801\u652f\u6301proto-buffer\u3002\u901a\u4fe1\u534f\u8bae\u91c7\u7528Java Chassis\u81ea\u5b9a\u4e49\u7684\u79c1\u6709TCP\u534f\u8bae\u3002 </li> </ul> <p>Java Chassis\u7684\u7f16\u7a0b\u6a21\u578b\u548c\u901a\u4fe1\u6a21\u578b\u5206\u79bb\uff0c\u610f\u5473\u7740\u4e1a\u52a1\u4ee3\u7801\u5f00\u53d1\u7684\u65f6\u5019\uff0c\u4e0d\u9700\u8981\u5173\u6ce8\u901a\u4fe1\u6a21\u578b\uff0c\u53ef\u4ee5\u5728\u4e0d\u4fee\u6539\u4e1a\u52a1\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c \u4fee\u6539\u901a\u4fe1\u6a21\u578b\u914d\u7f6e\uff0c\u5207\u6362\u4e3a\u65b0\u7684\u901a\u4fe1\u6a21\u578b\u3002 </p>"},{"location":"transports/introduction.html#_2","title":"\u5982\u4f55\u9009\u62e9\u534f\u8bae","text":"<p>\u5728\u591a\u6570\u573a\u666f\uff0c\u5efa\u8bae\u4f7f\u7528REST\u534f\u8bae\uff0c\u7f16\u7801\u4f7f\u7528Json\u3002 Java Chassis\u5bf9REST\u534f\u8bae\u8fdb\u884c\u4e86\u5f88\u597d\u7684\u4f18\u5316\uff0c\u80fd\u591f\u6ee1\u8db3\u7edd\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u7684\u9700\u8981\u3002REST\u534f\u8bae\u548cJson\u7f16\u7801\u5177\u5907\u66f4\u597d\u7684\u8de8\u5e73\u53f0\u7279\u6027\uff0c\u80fd\u591f\u652f\u6301\u4e0d\u540c\u7cfb\u7edf\u76f4\u63a5\u5bf9\u63a5\uff0cHTTP\u534f\u8bae\u5728\u5e94\u5bf9\u5927\u89c4\u6a21\u5e76\u53d1\u573a\u666f\uff0c\u63d0\u4f9b\u4e86\u975e\u5e38\u597d\u7684\u5065\u58ee\u6027\u3002\u5728\u517c\u5bb9\u6027\u65b9\u9762\uff0cREST\u534f\u8bae\u548cJson\u7f16\u7801\u80fd\u591f\u66f4\u597d\u7684\u652f\u6301\u4e1a\u52a1\u5e73\u6ed1\u5347\u7ea7\uff0c\u5f53\u4e1a\u52a1\u63a5\u53e3\u5b58\u5728\u53d8\u5316\uff08\u63a5\u53e3\u53c2\u6570\u4e2a\u6570\u3001\u53c2\u6570\u987a\u5e8f\u3001Model\u589e\u51cf\u5b57\u6bb5\u7b49\u573a\u666f\uff09\u7684\u5927\u90e8\u5206\u5e38\u89c1\u60c5\u51b5\uff0c\u5ba2\u6237\u7aef\u672a\u5347\u7ea7\u80fd\u591f\u6210\u529f\u8c03\u7528\u670d\u52a1\u7aef\uff0c\u8fd9\u6837\u7ed9\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u72ec\u7acb\u5347\u7ea7\u5e26\u6765\u5f88\u591a\u65b9\u4fbf\u3002</p> <p>\u91c7\u7528proto-buffer\u7f16\u7801\uff0c\u5e8f\u5217\u5316\u66f4\u5feb\uff0c\u6570\u636e\u91cf\u66f4\u5c0f\uff0c\u80fd\u591f\u63d0\u4f9b\u66f4\u9ad8\u7684\u541e\u5410\u91cf\u3002 \u4f46\u662fproto-buffer\u4e1a\u52a1\u63a5\u53e3\u5b58\u5728\u53d8\u5316\u7684\u60c5\u51b5\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u672a\u5347\u7ea7\uff0c\u670d\u52a1\u7aef\u5148\u5347\u7ea7\uff0c\u53ef\u80fd\u5bfc\u81f4\u5ba2\u6237\u7aef\u8c03\u7528\u5931\u8d25\u3002\u5728\u5ba2\u6237\u7aef\u4f7f\u7528\u7684\u63a5\u53e3\u548c\u670d\u52a1\u7aef\u4e0d\u5b58\u5728\u7f16\u8bd1\u65f6\u4f9d\u8d56\u7684\u573a\u666f\u4e0b\uff0c\u8fd9\u79cd\u95ee\u9898\u4f1a\u96be\u4e8e\u53d1\u73b0\u3002</p> <p>\u91c7\u7528Highway\u534f\u8bae\uff0c\u5728\u6d89\u53ca\u7cfb\u7edf\u96c6\u6210\u7684\u65f6\u5019\uff0c\u4f1a\u78b0\u5230\u9ebb\u70e6\u3002</p> <p>\u603b\u7ed3\u8d77\u6765\uff0c\u591a\u6570\u60c5\u51b5\u5efa\u8bae\u4f7f\u7528REST\u534f\u8bae\u3002\u5728\u5c11\u91cf\u9700\u8981\u9ad8\u6027\u80fd\u3001\u5e76\u4e14\u529f\u80fd\u76f8\u5bf9\u7a33\u5b9a\uff0c\u4e0d\u600e\u4e48\u53d8\u5316\u7684\u573a\u666f\uff0c\u4f7f\u7528proto-buffer\u6216\u8005\u4f7f\u7528Highway\u534f\u8bae\u63d0\u5347\u7cfb\u7edf\u541e\u5410\u91cf\u548c\u964d\u4f4e\u65f6\u5ef6\u3002 </p>"},{"location":"transports/rest-over-servlet-embedded.html","title":"REST over Servlet(Spring Boot Embedded)","text":""},{"location":"transports/rest-over-servlet-embedded.html#_1","title":"\u5f00\u53d1\u4ecb\u7ecd","text":"<p>\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0cWeb\u5f00\u53d1\u6a21\u5f0f\u4f7f\u7528 REST over Servlet(Spring Boot Embedded)\u3002</p> <p>REST over Servlet\u7684\u672c\u8d28\u662f\u5c06Java Chassis\u4f5c\u4e3a\u4e00\u4e2aServlet\uff0c\u90e8\u7f72\u5230\u652f\u6301Servlet\u7684Web\u5bb9\u5668\u4e2d\u3002 </p>"},{"location":"transports/rest-over-servlet-embedded.html#_2","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>\u4f7f\u7528Spring Boot Embedded\u573a\u666f\uff0c\u76f8\u5173Web\u5bb9\u5668\u53c2\u6570\u9700\u8981\u7ed3\u5408Spring Boot\u914d\u7f6e\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u4ecb\u7ecd\u3002 \u53ea\u7ed9\u51faJava Chassis\u589e\u52a0\u7684\u914d\u7f6e\u3002 </p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.rest.address 0.0.0.0:8080 \u670d\u52a1\u76d1\u542c\u5730\u5740\u5fc5\u987b\u914d\u7f6e\u4e3a\u4e0eweb\u5bb9\u5668\u76d1\u542c\u5730\u5740\u76f8\u540c\u7684\u5730\u5740 servicecomb.rest.server.timeout -1 \u5f02\u6b65servlet\u8d85\u65f6\u65f6\u95f4, \u5355\u4f4d\u4e3a\u6beb\u79d2\u5efa\u8bae\u4fdd\u6301\u9ed8\u8ba4\u503c servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002"},{"location":"transports/rest-over-servlet.html","title":"REST over Servlet(WAR)","text":"<p>\u548c REST over Servlet(Spring Boot Embedded) \u7c7b\u4f3c\uff0c\u53ef\u4ee5\u5c06Spring Boot\u5e94\u7528\u6253\u5305\u4e3a WAR\uff0c\u7136\u540e\u653e\u5230\u72ec\u7acb\u5b89\u88c5\u7684 Tomcat \u5bb9\u5668\u8fd0\u884c\u3002 \u5b83\u4eec\u7684\u5de5\u4f5c\u673a\u5236\u4e00\u6837\uff0c\u53ea\u662f\u5728Spring Boot\u5e94\u7528\u914d\u7f6e\u65b9\u9762\u6709\u4e9b\u5dee\u5f02\u3002  </p> <p>WAR\u76f8\u5173Web\u5bb9\u5668\u53c2\u6570\u9700\u8981\u7ed3\u5408Tomcat\u914d\u7f6e\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u4ecb\u7ecd\u3002 Java Chassis\u914d\u7f6e\u53c2\u6570\u548cEmbedded\u4e00\u6837\u3002</p> <p>basic-tomcat \u63d0\u4f9b\u4e86\u5f00\u53d1\u4f8b\u5b50\u3002 </p>"},{"location":"transports/rest-over-servlet.html#springbootservletinitializer","title":"\u4f7f\u7528 SpringBootServletInitializer","text":"<p>Spring Boot\u542f\u52a8\u7c7b\u9700\u8981\u7ee7\u627f SpringBootServletInitializer, \u5e76\u4e14\u8bbe\u7f6e WebApplicationType.SERVLET\u3002</p> <pre><code>@SpringBootApplication\npublic class ProviderApplication extends SpringBootServletInitializer {\n  public static void main(String[] args) throws Exception {\n    try {\n      new SpringApplicationBuilder()\n          .web(WebApplicationType.SERVLET)\n          .sources(ProviderApplication.class)\n          .run(args);\n    } catch (Exception e) {\n      e.printStackTrace();\n    }\n  }\n}\n</code></pre>"},{"location":"transports/rest-over-servlet.html#_1","title":"\u914d\u7f6e\u6587\u4ef6\u7aef\u53e3","text":"<p>REST\u534f\u8bae\u76d1\u542c\u7aef\u53e3\u9700\u8981\u4fdd\u6301\u548cTomcat\u7aef\u53e3\u4e00\u81f4\u3002 </p> <pre><code>servicecomb:\n  # port should same as tomcat\n  rest:\n    address: 0.0.0.0:8080\n</code></pre>"},{"location":"transports/rest-over-servlet.html#_2","title":"\u4f9d\u8d56","text":"<p>\u9700\u8981\u5728\u4f9d\u8d56\u4e2d\u6dfb\u52a0\uff1a</p> <pre><code>&lt;dependency&gt;\n  &lt;groupId&gt;org.apache.servicecomb&lt;/groupId&gt;\n  &lt;artifactId&gt;java-chassis-spring-boot-starter-servlet&lt;/artifactId&gt;\n  &lt;exclusions&gt;\n    &lt;exclusion&gt;\n      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;\n      &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;\n    &lt;/exclusion&gt;\n  &lt;/exclusions&gt;\n&lt;/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;\n  &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;\n  &lt;scope&gt;provided&lt;/scope&gt;\n&lt;/dependency&gt;\n</code></pre>"},{"location":"transports/rest-over-servlet.html#edge-service","title":"\u5fae\u670d\u52a1\u7f51\u5173 Edge Service","text":"<p>\u5fae\u670d\u52a1\u7f51\u5173Edge Service\u4e0d\u652f\u6301Servlet\u534f\u8bae\uff0c\u4e0d\u5efa\u8bae\u5c06\u5176\u90e8\u7f72\u5230Tomcat\u3002\u4ecd\u7136\u4f7f\u7528\u53ef\u6267\u884c jar \u5305\u90e8\u7f72\u3002 </p>"},{"location":"transports/rest-over-vertx.html","title":"REST over HTTP\uff08Vert.x)","text":""},{"location":"transports/rest-over-vertx.html#_1","title":"\u5f00\u53d1\u4ecb\u7ecd","text":"<p>\u53c2\u8003 Spring Boot\u96c6\u6210Java Chassis\u4ecb\u7ecd \uff0c\u9ad8\u6027\u80fd\u6a21\u5f0f\u4f7f\u7528 REST over HTTP\uff08Vert.x\uff09\u3002 </p> <p>application.yaml \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u793a\u4f8b\uff1a</p> <pre><code>servicecomb:\n  rest:\n    address: 0.0.0.0:8080\n    server:\n      verticle-count: 8\n</code></pre> <p>\u5176\u4e2d <code>0.0.0.0:8080</code> \u4ee3\u8868\u4f7f\u7528HTTP\u534f\u8bae\uff0c\u5e76\u4e14\u76d1\u542c8080\u7aef\u53e3\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u5730\u5740\u540e\u9762\u8ffd\u52a0<code>sslEnabled=true</code>\u4f7f\u7528HTTPS\u901a\u4fe1\uff0c\u5177\u4f53\u4ecb\u7ecd\u89c1\u4f7f\u7528TLS\u901a\u4fe1\u7ae0\u8282\u3002</p>"},{"location":"transports/rest-over-vertx.html#_2","title":"\u914d\u7f6e\u53c2\u8003","text":"<p>REST over HTTP\uff08Vert.x)\u6709\u4ee5\u4e0b\u914d\u7f6e\u9879\uff1a</p> \u914d\u7f6e\u9879 \u9ed8\u8ba4\u503c \u542b\u4e49 servicecomb.rest.address \u670d\u52a1\u76d1\u542c\u5730\u5740\uff0c\u4e0d\u914d\u7f6e\u8868\u793a\u4e0d\u76d1\u542c servicecomb.rest.server.thread-count verticle-count rest server verticle\u5b9e\u4f8b\u6570\uff08Deprecated\uff09 servicecomb.rest.server.verticle-count verticle-count rest server verticle\u5b9e\u4f8b\u6570 servicecomb.rest.server.connection-limit Integer.MAX_VALUE \u5141\u8bb8\u5ba2\u6237\u7aef\u6700\u5927\u8fde\u63a5\u6570 servicecomb.rest.server.connection.idleTimeoutInSeconds 60 \u670d\u52a1\u7aef\u8fde\u63a5\u95f2\u7f6e\u8d85\u65f6\u65f6\u95f4\uff0c\u8d85\u65f6\u8fde\u63a5\u4f1a\u88ab\u91ca\u653e servicecomb.rest.server.compression false \u670d\u52a1\u7aef\u662f\u5426\u652f\u6301\u542f\u7528\u538b\u7f29 servicecomb.rest.server.maxInitialLineLength 4096 \u670d\u52a1\u7aef\u63a5\u6536\u8bf7\u6c42\u7684\u6700\u5927 initial line \u957f\u5ea6\uff0c\u5355\u4f4d\u5b57\u8282 servicecomb.rest.server.maxHeaderSize 32768 \u670d\u52a1\u7aef\u63a5\u6536\u8bf7\u6c42\u7684\u6700\u5927header\u957f\u5ea6\uff0c\u5355\u4f4d\u5b57\u8282 servicecomb.rest.server.maxFormAttributeSize 8192 \u670d\u52a1\u7aef\u63a5\u6536\u8bf7\u6c42\u7684\u6700\u5927 form \u957f\u5ea6\uff0c\u5355\u4f4d\u4e3a\u5b57\u8282 servicecomb.rest.server.compressionLevel 6 \u670d\u52a1\u7aefgzip/deflate\u538b\u7f29\u7ea7\u522b servicecomb.rest.server.maxChunkSize 8192 \u6700\u5927http chunk\u5927\u5c0f\uff0c\u5355\u4f4d\u4e3a\u5b57\u8282 servicecomb.rest.server.decoderInitialBufferSize 128 HttpObjectDecoder\u7684\u6700\u5927\u521d\u59cb\u7f13\u51b2\u533a\u5927\u5c0f servicecomb.rest.server.http2ConnectionWindowSize -1 \u5141\u8bb8HTTP/2\u8fde\u63a5\u6570\u5927\u5c0f\uff0c\u65e0\u9650\u5236 servicecomb.rest.server.decompressionSupported false \u662f\u5426\u652f\u6301\u89e3\u538b\u7f29 servicecomb.Provider.requestWaitInPoolTimeout${op-priority} 30000 \u5728\u540c\u6b65\u7ebf\u7a0b\u4e2d\u6392\u961f\u7b49\u5f85\u6267\u884c\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2 servicecomb.rest.server.requestWaitInPoolTimeout 30000 \u540cservicecomb.Provider.requestWaitInPoolTimeout${op-priority}, \u8be5\u914d\u7f6e\u9879\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002 servicecomb.uploads.maxSize \u65e0\u9650\u5236 \u6700\u5927 body \u5927\u5c0f\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u5bf9\u6587\u4ef6\u4e0a\u4f20\uff0cREST\u8bf7\u6c42\u90fd\u751f\u6548"},{"location":"transports/rest-over-vertx.html#_3","title":"\u8865\u5145\u8bf4\u660e","text":"<ul> <li>\u6781\u9650\u8fde\u63a5\u6570\u8ba1\u7b97 </li> </ul> <p>\u5047\u8bbe\u5728\u5fae\u670d\u52a1A\u8c03\u7528B\u7684\u60c5\u51b5\u4e0b\uff0c\u5fae\u670d\u52a1A\u548cB\u5404\u670910\u4e2a\u5b9e\u4f8b\uff0c\u5fae\u670d\u52a1A\u7684\u914d\u7f6e\u4e3a\uff1a</p> <ul> <li>servicecomb.rest.client.verticle-count\u914d\u7f6e\u4e3a8</li> <li>servicecomb.rest.client.connection.maxPoolSize\u914d\u7f6e\u4e3a5</li> <li>\u5fae\u670d\u52a1B\u670910\u4e2a\u5b9e\u4f8b  </li> </ul> <p>\u7ad9\u5728A\u7684\u89d2\u5ea6\uff0c\u5728\u6781\u9650\u60c5\u51b5\u4e0b\uff1a   * \u4e00\u4e2a\u5b9e\u4f8b\u6700\u591a\u4f1a\u5efa\u7acb400\u6761\u8fde\u63a5\u3002\uff08<code>8 * 5 * 10 = 400</code>\uff09   * \u5047\u8bbe\u8be5A\u8fd8\u9700\u8981\u8c03\u7528\u5fae\u670d\u52a1C\uff0c\u5fae\u670d\u52a1C\u4e5f\u670910\u4e2a\u5b9e\u4f8b\uff0c\u5219\u6700\u591a\u518d\u5efa\u7acb400\u6761\u8fde\u63a5\uff0c\u5171800\u6761\u8fde\u63a5</p> <p>\u7ad9\u5728B\u7684\u89d2\u5ea6\uff0c\u5728\u6781\u9650\u60c5\u51b5\u4e0b\uff1a   * \u4e00\u4e2aA\u7684\u5b9e\u4f8b\u6700\u591a\u5efa\u7acb40\u6761\u8fde\u63a5\u3002(<code>8 * 5 = 40</code>)   * 10\u4e2aA\u7684\u5b9e\u4f8b\u6700\u591a\u4f1a\u5411\u4e00\u4e2aB\u5efa\u7acb<code>40 * 10 = 400</code>\u6761\u8fde\u63a5</p> <p>\u4e3a\u4e86\u63d0\u9ad8\u6027\u80fd\uff0c\u9700\u8981\u5c3d\u91cf\u4f7f\u7528\u66f4\u5927\u7684\u8fde\u63a5\u6c60\uff0c\u4f46\u662f\u66f4\u5927\u7684\u8fde\u63a5\u6c60\u53c8\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8fde\u63a5\u6570\u66b4\u6da8\uff0c\u5f53\u5fae\u670d\u52a1\u5b9e\u4f8b\u89c4\u6a21\u8fbe\u5230\u767e\u7ea7\u522b\u65f6\uff0c\u6709\u7684\u8fdb\u7a0b\u53ef\u80fd\u9700\u8981\u7ba1\u7406 \u51e0\u4e07\u6761\u8fde\u63a5\uff0c\u4e1a\u52a1\u9700\u8981\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u89c4\u6a21\u8fdb\u884c\u5408\u7406\u7684\u89c4\u5212\u3002\u5728\u5b9e\u4f8b\u89c4\u6a21\u6bd4\u8f83\u5c0f\u7684\u60c5\u51b5\u4e0b\uff0cHTTP\u4ecd\u7136\u662f\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u6700\u4f73\u9009\u62e9\uff0c\u5b83\u5177\u5907\u66f4\u597d\u7684\u517c\u5bb9\u6027 \u548c\u53ef\u9760\u6027\u3002\u5f53\u5355\u4e2a\u5b9e\u4f8b\u7684\u8fde\u63a5\u6570\u7ba1\u7406\u89c4\u6a21\u8d85\u8fc71\u4e07\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u8003\u8651\u5207\u6362\u4e3ahttp2\u3002</p>"},{"location":"transports/verticle-count.html","title":"verticle-count","text":""},{"location":"transports/verticle-count.html#_1","title":"\u540d\u79f0\u53ca\u9ed8\u8ba4\u503c","text":"<ul> <li>1.2.0\u4e4b\u524d\u7684\u7248\u672c </li> </ul> <p>\u547d\u540d\u4e3athread-count\uff0c\u4e14\u9ed8\u8ba4\u503c\u4e3a1\uff0c\u8fd9\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\uff1a  </p> <ul> <li>\u540d\u5b57\u6709\u6b67\u4e49\u3002ServiceComb\u5e95\u5c42\u57fa\u4e8evertx\uff0c\u901a\u4fe1\u5c42\u903b\u8f91\u5747\u7531verticle\u627f\u8f7d\uff0c\u8fd0\u884c\u4e8eeventloop\u7ebf\u7a0b\u4e2d\uff0c\u5e76\u4e0d\u4f1a\u518d\u521b\u5efa\u72ec\u7acb\u7684\u7ebf\u7a0b\uff0c     \u6240\u4ee5thread-count\u5b9e\u9645\u8868\u793a\u7684\u662f\u521b\u5efa\u7684verticle\u5b9e\u4f8b\u7684\u4e2a\u6570\uff0c\u5e76\u4e0d\u662f\u7ebf\u7a0b\u6570\u3002</li> <li> <p>\u9ed8\u8ba4\u503c\u504f\u5c0f\u3002\u65e7\u7248\u672c\u9009\u62e9\u4e86\u6700\u4fdd\u5b88\u7684\u9ed8\u8ba4\u503c\uff0c\u5bfc\u81f4\u5927\u90e8\u5206\u573a\u666f\u90fd\u9700\u8981\u505a\u8fd9\u4e2a\u53c2\u6570\u7684\u8c03\u6574\u3002</p> </li> <li> <p>1.2.0\u53ca\u5176\u4e4b\u540e\u7684\u7248\u672c  </p> </li> </ul> <p>\u91cd\u547d\u540d\u4e3averticle-count\u3002\u540c\u65f6\u5141\u8bb8\u65e7\u7684thread-count\uff0c\u4f46\u662f\u4f1a\u6253\u5370warning\u65e5\u5fd7\uff0c\u63d0\u9192\u5207\u6362\u4e3a\u65b0\u914d\u7f6e\u9879\u3002   \u9ed8\u8ba4\u503c\u89c4\u5219\uff1a  </p> <ul> <li>\u5982\u679cCPU\u6570\u5c0f\u4e8e8\uff0c\u5219\u53d6CPU\u6570</li> <li>\u5982\u679cCPU\u6570\u5927\u4e8e\u7b49\u4e8e8\uff0c\u5219\u4e3a8</li> </ul>"},{"location":"transports/verticle-count.html#eventloopverticle","title":"Eventloop\u4e0everticle\u5b9e\u4f8b\u7684\u5173\u7cfb\uff1a","text":"<p>\u5047\u8bbeCPU\u4e3a2\uff0c\u5219vertx\u9ed8\u8ba4\u521b\u5efa 2 * CPU\uff0c \u53734\u4e2aEventloop\u7ebf\u7a0b \u5047\u8bbe\u914d\u7f6eserver verticle count\u548cclient verticle count\u5747\u4e3a3\uff0c\u5219\u4ed6\u4eec\u7684\u5173\u7cfb\u5982\u4e0b\uff1a</p> <p> </p> <p>\u56e0\u4e3a\u5728Eventloop\u4e2d\u4e0d\u5141\u8bb8\u6267\u884c\u4efb\u4f55\u963b\u585e\u52a8\u4f5c\uff0c\u518d\u7ed3\u5408\u4e0a\u56fe\uff0c\u6211\u4eec\u53ef\u4ee5\u77e5\u9053\uff0c\u5f53\u5145\u5206\u5229\u7528\u4e86CPU\u4e4b\u540e\uff0c\u518d\u589e\u52a0verticle\u5b9e\u4f8b\u662f\u6ca1\u6709\u610f\u4e49\u7684\uff0c \u6240\u4ee51.2.0\u4e4b\u540e\u7684\u7248\u672c\u7684\u7f3a\u7701\u503c\u5bf9\u4e8e\u591a\u6570\u60c5\u51b5\u662f\u6700\u4f18\u7684\u914d\u7f6e\u3002</p>"}]}
\ No newline at end of file
diff --git a/content/references/java-chassis/zh_CN/security/shi-yong-rsa-ren-zheng.html b/content/references/java-chassis/zh_CN/security/shi-yong-rsa-ren-zheng.html
index 7904426..4b1dbdb 100644
--- a/content/references/java-chassis/zh_CN/security/shi-yong-rsa-ren-zheng.html
+++ b/content/references/java-chassis/zh_CN/security/shi-yong-rsa-ren-zheng.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2653,69 +2779,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2984,7 +3047,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/security/tls.html b/content/references/java-chassis/zh_CN/security/tls.html
index 260a95b..affe17f 100644
--- a/content/references/java-chassis/zh_CN/security/tls.html
+++ b/content/references/java-chassis/zh_CN/security/tls.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1801,7 +1801,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1822,7 +1822,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1965,11 +1986,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2028,6 +2133,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2112,27 +2259,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2662,69 +2788,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3198,7 +3261,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/security/tls/shi-yong-rsa-ren-zheng.html b/content/references/java-chassis/zh_CN/security/tls/shi-yong-rsa-ren-zheng.html
index 5bc536b..03dfb6e 100644
--- a/content/references/java-chassis/zh_CN/security/tls/shi-yong-rsa-ren-zheng.html
+++ b/content/references/java-chassis/zh_CN/security/tls/shi-yong-rsa-ren-zheng.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1792,7 +1792,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1813,7 +1813,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1956,11 +1977,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../../config/config-service.html" class="md-nav__link">
+      <a href="../../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2019,6 +2124,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2103,27 +2250,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2579,69 +2705,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2837,7 +2900,7 @@
     <script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/sitemap.xml.gz b/content/references/java-chassis/zh_CN/sitemap.xml.gz
index ccab8a5..8573b47 100644
--- a/content/references/java-chassis/zh_CN/sitemap.xml.gz
+++ b/content/references/java-chassis/zh_CN/sitemap.xml.gz
Binary files differ
diff --git a/content/references/java-chassis/zh_CN/spring-boot/diff-spring-mvc.html b/content/references/java-chassis/zh_CN/spring-boot/diff-spring-mvc.html
index 658c817..aaebe1f 100644
--- a/content/references/java-chassis/zh_CN/spring-boot/diff-spring-mvc.html
+++ b/content/references/java-chassis/zh_CN/spring-boot/diff-spring-mvc.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2889,7 +2952,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/spring-boot/introduction.html b/content/references/java-chassis/zh_CN/spring-boot/introduction.html
index 141feb3..b65f89c 100644
--- a/content/references/java-chassis/zh_CN/spring-boot/introduction.html
+++ b/content/references/java-chassis/zh_CN/spring-boot/introduction.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1813,7 +1813,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1834,7 +1834,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1977,11 +1998,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2040,6 +2145,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2124,27 +2271,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2600,69 +2726,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2919,7 +2982,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/start/deployment-on-cloud.html b/content/references/java-chassis/zh_CN/start/deployment-on-cloud.html
index b4f426a..c6a2530 100644
--- a/content/references/java-chassis/zh_CN/start/deployment-on-cloud.html
+++ b/content/references/java-chassis/zh_CN/start/deployment-on-cloud.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3290,7 +3353,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/start/design.html b/content/references/java-chassis/zh_CN/start/design.html
index 064db30..9ec5496 100644
--- a/content/references/java-chassis/zh_CN/start/design.html
+++ b/content/references/java-chassis/zh_CN/start/design.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -259,7 +259,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_1" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 软件工程实践 
+      Java Chassis 软件工程实践
     </span>
   </a>
   
@@ -268,7 +268,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_2" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 运行时架构 
+      Java Chassis 运行时架构
     </span>
   </a>
   
@@ -277,7 +277,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_3" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 微服务应用架构 
+      Java Chassis 微服务应用架构
     </span>
   </a>
   
@@ -286,7 +286,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_4" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 微服务技术选型 
+      Java Chassis 微服务技术选型
     </span>
   </a>
   
@@ -319,7 +319,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis-spring-cloud" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 与 Spring Cloud  
+      Java Chassis 与 Spring Cloud
     </span>
   </a>
   
@@ -1910,7 +1910,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1931,7 +1931,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2074,11 +2095,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2137,6 +2242,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2221,27 +2368,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2697,69 +2823,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2901,7 +2964,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_1" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 软件工程实践 
+      Java Chassis 软件工程实践
     </span>
   </a>
   
@@ -2910,7 +2973,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_2" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 运行时架构 
+      Java Chassis 运行时架构
     </span>
   </a>
   
@@ -2919,7 +2982,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_3" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 微服务应用架构 
+      Java Chassis 微服务应用架构
     </span>
   </a>
   
@@ -2928,7 +2991,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis_4" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 微服务技术选型 
+      Java Chassis 微服务技术选型
     </span>
   </a>
   
@@ -2961,7 +3024,7 @@
         <li class="md-nav__item">
   <a href="#java-chassis-spring-cloud" class="md-nav__link">
     <span class="md-ellipsis">
-      Java Chassis 与 Spring Cloud  
+      Java Chassis 与 Spring Cloud
     </span>
   </a>
   
@@ -3104,7 +3167,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/start/development-environment.html b/content/references/java-chassis/zh_CN/start/development-environment.html
index c305119..15adc29 100644
--- a/content/references/java-chassis/zh_CN/start/development-environment.html
+++ b/content/references/java-chassis/zh_CN/start/development-environment.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1951,7 +1951,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1972,7 +1972,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2115,11 +2136,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2178,6 +2283,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2262,27 +2409,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2738,69 +2864,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3166,7 +3229,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/start/first-sample.html b/content/references/java-chassis/zh_CN/start/first-sample.html
index bd878e3..1564df0 100644
--- a/content/references/java-chassis/zh_CN/start/first-sample.html
+++ b/content/references/java-chassis/zh_CN/start/first-sample.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1957,7 +1957,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1978,7 +1978,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2121,11 +2142,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2184,6 +2289,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2268,27 +2415,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2744,69 +2870,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3189,11 +3252,20 @@
 }
 </code></pre>
 <h3 id="_6">编写服务</h3>
+<p>本例子采用契约优先的开发方法。</p>
+<p>首先定义服务接口:</p>
+<pre><code class="language-java">@RequestMapping(path = &quot;/provider&quot;)
+public interface ProviderService {
+  @GetMapping(&quot;/sayHello&quot;)
+  String sayHello(@RequestParam(&quot;name&quot;) String name);
+
+  @GetMapping(&quot;/exampleConfig&quot;)
+  String exampleConfig();
+}
+</code></pre>
 <p>在工程中添加一个REST接口类用于接收请求:</p>
-<pre><code class="language-java">
-@RestSchema(schemaId = &quot;ProviderController&quot;)
-@RequestMapping(path = &quot;/&quot;)
-public class ProviderController {
+<pre><code class="language-java">@RestSchema(schemaId = &quot;ProviderController&quot;, schemaInterface = ProviderService.class)
+public class ProviderController implements ProviderService {
   private DynamicProperties dynamicProperties;
 
   private String example;
@@ -3205,13 +3277,12 @@
         value -&gt; this.example = value, &quot;not set&quot;);
   }
 
-  // a very simple service to echo the request parameter
-  @GetMapping(&quot;/sayHello&quot;)
-  public String sayHello(@RequestParam(&quot;name&quot;) String name) {
+  @Override
+  public String sayHello(String name) {
     return &quot;Hello &quot; + name;
   }
 
-  @GetMapping(&quot;/exampleConfig&quot;)
+  @Override
   public String exampleConfig() {
     return example;
   }
@@ -3235,28 +3306,31 @@
 &lt;/Configuration&gt;
 </code></pre>
 <h3 id="_8">调用服务</h3>
-<p>在 Consumer 里面,演示了如何调用 Provider 的服务。 首先声明一个 PRC 接口, 该接口的方法名称、参数名称需要和服务端保持一致。</p>
-<pre><code class="language-java">public interface ProviderService {
-  String sayHello(String name);
-
-  String exampleConfig();
+<p>在 Consumer 里面,演示了如何调用 Provider 的服务。 首先声明一个 PRC 接口的 Bean。</p>
+<pre><code class="language-java">@Configuration
+public class ProviderServiceConfiguration {
+  @Bean
+  public ProviderService providerService() {
+    return Invoker.createProxy(&quot;provider&quot;, &quot;ProviderController&quot;, ProviderService.class);
+  }
 }
 </code></pre>
-<p>使用 @RpcReference 声明 RPC 接口的远程引用, 然后可以像调用本地方法一样,访问 Provider 的服务。</p>
-<pre><code class="language-java">
-@RestSchema(schemaId = &quot;ConsumerController&quot;)
-@RequestMapping(path = &quot;/&quot;)
-public class ConsumerController {
-  @RpcReference(schemaId = &quot;ProviderController&quot;, microserviceName = &quot;provider&quot;)
+<p>使用 @Autowired 声明 RPC 接口的远程引用, 然后可以像调用本地方法一样,访问 Provider 的服务。</p>
+<pre><code class="language-java">@RestSchema(schemaId = &quot;ConsumerController&quot;, schemaInterface = ConsumerService.class)
+public class ConsumerController implements ConsumerService {
   private ProviderService providerService;
 
-  // consumer service which delegate the implementation to provider service.
-  @GetMapping(&quot;/sayHello&quot;)
-  public String sayHello(@RequestParam(&quot;name&quot;) String name) {
+  @Autowired
+  public void setProviderService(ProviderService providerService) {
+    this.providerService = providerService;
+  }
+
+  @Override
+  public String sayHello(String name) {
     return providerService.sayHello(name);
   }
 
-  @GetMapping(&quot;/exampleConfig&quot;)
+  @Override
   public String exampleConfig() {
     return providerService.exampleConfig();
   }
@@ -3333,7 +3407,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/start/terminology.html b/content/references/java-chassis/zh_CN/start/terminology.html
index fd2786d..1bd7e5d 100644
--- a/content/references/java-chassis/zh_CN/start/terminology.html
+++ b/content/references/java-chassis/zh_CN/start/terminology.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2950,7 +3013,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/highway-rpc.html b/content/references/java-chassis/zh_CN/transports/highway-rpc.html
index e3256c9..30a2fdb 100644
--- a/content/references/java-chassis/zh_CN/transports/highway-rpc.html
+++ b/content/references/java-chassis/zh_CN/transports/highway-rpc.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2992,7 +3055,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/http2.html b/content/references/java-chassis/zh_CN/transports/http2.html
index d3cef1b..4db1c13 100644
--- a/content/references/java-chassis/zh_CN/transports/http2.html
+++ b/content/references/java-chassis/zh_CN/transports/http2.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3029,7 +3092,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/introduction.html b/content/references/java-chassis/zh_CN/transports/introduction.html
index b65e12d..673365b 100644
--- a/content/references/java-chassis/zh_CN/transports/introduction.html
+++ b/content/references/java-chassis/zh_CN/transports/introduction.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1852,7 +1852,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1873,7 +1873,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2016,11 +2037,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2079,6 +2184,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2163,27 +2310,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2639,69 +2765,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2931,7 +2994,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/rest-over-servlet-embedded.html b/content/references/java-chassis/zh_CN/transports/rest-over-servlet-embedded.html
index 6bcaf7e..e5af138 100644
--- a/content/references/java-chassis/zh_CN/transports/rest-over-servlet-embedded.html
+++ b/content/references/java-chassis/zh_CN/transports/rest-over-servlet-embedded.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1861,7 +1861,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1882,7 +1882,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2025,11 +2046,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2088,6 +2193,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2172,27 +2319,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2648,69 +2774,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2968,7 +3031,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/rest-over-servlet.html b/content/references/java-chassis/zh_CN/transports/rest-over-servlet.html
index 132c347..0eafe4e 100644
--- a/content/references/java-chassis/zh_CN/transports/rest-over-servlet.html
+++ b/content/references/java-chassis/zh_CN/transports/rest-over-servlet.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1879,7 +1879,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1900,7 +1900,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2043,11 +2064,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2106,6 +2211,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2190,27 +2337,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2666,69 +2792,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3014,7 +3077,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/rest-over-vertx.html b/content/references/java-chassis/zh_CN/transports/rest-over-vertx.html
index 72bbda5..b3198bc 100644
--- a/content/references/java-chassis/zh_CN/transports/rest-over-vertx.html
+++ b/content/references/java-chassis/zh_CN/transports/rest-over-vertx.html
@@ -16,7 +16,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -24,7 +24,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1870,7 +1870,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1891,7 +1891,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -2034,11 +2055,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2097,6 +2202,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2181,27 +2328,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2657,69 +2783,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -3077,7 +3140,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/references/java-chassis/zh_CN/transports/verticle-count.html b/content/references/java-chassis/zh_CN/transports/verticle-count.html
index e4ef492..06ca3ea 100644
--- a/content/references/java-chassis/zh_CN/transports/verticle-count.html
+++ b/content/references/java-chassis/zh_CN/transports/verticle-count.html
@@ -12,7 +12,7 @@
       
       
       <link rel="icon" href="../assets/images/favicon.png">
-      <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.5.10">
+      <meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.19">
     
     
       
@@ -20,7 +20,7 @@
       
     
     
-      <link rel="stylesheet" href="../assets/stylesheets/main.7e359304.min.css">
+      <link rel="stylesheet" href="../assets/stylesheets/main.66ac8b77.min.css">
       
       
 
@@ -1797,7 +1797,7 @@
         
   
   <span class="md-ellipsis">
-    使用service-center
+    使用Service Center
   </span>
   
 
@@ -1818,7 +1818,28 @@
         
   
   <span class="md-ellipsis">
-    使用nacos
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../registry/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用ZooKeeper
   </span>
   
 
@@ -1961,11 +1982,95 @@
   
   
     <li class="md-nav__item">
-      <a href="../config/config-service.html" class="md-nav__link">
+      <a href="../config/kie.html" class="md-nav__link">
         
   
   <span class="md-ellipsis">
-    配置中心参考
+    使用Kie
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/nacos.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Nacos
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/zookeeper.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Zookeeper
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/apollo.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用Apollo
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../config/cse1.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    使用CSE1.0配置中心
   </span>
   
 
@@ -2024,6 +2129,48 @@
   
   
     <li class="md-nav__item">
+      <a href="../references-handlers/rule-governance.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
+      <a href="../references-handlers/governance-best-practise.html" class="md-nav__link">
+        
+  
+  <span class="md-ellipsis">
+    流量特征治理最佳实践
+  </span>
+  
+
+      </a>
+    </li>
+  
+
+              
+            
+              
+                
+  
+  
+  
+  
+    <li class="md-nav__item">
       <a href="../references-handlers/loadbalance.html" class="md-nav__link">
         
   
@@ -2108,27 +2255,6 @@
   
   
     <li class="md-nav__item">
-      <a href="../references-handlers/governance.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    流量特征治理
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
       <a href="../references-handlers/fail-retry.html" class="md-nav__link">
         
   
@@ -2584,69 +2710,6 @@
 
               
             
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/config-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Config Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/service-center-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    Service Center Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
-              
-                
-  
-  
-  
-  
-    <li class="md-nav__item">
-      <a href="../config-reference/kie-client.html" class="md-nav__link">
-        
-  
-  <span class="md-ellipsis">
-    ServiceComb Kie Client 配置项
-  </span>
-  
-
-      </a>
-    </li>
-  
-
-              
-            
           </ul>
         </nav>
       
@@ -2895,7 +2958,7 @@
     <script id="__config" type="application/json">{"base": "..", "features": [], "search": "../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
     
     
-      <script src="../assets/javascripts/bundle.8fd75fb4.min.js"></script>
+      <script src="../assets/javascripts/bundle.dd8806f2.min.js"></script>
       
     
   </body>
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 23109bb..771db8c 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -1079,226 +1079,226 @@
 </url>
 <url>
 <loc>/assets/slides/20170619/LinuxCon-Workshop-company.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20170619/MSAPrinciple&amp;EcoSystem.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20170619/ServiceCombIntroduction.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20170619/ServiceCombRoadMap.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20171026/ServiceCombIntroduce1026.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20171102/ServiceComb_PastAndPresent.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20171109/MicroservicePracticeOfHuaweiConsumerCloudBasedOnServiceComb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20171207/Uncover_ServiceComb_Design.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20171209/PracticeOfServiceMeshOnHuaweiPublicCloud.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20171221/data.consistency.live.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180111/ServiceComb_Metrics_Introduction.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180125/Service_Center_Introduction.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180127/ServiceComb_Overview.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180208/Communications_Inside_Java_Chassis.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180315/Monitor_Apache_ServiceComb_using_Apache_Skywalking_APM.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180322/ServiceComb-OSCAR.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180421/Introduction_to_ServiceComb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180422/QConBeijing2018-Saga.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/1_How_Apache_works_jb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/2_ServiceComb-introduction-jiangning.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/3_How_Smart_City_Microserviced_Based_on_ServiceComb_from_iSoftStone.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/4_Java_sdk_details_wujimin.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/5_Millions_Users_Solution_Based_on_ServiceComb_Microservices_from_Huawei_Consumer_Cloud_lilinfeng.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/6_DDD_in_Microservics_wanglei.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/7_Detailed_Introduction_of_Transaction_Consistency_Solution_from_ServiceComb-Saga.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20180627/8_Thinking_about_ServiceMesh_in_ServiceComb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/1_The_Apache_Way.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/2_ApacheServiceComb(Incubating)Community_Roadmap.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/3_ServiceMesh-based_Microservices_and_Those_Based_on_a_Traditional_Architecture.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/4_ServiceComb%E2%80%99s_Exploration_of_Service_Mesh.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/5_My_Participation_in_ServiceComb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/6_Experience_on_Fast_Microservice_Programming.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/EN/1_The_Apache_Way.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/EN/2_ApacheServiceComb(Incubating)Community_Roadmap.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/EN/3_ServiceMesh-based_Microservices_and_Those_Based_on_a_Traditional_Architecture.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/EN/4_ServiceComb%E2%80%99s_Exploration_of_Service_Mesh.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/EN/5_My_Participation_in_ServiceComb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181012/EN/6_Experience_on_Fast_Microservice_Programming.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20181229/1_ApacheServiceComb_Community_Introduction.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/1_ServiceComb_Opensource_Way.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/2_NTTDATA_Microservice_Practices.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/3_Enterprise_PaaS_Microservice_Pratices.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/4_Innovation_New_Project_Release.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/5_ShardingSphere_Distributed_Transaction_Solution.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/6_Microservice_High_Performance_Communication.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190624/7_HuaweiCloud_Distributed_Transaction_DTM_Practices.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190920/Apache_ServiceComb-Innovative_Microservices.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190920/EN/Apache_ServiceComb-Innovative_Microservices.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190920/EN/HUAWEI_CLOUD_Microservice_Tool_Improves_Development_Efficiency.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190920/EN/The_Apache_Way_En.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190920/HUAWEI_CLOUD_Microservice_Tool_Improves_Development_Efficiency.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20190920/The_Apache_Way_En.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20191120/2.Apache_ServiceComb_builds_online_store.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20191120/Apache_ServiceComb.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20191211/A_day_of_open_source_developer.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 <url>
 <loc>/assets/slides/20191211/Microservice_architecture_and_Apache_serviceComb_practice.pdf</loc>
-<lastmod>2024-02-23T09:57:25+08:00</lastmod>
+<lastmod>2024-04-26T14:20:54+08:00</lastmod>
 </url>
 </urlset>