@diplodoc/client 5.10.0 → 5.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,20 @@ on:
34
34
  # Re-approve once the other PR workflows finish and all non-excluded checks are
35
35
  # green — so an approval never covers unreviewed new code while CI is pending.
36
36
  workflow_run:
37
+ # Required by GitHub: list the workflows whose completion should trigger
38
+ # a re-approve. These are the CI workflows that run on pull_request and
39
+ # whose green conclusion means the bot PR is safe to approve again.
40
+ workflows:
41
+ - Quality
42
+ - Coverage
43
+ - Security
44
+ - Update package-lock.json
37
45
  types: [completed]
46
+ # Only re-approve on the automated bot PR branches — avoids needless runs
47
+ # on regular feature branches (the `if` below still guards the job body).
48
+ branches:
49
+ - 'ci/update-deps/**'
50
+ - 'release-please--**'
38
51
 
39
52
  permissions:
40
53
  contents: read
@@ -54,6 +54,11 @@ on:
54
54
  required: true
55
55
  type: string
56
56
  default: 'latest'
57
+ create_pr:
58
+ description: 'Create PR when running on a non-master branch. Ignored on master.'
59
+ required: false
60
+ type: boolean
61
+ default: false
57
62
 
58
63
  permissions:
59
64
  contents: write
@@ -62,6 +67,11 @@ permissions:
62
67
  jobs:
63
68
  update-package:
64
69
  runs-on: ubuntu-latest
70
+ outputs:
71
+ changed: ${{ steps.publish.outputs.changed }}
72
+ branch: ${{ steps.publish.outputs.branch }}
73
+ pr_number: ${{ steps.publish.outputs.pr_number }}
74
+ pr_url: ${{ steps.publish.outputs.pr_url }}
65
75
  steps:
66
76
  - name: Checkout code
67
77
  uses: actions/checkout@v5
@@ -129,6 +139,7 @@ jobs:
129
139
  run: npm install --no-workspaces --package-lock-only
130
140
 
131
141
  - name: Create and publish PR
142
+ id: publish
132
143
  env:
133
144
  GH_TOKEN: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
134
145
  # See "Update packages" step above — inputs go through env, never
@@ -137,12 +148,30 @@ jobs:
137
148
  INPUT_PACKAGE: ${{ inputs.package }}
138
149
  INPUT_VERSION: ${{ inputs.version }}
139
150
  INPUT_UPDATE_AS_DEV: ${{ inputs.update_as_dev }}
151
+ INPUT_CREATE_PR: ${{ inputs.create_pr }}
140
152
  run: |
141
153
  set -e
142
154
 
155
+ # Determine the base branch from the branch selected in the GitHub
156
+ # Actions UI (workflow_dispatch). GITHUB_REF_NAME is automatically
157
+ # set by the runner (e.g. "master", "feature/foo").
158
+ BASE_BRANCH="${GITHUB_REF_NAME:-master}"
159
+ echo "branch=$BASE_BRANCH" >> "$GITHUB_OUTPUT"
160
+
143
161
  # Check if there are any changes
144
- if [[ -z $(git diff --stat | grep -E "package.json|package-lock.json") ]]; then
145
- echo "::info::Nothing to update"
162
+ if [[ -n $(git status --porcelain -- package.json package-lock.json) ]]; then
163
+ CHANGED=true
164
+ else
165
+ CHANGED=false
166
+ fi
167
+ echo "changed=$CHANGED" >> "$GITHUB_OUTPUT"
168
+
169
+ # On master there is nothing to do without changes: the dedicated
170
+ # update branch and its PR are created from the diff itself.
171
+ # On a non-master branch with create_pr an existing PR may still need
172
+ # to be reported, so keep going.
173
+ if [[ "$CHANGED" != "true" && ( "$BASE_BRANCH" == "master" || "$INPUT_CREATE_PR" != "true" ) ]]; then
174
+ echo "::notice::Nothing to update"
146
175
  exit 0
147
176
  fi
148
177
 
@@ -203,11 +232,57 @@ jobs:
203
232
  SAFE_VERSION=$(echo "$INPUT_VERSION" | tr -c 'A-Za-z0-9._-' '_')
204
233
  BRANCH_NAME="ci/update-deps/${SAFE_FIRST_PACKAGE}-${SAFE_VERSION}"
205
234
 
206
- git push -f origin ":$BRANCH_NAME" || true
207
- git checkout -b "$BRANCH_NAME"
208
- git add package.json package-lock.json
209
- git commit -m "fix(deps): Update $VERSIONS" --no-verify
210
- git push -u origin "$BRANCH_NAME"
235
+ if [[ "$BASE_BRANCH" == "master" ]]; then
236
+ # For master: create a dedicated branch, push, and open a PR.
237
+ # create_pr is ignored here — this path always opens a PR.
238
+ git push -f origin ":$BRANCH_NAME" || true
239
+ git checkout -b "$BRANCH_NAME"
240
+ git add package.json package-lock.json
241
+ git commit -m "fix(deps): Update $VERSIONS" --no-verify
242
+ git push -u origin "$BRANCH_NAME"
243
+
244
+ PR_URL=$(gh pr create --title "fix(deps): Update $VERSIONS" \
245
+ --body "Automated dependency update" --base "$BASE_BRANCH" --head "$BRANCH_NAME")
246
+ echo "branch=$BRANCH_NAME" >> "$GITHUB_OUTPUT"
247
+ echo "pr_url=$PR_URL" >> "$GITHUB_OUTPUT"
248
+ echo "pr_number=${PR_URL##*/}" >> "$GITHUB_OUTPUT"
249
+ exit 0
250
+ fi
251
+
252
+ # For non-master branches: commit directly to the selected branch.
253
+ if [[ "$CHANGED" == "true" ]]; then
254
+ git add package.json package-lock.json
255
+ git commit -m "fix(deps): Update $VERSIONS" --no-verify
256
+ git push origin "$BASE_BRANCH"
257
+ echo "::notice::Commit pushed to $BASE_BRANCH"
258
+ fi
259
+
260
+ # Without create_pr the author opens the PR themselves — historical
261
+ # behaviour, kept as the default.
262
+ if [[ "$INPUT_CREATE_PR" != "true" ]]; then
263
+ exit 0
264
+ fi
265
+
266
+ # Idempotent PR create-or-reuse: a re-run on the same branch must not
267
+ # produce a second PR.
268
+ EXISTING=$(gh pr list --head "$BASE_BRANCH" --base master --state open \
269
+ --json number,url --jq '.[0] // empty')
270
+
271
+ if [[ -n "$EXISTING" ]]; then
272
+ PR_NUMBER=$(echo "$EXISTING" | node -pe 'JSON.parse(require("fs").readFileSync(0,"utf8")).number')
273
+ PR_URL=$(echo "$EXISTING" | node -pe 'JSON.parse(require("fs").readFileSync(0,"utf8")).url')
274
+ echo "::notice::Reusing existing PR #$PR_NUMBER"
275
+ else
276
+ # Fails when the branch has no commits ahead of master; that is not
277
+ # an error for a no-op re-run.
278
+ if ! PR_URL=$(gh pr create --title "fix(deps): Update $VERSIONS" \
279
+ --body "Automated dependency update" --base master --head "$BASE_BRANCH"); then
280
+ echo "::notice::No PR created for $BASE_BRANCH"
281
+ exit 0
282
+ fi
283
+ PR_NUMBER="${PR_URL##*/}"
284
+ echo "::notice::Created PR #$PR_NUMBER"
285
+ fi
211
286
 
212
- # Create PR
213
- gh pr create --title "fix(deps): Update $VERSIONS" --body "Automated dependency update" --base master
287
+ echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"
288
+ echo "pr_url=$PR_URL" >> "$GITHUB_OUTPUT"
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "5.10.0"
2
+ ".": "5.10.2"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.10.2](https://github.com/diplodoc-platform/client/compare/v5.10.1...v5.10.2) (2026-07-29)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** Update dev:@diplodoc/transform@4.77.8 ([#408](https://github.com/diplodoc-platform/client/issues/408)) ([fd19c7b](https://github.com/diplodoc-platform/client/commit/fd19c7b5bc8d8ad31c30b66d87df1e1156596f18))
9
+
10
+ ## [5.10.1](https://github.com/diplodoc-platform/client/compare/v5.10.0...v5.10.1) (2026-07-28)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **deps:** Update dev:@diplodoc/components@5.17.3, dev:@diplodoc/tabs-extension@3.10.5, dev:@diplodoc/transform@4.77.7 ([#406](https://github.com/diplodoc-platform/client/issues/406)) ([bdd25e1](https://github.com/diplodoc-platform/client/commit/bdd25e14263a3e4d9116e4db01b2bc794df8e76c))
16
+ * missing JSX.Element in react-compat shim ([#402](https://github.com/diplodoc-platform/client/issues/402)) ([3853780](https://github.com/diplodoc-platform/client/commit/3853780d058b49e07872ef915b9bb73179cfd903))
17
+
3
18
  ## [5.10.0](https://github.com/diplodoc-platform/client/compare/v5.9.3...v5.10.0) (2026-07-27)
4
19
 
5
20
 
@@ -1,2 +1,2 @@
1
- (()=>{var e,t,n,r,o,a,i={34316(e,t,n){"use strict";var r,o,a,i,c,s,u,l,d=n(71893),f=n(55456),h=n(61642),m=n(74848),v=n(96540),p=n(5338),g=n(18522),b=n(81836),y=n(78184),w=n(12905),x=n(6790),_=n(86639),S=n(84785),j=n(37321),C=n(77580);n(20553);var k=(0,v.createContext)({pathname:"/",depth:0});k.displayName="RouterContext";var T=k.Provider,M=(0,v.createContext)(y.JA.En);M.displayName="Lang";var A=M.Provider,E=n(70638),L=n(85391),N=n(87112),P=n(60478),O={theme:y.Sx.Light,textSize:y.ov.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1},I=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"],F=((r={}).RTL="rtl",r.LTR="ltr",r);function R(){return"u">typeof document}function z(e){var t=e.theme;"u">typeof document&&document.querySelectorAll(".g-root").forEach(function(e){e.classList.toggle("g-root_theme_light","light"===t),e.classList.toggle("g-root_theme_dark","dark"===t)})}function H(e){if(R()){document.body.classList.add("g-root");var t=function(e,t){return document.body.classList.toggle(e,!!t)};Object.keys(e).forEach(function(n){switch(n){case"wideFormat":t("dc-root_wide-format",e[n]);break;case"focusSearch":t("dc-root_focused-search",e[n]);break;case"fullScreen":t("dc-root_full-screen",e[n]);break;case"landingPage":t("dc-root_document-page",!e[n]),t("dc-root_landing-page",e[n]);break;case"mobileView":t("mobile",e[n]),t("desktop",!e[n])}})}}(0,P._)(new Set((0,P._)(["href"]).concat((0,P._)(["src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]))));var B=function(e){return"boolean"==typeof e?e:!!e&&"true"===e};function U(){var e=V("theme"),t=V("textSize"),n=V("showMiniToc"),r=V("wideFormat"),o=V("fullScreen");return{theme:e,textSize:t,showMiniToc:B(n),wideFormat:B(r),fullScreen:B(o)}}function q(e){return"PAGE_CONSTRUCTOR"===(0,E.M5)(e)}function W(){return!!R()&&document.body.clientWidth<769}function V(e){if(!R())return O[e];try{return sessionStorage.getItem(e)||O[e]}catch(t){return O[e]}}function $(e,t){var n=t.match(/^file:\/\/\/(.*)$/),r=(n?"/"+n[1]:t.replace(/^https?:\/\/[^/]+/,"")).replace(/\/[a-z]{2}\//,"/".concat(e,"/"));return n?"file://"+r:r}function D(){var e=window.location.hash.substring(1);if(e){var t=document.getElementById(e);if(t){for(var n,r=null==t?void 0:t.parentElement;r;)(null==(n=r)?void 0:n.tagName.toLowerCase())==="details"&&(r.open=!0),r.classList.contains("yfm-tab-panel")&&!r.classList.contains("active")&&function(e){var t=globalThis[Symbol.for("diplodocTabs")];if(t&&"function"==typeof t.selectTabById){var n=e.getAttribute("aria-labelledby");n&&t.selectTabById(n)}}(r),r=r.parentElement;t.focus(),setTimeout(function(){!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;if(!((t=e.getBoundingClientRect()).top>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)))if(-1!==["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName))e.scrollIntoView();else{var r=e.getBoundingClientRect().top+window.scrollY-n;window.scrollTo({top:r})}}(t)},10)}}}var K=n(50467),Z=n(53014);function J(e,t){var n=(0,Z._)((0,v.useState)(t[e]),2),r=n[0],o=n[1],a=(0,v.useMemo)(function(){var t,n;return t=e,n=o,function(e){if(R())try{sessionStorage.setItem(t,String(e))}catch(e){}n(e)}},[e,o]);return(0,v.useMemo)(function(){var t;return t={},(0,K._)(t,e,r),(0,K._)(t,"onChange"+e.replace(/^./,function(e){return e.toUpperCase()}),a),t},[e,r,a])}var G=n(23614),Q=n(41374),Y=n(30494),X=n(99407),ee=n(53750),et=n(51735),en=function(){function e(t){var r=this,o=this;(0,Y._)(this,e),(0,K._)(this,"worker",void 0),(0,K._)(this,"config",void 0),(0,K._)(this,"init",function(){var e;e=(0,f._)((0,d._)({},r.config),{base:r.base,mark:"Suggest__Item__Marker"}),r.worker=(0,Q._)(function(){var t;return(0,et._)(this,function(r){switch(r.label){case 0:return[4,(0,Q._)(function(){var e,t,r;return(0,et._)(this,function(o){try{return[2,new Worker(new URL(n.p+n.u("976"),n.b))]}catch(n){if((0,ee._)(n,DOMException)&&(e=er.exec(n.message)))return t=e[1],r=new Blob(["importScripts('".concat(t,"');")],{type:"text/javascript"}),[2,new Worker(URL.createObjectURL(r))];throw n}})})()];case 1:return[4,eo(t=r.sent(),(0,f._)((0,d._)({},e),{type:"init"}))];case 2:return r.sent(),[2,t]}})})()}),(0,K._)(this,"link",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=new URLSearchParams;n&&o.set("query",n),r>1&&o.set("page",r.toString());var a=o.toString()?"?".concat(o.toString()):"";return"".concat(e,"/").concat(t.link).concat(a)}(o.base,o.config,e,t)}),this.config=t}return(0,X._)(e,[{key:"suggest",value:function(e){return(0,Q._)(function(){return(0,et._)(this,function(t){return[2,this.request({type:"suggest",query:e})]})}).call(this)}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return(0,Q._)(function(){return(0,et._)(this,function(r){return[2,this.request({type:"search",query:e,page:t,count:n})]})}).call(this)}},{key:"base",get:function(){return window.location.href.split("/").slice(0,-this.config.depth).join("/")}},{key:"request",value:function(e){return(0,Q._)(function(){return(0,et._)(this,function(t){switch(t.label){case 0:return[4,this.worker];case 1:return[2,eo.apply(void 0,[t.sent(),e])]}})}).call(this)}}]),e}(),er=/Script at '(.*?)' cannot be accessed from origin/;function eo(e,t){var n=new MessageChannel;return new Promise(function(r,o){n.port1.onmessage=function(e){e.data.error?o(e.data.error):r(e.data.result)},n.port1.onmessageerror=function(e){o(e.data.error)},e.postMessage(t,[n.port2])})}(0,G.default)("Search");var ea=(0,v.createContext)(null);ea.displayName="SearchContext";var ei=ea.Provider,ec=(0,v.createContext)(null);ec.displayName="NeuroExpertContext";var es=ec.Provider;n(66008);var eu=n(31105),el=n(56701),ed=n(26141),ef=n(720),eh=(0,v.memo)(function(e){var t=e.mobileView,n=e.theme,r=e.onChangeTheme,o=e.textSize,a=e.onChangeTextSize,i=e.wideFormat,c=e.onChangeWideFormat,s=e.showMiniToc,u=e.onChangeShowMiniToc,l=e.lang,d=e.langs,f=e.onChangeLang,h=e.availableLangs;return(0,m.jsx)(ed.n,{controlClassName:"Control",controlSize:y.Uv.L,isWideView:t,isMobileView:t,children:(0,m.jsx)(ef.A,{className:"Controls",theme:n,onChangeTheme:r,wideFormat:i,onChangeWideFormat:c,showMiniToc:s,onChangeShowMiniToc:u,textSize:o,onChangeTextSize:a,lang:l,langs:d,onChangeLang:f,availableLangs:void 0===h?[]:h})})});eh.displayName="HeaderControls";var em=(0,v.createContext)(null),ev=em.Provider,ep=function(){var e=(0,v.useContext)(em);if(!e)throw Error("CustomControls must be used within HeaderControlsProvider");return(0,m.jsx)(eh,(0,d._)({},e))},eg=n(75280),eb=function(e,t){var n=(0,E.M5)(e)===y.KG.PageConstructor&&"data"in e&&"fullScreen"in e.data&&e.data.fullScreen,r=(0,v.useMemo)(function(){return n?e.data:{blocks:[{type:"page",resetPaddings:!0}]}},[n,e]);return(0,v.useMemo)(function(){return{custom:{page:t},layout:r}},[t,r])},ey=n(40258),ew=n(89911),ex=n(78564),e_=n(36847),eS=n(84941),ej=(0,G.default)("Suggest");function eC(){return(0,m.jsx)(g.Icon,{data:eS.A,className:ej("end"),size:24})}function ek(){var e,t,n,r,o,a,i,c,s,u=(e=(0,v.useContext)(M),n=void 0===(t=(0,v.useContext)(k).depth)?0:t,r=(0,v.useContext)(ea),a=(o=(0,Z._)((0,v.useState)(null),2))[0],i=o[1],c=(0,v.useMemo)(function(){return r?(0,f._)((0,d._)({},r),{depth:n,lang:e}):null},[e,n,r]),(0,v.useEffect)(function(){c&&i(c?new en(c):null)},[c]),a),l=(0,v.useRef)(null),h=(0,ey.j)("search"),p=(0,Z._)((0,v.useState)(!1),2),g=p[0],b=p[1],y=(0,Z._)((0,v.useState)(""),2),w=y[0],x=y[1],_=null==(s=(0,v.useContext)(ec))?void 0:s.projectId,S=(0,v.useMemo)(function(){return _?function(e){x(e),b(!0)}:void 0},[_]),j=(0,v.useCallback)(function(){b(!1)},[]),C=(0,v.useCallback)(function(){H({focusSearch:!0})},[]),T=(0,v.useCallback)(function(){H({focusSearch:!1}),setTimeout(function(){l.current&&l.current.close()},100)},[]);return!u||h?null:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ew.$H,{ref:l,provider:u,onFocus:C,onBlur:T,endContent:(0,m.jsx)(eC,{}),className:ej("input"),classNameContainer:"".concat(ej()," ").concat(S?ej("with-ai"):""),classNameClose:ej("close"),closeButton:!0,startContent:S?(0,m.jsx)(ex.K,{}):void 0,focusFirstSearchResult:!!S,onAiAction:S}),_&&(0,m.jsx)(e_.F,{open:g,query:w,projectId:_,onClose:j})]})}var eT=n(15395),eM=n(29794),eA=n(41790),eE=n(63192);function eL(e,t,n){return e.some(function(e){return e.type===n})||t.some(function(e){return e.type===n})}var eN={},eP={},eO=[],eI=[],eF=function(e,t,n,r,o){var a=e.toc,i=a.navigation||eN,c=i.header,s=void 0===c?eP:c,u=i.logo,l=s.leftItems,h=void 0===l?eO:l,p=s.rightItems,g=void 0===p?eI:p,b=eL(g,h,"controls"),w=eL(g,h,"search"),x=(0,v.useContext)(ea),_=(0,v.useContext)(k);x&&!w&&g.unshift({type:"search"});var S=(0,v.useMemo)(function(){return{withBorder:!0,leftItems:h,rightItems:g,customMobileHeaderItems:[{type:"search"}]}},[h,g]),j=(0,v.useMemo)(function(){return{toc:a,router:_,headerHeight:64}},[a,_]),C=(0,v.useMemo)(function(){return{controlSize:y.Uv.L,userSettings:t,viewerInterface:o}},[t,o]),T=(0,v.useMemo)(function(){var e;return eN===i?void 0:{header:{leftItems:[]},renderNavigation:function(){var e;return(0,m.jsx)(eT.A,{logo:(0,f._)((0,d._)({},u),{icon:null!=(e=null==u?void 0:u.icon)?e:""}),data:S,navigationTocData:j,mobileControlsData:C})},logo:(0,f._)((0,d._)({},u),{icon:null!=(e=null==u?void 0:u.icon)?e:""})}},[S,j,C,u,i]);return(0,v.useMemo)(function(){return{custom:{search:r,controls:n,MobileDropdown:eM.A,label:eA.J,dropdown:eE.g},layout:T,withControls:b}},[r,n,T,b])},eR=(0,v.createContext)(null),ez=eR.Provider,eH=n(30970),eB=(0,G.default)("Layout");function eU(){return null}function eq(){return null}function eW(){return null}var eV={doc:!1},e$=function(e){var t,n,r,o=(0,d._)({},eV,e),a=o.children,i=o.doc,c=o.headerHeight;return v.Children.forEach(a,function(e){if((0,v.isValidElement)(e))switch(e.type){case eU:t=e.props.children;break;case eq:n=e.props.children;break;case eW:r=e.props.children}}),(0,m.jsxs)("div",{className:eB({"full-header":(void 0===c?0:c)>0}),children:[t&&(0,m.jsx)("div",{className:eB("header"),children:t}),(0,m.jsxs)("div",{className:eB("body"),children:[n&&(0,m.jsx)("div",{className:eB("content"),children:n}),r&&(0,m.jsx)("div",{className:eB("footer",{doc:i}),children:r})]})]})};e$.displayName="Layout",e$.Header=eU,e$.Content=eq,e$.Footer=eW;var eD=(0,G.default)("pc-page-constructor"),eK=(0,G.default)("pc-constructor-row"),eZ=function(e){var t=e.children;return t?(0,m.jsx)(eg.fI1,{className:eK(),children:(0,m.jsx)(eg.fvL,{children:t})}):null};function eJ(e){var t=e.background,n=e.blocks,r=(0,eg.DPo)(),o=(0,eg.dgY)(t,r);return(0,m.jsx)("div",{className:eD("docs"),children:(0,m.jsxs)("div",{className:eD("wrapper"),children:[n&&o&&(0,m.jsx)(eg.bGR,(0,f._)((0,d._)({},o),{className:eD("background")})),(0,m.jsx)(eg.xA9,{children:(0,m.jsx)(eZ,{children:(0,m.jsx)(eg.FA7,{items:n})})})]})})}var eG=function(){var e=function(){var e=(0,v.useContext)(eR);if(!e)throw Error("usePageContext must be used within PageProvider");return e}(),t=e.data,n=e.props,r=e.hasLayout,o=(0,E.M5)(t),a=(0,E.$T)(o),i=n.fullScreen||!r?0:64,c=(0,d._)({},t,n),s=t.toc.navigation,u=null==s?void 0:s.footer;return(0,m.jsxs)(e$,{headerHeight:i,children:[(0,m.jsx)(e$.Content,{children:(0,m.jsx)(a,(0,f._)((0,d._)({},c),{children:(0,m.jsx)(eJ,(0,d._)({},t.data))}))}),u&&!n.fullScreen&&(0,m.jsx)(e$.Footer,{children:(0,m.jsx)(eH.P,(0,d._)({},u))})]},"layout")};function eQ(e){var t=e.data,n=e.props,r=e.controls,o=n.theme,a=n.fullScreen,i=(0,el.s)(),c=eF(t,r,ep,ek),s=eb(t,eG),u=(0,v.useMemo)(function(){var e,t;return c.withControls?(t=["theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","langs","onChangeLang"],Object.keys(e=r).reduce(function(n,r){return t.includes(r)||(n[r]=e[r]),n},{})):r},[c.withControls,r]),l=(0,v.useMemo)(function(){return i?{sendEvents:function(e){e.forEach(function(e){var t=e.name,n=e.counters,r=(0,eu._)(e,["name","counters"]);i.track(t,r,{includeKeys:null==n?void 0:n.include,excludeKeys:null==n?void 0:n.exclude})})}}:void 0},[i]),f=(0,v.useMemo)(function(){return{navigation:c.custom,blocks:s.custom}},[c,s]),h=!!c.layout,p=(0,v.useMemo)(function(){return{data:t,props:(0,d._)({},n,u),hasLayout:h}},[t,h,u,n]);return(0,m.jsx)(ez,{value:p,children:(0,m.jsx)(eg.ZzZ,{theme:o,projectSettings:{disableCompress:!0},ssrConfig:{isServer:!0},analytics:l,children:(0,m.jsx)(eg.i$,{custom:f,content:s.layout,navigation:a?void 0:c.layout})})})}var eY=n(58498),eX=n(89457),e0=n(57016),e1=n(81397),e4=n(59071);function e2(){var e=(0,g.useTheme)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(e0.v,{}),(0,m.jsx)(eX.l,{}),(0,m.jsx)(eY.A,{theme:e===y.Sx.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}),(0,m.jsx)(e1.TabsRuntime,{saveTabsToLocalStorage:!0,saveTabsToQueryStateMode:"page"}),(0,m.jsx)(e4.UQ,{theme:e})]})}function e5(e,t){return t.some(function(t){return"string"==typeof t?t===e:t.lang===e})}var e9=n(34236),e8=function(e){var t=e.components,n=e.pureComponents;return function(e){return function(r){var o=r.forwardRef,a=r.mdxArtifacts,i=r.html,c=(0,v.useRef)(null);c.current=null;var s=(0,v.useCallback)(function(e){return c.current=e,o(e)},[o]),u=(0,e9.A)({refCtr:c,components:t,pureComponents:n,mdxArtifacts:a,html:i});return(0,m.jsxs)(v.Fragment,{children:[(0,m.jsx)(e,(0,f._)((0,d._)({},r),{forwardRef:s})),u]})}}},e7=(o=function(e){var t,r,o,a,i,c,s,u,l,h,p,k,M,L,N,P,O,R,B,V=e.data,K=e.router,G=e.lang,Q=e.langs,Y=e.search,X=e.analytics,ee=e.feedback,et=e.viewerInterface,en=e.neuroExpert,er=(r=J("theme",t=U()),o=J("textSize",t),a=J("wideFormat",t),i=J("fullScreen",t),c=J("showMiniToc",t),(0,v.useMemo)(function(){return(0,d._)({},r,o,a,c,i)},[r,o,a,c,i])),eo=(s=e.lang,u=e.langs,l=(0,v.useCallback)(function(e,t){var n=t||{},r=n.tld,o=n.href;if(o){window.location.href=o;return}var a=window.location.href;r?window.location.replace($(e,a.replace(/([a-zA-Z0-9-]+\.[a-zA-Z0-9-]+)(?=[/:?#]|$)/,function(e){var t=e.lastIndexOf(".");return -1===t?e:e.slice(0,t+1)+r}))):window.location.replace($(e,a))},[]),(0,v.useMemo)(function(){return{lang:s,langs:u,onChangeLang:l}},[s,u,l])),ea=(p=(h=(0,Z._)((0,v.useState)(W()),2))[0],k=h[1],M=(0,v.useCallback)(function(){k(W())},[]),(0,v.useEffect)(M,[M]),(0,v.useEffect)(function(){return window.addEventListener("resize",M),function(){return window.removeEventListener("resize",M)}},[M]),p),ec=(0,v.useMemo)(function(){if(!("meta"in V))return[];var e=V.meta,t=e.canonical,n=e.alternate;if(!t)return[];var r=new Set,o=(0,Z._)(t.split("/"),1)[0];e5(o,Q)&&r.add(o);var a=!0,i=!1,c=void 0;try{for(var s,u=(void 0===n?[]:n)[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var l=s.value.href;if(!(!l||(0,E.ZR)(l))){var d=(0,Z._)(l.split("/"),1)[0];e5(d,Q)&&r.add(d)}}}catch(e){i=!0,c=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw c}}return Array.from(r)},[V,Q]),eu=b.Lq.includes(G)?G:y.JA.En;(0,w.jK)({lang:eu,localeCode:eu});var el=(0,v.useMemo)(function(){var e=[],t=n.g&&"getMdxInitProps"in n.g&&n.g.getMdxInitProps;return"function"==typeof t&&e.push(e8(t({dependencies:{react:v}}))),e},[]),ed=er.theme,ef=er.textSize,eh=er.wideFormat,em=er.fullScreen,ep=er.showMiniToc,eg=(N=(L={feedbackUrl:null==ee?void 0:ee.url,router:K,viewerInterface:et}).feedbackUrl,P=L.router,O=L.viewerInterface,R=(0,v.useCallback)(function(e){N&&fetch(N,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify((0,f._)((0,d._)({},e),{page:P.pathname,timestamp:new Date().toISOString()}))}).catch(function(e){console.error("Failed to send feedback:",e)})},[N,P.pathname]),B=(null==O?void 0:O.feedback)!==!1,N&&B?R:void 0),eb=(0,v.useMemo)(function(){return{router:K,theme:ed,textSize:ef,wideFormat:eh,fullScreen:em,showMiniToc:ep,isMobile:ea}},[K,ed,ef,eh,em,ep,ea]),ey=(0,v.useMemo)(function(){return(0,f._)((0,d._)({},er,eo),{mobileView:ea,availableLangs:ec,onSendFeedback:eg})},[eo,er,ea,ec,eg]),ew=I.includes(G)?F.RTL:F.LTR,ex=q(V);return(0,v.useEffect)(function(){H({mobileView:ea,wideFormat:eh,fullScreen:em,landingPage:ex}),z({theme:ed}),D(),"u">typeof window&&window.patchAfterRender&&window.patchAfterRender()},[ed,ea,eh,em,ex,G]),(0,v.useEffect)(function(){return globalThis.addEventListener("hashchange",D),function(){return globalThis.removeEventListener("hashchange",D)}},[]),(0,m.jsx)("div",{className:"App",children:(0,m.jsx)(g.ThemeProvider,{theme:ed,direction:ew,children:(0,m.jsx)(A,{value:G,children:(0,m.jsx)(T,{value:K,children:(0,m.jsx)(ei,{value:Y,children:(0,m.jsx)(es,{value:en,children:(0,m.jsxs)(x.p,{interface:et||{},children:[(0,m.jsx)(_.W.Provider,{value:el,children:(0,m.jsx)(ev,{value:ey,children:(0,m.jsx)(eQ,{data:V,props:eb,controls:ey})})}),(null==X?void 0:X.gtm)&&(0,m.jsx)(S.A,{router:K,gtmId:X.gtm.id,consentMode:X.gtm.mode}),(0,m.jsx)(j.A,{}),(0,m.jsx)(e2,{}),(0,m.jsx)(C.Z,{})]})})})})})})})},function(e){var t=e.analyticsService,n=(0,eu._)(e,["analyticsService"]);return t?(0,m.jsx)(el.y,{value:t,children:(0,m.jsx)(o,(0,d._)({},n))}):(0,m.jsx)(o,(0,d._)({},n))}),e3=document.getElementById("root"),e6=window.__DATA__;if(!e3)throw Error("Root element not found!");if(!(e6&&(void 0===e6?"undefined":(0,h._)(e6))==="object"&&null!==e6&&"data"in e6))throw Error("Invalid data format for App component");var te=(i=(a=function(e){var t={metrika:[]};if(!e||(void 0===e?"undefined":(0,h._)(e))!=="object")return t;if("gtm"in e&&e.gtm&&"object"===(0,h._)(e.gtm)&&"string"==typeof e.gtm.id&&(t.gtm={id:e.gtm.id,mode:"notification"===e.gtm.mode?"notification":"base"}),"metrika"in e&&Array.isArray(e.metrika)){var n=!0,r=!1,o=void 0;try{for(var a,i=e.metrika[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;c&&(void 0===c?"undefined":(0,h._)(c))==="object"&&c.id&&t.metrika.push({id:c.id,params:c.params||{}})}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}return t}(e6.analytics)).metrika.map(function(e){return new L.W(e)}),{analyticsConfig:a,analyticsService:new N.j({adapters:i})}),tt=te.analyticsConfig,tn=te.analyticsService;tn.init(),s=(c=U()).theme,u=c.wideFormat,l=c.fullScreen,H({mobileView:W(),wideFormat:u,fullScreen:l,landingPage:q(e6.data)}),z({theme:s});var tr=(0,m.jsx)(e7,(0,f._)((0,d._)({},e6),{analytics:tt,analyticsService:tn}));window.STATIC_CONTENT?(0,p.hydrateRoot)(e3,tr):(0,p.createRoot)(e3).render(tr)},66008(){var e,t;"u">typeof Element&&((t=(e=Element.prototype).matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector)?e.matches=e.matchesSelector=t:e.matches=e.matchesSelector=function(e){var t=this;return Array.prototype.some.call(document.querySelectorAll(e),function(e){return e===t})})},98010(e,t,n){"use strict";function r(){}n.d(t,{A:()=>r})},14892(){},4320(){},3038(){},91190(){},7155(){},54318(){}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},l=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var n=Object.create(null);s.r(n);var r={};u=u||[null,l({}),l([]),l(l)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~u.indexOf(o);o=l(o))Object.getOwnPropertyNames(o).forEach(t=>{r[t]=()=>e[t]});return r.default=()=>e,s.d(n,r),n},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.k=e=>""+e+"-e43658c1c6d9f673.css",s.u=e=>""+e+"-"+({189:"5cb382a08b27d506",976:"40cbc1d2518eb8ea"})[e]+".js",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d={},s.l=function(e,t,n,r){if(d[e])return void d[e].push(t);if(void 0!==n)for(var o,a,i=document.getElementsByTagName("script"),c=0;c<i.length;c++){var u=i[c];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@diplodoc/client:"+n){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@diplodoc/client:"+n),o.src=e),d[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=d[e];if(delete d[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),a&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),f=[],s.O=(e,t,n,r)=>{if(t){r=r||0;for(var o=f.length;o>0&&f[o-1][2]>r;o--)f[o]=f[o-1];f[o]=[t,n,r];return}for(var a=1/0,o=0;o<f.length;o++){for(var[t,n,r]=f[o],i=!0,c=0;c<t.length;c++)(!1&r||a>=r)&&Object.keys(s.O).every(e=>s.O[e](t[c]))?t.splice(c--,1):(i=!1,r<a&&(a=r));if(i){f.splice(o--,1);var u=n();void 0!==u&&(e=u)}}return e},s.rv=()=>"1.7.4",s.j="509",s.g.importScripts&&(h=s.g.location+"");var u,l,d,f,h,m=s.g.document;if(!h&&m&&(m.currentScript&&"SCRIPT"===m.currentScript.tagName.toUpperCase()&&(h=m.currentScript.src),!h)){var v=m.getElementsByTagName("script");if(v.length)for(var p=v.length-1;p>-1&&(!h||!/^http(s?):/.test(h));)h=v[p--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");s.p=h=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={474:0,509:0},n="data-rspack-loading",(t=(t,n)=>{e[n]=0})(s.m,0,"474"),t(s.m,0,"509"),s.f.css=(r,o,a)=>{var i=s.o(e,r)?e[r]:void 0;if(0!==i)if(i)o.push(i[2]);else if(/^(189|85)$/.test(r))e[r]=0;else{var c=new Promise(function(t,n){i=e[r]=[t,n]});o.push(i[2]=c);var u=s.p+s.k(r),l=Error(),d=function(n){if(s.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i))if("load"!==n.type){var o=n&&n.type,a=n&&n.target&&n.target.src;l.message="Loading css chunk "+r+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,i[1](l)}else t(s.m,r),i[0]()};"u">typeof document?((e,t,r,o,a)=>{var i,c,u="chunk-"+e;if(!o){for(var l=document.getElementsByTagName("link"),d=0;d<l.length;d++){var f=l[d],h=f.getAttribute("href")||f.href;if(h&&!h.startsWith(s.p)&&(h=s.p+(h.startsWith("/")?h.slice(1):h)),"stylesheet"==f.rel&&(h&&h.startsWith(t)||f.getAttribute("data-rspack")=="@diplodoc/client:"+u)){i=f;break}}if(!r)return}i||(c=!0,i=document.createElement("link"),s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-rspack","@diplodoc/client:"+u),i.setAttribute(n,1),i.rel="stylesheet",i.href=t);var m=(e,t)=>{if(i.onerror=i.onload=null,i.removeAttribute(n),clearTimeout(v),t&&"load"!=t.type&&i.parentNode.removeChild(i),r(t),e)return e(t)};if(i.getAttribute(n)){var v=setTimeout(m.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=m.bind(null,i.onerror),i.onload=m.bind(null,i.onload)}else m(void 0,{type:"load",target:i});return o&&o.getAttribute("fetchpriority")&&i.setAttribute("fetchpriority",o.getAttribute("fetchpriority")),o?document.head.insertBefore(i,o):c&&document.head.appendChild(i)})(r,u,d,void 0,0):d({type:"load"})}},s.b=document.baseURI||self.location.href,r={509:0},s.f.j=function(e,t){var n=s.o(r,e)?r[e]:void 0;if(0!==n)if(n)t.push(n[2]);else if(572!=e){var o=new Promise((t,o)=>n=r[e]=[t,o]);t.push(n[2]=o);var a=s.p+s.u(e),i=Error();s.l(a,function(t){if(s.o(r,e)&&(0!==(n=r[e])&&(r[e]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+e,e)}else r[e]=0},s.O.j=e=>0===r[e],o=(e,t)=>{var n,o,[a,i,c]=t,u=0;if(a.some(e=>0!==r[e])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);if(c)var l=c(s)}for(e&&e(t);u<a.length;u++)o=a[u],s.o(r,o)&&r[o]&&r[o][0](),r[o]=0;return s.O(l)},(a=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[]).forEach(o.bind(null,0)),a.push=o.bind(null,a.push.bind(a)),s.ruid="bundler=rspack@1.7.4";var g=s.O(void 0,["85","474"],()=>s(34316));g=s.O(g)})();
2
- //# sourceMappingURL=app-faa955b9788700db.js.map
1
+ (()=>{var e,t,n,r,o,a,i={37917(e,t,n){"use strict";var r,o,a,i,c,s,u,l,d=n(71893),f=n(55456),h=n(61642),m=n(74848),v=n(5338),p=n(96540),g=n(18522),b=n(81836),y=n(78184),w=n(12905),x=n(6790),_=n(86639),S=n(84785),j=n(37321),C=n(77580);n(20553);var k=(0,p.createContext)({pathname:"/",depth:0});k.displayName="RouterContext";var T=k.Provider,M=(0,p.createContext)(y.JA.En);M.displayName="Lang";var A=M.Provider,E=n(70638),L=n(85391),N=n(87112),P=n(60478),O={theme:y.Sx.Light,textSize:y.ov.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1},I=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"],F=((r={}).RTL="rtl",r.LTR="ltr",r);function R(){return"u">typeof document}function z(e){var t=e.theme;"u">typeof document&&document.querySelectorAll(".g-root").forEach(function(e){e.classList.toggle("g-root_theme_light","light"===t),e.classList.toggle("g-root_theme_dark","dark"===t)})}function H(e){if(R()){document.body.classList.add("g-root");var t=function(e,t){return document.body.classList.toggle(e,!!t)};Object.keys(e).forEach(function(n){switch(n){case"wideFormat":t("dc-root_wide-format",e[n]);break;case"focusSearch":t("dc-root_focused-search",e[n]);break;case"fullScreen":t("dc-root_full-screen",e[n]);break;case"landingPage":t("dc-root_document-page",!e[n]),t("dc-root_landing-page",e[n]);break;case"mobileView":t("mobile",e[n]),t("desktop",!e[n])}})}}(0,P._)(new Set((0,P._)(["href"]).concat((0,P._)(["src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]))));var B=function(e){return"boolean"==typeof e?e:!!e&&"true"===e};function U(){var e=V("theme"),t=V("textSize"),n=V("showMiniToc"),r=V("wideFormat"),o=V("fullScreen");return{theme:e,textSize:t,showMiniToc:B(n),wideFormat:B(r),fullScreen:B(o)}}function q(e){return"PAGE_CONSTRUCTOR"===(0,E.M5)(e)}function W(){return!!R()&&document.body.clientWidth<769}function V(e){if(!R())return O[e];try{return sessionStorage.getItem(e)||O[e]}catch(t){return O[e]}}function $(e,t){var n=t.match(/^file:\/\/\/(.*)$/),r=(n?"/"+n[1]:t.replace(/^https?:\/\/[^/]+/,"")).replace(/\/[a-z]{2}\//,"/".concat(e,"/"));return n?"file://"+r:r}function D(){var e=window.location.hash.substring(1);if(e){var t=document.getElementById(e);if(t){for(var n,r=null==t?void 0:t.parentElement;r;)(null==(n=r)?void 0:n.tagName.toLowerCase())==="details"&&(r.open=!0),r.classList.contains("yfm-tab-panel")&&!r.classList.contains("active")&&function(e){var t=globalThis[Symbol.for("diplodocTabs")];if(t&&"function"==typeof t.selectTabById){var n=e.getAttribute("aria-labelledby");n&&t.selectTabById(n)}}(r),r=r.parentElement;t.focus(),setTimeout(function(){!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;if(!((t=e.getBoundingClientRect()).top>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)))if(-1!==["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName))e.scrollIntoView();else{var r=e.getBoundingClientRect().top+window.scrollY-n;window.scrollTo({top:r})}}(t)},10)}}}var K=n(50467),Z=n(53014);function J(e,t){var n=(0,Z._)((0,p.useState)(t[e]),2),r=n[0],o=n[1],a=(0,p.useMemo)(function(){var t,n;return t=e,n=o,function(e){if(R())try{sessionStorage.setItem(t,String(e))}catch(e){}n(e)}},[e,o]);return(0,p.useMemo)(function(){var t;return t={},(0,K._)(t,e,r),(0,K._)(t,"onChange"+e.replace(/^./,function(e){return e.toUpperCase()}),a),t},[e,r,a])}var G=n(23614),Q=n(41374),Y=n(30494),X=n(99407),ee=n(53750),et=n(51735),en=function(){function e(t){var r=this,o=this;(0,Y._)(this,e),(0,K._)(this,"worker",void 0),(0,K._)(this,"config",void 0),(0,K._)(this,"init",function(){var e;e=(0,f._)((0,d._)({},r.config),{base:r.base,mark:"Suggest__Item__Marker"}),r.worker=(0,Q._)(function(){var t;return(0,et._)(this,function(r){switch(r.label){case 0:return[4,(0,Q._)(function(){var e,t,r;return(0,et._)(this,function(o){try{return[2,new Worker(new URL(n.p+n.u("976"),n.b))]}catch(n){if((0,ee._)(n,DOMException)&&(e=er.exec(n.message)))return t=e[1],r=new Blob(["importScripts('".concat(t,"');")],{type:"text/javascript"}),[2,new Worker(URL.createObjectURL(r))];throw n}})})()];case 1:return[4,eo(t=r.sent(),(0,f._)((0,d._)({},e),{type:"init"}))];case 2:return r.sent(),[2,t]}})})()}),(0,K._)(this,"link",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=new URLSearchParams;n&&o.set("query",n),r>1&&o.set("page",r.toString());var a=o.toString()?"?".concat(o.toString()):"";return"".concat(e,"/").concat(t.link).concat(a)}(o.base,o.config,e,t)}),this.config=t}return(0,X._)(e,[{key:"suggest",value:function(e){return(0,Q._)(function(){return(0,et._)(this,function(t){return[2,this.request({type:"suggest",query:e})]})}).call(this)}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return(0,Q._)(function(){return(0,et._)(this,function(r){return[2,this.request({type:"search",query:e,page:t,count:n})]})}).call(this)}},{key:"base",get:function(){return window.location.href.split("/").slice(0,-this.config.depth).join("/")}},{key:"request",value:function(e){return(0,Q._)(function(){return(0,et._)(this,function(t){switch(t.label){case 0:return[4,this.worker];case 1:return[2,eo.apply(void 0,[t.sent(),e])]}})}).call(this)}}]),e}(),er=/Script at '(.*?)' cannot be accessed from origin/;function eo(e,t){var n=new MessageChannel;return new Promise(function(r,o){n.port1.onmessage=function(e){e.data.error?o(e.data.error):r(e.data.result)},n.port1.onmessageerror=function(e){o(e.data.error)},e.postMessage(t,[n.port2])})}(0,G.default)("Search");var ea=(0,p.createContext)(null);ea.displayName="SearchContext";var ei=ea.Provider,ec=(0,p.createContext)(null);ec.displayName="NeuroExpertContext";var es=ec.Provider;n(66008);var eu=n(31105),el=n(56701),ed=n(26141),ef=n(720),eh=(0,p.memo)(function(e){var t=e.mobileView,n=e.theme,r=e.onChangeTheme,o=e.textSize,a=e.onChangeTextSize,i=e.wideFormat,c=e.onChangeWideFormat,s=e.showMiniToc,u=e.onChangeShowMiniToc,l=e.lang,d=e.langs,f=e.onChangeLang,h=e.availableLangs;return(0,m.jsx)(ed.n,{controlClassName:"Control",controlSize:y.Uv.L,isWideView:t,isMobileView:t,children:(0,m.jsx)(ef.A,{className:"Controls",theme:n,onChangeTheme:r,wideFormat:i,onChangeWideFormat:c,showMiniToc:s,onChangeShowMiniToc:u,textSize:o,onChangeTextSize:a,lang:l,langs:d,onChangeLang:f,availableLangs:void 0===h?[]:h})})});eh.displayName="HeaderControls";var em=(0,p.createContext)(null),ev=em.Provider,ep=function(){var e=(0,p.useContext)(em);if(!e)throw Error("CustomControls must be used within HeaderControlsProvider");return(0,m.jsx)(eh,(0,d._)({},e))},eg=n(75280),eb=function(e,t){var n=(0,E.M5)(e)===y.KG.PageConstructor&&"data"in e&&"fullScreen"in e.data&&e.data.fullScreen,r=(0,p.useMemo)(function(){return n?e.data:{blocks:[{type:"page",resetPaddings:!0}]}},[n,e]);return(0,p.useMemo)(function(){return{custom:{page:t},layout:r}},[t,r])},ey=n(40258),ew=n(89911),ex=n(78564),e_=n(36847),eS=n(84941),ej=(0,G.default)("Suggest");function eC(){return(0,m.jsx)(g.Icon,{data:eS.A,className:ej("end"),size:24})}function ek(){var e,t,n,r,o,a,i,c,s,u=(e=(0,p.useContext)(M),n=void 0===(t=(0,p.useContext)(k).depth)?0:t,r=(0,p.useContext)(ea),a=(o=(0,Z._)((0,p.useState)(null),2))[0],i=o[1],c=(0,p.useMemo)(function(){return r?(0,f._)((0,d._)({},r),{depth:n,lang:e}):null},[e,n,r]),(0,p.useEffect)(function(){c&&i(c?new en(c):null)},[c]),a),l=(0,p.useRef)(null),h=(0,ey.j)("search"),v=(0,Z._)((0,p.useState)(!1),2),g=v[0],b=v[1],y=(0,Z._)((0,p.useState)(""),2),w=y[0],x=y[1],_=null==(s=(0,p.useContext)(ec))?void 0:s.projectId,S=(0,p.useMemo)(function(){return _?function(e){x(e),b(!0)}:void 0},[_]),j=(0,p.useCallback)(function(){b(!1)},[]),C=(0,p.useCallback)(function(){H({focusSearch:!0})},[]),T=(0,p.useCallback)(function(){H({focusSearch:!1}),setTimeout(function(){l.current&&l.current.close()},100)},[]);return!u||h?null:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ew.$H,{ref:l,provider:u,onFocus:C,onBlur:T,endContent:(0,m.jsx)(eC,{}),className:ej("input"),classNameContainer:"".concat(ej()," ").concat(S?ej("with-ai"):""),classNameClose:ej("close"),closeButton:!0,startContent:S?(0,m.jsx)(ex.K,{}):void 0,focusFirstSearchResult:!!S,onAiAction:S}),_&&(0,m.jsx)(e_.F,{open:g,query:w,projectId:_,onClose:j})]})}var eT=n(15395),eM=n(29794),eA=n(41790),eE=n(63192);function eL(e,t,n){return e.some(function(e){return e.type===n})||t.some(function(e){return e.type===n})}var eN={},eP={},eO=[],eI=[],eF=function(e,t,n,r,o){var a=e.toc,i=a.navigation||eN,c=i.header,s=void 0===c?eP:c,u=i.logo,l=s.leftItems,h=void 0===l?eO:l,v=s.rightItems,g=void 0===v?eI:v,b=eL(g,h,"controls"),w=eL(g,h,"search"),x=(0,p.useContext)(ea),_=(0,p.useContext)(k);x&&!w&&g.unshift({type:"search"});var S=(0,p.useMemo)(function(){return{withBorder:!0,leftItems:h,rightItems:g,customMobileHeaderItems:[{type:"search"}]}},[h,g]),j=(0,p.useMemo)(function(){return{toc:a,router:_,headerHeight:64}},[a,_]),C=(0,p.useMemo)(function(){return{controlSize:y.Uv.L,userSettings:t,viewerInterface:o}},[t,o]),T=(0,p.useMemo)(function(){var e;return eN===i?void 0:{header:{leftItems:[]},renderNavigation:function(){var e;return(0,m.jsx)(eT.A,{logo:(0,f._)((0,d._)({},u),{icon:null!=(e=null==u?void 0:u.icon)?e:""}),data:S,navigationTocData:j,mobileControlsData:C})},logo:(0,f._)((0,d._)({},u),{icon:null!=(e=null==u?void 0:u.icon)?e:""})}},[S,j,C,u,i]);return(0,p.useMemo)(function(){return{custom:{search:r,controls:n,MobileDropdown:eM.A,label:eA.J,dropdown:eE.g},layout:T,withControls:b}},[r,n,T,b])},eR=(0,p.createContext)(null),ez=eR.Provider,eH=n(30970),eB=(0,G.default)("Layout");function eU(){return null}function eq(){return null}function eW(){return null}var eV={doc:!1},e$=function(e){var t,n,r,o=(0,d._)({},eV,e),a=o.children,i=o.doc,c=o.headerHeight;return p.Children.forEach(a,function(e){if((0,p.isValidElement)(e))switch(e.type){case eU:t=e.props.children;break;case eq:n=e.props.children;break;case eW:r=e.props.children}}),(0,m.jsxs)("div",{className:eB({"full-header":(void 0===c?0:c)>0}),children:[t&&(0,m.jsx)("div",{className:eB("header"),children:t}),(0,m.jsxs)("div",{className:eB("body"),children:[n&&(0,m.jsx)("div",{className:eB("content"),children:n}),r&&(0,m.jsx)("div",{className:eB("footer",{doc:i}),children:r})]})]})};e$.displayName="Layout",e$.Header=eU,e$.Content=eq,e$.Footer=eW;var eD=(0,G.default)("pc-page-constructor"),eK=(0,G.default)("pc-constructor-row"),eZ=function(e){var t=e.children;return t?(0,m.jsx)(eg.fI1,{className:eK(),children:(0,m.jsx)(eg.fvL,{children:t})}):null};function eJ(e){var t=e.background,n=e.blocks,r=(0,eg.DPo)(),o=(0,eg.dgY)(t,r);return(0,m.jsx)("div",{className:eD("docs"),children:(0,m.jsxs)("div",{className:eD("wrapper"),children:[n&&o&&(0,m.jsx)(eg.bGR,(0,f._)((0,d._)({},o),{className:eD("background")})),(0,m.jsx)(eg.xA9,{children:(0,m.jsx)(eZ,{children:(0,m.jsx)(eg.FA7,{items:n})})})]})})}var eG=function(){var e=function(){var e=(0,p.useContext)(eR);if(!e)throw Error("usePageContext must be used within PageProvider");return e}(),t=e.data,n=e.props,r=e.hasLayout,o=(0,E.M5)(t),a=(0,E.$T)(o),i=n.fullScreen||!r?0:64,c=(0,d._)({},t,n),s=t.toc.navigation,u=null==s?void 0:s.footer;return(0,m.jsxs)(e$,{headerHeight:i,children:[(0,m.jsx)(e$.Content,{children:(0,m.jsx)(a,(0,f._)((0,d._)({},c),{children:(0,m.jsx)(eJ,(0,d._)({},t.data))}))}),u&&!n.fullScreen&&(0,m.jsx)(e$.Footer,{children:(0,m.jsx)(eH.P,(0,d._)({},u))})]},"layout")};function eQ(e){var t=e.data,n=e.props,r=e.controls,o=n.theme,a=n.fullScreen,i=(0,el.s)(),c=eF(t,r,ep,ek),s=eb(t,eG),u=(0,p.useMemo)(function(){var e,t;return c.withControls?(t=["theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","langs","onChangeLang"],Object.keys(e=r).reduce(function(n,r){return t.includes(r)||(n[r]=e[r]),n},{})):r},[c.withControls,r]),l=(0,p.useMemo)(function(){return i?{sendEvents:function(e){e.forEach(function(e){var t=e.name,n=e.counters,r=(0,eu._)(e,["name","counters"]);i.track(t,r,{includeKeys:null==n?void 0:n.include,excludeKeys:null==n?void 0:n.exclude})})}}:void 0},[i]),f=(0,p.useMemo)(function(){return{navigation:c.custom,blocks:s.custom}},[c,s]),h=!!c.layout,v=(0,p.useMemo)(function(){return{data:t,props:(0,d._)({},n,u),hasLayout:h}},[t,h,u,n]);return(0,m.jsx)(ez,{value:v,children:(0,m.jsx)(eg.ZzZ,{theme:o,projectSettings:{disableCompress:!0},ssrConfig:{isServer:!0},analytics:l,children:(0,m.jsx)(eg.i$,{custom:f,content:s.layout,navigation:a?void 0:c.layout})})})}var eY=n(58498),eX=n(89457),e0=n(57016),e1=n(81397),e4=n(59071);function e9(){var e=(0,g.useTheme)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(e0.v,{}),(0,m.jsx)(eX.l,{}),(0,m.jsx)(eY.A,{theme:e===y.Sx.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}),(0,m.jsx)(e1.TabsRuntime,{saveTabsToLocalStorage:!0,saveTabsToQueryStateMode:"page"}),(0,m.jsx)(e4.UQ,{theme:e})]})}function e2(e,t){return t.some(function(t){return"string"==typeof t?t===e:t.lang===e})}var e5=n(34236),e7=function(e){var t=e.components,n=e.pureComponents;return function(e){return function(r){var o=r.forwardRef,a=r.mdxArtifacts,i=r.html,c=(0,p.useRef)(null);c.current=null;var s=(0,p.useCallback)(function(e){return c.current=e,o(e)},[o]),u=(0,e5.A)({refCtr:c,components:t,pureComponents:n,mdxArtifacts:a,html:i});return(0,m.jsxs)(p.Fragment,{children:[(0,m.jsx)(e,(0,f._)((0,d._)({},r),{forwardRef:s})),u]})}}},e8=(o=function(e){var t,r,o,a,i,c,s,u,l,h,v,k,M,L,N,P,O,R,B,V=e.data,K=e.router,G=e.lang,Q=e.langs,Y=e.search,X=e.analytics,ee=e.feedback,et=e.viewerInterface,en=e.neuroExpert,er=(r=J("theme",t=U()),o=J("textSize",t),a=J("wideFormat",t),i=J("fullScreen",t),c=J("showMiniToc",t),(0,p.useMemo)(function(){return(0,d._)({},r,o,a,c,i)},[r,o,a,c,i])),eo=(s=e.lang,u=e.langs,l=(0,p.useCallback)(function(e,t){var n=t||{},r=n.tld,o=n.href;if(o){window.location.href=o;return}var a=window.location.href;r?window.location.replace($(e,a.replace(/([a-zA-Z0-9-]+\.[a-zA-Z0-9-]+)(?=[/:?#]|$)/,function(e){var t=e.lastIndexOf(".");return -1===t?e:e.slice(0,t+1)+r}))):window.location.replace($(e,a))},[]),(0,p.useMemo)(function(){return{lang:s,langs:u,onChangeLang:l}},[s,u,l])),ea=(v=(h=(0,Z._)((0,p.useState)(W()),2))[0],k=h[1],M=(0,p.useCallback)(function(){k(W())},[]),(0,p.useEffect)(M,[M]),(0,p.useEffect)(function(){return window.addEventListener("resize",M),function(){return window.removeEventListener("resize",M)}},[M]),v),ec=(0,p.useMemo)(function(){if(!("meta"in V))return[];var e=V.meta,t=e.canonical,n=e.alternate;if(!t)return[];var r=new Set,o=(0,Z._)(t.split("/"),1)[0];e2(o,Q)&&r.add(o);var a=!0,i=!1,c=void 0;try{for(var s,u=(void 0===n?[]:n)[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var l=s.value.href;if(!(!l||(0,E.ZR)(l))){var d=(0,Z._)(l.split("/"),1)[0];e2(d,Q)&&r.add(d)}}}catch(e){i=!0,c=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw c}}return Array.from(r)},[V,Q]),eu=b.Lq.includes(G)?G:y.JA.En;(0,w.jK)({lang:eu,localeCode:eu});var el=(0,p.useMemo)(function(){var e=[],t=n.g&&"getMdxInitProps"in n.g&&n.g.getMdxInitProps;return"function"==typeof t&&e.push(e7(t({dependencies:{react:p}}))),e},[]),ed=er.theme,ef=er.textSize,eh=er.wideFormat,em=er.fullScreen,ep=er.showMiniToc,eg=(N=(L={feedbackUrl:null==ee?void 0:ee.url,router:K,viewerInterface:et}).feedbackUrl,P=L.router,O=L.viewerInterface,R=(0,p.useCallback)(function(e){N&&fetch(N,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify((0,f._)((0,d._)({},e),{page:P.pathname,timestamp:new Date().toISOString()}))}).catch(function(e){console.error("Failed to send feedback:",e)})},[N,P.pathname]),B=(null==O?void 0:O.feedback)!==!1,N&&B?R:void 0),eb=(0,p.useMemo)(function(){return{router:K,theme:ed,textSize:ef,wideFormat:eh,fullScreen:em,showMiniToc:ep,isMobile:ea}},[K,ed,ef,eh,em,ep,ea]),ey=(0,p.useMemo)(function(){return(0,f._)((0,d._)({},er,eo),{mobileView:ea,availableLangs:ec,onSendFeedback:eg})},[eo,er,ea,ec,eg]),ew=I.includes(G)?F.RTL:F.LTR,ex=q(V);return(0,p.useEffect)(function(){H({mobileView:ea,wideFormat:eh,fullScreen:em,landingPage:ex}),z({theme:ed}),D(),"u">typeof window&&window.patchAfterRender&&window.patchAfterRender()},[ed,ea,eh,em,ex,G]),(0,p.useEffect)(function(){return globalThis.addEventListener("hashchange",D),function(){return globalThis.removeEventListener("hashchange",D)}},[]),(0,m.jsx)("div",{className:"App",children:(0,m.jsx)(g.ThemeProvider,{theme:ed,direction:ew,children:(0,m.jsx)(A,{value:G,children:(0,m.jsx)(T,{value:K,children:(0,m.jsx)(ei,{value:Y,children:(0,m.jsx)(es,{value:en,children:(0,m.jsxs)(x.p,{interface:et||{},children:[(0,m.jsx)(_.W.Provider,{value:el,children:(0,m.jsx)(ev,{value:ey,children:(0,m.jsx)(eQ,{data:V,props:eb,controls:ey})})}),(null==X?void 0:X.gtm)&&(0,m.jsx)(S.A,{router:K,gtmId:X.gtm.id,consentMode:X.gtm.mode}),(0,m.jsx)(j.A,{}),(0,m.jsx)(e9,{}),(0,m.jsx)(C.Z,{})]})})})})})})})},function(e){var t=e.analyticsService,n=(0,eu._)(e,["analyticsService"]);return t?(0,m.jsx)(el.y,{value:t,children:(0,m.jsx)(o,(0,d._)({},n))}):(0,m.jsx)(o,(0,d._)({},n))}),e3=document.getElementById("root"),e6=window.__DATA__;if(!e3)throw Error("Root element not found!");if(!(e6&&(void 0===e6?"undefined":(0,h._)(e6))==="object"&&null!==e6&&"data"in e6))throw Error("Invalid data format for App component");var te=(i=(a=function(e){var t={metrika:[]};if(!e||(void 0===e?"undefined":(0,h._)(e))!=="object")return t;if("gtm"in e&&e.gtm&&"object"===(0,h._)(e.gtm)&&"string"==typeof e.gtm.id&&(t.gtm={id:e.gtm.id,mode:"notification"===e.gtm.mode?"notification":"base"}),"metrika"in e&&Array.isArray(e.metrika)){var n=!0,r=!1,o=void 0;try{for(var a,i=e.metrika[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;c&&(void 0===c?"undefined":(0,h._)(c))==="object"&&c.id&&t.metrika.push({id:c.id,params:c.params||{}})}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}return t}(e6.analytics)).metrika.map(function(e){return new L.W(e)}),{analyticsConfig:a,analyticsService:new N.j({adapters:i})}),tt=te.analyticsConfig,tn=te.analyticsService;tn.init(),s=(c=U()).theme,u=c.wideFormat,l=c.fullScreen,H({mobileView:W(),wideFormat:u,fullScreen:l,landingPage:q(e6.data)}),z({theme:s});var tr=(0,m.jsx)(e8,(0,f._)((0,d._)({},e6),{analytics:tt,analyticsService:tn}));window.STATIC_CONTENT?(0,v.hydrateRoot)(e3,tr):(0,v.createRoot)(e3).render(tr)},66008(){var e,t;"u">typeof Element&&((t=(e=Element.prototype).matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector)?e.matches=e.matchesSelector=t:e.matches=e.matchesSelector=function(e){var t=this;return Array.prototype.some.call(document.querySelectorAll(e),function(e){return e===t})})},98010(e,t,n){"use strict";function r(){}n.d(t,{A:()=>r})},14892(){},4320(){},3038(){},91190(){},7155(){},54318(){}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},l=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var n=Object.create(null);s.r(n);var r={};u=u||[null,l({}),l([]),l(l)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~u.indexOf(o);o=l(o))Object.getOwnPropertyNames(o).forEach(t=>{r[t]=()=>e[t]});return r.default=()=>e,s.d(n,r),n},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.k=e=>""+e+"-e43658c1c6d9f673.css",s.u=e=>""+e+"-"+({189:"5cb382a08b27d506",976:"40cbc1d2518eb8ea"})[e]+".js",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d={},s.l=function(e,t,n,r){if(d[e])return void d[e].push(t);if(void 0!==n)for(var o,a,i=document.getElementsByTagName("script"),c=0;c<i.length;c++){var u=i[c];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@diplodoc/client:"+n){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@diplodoc/client:"+n),o.src=e),d[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=d[e];if(delete d[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),a&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),f=[],s.O=(e,t,n,r)=>{if(t){r=r||0;for(var o=f.length;o>0&&f[o-1][2]>r;o--)f[o]=f[o-1];f[o]=[t,n,r];return}for(var a=1/0,o=0;o<f.length;o++){for(var[t,n,r]=f[o],i=!0,c=0;c<t.length;c++)(!1&r||a>=r)&&Object.keys(s.O).every(e=>s.O[e](t[c]))?t.splice(c--,1):(i=!1,r<a&&(a=r));if(i){f.splice(o--,1);var u=n();void 0!==u&&(e=u)}}return e},s.rv=()=>"1.7.4",s.j="509",s.g.importScripts&&(h=s.g.location+"");var u,l,d,f,h,m=s.g.document;if(!h&&m&&(m.currentScript&&"SCRIPT"===m.currentScript.tagName.toUpperCase()&&(h=m.currentScript.src),!h)){var v=m.getElementsByTagName("script");if(v.length)for(var p=v.length-1;p>-1&&(!h||!/^http(s?):/.test(h));)h=v[p--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");s.p=h=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={474:0,509:0},n="data-rspack-loading",(t=(t,n)=>{e[n]=0})(s.m,0,"474"),t(s.m,0,"509"),s.f.css=(r,o,a)=>{var i=s.o(e,r)?e[r]:void 0;if(0!==i)if(i)o.push(i[2]);else if(/^(189|85)$/.test(r))e[r]=0;else{var c=new Promise(function(t,n){i=e[r]=[t,n]});o.push(i[2]=c);var u=s.p+s.k(r),l=Error(),d=function(n){if(s.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i))if("load"!==n.type){var o=n&&n.type,a=n&&n.target&&n.target.src;l.message="Loading css chunk "+r+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,i[1](l)}else t(s.m,r),i[0]()};"u">typeof document?((e,t,r,o,a)=>{var i,c,u="chunk-"+e;if(!o){for(var l=document.getElementsByTagName("link"),d=0;d<l.length;d++){var f=l[d],h=f.getAttribute("href")||f.href;if(h&&!h.startsWith(s.p)&&(h=s.p+(h.startsWith("/")?h.slice(1):h)),"stylesheet"==f.rel&&(h&&h.startsWith(t)||f.getAttribute("data-rspack")=="@diplodoc/client:"+u)){i=f;break}}if(!r)return}i||(c=!0,i=document.createElement("link"),s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-rspack","@diplodoc/client:"+u),i.setAttribute(n,1),i.rel="stylesheet",i.href=t);var m=(e,t)=>{if(i.onerror=i.onload=null,i.removeAttribute(n),clearTimeout(v),t&&"load"!=t.type&&i.parentNode.removeChild(i),r(t),e)return e(t)};if(i.getAttribute(n)){var v=setTimeout(m.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=m.bind(null,i.onerror),i.onload=m.bind(null,i.onload)}else m(void 0,{type:"load",target:i});return o&&o.getAttribute("fetchpriority")&&i.setAttribute("fetchpriority",o.getAttribute("fetchpriority")),o?document.head.insertBefore(i,o):c&&document.head.appendChild(i)})(r,u,d,void 0,0):d({type:"load"})}},s.b=document.baseURI||self.location.href,r={509:0},s.f.j=function(e,t){var n=s.o(r,e)?r[e]:void 0;if(0!==n)if(n)t.push(n[2]);else if(572!=e){var o=new Promise((t,o)=>n=r[e]=[t,o]);t.push(n[2]=o);var a=s.p+s.u(e),i=Error();s.l(a,function(t){if(s.o(r,e)&&(0!==(n=r[e])&&(r[e]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+e,e)}else r[e]=0},s.O.j=e=>0===r[e],o=(e,t)=>{var n,o,[a,i,c]=t,u=0;if(a.some(e=>0!==r[e])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);if(c)var l=c(s)}for(e&&e(t);u<a.length;u++)o=a[u],s.o(r,o)&&r[o]&&r[o][0](),r[o]=0;return s.O(l)},(a=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[]).forEach(o.bind(null,0)),a.push=o.bind(null,a.push.bind(a)),s.ruid="bundler=rspack@1.7.4";var g=s.O(void 0,["85","474"],()=>s(37917));g=s.O(g)})();
2
+ //# sourceMappingURL=app-3235acdfaf832d3c.js.map