@aceshooting/lyra-ui 30.4.0 → 30.7.0
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.
- package/CHANGELOG.md +92 -0
- package/README.md +2 -3
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -4
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.js +5 -5
- package/dist/components/conversation/code-block/onig.provenance.json +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.d.ts +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +11 -1
- package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
- package/dist/components/conversation/markdown/markdown-shared.d.ts +7 -2
- package/dist/components/conversation/markdown/markdown-shared.js +3 -3
- package/dist/components/conversation/markdown/markdown.class.d.ts +11 -1
- package/dist/components/conversation/markdown/markdown.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +8 -1
- package/dist/components/conversation/model-select/model-select.class.js +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +5 -0
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -0
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +6 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +9 -2
- package/dist/components/conversation/voice-picker/voice-picker.class.js +2 -2
- package/dist/components/conversation/widget-renderer/default-registry.js +1 -1
- package/dist/components/conversation/widget-renderer/registry.d.ts +1 -27
- package/dist/components/conversation/widget-renderer/registry.js +1 -1
- package/dist/components/conversation/widget-renderer/resolve.d.ts +1 -29
- package/dist/components/conversation/widget-renderer/resolve.js +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.js +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +3 -1
- package/dist/components/forms/catalog-picker-base.js +3 -3
- package/dist/components/forms/combobox/combobox.class.d.ts +9 -2
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.class.d.ts +9 -2
- package/dist/components/forms/date-picker/date-input.class.js +2 -2
- package/dist/components/forms/input/input-shared.d.ts +9 -2
- package/dist/components/forms/input/input-shared.js +2 -2
- package/dist/components/forms/input/time-input.class.d.ts +9 -2
- package/dist/components/forms/input/time-input.class.js +2 -2
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +18 -3
- package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
- package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -2
- package/dist/components/forms/phone-input/phone-input.class.js +2 -2
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/select/select.class.d.ts +9 -2
- package/dist/components/forms/select/select.class.js +2 -2
- package/dist/components/forms/textarea/textarea.class.d.ts +9 -2
- package/dist/components/forms/textarea/textarea.class.js +2 -2
- package/dist/components/forms/token-input/token-input.class.d.ts +9 -2
- package/dist/components/forms/token-input/token-input.class.js +2 -2
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +5 -2
- package/dist/components/layout/dock-panel/dock-panel.styles.js +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +7 -4
- package/dist/components/layout/menu/menu-item.class.js +3 -2
- package/dist/components/layout/multi-split/multi-split.class.d.ts +73 -6
- package/dist/components/layout/multi-split/multi-split.class.js +4 -4
- package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +7 -0
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/media/flag/language-map.js +1 -1
- package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +1 -5
- package/dist/components/media/image-viewer/image-viewer-panorama.js +1 -8
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +1 -1
- package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
- package/dist/components/media/map/map-control-options.d.ts +19 -5
- package/dist/components/media/map/map-control-options.js +1 -1
- package/dist/components/media/map/map-controls-lifecycle.js +1 -1
- package/dist/components/media/map/map-feature-loader.js +1 -1
- package/dist/components/media/map/map-loader.d.ts +10 -4
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map-scene-admission.js +1 -0
- package/dist/components/media/map/map-scene-completion-adapter.js +1 -0
- package/dist/components/media/map/map-scene-completion-camera.js +1 -0
- package/dist/components/media/map/map-scene-configuration-controller.js +1 -0
- package/dist/components/media/map/map-scene-configuration.d.ts +15 -0
- package/dist/components/media/map/map-scene-configuration.js +1 -0
- package/dist/components/media/map/map-scene-controls.js +1 -0
- package/dist/components/media/map/map-scene-errors.js +1 -0
- package/dist/components/media/map/map-scene-line-layer.js +1 -0
- package/dist/components/media/map/map-scene-lines.js +1 -0
- package/dist/components/media/map/map-scene-owner.js +1 -0
- package/dist/components/media/map/map-scene-position-registry.js +1 -0
- package/dist/components/media/map/map-scene-render-controller.js +1 -0
- package/dist/components/media/map/map-scene-render-input.js +1 -0
- package/dist/components/media/map/map-scene-source-snapshot.js +1 -0
- package/dist/components/media/map/map-scene-status.js +1 -0
- package/dist/components/media/map/map-scene-types.d.ts +55 -0
- package/dist/components/media/map/map.class.d.ts +105 -18
- package/dist/components/media/map/map.class.js +32 -15
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.js +1 -1
- package/dist/components/media/video/video.class.d.ts +1 -1
- package/dist/components/media/video/video.class.js +1 -1
- package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -1
- package/dist/components/retrieval/graph/graph-curvature.js +1 -0
- package/dist/components/retrieval/graph/graph-engine-columns.js +1 -1
- package/dist/components/retrieval/graph/graph-model.d.ts +4 -0
- package/dist/components/retrieval/graph/graph-node-renderer.d.ts +13 -0
- package/dist/components/retrieval/graph/graph-node-renderer.js +1 -0
- package/dist/components/retrieval/graph/graph-source-controller.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +3 -1
- package/dist/components/retrieval/graph/graph-spatial.js +1 -1
- package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -1
- package/dist/components/retrieval/graph/graph.class.d.ts +11 -3
- package/dist/components/retrieval/graph/graph.class.js +4 -4
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +8 -2
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +4 -2
- package/dist/events.d.ts +41 -1
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/collection-policy.js +1 -0
- package/dist/internal/collection-snapshot.js +1 -1
- package/dist/internal/default-strings/media.generated.js +1 -1
- package/dist/internal/default-strings/retrieval.generated.js +1 -1
- package/dist/internal/engine-3d-loader.d.ts +8 -2
- package/dist/internal/engine-3d-loader.js +1 -1
- package/dist/internal/form-control.styles.js +1 -1
- package/dist/internal/locale-loaders.generated.js +1 -1
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/map-camera-follow-controller.d.ts +9 -0
- package/dist/internal/map-camera-follow-controller.js +1 -0
- package/dist/internal/map-camera-follow-data.js +1 -0
- package/dist/internal/map-camera-follow-scene.js +1 -0
- package/dist/internal/map-camera-session-controller.d.ts +59 -0
- package/dist/internal/map-camera-session-controller.js +1 -0
- package/dist/internal/map-camera-session-data.d.ts +16 -0
- package/dist/internal/map-camera-session-data.js +1 -0
- package/dist/internal/map-camera-session.js +1 -0
- package/dist/internal/map-scene-session.js +1 -0
- package/dist/internal/media-panorama.d.ts +5 -0
- package/dist/internal/media-panorama.js +8 -0
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/sequence-playback-binding.js +1 -0
- package/dist/internal/typed-columns.d.ts +3 -1
- package/dist/internal/typed-columns.js +1 -1
- package/dist/internal/variants.d.ts +7 -0
- package/dist/internal/widget-default-registry.js +1 -0
- package/dist/internal/widget-document.d.ts +29 -0
- package/dist/internal/widget-document.js +1 -0
- package/dist/internal/widget-type-registry.d.ts +27 -0
- package/dist/internal/widget-type-registry.js +1 -0
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/map-camera-session.d.ts +10 -0
- package/dist/map-camera-session.js +1 -0
- package/dist/sequence-time-binding.d.ts +3 -0
- package/dist/sequence-time-binding.js +1 -0
- package/dist/simulation-clock.d.ts +3 -0
- package/dist/simulation-clock.js +1 -0
- package/dist/time-index.d.ts +3 -0
- package/dist/time-index.js +1 -0
- package/llms/components/lr-artifact-panel.md +8 -3
- package/llms/components/lr-combobox.md +2 -0
- package/llms/components/lr-country-picker.md +2 -0
- package/llms/components/lr-currency-picker.md +2 -0
- package/llms/components/lr-date-picker.md +2 -0
- package/llms/components/lr-dock-panel.md +5 -2
- package/llms/components/lr-graph.md +121 -3
- package/llms/components/lr-input.md +2 -0
- package/llms/components/lr-knowledge-graph-explorer.md +6 -1
- package/llms/components/lr-locale-picker.md +8 -1
- package/llms/components/lr-map.md +365 -13
- package/llms/components/lr-markdown-core.md +2 -1
- package/llms/components/lr-markdown.md +12 -1
- package/llms/components/lr-menu.md +5 -2
- package/llms/components/lr-model-select.md +2 -0
- package/llms/components/lr-multi-split.md +53 -4
- package/llms/components/lr-native-time-input.md +2 -0
- package/llms/components/lr-number-input.md +2 -0
- package/llms/components/lr-page.md +9 -1
- package/llms/components/lr-phone-input.md +2 -0
- package/llms/components/lr-select.md +2 -0
- package/llms/components/lr-sequence-playback.md +44 -0
- package/llms/components/lr-streaming-text-core.md +3 -2
- package/llms/components/lr-streaming-text.md +4 -1
- package/llms/components/lr-suggestion-chips.md +6 -2
- package/llms/components/lr-textarea.md +2 -0
- package/llms/components/lr-time-input.md +2 -0
- package/llms/components/lr-time-zone-picker.md +2 -0
- package/llms/components/lr-token-input.md +2 -0
- package/llms/components/lr-unit-picker.md +2 -0
- package/llms/components/lr-voice-picker.md +2 -0
- package/llms/peers.md +7 -7
- package/llms/shared/imports-and-registration.md +1 -1
- package/llms/shared/localization-and-rtl.md +15 -1
- package/llms/shared/testing-and-utilities.md +184 -0
- package/llms/shared.md +200 -2
- package/locales.json +1 -1
- package/package.json +39 -23
- package/registrations.json +1 -1
- package/skills/lyra-ui/lyra-gen.md +18 -0
- /package/dist/{components/media/image-viewer/image-viewer-panorama.styles.js → internal/media-panorama.styles.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const PUBLIC_COLLECTION_ENTRY_LIMIT=1e4;export{PUBLIC_COLLECTION_ENTRY_LIMIT};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{LitElement}from"lit";import{MISSING_OWN_DATA_DESCRIPTOR,UNSAFE_OWN_DATA_DESCRIPTOR,getOwnDataDescriptor,isPlainDataRecord as isRealmNeutralPlainRecord,readOwnArrayLength}from"./data-descriptors.js";import{devWarnOnce}from"./dev-warning.js";const PUBLIC_COLLECTION_ENTRY_LIMIT=1e4,PUBLIC_COLLECTION_NODE_LIMIT=5e4,PUBLIC_COLLECTION_WORK_LIMIT=PUBLIC_COLLECTION_NODE_LIMIT*2,PUBLIC_COLLECTION_DEPTH_LIMIT=256,OMIT_COLLECTION_VALUE=Symbol("omit-public-collection-value"),EXHAUSTED_COLLECTION_VALUE=Symbol("exhausted-public-collection-value"),normalizedCollectionWrites=new WeakMap,readonlySnapshotWrappers=new WeakMap;function writeNormalizedOwnedCollection(host,property,write){let active=normalizedCollectionWrites.get(host);active||normalizedCollectionWrites.set(host,active=new Set);const alreadyActive=active.has(property);active.add(property);try{write()}finally{alreadyActive||active.delete(property),active.size===0&&normalizedCollectionWrites.delete(host)}}function isCollectionSnapshotFailure(value){return value===OMIT_COLLECTION_VALUE||value===EXHAUSTED_COLLECTION_VALUE}function boundedSnapshotLimit(value,maximum){return typeof value=="number"&&Number.isSafeInteger(value)&&value>0?Math.min(value,maximum):maximum}function recordRootLoss(budget,kept,source,retained){retained<source&&(budget.rootLoss=Object.freeze({kept,retained,source}),budget.truncated=!0)}function consumeSnapshotWork(budget){return budget.remainingWork<=0?!1:(budget.remainingWork-=1,!0)}function snapshotRealm(view){const candidate=view;return{Array:candidate?.Array??Array,Date:candidate?.Date??Date,Map:candidate?.Map??Map,Object:candidate?.Object??Object,Set:candidate?.Set??Set}}function isArrayValue(value){try{return Array.isArray(value)}catch{return!1}}function isNativeArrayBufferView(value){return ArrayBuffer.isView(value)}function isImmutableBlob(value){if(typeof Blob>"u")return!1;const sizeGetter=Object.getOwnPropertyDescriptor(Blob.prototype,"size")?.get;if(!sizeGetter)return!1;try{return sizeGetter.call(value),!0}catch{return!1}}const MUTATING_DATE_METHODS=new Set(["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear"]);function nativeDateTime(value){const wrapper=readonlySnapshotWrappers.get(value);if(wrapper?.kind==="date")return wrapper.time;try{return Date.prototype.getTime.call(value)}catch{return OMIT_COLLECTION_VALUE}}function snapshotReadonlyDate(source,time,budget){const target=new budget.realm.Date(time),boundMethods=new Map,rejectMutation=()=>{throw new TypeError("Cannot mutate a readonly Date snapshot")},snapshot=new Proxy(target,{get(date,key){if(MUTATING_DATE_METHODS.has(key))return rejectMutation;if(key==="constructor")return budget.realm.Date;const value=Reflect.get(date,key,date);if(typeof value!="function")return value;const cached=boundMethods.get(key);if(cached)return cached;const bound=value.bind(date);return boundMethods.set(key,bound),bound}});return readonlySnapshotWrappers.set(snapshot,{kind:"date",time}),rememberSnapshot(budget,source,snapshot),Object.freeze(snapshot)}function rememberSnapshot(budget,source,snapshot){budget.seen.set(source,snapshot),budget.additions.push(source)}function snapshotTransaction(budget,create){const remaining=budget.remaining,additions=budget.additions.length,result=create();if(!isCollectionSnapshotFailure(result))return result;budget.remaining=remaining;for(let index=budget.additions.length-1;index>=additions;index-=1)budget.seen.delete(budget.additions[index]);return budget.additions.length=additions,result}function emptyRealmArray(realm){return Object.freeze(new realm.Array)}function*ownEnumerableStringKeys(value){for(const key in value)yield key}function snapshotDataRecord(value,keys,prototype,budget,depth,preserveRecordKeys,preserveCollectionItemKeys){const output=budget.realm.Object.create(null);rememberSnapshot(budget,value,output);try{for(const key of keys){if(!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const descriptor=getOwnDataDescriptor(value,key);if(descriptor===MISSING_OWN_DATA_DESCRIPTOR||descriptor===UNSAFE_OWN_DATA_DESCRIPTOR||!descriptor.enumerable){descriptor===UNSAFE_OWN_DATA_DESCRIPTOR&&(budget.invalid=!0);continue}if(budget.remaining<=0)return EXHAUSTED_COLLECTION_VALUE;budget.remaining-=1;const disposition=budget.recordKey?.(key,descriptor.value,depth)??"copy";if(disposition==="omit"){budget.invalid=!0;continue}const entry=disposition==="preserve"||preserveRecordKeys?.has(key)?descriptor.value:preserveCollectionItemKeys?.has(key)?snapshotIdentityCollection(descriptor.value,budget.realm,budget):snapshotCollectionValue(descriptor.value,budget,depth+1,void 0,void 0,budget.nestedArrayPrefix&&isArrayValue(descriptor.value));if(isCollectionSnapshotFailure(entry))return entry===OMIT_COLLECTION_VALUE?budget.invalid=!0:budget.truncated=!0,entry;output[key]=entry}}catch{return OMIT_COLLECTION_VALUE}return Object.setPrototypeOf(output,prototype),Object.freeze(output)}function snapshotCollectionValue(value,budget,depth,preserveRecordKeys,preserveCollectionItemKeys,allowPrefixTruncation=!1){if(value===null||typeof value!="object"&&typeof value!="function"||typeof value=="function")return value;if(budget.seen.has(value))return budget.seen.get(value);if(depth>budget.depthLimit||budget.remaining<=0)return EXHAUSTED_COLLECTION_VALUE;if(isArrayValue(value)){if(!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const sourceLength=readOwnArrayLength(value);if(sourceLength===void 0)return budget.invalid=!0,allowPrefixTruncation?emptyRealmArray(budget.realm):OMIT_COLLECTION_VALUE;if(!allowPrefixTruncation&&sourceLength>budget.entryLimit)return EXHAUSTED_COLLECTION_VALUE;const length=Math.min(sourceLength,budget.entryLimit),newest=depth===0&&allowPrefixTruncation&&budget.retention==="newest",output=new budget.realm.Array;Object.setPrototypeOf(output,null),rememberSnapshot(budget,value,output);const kept=[];let walked=0,dropped=0;for(;walked<length;walked+=1){if(budget.remaining<=0||!consumeSnapshotWork(budget)){if(!allowPrefixTruncation)return EXHAUSTED_COLLECTION_VALUE;break}const index=newest?sourceLength-1-walked:walked,descriptor=getOwnDataDescriptor(value,String(index));if(descriptor===MISSING_OWN_DATA_DESCRIPTOR)continue;if(descriptor===UNSAFE_OWN_DATA_DESCRIPTOR){if(budget.invalid=!0,!allowPrefixTruncation)return OMIT_COLLECTION_VALUE;dropped+=1;continue}const entry=snapshotTransaction(budget,()=>(budget.remaining-=1,snapshotCollectionValue(descriptor.value,budget,depth+1,void 0,void 0,budget.nestedArrayPrefix&&isArrayValue(descriptor.value))));if(entry===OMIT_COLLECTION_VALUE){if(budget.invalid=!0,!allowPrefixTruncation)return OMIT_COLLECTION_VALUE;dropped+=1;continue}if(entry===EXHAUSTED_COLLECTION_VALUE){if(budget.truncated=!0,!allowPrefixTruncation)return EXHAUSTED_COLLECTION_VALUE;break}kept.push(index,entry)}output.length=walked;const offset=newest?sourceLength-walked:0;for(let index=0;index<kept.length;index+=2)output[kept[index]-offset]=kept[index+1];return Object.setPrototypeOf(output,budget.realm.Array.prototype),walked-dropped<sourceLength&&(budget.truncated=!0),allowPrefixTruncation&&depth===0&&recordRootLoss(budget,newest?"newest":"oldest",sourceLength,walked-dropped),Object.freeze(output)}if(!readonlySnapshotWrappers.has(value)&&isRealmNeutralPlainRecord(value)){let prototype;try{prototype=Object.getPrototypeOf(value)}catch{return OMIT_COLLECTION_VALUE}return snapshotDataRecord(value,ownEnumerableStringKeys(value),prototype===null?null:budget.realm.Object.prototype,budget,depth,preserveRecordKeys,preserveCollectionItemKeys)}const dateTime=nativeDateTime(value);if(dateTime!==OMIT_COLLECTION_VALUE)return snapshotReadonlyDate(value,dateTime,budget);const entries=nativeMapEntries(value);if(entries)return snapshotDetachedMap(value,entries,budget,depth,allowPrefixTruncation);const values=nativeSetValues(value);if(values)return snapshotDetachedSet(value,values,budget,depth,allowPrefixTruncation);if(isNativeArrayBufferView(value))return budget.invalid=!0,OMIT_COLLECTION_VALUE;const rect=snapshotDOMRect(value,budget);return rect!==OMIT_COLLECTION_VALUE?rect:isImmutableBlob(value)?value:(budget.invalid=!0,OMIT_COLLECTION_VALUE)}function boundedRecordSize(value,limit=PUBLIC_COLLECTION_WORK_LIMIT){let size=0;try{for(const key in value)if(typeof key=="string"&&(size+=1),size>=limit)break}catch{return}return size}function snapshotPublicCollection(value,view,options={}){if(value===null||typeof value!="object"&&typeof value!="function")return options.onResult?.(Object.freeze({invalid:!1,truncated:!1})),value;const realm=snapshotRealm(view),nodeLimit=boundedSnapshotLimit(options.limits?.nodes,PUBLIC_COLLECTION_NODE_LIMIT),budget={remaining:nodeLimit,remainingWork:nodeLimit*2,seen:new WeakMap,additions:[],realm,entryLimit:boundedSnapshotLimit(options.limits?.entries,PUBLIC_COLLECTION_ENTRY_LIMIT),depthLimit:boundedSnapshotLimit(options.limits?.depth,PUBLIC_COLLECTION_DEPTH_LIMIT),nestedArrayPrefix:options.nestedArrayPrefix??!1,recordKey:options.recordKey,invalid:!1,truncated:!1,retention:options.retain??"oldest"},snapshot=snapshotTransaction(budget,()=>snapshotCollectionValue(value,budget,0,void 0,void 0,!0));if(!isCollectionSnapshotFailure(snapshot))return budget.rootLoss&&options.onTruncate?.(budget.rootLoss),options.onResult?.(Object.freeze({invalid:budget.invalid,truncated:budget.truncated})),snapshot;if(options.onResult?.(Object.freeze({invalid:budget.invalid||snapshot===OMIT_COLLECTION_VALUE,truncated:budget.truncated||snapshot===EXHAUSTED_COLLECTION_VALUE})),isArrayValue(value)||isNativeArrayBufferView(value))return emptyRealmArray(realm);if(typeof value=="object"){if(nativeMapEntries(value))return readonlyMapFacade(new realm.Map,realm);if(nativeSetValues(value))return readonlySetFacade(new realm.Set,realm);if(isRealmNeutralPlainRecord(value)){const size=boundedRecordSize(value,nodeLimit*2);size&&options.onTruncate?.(Object.freeze({kept:"oldest",retained:0,source:size}));const prototype=Object.getPrototypeOf(value);return Object.freeze(realm.Object.create(prototype===null?null:realm.Object.prototype))}}return emptyRealmArray(realm)}function nativeMapEntries(value){const wrapper=readonlySnapshotWrappers.get(value);try{return Map.prototype.entries.call(wrapper?.kind==="map"?wrapper.backing:value)}catch{return}}function nativeSetValues(value){const wrapper=readonlySnapshotWrappers.get(value);try{return Set.prototype.values.call(wrapper?.kind==="set"?wrapper.backing:value)}catch{return}}function snapshotDOMRect(value,budget){if(typeof DOMRectReadOnly>"u")return OMIT_COLLECTION_VALUE;const nativePrototype=DOMRectReadOnly.prototype,output=budget.realm.Object.create(budget.realm.Object.prototype);for(const key of["x","y","width","height","top","right","bottom","left"]){let coordinate;try{const getter=Object.getOwnPropertyDescriptor(nativePrototype,key)?.get;if(!getter)return OMIT_COLLECTION_VALUE;coordinate=getter.call(value)}catch{return OMIT_COLLECTION_VALUE}if(typeof coordinate!="number"||!Number.isFinite(coordinate))return OMIT_COLLECTION_VALUE;Object.defineProperty(output,key,{value:coordinate,enumerable:!0,configurable:!1,writable:!1})}return Object.freeze(output)}function readonlyMapFacade(backing,realm=snapshotRealm()){let facade;return facade=realm.Object.create(realm.Object.prototype),Object.defineProperties(facade,{size:{enumerable:!0,get:()=>backing.size},entries:{value:()=>backing.entries()},get:{value:key=>backing.get(key)},has:{value:key=>backing.has(key)},keys:{value:()=>backing.keys()},values:{value:()=>backing.values()},forEach:{value:(callback,thisArg)=>backing.forEach((entry,key)=>callback.call(thisArg,entry,key,facade))},[Symbol.iterator]:{value:()=>backing[Symbol.iterator]()}}),readonlySnapshotWrappers.set(facade,{kind:"map",backing}),Object.freeze(facade)}function readonlySetFacade(backing,realm=snapshotRealm()){let facade;return facade=realm.Object.create(realm.Object.prototype),Object.defineProperties(facade,{size:{enumerable:!0,get:()=>backing.size},entries:{value:()=>backing.entries()},has:{value:entry=>backing.has(entry)},keys:{value:()=>backing.keys()},values:{value:()=>backing.values()},forEach:{value:(callback,thisArg)=>backing.forEach(entry=>callback.call(thisArg,entry,entry,facade))},[Symbol.iterator]:{value:()=>backing[Symbol.iterator]()}}),readonlySnapshotWrappers.set(facade,{kind:"set",backing}),Object.freeze(facade)}function snapshotIdentityMap(entries,realm=snapshotRealm(),budget,entryLimit=budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT){const backing=new realm.Map;for(let count=0;count<entryLimit;count+=1){const next=entries.next();if(next.done)break;if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;backing.set(next.value[0],next.value[1])}return readonlyMapFacade(backing,realm)}function snapshotIdentitySet(values,realm=snapshotRealm(),budget,entryLimit=budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT){const backing=new realm.Set;for(let count=0;count<entryLimit;count+=1){const next=values.next();if(next.done)break;if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;backing.add(next.value)}return readonlySetFacade(backing,realm)}function nativeCollectionSize(source,kind){const wrapper=readonlySnapshotWrappers.get(source);try{const size=Object.getOwnPropertyDescriptor(kind==="map"?Map.prototype:Set.prototype,"size")?.get?.call(wrapper?.kind===kind?wrapper.backing:source);return typeof size=="number"?size:void 0}catch{return}}function recordNativeCollectionLoss(budget,source,kind,retained){const size=nativeCollectionSize(source,kind);size!==void 0&&recordRootLoss(budget,"oldest",size,retained)}function snapshotDetachedMap(source,entries,budget,depth,allowPrefixTruncation){const backing=new budget.realm.Map,facade=readonlyMapFacade(backing,budget.realm);rememberSnapshot(budget,source,facade);const settle=()=>(allowPrefixTruncation?recordNativeCollectionLoss(budget,source,"map",backing.size):(nativeCollectionSize(source,"map")??0)>budget.entryLimit&&(budget.truncated=!0),facade);for(let count=0;count<budget.entryLimit;count+=1){let next;try{next=entries.next()}catch{break}if(next.done)break;if(budget.remaining<=0||!consumeSnapshotWork(budget))return allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;const pair=snapshotTransaction(budget,()=>{budget.remaining-=1;const key=snapshotCollectionValue(next.value[0],budget,depth+1);if(isCollectionSnapshotFailure(key))return key;const entry=snapshotCollectionValue(next.value[1],budget,depth+1);return isCollectionSnapshotFailure(entry)?entry:[key,entry]});if(pair===EXHAUSTED_COLLECTION_VALUE)return budget.truncated=!0,allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;pair===OMIT_COLLECTION_VALUE?budget.invalid=!0:backing.set(pair[0],pair[1])}return settle()}function snapshotDetachedSet(source,values,budget,depth,allowPrefixTruncation){const backing=new budget.realm.Set,facade=readonlySetFacade(backing,budget.realm);rememberSnapshot(budget,source,facade);const settle=()=>(allowPrefixTruncation?recordNativeCollectionLoss(budget,source,"set",backing.size):(nativeCollectionSize(source,"set")??0)>budget.entryLimit&&(budget.truncated=!0),facade);for(let count=0;count<budget.entryLimit;count+=1){let next;try{next=values.next()}catch{break}if(next.done)break;if(budget.remaining<=0||!consumeSnapshotWork(budget))return allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;const entry=snapshotTransaction(budget,()=>(budget.remaining-=1,snapshotCollectionValue(next.value,budget,depth+1)));if(entry===EXHAUSTED_COLLECTION_VALUE)return budget.truncated=!0,allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;entry===OMIT_COLLECTION_VALUE?budget.invalid=!0:backing.add(entry)}return settle()}function snapshotIdentityCollection(value,view,budget,root){const realm=snapshotRealm(view);if(budget&&value!==null&&(typeof value=="object"||typeof value=="function")&&budget.seen.has(value))return budget.seen.get(value);if(isArrayValue(value)){if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const sourceLength=readOwnArrayLength(value)??0,length=Math.min(sourceLength,boundedSnapshotLimit(root?.limits?.entries,PUBLIC_COLLECTION_ENTRY_LIMIT)),kept=root?.retain??"oldest",offset=kept==="newest"?sourceLength-length:0,output=new realm.Array(length);Object.setPrototypeOf(output,null),budget&&rememberSnapshot(budget,value,output);for(let index=0;index<length;index+=1){if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const descriptor=getOwnDataDescriptor(value,String(offset+index));descriptor===MISSING_OWN_DATA_DESCRIPTOR||descriptor===UNSAFE_OWN_DATA_DESCRIPTOR||(output[index]=descriptor.value)}return Object.setPrototypeOf(output,realm.Array.prototype),length<sourceLength&&root?.onTruncate?.(Object.freeze({kept,retained:length,source:sourceLength})),Object.freeze(output)}if(value===null||typeof value!="object")return value;const mapEntries=nativeMapEntries(value);if(mapEntries){const output=snapshotIdentityMap(mapEntries,realm,budget,boundedSnapshotLimit(root?.limits?.entries,budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT));return output===EXHAUSTED_COLLECTION_VALUE||(budget&&rememberSnapshot(budget,value,output),reportIdentityCollectionLoss(root,value,"map",output.size)),output}const setValues=nativeSetValues(value);if(setValues){const output=snapshotIdentitySet(setValues,realm,budget,boundedSnapshotLimit(root?.limits?.entries,budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT));return output===EXHAUSTED_COLLECTION_VALUE||(budget&&rememberSnapshot(budget,value,output),reportIdentityCollectionLoss(root,value,"set",output.size)),output}return emptyRealmArray(realm)}function reportIdentityCollectionLoss(root,source,kind,retained){if(!root?.onTruncate)return;const size=nativeCollectionSize(source,kind);size!==void 0&&retained<size&&root.onTruncate(Object.freeze({kept:"oldest",retained,source:size}))}function snapshotEventDetail(value,view,preserveRootKeys=new Set,preserveCollectionItemKeys=new Set){if(value==null)return value;const budget={remaining:PUBLIC_COLLECTION_NODE_LIMIT,remainingWork:PUBLIC_COLLECTION_WORK_LIMIT,seen:new WeakMap,additions:[],realm:snapshotRealm(view),entryLimit:PUBLIC_COLLECTION_ENTRY_LIMIT,depthLimit:PUBLIC_COLLECTION_DEPTH_LIMIT,nestedArrayPrefix:!1,invalid:!1,truncated:!1},snapshot=snapshotTransaction(budget,()=>snapshotCollectionValue(value,budget,0,preserveRootKeys,preserveCollectionItemKeys));return isCollectionSnapshotFailure(snapshot)?null:snapshot}function trustedLyraConstructorChain(instance){const constructors=[];let prototype=Object.getPrototypeOf(instance);for(;prototype&&prototype!==LitElement.prototype;){const descriptor=Object.getOwnPropertyDescriptor(prototype,"constructor");typeof descriptor?.value=="function"&&constructors.push(descriptor.value),prototype=Object.getPrototypeOf(prototype)}return constructors}function lyraClassChain(ctor){const constructors=[];let current=ctor;for(;typeof current=="function"&¤t!==LitElement;)constructors.push(current),current=Object.getPrototypeOf(current);return constructors}const collectionPolicyByConstructor=new WeakMap;function collectionPropertyPolicy(ctor,name){let policies=collectionPolicyByConstructor.get(ctor);policies||(policies=new Map,collectionPolicyByConstructor.set(ctor,policies));const cached=policies.get(name);if(cached)return cached;let limits,owns=!1,preservesItemIdentity=!1,preservesObjectIdentity=!1,retainsNewest=!1;for(const constructor of lyraClassChain(ctor)){const declared=constructor;!limits&&Object.hasOwn(constructor,"ownedCollectionLimits")&&declared.ownedCollectionLimits&&Object.hasOwn(declared.ownedCollectionLimits,name)&&(limits=declared.ownedCollectionLimits[name]),Object.prototype.hasOwnProperty.call(constructor,"ownedCollectionProperties")&&declared.ownedCollectionProperties.includes(name)&&(owns=!0),Object.prototype.hasOwnProperty.call(constructor,"identityCollectionProperties")&&declared.identityCollectionProperties.includes(name)&&(preservesItemIdentity=!0),Object.prototype.hasOwnProperty.call(constructor,"identityCollectionObjectProperties")&&declared.identityCollectionObjectProperties.includes(name)&&(preservesObjectIdentity=!0),Object.prototype.hasOwnProperty.call(constructor,"appendOrderedCollectionProperties")&&declared.appendOrderedCollectionProperties.includes(name)&&(retainsNewest=!0)}const policy=Object.freeze({limits,owns,preservesItemIdentity,preservesObjectIdentity,retainsNewest});return policies.set(name,policy),policy}const COLLECTION_ENROLLMENT_FIELDS=["ownedCollectionProperties","identityCollectionProperties","identityCollectionObjectProperties","appendOrderedCollectionProperties"];function enrolledCollectionPropertyNames(ctor){const names=new Set;for(const constructor of lyraClassChain(ctor))for(const field of COLLECTION_ENROLLMENT_FIELDS){if(!Object.prototype.hasOwnProperty.call(constructor,field))continue;const declared=constructor;for(const name of declared[field])names.add(name)}return names}function inheritedPropertyDescriptor(prototype,name){let current=prototype;for(;current;){const descriptor=Object.getOwnPropertyDescriptor(current,name);if(descriptor)return descriptor;current=Object.getPrototypeOf(current)}}const installedOwnershipBoundaries=new WeakSet,ownershipBoundarySetters=new WeakMap;function samePolicy(a,b){return a.limits===b.limits&&a.owns===b.owns&&a.preservesItemIdentity===b.preservesItemIdentity&&a.preservesObjectIdentity===b.preservesObjectIdentity&&a.retainsNewest===b.retainsNewest}function installOwnedCollectionAccessors(ctor){if(installedOwnershipBoundaries.has(ctor))return;installedOwnershipBoundaries.add(ctor);const prototype=ctor.prototype;for(const name of enrolledCollectionPropertyNames(ctor)){const policy=collectionPropertyPolicy(ctor,name);if(!policy.owns)continue;const declaration=ctor.elementProperties.get(name);if(!declaration||declaration.noAccessor)continue;const descriptor=inheritedPropertyDescriptor(prototype,name),inheritedSet=descriptor?.set;if(!inheritedSet)continue;const installed=ownershipBoundarySetters.get(inheritedSet);if(installed&&samePolicy(installed.policy,policy))continue;const originalSet=installed?.originalSet??inheritedSet,lastAssignments=new WeakMap,set=function(value){const previous=lastAssignments.get(this);if(previous&&declaration.hasChanged===void 0&&!policy.preservesObjectIdentity&&(("primitive"in previous.source?Object.is(value,previous.source.primitive):value!==void 0&&Object.is(value,previous.source.deref()))||Object.is(value,previous.retained)))return;const retainedLoss=previous&&!policy.preservesObjectIdentity&&Object.is(value,previous.retained)?publicCollectionTruncation(this,name):void 0,ownerView=this.ownerDocument?.defaultView;let truncation;const options={limits:policy.limits,retain:policy.retainsNewest?"newest":"oldest",onTruncate:report=>{truncation=report}},snapshot=policy.preservesObjectIdentity&&value!==null&&typeof value=="object"&&!isArrayValue(value)?value:policy.preservesItemIdentity?snapshotIdentityCollection(value,ownerView,void 0,options):snapshotPublicCollection(value,ownerView,options);if(retainedLoss){const retained=truncation?.retained??(policy.preservesItemIdentity?isArrayValue(snapshot)?readOwnArrayLength(snapshot):snapshot!==null&&typeof snapshot=="object"?nativeCollectionSize(snapshot,"map")??nativeCollectionSize(snapshot,"set"):void 0:void 0)??retainedLoss.retained;truncation=Object.freeze({kept:truncation?.kept??retainedLoss.kept,retained,source:retainedLoss.source})}recordCollectionTruncation(this,name,truncation),originalSet.call(this,snapshot);const source=normalizedCollectionWrites.get(this)?.has(name)&&previous?previous.source:typeof value=="object"&&value!==null||typeof value=="function"?new WeakRef(value):{primitive:value};lastAssignments.set(this,{source,retained:descriptor.get?.call(this)??snapshot})};ownershipBoundarySetters.set(set,{policy,originalSet}),Object.defineProperty(prototype,name,{...descriptor,set})}}const collectionTruncations=new WeakMap;function collectionTruncationWarningKey(tagName,property){return`lyra-collection-truncated:${tagName}:${String(property)}`}function recordCollectionTruncation(host,name,truncation){let byName=collectionTruncations.get(host);if(!truncation){byName?.delete(name);return}byName||(byName=new Map,collectionTruncations.set(host,byName)),byName.set(name,truncation);const tagName=host.localName,property=String(name);devWarnOnce(collectionTruncationWarningKey(tagName,property),`<${tagName}>: '${property}' kept ${truncation.retained} of ${truncation.source} entries, the ${truncation.kept}; an assignment keeps at most ${PUBLIC_COLLECTION_ENTRY_LIMIT} per array and ${PUBLIC_COLLECTION_NODE_LIMIT} values, and drops values it cannot copy.`)}function publicCollectionTruncation(host,property){return collectionTruncations.get(host)?.get(property)}function snapshotEnrolledEventDetail(host,name,detail){let snapshotsDetail=!1;const identityDetailKeys=new Set,identityCollectionItemKeys=new Set;for(const candidate of trustedLyraConstructorChain(host)){const constructor=candidate;if(Object.prototype.hasOwnProperty.call(constructor,"immutableEventDetails")&&constructor.immutableEventDetails.includes(name)&&(snapshotsDetail=!0),Object.prototype.hasOwnProperty.call(constructor,"identityEventDetailProperties"))for(const key of constructor.identityEventDetailProperties[name]??[])identityDetailKeys.add(key);if(Object.prototype.hasOwnProperty.call(constructor,"identityEventDetailCollectionItems"))for(const key of constructor.identityEventDetailCollectionItems[name]??[])identityCollectionItemKeys.add(key)}return snapshotsDetail?snapshotEventDetail(detail,host.ownerDocument?.defaultView,identityDetailKeys,identityCollectionItemKeys):detail}function declaresOwnedCollections(ctor){for(const constructor of lyraClassChain(ctor)){if(!Object.prototype.hasOwnProperty.call(constructor,"ownedCollectionProperties"))continue;if(constructor.ownedCollectionProperties.length>0)return!0}return!1}const collectionSupport=/* @__PURE__ */Object.freeze({installProperties:installOwnedCollectionAccessors,snapshotEvent:snapshotEnrolledEventDetail}),eventCollectionSupport=/* @__PURE__ */Object.freeze({installProperties(ctor){declaresOwnedCollections(ctor)&&devWarnOnce(`lyra-event-collection-support:${ctor.name}`,`${ctor.name} enrolls ownedCollectionProperties but declares eventCollectionSupport; declare collectionSupport so those properties cross the immutable collection boundary.`)},snapshotEvent:snapshotEnrolledEventDetail});export{collectionSupport,collectionTruncationWarningKey,eventCollectionSupport,publicCollectionTruncation,snapshotEventDetail,snapshotPublicCollection,writeNormalizedOwnedCollection};
|
|
1
|
+
import{LitElement}from"lit";import{PUBLIC_COLLECTION_ENTRY_LIMIT}from"./collection-policy.js";import{MISSING_OWN_DATA_DESCRIPTOR,UNSAFE_OWN_DATA_DESCRIPTOR,getOwnDataDescriptor,isPlainDataRecord as isRealmNeutralPlainRecord,readOwnArrayLength}from"./data-descriptors.js";import{devWarnOnce}from"./dev-warning.js";const PUBLIC_COLLECTION_NODE_LIMIT=5e4,PUBLIC_COLLECTION_WORK_LIMIT=PUBLIC_COLLECTION_NODE_LIMIT*2,PUBLIC_COLLECTION_DEPTH_LIMIT=256,OMIT_COLLECTION_VALUE=Symbol("omit-public-collection-value"),EXHAUSTED_COLLECTION_VALUE=Symbol("exhausted-public-collection-value"),normalizedCollectionWrites=new WeakMap,readonlySnapshotWrappers=new WeakMap;function writeNormalizedOwnedCollection(host,property,write){let active=normalizedCollectionWrites.get(host);active||normalizedCollectionWrites.set(host,active=new Set);const alreadyActive=active.has(property);active.add(property);try{write()}finally{alreadyActive||active.delete(property),active.size===0&&normalizedCollectionWrites.delete(host)}}function isCollectionSnapshotFailure(value){return value===OMIT_COLLECTION_VALUE||value===EXHAUSTED_COLLECTION_VALUE}function boundedSnapshotLimit(value,maximum){return typeof value=="number"&&Number.isSafeInteger(value)&&value>0?Math.min(value,maximum):maximum}function recordRootLoss(budget,kept,source,retained){retained<source&&(budget.rootLoss=Object.freeze({kept,retained,source}),budget.truncated=!0)}function consumeSnapshotWork(budget){return budget.remainingWork<=0?!1:(budget.remainingWork-=1,!0)}function snapshotRealm(view){const candidate=view;return{Array:candidate?.Array??Array,Date:candidate?.Date??Date,Map:candidate?.Map??Map,Object:candidate?.Object??Object,Set:candidate?.Set??Set}}function isArrayValue(value){try{return Array.isArray(value)}catch{return!1}}function isNativeArrayBufferView(value){return ArrayBuffer.isView(value)}function isImmutableBlob(value){if(typeof Blob>"u")return!1;const sizeGetter=Object.getOwnPropertyDescriptor(Blob.prototype,"size")?.get;if(!sizeGetter)return!1;try{return sizeGetter.call(value),!0}catch{return!1}}const MUTATING_DATE_METHODS=new Set(["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear"]);function nativeDateTime(value){const wrapper=readonlySnapshotWrappers.get(value);if(wrapper?.kind==="date")return wrapper.time;try{return Date.prototype.getTime.call(value)}catch{return OMIT_COLLECTION_VALUE}}function snapshotReadonlyDate(source,time,budget){const target=new budget.realm.Date(time),boundMethods=new Map,rejectMutation=()=>{throw new TypeError("Cannot mutate a readonly Date snapshot")},snapshot=new Proxy(target,{get(date,key){if(MUTATING_DATE_METHODS.has(key))return rejectMutation;if(key==="constructor")return budget.realm.Date;const value=Reflect.get(date,key,date);if(typeof value!="function")return value;const cached=boundMethods.get(key);if(cached)return cached;const bound=value.bind(date);return boundMethods.set(key,bound),bound}});return readonlySnapshotWrappers.set(snapshot,{kind:"date",time}),rememberSnapshot(budget,source,snapshot),Object.freeze(snapshot)}function rememberSnapshot(budget,source,snapshot){budget.seen.set(source,snapshot),budget.additions.push(source)}function snapshotTransaction(budget,create){const remaining=budget.remaining,additions=budget.additions.length,result=create();if(!isCollectionSnapshotFailure(result))return result;budget.remaining=remaining;for(let index=budget.additions.length-1;index>=additions;index-=1)budget.seen.delete(budget.additions[index]);return budget.additions.length=additions,result}function emptyRealmArray(realm){return Object.freeze(new realm.Array)}function*ownEnumerableStringKeys(value){for(const key in value)yield key}function snapshotDataRecord(value,keys,prototype,budget,depth,preserveRecordKeys,preserveCollectionItemKeys){const output=budget.realm.Object.create(null);rememberSnapshot(budget,value,output);try{for(const key of keys){if(!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const descriptor=getOwnDataDescriptor(value,key);if(descriptor===MISSING_OWN_DATA_DESCRIPTOR||descriptor===UNSAFE_OWN_DATA_DESCRIPTOR||!descriptor.enumerable){descriptor===UNSAFE_OWN_DATA_DESCRIPTOR&&(budget.invalid=!0);continue}if(budget.remaining<=0)return EXHAUSTED_COLLECTION_VALUE;budget.remaining-=1;const disposition=budget.recordKey?.(key,descriptor.value,depth)??"copy";if(disposition==="omit"){budget.invalid=!0;continue}const entry=disposition==="preserve"||preserveRecordKeys?.has(key)?descriptor.value:preserveCollectionItemKeys?.has(key)?snapshotIdentityCollection(descriptor.value,budget.realm,budget):snapshotCollectionValue(descriptor.value,budget,depth+1,void 0,void 0,budget.nestedArrayPrefix&&isArrayValue(descriptor.value));if(isCollectionSnapshotFailure(entry))return entry===OMIT_COLLECTION_VALUE?budget.invalid=!0:budget.truncated=!0,entry;output[key]=entry}}catch{return OMIT_COLLECTION_VALUE}return Object.setPrototypeOf(output,prototype),Object.freeze(output)}function snapshotCollectionValue(value,budget,depth,preserveRecordKeys,preserveCollectionItemKeys,allowPrefixTruncation=!1){if(value===null||typeof value!="object"&&typeof value!="function"||typeof value=="function")return value;if(budget.seen.has(value))return budget.seen.get(value);if(depth>budget.depthLimit||budget.remaining<=0)return EXHAUSTED_COLLECTION_VALUE;if(isArrayValue(value)){if(!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const sourceLength=readOwnArrayLength(value);if(sourceLength===void 0)return budget.invalid=!0,allowPrefixTruncation?emptyRealmArray(budget.realm):OMIT_COLLECTION_VALUE;if(!allowPrefixTruncation&&sourceLength>budget.entryLimit)return EXHAUSTED_COLLECTION_VALUE;const length=Math.min(sourceLength,budget.entryLimit),newest=depth===0&&allowPrefixTruncation&&budget.retention==="newest",output=new budget.realm.Array;Object.setPrototypeOf(output,null),rememberSnapshot(budget,value,output);const kept=[];let walked=0,dropped=0;for(;walked<length;walked+=1){if(budget.remaining<=0||!consumeSnapshotWork(budget)){if(!allowPrefixTruncation)return EXHAUSTED_COLLECTION_VALUE;break}const index=newest?sourceLength-1-walked:walked,descriptor=getOwnDataDescriptor(value,String(index));if(descriptor===MISSING_OWN_DATA_DESCRIPTOR)continue;if(descriptor===UNSAFE_OWN_DATA_DESCRIPTOR){if(budget.invalid=!0,!allowPrefixTruncation)return OMIT_COLLECTION_VALUE;dropped+=1;continue}const entry=snapshotTransaction(budget,()=>(budget.remaining-=1,snapshotCollectionValue(descriptor.value,budget,depth+1,void 0,void 0,budget.nestedArrayPrefix&&isArrayValue(descriptor.value))));if(entry===OMIT_COLLECTION_VALUE){if(budget.invalid=!0,!allowPrefixTruncation)return OMIT_COLLECTION_VALUE;dropped+=1;continue}if(entry===EXHAUSTED_COLLECTION_VALUE){if(budget.truncated=!0,!allowPrefixTruncation)return EXHAUSTED_COLLECTION_VALUE;break}kept.push(index,entry)}output.length=walked;const offset=newest?sourceLength-walked:0;for(let index=0;index<kept.length;index+=2)output[kept[index]-offset]=kept[index+1];return Object.setPrototypeOf(output,budget.realm.Array.prototype),walked-dropped<sourceLength&&(budget.truncated=!0),allowPrefixTruncation&&depth===0&&recordRootLoss(budget,newest?"newest":"oldest",sourceLength,walked-dropped),Object.freeze(output)}if(!readonlySnapshotWrappers.has(value)&&isRealmNeutralPlainRecord(value)){let prototype;try{prototype=Object.getPrototypeOf(value)}catch{return OMIT_COLLECTION_VALUE}return snapshotDataRecord(value,ownEnumerableStringKeys(value),prototype===null?null:budget.realm.Object.prototype,budget,depth,preserveRecordKeys,preserveCollectionItemKeys)}const dateTime=nativeDateTime(value);if(dateTime!==OMIT_COLLECTION_VALUE)return snapshotReadonlyDate(value,dateTime,budget);const entries=nativeMapEntries(value);if(entries)return snapshotDetachedMap(value,entries,budget,depth,allowPrefixTruncation);const values=nativeSetValues(value);if(values)return snapshotDetachedSet(value,values,budget,depth,allowPrefixTruncation);if(isNativeArrayBufferView(value))return budget.invalid=!0,OMIT_COLLECTION_VALUE;const rect=snapshotDOMRect(value,budget);return rect!==OMIT_COLLECTION_VALUE?rect:isImmutableBlob(value)?value:(budget.invalid=!0,OMIT_COLLECTION_VALUE)}function boundedRecordSize(value,limit=PUBLIC_COLLECTION_WORK_LIMIT){let size=0;try{for(const key in value)if(typeof key=="string"&&(size+=1),size>=limit)break}catch{return}return size}function snapshotPublicCollection(value,view,options={}){if(value===null||typeof value!="object"&&typeof value!="function")return options.onResult?.(Object.freeze({invalid:!1,truncated:!1})),value;const realm=snapshotRealm(view),nodeLimit=boundedSnapshotLimit(options.limits?.nodes,PUBLIC_COLLECTION_NODE_LIMIT),budget={remaining:nodeLimit,remainingWork:nodeLimit*2,seen:new WeakMap,additions:[],realm,entryLimit:boundedSnapshotLimit(options.limits?.entries,PUBLIC_COLLECTION_ENTRY_LIMIT),depthLimit:boundedSnapshotLimit(options.limits?.depth,PUBLIC_COLLECTION_DEPTH_LIMIT),nestedArrayPrefix:options.nestedArrayPrefix??!1,recordKey:options.recordKey,invalid:!1,truncated:!1,retention:options.retain??"oldest"},snapshot=snapshotTransaction(budget,()=>snapshotCollectionValue(value,budget,0,void 0,void 0,!0));if(!isCollectionSnapshotFailure(snapshot))return budget.rootLoss&&options.onTruncate?.(budget.rootLoss),options.onResult?.(Object.freeze({invalid:budget.invalid,truncated:budget.truncated})),snapshot;if(options.onResult?.(Object.freeze({invalid:budget.invalid||snapshot===OMIT_COLLECTION_VALUE,truncated:budget.truncated||snapshot===EXHAUSTED_COLLECTION_VALUE})),isArrayValue(value)||isNativeArrayBufferView(value))return emptyRealmArray(realm);if(typeof value=="object"){if(nativeMapEntries(value))return readonlyMapFacade(new realm.Map,realm);if(nativeSetValues(value))return readonlySetFacade(new realm.Set,realm);if(isRealmNeutralPlainRecord(value)){const size=boundedRecordSize(value,nodeLimit*2);size&&options.onTruncate?.(Object.freeze({kept:"oldest",retained:0,source:size}));const prototype=Object.getPrototypeOf(value);return Object.freeze(realm.Object.create(prototype===null?null:realm.Object.prototype))}}return emptyRealmArray(realm)}function nativeMapEntries(value){const wrapper=readonlySnapshotWrappers.get(value);try{return Map.prototype.entries.call(wrapper?.kind==="map"?wrapper.backing:value)}catch{return}}function nativeSetValues(value){const wrapper=readonlySnapshotWrappers.get(value);try{return Set.prototype.values.call(wrapper?.kind==="set"?wrapper.backing:value)}catch{return}}function snapshotDOMRect(value,budget){if(typeof DOMRectReadOnly>"u")return OMIT_COLLECTION_VALUE;const nativePrototype=DOMRectReadOnly.prototype,output=budget.realm.Object.create(budget.realm.Object.prototype);for(const key of["x","y","width","height","top","right","bottom","left"]){let coordinate;try{const getter=Object.getOwnPropertyDescriptor(nativePrototype,key)?.get;if(!getter)return OMIT_COLLECTION_VALUE;coordinate=getter.call(value)}catch{return OMIT_COLLECTION_VALUE}if(typeof coordinate!="number"||!Number.isFinite(coordinate))return OMIT_COLLECTION_VALUE;Object.defineProperty(output,key,{value:coordinate,enumerable:!0,configurable:!1,writable:!1})}return Object.freeze(output)}function readonlyMapFacade(backing,realm=snapshotRealm()){let facade;return facade=realm.Object.create(realm.Object.prototype),Object.defineProperties(facade,{size:{enumerable:!0,get:()=>backing.size},entries:{value:()=>backing.entries()},get:{value:key=>backing.get(key)},has:{value:key=>backing.has(key)},keys:{value:()=>backing.keys()},values:{value:()=>backing.values()},forEach:{value:(callback,thisArg)=>backing.forEach((entry,key)=>callback.call(thisArg,entry,key,facade))},[Symbol.iterator]:{value:()=>backing[Symbol.iterator]()}}),readonlySnapshotWrappers.set(facade,{kind:"map",backing}),Object.freeze(facade)}function readonlySetFacade(backing,realm=snapshotRealm()){let facade;return facade=realm.Object.create(realm.Object.prototype),Object.defineProperties(facade,{size:{enumerable:!0,get:()=>backing.size},entries:{value:()=>backing.entries()},has:{value:entry=>backing.has(entry)},keys:{value:()=>backing.keys()},values:{value:()=>backing.values()},forEach:{value:(callback,thisArg)=>backing.forEach(entry=>callback.call(thisArg,entry,entry,facade))},[Symbol.iterator]:{value:()=>backing[Symbol.iterator]()}}),readonlySnapshotWrappers.set(facade,{kind:"set",backing}),Object.freeze(facade)}function snapshotIdentityMap(entries,realm=snapshotRealm(),budget,entryLimit=budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT){const backing=new realm.Map;for(let count=0;count<entryLimit;count+=1){const next=entries.next();if(next.done)break;if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;backing.set(next.value[0],next.value[1])}return readonlyMapFacade(backing,realm)}function snapshotIdentitySet(values,realm=snapshotRealm(),budget,entryLimit=budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT){const backing=new realm.Set;for(let count=0;count<entryLimit;count+=1){const next=values.next();if(next.done)break;if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;backing.add(next.value)}return readonlySetFacade(backing,realm)}function nativeCollectionSize(source,kind){const wrapper=readonlySnapshotWrappers.get(source);try{const size=Object.getOwnPropertyDescriptor(kind==="map"?Map.prototype:Set.prototype,"size")?.get?.call(wrapper?.kind===kind?wrapper.backing:source);return typeof size=="number"?size:void 0}catch{return}}function recordNativeCollectionLoss(budget,source,kind,retained){const size=nativeCollectionSize(source,kind);size!==void 0&&recordRootLoss(budget,"oldest",size,retained)}function snapshotDetachedMap(source,entries,budget,depth,allowPrefixTruncation){const backing=new budget.realm.Map,facade=readonlyMapFacade(backing,budget.realm);rememberSnapshot(budget,source,facade);const settle=()=>(allowPrefixTruncation?recordNativeCollectionLoss(budget,source,"map",backing.size):(nativeCollectionSize(source,"map")??0)>budget.entryLimit&&(budget.truncated=!0),facade);for(let count=0;count<budget.entryLimit;count+=1){let next;try{next=entries.next()}catch{break}if(next.done)break;if(budget.remaining<=0||!consumeSnapshotWork(budget))return allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;const pair=snapshotTransaction(budget,()=>{budget.remaining-=1;const key=snapshotCollectionValue(next.value[0],budget,depth+1);if(isCollectionSnapshotFailure(key))return key;const entry=snapshotCollectionValue(next.value[1],budget,depth+1);return isCollectionSnapshotFailure(entry)?entry:[key,entry]});if(pair===EXHAUSTED_COLLECTION_VALUE)return budget.truncated=!0,allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;pair===OMIT_COLLECTION_VALUE?budget.invalid=!0:backing.set(pair[0],pair[1])}return settle()}function snapshotDetachedSet(source,values,budget,depth,allowPrefixTruncation){const backing=new budget.realm.Set,facade=readonlySetFacade(backing,budget.realm);rememberSnapshot(budget,source,facade);const settle=()=>(allowPrefixTruncation?recordNativeCollectionLoss(budget,source,"set",backing.size):(nativeCollectionSize(source,"set")??0)>budget.entryLimit&&(budget.truncated=!0),facade);for(let count=0;count<budget.entryLimit;count+=1){let next;try{next=values.next()}catch{break}if(next.done)break;if(budget.remaining<=0||!consumeSnapshotWork(budget))return allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;const entry=snapshotTransaction(budget,()=>(budget.remaining-=1,snapshotCollectionValue(next.value,budget,depth+1)));if(entry===EXHAUSTED_COLLECTION_VALUE)return budget.truncated=!0,allowPrefixTruncation?settle():EXHAUSTED_COLLECTION_VALUE;entry===OMIT_COLLECTION_VALUE?budget.invalid=!0:backing.add(entry)}return settle()}function snapshotIdentityCollection(value,view,budget,root){const realm=snapshotRealm(view);if(budget&&value!==null&&(typeof value=="object"||typeof value=="function")&&budget.seen.has(value))return budget.seen.get(value);if(isArrayValue(value)){if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const sourceLength=readOwnArrayLength(value)??0,length=Math.min(sourceLength,boundedSnapshotLimit(root?.limits?.entries,PUBLIC_COLLECTION_ENTRY_LIMIT)),kept=root?.retain??"oldest",offset=kept==="newest"?sourceLength-length:0,output=new realm.Array(length);Object.setPrototypeOf(output,null),budget&&rememberSnapshot(budget,value,output);for(let index=0;index<length;index+=1){if(budget&&!consumeSnapshotWork(budget))return EXHAUSTED_COLLECTION_VALUE;const descriptor=getOwnDataDescriptor(value,String(offset+index));descriptor===MISSING_OWN_DATA_DESCRIPTOR||descriptor===UNSAFE_OWN_DATA_DESCRIPTOR||(output[index]=descriptor.value)}return Object.setPrototypeOf(output,realm.Array.prototype),length<sourceLength&&root?.onTruncate?.(Object.freeze({kept,retained:length,source:sourceLength})),Object.freeze(output)}if(value===null||typeof value!="object")return value;const mapEntries=nativeMapEntries(value);if(mapEntries){const output=snapshotIdentityMap(mapEntries,realm,budget,boundedSnapshotLimit(root?.limits?.entries,budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT));return output===EXHAUSTED_COLLECTION_VALUE||(budget&&rememberSnapshot(budget,value,output),reportIdentityCollectionLoss(root,value,"map",output.size)),output}const setValues=nativeSetValues(value);if(setValues){const output=snapshotIdentitySet(setValues,realm,budget,boundedSnapshotLimit(root?.limits?.entries,budget?.entryLimit??PUBLIC_COLLECTION_ENTRY_LIMIT));return output===EXHAUSTED_COLLECTION_VALUE||(budget&&rememberSnapshot(budget,value,output),reportIdentityCollectionLoss(root,value,"set",output.size)),output}return emptyRealmArray(realm)}function reportIdentityCollectionLoss(root,source,kind,retained){if(!root?.onTruncate)return;const size=nativeCollectionSize(source,kind);size!==void 0&&retained<size&&root.onTruncate(Object.freeze({kept:"oldest",retained,source:size}))}function snapshotEventDetail(value,view,preserveRootKeys=new Set,preserveCollectionItemKeys=new Set){if(value==null)return value;const budget={remaining:PUBLIC_COLLECTION_NODE_LIMIT,remainingWork:PUBLIC_COLLECTION_WORK_LIMIT,seen:new WeakMap,additions:[],realm:snapshotRealm(view),entryLimit:PUBLIC_COLLECTION_ENTRY_LIMIT,depthLimit:PUBLIC_COLLECTION_DEPTH_LIMIT,nestedArrayPrefix:!1,invalid:!1,truncated:!1},snapshot=snapshotTransaction(budget,()=>snapshotCollectionValue(value,budget,0,preserveRootKeys,preserveCollectionItemKeys));return isCollectionSnapshotFailure(snapshot)?null:snapshot}function trustedLyraConstructorChain(instance){const constructors=[];let prototype=Object.getPrototypeOf(instance);for(;prototype&&prototype!==LitElement.prototype;){const descriptor=Object.getOwnPropertyDescriptor(prototype,"constructor");typeof descriptor?.value=="function"&&constructors.push(descriptor.value),prototype=Object.getPrototypeOf(prototype)}return constructors}function lyraClassChain(ctor){const constructors=[];let current=ctor;for(;typeof current=="function"&¤t!==LitElement;)constructors.push(current),current=Object.getPrototypeOf(current);return constructors}const collectionPolicyByConstructor=new WeakMap;function collectionPropertyPolicy(ctor,name){let policies=collectionPolicyByConstructor.get(ctor);policies||(policies=new Map,collectionPolicyByConstructor.set(ctor,policies));const cached=policies.get(name);if(cached)return cached;let limits,owns=!1,preservesItemIdentity=!1,preservesObjectIdentity=!1,retainsNewest=!1;for(const constructor of lyraClassChain(ctor)){const declared=constructor;!limits&&Object.hasOwn(constructor,"ownedCollectionLimits")&&declared.ownedCollectionLimits&&Object.hasOwn(declared.ownedCollectionLimits,name)&&(limits=declared.ownedCollectionLimits[name]),Object.prototype.hasOwnProperty.call(constructor,"ownedCollectionProperties")&&declared.ownedCollectionProperties.includes(name)&&(owns=!0),Object.prototype.hasOwnProperty.call(constructor,"identityCollectionProperties")&&declared.identityCollectionProperties.includes(name)&&(preservesItemIdentity=!0),Object.prototype.hasOwnProperty.call(constructor,"identityCollectionObjectProperties")&&declared.identityCollectionObjectProperties.includes(name)&&(preservesObjectIdentity=!0),Object.prototype.hasOwnProperty.call(constructor,"appendOrderedCollectionProperties")&&declared.appendOrderedCollectionProperties.includes(name)&&(retainsNewest=!0)}const policy=Object.freeze({limits,owns,preservesItemIdentity,preservesObjectIdentity,retainsNewest});return policies.set(name,policy),policy}const COLLECTION_ENROLLMENT_FIELDS=["ownedCollectionProperties","identityCollectionProperties","identityCollectionObjectProperties","appendOrderedCollectionProperties"];function enrolledCollectionPropertyNames(ctor){const names=new Set;for(const constructor of lyraClassChain(ctor))for(const field of COLLECTION_ENROLLMENT_FIELDS){if(!Object.prototype.hasOwnProperty.call(constructor,field))continue;const declared=constructor;for(const name of declared[field])names.add(name)}return names}function inheritedPropertyDescriptor(prototype,name){let current=prototype;for(;current;){const descriptor=Object.getOwnPropertyDescriptor(current,name);if(descriptor)return descriptor;current=Object.getPrototypeOf(current)}}const installedOwnershipBoundaries=new WeakSet,ownershipBoundarySetters=new WeakMap;function samePolicy(a,b){return a.limits===b.limits&&a.owns===b.owns&&a.preservesItemIdentity===b.preservesItemIdentity&&a.preservesObjectIdentity===b.preservesObjectIdentity&&a.retainsNewest===b.retainsNewest}function installOwnedCollectionAccessors(ctor){if(installedOwnershipBoundaries.has(ctor))return;installedOwnershipBoundaries.add(ctor);const prototype=ctor.prototype;for(const name of enrolledCollectionPropertyNames(ctor)){const policy=collectionPropertyPolicy(ctor,name);if(!policy.owns)continue;const declaration=ctor.elementProperties.get(name);if(!declaration||declaration.noAccessor)continue;const descriptor=inheritedPropertyDescriptor(prototype,name),inheritedSet=descriptor?.set;if(!inheritedSet)continue;const installed=ownershipBoundarySetters.get(inheritedSet);if(installed&&samePolicy(installed.policy,policy))continue;const originalSet=installed?.originalSet??inheritedSet,lastAssignments=new WeakMap,set=function(value){const previous=lastAssignments.get(this);if(previous&&declaration.hasChanged===void 0&&!policy.preservesObjectIdentity&&(("primitive"in previous.source?Object.is(value,previous.source.primitive):value!==void 0&&Object.is(value,previous.source.deref()))||Object.is(value,previous.retained)))return;const retainedLoss=previous&&!policy.preservesObjectIdentity&&Object.is(value,previous.retained)?publicCollectionTruncation(this,name):void 0,ownerView=this.ownerDocument?.defaultView;let truncation;const options={limits:policy.limits,retain:policy.retainsNewest?"newest":"oldest",onTruncate:report=>{truncation=report}},snapshot=policy.preservesObjectIdentity&&value!==null&&typeof value=="object"&&!isArrayValue(value)?value:policy.preservesItemIdentity?snapshotIdentityCollection(value,ownerView,void 0,options):snapshotPublicCollection(value,ownerView,options);if(retainedLoss){const retained=truncation?.retained??(policy.preservesItemIdentity?isArrayValue(snapshot)?readOwnArrayLength(snapshot):snapshot!==null&&typeof snapshot=="object"?nativeCollectionSize(snapshot,"map")??nativeCollectionSize(snapshot,"set"):void 0:void 0)??retainedLoss.retained;truncation=Object.freeze({kept:truncation?.kept??retainedLoss.kept,retained,source:retainedLoss.source})}recordCollectionTruncation(this,name,truncation),originalSet.call(this,snapshot);const source=normalizedCollectionWrites.get(this)?.has(name)&&previous?previous.source:typeof value=="object"&&value!==null||typeof value=="function"?new WeakRef(value):{primitive:value};lastAssignments.set(this,{source,retained:descriptor.get?.call(this)??snapshot})};ownershipBoundarySetters.set(set,{policy,originalSet}),Object.defineProperty(prototype,name,{...descriptor,set})}}const collectionTruncations=new WeakMap;function collectionTruncationWarningKey(tagName,property){return`lyra-collection-truncated:${tagName}:${String(property)}`}function recordCollectionTruncation(host,name,truncation){let byName=collectionTruncations.get(host);if(!truncation){byName?.delete(name);return}byName||(byName=new Map,collectionTruncations.set(host,byName)),byName.set(name,truncation);const tagName=host.localName,property=String(name);devWarnOnce(collectionTruncationWarningKey(tagName,property),`<${tagName}>: '${property}' kept ${truncation.retained} of ${truncation.source} entries, the ${truncation.kept}; an assignment keeps at most ${PUBLIC_COLLECTION_ENTRY_LIMIT} per array and ${PUBLIC_COLLECTION_NODE_LIMIT} values, and drops values it cannot copy.`)}function publicCollectionTruncation(host,property){return collectionTruncations.get(host)?.get(property)}function snapshotEnrolledEventDetail(host,name,detail){let snapshotsDetail=!1;const identityDetailKeys=new Set,identityCollectionItemKeys=new Set;for(const candidate of trustedLyraConstructorChain(host)){const constructor=candidate;if(Object.prototype.hasOwnProperty.call(constructor,"immutableEventDetails")&&constructor.immutableEventDetails.includes(name)&&(snapshotsDetail=!0),Object.prototype.hasOwnProperty.call(constructor,"identityEventDetailProperties"))for(const key of constructor.identityEventDetailProperties[name]??[])identityDetailKeys.add(key);if(Object.prototype.hasOwnProperty.call(constructor,"identityEventDetailCollectionItems"))for(const key of constructor.identityEventDetailCollectionItems[name]??[])identityCollectionItemKeys.add(key)}return snapshotsDetail?snapshotEventDetail(detail,host.ownerDocument?.defaultView,identityDetailKeys,identityCollectionItemKeys):detail}function declaresOwnedCollections(ctor){for(const constructor of lyraClassChain(ctor)){if(!Object.prototype.hasOwnProperty.call(constructor,"ownedCollectionProperties"))continue;if(constructor.ownedCollectionProperties.length>0)return!0}return!1}const collectionSupport=/* @__PURE__ */Object.freeze({installProperties:installOwnedCollectionAccessors,snapshotEvent:snapshotEnrolledEventDetail}),eventCollectionSupport=/* @__PURE__ */Object.freeze({installProperties(ctor){declaresOwnedCollections(ctor)&&devWarnOnce(`lyra-event-collection-support:${ctor.name}`,`${ctor.name} enrolls ownedCollectionProperties but declares eventCollectionSupport; declare collectionSupport so those properties cross the immutable collection boundary.`)},snapshotEvent:snapshotEnrolledEventDetail});export{collectionSupport,collectionTruncationWarningKey,eventCollectionSupport,publicCollectionTruncation,snapshotEventDetail,snapshotPublicCollection,writeNormalizedOwnedCollection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const LYRA_DEFAULT_animatedImageDefaultAlt="Animated image",LYRA_DEFAULT_attachmentAdd="Add attachment",LYRA_DEFAULT_attachmentMenuAudio="Record audio",LYRA_DEFAULT_attachmentMenuCamera="Take a photo",LYRA_DEFAULT_attachmentMenuFiles="Upload files",LYRA_DEFAULT_attachmentMenuImage="Upload a photo",LYRA_DEFAULT_attachmentPreviewFile="Preview file",LYRA_DEFAULT_attachmentPreviewName="Preview {name}",LYRA_DEFAULT_attachmentRetryWithContext="Retry {label}",LYRA_DEFAULT_attachmentTriggerAudio="Record audio",LYRA_DEFAULT_attachmentTriggerCamera="Use camera",LYRA_DEFAULT_attachmentTriggerFiles="Attach files",LYRA_DEFAULT_attachmentTriggerImage="Attach an image",LYRA_DEFAULT_attachmentUploadFailed="Upload failed",LYRA_DEFAULT_attachmentUploadingIndeterminate="Uploading…",LYRA_DEFAULT_attachmentUploadingProgress="Uploading {percent}%",LYRA_DEFAULT_attachmentUploadingWithContext="Uploading {label}",LYRA_DEFAULT_avPlayerFailedToLoad="The media failed to load.",LYRA_DEFAULT_avPlayerLabel="Audio/video player",LYRA_DEFAULT_avPlayerPlaybackRate="Playback speed",LYRA_DEFAULT_avPlayerPosition="{current} of {duration}",LYRA_DEFAULT_avPlayerRateOption="{rate}×",LYRA_DEFAULT_avPlayerTimeline="Seek",LYRA_DEFAULT_avPlayerTranscript="Transcript",LYRA_DEFAULT_avPlayerTranscriptUnavailable="Transcript data is unavailable.",LYRA_DEFAULT_avPlayerWaveformUnavailable="Waveform data is unavailable or does not match this media.",LYRA_DEFAULT_dropzoneRejectedType="This file type is not accepted.",LYRA_DEFAULT_dropzoneReleaseToAdd="Release to add the file.",LYRA_DEFAULT_fileInputAcceptedMany="{count} files added.",LYRA_DEFAULT_fileInputAcceptedOne="{count} file added.",LYRA_DEFAULT_fileInputDefaultLabel="Drop files here or click to browse",LYRA_DEFAULT_fileInputFolderRejected="Folders are not accepted here.",LYRA_DEFAULT_fileInputRejectedCount="{filename}: only one file can be selected at a time.",LYRA_DEFAULT_fileInputRejectedLimit="{filename}: the folder contains too many entries.",LYRA_DEFAULT_fileInputRejectedMany="{count} files rejected.",LYRA_DEFAULT_fileInputRejectedMaxFiles="{filename}: the maximum number of files has been reached.",LYRA_DEFAULT_fileInputRejectedMaxTotalSize="{filename}: adding this file would exceed the total size limit.",LYRA_DEFAULT_fileInputRejectedOne="{count} file rejected.",LYRA_DEFAULT_fileInputRejectedRead="{filename}: the file could not be read.",LYRA_DEFAULT_fileInputRejectedSize="{filename}: this file is too large.",LYRA_DEFAULT_fileInputRejectedType="{filename}: this file type is not accepted.",LYRA_DEFAULT_fileTypeArchive="Archive",LYRA_DEFAULT_fileTypeAudio="Audio",LYRA_DEFAULT_fileTypeCode="Code file",LYRA_DEFAULT_fileTypeFile="File",LYRA_DEFAULT_fileTypeImage="Image",LYRA_DEFAULT_fileTypePdf="PDF",LYRA_DEFAULT_fileTypePresentation="Presentation",LYRA_DEFAULT_fileTypeSpreadsheet="Spreadsheet",LYRA_DEFAULT_fileTypeText="Text file",LYRA_DEFAULT_fileTypeVideo="Video",LYRA_DEFAULT_fileTypeWithSize="{label} ({size})",LYRA_DEFAULT_fileTypeWord="Word document",LYRA_DEFAULT_flagLoadError="Flag unavailable",LYRA_DEFAULT_imageComparerLabel="Image comparison",LYRA_DEFAULT_imageViewerAnnotate="Annotate",LYRA_DEFAULT_imageViewerAnnotationAdded="Region added.",LYRA_DEFAULT_imageViewerAnnotationBoxPosition="Region at {x} percent, {y} percent, {width} by {height} percent.",LYRA_DEFAULT_imageViewerAnnotationCancelled="Region cancelled.",LYRA_DEFAULT_imageViewerAnnotationHint="Annotation mode on. Press Enter to place a region, then use arrow keys to move it, Shift plus arrow keys to resize it, Enter to save, or Escape to cancel.",LYRA_DEFAULT_imageViewerFailedToLoad="The image failed to load.",LYRA_DEFAULT_imageViewerFitActual="Actual size",LYRA_DEFAULT_imageViewerFitContain="Fit image",LYRA_DEFAULT_imageViewerFitLabel="Fit",LYRA_DEFAULT_imageViewerFitWidth="Fit width",LYRA_DEFAULT_imageViewerHighlightsLabel="Highlighted regions",LYRA_DEFAULT_imageViewerLabel="Image viewer",LYRA_DEFAULT_imageViewerRotate="Rotate",LYRA_DEFAULT_imageViewerUnlabeledHighlight="Highlight {index}",LYRA_DEFAULT_lightboxImagePosition="Image {index} of {total}",LYRA_DEFAULT_lightboxLabel="Image viewer",LYRA_DEFAULT_mapActivate="Show interactive map",LYRA_DEFAULT_mapCancelDrawing="Cancel drawing",LYRA_DEFAULT_mapCancelPick="Cancel picking",LYRA_DEFAULT_mapCompleteDrawing="Finish drawing",LYRA_DEFAULT_mapControlUnavailable="A map control could not be loaded",LYRA_DEFAULT_mapDrawAtCenter="Add vertex at map center",LYRA_DEFAULT_mapDrawingArea="Area {value}",LYRA_DEFAULT_mapDrawingControls="Drawing controls",LYRA_DEFAULT_mapDrawingDuplicateVertex="Choose a different vertex",LYRA_DEFAULT_mapDrawingEditInstructions="Use arrow keys to move this vertex; hold Shift for larger steps. Page Up and Page Down select vertices. Home and End select the first and last visible vertex.",LYRA_DEFAULT_mapDrawingInvalidCoordinate="Choose a valid map coordinate",LYRA_DEFAULT_mapDrawingInvalidGeometry="Choose vertices that form a valid simple shape",LYRA_DEFAULT_mapDrawingLength="Length {value}",LYRA_DEFAULT_mapDrawingTooFewVertices="Add at least {count} vertices before finishing",LYRA_DEFAULT_mapDrawingUnavailable="Drawing could not be updated",LYRA_DEFAULT_mapDrawingVertex="Vertex {index}",LYRA_DEFAULT_mapDrawingVertexLimit="A drawing can contain at most {count} vertices",LYRA_DEFAULT_mapDrawingVertices="Vertices: {count}",LYRA_DEFAULT_mapExportUnavailable="Map image could not be exported",LYRA_DEFAULT_mapFeatureStateUnavailable="Feature highlighting could not be updated",LYRA_DEFAULT_mapFeedback="Map feedback",LYRA_DEFAULT_mapGeolocateError="Your location could not be shown",LYRA_DEFAULT_mapGeolocateFindLocation="Find my location",LYRA_DEFAULT_mapGeolocateOutOfBounds="Your location is outside the map bounds",LYRA_DEFAULT_mapGeolocatePermissionDenied="Location access was denied",LYRA_DEFAULT_mapGeolocatePositionUnavailable="Your location could not be determined",LYRA_DEFAULT_mapGeolocateTimeout="The location request timed out",LYRA_DEFAULT_mapGeolocateUnavailable="Location is unavailable",LYRA_DEFAULT_mapHashConflict="Another map is using this URL field",LYRA_DEFAULT_mapHashInvalid="The map URL field name is invalid",LYRA_DEFAULT_mapInitializationFailed="The map could not be initialized.",LYRA_DEFAULT_mapLegend="Map legend",LYRA_DEFAULT_mapMarker="Map marker",LYRA_DEFAULT_mapMissingLibrary='This component needs the optional "{package}" package installed to render the map.',LYRA_DEFAULT_mapPickAtCenter="Pick at map center",LYRA_DEFAULT_mapResetNorth="Reset bearing to north",LYRA_DEFAULT_mapScaleFeet="ft",LYRA_DEFAULT_mapScaleKilometers="km",LYRA_DEFAULT_mapScaleMeters="m",LYRA_DEFAULT_mapScaleMiles="mi",LYRA_DEFAULT_mapScaleNauticalMiles="nm",LYRA_DEFAULT_mapSquareKilometers="{value} km²",LYRA_DEFAULT_mapSquareMeters="{value} m²",LYRA_DEFAULT_mapStyleRequired="Provide a map style to render the map.",LYRA_DEFAULT_mapToggleAttribution="Toggle attribution",LYRA_DEFAULT_mapUndoDrawing="Undo last vertex",LYRA_DEFAULT_mapWebglUnavailable="This browser cannot provide the graphics support needed to render the map.",LYRA_DEFAULT_mediaCardImageAttachment="Image attachment",LYRA_DEFAULT_mediaCardOpenFileAttachment="Open file attachment",LYRA_DEFAULT_mediaCardOpenImageAttachment="Open image attachment",LYRA_DEFAULT_mediaCardOpenName="Open {name}",LYRA_DEFAULT_mediaCardOpenVideoAttachment="Open video attachment",LYRA_DEFAULT_mediaCardUntitledFile="Untitled file",LYRA_DEFAULT_mediaCardVideoAttachment="Video attachment",LYRA_DEFAULT_panoramaHotspotsLabel="Panorama hotspots",LYRA_DEFAULT_panoramaInstructions="Use arrow keys to look around, plus and minus to zoom, and Home to reset the view.",LYRA_DEFAULT_pause="Pause",LYRA_DEFAULT_pauseWithContext="Pause {name}",LYRA_DEFAULT_play="Play",LYRA_DEFAULT_playWithContext="Play {name}",LYRA_DEFAULT_playbackPosition="Playback position",LYRA_DEFAULT_playbackStepPosition="Step {index} of {total}",LYRA_DEFAULT_qrCodeGenerationFailed="This value could not be encoded as a QR code.",LYRA_DEFAULT_qrCodeMissingLibrary='This component needs the optional "qrcode" package installed to render QR codes.',LYRA_DEFAULT_videoCaptions="Captions",LYRA_DEFAULT_videoCaptionsOff="Off",LYRA_DEFAULT_videoEnterFullscreen="Enter fullscreen",LYRA_DEFAULT_videoExitFullscreen="Exit fullscreen",LYRA_DEFAULT_videoExitPictureInPicture="Exit picture in picture",LYRA_DEFAULT_videoMute="Mute",LYRA_DEFAULT_videoPictureInPicture="Enter picture in picture",LYRA_DEFAULT_videoPlayerLabel="Video player",LYRA_DEFAULT_videoPlaylistLabel="Video playlist",LYRA_DEFAULT_videoPlaylistUntitled="Video {position}",LYRA_DEFAULT_videoUnmute="Unmute",LYRA_DEFAULT_videoVolume="Volume",LYRA_DEFAULT_viewerHighlightLabel="Highlight",LYRA_DEFAULT_zoomControls="Zoom controls",LYRA_DEFAULT_zoomableFrameLabel="Zoomable content";export{LYRA_DEFAULT_animatedImageDefaultAlt,LYRA_DEFAULT_attachmentAdd,LYRA_DEFAULT_attachmentMenuAudio,LYRA_DEFAULT_attachmentMenuCamera,LYRA_DEFAULT_attachmentMenuFiles,LYRA_DEFAULT_attachmentMenuImage,LYRA_DEFAULT_attachmentPreviewFile,LYRA_DEFAULT_attachmentPreviewName,LYRA_DEFAULT_attachmentRetryWithContext,LYRA_DEFAULT_attachmentTriggerAudio,LYRA_DEFAULT_attachmentTriggerCamera,LYRA_DEFAULT_attachmentTriggerFiles,LYRA_DEFAULT_attachmentTriggerImage,LYRA_DEFAULT_attachmentUploadFailed,LYRA_DEFAULT_attachmentUploadingIndeterminate,LYRA_DEFAULT_attachmentUploadingProgress,LYRA_DEFAULT_attachmentUploadingWithContext,LYRA_DEFAULT_avPlayerFailedToLoad,LYRA_DEFAULT_avPlayerLabel,LYRA_DEFAULT_avPlayerPlaybackRate,LYRA_DEFAULT_avPlayerPosition,LYRA_DEFAULT_avPlayerRateOption,LYRA_DEFAULT_avPlayerTimeline,LYRA_DEFAULT_avPlayerTranscript,LYRA_DEFAULT_avPlayerTranscriptUnavailable,LYRA_DEFAULT_avPlayerWaveformUnavailable,LYRA_DEFAULT_dropzoneRejectedType,LYRA_DEFAULT_dropzoneReleaseToAdd,LYRA_DEFAULT_fileInputAcceptedMany,LYRA_DEFAULT_fileInputAcceptedOne,LYRA_DEFAULT_fileInputDefaultLabel,LYRA_DEFAULT_fileInputFolderRejected,LYRA_DEFAULT_fileInputRejectedCount,LYRA_DEFAULT_fileInputRejectedLimit,LYRA_DEFAULT_fileInputRejectedMany,LYRA_DEFAULT_fileInputRejectedMaxFiles,LYRA_DEFAULT_fileInputRejectedMaxTotalSize,LYRA_DEFAULT_fileInputRejectedOne,LYRA_DEFAULT_fileInputRejectedRead,LYRA_DEFAULT_fileInputRejectedSize,LYRA_DEFAULT_fileInputRejectedType,LYRA_DEFAULT_fileTypeArchive,LYRA_DEFAULT_fileTypeAudio,LYRA_DEFAULT_fileTypeCode,LYRA_DEFAULT_fileTypeFile,LYRA_DEFAULT_fileTypeImage,LYRA_DEFAULT_fileTypePdf,LYRA_DEFAULT_fileTypePresentation,LYRA_DEFAULT_fileTypeSpreadsheet,LYRA_DEFAULT_fileTypeText,LYRA_DEFAULT_fileTypeVideo,LYRA_DEFAULT_fileTypeWithSize,LYRA_DEFAULT_fileTypeWord,LYRA_DEFAULT_flagLoadError,LYRA_DEFAULT_imageComparerLabel,LYRA_DEFAULT_imageViewerAnnotate,LYRA_DEFAULT_imageViewerAnnotationAdded,LYRA_DEFAULT_imageViewerAnnotationBoxPosition,LYRA_DEFAULT_imageViewerAnnotationCancelled,LYRA_DEFAULT_imageViewerAnnotationHint,LYRA_DEFAULT_imageViewerFailedToLoad,LYRA_DEFAULT_imageViewerFitActual,LYRA_DEFAULT_imageViewerFitContain,LYRA_DEFAULT_imageViewerFitLabel,LYRA_DEFAULT_imageViewerFitWidth,LYRA_DEFAULT_imageViewerHighlightsLabel,LYRA_DEFAULT_imageViewerLabel,LYRA_DEFAULT_imageViewerRotate,LYRA_DEFAULT_imageViewerUnlabeledHighlight,LYRA_DEFAULT_lightboxImagePosition,LYRA_DEFAULT_lightboxLabel,LYRA_DEFAULT_mapActivate,LYRA_DEFAULT_mapCancelDrawing,LYRA_DEFAULT_mapCancelPick,LYRA_DEFAULT_mapCompleteDrawing,LYRA_DEFAULT_mapControlUnavailable,LYRA_DEFAULT_mapDrawAtCenter,LYRA_DEFAULT_mapDrawingArea,LYRA_DEFAULT_mapDrawingControls,LYRA_DEFAULT_mapDrawingDuplicateVertex,LYRA_DEFAULT_mapDrawingEditInstructions,LYRA_DEFAULT_mapDrawingInvalidCoordinate,LYRA_DEFAULT_mapDrawingInvalidGeometry,LYRA_DEFAULT_mapDrawingLength,LYRA_DEFAULT_mapDrawingTooFewVertices,LYRA_DEFAULT_mapDrawingUnavailable,LYRA_DEFAULT_mapDrawingVertex,LYRA_DEFAULT_mapDrawingVertexLimit,LYRA_DEFAULT_mapDrawingVertices,LYRA_DEFAULT_mapExportUnavailable,LYRA_DEFAULT_mapFeatureStateUnavailable,LYRA_DEFAULT_mapFeedback,LYRA_DEFAULT_mapGeolocateError,LYRA_DEFAULT_mapGeolocateFindLocation,LYRA_DEFAULT_mapGeolocateOutOfBounds,LYRA_DEFAULT_mapGeolocatePermissionDenied,LYRA_DEFAULT_mapGeolocatePositionUnavailable,LYRA_DEFAULT_mapGeolocateTimeout,LYRA_DEFAULT_mapGeolocateUnavailable,LYRA_DEFAULT_mapHashConflict,LYRA_DEFAULT_mapHashInvalid,LYRA_DEFAULT_mapInitializationFailed,LYRA_DEFAULT_mapLegend,LYRA_DEFAULT_mapMarker,LYRA_DEFAULT_mapMissingLibrary,LYRA_DEFAULT_mapPickAtCenter,LYRA_DEFAULT_mapResetNorth,LYRA_DEFAULT_mapScaleFeet,LYRA_DEFAULT_mapScaleKilometers,LYRA_DEFAULT_mapScaleMeters,LYRA_DEFAULT_mapScaleMiles,LYRA_DEFAULT_mapScaleNauticalMiles,LYRA_DEFAULT_mapSquareKilometers,LYRA_DEFAULT_mapSquareMeters,LYRA_DEFAULT_mapStyleRequired,LYRA_DEFAULT_mapToggleAttribution,LYRA_DEFAULT_mapUndoDrawing,LYRA_DEFAULT_mapWebglUnavailable,LYRA_DEFAULT_mediaCardImageAttachment,LYRA_DEFAULT_mediaCardOpenFileAttachment,LYRA_DEFAULT_mediaCardOpenImageAttachment,LYRA_DEFAULT_mediaCardOpenName,LYRA_DEFAULT_mediaCardOpenVideoAttachment,LYRA_DEFAULT_mediaCardUntitledFile,LYRA_DEFAULT_mediaCardVideoAttachment,LYRA_DEFAULT_panoramaHotspotsLabel,LYRA_DEFAULT_panoramaInstructions,LYRA_DEFAULT_pause,LYRA_DEFAULT_pauseWithContext,LYRA_DEFAULT_play,LYRA_DEFAULT_playWithContext,LYRA_DEFAULT_playbackPosition,LYRA_DEFAULT_playbackStepPosition,LYRA_DEFAULT_qrCodeGenerationFailed,LYRA_DEFAULT_qrCodeMissingLibrary,LYRA_DEFAULT_videoCaptions,LYRA_DEFAULT_videoCaptionsOff,LYRA_DEFAULT_videoEnterFullscreen,LYRA_DEFAULT_videoExitFullscreen,LYRA_DEFAULT_videoExitPictureInPicture,LYRA_DEFAULT_videoMute,LYRA_DEFAULT_videoPictureInPicture,LYRA_DEFAULT_videoPlayerLabel,LYRA_DEFAULT_videoPlaylistLabel,LYRA_DEFAULT_videoPlaylistUntitled,LYRA_DEFAULT_videoUnmute,LYRA_DEFAULT_videoVolume,LYRA_DEFAULT_viewerHighlightLabel,LYRA_DEFAULT_zoomControls,LYRA_DEFAULT_zoomableFrameLabel};
|
|
1
|
+
const LYRA_DEFAULT_animatedImageDefaultAlt="Animated image",LYRA_DEFAULT_attachmentAdd="Add attachment",LYRA_DEFAULT_attachmentMenuAudio="Record audio",LYRA_DEFAULT_attachmentMenuCamera="Take a photo",LYRA_DEFAULT_attachmentMenuFiles="Upload files",LYRA_DEFAULT_attachmentMenuImage="Upload a photo",LYRA_DEFAULT_attachmentPreviewFile="Preview file",LYRA_DEFAULT_attachmentPreviewName="Preview {name}",LYRA_DEFAULT_attachmentRetryWithContext="Retry {label}",LYRA_DEFAULT_attachmentTriggerAudio="Record audio",LYRA_DEFAULT_attachmentTriggerCamera="Use camera",LYRA_DEFAULT_attachmentTriggerFiles="Attach files",LYRA_DEFAULT_attachmentTriggerImage="Attach an image",LYRA_DEFAULT_attachmentUploadFailed="Upload failed",LYRA_DEFAULT_attachmentUploadingIndeterminate="Uploading…",LYRA_DEFAULT_attachmentUploadingProgress="Uploading {percent}%",LYRA_DEFAULT_attachmentUploadingWithContext="Uploading {label}",LYRA_DEFAULT_avPlayerFailedToLoad="The media failed to load.",LYRA_DEFAULT_avPlayerLabel="Audio/video player",LYRA_DEFAULT_avPlayerPlaybackRate="Playback speed",LYRA_DEFAULT_avPlayerPosition="{current} of {duration}",LYRA_DEFAULT_avPlayerRateOption="{rate}×",LYRA_DEFAULT_avPlayerTimeline="Seek",LYRA_DEFAULT_avPlayerTranscript="Transcript",LYRA_DEFAULT_avPlayerTranscriptUnavailable="Transcript data is unavailable.",LYRA_DEFAULT_avPlayerWaveformUnavailable="Waveform data is unavailable or does not match this media.",LYRA_DEFAULT_dropzoneRejectedType="This file type is not accepted.",LYRA_DEFAULT_dropzoneReleaseToAdd="Release to add the file.",LYRA_DEFAULT_fileInputAcceptedMany="{count} files added.",LYRA_DEFAULT_fileInputAcceptedOne="{count} file added.",LYRA_DEFAULT_fileInputDefaultLabel="Drop files here or click to browse",LYRA_DEFAULT_fileInputFolderRejected="Folders are not accepted here.",LYRA_DEFAULT_fileInputRejectedCount="{filename}: only one file can be selected at a time.",LYRA_DEFAULT_fileInputRejectedLimit="{filename}: the folder contains too many entries.",LYRA_DEFAULT_fileInputRejectedMany="{count} files rejected.",LYRA_DEFAULT_fileInputRejectedMaxFiles="{filename}: the maximum number of files has been reached.",LYRA_DEFAULT_fileInputRejectedMaxTotalSize="{filename}: adding this file would exceed the total size limit.",LYRA_DEFAULT_fileInputRejectedOne="{count} file rejected.",LYRA_DEFAULT_fileInputRejectedRead="{filename}: the file could not be read.",LYRA_DEFAULT_fileInputRejectedSize="{filename}: this file is too large.",LYRA_DEFAULT_fileInputRejectedType="{filename}: this file type is not accepted.",LYRA_DEFAULT_fileTypeArchive="Archive",LYRA_DEFAULT_fileTypeAudio="Audio",LYRA_DEFAULT_fileTypeCode="Code file",LYRA_DEFAULT_fileTypeFile="File",LYRA_DEFAULT_fileTypeImage="Image",LYRA_DEFAULT_fileTypePdf="PDF",LYRA_DEFAULT_fileTypePresentation="Presentation",LYRA_DEFAULT_fileTypeSpreadsheet="Spreadsheet",LYRA_DEFAULT_fileTypeText="Text file",LYRA_DEFAULT_fileTypeVideo="Video",LYRA_DEFAULT_fileTypeWithSize="{label} ({size})",LYRA_DEFAULT_fileTypeWord="Word document",LYRA_DEFAULT_flagLoadError="Flag unavailable",LYRA_DEFAULT_imageComparerLabel="Image comparison",LYRA_DEFAULT_imageViewerAnnotate="Annotate",LYRA_DEFAULT_imageViewerAnnotationAdded="Region added.",LYRA_DEFAULT_imageViewerAnnotationBoxPosition="Region at {x} percent, {y} percent, {width} by {height} percent.",LYRA_DEFAULT_imageViewerAnnotationCancelled="Region cancelled.",LYRA_DEFAULT_imageViewerAnnotationHint="Annotation mode on. Press Enter to place a region, then use arrow keys to move it, Shift plus arrow keys to resize it, Enter to save, or Escape to cancel.",LYRA_DEFAULT_imageViewerFailedToLoad="The image failed to load.",LYRA_DEFAULT_imageViewerFitActual="Actual size",LYRA_DEFAULT_imageViewerFitContain="Fit image",LYRA_DEFAULT_imageViewerFitLabel="Fit",LYRA_DEFAULT_imageViewerFitWidth="Fit width",LYRA_DEFAULT_imageViewerHighlightsLabel="Highlighted regions",LYRA_DEFAULT_imageViewerLabel="Image viewer",LYRA_DEFAULT_imageViewerRotate="Rotate",LYRA_DEFAULT_imageViewerUnlabeledHighlight="Highlight {index}",LYRA_DEFAULT_lightboxImagePosition="Image {index} of {total}",LYRA_DEFAULT_lightboxLabel="Image viewer",LYRA_DEFAULT_mapActivate="Show interactive map",LYRA_DEFAULT_mapCancelDrawing="Cancel drawing",LYRA_DEFAULT_mapCancelPick="Cancel picking",LYRA_DEFAULT_mapCompleteDrawing="Finish drawing",LYRA_DEFAULT_mapControlUnavailable="A map control could not be loaded",LYRA_DEFAULT_mapDrawAtCenter="Add vertex at map center",LYRA_DEFAULT_mapDrawingArea="Area {value}",LYRA_DEFAULT_mapDrawingControls="Drawing controls",LYRA_DEFAULT_mapDrawingDuplicateVertex="Choose a different vertex",LYRA_DEFAULT_mapDrawingEditInstructions="Use arrow keys to move this vertex; hold Shift for larger steps. Page Up and Page Down select vertices. Home and End select the first and last visible vertex.",LYRA_DEFAULT_mapDrawingInvalidCoordinate="Choose a valid map coordinate",LYRA_DEFAULT_mapDrawingInvalidGeometry="Choose vertices that form a valid simple shape",LYRA_DEFAULT_mapDrawingLength="Length {value}",LYRA_DEFAULT_mapDrawingTooFewVertices="Add at least {count} vertices before finishing",LYRA_DEFAULT_mapDrawingUnavailable="Drawing could not be updated",LYRA_DEFAULT_mapDrawingVertex="Vertex {index}",LYRA_DEFAULT_mapDrawingVertexLimit="A drawing can contain at most {count} vertices",LYRA_DEFAULT_mapDrawingVertices="Vertices: {count}",LYRA_DEFAULT_mapExportUnavailable="Map image could not be exported",LYRA_DEFAULT_mapFeatureStateUnavailable="Feature highlighting could not be updated",LYRA_DEFAULT_mapFeedback="Map feedback",LYRA_DEFAULT_mapGeolocateError="Your location could not be shown",LYRA_DEFAULT_mapGeolocateFindLocation="Find my location",LYRA_DEFAULT_mapGeolocateOutOfBounds="Your location is outside the map bounds",LYRA_DEFAULT_mapGeolocatePermissionDenied="Location access was denied",LYRA_DEFAULT_mapGeolocatePositionUnavailable="Your location could not be determined",LYRA_DEFAULT_mapGeolocateTimeout="The location request timed out",LYRA_DEFAULT_mapGeolocateUnavailable="Location is unavailable",LYRA_DEFAULT_mapGlobe="Globe",LYRA_DEFAULT_mapHashConflict="Another map is using this URL field",LYRA_DEFAULT_mapHashInvalid="The map URL field name is invalid",LYRA_DEFAULT_mapInitializationFailed="The map could not be initialized.",LYRA_DEFAULT_mapLegend="Map legend",LYRA_DEFAULT_mapMarker="Map marker",LYRA_DEFAULT_mapMissingLibrary='This component needs the optional "{package}" package installed to render the map.',LYRA_DEFAULT_mapPickAtCenter="Pick at map center",LYRA_DEFAULT_mapResetNorth="Reset bearing to north",LYRA_DEFAULT_mapScaleFeet="ft",LYRA_DEFAULT_mapScaleKilometers="km",LYRA_DEFAULT_mapScaleMeters="m",LYRA_DEFAULT_mapScaleMiles="mi",LYRA_DEFAULT_mapScaleNauticalMiles="nm",LYRA_DEFAULT_mapScene="Scene objects",LYRA_DEFAULT_mapSceneArc="Arc",LYRA_DEFAULT_mapSceneEmpty="No scene objects",LYRA_DEFAULT_mapSceneHide="Hide scene objects",LYRA_DEFAULT_mapSceneInvalid="The scene update is invalid. Previously accepted objects are unchanged.",LYRA_DEFAULT_mapSceneLimit="The scene update exceeds a limit. Previously accepted objects are unchanged.",LYRA_DEFAULT_mapSceneMarker="Marker",LYRA_DEFAULT_mapSceneModel="Model",LYRA_DEFAULT_mapSceneNext="Next scene page",LYRA_DEFAULT_mapScenePage="Page {page} of {pages}",LYRA_DEFAULT_mapScenePartial="Some scene objects are not drawn, or are drawn without their altitude.",LYRA_DEFAULT_mapScenePath="Path",LYRA_DEFAULT_mapScenePrevious="Previous scene page",LYRA_DEFAULT_mapSceneShow="Show scene objects",LYRA_DEFAULT_mapSceneUnavailable="Scene rendering is unavailable.",LYRA_DEFAULT_mapSquareKilometers="{value} km²",LYRA_DEFAULT_mapSquareMeters="{value} m²",LYRA_DEFAULT_mapStyleRequired="Provide a map style to render the map.",LYRA_DEFAULT_mapTerrain="Terrain",LYRA_DEFAULT_mapToggleAttribution="Toggle attribution",LYRA_DEFAULT_mapUndoDrawing="Undo last vertex",LYRA_DEFAULT_mapWebglUnavailable="This browser cannot provide the graphics support needed to render the map.",LYRA_DEFAULT_mediaCardImageAttachment="Image attachment",LYRA_DEFAULT_mediaCardOpenFileAttachment="Open file attachment",LYRA_DEFAULT_mediaCardOpenImageAttachment="Open image attachment",LYRA_DEFAULT_mediaCardOpenName="Open {name}",LYRA_DEFAULT_mediaCardOpenVideoAttachment="Open video attachment",LYRA_DEFAULT_mediaCardUntitledFile="Untitled file",LYRA_DEFAULT_mediaCardVideoAttachment="Video attachment",LYRA_DEFAULT_panoramaHotspotsLabel="Panorama hotspots",LYRA_DEFAULT_panoramaInstructions="Use arrow keys to look around, plus and minus to zoom, and Home to reset the view.",LYRA_DEFAULT_pause="Pause",LYRA_DEFAULT_pauseWithContext="Pause {name}",LYRA_DEFAULT_play="Play",LYRA_DEFAULT_playWithContext="Play {name}",LYRA_DEFAULT_playbackPosition="Playback position",LYRA_DEFAULT_playbackStepPosition="Step {index} of {total}",LYRA_DEFAULT_qrCodeGenerationFailed="This value could not be encoded as a QR code.",LYRA_DEFAULT_qrCodeMissingLibrary='This component needs the optional "qrcode" package installed to render QR codes.',LYRA_DEFAULT_videoCaptions="Captions",LYRA_DEFAULT_videoCaptionsOff="Off",LYRA_DEFAULT_videoEnterFullscreen="Enter fullscreen",LYRA_DEFAULT_videoExitFullscreen="Exit fullscreen",LYRA_DEFAULT_videoExitPictureInPicture="Exit picture in picture",LYRA_DEFAULT_videoMute="Mute",LYRA_DEFAULT_videoPictureInPicture="Enter picture in picture",LYRA_DEFAULT_videoPlayerLabel="Video player",LYRA_DEFAULT_videoPlaylistLabel="Video playlist",LYRA_DEFAULT_videoPlaylistUntitled="Video {position}",LYRA_DEFAULT_videoUnmute="Unmute",LYRA_DEFAULT_videoVolume="Volume",LYRA_DEFAULT_viewerHighlightLabel="Highlight",LYRA_DEFAULT_zoomControls="Zoom controls",LYRA_DEFAULT_zoomableFrameLabel="Zoomable content";export{LYRA_DEFAULT_animatedImageDefaultAlt,LYRA_DEFAULT_attachmentAdd,LYRA_DEFAULT_attachmentMenuAudio,LYRA_DEFAULT_attachmentMenuCamera,LYRA_DEFAULT_attachmentMenuFiles,LYRA_DEFAULT_attachmentMenuImage,LYRA_DEFAULT_attachmentPreviewFile,LYRA_DEFAULT_attachmentPreviewName,LYRA_DEFAULT_attachmentRetryWithContext,LYRA_DEFAULT_attachmentTriggerAudio,LYRA_DEFAULT_attachmentTriggerCamera,LYRA_DEFAULT_attachmentTriggerFiles,LYRA_DEFAULT_attachmentTriggerImage,LYRA_DEFAULT_attachmentUploadFailed,LYRA_DEFAULT_attachmentUploadingIndeterminate,LYRA_DEFAULT_attachmentUploadingProgress,LYRA_DEFAULT_attachmentUploadingWithContext,LYRA_DEFAULT_avPlayerFailedToLoad,LYRA_DEFAULT_avPlayerLabel,LYRA_DEFAULT_avPlayerPlaybackRate,LYRA_DEFAULT_avPlayerPosition,LYRA_DEFAULT_avPlayerRateOption,LYRA_DEFAULT_avPlayerTimeline,LYRA_DEFAULT_avPlayerTranscript,LYRA_DEFAULT_avPlayerTranscriptUnavailable,LYRA_DEFAULT_avPlayerWaveformUnavailable,LYRA_DEFAULT_dropzoneRejectedType,LYRA_DEFAULT_dropzoneReleaseToAdd,LYRA_DEFAULT_fileInputAcceptedMany,LYRA_DEFAULT_fileInputAcceptedOne,LYRA_DEFAULT_fileInputDefaultLabel,LYRA_DEFAULT_fileInputFolderRejected,LYRA_DEFAULT_fileInputRejectedCount,LYRA_DEFAULT_fileInputRejectedLimit,LYRA_DEFAULT_fileInputRejectedMany,LYRA_DEFAULT_fileInputRejectedMaxFiles,LYRA_DEFAULT_fileInputRejectedMaxTotalSize,LYRA_DEFAULT_fileInputRejectedOne,LYRA_DEFAULT_fileInputRejectedRead,LYRA_DEFAULT_fileInputRejectedSize,LYRA_DEFAULT_fileInputRejectedType,LYRA_DEFAULT_fileTypeArchive,LYRA_DEFAULT_fileTypeAudio,LYRA_DEFAULT_fileTypeCode,LYRA_DEFAULT_fileTypeFile,LYRA_DEFAULT_fileTypeImage,LYRA_DEFAULT_fileTypePdf,LYRA_DEFAULT_fileTypePresentation,LYRA_DEFAULT_fileTypeSpreadsheet,LYRA_DEFAULT_fileTypeText,LYRA_DEFAULT_fileTypeVideo,LYRA_DEFAULT_fileTypeWithSize,LYRA_DEFAULT_fileTypeWord,LYRA_DEFAULT_flagLoadError,LYRA_DEFAULT_imageComparerLabel,LYRA_DEFAULT_imageViewerAnnotate,LYRA_DEFAULT_imageViewerAnnotationAdded,LYRA_DEFAULT_imageViewerAnnotationBoxPosition,LYRA_DEFAULT_imageViewerAnnotationCancelled,LYRA_DEFAULT_imageViewerAnnotationHint,LYRA_DEFAULT_imageViewerFailedToLoad,LYRA_DEFAULT_imageViewerFitActual,LYRA_DEFAULT_imageViewerFitContain,LYRA_DEFAULT_imageViewerFitLabel,LYRA_DEFAULT_imageViewerFitWidth,LYRA_DEFAULT_imageViewerHighlightsLabel,LYRA_DEFAULT_imageViewerLabel,LYRA_DEFAULT_imageViewerRotate,LYRA_DEFAULT_imageViewerUnlabeledHighlight,LYRA_DEFAULT_lightboxImagePosition,LYRA_DEFAULT_lightboxLabel,LYRA_DEFAULT_mapActivate,LYRA_DEFAULT_mapCancelDrawing,LYRA_DEFAULT_mapCancelPick,LYRA_DEFAULT_mapCompleteDrawing,LYRA_DEFAULT_mapControlUnavailable,LYRA_DEFAULT_mapDrawAtCenter,LYRA_DEFAULT_mapDrawingArea,LYRA_DEFAULT_mapDrawingControls,LYRA_DEFAULT_mapDrawingDuplicateVertex,LYRA_DEFAULT_mapDrawingEditInstructions,LYRA_DEFAULT_mapDrawingInvalidCoordinate,LYRA_DEFAULT_mapDrawingInvalidGeometry,LYRA_DEFAULT_mapDrawingLength,LYRA_DEFAULT_mapDrawingTooFewVertices,LYRA_DEFAULT_mapDrawingUnavailable,LYRA_DEFAULT_mapDrawingVertex,LYRA_DEFAULT_mapDrawingVertexLimit,LYRA_DEFAULT_mapDrawingVertices,LYRA_DEFAULT_mapExportUnavailable,LYRA_DEFAULT_mapFeatureStateUnavailable,LYRA_DEFAULT_mapFeedback,LYRA_DEFAULT_mapGeolocateError,LYRA_DEFAULT_mapGeolocateFindLocation,LYRA_DEFAULT_mapGeolocateOutOfBounds,LYRA_DEFAULT_mapGeolocatePermissionDenied,LYRA_DEFAULT_mapGeolocatePositionUnavailable,LYRA_DEFAULT_mapGeolocateTimeout,LYRA_DEFAULT_mapGeolocateUnavailable,LYRA_DEFAULT_mapGlobe,LYRA_DEFAULT_mapHashConflict,LYRA_DEFAULT_mapHashInvalid,LYRA_DEFAULT_mapInitializationFailed,LYRA_DEFAULT_mapLegend,LYRA_DEFAULT_mapMarker,LYRA_DEFAULT_mapMissingLibrary,LYRA_DEFAULT_mapPickAtCenter,LYRA_DEFAULT_mapResetNorth,LYRA_DEFAULT_mapScaleFeet,LYRA_DEFAULT_mapScaleKilometers,LYRA_DEFAULT_mapScaleMeters,LYRA_DEFAULT_mapScaleMiles,LYRA_DEFAULT_mapScaleNauticalMiles,LYRA_DEFAULT_mapScene,LYRA_DEFAULT_mapSceneArc,LYRA_DEFAULT_mapSceneEmpty,LYRA_DEFAULT_mapSceneHide,LYRA_DEFAULT_mapSceneInvalid,LYRA_DEFAULT_mapSceneLimit,LYRA_DEFAULT_mapSceneMarker,LYRA_DEFAULT_mapSceneModel,LYRA_DEFAULT_mapSceneNext,LYRA_DEFAULT_mapScenePage,LYRA_DEFAULT_mapScenePartial,LYRA_DEFAULT_mapScenePath,LYRA_DEFAULT_mapScenePrevious,LYRA_DEFAULT_mapSceneShow,LYRA_DEFAULT_mapSceneUnavailable,LYRA_DEFAULT_mapSquareKilometers,LYRA_DEFAULT_mapSquareMeters,LYRA_DEFAULT_mapStyleRequired,LYRA_DEFAULT_mapTerrain,LYRA_DEFAULT_mapToggleAttribution,LYRA_DEFAULT_mapUndoDrawing,LYRA_DEFAULT_mapWebglUnavailable,LYRA_DEFAULT_mediaCardImageAttachment,LYRA_DEFAULT_mediaCardOpenFileAttachment,LYRA_DEFAULT_mediaCardOpenImageAttachment,LYRA_DEFAULT_mediaCardOpenName,LYRA_DEFAULT_mediaCardOpenVideoAttachment,LYRA_DEFAULT_mediaCardUntitledFile,LYRA_DEFAULT_mediaCardVideoAttachment,LYRA_DEFAULT_panoramaHotspotsLabel,LYRA_DEFAULT_panoramaInstructions,LYRA_DEFAULT_pause,LYRA_DEFAULT_pauseWithContext,LYRA_DEFAULT_play,LYRA_DEFAULT_playWithContext,LYRA_DEFAULT_playbackPosition,LYRA_DEFAULT_playbackStepPosition,LYRA_DEFAULT_qrCodeGenerationFailed,LYRA_DEFAULT_qrCodeMissingLibrary,LYRA_DEFAULT_videoCaptions,LYRA_DEFAULT_videoCaptionsOff,LYRA_DEFAULT_videoEnterFullscreen,LYRA_DEFAULT_videoExitFullscreen,LYRA_DEFAULT_videoExitPictureInPicture,LYRA_DEFAULT_videoMute,LYRA_DEFAULT_videoPictureInPicture,LYRA_DEFAULT_videoPlayerLabel,LYRA_DEFAULT_videoPlaylistLabel,LYRA_DEFAULT_videoPlaylistUntitled,LYRA_DEFAULT_videoUnmute,LYRA_DEFAULT_videoVolume,LYRA_DEFAULT_viewerHighlightLabel,LYRA_DEFAULT_zoomControls,LYRA_DEFAULT_zoomableFrameLabel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const LYRA_DEFAULT_chunkInspectorEmpty="No chunks retrieved",LYRA_DEFAULT_chunkInspectorLabel="Retrieved chunks",LYRA_DEFAULT_chunkInspectorOpenOrdinal="Result {index} of {total}",LYRA_DEFAULT_chunkScore="Relevance {percent}%",LYRA_DEFAULT_citation="Citation {index}",LYRA_DEFAULT_citationHighConfidence="High confidence",LYRA_DEFAULT_citationLowConfidence="Low confidence",LYRA_DEFAULT_citationMediumConfidence="Medium confidence",LYRA_DEFAULT_citationUnverified="Unverified",LYRA_DEFAULT_citationVerified="Verified",LYRA_DEFAULT_citationWithCustomLabel="Citation {index}, {label}",LYRA_DEFAULT_citationWithStatus="Citation {index}, {status}",LYRA_DEFAULT_claimEvidenceClaimsLimit="Only the first {count} claims are shown.",LYRA_DEFAULT_claimEvidenceConfidence="{percent} confidence",LYRA_DEFAULT_claimEvidenceContradicted="Contradicted",LYRA_DEFAULT_claimEvidenceEmpty="No claim-level evidence available",LYRA_DEFAULT_claimEvidenceLabel="Claim evidence",LYRA_DEFAULT_claimEvidencePartiallySupported="Partially supported",LYRA_DEFAULT_claimEvidenceSupported="Supported",LYRA_DEFAULT_claimEvidenceUnsupported="Unsupported",LYRA_DEFAULT_communityDrillIn="Explore community",LYRA_DEFAULT_communityMemberCount="{count} members",LYRA_DEFAULT_embeddingExplorerEmpty="No embedding points",LYRA_DEFAULT_embeddingExplorerLabel="Embedding explorer",LYRA_DEFAULT_embeddingExplorerPoint="{label}, embedding point {index}",LYRA_DEFAULT_embeddingExplorerPointLimit="Showing {shown} of {total} points.",LYRA_DEFAULT_embeddingExplorerSpatialBin="{count} points in density region: {bounds}",LYRA_DEFAULT_embeddingExplorerSpatialBounds="{minX} to {maxX} horizontally; {minY} to {maxY} vertically",LYRA_DEFAULT_embeddingExplorerSpatialError="The spatial source or viewport is invalid or unavailable.",LYRA_DEFAULT_embeddingExplorerSpatialLoading="Loading spatial data…",LYRA_DEFAULT_embeddingExplorerSpatialSummary="{total} points in the full source ({global}). {matched} points in the viewport ({viewport}). Density regions count all matches; point overlays do not add to these counts.",LYRA_DEFAULT_entityChipWithType="{label}, {type}",LYRA_DEFAULT_entityCommunity="Community",LYRA_DEFAULT_entityDegree="Connections",LYRA_DEFAULT_focusInGraph="Focus in graph",LYRA_DEFAULT_graphCommunity="Community {label}, {count} nodes",LYRA_DEFAULT_graphDataList="Graph data",LYRA_DEFAULT_graphDataListLimit="Showing {shown} of {total} graph items.",LYRA_DEFAULT_graphDiagram="Node-link diagram with {nodeCount} nodes and {linkCount} links",LYRA_DEFAULT_graphEdgeLimit="Showing {shown} of {total} links.",LYRA_DEFAULT_graphExpandableItem="{item}, expandable",LYRA_DEFAULT_graphExplorerAllTypesHidden="All configured node types are hidden.",LYRA_DEFAULT_graphExplorerClearTypes="Show all node types",LYRA_DEFAULT_graphExplorerFindPath="Find path",LYRA_DEFAULT_graphExplorerLabel="Knowledge graph explorer",LYRA_DEFAULT_graphExplorerPin="Pin",LYRA_DEFAULT_graphExplorerPinned="{label} pinned",LYRA_DEFAULT_graphExplorerPinnedHeading="Pinned",LYRA_DEFAULT_graphExplorerSearchLimit="Showing {shown} of {total} matches.",LYRA_DEFAULT_graphExplorerSearchPlaceholder="Search entities…",LYRA_DEFAULT_graphExplorerSearchResultsLabel="Search results",LYRA_DEFAULT_graphExplorerUnpin="Unpin",LYRA_DEFAULT_graphExplorerUnpinned="{label} unpinned",LYRA_DEFAULT_graphFit="Fit graph",LYRA_DEFAULT_graphItemAnnouncement="{item} ({index} of {total})",LYRA_DEFAULT_graphLegendLabel="Graph legend",LYRA_DEFAULT_graphLink="Link from {source} to {target}",LYRA_DEFAULT_graphMissingLibrary='This component needs the optional "d3" package installed to render the graph.',LYRA_DEFAULT_graphNode="Node {label}",LYRA_DEFAULT_graphNodeFocused="Centered on {label}",LYRA_DEFAULT_graphNodeLimit="Showing {shown} of {total} nodes.",LYRA_DEFAULT_graphNodesHidden="{hidden} of {total} nodes hidden",LYRA_DEFAULT_graphOrbitDown="Orbit down",LYRA_DEFAULT_graphOrbitLeft="Orbit left",LYRA_DEFAULT_graphOrbitRight="Orbit right",LYRA_DEFAULT_graphOrbitUp="Orbit up",LYRA_DEFAULT_graphSelectionCount="{count} selected",LYRA_DEFAULT_graphSpatialControls="Graph view and camera controls",LYRA_DEFAULT_graphSpatialInstructions="Drag to orbit; Shift-drag to pan. Use arrow keys to orbit, Shift-arrow keys to pan, plus or minus to zoom, and Home to fit. Use List view to explore and activate graph items.",LYRA_DEFAULT_graphSpatialPage="Graph items: {total}. Page {page} of {pages}.",LYRA_DEFAULT_graphSpatialUnavailable="The 3D drawing surface is unavailable. Graph items are available in List view.",LYRA_DEFAULT_graphTypedNode="{label} ({type})",LYRA_DEFAULT_graphView3d="3D view",LYRA_DEFAULT_graphViewList="List view",LYRA_DEFAULT_groundingSummaryCitationsLimit="Only the first {count} citations are shown.",LYRA_DEFAULT_groundingSummaryConfidenceLabel="Confidence",LYRA_DEFAULT_groundingSummaryCoverageLabel="Citation coverage",LYRA_DEFAULT_groundingSummaryEmpty="No grounding assessment available",LYRA_DEFAULT_groundingSummaryEvidenceHeading="Evidence",LYRA_DEFAULT_groundingSummaryEvidenceSpan="Characters {start}–{end}",LYRA_DEFAULT_groundingSummaryLabel="Grounding summary",LYRA_DEFAULT_groundingSummarySupportedLabel="Supported claims",LYRA_DEFAULT_groundingSummaryUnsupportedLabel="Unsupported claims",LYRA_DEFAULT_groundingSummaryWarningsHeading="Warnings",LYRA_DEFAULT_ingestionAttemptCount="Attempt {count}",LYRA_DEFAULT_ingestionCancelWithContext="Cancel {label}",LYRA_DEFAULT_ingestionChunkCount={one:"{count} chunk",other:"{count} chunks"},LYRA_DEFAULT_ingestionEmbeddedOfTotal="{embedded} of {total} chunks embedded",LYRA_DEFAULT_ingestionItemProgressLabel="{name} — {stage}",LYRA_DEFAULT_ingestionQueueEmpty="No documents queued",LYRA_DEFAULT_ingestionQueueInputLimit="Only the first {count} of {total} queue items are retained.",LYRA_DEFAULT_ingestionQueueLabel="Ingestion queue",LYRA_DEFAULT_ingestionRetryWithContext="Retry {label}",LYRA_DEFAULT_ingestionStageCancelled="Cancelled",LYRA_DEFAULT_ingestionStageChunking="Chunking",LYRA_DEFAULT_ingestionStageDone="Done",LYRA_DEFAULT_ingestionStageEmbedding="Embedding",LYRA_DEFAULT_ingestionStageExtracting="Extracting text",LYRA_DEFAULT_ingestionStageFailed="Failed",LYRA_DEFAULT_ingestionStageIndexing="Indexing",LYRA_DEFAULT_ingestionStageQueued="Queued",LYRA_DEFAULT_ingestionStageUnknown="Unknown stage",LYRA_DEFAULT_ingestionStageUploading="Uploading",LYRA_DEFAULT_knowledgeBaseActionsColumn="Actions",LYRA_DEFAULT_knowledgeBaseAdminIngestionTab="Ingestion",LYRA_DEFAULT_knowledgeBaseAdminInputLimit="{collection}: only the first {count} of {total} entries are retained.",LYRA_DEFAULT_knowledgeBaseAdminLabel="Knowledge base administration",LYRA_DEFAULT_knowledgeBaseAdminSourcesTab="Sources",LYRA_DEFAULT_knowledgeBaseCreateSource="Add source",LYRA_DEFAULT_knowledgeBaseDeleteAction="Delete source",LYRA_DEFAULT_knowledgeBaseDocumentCount="{count} indexed",LYRA_DEFAULT_knowledgeBaseEmptyDescription="Add a source to start indexing content.",LYRA_DEFAULT_knowledgeBaseEmptyHeading="No knowledge sources yet",LYRA_DEFAULT_knowledgeBaseHeading="Knowledge base",LYRA_DEFAULT_knowledgeBaseHealthColumn="Indexing health",LYRA_DEFAULT_knowledgeBaseHealthDegraded="Degraded",LYRA_DEFAULT_knowledgeBaseHealthFailed="Failed",LYRA_DEFAULT_knowledgeBaseHealthHealthy="Healthy",LYRA_DEFAULT_knowledgeBaseHealthUnknown="Unknown",LYRA_DEFAULT_knowledgeBaseNameColumn="Source",LYRA_DEFAULT_knowledgeBaseNeedsAttention="Needs attention",LYRA_DEFAULT_knowledgeBaseNeverSynced="Never synced",LYRA_DEFAULT_knowledgeBasePauseAction="Pause sync",LYRA_DEFAULT_knowledgeBasePermissionColumn="Permission",LYRA_DEFAULT_knowledgeBasePermissionEditor="Editor",LYRA_DEFAULT_knowledgeBasePermissionOwner="Owner",LYRA_DEFAULT_knowledgeBasePermissionRestricted="Restricted",LYRA_DEFAULT_knowledgeBasePermissionViewer="Viewer",LYRA_DEFAULT_knowledgeBaseRowActionsLabel="Actions for {name}",LYRA_DEFAULT_knowledgeBaseSyncAction="Sync now",LYRA_DEFAULT_knowledgeBaseSyncColumn="Sync status",LYRA_DEFAULT_knowledgeBaseSyncError="Error",LYRA_DEFAULT_knowledgeBaseSyncIdle="Idle",LYRA_DEFAULT_knowledgeBaseSyncPaused="Paused",LYRA_DEFAULT_knowledgeBaseSyncSynced="Synced",LYRA_DEFAULT_knowledgeBaseSyncSyncing="Syncing",LYRA_DEFAULT_knowledgeBaseSyncedSources="Synced",LYRA_DEFAULT_knowledgeBaseSyncingSources="Syncing",LYRA_DEFAULT_knowledgeBaseTotalSources="Sources",LYRA_DEFAULT_memoryPanelAdd="Add to long-term memory",LYRA_DEFAULT_memoryPanelAddWithContext='Add "{label}" to long-term memory',LYRA_DEFAULT_memoryPanelConfirmAddHeading="Add this to long-term memory?",LYRA_DEFAULT_memoryPanelConfirmForgetBody="This permanently forgets all {count} long-term memories.",LYRA_DEFAULT_memoryPanelConfirmForgetHeading="Forget all long-term memories?",LYRA_DEFAULT_memoryPanelConfirmRemoveHeading="Remove this item?",LYRA_DEFAULT_memoryPanelForgetAll="Forget all",LYRA_DEFAULT_memoryPanelItemsLimit="Only the first {count} memory items are shown.",LYRA_DEFAULT_memoryPanelLabel="Memory",LYRA_DEFAULT_memoryPanelLongTermHeading="Long-term memories",LYRA_DEFAULT_memoryPanelShortTermHeading="Short-term context",LYRA_DEFAULT_mindMapCollapsed="{label} collapsed",LYRA_DEFAULT_mindMapExpanded="{label} expanded",LYRA_DEFAULT_mindMapInputLimit="Some topics were omitted because an input limit was reached.",LYRA_DEFAULT_mindMapLabel="Mind map",LYRA_DEFAULT_mindMapLeafStatus="{label}, level {level}",LYRA_DEFAULT_mindMapNodeLimit="Showing {shown} of {total} topics.",LYRA_DEFAULT_mindMapTopicStatus="{label}, level {level}, {count} subtopics",LYRA_DEFAULT_neighborExpand="Expand {label} in graph",LYRA_DEFAULT_neighborGroupHeader="{relation} ({count})",LYRA_DEFAULT_neighborListEmpty="No relationships",LYRA_DEFAULT_neighborListLabel="Relationships",LYRA_DEFAULT_neighborRowLabel="{label}, {relation}, {direction}",LYRA_DEFAULT_neighborSourceChoose="Select an entity to view its neighbors.",LYRA_DEFAULT_neighborSourceError="The neighbors could not be loaded.",LYRA_DEFAULT_neighborSourceSummary="Showing {shown} of {total} neighbors.",LYRA_DEFAULT_nodePaletteDragHint="Drag to the canvas, or press Enter to place",LYRA_DEFAULT_nodePaletteEmpty="No matching nodes.",LYRA_DEFAULT_nodePaletteLabel="Node palette",LYRA_DEFAULT_nodePalettePlaceholder="Search nodes…",LYRA_DEFAULT_nodePaletteResultCount={one:"{count} item",other:"{count} items"},LYRA_DEFAULT_pathNodeStatus="{label}, node {position} of {total}",LYRA_DEFAULT_pathRelationStatus="{relation}, relation",LYRA_DEFAULT_pathStripLabel="Path",LYRA_DEFAULT_provenanceChunks="Text chunks",LYRA_DEFAULT_provenanceCommunities="Communities",LYRA_DEFAULT_provenanceEmpty="No grounding data for this answer",LYRA_DEFAULT_provenancePanelLabel="Grounding",LYRA_DEFAULT_provenancePanelLimit="Only the first {count} items are shown.",LYRA_DEFAULT_provenanceRelationships="Relationships",LYRA_DEFAULT_ragAnswerCitations="Citations",LYRA_DEFAULT_ragAnswerEmpty="No answer yet",LYRA_DEFAULT_ragAnswerLabel="Grounded answer",LYRA_DEFAULT_ragAnswerRetry="Retry answer",LYRA_DEFAULT_ragAnswerSources="Sources",LYRA_DEFAULT_ragEvalDashboardAllSlices="All",LYRA_DEFAULT_ragEvalDashboardEmpty="No evaluation runs available",LYRA_DEFAULT_ragEvalDashboardInputLimit="Only the newest {count} of {total} evaluation runs are retained.",LYRA_DEFAULT_ragEvalDashboardLabel="RAG evaluation dashboard",LYRA_DEFAULT_ragEvalDashboardRuns="Evaluation runs",LYRA_DEFAULT_ragEvalDashboardSliceUnavailable="No evaluation runs are available for {slice}.",LYRA_DEFAULT_ragEvalDashboardSlices="Evaluation slices",LYRA_DEFAULT_ragEvalDashboardSlicesLimit="Showing {count} of {total} evaluation slices.",LYRA_DEFAULT_researchProgressEmpty="No research steps are available.",LYRA_DEFAULT_researchProgressLabel="Research progress",LYRA_DEFAULT_researchProgressLimit="Showing the first {count} research steps.",LYRA_DEFAULT_researchProgressSources={one:"{count} source",other:"{count} sources"},LYRA_DEFAULT_researchProgressStatusCompleted="Completed",LYRA_DEFAULT_researchProgressStatusFailed="Failed",LYRA_DEFAULT_researchProgressStatusPending="Pending",LYRA_DEFAULT_researchProgressStatusRunning="In progress",LYRA_DEFAULT_retrievalCompareDenseScore="Dense",LYRA_DEFAULT_retrievalCompareEmpty="No retrieval result sets to compare",LYRA_DEFAULT_retrievalCompareFinalScore="Final",LYRA_DEFAULT_retrievalCompareInputLimit="Some comparison sets or results were omitted because an input limit was reached.",LYRA_DEFAULT_retrievalCompareLabel="Retrieval comparison",LYRA_DEFAULT_retrievalCompareOverlap="Top-k overlap between {left} and {right}: {percent}",LYRA_DEFAULT_retrievalCompareRank="Rank {rank}",LYRA_DEFAULT_retrievalCompareRerankScore="Rerank",LYRA_DEFAULT_retrievalCompareResultLimit="Showing {shown} of {total} retained results in this set.",LYRA_DEFAULT_retrievalCompareSparseScore="Sparse",LYRA_DEFAULT_retrievalFilterChipLabel="{key}: {value}",LYRA_DEFAULT_retrievalFiltersLabel="Active filters",LYRA_DEFAULT_retrievalModeHybrid="Hybrid",LYRA_DEFAULT_retrievalModeKeyword="Keyword",LYRA_DEFAULT_retrievalModeLabel="Search mode",LYRA_DEFAULT_retrievalModeVector="Vector",LYRA_DEFAULT_retrievalResultsInputLimit="Only the first {count} of {total} retrieval results are retained.",LYRA_DEFAULT_retrievalResultsSelectRowOrdinal="Select result {index} of {total}, {label}",LYRA_DEFAULT_retrievalSearchEmptyDescription="Try a different search term or filters.",LYRA_DEFAULT_retrievalSearchLabel="Retrieval search",LYRA_DEFAULT_retrievalStageEmbed="Embed",LYRA_DEFAULT_retrievalStageFilter="Filter",LYRA_DEFAULT_retrievalStageKindUnknown="Unknown stage",LYRA_DEFAULT_retrievalStageQueryRewrite="Query rewrite",LYRA_DEFAULT_retrievalStageRerank="Rerank",LYRA_DEFAULT_retrievalStageRetrieve="Retrieve",LYRA_DEFAULT_retrievalTraceEmpty="No retrieval stages",LYRA_DEFAULT_retrievalTraceEvidenceToggle="{label} evidence",LYRA_DEFAULT_scoreTierHigh="High relevance",LYRA_DEFAULT_scoreTierLow="Low relevance",LYRA_DEFAULT_scoreTierMedium="Medium relevance",LYRA_DEFAULT_selectAllSources="Select all sources",LYRA_DEFAULT_showMore="Show more",LYRA_DEFAULT_sourcePageSuffix="{base} — p. {page}",LYRA_DEFAULT_sourcePickerMatches={one:"{count} source match",other:"{count} sources match"},LYRA_DEFAULT_sourcePickerSelection="{selected} of {total} selected",LYRA_DEFAULT_untitledCommunity="Untitled community",LYRA_DEFAULT_untitledEntity="Untitled entity",LYRA_DEFAULT_untitledSource="Untitled source",LYRA_DEFAULT_valueTruncated="…";export{LYRA_DEFAULT_chunkInspectorEmpty,LYRA_DEFAULT_chunkInspectorLabel,LYRA_DEFAULT_chunkInspectorOpenOrdinal,LYRA_DEFAULT_chunkScore,LYRA_DEFAULT_citation,LYRA_DEFAULT_citationHighConfidence,LYRA_DEFAULT_citationLowConfidence,LYRA_DEFAULT_citationMediumConfidence,LYRA_DEFAULT_citationUnverified,LYRA_DEFAULT_citationVerified,LYRA_DEFAULT_citationWithCustomLabel,LYRA_DEFAULT_citationWithStatus,LYRA_DEFAULT_claimEvidenceClaimsLimit,LYRA_DEFAULT_claimEvidenceConfidence,LYRA_DEFAULT_claimEvidenceContradicted,LYRA_DEFAULT_claimEvidenceEmpty,LYRA_DEFAULT_claimEvidenceLabel,LYRA_DEFAULT_claimEvidencePartiallySupported,LYRA_DEFAULT_claimEvidenceSupported,LYRA_DEFAULT_claimEvidenceUnsupported,LYRA_DEFAULT_communityDrillIn,LYRA_DEFAULT_communityMemberCount,LYRA_DEFAULT_embeddingExplorerEmpty,LYRA_DEFAULT_embeddingExplorerLabel,LYRA_DEFAULT_embeddingExplorerPoint,LYRA_DEFAULT_embeddingExplorerPointLimit,LYRA_DEFAULT_embeddingExplorerSpatialBin,LYRA_DEFAULT_embeddingExplorerSpatialBounds,LYRA_DEFAULT_embeddingExplorerSpatialError,LYRA_DEFAULT_embeddingExplorerSpatialLoading,LYRA_DEFAULT_embeddingExplorerSpatialSummary,LYRA_DEFAULT_entityChipWithType,LYRA_DEFAULT_entityCommunity,LYRA_DEFAULT_entityDegree,LYRA_DEFAULT_focusInGraph,LYRA_DEFAULT_graphCommunity,LYRA_DEFAULT_graphDataList,LYRA_DEFAULT_graphDataListLimit,LYRA_DEFAULT_graphDiagram,LYRA_DEFAULT_graphEdgeLimit,LYRA_DEFAULT_graphExpandableItem,LYRA_DEFAULT_graphExplorerAllTypesHidden,LYRA_DEFAULT_graphExplorerClearTypes,LYRA_DEFAULT_graphExplorerFindPath,LYRA_DEFAULT_graphExplorerLabel,LYRA_DEFAULT_graphExplorerPin,LYRA_DEFAULT_graphExplorerPinned,LYRA_DEFAULT_graphExplorerPinnedHeading,LYRA_DEFAULT_graphExplorerSearchLimit,LYRA_DEFAULT_graphExplorerSearchPlaceholder,LYRA_DEFAULT_graphExplorerSearchResultsLabel,LYRA_DEFAULT_graphExplorerUnpin,LYRA_DEFAULT_graphExplorerUnpinned,LYRA_DEFAULT_graphFit,LYRA_DEFAULT_graphItemAnnouncement,LYRA_DEFAULT_graphLegendLabel,LYRA_DEFAULT_graphLink,LYRA_DEFAULT_graphMissingLibrary,LYRA_DEFAULT_graphNode,LYRA_DEFAULT_graphNodeFocused,LYRA_DEFAULT_graphNodeLimit,LYRA_DEFAULT_graphNodesHidden,LYRA_DEFAULT_graphOrbitDown,LYRA_DEFAULT_graphOrbitLeft,LYRA_DEFAULT_graphOrbitRight,LYRA_DEFAULT_graphOrbitUp,LYRA_DEFAULT_graphSelectionCount,LYRA_DEFAULT_graphSpatialControls,LYRA_DEFAULT_graphSpatialInstructions,LYRA_DEFAULT_graphSpatialPage,LYRA_DEFAULT_graphSpatialUnavailable,LYRA_DEFAULT_graphTypedNode,LYRA_DEFAULT_graphView3d,LYRA_DEFAULT_graphViewList,LYRA_DEFAULT_groundingSummaryCitationsLimit,LYRA_DEFAULT_groundingSummaryConfidenceLabel,LYRA_DEFAULT_groundingSummaryCoverageLabel,LYRA_DEFAULT_groundingSummaryEmpty,LYRA_DEFAULT_groundingSummaryEvidenceHeading,LYRA_DEFAULT_groundingSummaryEvidenceSpan,LYRA_DEFAULT_groundingSummaryLabel,LYRA_DEFAULT_groundingSummarySupportedLabel,LYRA_DEFAULT_groundingSummaryUnsupportedLabel,LYRA_DEFAULT_groundingSummaryWarningsHeading,LYRA_DEFAULT_ingestionAttemptCount,LYRA_DEFAULT_ingestionCancelWithContext,LYRA_DEFAULT_ingestionChunkCount,LYRA_DEFAULT_ingestionEmbeddedOfTotal,LYRA_DEFAULT_ingestionItemProgressLabel,LYRA_DEFAULT_ingestionQueueEmpty,LYRA_DEFAULT_ingestionQueueInputLimit,LYRA_DEFAULT_ingestionQueueLabel,LYRA_DEFAULT_ingestionRetryWithContext,LYRA_DEFAULT_ingestionStageCancelled,LYRA_DEFAULT_ingestionStageChunking,LYRA_DEFAULT_ingestionStageDone,LYRA_DEFAULT_ingestionStageEmbedding,LYRA_DEFAULT_ingestionStageExtracting,LYRA_DEFAULT_ingestionStageFailed,LYRA_DEFAULT_ingestionStageIndexing,LYRA_DEFAULT_ingestionStageQueued,LYRA_DEFAULT_ingestionStageUnknown,LYRA_DEFAULT_ingestionStageUploading,LYRA_DEFAULT_knowledgeBaseActionsColumn,LYRA_DEFAULT_knowledgeBaseAdminIngestionTab,LYRA_DEFAULT_knowledgeBaseAdminInputLimit,LYRA_DEFAULT_knowledgeBaseAdminLabel,LYRA_DEFAULT_knowledgeBaseAdminSourcesTab,LYRA_DEFAULT_knowledgeBaseCreateSource,LYRA_DEFAULT_knowledgeBaseDeleteAction,LYRA_DEFAULT_knowledgeBaseDocumentCount,LYRA_DEFAULT_knowledgeBaseEmptyDescription,LYRA_DEFAULT_knowledgeBaseEmptyHeading,LYRA_DEFAULT_knowledgeBaseHeading,LYRA_DEFAULT_knowledgeBaseHealthColumn,LYRA_DEFAULT_knowledgeBaseHealthDegraded,LYRA_DEFAULT_knowledgeBaseHealthFailed,LYRA_DEFAULT_knowledgeBaseHealthHealthy,LYRA_DEFAULT_knowledgeBaseHealthUnknown,LYRA_DEFAULT_knowledgeBaseNameColumn,LYRA_DEFAULT_knowledgeBaseNeedsAttention,LYRA_DEFAULT_knowledgeBaseNeverSynced,LYRA_DEFAULT_knowledgeBasePauseAction,LYRA_DEFAULT_knowledgeBasePermissionColumn,LYRA_DEFAULT_knowledgeBasePermissionEditor,LYRA_DEFAULT_knowledgeBasePermissionOwner,LYRA_DEFAULT_knowledgeBasePermissionRestricted,LYRA_DEFAULT_knowledgeBasePermissionViewer,LYRA_DEFAULT_knowledgeBaseRowActionsLabel,LYRA_DEFAULT_knowledgeBaseSyncAction,LYRA_DEFAULT_knowledgeBaseSyncColumn,LYRA_DEFAULT_knowledgeBaseSyncError,LYRA_DEFAULT_knowledgeBaseSyncIdle,LYRA_DEFAULT_knowledgeBaseSyncPaused,LYRA_DEFAULT_knowledgeBaseSyncSynced,LYRA_DEFAULT_knowledgeBaseSyncSyncing,LYRA_DEFAULT_knowledgeBaseSyncedSources,LYRA_DEFAULT_knowledgeBaseSyncingSources,LYRA_DEFAULT_knowledgeBaseTotalSources,LYRA_DEFAULT_memoryPanelAdd,LYRA_DEFAULT_memoryPanelAddWithContext,LYRA_DEFAULT_memoryPanelConfirmAddHeading,LYRA_DEFAULT_memoryPanelConfirmForgetBody,LYRA_DEFAULT_memoryPanelConfirmForgetHeading,LYRA_DEFAULT_memoryPanelConfirmRemoveHeading,LYRA_DEFAULT_memoryPanelForgetAll,LYRA_DEFAULT_memoryPanelItemsLimit,LYRA_DEFAULT_memoryPanelLabel,LYRA_DEFAULT_memoryPanelLongTermHeading,LYRA_DEFAULT_memoryPanelShortTermHeading,LYRA_DEFAULT_mindMapCollapsed,LYRA_DEFAULT_mindMapExpanded,LYRA_DEFAULT_mindMapInputLimit,LYRA_DEFAULT_mindMapLabel,LYRA_DEFAULT_mindMapLeafStatus,LYRA_DEFAULT_mindMapNodeLimit,LYRA_DEFAULT_mindMapTopicStatus,LYRA_DEFAULT_neighborExpand,LYRA_DEFAULT_neighborGroupHeader,LYRA_DEFAULT_neighborListEmpty,LYRA_DEFAULT_neighborListLabel,LYRA_DEFAULT_neighborRowLabel,LYRA_DEFAULT_neighborSourceChoose,LYRA_DEFAULT_neighborSourceError,LYRA_DEFAULT_neighborSourceSummary,LYRA_DEFAULT_nodePaletteDragHint,LYRA_DEFAULT_nodePaletteEmpty,LYRA_DEFAULT_nodePaletteLabel,LYRA_DEFAULT_nodePalettePlaceholder,LYRA_DEFAULT_nodePaletteResultCount,LYRA_DEFAULT_pathNodeStatus,LYRA_DEFAULT_pathRelationStatus,LYRA_DEFAULT_pathStripLabel,LYRA_DEFAULT_provenanceChunks,LYRA_DEFAULT_provenanceCommunities,LYRA_DEFAULT_provenanceEmpty,LYRA_DEFAULT_provenancePanelLabel,LYRA_DEFAULT_provenancePanelLimit,LYRA_DEFAULT_provenanceRelationships,LYRA_DEFAULT_ragAnswerCitations,LYRA_DEFAULT_ragAnswerEmpty,LYRA_DEFAULT_ragAnswerLabel,LYRA_DEFAULT_ragAnswerRetry,LYRA_DEFAULT_ragAnswerSources,LYRA_DEFAULT_ragEvalDashboardAllSlices,LYRA_DEFAULT_ragEvalDashboardEmpty,LYRA_DEFAULT_ragEvalDashboardInputLimit,LYRA_DEFAULT_ragEvalDashboardLabel,LYRA_DEFAULT_ragEvalDashboardRuns,LYRA_DEFAULT_ragEvalDashboardSliceUnavailable,LYRA_DEFAULT_ragEvalDashboardSlices,LYRA_DEFAULT_ragEvalDashboardSlicesLimit,LYRA_DEFAULT_researchProgressEmpty,LYRA_DEFAULT_researchProgressLabel,LYRA_DEFAULT_researchProgressLimit,LYRA_DEFAULT_researchProgressSources,LYRA_DEFAULT_researchProgressStatusCompleted,LYRA_DEFAULT_researchProgressStatusFailed,LYRA_DEFAULT_researchProgressStatusPending,LYRA_DEFAULT_researchProgressStatusRunning,LYRA_DEFAULT_retrievalCompareDenseScore,LYRA_DEFAULT_retrievalCompareEmpty,LYRA_DEFAULT_retrievalCompareFinalScore,LYRA_DEFAULT_retrievalCompareInputLimit,LYRA_DEFAULT_retrievalCompareLabel,LYRA_DEFAULT_retrievalCompareOverlap,LYRA_DEFAULT_retrievalCompareRank,LYRA_DEFAULT_retrievalCompareRerankScore,LYRA_DEFAULT_retrievalCompareResultLimit,LYRA_DEFAULT_retrievalCompareSparseScore,LYRA_DEFAULT_retrievalFilterChipLabel,LYRA_DEFAULT_retrievalFiltersLabel,LYRA_DEFAULT_retrievalModeHybrid,LYRA_DEFAULT_retrievalModeKeyword,LYRA_DEFAULT_retrievalModeLabel,LYRA_DEFAULT_retrievalModeVector,LYRA_DEFAULT_retrievalResultsInputLimit,LYRA_DEFAULT_retrievalResultsSelectRowOrdinal,LYRA_DEFAULT_retrievalSearchEmptyDescription,LYRA_DEFAULT_retrievalSearchLabel,LYRA_DEFAULT_retrievalStageEmbed,LYRA_DEFAULT_retrievalStageFilter,LYRA_DEFAULT_retrievalStageKindUnknown,LYRA_DEFAULT_retrievalStageQueryRewrite,LYRA_DEFAULT_retrievalStageRerank,LYRA_DEFAULT_retrievalStageRetrieve,LYRA_DEFAULT_retrievalTraceEmpty,LYRA_DEFAULT_retrievalTraceEvidenceToggle,LYRA_DEFAULT_scoreTierHigh,LYRA_DEFAULT_scoreTierLow,LYRA_DEFAULT_scoreTierMedium,LYRA_DEFAULT_selectAllSources,LYRA_DEFAULT_showMore,LYRA_DEFAULT_sourcePageSuffix,LYRA_DEFAULT_sourcePickerMatches,LYRA_DEFAULT_sourcePickerSelection,LYRA_DEFAULT_untitledCommunity,LYRA_DEFAULT_untitledEntity,LYRA_DEFAULT_untitledSource,LYRA_DEFAULT_valueTruncated};
|
|
1
|
+
const LYRA_DEFAULT_chunkInspectorEmpty="No chunks retrieved",LYRA_DEFAULT_chunkInspectorLabel="Retrieved chunks",LYRA_DEFAULT_chunkInspectorOpenOrdinal="Result {index} of {total}",LYRA_DEFAULT_chunkScore="Relevance {percent}%",LYRA_DEFAULT_citation="Citation {index}",LYRA_DEFAULT_citationHighConfidence="High confidence",LYRA_DEFAULT_citationLowConfidence="Low confidence",LYRA_DEFAULT_citationMediumConfidence="Medium confidence",LYRA_DEFAULT_citationUnverified="Unverified",LYRA_DEFAULT_citationVerified="Verified",LYRA_DEFAULT_citationWithCustomLabel="Citation {index}, {label}",LYRA_DEFAULT_citationWithStatus="Citation {index}, {status}",LYRA_DEFAULT_claimEvidenceClaimsLimit="Only the first {count} claims are shown.",LYRA_DEFAULT_claimEvidenceConfidence="{percent} confidence",LYRA_DEFAULT_claimEvidenceContradicted="Contradicted",LYRA_DEFAULT_claimEvidenceEmpty="No claim-level evidence available",LYRA_DEFAULT_claimEvidenceLabel="Claim evidence",LYRA_DEFAULT_claimEvidencePartiallySupported="Partially supported",LYRA_DEFAULT_claimEvidenceSupported="Supported",LYRA_DEFAULT_claimEvidenceUnsupported="Unsupported",LYRA_DEFAULT_communityDrillIn="Explore community",LYRA_DEFAULT_communityMemberCount="{count} members",LYRA_DEFAULT_embeddingExplorerEmpty="No embedding points",LYRA_DEFAULT_embeddingExplorerLabel="Embedding explorer",LYRA_DEFAULT_embeddingExplorerPoint="{label}, embedding point {index}",LYRA_DEFAULT_embeddingExplorerPointLimit="Showing {shown} of {total} points.",LYRA_DEFAULT_embeddingExplorerSpatialBin="{count} points in density region: {bounds}",LYRA_DEFAULT_embeddingExplorerSpatialBounds="{minX} to {maxX} horizontally; {minY} to {maxY} vertically",LYRA_DEFAULT_embeddingExplorerSpatialError="The spatial source or viewport is invalid or unavailable.",LYRA_DEFAULT_embeddingExplorerSpatialLoading="Loading spatial data…",LYRA_DEFAULT_embeddingExplorerSpatialSummary="{total} points in the full source ({global}). {matched} points in the viewport ({viewport}). Density regions count all matches; point overlays do not add to these counts.",LYRA_DEFAULT_entityChipWithType="{label}, {type}",LYRA_DEFAULT_entityCommunity="Community",LYRA_DEFAULT_entityDegree="Connections",LYRA_DEFAULT_focusInGraph="Focus in graph",LYRA_DEFAULT_graphCommunity="Community {label}, {count} nodes",LYRA_DEFAULT_graphCustomNodesError="Custom 3D nodes could not be displayed. Showing standard nodes.",LYRA_DEFAULT_graphCustomNodesUnavailable="Custom 3D nodes require the WebGL view. Showing standard nodes.",LYRA_DEFAULT_graphDataList="Graph data",LYRA_DEFAULT_graphDataListLimit="Showing {shown} of {total} graph items.",LYRA_DEFAULT_graphDiagram="Node-link diagram with {nodeCount} nodes and {linkCount} links",LYRA_DEFAULT_graphEdgeLimit="Showing {shown} of {total} links.",LYRA_DEFAULT_graphExpandableItem="{item}, expandable",LYRA_DEFAULT_graphExplorerAllTypesHidden="All configured node types are hidden.",LYRA_DEFAULT_graphExplorerClearTypes="Show all node types",LYRA_DEFAULT_graphExplorerFindPath="Find path",LYRA_DEFAULT_graphExplorerLabel="Knowledge graph explorer",LYRA_DEFAULT_graphExplorerPin="Pin",LYRA_DEFAULT_graphExplorerPinned="{label} pinned",LYRA_DEFAULT_graphExplorerPinnedHeading="Pinned",LYRA_DEFAULT_graphExplorerSearchLimit="Showing {shown} of {total} matches.",LYRA_DEFAULT_graphExplorerSearchPlaceholder="Search entities…",LYRA_DEFAULT_graphExplorerSearchResultsLabel="Search results",LYRA_DEFAULT_graphExplorerUnpin="Unpin",LYRA_DEFAULT_graphExplorerUnpinned="{label} unpinned",LYRA_DEFAULT_graphFit="Fit graph",LYRA_DEFAULT_graphGlowUnavailable="Glow requires the WebGL view.",LYRA_DEFAULT_graphItemAnnouncement="{item} ({index} of {total})",LYRA_DEFAULT_graphLegendLabel="Graph legend",LYRA_DEFAULT_graphLink="Link from {source} to {target}",LYRA_DEFAULT_graphMissingLibrary='This component needs the optional "d3" package installed to render the graph.',LYRA_DEFAULT_graphNode="Node {label}",LYRA_DEFAULT_graphNodeFocused="Centered on {label}",LYRA_DEFAULT_graphNodeLimit="Showing {shown} of {total} nodes.",LYRA_DEFAULT_graphNodesHidden="{hidden} of {total} nodes hidden",LYRA_DEFAULT_graphOrbitDown="Orbit down",LYRA_DEFAULT_graphOrbitLeft="Orbit left",LYRA_DEFAULT_graphOrbitRight="Orbit right",LYRA_DEFAULT_graphOrbitUp="Orbit up",LYRA_DEFAULT_graphSelectionCount="{count} selected",LYRA_DEFAULT_graphSpatialControls="Graph view and camera controls",LYRA_DEFAULT_graphSpatialInstructions="Drag to orbit; Shift-drag to pan. Use arrow keys to orbit, Shift-arrow keys to pan, plus or minus to zoom, and Home to fit. Use List view to explore and activate graph items.",LYRA_DEFAULT_graphSpatialPage="Graph items: {total}. Page {page} of {pages}.",LYRA_DEFAULT_graphSpatialUnavailable="The 3D drawing surface is unavailable. Graph items are available in List view.",LYRA_DEFAULT_graphTypedNode="{label} ({type})",LYRA_DEFAULT_graphView3d="3D view",LYRA_DEFAULT_graphViewList="List view",LYRA_DEFAULT_groundingSummaryCitationsLimit="Only the first {count} citations are shown.",LYRA_DEFAULT_groundingSummaryConfidenceLabel="Confidence",LYRA_DEFAULT_groundingSummaryCoverageLabel="Citation coverage",LYRA_DEFAULT_groundingSummaryEmpty="No grounding assessment available",LYRA_DEFAULT_groundingSummaryEvidenceHeading="Evidence",LYRA_DEFAULT_groundingSummaryEvidenceSpan="Characters {start}–{end}",LYRA_DEFAULT_groundingSummaryLabel="Grounding summary",LYRA_DEFAULT_groundingSummarySupportedLabel="Supported claims",LYRA_DEFAULT_groundingSummaryUnsupportedLabel="Unsupported claims",LYRA_DEFAULT_groundingSummaryWarningsHeading="Warnings",LYRA_DEFAULT_ingestionAttemptCount="Attempt {count}",LYRA_DEFAULT_ingestionCancelWithContext="Cancel {label}",LYRA_DEFAULT_ingestionChunkCount={one:"{count} chunk",other:"{count} chunks"},LYRA_DEFAULT_ingestionEmbeddedOfTotal="{embedded} of {total} chunks embedded",LYRA_DEFAULT_ingestionItemProgressLabel="{name} — {stage}",LYRA_DEFAULT_ingestionQueueEmpty="No documents queued",LYRA_DEFAULT_ingestionQueueInputLimit="Only the first {count} of {total} queue items are retained.",LYRA_DEFAULT_ingestionQueueLabel="Ingestion queue",LYRA_DEFAULT_ingestionRetryWithContext="Retry {label}",LYRA_DEFAULT_ingestionStageCancelled="Cancelled",LYRA_DEFAULT_ingestionStageChunking="Chunking",LYRA_DEFAULT_ingestionStageDone="Done",LYRA_DEFAULT_ingestionStageEmbedding="Embedding",LYRA_DEFAULT_ingestionStageExtracting="Extracting text",LYRA_DEFAULT_ingestionStageFailed="Failed",LYRA_DEFAULT_ingestionStageIndexing="Indexing",LYRA_DEFAULT_ingestionStageQueued="Queued",LYRA_DEFAULT_ingestionStageUnknown="Unknown stage",LYRA_DEFAULT_ingestionStageUploading="Uploading",LYRA_DEFAULT_knowledgeBaseActionsColumn="Actions",LYRA_DEFAULT_knowledgeBaseAdminIngestionTab="Ingestion",LYRA_DEFAULT_knowledgeBaseAdminInputLimit="{collection}: only the first {count} of {total} entries are retained.",LYRA_DEFAULT_knowledgeBaseAdminLabel="Knowledge base administration",LYRA_DEFAULT_knowledgeBaseAdminSourcesTab="Sources",LYRA_DEFAULT_knowledgeBaseCreateSource="Add source",LYRA_DEFAULT_knowledgeBaseDeleteAction="Delete source",LYRA_DEFAULT_knowledgeBaseDocumentCount="{count} indexed",LYRA_DEFAULT_knowledgeBaseEmptyDescription="Add a source to start indexing content.",LYRA_DEFAULT_knowledgeBaseEmptyHeading="No knowledge sources yet",LYRA_DEFAULT_knowledgeBaseHeading="Knowledge base",LYRA_DEFAULT_knowledgeBaseHealthColumn="Indexing health",LYRA_DEFAULT_knowledgeBaseHealthDegraded="Degraded",LYRA_DEFAULT_knowledgeBaseHealthFailed="Failed",LYRA_DEFAULT_knowledgeBaseHealthHealthy="Healthy",LYRA_DEFAULT_knowledgeBaseHealthUnknown="Unknown",LYRA_DEFAULT_knowledgeBaseNameColumn="Source",LYRA_DEFAULT_knowledgeBaseNeedsAttention="Needs attention",LYRA_DEFAULT_knowledgeBaseNeverSynced="Never synced",LYRA_DEFAULT_knowledgeBasePauseAction="Pause sync",LYRA_DEFAULT_knowledgeBasePermissionColumn="Permission",LYRA_DEFAULT_knowledgeBasePermissionEditor="Editor",LYRA_DEFAULT_knowledgeBasePermissionOwner="Owner",LYRA_DEFAULT_knowledgeBasePermissionRestricted="Restricted",LYRA_DEFAULT_knowledgeBasePermissionViewer="Viewer",LYRA_DEFAULT_knowledgeBaseRowActionsLabel="Actions for {name}",LYRA_DEFAULT_knowledgeBaseSyncAction="Sync now",LYRA_DEFAULT_knowledgeBaseSyncColumn="Sync status",LYRA_DEFAULT_knowledgeBaseSyncError="Error",LYRA_DEFAULT_knowledgeBaseSyncIdle="Idle",LYRA_DEFAULT_knowledgeBaseSyncPaused="Paused",LYRA_DEFAULT_knowledgeBaseSyncSynced="Synced",LYRA_DEFAULT_knowledgeBaseSyncSyncing="Syncing",LYRA_DEFAULT_knowledgeBaseSyncedSources="Synced",LYRA_DEFAULT_knowledgeBaseSyncingSources="Syncing",LYRA_DEFAULT_knowledgeBaseTotalSources="Sources",LYRA_DEFAULT_memoryPanelAdd="Add to long-term memory",LYRA_DEFAULT_memoryPanelAddWithContext='Add "{label}" to long-term memory',LYRA_DEFAULT_memoryPanelConfirmAddHeading="Add this to long-term memory?",LYRA_DEFAULT_memoryPanelConfirmForgetBody="This permanently forgets all {count} long-term memories.",LYRA_DEFAULT_memoryPanelConfirmForgetHeading="Forget all long-term memories?",LYRA_DEFAULT_memoryPanelConfirmRemoveHeading="Remove this item?",LYRA_DEFAULT_memoryPanelForgetAll="Forget all",LYRA_DEFAULT_memoryPanelItemsLimit="Only the first {count} memory items are shown.",LYRA_DEFAULT_memoryPanelLabel="Memory",LYRA_DEFAULT_memoryPanelLongTermHeading="Long-term memories",LYRA_DEFAULT_memoryPanelShortTermHeading="Short-term context",LYRA_DEFAULT_mindMapCollapsed="{label} collapsed",LYRA_DEFAULT_mindMapExpanded="{label} expanded",LYRA_DEFAULT_mindMapInputLimit="Some topics were omitted because an input limit was reached.",LYRA_DEFAULT_mindMapLabel="Mind map",LYRA_DEFAULT_mindMapLeafStatus="{label}, level {level}",LYRA_DEFAULT_mindMapNodeLimit="Showing {shown} of {total} topics.",LYRA_DEFAULT_mindMapTopicStatus="{label}, level {level}, {count} subtopics",LYRA_DEFAULT_neighborExpand="Expand {label} in graph",LYRA_DEFAULT_neighborGroupHeader="{relation} ({count})",LYRA_DEFAULT_neighborListEmpty="No relationships",LYRA_DEFAULT_neighborListLabel="Relationships",LYRA_DEFAULT_neighborRowLabel="{label}, {relation}, {direction}",LYRA_DEFAULT_neighborSourceChoose="Select an entity to view its neighbors.",LYRA_DEFAULT_neighborSourceError="The neighbors could not be loaded.",LYRA_DEFAULT_neighborSourceSummary="Showing {shown} of {total} neighbors.",LYRA_DEFAULT_nodePaletteDragHint="Drag to the canvas, or press Enter to place",LYRA_DEFAULT_nodePaletteEmpty="No matching nodes.",LYRA_DEFAULT_nodePaletteLabel="Node palette",LYRA_DEFAULT_nodePalettePlaceholder="Search nodes…",LYRA_DEFAULT_nodePaletteResultCount={one:"{count} item",other:"{count} items"},LYRA_DEFAULT_pathNodeStatus="{label}, node {position} of {total}",LYRA_DEFAULT_pathRelationStatus="{relation}, relation",LYRA_DEFAULT_pathStripLabel="Path",LYRA_DEFAULT_provenanceChunks="Text chunks",LYRA_DEFAULT_provenanceCommunities="Communities",LYRA_DEFAULT_provenanceEmpty="No grounding data for this answer",LYRA_DEFAULT_provenancePanelLabel="Grounding",LYRA_DEFAULT_provenancePanelLimit="Only the first {count} items are shown.",LYRA_DEFAULT_provenanceRelationships="Relationships",LYRA_DEFAULT_ragAnswerCitations="Citations",LYRA_DEFAULT_ragAnswerEmpty="No answer yet",LYRA_DEFAULT_ragAnswerLabel="Grounded answer",LYRA_DEFAULT_ragAnswerRetry="Retry answer",LYRA_DEFAULT_ragAnswerSources="Sources",LYRA_DEFAULT_ragEvalDashboardAllSlices="All",LYRA_DEFAULT_ragEvalDashboardEmpty="No evaluation runs available",LYRA_DEFAULT_ragEvalDashboardInputLimit="Only the newest {count} of {total} evaluation runs are retained.",LYRA_DEFAULT_ragEvalDashboardLabel="RAG evaluation dashboard",LYRA_DEFAULT_ragEvalDashboardRuns="Evaluation runs",LYRA_DEFAULT_ragEvalDashboardSliceUnavailable="No evaluation runs are available for {slice}.",LYRA_DEFAULT_ragEvalDashboardSlices="Evaluation slices",LYRA_DEFAULT_ragEvalDashboardSlicesLimit="Showing {count} of {total} evaluation slices.",LYRA_DEFAULT_researchProgressEmpty="No research steps are available.",LYRA_DEFAULT_researchProgressLabel="Research progress",LYRA_DEFAULT_researchProgressLimit="Showing the first {count} research steps.",LYRA_DEFAULT_researchProgressSources={one:"{count} source",other:"{count} sources"},LYRA_DEFAULT_researchProgressStatusCompleted="Completed",LYRA_DEFAULT_researchProgressStatusFailed="Failed",LYRA_DEFAULT_researchProgressStatusPending="Pending",LYRA_DEFAULT_researchProgressStatusRunning="In progress",LYRA_DEFAULT_retrievalCompareDenseScore="Dense",LYRA_DEFAULT_retrievalCompareEmpty="No retrieval result sets to compare",LYRA_DEFAULT_retrievalCompareFinalScore="Final",LYRA_DEFAULT_retrievalCompareInputLimit="Some comparison sets or results were omitted because an input limit was reached.",LYRA_DEFAULT_retrievalCompareLabel="Retrieval comparison",LYRA_DEFAULT_retrievalCompareOverlap="Top-k overlap between {left} and {right}: {percent}",LYRA_DEFAULT_retrievalCompareRank="Rank {rank}",LYRA_DEFAULT_retrievalCompareRerankScore="Rerank",LYRA_DEFAULT_retrievalCompareResultLimit="Showing {shown} of {total} retained results in this set.",LYRA_DEFAULT_retrievalCompareSparseScore="Sparse",LYRA_DEFAULT_retrievalFilterChipLabel="{key}: {value}",LYRA_DEFAULT_retrievalFiltersLabel="Active filters",LYRA_DEFAULT_retrievalModeHybrid="Hybrid",LYRA_DEFAULT_retrievalModeKeyword="Keyword",LYRA_DEFAULT_retrievalModeLabel="Search mode",LYRA_DEFAULT_retrievalModeVector="Vector",LYRA_DEFAULT_retrievalResultsInputLimit="Only the first {count} of {total} retrieval results are retained.",LYRA_DEFAULT_retrievalResultsSelectRowOrdinal="Select result {index} of {total}, {label}",LYRA_DEFAULT_retrievalSearchEmptyDescription="Try a different search term or filters.",LYRA_DEFAULT_retrievalSearchLabel="Retrieval search",LYRA_DEFAULT_retrievalStageEmbed="Embed",LYRA_DEFAULT_retrievalStageFilter="Filter",LYRA_DEFAULT_retrievalStageKindUnknown="Unknown stage",LYRA_DEFAULT_retrievalStageQueryRewrite="Query rewrite",LYRA_DEFAULT_retrievalStageRerank="Rerank",LYRA_DEFAULT_retrievalStageRetrieve="Retrieve",LYRA_DEFAULT_retrievalTraceEmpty="No retrieval stages",LYRA_DEFAULT_retrievalTraceEvidenceToggle="{label} evidence",LYRA_DEFAULT_scoreTierHigh="High relevance",LYRA_DEFAULT_scoreTierLow="Low relevance",LYRA_DEFAULT_scoreTierMedium="Medium relevance",LYRA_DEFAULT_selectAllSources="Select all sources",LYRA_DEFAULT_showMore="Show more",LYRA_DEFAULT_sourcePageSuffix="{base} — p. {page}",LYRA_DEFAULT_sourcePickerMatches={one:"{count} source match",other:"{count} sources match"},LYRA_DEFAULT_sourcePickerSelection="{selected} of {total} selected",LYRA_DEFAULT_untitledCommunity="Untitled community",LYRA_DEFAULT_untitledEntity="Untitled entity",LYRA_DEFAULT_untitledSource="Untitled source",LYRA_DEFAULT_valueTruncated="…";export{LYRA_DEFAULT_chunkInspectorEmpty,LYRA_DEFAULT_chunkInspectorLabel,LYRA_DEFAULT_chunkInspectorOpenOrdinal,LYRA_DEFAULT_chunkScore,LYRA_DEFAULT_citation,LYRA_DEFAULT_citationHighConfidence,LYRA_DEFAULT_citationLowConfidence,LYRA_DEFAULT_citationMediumConfidence,LYRA_DEFAULT_citationUnverified,LYRA_DEFAULT_citationVerified,LYRA_DEFAULT_citationWithCustomLabel,LYRA_DEFAULT_citationWithStatus,LYRA_DEFAULT_claimEvidenceClaimsLimit,LYRA_DEFAULT_claimEvidenceConfidence,LYRA_DEFAULT_claimEvidenceContradicted,LYRA_DEFAULT_claimEvidenceEmpty,LYRA_DEFAULT_claimEvidenceLabel,LYRA_DEFAULT_claimEvidencePartiallySupported,LYRA_DEFAULT_claimEvidenceSupported,LYRA_DEFAULT_claimEvidenceUnsupported,LYRA_DEFAULT_communityDrillIn,LYRA_DEFAULT_communityMemberCount,LYRA_DEFAULT_embeddingExplorerEmpty,LYRA_DEFAULT_embeddingExplorerLabel,LYRA_DEFAULT_embeddingExplorerPoint,LYRA_DEFAULT_embeddingExplorerPointLimit,LYRA_DEFAULT_embeddingExplorerSpatialBin,LYRA_DEFAULT_embeddingExplorerSpatialBounds,LYRA_DEFAULT_embeddingExplorerSpatialError,LYRA_DEFAULT_embeddingExplorerSpatialLoading,LYRA_DEFAULT_embeddingExplorerSpatialSummary,LYRA_DEFAULT_entityChipWithType,LYRA_DEFAULT_entityCommunity,LYRA_DEFAULT_entityDegree,LYRA_DEFAULT_focusInGraph,LYRA_DEFAULT_graphCommunity,LYRA_DEFAULT_graphCustomNodesError,LYRA_DEFAULT_graphCustomNodesUnavailable,LYRA_DEFAULT_graphDataList,LYRA_DEFAULT_graphDataListLimit,LYRA_DEFAULT_graphDiagram,LYRA_DEFAULT_graphEdgeLimit,LYRA_DEFAULT_graphExpandableItem,LYRA_DEFAULT_graphExplorerAllTypesHidden,LYRA_DEFAULT_graphExplorerClearTypes,LYRA_DEFAULT_graphExplorerFindPath,LYRA_DEFAULT_graphExplorerLabel,LYRA_DEFAULT_graphExplorerPin,LYRA_DEFAULT_graphExplorerPinned,LYRA_DEFAULT_graphExplorerPinnedHeading,LYRA_DEFAULT_graphExplorerSearchLimit,LYRA_DEFAULT_graphExplorerSearchPlaceholder,LYRA_DEFAULT_graphExplorerSearchResultsLabel,LYRA_DEFAULT_graphExplorerUnpin,LYRA_DEFAULT_graphExplorerUnpinned,LYRA_DEFAULT_graphFit,LYRA_DEFAULT_graphGlowUnavailable,LYRA_DEFAULT_graphItemAnnouncement,LYRA_DEFAULT_graphLegendLabel,LYRA_DEFAULT_graphLink,LYRA_DEFAULT_graphMissingLibrary,LYRA_DEFAULT_graphNode,LYRA_DEFAULT_graphNodeFocused,LYRA_DEFAULT_graphNodeLimit,LYRA_DEFAULT_graphNodesHidden,LYRA_DEFAULT_graphOrbitDown,LYRA_DEFAULT_graphOrbitLeft,LYRA_DEFAULT_graphOrbitRight,LYRA_DEFAULT_graphOrbitUp,LYRA_DEFAULT_graphSelectionCount,LYRA_DEFAULT_graphSpatialControls,LYRA_DEFAULT_graphSpatialInstructions,LYRA_DEFAULT_graphSpatialPage,LYRA_DEFAULT_graphSpatialUnavailable,LYRA_DEFAULT_graphTypedNode,LYRA_DEFAULT_graphView3d,LYRA_DEFAULT_graphViewList,LYRA_DEFAULT_groundingSummaryCitationsLimit,LYRA_DEFAULT_groundingSummaryConfidenceLabel,LYRA_DEFAULT_groundingSummaryCoverageLabel,LYRA_DEFAULT_groundingSummaryEmpty,LYRA_DEFAULT_groundingSummaryEvidenceHeading,LYRA_DEFAULT_groundingSummaryEvidenceSpan,LYRA_DEFAULT_groundingSummaryLabel,LYRA_DEFAULT_groundingSummarySupportedLabel,LYRA_DEFAULT_groundingSummaryUnsupportedLabel,LYRA_DEFAULT_groundingSummaryWarningsHeading,LYRA_DEFAULT_ingestionAttemptCount,LYRA_DEFAULT_ingestionCancelWithContext,LYRA_DEFAULT_ingestionChunkCount,LYRA_DEFAULT_ingestionEmbeddedOfTotal,LYRA_DEFAULT_ingestionItemProgressLabel,LYRA_DEFAULT_ingestionQueueEmpty,LYRA_DEFAULT_ingestionQueueInputLimit,LYRA_DEFAULT_ingestionQueueLabel,LYRA_DEFAULT_ingestionRetryWithContext,LYRA_DEFAULT_ingestionStageCancelled,LYRA_DEFAULT_ingestionStageChunking,LYRA_DEFAULT_ingestionStageDone,LYRA_DEFAULT_ingestionStageEmbedding,LYRA_DEFAULT_ingestionStageExtracting,LYRA_DEFAULT_ingestionStageFailed,LYRA_DEFAULT_ingestionStageIndexing,LYRA_DEFAULT_ingestionStageQueued,LYRA_DEFAULT_ingestionStageUnknown,LYRA_DEFAULT_ingestionStageUploading,LYRA_DEFAULT_knowledgeBaseActionsColumn,LYRA_DEFAULT_knowledgeBaseAdminIngestionTab,LYRA_DEFAULT_knowledgeBaseAdminInputLimit,LYRA_DEFAULT_knowledgeBaseAdminLabel,LYRA_DEFAULT_knowledgeBaseAdminSourcesTab,LYRA_DEFAULT_knowledgeBaseCreateSource,LYRA_DEFAULT_knowledgeBaseDeleteAction,LYRA_DEFAULT_knowledgeBaseDocumentCount,LYRA_DEFAULT_knowledgeBaseEmptyDescription,LYRA_DEFAULT_knowledgeBaseEmptyHeading,LYRA_DEFAULT_knowledgeBaseHeading,LYRA_DEFAULT_knowledgeBaseHealthColumn,LYRA_DEFAULT_knowledgeBaseHealthDegraded,LYRA_DEFAULT_knowledgeBaseHealthFailed,LYRA_DEFAULT_knowledgeBaseHealthHealthy,LYRA_DEFAULT_knowledgeBaseHealthUnknown,LYRA_DEFAULT_knowledgeBaseNameColumn,LYRA_DEFAULT_knowledgeBaseNeedsAttention,LYRA_DEFAULT_knowledgeBaseNeverSynced,LYRA_DEFAULT_knowledgeBasePauseAction,LYRA_DEFAULT_knowledgeBasePermissionColumn,LYRA_DEFAULT_knowledgeBasePermissionEditor,LYRA_DEFAULT_knowledgeBasePermissionOwner,LYRA_DEFAULT_knowledgeBasePermissionRestricted,LYRA_DEFAULT_knowledgeBasePermissionViewer,LYRA_DEFAULT_knowledgeBaseRowActionsLabel,LYRA_DEFAULT_knowledgeBaseSyncAction,LYRA_DEFAULT_knowledgeBaseSyncColumn,LYRA_DEFAULT_knowledgeBaseSyncError,LYRA_DEFAULT_knowledgeBaseSyncIdle,LYRA_DEFAULT_knowledgeBaseSyncPaused,LYRA_DEFAULT_knowledgeBaseSyncSynced,LYRA_DEFAULT_knowledgeBaseSyncSyncing,LYRA_DEFAULT_knowledgeBaseSyncedSources,LYRA_DEFAULT_knowledgeBaseSyncingSources,LYRA_DEFAULT_knowledgeBaseTotalSources,LYRA_DEFAULT_memoryPanelAdd,LYRA_DEFAULT_memoryPanelAddWithContext,LYRA_DEFAULT_memoryPanelConfirmAddHeading,LYRA_DEFAULT_memoryPanelConfirmForgetBody,LYRA_DEFAULT_memoryPanelConfirmForgetHeading,LYRA_DEFAULT_memoryPanelConfirmRemoveHeading,LYRA_DEFAULT_memoryPanelForgetAll,LYRA_DEFAULT_memoryPanelItemsLimit,LYRA_DEFAULT_memoryPanelLabel,LYRA_DEFAULT_memoryPanelLongTermHeading,LYRA_DEFAULT_memoryPanelShortTermHeading,LYRA_DEFAULT_mindMapCollapsed,LYRA_DEFAULT_mindMapExpanded,LYRA_DEFAULT_mindMapInputLimit,LYRA_DEFAULT_mindMapLabel,LYRA_DEFAULT_mindMapLeafStatus,LYRA_DEFAULT_mindMapNodeLimit,LYRA_DEFAULT_mindMapTopicStatus,LYRA_DEFAULT_neighborExpand,LYRA_DEFAULT_neighborGroupHeader,LYRA_DEFAULT_neighborListEmpty,LYRA_DEFAULT_neighborListLabel,LYRA_DEFAULT_neighborRowLabel,LYRA_DEFAULT_neighborSourceChoose,LYRA_DEFAULT_neighborSourceError,LYRA_DEFAULT_neighborSourceSummary,LYRA_DEFAULT_nodePaletteDragHint,LYRA_DEFAULT_nodePaletteEmpty,LYRA_DEFAULT_nodePaletteLabel,LYRA_DEFAULT_nodePalettePlaceholder,LYRA_DEFAULT_nodePaletteResultCount,LYRA_DEFAULT_pathNodeStatus,LYRA_DEFAULT_pathRelationStatus,LYRA_DEFAULT_pathStripLabel,LYRA_DEFAULT_provenanceChunks,LYRA_DEFAULT_provenanceCommunities,LYRA_DEFAULT_provenanceEmpty,LYRA_DEFAULT_provenancePanelLabel,LYRA_DEFAULT_provenancePanelLimit,LYRA_DEFAULT_provenanceRelationships,LYRA_DEFAULT_ragAnswerCitations,LYRA_DEFAULT_ragAnswerEmpty,LYRA_DEFAULT_ragAnswerLabel,LYRA_DEFAULT_ragAnswerRetry,LYRA_DEFAULT_ragAnswerSources,LYRA_DEFAULT_ragEvalDashboardAllSlices,LYRA_DEFAULT_ragEvalDashboardEmpty,LYRA_DEFAULT_ragEvalDashboardInputLimit,LYRA_DEFAULT_ragEvalDashboardLabel,LYRA_DEFAULT_ragEvalDashboardRuns,LYRA_DEFAULT_ragEvalDashboardSliceUnavailable,LYRA_DEFAULT_ragEvalDashboardSlices,LYRA_DEFAULT_ragEvalDashboardSlicesLimit,LYRA_DEFAULT_researchProgressEmpty,LYRA_DEFAULT_researchProgressLabel,LYRA_DEFAULT_researchProgressLimit,LYRA_DEFAULT_researchProgressSources,LYRA_DEFAULT_researchProgressStatusCompleted,LYRA_DEFAULT_researchProgressStatusFailed,LYRA_DEFAULT_researchProgressStatusPending,LYRA_DEFAULT_researchProgressStatusRunning,LYRA_DEFAULT_retrievalCompareDenseScore,LYRA_DEFAULT_retrievalCompareEmpty,LYRA_DEFAULT_retrievalCompareFinalScore,LYRA_DEFAULT_retrievalCompareInputLimit,LYRA_DEFAULT_retrievalCompareLabel,LYRA_DEFAULT_retrievalCompareOverlap,LYRA_DEFAULT_retrievalCompareRank,LYRA_DEFAULT_retrievalCompareRerankScore,LYRA_DEFAULT_retrievalCompareResultLimit,LYRA_DEFAULT_retrievalCompareSparseScore,LYRA_DEFAULT_retrievalFilterChipLabel,LYRA_DEFAULT_retrievalFiltersLabel,LYRA_DEFAULT_retrievalModeHybrid,LYRA_DEFAULT_retrievalModeKeyword,LYRA_DEFAULT_retrievalModeLabel,LYRA_DEFAULT_retrievalModeVector,LYRA_DEFAULT_retrievalResultsInputLimit,LYRA_DEFAULT_retrievalResultsSelectRowOrdinal,LYRA_DEFAULT_retrievalSearchEmptyDescription,LYRA_DEFAULT_retrievalSearchLabel,LYRA_DEFAULT_retrievalStageEmbed,LYRA_DEFAULT_retrievalStageFilter,LYRA_DEFAULT_retrievalStageKindUnknown,LYRA_DEFAULT_retrievalStageQueryRewrite,LYRA_DEFAULT_retrievalStageRerank,LYRA_DEFAULT_retrievalStageRetrieve,LYRA_DEFAULT_retrievalTraceEmpty,LYRA_DEFAULT_retrievalTraceEvidenceToggle,LYRA_DEFAULT_scoreTierHigh,LYRA_DEFAULT_scoreTierLow,LYRA_DEFAULT_scoreTierMedium,LYRA_DEFAULT_selectAllSources,LYRA_DEFAULT_showMore,LYRA_DEFAULT_sourcePageSuffix,LYRA_DEFAULT_sourcePickerMatches,LYRA_DEFAULT_sourcePickerSelection,LYRA_DEFAULT_untitledCommunity,LYRA_DEFAULT_untitledEntity,LYRA_DEFAULT_untitledSource,LYRA_DEFAULT_valueTruncated};
|
|
@@ -13,8 +13,14 @@ export interface Engine3dPickModifiers{readonly shift:boolean;readonly ctrl:bool
|
|
|
13
13
|
* declarations never enter this library's public type graph.
|
|
14
14
|
*/
|
|
15
15
|
export interface Engine3dHost{hover(item:number|null):void;pick(item:number|null,modifiers:Engine3dPickModifiers):void;camera(camera:unknown):void;progress?(loaded:number,total:number):void;lost(reason:'context-lost'|'error',detail?:string):void;rendering?(info:{readonly software:boolean;}):void;restored?():void;}
|
|
16
|
+
/** Platform-independent states of an optional immersive presentation.*/
|
|
17
|
+
type Engine3dXrState='ready'|'requesting'|'presenting'|'ending'|'disposed';
|
|
18
|
+
/** Structural options owned here without importing the optional companion's declarations.*/
|
|
19
|
+
interface Engine3dXrOptions{readonly onStateChange?:(state:Engine3dXrState)=>void;}
|
|
20
|
+
/** A prepared presentation owns its native lifetime independently of the loader.*/
|
|
21
|
+
interface Engine3dXrPresentation{readonly state:Engine3dXrState;enter():Promise<void>;exit():Promise<void>;dispose():void;}
|
|
16
22
|
/** The engine surface a component calls; data, camera and style stay opaque to the loader.*/
|
|
17
|
-
export interface Engine3dInstance{readonly contract:typeof ENGINE_3D_CONTRACT;mount(container:HTMLElement,host:Engine3dHost):Promise<void>;setData(data:unknown,revision:number):void;setStyle(style:unknown):void;setState?(state:{readonly selected:ReadonlySet<number>;readonly dimmed:ReadonlySet<number>;readonly hover:number;readonly focus:number;}):void;setCamera(camera:unknown):void;fit?(padding?:number):unknown;focus?(item:number,zoom?:number):unknown;pick?(x:number,y:number):number|null;project?(item:number):{readonly x:number;readonly y:number;}|null;positionOf?(item:number):{readonly x:number;readonly y:number;readonly z:number;}|null;resize(width:number,height:number):void;dispose():void;}
|
|
23
|
+
export interface Engine3dInstance{readonly contract:typeof ENGINE_3D_CONTRACT;mount(container:HTMLElement,host:Engine3dHost):Promise<void>;setData(data:unknown,revision:number):void;setStyle(style:unknown):void;setState?(state:{readonly selected:ReadonlySet<number>;readonly dimmed:ReadonlySet<number>;readonly hover:number;readonly focus:number;}):void;setCamera(camera:unknown):void;fit?(padding?:number):unknown;focus?(item:number,zoom?:number):unknown;pick?(x:number,y:number):number|null;project?(item:number):{readonly x:number;readonly y:number;}|null;positionOf?(item:number):{readonly x:number;readonly y:number;readonly z:number;}|null;resize(width:number,height:number):void;prepareXrPresentation?(options?:Engine3dXrOptions):Promise<Engine3dXrPresentation>;dispose():void;}
|
|
18
24
|
/** What every engine entry point exports.*/
|
|
19
25
|
export interface Engine3dModule{createEngine():unknown;}
|
|
20
26
|
/** Whether a loaded entry point exposes a callable `createEngine`.*/
|
|
@@ -44,4 +50,4 @@ create():Promise<Engine3dInstance|null>;}
|
|
|
44
50
|
* next attempt. Development builds warn once per entry point and failure kind; importer errors are
|
|
45
51
|
* never included because they can carry local paths.
|
|
46
52
|
*/
|
|
47
|
-
export declare function createEngine3dLoader(options:Engine3dLoaderOptions):Engine3dLoader;
|
|
53
|
+
export declare function createEngine3dLoader(options:Engine3dLoaderOptions):Engine3dLoader;export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{devWarnOnce}from"./dev-warning.js";import{createOptionalPeerLoader}from"./optional-peer-capabilities.js";const ENGINE_3D_CONTRACT=1,REQUIRED_METHODS=["mount","setData","setStyle","setCamera","resize","dispose"],OPTIONAL_METHODS=["setState","fit","focus","pick","project","positionOf"];function isObjectLike(value){return(typeof value=="object"||typeof value=="function")&&value!==null}function isEngine3dModule(candidate){return isObjectLike(candidate)&&typeof candidate.createEngine=="function"}function engine3dContractViolation(candidate){if(!isObjectLike(candidate))return"engine object";if(candidate.contract!==ENGINE_3D_CONTRACT)return"contract";for(const method of REQUIRED_METHODS)if(typeof candidate[method]!="function")return method;for(const method of OPTIONAL_METHODS)if(candidate[method]!==void 0&&typeof candidate[method]!="function")return method}function createEngine3dLoader(options){const specifier=`@aceshooting/lyra-3d/${options.entry}`,peer=createOptionalPeerLoader({load:options.load,isCapability:isEngine3dModule,warningKey:`lyra-3d-${options.entry}-unavailable`,warning:`<${options.tag}> could not load its optional \`${specifier}\` engine — install it with \`pnpm add @aceshooting/lyra-3d\`.`}),incompatible=()=>devWarnOnce(`lyra-3d-${options.entry}-incompatible`,`<${options.tag}> cannot use the installed \`${specifier}\` engine: it does not implement engine contract ${ENGINE_3D_CONTRACT}. Install a matching @aceshooting/lyra-3d version.`);let generation=0;const clear=()=>{generation+=1,peer.clear()};return{...peer,clear,override(importer){generation+=1,peer.override(importer)},entry:options.entry,async create(){const owner=generation,module=await peer.get();if(!module)return null;try{const engine=module.createEngine();if(engine3dContractViolation(engine)===void 0)return engine}catch{}return owner===generation&&clear(),incompatible(),null}}}export{ENGINE_3D_CONTRACT,createEngine3dLoader,engine3dContractViolation,isEngine3dModule};
|
|
1
|
+
import{devWarnOnce}from"./dev-warning.js";import{createOptionalPeerLoader}from"./optional-peer-capabilities.js";const ENGINE_3D_CONTRACT=1,REQUIRED_METHODS=["mount","setData","setStyle","setCamera","resize","dispose"],OPTIONAL_METHODS=["setState","fit","focus","pick","project","positionOf","prepareXrPresentation"];function isObjectLike(value){return(typeof value=="object"||typeof value=="function")&&value!==null}function isEngine3dModule(candidate){return isObjectLike(candidate)&&typeof candidate.createEngine=="function"}function engine3dContractViolation(candidate){if(!isObjectLike(candidate))return"engine object";if(candidate.contract!==ENGINE_3D_CONTRACT)return"contract";for(const method of REQUIRED_METHODS)if(typeof candidate[method]!="function")return method;for(const method of OPTIONAL_METHODS)if(candidate[method]!==void 0&&typeof candidate[method]!="function")return method}function createEngine3dLoader(options){const specifier=`@aceshooting/lyra-3d/${options.entry}`,peer=createOptionalPeerLoader({load:options.load,isCapability:isEngine3dModule,warningKey:`lyra-3d-${options.entry}-unavailable`,warning:`<${options.tag}> could not load its optional \`${specifier}\` engine — install it with \`pnpm add @aceshooting/lyra-3d\`.`}),incompatible=()=>devWarnOnce(`lyra-3d-${options.entry}-incompatible`,`<${options.tag}> cannot use the installed \`${specifier}\` engine: it does not implement engine contract ${ENGINE_3D_CONTRACT}. Install a matching @aceshooting/lyra-3d version.`);let generation=0;const clear=()=>{generation+=1,peer.clear()};return{...peer,clear,override(importer){generation+=1,peer.override(importer)},entry:options.entry,async create(){const owner=generation,module=await peer.get();if(!module)return null;try{const engine=module.createEngine();if(engine3dContractViolation(engine)===void 0)return engine}catch{}return owner===generation&&clear(),incompatible(),null}}}export{ENGINE_3D_CONTRACT,createEngine3dLoader,engine3dContractViolation,isEngine3dModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{css}from"lit";import{focusRing}from"./interactive-control.styles.js";const formControlRequiredMarker=css`:host([required]) [part~=form-control-label]:after,[part=field][data-required] [part=label]:after{content:var(--lr-form-control-required-content," *");color:var(--lr-form-control-required-color,var(--lr-color-danger));margin-inline-start:var(--lr-form-control-required-offset,0)}`,formControlFocusHalo=css` box-shadow: var(--_lr-form-control-focus-shadow, none); `,formControlAppearance=css`:host{--_lr-form-control-fill:var(--lr-color-surface);--_lr-form-control-border-color:var(--lr-color-border)}:host([appearance=filled-outlined]){--_lr-form-control-fill:var(--lr-color-surface-raised)}:host([appearance=filled]),:host([filled]){--_lr-form-control-fill:var(--lr-color-surface-raised);--_lr-form-control-border-color:transparent}:host([appearance=plain]){--_lr-form-control-fill:transparent;--_lr-form-control-border-color:transparent}:host([appearance=accent]){--_lr-form-control-fill:var(--lr-color-brand-quiet);--_lr-form-control-border-color:var(--lr-color-brand)}`,formControlSupportingText=css`[part~=hint],[part~=error]{font-size:var(--lr-font-size-sm);margin-block-start:var(--lr-space-xs)}[part~=hint]{color:var(--lr-color-text-quiet)}[part~=error]{color:var(--lr-color-danger)}[part~=hint][hidden],[part~=error][hidden]{display:none}`,formControlChrome=css` [part~='form-control-label'] { display: block; margin-block-end: var(--lr-space-xs); font-size: var(--lr-font-size-md-sm); font-weight: var(--lr-font-weight-semibold); } [part~='form-control-label'][hidden] { display: none; } ${formControlSupportingText} `,formControlTextWrap=css` min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; `,formControlPresetButton=css` [part~='preset-button'] { border: var(--lr-border-width-thin) solid var(--lr-color-border); background: var(--lr-color-surface); color: var(--lr-color-text); font: inherit; cursor: pointer; transition: var(--lr-transition-interactive); } [part~='preset-button']:not([data-active]):hover:not(:disabled) { background: var(--_lr-preset-hover-bg, var(--lr-color-brand-quiet)); border-color: var(--_lr-preset-hover-border-color, var(--lr-color-brand)); } [part~='preset-button']:not([data-active]):active:not(:disabled) { background: var( --_lr-preset-pressed-bg, color-mix(in oklab, var(--_lr-preset-pressed-base, var(--lr-color-brand-quiet)), var(--lr-color-mix-partner) var(--lr-color-mix-active)) ); border-color: var( --_lr-preset-pressed-border-color, color-mix(in oklab, var(--lr-color-brand), var(--lr-color-mix-partner) var(--lr-color-mix-active)) ); } [part~='preset-button'][data-active] { background: var(--_lr-preset-selected-bg, var(--lr-color-brand)); border-color: var(--_lr-preset-selected-border-color, var(--lr-color-brand)); color: var(--_lr-preset-selected-color, var(--lr-color-on-brand)); } [part~='preset-button'][data-active]:hover:not(:disabled) { background-image: linear-gradient( color-mix(in oklab, transparent, var(--lr-color-mix-partner) var(--lr-color-mix-hover)), color-mix(in oklab, transparent, var(--lr-color-mix-partner) var(--lr-color-mix-hover)) ); } [part~='preset-button'][data-active]:active:not(:disabled) { background-color: var( --_lr-preset-selected-pressed-bg, color-mix( in oklab, var(--_lr-preset-selected-bg, var(--lr-color-brand)), var(--lr-color-mix-partner) var(--lr-color-mix-active) ) ); background-image: var(--_lr-preset-selected-pressed-image, none); border-color: var( --_lr-preset-selected-pressed-border-color, color-mix( in oklab, var(--_lr-preset-selected-border-color, var(--lr-color-brand)), var(--lr-color-mix-partner) var(--lr-color-mix-active) ) ); } [part~='preset-button']:focus-visible { ${focusRing} } [part~='preset-button']:disabled { cursor: not-allowed; } `;export{formControlAppearance,formControlChrome,formControlFocusHalo,formControlPresetButton,formControlRequiredMarker,formControlSupportingText,formControlTextWrap};
|
|
1
|
+
import{css}from"lit";import{visuallyHidden}from"./a11y.js";import{focusRing}from"./interactive-control.styles.js";const formControlRequiredMarker=css`:host([required]) [part~=form-control-label]:after,[part=field][data-required] [part=label]:after{content:var(--lr-form-control-required-content," *");color:var(--lr-form-control-required-color,var(--lr-color-danger));margin-inline-start:var(--lr-form-control-required-offset,0)}`,formControlFocusHalo=css` box-shadow: var(--_lr-form-control-focus-shadow, none); `,formControlAppearance=css`:host{--_lr-form-control-fill:var(--lr-color-surface);--_lr-form-control-border-color:var(--lr-color-border)}:host([appearance=filled-outlined]){--_lr-form-control-fill:var(--lr-color-surface-raised)}:host([appearance=filled]),:host([filled]){--_lr-form-control-fill:var(--lr-color-surface-raised);--_lr-form-control-border-color:transparent}:host([appearance=plain]){--_lr-form-control-fill:transparent;--_lr-form-control-border-color:transparent}:host([appearance=accent]){--_lr-form-control-fill:var(--lr-color-brand-quiet);--_lr-form-control-border-color:var(--lr-color-brand)}`,formControlSupportingText=css`[part~=hint],[part~=error]{font-size:var(--lr-font-size-sm);margin-block-start:var(--lr-space-xs)}[part~=hint]{color:var(--lr-color-text-quiet)}[part~=error]{color:var(--lr-color-danger)}[part~=hint][hidden],[part~=error][hidden]{display:none}`,formControlLabelDisplay=css` :host([label-display='hidden']) [part~='form-control-label'] { ${visuallyHidden} } `,formControlChrome=css` [part~='form-control-label'] { display: block; margin-block-end: var(--lr-space-xs); font-size: var(--lr-font-size-md-sm); font-weight: var(--lr-font-weight-semibold); } [part~='form-control-label'][hidden] { display: none; } ${formControlSupportingText} ${formControlLabelDisplay} `,formControlTextWrap=css` min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; `,formControlPresetButton=css` [part~='preset-button'] { border: var(--lr-border-width-thin) solid var(--lr-color-border); background: var(--lr-color-surface); color: var(--lr-color-text); font: inherit; cursor: pointer; transition: var(--lr-transition-interactive); } [part~='preset-button']:not([data-active]):hover:not(:disabled) { background: var(--_lr-preset-hover-bg, var(--lr-color-brand-quiet)); border-color: var(--_lr-preset-hover-border-color, var(--lr-color-brand)); } [part~='preset-button']:not([data-active]):active:not(:disabled) { background: var( --_lr-preset-pressed-bg, color-mix(in oklab, var(--_lr-preset-pressed-base, var(--lr-color-brand-quiet)), var(--lr-color-mix-partner) var(--lr-color-mix-active)) ); border-color: var( --_lr-preset-pressed-border-color, color-mix(in oklab, var(--lr-color-brand), var(--lr-color-mix-partner) var(--lr-color-mix-active)) ); } [part~='preset-button'][data-active] { background: var(--_lr-preset-selected-bg, var(--lr-color-brand)); border-color: var(--_lr-preset-selected-border-color, var(--lr-color-brand)); color: var(--_lr-preset-selected-color, var(--lr-color-on-brand)); } [part~='preset-button'][data-active]:hover:not(:disabled) { background-image: linear-gradient( color-mix(in oklab, transparent, var(--lr-color-mix-partner) var(--lr-color-mix-hover)), color-mix(in oklab, transparent, var(--lr-color-mix-partner) var(--lr-color-mix-hover)) ); } [part~='preset-button'][data-active]:active:not(:disabled) { background-color: var( --_lr-preset-selected-pressed-bg, color-mix( in oklab, var(--_lr-preset-selected-bg, var(--lr-color-brand)), var(--lr-color-mix-partner) var(--lr-color-mix-active) ) ); background-image: var(--_lr-preset-selected-pressed-image, none); border-color: var( --_lr-preset-selected-pressed-border-color, color-mix( in oklab, var(--_lr-preset-selected-border-color, var(--lr-color-brand)), var(--lr-color-mix-partner) var(--lr-color-mix-active) ) ); } [part~='preset-button']:focus-visible { ${focusRing} } [part~='preset-button']:disabled { cursor: not-allowed; } `;export{formControlAppearance,formControlChrome,formControlFocusHalo,formControlLabelDisplay,formControlPresetButton,formControlRequiredMarker,formControlSupportingText,formControlTextWrap};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const localeLoaders=Object.freeze({am:()=>import("@aceshooting/lyra-translations/am.js"),ar:()=>import("@aceshooting/lyra-translations/ar.js"),bho:()=>import("@aceshooting/lyra-translations/bho.js"),bn:()=>import("@aceshooting/lyra-translations/bn.js"),cs:()=>import("@aceshooting/lyra-translations/cs.js"),da:()=>import("@aceshooting/lyra-translations/da.js"),de:()=>import("@aceshooting/lyra-translations/de.js"),"de-CH":()=>import("@aceshooting/lyra-translations/de-CH.js"),el:()=>import("@aceshooting/lyra-translations/el.js"),"en-GB":()=>import("@aceshooting/lyra-translations/en-GB.js"),es:()=>import("@aceshooting/lyra-translations/es.js"),"es-419":()=>import("@aceshooting/lyra-translations/es-419.js"),fa:()=>import("@aceshooting/lyra-translations/fa.js"),"fa-AF":()=>import("@aceshooting/lyra-translations/fa-AF.js"),fi:()=>import("@aceshooting/lyra-translations/fi.js"),fil:()=>import("@aceshooting/lyra-translations/tl.js"),fr:()=>import("@aceshooting/lyra-translations/fr.js"),"fr-CA":()=>import("@aceshooting/lyra-translations/fr-CA.js"),gu:()=>import("@aceshooting/lyra-translations/gu.js"),ha:()=>import("@aceshooting/lyra-translations/ha.js"),he:()=>import("@aceshooting/lyra-translations/he.js"),hi:()=>import("@aceshooting/lyra-translations/hi.js"),hr:()=>import("@aceshooting/lyra-translations/hr.js"),hu:()=>import("@aceshooting/lyra-translations/hu.js"),id:()=>import("@aceshooting/lyra-translations/id.js"),ig:()=>import("@aceshooting/lyra-translations/ig.js"),it:()=>import("@aceshooting/lyra-translations/it.js"),ja:()=>import("@aceshooting/lyra-translations/ja.js"),jv:()=>import("@aceshooting/lyra-translations/jv.js"),kk:()=>import("@aceshooting/lyra-translations/kk.js"),kn:()=>import("@aceshooting/lyra-translations/kn.js"),ko:()=>import("@aceshooting/lyra-translations/ko.js"),lah:()=>import("@aceshooting/lyra-translations/pnb.js"),ln:()=>import("@aceshooting/lyra-translations/ln.js"),ml:()=>import("@aceshooting/lyra-translations/ml.js"),mr:()=>import("@aceshooting/lyra-translations/mr.js"),ms:()=>import("@aceshooting/lyra-translations/ms.js"),my:()=>import("@aceshooting/lyra-translations/my.js"),nb:()=>import("@aceshooting/lyra-translations/nb.js"),ne:()=>import("@aceshooting/lyra-translations/ne.js"),nl:()=>import("@aceshooting/lyra-translations/nl.js"),nn:()=>import("@aceshooting/lyra-translations/nn.js"),om:()=>import("@aceshooting/lyra-translations/om.js"),or:()=>import("@aceshooting/lyra-translations/or.js"),pa:()=>import("@aceshooting/lyra-translations/pa.js"),pcm:()=>import("@aceshooting/lyra-translations/pcm.js"),pl:()=>import("@aceshooting/lyra-translations/pl.js"),ps:()=>import("@aceshooting/lyra-translations/ps.js"),"pt-BR":()=>import("@aceshooting/lyra-translations/pt-BR.js"),"pt-PT":()=>import("@aceshooting/lyra-translations/pt-PT.js"),ro:()=>import("@aceshooting/lyra-translations/ro.js"),ru:()=>import("@aceshooting/lyra-translations/ru.js"),sd:()=>import("@aceshooting/lyra-translations/sd.js"),sl:()=>import("@aceshooting/lyra-translations/sl.js"),su:()=>import("@aceshooting/lyra-translations/su.js"),sv:()=>import("@aceshooting/lyra-translations/sv.js"),sw:()=>import("@aceshooting/lyra-translations/sw.js"),ta:()=>import("@aceshooting/lyra-translations/ta.js"),te:()=>import("@aceshooting/lyra-translations/te.js"),th:()=>import("@aceshooting/lyra-translations/th.js"),tr:()=>import("@aceshooting/lyra-translations/tr.js"),uk:()=>import("@aceshooting/lyra-translations/uk.js"),ur:()=>import("@aceshooting/lyra-translations/ur.js"),uz:()=>import("@aceshooting/lyra-translations/uz.js"),vi:()=>import("@aceshooting/lyra-translations/vi.js"),yo:()=>import("@aceshooting/lyra-translations/yo.js"),"zh-CN":()=>import("@aceshooting/lyra-translations/zh-CN.js"),"zh-HK":()=>import("@aceshooting/lyra-translations/zh-HK.js"),"zh-TW":()=>import("@aceshooting/lyra-translations/zh-TW.js"),zu:()=>import("@aceshooting/lyra-translations/zu.js")});export{localeLoaders};
|
|
1
|
+
const localeLoaders=Object.freeze({am:()=>import("@aceshooting/lyra-translations/am.js"),ar:()=>import("@aceshooting/lyra-translations/ar.js"),bg:()=>import("@aceshooting/lyra-translations/bg.js"),bho:()=>import("@aceshooting/lyra-translations/bho.js"),bn:()=>import("@aceshooting/lyra-translations/bn.js"),ca:()=>import("@aceshooting/lyra-translations/ca.js"),cs:()=>import("@aceshooting/lyra-translations/cs.js"),da:()=>import("@aceshooting/lyra-translations/da.js"),de:()=>import("@aceshooting/lyra-translations/de.js"),"de-CH":()=>import("@aceshooting/lyra-translations/de-CH.js"),el:()=>import("@aceshooting/lyra-translations/el.js"),"en-GB":()=>import("@aceshooting/lyra-translations/en-GB.js"),es:()=>import("@aceshooting/lyra-translations/es.js"),"es-419":()=>import("@aceshooting/lyra-translations/es-419.js"),et:()=>import("@aceshooting/lyra-translations/et.js"),fa:()=>import("@aceshooting/lyra-translations/fa.js"),"fa-AF":()=>import("@aceshooting/lyra-translations/fa-AF.js"),fi:()=>import("@aceshooting/lyra-translations/fi.js"),fil:()=>import("@aceshooting/lyra-translations/tl.js"),fr:()=>import("@aceshooting/lyra-translations/fr.js"),"fr-CA":()=>import("@aceshooting/lyra-translations/fr-CA.js"),ga:()=>import("@aceshooting/lyra-translations/ga.js"),gu:()=>import("@aceshooting/lyra-translations/gu.js"),ha:()=>import("@aceshooting/lyra-translations/ha.js"),he:()=>import("@aceshooting/lyra-translations/he.js"),hi:()=>import("@aceshooting/lyra-translations/hi.js"),hr:()=>import("@aceshooting/lyra-translations/hr.js"),hu:()=>import("@aceshooting/lyra-translations/hu.js"),id:()=>import("@aceshooting/lyra-translations/id.js"),ig:()=>import("@aceshooting/lyra-translations/ig.js"),it:()=>import("@aceshooting/lyra-translations/it.js"),ja:()=>import("@aceshooting/lyra-translations/ja.js"),jv:()=>import("@aceshooting/lyra-translations/jv.js"),kk:()=>import("@aceshooting/lyra-translations/kk.js"),kn:()=>import("@aceshooting/lyra-translations/kn.js"),ko:()=>import("@aceshooting/lyra-translations/ko.js"),lah:()=>import("@aceshooting/lyra-translations/pnb.js"),ln:()=>import("@aceshooting/lyra-translations/ln.js"),lt:()=>import("@aceshooting/lyra-translations/lt.js"),lv:()=>import("@aceshooting/lyra-translations/lv.js"),ml:()=>import("@aceshooting/lyra-translations/ml.js"),mr:()=>import("@aceshooting/lyra-translations/mr.js"),ms:()=>import("@aceshooting/lyra-translations/ms.js"),mt:()=>import("@aceshooting/lyra-translations/mt.js"),my:()=>import("@aceshooting/lyra-translations/my.js"),nb:()=>import("@aceshooting/lyra-translations/nb.js"),ne:()=>import("@aceshooting/lyra-translations/ne.js"),nl:()=>import("@aceshooting/lyra-translations/nl.js"),nn:()=>import("@aceshooting/lyra-translations/nn.js"),om:()=>import("@aceshooting/lyra-translations/om.js"),or:()=>import("@aceshooting/lyra-translations/or.js"),pa:()=>import("@aceshooting/lyra-translations/pa.js"),pcm:()=>import("@aceshooting/lyra-translations/pcm.js"),pl:()=>import("@aceshooting/lyra-translations/pl.js"),ps:()=>import("@aceshooting/lyra-translations/ps.js"),"pt-BR":()=>import("@aceshooting/lyra-translations/pt-BR.js"),"pt-PT":()=>import("@aceshooting/lyra-translations/pt-PT.js"),ro:()=>import("@aceshooting/lyra-translations/ro.js"),ru:()=>import("@aceshooting/lyra-translations/ru.js"),sd:()=>import("@aceshooting/lyra-translations/sd.js"),sk:()=>import("@aceshooting/lyra-translations/sk.js"),sl:()=>import("@aceshooting/lyra-translations/sl.js"),sr:()=>import("@aceshooting/lyra-translations/sr.js"),"sr-Latn":()=>import("@aceshooting/lyra-translations/sr-Latn.js"),su:()=>import("@aceshooting/lyra-translations/su.js"),sv:()=>import("@aceshooting/lyra-translations/sv.js"),sw:()=>import("@aceshooting/lyra-translations/sw.js"),ta:()=>import("@aceshooting/lyra-translations/ta.js"),te:()=>import("@aceshooting/lyra-translations/te.js"),th:()=>import("@aceshooting/lyra-translations/th.js"),tr:()=>import("@aceshooting/lyra-translations/tr.js"),uk:()=>import("@aceshooting/lyra-translations/uk.js"),ur:()=>import("@aceshooting/lyra-translations/ur.js"),uz:()=>import("@aceshooting/lyra-translations/uz.js"),vi:()=>import("@aceshooting/lyra-translations/vi.js"),yo:()=>import("@aceshooting/lyra-translations/yo.js"),"zh-CN":()=>import("@aceshooting/lyra-translations/zh-CN.js"),"zh-HK":()=>import("@aceshooting/lyra-translations/zh-HK.js"),"zh-TW":()=>import("@aceshooting/lyra-translations/zh-TW.js"),zu:()=>import("@aceshooting/lyra-translations/zu.js")});export{localeLoaders};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{canonicalizeLocaleTag}from"./locale-tag.js";import{warnLocaleFallback}from"./dev-warning.js";import{domParentElement,flattenedParentElement,ownerView}from"./composed-tree.js";import{getPluralRules}from"./intl-cache.js";import{isPlainRecord}from"./object-guards.js";const MAX_LOCALE_CANDIDATES=64,MAX_LOCALE_PARENT_DEPTH=32,MAX_LOCALE_SUBTAGS=32,MAX_LOCALE_TAG_LENGTH=255,MAX_LOCALE_CACHE_ENTRIES=128,MAX_CACHEABLE_LOCALE_LENGTH=512,LEGACY_LOCALE_PATTERN=/^[a-z0-9]{1,32}(?:-[a-z0-9]{1,32})*$/,locales=new Map,localePublicTags=new Map,localeMeta=new Map,localeParents=new Map,wellFormedLocales=new Set,exactOnlyLocales=new Set,localeCatalogRevisions=new Map,listeners=new Set,hostLocaleListeners=new Set,hostLocaleFinalizer=new FinalizationRegistry(subscription=>{hostLocaleListeners.delete(subscription)}),ownerDocumentsWithBrowsingContext=new WeakSet,registryListeners=new Set;let activeLocale="",catalogRevision=0;const localeIdentityCache=new Map,EMPTY_LOCALE_IDENTITY=Object.freeze({publicTag:"",lookupKey:"",wellFormed:!1,candidateBounded:!0,storable:!1}),localeCandidateCache=new Map,ENGLISH_ONLY_CANDIDATES=Object.freeze(["en"]);function cacheBounded(cache,key,value){cache.size>=MAX_LOCALE_CACHE_ENTRIES&&cache.clear(),cache.set(key,value)}function subtagCountWithinBounds(tag){if(tag.length>MAX_LOCALE_TAG_LENGTH)return!1;let count=tag?1:0;for(let index=0;index<tag.length;index+=1)if(tag.charCodeAt(index)===45&&++count>MAX_LOCALE_SUBTAGS)return!1;return!0}function localeIdentity(locale){const known=typeof locale=="string"&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(locale):void 0;if(known)return known;const normalized=typeof locale=="string"?locale.trim().replace(/_/g,"-"):"";if(!normalized)return EMPTY_LOCALE_IDENTITY;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(normalized):void 0;if(cached)return rememberLocaleSpelling(locale,normalized,cached),cached;let publicTag=normalized.toLowerCase(),wellFormed=!1;try{const canonical=canonicalizeLocaleTag(normalized);canonical&&(publicTag=canonical,wellFormed=!0)}catch{}const lookupKey=publicTag.toLowerCase(),candidateBounded=subtagCountWithinBounds(lookupKey),identity={publicTag,lookupKey,wellFormed,candidateBounded,storable:wellFormed||candidateBounded&&LEGACY_LOCALE_PATTERN.test(lookupKey)};return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,normalized,identity),rememberLocaleSpelling(locale,normalized,identity),identity}function rememberLocaleSpelling(locale,normalized,identity){locale!==normalized&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,locale,identity)}function storedLocaleIdentity(locale,required){if(typeof locale!="string")throw new TypeError("A locale must be a string.");const identity=localeIdentity(locale);if(!identity.publicTag){if(!required)return identity;throw new TypeError("A locale is required.")}if(!identity.storable)throw new TypeError("The locale must be BCP-47 or a bounded alphanumeric custom tag.");return identity}function canonicalizeLyraLocale(locale){const identity=localeIdentity(locale);return identity.storable?identity.publicTag:"en"}const likelySubtagsCache=new Map;function likelySubtags(key){let likely=likelySubtagsCache.get(key);if(!likely){try{const{script="",region=""}=new Intl.Locale(key).maximize();likely=[script==="Zzzz"?"":script.toLowerCase(),region.toLowerCase()]}catch{return["",""]}key.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(likelySubtagsCache,key,likely)}return likely}function regionalFallbacks(requestedKey,limit,wellFormed){if(limit<=0||!wellFormed)return[];const separator=requestedKey.indexOf("-"),language=separator===-1?requestedKey:requestedKey.slice(0,separator);if(!language)return[];const requestedSubtags=new Set(requestedKey.split("-")),siblings=[...locales.keys()].filter(key=>wellFormedLocales.has(key)&&!exactOnlyLocales.has(key)&&(key===language||key.startsWith(`${language}-`))&&!isPrefixOf(key,requestedKey));if(siblings.length<2)return siblings;const[script,region]=likelySubtags(requestedKey),rank=key=>{const[keyScript,keyRegion]=likelySubtags(key);return(script&&keyScript===script?1e4:0)+(region&&keyRegion===region?1e3:0)+key.split("-").filter(subtag=>requestedSubtags.has(subtag)).length};return siblings.map(key=>[rank(key),key]).sort(([a,x],[b,y])=>b-a||(x<y?-1:x>y?1:0)).slice(0,limit).map(([,key])=>key)}function isPrefixOf(key,requestedKey){return key===requestedKey||requestedKey.startsWith(`${key}-`)}function localeCandidates(locale){const identity=localeIdentity(locale),normalized=identity.lookupKey;if(!normalized)return ENGLISH_ONLY_CANDIDATES;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeCandidateCache.get(normalized):void 0;if(cached)return cached;const candidates=[];if((identity.wellFormed||identity.candidateBounded)&&candidates.push(normalized),identity.candidateBounded){for(let index=normalized.length-1;index>=0;index-=1)normalized.charCodeAt(index)===45&&index>0&&candidates.push(normalized.slice(0,index));const regionalBudget=Math.max(0,MAX_LOCALE_CANDIDATES-candidates.length-1);candidates.push(...regionalFallbacks(normalized,regionalBudget,identity.wellFormed))}else if(identity.wellFormed){const separator=normalized.indexOf("-");separator>0&&candidates.push(normalized.slice(0,separator))}const expanded=[],seen=new Set;for(const candidate of candidates){let current=candidate;for(;current&&!seen.has(current)&&expanded.length<MAX_LOCALE_CANDIDATES-1;)seen.add(current),expanded.push(current),current=localeParents.get(current)}seen.has("en")||expanded.push("en");const frozen=Object.freeze(expanded);return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeCandidateCache,normalized,frozen),frozen}function lyraLocaleCatalogVersion(locale){return localeCandidates(locale).map(candidate=>localeCatalogRevisions.get(candidate)??0).join(",")}function getRegisteredLyraLocales(){const keys=new Set(["en",...localePublicTags.values()]);return Object.freeze([...keys].sort())}const NO_REGISTERED_LOCALE_KEYS=Object.freeze([]);function getRegisteredLyraLocaleKeys(locale){const identity=localeIdentity(locale);if(!identity.lookupKey)return NO_REGISTERED_LOCALE_KEYS;const catalog=locales.get(identity.lookupKey);return catalog?Object.freeze(Object.keys(catalog)):NO_REGISTERED_LOCALE_KEYS}function subscribeLyraLocaleRegistry(listener){return registryListeners.add(listener),()=>registryListeners.delete(listener)}const MAX_CATALOG_MESSAGES=4096,MAX_CATALOG_PROPERTY_READS=MAX_CATALOG_MESSAGES*2,MAX_MESSAGE_KEY_LENGTH=256,PLURAL_CATEGORIES=new Set(["zero","one","two","few","many","other"]),trustedMessageRecords=new WeakSet;function ownDataValue(record,key){try{const descriptor=Object.getOwnPropertyDescriptor(record,key);return descriptor&&"value"in descriptor?descriptor.value:void 0}catch{return}}function snapshotPluralMessage(value){if(!isPlainRecord(value))return;const snapshot=Object.create(null);let count=0;try{for(const key in value){if(++count>PLURAL_CATEGORIES.size||!PLURAL_CATEGORIES.has(key)||!Object.prototype.hasOwnProperty.call(value,key))return;const entry=ownDataValue(value,key);if(typeof entry!="string")return;snapshot[key]=entry}}catch{return}if(typeof snapshot.other!="string")return;const frozen=Object.freeze(snapshot);return trustedMessageRecords.add(frozen),frozen}function snapshotMessage(value){return typeof value=="string"?value:snapshotPluralMessage(value)}function snapshotCatalog(strings){const snapshot=Object.create(null);if(!isPlainRecord(strings)){const frozen2=Object.freeze(snapshot);return trustedMessageRecords.add(frozen2),frozen2}let keys;try{keys=Reflect.ownKeys(strings).slice(0,MAX_CATALOG_PROPERTY_READS)}catch{const frozen2=Object.freeze(snapshot);return trustedMessageRecords.add(frozen2),frozen2}let count=0;for(const key of keys){if(count>=MAX_CATALOG_MESSAGES)break;if(typeof key!="string"||!key||key.length>MAX_MESSAGE_KEY_LENGTH)continue;let descriptor;try{descriptor=Reflect.getOwnPropertyDescriptor(strings,key)}catch{continue}if(!descriptor?.enumerable||!("value"in descriptor))continue;count+=1;const message=snapshotMessage(descriptor.value);message!==void 0&&(snapshot[key]=message)}const frozen=Object.freeze(snapshot);return trustedMessageRecords.add(frozen),frozen}function mergeCatalogs(current,incoming){const merged=Object.assign(Object.create(null),current??{},incoming);return Object.freeze(merged),trustedMessageRecords.add(merged),merged}function snapshotLocaleMeta(meta){if(meta===void 0)return;if(!isPlainRecord(meta))return Object.freeze({});const snapshot={},dir=ownDataValue(meta,"dir");(dir==="ltr"||dir==="rtl")&&(snapshot.dir=dir);const name=ownDataValue(meta,"name");return typeof name=="string"&&(snapshot.name=name),Object.freeze(snapshot)}function snapshotLyraLocaleStrings(strings){return snapshotCatalog(strings)}let emptyLocaleStrings;function emptyLyraLocaleStrings(){return emptyLocaleStrings??=snapshotLyraLocaleStrings({})}const trustedDefaultCatalogs=new WeakMap;function trustedLyraDefaultStrings(defaults){const known=trustedDefaultCatalogs.get(defaults);if(known)return known;let trusted=defaults;if(isPlainRecord(defaults)&&!trustedMessageRecords.has(defaults))try{Reflect.ownKeys(defaults).length<=MAX_CATALOG_MESSAGES&&(trusted=snapshotCatalog(defaults))}catch{}return trustedDefaultCatalogs.set(defaults,trusted),trusted}function safeMessageAt(source,key){if(isPlainRecord(source))return trustedMessageRecords.has(source)?source[key]:snapshotMessage(ownDataValue(source,key))}function deliverLocaleListeners(groups,operation){const errors=[];for(const group of groups)for(const listener of group)try{listener()}catch(error){errors.push(error)}if(errors.length>0)throw new AggregateError(errors,`${operation} committed, but ${errors.length} locale subscriber${errors.length===1?"":"s"} failed.`)}function localeUsesCatalog(locale,lookupKey){return localeCandidates(locale).includes(lookupKey)}function recordLyraOwnerDocumentConnection(host){ownerView(host)&&ownerDocumentsWithBrowsingContext.add(host.ownerDocument)}function forgetHostLocaleSubscription(subscription){hostLocaleListeners.delete(subscription),hostLocaleFinalizer.unregister(subscription)}function liveHostLocaleSubscriptions(){const live=[];for(const subscription of[...hostLocaleListeners]){const host=subscription.deref();if(!host||!host.isConnected||ownerDocumentsWithBrowsingContext.has(host.ownerDocument)&&ownerView(host)===null){forgetHostLocaleSubscription(subscription);continue}live.push(host)}return live}function registerLocale(locale,strings,meta,exactOnly,parentKey){const identity=storedLocaleIdentity(locale,!0),key=identity.lookupKey,incomingStrings=snapshotCatalog(strings),incomingMeta=snapshotLocaleMeta(meta);parentKey!==void 0&&validateLocaleParent(key,parentKey);const isNewLocale=!locales.has(key),candidateTopologyChanged=isNewLocale||parentKey!==void 0&&localeParents.get(key)!==parentKey||exactOnly&&!exactOnlyLocales.has(key)||identity.wellFormed&&!wellFormedLocales.has(key),previouslyAffectedActive=candidateTopologyChanged&&activeLocale!==""&&localeUsesCatalog(activeLocale,key),previouslyAffectedHosts=new Set(candidateTopologyChanged?liveHostLocaleSubscriptions().filter(host=>localeUsesCatalog(inheritedLocale(host),key)):[]);exactOnly&&exactOnlyLocales.add(key),parentKey!==void 0&&localeParents.set(key,parentKey),identity.wellFormed&&wellFormedLocales.add(key),locales.set(key,mergeCatalogs(locales.get(key),incomingStrings)),localePublicTags.set(key,identity.publicTag),incomingMeta&&localeMeta.set(key,Object.freeze({...localeMeta.get(key)??{},...incomingMeta})),localeCatalogRevisions.set(key,++catalogRevision),candidateTopologyChanged&&(pluralLocaleCache.clear(),localeCandidateCache.clear());const activeSnapshot=previouslyAffectedActive||activeLocale&&localeUsesCatalog(activeLocale,key)?[...listeners]:[],hostSnapshot=liveHostLocaleSubscriptions().filter(host=>previouslyAffectedHosts.has(host)||localeUsesCatalog(inheritedLocale(host),key)).map(host=>()=>host.requestUpdate()),registrySnapshot=isNewLocale?[...registryListeners]:[];deliverLocaleListeners([activeSnapshot,hostSnapshot,registrySnapshot],`registerLyraLocale(${JSON.stringify(identity.publicTag)})`)}function registerLyraLocale(locale,strings,meta){registerLocale(locale,strings,meta,!1)}function validateLocaleParent(childKey,parentKey){for(const origin of new Set([childKey,...localeParents.keys()])){const visited=new Set;let current=origin,depth=0;for(;current;){if(visited.has(current))throw new TypeError("Locale parent relationships must not contain cycles.");if(visited.add(current),current=current===childKey?parentKey:localeParents.get(current),current&&++depth>MAX_LOCALE_PARENT_DEPTH)throw new TypeError("Locale parent chains must not exceed 32 edges.")}}}function registerLyraLocaleDelta(locale,parent,strings,meta){const parentKey=storedLocaleIdentity(parent,!0).lookupKey;registerLocale(locale,strings,meta,!0,parentKey)}function registerLyraExactLocale(locale,strings,meta){registerLocale(locale,strings,meta,!0)}function getLyraLocaleDirection(locale){const identity=localeIdentity(locale);if(!identity.publicTag)return"ltr";for(const candidate of localeCandidates(identity.publicTag)){const declared=localeMeta.get(candidate)?.dir;if(declared)return declared}try{const resolved=new Intl.Locale(identity.publicTag);return(resolved.textInfo?.direction??resolved.getTextInfo?.().direction)==="rtl"?"rtl":"ltr"}catch{return"ltr"}}function setLyraLocale(locale){const next=storedLocaleIdentity(locale,!1).publicTag;if(activeLocale===next)return;const hostSnapshot=liveHostLocaleSubscriptions(),previousHostLocales=hostSnapshot.map(host=>inheritedLocale(host));activeLocale=next;const affectedHostListeners=hostSnapshot.filter((host,index)=>inheritedLocale(host)!==previousHostLocales[index]).map(host=>()=>host.requestUpdate());deliverLocaleListeners([[...listeners],affectedHostListeners],`setLyraLocale(${JSON.stringify(next)})`)}function getLyraLocale(){return activeLocale}function resolveActiveOrExplicitLocale(locale){const trimmed=locale?.trim();return trimmed&&trimmed.toLowerCase()!=="auto"?locale:activeLocale||void 0}function subscribeLyraLocale(listener){return listeners.add(listener),()=>listeners.delete(listener)}function subscribeLyraLocaleForHost(host){recordLyraOwnerDocumentConnection(host);const subscription=new WeakRef(host);return hostLocaleListeners.add(subscription),hostLocaleFinalizer.register(host,subscription,subscription),()=>forgetHostLocaleSubscription(subscription)}function inheritedLocale(host,localeAttribute=host.getAttribute("locale")){const explicit=localeAttribute||host.getAttribute("lang");if(explicit)return canonicalizeLyraLocale(explicit);if(host.getAttribute("lang")==="")return activeLocale||"en";const documentElement=host.ownerDocument?.documentElement;let parent=domParentElement(host);for(;parent;){const isDocumentElement=parent===documentElement,locale=isDocumentElement?parent.getAttribute("locale"):parent.getAttribute("locale")||parent.getAttribute("lang");if(locale)return canonicalizeLyraLocale(locale);if(!isDocumentElement&&parent.getAttribute("lang")==="")return activeLocale||"en";parent=domParentElement(parent)}if(activeLocale)return activeLocale;const documentLocale=documentElement?.getAttribute("lang");return documentLocale?canonicalizeLyraLocale(documentLocale):"en"}const hostContextCaches=new WeakMap;function enableLyraLocaleCache(host){hostContextCaches.has(host)||hostContextCaches.set(host,{})}function invalidateLyraLocaleCache(host){const cache=hostContextCaches.get(host);cache&&(cache.attribute=void 0,cache.locale=void 0,cache.direction=void 0)}function resolveLyraLocale(host){return cachedLocale(host,host.getAttribute("locale")||"")}function cachedLocale(host,localeAttribute){const cache=hostContextCaches.get(host);if(!cache)return inheritedLocale(host,localeAttribute);let locale=cache.locale;return(locale===void 0||cache.attribute!==localeAttribute)&&(locale=inheritedLocale(host,localeAttribute),cache.attribute=localeAttribute,cache.locale=locale),locale}function resolveLyraLocaleWithHostOverride(host,localeOverride){return localeOverride?canonicalizeLyraLocale(localeOverride):cachedLocale(host,localeOverride)}function inheritedDirection(host){const explicit=host.getAttribute("dir")?.toLowerCase();if(explicit==="rtl"||explicit==="ltr")return explicit;const view=ownerView(host);if(view)try{const getComputedStyle=view.getComputedStyle;if(typeof getComputedStyle=="function"){const computed=getComputedStyle.call(view,host).direction;if(computed==="rtl"||computed==="ltr")return computed}}catch{}let parent=flattenedParentElement(host);for(;parent;){const inherited=parent.getAttribute("dir")?.toLowerCase();if(inherited==="rtl"||inherited==="ltr")return inherited;parent=flattenedParentElement(parent)}return"ltr"}function resolveLyraDirection(host){const cache=hostContextCaches.get(host);if(!cache)return inheritedDirection(host);let direction=cache.direction;return direction===void 0&&(direction=inheritedDirection(host),cache.direction=direction),direction}function peekLyraLocale(host){return hostContextCaches.get(host)?.locale}function peekLyraDirection(host){return hostContextCaches.get(host)?.direction}const PLURAL_CATEGORY_FALLBACKS={zero:["zero","other"],one:["one","other"],two:["two","few","many","other"],few:["few","many","other"],many:["many","few","other"],other:["other"]};function pluralSelector(values){let raw;try{raw=values.pluralCount??values.count}catch{return}return typeof raw=="number"&&Number.isFinite(raw)?raw:void 0}const pluralLocaleCache=new Map,MAX_PLURAL_LOCALE_ENTRIES=64;function pluralLocale(locale){const cached=pluralLocaleCache.get(locale);if(cached!==void 0)return cached;const resolved=localeCandidates(locale)[0];return pluralLocaleCache.size>=MAX_PLURAL_LOCALE_ENTRIES&&pluralLocaleCache.clear(),pluralLocaleCache.set(locale,resolved),resolved}function selectPluralMessage(message,locale,count){if(count===void 0)return message.other;const tag=pluralLocale(locale),category=getPluralRules(tag).select(count);for(const candidate of PLURAL_CATEGORY_FALLBACKS[category]??PLURAL_CATEGORY_FALLBACKS.other){const text=message[candidate];if(text!==void 0)return text}return message.other}function resolveLyraString(host,key,overrides,fallback,values,defaults){return resolveLyraStringWithLocale(()=>resolveLyraLocale(host),key,overrides,fallback,values,defaults)}function resolveLyraStringWithLocale(resolveLocale,key,overrides,fallback,values,defaults){let message=safeMessageAt(overrides,key);message===void 0&&typeof fallback=="string"&&(message=fallback);let locale;if(message===void 0){locale=resolveLocale();for(const candidate of localeCandidates(locale)){const registered=safeMessageAt(locales.get(candidate),key);if(registered!==void 0){message=registered;break}}message===void 0&&warnLocaleFallback(locale,key)}message??=safeMessageAt(defaults,key)??key;let text;return typeof message!="string"?(locale??=resolveLocale(),text=selectPluralMessage(message,locale,values?pluralSelector(values):void 0)):text=message,values?text.replace(/\{(\w+)\}/g,(match,name)=>{try{const value=values[name];return typeof value=="string"||typeof value=="number"?String(value):match}catch{return match}}):text}function resolveLocalizedParts(template,interpolate){const privateUse=new Set;for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);code>=57344&&code<=63743&&privateUse.add(code)}let marker="";for(let code=57344;code<=63743;code+=1)if(!privateUse.has(code)){marker=String.fromCharCode(code);break}if(!marker){const counts=new Uint32Array(65536);for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);counts[code]=(counts[code]??0)+1}let leastCode=0,leastCount=Number.POSITIVE_INFINITY;for(let code=0;code<counts.length;code+=1){const count=counts[code]??0;if(count===0){marker=String.fromCharCode(code);break}count<leastCount&&(leastCode=code,leastCount=count)}if(!marker){const followers=new Uint8Array(65536);for(let index=0;index+1<template.length;index+=1)template.charCodeAt(index)===leastCode&&(followers[template.charCodeAt(index+1)]=1);let follower=0;for(;follower<followers.length&&followers[follower]!==0;)follower+=1;marker=String.fromCharCode(leastCode,follower<followers.length?follower:leastCode)}}return interpolate(marker).split(marker)}export{canonicalizeLyraLocale,emptyLyraLocaleStrings,enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,lyraLocaleCatalogVersion,peekLyraDirection,peekLyraLocale,recordLyraOwnerDocumentConnection,registerLyraExactLocale,registerLyraLocale,registerLyraLocaleDelta,resolveActiveOrExplicitLocale,resolveLocalizedParts,resolveLyraDirection,resolveLyraLocale,resolveLyraLocaleWithHostOverride,resolveLyraString,resolveLyraStringWithLocale,setLyraLocale,snapshotLyraLocaleStrings,subscribeLyraLocale,subscribeLyraLocaleForHost,subscribeLyraLocaleRegistry,trustedLyraDefaultStrings};
|
|
1
|
+
import{canonicalizeLocaleTag}from"./locale-tag.js";import{warnLocaleFallback}from"./dev-warning.js";import{domParentElement,flattenedParentElement,ownerView}from"./composed-tree.js";import{getPluralRules}from"./intl-cache.js";import{isPlainRecord}from"./object-guards.js";const MAX_LOCALE_CANDIDATES=64,MAX_LOCALE_PARENT_DEPTH=32,MAX_LOCALE_SUBTAGS=32,MAX_LOCALE_TAG_LENGTH=255,MAX_LOCALE_CACHE_ENTRIES=128,MAX_CACHEABLE_LOCALE_LENGTH=512,LEGACY_LOCALE_PATTERN=/^[a-z0-9]{1,32}(?:-[a-z0-9]{1,32})*$/,locales=new Map,localePublicTags=new Map,localeMeta=new Map,localeParents=new Map,wellFormedLocales=new Set,exactOnlyLocales=new Set,localeCatalogRevisions=new Map,listeners=new Set,hostLocaleListeners=new Set,hostLocaleFinalizer=new FinalizationRegistry(subscription=>{hostLocaleListeners.delete(subscription)}),ownerDocumentsWithBrowsingContext=new WeakSet,registryListeners=new Set;let activeLocale="",catalogRevision=0;const localeIdentityCache=new Map,EMPTY_LOCALE_IDENTITY=Object.freeze({publicTag:"",lookupKey:"",wellFormed:!1,candidateBounded:!0,storable:!1}),localeCandidateCache=new Map,ENGLISH_ONLY_CANDIDATES=Object.freeze(["en"]);function cacheBounded(cache,key,value){cache.size>=MAX_LOCALE_CACHE_ENTRIES&&cache.clear(),cache.set(key,value)}function subtagCountWithinBounds(tag){if(tag.length>MAX_LOCALE_TAG_LENGTH)return!1;let count=tag?1:0;for(let index=0;index<tag.length;index+=1)if(tag.charCodeAt(index)===45&&++count>MAX_LOCALE_SUBTAGS)return!1;return!0}function localeIdentity(locale){const known=typeof locale=="string"&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(locale):void 0;if(known)return known;const normalized=typeof locale=="string"?locale.trim().replace(/_/g,"-"):"";if(!normalized)return EMPTY_LOCALE_IDENTITY;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(normalized):void 0;if(cached)return rememberLocaleSpelling(locale,normalized,cached),cached;let publicTag=normalized.toLowerCase(),wellFormed=!1;try{const canonical=canonicalizeLocaleTag(normalized);canonical&&(publicTag=canonical,wellFormed=!0)}catch{}const lookupKey=publicTag.toLowerCase(),candidateBounded=subtagCountWithinBounds(lookupKey),identity={publicTag,lookupKey,wellFormed,candidateBounded,storable:wellFormed||candidateBounded&&LEGACY_LOCALE_PATTERN.test(lookupKey)};return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,normalized,identity),rememberLocaleSpelling(locale,normalized,identity),identity}function rememberLocaleSpelling(locale,normalized,identity){locale!==normalized&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,locale,identity)}function storedLocaleIdentity(locale,required){if(typeof locale!="string")throw new TypeError("A locale must be a string.");const identity=localeIdentity(locale);if(!identity.publicTag){if(!required)return identity;throw new TypeError("A locale is required.")}if(!identity.storable)throw new TypeError("The locale must be BCP-47 or a bounded alphanumeric custom tag.");return identity}function canonicalizeLyraLocale(locale){const identity=localeIdentity(locale);return identity.storable?identity.publicTag:"en"}const likelySubtagsCache=new Map;function likelySubtags(key){let likely=likelySubtagsCache.get(key);if(!likely){try{const{script="",region=""}=new Intl.Locale(key).maximize();likely=[script==="Zzzz"?"":script.toLowerCase(),region.toLowerCase()]}catch{return["",""]}key.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(likelySubtagsCache,key,likely)}return likely}function regionalFallbacks(requestedKey,limit,wellFormed){if(limit<=0||!wellFormed)return[];const separator=requestedKey.indexOf("-"),language=separator===-1?requestedKey:requestedKey.slice(0,separator);if(!language)return[];const requestedSubtags=new Set(requestedKey.split("-")),siblings=[...locales.keys()].filter(key=>wellFormedLocales.has(key)&&!exactOnlyLocales.has(key)&&(key===language||key.startsWith(`${language}-`))&&!isPrefixOf(key,requestedKey));if(siblings.length<2)return siblings;const[script,region]=likelySubtags(requestedKey),rank=key=>{const[keyScript,keyRegion]=likelySubtags(key);return(script&&keyScript===script?1e4:0)+(region&&keyRegion===region?1e3:0)+key.split("-").filter(subtag=>requestedSubtags.has(subtag)).length};return siblings.map(key=>[rank(key),key]).sort(([a,x],[b,y])=>b-a||(x<y?-1:x>y?1:0)).slice(0,limit).map(([,key])=>key)}function impliedScriptStep(requestedKey){const separator=requestedKey.indexOf("-");if(separator<=0)return;const language=requestedKey.slice(0,separator),subtags=requestedKey.split("-");if(/^[a-z]{4}$/.test(subtags[1]))return;const[script]=likelySubtags(requestedKey),[languageScript]=likelySubtags(language);return script&&languageScript&&script!==languageScript?`${language}-${script}`:void 0}function isPrefixOf(key,requestedKey){return key===requestedKey||requestedKey.startsWith(`${key}-`)}function localeCandidates(locale){const identity=localeIdentity(locale),normalized=identity.lookupKey;if(!normalized)return ENGLISH_ONLY_CANDIDATES;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeCandidateCache.get(normalized):void 0;if(cached)return cached;const candidates=[];if((identity.wellFormed||identity.candidateBounded)&&candidates.push(normalized),identity.candidateBounded){for(let index=normalized.length-1;index>=0;index-=1)normalized.charCodeAt(index)===45&&index>0&&candidates.push(normalized.slice(0,index));const scriptStep=identity.wellFormed?impliedScriptStep(normalized):void 0;scriptStep&&candidates.splice(candidates.length-1,0,scriptStep);const regionalBudget=Math.max(0,MAX_LOCALE_CANDIDATES-candidates.length-1);candidates.push(...regionalFallbacks(normalized,regionalBudget,identity.wellFormed))}else if(identity.wellFormed){const separator=normalized.indexOf("-");separator>0&&candidates.push(normalized.slice(0,separator))}const expanded=[],seen=new Set;for(const candidate of candidates){let current=candidate;for(;current&&!seen.has(current)&&expanded.length<MAX_LOCALE_CANDIDATES-1;)seen.add(current),expanded.push(current),current=localeParents.get(current)}seen.has("en")||expanded.push("en");const frozen=Object.freeze(expanded);return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeCandidateCache,normalized,frozen),frozen}function lyraLocaleCatalogVersion(locale){return localeCandidates(locale).map(candidate=>localeCatalogRevisions.get(candidate)??0).join(",")}function getRegisteredLyraLocales(){const keys=new Set(["en",...localePublicTags.values()]);return Object.freeze([...keys].sort())}const NO_REGISTERED_LOCALE_KEYS=Object.freeze([]);function getRegisteredLyraLocaleKeys(locale){const identity=localeIdentity(locale);if(!identity.lookupKey)return NO_REGISTERED_LOCALE_KEYS;const catalog=locales.get(identity.lookupKey);return catalog?Object.freeze(Object.keys(catalog)):NO_REGISTERED_LOCALE_KEYS}function subscribeLyraLocaleRegistry(listener){return registryListeners.add(listener),()=>registryListeners.delete(listener)}const MAX_CATALOG_MESSAGES=4096,MAX_CATALOG_PROPERTY_READS=MAX_CATALOG_MESSAGES*2,MAX_MESSAGE_KEY_LENGTH=256,PLURAL_CATEGORIES=new Set(["zero","one","two","few","many","other"]),trustedMessageRecords=new WeakSet;function ownDataValue(record,key){try{const descriptor=Object.getOwnPropertyDescriptor(record,key);return descriptor&&"value"in descriptor?descriptor.value:void 0}catch{return}}function snapshotPluralMessage(value){if(!isPlainRecord(value))return;const snapshot=Object.create(null);let count=0;try{for(const key in value){if(++count>PLURAL_CATEGORIES.size||!PLURAL_CATEGORIES.has(key)||!Object.prototype.hasOwnProperty.call(value,key))return;const entry=ownDataValue(value,key);if(typeof entry!="string")return;snapshot[key]=entry}}catch{return}if(typeof snapshot.other!="string")return;const frozen=Object.freeze(snapshot);return trustedMessageRecords.add(frozen),frozen}function snapshotMessage(value){return typeof value=="string"?value:snapshotPluralMessage(value)}function snapshotCatalog(strings){const snapshot=Object.create(null);if(!isPlainRecord(strings)){const frozen2=Object.freeze(snapshot);return trustedMessageRecords.add(frozen2),frozen2}let keys;try{keys=Reflect.ownKeys(strings).slice(0,MAX_CATALOG_PROPERTY_READS)}catch{const frozen2=Object.freeze(snapshot);return trustedMessageRecords.add(frozen2),frozen2}let count=0;for(const key of keys){if(count>=MAX_CATALOG_MESSAGES)break;if(typeof key!="string"||!key||key.length>MAX_MESSAGE_KEY_LENGTH)continue;let descriptor;try{descriptor=Reflect.getOwnPropertyDescriptor(strings,key)}catch{continue}if(!descriptor?.enumerable||!("value"in descriptor))continue;count+=1;const message=snapshotMessage(descriptor.value);message!==void 0&&(snapshot[key]=message)}const frozen=Object.freeze(snapshot);return trustedMessageRecords.add(frozen),frozen}function mergeCatalogs(current,incoming){const merged=Object.assign(Object.create(null),current??{},incoming);return Object.freeze(merged),trustedMessageRecords.add(merged),merged}function snapshotLocaleMeta(meta){if(meta===void 0)return;if(!isPlainRecord(meta))return Object.freeze({});const snapshot={},dir=ownDataValue(meta,"dir");(dir==="ltr"||dir==="rtl")&&(snapshot.dir=dir);const name=ownDataValue(meta,"name");return typeof name=="string"&&(snapshot.name=name),Object.freeze(snapshot)}function snapshotLyraLocaleStrings(strings){return snapshotCatalog(strings)}let emptyLocaleStrings;function emptyLyraLocaleStrings(){return emptyLocaleStrings??=snapshotLyraLocaleStrings({})}const trustedDefaultCatalogs=new WeakMap;function trustedLyraDefaultStrings(defaults){const known=trustedDefaultCatalogs.get(defaults);if(known)return known;let trusted=defaults;if(isPlainRecord(defaults)&&!trustedMessageRecords.has(defaults))try{Reflect.ownKeys(defaults).length<=MAX_CATALOG_MESSAGES&&(trusted=snapshotCatalog(defaults))}catch{}return trustedDefaultCatalogs.set(defaults,trusted),trusted}function safeMessageAt(source,key){if(isPlainRecord(source))return trustedMessageRecords.has(source)?source[key]:snapshotMessage(ownDataValue(source,key))}function deliverLocaleListeners(groups,operation){const errors=[];for(const group of groups)for(const listener of group)try{listener()}catch(error){errors.push(error)}if(errors.length>0)throw new AggregateError(errors,`${operation} committed, but ${errors.length} locale subscriber${errors.length===1?"":"s"} failed.`)}function localeUsesCatalog(locale,lookupKey){return localeCandidates(locale).includes(lookupKey)}function recordLyraOwnerDocumentConnection(host){ownerView(host)&&ownerDocumentsWithBrowsingContext.add(host.ownerDocument)}function forgetHostLocaleSubscription(subscription){hostLocaleListeners.delete(subscription),hostLocaleFinalizer.unregister(subscription)}function liveHostLocaleSubscriptions(){const live=[];for(const subscription of[...hostLocaleListeners]){const host=subscription.deref();if(!host||!host.isConnected||ownerDocumentsWithBrowsingContext.has(host.ownerDocument)&&ownerView(host)===null){forgetHostLocaleSubscription(subscription);continue}live.push(host)}return live}function registerLocale(locale,strings,meta,exactOnly,parentKey){const identity=storedLocaleIdentity(locale,!0),key=identity.lookupKey,incomingStrings=snapshotCatalog(strings),incomingMeta=snapshotLocaleMeta(meta);parentKey!==void 0&&validateLocaleParent(key,parentKey);const isNewLocale=!locales.has(key),candidateTopologyChanged=isNewLocale||parentKey!==void 0&&localeParents.get(key)!==parentKey||exactOnly&&!exactOnlyLocales.has(key)||identity.wellFormed&&!wellFormedLocales.has(key),previouslyAffectedActive=candidateTopologyChanged&&activeLocale!==""&&localeUsesCatalog(activeLocale,key),previouslyAffectedHosts=new Set(candidateTopologyChanged?liveHostLocaleSubscriptions().filter(host=>localeUsesCatalog(inheritedLocale(host),key)):[]);exactOnly&&exactOnlyLocales.add(key),parentKey!==void 0&&localeParents.set(key,parentKey),identity.wellFormed&&wellFormedLocales.add(key),locales.set(key,mergeCatalogs(locales.get(key),incomingStrings)),localePublicTags.set(key,identity.publicTag),incomingMeta&&localeMeta.set(key,Object.freeze({...localeMeta.get(key)??{},...incomingMeta})),localeCatalogRevisions.set(key,++catalogRevision),candidateTopologyChanged&&(pluralLocaleCache.clear(),localeCandidateCache.clear());const activeSnapshot=previouslyAffectedActive||activeLocale&&localeUsesCatalog(activeLocale,key)?[...listeners]:[],hostSnapshot=liveHostLocaleSubscriptions().filter(host=>previouslyAffectedHosts.has(host)||localeUsesCatalog(inheritedLocale(host),key)).map(host=>()=>host.requestUpdate()),registrySnapshot=isNewLocale?[...registryListeners]:[];deliverLocaleListeners([activeSnapshot,hostSnapshot,registrySnapshot],`registerLyraLocale(${JSON.stringify(identity.publicTag)})`)}function registerLyraLocale(locale,strings,meta){registerLocale(locale,strings,meta,!1)}function validateLocaleParent(childKey,parentKey){for(const origin of new Set([childKey,...localeParents.keys()])){const visited=new Set;let current=origin,depth=0;for(;current;){if(visited.has(current))throw new TypeError("Locale parent relationships must not contain cycles.");if(visited.add(current),current=current===childKey?parentKey:localeParents.get(current),current&&++depth>MAX_LOCALE_PARENT_DEPTH)throw new TypeError("Locale parent chains must not exceed 32 edges.")}}}function registerLyraLocaleDelta(locale,parent,strings,meta){const parentKey=storedLocaleIdentity(parent,!0).lookupKey;registerLocale(locale,strings,meta,!0,parentKey)}function registerLyraExactLocale(locale,strings,meta){registerLocale(locale,strings,meta,!0)}function getLyraLocaleDirection(locale){const identity=localeIdentity(locale);if(!identity.publicTag)return"ltr";for(const candidate of localeCandidates(identity.publicTag)){const declared=localeMeta.get(candidate)?.dir;if(declared)return declared}try{const resolved=new Intl.Locale(identity.publicTag);return(resolved.textInfo?.direction??resolved.getTextInfo?.().direction)==="rtl"?"rtl":"ltr"}catch{return"ltr"}}function setLyraLocale(locale){const next=storedLocaleIdentity(locale,!1).publicTag;if(activeLocale===next)return;const hostSnapshot=liveHostLocaleSubscriptions(),previousHostLocales=hostSnapshot.map(host=>inheritedLocale(host));activeLocale=next;const affectedHostListeners=hostSnapshot.filter((host,index)=>inheritedLocale(host)!==previousHostLocales[index]).map(host=>()=>host.requestUpdate());deliverLocaleListeners([[...listeners],affectedHostListeners],`setLyraLocale(${JSON.stringify(next)})`)}function getLyraLocale(){return activeLocale}function resolveActiveOrExplicitLocale(locale){const trimmed=locale?.trim();return trimmed&&trimmed.toLowerCase()!=="auto"?locale:activeLocale||void 0}function subscribeLyraLocale(listener){return listeners.add(listener),()=>listeners.delete(listener)}function subscribeLyraLocaleForHost(host){recordLyraOwnerDocumentConnection(host);const subscription=new WeakRef(host);return hostLocaleListeners.add(subscription),hostLocaleFinalizer.register(host,subscription,subscription),()=>forgetHostLocaleSubscription(subscription)}function inheritedLocale(host,localeAttribute=host.getAttribute("locale")){const explicit=localeAttribute||host.getAttribute("lang");if(explicit)return canonicalizeLyraLocale(explicit);if(host.getAttribute("lang")==="")return activeLocale||"en";const documentElement=host.ownerDocument?.documentElement;let parent=domParentElement(host);for(;parent;){const isDocumentElement=parent===documentElement,locale=isDocumentElement?parent.getAttribute("locale"):parent.getAttribute("locale")||parent.getAttribute("lang");if(locale)return canonicalizeLyraLocale(locale);if(!isDocumentElement&&parent.getAttribute("lang")==="")return activeLocale||"en";parent=domParentElement(parent)}if(activeLocale)return activeLocale;const documentLocale=documentElement?.getAttribute("lang");return documentLocale?canonicalizeLyraLocale(documentLocale):"en"}const hostContextCaches=new WeakMap;function enableLyraLocaleCache(host){hostContextCaches.has(host)||hostContextCaches.set(host,{})}function invalidateLyraLocaleCache(host){const cache=hostContextCaches.get(host);cache&&(cache.attribute=void 0,cache.locale=void 0,cache.direction=void 0)}function resolveLyraLocale(host){return cachedLocale(host,host.getAttribute("locale")||"")}function cachedLocale(host,localeAttribute){const cache=hostContextCaches.get(host);if(!cache)return inheritedLocale(host,localeAttribute);let locale=cache.locale;return(locale===void 0||cache.attribute!==localeAttribute)&&(locale=inheritedLocale(host,localeAttribute),cache.attribute=localeAttribute,cache.locale=locale),locale}function resolveLyraLocaleWithHostOverride(host,localeOverride){return localeOverride?canonicalizeLyraLocale(localeOverride):cachedLocale(host,localeOverride)}function inheritedDirection(host){const explicit=host.getAttribute("dir")?.toLowerCase();if(explicit==="rtl"||explicit==="ltr")return explicit;const view=ownerView(host);if(view)try{const getComputedStyle=view.getComputedStyle;if(typeof getComputedStyle=="function"){const computed=getComputedStyle.call(view,host).direction;if(computed==="rtl"||computed==="ltr")return computed}}catch{}let parent=flattenedParentElement(host);for(;parent;){const inherited=parent.getAttribute("dir")?.toLowerCase();if(inherited==="rtl"||inherited==="ltr")return inherited;parent=flattenedParentElement(parent)}return"ltr"}function resolveLyraDirection(host){const cache=hostContextCaches.get(host);if(!cache)return inheritedDirection(host);let direction=cache.direction;return direction===void 0&&(direction=inheritedDirection(host),cache.direction=direction),direction}function peekLyraLocale(host){return hostContextCaches.get(host)?.locale}function peekLyraDirection(host){return hostContextCaches.get(host)?.direction}const PLURAL_CATEGORY_FALLBACKS={zero:["zero","other"],one:["one","other"],two:["two","few","many","other"],few:["few","many","other"],many:["many","few","other"],other:["other"]};function pluralSelector(values){let raw;try{raw=values.pluralCount??values.count}catch{return}return typeof raw=="number"&&Number.isFinite(raw)?raw:void 0}const pluralLocaleCache=new Map,MAX_PLURAL_LOCALE_ENTRIES=64;function pluralLocale(locale){const cached=pluralLocaleCache.get(locale);if(cached!==void 0)return cached;const resolved=localeCandidates(locale)[0];return pluralLocaleCache.size>=MAX_PLURAL_LOCALE_ENTRIES&&pluralLocaleCache.clear(),pluralLocaleCache.set(locale,resolved),resolved}function selectPluralMessage(message,locale,count){if(count===void 0)return message.other;const tag=pluralLocale(locale),category=getPluralRules(tag).select(count);for(const candidate of PLURAL_CATEGORY_FALLBACKS[category]??PLURAL_CATEGORY_FALLBACKS.other){const text=message[candidate];if(text!==void 0)return text}return message.other}function resolveLyraString(host,key,overrides,fallback,values,defaults){return resolveLyraStringWithLocale(()=>resolveLyraLocale(host),key,overrides,fallback,values,defaults)}function resolveLyraStringWithLocale(resolveLocale,key,overrides,fallback,values,defaults){let message=safeMessageAt(overrides,key);message===void 0&&typeof fallback=="string"&&(message=fallback);let locale;if(message===void 0){locale=resolveLocale();for(const candidate of localeCandidates(locale)){const registered=safeMessageAt(locales.get(candidate),key);if(registered!==void 0){message=registered;break}}message===void 0&&warnLocaleFallback(locale,key)}message??=safeMessageAt(defaults,key)??key;let text;return typeof message!="string"?(locale??=resolveLocale(),text=selectPluralMessage(message,locale,values?pluralSelector(values):void 0)):text=message,values?text.replace(/\{(\w+)\}/g,(match,name)=>{try{const value=values[name];return typeof value=="string"||typeof value=="number"?String(value):match}catch{return match}}):text}function resolveLocalizedParts(template,interpolate){const privateUse=new Set;for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);code>=57344&&code<=63743&&privateUse.add(code)}let marker="";for(let code=57344;code<=63743;code+=1)if(!privateUse.has(code)){marker=String.fromCharCode(code);break}if(!marker){const counts=new Uint32Array(65536);for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);counts[code]=(counts[code]??0)+1}let leastCode=0,leastCount=Number.POSITIVE_INFINITY;for(let code=0;code<counts.length;code+=1){const count=counts[code]??0;if(count===0){marker=String.fromCharCode(code);break}count<leastCount&&(leastCode=code,leastCount=count)}if(!marker){const followers=new Uint8Array(65536);for(let index=0;index+1<template.length;index+=1)template.charCodeAt(index)===leastCode&&(followers[template.charCodeAt(index+1)]=1);let follower=0;for(;follower<followers.length&&followers[follower]!==0;)follower+=1;marker=String.fromCharCode(leastCode,follower<followers.length?follower:leastCode)}}return interpolate(marker).split(marker)}export{canonicalizeLyraLocale,emptyLyraLocaleStrings,enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,lyraLocaleCatalogVersion,peekLyraDirection,peekLyraLocale,recordLyraOwnerDocumentConnection,registerLyraExactLocale,registerLyraLocale,registerLyraLocaleDelta,resolveActiveOrExplicitLocale,resolveLocalizedParts,resolveLyraDirection,resolveLyraLocale,resolveLyraLocaleWithHostOverride,resolveLyraString,resolveLyraStringWithLocale,setLyraLocale,snapshotLyraLocaleStrings,subscribeLyraLocale,subscribeLyraLocaleForHost,subscribeLyraLocaleRegistry,trustedLyraDefaultStrings};
|