vendor: 1,635 bytes, line 1
1import{d as B,s as W,y as j,ac as O,f as L,o as V,af as D,h as P,l as H,ah as Y,N as Z,K as U,aN as q,e as G,z as J}from"./Cdzmg557.js";const f=(n,t,e)=>{const i=document.createElement(n),[s,a]=Array.isArray(t)?[void 0,t]:[t,e];return s&&Object.assign(i,s),a==null||a.forEach(r=>i.appendChild(r)),i},K=(n,t)=>{var e;return t==="left"?n.offsetLeft:(((e=n.offsetParent instanceof HTMLElement?n.offsetParent:null)==null?void 0:e.offsetWidth)??0)-n.offsetWidth-n.offsetLeft},Q=n=>n.offsetWidth>0&&n.offsetHeight>0,tt=(n,t)=>{!customElements.get(n)&&customElements.define(n,t)};function et(n,t,{reverse:e=!1}={}){const i=n.length;for(let s=e?i-1:0;e?s>=0:s<i;e?s--:s++)t(n[s],s)}function it(n,t,e,i){const s=t.formatToParts(n);e&&s.unshift({type:"prefix",value:e}),i&&s.push({type:"suffix",value:i});const a=[],r=[],o=[],h=[],l={},d=p=>`${p}:${l[p]=(l[p]??-1)+1}`;let _="",v=!1,y=!1;for(const p of s){_+=p.value;const c=p.type==="minusSign"||p.type==="plusSign"?"sign":p.type;c==="integer"?(v=!0,r.push(...p.value.split("").map($=>({type:c,value:parseInt($)})))):c==="group"?r.push({type:c,value:p.value}):c==="decimal"?(y=!0,o.push({type:c,value:p.value,key:d(c)})):c==="fraction"?o.push(...p.value.split("").map($=>({type:c,value:parseInt($),key:d(c),pos:-1-l[c]}))):(v||y?h:a).push({type:c,value:p.value,key:d(c)})}const E=[];for(let p=r.length-1;p>=0;p--){const c=r[p];E.unshift(c.type==="integer"?{...c,key:d(c.type),pos:l[c.type]}:{...c,key:d(c.type)})}return{pre:a,integer:E,fraction:o,post:h,valueAsString:_,value:typeof n=="string"?parseFloat(n):n}}const st=String.raw,nt=(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0})(),at=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),R=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,b="--_number-flow-d-opacity",T="--_number-flow-d-width",x="--_number-flow-dx",A="--_number-flow-d",rt=(()=>{try{return CSS.registerProperty({name:b,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:x,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:T,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:A,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),ot="var(--number-flow-char-height, 1em)",m="var(--number-flow-mask-height, 0.25em)",S=`calc(${m} / 2)`,k="var(--number-flow-mask-width, 0.5em)",g=`calc(${k} / var(--scale-x))`,w="#000 0, transparent 71%",lt=st`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${ot} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${T}) / var(--width));transform:translateX(var(${x})) scaleX(var(--scale-x));margin:0 calc(-1 * ${k});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${g},#000 calc(100% - ${g}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${m},#000 calc(100% - ${m}),transparent 100% ),radial-gradient(at bottom right,${w}),radial-gradient(at bottom left,${w}),radial-gradient(at top left,${w}),radial-gradient(at top right,${w});-webkit-mask-size:100% calc(100% - ${m} * 2),calc(100% - ${g} * 2) 100%,${g} ${m},${g} ${m},${g} ${m},${g} ${m};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${S} ${k};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${x})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${A})}.digit__num,.number .section::after{padding:${S} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${b}))}`,ht=HTMLElement,ct=at&&nt&&rt;class u extends ht{constructor(){super(),this.created=!1,this.batched=!1;const{animated:t,...e}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,e)}get animated(){return this._animated}set animated(t){var e;this.animated!==t&&(this._animated=t,(e=this.shadowRoot)==null||e.getAnimations().forEach(i=>i.finish()))}set data(t){var e;if(t==null)return;const{pre:i,integer:s,fraction:a,post:r,value:o}=t;if(this.created){const h=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(h.value,o):this.trend,this.computedAnimated=ct&&this._animated&&(!this.respectMotionPreference||!(R!=null&&R.matches))&&Q(this),(e=this.plugins)==null||e.forEach(l=>{var d;return(d=l.onUpdate)==null?void 0:d.call(l,t,h,this)}),this.batched||this.willUpdate(),this._pre.update(i),this._num.update({integer:s,fraction:a}),this._post.update(r),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}const h=document.createElement("style");h.textContent=lt,this.shadowRoot.appendChild(h),this._pre=new N(this,i,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new dt(this,s,a),this.shadowRoot.appendChild(this._num.el),this._post=new N(this,r,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.
vendor: 4,183 bytes, line 1
1willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(e=>e.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}}u.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(n,t)=>Math.sign(t-n),respectMotionPreference:!0,plugins:void 0,digits:void 0};class dt{constructor(t,e,i,{className:s,...a}={}){this.flow=t,this._integer=new M(t,e,{justify:"right",part:"integer"}),this._fraction=new M(t,i,{justify:"left",part:"fraction"}),this._inner=f("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=f("span",{...a,part:"number",className:`number ${s??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:e}){this._integer.update(t),this._fraction.update(e)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const e=this._prevLeft-t.left,i=this.el.offsetWidth,s=this._prevWidth-i;this.el.style.setProperty("--width",String(i)),this.el.animate({[x]:[`${e}px`,"0px"],[T]:[s,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class F{constructor(t,e,{justify:i,className:s,...a},r){this.flow=t,this.children=new Map,this.onCharRemove=h=>()=>{this.children.delete(h)},this.justify=i;const o=e.map(h=>this.addChar(h).el);this.el=f("span",{...a,className:`section section--justify-${i} ${s??""}`},r?r(o):o)}addChar(t,{startDigitsAtZero:e=!1,...i}={}){const s=t.type==="integer"||t.type==="fraction"?new X(this,t.type,e?0:t.value,t.pos,{...i,onRemove:this.onCharRemove(t.key)}):new pt(this,t.type,t.value,{...i,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,s),s}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(e=>{e.el.style.top=`${e.el.offsetTop}px`,e.el.style[this.justify]=`${K(e.el,this.justify)}px`}),t.forEach(e=>{e.el.setAttribute("inert",""),e.present=!1})}addNewAndUpdateExisting(t){const e=new Map,i=new Map,s=this.justify==="left",a=s?"prepend":"append";if(et(t,r=>{let o;this.children.has(r.key)?(o=this.children.get(r.key),i.set(r,o),this.unpop(o),o.present=!0):(o=this.addChar(r,{startDigitsAtZero:!0,animateIn:!0}),e.set(r,o)),this.el[a](o.el)},{reverse:s}),this.flow.computedAnimated){const r=this.el.getBoundingClientRect();e.forEach(o=>{o.willUpdate(r)})}e.forEach((r,o)=>{r.update(o.value)}),i.forEach((r,o)=>{r.update(o.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(e=>e.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(s=>s.didUpdate(t));const e=t[this.justify],i=this._prevOffset-e;i&&this.children.size&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class M extends F{update(t){const e=new Map;this.children.forEach((i,s)=>{t.find(a=>a.key===s)||e.set(s,i),this.unpop(i)}),this.addNewAndUpdateExisting(t),e.forEach(i=>{i instanceof X&&i.update(0)}),this.pop(e)}}class N extends F{update(t){const e=new Map;this.children.forEach((i,s)=>{t.find(a=>a.key===s)||e.set(s,i)}),this.pop(e),this.addNewAndUpdateExisting(t)}}class C{constructor(t,e,{onRemove:i,animateIn:s=!1}
1={}){this.flow=t,this.el=e,this._present=!0,this._remove=()=>{var a;this.el.remove(),(a=this._onRemove)==null||a.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&s&&this.el.animate({[b]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=i}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[b]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class z extends C{constructor(t,e,i,s){super(t.flow,i,s),this.section=t,this.value=e,this.el=i}}class X extends z{constructor(t,e,i,s,a){var r,o;const h=(((o=(r=t.flow.digits)==null?void 0:r[s])==null?void 0:o.max)??9)+1,l=Array.from({length:h}).map((_,v)=>{const y=f("span",{className:"digit__num"},[document.createTextNode(String(v))]);return v!==i&&y.setAttribute("inert",""),y.style.setProperty("--n",String(v)),y}),d=f("span",{part:`digit ${e}-digit`,className:"digit"},l);d.style.setProperty("--current",String(i)),d.style.setProperty("--length",String(h)),super(t,i,d,a),this.pos=s,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=h}willUpdate(t){const e=this.el.getBoundingClientRect();this._prevValue=this.value;const i=e[this.section.justify]-t[this.section.justify],s=e.width/2;this._prevCenter=this.section.justify==="left"?i+s:i-s}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((e,i)=>i===t?e.removeAttribute("inert"):e.setAttribute("inert","")),this.value=t}didUpdate(t){const e=this.el.getBoundingClientRect(),i=e[this.section.justify]-t[this.section.justify],s=e.width/2,a=this.section.justify==="left"?i+s:i-s,r=this._prevCenter-a;r&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const o=this.getDelta();o&&(this.el.classList.add("is-spinning"),this.el.animate({[A]:[-o,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const s of this.flow.plugins){const a=(t=s.getDelta)==null?void 0:t.call(s,this.value,this._prevValue,this);if(a!=null)return a}const e=this.value-this._prevValue,i=this.flow.computedTrend||Math.sign(e);return i<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:i>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:e}}class pt extends z{constructor(t,e,i,s){const a=f("span",{className:"symbol__value",textContent:i});super(t,i,f("span",{part:`symbol ${e}`,className:"symbol"},[a]),s),this.type=e,this._children=new Map,this._onChildRemove=r=>()=>{this._children.delete(r)},this._children.set(i,new C(this.flow,a,{onRemove:this._onChildRemove(i)}))}willUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect();this._prevOffset=e[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const e=this._children.get(this.value);e&&(e.present=!1);const i=this._children.get(t);if(i)i.present=!0;else{const s=f("span",{className:"symbol__value",textContent:t});this.el.appendChild(s),this._children.set(t,new C(this.flow,s,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],i=this._prevOffset-e;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const I=Symbol(),yt=B({__name:"NumberFlowGroup",setup(n){const t=new Set;let e=!1;return Y(I,(i,s)=>{t.add(i),Z(s,async()=>{e||(e=!0,t.forEach(async a=>{var r;!a.value||!a.value.created||(a.value.willUpdate(),await U(),(r=a.value)==null||r.didUpdate())}),await U(),e=!1)}),q(()=>{t.delete(i)})}),(i,s)=>H(i.$slots,"default")}}),ut=["batched","trend","plugins","animated","transformTiming","spinTiming","opacityTiming","respectMotionPreference","data-will-change","digits","innerHTML","data"],_t=B({inheritAttrs:!1,__name:"index",props:{transformTiming:{default:()=>u.defaultProps.transformTiming},spinTiming:{default:()=>u.defaultProps.spinTiming},opacityTiming:{default:()=>u.defaultProps.opacityTiming},animated:{type:Boolean,default:()=>u.defaultProps.animated},respectMotionPreference:{type:Boolean,default:()=>u.defaultProps.respectMotionPreference},trend:{type:[Number,Function],default:()=>u.defaultProps.trend},plugins:{default:()=>u.defaultProps.plugins},digits:{default:()=>u.defaultProps.digits},locales:{},format:{},value:{},prefix:{},suffix:{},willChange:{type:Boolean,default:!1}},emits:["animationsstart","animationsfinish"],setup(n,{expose:t,emit:e}){const i=W();t({el:i});const s=e,a=j(()=>new Intl.NumberFormat(n.locales,n.format)),r=j(()=>
1it(n.value,a.value,n.prefix,n.suffix)),o=void 0,h=O(I,void 0);return h==null||h(i,r),(l,d)=>(V(),L("number-flow-vue",D({ref_key:"el",ref:i},l.$attrs,{batched:!!P(h),trend:l.trend,plugins:l.plugins,animated:l.animated,transformTiming:l.transformTiming,spinTiming:l.spinTiming,opacityTiming:l.opacityTiming,respectMotionPreference:l.respectMotionPreference,"data-will-change":l.willChange?"":void 0,digits:l.digits,innerHTML:P(o),"data-allow-mismatch":"",onAnimationsstart:d[0]||(d[0]=_=>s("animationsstart")),onAnimationsfinish:d[1]||(d[1]=_=>s("animationsfinish")),data:r.value}),null,16,ut))}});tt("number-flow-vue",u);const mt={},ft={fill:"none",viewBox:"0 0 24 24",height:"800",width:"800",xmlns:"http://www.w3.org/2000/svg"};function gt(n,t){return V(),L("svg",ft,t[0]||(t[0]=[J('<g stroke-linejoin="round" stroke-width="1.5"><path stroke="currentColor" d="m3 9.5c0-.46466 0-.69698.03843-.89018.15781-.79338.77801-1.41358 1.57139-1.57139.1932-.03843.42552-.03843.89018-.03843h6.5 6.5c.4647 0 .697 0 .8902.03843.7934.15781 1.4136.77801 1.5714 1.57139.0384.1932.0384.42552.0384.89018 0 .46466 0 .697-.0384.8902-.1578.7934-.778 1.4136-1.5714 1.5714-.1932.0384-.4255.0384-.8902.0384h-6.5-6.5c-.46466 0-.69698 0-.89018-.0384-.79338-.1578-1.41358-.778-1.57139-1.5714-.03843-.1932-.03843-.42554-.03843-.8902z"></path><path stroke="currentColor" d="m4 12v4c0 1.8856 0 2.8284.58579 3.4142.58578.5858 1.52859.5858 3.41421.5858h1 6 1c1.8856 0 2.8284 0 3.4142-.5858s.5858-1.5286.5858-3.4142v-4" stroke-linecap="round"></path><path stroke="currentColor" d="m12 7v13" stroke-linecap="round"></path><path class="theme-stroke" d="m11.3753 6.21913-1.9794-2.47426c-.74465-.93081-2.13488-1.00589-2.97777-.163-1.25993 1.25993-.37151 3.41813 1.4103 3.41813h3.17157c.403 0 .6271-.46617.3753-.78087z" stroke-linecap="round"></path><path class="theme-stroke" d="m12.6247 6.21913 1.9794-2.47426c.7447-.93081 2.1349-1.00589 2.9778-.163 1.2599 1.25993.3715 3.41813-1.4103 3.41813h-3.1716c-.403 0-.6271-.46617-.3753-.78087z" stroke-linecap="round"></path></g>',1)]))}const wt=G(mt,[["render",gt]]);export{wt as _,yt as j,_t as x};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.