[{"data":1,"prerenderedAt":952},["ShallowReactive",2],{"msfe-doc:\u002Fguide\u002Fselection":3,"msfe-source:recipes\u002Fintent.ts":358,"mdc--y5fzrg-key":359},{"id":4,"title":5,"body":6,"description":343,"extension":344,"keywords":345,"locale":350,"meta":351,"navigation":74,"order":352,"path":353,"section":354,"seo":355,"stem":356,"__hash__":357},"docs\u002Fguide\u002Fselection.zh-CN.md","选区与异步目标",{"type":7,"value":8,"toc":336},"minimark",[9,13,22,40,134,155,159,242,245,249,259,263,274,277,299,308,312,319,332],[10,11,12],"h2",{"id":12},"坐标属于源码",[14,15,16,17,21],"p",{},"MSFE 使用 CodeMirror 逻辑文本的 UTF-16 偏移和左闭右开范围 ",[18,19,20],"code",{},"[from, to)","。视觉预览没有独立坐标；一张图或一个任务按钮仍对应同一段源码。Emoji 可能占两个 UTF-16 单元，不能用字符数或 DOM 文本偏移替代。",[14,23,24,27,28,31,32,35,36,39],{},[18,25,26],{},"getMarkdown()"," 可能恢复文件换行策略；计算编辑偏移时使用 ",[18,29,30],{},"editor.state.doc"," 的逻辑文本，不要对带 CRLF 的保存结果按字节计数。",[18,33,34],{},"selection.main.from\u002Fto"," 是排序后的范围，",[18,37,38],{},"anchor\u002Fhead"," 保留选择方向。",[41,42,47],"pre",{"className":43,"code":44,"language":45,"meta":46,"style":46},"language-ts shiki shiki-themes github-light github-light github-dark","import { EditorSelection } from '@quirekit\u002Fcm-state'\n\neditor.setSelection(EditorSelection.single(10, 18))\neditor.scrollTo(10)\neditor.focus()\n","ts","",[18,48,49,69,76,108,123],{"__ignoreMap":46},[50,51,54,58,62,65],"span",{"class":52,"line":53},"line",1,[50,55,57],{"class":56},"sDD9d","import",[50,59,61],{"class":60},"sVPnS"," { EditorSelection } ",[50,63,64],{"class":56},"from",[50,66,68],{"class":67},"s-HEn"," '@quirekit\u002Fcm-state'\n",[50,70,72],{"class":52,"line":71},2,[50,73,75],{"emptyLinePlaceholder":74},true,"\n",[50,77,79,82,86,89,92,95,99,102,105],{"class":52,"line":78},3,[50,80,81],{"class":60},"editor.",[50,83,85],{"class":84},"sgQzM","setSelection",[50,87,88],{"class":60},"(EditorSelection.",[50,90,91],{"class":84},"single",[50,93,94],{"class":60},"(",[50,96,98],{"class":97},"sUNQB","10",[50,100,101],{"class":60},", ",[50,103,104],{"class":97},"18",[50,106,107],{"class":60},"))\n",[50,109,111,113,116,118,120],{"class":52,"line":110},4,[50,112,81],{"class":60},[50,114,115],{"class":84},"scrollTo",[50,117,94],{"class":60},[50,119,98],{"class":97},[50,121,122],{"class":60},")\n",[50,124,126,128,131],{"class":52,"line":125},5,[50,127,81],{"class":60},[50,129,130],{"class":84},"focus",[50,132,133],{"class":60},"()\n",[14,135,136,139,140,142,143,146,147,150,151,154],{},[18,137,138],{},"EditorSelection.cursor()"," 返回单个范围；",[18,141,85],{}," 接受完整 ",[18,144,145],{},"EditorSelection","，用 ",[18,148,149],{},"single()"," 或 ",[18,152,153],{},"create()"," 包装。多选区命令应明确支持全部范围还是拒绝；不能悄悄只改第一处。",[10,156,158],{"id":157},"短暂菜单捕获精确目标","短暂菜单：捕获精确目标",[41,160,162],{"className":43,"code":161,"language":45,"meta":46,"style":46},"const target = editor.captureTarget()\n\u002F\u002F The host displays a menu; source may change before the user confirms.\nconst applied = editor.chain(target).insertText('approved').run()\nif (!applied) console.warn(editor.lastCommandResult)\n",[18,163,164,183,189,222],{"__ignoreMap":46},[50,165,166,169,172,175,178,181],{"class":52,"line":53},[50,167,168],{"class":56},"const",[50,170,171],{"class":97}," target",[50,173,174],{"class":56}," =",[50,176,177],{"class":60}," editor.",[50,179,180],{"class":84},"captureTarget",[50,182,133],{"class":60},[50,184,185],{"class":52,"line":71},[50,186,188],{"class":187},"sqmzS","\u002F\u002F The host displays a menu; source may change before the user confirms.\n",[50,190,191,193,196,198,200,203,206,209,211,214,217,220],{"class":52,"line":78},[50,192,168],{"class":56},[50,194,195],{"class":97}," applied",[50,197,174],{"class":56},[50,199,177],{"class":60},[50,201,202],{"class":84},"chain",[50,204,205],{"class":60},"(target).",[50,207,208],{"class":84},"insertText",[50,210,94],{"class":60},[50,212,213],{"class":67},"'approved'",[50,215,216],{"class":60},").",[50,218,219],{"class":84},"run",[50,221,133],{"class":60},[50,223,224,227,230,233,236,239],{"class":52,"line":110},[50,225,226],{"class":56},"if",[50,228,229],{"class":60}," (",[50,231,232],{"class":56},"!",[50,234,235],{"class":60},"applied) console.",[50,237,238],{"class":84},"warn",[50,240,241],{"class":60},"(editor.lastCommandResult)\n",[14,243,244],{},"目标包含实例、文档、版本和有方向选区。任何源码版本变化都可能使它过期；失败时不能移除 target 后盲目重试，否则会修改新的选区。",[10,246,248],{"id":247},"等待对话框映射原始范围","等待对话框：映射原始范围",[14,250,251,254,255,258],{},[18,252,253],{},"captureAnchor()"," 可跨无关编辑映射位置，同时验证原范围的文本仍未改变。以下完整函数适合资源选择、异步文本选择等流程；宿主对话框必须尊重 ",[18,256,257],{},"AbortSignal","。",[260,261],"msfe-recipe",{"name":262},"recipes\u002Fintent",[14,264,265,266,269,270,273],{},"捕获范围文本已变化、被删除、换文档或已释放时，不再生成有效目标。即使业务复用同一个 ",[18,267,268],{},"documentId","，换文档也会结束旧锚点。返回 ",[18,271,272],{},"false"," 后可以提示用户重新选择，不能强制使用旧偏移。",[10,275,276],{"id":276},"范围映射策略",[14,278,279,280,283,284,287,288,290,291,294,295,298],{},"默认 ",[18,281,282],{},"inclusiveStart"," \u002F ",[18,285,286],{},"inclusiveEnd"," 为 ",[18,289,272],{},"：恰好插在边界的文本不并入原范围。",[18,292,293],{},"onDelete: 'drop'"," 会丢弃完整删除的范围；",[18,296,297],{},"keep"," 可将元数据位置保留为点。选择取决于批注、装饰或插入意图的语义，不能套用同一种策略。",[14,300,301,304,305,307],{},[18,302,303],{},"SourceRangeSet"," 适合较多的范围元数据；单个异步用户意图优先用 ",[18,306,253],{},"，无需自行维护整套位置映射。",[10,309,311],{"id":310},"与源码显露搜索和只读协作","与源码显露、搜索和只读协作",[14,313,314,315,318],{},"原生选区进入普通替换投影时会显露源码；图表的“编辑源码”动作只需设置正确的源码选区。需要完全由控件消费的原子折叠使用专门状态和 ",[18,316,317],{},"interaction: 'atomic'","，不能借此永久遮挡可搜索内容。",[14,320,321,322,327,328,258],{},"只读仍可选中和复制。最终写入仍由命令检查权限；捕获锚点并不授予写权限。相关签名见 ",[323,324,326],"a",{"href":325},"\u002Fapi\u002Fcommands","命令 API"," 与 ",[323,329,331],{"href":330},"\u002Fapi\u002Frendering","渲染 API",[333,334,335],"style",{},"html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sqmzS, html code.shiki .sqmzS{--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D}",{"title":46,"searchDepth":71,"depth":71,"links":337},[338,339,340,341,342],{"id":12,"depth":71,"text":12},{"id":157,"depth":71,"text":158},{"id":247,"depth":71,"text":248},{"id":276,"depth":71,"text":276},{"id":310,"depth":71,"text":311},"使用逻辑源码坐标，防止弹窗、上传和异步操作写到过期位置。","md",[180,346,347,348,349],"captureAnchor","UTF-16","selection","stale-target","zh-CN",{},7,"\u002Fguide\u002Fselection","接入指南",{"title":5,"description":343},"guide\u002Fselection.zh-CN","6Z6QTgIc855yDoMkEwtH8xR_NNkCLN1_-wnCafGXMZ0","import type { MsfeEditor } from \"@quirekit\u002Fmsfe-core\";\n\u002F** @param editor - Current document. @param choose - Host dialog, observing cancellation. @returns Whether a still-current range was updated. *\u002F\nexport async function replaceSelectionFromDialog(editor: MsfeEditor, choose: (signal: AbortSignal) => Promise\u003Cstring | null>): Promise\u003Cboolean> {\n  const range = editor.state.selection.main;\n  const scope = editor.documentScope.fork();\n  const anchor = editor.captureAnchor({ from: range.from, to: range.to });\n  scope.own(() => anchor.release());\n  try {\n    const value = await choose(scope.signal);\n    if (scope.disposed || value === null) return false;\n    const target = anchor.target();\n    \u002F\u002F Unrelated edits may move the interval; changes to its own text invalidate it.\n    return target ? editor.chain(target).insertText(value).run() : false;\n  } finally { scope.dispose(); }\n}\n",{"data":360,"body":361},{},{"type":362,"children":363},"root",[364,947],{"type":365,"tag":41,"props":366,"children":368},"element",{"className":43,"code":367,"language":45,"meta":46,"style":46},"import type { MsfeEditor } from \"@quirekit\u002Fmsfe-core\";\n\u002F** @param editor - Current document. @param choose - Host dialog, observing cancellation. @returns Whether a still-current range was updated. *\u002F\nexport async function replaceSelectionFromDialog(editor: MsfeEditor, choose: (signal: AbortSignal) => Promise\u003Cstring | null>): Promise\u003Cboolean> {\n  const range = editor.state.selection.main;\n  const scope = editor.documentScope.fork();\n  const anchor = editor.captureAnchor({ from: range.from, to: range.to });\n  scope.own(() => anchor.release());\n  try {\n    const value = await choose(scope.signal);\n    if (scope.disposed || value === null) return false;\n    const target = anchor.target();\n    \u002F\u002F Unrelated edits may move the interval; changes to its own text invalidate it.\n    return target ? editor.chain(target).insertText(value).run() : false;\n  } finally { scope.dispose(); }\n}\n\n",[369],{"type":365,"tag":18,"props":370,"children":371},{"__ignoreMap":46},[372,407,455,593,615,646,676,713,727,759,810,839,848,909,938],{"type":365,"tag":50,"props":373,"children":374},{"class":52,"line":53},[375,381,386,392,396,402],{"type":365,"tag":50,"props":376,"children":378},{"style":377},"--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583",[379],{"type":380,"value":57},"text",{"type":365,"tag":50,"props":382,"children":383},{"style":377},[384],{"type":380,"value":385}," type",{"type":365,"tag":50,"props":387,"children":389},{"style":388},"--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8",[390],{"type":380,"value":391}," { MsfeEditor } ",{"type":365,"tag":50,"props":393,"children":394},{"style":377},[395],{"type":380,"value":64},{"type":365,"tag":50,"props":397,"children":399},{"style":398},"--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF",[400],{"type":380,"value":401}," \"@quirekit\u002Fmsfe-core\"",{"type":365,"tag":50,"props":403,"children":404},{"style":388},[405],{"type":380,"value":406},";\n",{"type":365,"tag":50,"props":408,"children":409},{"class":52,"line":71},[410,416,421,426,431,435,440,445,450],{"type":365,"tag":50,"props":411,"children":413},{"style":412},"--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D",[414],{"type":380,"value":415},"\u002F** ",{"type":365,"tag":50,"props":417,"children":418},{"style":377},[419],{"type":380,"value":420},"@param",{"type":365,"tag":50,"props":422,"children":423},{"style":388},[424],{"type":380,"value":425}," editor",{"type":365,"tag":50,"props":427,"children":428},{"style":412},[429],{"type":380,"value":430}," - Current document. ",{"type":365,"tag":50,"props":432,"children":433},{"style":377},[434],{"type":380,"value":420},{"type":365,"tag":50,"props":436,"children":437},{"style":388},[438],{"type":380,"value":439}," choose",{"type":365,"tag":50,"props":441,"children":442},{"style":412},[443],{"type":380,"value":444}," - Host dialog, observing cancellation. ",{"type":365,"tag":50,"props":446,"children":447},{"style":377},[448],{"type":380,"value":449},"@returns",{"type":365,"tag":50,"props":451,"children":452},{"style":412},[453],{"type":380,"value":454}," Whether a still-current range was updated. *\u002F\n",{"type":365,"tag":50,"props":456,"children":457},{"class":52,"line":78},[458,463,468,473,479,483,489,494,499,503,508,512,516,521,525,530,535,540,545,550,556,561,566,571,575,579,583,588],{"type":365,"tag":50,"props":459,"children":460},{"style":377},[461],{"type":380,"value":462},"export",{"type":365,"tag":50,"props":464,"children":465},{"style":377},[466],{"type":380,"value":467}," async",{"type":365,"tag":50,"props":469,"children":470},{"style":377},[471],{"type":380,"value":472}," function",{"type":365,"tag":50,"props":474,"children":476},{"style":475},"--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0",[477],{"type":380,"value":478}," replaceSelectionFromDialog",{"type":365,"tag":50,"props":480,"children":481},{"style":388},[482],{"type":380,"value":94},{"type":365,"tag":50,"props":484,"children":486},{"style":485},"--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70",[487],{"type":380,"value":488},"editor",{"type":365,"tag":50,"props":490,"children":491},{"style":377},[492],{"type":380,"value":493},":",{"type":365,"tag":50,"props":495,"children":496},{"style":475},[497],{"type":380,"value":498}," MsfeEditor",{"type":365,"tag":50,"props":500,"children":501},{"style":388},[502],{"type":380,"value":101},{"type":365,"tag":50,"props":504,"children":505},{"style":475},[506],{"type":380,"value":507},"choose",{"type":365,"tag":50,"props":509,"children":510},{"style":377},[511],{"type":380,"value":493},{"type":365,"tag":50,"props":513,"children":514},{"style":388},[515],{"type":380,"value":229},{"type":365,"tag":50,"props":517,"children":518},{"style":485},[519],{"type":380,"value":520},"signal",{"type":365,"tag":50,"props":522,"children":523},{"style":377},[524],{"type":380,"value":493},{"type":365,"tag":50,"props":526,"children":527},{"style":475},[528],{"type":380,"value":529}," AbortSignal",{"type":365,"tag":50,"props":531,"children":532},{"style":388},[533],{"type":380,"value":534},") ",{"type":365,"tag":50,"props":536,"children":537},{"style":377},[538],{"type":380,"value":539},"=>",{"type":365,"tag":50,"props":541,"children":542},{"style":475},[543],{"type":380,"value":544}," Promise",{"type":365,"tag":50,"props":546,"children":547},{"style":388},[548],{"type":380,"value":549},"\u003C",{"type":365,"tag":50,"props":551,"children":553},{"style":552},"--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF",[554],{"type":380,"value":555},"string",{"type":365,"tag":50,"props":557,"children":558},{"style":377},[559],{"type":380,"value":560}," |",{"type":365,"tag":50,"props":562,"children":563},{"style":552},[564],{"type":380,"value":565}," null",{"type":365,"tag":50,"props":567,"children":568},{"style":388},[569],{"type":380,"value":570},">)",{"type":365,"tag":50,"props":572,"children":573},{"style":377},[574],{"type":380,"value":493},{"type":365,"tag":50,"props":576,"children":577},{"style":475},[578],{"type":380,"value":544},{"type":365,"tag":50,"props":580,"children":581},{"style":388},[582],{"type":380,"value":549},{"type":365,"tag":50,"props":584,"children":585},{"style":552},[586],{"type":380,"value":587},"boolean",{"type":365,"tag":50,"props":589,"children":590},{"style":388},[591],{"type":380,"value":592},"> {\n",{"type":365,"tag":50,"props":594,"children":595},{"class":52,"line":110},[596,601,606,610],{"type":365,"tag":50,"props":597,"children":598},{"style":377},[599],{"type":380,"value":600},"  const",{"type":365,"tag":50,"props":602,"children":603},{"style":552},[604],{"type":380,"value":605}," range",{"type":365,"tag":50,"props":607,"children":608},{"style":377},[609],{"type":380,"value":174},{"type":365,"tag":50,"props":611,"children":612},{"style":388},[613],{"type":380,"value":614}," editor.state.selection.main;\n",{"type":365,"tag":50,"props":616,"children":617},{"class":52,"line":125},[618,622,627,631,636,641],{"type":365,"tag":50,"props":619,"children":620},{"style":377},[621],{"type":380,"value":600},{"type":365,"tag":50,"props":623,"children":624},{"style":552},[625],{"type":380,"value":626}," scope",{"type":365,"tag":50,"props":628,"children":629},{"style":377},[630],{"type":380,"value":174},{"type":365,"tag":50,"props":632,"children":633},{"style":388},[634],{"type":380,"value":635}," editor.documentScope.",{"type":365,"tag":50,"props":637,"children":638},{"style":475},[639],{"type":380,"value":640},"fork",{"type":365,"tag":50,"props":642,"children":643},{"style":388},[644],{"type":380,"value":645},"();\n",{"type":365,"tag":50,"props":647,"children":649},{"class":52,"line":648},6,[650,654,659,663,667,671],{"type":365,"tag":50,"props":651,"children":652},{"style":377},[653],{"type":380,"value":600},{"type":365,"tag":50,"props":655,"children":656},{"style":552},[657],{"type":380,"value":658}," anchor",{"type":365,"tag":50,"props":660,"children":661},{"style":377},[662],{"type":380,"value":174},{"type":365,"tag":50,"props":664,"children":665},{"style":388},[666],{"type":380,"value":177},{"type":365,"tag":50,"props":668,"children":669},{"style":475},[670],{"type":380,"value":346},{"type":365,"tag":50,"props":672,"children":673},{"style":388},[674],{"type":380,"value":675},"({ from: range.from, to: range.to });\n",{"type":365,"tag":50,"props":677,"children":678},{"class":52,"line":352},[679,684,689,694,698,703,708],{"type":365,"tag":50,"props":680,"children":681},{"style":388},[682],{"type":380,"value":683},"  scope.",{"type":365,"tag":50,"props":685,"children":686},{"style":475},[687],{"type":380,"value":688},"own",{"type":365,"tag":50,"props":690,"children":691},{"style":388},[692],{"type":380,"value":693},"(() ",{"type":365,"tag":50,"props":695,"children":696},{"style":377},[697],{"type":380,"value":539},{"type":365,"tag":50,"props":699,"children":700},{"style":388},[701],{"type":380,"value":702}," anchor.",{"type":365,"tag":50,"props":704,"children":705},{"style":475},[706],{"type":380,"value":707},"release",{"type":365,"tag":50,"props":709,"children":710},{"style":388},[711],{"type":380,"value":712},"());\n",{"type":365,"tag":50,"props":714,"children":716},{"class":52,"line":715},8,[717,722],{"type":365,"tag":50,"props":718,"children":719},{"style":377},[720],{"type":380,"value":721},"  try",{"type":365,"tag":50,"props":723,"children":724},{"style":388},[725],{"type":380,"value":726}," {\n",{"type":365,"tag":50,"props":728,"children":730},{"class":52,"line":729},9,[731,736,741,745,750,754],{"type":365,"tag":50,"props":732,"children":733},{"style":377},[734],{"type":380,"value":735},"    const",{"type":365,"tag":50,"props":737,"children":738},{"style":552},[739],{"type":380,"value":740}," value",{"type":365,"tag":50,"props":742,"children":743},{"style":377},[744],{"type":380,"value":174},{"type":365,"tag":50,"props":746,"children":747},{"style":377},[748],{"type":380,"value":749}," await",{"type":365,"tag":50,"props":751,"children":752},{"style":475},[753],{"type":380,"value":439},{"type":365,"tag":50,"props":755,"children":756},{"style":388},[757],{"type":380,"value":758},"(scope.signal);\n",{"type":365,"tag":50,"props":760,"children":762},{"class":52,"line":761},10,[763,768,773,778,783,788,792,796,801,806],{"type":365,"tag":50,"props":764,"children":765},{"style":377},[766],{"type":380,"value":767},"    if",{"type":365,"tag":50,"props":769,"children":770},{"style":388},[771],{"type":380,"value":772}," (scope.disposed ",{"type":365,"tag":50,"props":774,"children":775},{"style":377},[776],{"type":380,"value":777},"||",{"type":365,"tag":50,"props":779,"children":780},{"style":388},[781],{"type":380,"value":782}," value ",{"type":365,"tag":50,"props":784,"children":785},{"style":377},[786],{"type":380,"value":787},"===",{"type":365,"tag":50,"props":789,"children":790},{"style":552},[791],{"type":380,"value":565},{"type":365,"tag":50,"props":793,"children":794},{"style":388},[795],{"type":380,"value":534},{"type":365,"tag":50,"props":797,"children":798},{"style":377},[799],{"type":380,"value":800},"return",{"type":365,"tag":50,"props":802,"children":803},{"style":552},[804],{"type":380,"value":805}," false",{"type":365,"tag":50,"props":807,"children":808},{"style":388},[809],{"type":380,"value":406},{"type":365,"tag":50,"props":811,"children":813},{"class":52,"line":812},11,[814,818,822,826,830,835],{"type":365,"tag":50,"props":815,"children":816},{"style":377},[817],{"type":380,"value":735},{"type":365,"tag":50,"props":819,"children":820},{"style":552},[821],{"type":380,"value":171},{"type":365,"tag":50,"props":823,"children":824},{"style":377},[825],{"type":380,"value":174},{"type":365,"tag":50,"props":827,"children":828},{"style":388},[829],{"type":380,"value":702},{"type":365,"tag":50,"props":831,"children":832},{"style":475},[833],{"type":380,"value":834},"target",{"type":365,"tag":50,"props":836,"children":837},{"style":388},[838],{"type":380,"value":645},{"type":365,"tag":50,"props":840,"children":842},{"class":52,"line":841},12,[843],{"type":365,"tag":50,"props":844,"children":845},{"style":412},[846],{"type":380,"value":847},"    \u002F\u002F Unrelated edits may move the interval; changes to its own text invalidate it.\n",{"type":365,"tag":50,"props":849,"children":851},{"class":52,"line":850},13,[852,857,862,867,871,875,879,883,888,892,897,901,905],{"type":365,"tag":50,"props":853,"children":854},{"style":377},[855],{"type":380,"value":856},"    return",{"type":365,"tag":50,"props":858,"children":859},{"style":388},[860],{"type":380,"value":861}," target ",{"type":365,"tag":50,"props":863,"children":864},{"style":377},[865],{"type":380,"value":866},"?",{"type":365,"tag":50,"props":868,"children":869},{"style":388},[870],{"type":380,"value":177},{"type":365,"tag":50,"props":872,"children":873},{"style":475},[874],{"type":380,"value":202},{"type":365,"tag":50,"props":876,"children":877},{"style":388},[878],{"type":380,"value":205},{"type":365,"tag":50,"props":880,"children":881},{"style":475},[882],{"type":380,"value":208},{"type":365,"tag":50,"props":884,"children":885},{"style":388},[886],{"type":380,"value":887},"(value).",{"type":365,"tag":50,"props":889,"children":890},{"style":475},[891],{"type":380,"value":219},{"type":365,"tag":50,"props":893,"children":894},{"style":388},[895],{"type":380,"value":896},"() ",{"type":365,"tag":50,"props":898,"children":899},{"style":377},[900],{"type":380,"value":493},{"type":365,"tag":50,"props":902,"children":903},{"style":552},[904],{"type":380,"value":805},{"type":365,"tag":50,"props":906,"children":907},{"style":388},[908],{"type":380,"value":406},{"type":365,"tag":50,"props":910,"children":912},{"class":52,"line":911},14,[913,918,923,928,933],{"type":365,"tag":50,"props":914,"children":915},{"style":388},[916],{"type":380,"value":917},"  } ",{"type":365,"tag":50,"props":919,"children":920},{"style":377},[921],{"type":380,"value":922},"finally",{"type":365,"tag":50,"props":924,"children":925},{"style":388},[926],{"type":380,"value":927}," { scope.",{"type":365,"tag":50,"props":929,"children":930},{"style":475},[931],{"type":380,"value":932},"dispose",{"type":365,"tag":50,"props":934,"children":935},{"style":388},[936],{"type":380,"value":937},"(); }\n",{"type":365,"tag":50,"props":939,"children":941},{"class":52,"line":940},15,[942],{"type":365,"tag":50,"props":943,"children":944},{"style":388},[945],{"type":380,"value":946},"}\n",{"type":365,"tag":333,"props":948,"children":949},{},[950],{"type":380,"value":951},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",1793046311418]