1"use strict";(self.webpackChunkdocs_app=self.webpackChunkdocs_app||[]).push([[185],{4185:(e,r,t)=>{t.r(r),t.d(r,{default:()=>E});const o="dt7948";var i={};Object.defineProperty(i,"__esModule",{value:!0});var s=i.ImportUtil=void 0;function n(e,r,t){if(e){let r=e.replace(/[^a-zA-Z_]([a-z])/g,((e,r)=>r.toUpperCase()));return r=r.replace(/[^a-zA-Z_]/g,""),r}return"default"===r||"*"===r?null!=t?t:"a":r}function a(e){return(null==e?void 0:e.isIdentifier())?e.node.name:e?e.scope.generateUidIdentifierBasedOnNode(e.node).name:void 0}function l(e,r){switch(r){case"default":return e.isImportDefaultSpecifier();case"*":return e.isImportNamespaceSpecifier();default:return e.isImportSpecifier()&&("StringLiteral"===(t=e.node.imported).type?t.value:t.name)===r}var t}function c(e,r){return e.isImportDeclaration()&&e.get("source").node.value===r}s=i.ImportUtil=class{constructor(e,r){this.babel=e,this.program=r,this.t=e.types}removeImport(e,r){for(let t of this.program.get("body")){if(!c(t,e))continue;let o=t.get("specifiers").find((e=>l(e,r)));o&&(1===t.node.specifiers.length?t.remove():o.remove())}}removeAllImports(e){for(let r of this.program.get("body"))c(r,e)&&r.remove()}import(e,r,t,o){return this.unreferencedImport(e,r,t,n(o,t,a(e)))}unreferencedImport(e,r,t,o){var i;let s="*"===t,n=!("default"===t||s),a=this.findImportFrom(r),c=null==a?void 0:a.node.specifiers.find((e=>"ImportNamespaceSpecifier"===e.type));if(!((null==a?void 0:a.node.specifiers.find((e=>"ImportSpecifier"===e.type)))&&s||c&&n||c&&s)&&a){let r=a.get("specifiers").find((e=>l(e,t)));return r&&"module"===(null===(i=e.scope.getBinding(r.node.local.name))||void 0===i?void 0:i.kind)?this.t.identifier(r.node.local.name):this.addSpecifier(e,a,t,o)}{let i=this.insertAfterExistingImports(this.t.importDeclaration([],this.t.stringLiteral(r)));return this.addSpecifier(e,i,t,o)}}importForSideEffect(e){this.findImportFrom(e)||this.insertAfterExistingImports(this.t.importDeclaration([],this.t.stringLiteral(e)))}replaceWith(e,r){return this.mutate((t=>(e.replaceWith(r(t)),e)),a(e))}insertAfter(e,r){return this.mutate((t=>e.insertAfter(r(t))[0]),a(e))}insertBefore(e,r){return this.mutate((t=>e.insertBefore(r(t))[0]),a(e))}mutate(e,r){let t=new Map;const o=e=>{if(!e.isIdentifier())return;let o=t.get(e.node);
1if(o){let t=this.unreferencedImport(e,o.moduleSpecifier,o.exportedName,n(o.nameHint,o.exportedName,r));e.replaceWith(t);let i=e.scope.getBinding(t.name);if(!i)throw new Error("bug: this is supposed to never happen");i.reference(e)}};let i=e({import:(e,r,o)=>{let i=this.t.identifier("__babel_import_util_placeholder__");return t.set(i,{moduleSpecifier:e,exportedName:r,nameHint:o}),i}});return o(i),this.babel.traverse(i.node,{ReferencedIdentifier:e=>{o(e)}},i.scope,{},i),i}addSpecifier(e,r,t,o){let i,s=this.t.identifier(function(e,r){let t=r,o=0;for(;e.scope.hasBinding(t);)t=`${r}${o++}`;return t}(e,o)),n=this.buildSpecifier(t,s);return"ImportDefaultSpecifier"===n.type?(r.node.specifiers.unshift(n),i=r.get("specifiers.0")):(r.node.specifiers.push(n),i=r.get("specifiers."+(r.node.specifiers.length-1))),r.scope.registerBinding("module",i),s}buildSpecifier(e,r){switch(e){case"default":return this.t.importDefaultSpecifier(r);case"*":return this.t.importNamespaceSpecifier(r);default:return this.t.importSpecifier(r,this.t.identifier(e))}}findImportFrom(e){for(let r of this.program.get("body"))if(r.isImportDeclaration()&&r.node.source.value===e&&"type"!==r.node.importKind)return r}insertAfterExistingImports(e){let r;for(let[e,t]of this.program.node.body.entries())"ImportDeclaration"===t.type&&(r=e);return null==r?(this.program.node.body.unshift(e),this.program.get("body.0")):(this.program.node.body.splice(r+1,0,e),this.program.get(`body.${r+1}`))}};var p={},d={};Object.defineProperty(d,"__esModule",{value:!0}),d.declare=f,d.declarePreset=void 0;const u={assertVersion:e=>r=>{!function(e,r){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const t=Error.stackTraceLimit;let o;throw"number"==typeof t&&t<25&&(Error.stackTraceLimit=25),o="7."===r.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${r}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${r}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),"number"==typeof t&&(Error.stackTraceLimit=t),Object.assign(o,{code:"BABEL_VERSION_UNSUPPORTED",version:r,range:e})}(r,e.version)}};function f(e){return(r,t,o)=>{var i;let s;for(const e of Object.keys(u))r[e]||(null!=s||(s=m(r)),s[e]=u[e](s));return e(null!=(i=s)?i:r,t||{},o)}}Object.assign(u,{targets:()=>()=>({}),assumption:()=>()=>{}});const h=f;function m(e){let r=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(r=Object.getPrototypeOf(e),!r||g(r,"version")&&g(r,"transform")&&g(r,"template")&&g(r,"types")||(r=null)),Object.assign({},r,e)}function g(e,r){return Object.prototype.hasOwnProperty.call(e,r)}d.declarePreset=h,Object.defineProperty(p,"__esModule",{value:!0});var y=p.default=void 0,b=d;function v(e){const r=e.types;return{Program(t,i){i.currentClassBodies=[],i.currentObjectExpressions=[],i.optsWithDefaults={runtime:"globals",runEarly:!1,...i.opts},i.util=new s(e,t),i.runtime=(e,t)=>{const{runtime:s}=i.optsWithDefaults;return"globals"===s?r.memberExpression(r.identifier(o),r.identifier(t)):e.import(s.import,t)}},ClassBody:{enter(e,r){r.currentClassBodies.unshift(e.node)},exit(e,r){r.currentClassBodies[0]===e.node&&r.currentClassBodies.shift()}},ClassExpression(e,t){let o=e.get("decorators");Array.isArray(o)&&o.length>0&&t.util.replaceWith(e,(i=>{let s=r.callExpression(t.runtime(i,"c"),[e.node,r.arrayExpression(o.slice().reverse().map((e=>e.node.expression)))]);for(let e of o)e.remove();return s}))},ClassDeclaration(e,t){let o=e.get("decorators");if(Array.isArray(o)&&o.length>0){const i=i=>r.callExpression(t.runtime(i,"c"),[r.classExpression(e.node.id,e.node.superClass,e.node.body,[]),r.arrayExpression(o.slice().reverse().map((e=>e.node.expression)))]);if(e.parentPath.isExportDefaultDeclaration()){let o=e.node.id;o?(t.util.insertBefore(e.parentPath,(e=>
1r.variableDeclaration("const",[r.variableDeclarator(o,i(e))]))),e.parentPath.replaceWith(r.exportDefaultDeclaration(o))):t.util.replaceWith(e.parentPath,(e=>r.exportDefaultDeclaration(i(e))))}else if(e.parentPath.isExportNamedDeclaration()){let o=e.node.id;if(!o)throw new Error("bug: expected a class name is required in this context");t.util.insertBefore(e.parentPath,(e=>r.variableDeclaration("const",[r.variableDeclarator(o,i(e))]))),e.parentPath.replaceWith(r.exportNamedDeclaration(null,[r.exportSpecifier(o,o)]))}else{let o=e.node.id;if(!o)throw new Error("bug: expected a class name is required in this context");t.util.replaceWith(e,(e=>r.variableDeclaration("const",[r.variableDeclarator(o,i(e))])))}}},ClassProperty(e,t){let o=e.get("decorators");if(Array.isArray(o)&&o.length>0){let i;i=e.node.static?r.thisExpression():r.memberExpression(r.thisExpression(),r.identifier("prototype"));let s=[i,x(r,e.node.key),r.arrayExpression(o.slice().reverse().map((e=>e.node.expression)))];e.node.value&&s.push(r.functionExpression(null,[],r.blockStatement([r.returnStatement
1(e.node.value)]))),t.util.insertBefore(e,(e=>r.staticBlock([r.expressionStatement(r.callExpression(t.runtime(e,"g"),s))]))),t.util.insertBefore(e,(o=>{return r.classPrivateProperty(r.privateName(r.identifier(function(e,r){let t=e.currentClassBodies[0];if(!t)throw new Error("bug: no current class body around our class field decorator");let o=new Set;for(let e of t.body)"ClassPrivateProperty"!==e.type&&"ClassPrivateMethod"!==e.type&&"ClassAccessorProperty"!==e.type||"PrivateName"!==e.key.type||o.add(e.key.id.name);let i=r;for(;o.has(i);)i+="_";return i}(t,"Identifier"===(i=e.node.key).type?i.name:"BigIntLiteral"===i.type||"NumericLiteral"===i.type?`_${i.value}`:"StringLiteral"===i.type?"_"+i.value.replace(/[^a-zA-Z]/g,""):"_"))),r.sequenceExpression([r.callExpression(t.runtime(o,"i"),[r.thisExpression(),x(r,e.node.key)]),r.identifier("void 0")]));var i})),e.remove()}},ClassMethod(e,t){let o=e.get("decorators");if(Array.isArray(o)&&o.length>0){let i;i=e.node.static?r.thisExpression():r.memberExpression(r.thisExpression(),r.identifier("prototype")),t.util.insertAfter(e,(s=>r.staticBlock([r.expressionStatement(r.callExpression(t.runtime(s,"n"),[i,x(r,e.node.key),r.arrayExpression(o.slice().reverse().map((e=>e.node.expression)))]))])));for(let e of o)e.remove()}},ObjectExpression:{enter(e,r){r.currentObjectExpressions.unshift({node:e.node,decorated:[]})},exit(e,t){var o;if((null==(o=t.currentObjectExpressions[0])?void 0:o.node)!==e.node)return;let{decorated:i}=t.currentObjectExpressions.shift();i.length>0&&t.util.replaceWith(e,(o=>r.callExpression(t.runtime(o,"p"),[e.node,r.arrayExpression(i.map((([e,t,o])=>r.arrayExpression([r.stringLiteral(e),t,r.arrayExpression(o)]))))])))}},ObjectProperty(e,t){let o=e.get("decorators");if(Array.isArray(o)&&o.length>0){if(0===t.currentObjectExpressions.length)throw new Error("bug in decorator-transforms: didn't expect to see ObjectProperty outside ObjectExpression");let i=e.node.key;if("PrivateName"===i.type)throw new Error("cannot decorate private field");t.currentObjectExpressions[0].decorated.push(["field",x(r,i),o.slice().reverse().map((e=>e.node.expression))]);for(let e of o)e.remove()}},ObjectMethod(e,t){let o=e.get("decorators");if(Array.isArray(o)&&o.length>0){if(0===t.currentObjectExpressions.length)throw new Error("bug in decorator-transforms: didn't expect to see ObjectMethod outside ObjectExpression");let i=e.node.key;t.currentObjectExpressions[0].decorated.push(["method",x(r,i),o.slice().reverse().map((e=>e.node.expression))]);for(let e of o)e.remove()}}}}function E(e){let r=v(e);return{inherits:(e,r,t)=>y(e,{legacy:!0},t),pre(t){this.opts.runEarly&&(e.traverse(t.ast,v(e),t.scope,this),r=void 0)},get visitor(){return r??{}}}}function x(e,r){return"Identifier"===r.type?e.stringLiteral(r.name):r}y=p.default=(0,b.declare)(((e,r)=>{e.assertVersion(7);let{version:t}=r;{const{legacy:e}=r;if(void 0!==e){if("boolean"!=typeof e)throw new Error(".legacy must be a boolean.");if(void 0!==t)throw new Error("You can either use the .legacy or the .version option, not both.")}if(void 0===t)t=e?"legacy":"2018-09";else if("2023-05"!==t&&"2023-01"!==t&&"2022-03"!==t&&"2021-12"!==t&&"2018-09"!==t&&"legacy"!==t)throw new Error("Unsupported decorators version: "+t);var{decoratorsBeforeExport:o}=r;if(void 0===o){if("2021-12"===t||"2022-03"===t)o=!1;else if("2018-09"===t)throw new Error("The decorators plugin, when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean.")}else{if("legacy"===t||"2022-03"===t||"2023-01"===t)throw new Error(`'decoratorsBeforeExport' can't be used with ${t} decorators.`);if("boolean"!=typeof o)throw new Error("'decoratorsBeforeExport' must be a boolean.")}}return{name:"syntax-decorators",manipulateOptions({generatorOpts:e},r){"legacy"===t?r.plugins.push("decorators-legacy"):"2023-01"===t||"2023-05"===t?r.plugins.push(["decorators",{allowCallParenthesized:!1}],"decoratorAutoAccessors"):"2022-03"===t?r.plugins.push(["decorators",{decoratorsBeforeExport:!1,allowCallParenthesized:!1}],"decoratorAutoAccessors"):"2021-12"===t?(r.plugins.push(["decorators",{decoratorsBeforeExport:o}],"decoratorAutoAccessors"),e.decoratorsBeforeExport=o):"2018-09"===t&&(r.plugins.push(["decorators",{decoratorsBeforeExport:o}]),e.decoratorsBeforeExport=o)}}}))}}]); 2//# sourceMappingURL=chunk.2e15a369e0bee044a0cd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.