@fluentui/chart-web-components 0.0.0 → 0.0.1

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 CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/chart-web-components
2
2
 
3
- This log was last generated on Fri, 17 Jan 2025 04:07:28 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 04 Feb 2025 04:07:07 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/chart-web-components_v0.0.1)
8
+
9
+ Tue, 04 Feb 2025 04:07:07 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/chart-web-components_v0.0.0..@fluentui/chart-web-components_v0.0.1)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/web-components to v3.0.0-beta.78 ([PR #33756](https://github.com/microsoft/fluentui/pull/33756) by beachball)
15
+
7
16
  ## [0.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/chart-web-components_v0.0.0)
8
17
 
9
- Fri, 17 Jan 2025 04:07:28 GMT
18
+ Fri, 17 Jan 2025 04:07:40 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/chart-web-components_v0.0.0-alpha.2..@fluentui/chart-web-components_v0.0.0)
11
20
 
12
21
  ### Patches
@@ -4704,8 +4704,7 @@ var Direction;
4704
4704
  })(Direction || (Direction = {}));
4705
4705
 
4706
4706
  const getDirection = rootNode => {
4707
- var _a;
4708
- return ((_a = rootNode.closest("[dir]")) === null || _a === void 0 ? void 0 : _a.dir) === "rtl" ? Direction.rtl : Direction.ltr;
4707
+ return rootNode.closest("[dir]")?.dir === "rtl" ? Direction.rtl : Direction.ltr;
4709
4708
  };
4710
4709
 
4711
4710
  const hidden = `:host([hidden]){display:none}`;
@@ -1,4 +1,4 @@
1
- let zt;const Ke="fast-kernel";try{if(document.currentScript)zt=document.currentScript.getAttribute(Ke);else{const e=document.getElementsByTagName("script");zt=e[e.length-1].getAttribute(Ke)}}catch{zt="isolate"}let dt;switch(zt){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const e=`-${Math.random().toString(36).substring(2,8)}`;dt=Object.freeze({updateQueue:`1.2${e}`,observable:`2.2${e}`,contextEvent:`3.2${e}`,elementRegistry:`4.2${e}`});break}const ot=e=>typeof e=="function",lt=e=>typeof e=="string",zn=()=>{};var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof be<"u")be.globalThis=be;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const Je={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Je));const M=globalThis.FAST;if(M.getById===void 0){const e=Object.create(null);Reflect.defineProperty(M,"getById",Object.assign({value(t,i){let n=e[t];return n===void 0&&(n=i?e[t]=i():null),n}},Je))}M.error===void 0&&Object.assign(M,{warn(){},error(e){return new Error(`Error ${e}`)},addMessages(){}});const Dt=Object.freeze([]);function ye(){const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)},getForInstance(t){if(t!=null)return e.get(t.constructor)}})}function Ye(){const e=new WeakMap;return function(t){let i=e.get(t);if(i===void 0){let n=Reflect.getPrototypeOf(t);for(;i===void 0&&n!==null;)i=e.get(n),n=Reflect.getPrototypeOf(n);i=i===void 0?[]:i.slice(0),e.set(t,i)}return i}}function ut(e){e.prototype.toJSON=zn}const N=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ze=e=>e,Dn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ze}):{createHTML:Ze};let It=Object.freeze({createHTML(e){return Dn.createHTML(e)},protect(e,t,i,n){return n}});const In=It,ft=Object.freeze({get policy(){return It},setPolicy(e){if(It!==In)throw M.error(1201);It=e},setAttribute(e,t,i){i==null?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}}),me=M.getById(dt.updateQueue,()=>{const e=[],t=[],i=globalThis.requestAnimationFrame;let n=!0;function s(){if(t.length)throw t.shift()}function r(c){try{c.call()}catch(h){if(n)t.push(h),setTimeout(s,0);else throw e.length=0,h}}function o(){let h=0;for(;h<e.length;)if(r(e[h]),h++,h>1024){for(let l=0,d=e.length-h;l<d;l++)e[l]=e[l+h];e.length-=h,h=0}e.length=0}function a(c){e.push(c),e.length<2&&(n?i(o):o())}return Object.freeze({enqueue:a,next:()=>new Promise(a),process:o,setMode:c=>n=c})});class Ht{constructor(t,i){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=i}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const i=this.spillover;if(i===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else i.indexOf(t)===-1&&i.push(t)}unsubscribe(t){const i=this.spillover;if(i===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const n=i.indexOf(t);n!==-1&&i.splice(n,1)}}notify(t){const i=this.spillover,n=this.subject;if(i===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(n,t),r!==void 0&&r.handleChange(n,t)}else for(let s=0,r=i.length;s<r;++s)i[s].handleChange(n,t)}}class ti{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var i,n;(i=this.subscribers[t])===null||i===void 0||i.notify(t),(n=this.subjectSubscribers)===null||n===void 0||n.notify(t)}subscribe(t,i){var n,s;let r;i?r=(n=this.subscribers[i])!==null&&n!==void 0?n:this.subscribers[i]=new Ht(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new Ht(this.subject),r.subscribe(t)}unsubscribe(t,i){var n,s;i?(n=this.subscribers[i])===null||n===void 0||n.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const Ft=Object.freeze({unknown:void 0,coupled:1}),V=M.getById(dt.observable,()=>{const e=me.enqueue,t=/(:|&&|\|\||if|\?\.)/,i=new WeakMap;let n,s=h=>{throw M.error(1101)};function r(h){var l;let d=(l=h.$fastController)!==null&&l!==void 0?l:i.get(h);return d===void 0&&(Array.isArray(h)?d=s(h):i.set(h,d=new ti(h))),d}const o=Ye();class a{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return n!==void 0&&n.watch(l,this.name),l[this.field]}setValue(l,d){const u=this.field,f=l[u];if(f!==d){l[u]=d;const p=l[this.callback];ot(p)&&p.call(l,f,d),r(l).notify(this.name)}}}class c extends Ht{constructor(l,d,u=!1){super(l,d),this.expression=l,this.isVolatileBinding=u,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const d=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),d}requiresUnbind(l){return l.sourceLifetime!==Ft.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,d){this.needsRefresh&&this.last!==null&&this.dispose();const u=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let f;try{f=this.expression(l,d)}finally{n=u}return f}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,d){const u=this.last,f=r(l),p=u===null?this.first:{};if(p.propertySource=l,p.propertyName=d,p.notifier=f,f.subscribe(this,d),u!==null){if(!this.needsRefresh){let g;n=void 0,g=u.propertySource[u.propertyName],n=this,l===g&&(this.needsRefresh=!0)}u.next=p}this.last=p}handleChange(){this.needsQueue?(this.needsQueue=!1,e(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(c),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,l){n&&n.watch(h,l)},trackVolatile(){n&&(n.needsRefresh=!0)},notify(h,l){r(h).notify(l)},defineProperty(h,l){lt(l)&&(l=new a(l)),o(h).push(l),Reflect.defineProperty(h,l.name,{enumerable:!0,get(){return l.getValue(this)},set(d){l.setValue(this,d)}})},getAccessors:o,binding(h,l,d=this.isVolatileBinding(h)){return new c(h,l,d)},isVolatileBinding(h){return t.test(h.toString())}})});function ct(e,t){V.defineProperty(e,t)}const ei=M.getById(dt.contextEvent,()=>{let e=null;return{get(){return e},set(t){e=t}}}),yt=Object.freeze({default:{index:0,length:0,get event(){return yt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ei.get()},setEvent(e){ei.set(e)}});class U{constructor(t,i,n){this.index=t,this.removed=i,this.addedCount=n}adjustTo(t){let i=this.index;const n=t.length;return i>n?i=n-this.addedCount:i<0&&(i=n+this.removed.length+i-this.addedCount),this.index=i<0?0:i,this}}const Hn=Object.freeze({reset:1,splice:2,optimized:3}),ii=new U(0,Dt,0);ii.reset=!0;const ni=[ii];function Fn(e,t,i,n,s,r){const o=r-s+1,a=i-t+1,c=new Array(o);let h,l;for(let d=0;d<o;++d)c[d]=new Array(a),c[d][0]=d;for(let d=0;d<a;++d)c[0][d]=d;for(let d=1;d<o;++d)for(let u=1;u<a;++u)e[t+u-1]===n[s+d-1]?c[d][u]=c[d-1][u-1]:(h=c[d-1][u]+1,l=c[d][u-1]+1,c[d][u]=h<l?h:l);return c}function qn(e){let t=e.length-1,i=e[0].length-1,n=e[t][i];const s=[];for(;t>0||i>0;){if(t===0){s.push(2),i--;continue}if(i===0){s.push(3),t--;continue}const r=e[t-1][i-1],o=e[t-1][i],a=e[t][i-1];let c;o<a?c=o<r?o:r:c=a<r?a:r,c===r?(r===n?s.push(0):(s.push(1),n=r),t--,i--):c===o?(s.push(3),t--,n=o):(s.push(2),i--,n=a)}return s.reverse()}function jn(e,t,i){for(let n=0;n<i;++n)if(e[n]!==t[n])return n;return i}function Wn(e,t,i){let n=e.length,s=t.length,r=0;for(;r<i&&e[--n]===t[--s];)r++;return r}function Un(e,t,i,n){return t<i||n<e?-1:t===i||n===e?0:e<i?t<n?t-i:n-i:n<t?n-e:t-e}function Qn(e,t,i,n,s,r){let o=0,a=0;const c=Math.min(i-t,r-s);if(t===0&&s===0&&(o=jn(e,n,c)),i===e.length&&r===n.length&&(a=Wn(e,n,c-o)),t+=o,s+=o,i-=a,r-=a,i-t===0&&r-s===0)return Dt;if(t===i){const p=new U(t,[],0);for(;s<r;)p.removed.push(n[s++]);return[p]}else if(s===r)return[new U(t,[],i-t)];const h=qn(Fn(e,t,i,n,s,r)),l=[];let d,u=t,f=s;for(let p=0;p<h.length;++p)switch(h[p]){case 0:d!==void 0&&(l.push(d),d=void 0),u++,f++;break;case 1:d===void 0&&(d=new U(u,[],0)),d.addedCount++,u++,d.removed.push(n[f]),f++;break;case 2:d===void 0&&(d=new U(u,[],0)),d.addedCount++,u++;break;case 3:d===void 0&&(d=new U(u,[],0)),d.removed.push(n[f]),f++;break}return d!==void 0&&l.push(d),l}function Xn(e,t){let i=!1,n=0;for(let s=0;s<t.length;s++){const r=t[s];if(r.index+=n,i)continue;const o=Un(e.index,e.index+e.removed.length,r.index,r.index+r.addedCount);if(o>=0){t.splice(s,1),s--,n-=r.addedCount-r.removed.length,e.addedCount+=r.addedCount-o;const a=e.removed.length+r.removed.length-o;if(!e.addedCount&&!a)i=!0;else{let c=r.removed;if(e.index<r.index){const h=e.removed.slice(0,r.index-e.index);h.push(...c),c=h}if(e.index+e.removed.length>r.index+r.addedCount){const h=e.removed.slice(r.index+r.addedCount-e.index);c.push(...h)}e.removed=c,r.index<e.index&&(e.index=r.index)}}else if(e.index<r.index){i=!0,t.splice(s,0,e),s++;const a=e.addedCount-e.removed.length;r.index+=a,n+=a}}i||t.push(e)}function Gn(e,t){let i=[];const n=[];for(let s=0,r=t.length;s<r;s++)Xn(t[s],n);for(let s=0,r=n.length;s<r;++s){const o=n[s];if(o.addedCount===1&&o.removed.length===1){o.removed[0]!==e[o.index]&&i.push(o);continue}i=i.concat(Qn(e,o.index,o.index+o.addedCount,o.removed,0,o.removed.length))}return i}let we=Object.freeze({support:Hn.optimized,normalize(e,t,i){return e===void 0?i===void 0?Dt:Gn(t,i):ni},pop(e,t,i,n){const s=e.length>0,r=i.apply(e,n);return s&&t.addSplice(new U(e.length,[r],0)),r},push(e,t,i,n){const s=i.apply(e,n);return t.addSplice(new U(e.length-n.length,[],n.length).adjustTo(e)),s},reverse(e,t,i,n){const s=i.apply(e,n);return t.reset(e),s},shift(e,t,i,n){const s=e.length>0,r=i.apply(e,n);return s&&t.addSplice(new U(0,[r],0)),r},sort(e,t,i,n){const s=i.apply(e,n);return t.reset(e),s},splice(e,t,i,n){const s=i.apply(e,n);return t.addSplice(new U(+n[0],s,n.length>2?n.length-2:0).adjustTo(e)),s},unshift(e,t,i,n){const s=i.apply(e,n);return t.addSplice(new U(0,[],n.length).adjustTo(e)),s}});Object.freeze({reset:ni,setDefaultStrategy(e){we=e}});function si(e,t,i){Reflect.defineProperty(e,t,{value:i,enumerable:!1})}class Kn extends Ht{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this._strategy=null,this._lengthObserver=void 0,this.call=this.flush,si(t,"$fastController",this)}get strategy(){return this._strategy}set strategy(t){this._strategy=t}get lengthObserver(){let t=this._lengthObserver;if(t===void 0){const i=this.subject;this._lengthObserver=t={length:i.length,handleChange(){this.length!==i.length&&(this.length=i.length,V.notify(t,"length"))}},this.subscribe(t)}return t}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.enqueue()}reset(t){this.oldCollection=t,this.enqueue()}flush(){var t;const i=this.splices,n=this.oldCollection;i===void 0&&n===void 0||(this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0,this.notify(((t=this._strategy)!==null&&t!==void 0?t:we).normalize(n,this.subject,i)))}enqueue(){this.needsQueue&&(this.needsQueue=!1,me.enqueue(this))}}let ri=!1;const Jn=Object.freeze({enable(){if(ri)return;ri=!0,V.setArrayObserverFactory(t=>new Kn(t));const e=Array.prototype;e.$fastPatch||(si(e,"$fastPatch",1),[e.pop,e.push,e.reverse,e.shift,e.sort,e.splice,e.unshift].forEach(t=>{e[t.name]=function(...i){var n;const s=this.$fastController;return s===void 0?t.apply(this,i):((n=s.strategy)!==null&&n!==void 0?n:we)[t.name](this,s,t,i)}}))}});class _t{constructor(t,i,n=!1){this.evaluate=t,this.policy=i,this.isVolatile=n}}class Yn extends _t{createObserver(t){return V.binding(this.evaluate,t,this.isVolatile)}}function qt(e,t,i=V.isVolatileBinding(e)){return new Yn(e,t,i)}class oi extends _t{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ut(oi);function $e(e,t){return new oi(e,t)}function ai(e){return ot(e)?qt(e):e instanceof _t?e:$e(()=>e)}let li;function ci(e){return e.map(t=>t instanceof H?ci(t.styles):[t]).reduce((t,i)=>t.concat(i),[])}class H{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(i=>i instanceof H?i.behaviors:null).reduce((i,n)=>n===null?i:i===null?n:i.concat(n),null)}get strategy(){return this._strategy===null&&this.withStrategy(li),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(ci(this.styles)),this}static setDefaultStrategy(t){li=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new H(t):t instanceof H?t:new H([t])}}H.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Se=ye(),xe=Object.freeze({getForInstance:Se.getForInstance,getByType:Se.getByType,define(e){return Se.register({type:e}),e}});function _e(e,t,i){t.source.style.setProperty(e.targetAspect,i.bind(t))}class Ce{constructor(t,i){this.dataBinding=t,this.targetAspect=i}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var i;const n=t.source;if(!n.$cssBindings){n.$cssBindings=new Map;const r=n.setAttribute;n.setAttribute=(o,a)=>{r.call(n,o,a),o==="style"&&n.$cssBindings.forEach((c,h)=>_e(h,c.controller,c.observer))}}const s=(i=t[this.targetAspect])!==null&&i!==void 0?i:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){_e(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,i){_e(this,i.controller,i)}}xe.define(Ce);const Zn=`${Math.random().toString(36).substring(2,8)}`;let ts=0;const hi=()=>`--v${Zn}${++ts}`;function di(e,t){const i=[];let n="";const s=[],r=o=>{s.push(o)};for(let o=0,a=e.length-1;o<a;++o){n+=e[o];let c=t[o];ot(c)?c=new Ce(qt(c),hi()).createCSS(r):c instanceof _t?c=new Ce(c,hi()).createCSS(r):xe.getForInstance(c)!==void 0&&(c=c.createCSS(r)),c instanceof H||c instanceof CSSStyleSheet?(n.trim()!==""&&(i.push(n),n=""),i.push(c)):n+=c}return n+=e[e.length-1],n.trim()!==""&&i.push(n),{styles:i,behaviors:s}}const k=(e,...t)=>{const{styles:i,behaviors:n}=di(e,t),s=new H(i);return n.length?s.withBehaviors(...n):s};class ui{constructor(t,i){this.behaviors=i,this.css="";const n=t.reduce((s,r)=>(lt(r)?this.css+=r:s.push(r),s),[]);n.length&&(this.styles=new H(n))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}xe.define(ui),k.partial=(e,...t)=>{const{styles:i,behaviors:n}=di(e,t);return new ui(i,n)};const fi=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,pi=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,gi=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,vi=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,bi=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,yi=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function mi(e){return e&&e.nodeType===Node.COMMENT_NODE}const D=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(e,t){return`fe-b$$start$$${e}$$${t}$$fe-b`},contentBindingEndMarker(e,t){return`fe-b$$end$$${e}$$${t}$$fe-b`},repeatStartMarker(e){return`fe-repeat$$start$$${e}$$fe-repeat`},repeatEndMarker(e){return`fe-repeat$$end$$${e}$$fe-repeat`},isContentBindingStartMarker(e){return fi.test(e)},isContentBindingEndMarker(e){return pi.test(e)},isRepeatViewStartMarker(e){return gi.test(e)},isRepeatViewEndMarker(e){return vi.test(e)},isElementBoundaryStartMarker(e){return mi(e)&&bi.test(e.data.trim())},isElementBoundaryEndMarker(e){return mi(e)&&yi.test(e.data)},parseAttributeBinding(e){const t=e.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(i=>parseInt(i))},parseContentBindingStartMarker(e){return Si(fi,e)},parseContentBindingEndMarker(e){return Si(pi,e)},parseRepeatStartMarker(e){return wi(gi,e)},parseRepeatEndMarker(e){return wi(vi,e)},parseElementBoundaryStartMarker(e){return $i(bi,e.trim())},parseElementBoundaryEndMarker(e){return $i(yi,e)}});function wi(e,t){const i=e.exec(t);return i===null?i:parseInt(i[1])}function $i(e,t){const i=e.exec(t);return i===null?i:i[1]}function Si(e,t){const i=e.exec(t);return i===null?i:[parseInt(i[1]),i[2]]}const jt=Symbol.for("fe-hydration");function mt(e){return e[jt]===jt}const Ae=`fast-${Math.random().toString(36).substring(2,8)}`,Wt=`${Ae}{`,Ct=`}${Ae}`,es=Ct.length;let is=0;const At=()=>`${Ae}-${++is}`,Te=Object.freeze({interpolation:e=>`${Wt}${e}${Ct}`,attribute:e=>`${At()}="${Wt}${e}${Ct}"`,comment:e=>`<!--${Wt}${e}${Ct}-->`}),Ut=Object.freeze({parse(e,t){const i=e.split(Wt);if(i.length===1)return null;const n=[];for(let s=0,r=i.length;s<r;++s){const o=i[s],a=o.indexOf(Ct);let c;if(a===-1)c=o;else{const h=o.substring(0,a);n.push(t[h]),c=o.substring(a+es)}c!==""&&n.push(c)}return n}}),Be=ye(),Y=Object.freeze({getForInstance:Be.getForInstance,getByType:Be.getByType,define(e,t){return t=t||{},t.type=e,Be.register(t),e},assignAspect(e,t){if(!t){e.aspectType=N.content;return}switch(e.sourceAspect=t,t[0]){case":":e.targetAspect=t.substring(1),e.aspectType=e.targetAspect==="classList"?N.tokenList:N.property;break;case"?":e.targetAspect=t.substring(1),e.aspectType=N.booleanAttribute;break;case"@":e.targetAspect=t.substring(1),e.aspectType=N.event;break;default:e.targetAspect=t,e.aspectType=N.attribute;break}}});class xi{constructor(t){this.options=t}createHTML(t){return Te.attribute(t(this))}createBehavior(){return this}}ut(xi);class _i extends Error{constructor(t,i,n){super(t),this.factories=i,this.node=n}}function ke(e){return e.nodeType===Node.COMMENT_NODE}function Ci(e){return e.nodeType===Node.TEXT_NODE}function Ai(e,t){const i=document.createRange();return i.setStart(e,0),i.setEnd(t,ke(t)||Ci(t)?t.data.length:t.childNodes.length),i}function ns(e){return e instanceof DocumentFragment&&"mode"in e}function ss(e,t,i){const n=Ai(e,t),s=n.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return n.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),o={},a={};let c=r.currentNode=e;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{rs(c,i,o);break}case Node.COMMENT_NODE:{os(c,r,i,o,a);break}}c=r.nextNode()}return n.detach(),{targets:o,boundaries:a}}function rs(e,t,i){const n=D.parseAttributeBinding(e);if(n!==null){for(const s of n){if(!t[s])throw new _i(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,e);Qt(t[s],e,i)}e.removeAttribute(D.attributeMarkerName)}}function os(e,t,i,n,s){if(D.isElementBoundaryStartMarker(e)){as(e,t);return}if(D.isContentBindingStartMarker(e.data)){const r=D.parseContentBindingStartMarker(e.data);if(r===null)return;const[o,a]=r,c=i[o],h=[];let l=t.nextSibling();e.data="";const d=l;for(;l!==null;){if(ke(l)){const u=D.parseContentBindingEndMarker(l.data);if(u&&u[1]===a)break}h.push(l),l=t.nextSibling()}if(l===null){const u=e.getRootNode();throw new Error(`Error hydrating Comment node inside "${ns(u)?u.host.nodeName:u.nodeName}".`)}if(l.data="",h.length===1&&Ci(h[0]))Qt(c,h[0],n);else{l!==d&&l.previousSibling!==null&&(s[c.targetNodeId]={first:d,last:l.previousSibling});const u=l.parentNode.insertBefore(document.createTextNode(""),l);Qt(c,u,n)}}}function as(e,t){const i=D.parseElementBoundaryStartMarker(e.data);let n=t.nextSibling();for(;n!==null;){if(ke(n)){const s=D.parseElementBoundaryEndMarker(n.data);if(s&&s===i)break}n=t.nextSibling()}}function Qt(e,t,i){if(e.targetNodeId===void 0)throw new Error("Factory could not be target to the node");i[e.targetNodeId]=t}var Ti;function Le(e,t){const i=e.parentNode;let n=e,s;for(;n!==t;){if(s=n.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);i.removeChild(n),n=s}i.removeChild(t)}class Bi{constructor(){this.index=0,this.length=0}get event(){return yt.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Tt extends Bi{constructor(t,i,n){super(),this.fragment=t,this.factories=i,this.targets=n,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ft.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const i=this.lastChild;if(t.previousSibling===i)return;const n=t.parentNode;let s=this.firstChild,r;for(;s!==i;)r=s.nextSibling,n.insertBefore(s,t),s=r;n.insertBefore(i,t)}}remove(){const t=this.fragment,i=this.lastChild;let n=this.firstChild,s;for(;n!==i;)s=n.nextSibling,t.appendChild(n),n=s;t.appendChild(i)}dispose(){Le(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,i=this){if(this.source===t)return;let n=this.behaviors;if(n===null){this.source=t,this.context=i,this.behaviors=n=new Array(this.factories.length);const s=this.factories;for(let r=0,o=s.length;r<o;++r){const a=s[r].createBehavior();a.bind(this),n[r]=a}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=i;for(let s=0,r=n.length;s<r;++s)n[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let i=0,n=t.length;i<n;++i)t[i].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Le(t[0].firstChild,t[t.length-1].lastChild);for(let i=0,n=t.length;i<n;++i)t[i].unbind()}}}ut(Tt),V.defineProperty(Tt.prototype,"index"),V.defineProperty(Tt.prototype,"length");const pt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ls extends Error{constructor(t,i,n,s){super(t),this.factory=i,this.fragment=n,this.templateString=s}}class cs extends Bi{constructor(t,i,n,s){super(),this.firstChild=t,this.lastChild=i,this.sourceTemplate=n,this.hostBindingTarget=s,this[Ti]=jt,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ft.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=pt.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=n.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const i=this.lastChild;if(t.previousSibling===i)return;const n=t.parentNode;let s=this.firstChild,r;for(;s!==i;)r=s.nextSibling,n.insertBefore(s,t),s=r;n.insertBefore(i,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),i=this.lastChild;let n=this.firstChild,s;for(;n!==i;){if(s=n.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${i.getRootNode().host.nodeName}".`);t.appendChild(n),n=s}t.appendChild(i)}bind(t,i=this){var n,s;if(this.hydrationStage!==pt.hydrated&&(this._hydrationStage=pt.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=i;try{const{targets:a,boundaries:c}=ss(this.firstChild,this.lastChild,this.factories);this._targets=a,this._bindingViewBoundaries=c}catch(a){if(a instanceof _i){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),a.templateString=c}throw a}this.behaviors=r=new Array(this.factories.length);const o=this.factories;for(let a=0,c=o.length;a<c;++a){const h=o[a];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Qt(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const l=h.createBehavior();l.bind(this),r[a]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ls(`HydrationView was unable to successfully target bindings inside "${(s=((n=this.firstChild)===null||n===void 0?void 0:n.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Ai(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=i;for(let o=0,a=r.length;o<a;++o)r[o].bind(this)}this.isBound=!0,this._hydrationStage=pt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Le(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let i=0,n=t.length;i<n;++i)t[i].unbind(this);t.length=0}}Ti=jt,ut(cs);function hs(e){return e.create!==void 0}function ds(e,t,i,n){if(i==null&&(i=""),hs(i)){e.textContent="";let s=e.$fastView;if(s===void 0)if(mt(n)&&mt(i)&&n.bindingViewBoundaries[this.targetNodeId]!==void 0&&n.hydrationStage!==pt.hydrated){const r=n.bindingViewBoundaries[this.targetNodeId];s=i.hydrate(r.first,r.last)}else s=i.create();else e.$fastTemplate!==i&&(s.isComposed&&(s.remove(),s.unbind()),s=i.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(n.source,n.context)):(s.isComposed=!0,s.bind(n.source,n.context),s.insertBefore(e),e.$fastView=s,e.$fastTemplate=i)}else{const s=e.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),e.textContent=i}}function us(e,t,i){var n;const s=`${this.id}-t`,r=(n=e[s])!==null&&n!==void 0?n:e[s]={v:0,cv:Object.create(null)},o=r.cv;let a=r.v;const c=e[t];if(i!=null&&i.length){const h=i.split(/\s+/);for(let l=0,d=h.length;l<d;++l){const u=h[l];u!==""&&(o[u]=a,c.add(u))}}if(r.v=a+1,a!==0){a-=1;for(const h in o)o[h]===a&&c.remove(h)}}const fs={[N.attribute]:ft.setAttribute,[N.booleanAttribute]:ft.setBooleanAttribute,[N.property]:(e,t,i)=>e[t]=i,[N.content]:ds,[N.tokenList]:us,[N.event]:()=>{}};class wt{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=N.content}createHTML(t){return Te.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const i=fs[this.aspectType],n=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!i)throw M.error(1205);this.data=`${this.id}-d`,this.updateTarget=n.protect(this.targetTagName,this.aspectType,this.targetAspect,i)}return this}bind(t){var i;const n=t.targets[this.targetNodeId],s=mt(t)&&t.hydrationStage&&t.hydrationStage!==pt.hydrated;switch(this.aspectType){case N.event:n[this.data]=t,n.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case N.content:t.onUnbind(this);default:const r=(i=n[this.data])!==null&&i!==void 0?i:n[this.data]=this.dataBinding.createObserver(this,this);if(r.target=n,r.controller=t,s&&(this.aspectType===N.attribute||this.aspectType===N.booleanAttribute)){r.bind(t);break}this.updateTarget(n,this.targetAspect,r.bind(t),t);break}}unbind(t){const n=t.targets[this.targetNodeId].$fastView;n!==void 0&&n.isComposed&&(n.unbind(),n.needsBindOnly=!0)}handleEvent(t){const i=t.currentTarget[this.data];if(i.isBound){yt.setEvent(t);const n=this.dataBinding.evaluate(i.source,i.context);yt.setEvent(null),n!==!0&&t.preventDefault()}}handleChange(t,i){const n=i.target,s=i.controller;this.updateTarget(n,this.targetAspect,i.bind(s),s)}}Y.define(wt,{aspected:!0});const ki=(e,t)=>`${e}.${t}`,Li={},Z={index:0,node:null};function Ni(e){e.startsWith("fast-")||M.warn(1204,{name:e})}const ps=new Proxy(document.createElement("div"),{get(e,t){Ni(t);const i=Reflect.get(e,t);return ot(i)?i.bind(e):i},set(e,t,i){return Ni(t),Reflect.set(e,t,i)}});class gs{constructor(t,i,n){this.fragment=t,this.directives=i,this.policy=n,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,i,n,s,r){var o,a;this.nodeIds.has(n)||(this.nodeIds.add(n),this.addTargetDescriptor(i,n,s)),t.id=(o=t.id)!==null&&o!==void 0?o:At(),t.targetNodeId=n,t.targetTagName=r,t.policy=(a=t.policy)!==null&&a!==void 0?a:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,i,n){const s=this.descriptors;if(i==="r"||i==="h"||s[i])return;if(!s[t]){const o=t.lastIndexOf("."),a=t.substring(0,o),c=parseInt(t.substring(o+1));this.addTargetDescriptor(a,t,c)}let r=Li[i];if(!r){const o=`_${i}`;Li[i]=r={get(){var a;return(a=this[o])!==null&&a!==void 0?a:this[o]=this[t].childNodes[n]}}}s[i]=r}createView(t){const i=this.fragment.cloneNode(!0),n=Object.create(this.proto);n.r=i,n.h=t??ps;for(const s of this.nodeIds)n[s];return new Tt(i,this.factories,n)}}function Ei(e,t,i,n,s,r=!1){const o=i.attributes,a=e.directives;for(let c=0,h=o.length;c<h;++c){const l=o[c],d=l.value,u=Ut.parse(d,a);let f=null;u===null?r&&(f=new wt($e(()=>d,e.policy)),Y.assignAspect(f,l.name)):f=Ne.aggregate(u,e.policy),f!==null&&(i.removeAttributeNode(l),c--,h--,e.addFactory(f,t,n,s,i.tagName))}}function vs(e,t,i,n,s){const r=Ut.parse(t.textContent,e.directives);if(r===null)return Z.node=t.nextSibling,Z.index=s+1,Z;let o,a=o=t;for(let c=0,h=r.length;c<h;++c){const l=r[c];c!==0&&(s++,n=ki(i,s),o=a.parentNode.insertBefore(document.createTextNode(""),a.nextSibling)),lt(l)?o.textContent=l:(o.textContent=" ",Y.assignAspect(l),e.addFactory(l,i,n,s,null)),a=o}return Z.index=s+1,Z.node=a.nextSibling,Z}function Mi(e,t,i){let n=0,s=t.firstChild;for(;s;){const r=bs(e,i,s,n);s=r.node,n=r.index}}function bs(e,t,i,n){const s=ki(t,n);switch(i.nodeType){case 1:Ei(e,t,i,s,n),Mi(e,i,s);break;case 3:return vs(e,i,t,s,n);case 8:const r=Ut.parse(i.data,e.directives);r!==null&&e.addFactory(Ne.aggregate(r),t,s,n,null);break}return Z.index=n+1,Z.node=i.nextSibling,Z}function ys(e,t){return e&&e.nodeType==8&&Ut.parse(e.data,t)!==null}const Oi="TEMPLATE",Ne={compile(e,t,i=ft.policy){let n;if(lt(e)){n=document.createElement(Oi),n.innerHTML=i.createHTML(e);const o=n.content.firstElementChild;o!==null&&o.tagName===Oi&&(n=o)}else n=e;!n.content.firstChild&&!n.content.lastChild&&n.content.appendChild(document.createComment(""));const s=document.adoptNode(n.content),r=new gs(s,t,i);return Ei(r,"",n,"h",0,!0),(ys(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Mi(r,s,"r"),Z.node=null,r.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=ft.policy){if(e.length===1)return e[0];let i,n=!1,s;const r=e.length,o=e.map(h=>lt(h)?()=>h:(i=h.sourceAspect||i,n=n||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),a=(h,l)=>{let d="";for(let u=0;u<r;++u)d+=o[u](h,l);return d},c=new wt(qt(a,s??t,n));return Y.assignAspect(c,i),c}},ms=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ws=Object.create(null);class Bt{constructor(t,i=ws){this.html=t,this.factories=i}createHTML(t){const i=this.factories;for(const n in i)t(i[n]);return this.html}}Bt.empty=new Bt(""),Y.define(Bt);function $s(e,t,i,n=Y.getForInstance(e)){if(n.aspected){const s=ms.exec(t);s!==null&&Y.assignAspect(e,s[2])}return e.createHTML(i)}class le{constructor(t,i={},n){this.policy=n,this.result=null,this.html=t,this.factories=i}compile(){return this.result===null&&(this.result=Ne.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new Bt(lt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw M.error(1208);if(this.policy)throw M.error(1207);return this.policy=t,this}render(t,i,n){const s=this.create(n);return s.bind(t),s.appendTo(i),s}static create(t,i,n){let s="";const r=Object.create(null),o=a=>{var c;const h=(c=a.id)!==null&&c!==void 0?c:a.id=At();return r[h]=a,h};for(let a=0,c=t.length-1;a<c;++a){const h=t[a];let l=i[a],d;if(s+=h,ot(l))l=new wt(qt(l));else if(l instanceof _t)l=new wt(l);else if(!(d=Y.getForInstance(l))){const u=l;l=new wt($e(()=>u))}s+=$s(l,h,o,d)}return new le(s+t[t.length-1],r,n)}}ut(le);const at=(e,...t)=>{if(Array.isArray(e)&&Array.isArray(e.raw))return le.create(e,t);throw M.error(1206)};at.partial=e=>new Bt(e);class Ri extends xi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Y.define(Ri);const Ee=e=>new Ri(e),Ss=()=>null;function Vi(e){return e===void 0?Ss:ot(e)?e:()=>e}function Xt(e,t,i){const n=ot(e)?e:()=>e,s=Vi(t),r=Vi(i);return(o,a)=>n(o,a)?s(o,a):r(o,a)}const Pi=Object.freeze({positioning:!1,recycle:!0});function xs(e,t,i,n){e.context.parent=n.source,e.context.parentContext=n.context,e.bind(t[i])}function _s(e,t,i,n){e.context.parent=n.source,e.context.parentContext=n.context,e.context.length=t.length,e.context.index=i,e.bind(t[i])}function zi(e){return e.nodeType===Node.COMMENT_NODE}class Di extends Error{constructor(t,i){super(t),this.propertyBag=i}}class Cs{constructor(t){this.directive=t,this.items=null,this.itemsObserver=null,this.bindView=xs,this.views=[],this.itemsBindingObserver=t.dataBinding.createObserver(this,t),this.templateBindingObserver=t.templateBinding.createObserver(this,t),t.options.positioning&&(this.bindView=_s)}bind(t){this.location=t.targets[this.directive.targetNodeId],this.controller=t,this.items=this.itemsBindingObserver.bind(t),this.template=this.templateBindingObserver.bind(t),this.observeItems(!0),mt(this.template)&&mt(t)&&t.hydrationStage!==pt.hydrated?this.hydrateViews(this.template):this.refreshAllViews(),t.onUnbind(this)}unbind(){this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews()}handleChange(t,i){if(i===this.itemsBindingObserver)this.items=this.itemsBindingObserver.bind(this.controller),this.observeItems(),this.refreshAllViews();else if(i===this.templateBindingObserver)this.template=this.templateBindingObserver.bind(this.controller),this.refreshAllViews(!0);else if(i[0])i[0].reset?this.refreshAllViews():this.updateViews(i);else return}observeItems(t=!1){if(!this.items){this.items=Dt;return}const i=this.itemsObserver,n=this.itemsObserver=V.getNotifier(this.items),s=i!==n;s&&i!==null&&i.unsubscribe(this),(s||t)&&n.subscribe(this)}updateViews(t){const i=this.views,n=this.bindView,s=this.items,r=this.template,o=this.controller,a=this.directive.options.recycle,c=[];let h=0,l=0;for(let d=0,u=t.length;d<u;++d){const f=t[d],p=f.removed;let g=0,A=f.index;const m=A+f.addedCount,w=i.splice(f.index,p.length),_=l=c.length+w.length;for(;A<m;++A){const S=i[A],T=S?S.firstChild:this.location;let B;a&&l>0?(g<=_&&w.length>0?(B=w[g],g++):(B=c[h],h++),l--):B=r.create(),i.splice(A,0,B),n(B,s,A,o),B.insertBefore(T)}w[g]&&c.push(...w.slice(g))}for(let d=h,u=c.length;d<u;++d)c[d].dispose();if(this.directive.options.positioning)for(let d=0,u=i.length;d<u;++d){const f=i[d].context;f.length=u,f.index=d}}refreshAllViews(t=!1){const i=this.items,n=this.template,s=this.location,r=this.bindView,o=this.controller;let a=i.length,c=this.views,h=c.length;if((a===0||t||!this.directive.options.recycle)&&(Tt.disposeContiguousBatch(c),h=0),h===0){this.views=c=new Array(a);for(let l=0;l<a;++l){const d=n.create();r(d,i,l,o),c[l]=d,d.insertBefore(s)}}else{let l=0;for(;l<a;++l)if(l<h){const u=c[l];if(!u){const f=new XMLSerializer;throw new Di(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:l,hydrationStage:this.controller.hydrationStage,itemsLength:a,viewsState:c.map(p=>p?"hydrated":"empty"),viewTemplateString:f.serializeToString(n.create().fragment),rootNodeContent:f.serializeToString(this.location.getRootNode())})}r(u,i,l,o)}else{const u=n.create();r(u,i,l,o),c.push(u),u.insertBefore(s)}const d=c.splice(l,h-l);for(l=0,a=d.length;l<a;++l)d[l].dispose()}}unbindAllViews(){const t=this.views;for(let i=0,n=t.length;i<n;++i){const s=t[i];if(!s){const r=new XMLSerializer;throw new Di(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:i,hydrationStage:this.controller.hydrationStage,viewsState:t.map(o=>o?"hydrated":"empty"),rootNodeContent:r.serializeToString(this.location.getRootNode())})}s.unbind()}}hydrateViews(t){if(!this.items)return;this.views=new Array(this.items.length);let i=this.location.previousSibling;for(;i!==null;){if(!zi(i)){i=i.previousSibling;continue}const n=D.parseRepeatEndMarker(i.data);if(n===null){i=i.previousSibling;continue}i.data="";const s=i.previousSibling;if(!s)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": end should never be null.`);let r=s,o=0;for(;r!==null;){if(zi(r)){if(D.isRepeatViewEndMarker(r.data))o++;else if(D.isRepeatViewStartMarker(r.data))if(o)o--;else{if(D.parseRepeatStartMarker(r.data)!==n)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": Mismatched start and end markers.`);r.data="",i=r.previousSibling,r=r.nextSibling;const a=t.hydrate(r,s);this.views[n]=a,this.bindView(a,this.items,n,this.controller);break}}r=r.previousSibling}if(!r)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": start should never be null.`)}}}class Ii{constructor(t,i,n){this.dataBinding=t,this.templateBinding=i,this.options=n,Jn.enable()}createHTML(t){return Te.comment(t(this))}createBehavior(){return new Cs(this)}}Y.define(Ii);function Hi(e,t,i=Pi){const n=ai(e),s=ai(t);return new Ii(n,s,Object.assign(Object.assign({},Pi),i))}const Fi="boolean",qi="reflect",ji=Object.freeze({locate:Ye()}),As={toView(e){return e?"true":"false"},fromView(e){return!(e==null||e==="false"||e===!1||e===0)}};function Wi(e){if(e==null)return null;const t=e*1;return isNaN(t)?null:t}const Me={toView(e){const t=Wi(e);return t&&t.toString()},fromView:Wi};class ce{constructor(t,i,n=i.toLowerCase(),s=qi,r){this.guards=new Set,this.Owner=t,this.name=i,this.attribute=n,this.mode=s,this.converter=r,this.fieldName=`_${i}`,this.callbackName=`${i}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Fi&&r===void 0&&(this.converter=As)}setValue(t,i){const n=t[this.fieldName],s=this.converter;s!==void 0&&(i=s.fromView(i)),n!==i&&(t[this.fieldName]=i,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](n,i),t.$fastController.notify(this.name))}getValue(t){return V.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,i){this.guards.has(t)||(this.guards.add(t),this.setValue(t,i),this.guards.delete(t))}tryReflectToAttribute(t){const i=this.mode,n=this.guards;n.has(t)||i==="fromView"||me.enqueue(()=>{n.add(t);const s=t[this.fieldName];switch(i){case qi:const r=this.converter;ft.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Fi:ft.setBooleanAttribute(t,this.attribute,s);break}n.delete(t)})}static collect(t,...i){const n=[];i.push(ji.locate(t));for(let s=0,r=i.length;s<r;++s){const o=i[s];if(o!==void 0)for(let a=0,c=o.length;a<c;++a){const h=o[a];lt(h)?n.push(new ce(t,h)):n.push(new ce(t,h.property,h.attribute,h.mode,h.converter))}}return n}}function P(e,t){let i;function n(s,r){arguments.length>1&&(i.property=r),ji.locate(s.constructor).push(i)}if(arguments.length>1){i={},n(e,t);return}return i=e===void 0?{}:e,n}const Ui={mode:"open"},Qi={},Xi=new Set,Gt=M.getById(dt.elementRegistry,()=>ye());class X{constructor(t,i=t.definition){var n;this.platformDefined=!1,lt(i)&&(i={name:i}),this.type=t,this.name=i.name,this.template=i.template,this.registry=(n=i.registry)!==null&&n!==void 0?n:customElements;const s=t.prototype,r=ce.collect(t,i.attributes),o=new Array(r.length),a={},c={};for(let h=0,l=r.length;h<l;++h){const d=r[h];o[h]=d.attribute,a[d.name]=d,c[d.attribute]=d,V.defineProperty(s,d)}Reflect.defineProperty(t,"observedAttributes",{value:o,enumerable:!0}),this.attributes=r,this.propertyLookup=a,this.attributeLookup=c,this.shadowOptions=i.shadowOptions===void 0?Ui:i.shadowOptions===null?void 0:Object.assign(Object.assign({},Ui),i.shadowOptions),this.elementOptions=i.elementOptions===void 0?Qi:Object.assign(Object.assign({},Qi),i.elementOptions),this.styles=H.normalize(i.styles),Gt.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const i=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,i,this.elementOptions)),this}static compose(t,i){return Xi.has(t)||Gt.getByType(t)?new X(class extends t{},i):new X(t,i)}static registerBaseType(t){Xi.add(t)}}X.getByType=Gt.getByType,X.getForInstance=Gt.getForInstance;class Ts extends MutationObserver{constructor(t){function i(n){this.callback.call(null,n.filter(s=>this.observedNodes.has(s.target)))}super(i),this.callback=t,this.observedNodes=new Set}observe(t,i){this.observedNodes.add(t),super.observe(t,i)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(e){const t=[],i={};let n=null,s=!1;return{source:e,context:yt.default,targets:i,get isBound(){return s},addBehaviorFactory(r,o){var a,c,h,l;const d=r;d.id=(a=d.id)!==null&&a!==void 0?a:At(),d.targetNodeId=(c=d.targetNodeId)!==null&&c!==void 0?c:At(),d.targetTagName=(h=o.tagName)!==null&&h!==void 0?h:null,d.policy=(l=d.policy)!==null&&l!==void 0?l:ft.policy,this.addTarget(d.targetNodeId,o),this.addBehavior(d.createBehavior())},addTarget(r,o){i[r]=o},addBehavior(r){t.push(r),s&&r.bind(this)},onUnbind(r){n===null&&(n=[]),n.push(r)},connectedCallback(r){s||(s=!0,t.forEach(o=>o.bind(this)))},disconnectedCallback(r){s&&(s=!1,n!==null&&n.forEach(o=>o.unbind(this)))}}}});const Bs={bubbles:!0,composed:!0,cancelable:!0},Kt="isConnected",Gi=new WeakMap;function kt(e){var t,i;return(i=(t=e.shadowRoot)!==null&&t!==void 0?t:Gi.get(e))!==null&&i!==void 0?i:null}let Ki;class $t extends ti{constructor(t,i){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=i;const n=i.shadowOptions;if(n!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(n),n.mode==="closed"&&Gi.set(t,r))}const s=V.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let o=0,a=s.length;o<a;++o){const c=s[o].name,h=t[c];h!==void 0&&(delete t[c],r[c]=h)}}}get isConnected(){return V.track(this,Kt),this.stage===1}get context(){var t,i;return(i=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&i!==void 0?i:yt.default}get isBound(){var t,i;return(i=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&i!==void 0?i:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const i=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():i.template&&(this._template=(t=i.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const i=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():i.styles&&(this._mainStyles=(t=i.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var i;(i=this.view)===null||i===void 0||i.onUnbind(t)}addBehavior(t){var i,n;const s=(i=this.behaviors)!==null&&i!==void 0?i:this.behaviors=new Map,r=(n=s.get(t))!==null&&n!==void 0?n:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,i=!1){const n=this.behaviors;if(n===null)return;const s=n.get(t);s!==void 0&&(s===1||i?(n.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):n.set(t,s-1))}addStyles(t){var i;if(!t)return;const n=this.source;if(t instanceof HTMLElement)((i=kt(n))!==null&&i!==void 0?i:this.source).append(t);else if(!t.isAttachedTo(n)){const s=t.behaviors;if(t.addStylesTo(n),s!==null)for(let r=0,o=s.length;r<o;++r)this.addBehavior(s[r])}}removeStyles(t){var i;if(!t)return;const n=this.source;if(t instanceof HTMLElement)((i=kt(n))!==null&&i!==void 0?i:n).removeChild(t);else if(t.isAttachedTo(n)){const s=t.behaviors;if(t.removeStylesFrom(n),s!==null)for(let r=0,o=s.length;r<o;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,V.notify(this,Kt))}bindObservables(){if(this.boundObservables!==null){const t=this.source,i=this.boundObservables,n=Object.keys(i);for(let s=0,r=n.length;s<r;++s){const o=n[s];t[o]=i[o]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const i of t.keys())i.connectedCallback&&i.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const i of t.keys())i.disconnectedCallback&&i.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,V.notify(this,Kt),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,i,n){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,n)}emit(t,i,n){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:i},Bs),n))):!1}renderTemplate(t){var i;const n=this.source,s=(i=kt(n))!==null&&i!==void 0?i:n;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(n,s,n),this.view.sourceLifetime=Ft.coupled)}static forCustomElement(t){const i=t.$fastController;if(i!==void 0)return i;const n=X.getForInstance(t);if(n===void 0)throw M.error(1401);return t.$fastController=new Ki(t,n)}static setStrategy(t){Ki=t}}ut($t),$t.setStrategy($t);function Jt(e){var t;return"adoptedStyleSheets"in e?e:(t=kt(e))!==null&&t!==void 0?t:e.getRootNode()}class he{constructor(t){const i=he.styleSheetCache;this.sheets=t.map(n=>{if(n instanceof CSSStyleSheet)return n;let s=i.get(n);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(n),i.set(n,s)),s})}addStylesTo(t){Yi(Jt(t),this.sheets)}removeStylesFrom(t){Zi(Jt(t),this.sheets)}}he.styleSheetCache=new Map;let ks=0;const Ls=()=>`fast-${++ks}`;function Ji(e){return e===document?document.body:e}class Ns{constructor(t){this.styles=t,this.styleClass=Ls()}addStylesTo(t){t=Ji(Jt(t));const i=this.styles,n=this.styleClass;for(let s=0;s<i.length;s++){const r=document.createElement("style");r.innerHTML=i[s],r.className=n,t.append(r)}}removeStylesFrom(t){t=Ji(Jt(t));const i=t.querySelectorAll(`.${this.styleClass}`);for(let n=0,s=i.length;n<s;++n)t.removeChild(i[n])}}let Yi=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Zi=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(i=>t.indexOf(i)===-1)};if(H.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Yi=(e,t)=>{e.adoptedStyleSheets.push(...t)},Zi=(e,t)=>{for(const i of t){const n=e.adoptedStyleSheets.indexOf(i);n!==-1&&e.adoptedStyleSheets.splice(n,1)}}}catch{}H.setDefaultStrategy(he)}else H.setDefaultStrategy(Ns);const tn="defer-hydration",en="needs-hydration";class bt extends $t{static hydrationObserverHandler(t){for(const i of t)bt.hydrationObserver.unobserve(i.target),i.target.$fastController.connect()}connect(){var t,i;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(en)!==null),this.source.hasAttribute(tn)){bt.hydrationObserver.observe(this.source,{attributeFilter:[tn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const n=this.source,s=(t=kt(n))!==null&&t!==void 0?t:n;if(this.template)if(mt(this.template)){let r=s.firstChild,o=s.lastChild;n.shadowRoot===null&&(D.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),D.isElementBoundaryEndMarker(o)&&(o.data="",o=o.previousSibling)),this.view=this.template.hydrate(r,o,n),(i=this.view)===null||i===void 0||i.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(en),this.needsInitialization=this.needsHydration=!1,V.notify(this,Kt)}disconnect(){super.disconnect(),bt.hydrationObserver.unobserve(this.source)}static install(){$t.setStrategy(bt)}}bt.hydrationObserver=new Ts(bt.hydrationObserverHandler);function nn(e){const t=class extends e{constructor(){super(),$t.forCustomElement(this)}$emit(i,n,s){return this.$fastController.emit(i,n,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(i,n,s){this.$fastController.onAttributeChangedCallback(i,n,s)}};return X.registerBaseType(t),t}function Es(e,t){return ot(e)?X.compose(e,t):X.compose(this,e)}function Ms(e,t){return ot(e)?X.compose(e,t).define().type:X.compose(this,e).define().type}function Os(e){return nn(e)}const sn=Object.assign(nn(HTMLElement),{from:Os,define:Ms,compose:Es});var Lt;(function(e){e.ltr="ltr",e.rtl="rtl"})(Lt||(Lt={}));const Rs=e=>{var t;return((t=e.closest("[dir]"))===null||t===void 0?void 0:t.dir)==="rtl"?Lt.rtl:Lt.ltr},Vs=":host([hidden]){display:none}";function rn(e){return`${Vs}:host{display:${e}}`}class Ps{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:i}=this;let n=this.listenerCache.get(t);n||(n=this.constructListener(t),this.listenerCache.set(t,n)),n.bind(i)(),i.addEventListener("change",n)}disconnectedCallback(t){const i=this.listenerCache.get(t);i&&this.query.removeEventListener("change",i)}}class Mt extends Ps{constructor(t,i){super(t),this.styles=i}static with(t){return i=>new Mt(t,i)}constructListener(t){let i=!1;const n=this.styles;return function(){const{matches:r}=this;r&&!i?(t.addStyles(n),i=r):!r&&i&&(t.removeStyles(n),i=r)}}removedCallback(t){t.removeStyles(this.styles)}}const on=Mt.with(window.matchMedia("(forced-colors)"));Mt.with(window.matchMedia("(prefers-color-scheme: dark)")),Mt.with(window.matchMedia("(prefers-color-scheme: light)"));const tt="var(--colorNeutralForeground1)",Yt="var(--colorNeutralBackground1)",zs="var(--colorNeutralStrokeAccessible)",Ds="var(--colorTransparentStroke)",Is="var(--colorStrokeFocus1)",Hs="var(--colorStrokeFocus2)",Fs="var(--colorNeutralShadowAmbient)",qs="var(--colorNeutralShadowKey)",js="var(--borderRadiusMedium)",E="var(--fontFamilyBase)",an="var(--fontSizeBase100)",Oe="var(--fontSizeBase200)",Re="var(--fontSizeBase300)",Ve="var(--fontSizeBase400)",Ws="var(--fontSizeBase500)",Us="var(--fontSizeBase600)",Qs="var(--fontSizeHero700)",Xs="var(--fontSizeHero800)",Gs="var(--fontSizeHero900)",Ks="var(--fontSizeHero1000)",Zt="var(--fontWeightRegular)",et="var(--fontWeightSemibold)",Pe="var(--fontWeightBold)",ln="var(--lineHeightBase100)",ze="var(--lineHeightBase200)",De="var(--lineHeightBase300)",Ie="var(--lineHeightBase400)",Js="var(--lineHeightBase500)",Ys="var(--lineHeightBase600)",Zs="var(--lineHeightHero700)",tr="var(--lineHeightHero800)",er="var(--lineHeightHero900)",ir="var(--lineHeightHero1000)",nr="var(--shadow4)",He="var(--strokeWidthThin)",cn="var(--strokeWidthThick)",te="var(--strokeWidthThickest)",hn="var(--spacingHorizontalNone)",sr="var(--spacingHorizontalSNudge)",ht="var(--spacingHorizontalS)",dn="var(--spacingHorizontalL)",un="var(--spacingVerticalNone)",rr="var(--spacingVerticalXS)",fn="var(--spacingVerticalS)",pn="var(--spacingVerticalMNudge)",gn="var(--spacingVerticalL)",ee=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements}),vn=k.partial`
1
+ let zt;const Ke="fast-kernel";try{if(document.currentScript)zt=document.currentScript.getAttribute(Ke);else{const e=document.getElementsByTagName("script");zt=e[e.length-1].getAttribute(Ke)}}catch{zt="isolate"}let dt;switch(zt){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const e=`-${Math.random().toString(36).substring(2,8)}`;dt=Object.freeze({updateQueue:`1.2${e}`,observable:`2.2${e}`,contextEvent:`3.2${e}`,elementRegistry:`4.2${e}`});break}const ot=e=>typeof e=="function",lt=e=>typeof e=="string",zn=()=>{};var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof be<"u")be.globalThis=be;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const Je={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Je));const M=globalThis.FAST;if(M.getById===void 0){const e=Object.create(null);Reflect.defineProperty(M,"getById",Object.assign({value(t,i){let n=e[t];return n===void 0&&(n=i?e[t]=i():null),n}},Je))}M.error===void 0&&Object.assign(M,{warn(){},error(e){return new Error(`Error ${e}`)},addMessages(){}});const Dt=Object.freeze([]);function ye(){const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)},getForInstance(t){if(t!=null)return e.get(t.constructor)}})}function Ye(){const e=new WeakMap;return function(t){let i=e.get(t);if(i===void 0){let n=Reflect.getPrototypeOf(t);for(;i===void 0&&n!==null;)i=e.get(n),n=Reflect.getPrototypeOf(n);i=i===void 0?[]:i.slice(0),e.set(t,i)}return i}}function ut(e){e.prototype.toJSON=zn}const N=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ze=e=>e,Dn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ze}):{createHTML:Ze};let It=Object.freeze({createHTML(e){return Dn.createHTML(e)},protect(e,t,i,n){return n}});const In=It,ft=Object.freeze({get policy(){return It},setPolicy(e){if(It!==In)throw M.error(1201);It=e},setAttribute(e,t,i){i==null?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}}),me=M.getById(dt.updateQueue,()=>{const e=[],t=[],i=globalThis.requestAnimationFrame;let n=!0;function s(){if(t.length)throw t.shift()}function r(c){try{c.call()}catch(h){if(n)t.push(h),setTimeout(s,0);else throw e.length=0,h}}function o(){let h=0;for(;h<e.length;)if(r(e[h]),h++,h>1024){for(let l=0,d=e.length-h;l<d;l++)e[l]=e[l+h];e.length-=h,h=0}e.length=0}function a(c){e.push(c),e.length<2&&(n?i(o):o())}return Object.freeze({enqueue:a,next:()=>new Promise(a),process:o,setMode:c=>n=c})});class Ht{constructor(t,i){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=i}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const i=this.spillover;if(i===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else i.indexOf(t)===-1&&i.push(t)}unsubscribe(t){const i=this.spillover;if(i===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const n=i.indexOf(t);n!==-1&&i.splice(n,1)}}notify(t){const i=this.spillover,n=this.subject;if(i===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(n,t),r!==void 0&&r.handleChange(n,t)}else for(let s=0,r=i.length;s<r;++s)i[s].handleChange(n,t)}}class ti{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var i,n;(i=this.subscribers[t])===null||i===void 0||i.notify(t),(n=this.subjectSubscribers)===null||n===void 0||n.notify(t)}subscribe(t,i){var n,s;let r;i?r=(n=this.subscribers[i])!==null&&n!==void 0?n:this.subscribers[i]=new Ht(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new Ht(this.subject),r.subscribe(t)}unsubscribe(t,i){var n,s;i?(n=this.subscribers[i])===null||n===void 0||n.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const Ft=Object.freeze({unknown:void 0,coupled:1}),V=M.getById(dt.observable,()=>{const e=me.enqueue,t=/(:|&&|\|\||if|\?\.)/,i=new WeakMap;let n,s=h=>{throw M.error(1101)};function r(h){var l;let d=(l=h.$fastController)!==null&&l!==void 0?l:i.get(h);return d===void 0&&(Array.isArray(h)?d=s(h):i.set(h,d=new ti(h))),d}const o=Ye();class a{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return n!==void 0&&n.watch(l,this.name),l[this.field]}setValue(l,d){const u=this.field,f=l[u];if(f!==d){l[u]=d;const p=l[this.callback];ot(p)&&p.call(l,f,d),r(l).notify(this.name)}}}class c extends Ht{constructor(l,d,u=!1){super(l,d),this.expression=l,this.isVolatileBinding=u,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const d=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),d}requiresUnbind(l){return l.sourceLifetime!==Ft.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,d){this.needsRefresh&&this.last!==null&&this.dispose();const u=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let f;try{f=this.expression(l,d)}finally{n=u}return f}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,d){const u=this.last,f=r(l),p=u===null?this.first:{};if(p.propertySource=l,p.propertyName=d,p.notifier=f,f.subscribe(this,d),u!==null){if(!this.needsRefresh){let g;n=void 0,g=u.propertySource[u.propertyName],n=this,l===g&&(this.needsRefresh=!0)}u.next=p}this.last=p}handleChange(){this.needsQueue?(this.needsQueue=!1,e(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(c),Object.freeze({setArrayObserverFactory(h){s=h},getNotifier:r,track(h,l){n&&n.watch(h,l)},trackVolatile(){n&&(n.needsRefresh=!0)},notify(h,l){r(h).notify(l)},defineProperty(h,l){lt(l)&&(l=new a(l)),o(h).push(l),Reflect.defineProperty(h,l.name,{enumerable:!0,get(){return l.getValue(this)},set(d){l.setValue(this,d)}})},getAccessors:o,binding(h,l,d=this.isVolatileBinding(h)){return new c(h,l,d)},isVolatileBinding(h){return t.test(h.toString())}})});function ct(e,t){V.defineProperty(e,t)}const ei=M.getById(dt.contextEvent,()=>{let e=null;return{get(){return e},set(t){e=t}}}),yt=Object.freeze({default:{index:0,length:0,get event(){return yt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ei.get()},setEvent(e){ei.set(e)}});class U{constructor(t,i,n){this.index=t,this.removed=i,this.addedCount=n}adjustTo(t){let i=this.index;const n=t.length;return i>n?i=n-this.addedCount:i<0&&(i=n+this.removed.length+i-this.addedCount),this.index=i<0?0:i,this}}const Hn=Object.freeze({reset:1,splice:2,optimized:3}),ii=new U(0,Dt,0);ii.reset=!0;const ni=[ii];function Fn(e,t,i,n,s,r){const o=r-s+1,a=i-t+1,c=new Array(o);let h,l;for(let d=0;d<o;++d)c[d]=new Array(a),c[d][0]=d;for(let d=0;d<a;++d)c[0][d]=d;for(let d=1;d<o;++d)for(let u=1;u<a;++u)e[t+u-1]===n[s+d-1]?c[d][u]=c[d-1][u-1]:(h=c[d-1][u]+1,l=c[d][u-1]+1,c[d][u]=h<l?h:l);return c}function qn(e){let t=e.length-1,i=e[0].length-1,n=e[t][i];const s=[];for(;t>0||i>0;){if(t===0){s.push(2),i--;continue}if(i===0){s.push(3),t--;continue}const r=e[t-1][i-1],o=e[t-1][i],a=e[t][i-1];let c;o<a?c=o<r?o:r:c=a<r?a:r,c===r?(r===n?s.push(0):(s.push(1),n=r),t--,i--):c===o?(s.push(3),t--,n=o):(s.push(2),i--,n=a)}return s.reverse()}function jn(e,t,i){for(let n=0;n<i;++n)if(e[n]!==t[n])return n;return i}function Wn(e,t,i){let n=e.length,s=t.length,r=0;for(;r<i&&e[--n]===t[--s];)r++;return r}function Un(e,t,i,n){return t<i||n<e?-1:t===i||n===e?0:e<i?t<n?t-i:n-i:n<t?n-e:t-e}function Qn(e,t,i,n,s,r){let o=0,a=0;const c=Math.min(i-t,r-s);if(t===0&&s===0&&(o=jn(e,n,c)),i===e.length&&r===n.length&&(a=Wn(e,n,c-o)),t+=o,s+=o,i-=a,r-=a,i-t===0&&r-s===0)return Dt;if(t===i){const p=new U(t,[],0);for(;s<r;)p.removed.push(n[s++]);return[p]}else if(s===r)return[new U(t,[],i-t)];const h=qn(Fn(e,t,i,n,s,r)),l=[];let d,u=t,f=s;for(let p=0;p<h.length;++p)switch(h[p]){case 0:d!==void 0&&(l.push(d),d=void 0),u++,f++;break;case 1:d===void 0&&(d=new U(u,[],0)),d.addedCount++,u++,d.removed.push(n[f]),f++;break;case 2:d===void 0&&(d=new U(u,[],0)),d.addedCount++,u++;break;case 3:d===void 0&&(d=new U(u,[],0)),d.removed.push(n[f]),f++;break}return d!==void 0&&l.push(d),l}function Xn(e,t){let i=!1,n=0;for(let s=0;s<t.length;s++){const r=t[s];if(r.index+=n,i)continue;const o=Un(e.index,e.index+e.removed.length,r.index,r.index+r.addedCount);if(o>=0){t.splice(s,1),s--,n-=r.addedCount-r.removed.length,e.addedCount+=r.addedCount-o;const a=e.removed.length+r.removed.length-o;if(!e.addedCount&&!a)i=!0;else{let c=r.removed;if(e.index<r.index){const h=e.removed.slice(0,r.index-e.index);h.push(...c),c=h}if(e.index+e.removed.length>r.index+r.addedCount){const h=e.removed.slice(r.index+r.addedCount-e.index);c.push(...h)}e.removed=c,r.index<e.index&&(e.index=r.index)}}else if(e.index<r.index){i=!0,t.splice(s,0,e),s++;const a=e.addedCount-e.removed.length;r.index+=a,n+=a}}i||t.push(e)}function Gn(e,t){let i=[];const n=[];for(let s=0,r=t.length;s<r;s++)Xn(t[s],n);for(let s=0,r=n.length;s<r;++s){const o=n[s];if(o.addedCount===1&&o.removed.length===1){o.removed[0]!==e[o.index]&&i.push(o);continue}i=i.concat(Qn(e,o.index,o.index+o.addedCount,o.removed,0,o.removed.length))}return i}let we=Object.freeze({support:Hn.optimized,normalize(e,t,i){return e===void 0?i===void 0?Dt:Gn(t,i):ni},pop(e,t,i,n){const s=e.length>0,r=i.apply(e,n);return s&&t.addSplice(new U(e.length,[r],0)),r},push(e,t,i,n){const s=i.apply(e,n);return t.addSplice(new U(e.length-n.length,[],n.length).adjustTo(e)),s},reverse(e,t,i,n){const s=i.apply(e,n);return t.reset(e),s},shift(e,t,i,n){const s=e.length>0,r=i.apply(e,n);return s&&t.addSplice(new U(0,[r],0)),r},sort(e,t,i,n){const s=i.apply(e,n);return t.reset(e),s},splice(e,t,i,n){const s=i.apply(e,n);return t.addSplice(new U(+n[0],s,n.length>2?n.length-2:0).adjustTo(e)),s},unshift(e,t,i,n){const s=i.apply(e,n);return t.addSplice(new U(0,[],n.length).adjustTo(e)),s}});Object.freeze({reset:ni,setDefaultStrategy(e){we=e}});function si(e,t,i){Reflect.defineProperty(e,t,{value:i,enumerable:!1})}class Kn extends Ht{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this._strategy=null,this._lengthObserver=void 0,this.call=this.flush,si(t,"$fastController",this)}get strategy(){return this._strategy}set strategy(t){this._strategy=t}get lengthObserver(){let t=this._lengthObserver;if(t===void 0){const i=this.subject;this._lengthObserver=t={length:i.length,handleChange(){this.length!==i.length&&(this.length=i.length,V.notify(t,"length"))}},this.subscribe(t)}return t}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.enqueue()}reset(t){this.oldCollection=t,this.enqueue()}flush(){var t;const i=this.splices,n=this.oldCollection;i===void 0&&n===void 0||(this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0,this.notify(((t=this._strategy)!==null&&t!==void 0?t:we).normalize(n,this.subject,i)))}enqueue(){this.needsQueue&&(this.needsQueue=!1,me.enqueue(this))}}let ri=!1;const Jn=Object.freeze({enable(){if(ri)return;ri=!0,V.setArrayObserverFactory(t=>new Kn(t));const e=Array.prototype;e.$fastPatch||(si(e,"$fastPatch",1),[e.pop,e.push,e.reverse,e.shift,e.sort,e.splice,e.unshift].forEach(t=>{e[t.name]=function(...i){var n;const s=this.$fastController;return s===void 0?t.apply(this,i):((n=s.strategy)!==null&&n!==void 0?n:we)[t.name](this,s,t,i)}}))}});class _t{constructor(t,i,n=!1){this.evaluate=t,this.policy=i,this.isVolatile=n}}class Yn extends _t{createObserver(t){return V.binding(this.evaluate,t,this.isVolatile)}}function qt(e,t,i=V.isVolatileBinding(e)){return new Yn(e,t,i)}class oi extends _t{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ut(oi);function $e(e,t){return new oi(e,t)}function ai(e){return ot(e)?qt(e):e instanceof _t?e:$e(()=>e)}let li;function ci(e){return e.map(t=>t instanceof H?ci(t.styles):[t]).reduce((t,i)=>t.concat(i),[])}class H{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(i=>i instanceof H?i.behaviors:null).reduce((i,n)=>n===null?i:i===null?n:i.concat(n),null)}get strategy(){return this._strategy===null&&this.withStrategy(li),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(ci(this.styles)),this}static setDefaultStrategy(t){li=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new H(t):t instanceof H?t:new H([t])}}H.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Se=ye(),xe=Object.freeze({getForInstance:Se.getForInstance,getByType:Se.getByType,define(e){return Se.register({type:e}),e}});function _e(e,t,i){t.source.style.setProperty(e.targetAspect,i.bind(t))}class Ce{constructor(t,i){this.dataBinding=t,this.targetAspect=i}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var i;const n=t.source;if(!n.$cssBindings){n.$cssBindings=new Map;const r=n.setAttribute;n.setAttribute=(o,a)=>{r.call(n,o,a),o==="style"&&n.$cssBindings.forEach((c,h)=>_e(h,c.controller,c.observer))}}const s=(i=t[this.targetAspect])!==null&&i!==void 0?i:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){_e(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,i){_e(this,i.controller,i)}}xe.define(Ce);const Zn=`${Math.random().toString(36).substring(2,8)}`;let ts=0;const hi=()=>`--v${Zn}${++ts}`;function di(e,t){const i=[];let n="";const s=[],r=o=>{s.push(o)};for(let o=0,a=e.length-1;o<a;++o){n+=e[o];let c=t[o];ot(c)?c=new Ce(qt(c),hi()).createCSS(r):c instanceof _t?c=new Ce(c,hi()).createCSS(r):xe.getForInstance(c)!==void 0&&(c=c.createCSS(r)),c instanceof H||c instanceof CSSStyleSheet?(n.trim()!==""&&(i.push(n),n=""),i.push(c)):n+=c}return n+=e[e.length-1],n.trim()!==""&&i.push(n),{styles:i,behaviors:s}}const k=(e,...t)=>{const{styles:i,behaviors:n}=di(e,t),s=new H(i);return n.length?s.withBehaviors(...n):s};class ui{constructor(t,i){this.behaviors=i,this.css="";const n=t.reduce((s,r)=>(lt(r)?this.css+=r:s.push(r),s),[]);n.length&&(this.styles=new H(n))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}xe.define(ui),k.partial=(e,...t)=>{const{styles:i,behaviors:n}=di(e,t);return new ui(i,n)};const fi=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,pi=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,gi=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,vi=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,bi=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,yi=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function mi(e){return e&&e.nodeType===Node.COMMENT_NODE}const D=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(e,t){return`fe-b$$start$$${e}$$${t}$$fe-b`},contentBindingEndMarker(e,t){return`fe-b$$end$$${e}$$${t}$$fe-b`},repeatStartMarker(e){return`fe-repeat$$start$$${e}$$fe-repeat`},repeatEndMarker(e){return`fe-repeat$$end$$${e}$$fe-repeat`},isContentBindingStartMarker(e){return fi.test(e)},isContentBindingEndMarker(e){return pi.test(e)},isRepeatViewStartMarker(e){return gi.test(e)},isRepeatViewEndMarker(e){return vi.test(e)},isElementBoundaryStartMarker(e){return mi(e)&&bi.test(e.data.trim())},isElementBoundaryEndMarker(e){return mi(e)&&yi.test(e.data)},parseAttributeBinding(e){const t=e.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(i=>parseInt(i))},parseContentBindingStartMarker(e){return Si(fi,e)},parseContentBindingEndMarker(e){return Si(pi,e)},parseRepeatStartMarker(e){return wi(gi,e)},parseRepeatEndMarker(e){return wi(vi,e)},parseElementBoundaryStartMarker(e){return $i(bi,e.trim())},parseElementBoundaryEndMarker(e){return $i(yi,e)}});function wi(e,t){const i=e.exec(t);return i===null?i:parseInt(i[1])}function $i(e,t){const i=e.exec(t);return i===null?i:i[1]}function Si(e,t){const i=e.exec(t);return i===null?i:[parseInt(i[1]),i[2]]}const jt=Symbol.for("fe-hydration");function mt(e){return e[jt]===jt}const Ae=`fast-${Math.random().toString(36).substring(2,8)}`,Wt=`${Ae}{`,Ct=`}${Ae}`,es=Ct.length;let is=0;const At=()=>`${Ae}-${++is}`,Te=Object.freeze({interpolation:e=>`${Wt}${e}${Ct}`,attribute:e=>`${At()}="${Wt}${e}${Ct}"`,comment:e=>`<!--${Wt}${e}${Ct}-->`}),Ut=Object.freeze({parse(e,t){const i=e.split(Wt);if(i.length===1)return null;const n=[];for(let s=0,r=i.length;s<r;++s){const o=i[s],a=o.indexOf(Ct);let c;if(a===-1)c=o;else{const h=o.substring(0,a);n.push(t[h]),c=o.substring(a+es)}c!==""&&n.push(c)}return n}}),Be=ye(),Y=Object.freeze({getForInstance:Be.getForInstance,getByType:Be.getByType,define(e,t){return t=t||{},t.type=e,Be.register(t),e},assignAspect(e,t){if(!t){e.aspectType=N.content;return}switch(e.sourceAspect=t,t[0]){case":":e.targetAspect=t.substring(1),e.aspectType=e.targetAspect==="classList"?N.tokenList:N.property;break;case"?":e.targetAspect=t.substring(1),e.aspectType=N.booleanAttribute;break;case"@":e.targetAspect=t.substring(1),e.aspectType=N.event;break;default:e.targetAspect=t,e.aspectType=N.attribute;break}}});class xi{constructor(t){this.options=t}createHTML(t){return Te.attribute(t(this))}createBehavior(){return this}}ut(xi);class _i extends Error{constructor(t,i,n){super(t),this.factories=i,this.node=n}}function ke(e){return e.nodeType===Node.COMMENT_NODE}function Ci(e){return e.nodeType===Node.TEXT_NODE}function Ai(e,t){const i=document.createRange();return i.setStart(e,0),i.setEnd(t,ke(t)||Ci(t)?t.data.length:t.childNodes.length),i}function ns(e){return e instanceof DocumentFragment&&"mode"in e}function ss(e,t,i){const n=Ai(e,t),s=n.commonAncestorContainer,r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(h){return n.comparePoint(h,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),o={},a={};let c=r.currentNode=e;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{rs(c,i,o);break}case Node.COMMENT_NODE:{os(c,r,i,o,a);break}}c=r.nextNode()}return n.detach(),{targets:o,boundaries:a}}function rs(e,t,i){const n=D.parseAttributeBinding(e);if(n!==null){for(const s of n){if(!t[s])throw new _i(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,e);Qt(t[s],e,i)}e.removeAttribute(D.attributeMarkerName)}}function os(e,t,i,n,s){if(D.isElementBoundaryStartMarker(e)){as(e,t);return}if(D.isContentBindingStartMarker(e.data)){const r=D.parseContentBindingStartMarker(e.data);if(r===null)return;const[o,a]=r,c=i[o],h=[];let l=t.nextSibling();e.data="";const d=l;for(;l!==null;){if(ke(l)){const u=D.parseContentBindingEndMarker(l.data);if(u&&u[1]===a)break}h.push(l),l=t.nextSibling()}if(l===null){const u=e.getRootNode();throw new Error(`Error hydrating Comment node inside "${ns(u)?u.host.nodeName:u.nodeName}".`)}if(l.data="",h.length===1&&Ci(h[0]))Qt(c,h[0],n);else{l!==d&&l.previousSibling!==null&&(s[c.targetNodeId]={first:d,last:l.previousSibling});const u=l.parentNode.insertBefore(document.createTextNode(""),l);Qt(c,u,n)}}}function as(e,t){const i=D.parseElementBoundaryStartMarker(e.data);let n=t.nextSibling();for(;n!==null;){if(ke(n)){const s=D.parseElementBoundaryEndMarker(n.data);if(s&&s===i)break}n=t.nextSibling()}}function Qt(e,t,i){if(e.targetNodeId===void 0)throw new Error("Factory could not be target to the node");i[e.targetNodeId]=t}var Ti;function Le(e,t){const i=e.parentNode;let n=e,s;for(;n!==t;){if(s=n.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);i.removeChild(n),n=s}i.removeChild(t)}class Bi{constructor(){this.index=0,this.length=0}get event(){return yt.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Tt extends Bi{constructor(t,i,n){super(),this.fragment=t,this.factories=i,this.targets=n,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ft.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const i=this.lastChild;if(t.previousSibling===i)return;const n=t.parentNode;let s=this.firstChild,r;for(;s!==i;)r=s.nextSibling,n.insertBefore(s,t),s=r;n.insertBefore(i,t)}}remove(){const t=this.fragment,i=this.lastChild;let n=this.firstChild,s;for(;n!==i;)s=n.nextSibling,t.appendChild(n),n=s;t.appendChild(i)}dispose(){Le(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,i=this){if(this.source===t)return;let n=this.behaviors;if(n===null){this.source=t,this.context=i,this.behaviors=n=new Array(this.factories.length);const s=this.factories;for(let r=0,o=s.length;r<o;++r){const a=s[r].createBehavior();a.bind(this),n[r]=a}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=i;for(let s=0,r=n.length;s<r;++s)n[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let i=0,n=t.length;i<n;++i)t[i].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Le(t[0].firstChild,t[t.length-1].lastChild);for(let i=0,n=t.length;i<n;++i)t[i].unbind()}}}ut(Tt),V.defineProperty(Tt.prototype,"index"),V.defineProperty(Tt.prototype,"length");const pt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ls extends Error{constructor(t,i,n,s){super(t),this.factory=i,this.fragment=n,this.templateString=s}}class cs extends Bi{constructor(t,i,n,s){super(),this.firstChild=t,this.lastChild=i,this.sourceTemplate=n,this.hostBindingTarget=s,this[Ti]=jt,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ft.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=pt.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=n.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const i=this.lastChild;if(t.previousSibling===i)return;const n=t.parentNode;let s=this.firstChild,r;for(;s!==i;)r=s.nextSibling,n.insertBefore(s,t),s=r;n.insertBefore(i,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),i=this.lastChild;let n=this.firstChild,s;for(;n!==i;){if(s=n.nextSibling,!s)throw new Error(`Unmatched first/last child inside "${i.getRootNode().host.nodeName}".`);t.appendChild(n),n=s}t.appendChild(i)}bind(t,i=this){var n,s;if(this.hydrationStage!==pt.hydrated&&(this._hydrationStage=pt.hydrating),this.source===t)return;let r=this.behaviors;if(r===null){this.source=t,this.context=i;try{const{targets:a,boundaries:c}=ss(this.firstChild,this.lastChild,this.factories);this._targets=a,this._bindingViewBoundaries=c}catch(a){if(a instanceof _i){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),a.templateString=c}throw a}this.behaviors=r=new Array(this.factories.length);const o=this.factories;for(let a=0,c=o.length;a<c;++a){const h=o[a];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Qt(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const l=h.createBehavior();l.bind(this),r[a]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ls(`HydrationView was unable to successfully target bindings inside "${(s=((n=this.firstChild)===null||n===void 0?void 0:n.getRootNode()).host)===null||s===void 0?void 0:s.nodeName}".`,h,Ai(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=i;for(let o=0,a=r.length;o<a;++o)r[o].bind(this)}this.isBound=!0,this._hydrationStage=pt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Le(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let i=0,n=t.length;i<n;++i)t[i].unbind(this);t.length=0}}Ti=jt,ut(cs);function hs(e){return e.create!==void 0}function ds(e,t,i,n){if(i==null&&(i=""),hs(i)){e.textContent="";let s=e.$fastView;if(s===void 0)if(mt(n)&&mt(i)&&n.bindingViewBoundaries[this.targetNodeId]!==void 0&&n.hydrationStage!==pt.hydrated){const r=n.bindingViewBoundaries[this.targetNodeId];s=i.hydrate(r.first,r.last)}else s=i.create();else e.$fastTemplate!==i&&(s.isComposed&&(s.remove(),s.unbind()),s=i.create());s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(n.source,n.context)):(s.isComposed=!0,s.bind(n.source,n.context),s.insertBefore(e),e.$fastView=s,e.$fastTemplate=i)}else{const s=e.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),e.textContent=i}}function us(e,t,i){var n;const s=`${this.id}-t`,r=(n=e[s])!==null&&n!==void 0?n:e[s]={v:0,cv:Object.create(null)},o=r.cv;let a=r.v;const c=e[t];if(i!=null&&i.length){const h=i.split(/\s+/);for(let l=0,d=h.length;l<d;++l){const u=h[l];u!==""&&(o[u]=a,c.add(u))}}if(r.v=a+1,a!==0){a-=1;for(const h in o)o[h]===a&&c.remove(h)}}const fs={[N.attribute]:ft.setAttribute,[N.booleanAttribute]:ft.setBooleanAttribute,[N.property]:(e,t,i)=>e[t]=i,[N.content]:ds,[N.tokenList]:us,[N.event]:()=>{}};class wt{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=N.content}createHTML(t){return Te.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const i=fs[this.aspectType],n=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!i)throw M.error(1205);this.data=`${this.id}-d`,this.updateTarget=n.protect(this.targetTagName,this.aspectType,this.targetAspect,i)}return this}bind(t){var i;const n=t.targets[this.targetNodeId],s=mt(t)&&t.hydrationStage&&t.hydrationStage!==pt.hydrated;switch(this.aspectType){case N.event:n[this.data]=t,n.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case N.content:t.onUnbind(this);default:const r=(i=n[this.data])!==null&&i!==void 0?i:n[this.data]=this.dataBinding.createObserver(this,this);if(r.target=n,r.controller=t,s&&(this.aspectType===N.attribute||this.aspectType===N.booleanAttribute)){r.bind(t);break}this.updateTarget(n,this.targetAspect,r.bind(t),t);break}}unbind(t){const n=t.targets[this.targetNodeId].$fastView;n!==void 0&&n.isComposed&&(n.unbind(),n.needsBindOnly=!0)}handleEvent(t){const i=t.currentTarget[this.data];if(i.isBound){yt.setEvent(t);const n=this.dataBinding.evaluate(i.source,i.context);yt.setEvent(null),n!==!0&&t.preventDefault()}}handleChange(t,i){const n=i.target,s=i.controller;this.updateTarget(n,this.targetAspect,i.bind(s),s)}}Y.define(wt,{aspected:!0});const ki=(e,t)=>`${e}.${t}`,Li={},Z={index:0,node:null};function Ni(e){e.startsWith("fast-")||M.warn(1204,{name:e})}const ps=new Proxy(document.createElement("div"),{get(e,t){Ni(t);const i=Reflect.get(e,t);return ot(i)?i.bind(e):i},set(e,t,i){return Ni(t),Reflect.set(e,t,i)}});class gs{constructor(t,i,n){this.fragment=t,this.directives=i,this.policy=n,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,i,n,s,r){var o,a;this.nodeIds.has(n)||(this.nodeIds.add(n),this.addTargetDescriptor(i,n,s)),t.id=(o=t.id)!==null&&o!==void 0?o:At(),t.targetNodeId=n,t.targetTagName=r,t.policy=(a=t.policy)!==null&&a!==void 0?a:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,i,n){const s=this.descriptors;if(i==="r"||i==="h"||s[i])return;if(!s[t]){const o=t.lastIndexOf("."),a=t.substring(0,o),c=parseInt(t.substring(o+1));this.addTargetDescriptor(a,t,c)}let r=Li[i];if(!r){const o=`_${i}`;Li[i]=r={get(){var a;return(a=this[o])!==null&&a!==void 0?a:this[o]=this[t].childNodes[n]}}}s[i]=r}createView(t){const i=this.fragment.cloneNode(!0),n=Object.create(this.proto);n.r=i,n.h=t??ps;for(const s of this.nodeIds)n[s];return new Tt(i,this.factories,n)}}function Ei(e,t,i,n,s,r=!1){const o=i.attributes,a=e.directives;for(let c=0,h=o.length;c<h;++c){const l=o[c],d=l.value,u=Ut.parse(d,a);let f=null;u===null?r&&(f=new wt($e(()=>d,e.policy)),Y.assignAspect(f,l.name)):f=Ne.aggregate(u,e.policy),f!==null&&(i.removeAttributeNode(l),c--,h--,e.addFactory(f,t,n,s,i.tagName))}}function vs(e,t,i,n,s){const r=Ut.parse(t.textContent,e.directives);if(r===null)return Z.node=t.nextSibling,Z.index=s+1,Z;let o,a=o=t;for(let c=0,h=r.length;c<h;++c){const l=r[c];c!==0&&(s++,n=ki(i,s),o=a.parentNode.insertBefore(document.createTextNode(""),a.nextSibling)),lt(l)?o.textContent=l:(o.textContent=" ",Y.assignAspect(l),e.addFactory(l,i,n,s,null)),a=o}return Z.index=s+1,Z.node=a.nextSibling,Z}function Mi(e,t,i){let n=0,s=t.firstChild;for(;s;){const r=bs(e,i,s,n);s=r.node,n=r.index}}function bs(e,t,i,n){const s=ki(t,n);switch(i.nodeType){case 1:Ei(e,t,i,s,n),Mi(e,i,s);break;case 3:return vs(e,i,t,s,n);case 8:const r=Ut.parse(i.data,e.directives);r!==null&&e.addFactory(Ne.aggregate(r),t,s,n,null);break}return Z.index=n+1,Z.node=i.nextSibling,Z}function ys(e,t){return e&&e.nodeType==8&&Ut.parse(e.data,t)!==null}const Oi="TEMPLATE",Ne={compile(e,t,i=ft.policy){let n;if(lt(e)){n=document.createElement(Oi),n.innerHTML=i.createHTML(e);const o=n.content.firstElementChild;o!==null&&o.tagName===Oi&&(n=o)}else n=e;!n.content.firstChild&&!n.content.lastChild&&n.content.appendChild(document.createComment(""));const s=document.adoptNode(n.content),r=new gs(s,t,i);return Ei(r,"",n,"h",0,!0),(ys(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Mi(r,s,"r"),Z.node=null,r.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=ft.policy){if(e.length===1)return e[0];let i,n=!1,s;const r=e.length,o=e.map(h=>lt(h)?()=>h:(i=h.sourceAspect||i,n=n||h.dataBinding.isVolatile,s=s||h.dataBinding.policy,h.dataBinding.evaluate)),a=(h,l)=>{let d="";for(let u=0;u<r;++u)d+=o[u](h,l);return d},c=new wt(qt(a,s??t,n));return Y.assignAspect(c,i),c}},ms=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ws=Object.create(null);class Bt{constructor(t,i=ws){this.html=t,this.factories=i}createHTML(t){const i=this.factories;for(const n in i)t(i[n]);return this.html}}Bt.empty=new Bt(""),Y.define(Bt);function $s(e,t,i,n=Y.getForInstance(e)){if(n.aspected){const s=ms.exec(t);s!==null&&Y.assignAspect(e,s[2])}return e.createHTML(i)}class le{constructor(t,i={},n){this.policy=n,this.result=null,this.html=t,this.factories=i}compile(){return this.result===null&&(this.result=Ne.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new Bt(lt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw M.error(1208);if(this.policy)throw M.error(1207);return this.policy=t,this}render(t,i,n){const s=this.create(n);return s.bind(t),s.appendTo(i),s}static create(t,i,n){let s="";const r=Object.create(null),o=a=>{var c;const h=(c=a.id)!==null&&c!==void 0?c:a.id=At();return r[h]=a,h};for(let a=0,c=t.length-1;a<c;++a){const h=t[a];let l=i[a],d;if(s+=h,ot(l))l=new wt(qt(l));else if(l instanceof _t)l=new wt(l);else if(!(d=Y.getForInstance(l))){const u=l;l=new wt($e(()=>u))}s+=$s(l,h,o,d)}return new le(s+t[t.length-1],r,n)}}ut(le);const at=(e,...t)=>{if(Array.isArray(e)&&Array.isArray(e.raw))return le.create(e,t);throw M.error(1206)};at.partial=e=>new Bt(e);class Ri extends xi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Y.define(Ri);const Ee=e=>new Ri(e),Ss=()=>null;function Vi(e){return e===void 0?Ss:ot(e)?e:()=>e}function Xt(e,t,i){const n=ot(e)?e:()=>e,s=Vi(t),r=Vi(i);return(o,a)=>n(o,a)?s(o,a):r(o,a)}const Pi=Object.freeze({positioning:!1,recycle:!0});function xs(e,t,i,n){e.context.parent=n.source,e.context.parentContext=n.context,e.bind(t[i])}function _s(e,t,i,n){e.context.parent=n.source,e.context.parentContext=n.context,e.context.length=t.length,e.context.index=i,e.bind(t[i])}function zi(e){return e.nodeType===Node.COMMENT_NODE}class Di extends Error{constructor(t,i){super(t),this.propertyBag=i}}class Cs{constructor(t){this.directive=t,this.items=null,this.itemsObserver=null,this.bindView=xs,this.views=[],this.itemsBindingObserver=t.dataBinding.createObserver(this,t),this.templateBindingObserver=t.templateBinding.createObserver(this,t),t.options.positioning&&(this.bindView=_s)}bind(t){this.location=t.targets[this.directive.targetNodeId],this.controller=t,this.items=this.itemsBindingObserver.bind(t),this.template=this.templateBindingObserver.bind(t),this.observeItems(!0),mt(this.template)&&mt(t)&&t.hydrationStage!==pt.hydrated?this.hydrateViews(this.template):this.refreshAllViews(),t.onUnbind(this)}unbind(){this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews()}handleChange(t,i){if(i===this.itemsBindingObserver)this.items=this.itemsBindingObserver.bind(this.controller),this.observeItems(),this.refreshAllViews();else if(i===this.templateBindingObserver)this.template=this.templateBindingObserver.bind(this.controller),this.refreshAllViews(!0);else if(i[0])i[0].reset?this.refreshAllViews():this.updateViews(i);else return}observeItems(t=!1){if(!this.items){this.items=Dt;return}const i=this.itemsObserver,n=this.itemsObserver=V.getNotifier(this.items),s=i!==n;s&&i!==null&&i.unsubscribe(this),(s||t)&&n.subscribe(this)}updateViews(t){const i=this.views,n=this.bindView,s=this.items,r=this.template,o=this.controller,a=this.directive.options.recycle,c=[];let h=0,l=0;for(let d=0,u=t.length;d<u;++d){const f=t[d],p=f.removed;let g=0,A=f.index;const m=A+f.addedCount,w=i.splice(f.index,p.length),_=l=c.length+w.length;for(;A<m;++A){const S=i[A],T=S?S.firstChild:this.location;let B;a&&l>0?(g<=_&&w.length>0?(B=w[g],g++):(B=c[h],h++),l--):B=r.create(),i.splice(A,0,B),n(B,s,A,o),B.insertBefore(T)}w[g]&&c.push(...w.slice(g))}for(let d=h,u=c.length;d<u;++d)c[d].dispose();if(this.directive.options.positioning)for(let d=0,u=i.length;d<u;++d){const f=i[d].context;f.length=u,f.index=d}}refreshAllViews(t=!1){const i=this.items,n=this.template,s=this.location,r=this.bindView,o=this.controller;let a=i.length,c=this.views,h=c.length;if((a===0||t||!this.directive.options.recycle)&&(Tt.disposeContiguousBatch(c),h=0),h===0){this.views=c=new Array(a);for(let l=0;l<a;++l){const d=n.create();r(d,i,l,o),c[l]=d,d.insertBefore(s)}}else{let l=0;for(;l<a;++l)if(l<h){const u=c[l];if(!u){const f=new XMLSerializer;throw new Di(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:l,hydrationStage:this.controller.hydrationStage,itemsLength:a,viewsState:c.map(p=>p?"hydrated":"empty"),viewTemplateString:f.serializeToString(n.create().fragment),rootNodeContent:f.serializeToString(this.location.getRootNode())})}r(u,i,l,o)}else{const u=n.create();r(u,i,l,o),c.push(u),u.insertBefore(s)}const d=c.splice(l,h-l);for(l=0,a=d.length;l<a;++l)d[l].dispose()}}unbindAllViews(){const t=this.views;for(let i=0,n=t.length;i<n;++i){const s=t[i];if(!s){const r=new XMLSerializer;throw new Di(`View is null or undefined inside "${this.location.getRootNode().host.nodeName}".`,{index:i,hydrationStage:this.controller.hydrationStage,viewsState:t.map(o=>o?"hydrated":"empty"),rootNodeContent:r.serializeToString(this.location.getRootNode())})}s.unbind()}}hydrateViews(t){if(!this.items)return;this.views=new Array(this.items.length);let i=this.location.previousSibling;for(;i!==null;){if(!zi(i)){i=i.previousSibling;continue}const n=D.parseRepeatEndMarker(i.data);if(n===null){i=i.previousSibling;continue}i.data="";const s=i.previousSibling;if(!s)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": end should never be null.`);let r=s,o=0;for(;r!==null;){if(zi(r)){if(D.isRepeatViewEndMarker(r.data))o++;else if(D.isRepeatViewStartMarker(r.data))if(o)o--;else{if(D.parseRepeatStartMarker(r.data)!==n)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": Mismatched start and end markers.`);r.data="",i=r.previousSibling,r=r.nextSibling;const a=t.hydrate(r,s);this.views[n]=a,this.bindView(a,this.items,n,this.controller);break}}r=r.previousSibling}if(!r)throw new Error(`Error when hydrating inside "${this.location.getRootNode().host.nodeName}": start should never be null.`)}}}class Ii{constructor(t,i,n){this.dataBinding=t,this.templateBinding=i,this.options=n,Jn.enable()}createHTML(t){return Te.comment(t(this))}createBehavior(){return new Cs(this)}}Y.define(Ii);function Hi(e,t,i=Pi){const n=ai(e),s=ai(t);return new Ii(n,s,Object.assign(Object.assign({},Pi),i))}const Fi="boolean",qi="reflect",ji=Object.freeze({locate:Ye()}),As={toView(e){return e?"true":"false"},fromView(e){return!(e==null||e==="false"||e===!1||e===0)}};function Wi(e){if(e==null)return null;const t=e*1;return isNaN(t)?null:t}const Me={toView(e){const t=Wi(e);return t&&t.toString()},fromView:Wi};class ce{constructor(t,i,n=i.toLowerCase(),s=qi,r){this.guards=new Set,this.Owner=t,this.name=i,this.attribute=n,this.mode=s,this.converter=r,this.fieldName=`_${i}`,this.callbackName=`${i}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Fi&&r===void 0&&(this.converter=As)}setValue(t,i){const n=t[this.fieldName],s=this.converter;s!==void 0&&(i=s.fromView(i)),n!==i&&(t[this.fieldName]=i,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](n,i),t.$fastController.notify(this.name))}getValue(t){return V.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,i){this.guards.has(t)||(this.guards.add(t),this.setValue(t,i),this.guards.delete(t))}tryReflectToAttribute(t){const i=this.mode,n=this.guards;n.has(t)||i==="fromView"||me.enqueue(()=>{n.add(t);const s=t[this.fieldName];switch(i){case qi:const r=this.converter;ft.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Fi:ft.setBooleanAttribute(t,this.attribute,s);break}n.delete(t)})}static collect(t,...i){const n=[];i.push(ji.locate(t));for(let s=0,r=i.length;s<r;++s){const o=i[s];if(o!==void 0)for(let a=0,c=o.length;a<c;++a){const h=o[a];lt(h)?n.push(new ce(t,h)):n.push(new ce(t,h.property,h.attribute,h.mode,h.converter))}}return n}}function P(e,t){let i;function n(s,r){arguments.length>1&&(i.property=r),ji.locate(s.constructor).push(i)}if(arguments.length>1){i={},n(e,t);return}return i=e===void 0?{}:e,n}const Ui={mode:"open"},Qi={},Xi=new Set,Gt=M.getById(dt.elementRegistry,()=>ye());class X{constructor(t,i=t.definition){var n;this.platformDefined=!1,lt(i)&&(i={name:i}),this.type=t,this.name=i.name,this.template=i.template,this.registry=(n=i.registry)!==null&&n!==void 0?n:customElements;const s=t.prototype,r=ce.collect(t,i.attributes),o=new Array(r.length),a={},c={};for(let h=0,l=r.length;h<l;++h){const d=r[h];o[h]=d.attribute,a[d.name]=d,c[d.attribute]=d,V.defineProperty(s,d)}Reflect.defineProperty(t,"observedAttributes",{value:o,enumerable:!0}),this.attributes=r,this.propertyLookup=a,this.attributeLookup=c,this.shadowOptions=i.shadowOptions===void 0?Ui:i.shadowOptions===null?void 0:Object.assign(Object.assign({},Ui),i.shadowOptions),this.elementOptions=i.elementOptions===void 0?Qi:Object.assign(Object.assign({},Qi),i.elementOptions),this.styles=H.normalize(i.styles),Gt.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const i=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,i,this.elementOptions)),this}static compose(t,i){return Xi.has(t)||Gt.getByType(t)?new X(class extends t{},i):new X(t,i)}static registerBaseType(t){Xi.add(t)}}X.getByType=Gt.getByType,X.getForInstance=Gt.getForInstance;class Ts extends MutationObserver{constructor(t){function i(n){this.callback.call(null,n.filter(s=>this.observedNodes.has(s.target)))}super(i),this.callback=t,this.observedNodes=new Set}observe(t,i){this.observedNodes.add(t),super.observe(t,i)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(e){const t=[],i={};let n=null,s=!1;return{source:e,context:yt.default,targets:i,get isBound(){return s},addBehaviorFactory(r,o){var a,c,h,l;const d=r;d.id=(a=d.id)!==null&&a!==void 0?a:At(),d.targetNodeId=(c=d.targetNodeId)!==null&&c!==void 0?c:At(),d.targetTagName=(h=o.tagName)!==null&&h!==void 0?h:null,d.policy=(l=d.policy)!==null&&l!==void 0?l:ft.policy,this.addTarget(d.targetNodeId,o),this.addBehavior(d.createBehavior())},addTarget(r,o){i[r]=o},addBehavior(r){t.push(r),s&&r.bind(this)},onUnbind(r){n===null&&(n=[]),n.push(r)},connectedCallback(r){s||(s=!0,t.forEach(o=>o.bind(this)))},disconnectedCallback(r){s&&(s=!1,n!==null&&n.forEach(o=>o.unbind(this)))}}}});const Bs={bubbles:!0,composed:!0,cancelable:!0},Kt="isConnected",Gi=new WeakMap;function kt(e){var t,i;return(i=(t=e.shadowRoot)!==null&&t!==void 0?t:Gi.get(e))!==null&&i!==void 0?i:null}let Ki;class $t extends ti{constructor(t,i){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=i;const n=i.shadowOptions;if(n!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(n),n.mode==="closed"&&Gi.set(t,r))}const s=V.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let o=0,a=s.length;o<a;++o){const c=s[o].name,h=t[c];h!==void 0&&(delete t[c],r[c]=h)}}}get isConnected(){return V.track(this,Kt),this.stage===1}get context(){var t,i;return(i=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&i!==void 0?i:yt.default}get isBound(){var t,i;return(i=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&i!==void 0?i:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const i=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():i.template&&(this._template=(t=i.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const i=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():i.styles&&(this._mainStyles=(t=i.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var i;(i=this.view)===null||i===void 0||i.onUnbind(t)}addBehavior(t){var i,n;const s=(i=this.behaviors)!==null&&i!==void 0?i:this.behaviors=new Map,r=(n=s.get(t))!==null&&n!==void 0?n:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,i=!1){const n=this.behaviors;if(n===null)return;const s=n.get(t);s!==void 0&&(s===1||i?(n.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):n.set(t,s-1))}addStyles(t){var i;if(!t)return;const n=this.source;if(t instanceof HTMLElement)((i=kt(n))!==null&&i!==void 0?i:this.source).append(t);else if(!t.isAttachedTo(n)){const s=t.behaviors;if(t.addStylesTo(n),s!==null)for(let r=0,o=s.length;r<o;++r)this.addBehavior(s[r])}}removeStyles(t){var i;if(!t)return;const n=this.source;if(t instanceof HTMLElement)((i=kt(n))!==null&&i!==void 0?i:n).removeChild(t);else if(t.isAttachedTo(n)){const s=t.behaviors;if(t.removeStylesFrom(n),s!==null)for(let r=0,o=s.length;r<o;++r)this.removeBehavior(s[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,V.notify(this,Kt))}bindObservables(){if(this.boundObservables!==null){const t=this.source,i=this.boundObservables,n=Object.keys(i);for(let s=0,r=n.length;s<r;++s){const o=n[s];t[o]=i[o]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const i of t.keys())i.connectedCallback&&i.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const i of t.keys())i.disconnectedCallback&&i.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,V.notify(this,Kt),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,i,n){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,n)}emit(t,i,n){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:i},Bs),n))):!1}renderTemplate(t){var i;const n=this.source,s=(i=kt(n))!==null&&i!==void 0?i:n;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(n,s,n),this.view.sourceLifetime=Ft.coupled)}static forCustomElement(t){const i=t.$fastController;if(i!==void 0)return i;const n=X.getForInstance(t);if(n===void 0)throw M.error(1401);return t.$fastController=new Ki(t,n)}static setStrategy(t){Ki=t}}ut($t),$t.setStrategy($t);function Jt(e){var t;return"adoptedStyleSheets"in e?e:(t=kt(e))!==null&&t!==void 0?t:e.getRootNode()}class he{constructor(t){const i=he.styleSheetCache;this.sheets=t.map(n=>{if(n instanceof CSSStyleSheet)return n;let s=i.get(n);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(n),i.set(n,s)),s})}addStylesTo(t){Yi(Jt(t),this.sheets)}removeStylesFrom(t){Zi(Jt(t),this.sheets)}}he.styleSheetCache=new Map;let ks=0;const Ls=()=>`fast-${++ks}`;function Ji(e){return e===document?document.body:e}class Ns{constructor(t){this.styles=t,this.styleClass=Ls()}addStylesTo(t){t=Ji(Jt(t));const i=this.styles,n=this.styleClass;for(let s=0;s<i.length;s++){const r=document.createElement("style");r.innerHTML=i[s],r.className=n,t.append(r)}}removeStylesFrom(t){t=Ji(Jt(t));const i=t.querySelectorAll(`.${this.styleClass}`);for(let n=0,s=i.length;n<s;++n)t.removeChild(i[n])}}let Yi=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Zi=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(i=>t.indexOf(i)===-1)};if(H.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Yi=(e,t)=>{e.adoptedStyleSheets.push(...t)},Zi=(e,t)=>{for(const i of t){const n=e.adoptedStyleSheets.indexOf(i);n!==-1&&e.adoptedStyleSheets.splice(n,1)}}}catch{}H.setDefaultStrategy(he)}else H.setDefaultStrategy(Ns);const tn="defer-hydration",en="needs-hydration";class bt extends $t{static hydrationObserverHandler(t){for(const i of t)bt.hydrationObserver.unobserve(i.target),i.target.$fastController.connect()}connect(){var t,i;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(en)!==null),this.source.hasAttribute(tn)){bt.hydrationObserver.observe(this.source,{attributeFilter:[tn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const n=this.source,s=(t=kt(n))!==null&&t!==void 0?t:n;if(this.template)if(mt(this.template)){let r=s.firstChild,o=s.lastChild;n.shadowRoot===null&&(D.isElementBoundaryStartMarker(r)&&(r.data="",r=r.nextSibling),D.isElementBoundaryEndMarker(o)&&(o.data="",o=o.previousSibling)),this.view=this.template.hydrate(r,o,n),(i=this.view)===null||i===void 0||i.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(en),this.needsInitialization=this.needsHydration=!1,V.notify(this,Kt)}disconnect(){super.disconnect(),bt.hydrationObserver.unobserve(this.source)}static install(){$t.setStrategy(bt)}}bt.hydrationObserver=new Ts(bt.hydrationObserverHandler);function nn(e){const t=class extends e{constructor(){super(),$t.forCustomElement(this)}$emit(i,n,s){return this.$fastController.emit(i,n,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(i,n,s){this.$fastController.onAttributeChangedCallback(i,n,s)}};return X.registerBaseType(t),t}function Es(e,t){return ot(e)?X.compose(e,t):X.compose(this,e)}function Ms(e,t){return ot(e)?X.compose(e,t).define().type:X.compose(this,e).define().type}function Os(e){return nn(e)}const sn=Object.assign(nn(HTMLElement),{from:Os,define:Ms,compose:Es});var Lt;(function(e){e.ltr="ltr",e.rtl="rtl"})(Lt||(Lt={}));const Rs=e=>e.closest("[dir]")?.dir==="rtl"?Lt.rtl:Lt.ltr,Vs=":host([hidden]){display:none}";function rn(e){return`${Vs}:host{display:${e}}`}class Ps{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:i}=this;let n=this.listenerCache.get(t);n||(n=this.constructListener(t),this.listenerCache.set(t,n)),n.bind(i)(),i.addEventListener("change",n)}disconnectedCallback(t){const i=this.listenerCache.get(t);i&&this.query.removeEventListener("change",i)}}class Mt extends Ps{constructor(t,i){super(t),this.styles=i}static with(t){return i=>new Mt(t,i)}constructListener(t){let i=!1;const n=this.styles;return function(){const{matches:r}=this;r&&!i?(t.addStyles(n),i=r):!r&&i&&(t.removeStyles(n),i=r)}}removedCallback(t){t.removeStyles(this.styles)}}const on=Mt.with(window.matchMedia("(forced-colors)"));Mt.with(window.matchMedia("(prefers-color-scheme: dark)")),Mt.with(window.matchMedia("(prefers-color-scheme: light)"));const tt="var(--colorNeutralForeground1)",Yt="var(--colorNeutralBackground1)",zs="var(--colorNeutralStrokeAccessible)",Ds="var(--colorTransparentStroke)",Is="var(--colorStrokeFocus1)",Hs="var(--colorStrokeFocus2)",Fs="var(--colorNeutralShadowAmbient)",qs="var(--colorNeutralShadowKey)",js="var(--borderRadiusMedium)",E="var(--fontFamilyBase)",an="var(--fontSizeBase100)",Oe="var(--fontSizeBase200)",Re="var(--fontSizeBase300)",Ve="var(--fontSizeBase400)",Ws="var(--fontSizeBase500)",Us="var(--fontSizeBase600)",Qs="var(--fontSizeHero700)",Xs="var(--fontSizeHero800)",Gs="var(--fontSizeHero900)",Ks="var(--fontSizeHero1000)",Zt="var(--fontWeightRegular)",et="var(--fontWeightSemibold)",Pe="var(--fontWeightBold)",ln="var(--lineHeightBase100)",ze="var(--lineHeightBase200)",De="var(--lineHeightBase300)",Ie="var(--lineHeightBase400)",Js="var(--lineHeightBase500)",Ys="var(--lineHeightBase600)",Zs="var(--lineHeightHero700)",tr="var(--lineHeightHero800)",er="var(--lineHeightHero900)",ir="var(--lineHeightHero1000)",nr="var(--shadow4)",He="var(--strokeWidthThin)",cn="var(--strokeWidthThick)",te="var(--strokeWidthThickest)",hn="var(--spacingHorizontalNone)",sr="var(--spacingHorizontalSNudge)",ht="var(--spacingHorizontalS)",dn="var(--spacingHorizontalL)",un="var(--spacingVerticalNone)",rr="var(--spacingVerticalXS)",fn="var(--spacingVerticalS)",pn="var(--spacingVerticalMNudge)",gn="var(--spacingVerticalL)",ee=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements}),vn=k.partial`
2
2
  font-family: ${E};
3
3
  font-size: ${Re};
4
4
  line-height: ${De};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fluentui/chart-web-components",
3
3
  "description": "A library of Fluent Chart Web Components",
4
- "version": "0.0.0",
4
+ "version": "0.0.1",
5
5
  "author": {
6
6
  "name": "Microsoft"
7
7
  },
@@ -98,7 +98,7 @@
98
98
  "dependencies": {
99
99
  "@microsoft/fast-web-utilities": "^6.0.0",
100
100
  "@fluentui/tokens": "^1.0.0-alpha.21",
101
- "@fluentui/web-components": "^3.0.0-beta.77",
101
+ "@fluentui/web-components": "^3.0.0-beta.78",
102
102
  "@types/d3-selection": "^3.0.0",
103
103
  "@types/d3-shape": "^3.0.0",
104
104
  "d3-selection": "^3.0.0",