PageSourceSearch

https://www.thepaperstore.com/_next/static/chunks/8481.d99e06c7248a742b.js

js thepaperstore.com collected 2026-10-02 07:05:35 UTC 328,530 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8481],{241:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-search",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},1691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(47667));t.default={pauseVideo:{acceptableStates:[i.default.ENDED,i.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[i.default.ENDED,i.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[i.default.ENDED,i.default.PLAYING,i.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},1965:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var i=n(7620);function r(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let i=e[n],s=t[n];return"function"==typeof i?`${i}`==`${s}`:r(i)&&r(s)?o(i,s):i===s})}function s(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function h(e){return Math.abs(e)}function d(e){return Math.sign(e)}function f(e){return y(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,i,r,o={passive:!0}){let s;return"addEventListener"in n?(n.addEventListener(i,r,o),s=()=>n.removeEventListener(i,r,o)):(n.addListener(r),s=()=>n.removeListener(r)),e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function w(e=0,t=0){let n=h(e-t);function i(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return i(n)?n<e?e:t:n},reachedAny:i,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function S(e){let t=e;function n(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function P(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style,r=null,o=!1;return{clear:function(){!o&&(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let s=Math.round(100*e.direction(t))/100;s!==r&&(i.transform=n(s),r=s)},toggleActive:function(e){o=!e}}}let x={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};
1function C(e,t,n){let i,r,o,s,T,E=e.ownerDocument,O=E.defaultView,A=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(y(n).forEach(i=>{let r=t[i],o=n[i],s=c(r)&&c(o);t[i]=s?e(r,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let i=n.breakpoints||{},r=y(i).filter(t=>e.matchMedia(t).matches).map(e=>i[e]).reduce((e,n)=>t(e,n),{});return t(n,r)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(O),k=(T=[],{init:function(e,t){return(T=t.filter(({options:e})=>!1!==A.optionsAtMedia(e).active)).forEach(t=>t.init(e,A)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){T=T.filter(e=>e.destroy())}}),R=b(),D=function(){let e,t={},n={init:function(t){e=t},emit:function(i){return(t[i]||[]).forEach(t=>t(e,i)),n},off:function(e,i){return t[e]=(t[e]||[]).filter(e=>e!==i),n},on:function(e,i){return t[e]=(t[e]||[]).concat([i]),n},clear:function(){t={}}};return n}(),{mergeOptions:M,optionsAtMedia:I,optionsMediaQueries:L}=A,{on:N,off:j,emit:F}=D,B=!1,U=M(x,C.globalOptions),V=M(U),z=[];function _(t,n){if(B)return;V=I(U=M(U,t)),z=n||z;let{container:c,slides:x}=V;o=(l(c)?e.querySelector(c):c)||e.children[0];let C=l(x)?o.querySelectorAll(x):x;s=[].slice.call(C||o.children),i=function t(n){let i=function(e,t,n,i,r,o,s){let c,x,{align:C,axis:T,direction:E,startIndex:O,loop:A,duration:k,dragFree:R,dragThreshold:D,inViewThreshold:M,slidesToScroll:I,skipSnaps:L,containScroll:N,watchResize:j,watchSlides:F,watchDrag:B,watchFocus:U}=o,V={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:r}=e;return{top:t,right:n+i,bottom:t+r,left:n,width:i,height:r}}},z=V.measure(t),_=n.map(V.measure),W=function(e,t){let n="rtl"===t,i="y"===e,r=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return i?t:n},direction:function(e){return e*r}}}(T,E),H=W.measureSize(z),G={measure:function(e){return e/100*H}},X=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(i,r){return l(e)?n[e](i):e(t,i,r)}}}(C,H),Y=!A&&!!N,{slideSizes:K,slideSizesWithGaps:q,startGap:$,endGap:J}=function(e,t,n,i,r,o){let{measureSize:s,startEdge:a,endEdge:l}=e,u=n[0]&&r,c=function(){if(!u)return 0;let e=n[0];return h(t[a]-e[a])}(),d=u?parseFloat(o.getComputedStyle(p(i)).getPropertyValue(`margin-${l}`)):0,f=n.map(s),g=n.map((e,t,n)=>{let i=t===m(n);return t?i?f[t]+d:n[t+1][a]-e[a]:f[t]+c}).map(h);return{slideSizes:f,slideSizesWithGaps:g,startGap:c,endGap:d}}(W,z,_,n,A||!!N,r),Z=function(e,t,n,i,r,o,s,l,u){let{startEdge:c,endEdge:d,direction:g}=e,y=a(n);return{groupSlides:function(e){return y?f(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?f(e).reduce((n,a,u)=>{let f=p(n)||0,y=a===m(e),v=r[c]-o[f][c],b=r[c]-o[a][d],w=i||0!==f?0:g(s),S=h(b-(!i&&y?g(l):0)-(v+w));return u&&S>t+2&&n.push(a),y&&n.push(e.length),n},[]).map((t,n,i)=>{let r=Math.max(i[n-1]||0);return e.slice(r,t)}):[]}}}(W,H,I,A,z,_,$,J,0),{snaps:Q,snapsAligned:ee}=function(e,t,n,i,r){let{startEdge:o,endEdge:s}=e,{groupSlides:a}=r,l=a(i).map(e=>p(e)[s]-e[0][o]).map(h).map(t.measure),u=i.map(e=>n[o]-e[o]).map(e=>-h(e)),c=a(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:c}}(W,X,z,_,Z),et=-p(Q)+p(q),{snapsContained:en,scrollContainLimit:ei}=function(e,t,n,i,r){let o=w(-t+e,0),s=n.map((e,t)=>{let{min:i,max:r}=o,s=o.constrain(e),a=t===m(n);return t?a||function(e,t){return 1>=h(e-t)}(i,s)?i:function(e,t){return 1>=h(e-t)}(r,s)?r:s:r}).map(e=>parseFloat(e.toFixed(3))),a=function(){let e=s[0],t=p(s);return w(s.lastIndexOf(e),s.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===i)return s;let{min:n,max:r}=a;return s.slice(n,r)}(),scrollContainLimit:a}}(H,et,ee,N,0),er=Y?en:ee,{limit:eo}=function(e,t,n){let i=t[0];return{limit:w(n?i-e:p(t),i)}}(et,er,A),es=function e(t,n,i){let{constrain:r}=w(0,t),o=t+1,s=a(n);function a(e){return i?h((o+e)%o):r(e)}function l(){return e(t,s,i)}let u={get:function(){return s},set:function(e){return s=a(e),u},add:function(e){return l().set(s+e)},clone:l};return u}
1(m(er),O,A),ea=es.clone(),el=f(n),eu=function(e,t,n,i){let r=b(),o=1e3/60,s=null,a=0,l=0;function u(e){if(!l)return;s||(s=e,n(),n());let r=e-s;for(s=e,a+=r;a>=o;)n(),a-=o;i(a/o),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),s=null,a=0,l=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(s=null,a=0)})},destroy:function(){c(),r.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:n,render:i}}(i,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(e.pointerDown()),t.seek()})(ex),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:i,previousLocation:r,scrollLooper:o,slideLooper:s,dragHandler:a,animation:l,eventHandler:u,scrollBounds:c,options:{loop:h}},d)=>{let f=e.settled(),p=!c.shouldConstrain(),m=h?f:f&&p,g=m&&!a.pointerDown();g&&l.stop();let y=n.get()*d+r.get()*(1-d);i.set(y),h&&(o.loop(e.direction()),s.loop()),t.to(i.get()),g&&u.emit("settle"),m||u.emit("scroll")})(ex,e)),ec=er[es.get()],eh=S(ec),ed=S(ec),ef=S(ec),ep=S(ec),em=function(e,t,n,i,r,o){let s=0,a=0,l=r,u=.68,c=e.get(),f=0;function p(e){return l=e,g}function m(e){return u=e,g}let g={direction:function(){return a},duration:function(){return l},velocity:function(){return s},seek:function(){let t=i.get()-e.get(),r=0;return l?(n.set(e),s+=t/l,s*=u,c+=s,e.add(s),r=c-f):(s=0,n.set(i),e.set(i),r=t),a=d(r),f=c,g},settled:function(){return .001>h(i.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(r)},useFriction:m,useDuration:p};return g}(eh,ef,ed,ep,k,.68),eg=function(e,t,n,i,r){let{reachedAny:o,removeOffset:s,constrain:a}=i;function l(e){return e.concat().sort((e,t)=>h(e)-h(t))[0]}function u(t,i){let r=[t,t+n,t-n];if(!e)return t;if(!i)return l(r);let o=r.filter(e=>d(e)===i);return o.length?l(o):p(r)-n}return{byDistance:function(n,i){let l=r.get()+n,{index:c,distance:d}=function(n){let i=e?s(n):a(n),{index:r}=t.map((e,t)=>({diff:u(e-i,0),index:t})).sort((e,t)=>h(e.diff)-h(t.diff))[0];return{index:r,distance:i}}(l),f=!e&&o(l);if(!i||f)return{index:c,distance:n};let p=n+u(t[c]-d,0);return{index:c,distance:p}},byIndex:function(e,n){let i=u(t[e]-r.get(),n);return{index:e,distance:i}},shortcut:u}}(A,er,et,eo,ep),ey=function(e,t,n,i,r,o,s){function a(r){let a=r.distance,l=r.index!==t.get();
1o.add(a),a&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(e,t){a(r.byDistance(e,t))},index:function(e,n){let i=t.clone().set(e);a(r.byIndex(i.get(),n))}}}(eu,es,ea,em,eg,ep,s),ev=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eo),eb=b(),ew=function(e,t,n,i){let r,o={},s=null,a=null,l=!1;return{init:function(){r=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:i}),t.forEach(e=>r.observe(e))},destroy:function(){r&&r.disconnect(),l=!0},get:function(e=!0){if(e&&s)return s;if(!e&&a)return a;let t=y(o).reduce((t,n)=>{let i=parseInt(n),{isIntersecting:r}=o[i];return(e&&r||!e&&!r)&&t.push(i),t},[]);return e&&(s=t),e||(a=t),t}}}(t,n,s,M),{slideRegistry:eS}=function(e,t,n,i,r,o){let{groupSlides:s}=r,{min:a,max:l}=i;return{slideRegistry:function(){let i=s(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?i.slice(a,l).map((e,t,n)=>{let i=t===m(n);return t?i?g(m(o)-p(n)[0]+1,p(n)[0]):e:g(p(n[0])+1)}):i}()}}(Y,N,er,ei,Z,el),eP=function(e,t,n,i,r,o,s,l){let c={passive:!0,capture:!0},h=0;function d(e){"Tab"===e.code&&(h=new Date().getTime())}return{init:function(f){l&&(o.add(document,"keydown",d,!1),t.forEach((t,d)=>{o.add(t,"focus",t=>{(u(l)||l(f,t))&&function(t){if(new Date().getTime()-h>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));a(o)&&(r.useDuration(0),i.index(o,0),s.emit("slideFocus"))}(d)},c)}))}}}(e,n,eS,ey,em,eb,s,U),ex={ownerDocument:i,ownerWindow:r,eventHandler:s,containerRect:z,slideRects:_,animation:eu,axis:W,dragHandler:function(e,t,n,i,r,o,s,a,l,c,f,p,m,g,y,S,P,x,C){let{cross:T,direction:E}=e,O=["INPUT","SELECT","TEXTAREA"],A={passive:!1},k=b(),R=b(),D=w(50,225).constrain(g.measure(20)),M={mouse:300,touch:400},I={mouse:500,touch:600},L=y?43:25,N=!1,j=0,F=0,B=!1,U=!1,V=!1,z=!1;function _(e){if(!v(e,i)&&e.touches.length>=2)return W(e);let t=o.readPoint(e),n=o.readPoint(e,T),s=h(t-j),l=h(n-F);if(!U&&!z&&(!e.cancelable||!(U=s>l)))return W(e);let u=o.pointerMove(e);s>S&&(V=!0),c.useFriction(.3).useDuration(.75),a.start(),r.add(E(u)),e.preventDefault()}function W(e){let t=f.byDistance(0,!1).index!==p.get(),n=o.pointerUp(e)*(y?I:M)[z?"mouse":"touch"],i=function(e,t){let n=p.add(-1*d(e)),i=f.byDistance(e,!y).distance;return y||h(e)<D?i:P&&t?.5*i:f.byIndex(n.get(),0).distance}(E(n),t),r=function(e,t){var n,i;if(0===e||0===t||h(e)<=h(t))return 0;let r=(n=h(e),i=h(t),h(n-i));return h(r/e)}(n,i);U=!1,B=!1,R.clear(),c.useDuration(L-10*r).useFriction(.68+r/50),l.distance(i,!y),z=!1,m.emit("pointerUp")}function H(e){V&&(e.stopPropagation(),e.preventDefault(),V=!1)}return{init:function(e){C&&k.add(t,"dragstart",e=>e.preventDefault(),A).add(t,"touchmove",()=>void 0,A).add(t,"touchend",()=>void 0).add(t,"touchstart",a).add(t,"mousedown",a).add(t,"touchcancel",W).add(t,"contextmenu",W).add(t,"click",H,!0);function a(a){(u(C)||C(e,a))&&function(e){let a=v(e,i);if((z=a,V=y&&a&&!e.buttons&&N,N=h(r.get()-s.get())>=2,!a||0===e.button)&&!function(e){let t=e.nodeName||"";return O.includes(t)}(e.target)){B=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),r.set(s);let i=z?n:t;R.add(i,"touchmove",_,A).add(i,"touchend",W).add(i,"mousemove",_,A).add(i,"mouseup",W),j=o.readPoint(e),F=o.readPoint(e,T),m.emit("pointerDown")}}(a)}},destroy:function(){k.clear(),R.clear()},pointerDown:function(){return B}}}(W,e,i,r,ep,function(e,t){let n,i;function r(e){return e.timeStamp}function o(n,i){let r=i||e.scroll,o=`client${"x"===r?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,i=e,o(e)},pointerMove:function(e){let t=o(e)-o(i),s=r(e)-r(n)>170;return i=e,s&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;
1let t=o(i)-o(n),s=r(e)-r(n),a=r(e)-r(i)>170,l=t/s;return s&&!a&&h(l)>.1?l:0},readPoint:o}}(W,r),eh,eu,ey,em,eg,es,s,G,R,D,L,0,B),eventStore:eb,percentOfView:G,index:es,indexPrevious:ea,limit:eo,location:eh,offsetLocation:ef,previousLocation:ed,options:o,resizeHandler:function(e,t,n,i,r,o,s){let a,l,c=[e].concat(i),d=[],f=!1;function p(e){return r.measureSize(s.measure(e))}return{init:function(r){o&&(l=p(e),d=i.map(p),a=new ResizeObserver(n=>{(u(o)||o(r,n))&&function(n){for(let o of n){if(f)return;let n=o.target===e,s=i.indexOf(o.target),a=n?l:d[s];if(h(p(n?e:i[s])-a)>=.5){r.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{c.forEach(e=>a.observe(e))}))},destroy:function(){f=!0,a&&a.disconnect()}}}(t,s,r,n,W,j,V),scrollBody:em,scrollBounds:function(e,t,n,i,r){let o=r.measure(10),s=r.measure(50),a=w(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(r){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=h(e[l]-t.get()),d=n.get()-t.get(),f=a.constrain(c/s);n.subtract(d*f),!r&&h(d)<o&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(eo,ef,ep,em,G),scrollLooper:function(e,t,n,i){let{reachedMin:r,reachedMax:o}=w(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&r(n.get())))return;let s=-1*t*e;i.forEach(e=>e.add(s))}}}(et,eo,ef,[eh,ef,ed,ep]),scrollProgress:ev,scrollSnapList:er.map(ev.get),scrollSnaps:er,scrollTarget:eg,scrollTo:ey,slideLooper:function(e,t,n,i,r,o,s,a,l){let u=f(r),c=f(r).reverse(),h=m(p(c,s[0]),n,!1).concat(m(p(u,t-s[0]-1),-n,!0));function d(e,t){return e.reduce((e,t)=>e-r[t],t)}function p(e,t){return e.reduce((e,n)=>d(e,t)>0?e.concat([n]):e,[])}function m(r,s,u){let c=o.map((e,n)=>({start:e-i[n]+.5+s,end:e+t-.5+s}));return r.map(t=>{let i=u?0:-n,r=u?n:0,o=c[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:S(-1),translate:P(e,l[t]),target:()=>a.get()>o?i:r}})}return{canLoop:function(){return h.every(({index:e})=>.1>=d(u.filter(t=>t!==e),t))},clear:function(){h.forEach(e=>e.translate.clear())},loop:function(){h.forEach(e=>{let{target:t,translate:n,slideLocation:i}=e,r=t();r!==i.get()&&(n.to(r),i.set(r))})},loopPoints:h}}(W,H,et,K,q,Q,er,ef,n),slideFocus:eP,slidesHandler:(x=!1,{init:function(e){F&&(c=new MutationObserver(t=>{!x&&(u(F)||F(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),s.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){c&&c.disconnect(),x=!0}}),slidesInView:ew,slideIndexes:el,slideRegistry:eS,slidesToScroll:Z,target:ep,translate:P(W,t)};return ex}(e,o,s,E,O,n,D);return n.loop&&!i.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):i}(V),L([U,...z.map(({options:e})=>e)]).forEach(e=>R.add(e,"change",W)),V.active&&(i.translate.to(i.location.get()),i.animation.init(),i.slidesInView.init(),i.slideFocus.init(Y),i.eventHandler.init(Y),i.resizeHandler.init(Y),i.slidesHandler.init(Y),i.options.loop&&i.slideLooper.loop(),o.offsetParent&&s.length&&i.dragHandler.init(Y),r=k.init(Y,z))}function W(e,t){let n=X();H(),_(M({startIndex:n},e),t),D.emit("reInit")}function H(){i.dragHandler.destroy(),i.eventStore.clear(),i.translate.clear(),i.slideLooper.clear(),i.resizeHandler.destroy(),i.slidesHandler.destroy(),i.slidesInView.destroy(),i.animation.destroy(),k.destroy(),R.clear()}function G(e,t,n){V.active&&!B&&(i.scrollBody.useBaseFriction().useDuration(!0===t?0:V.duration),i.scrollTo.index(e,n||0))}function X(){return i.index.get()}let Y={canScrollNext:function(){return i.index.add(1).get()!==X()},canScrollPrev:function(){return i.index.add(-1).get()!==X()},containerNode:function(){return o},internalEngine:function(){return i},destroy:function(){B||(B=!0,R.clear(),H(),D.emit("destroy"),D.clear())},off:j,on:N,emit:F,plugins:function(){return r},previousScrollSnap:function(){return i.indexPrevious.get()},reInit:W,rootNode:function(){return e},scrollNext:function(e){G(i.index.add(1).get(),e,-1)},scrollPrev:function(e){G(i.index.add(-1).get(),e,1)},scrollProgress:function(){return i.scrollProgress.get(i.offsetLocation.get())},scrollSnapList:function(){return i.scrollSnapList}
1,scrollTo:G,selectedScrollSnap:X,slideNodes:function(){return s},slidesInView:function(){return i.slidesInView.get()},slidesNotInView:function(){return i.slidesInView.get(!1)}};return _(t,n),setTimeout(()=>D.emit("init"),0),Y}function T(e={},t=[]){let n=(0,i.useRef)(e),r=(0,i.useRef)(t),[a,l]=(0,i.useState)(),[u,c]=(0,i.useState)(),h=(0,i.useCallback)(()=>{a&&a.reInit(n.current,r.current)},[a]);return(0,i.useEffect)(()=>{o(n.current,e)||(n.current=e,h())},[e,h]),(0,i.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=s(e),i=s(t);return n.every((e,t)=>o(e,i[t]))}(r.current,t)&&(r.current=t,h())},[t,h]),(0,i.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){C.globalOptions=T.globalOptions;let e=C(u,n.current,r.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[c,a]}C.globalOptions=void 0,T.globalOptions=void 0},2023:e=>{function t(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,n){n=n||{};var i,r,o=typeof e;if("string"===o&&e.length>0){var s=e;if(!((s=String(s)).length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===o&&!1===isNaN(e)){return n.long?t(i=e,864e5,"day")||t(i,36e5,"hour")||t(i,6e4,"minute")||t(i,1e3,"second")||i+" ms":(r=e)>=864e5?Math.round(r/864e5)+"d":r>=36e5?Math.round(r/36e5)+"h":r>=6e4?Math.round(r/6e4)+"m":r>=1e3?Math.round(r/1e3)+"s":r+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5626:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var i,r,o,s=o[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},7891:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,xc:()=>u});var i=n(7620),r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},s=!1,a=(0,i.forwardRef)(function(e,t){var n=e.style,a=o(e,["style"]),l=u();!s&&(null==n?void 0:n.height)&&(s=!0,console.warn("<Div100vh /> overrides the height property of the style prop"));var c=r(r({},n),{height:l?l+"px":"100vh"});return i.createElement("div",r({ref:t,style:c},a))});a.displayName="Div100vh";let l=a;function u(){var e,t,n,r=(0,i.useState)(c),o=r[0],s=r[1],a=(t=(e=(0,i.useState)(!1))[0],n=e[1],(0,i.useEffect)(function(){h()&&n(!0)},[]),t);return(0,i.useEffect)(function(){if(a)return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)};function e(){s(c())}},[a]),a?o:null}function c(){return h()?window.innerHeight:null}function h(){return"undefined"!=typeof window&&"undefined"!=typeof document}}
1,11538:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(97509),r=n(7620),o=n(65711),s=n.n(o),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),l(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return a?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),i.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(r.Component);u.propTypes={children:s().node.isRequired,node:s().any};var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),h=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),c(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){i.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=r.cloneElement(this.props.children)),this.portal=i.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(r.Component);h.propTypes={children:s().node.isRequired,node:s().any};let d=i.createPortal?u:h},11998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
1setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default},13941:(e,t,n)=>{"use strict";let i;n.d(t,{A:()=>a});var r=n(7620);let o=r["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function s(){}let a=function(e,t,n={}){let a,l=(a=n.polyfill,i||(i=function(e){let t=!1,n=[],i=new Map,r=new(e||window.ResizeObserver)((e,r)=>{n=n.concat(e),t||window.requestAnimationFrame(function(){let e=new Set;for(let t=0;t<n.length;t++){if(e.has(n[t].target))continue;e.add(n[t].target);let o=i.get(n[t].target);null==o||o.forEach(e=>e(n[t],r))}n=[],t=!1}),t=!0});return{observer:r,subscribe(e,t){var n;r.observe(e);let o=null!=(n=i.get(e))?n:[];o.push(t),i.set(e,o)},unsubscribe(e,t){var n;let o=null!=(n=i.get(e))?n:[];if(1===o.length){r.unobserve(e),i.delete(e);return}let s=o.indexOf(t);-1!==s&&o.splice(s,1),i.set(e,o)}}}(a))),u=(e=>{let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),t})(t);return o(()=>{let t=!1,n=e&&"current"in e?e.current:e;if(!n)return s;function i(e,n){t||u.current(e,n)}return l.subscribe(n,i),()=>{t=!0,l.unsubscribe(n,i)}},[e,l,u]),l.observer}},15716:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-fullscreen",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5M.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},16045:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});let i=(0,n(7620).createContext)(null)},17919:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-fullscreen-exit",void 0===c?"":c].filter(
1Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5m5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5M0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5m10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0z"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},24330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(34225)),r=a(n(11998)),o=a(n(35486)),s=a(n(1691));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,i.default)("youtube-player"),u={};u.proxyEvents=function(e){var t={},n=function(n){var i="on"+n.slice(0,1).toUpperCase()+n.slice(1);t[i]=function(t){l('event "%s"',i,t),e.trigger(n,t)}},i=!0,r=!1,s=void 0;try{for(var a,u=o.default[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value;n(c)}}catch(e){r=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(r)throw s}}return t},u.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={},i=function(i){t&&s.default[i]?n[i]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.then(function(e){var t=s.default[i],r=e.getPlayerState(),o=e[i].apply(e,n);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(r)?new Promise(function(n){e.addEventListener("onStateChange",function i(){var r=e.getPlayerState(),o=void 0;"number"==typeof t.timeout&&(o=setTimeout(function(){e.removeEventListener("onStateChange",i),n()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(r)&&(e.removeEventListener("onStateChange",i),clearTimeout(o),n())})}).then(function(){return o}):o})}:n[i]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.then(function(e){return e[i].apply(e,n)})}},o=!0,a=!1,l=void 0;try{for(var u,c=r.default[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var h=u.value;i(h)}}catch(e){a=!0,l=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw l}}return n},t.default=u,e.exports=t.default},26166:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var i=n(65711),r=n.n(i),o=n(7620),s=n(5626),a=n.n(s),l=n(28586),u=n.n(l),c=Object.defineProperty,h=Object.defineProperties,d=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))m.call(t,n)&&g(e,n,t[n]);return e},v=(e,t)=>h(e,d(t));function b(e={}){return v(y({},e),{height:0,width:0,playerVars:v(y({},e.playerVars),{autoplay:0,start:0,end:0})})}var w={videoId:r().string,id:r().string,className:r().string,iframeClassName:r().string,style:r().object,title:r().string,loading:r().oneOf(["lazy","eager"]),opts:r().objectOf(r().any),onReady:r().func,onError:r().func,onPlay:r().func,onPause:r().func,onEnd:r().func,onStateChange:r().func,onPlaybackRateChange:r().func,onPlaybackQualityChange:r().func},S=class extends o.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,n;return null==(n=(t=this.props).onReady)?void 0:n.call(t,e)},this.onPlayerError=e=>{var t,n;return null==(n=(t=this.props).onError)?void 0:n.call(t,e)},this.onPlayerStateChange=e=>{var t,n,i,r,o,s,a,l;switch(null==(n=(t=this.props).onStateChange)||n.call(t,e),e.data){case S.PlayerState.ENDED:null==(r=(i=this.props).onEnd)||r.call(i,e);break;case S.PlayerState.PLAYING:null==(s=(o=this.props).onPlay)||s.call(o,e);break;case S.PlayerState.PAUSED:null==(l=(a=this.props).onPause)||l.call(a,e)}},this.onPlayerPlaybackRateChange=e=>{var t,n;return null==(n=(t=this.props).onPlaybackRateChange)?void 0:n.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,n;return null==(n=(t=this.props).onPlaybackQualityChange)?void 0:n.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=v(y({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,n,i;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let r=!1,o={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(r=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(o.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(o.endSeconds=this.props.opts.playerVars.end)),r){null==(n=this.internalPlayer)||n.loadVideoById(o);return}null==(i=this.internalPlayer)||i.cueVideoById(o)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,n;return t=this,n=function*(){var t,n,i,r,o,s;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(n=e.opts)?void 0:n.width)!==(null==(i=t.opts)?void 0:i.width)||(null==(r=e.opts)?void 0:r.height)!==(null==(o=t.opts)?void 0:o.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),s=this.props,e.videoId===s.videoId&&a()(b(e.opts),b(s.opts))||(yield this.resetPlayer()),function(e,t){var n,i;if(e.videoId!==t.videoId)return!0;let r=(null==(n=e.opts)?void 0:n.playerVars)||{},o=(null==(i=t.opts)?void 0:i.playerVars)||{};return r.start!==o.start||r.end!==o.end}(e,this.props)&&this.updateVideo()},new Promise((e,i)=>{var r=e=>
1{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,o);s((n=n.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return o.createElement("div",{className:this.props.className,style:this.props.style},o.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};S.propTypes=w,S.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},S.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var P=S},28586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=a(n(36769)),o=a(n(78353)),s=a(n(24330));function a(e){return e&&e.__esModule?e:{default:e}}var l=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=(0,r.default)();if(l||(l=(0,o.default)(a)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=s.default.proxyEvents(a);var u=new Promise(function(n){(void 0===e?"undefined":i(e))==="object"&&e.playVideo instanceof Function?n(e):l.then(function(i){var r=new i.Player(e,t);return a.on("ready",function(){n(r)}),null})}),c=s.default.promisifyPlayer(u,n);return c.on=a.on,c.off=a.off,c},e.exports=t.default},34225:(e,t,n)=>{var i=n(77011);function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e}(t=e.exports=n(35522)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),e.splice(o,0,i)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},35486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default},35522:(e,t,n)=>{var i;function r(e){function n(){if(n.enabled){var e=+new Date;n.diff=e-(i||e),n.prev=i,n.curr=e,i=e;for(var r=Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var s=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,i){if("%%"===e)return e;s++;var o=t.formatters[i];if("function"==typeof o){var a=r[s];e=o.call(n,a),r.splice(s,1),s--}return e}),t.formatArgs.call(n,r),(n.log||t.log||console.log.bind(console)).apply(n,r)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,i=0;for(n in e)i=(i<<5)-i+e.charCodeAt(n)|0;return t.colors[Math.abs(i)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}
1(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){var n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(2023),t.names=[],t.skips=[],t.formatters={}},36769:e=>{"use strict";e.exports=function(){var e={},t={};return e.on=function(e,n){var i={name:e,handler:n};return t[e]=t[e]||[],t[e].unshift(i),i},e.off=function(e){var n=t[e.name].indexOf(e);-1!==n&&t[e.name].splice(n,1)},e.trigger=function(e,n){var i,r=t[e];if(r)for(i=r.length;i--;)r[i].handler(n)},e}},41574:(e,t,n)=>{"use strict";n.d(t,{$$:()=>o});var i=n(7620);n(76906);var r="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function o(e,t){let n=(0,i.useRef)(e);r(()=>{n.current=e},[e]),(0,i.useEffect)(()=>{if(null===t)return;let e=setInterval(()=>{n.current()},t);return()=>{clearInterval(e)}},[t])}},42134:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,V:()=>o});var i=n(64347);let r=i.l,o=i.l},43255:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/index.js")}({
1"./src/exception.js":function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){var t="function"==typeof Map?new Map:void 0;return(r=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return o(e,arguments,l(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),a(i,e)})(e)}function o(e,t,n){return(o=s()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&a(r,n.prototype),r}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.r(t),n.d(t,"DownloadException",function(){return u}),n.d(t,"downloadException",function(){return c});var u=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&a(r,e);var t,n=(t=s(),function(){var e,n=l(r);return e=t?Reflect.construct(n,arguments,l(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,e)});function r(e,t){var i;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return(i=n.call(this,"Downloader error: ".concat(e))).request=t,i.name="DownloadException",i}return Object.defineProperty(r,"prototype",{writable:!1}),r}(r(Error)),c=u},
vendor: 4,889 bytes, line 1
1"./src/index.js":function(e,t,n){"use strict";n.r(t);var i=n("./src/exception.js"),r=n("./src/signatures.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o,s,a,l,u=Object.create((t&&t.prototype instanceof p?t:p).prototype);return i(u,"_invoke",{value:(o=e,s=n,a=new T(r||[]),l="suspendedStart",function(e,t){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===e)throw t;return O()}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){var i=function e(t,n){var i=n.method,r=t.iterator[i];if(void 0===r)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+i+"' method")),f;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,a);if(i){if(i===f)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===l)throw l="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l="executing";var r=d(o,s,a);if("normal"===r.type){if(l=a.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(l="completed",a.method="throw",a.arg=r.arg)}})}),u}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=h;var f={};function p(){}function m(){}function g(){}var y={};c(y,a,function(){return this});var v=Object.getPrototypeOf,b=v&&v(v(E([])));b&&b!==t&&n.call(b,a)&&(y=b);var w=g.prototype=p.prototype=Object.create(y);function S(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function P(e,t){var r;i(this,"_invoke",{value:function(i,s){function a(){return new t(function(r,a){!function i(r,s,a,l){var u=d(e[r],e,s);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==o(h)&&n.call(h,"__await")?t.resolve(h.__await).then(function(e){i("next",e,a,l)},function(e){i("throw",e,a,l)}):t.resolve(h).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,l)})}l(u.arg)}(i,s,r,a)})}return r=r?r.then(a,a):a()}})}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},S(P.prototype),c(P.prototype,l,function(){return this}),e.AsyncIterator=P,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new P(h(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},S(w),c(w,u,"Generator"),c(w,a,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function a(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,r)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function s(e){a(o,i,r,s,l,"next",e)}function l(e){a(o,i,r,s,l,"throw",e)}s(void 0)})}}var u={timeout:4e4,headers:[],forceDesktopMode:!1,autoStart:!0,withCredentials:!1,method:"GET",nameCallback:function(e){return e},contentType:"application/x-www-form-urlencoded",body:null,nativeFallbackOnError:!1,contentTypeDetermination:!1};t.default=function(){var e,t,n;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(this instanceof a))throw TypeError("Cannot call a class as a function");return(this.params=Object.assign({},u,e),this.link=this.createLink(),this.request=null,this.downloadedFile=null,this.abortController=void 0,this.params.autoStart)?this.downloadFile():this}return n=[{key:"start",value:function(){return this.downloadFile()}},{key:"abort",value:function(e){this.abortController&&this.abortController.abort(e||"Download cancelled")}},{key:"downloadFile",value:function(){var e=this;return new Promise(function(t,n){e.initDownload(t,n)})}},{key:"setAbortListner",value:function(e){this.abortController&&this.abortController.signal.addEventListener("abort",e)}},{key:"unsetAbortListner",value:function(e){this.abortController&&this.abortController.signal.removeEventListener("abort",e)}},{key:"initDownload",value:function(e,t){var n=this,r=function(){n.link.target="_blank",n.link.href=n.params.url,n.clickLink()};if(!("download"in this.link)||this.isMobile())return r(),e();this.request=this.createRequest(),this.abortController="AbortController"in window?new AbortController:null;var o=function e(i){var r=i.target;n.unsetAbortListner(e),n.request&&n.request.abort(),t(r.reason)};return(this.setAbortListner(o),this.params.url)?(this.request.onload=l(s().mark(function r(){return s().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n.unsetAbortListner(o),200===parseInt(n.request.status,10)){r.next=3;break}return r.abrupt("return",t(new i.DownloadException("status code [".concat(n.request.status,"]"),n.request)));case 3:return r.next=5,n.startDownload();case 5:return r.abrupt("return",e(n));case 6:case"end":return r.stop()}},r)})),this.request.ontimeout=function(){n.unsetAbortListner(o),t(ne
1w i.DownloadException("request timeout",n.request))},this.request.onerror=function(){n.unsetAbortListner(o),n.params.nativeFallbackOnError?(r(),e(n)):t(new i.DownloadException("network error",n.request))},this.request.send(this.params.body),this):t(new i.DownloadException("url param not defined!",this.request))}},{key:"isMobile",value:function(){return!this.params.forceDesktopMode&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},{key:"createRequest",value:function(){var e=new XMLHttpRequest;return e.open(this.params.method,this.params.url,!0),!1!==this.params.contentType&&e.setRequestHeader("Content-type",this.params.contentType),this.params.headers.forEach(function(t){e.setRequestHeader(t.name,t.value)}),e.responseType="arraybuffer",this.params.process&&"function"==typeof this.params.process&&e.addEventListener("progress",this.params.process),this.params.onloadstart&&"function"==typeof this.params.onloadstart&&(e.onloadstart=this.params.onloadstart),e.timeout=this.params.timeout,e.withCredentials=!!this.params.withCredentials||!!this.params.includeCredentials,e}},{key:"getFileName",value:function(){if("string"==typeof this.params.filename)return this.params.filename;var e=this.request.getResponseHeader("Content-Disposition"),t=[];e&&(t=e.replace(/["']/g,"").match(/filename\*?=([^;]+)/));var n=t&&t.length>=1?t[1]:this.params.url.split("/").pop().split("?")[0];return this.params.nameCallback(n)}},{key:"getContentTypeFromFileSignature",value:function(e){var t=Object.assign({},r.fileSignatures,this.params.customFileSignatures);return new Promise(function(n,i){var r=new FileReader,o=e.slice(0,4);r.onloadend=function(e){if(e.target.readyState!==FileReader.DONE)return void i();var r=new Uint8Array(e.target.result),o=[];r.forEach(function(e){o.push(e.toString(16))}),n(t[o.join("").toUpperCase()])},r.onerror=i,r.readAsArrayBuffer(o)})}},{key:"getContentTypeFromResponseHeader",value:function(){return this.request.getResponseHeader("content-type")}},{key:"getContentType",value:function(e){var t,n=this;return new Promise((t=l(s().mark(function t(i){var r,o,a,l,u,c,h,d;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.params.contentTypeDetermination,o="application/octet-stream",("header"===r||"full"===r)&&(a=n.getContentTypeFromResponseHeader()),"signature"!==r&&"full"!==r){t.next=7;break}return t.next=6,n.getContentTypeFromFileSignature(new Blob([e]));case 6:l=t.sent;case 7:"header"===r?i(null!=(u=a)?u:o):"signature"===r?i(null!=(c=l)?c:o):"full"===r?i(null!=(h=null!=(d=l)?d:a)?h:o):i(o);case 8:case"end":return t.stop()}},t)})),function(e){return t.apply(this,arguments)}))}},{key:"createLink",value:function(){var e=document.createElement("a");return e.style.display="none",e}},{key:"clickLink",value:function(){var e;try{e=new MouseEvent("click")}catch(t){(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}this.link.dispatchEvent(e)}},{key:"getFile",value:(e=l(s().mark(function e(t,n){var i,r;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getContentType(t);case 2:r={type:e.sent};try{i=new File([t],n,r)}catch(e){(i=new Blob([t],r)).name=n,i.lastModifiedDate=new Date}return e.abrupt("return",i);case 6:case"end":return e.stop()}},e,this)})),function(t,n){return e.apply(this,arguments)})},{key:"startDownload",value:(t=l(s().mark(function e(){var t,n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getFileName(),e.next=3,this.getFile(this.request.response,t);case 3:if(this.downloadedFile=e.sent,!("msSaveOrOpenBlob"in window.navigator)){e.next=6;break}return e.abrupt("return",window.navigator.msSaveOrOpenBlob(this.downloadedFile,t));case 6:return n=window.URL.createObjectURL(this.downloadedFile),this.link.href=n,this.link.download=t,this.clickLink(),setTimeout(function(){(window.URL||window.webkitURL||window).revokeObjectURL(n)},4e4),e.abrupt("return",this.downloadedFile);case 12:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==o(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(i.key),i)}}(a.prototype,n),Object.defineProperty(a,"prototype",{writable:!1}),a}()},
1"./src/signatures.js":function(e,t,n){"use strict";n.r(t),n.d(t,"fileSignatures",function(){return i});var i={"89504E47":"image/png",0x1852abe:"application/pdf"}}
1}).default},43994:(e,t,n)=>{"use strict";n.d(t,{GT:()=>ed,WZ:()=>ep});var i=n(7620),r=function(e,t){return Number(e.toFixed(t))},o=function(e,t,n){n&&"function"==typeof n&&n(e,t)},s={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},a=function(e){"number"==typeof e&&cancelAnimationFrame(e)},l=function(e){e.mounted&&(a(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function u(e,t,n,i){if(e.mounted){var r=new Date().getTime();l(e),e.animation=function(){if(!e.mounted)return a(e.animation);var o=new Date().getTime()-r,l=(0,s[t])(o/n);o>=n?(i(1),e.animation=null):e.animation&&(i(l),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function c(e,t,n,i){var r,o,s,a=(r=t.scale,o=t.positionX,s=t.positionY,!(Number.isNaN(r)||Number.isNaN(o)||Number.isNaN(s)));if(e.mounted&&a){var l=e.setTransformState,c=e.transformState,h=c.scale,d=c.positionX,f=c.positionY,p=t.scale-h,m=t.positionX-d,g=t.positionY-f;0===n?l(t.scale,t.positionX,t.positionY):u(e,i,n,function(e){l(h+p*e,d+m*e,f+g*e)})}}var h=function(e,t,n,i,r,o,s){var a=e>t?n*(s?1:.5):0,l=i>r?o*(s?1:.5):0;return{minPositionX:e-t-a,maxPositionX:a,minPositionY:i-r-l,maxPositionY:l}},d=function(e,t){var n,i,r,o,s,a,l=e.wrapperComponent,u=e.contentComponent,c=e.setup.centerZoomedOut;if(!l||!u)throw Error("Components are not mounted");var d=(n=l.offsetWidth,i=l.offsetHeight,r=u.offsetWidth,o=u.offsetHeight,{wrapperWidth:n,wrapperHeight:i,newContentWidth:s=r*t,newDiffWidth:n-s,newContentHeight:a=o*t,newDiffHeight:i-a}),f=d.wrapperWidth,p=d.wrapperHeight;return h(f,d.newContentWidth,d.newDiffWidth,p,d.newContentHeight,d.newDiffHeight,!!c)},f=function(e,t,n,i){return i?e<t?r(t,2):e>n?r(n,2):r(e,2):r(e,2)},p=function(e,t){var n=d(e,t);return e.bounds=n,n};function m(e,t,n,i,r,o,s){var a=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,c=n.maxPositionY,h=0,d=0;return s&&(h=r,d=o),{x:f(e,a-h,u+h,i),y:f(t,l-d,c+d,i)}}function g(e,t,n,i,r,o){var s=e.transformState,a=s.scale,l=s.positionX,u=s.positionY,c=i-a;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:u}):m(l-t*c,u-n*c,r,o,0,0,null)}function y(e,t,n,i,r){var o=t-(r?i:0);return!Number.isNaN(n)&&e>=n?n:!Number.isNaN(t)&&e<=o?o:e}var v=function(e,t){var n=e.setup.panning.excluded,i=e.isInitialized,r=e.wrapperComponent,o=t.target,s=null==r?void 0:r.contains(o);return!(!(i&&o&&s)||W(o,n))},b=function(e){var t=e.isInitialized,n=e.isPanning,i=e.setup.panning.disabled;return!!(t&&n&&!i)},w=function(e,t){var n=e.transformState,i=n.positionX,r=n.positionY;e.isPanning=!0,e.startCoords={x:t.clientX-i,y:t.clientY-r}},S=function(e,t){var n=t.touches,i=e.transformState,r=i.positionX,o=i.positionY;e.isPanning=!0,1===n.length&&(e.startCoords={x:n[0].clientX-r,y:n[0].clientY-o})},P=function(e,t,n){var i=e.startCoords,r=e.transformState,o=e.setup.panning,s=o.lockAxisX,a=o.lockAxisY,l=r.positionX,u=r.positionY;if(!i)return{x:l,y:u};var c=t-i.x,h=n-i.y;return{x:s?l:c,y:a?u:h}},x=function(e,t){var n=e.setup,i=e.transformState.scale,r=n.minScale,o=n.disablePadding;return t>0&&i>=r&&!o?t:0},C=function(e){var t=e.mounted,n=e.setup,i=n.disabled,r=n.velocityAnimation,o=e.transformState.scale;return!!(!r.disabled||o>1||!i||t)},T=function(e){var t=e.mounted,n=e.velocity,i=e.bounds,r=e.setup,o=r.disabled,s=r.velocityAnimation,a=e.transformState.scale;return!!(!s.disabled||a>1||!o||t)&&!!n&&!!i};function E(e,t,n,i,r,o,s,a,l,u){if(r){if(t>s&&n>s){var c=s+(e-s)*u;return c>l?l:c<s?s:c}if(t<o&&n<o){var c=o+(e-o)*u;return c<a?a:c>o?o:c}}return i?t:f(e,o,s,r)}function O(e,t){var n=e.transformState.scale;l(e),p(e,n),void 0!==window.TouchEvent&&t instanceof TouchEvent?S(e,t):w(e,t)}function A(e){var t=e.transformState.scale,n=e.setup,i=n.minScale,r=n.alignmentAnimation,o=r.disabled,s=r.sizeX,a=r.sizeY,l=r.animationTime,u=r.animationType;if(!(o||t<i||!s&&!a)){var h=function(e){var t=e.transformState,n=t.positionX,i=t.positionY,r=t.scale,o=e.setup,s=o.disabled,a=o.limitToBounds,l=o.centerZoomedOut,u=e.wrapperComponent;if(!s&&u&&e.bounds){var c=e.bounds,h=c.maxPositionX,d=c.minPositionX,f=c.maxPositionY,p=c.minPositionY,m=n>h?u.offsetWidth:e.setup.minPositionX||0,y=i>
1f?u.offsetHeight:e.setup.minPositionY||0,v=g(e,m,y,r,e.bounds,a||l),b=v.x,w=v.y;return{scale:r,positionX:n>h||n<d?b:n,positionY:i>f||i<p?w:i}}}(e);h&&c(e,h,l,u)}}function k(e,t,n){var i=e.startCoords,r=e.setup.alignmentAnimation,o=r.sizeX,s=r.sizeY;if(i){var a=P(e,t,n),l=a.x,u=a.y,c=x(e,o),h=x(e,s);!function(e,t){if(C(e)){var n=e.lastMousePosition,i=e.velocityTime,r=e.setup,o=e.wrapperComponent,s=r.velocityAnimation.equalToMove,a=Date.now();if(n&&i&&o){var l=s?Math.min(1,o.offsetWidth/window.innerWidth):1,u=t.x-n.x,c=t.y-n.y,h=Math.sqrt(u*u+c*c)/(a-i);e.velocity={velocityX:u/l,velocityY:c/l,total:h}}e.lastMousePosition=t,e.velocityTime=a}}(e,{x:l,y:u}),function(e,t,n,i,r){var o=e.setup.limitToBounds,s=e.wrapperComponent,a=e.bounds,l=e.transformState,u=l.scale,c=l.positionX,h=l.positionY;if(null!==s&&null!==a&&(t!==c||n!==h)){var d=m(t,n,a,o,i,r,s),f=d.x,p=d.y;e.setTransformState(u,f,p)}}(e,l,u,c,h)}}function R(e,t,n,i){var o=e.setup,s=o.minScale,a=o.maxScale,l=o.limitToBounds,u=y(r(t,2),s,a,0,!1),c=p(e,u),h=g(e,n,i,u,c,l);return{scale:u,positionX:h.x,positionY:h.y}}function D(e,t,n){var i=e.transformState.scale,r=e.wrapperComponent,o=e.setup,s=o.minScale,a=o.limitToBounds,l=o.zoomAnimation,u=l.disabled,h=l.animationTime,d=l.animationType,f=u||i>=s;if((i>=1||a)&&A(e),!f&&r&&e.mounted){var p=R(e,s,t||r.offsetWidth/2,n||r.offsetHeight/2);p&&c(e,p,h,d)}}var M=function(){return(M=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function I(e,t,n){if(n||2==arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var L={scale:1,positionX:0,positionY:0},N={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},j=function(e){var t,n,i,r;return{previousScale:null!=(t=e.initialScale)?t:L.scale,scale:null!=(n=e.initialScale)?n:L.scale,positionX:null!=(i=e.initialPositionX)?i:L.positionX,positionY:null!=(r=e.initialPositionY)?r:L.positionY}},F=function(e){var t=M({},N);return Object.keys(e).forEach(function(n){var i=void 0!==e[n];if(void 0!==N[n]&&i){var r=Object.prototype.toString.call(N[n]);"[object Object]"===r?t[n]=M(M({},N[n]),e[n]):"[object Array]"===r?t[n]=I(I([],N[n],!0),e[n],!0):t[n]=e[n]}}),t},B=function(e,t,n){var i=e.transformState.scale,o=e.wrapperComponent,s=e.setup,a=s.maxScale,l=s.minScale,u=s.zoomAnimation.size;if(!o)throw Error("Wrapper is not mounted");return y(r(i*Math.exp(t*n),3),l,a,u,!1)};function U(e,t,n,i,r){var o=e.wrapperComponent,s=e.transformState,a=s.scale,l=s.positionX,u=s.positionY;if(!o)return console.error("No WrapperComponent found");var h=o.offsetWidth,d=o.offsetHeight,f=B(e,t,n),p=R(e,f,(h/2-l)/a,(d/2-u)/a);if(!p)return console.error("Error during zoom event. New transformation state was not calculated.");c(e,p,i,r)}function V(e,t,n,i){var r=e.setup,o=e.wrapperComponent,s=r.limitToBounds,a=j(e.props),l=e.transformState,u=l.scale,h=l.positionX,f=l.positionY;if(o){var p=d(e,a.scale),g=m(a.positionX,a.positionY,p,s,0,0,o),y={scale:a.scale,positionX:g.x,positionY:g.y};(u!==a.scale||h!==a.positionX||f!==a.positionY)&&(null==i||i(),c(e,y,t,n))}}var z=function(e){return{instance:e,state:e.transformState,zoomIn:function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),U(e,1,t,n,i)},zoomOut:function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),U(e,-1,t,n,i)},setTransform:function(t,n,i,r,o){void 0===r&&(r=300),void 0===o&&(o="easeOut");var s=e.transformState,a=s.positionX,l=s.positionY,u=s.scale,h=e.wrapperComponent,d=e.contentComponent;!e.setup.disabled&&h&&d&&c(e,{positionX:Number.isNaN(t)?a:t,positionY:Number.isNaN(n)?l:n,scale:Number.isNaN(i)?u:i},r,o)},resetTransform:function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),V(e,t,n)},centerView:function(t,n,i){void 0===n&&(n=200),void 0===i&&(i="easeOut");var r=e.transformState,o=e.wrapperComponent,s=e.contentComponent;o&&s&&c(e,G(t||r.scale,o,s),n,i)},zoomToElement:function(t,n,i,r){void 0===i&&(i=600),void 0===r&&(r="easeOut"),l(e);var o=e.wrapperComponent,s="string"==typeof t?document.getElementById(t):t;if(o&&s&&o.contains(s)){var a=function(e,t,n){var i,r,o,s,a,l=e.wrapperComponent,u=e.contentComponent,c=e.transformState,h=e.setup,f=h.limitToBounds,p=h.minScale,g=h.maxScale;if(!l||!u)return c;var v=l.getBoundingClientRect(),b=t.getBoundingClientRect(),w=(i=t.getBoundingClientRect(),r=l.getBoundingClientRect(),o=u.getBoundingClientRect(),s=r.x*c.scale,a=r.y*c.scale,{x:(i.x-o.x+s)/c.scale,y:(i.y-o.y+a)/c.scale}),S=w.x,P=w.y,x=b.width/c.scale,C=b.height/c.scale,T=l.offsetWidth/x,E=l.offsetHeight/C,O=y(n||Math.min(T,E),p,g,0,!1),A=(v.width-x*O)/2,k=(v.height-C*O)/2,R=m((v.left-S)*O+A,(v.top-P)*O+k,d(e,O),f,0,0,l);return{positionX:R.x,positionY:R.y,scale:O}}(e,s,n);c(e,a,i,r)}}}};
1function _(){try{return{get passive(){return!1}}}catch(e){return!1}}var W=function(e,t){var n=e.tagName.toUpperCase();return!!(t.find(function(e){return e.toUpperCase()===n})||t.find(function(t){return e.classList.contains(t)}))},H=function(e){e&&clearTimeout(e)},G=function(e,t,n){var i=n.offsetWidth*e,r=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-i)/2,positionY:(t.offsetHeight-r)/2}},X=function(e,t){var n=e.setup.wheel,i=n.disabled,r=n.wheelDisabled,o=n.touchPadDisabled,s=n.excluded,a=e.isInitialized,l=e.isPanning,u=t.target;return!(!(a&&!l&&!i&&u)||r&&!t.ctrlKey||o&&t.ctrlKey||W(u,s))};function Y(e,t,n){var i=t.getBoundingClientRect(),r=0,o=0;if("clientX"in e)r=(e.clientX-i.left)/n,o=(e.clientY-i.top)/n;else{var s=e.touches[0];r=(s.clientX-i.left)/n,o=(s.clientY-i.top)/n}return(Number.isNaN(r)||Number.isNaN(o))&&console.error("No mouse or touch offset found"),{x:r,y:o}}var K=function(e,t,n,i,o){var s=e.transformState.scale,a=e.wrapperComponent,l=e.setup,u=l.maxScale,c=l.minScale,h=l.zoomAnimation,d=l.disablePadding,f=h.size,p=h.disabled;if(!a)throw Error("Wrapper is not mounted");var m=s+t*(s-s*n)*n;return o?m:y(r(m,3),c,u,f,!i&&!p&&!d)},q=function(e,t){var n=e.previousWheelEvent,i=e.transformState.scale,r=e.setup,o=r.maxScale,s=r.minScale;return!!n&&(!!(i<o)||!!(i>s)||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||!!(n.deltaY>0)&&!!(n.deltaY<t.deltaY)||!!(n.deltaY<0)&&!!(n.deltaY>t.deltaY)||Math.sign(n.deltaY)!==Math.sign(t.deltaY))},$=function(e,t){var n=e.setup.pinch,i=n.disabled,r=n.excluded,o=e.isInitialized,s=t.target;return!(!(o&&!i&&s)||W(s,r))},J=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,i=e.pinchStartDistance;return!!(n&&!t&&i)},Z=function(e,t,n){var i=n.getBoundingClientRect(),o=e.touches,s=r(o[0].clientX-i.left,5),a=r(o[0].clientY-i.top,5);return{x:(s+r(o[1].clientX-i.left,5))/2/t,y:(a+r(o[1].clientY-i.top,5))/2/t}},Q=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},ee=function(e,t){var n=e.pinchStartScale,i=e.pinchStartDistance,o=e.setup,s=o.maxScale,a=o.minScale,l=o.zoomAnimation,u=o.disablePadding,c=l.size,h=l.disabled;if(!n||null===i||!t)throw Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:y(r(t/i*n,2),a,s,c,!h&&!u)},et=function(e,t){var n=e.props,i=n.onWheelStart,r=n.onZoomStart;e.wheelStopEventTimer||(l(e),o(z(e),t,i),o(z(e),t,r))},en=function(e,t){var n,i=e.props,r=i.onWheel,s=i.onZoom,a=e.contentComponent,l=e.setup,u=e.transformState.scale,c=l.limitToBounds,h=l.centerZoomedOut,d=l.zoomAnimation,f=l.wheel,m=l.disablePadding,y=d.size,v=d.disabled,b=f.step;if(!a)throw Error("Component not mounted");t.preventDefault(),t.stopPropagation();var w=K(e,(n=t?t.deltaY<0?1:-1:0,n),b,!t.ctrlKey);if(u!==w){var S=p(e,w),P=Y(t,a,u),x=g(e,P.x,P.y,w,S,c&&(v||0===y||h||m)),C=x.x,T=x.y;e.previousWheelEvent=t,e.setTransformState(w,C,T),o(z(e),t,r),o(z(e),t,s)}},ei=function(e,t){var n=e.props,i=n.onWheelStop,r=n.onZoomStop;H(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout(function(){e.mounted&&(D(e,t.x,t.y),e.wheelAnimationTimer=null)},100),q(e,t)&&(H(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout(function(){e.mounted&&(e.wheelStopEventTimer=null,o(z(e),t,i),o(z(e),t,r))},160))},er=function(e,t){var n=Q(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1,l(e)},eo=function(e,t){var n=e.contentComponent,i=e.pinchStartDistance,r=e.transformState.scale,o=e.setup,s=o.limitToBounds,a=o.centerZoomedOut,l=o.zoomAnimation,u=l.disabled,c=l.size;if(null!==i&&n){var h=Z(t,r,n);if(Number.isFinite(h.x)&&Number.isFinite(h.y)){var d=Q(t),f=ee(e,d);if(f!==r){var m=p(e,f),y=g(e,h.x,h.y,f,m,s&&(u||0===c||a)),v=y.x,b=y.y;e.pinchMidpoint=h,e.lastDistance=d,e.setTransformState(f,v,b)}}}},es=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,D(e,null==t?void 0:t.x,null==t?void 0:t.y)},ea=function(e,t){var n=e.props.onZoomStop,i=e.setup.doubleClick.animationTime;H(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout(function(){e.doubleClickStopEventTimer=null,o(z(e),t,n)},i)},el=function(e,t){var n=e.props,i=n.onZoomStart,r=n.onZoom,s=e.setup.doubleClick,a=s.animationTime,l=s.animationType;o(z(e),t,i),V(e,a,l,function(){return o(z(e),t,r)}),ea(e,t)},eu=function(e,t){var n=e.isInitialized,i=e.setup,r=e.wrapperComponent,o=i.doubleClick,s=o.disabled,a=o.excluded,l=t.target,u=null==r?void 0:r.contains(l);return!(!(n&&l&&u&&!s)||W(l,a))},ec=function(e){var t=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){p(t,t.transformState.scale),t.setup=F(e)},this.initializeWindowEvents=function(){var e,n=_(),i=null==(e=t.wrapperComponent)?void 0:e.ownerDocument,r=null==i?void 0:i.defaultView;null==r||r.addEventListener("mousedown",t.onPanningStart,n),null==r||r.addEventListener("mousemove",t.onPanning,n),null==r||r.addEventListener("mouseup",t.onPanningStop,n),null==i||i.addEventListener("mouseleave",t.clearPanning,n),null==r||r.addEventListener("keyup",t.setKeyUnPressed,n),null==r||r.addEventListener("keydown",t.setKeyPressed,n)},this.cleanupWindowEvents=function(){var e,n,i=_(),r=null==(e=t.wrapperComponent)?void 0:e.ownerDocument,o=null==r?void 0:r.defaultView;null==o||o.removeEventListener("mousedown",t.onPanningStart,i),null==o||o.removeEventListener("mousemove",t.onPanning,i),null==o||o.removeEventListener("mouseup",t.onPanningStop,i),null==r||r.removeEventListener("mouseleave",t.clearPanning,i),null==o||o.removeEventListener("keyup",t.setKeyUnPressed,i),null==o||o.removeEventListener("keydown",t.setKeyPressed,i),document.removeEventListener("mouseleave",t.clearPanning,i),l(t),null==(n=t.observer)||n.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=_();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e){var n=t.setup.centerOnInit;t.applyTransformation(),n&&(t.setCenter(),t.observer=new ResizeObserver(function(){var e;t.setCenter(),null==(e=t.observer)||e.disconnect()}),t.observer.observe(e))},this.onWheelZoom=function(e){!t.setup.disabled&&X(t,e)&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(et(t,e),en(t,e),ei(t,e))},this.onPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;!n&&v(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),l(t),O(t,e),o(z(t),e,i))},this.onPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;!n&&b(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),k(t,e.clientX,e.clientY),o(z(t),e,i))},this.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(!function(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,i=e.wrapperComponent,r=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var o=null==i?void 0:i.getBoundingClientRect(),a=null==r?void 0:r.getBoundingClientRect(),l=(null==o?void 0:o.width)||0,c=(null==o?void 0:o.height)||0,h=(null==a?void 0:a.width)||0,d=(null==a?void 0:a.height)||0;!t&&n&&(null==n?void 0:n.total)>.1&&(l<h||c<d)?function(e){var t=e.velocity,n=e.bounds,i=e.setup,r=e.wrapperComponent;if(T(e)&&t&&n&&r){var o,a,l,c,h=t.velocityX,d=t.velocityY,f=t.total,p=n.maxPositionX,m=n.minPositionX,g=n.maxPositionY,y=n.minPositionY,v=i.limitToBounds,b=i.alignmentAnimation,w=i.zoomAnimation,S=i.panning,P=S.lockAxisY,C=S.lockAxisX,O=w.animationType,A=b.sizeX,k=b.sizeY,R=b.velocityAlignmentTime,D=Math.max((a=(o=e.setup.velocityAnimation).equalToMove,l=o.animationTime,c=o.sensitivity,a?l*f*c:l),R),M=x(e,A),I=x(e,k),L=M*r.offsetWidth/100,N=I*r.offsetHeight/100,j=p+L,F=m-L,B=g+N,U=y-N,V=e.transformState,z=new Date().getTime();u(e,O,D,function(t){var n=e.transformState,i=n.scale,r=n.positionX,o=n.positionY,a=new Date().getTime()-z,l=1-(0,s[b.animationType])(Math.min(1,a/R)),u=1-t,c=r+h*u,f=o+d*u,w=E(c,V.positionX,r,C,v,m,p,F,j,l),S=E(f,V.positionY,o,P,v,y,g,U,B,l);(r!==c||o!==f)&&e.setTransformState(i,w,S)})}}(e):A(e)}}(t),o(z(t),e,n))},this.onPinchStart=function(e){var n=t.setup.disabled,i=t.props,r=i.onPinchingStart,s=i.onZoomStart;!n&&$(t,e)&&(er(t,e),l(t),o(z(t),e,r),o(z(t),e,s))},this.onPinch=function(e){var n=t.setup.disabled,i=t.props,r=i.onPinching,s=i.onZoom;!n&&J(t)&&(e.preventDefault(),e.stopPropagation(),eo(t,e),o(z(t),e,r),o(z(t),e,s))},this.onPinchStop=function(e){var n=t.props,i=n.onPinchingStop,r=n.onZoomStop;t.pinchStartScale&&(es(t),o(z(t),e,i),o(z(t),e,r))},this.onTouchPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;if(!n&&v(t,e))if(t.lastTouch&&new Date-t.lastTouch<200&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,l(t);var r=e.touches,s=1===r.length,a=2===r.length;
1s&&(l(t),O(t,e),o(z(t),e,i)),a&&t.onPinchStart(e)}},this.onTouchPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n||!b(t))return;e.preventDefault(),e.stopPropagation();var r=e.touches[0];k(t,r.clientX,r.clientY),o(z(t),e,i)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){!t.setup.disabled&&eu(t,e)&&function(e,t){var n=e.setup,i=e.doubleClickStopEventTimer,r=e.transformState,s=e.contentComponent,a=r.scale,l=e.props,u=l.onZoomStart,h=l.onZoom,d=n.doubleClick,f=d.disabled,p=d.mode,m=d.step,g=d.animationTime,y=d.animationType;if(!f&&!i){if("reset"===p)return el(e,t);if(!s)return console.error("No ContentComponent found");var v=B(e,"zoomOut"===p?-1:1,m);if(a!==v){o(z(e),t,u);var b=Y(t,s,a),w=R(e,v,b.x,b.y);if(!w)return console.error("Error during zoom event. New transformation state was not calculated.");o(z(e),t,h),c(e,w,g,y),ea(e,t)}}}(t,e)},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return!e.length||!!e.find(function(e){return t.pressedKeys[e]})},this.setTransformState=function(e,n,i){var r=t.props.onTransformed;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(i))console.error("Detected NaN set state values");else{e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=i;var s=z(t);t.onChangeCallbacks.forEach(function(e){return e(s)}),o(s,{scale:e,positionX:n,positionY:i},r),t.applyTransformation()}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=G(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,i){return t.props.customTransform?t.props.customTransform(e,n,i):"translate(".concat(e,"px, ").concat(n,"px) scale(").concat(i,")")},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,i=e.positionX,r=e.positionY,o=t.handleTransformStyles(i,r,n);t.contentComponent.style.transform=o}},this.getContext=function(){return z(t)},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,p(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(n),t.initializeWindowEvents(),t.isInitialized=!0,o(z(t),void 0,t.props.onInit)},this.props=e,this.setup=F(this.props),this.transformState=j(this.props)},eh=i.createContext(null),ed=i.forwardRef(function(e,t){var n,r,o=(0,i.useState)(0)[1],s=e.children,a=(0,i.useRef)(new ec(e)).current,l=(n=e.children,r=z(a),"function"==typeof n?n(r):n),u=(0,i.useCallback)(function(){"function"==typeof s&&o(function(e){return e+1})},[s]);return(0,i.useImperativeHandle)(t,function(){return z(a)},[a]),(0,i.useEffect)(function(){a.update(e)},[a,e]),(0,i.useEffect)(function(){return a.onChange(u)},[a,e,u]),i.createElement(eh.Provider,{value:a},l)}),ef={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__7HFJe {\n  position: relative;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  overflow: hidden;\n  -webkit-touch-callout: none; /* iOS Safari */\n  -webkit-user-select: none; /* Safari */\n  -khtml-user-select: none; /* Konqueror HTML */\n  -moz-user-select: none; /* Firefox */\n  -ms-user-select: none; /* Internet Explorer/Edge */\n  user-select: none;\n  margin: 0;\n  padding: 0;\n}\n.transform-component-module_content__uCDPE {\n  display: flex;\n  flex-wrap: wrap;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  margin: 0;\n  padding: 0;\n  transform-origin: 0% 0%;\n}\n.transform-component-module_content__uCDPE img {\n  pointer-events: none;\n}\n");var ep=function(e){var t=e.children,n=e.wrapperClass,r=e.contentClass,o=e.wrapperStyle,s=e.contentStyle,a=e.wrapperProps,l=e.contentProps,u=(0,i.useContext)(eh).init,c=(0,i.useRef)(null),h=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e=c.current,t=h.current;null!==e&&null!==t&&u&&u(e,t)},[]),i.createElement("div",M({},void 0===a?{}:a,{ref:c,className:"react-transform-wrapper ".concat(ef.wrapper," ").concat(void 0===n?"":n),style:o}),i.createElement("div",M({},void 0===l?{}:l,{ref:h,className:"react-transform-component ".concat(ef.content," ").concat(void 0===r?"":r),style:s}),t))};i.forwardRef(function(e,t){var n,r=(0,i.useRef)(null),o=(0,i.useContext)(eh);return(0,i.useEffect)(function(){return o.onChange(function(e){r.current&&(r.current.style.transform=o.handleTransformStyles(0,0,1/e.state.scale))})},[o]),i.createElement("div",M({}
1,e,{ref:(n=[r,t],function(e){n.forEach(function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)})})}))})},47239:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-zoom-out",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{fillRule:"evenodd",d:"M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0"}),i.createElement("path",{d:"M10.344 11.742q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1 6.5 6.5 0 0 1-1.398 1.4z"}),i.createElement("path",{fillRule:"evenodd",d:"M3 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},47667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},50358:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-pause-circle-fill",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M6.25 5C5.56 5 5 5.56 5 6.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C7.5 5.56 6.94 5 6.25 5m3.5 0c-.69 0-1.25.56-1.25 1.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C11 5.56 10.44 5 9.75 5"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},50932:(e,t,n)=>{var i;!function(){"use strict";var r=!!("undefined"!=typeof window&&window.document&&window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!!(window.addEventListener||window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(i=(function(){return o}).call(t,n,t,e))||(e.exports=i)}()},51599:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-x-lg",void 0===c?"":c].filter(
1Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},59630:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-zoom-in",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{fillRule:"evenodd",d:"M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0"}),i.createElement("path",{d:"M10.344 11.742q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1 6.5 6.5 0 0 1-1.398 1.4z"}),i.createElement("path",{fillRule:"evenodd",d:"M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},60396:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,n,i){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof n&&(i=n,n={}),i=i||function(){},o.type=(n=n||{}).type||"text/javascript",o.charset=n.charset||"utf8",o.async=!("async"in n)||!!n.async,o.src=e,n.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,n.attrs),n.text&&(o.text=""+n.text),("onload"in o?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(o,i),o.onload||t(o,i),r.appendChild(o)}},60853:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});let i=(0,n(7620).createContext)({})},62582:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(7620);let r=n(82732).B?i.useLayoutEffect:i.useEffect},64347:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});let i=e=>e},65605:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(7620);function r(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},65876:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});let i=(0,n(7620).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},68793:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-gri
1d-fill",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},71985:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-arrow-clockwise",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{fillRule:"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"}),i.createElement("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},74372:(e,t,n)=>{"use strict";let i;n.d(t,{D1:()=>ta});var r,o,s,a={};function l(e,t){return function(){return e.apply(t,arguments)}}n.r(a),n.d(a,{hasBrowserEnv:()=>ef,hasStandardBrowserEnv:()=>em,hasStandardBrowserWebWorkerEnv:()=>eg,navigator:()=>ep,origin:()=>ey});var u=n(77011);let{toString:c}=Object.prototype,{getPrototypeOf:h}=Object,{iterator:d,toStringTag:f}=Symbol,p=(e=>t=>{let n=c.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),m=e=>(e=e.toLowerCase(),t=>p(t)===e),g=e=>t=>typeof t===e,{isArray:y}=Array,v=g("undefined");function b(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let w=m("ArrayBuffer"),S=g("string"),P=g("function"),x=g("number"),C=e=>null!==e&&"object"==typeof e,T=e=>{if("object"!==p(e))return!1;let t=h(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(f in e)&&!(d in e)},E=m("Date"),O=m("File"),A=m("Blob"),k=m("FileList"),R=m("URLSearchParams"),[D,M,I,L]=["ReadableStream","Request","Response","Headers"].map(m);function N(e,t,{allOwnKeys:n=!1}={}){let i,r;if(null!=e)if("object"!=typeof e&&(e=[e]),y(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{let r;if(b(e))return;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;for(i=0;i<s;i++)r=o[i],t.call(null,e[r],r,e)}}function j(e,t){let n;if(b(e))return null;t=t.toLowerCase();let i=Object.keys(e),r=i.length;for(;r-- >0;)if(t===(n=i[r]).toLowerCase())return n;return null}let F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B=e=>!v(e)&&e!==F,U=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&h(Uint8Array)),V=m("HTMLFormElement"),z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_=m("RegExp"),W=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};N(n,(n,r)=>{let o;!1!==(o=t(n,r,e))&&(i[r]=o||n)}),Object.defineProperties(e,i)},H=m("AsyncFunction"),G=(r="function"==typeof setImmediate,o=P(F.postMessage),r?setImmediate:o?((e,t)=>
1(F.addEventListener("message",({source:n,data:i})=>{n===F&&i===e&&t.length&&t.shift()()},!1),n=>{t.push(n),F.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):void 0!==u&&u.nextTick||G,Y={isArray:y,isArrayBuffer:w,isBuffer:b,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||P(e.append)&&("formdata"===(t=p(e))||"object"===t&&P(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&w(e.buffer)},isString:S,isNumber:x,isBoolean:e=>!0===e||!1===e,isObject:C,isPlainObject:T,isEmptyObject:e=>{if(!C(e)||b(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:D,isRequest:M,isResponse:I,isHeaders:L,isUndefined:v,isDate:E,isFile:O,isBlob:A,isRegExp:_,isFunction:P,isStream:e=>C(e)&&P(e.pipe),isURLSearchParams:R,isTypedArray:U,isFileList:k,forEach:N,merge:function e(){let{caseless:t}=B(this)&&this||{},n={},i=(i,r)=>{let o=t&&j(n,r)||r;T(n[o])&&T(i)?n[o]=e(n[o],i):T(i)?n[o]=e({},i):y(i)?n[o]=i.slice():n[o]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&N(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(N(t,(t,i)=>{n&&P(t)?e[i]=l(t,n):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,o,s,a={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s=r[o],(!i||i(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==n&&h(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:p,kindOfTest:m,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(y(e))return e;let t=e.length;if(!x(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[d]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:V,hasOwnProperty:z,hasOwnProp:z,reduceDescriptors:W,freezeMethods:e=>{W(e,(t,n)=>{if(P(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(P(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(y(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:j,global:F,isContextDefined:B,isSpecCompliantForm:function(e){return!!(e&&P(e.append)&&"FormData"===e[f]&&e[d])},toJSONObject:e=>{let t=Array(10),n=(e,i)=>{if(C(e)){if(t.indexOf(e)>=0)return;if(b(e))return e;if(!("toJSON"in e)){t[i]=e;let r=y(e)?[]:{};return N(e,(e,t)=>{let o=n(e,i+1);v(o)||(r[t]=o)}),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(C(e)||P(e))&&P(e.then)&&P(e.catch),setImmediate:G,asap:X,isIterable:e=>null!=e&&P(e[d])};function K(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}Y.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});let q=K.prototype,$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
1RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$[e]={value:e}}),Object.defineProperties(K,$),Object.defineProperty(q,"isAxiosError",{value:!0}),K.from=(e,t,n,i,r,o)=>{let s=Object.create(q);return Y.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),K.call(s,e.message,t,n,i,r),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var J=n(60996).Buffer;function Z(e){return Y.isPlainObject(e)||Y.isArray(e)}function Q(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function ee(e,t,n){return e?e.concat(t).map(function(e,t){return e=Q(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let et=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)}),en=function(e,t,n){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,r=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(r))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!a&&Y.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):J.from(e):e}function u(e,n,r){let a=e;if(e&&!r&&"object"==typeof e)if(Y.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(Y.isArray(e)&&(u=e,Y.isArray(u)&&!u.some(Z))||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(a=Y.toArray(e)))return n=Q(n),a.forEach(function(e,i){Y.isUndefined(e)||null===e||t.append(!0===s?ee([n],i,o):null===s?n:n+"[]",l(e))}),!1}return!!Z(e)||(t.append(ee(r,n,o),l(e)),!1)}let c=[],h=Object.assign(et,{defaultVisitor:u,convertValue:l,isVisitable:Z});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(n,i){if(!Y.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+i.join("."));c.push(n),Y.forEach(n,function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&r.call(t,n,Y.isString(o)?o.trim():o,i,h))&&e(n,i?i.concat(o):[o])}),c.pop()}}(e),t};function ei(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function er(e,t){this._pairs=[],e&&en(e,this,t)}let eo=er.prototype;function es(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ea(e,t,n){let i;if(!t)return e;let r=n&&n.encode||es;Y.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(i=o?o(t,n):Y.isURLSearchParams(t)?t.toString():new er(t,n).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}eo.append=function(e,t){this._pairs.push([e,t])},eo.toString=function(e){let t=e?function(t){return e.call(this,t,ei)}:ei;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class el{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}let eu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ec="undefined"!=typeof URLSearchParams?URLSearchParams:er,eh="undefined"!=typeof FormData?FormData:null,ed="undefined"!=typeof Blob?Blob:null,ef="undefined"!=typeof window&&"undefined"!=typeof document,ep="object"==typeof navigator&&navigator||void 0,em=ef&&(!ep||0>["ReactNative","NativeScript","NS"].indexOf(ep.product)),eg="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ey=ef&&window.location.href||"http://localhost",ev={...a,isBrowser:!0,classes:{URLSearchParams:ec,FormData:eh,Blob:ed},protocols:["http","https","file","blob","url","data"]},eb=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,n)=>{!function e(t,n,i,r){let o=t[r++];if("__proto__"===o)return!0;let s=Number.isFinite(+o),a=r>=t.length;return(o=!o&&Y.isArray(i)?i.length:o,a)?Y.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n:(i[o]&&Y.isObject(i[o])||(i[o]=[]),e(t,n,i[o],r)&&Y.isArray(i[o])&&(i[o]=function(e){let t,n,i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(i[o]))),!s}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null},ew={transitional:eu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",r=i.indexOf("application/json")>-1,o=Y.isObject(e);
1if(o&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return r?JSON.stringify(eb(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1){var s,a;return(s=e,a=this.formSerializer,en(s,new ev.classes.URLSearchParams,{visitor:function(e,t,n,i){return ev.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...a})).toString()}if((n=Y.isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return en(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||r){t.setContentType("application/json",!1);var l=e;if(Y.isString(l))try{return(0,JSON.parse)(l),Y.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||ew.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||i)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&i){if("SyntaxError"===e.name)throw K.from(e,K.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ev.classes.FormData,Blob:ev.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ew.headers[e]={}});let eS=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eP=Symbol("internals");function ex(e){return e&&String(e).trim().toLowerCase()}function eC(e){return!1===e||null==e?e:Y.isArray(e)?e.map(eC):String(e)}function eT(e,t,n,i,r){if(Y.isFunction(i))return i.call(this,t,n);if(r&&(t=n),Y.isString(t)){if(Y.isString(i))return -1!==t.indexOf(i);if(Y.isRegExp(i))return i.test(t)}}class eE{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function r(e,t,n){let r=ex(t);if(!r)throw Error("header name must be a non-empty string");let o=Y.findKey(i,r);o&&void 0!==i[o]&&!0!==n&&(void 0!==n||!1===i[o])||(i[o||t]=eC(e))}let o=(e,t)=>Y.forEach(e,(e,n)=>r(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let i;if(Y.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim())))o((e=>{let t,n,i,r={};return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!t||r[t]&&eS[t]||("set-cookie"===t?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)}),r})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let n={},i,r;for(let t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[r=t[0]]=(i=n[r])?Y.isArray(i)?[...i,t[1]]:[i,t[1]]:t[1]}o(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=ex(e)){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ex(e)){let n=Y.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eT(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function r(e){if(e=ex(e)){let r=Y.findKey(n,e);r&&(!t||eT(n,n[r],r,t))&&(delete n[r],i=!0)}}return Y.isArray(e)?e.forEach(r):r(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let r=t[n];(!e||eT(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){let t=this,n={};return Y.forEach(this,(i,r)=>{let o=Y.findKey(n,r);if(o){t[o]=eC(i),delete t[r];return}let s=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();s!==r&&delete t[r],t[s]=eC(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eP]=this[eP]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=ex(e);if(!t[i]){let r=Y.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{value:function(n,i,r){return this[t].call(this,e,n,i,r)},configurable:!0})}),t[i]=!0}}return Y.isArray(e)?e.forEach(i):i(e),this}}function eO(e,t){let n=this||ew,i=t||n,r=eE.from(i.headers),o=i.data;return Y.forEach(e,function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function eA(e){return!!(e&&e.__CANCEL__)}function ek(e,t,n){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,n),this.name="CanceledError"}function eR(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(eE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(eE),Y.inherits(ek,K,{__CANCEL__:!0});let eD=function(e,t){let n,i=Array(e=e||10),r=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=r[s];n||(n=l),i[o]=a,r[o]=l;let c=s,h=0;for(;c!==o;)h+=i[c++],c%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),l-n<t)return;let d=u&&l-u;return d?Math.round(1e3*h/d):void 0}},eM=function(e,t){let n,i,r=0,o=1e3/t,s=(t,o=Date.now())=>{r=o,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-r;a>=o?s(e,t):(n=e,i||(i=setTimeout(()=>{i=null,s(n)},o-a)))},()=>n&&s(n)]},eI=(e,t,n=3)=>{let i=0,r=eD(50,250);return eM(n=>{let o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-i,l=r(a);i=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},eL=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},eN=e=>(...t)=>Y.asap(()=>e(...t)),ej=ev.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ev.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ev.origin),ev.navigator&&/(msie|trident)/i.test(ev.navigator.userAgent)):()=>!0,eF=ev.hasStandardBrowserEnv?{write(e,t,n,i,r,o){let s=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Y.isString(i)&&s.push("path="+i),Y.isString(r)&&s.push("domain="+r),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eB(e,t,n){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eU=e=>e instanceof eE?{...e}:e;
1function eV(e,t){t=t||{};let n={};function i(e,t,n,i){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:i},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function r(e,t,n,r){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:i(void 0,e,n,r):i(e,t,n,r)}function o(e,t){if(!Y.isUndefined(t))return i(void 0,t)}function s(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>r(eU(e),eU(t),n,!0)};return Y.forEach(Object.keys({...e,...t}),function(i){let o=l[i]||r,s=o(e[i],t[i],i);Y.isUndefined(s)&&o!==a||(n[i]=s)}),n}let ez=e=>{let t,n=eV({},e),{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=n;if(n.headers=a=eE.from(a),n.url=ea(eB(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(i)){if(ev.hasStandardBrowserEnv||ev.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(t=a.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...n].join("; "))}}if(ev.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(n)),r||!1!==r&&ej(n.url))){let e=o&&s&&eF.read(s);e&&a.set(o,e)}return n},e_="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let i,r,o,s,a,l=ez(e),u=l.data,c=eE.from(l.headers).normalize(),{responseType:h,onUploadProgress:d,onDownloadProgress:f}=l;function p(){s&&s(),a&&a(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;let i=eE.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eR(function(e){t(e),p()},function(e){n(e),p()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",i=l.transitional||eu;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new K(t,i.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),"setRequestHeader"in m&&Y.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),h&&"json"!==h&&(m.responseType=l.responseType),f&&([o,a]=eI(f,!0),m.addEventListener("progress",o)),d&&m.upload&&([r,s]=eI(d),m.upload.addEventListener("progress",r),m.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(i=t=>{m&&(n(!t||t.type?new ek(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));let y=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(y&&-1===ev.protocols.indexOf(y))return void n(new K("Unsupported protocol "+y+":",K.ERR_BAD_REQUEST,e));m.send(u||null)})},eW=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let r=0;for(;r<i;)n=r+t,yield e.slice(r,n),r=n},eH=async function*(e,t){for await(let n of eG(e))yield*eW(n,t)},eG=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eX=(e,t,n,i)=>{let r,o=eH(e,t),s=0,a=e=>{!r&&(r=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await o.next();if(t){a(),e.close();return}let r=i.byteLength;if(n){let e=s+=r;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},eY="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eK=eY&&"function"==typeof ReadableStream,eq=eY&&("function"==typeof TextEncoder?(i=new TextEncoder,e=>i.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e$=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eJ=eK&&e$(()=>
1{let e=!1,t=new Request(ev.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eZ=eK&&e$(()=>Y.isReadableStream(new Response("").body)),eQ={stream:eZ&&(e=>e.body)};eY&&(s=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eQ[e]||(eQ[e]=Y.isFunction(s[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})}));let e0=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new Request(ev.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await eq(e)).byteLength:void 0},e1=async(e,t)=>{let n=Y.toFiniteNumber(e.getContentLength());return null==n?e0(t):n},e5={http:null,xhr:e_,fetch:eY&&(async e=>{let t,n,{url:i,method:r,data:o,signal:s,cancelToken:a,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:h,headers:d,withCredentials:f="same-origin",fetchOptions:p}=ez(e);h=h?(h+"").toLowerCase():"text";let m=((e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController,r=function(e){if(!n){n=!0,s();let t=e instanceof Error?e:this.reason;i.abort(t instanceof K?t:new ek(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,r(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));let{signal:a}=i;return a.unsubscribe=()=>Y.asap(s),a}})([s,a&&a.toAbortSignal()],l),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(c&&eJ&&"get"!==r&&"head"!==r&&0!==(n=await e1(d,o))){let e,t=new Request(i,{method:"POST",body:o,duplex:"half"});if(Y.isFormData(o)&&(e=t.headers.get("content-type"))&&d.setContentType(e),t.body){let[e,i]=eL(n,eI(eN(c)));o=eX(t.body,65536,e,i)}}Y.isString(f)||(f=f?"include":"omit");let s="credentials"in Request.prototype;t=new Request(i,{...p,signal:m,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:s?f:void 0});let a=await fetch(t,p),l=eZ&&("stream"===h||"response"===h);if(eZ&&(u||l&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});let t=Y.toFiniteNumber(a.headers.get("content-length")),[n,i]=u&&eL(t,eI(eN(u),!0))||[];a=new Response(eX(a.body,65536,n,()=>{i&&i(),g&&g()}),e)}h=h||"text";let y=await eQ[Y.findKey(eQ,h)||"text"](a,e);return!l&&g&&g(),await new Promise((n,i)=>{eR(n,i,{data:y,headers:eE.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,t),{cause:n.cause||n});throw K.from(n,n&&n.code,e,t)}})};Y.forEach(e5,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e2=e=>`- ${e}`,e3=e=>Y.isFunction(e)||null===e||!1===e,e4={getAdapter:e=>{let t,n,{length:i}=e=Y.isArray(e)?e:[e],r={};for(let o=0;o<i;o++){let i;if(n=t=e[o],!e3(t)&&void 0===(n=e5[(i=String(t)).toLowerCase()]))throw new K(`Unknown adapter '${i}'`);if(n)break;r[i||"#"+o]=n}if(!n){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new K("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(e2).join("\n"):" "+e2(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function e8(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ek(null,e)}function e6(e){return e8(e),e.headers=eE.from(e.headers),e.data=eO.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e4.getAdapter(e.adapter||ew.adapter)(e).then(function(t){return e8(e),t.data=eO.call(e,e.transformResponse,t),t.headers=eE.from(t.headers),t}
1,function(t){return!eA(t)&&(e8(e),t&&t.response&&(t.response.data=eO.call(e,e.transformResponse,t.response),t.response.headers=eE.from(t.response.headers))),Promise.reject(t)})}let e7="1.11.0",e9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e9[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let te={};e9.transitional=function(e,t,n){function i(e,t){return"[Axios v"+e7+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new K(i(r," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!te[r]&&(te[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e9.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let tt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),r=i.length;for(;r-- >0;){let o=i[r],s=t[o];if(s){let t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new K("option "+o+" must be "+n,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}},validators:e9},tn=tt.validators;class ti{constructor(e){this.defaults=e||{},this.interceptors={request:new el,response:new el}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:o,headers:s}=t=eV(this.defaults,t);void 0!==r&&tt.assertOptions(r,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean)},!1),null!=o&&(Y.isFunction(o)?t.paramsSerializer={serialize:o}:tt.assertOptions(o,{encode:tn.function,serialize:tn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tt.assertOptions(t,{baseUrl:tn.spelling("baseURL"),withXsrfToken:tn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&Y.merge(s.common,s[t.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=eE.concat(a,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let h=0;if(!u){let e=[e6.bind(this),void 0];for(e.unshift(...l),e.push(...c),i=e.length,n=Promise.resolve(t);h<i;)n=n.then(e[h++],e[h++]);return n}i=l.length;let d=t;for(h=0;h<i;){let e=l[h++],t=l[h++];try{d=e(d)}catch(e){t.call(this,e);break}}try{n=e6.call(this,d)}catch(e){return Promise.reject(e)}for(h=0,i=c.length;h<i;)n=n.then(c[h++],c[h++]);return n}getUri(e){return ea(eB((e=eV(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){ti.prototype[e]=function(t,n){return this.request(eV(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(eV(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ti.prototype[e]=t(),ti.prototype[e+"Form"]=t(!0)});class tr{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,r){n.reason||(n.reason=new ek(e,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tr(function(t){e=t}),cancel:e}}}let to={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(to).forEach(([e,t])=>{to[t]=e});let ts=function e(t){let n=new ti(t),i=l(ti.prototype.request,n);return Y.extend(i,ti.prototype,n,{allOwnKeys:!0}),Y.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(eV(t,n))},i}(ew);ts.Axios=ti,ts.CanceledError=ek,ts.CancelToken=tr,ts.isCancel=eA,ts.VERSION=e7,ts.toFormData=en,ts.AxiosError=K,ts.Cancel=ts.CanceledError,ts.all=function(e){return Promise.all(e)},ts.spread=function(e){return function(t){return e.apply(null,t)}},ts.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},ts.mergeConfig=eV,ts.AxiosHeaders=eE,ts.formToJSON=e=>eb(Y.isHTMLForm(e)?new FormData(e):e),ts.getAdapter=e4.getAdapter,ts.HttpStatusCode=to,ts.default=ts;var ta=(e,t)=>{ts.post("https://lightboxjs-server.herokuapp.com/license",{license_key:e,plan_type:t}).then(function(e){e.data.license_valid}).catch(function(e){})}},75352:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>P});var i=n(7620),r=n(65711),o=n.n(r),s=n(50932),a="keydown",l="keypress",u="keyup",c={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function d(e,t){return Array.isArray(e)?e.includes(t):e===t}function f(e,t){var n=t.keyCode,i=t.keyValue,r=t.code;if(null!=i&&d(i,p(e)))return!0;if(null!=r&&d(r,e.code))return!0;return!!(null!=n&&d(n,e.keyCode||e.which))||!1}function p(e){var t=e.key,n=e.keyCode,i=e.type;if(t){var r=c[t]||t;if("Unidentified"!==r)return r}if(i===l){var o=function(e){var t=e.charCode,n=e.keyCode;if("charCode"in e){if(0===t&&13===n)return 13}else t=n;return t>=32||13===t?t:0}(e);return 13===o?"Enter":String.fromCharCode(o)}return i===a||i===u?h[String(n)]||"Unidentified":""}var m=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},v=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e},w=function(e){function t(e){m(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKey=function(e){var t=n.props,i=t.keyValue,r=t.keyCode,o=t.code,s=t.onKeyHandle;if(s){var a=e.target;!(a instanceof window.HTMLElement&&function(e){if(!e)return!1;var t,n=e.tagName,i="function"==typeof(t=e).getAttribute&&!!t.getAttribute("contenteditable");return"INPUT"===n||"TEXTAREA"===n||i}(a))&&f(e,{keyValue:i,keyCode:r,code:o})&&s(e)}},e.keyCode&&console.warn("Warning: Deprecated propType: `keyCode` is deprecated 
1in favour of `code` for `KeyHandler`."),e.keyValue||e.keyCode||e.code||console.error("Warning: Failed propType: Missing prop `code`, `keyValue` or `keyCode` for `KeyHandler`."),n}return v(t,e),g(t,[{key:"shouldComponentUpdate",value:function(){return!1}}]),g(t,[{key:"componentDidMount",value:function(){s.canUseDOM&&window.document.addEventListener(this.props.keyEventName,this.handleKey)}},{key:"componentWillUnmount",value:function(){s.canUseDOM&&window.document.removeEventListener(this.props.keyEventName,this.handleKey)}},{key:"render",value:function(){return null}}]),t}(i.Component);function S(e){return function(t){var n=t||{},r=n.keyValue,o=n.keyCode,s=n.code,a=n.keyEventName;return function(t){function n(){m(this,n);for(var t,i,r,o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];return i=r=b(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(s))),r.state={keyCode:null,keyValue:null,code:null},r.handleKey=function(t){if(e&&e(t,r.state))return void r.setState({keyValue:null,keyCode:null});r.setState({keyValue:p(t),keyCode:t.keyCode})},b(r,i)}return v(n,i.Component),g(n,[{key:"render",value:function(){return i.createElement(i.Fragment,null,i.createElement(w,{keyValue:r,keyCode:o,code:s,keyEventName:a,onKeyHandle:this.handleKey}),i.createElement(t,y({},this.props,this.state)))}}]),n}}}w.propTypes={keyValue:o().oneOfType([o().string,o().arrayOf(o().string)]),keyCode:o().oneOfType([o().number,o().arrayOf(o().number)]),code:o().oneOfType([o().string,o().arrayOf(o().string)]),keyEventName:o().oneOf([a,l,u]),onKeyHandle:o().func},w.defaultProps={keyEventName:u},S(),S(f);let P=w},75388:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});let i={skipAnimations:!1,useManualTiming:!1}},76232:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-play-circle-fill",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814z"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},76906:(e,t,n)=>{var i=0/0,r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,h=u||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return h.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return i;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var u=s.test(e);return u||a.test(e)?l(e.slice(2),u?2:8):o.test(e)?i:+e}e.exports=function(e,t,n){var i,r,o,s,a,l,u=0,c=!1,h=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=i,o=r;return i=r=void 0,u=t,s=e.apply(o,n)}function b(e){var n=e-l,i=e-u;return void 0===l||n>=t||n<0||h&&i>=o}function w(){var e,n,i,r=m();if(b(r))return S(r);a=setTimeout(w,(e=r-l,n=r-u,i=t-e,h?p(i,o-n):i))}function S(e){return(a=void 0,d&&i)?v(e):(i=r=void 0,s)}function P(){var e,n=m(),o=b(n);if(i=arguments,r=this,l=n,o){if(void 0===a)return u=e=l,a=setTimeout(w,t),c?v(e):s;if(h)return a=setTimeout(w,t),v(l)}return void 0===a&&(a=setTimeout(w,t)),s}return t=y(t)||0,g(n)&&(c=!!n.leading,o=(h="maxWait"in n)?f(y(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),P.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=r=a=void 0},P.flush=function(){return void 0===a?s:S(m())},P}}
1,78353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(60396));t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var n="http:"===window.location.protocol?"http:":"https:";(0,i.default)(n+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){r&&r(),t(window.YT)}})},e.exports=t.default},78500:(e,t,n)=>{"use strict";let i;function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{P:()=>r8});let o=e=>Array.isArray(e);function s(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function u(e,t,n,i){if("function"==typeof t){let[r,o]=l(i);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,o]=l(i);t=t(void 0!==n?n:e.custom,r,o)}return t}function c(e,t,n){let i=e.getProps();return u(i,t,void 0!==n?n:i.custom,e)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h],f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(f),m=e=>1e3*e,g={type:"spring",stiffness:500,damping:25,restSpeed:10},y={type:"keyframes",duration:.8},v={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function b(e,t){return e?e[t]||e.default||e:void 0}var w,S,P=n(75388);let x={current:!1},C=e=>null!==e;function T(e,{repeat:t,repeatType:n="loop"},i){let r=e.filter(C),o=t&&"loop"!==n&&t%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}var E=n(64347);let O=["read","resolveKeyframes","update","preRender","render","postRender"];function A(e,t){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=O.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,i=!1,r=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,r=!1,s=!1)=>{let a=s&&i?t:n;return r&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,i){r=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(a),i=!1,r&&(r=!1,l.process(e))}};return l}(o),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=s,f=()=>{let o=P.W.useManualTiming?r.timestamp:performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),h.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(f))};return{schedule:O.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,i=!0,r.isProcessing||e(f)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<O.length;t++)s[O[t]].cancel(e)},state:r,steps:s}}let{schedule:k,cancel:R,state:D,steps:M}=A("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:E.l,!0),I=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function L(e,t,n,i){return e===t&&n===i?E.l:r=>0===r||1===r?r:I(function(e,t,n,i,r){let o,s,a=0;do(o=I(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s}(r,0,1,e,n),t,i)}let N=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j=e=>t=>1-e(1-t),F=L(.33,1.53,.69,.99),B=j(F),U=N(B),V=e=>(e*=2)<1?.5*B(e):.5*(2-Math.pow(2,-10*(e-1))),z=e=>1-Math.sin(Math.acos(e)),_=j(z),W=N(z),H=e=>/^0[^.\s]+$/u.test(e);var G=n(42134);let X=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y=e=>t=>"string"==typeof t&&t.startsWith(e),K=Y("--"),q=Y("var(--"),$=e=>!!q(e)&&J.test(e.split("/*")[0].trim()),J=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Z=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,Q=(e,t,n)=>n>t?t:n<e?e:n,ee={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},et={...ee,transform:e=>Q(0,1,e)},en={...ee,default:1},ei=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}
1),er=ei("deg"),eo=ei("%"),es=ei("px"),ea=ei("vh"),el=ei("vw"),eu={...eo,parse:e=>eo.parse(e)/100,transform:e=>eo.transform(100*e)},ec=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eh=e=>e===ee||e===es,ed=(e,t)=>parseFloat(e.split(", ")[t]),ef=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/u);if(r)return ed(r[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?ed(t[1],e):0}},ep=new Set(["x","y","z"]),em=f.filter(e=>!ep.has(e)),eg={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ef(4,13),y:ef(5,14)};eg.translateX=eg.x,eg.translateY=eg.y;let ey=e=>t=>t.test(e),ev=[ee,es,eo,er,el,ea,{test:e=>"auto"===e,parse:e=>e}],eb=e=>ev.find(ey(e)),ew=new Set,eS=!1,eP=!1;function ex(){if(eP){let e=Array.from(ew).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return em.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var i;null==(i=e.getValue(t))||i.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eP=!1,eS=!1,ew.forEach(e=>e.complete()),ew.clear()}function eC(){ew.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eP=!0)})}class eT{constructor(e,t,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ew.add(this),eS||(eS=!0,k.read(eC),k.resolveKeyframes(ex))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){let r=null==i?void 0:i.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===r&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ew.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ew.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eE=e=>Math.round(1e5*e)/1e5,eO=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ek=(e,t)=>n=>!!("string"==typeof n&&eA.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eR=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,a]=i.match(eO);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eD={...ee,transform:e=>Math.round(Q(0,255,e))},eM={test:ek("rgb","red"),parse:eR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+eD.transform(e)+", "+eD.transform(t)+", "+eD.transform(n)+", "+eE(et.transform(i))+")"},eI={test:ek("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:eM.transform},eL={test:ek("hsl","hue"),parse:eR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+eo.transform(eE(t))+", "+eo.transform(eE(n))+", "+eE(et.transform(i))+")"},eN={test:e=>eM.test(e)||eI.test(e)||eL.test(e),parse:e=>eM.test(e)?eM.parse(e):eL.test(e)?eL.parse(e):eI.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eM.transform(e):eL.transform(e)},ej=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eF="number",eB="color",eU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eV(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=t.replace(eU,e=>(eN.test(e)?(i.color.push(o),r.push(eB),n.push(eN.parse(e))):e.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(e)):(i.number.push(o),r.push(eF),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function ez(e){return eV(e).values}function e_(e){let{split:t,types:n}=eV(e),i=t.length;return e=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],void 0!==e[o]){let t=n[o];t===eF?r+=eE(e[o]):t===eB?r+=eN.transform(e[o]):r+=e[o]}return r}}let eW=e=>"number"==typeof e?0:e,eH={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eO))?void 0:t.length)||0)+((null==(n=e.match(ej))?void 0:n.length)||0)>0},parse:ez,createTransformer:e_,getAnimatableNone:function(e){let t=ez(e);return e_(e)(t.map(eW))}},eG=new Set(["brightness","contrast","saturate","opacity"]);function eX(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(eO)||[];if(!i)return e;let r=n.replace(i,""),o=+!!eG.has(t);return i!==n&&(o*=100),t+"("+o+r+")"}let eY=/\b([a-z-]*)\(.*?\)/gu,eK={...eH,getAnimatableNone:e=>{let t=e.match(eY);return t?t.map(eX).join(" "):e}},eq={...ee,transform:Math.round},e$={borderWidth:es,borderTopWidth:es,borderRightWidth:es,borderBottomWidth:es,borderLeftWidth:es,borderRadius:es,radius:es,borderTopLeftRadius:es,borderTopRightRadius:es,borderBottomRightRadius:es,borderBottomLeftRadius:es,width:es,maxWidth:es,height:es,maxHeight:es,top:es,right:es,bottom:es,left:es,padding:es,paddingTop:es,paddingRight:es,paddingBottom:es,paddingLeft:es,margin:es,marginTop:es,marginRight:es,marginBottom:es,marginLeft:es,backgroundPositionX:es,backgroundPositionY:es,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:en,scaleX:en,scaleY:en,scaleZ:en,skew:er,skewX:er,skewY:er,distance:es,translateX:es,translateY:es,translateZ:es,x:es,y:es,z:es,perspective:es,transformPerspective:es,opacity:et,originX:eu,originY:eu,originZ:es,zIndex:eq,size:es,fillOpacity:et,strokeOpacity:et,numOctaves:eq},eJ={...e$,color:eN,backgroundColor:eN,outlineColor:eN,fill:eN,stroke:eN,borderColor:eN,borderTopColor:eN,borderRightColor:eN,borderBottomColor:eN,borderLeftColor:eN,filter:eK,WebkitFilter:eK},eZ=e=>eJ[e];function eQ(e,t){let n=eZ(e);return n!==eK&&(n=eH),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
1let e0=new Set(["auto","none","0"]);class e1 extends eT{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&$(i=i.trim())){let r=function e(t,n,i=1){(0,G.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,o]=function(e){let t=Z.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${null!=n?n:i}`,r]}(t);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let e=s.trim();return X(e)?parseFloat(e):e}return $(o)?e(o,n,i+1):o}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!ec.has(n)||2!==e.length)return;let[i,r]=e,o=eb(i),s=eb(r);if(o!==s)if(eh(o)&&eh(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||H(i))&&n.push(t)}n.length&&function(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!e0.has(t)&&eV(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=eQ(n,i)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eg[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);let o=i.length-1,s=i[o];i[o]=eg[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}function e5(e){return"function"==typeof e}function e2(){i=void 0}let e3={now:()=>(void 0===i&&e3.set(D.isProcessing||P.W.useManualTiming?D.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(e2)}},e4=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eH.test(e)||"0"===e)&&!e.startsWith("url("));class e8{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=e3.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(eC(),ex()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=e3.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:r,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=e4(r,t),a=e4(o,t);return(0,G.$)(s===a,`You are trying to animate ${t} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e5(n))&&i)}(e,n,i,r))if(x.current||!o){null==a||a(T(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function e6(e,t,n){var i,r;let o=Math.max(t-5,0);return i=n-e(o),(r=t-o)?1e3/r*i:0}function e7(e,t){return e*Math.sqrt(1-t*t)}let e9=["duration","bounce"],te=["stiffness","damping","mass"];function tt(e,t){return t.some(t=>void 0!==e[t])}function tn({keyframes:e,restDelta:t,restSpeed:n,...i}){let r,o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tt(e,te)&&tt(e,e9)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o;(0,G.$)(e<=m(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Q(.05,1,s),e=Q(.01,10,e/1e3),s<1?(r=t=>{let i=t*s,r=i*e;return .001-(i-n)/e7(t,s)*Math.exp(-r)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-i),l=e7(Math.pow(t,2),s);return(i*n+n-o)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e=m(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-((i.velocity||0)/1e3)}),p=d||0,g=u/(2*Math.sqrt(l*c)),y=s-o,v=Math.sqrt(l/c)/1e3,b=5>Math.abs(y);if(n||(n=b?.01:2),t||(t=b?.005:.5),g<1){let e=e7(v,g);r=t=>s-Math.exp(-g*v*t)*((p+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)r=e=>s-Math.exp(-v*e)*(y+(p+v*y)*e);else{let e=v*Math.sqrt(g*g-1);r=t=>{let n=Math.exp(-g*v*t),i=Math.min(e*t,300);return s-n*((p+g*v*y)*Math.sinh(i)+e*y*Math.cosh(i))/e}}return{calculatedDuration:f&&h||null,next:e=>{let i=r(e);if(f)a.done=e>=h;else{let o=0;g<1&&(o=0===e?m(p):e6(r,e,i));let l=Math.abs(s-i)<=t;a.done=Math.abs(o)<=n&&l}return a.value=a.done?s:i,a}}}function ti({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d,f=e[0],p={done:!1,value:f},m=n*t,g=f+m,y=void 0===s?g:s(g);y!==g&&(m=y-f);let v=e=>-m*Math.exp(-e/i),b=e=>y+v(e),w=e=>{let t=v(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?y:n},S=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;h=e,d=tn({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:e6(b,e,p.value),damping:r,stiffness:o,restDelta:u,restSpeed:c})}};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,w(e),S(e)),void 0!==h&&e>
1=h)?d.next(e-h):(t||w(e),p)}}}let tr=L(.42,0,1,1),to=L(0,0,.58,1),ts=L(.42,0,.58,1),ta=e=>Array.isArray(e)&&"number"==typeof e[0],tl={linear:E.l,easeIn:tr,easeInOut:ts,easeOut:to,circIn:z,circInOut:W,circOut:_,backIn:B,backInOut:U,backOut:F,anticipate:V},tu=e=>{if(ta(e)){(0,G.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return L(t,n,i,r)}return"string"==typeof e?((0,G.V)(void 0!==tl[e],`Invalid easing type '${e}'`),tl[e]):e},tc=(e,t)=>n=>t(e(n)),th=(...e)=>e.reduce(tc),td=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},tf=(e,t,n)=>e+(t-e)*n;function tp(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tm(e,t){return n=>n>0?t:e}let tg=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},ty=[eI,eM,eL];function tv(e){let t=ty.find(t=>t.test(e));if((0,G.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===eL&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,o=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=tp(a,i,e+1/3),o=tp(a,i,e),s=tp(a,i,e-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let tb=(e,t)=>{let n=tv(e),i=tv(t);if(!n||!i)return tm(e,t);let r={...n};return e=>(r.red=tg(n.red,i.red,e),r.green=tg(n.green,i.green,e),r.blue=tg(n.blue,i.blue,e),r.alpha=tf(n.alpha,i.alpha,e),eM.transform(r))},tw=new Set(["none","hidden"]);function tS(e,t){return n=>tf(e,t,n)}function tP(e){return"number"==typeof e?tS:"string"==typeof e?$(e)?tm:eN.test(e)?tb:tT:Array.isArray(e)?tx:"object"==typeof e?eN.test(e)?tb:tC:tm}function tx(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>tP(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function tC(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=tP(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let tT=(e,t)=>{let n=eH.createTransformer(t),i=eV(e),r=eV(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?tw.has(e)&&!r.values.length||tw.has(t)&&!i.values.length?function(e,t){return tw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):th(tx(function(e,t){var n;let i=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][r[s]],l=null!=(n=e.values[a])?n:0;i[o]=l,r[s]++}return i}(i,r),r.values),n):((0,G.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tm(e,t))};function tE(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tf(e,t,n):tP(e)(e,t)}function tO({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){var r;let o=Array.isArray(i)&&"number"!=typeof i[0]?i.map(tu):tu(i),s={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;if((0,G.V)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let i=[],r=n||tE,o=e.length-1;for(let n=0;n<o;n++){let o=r(e[n],e[n+1]);t&&(o=th(Array.isArray(t)?t[n]||E.l:t,o)),i.push(o)}return i}(t,i,r),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let i=td(e[n],e[n+1],t);return s[n](i)};return n?t=>l(Q(e[0],e[o-1],t)):l}((r=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=td(0,t,i);e.push(tf(n,1,r))}}(t,e.length-1),t}(t),r.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||ts).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}let tA=e=>{let t=({timestamp:t})=>e(t);return{start:()=>k.update(t,!0),stop:()=>R(t),now:()=>D.isProcessing?D.timestamp:e3.now()}},tk={decay:ti,inertia:ti,tween:tO,keyframes:tO,spring:tn},tR=e=>e/100;class tD extends e8{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:i,keyframes:r}=this.options,o=(null==i?void 0:i.KeyframeResolver)||eT,s=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new o(r,s,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,n,{type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=e5(i)?i:tk[i]||tO;l!==tO&&"number"!=typeof e[0]&&(t=th(tR,tE(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,h=c+o;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(r+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return r.next(0);let{delay:h,repeat:d,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=r;if(d){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/c)):"mirror"===f&&(b=o)),v=Q(0,1,n)*c}let w=y?{done:!1,value:a[0]}:b.next(v);s&&(w.value=s(w.value));let{done:S}=w;y||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return P&&void 0!==i&&(w.value=T(a,this.options,i)),m&&m(w.value),P&&this.finish(),w}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=m(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tA,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let tM=new Set(["opacity","clipPath","filter","transform"]);function tI(e){let t;return()=>(void 0===t&&(t=e()),t)}let tL={linearEasing:void 0},tN=function(e,t){let n=tI(e);return()=>{var e;return null!=(e=tL[t])?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tj=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,tF={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tj([0,.65,.55,1]),circOut:tj([.55,0,1,.45]),backIn:tj([.31,.01,.66,-.59]),backOut:tj([.33,1.53,.69,.99])};function tB(e,t){e.timeline=t,e.onfinish=null}let tU=tI(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tV={anticipate:V,backInOut:U,circInOut:W};class tz extends e8{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new e1(r,(e,t)=>this.onKeyframesResolved(e,t),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n,i;let{duration:r=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(null==(n=l.owner)?void 0:n.current))return!1;if("string"==typeof s&&tN()&&s in tV&&(s=tV[s]),e5((i=this.options).type)||"spring"===i.type||!function e(t){return!!("function"==typeof t&&tN()||!t||"string"==typeof t&&(t in tF||tN())||ta(t)||Array.isArray(t)&&t.every(e))}(i.ease)){let{onComplete:t,onUpdate:n,motionValue:i,element:l,...u}=this.options,c=function(e,t){let n=new tD({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},r=[],o=0;for(;!i.done&&o<2e4;)r.push((i=n.sample(o)).value),o+=10;return{times:void 0,keyframes:r,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,o=c.times,s=c.ease,a="keyframes"}let h=function(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t){if("function"==typeof t&&tN()){let e="",i=Math.max(Math.round(n/10),2);for(let n=0;n<i;n++)e+=t(td(0,i-1,n))+", ";return`linear(${e.substring(0,e.length-2)})`}return ta(t)?tj(t):Array.isArray(t)?t.map(t=>e(t,n)||tF.easeOut):tF[t]}}(a,r);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:r,times:o,ease:s});return h.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(tB(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:n}=this.options;l.set(T(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:o,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=m(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return E.l;let{animation:n}=t;tB(n,e)}else this.pendingTimeline=e;return E.l}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:r,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new tD({...u,keyframes:n,duration:i,type:r,ease:o,times:s,isGenerator:!0}),h=m(this.time);e.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}
1static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=e;return tU()&&n&&tM.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}}let t_=tI(()=>void 0!==window.ScrollTimeline);class tW{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>t_()&&n.attachTimeline?n.attachTimeline(e):t(n));return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let tH=(e,t,n,i={},r,o)=>s=>{let a=b(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=m(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...((e,{keyframes:t})=>t.length>2?y:p.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:g:v)(e,c)}),c.duration&&(c.duration=m(c.duration)),c.repeatDelay&&(c.repeatDelay=m(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(h=!0)),(x.current||P.W.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!o&&void 0!==t.get()){let e=T(c.keyframes,a);if(void 0!==e)return k.update(()=>{c.onUpdate(e),c.onComplete()}),new tW([])}return!o&&tz.supports(c)?new tz(c):new tD(c)},tG=e=>o(e)?e[e.length-1]||0:e;function tX(e,t){-1===e.indexOf(t)&&e.push(t)}function tY(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class tK{constructor(){this.subscriptions=[]}add(e){return tX(this.subscriptions,e),()=>tY(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let tq={current:void 0};class t${constructor(e,t={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=e3.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=e3.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tK);let n=this.events[e].add(t);return"change"===e?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return tq.current&&tq.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=e3.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tJ(e,t){return new t$(e,t)}let tZ=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tQ="data-"+tZ("framerAppearId"),t0=e=>!!(e&&e.getVelocity);function t1(e,t){let n=e.getValue("willChange");if(t0(n)&&n.add)return n.add(t)}function t5(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(s=i);let u=[],h=r&&e.animationState&&e.animationState.getState()[r];for(let t in l){let i=e.getValue(t,null!=(o=e.latestValues[t])?o:null),r=l[t];if(void 0===r||h&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(h,t))continue;let a={delay:n,...b(s||{},t)},c=!1;if(window.MotionHandoffAnimation){let n=e.props[tQ];if(n){let e=window.MotionHandoffAnimation(n,t,k);null!==e&&(a.startTime=e,c=!0)}}t1(e,t),i.start(tH(t,i,r,e.shouldReduceMotion&&p.has(t)?{type:!1}:a,e,c));let d=i.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{k.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=c(e,t)||{};for(let t in r={...r,...n}){let n=tG(r[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tJ(n))}}(e,a)})}),u}function t2(e,t,n={}){var i;let r=c(e,t,"exit"===n.type?null==(i=e.presenceContext)?void 0:i.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);let s=r?()=>Promise.all(t5(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,i=0,r=1,o){let s=[],a=(e.variantChildren.size-1)*i,l=1===r?(e=0)=>e*i:(e=0)=>a-e*i;return Array.from(e.variantChildren).sort(t3).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(t2(e,t,{...o,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,r+i,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function t3(e,t){return e.sortNodePosition(t)}let t4=d.length,t8=[...h].reverse(),t6=h.length;function t7(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t9(){return{animate:t7(!0),whileInView:t7(),whileHover:t7(),whileTap:t7(),whileDrag:t7(),whileFocus:t7(),exit:t7()}}class ne{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nt extends ne{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>t2(e,t,n)));else if("string"==typeof t)i=t2(e,t,n);else{let r="function"==typeof t?c(e,t,n.custom):t;i=Promise.all(t5(e,r,n))}return i.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,n))),n=t9(),i=!0,l=t=>(n,i)=>{var r;let o=c(e,i,"exit"===t?null==(r=e.presenceContext)?void 0:r.custom:void 0);if(o){let{transition:e,transitionEnd:t,...i}=o;n={...n,...i,...t}}return n};function u(u){let{props:c}=e,h=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<t4;e++){let i=d[e],r=t.props[i];(a(r)||!1===r)&&(n[i]=r)}return n}(e.parent)||{},f=[],p=new Set,m={},g=1/0;for(let t=0;t<t6;t++){var y,v;let d=t8[t],b=n[d],w=void 0!==c[d]?c[d]:h[d],S=a(w),P=d===u?b.isActive:null;!1===P&&(g=t);let x=w===h[d]&&w!==c[d]&&S;if(x&&i&&e.manuallyAnimateOnMount&&(x=!1),b.protectedKeys={...m},!b.isActive&&null===P||!w&&!b.prevProp||r(w)||"boolean"==typeof w)continue;let C=(y=b.prevProp,"string"==typeof(v=w)?v!==y:!!Array.isArray(v)&&!s(v,y)),T=C||d===u&&b.isActive&&!x&&S||t>g&&S,E=!1,O=Array.isArray(w)?w:[w],A=O.reduce(l(d),{});!1===P&&(A={});let{prevResolvedValues:k={}}=b,R={...k,...A},D=t=>{T=!0,p.has(t)&&(E=!0,p.delete(t)),b.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in R){let t=A[e],n=k[e];if(!m.hasOwnProperty(e))(o(t)&&o(n)?s(t,n):t===n)?void 0!==t&&p.has(e)?D(e):b.protectedKeys[e]=!0:null!=t?D(e):p.add(e)}b.prevProp=w,b.prevResolvedValues=A,b.isActive&&(m={...m,...A}),i&&e.blockInitialAnimation&&(T=!1);let M=!(x&&C)||E;T&&M&&f.push(...O.map(e=>({animation:e,options:{type:d}})))}if(p.size){let t={};p.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=i?i:null}),f.push({animation:t})}let b=!!f.length;return i&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(f):Promise.resolve()}return{animateChanges:u,setActive:function(t,i){var r;if(n[t].isActive===i)return Promise.resolve();null==(r=e.variantChildren)||r.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,i)}),n[t].isActive=i;let o=u(t);for(let e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=t9(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();r(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let nn=0;class ni extends ne{constructor(){super(...arguments),this.id=nn++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let nr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function no(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function ns(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function na(e,t,n,i){return ns(e,t,e=>nr(e)&&n(e,no(e)),i)}let nl=(e,t)=>Math.abs(e-t);class nu{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nd(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nl(e.x,t.x)**2+nl(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=D;this.history.push({...i,timestamp:r});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nc(t,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nd("pointercancel"===e.type?this.lastMoveEventInfo:nc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!nr(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let o=nc(no(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=D;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,nd(o,this.history)),this.removeListeners=th(na(this.contextWindow,"pointermove",this.handlePointerMove),na(this.contextWindow,"pointerup",this.handlePointerUp),na(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),R(this.updatePoint)}}function nc(e,t){return t?{point:t(e.point)}:e}function nh(e,t){return{x:e.x-t.x,y:e.y-t.y}}
1function nd({point:e},t){return{point:e,delta:nh(e,nf(t)),offset:nh(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=nf(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>m(.1)));)n--;if(!i)return{x:0,y:0};let o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function nf(e){return e[e.length-1]}function np(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let nm=np("dragHorizontal"),ng=np("dragVertical");function ny(e){let t=!1;if("y"===e)t=ng();else if("x"===e)t=nm();else{let e=nm(),n=ng();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function nv(){let e=ny(!0);return!e||(e(),!1)}function nb(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nw(e){return e.max-e.min}function nS(e,t,n,i=.5){e.origin=i,e.originPoint=tf(t.min,t.max,e.origin),e.scale=nw(n)/nw(t),e.translate=tf(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nP(e,t,n,i){nS(e.x,t.x,n.x,i?i.originX:void 0),nS(e.y,t.y,n.y,i?i.originY:void 0)}function nx(e,t,n){e.min=n.min+t.min,e.max=e.min+nw(t)}function nC(e,t,n){e.min=t.min-n.min,e.max=e.min+nw(t)}function nT(e,t,n){nC(e.x,t.x,n.x),nC(e.y,t.y,n.y)}function nE(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nO(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function nA(e,t,n){return{min:nk(e,t),max:nk(e,n)}}function nk(e,t){return"number"==typeof e?e:e[t]||0}let nR=()=>({translate:0,scale:1,origin:0,originPoint:0}),nD=()=>({x:nR(),y:nR()}),nM=()=>({min:0,max:0}),nI=()=>({x:nM(),y:nM()});function nL(e){return[e("x"),e("y")]}function nN({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function nj(e){return void 0===e||1===e}function nF({scale:e,scaleX:t,scaleY:n}){return!nj(e)||!nj(t)||!nj(n)}function nB(e){return nF(e)||nU(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nU(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nV(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function nz(e,t=0,n=1,i,r){e.min=nV(e.min,t,n,i,r),e.max=nV(e.max,t,n,i,r)}function n_(e,{x:t,y:n}){nz(e.x,t.translate,t.scale,t.originPoint),nz(e.y,n.translate,n.scale,n.originPoint)}function nW(e,t){e.min=e.min+t,e.max=e.max+t}function nH(e,t,n,i,r=.5){let o=tf(e.min,e.max,r);nz(e,t,n,o,i)}function nG(e,t){nH(e.x,t.x,t.scaleX,t.scale,t.originX),nH(e.y,t.y,t.scaleY,t.scale,t.originY)}function nX(e,t){return nN(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let nY=({current:e})=>e?e.ownerDocument.defaultView:null,nK=new WeakMap;class nq{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nI(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(no(e,"page").point)},r=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ny(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nL(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eo.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];i&&(t=nw(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&k.postRender(()=>r(e,t)),t1(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},s=(e,t)=>this.stop(e,t),a=()=>nL(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new nu(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:s,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nY(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:r}=this.getProps();r&&k.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!n$(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?tf(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?tf(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,r=this.constraints;t&&nb(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:nE(e.x,n,r),y:nE(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nA(e,"left","right"),y:nA(e,"top","bottom")}}(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nL(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nb(t))return!1;let i=t.current;(0,G.V)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(e,t,n){let i=nX(e,n),{scroll:r}=t;return r&&(nW(i.x,r.offset.x),nW(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s=(e=r.layout.layoutBox,{x:nO(e.x,o.x),y:nO(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=nN(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nL(s=>{if(!n$(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return t1(this.visualElement,e),n.start(tH(e,n,0,t,this.visualElement,!1))}stopAnimation(){nL(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nL(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nL(t=>{let{drag:n}=this.getProps();if(!n$(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t];r.set(e[t]-tf(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nb(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};nL(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=nw(e),r=nw(t);return r>i?n=td(t.min,t.max-i,e.min):i>r&&(n=td(e.min,e.max-r,t.min)),Q(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nL(t=>{if(!n$(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(tf(r,o,i[t]))})}addListeners(){if(!this.visualElement.current)return;nK.set(this.visualElement,this);let e=na(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
1=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nb(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),k.read(t);let r=ns(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nL(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function n$(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class nJ extends ne{constructor(e){super(e),this.removeGroupControls=E.l,this.removeListeners=E.l,this.controls=new nq(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let nZ=e=>(t,n)=>{e&&k.postRender(()=>e(t,n))};class nQ extends ne{constructor(){super(...arguments),this.removePointerDownListener=E.l}onPointerDown(e){this.session=new nu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nY(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:nZ(e),onStart:nZ(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&k.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=na(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var n0=n(54568),n1=n(7620),n5=n(16045),n2=n(60853);let n3=(0,n1.createContext)({}),n4={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let n6={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!es.test(e))return e;else e=parseFloat(e);let n=n8(e,t.target.x),i=n8(e,t.target.y);return`${n}% ${i}%`}},n7={},{schedule:n9,cancel:ie}=A(queueMicrotask,!1);class it extends n1.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;Object.assign(n7,ir),r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),n4.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||k.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),n9.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ii(e){let[t,n]=function(){let e=(0,n1.useContext)(n5.t);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,r=(0,n1.useId)();(0,n1.useEffect)(()=>i(r),[]);let o=(0,n1.useCallback)(()=>n&&n(r),[r,n]);return!t&&n?[!1,o]:[!0]}(),i=(0,n1.useContext)(n2.L);return(0,n0.jsx)(it,{...e,layoutGroup:i,switchLayoutGroup:(0,n1.useContext)(n3),isPresent:t,safeToRemove:n})}let ir={borderRadius:{...n6,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n6,borderTopRightRadius:n6,borderBottomLeftRadius:n6,borderBottomRightRadius:n6,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=eH.parse(e);if(i.length>5)return e;let r=eH.createTransformer(e),o=+("number"!=typeof i[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=a;let l=tf(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}},io=["TopLeft","TopRight","BottomLeft","BottomRight"],is=io.length,ia=e=>"string"==typeof e?parseFloat(e):e,il=e=>"number"==typeof e||es.test(e);function iu(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ic=id(0,.5,_),ih=id(.5,.95,E.l);function id(e,t,n){return i=>i<e?0:i>t?1:n(td(e,t,i))}function ip(e,t){e.min=t.min,e.max=t.max}function im(e,t){ip(e.x,t.x),ip(e.y,t.y)}function ig(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iy(e,t,n,i,r){return e-=t,e=i+1/n*(e-i),void 0!==r&&(e=i+1/r*(e-i)),e}function iv(e,t,[n,i,r],o,s){!function(e,t=0,n=1,i=.5,r,o=e,s=e){if(eo.test(t)&&(t=parseFloat(t),t=tf(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tf(o.min,o.max,i);e===o&&(a-=t),e.min=iy(e.min,t,n,a,r),e.max=iy(e.max,t,n,a,r)}(e,t[n],t[i],t[r],t.scale,o,s)}let ib=["x","scaleX","originX"],iw=["y","scaleY","originY"];function iS(e,t,n,i){iv(e.x,t,ib,n?n.x:void 0,i?i.x:void 0),iv(e.y,t,iw,n?n.y:void 0,i?i.y:void 0)}function iP(e){return 0===e.translate&&1===e.scale}function ix(e){return iP(e.x)&&iP(e.y)}function iC(e,t){return e.min===t.min&&e.max===t.max}function iT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iE(e,t){return iT(e.x,t.x)&&iT(e.y,t.y)}function iO(e){return nw(e.x)/nw(e.y)}function iA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ik{constructor(){this.members=[]}add(e){tX(this.members,e),e.scheduleRender()}remove(e){if(tY(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iR=(e,t)=>e.depth-t.depth;class iD{constructor(){this.children=[],this.isDirty=!1}add(e){tX(this.children,e),this.isDirty=!0}remove(e){tY(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iR),this.isDirty=!1,this.children.forEach(e)}}function iM(e){let t=t0(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let iI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},iL="undefined"!=typeof window&&void 0!==window.MotionDebug,iN=["","X","Y","Z"],ij={visibility:"hidden"},iF=0;function iB(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function iU({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=null==t?void 0:t()){this.id=iF++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iL&&(iI.totalNodes=iI.resolvedTargetDeltas=iI.recalculatedProjection=0),this.nodes.forEach(i_),this.nodes.forEach(iq),this.nodes.forEach(i$),this.nodes.forEach(iW),iL&&window.MotionDebug.record(iI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iD)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tK),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:i,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||i)&&(this.isLayoutDirty=!0),e){let n,i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=e3.now(),i=({timestamp:t})=>{let r=t-n;r>=250&&(R(i),e(r-250))};return k.read(i,!0),()=>R(i)}(i,250),n4.hasAnimatedSinceResize&&(n4.hasAnimatedSinceResize=!1,this.nodes.forEach(iK))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||i5,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!iE(this.targetLayout,i)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...b(r,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||iK(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,R(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(iJ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=n.props[tQ];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",k,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iG);return}this.isUpdating||this.nodes.forEach(iX),this.isUpdating=!1,this.nodes.forEach(iY),this.nodes.forEach(iV),this.nodes.forEach(iz),this.clearAllSnapshots();let e=e3.now();D.delta=Q(0,1e3/60,e-D.timestamp),D.timestamp=e,D.isProcessing=!0,M.update.process(D),M.preRender.process(D),M.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,n9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iH),this.sharedNodes.forEach(iZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nI(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ix(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&(t||nB(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),i4((t=i).x),i4(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return nI();let n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(i6))){let{scroll:e}=this.root;e&&(nW(n.x,e.offset.x),nW(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=nI();if(im(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let i=this.path[t],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&im(n,e),nW(n.x,r.offset.x),nW(n.y,r.offset.y))}return n}applyTransform(e,t=!1){let n=nI();im(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nG(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),nB(i.latestValues)&&nG(n,i.latestValues)}return nB(this.latestValues)&&nG(n,this.latestValues),n}removeTransform(e){let t=nI();im(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nB(n.latestValues))continue;nF(n.latestValues)&&n.updateSnapshot();let i=nI();im(i,n.measurePageBox()),iS(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return nB(this.latestValues)&&iS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==D.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,i,r;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=D.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nI(),this.relativeTargetOrigin=nI(),nT(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),im(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nI(),this.targetWithTransforms=nI()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,i=this.relativeTarget,r=this.relativeParent.target,nx(n.x,i.x,r.x),nx(n.y,i.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):im(this.target,this.layout.layoutBox),n_(this.target,this.targetDelta)):im(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nI(),this.relativeTargetOrigin=nI(),nT(this.relativeTargetOrigin,this.target,e.target),im(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}iL&&iI.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nF(this.parent.latestValues)||nU(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===D.timestamp&&(i=!1),i)return;let{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||o))return;im(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,i=!1){let r,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nG(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,n_(e,o)),i&&nB(r.latestValues)&&nG(e,r.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=nI());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ig(this.prevProjectionDelta.x,this.projectionDelta.x),ig(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nP(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&iA(this.projectionDelta.x,this.prevProjectionDelta.x)&&iA(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),iL&&iI.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nD(),this.projectionDelta=nD(),this.projectionDeltaWithTransform=nD()}setAnimationOrigin(e,t=!1){let n,i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=nD();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=nI(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(i1));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(iQ(s.x,e.x,i),iQ(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p,m,g;nT(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,g=i,i0(f.x,p.x,m.x,g),i0(f.y,p.y,m.y,g),n&&(u=this.relativeTarget,d=n,iC(u.x,d.x)&&iC(u.y,d.y))&&(this.isProjectionDirty=!1),n||(n=nI()),im(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,i,r,o){r?(e.opacity=tf(0,void 0!==n.opacity?n.opacity:1,ic(i)),e.opacityExit=tf(void 0!==t.opacity?t.opacity:1,0,ih(i))):o&&(e.opacity=tf(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<is;r++){let o=`border${io[r]}Radius`,s=iu(t,o),a=iu(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||il(s)===il(a)?(e[o]=Math.max(tf(ia(s),ia(a),i),0),(eo.test(a)||eo.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tf(t.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(
1R(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{n4.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let i=t0(0)?0:tJ(e);return i.start(tH("",i,1e3,n)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&i8(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||nI();let t=nw(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=nw(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}im(t,n),nG(t,r),nP(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ik),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&iB("z",e,i,this.animationValues);for(let t=0;t<iN.length;t++)iB(`rotate${iN[t]}`,e,i,this.animationValues),iB(`skew${iN[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ij;let i={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=iM(null==e?void 0:e.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iM(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nB(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(e,t,n){let i="",r=e.x.translate/t.x,o=e.
1y.translate/t.y,s=(null==n?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),r&&(i.transform=r(s,i.transform));let{x:a,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!=(n=null!=(t=s.opacity)?t:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,n7){if(void 0===s[e])continue;let{correct:t,applyTo:n}=n7[e],r="none"===i.transform?s[e]:t(s[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)i[n[t]]=r}else i[e]=r}return this.options.layoutId&&(i.pointerEvents=o===this?iM(null==e?void 0:e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(iG),this.root.sharedNodes.clear()}}}function iV(e){e.updateLayout()}function iz(e){var t;let n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:r}=e.options,o=n.source!==e.layout.source;"size"===r?nL(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],r=nw(i);i.min=t[e].min,i.max=i.min+r}):i8(r,n.layoutBox,t)&&nL(i=>{let r=o?n.measuredBox[i]:n.layoutBox[i],s=nw(t[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=nD();nP(s,t,n.layoutBox);let a=nD();o?nP(a,e.applyTransform(i,!0),n.measuredBox):nP(a,t,n.layoutBox);let l=!ix(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=nI();nT(s,n.layoutBox,r.layoutBox);let a=nI();nT(a,t,o.layoutBox),iE(s,a)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function i_(e){iL&&iI.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iH(e){e.clearSnapshot()}function iG(e){e.clearMeasurements()}function iX(e){e.isLayoutDirty=!1}function iY(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iK(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iq(e){e.resolveTargetDelta()}function i$(e){e.calcProjection()}function iJ(e){e.resetSkewAndRotation()}function iZ(e){e.removeLeadSnapshot()}function iQ(e,t,n){e.translate=tf(t.translate,0,n),e.scale=tf(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function i0(e,t,n,i){e.min=tf(t.min,n.min,i),e.max=tf(t.max,n.max,i)}function i1(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i5={duration:.45,ease:[.4,0,.1,1]},i2=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i3=i2("applewebkit/")&&!i2("chrome/")?Math.round:E.l;function i4(e){e.min=i3(e.min),e.max=i3(e.max)}function i8(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>
1=Math.abs(iO(t)-iO(n)))}function i6(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let i7=iU({attachResizeListener:(e,t)=>ns(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i9={current:void 0},re=iU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i9.current){let e=new i7({});e.mount(window),e.setOptions({layoutScroll:!0}),i9.current=e}return i9.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rt(e,t){let n=t?"onHoverStart":"onHoverEnd";return na(e.current,t?"pointerenter":"pointerleave",(i,r)=>{if("touch"===i.pointerType||nv())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let s=o[n];s&&k.postRender(()=>s(i,r))},{passive:!e.getProps()[n]})}class rn extends ne{mount(){this.unmount=th(rt(this.node,!0),rt(this.node,!1))}unmount(){}}class ri extends ne{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=th(ns(this.node.current,"focus",()=>this.onFocus()),ns(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rr=(e,t)=>!!t&&(e===t||rr(e,t.parentElement));function ro(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,no(n))}class rs extends ne{constructor(){super(...arguments),this.removeStartListeners=E.l,this.removeEndListeners=E.l,this.removeAccessibleListeners=E.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=na(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i,globalTapTarget:r}=this.node.getProps(),o=r||rr(this.node.current,e.target)?n:i;o&&k.update(()=>o(e,t))},{passive:!(n.onTap||n.onPointerUp)}),r=na(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=th(i,r),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=e=>{if("Enter"!==e.key||this.isPressing)return;let t=e=>{"Enter"===e.key&&this.checkPressEnd()&&ro("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&k.postRender(()=>n(e,t))})};this.removeEndListeners(),this.removeEndListeners=ns(this.node.current,"keyup",t),ro("down",(e,t)=>{this.startPress(e,t)})},t=ns(this.node.current,"keydown",e),n=()=>{this.isPressing&&ro("cancel",(e,t)=>this.cancelPress(e,t))},i=ns(this.node.current,"blur",n);this.removeAccessibleListeners=th(t,i)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&k.postRender(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nv()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&k.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=na(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ns(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=th(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let ra=new WeakMap,rl=new WeakMap,ru=e=>{let t=ra.get(e.target);t&&t(e)},rc=e=>{e.forEach(ru)},rh={some:0,all:1};class rd extends ne{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:rh[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=t?n:i;o&&o(e)};var a=this.node.current;let l=function({root:e,...t}){let n=e||document;rl.has(n)||rl.set(n,{});
1let i=rl.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(rc,{root:e,...t})),i[r]}(o);return ra.set(a,s),l.observe(a),()=>{ra.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}var rf=n(65876);let rp=(0,n1.createContext)({});var rm=n(62582);let rg=(0,n1.createContext)({strict:!1});function ry(e){return r(e.animate)||d.some(t=>a(e[t]))}function rv(e){return!!(ry(e)||e.variants)}function rb(e){return Array.isArray(e)?e.join(" "):e}let rw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rS={};for(let e in rw)rS[e]={isEnabled:t=>rw[e].some(e=>!!t[e])};var rP=n(82732);let rx=Symbol.for("motionComponentSymbol"),rC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rT(e){if("string"!=typeof e||e.includes("-"));else if(rC.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}function rE(e,{style:t,vars:n},i,r){for(let o in Object.assign(e.style,t,r&&r.getProjectionStyles(i)),n)e.style.setProperty(o,n[o])}let rO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rA(e,t,n,i){for(let n in rE(e,t,void 0,i),t.attrs)e.setAttribute(rO.has(n)?n:tZ(n),t.attrs[n])}function rk(e,{layout:t,layoutId:n}){return p.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n7[e]||"opacity"===e)}function rR(e,t,n){var i;let{style:r}=e,o={};for(let s in r)(t0(r[s])||t.style&&t0(t.style[s])||rk(s,e)||(null==(i=null==n?void 0:n.getValue(s))?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function rD(e,t,n){let i=rR(e,t,n);for(let n in e)(t0(e[n])||t0(t[n]))&&(i[-1!==f.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}var rM=n(65605);let rI=e=>(t,n)=>{let i=(0,n1.useContext)(rp),o=(0,n1.useContext)(n5.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,s){let a={latestValues:function(e,t,n,i){let o={},s=i(e,{});for(let e in s)o[e]=iM(s[e]);let{initial:a,animate:l}=e,c=ry(e),h=rv(e);t&&h&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let d=!!n&&!1===n.initial,f=(d=d||!1===a)?l:a;if(f&&"boolean"!=typeof f&&!r(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let i=u(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(i,o,s,e),renderState:t()};return n&&(a.mount=e=>n(i,e,a)),a})(e,t,i,o);return n?s():(0,rM.M)(s)},rL=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rN=()=>({...rL(),attrs:{}}),rj=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rB=f.length;function rU(e,t,n){let{style:i,vars:r,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let n=t[e];if(p.has(e)){s=!0;continue}if(K(e)){r[e]=n;continue}{let t=rj(n,e$[e]);e.startsWith("origin")?(a=!0,o[e]=t):i[e]=t}}if(!t.transform&&(s||n?i.transform=function(e,t,n){let i="",r=!0;for(let o=0;o<rB;o++){let s=f[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!s.startsWith("scale"):0===parseFloat(a))||n){let e=rj(a,e$[s]);if(!l){r=!1;let t=rF[s]||s;i+=`${t}(${e}) `}n&&(t[s]=e)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;i.transformOrigin=`${e} ${t} ${n}`}}
1function rV(e,t,n){return"string"==typeof e?e:es.transform(t+n*e)}let rz={offset:"stroke-dashoffset",array:"stroke-dasharray"},r_={offset:"strokeDashoffset",array:"strokeDasharray"};function rW(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(rU(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:p}=e;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(void 0!==r||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){let i=rV(t,e.x,e.width),r=rV(n,e.y,e.height);return`${i} ${r}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==s&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?rz:r_;e[o.offset]=es.transform(-i);let s=es.transform(t),a=es.transform(n);e[o.array]=`${s} ${a}`}(d,s,a,l,!1)}let rH=e=>"string"==typeof e&&"svg"===e.toLowerCase(),rG={useVisualState:rI({scrapeMotionValuesFromProps:rD,createRenderState:rN,onMount:(e,t,{renderState:n,latestValues:i})=>{k.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{rW(n,i,rH(t.tagName),e.transformTemplate),rA(t,n)})}})},rX={useVisualState:rI({scrapeMotionValuesFromProps:rR,createRenderState:rL})};function rY(e,t,n){for(let i in t)t0(t[i])||rk(i,n)||(e[i]=t[i])}let rK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rq(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rK.has(e)}let r$=e=>!rq(e);try{!function(e){e&&(r$=t=>t.startsWith("on")?!rq(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let rJ={current:null},rZ={current:!1},rQ=new WeakMap,r0=[...ev,eN,eH],r1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class r5{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=e3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,k.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=ry(t),this.isVariantNode=rv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&t0(t)&&t.set(a[e],!1)}}mount(e){this.current=e,rQ.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),rZ.current||function(){if(rZ.current=!0,rP.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rJ.current=e.matches;e.addListener(t),t()}else rJ.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rJ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rQ.delete(this.current),this.projection&&this.projection.unmount(),R(this.notifyUpdate),R(this.render),this.valueSubscriptions.forEach(e
1=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=p.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&k.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in rS){let t=rS[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nI()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<r1.length;t++){let n=r1[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let r=t[i],o=n[i];if(t0(r))e.addValue(i,r);else if(t0(o))e.addValue(i,tJ(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,tJ(void 0!==t?t:r,{owner:e}))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tJ(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=void 0===this.latestValues[e]&&this.current?null!=(n=this.getBaseTargetFromProps(this.props,e))?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){if("string"==typeof i&&(X(i)||H(i)))i=parseFloat(i);else{let n;n=i,!r0.find(ey(n))&&eH.test(t)&&(i=eQ(e,t))}this.setBaseTarget(e,t0(i)?i.get():i)}return t0(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=u(this.props,i,null==(t=this.presenceContext)?void 0:t.custom);r&&(n=r[e])}if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||t0(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new tK),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class r2 extends r5{constructor(){super(...arguments),this.KeyframeResolver=e1}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class r3 extends r2{constructor(){super(...arguments),this.type="html",this.renderInstance=rE}readValueFromInstance(e,t){if(p.has(t)){let e=eZ(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(K(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nX(e,t)}build(e,t,n){rU(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return rR(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;t0(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class r4 extends r2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(p.has(t)){let e=eZ(t);return e&&e.default||0}return t=rO.has(t)?t:tZ(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return rD(e,t,n)}
1build(e,t,n){rW(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){rA(e,t,n,i)}mount(e){this.isSVGTag=rH(e.tagName),super.mount(e)}}let r8=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}((w={animation:{Feature:nt},exit:{Feature:ni},inView:{Feature:rd},tap:{Feature:rs},focus:{Feature:ri},hover:{Feature:rn},pan:{Feature:nQ},drag:{Feature:nJ,ProjectionNode:re,MeasureLayout:ii},layout:{ProjectionNode:re,MeasureLayout:ii}},S=(e,t)=>rT(e)?new r4(t):new r3(t,{allowProjection:e!==n1.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){let{preloadedFeatures:t,createVisualElement:n,useRender:i,useVisualState:r,Component:o}=e;t&&function(e){for(let t in e)rS[t]={...rS[t],...e[t]}}(t);let s=(0,n1.forwardRef)(function(e,t){var s,l,u;let c,h={...(0,n1.useContext)(rf.Q),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,n1.useContext)(n2.L).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:d}=h,f=function(e){let{initial:t,animate:n}=function(e,t){if(ry(e)){let{initial:t,animate:n}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n1.useContext)(rp));return(0,n1.useMemo)(()=>({initial:t,animate:n}),[rb(t),rb(n)])}(e),p=r(e,d);if(!d&&rP.B){l=0,u=0,(0,n1.useContext)(rg).strict;let e=function(e){let{drag:t,layout:n}=rS;if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(h);c=e.MeasureLayout,f.visualElement=function(e,t,n,i,r){var o,s;let{visualElement:a}=(0,n1.useContext)(rp),l=(0,n1.useContext)(rg),u=(0,n1.useContext)(n5.t),c=(0,n1.useContext)(rf.Q).reducedMotion,h=(0,n1.useRef)();i=i||l.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let d=h.current,f=(0,n1.useContext)(n3);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(e,t,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&nb(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(h.current,n,r,f);let p=(0,n1.useRef)(!1);(0,n1.useInsertionEffect)(()=>{d&&p.current&&d.update(n,u)});let m=n[tQ],g=(0,n1.useRef)(!!m&&!(null==(o=window.MotionHandoffIsComplete)?void 0:o.call(window,m))&&(null==(s=window.MotionHasOptimisedAnimation)?void 0:s.call(window,m)));return(0,rm.E)(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),n9.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,n1.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)}),g.current=!1))}),d}(o,p,h,n,e.ProjectionNode)}return(0,n0.jsxs)(rp.Provider,{value:f,children:[c&&f.visualElement?(0,n0.jsx)(c,{visualElement:f.visualElement,...h}):null,i(o,e,(s=f.visualElement,(0,n1.useCallback)(e=>{e&&p.mount&&p.mount(e),s&&(e?s.mount(e):s.unmount()),t&&("function"==typeof t?t(e):nb(t)&&(t.current=e))},[s])),p,d,f.visualElement)]})});return s[rx]=o,s}({...rT(e)?rG:rX,preloadedFeatures:w,useRender:function(e=!1){return(t,n,i,{latestValues:r},o)=>{let s=(rT(t)?function(e,t,n,i){let r=(0,n1.useMemo)(()=>{let n=rN();return rW(n,t,rH(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rY(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let n={},i=function(e,t){let n=e.style||{},i={};return rY(i,n,e),Object.assign(i,function({transformTemplate:e},t){return(0,n1.useMemo)(()=>{let n=rL();return rU(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
1`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(n,r,o,t),a=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(r$(r)||!0===n&&rq(r)||!t&&!rq(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(n,"string"==typeof t,e),l=t!==n1.Fragment?{...a,...s,ref:i}:{},{children:u}=n,c=(0,n1.useMemo)(()=>t0(u)?u.get():u,[u]);return(0,n1.createElement)(t,{...l,children:c})}}(t),createVisualElement:S,Component:e})}))},80928:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-info-circle",void 0===c?"":c].filter(Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),i.createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},82732:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});let i="undefined"!=typeof window},83368:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>tr});var i=n(77011),r=n(60996).Buffer,o="undefined"!=typeof self?self:global;let s="undefined"!=typeof navigator,a=s&&"undefined"==typeof HTMLImageElement,l=!("undefined"==typeof global||void 0===i||!i.versions||!i.versions.node),u=o.Buffer,c=o.BigInt,h=!!u,d=e=>e;function f(e,t=d){if(l)try{return"function"==typeof require?Promise.resolve(t(require(e))):import(e).then(t)}catch(t){console.warn(`Couldn't load ${e}`)}}let p=o.fetch;if(!o.fetch){let e=f("http",e=>e),t=f("https",e=>e),n=(i,{headers:o}={})=>new Promise(async(s,a)=>{let{port:l,hostname:u,pathname:c,protocol:h,search:d}=new URL(i),f={method:"GET",hostname:u,path:encodeURI(c)+d,headers:o};""!==l&&(f.port=Number(l));let p=("https:"===h?await t:await e).request(f,e=>{if(301===e.statusCode||302===e.statusCode)return n(new URL(e.headers.location,i).toString(),{headers:o}).then(s).catch(a);s({status:e.statusCode,arrayBuffer:()=>new Promise(t=>{let n=[];e.on("data",e=>n.push(e)),e.on("end",()=>t(r.concat(n)))})})});p.on("error",a),p.end()});p=n}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let g=e=>v(e)?void 0:e,y=e=>void 0!==e;function v(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(y).length)}function b(e){let t=Error(e);throw delete t.stack,t}function w(e){return""===(e=(function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e})(e).trim())?void 0:e}function S(e){let t,n=(t=0,e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048);return e.jfif.enabled&&(n+=50),e.xmp.enabled&&(n+=2e4),e.iptc.enabled&&(n+=14e3),e.icc.enabled&&(n+=6e3),n}let P=e=>String.fromCharCode.apply(null,e),x="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;function C(e){return x?x.decode(e):h?r.from(e).toString("utf8"):decodeURIComponent(escape(P(e)))}class T{static from(e,t){return e instanceof this&&e.le===t?e:new T(e,void 0,void 0,t)}constructor(e,t=0,n,i){if("boolean"==typeof i&&(this.le=i),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===n&&(n=e.byteLength-t);let i=new DataView(e,t,n);this._swapDataView(i)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof T){void 0===n&&(n=e.byteLength-t),(t+=e.byteOffset)+n>e.byteOffset+e.byteLength&&b("Creating view outside of available memory in ArrayBuffer");let i=new DataView(e.buffer,t,n);this._swapDataView(i)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else b("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t,n=T){return e instanceof DataView||e instanceof T?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||b("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new n(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new T(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(e=0,t=this.byteLength){return C(this.getUint8Array(e,t))}getLatin1String(e=0,t=this.byteLength){return P(this.getUint8Array(e,t))}getUnicodeString(e=0,t=this.byteLength){let n=[];for(let i=0;i<t&&e+i<this.byteLength;i+=2)n.push(this.getUint16(e+i));return P(n)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e,t=this.le){return this.dataView.getInt16(e,t)}getInt32(e,t=this.le){return this.dataView.getInt32(e,t)}getUint16(e,t=this.le){return this.dataView.getUint16(e,t)}getUint32(e,t=this.le){return this.dataView.getUint32(e,t)}getFloat32(e,t=this.le){return this.dataView.getFloat32(e,t)}getFloat64(e,t=this.le){return this.dataView.getFloat64(e,t)}
1getFloat(e,t=this.le){return this.dataView.getFloat32(e,t)}getDouble(e,t=this.le){return this.dataView.getFloat64(e,t)}getUintBytes(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}getUint(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function E(e,t){b(`${e} '${t}' was not loaded, try using full build of exifr.`)}class O extends Map{constructor(e){super(),this.kind=e}get(e,t){var n;return this.has(e)||E(this.kind,e),t&&(e in t||(n=this.kind,b(`Unknown ${n} '${e}'.`)),t[e].enabled||E(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var A=new O("file parser"),k=new O("segment parser"),R=new O("file reader");function D(e,t){return e.startsWith("data:")||e.length>1e4?I(e,t,"base64"):l&&e.includes("://")?M(e,t,"url",L):l?I(e,t,"fs"):s?M(e,t,"url",L):void b("Invalid input argument")}async function M(e,t,n,i){return R.has(n)?I(e,t,n):i?async function(e,t){return new T(await t(e))}(e,i):void b(`Parser ${n} is not loaded`)}async function I(e,t,n){let i=new(R.get(n))(e,t);return await i.read(),i}let L=e=>p(e).then(e=>e.arrayBuffer()),N=e=>new Promise((t,n)=>{let i=new FileReader;i.onloadend=()=>t(i.result||new ArrayBuffer),i.onerror=n,i.readAsArrayBuffer(e)});class j extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function F(e,t,n){let i=new j;for(let[e,t]of n)i.set(e,t);if(Array.isArray(t))for(let n of t)e.set(n,i);else e.set(t,i);return i}function B(e,t,n){let i,r=e.get(t);for(i of n)r.set(i[0],i[1])}let U=new Map,V=new Map,z=new Map,_=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],W=["jfif","xmp","icc","iptc","ihdr"],H=["tiff",...W],G=["ifd0","ifd1","exif","gps","interop"],X=[...H,...G],Y=["makerNote","userComment"],K=["translateKeys","translateValues","reviveValues","multiSegment"],q=[...K,"sanitize","mergeOutput","silentErrors"];class ${get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class J extends ${get needed(){return this.enabled||this.deps.size>0}constructor(e,t,n,i){if(super(),m(this,"enabled",!1),m(this,"skip",new Set),m(this,"pick",
1new Set),m(this,"deps",new Set),m(this,"translateKeys",!1),m(this,"translateValues",!1),m(this,"reviveValues",!1),this.key=e,this.enabled=t,this.parse=this.enabled,this.applyInheritables(i),this.canBeFiltered=G.includes(e),this.canBeFiltered&&(this.dict=U.get(e)),void 0!==n)if(Array.isArray(n))this.parse=this.enabled=!0,this.canBeFiltered&&n.length>0&&this.translateTagSet(n,this.pick);else if("object"==typeof n){if(this.enabled=!0,this.parse=!1!==n.parse,this.canBeFiltered){let{pick:e,skip:t}=n;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(n)}else!0===n||!1===n?this.parse=this.enabled=n:b(`Invalid options argument: ${n}`)}applyInheritables(e){let t,n;for(t of K)void 0!==(n=e[t])&&(this[t]=n)}translateTagSet(e,t){if(this.dict){let n,i,{tagKeys:r,tagValues:o}=this.dict;for(n of e)"string"==typeof n?(-1===(i=o.indexOf(n))&&(i=r.indexOf(Number(n))),-1!==i&&t.add(Number(r[i]))):t.add(n)}else for(let n of e)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,ei(this.pick,this.deps)):this.enabled&&this.pick.size>0&&ei(this.pick,this.deps)}}var Z={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Q=new Map;class ee extends ${static useCached(e){let t=Q.get(e);return void 0!==t||(t=new this(e),Q.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):b(`Invalid options argument ${e}`),void 0===this.firstChunkSize&&(this.firstChunkSize=s?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of _)this[e]=Z[e];for(e of q)this[e]=Z[e];for(e of Y)this[e]=Z[e];for(e of X)this[e]=new J(e,Z[e],void 0,this)}setupFromTrue(){let e;for(e of _)this[e]=Z[e];for(e of q)this[e]=Z[e];for(e of Y)this[e]=!0;for(e of X)this[e]=new J(e,!0,void 0,this)}setupFromArray(e){let t;for(t of _)this[t]=Z[t];for(t of q)this[t]=Z[t];for(t of Y)this[t]=Z[t];for(t of X)this[t]=new J(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,G)}setupFromObject(e){let t;for(t of(G.ifd0=G.ifd0||G.image,G.ifd1=G.ifd1||G.thumbnail,Object.assign(this,e),_))this[t]=en(e[t],Z[t]);for(t of q)this[t]=en(e[t],Z[t]);for(t of Y)this[t]=en(e[t],Z[t]);for(t of H)this[t]=new J(t,Z[t],e[t],this);for(t of G)this[t]=new J(t,Z[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,G,X),!0===e.tiff?this.batchEnableWithBool(G,!0):!1===e.tiff?this.batchEnableWithUserValue(G,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,G):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,G)}batchEnableWithBool(e,t){for(let n of e)this[n].enabled=t}batchEnableWithUserValue(e,t){for(let n of e){let e=t[n];this[n].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,n,i=n){if(e&&e.length){for(let e of i)this[e].enabled=!1;for(let[t,i]of et(e,n))ei(this[t].pick,i),this[t].enabled=!0}else if(t&&t.length)for(let[e,i]of et(t,n))ei(this[e].skip,i)}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:n,iptc:i,icc:r}=this;this.makerNote?t.deps.add(37500):t.skip.add(37500),this.userComment?t.deps.add(37510):t.skip.add(37510),n.enabled||e.skip.add(700),i.enabled||e.skip.add(33723),r.enabled||e.skip.add(34675)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:n,interop:i}=this;for(let r of(i.needed&&(t.deps.add(40965),e.deps.add(40965)),t.needed&&e.deps.add(34665),n.needed&&e.deps.add(34853),this.tiff.enabled=G.some(e=>!0===this[e].enabled)||this.makerNote||this.userComment,G))this[r].finalizeFilters()}get onlyTiff(){return!W.map(e=>this[e].enabled).some(e=>!0===e)&&this.tiff.enabled}checkLoadedPlugins(){for(let e of H)this[e].enabled&&!k.has(e)&&E("segment parser",e)}}function et(e,t){let n,i,r,o,s=[];for(r of t){for(o of(n=U.get(r),i=[],n))(e.includes(o[0])||e.includes(o[1]))&&i.push(o[0]);i.length&&s.push([r,i])}return s}function en(e,t){return void 0!==e?e:void 0!==t?t:void 0}function ei(e,t){for(let n of t)e.add(n)}m(ee,"default",Z);class er{constructor(e){m(this,"parsers",{}),m(this,"output",{}),m(this,"errors",[]),m(this,"pushToErrors",e=>this.errors.push(e)),this.options=ee.useCached(e)}async read(e){var t;this.file=await (t=this.options,"string"==typeof e?D(e,t):s&&!a&&e instanceof HTMLImageElement?D(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new T(e):s&&e instanceof Blob?M(e,t,"blob",N):void b("Invalid input argument"))}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[n,i]of A)if(i.canHandle(e,t))return this.fileParser=new i(this.options,this.file,this.parsers),e[n]=!0;this.file.close&&this.file.close(),b("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),g(e)}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map(async t=>{let n=await t.parse();t.assignToOutput(e,n)});this.options.silentErrors&&(t=t.map(e=>e.catch(this.pushToErrors))),await Promise.all(t)}async extractThumbnail(){var e;this.setup();let{options:t,file:n}=this,i=k.get("tiff",t);if(n.tiff?e={start:0,type:"tiff"}:n.jpeg&&(e=await this.fileParser.getOrFindSegment("tiff")),void 0===e)return;let r=await this.fileParser.ensureSegmentChunk(e),o=this.parsers.tiff=new i(r,t,n),s=await o.extractThumbnail();return n.close&&n.close(),s}}async function eo(e,t){let n=new er(t);return await n.read(e),n.parse()}
1var es=Object.freeze({__proto__:null,parse:eo,Exifr:er,fileParsers:A,segmentParsers:k,fileReaders:R,tagKeys:U,tagValues:V,tagRevivers:z,createDictionary:F,extendDictionary:B,fetchUrlAsArrayBuffer:L,readBlobAsArrayBuffer:N,chunkedProps:_,otherSegments:W,segments:H,tiffBlocks:G,segmentsAndBlocks:X,tiffExtractables:Y,inheritables:K,allFormatters:q,Options:ee});class ea{constructor(e,t,n){m(this,"errors",[]),m(this,"ensureSegmentChunk",async e=>{let t=e.start,n=e.size||65536;if(this.file.chunked)if(this.file.available(t,n))e.chunk=this.file.subarray(t,n);else try{e.chunk=await this.file.readChunk(t,n)}catch(t){b(`Couldn't read segment: ${JSON.stringify(e)}. ${t.message}`)}else this.file.byteLength>t+n?e.chunk=this.file.subarray(t,n):void 0===e.size?e.chunk=this.file.subarray(t):b("Segment unreachable: "+JSON.stringify(e));return e.chunk}),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=t,this.parsers=n}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let n=new(k.get(e))(t,this.options,this.file);return this.parsers[e]=n}createParsers(e){for(let t of e){let{type:e,chunk:n}=t,i=this.options[e];if(i&&i.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,n)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}class el{static findPosition(e,t){let n=e.getUint16(t+2)+2,i="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,r=t+i,o=n-i;return{offset:t,length:n,headerLength:i,start:r,size:o,end:r+o}}static parse(e,t={}){return new this(e,new ee({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof T?e:new T(e)}constructor(e,t={},n){m(this,"errors",[]),m(this,"raw",new Map),m(this,"handleError",e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)}),this.chunk=this.normalizeInput(e),this.file=n,this.type=this.constructor.type,this.globalOptions=this.options=t,this.localOptions=t[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let n=z.get(t),i=V.get(t),r=U.get(t),o=this.options[t],s=o.reviveValues&&!!n,a=o.translateValues&&!!i,l=o.translateKeys&&!!r,u={};for(let[t,o]of e)s&&n.has(t)?o=n.get(t)(o):a&&i.has(t)&&(o=this.translateValue(o,i.get(t))),l&&r.has(t)&&(t=r.get(t)||t),u[t]=o;return u}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}m(el,"headerLength",4),m(el,"type",void 0),m(el,"multiSegment",!1),m(el,"canHandle",()=>!1);class eu extends ea{constructor(...e){super(...e),m(this,"appSegments",[]),m(this,"jpegSegments",[]),m(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(k.keyList())):(e=void 0===e?k.keyList().filter(e=>this.options[e].enabled):e.filter(e=>this.options[e].enabled&&k.has(e)),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}async findAppSegments(e=0,t){this.setupSegmentFinderArgs(t);let{file:n,findAll:i,wanted:r,remaining:o}=this;if(!i&&this.file.chunked&&(i=Array.from(r).some(e=>{let t=k.get(e),n=this.options[e];return t.multiSegment&&n.multiSegment}))&&await this.file.readWhole(),e=this.findAppSegmentsInRange(e,n.byteLength),!this.options.onlyTiff&&n.chunked){let t=!1;for(;o.size>0&&!t&&(n.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:i}=n,r=this.appSegments.some(e=>!this.file.available(e.offset||e.start,e.length||e.size));if(t=e>i&&!r?!await n.readNextChunk(e):!await n.readNextChunk(i),void 0===(e=this.findAppSegmentsInRange(e,n.b
1yteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let n,i,r,o,s,a,{file:l,findAll:u,wanted:c,remaining:h,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e)){var f;if((f=n=l.getUint8(e+1))>=224&&f<=239){if(i=l.getUint16(e+2),(r=function(e,t,n){for(let[i,r]of k)if(r.canHandle(e,t,n))return i}(l,e,i))&&c.has(r)&&(s=(o=k.get(r)).findPosition(l,e),a=d[r],s.type=r,this.appSegments.push(s),!u&&(o.multiSegment&&a.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||h.delete(r)):h.delete(r),0===h.size)))break;d.recordUnknownSegments&&((s=el.findPosition(l,e)).marker=n,this.unknownSegments.push(s)),e+=i+1}else if(192===n||194===n||196===n||219===n||221===n||218===n||254===n){if(i=l.getUint16(e+2),218===n&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:i,marker:n}),e+=i+1}}return e}mergeMultiSegments(){if(!this.appSegments.some(e=>e.multiSegment))return;let e=function(e,t){let n,i,r,o=new Map;for(let s=0;s<e.length;s++)i=(n=e[s])[t],o.has(i)?r=o.get(i):o.set(i,r=[]),r.push(n);return Array.from(o)}(this.appSegments,"type");this.mergedAppSegments=e.map(([e,t])=>{let n=k.get(e,this.options);return n.handleMultiSegments?{type:e,chunk:n.handleMultiSegments(t)}:t[0]})}getSegment(e){return this.appSegments.find(t=>t.type===e)}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}m(eu,"type","jpeg"),A.set("jpeg",eu);let ec=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class eh extends el{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t,n=new Map){let{pick:i,skip:r}=this.options[t],o=(i=new Set(i)).size>0,s=0===r.size,a=this.chunk.getUint16(e);e+=2;for(let l=0;l<a;l++){let a=this.chunk.getUint16(e);if(o){if(i.has(a)&&(n.set(a,this.parseTag(e,a,t)),i.delete(a),0===i.size))break}else!s&&r.has(a)||n.set(a,this.parseTag(e,a,t));e+=12}return n}parseTag(e,t,n){let{chunk:i}=this,r=i.getUint16(e+2),o=i.getUint32(e+4),s=ec[r];if(s*o<=4?e+=8:e=i.getUint32(e+8),(r<1||r>13)&&b(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e}`),e>i.byteLength&&b(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${r}, offset ${e} is outside of chunk size ${i.byteLength}`),1===r)return i.getUint8Array(e,o);if(2===r)return w(i.getString(e,o));if(7===r)return i.getUint8Array(e,o);if(1===o)return this.parseTagValue(r,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(r))(o);for(let n=0;n<o;n++)t[n]=this.parseTagValue(r,e),e+=s;return t}}parseTagValue(e,t){let{chunk:n}=this;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:b(`Invalid tiff type ${e}`)}}}class ed extends eh{static canHandle(e,t){return 225===e.getUint8(t+1)&&0x45786966===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let n=new Map;
1return this[t]=n,this.parseTags(e,t,n),n}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&b("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&b(`IFD0 offset points to outside of file.
2this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`),e.tiff&&await e.ensureChunk(this.ifd0Offset,S(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(34665),this.interopOffset=t.get(40965),this.gpsOffset=t.get(34853),this.xmp=t.get(700),this.iptc=t.get(33723),this.icc=t.get(34675),this.options.sanitize&&(t.delete(34665),t.delete(40965),t.delete(34853),t.delete(700),t.delete(33723),t.delete(34675)),t):void 0}async parseExifBlock(){if(this.exif||(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset))return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,S(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(40965)),this.makerNote=e.get(37500),this.userComment=e.get(37510),this.options.sanitize&&(e.delete(40965),e.delete(37500),e.delete(37510)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let n=e.get(t);n&&1===n.length&&e.set(t,n[0])}async parseGpsBlock(){if(this.gps||(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset))return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",ef(...e.get(2),e.get(1))),e.set("longitude",ef(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(e=!1){if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,n,i={};for(t of G)if(!v(e=this[t]))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(i,n)}else i[t]=n;return this.makerNote&&(i.makerNote=this.makerNote),this.userComment&&(i.userComment=this.userComment),i}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[n,i]of Object.entries(t))this.assignObjectToOutput(e,n,i)}}function ef(e,t,n,i){var r=e+t/60+n/3600;return"S"!==i&&"W"!==i||(r*=-1),r}m(ed,"type","tiff"),m(ed,"headerLength",10),k.set("tiff",ed);var ep=Object.freeze({__proto__:null,default:es,Exifr:er,fileParsers:A,segmentParsers:k,fileReaders:R,tagKeys:U,tagValues:V,tagRevivers:z,createDictionary:F,extendDictionary:B,fetchUrlAsArrayBuffer:L,readBlobAsArrayBuffer:N,chunkedProps:_,otherSegments:W,segments:H,tiffBlocks:G,segmentsAndBlocks:X,tiffExtractables:Y,inheritables:K,allFormatters:q,Options:ee,parse:eo});let em={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},eg=Object.assign({},em,{firstChunkSize:4e4,gps:[1,2,3,4]});async function ey(e){let t=new er(eg);await t.read(e);let n=await t.parse();if(n&&n.gps){let{latitude:e,longitude:t}=n.gps;return{latitude:e,longitude:t}}}let ev=Object.assign({},em,{tiff:!1,ifd1:!0,mergeOutput:!1});async function eb(e){let t=new er(ev);await t.read(e);let n=await t.extractThumbnail();return n&&h?u.from(n):n}async function ew(e){let t=await this.thumbnail(e);if(void 0!==t){let e=new Blob([t]);return URL.createObjectURL(e)}}let eS=Object.assign({},em,{firstChunkSize:4e4,ifd0:[274]});async function eP(e){let t=new er(eS);await t.read(e);let n=await t.parse();if(n&&n.ifd0)return n.ifd0[274]}let ex=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}}),eC=!0,eT=!0;if("object"==typeof navigator){let e=navigator.userAgent;if(e.includes("iPad")||e.includes("iPhone")){let t=e.match(/OS (\d+)_(\d+)/);if(t){let[,e,n]=t;eC=Number(e)+.1*Number(n)<13.4,eT=!1}}else if(e.includes("OS X 10")){let[,t]=e.match(/OS X 10[_.](\d+)/);eC=eT=15>Number(t)}if(e.includes("Chrome/")){let[,t]=e.match(/Chrome\/(\d+)/);eC=eT=81>Number(t)}else if(e.includes("Firefox/")){let[,t]=e.match(/Firefox\/(\d+)/);eC=eT=77>Number(t)}}async function eE(e){let t=await eP(e);return Object.assign({canvas:eC,css:eT},ex[t])}class eO extends T{constructor(...e){super(...e),m(this,"ranges",new eA),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,n){if(0===e&&0===this.byteLength&&n){let e=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(e)}else{let n=e+t;if(n>this.byteLength){let{dataView:e}=this._extend(n);this._swapDataView(e)}}}_extend(e){let t,n=new DataView((t=h?u.allocUnsafe(e):new Uint8Array(e)).buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(e,t,n=!1){return t=t||this._lengthToEnd(e),n&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t,n=!1){n&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class eA{constructor(){m(this,"list",[])}get length(){return this.list.length}add(e,t,n=0){let i=e+t,r=this.list.filter(t=>{var n,r,o,s,a,l;return n=e,r=t.offset,o=i,n<=r&&r<=o||(s=e,a=t.end,l=i,s<=a&&a<=l)});if(r.length>0){e=Math.min(e,...r.map(e=>e.offset)),t=(i=Math.max(i,...r.map(e=>e.end)))-e;let n=r.shift();n.offset=e,n.length=t,n.end=i,this.list=this.list.filter(e=>!r.includes(e))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let n=e+t;return this.list.some(t=>t.offset<=e&&n<=t.end)}}class ek extends eO{constructor(e,t){super(0),m(this,"chunksRead",0),this.input=e,this.options=t}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(e=this.nextChunkOffset){if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,n=await this.readChunk(e,t);return!!n&&n.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}R.set("blob",class extends ek{async readWhole(){this.chunked=!1;let e=await N(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}
vendor: 4,074 bytes, line 2
2async _readChunk(e,t){let n=t?e+t:void 0,i=this.input.slice(e,n),r=await N(i);return this.set(r,e,!0)}});var eR=Object.freeze({__proto__:null,default:ep,Exifr:er,fileParsers:A,segmentParsers:k,fileReaders:R,tagKeys:U,tagValues:V,tagRevivers:z,createDictionary:F,extendDictionary:B,fetchUrlAsArrayBuffer:L,readBlobAsArrayBuffer:N,chunkedProps:_,otherSegments:W,segments:H,tiffBlocks:G,segmentsAndBlocks:X,tiffExtractables:Y,inheritables:K,allFormatters:q,Options:ee,parse:eo,gpsOnlyOptions:eg,gps:ey,thumbnailOnlyOptions:ev,thumbnail:eb,thumbnailUrl:ew,orientationOnlyOptions:eS,orientation:eP,rotations:ex,get rotateCanvas(){return eC},get rotateCss(){return eT},rotation:eE});R.set("url",class extends ek{async readWhole(){this.chunked=!1;let e=await L(this.input);e instanceof ArrayBuffer?this._swapArrayBuffer(e):e instanceof Uint8Array&&this._swapBuffer(e)}async _readChunk(e,t){let n=t?e+t-1:void 0,i=this.options.httpHeaders||{};(e||n)&&(i.range=`bytes=${[e,n].join("-")}`);let r=await p(this.input,{headers:i}),o=await r.arrayBuffer(),s=o.byteLength;if(416!==r.status)return s!==t&&(this.size=e+s),this.set(o,e,!0)}}),T.prototype.getUint64=function(e){let t=this.getUint32(e),n=this.getUint32(e+4);return t<1048575?t<<32|n:(console.warn("Using BigInt because of type 64uint but JS can only handle 53b numbers."),c(t)<<c(32)|c(n))};class eD extends ea{parseBoxes(e=0){let t=[];for(;e<this.file.byteLength-4;){let n=this.parseBoxHead(e);if(t.push(n),0===n.length)break;e+=n.length}return t}parseSubBoxes(e){e.boxes=this.parseBoxes(e.start)}findBox(e,t){return void 0===e.boxes&&this.parseSubBoxes(e),e.boxes.find(e=>e.kind===t)}parseBoxHead(e){let t=this.file.getUint32(e),n=this.file.getString(e+4,4),i=e+8;return 1===t&&(t=this.file.getUint64(e+8),i+=8),{offset:e,length:t,kind:n,start:i}}parseBoxFullHead(e){if(void 0!==e.version)return;let t=this.file.getUint32(e.start);e.version=t>>24,e.start+=4}}class eM extends eD{static canHandle(e,t){if(0!==t)return!1;let n=e.getUint16(2);if(n>50)return!1;let i=16,r=[];for(;i<n;)r.push(e.getString(i,4)),i+=4;return r.includes(this.type)}async parse(){let e=this.file.getUint32(0),t=this.parseBoxHead(e);for(;"meta"!==t.kind;)e+=t.length,await this.file.ensureChunk(e,16),t=this.parseBoxHead(e);await this.file.ensureChunk(t.offset,t.length),this.parseBoxFullHead(t),this.parseSubBoxes(t),this.options.icc.enabled&&await this.findIcc(t),this.options.tiff.enabled&&await this.findExif(t)}async registerSegment(e,t,n){await this.file.ensureChunk(t,n);let i=this.file.subarray(t,n);this.createParser(e,i)}async findIcc(e){let t=this.findBox(e,"iprp");if(void 0===t)return;let n=this.findBox(t,"ipco");if(void 0===n)return;let i=this.findBox(n,"colr");void 0!==i&&await this.registerSegment("icc",i.offset+12,i.length)}async findExif(e){let t=this.findBox(e,"iinf");if(void 0===t)return;let n=this.findBox(e,"iloc");if(void 0===n)return;let i=this.findExifLocIdInIinf(t),r=this.findExtentInIloc(n,i);if(void 0===r)return;let[o,s]=r;await this.file.ensureChunk(o,s);let a=4+this.file.getUint32(o);o+=a,s-=a,await this.registerSegment("tiff",o,s)}findExifLocIdInIinf(e){this.parseBoxFullHead(e);let t,n,i,r=e.start,o=this.file.getUint16(r);for(r+=2;o--;){if(t=this.parseBoxHead(r),this.parseBoxFullHead(t),n=t.start,t.version>=2&&(i=3===t.version?4:2,"Exif"===this.file.getString(n+i+2,4)))return this.file.getUintBytes(n,i);r+=t.length}}get8bits(e){let t=this.file.getUint8(e);return[t>>4,15&t]}findExtentInIloc(e,t){this.parseBoxFullHead(e);let n=e.start,[i,r]=this.get8bits(n++),[o,s]=this.get8bits(n++),a=2===e.version?4:2,l=2*(1===e.version||2===e.version),u=s+i+r,c=2===e.version?4:2,h=this.file.getUintBytes(n,c);for(n+=c;h--;){let e=this.file.getUintBytes(n,a);n+=a+l+2+o;let c=this.file.getUint16(n);if(n+=2,e===t)return c>1&&console.warn("ILOC box has more than one extent but we're only processing one\nPlease create an issue at https://github.com/MikeKovarik/exifr with this file"),[this.file.getUintBytes(n+s,i),this.file.getUintBytes(n+s+i,r)];n+=c*u}}}class eI extends eM{}m(eI,"type","heic");class eL extends eM{}
vendor: 5,825 bytes, line 2
2m(eL,"type","avif"),A.set("heic",eI),A.set("avif",eL),F(U,["ifd0","ifd1"],[[256,"ImageWidth"],[257,"ImageHeight"],[258,"BitsPerSample"],[259,"Compression"],[262,"PhotometricInterpretation"],[270,"ImageDescription"],[271,"Make"],[272,"Model"],[273,"StripOffsets"],[274,"Orientation"],[277,"SamplesPerPixel"],[278,"RowsPerStrip"],[279,"StripByteCounts"],[282,"XResolution"],[283,"YResolution"],[284,"PlanarConfiguration"],[296,"ResolutionUnit"],[301,"TransferFunction"],[305,"Software"],[306,"ModifyDate"],[315,"Artist"],[316,"HostComputer"],[317,"Predictor"],[318,"WhitePoint"],[319,"PrimaryChromaticities"],[513,"ThumbnailOffset"],[514,"ThumbnailLength"],[529,"YCbCrCoefficients"],[530,"YCbCrSubSampling"],[531,"YCbCrPositioning"],[532,"ReferenceBlackWhite"],[700,"ApplicationNotes"],[33432,"Copyright"],[33723,"IPTC"],[34665,"ExifIFD"],[34675,"ICC"],[34853,"GpsIFD"],[330,"SubIFD"],[40965,"InteropIFD"],[40091,"XPTitle"],[40092,"XPComment"],[40093,"XPAuthor"],[40094,"XPKeywords"],[40095,"XPSubject"]]),F(U,"exif",[[33434,"ExposureTime"],[33437,"FNumber"],[34850,"ExposureProgram"],[34852,"SpectralSensitivity"],[34855,"ISO"],[34858,"TimeZoneOffset"],[34859,"SelfTimerMode"],[34864,"SensitivityType"],[34865,"StandardOutputSensitivity"],[34866,"RecommendedExposureIndex"],[34867,"ISOSpeed"],[34868,"ISOSpeedLatitudeyyy"],[34869,"ISOSpeedLatitudezzz"],[36864,"ExifVersion"],[36867,"DateTimeOriginal"],[36868,"CreateDate"],[36873,"GooglePlusUploadCode"],[36880,"OffsetTime"],[36881,"OffsetTimeOriginal"],[36882,"OffsetTimeDigitized"],[37121,"ComponentsConfiguration"],[37122,"CompressedBitsPerPixel"],[37377,"ShutterSpeedValue"],[37378,"ApertureValue"],[37379,"BrightnessValue"],[37380,"ExposureCompensation"],[37381,"MaxApertureValue"],[37382,"SubjectDistance"],[37383,"MeteringMode"],[37384,"LightSource"],[37385,"Flash"],[37386,"FocalLength"],[37393,"ImageNumber"],[37394,"SecurityClassification"],[37395,"ImageHistory"],[37396,"SubjectArea"],[37500,"MakerNote"],[37510,"UserComment"],[37520,"SubSecTime"],[37521,"SubSecTimeOriginal"],[37522,"SubSecTimeDigitized"],[37888,"AmbientTemperature"],[37889,"Humidity"],[37890,"Pressure"],[37891,"WaterDepth"],[37892,"Acceleration"],[37893,"CameraElevationAngle"],[40960,"FlashpixVersion"],[40961,"ColorSpace"],[40962,"ExifImageWidth"],[40963,"ExifImageHeight"],[40964,"RelatedSoundFile"],[41483,"FlashEnergy"],[41486,"FocalPlaneXResolution"],[41487,"FocalPlaneYResolution"],[41488,"FocalPlaneResolutionUnit"],[41492,"SubjectLocation"],[41493,"ExposureIndex"],[41495,"SensingMethod"],[41728,"FileSource"],[41729,"SceneType"],[41730,"CFAPattern"],[41985,"CustomRendered"],[41986,"ExposureMode"],[41987,"WhiteBalance"],[41988,"DigitalZoomRatio"],[41989,"FocalLengthIn35mmFormat"],[41990,"SceneCaptureType"],[41991,"GainControl"],[41992,"Contrast"],[41993,"Saturation"],[41994,"Sharpness"],[41996,"SubjectDistanceRange"],[42016,"ImageUniqueID"],[42032,"OwnerName"],[42033,"SerialNumber"],[42034,"LensInfo"],[42035,"LensMake"],[42036,"LensModel"],[42037,"LensSerialNumber"],[42080,"CompositeImage"],[42081,"CompositeImageCount"],[42082,"CompositeImageExposureTimes"],[42240,"Gamma"],[59932,"Padding"],[59933,"OffsetSchema"],[65e3,"OwnerName"],[65001,"SerialNumber"],[65002,"Lens"],[65100,"RawFile"],[65101,"Converter"],[65102,"WhiteBalance"],[65105,"Exposure"],[65106,"Shadows"],[65107,"Brightness"],[65108,"Contrast"],[65109,"Saturation"],[65110,"Sharpness"],[65111,"Smoothness"],[65112,"MoireFilter"],[40965,"InteropIFD"]]),F(U,"gps",[[0,"GPSVersionID"],[1,"GPSLatitudeRef"],[2,"GPSLatitude"],[3,"GPSLongitudeRef"],[4,"GPSLongitude"],[5,"GPSAltitudeRef"],[6,"GPSAltitude"],[7,"GPSTimeStamp"],[8,"GPSSatellites"],[9,"GPSStatus"],[10,"GPSMeasureMode"],[11,"GPSDOP"],[12,"GPSSpeedRef"],[13,"GPSSpeed"],[14,"GPSTrackRef"],[15,"GPSTrack"],[16,"GPSImgDirectionRef"],[17,"GPSImgDirection"],[18,"GPSMapDatum"],[19,"GPSDestLatitudeRef"],[20,"GPSDestLatitude"],[21,"GPSDestLongitudeRef"],[22,"GPSDestLongitude"],[23,"GPSDestBearingRef"],[24,"GPSDestBearing"],[25,"GPSDestDistanceRef"],[26,"GPSDestDistance"],[27,"GPSProcessingMethod"],[28,"GPSAreaInformation"],[29,"GPSDateStamp"],[30,"GPSDifferential"],[31,"GPSHPositioningError"]]),F(V,["ifd0","ifd1"],[[274,{1:"Horizontal (normal)",2:"Mirror horizontal",3:"Rotate 180",4:"Mirror vertical",5:"Mirror horizontal and rotate 270 CW",6:"Rotate 90 CW",7:"Mirror horizontal and rotate 90 CW",8:"Rotate 270 CW"}],[296,{1:"None",2:"inches",3:"cm"}]]);let eN=F(V,"exif",[[34850,{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"}],[37121,{0:"-",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}],[37383,{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"}],[37384,{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"}],[37385,{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flas
2h fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"}],[41495,{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"}],[41728,{1:"Film Scanner",2:"Reflection Print Scanner",3:"Digital Camera"}],[41729,{1:"Directly photographed"}],[41985,{0:"Normal",1:"Custom",2:"HDR (no original saved)",3:"HDR (original saved)",4:"Original (for HDR)",6:"Panorama",7:"Portrait HDR",8:"Portrait"}],[41986,{0:"Auto",1:"Manual",2:"Auto bracket"}],[41987,{0:"Auto",1:"Manual"}],[41990,{0:"Standard",1:"Landscape",2:"Portrait",3:"Night",4:"Other"}],[41991,{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"}],[41996,{0:"Unknown",1:"Macro",2:"Close",3:"Distant"}],[42080,{0:"Unknown",1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}]]),ej={1:"No absolute unit of measurement",2:"Inch",3:"Centimeter"};eN.set(37392,ej),eN.set(41488,ej);let eF={0:"Normal",1:"Low",2:"High"};function eB(e){return"object"==typeof e&&void 0!==e.length?e[0]:e}function eU(e){let t=Array.from(e).slice(1);return t[1]>15&&(t=t.map(e=>String.fromCharCode(e))),"0"!==t[2]&&0!==t[2]||t.pop(),t.join(".")}function eV(e){if("string"==typeof e){var[t,n,i,r,o,s]=e.trim().split(/[-: ]/g).map(Number),a=new Date(t,n-1,i);return Number.isNaN(r)||Number.isNaN(o)||Number.isNaN(s)||(a.setHours(r),a.setMinutes(o),a.setSeconds(s)),Number.isNaN(+a)?e:a}}function ez(e){var t,n;if("string"==typeof e)return e;let i=[];if(0===e[1]&&0===e[e.length-1])for(let n=0;n<e.length;n+=2){i.push((t=e[n+1],t<<8|e[n]))}else for(let t=0;t<e.length;t+=2){i.push((n=e[t],n<<8|e[t+1]))}return w(String.fromCodePoint(...i))}eN.set(41992,eF),eN.set(41993,eF),eN.set(41994,eF),F(z,["ifd0","ifd1"],[[50827,function(e){return"string"!=typeof e?C(e):e}],[306,eV],[40091,ez],[40092,ez],[40093,ez],[40094,ez],[40095,ez]]),F(z,"exif",[[40960,eU],[36864,eU],[36867,eV],[36868,eV],[40962,eB],[40963,eB]]),F(z,"gps",[[0,e=>Array.from(e).join(".")],[7,e=>Array.from(e).join(":")]]);class e_ extends el{static canHandle(e,t){return 225===e.getUint8(t+1)&&0x68747470===e.getUint32(t+4)&&"http://ns.adobe.com/"===e.getString(t+4,20)}static headerLength(e,t){return"http://ns.adobe.com/xmp/extension/"===e.getString(t+4,34)?79:33}static findPosition(e,t){let n=super.findPosition(e,t);return n.multiSegment=n.extended=79===n.headerLength,n.multiSegment?(n.chunkCount=e.getUint8(t+72),n.chunkNumber=e.getUint8(t+76),0!==e.getUint8(t+77)&&n.chunkNumber++):(n.chunkCount=1/0,n.chunkNumber=-1),n}static handleMultiSegments(e){return e.map(e=>e.chunk.getString()).join("")}normalizeInput(e){return"string"==typeof e?e:T.from(e).getString()}parse(e=this.chunk){if(!this.localOptions.parse)return e;e=function(e){let t={},n={};for(let e of eJ)t[e]=[],n[e]=0;return e.replace(eZ,(e,i,r)=>{if("<"===i){let i=++n[r];return t[r].push(i),`${e}#${i}`}return`${e}#${t[r].pop()}`})}(e);let t=eH.findAll(e,"rdf","Description");0===t.length&&t.push(new eH("rdf","Description",void 0,e));let n,i={};for(let e of t)for(let t of e.properties)n=eK(t.ns,i),eG(t,n);for(let e in i)void 0===(i[e]=g(i[e]))&&delete i[e];return g(i)}assignToOutput(e,t){if(this.localOptions.parse)for(let[n,i]of Object.entries(t))switch(n){case"tiff":this.assignObjectToOutput(e,"ifd0",i);break;case"exif":this.assignObjectToOutput(e,"exif",i);break;case"xmlns":break;default:this.assignObjectToOutput(e,n,i)}else e.xmp=t}}m(e_,"type","xmp"),m(e_,"multiSegment",!0),k.set("xmp",e_);class eW{static findAll(e){return eq(e,/([a-zA-Z0-9-]+):([a-zA-Z0-9-]+)=("[^"]*"|'[^']*')/gm).map(eW.unpackMatch)}static unpackMatch(e){let t=e[1],n=e[2],i=e[3].slice(1,-1);return new eW(t,n,i=e$(i))}constructor(e,t,n){this.ns=e,this.name=t,this.value=n}serialize(){return this.value}}class eH{static findAll(e,t,n){if(void 0!==t||void 0!==n){t=t||"[\\w\\d-]+",n=n||"[\\w\\d-]+";var i=RegExp(`<(${t}):(${n})(#\\d+)?((\\s+?[\\w\\d-:]+=("[^"]*"|'[^']*'))*\\s*)(\\/>|>([\\s\\S]*?)<\\/\\1:\\2\\3>)`,"gm")}else i=/<([\w\d-]+):([\w\d-]+)(#\d+)?((\s+?[\w\d-:]+=("[^"]*"|'[^']*'))*\s*)(\/>|>([\s\S]*?)<\/\1:\2\3>)/gm;return eq(e,i).map(eH.unpackMatch)}static unpackMatch(e){return new eH(e[1],e[2],e[4],e[8])}constructor(e,t,n,i){this.ns=e,this.name=t,this.attrString=n,this.innerXml=i,this.attrs=eW.findAll(n),this.children=eH.findAll(i),this.value=0===this.children.length?e$(i):void 0,this.properties=[...this.attrs,...this.children]}get isPrimitive(){return void 0!==this.value&&0===this.attrs.length&&0===this.children.length}get isListContainer(){return 1===this.children.length&&this.children[0].isList}get isList(){let{ns:e,name:t}=this;return"rdf"===e&&("Seq"===t||"Bag"===t||"Alt"===t)}get isListItem(){return"rdf"===this.ns&&"li"===this.name}serialize(){if(0===this.properties.length&&void 0===this.value)return;if(this.isPrimitive)return this.value;if(this.isListContainer)return this.children[0].serialize();if(this.isList)return eY(this.children.map(eX));if(this.isListItem&&1===this.children.length&&0===this.attrs.length)return this.children[0].serialize();let e={};for(let t of this.properties)eG(t,e);return void 0!==this.value&&(e.value=this.value),g(e)}}function eG(e,t){let n=e.serialize();void 0!==n&&(t[e.name]=n)}var eX=e=>e.serialize(),eY=e=>1===e.length?e[0]:e,eK=(e,t)=>t[e]?t[e]:t[e]={};function eq(e,t){let n,i=[];if(!e)return i;for(;null!==(n=t.exec(e));)i.push(n);return i}function e$(e){if(null==e||"null"===e||"undefined"===e||""===e||""===e.trim())return;let t=Number(e);if(!Number.isNaN(t))return t;let n=e.toLowerCase();return"true"===n||"false"!==n&&e.trim()}let eJ=["rdf:li","rdf:Seq","rdf:Bag","rdf:Alt","rdf:Description"],eZ=RegExp(`(<|\\/)(${eJ.join("|")})`,"g");
2var eQ=Object.freeze({__proto__:null,default:eR,Exifr:er,fileParsers:A,segmentParsers:k,fileReaders:R,tagKeys:U,tagValues:V,tagRevivers:z,createDictionary:F,extendDictionary:B,fetchUrlAsArrayBuffer:L,readBlobAsArrayBuffer:N,chunkedProps:_,otherSegments:W,segments:H,tiffBlocks:G,segmentsAndBlocks:X,tiffExtractables:Y,inheritables:K,allFormatters:q,Options:ee,parse:eo,gpsOnlyOptions:eg,gps:ey,thumbnailOnlyOptions:ev,thumbnail:eb,thumbnailUrl:ew,orientationOnlyOptions:eS,orientation:eP,rotations:ex,get rotateCanvas(){return eC},get rotateCss(){return eT},rotation:eE});let e0=f("fs",e=>e.promises);R.set("fs",class extends ek{async readWhole(){this.chunked=!1,this.fs=await e0;let e=await this.fs.readFile(this.input);this._swapBuffer(e)}async readChunked(){this.chunked=!0,this.fs=await e0,await this.open(),await this.readChunk(0,this.options.firstChunkSize)}async open(){void 0===this.fh&&(this.fh=await this.fs.open(this.input,"r"),this.size=(await this.fh.stat(this.input)).size)}async _readChunk(e,t){void 0===this.fh&&await this.open(),e+t>this.size&&(t=this.size-e);var n=this.subarray(e,t,!0);return await this.fh.read(n.dataView,0,t,e),n}async close(){if(this.fh){let e=this.fh;this.fh=void 0,await e.close()}}}),R.set("base64",class extends ek{constructor(...e){super(...e),this.input=this.input.replace(/^data:([^;]+);base64,/gim,""),this.size=this.input.length/4*3,this.input.endsWith("==")?this.size-=2:this.input.endsWith("=")&&(this.size-=1)}async _readChunk(e,t){let n,i,r=this.input;void 0===e?(e=0,n=0,i=0):(n=4*Math.floor(e/3),i=e-n/4*3),void 0===t&&(t=this.size);let o=n+4*Math.ceil((e+t)/3);r=r.slice(n,o);let s=Math.min(t,this.size-e);if(h){let t=u.from(r,"base64").slice(i,i+s);return this.set(t,e,!0)}{let t=this.subarray(e,s,!0),n=atob(r),o=t.toUint8();for(let e=0;e<s;e++)o[e]=n.charCodeAt(i+e);return t}}});class e1 extends ea{static canHandle(e,t){return 18761===t||19789===t}extendOptions(e){let{ifd0:t,xmp:n,iptc:i,icc:r}=e;n.enabled&&t.deps.add(700),i.enabled&&t.deps.add(33723),r.enabled&&t.deps.add(34675),t.finalizeFilters()}async parse(){let{tiff:e,xmp:t,iptc:n,icc:i}=this.options;if(e.enabled||t.enabled||n.enabled||i.enabled){let e=Math.max(S(this.options),this.options.chunkSize);await this.file.ensureChunk(0,e),this.createParser("tiff",this.file),this.parsers.tiff.parseHeader(),await this.parsers.tiff.parseIfd0Block(),this.adaptTiffPropAsSegment("xmp"),this.adaptTiffPropAsSegment("iptc"),this.adaptTiffPropAsSegment("icc")}}adaptTiffPropAsSegment(e){if(this.parsers.tiff[e]){let t=this.parsers.tiff[e];this.injectSegment(e,t)}}}m(e1,"type","tiff"),A.set("tiff",e1);let e5=f("zlib"),e2=["ihdr","iccp","text","itxt","exif"];class e3 extends ea{constructor(...e){super(...e),m(this,"catchError",e=>this.errors.push(e)),m(this,"metaChunks",[]),m(this,"unknownChunks",[])}static canHandle(e,t){return 35152===t&&0x89504e47===e.getUint32(0)&&0xd0a1a0a===e.getUint32(4)}async parse(){let{file:e}=this;await this.findPngChunksInRange(8,e.byteLength),await this.readSegments(this.metaChunks),this.findIhdr(),this.parseTextChunks(),await this.findExif().catch(this.catchError),await this.findXmp().catch(this.catchError),await this.findIcc().catch(this.catchError)}async findPngChunksInRange(e,t){let{file:n}=this;for(;e<t;){let t=n.getUint32(e),i=n.getUint32(e+4),r=n.getString(e+4,4).toLowerCase(),o=t+4+4+4,s={type:r,offset:e,length:o,start:e+4+4,size:t,marker:i};e2.includes(r)?this.metaChunks.push(s):this.unknownChunks.push(s),e+=o}}parseTextChunks(){for(let e of this.metaChunks.filter(e=>"text"===e.type)){let[t,n]=this.file.getString(e.start,e.size).split("\0");this.injectKeyValToIhdr(t,n)}}injectKeyValToIhdr(e,t){let n=this.parsers.ihdr;n&&n.raw.set(e,t)}findIhdr(){let e=this.metaChunks.find(e=>"ihdr"===e.type);e&&!1!==this.options.ihdr.enabled&&this.createParser("ihdr",e.chunk)}async findExif(){let e=this.metaChunks.find(e=>"exif"===e.type);e&&this.injectSegment("tiff",e.chunk)}async findXmp(){for(let e of this.metaChunks.filter(e=>"itxt"===e.type))"XML:com.adobe.xmp"===e.chunk.getString(0,17)&&this.injectSegment("xmp",e.chunk)}async findIcc(){let e=this.metaChunks.find(e=>"iccp"===e.type);if(!e)return;let{chunk:t}=e,n=t.getUint8Array(0,81),i=0;for(;i<80&&0!==n[i];)i++;let r=i+2,o=t.getString(0,i);if(this.injectKeyValToIhdr("ProfileName",o),l){let e=await e5,n=t.getUint8Array(r);
2n=e.inflateSync(n),this.injectSegment("icc",n)}}}m(e3,"type","png"),A.set("png",e3),F(U,"interop",[[1,"InteropIndex"],[2,"InteropVersion"],[4096,"RelatedImageFileFormat"],[4097,"RelatedImageWidth"],[4098,"RelatedImageHeight"]]),B(U,"ifd0",[[11,"ProcessingSoftware"],[254,"SubfileType"],[255,"OldSubfileType"],[263,"Thresholding"],[264,"CellWidth"],[265,"CellLength"],[266,"FillOrder"],[269,"DocumentName"],[280,"MinSampleValue"],[281,"MaxSampleValue"],[285,"PageName"],[286,"XPosition"],[287,"YPosition"],[290,"GrayResponseUnit"],[297,"PageNumber"],[321,"HalftoneHints"],[322,"TileWidth"],[323,"TileLength"],[332,"InkSet"],[337,"TargetPrinter"],[18246,"Rating"],[18249,"RatingPercent"],[33550,"PixelScale"],[34264,"ModelTransform"],[34377,"PhotoshopSettings"],[50706,"DNGVersion"],[50707,"DNGBackwardVersion"],[50708,"UniqueCameraModel"],[50709,"LocalizedCameraModel"],[50736,"DNGLensInfo"],[50739,"ShadowScale"],[50740,"DNGPrivateData"],[33920,"IntergraphMatrix"],[33922,"ModelTiePoint"],[34118,"SEMInfo"],[34735,"GeoTiffDirectory"],[34736,"GeoTiffDoubleParams"],[34737,"GeoTiffAsciiParams"],[50341,"PrintIM"],[50721,"ColorMatrix1"],[50722,"ColorMatrix2"],[50723,"CameraCalibration1"],[50724,"CameraCalibration2"],[50725,"ReductionMatrix1"],[50726,"ReductionMatrix2"],[50727,"AnalogBalance"],[50728,"AsShotNeutral"],[50729,"AsShotWhiteXY"],[50730,"BaselineExposure"],[50731,"BaselineNoise"],[50732,"BaselineSharpness"],[50734,"LinearResponseLimit"],[50735,"CameraSerialNumber"],[50741,"MakerNoteSafety"],[50778,"CalibrationIlluminant1"],[50779,"CalibrationIlluminant2"],[50781,"RawDataUniqueID"],[50827,"OriginalRawFileName"],[50828,"OriginalRawFileData"],[50831,"AsShotICCProfile"],[50832,"AsShotPreProfileMatrix"],[50833,"CurrentICCProfile"],[50834,"CurrentPreProfileMatrix"],[50879,"ColorimetricReference"],[50885,"SRawType"],[50898,"PanasonicTitle"],[50899,"PanasonicTitle2"],[50931,"CameraCalibrationSig"],[50932,"ProfileCalibrationSig"],[50933,"ProfileIFD"],[50934,"AsShotProfileName"],[50936,"ProfileName"],[50937,"ProfileHueSatMapDims"],[50938,"ProfileHueSatMapData1"],[50939,"ProfileHueSatMapData2"],[50940,"ProfileToneCurve"],[50941,"ProfileEmbedPolicy"],[50942,"ProfileCopyright"],[50964,"ForwardMatrix1"],[50965,"ForwardMatrix2"],[50966,"PreviewApplicationName"],[50967,"PreviewApplicationVersion"],[50968,"PreviewSettingsName"],[50969,"PreviewSettingsDigest"],[50970,"PreviewColorSpace"],[50971,"PreviewDateTime"],[50972,"RawImageDigest"],[50973,"OriginalRawFileDigest"],[50981,"ProfileLookTableDims"],[50982,"ProfileLookTableData"],[51043,"TimeCodes"],[51044,"FrameRate"],[51058,"TStop"],[51081,"ReelName"],[51089,"OriginalDefaultFinalSize"],[51090,"OriginalBestQualitySize"],[51091,"OriginalDefaultCropSize"],[51105,"CameraLabel"],[51107,"ProfileHueSatMapEncoding"],[51108,"ProfileLookTableEncoding"],[51109,"BaselineExposureOffset"],[51110,"DefaultBlackRender"],[51111,"NewRawImageDigest"],[51112,"RawToPreviewGain"]]);let e4=[[273,"StripOffsets"],[279,"StripByteCounts"],[288,"FreeOffsets"],[289,"FreeByteCounts"],[291,"GrayResponseCurve"],[292,"T4Options"],[293,"T6Options"],[300,"ColorResponseUnit"],[320,"ColorMap"],[324,"TileOffsets"],[325,"TileByteCounts"],[326,"BadFaxLines"],[327,"CleanFaxData"],[328,"ConsecutiveBadFaxLines"],[330,"SubIFD"],[333,"InkNames"],[334,"NumberofInks"],[336,"DotRange"],[338,"ExtraSamples"],[339,"SampleFormat"],[340,"SMinSampleValue"],[341,"SMaxSampleValue"],[342,"TransferRange"],[343,"ClipPath"],[344,"XClipPathUnits"],[345,"YClipPathUnits"],[346,"Indexed"],[347,"JPEGTables"],[351,"OPIProxy"],[400,"GlobalParametersIFD"],[401,"ProfileType"],[402,"FaxProfile"],[403,"CodingMethods"],[404,"VersionYear"],[405,"ModeNumber"],[433,"Decode"],[434,"DefaultImageColor"],[435,"T82Options"],[437,"JPEGTables"],[512,"JPEGProc"],[515,"JPEGRestartInterval"],[517,"JPEGLosslessPredictors"],[518,"JPEGPointTransforms"],[519,"JPEGQTables"],[520,"JPEGDCTables"],[521,"JPEGACTables"],[559,"StripRowCounts"],[999,"USPTOMiscellaneous"],[18247,"XP_DIP_XML"],[18248,"StitchInfo"],[28672,"SonyRawFileType"],[28688,"SonyToneCurve"],[28721,"VignettingCorrection"],[28722,"VignettingCorrParams"],[28724,"ChromaticAberrationCorrection"],[28725,"ChromaticAberrationCorrParams"],[28726,"DistortionCorrection"],[28727,"DistortionCorrParams"],[29895,"SonyCropTopLeft"],[29896,"SonyCropSize"],[32781,"ImageID"],[32931,"WangTag1"],[32932,"WangAnnotation"],[32933,"WangTag3"],[32934,"WangTag4"],[32953,"ImageReferencePoints"],[32954,"RegionXformTackPoint"],[32955,"WarpQuadrilateral"],[32956,"AffineTransformMat"],[32995,"Matteing"],[32996,"DataType"],[32997,"ImageDepth"],[32998,"TileDepth"],[33300,"ImageFullWidth"],[33301,"ImageFullHeight"],[33302,"TextureFormat"],[33303,"WrapModes"],[33304,"FovCot"],[33305,"MatrixWorldToScreen"],[33306,"MatrixWorldToCamera"],[33405,"Model2"],[33421,"CFARepeatPatternDim"],[33422,"CFAPattern2"],[33423,"BatteryLevel"],[33424,"KodakIFD"],[33445,"MDFileTag"],[33446,"MDScalePixel"],[33447,"MDColorTable"],[33448,"MDLabName"],[33449,"MDSampleInfo"],[33450,"MDPrepDate"],[33451,"MDPrepTime"],[33452,"MDFileUnits"],[33589,"AdventScale"],[33590,"AdventRevision"],[33628,"UIC1Tag"],[33629,"UIC2Tag"],[33630,"UIC3Tag"],[33631,"UIC4Tag"],[33918,"IntergraphPacketData"],[33919,"IntergraphFlagRegisters"],[33921,"INGRReserved"],[34016,"Site"],[34017,"ColorSequence"],[34018,"IT8Header"],[34019,"RasterPadding"],[34020,"BitsPerRunLength"],[34021,"BitsPerExtendedRunLength"],[34022,"ColorTable"],[34023,"ImageColorIndicator"],[34024,"Backgroun
2dColorIndicator"],[34025,"ImageColorValue"],[34026,"BackgroundColorValue"],[34027,"PixelIntensityRange"],[34028,"TransparencyIndicator"],[34029,"ColorCharacterization"],[34030,"HCUsage"],[34031,"TrapIndicator"],[34032,"CMYKEquivalent"],[34152,"AFCP_IPTC"],[34232,"PixelMagicJBIGOptions"],[34263,"JPLCartoIFD"],[34306,"WB_GRGBLevels"],[34310,"LeafData"],[34687,"TIFF_FXExtensions"],[34688,"MultiProfiles"],[34689,"SharedData"],[34690,"T88Options"],[34732,"ImageLayer"],[34750,"JBIGOptions"],[34856,"Opto-ElectricConvFactor"],[34857,"Interlace"],[34908,"FaxRecvParams"],[34909,"FaxSubAddress"],[34910,"FaxRecvTime"],[34929,"FedexEDR"],[34954,"LeafSubIFD"],[37387,"FlashEnergy"],[37388,"SpatialFrequencyResponse"],[37389,"Noise"],[37390,"FocalPlaneXResolution"],[37391,"FocalPlaneYResolution"],[37392,"FocalPlaneResolutionUnit"],[37397,"ExposureIndex"],[37398,"TIFF-EPStandardID"],[37399,"SensingMethod"],[37434,"CIP3DataFile"],[37435,"CIP3Sheet"],[37436,"CIP3Side"],[37439,"StoNits"],[37679,"MSDocumentText"],[37680,"MSPropertySetStorage"],[37681,"MSDocumentTextPosition"],[37724,"ImageSourceData"],[40965,"InteropIFD"],[40976,"SamsungRawPointersOffset"],[40977,"SamsungRawPointersLength"],[41217,"SamsungRawByteOrder"],[41218,"SamsungRawUnknown"],[41484,"SpatialFrequencyResponse"],[41485,"Noise"],[41489,"ImageNumber"],[41490,"SecurityClassification"],[41491,"ImageHistory"],[41494,"TIFF-EPStandardID"],[41995,"DeviceSettingDescription"],[42112,"GDALMetadata"],[42113,"GDALNoData"],[44992,"ExpandSoftware"],[44993,"ExpandLens"],[44994,"ExpandFilm"],[44995,"ExpandFilterLens"],[44996,"ExpandScanner"],[44997,"ExpandFlashLamp"],[46275,"HasselbladRawImage"],[48129,"PixelFormat"],[48130,"Transformation"],[48131,"Uncompressed"],[48132,"ImageType"],[48256,"ImageWidth"],[48257,"ImageHeight"],[48258,"WidthResolution"],[48259,"HeightResolution"],[48320,"ImageOffset"],[48321,"ImageByteCount"],[48322,"AlphaOffset"],[48323,"AlphaByteCount"],[48324,"ImageDataDiscard"],[48325,"AlphaDataDiscard"],[50215,"OceScanjobDesc"],[50216,"OceApplicationSelector"],[50217,"OceIDNumber"],[50218,"OceImageLogic"],[50255,"Annotations"],[50459,"HasselbladExif"],[50547,"OriginalFileName"],[50560,"USPTOOriginalContentType"],[50656,"CR2CFAPattern"],[50710,"CFAPlaneColor"],[50711,"CFALayout"],[50712,"LinearizationTable"],[50713,"BlackLevelRepeatDim"],[50714,"BlackLevel"],[50715,"BlackLevelDeltaH"],[50716,"BlackLevelDeltaV"],[50717,"WhiteLevel"],[50718,"DefaultScale"],[50719,"DefaultCropOrigin"],[50720,"DefaultCropSize"],[50733,"BayerGreenSplit"],[50737,"ChromaBlurRadius"],[50738,"AntiAliasStrength"],[50752,"RawImageSegmentation"],[50780,"BestQualityScale"],[50784,"AliasLayerMetadata"],[50829,"ActiveArea"],[50830,"MaskedAreas"],[50935,"NoiseReductionApplied"],[50974,"SubTileBlockSize"],[50975,"RowInterleaveFactor"],[51008,"OpcodeList1"],[51009,"OpcodeList2"],[51022,"OpcodeList3"],[51041,"NoiseProfile"],[51114,"CacheVersion"],[51125,"DefaultUserCrop"],[51157,"NikonNEFInfo"],[65024,"KdcIFD"]];B(U,"ifd0",e4),B(U,"exif",e4),F(V,"gps",[[23,{M:"Magnetic North",T:"True North"}],[25,{K:"Kilometers",M:"Miles",N:"Nautical Miles"}]]);class e8 extends el{static canHandle(e,t){return 224===e.getUint8(t+1)&&0x4a464946===e.getUint32(t+4)&&0===e.getUint8(t+8)}parse(){return this.parseTags(),this.translate(),this.output}parseTags(){this.raw=new Map([[0,this.chunk.getUint16(0)],[2,this.chunk.getUint8(2)],[3,this.chunk.getUint16(3)],[5,this.chunk.getUint16(5)],[7,this.chunk.getUint8(7)],[8,this.chunk.getUint8(8)]])}}m(e8,"type","jfif"),m(e8,"headerLength",9),k.set("jfif",e8),F(U,"jfif",[[0,"JFIFVersion"],[2,"ResolutionUnit"],[3,"XResolution"],[5,"YResolution"],[7,"ThumbnailWidth"],[8,"ThumbnailHeight"]]);class e6 extends el{parse(){return this.parseTags(),this.translate(),this.output}parseTags(){this.raw=new Map([[0,this.chunk.getUint32(0)],[4,this.chunk.getUint32(4)],[8,this.chunk.getUint8(8)],[9,this.chunk.getUint8(9)],[10,this.chunk.getUint8(10)],[11,this.chunk.getUint8(11)],[12,this.chunk.getUint8(12)],...Array.from(this.raw)])}}m(e6,"type","ihdr"),k.set("ihdr",e6),F(U,"ihdr",[[0,"ImageWidth"],[4,"ImageHeight"],[8,"BitDepth"],[9,"ColorType"],[10,"Compression"],[11,"Filter"],[12,"Interlace"]]),F(V,"ihdr",[[9,{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha",DEFAULT:"Unknown"}],[10,{0:"Deflate/Inflate",DEFAULT:"Unknown"}],[11,{0:"Adaptive",DEFAULT:"Unknown"}],[12,{0:"Noninterlaced",1:"Adam7 Interlace",DEFAULT:"Unknown"}]]);class e7 extends el{static canHandle(e,t){return 226===e.getUint8(t+1)&&0x4943435f===e.getUint32(t+4)}static findPosition(e,t){let n=super.findPosition(e,t);return n.chunkNumber=e.getUint8(t+16),n.chunkCount=e.getUint8(t+17),n.multiSegment=n.chunkCount>1,n}static handleMultiSegments(e){return new T(function(e){let t=e[0].constructor,n=0;for(let t of e)n+=t.length;let i=new t(n),r=0;for(let t of e)i.set(t,r),r+=t.length;return i}(e.map(e=>e.chunk.toUint8())))}parse(){return this.raw=new Map,this.parseHeader(),this.parseTags(),this.translate(),this.output}parseHeader(){let{raw:e}=this;for(let[t,n]of(this.chunk.byteLength<84&&b("ICC header is too short"),Object.entries(e9))){t=parseInt(t,10);let i=n(this.chunk,t);"\0\0\0\0"!==i&&e.set(t,i)}}parseTags(){let e,t,n,i,r,{raw:o}=this,s=this.chunk.getUint32(128),a=132,l=this.chunk.byteLength;for(;s--;){if(e=this.chunk.getString(a,4),t=this.chunk.getUint32(a+4),n=this.chunk.getUint32(a+8),i=this.chunk.getString(t,4),t+n>l)return void console.warn("reached the end of the first ICC chunk. Enable options.tiff.multiSegment to read all ICC segments.");void 0!==(r=this.parseTag(i,t,n))&&"\0\0\0\0"!==r&&o.set(e,r),a+=12}}
2parseTag(e,t,n){switch(e){case"desc":return this.parseDesc(t);case"mluc":return this.parseMluc(t);case"text":return this.parseText(t,n);case"sig ":return this.parseSig(t)}if(!(t+n>this.chunk.byteLength))return this.chunk.getUint8Array(t,n)}parseDesc(e){let t=this.chunk.getUint32(e+8)-1;return w(this.chunk.getString(e+12,t))}parseText(e,t){return w(this.chunk.getString(e+8,t-8))}parseSig(e){return w(this.chunk.getString(e+8,4))}parseMluc(e){let{chunk:t}=this,n=t.getUint32(e+8),i=t.getUint32(e+12),r=e+16,o=[];for(let s=0;s<n;s++){let n=t.getString(r+0,2),s=t.getString(r+2,2),a=t.getUint32(r+4),l=t.getUint32(r+8)+e,u=w(t.getUnicodeString(l,a));o.push({lang:n,country:s,text:u}),r+=i}return 1===n?o[0].text:o}translateValue(e,t){return"string"==typeof e?t[e]||t[e.toLowerCase()]||e:t[e]||e}}m(e7,"type","icc"),m(e7,"multiSegment",!0),m(e7,"headerLength",18);let e9={4:te,8:function(e,t){return[e.getUint8(t),e.getUint8(t+1)>>4,e.getUint8(t+1)%16].map(e=>e.toString(10)).join(".")},12:te,16:te,20:te,24:function(e,t){let n=e.getUint16(t),i=e.getUint16(t+2)-1,r=e.getUint16(t+4),o=e.getUint16(t+6);return new Date(Date.UTC(n,i,r,o,e.getUint16(t+8),e.getUint16(t+10)))},36:te,40:te,48:te,52:te,64:(e,t)=>e.getUint32(t),80:te};function te(e,t){return w(e.getString(t,4))}k.set("icc",e7),F(U,"icc",[[4,"ProfileCMMType"],[8,"ProfileVersion"],[12,"ProfileClass"],[16,"ColorSpaceData"],[20,"ProfileConnectionSpace"],[24,"ProfileDateTime"],[36,"ProfileFileSignature"],[40,"PrimaryPlatform"],[44,"CMMFlags"],[48,"DeviceManufacturer"],[52,"DeviceModel"],[56,"DeviceAttributes"],[64,"RenderingIntent"],[68,"ConnectionSpaceIlluminant"],[80,"ProfileCreator"],[84,"ProfileID"],["Header","ProfileHeader"],["MS00","WCSProfiles"],["bTRC","BlueTRC"],["bXYZ","BlueMatrixColumn"],["bfd","UCRBG"],["bkpt","MediaBlackPoint"],["calt","CalibrationDateTime"],["chad","ChromaticAdaptation"],["chrm","Chromaticity"],["ciis","ColorimetricIntentImageState"],["clot","ColorantTableOut"],["clro","ColorantOrder"],["clrt","ColorantTable"],["cprt","ProfileCopyright"],["crdi","CRDInfo"],["desc","ProfileDescription"],["devs","DeviceSettings"],["dmdd","DeviceModelDesc"],["dmnd","DeviceMfgDesc"],["dscm","ProfileDescriptionML"],["fpce","FocalPlaneColorimetryEstimates"],["gTRC","GreenTRC"],["gXYZ","GreenMatrixColumn"],["gamt","Gamut"],["kTRC","GrayTRC"],["lumi","Luminance"],["meas","Measurement"],["meta","Metadata"],["mmod","MakeAndModel"],["ncl2","NamedColor2"],["ncol","NamedColor"],["ndin","NativeDisplayInfo"],["pre0","Preview0"],["pre1","Preview1"],["pre2","Preview2"],["ps2i","PS2RenderingIntent"],["ps2s","PostScript2CSA"],["psd0","PostScript2CRD0"],["psd1","PostScript2CRD1"],["psd2","PostScript2CRD2"],["psd3","PostScript2CRD3"],["pseq","ProfileSequenceDesc"],["psid","ProfileSequenceIdentifier"],["psvm","PS2CRDVMSize"],["rTRC","RedTRC"],["rXYZ","RedMatrixColumn"],["resp","OutputResponse"],["rhoc","ReflectionHardcopyOrigColorimetry"],["rig0","PerceptualRenderingIntentGamut"],["rig2","SaturationRenderingIntentGamut"],["rpoc","ReflectionPrintOutputColorimetry"],["sape","SceneAppearanceEstimates"],["scoe","SceneColorimetryEstimates"],["scrd","ScreeningDesc"],["scrn","Screening"],["targ","CharTarget"],["tech","Technology"],["vcgt","VideoCardGamma"],["view","ViewingConditions"],["vued","ViewingCondDesc"],["wtpt","MediaWhitePoint"]]);let t
vendor: 5,572 bytes, line 2
2t={"4d2p":"Erdt Systems",AAMA:"Aamazing Technologies",ACER:"Acer",ACLT:"Acolyte Color Research",ACTI:"Actix Sytems",ADAR:"Adara Technology",ADBE:"Adobe",ADI:"ADI Systems",AGFA:"Agfa Graphics",ALMD:"Alps Electric",ALPS:"Alps Electric",ALWN:"Alwan Color Expertise",AMTI:"Amiable Technologies",AOC:"AOC International",APAG:"Apago",APPL:"Apple Computer",AST:"AST","AT&T":"AT&T",BAEL:"BARBIERI electronic",BRCO:"Barco NV",BRKP:"Breakpoint",BROT:"Brother",BULL:"Bull",BUS:"Bus Computer Systems","C-IT":"C-Itoh",CAMR:"Intel",CANO:"Canon",CARR:"Carroll Touch",CASI:"Casio",CBUS:"Colorbus PL",CEL:"Crossfield",CELx:"Crossfield",CGS:"CGS Publishing Technologies International",CHM:"Rochester Robotics",CIGL:"Colour Imaging Group, London",CITI:"Citizen",CL00:"Candela",CLIQ:"Color IQ",CMCO:"Chromaco",CMiX:"CHROMiX",COLO:"Colorgraphic Communications",COMP:"Compaq",COMp:"Compeq/Focus Technology",CONR:"Conrac Display Products",CORD:"Cordata Technologies",CPQ:"Compaq",CPRO:"ColorPro",CRN:"Cornerstone",CTX:"CTX International",CVIS:"ColorVision",CWC:"Fujitsu Laboratories",DARI:"Darius Technology",DATA:"Dataproducts",DCP:"Dry Creek Photo",DCRC:"Digital Contents Resource Center, Chung-Ang University",DELL:"Dell Computer",DIC:"Dainippon Ink and Chemicals",DICO:"Diconix",DIGI:"Digital","DL&C":"Digital Light & Color",DPLG:"Doppelganger",DS:"Dainippon Screen",DSOL:"DOOSOL",DUPN:"DuPont",EPSO:"Epson",ESKO:"Esko-Graphics",ETRI:"Electronics and Telecommunications Research Institute",EVER:"Everex Systems",EXAC:"ExactCODE",Eizo:"Eizo",FALC:"Falco Data Products",FF:"Fuji Photo Film",FFEI:"FujiFilm Electronic Imaging",FNRD:"Fnord Software",FORA:"Fora",FORE:"Forefront Technology",FP:"Fujitsu",FPA:"WayTech Development",FUJI:"Fujitsu",FX:"Fuji Xerox",GCC:"GCC Technologies",GGSL:"Global Graphics Software",GMB:"Gretagmacbeth",GMG:"GMG",GOLD:"GoldStar Technology",GOOG:"Google",GPRT:"Giantprint",GTMB:"Gretagmacbeth",GVC:"WayTech Development",GW2K:"Sony",HCI:"HCI",HDM:"Heidelberger Druckmaschinen",HERM:"Hermes",HITA:"Hitachi America",HP:"Hewlett-Packard",HTC:"Hitachi",HiTi:"HiTi Digital",IBM:"IBM",IDNT:"Scitex",IEC:"Hewlett-Packard",IIYA:"Iiyama North America",IKEG:"Ikegami Electronics",IMAG:"Image Systems",IMI:"Ingram Micro",INTC:"Intel",INTL:"N/A (INTL)",INTR:"Intra Electronics",IOCO:"Iocomm International Technology",IPS:"InfoPrint Solutions Company",IRIS:"Scitex",ISL:"Ichikawa Soft Laboratory",ITNL:"N/A (ITNL)",IVM:"IVM",IWAT:"Iwatsu Electric",Idnt:"Scitex",Inca:"Inca Digital Printers",Iris:"Scitex",JPEG:"Joint Photographic Experts Group",JSFT:"Jetsoft Development",JVC:"JVC Information Products",KART:"Scitex",KFC:"KFC Computek Components",KLH:"KLH Computers",KMHD:"Konica Minolta",KNCA:"Konica",KODA:"Kodak",KYOC:"Kyocera",Kart:"Scitex",LCAG:"Leica",LCCD:"Leeds Colour",LDAK:"Left Dakota",LEAD:"Leading Technology",LEXM:"Lexmark International",LINK:"Link Computer",LINO:"Linotronic",LITE:"Lite-On",Leaf:"Leaf",Lino:"Linotronic",MAGC:"Mag Computronic",MAGI:"MAG Innovision",MANN:"Mannesmann",MICN:"Micron Technology",MICR:"Microtek",MICV:"Microvitec",MINO:"Minolta",MITS:"Mitsubishi Electronics America",MITs:"Mitsuba",MNLT:"Minolta",MODG:"Modgraph",MONI:"Monitronix",MONS:"Monaco Systems",MORS:"Morse Technology",MOTI:"Motive Systems",MSFT:"Microsoft",MUTO:"MUTOH INDUSTRIES",Mits:"Mitsubishi Electric",NANA:"NANAO",NEC:"NEC",NEXP:"NexPress Solutions",NISS:"Nissei Sangyo America",NKON:"Nikon",NONE:"none",OCE:"Oce Technologies",OCEC:"OceColor",OKI:"Oki",OKID:"Okidata",OKIP:"Okidata",OLIV:"Olivetti",OLYM:"Olympus",ONYX:"Onyx Graphics",OPTI:"Optiquest",PACK:"Packard Bell",PANA:"Matsushita Electric Industrial",PANT:"Pantone",PBN:"Packard Bell",PFU:"PFU",PHIL:"Philips Consumer Electronics",PNTX:"HOYA",POne:"Phase One A/S",PREM:"Premier Computer Innovations",PRIN:"Princeton Graphic Systems",PRIP:"Princeton Publishing Labs",QLUX:"Hong Kong",QMS:"QMS",QPCD:"QPcard AB",QUAD:"QuadLaser",QUME:"Qume",RADI:"Radius",RDDx:"Integrated Color Solutions",RDG:"Roland DG",REDM:"REDMS Group",RELI:"Relisys",RGMS:"Rolf Gierling Multitools",RICO:"Ricoh",RNLD:"Edmund Ronald",ROYA:"Royal",RPC:"Ricoh Printing Systems",RTL:"Royal Information Electronics",SAMP:"Sampo",SAMS:"Samsung",SANT:"Jaime Santana Pomares",SCIT:"Scitex",SCRN:"Dainippon Screen",SDP:"Scitex",SEC:"Samsung",SEIK:"Seiko Instruments",SEIk:"Seikosha",SGUY:"ScanGuy.com",SHAR:"Sharp Laboratories",SICC:"International Color Consortium",SONY:"Sony",SPCL:"SpectraCal",STAR:"Star",STC:"Sampo Technology",Scit:"Scitex",Sdp:"Scitex",Sony:"Sony",TALO:"Talon Technology",TAND:"Tandy",TATU:"Tatung",TAXA:"TAXAN America",TDS:"Tokyo Denshi Sekei",TECO:"TECO Information Systems",TEGR:"Tegra",TEKT:"Tektronix",TI:"Texas Instruments",TMKR:"TypeMaker",TOSB:"Toshiba",TOSH:"Toshiba",TOTK:"TOTOKU ELECTRIC",TRIU:"Triumph",TSBT:"Toshiba",TTX:"TTX Computer Products",TVM:"TVM Professional Monitor",TW:"TW Casper",ULSX:"Ulead Systems",UNIS:"Unisys",UTZF:"Utz Fehlau & Sohn",VARI:"Varityper",VIEW:"Viewsonic",VISL:"Visual communication",VIVO:"Vivo Mobile Communication",WANG:"Wang",WLBR:"Wilbur Imaging",WTG2:"Ware To Go",WYSE:"WYSE Technology",XERX:"Xerox",XRIT:"X-Rite",ZRAN:"Zoran",Zebr:"Zebra Technologies",appl:"Apple Computer",bICC:"basICColor",berg:"bergdesign",ceyd:"Integrated Color Solutions",clsp:"MacDermid ColorSpan",ds:"Dainippon Screen",dupn:"DuPont",ffei:"FujiFilm Electronic Imaging",flux:"FluxData",iris:"Scitex",kart:"Scitex",lcms:"Little CMS",lino:"Linotronic",none:"none",ob4d:"Erdt Systems",obic:"Medigraph",quby:"Qubyx Sarl",scit:"Scitex",scrn:"Dainippon Screen",sdp:"Scitex",siwi:"SIWI GRAFIKA",yxym:"YxyMaster"},
2tn={scnr:"Scanner",mntr:"Monitor",prtr:"Printer",link:"Device Link",abst:"Abstract",spac:"Color Space Conversion Profile",nmcl:"Named Color",cenc:"ColorEncodingSpace profile",mid:"MultiplexIdentification profile",mlnk:"MultiplexLink profile",mvis:"MultiplexVisualization profile",nkpf:"Nikon Input Device Profile (NON-STANDARD!)"};F(V,"icc",[[4,tt],[12,tn],[40,Object.assign({},tt,tn)],[48,tt],[80,tt],[64,{0:"Perceptual",1:"Relative Colorimetric",2:"Saturation",3:"Absolute Colorimetric"}],["tech",{amd:"Active Matrix Display",crt:"Cathode Ray Tube Display",kpcd:"Photo CD",pmd:"Passive Matrix Display",dcam:"Digital Camera",dcpj:"Digital Cinema Projector",dmpc:"Digital Motion Picture Camera",dsub:"Dye Sublimation Printer",epho:"Electrophotographic Printer",esta:"Electrostatic Printer",flex:"Flexography",fprn:"Film Writer",fscn:"Film Scanner",grav:"Gravure",ijet:"Ink Jet Printer",imgs:"Photo Image Setter",mpfr:"Motion Picture Film Recorder",mpfs:"Motion Picture Film Scanner",offs:"Offset Lithography",pjtv:"Projection Television",rpho:"Photographic Paper Printer",rscn:"Reflective Scanner",silk:"Silkscreen",twax:"Thermal Wax Printer",vidc:"Video Camera",vidm:"Video Monitor"}]]);class ti extends el{static canHandle(e,t,n){return 237===e.getUint8(t+1)&&"Photoshop"===e.getString(t+4,9)&&void 0!==this.containsIptc8bim(e,t,n)}static headerLength(e,t,n){let i,r=this.containsIptc8bim(e,t,n);if(void 0!==r)return(i=e.getUint8(t+r+7))%2!=0&&(i+=1),0===i&&(i=4),r+8+i}static containsIptc8bim(e,t,n){for(let i=0;i<n;i++)if(this.isIptcSegmentHead(e,t+i))return i}static isIptcSegmentHead(e,t){return 56===e.getUint8(t)&&0x3842494d===e.getUint32(t)&&1028===e.getUint16(t+4)}parse(){let{raw:e}=this,t=this.chunk.byteLength-1,n=!1;for(let i=0;i<t;i++)if(28===this.chunk.getUint8(i)&&2===this.chunk.getUint8(i+1)){n=!0;let t=this.chunk.getUint16(i+3),r=this.chunk.getUint8(i+2),o=this.chunk.getLatin1String(i+5,t);e.set(r,this.pluralizeValue(e.get(r),o)),i+=4+t}else if(n)break;return this.translate(),this.output}pluralizeValue(e,t){return void 0!==e?e instanceof Array?(e.push(t),e):[e,t]:t}}m(ti,"type","iptc"),m(ti,"translateValues",!1),m(ti,"reviveValues",!1),k.set("iptc",ti),F(U,"iptc",[[0,"ApplicationRecordVersion"],[3,"ObjectTypeReference"],[4,"ObjectAttributeReference"],[5,"ObjectName"],[7,"EditStatus"],[8,"EditorialUpdate"],[10,"Urgency"],[12,"SubjectReference"],[15,"Category"],[20,"SupplementalCategories"],[22,"FixtureIdentifier"],[25,"Keywords"],[26,"ContentLocationCode"],[27,"ContentLocationName"],[30,"ReleaseDate"],[35,"ReleaseTime"],[37,"ExpirationDate"],[38,"ExpirationTime"],[40,"SpecialInstructions"],[42,"ActionAdvised"],[45,"ReferenceService"],[47,"ReferenceDate"],[50,"ReferenceNumber"],[55,"DateCreated"],[60,"TimeCreated"],[62,"DigitalCreationDate"],[63,"DigitalCreationTime"],[65,"OriginatingProgram"],[70,"ProgramVersion"],[75,"ObjectCycle"],[80,"Byline"],[85,"BylineTitle"],[90,"City"],[92,"Sublocation"],[95,"State"],[100,"CountryCode"],[101,"Country"],[103,"OriginalTransmissionReference"],[105,"Headline"],[110,"Credit"],[115,"Source"],[116,"CopyrightNotice"],[118,"Contact"],[120,"Caption"],[121,"LocalCaption"],[122,"Writer"],[125,"RasterizedCaption"],[130,"ImageType"],[131,"ImageOrientation"],[135,"LanguageIdentifier"],[150,"AudioType"],[151,"AudioSamplingRate"],[152,"AudioSamplingResolution"],[153,"AudioDuration"],[154,"AudioOutcue"],[184,"JobID"],[185,"MasterDocumentID"],[186,"ShortDocumentID"],[187,"UniqueDocumentID"],[188,"OwnerID"],[200,"ObjectPreviewFileFormat"],[201,"ObjectPreviewFileVersion"],[202,"ObjectPreviewData"],[221,"Prefs"],[225,"ClassifyState"],[228,"SimilarityIndex"],[230,"DocumentNotes"],[231,"DocumentHistory"],[232,"ExifCameraInfo"],[255,"CatalogSets"]]),F(V,"iptc",[[10,{0:"0 (reserved)",1:"1 (most urgent)",2:"2",3:"3",4:"4",5:"5 (normal urgency)",6:"6",7:"7",8:"8 (least urgent)",9:"9 (user-defined priority)"}],[75,{a:"Morning",b:"Both Morning and Evening",p:"Evening"}],[131,{L:"Landscape",P:"Portrait",S:"Square"}]]);let tr=eQ},86581:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7620),r=n(65711),o=n.n(r),s=["color","size","title","className"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var l=(0,i.forwardRef)(function(e,t){var n=e.color,r=e.size,o=void 0===r?"1em":r,l=e.title,u=void 0===l?null:l,c=e.className,h=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return i.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:void 0===n?"currentColor":n,className:["bi","bi-download",void 0===c?"":c].filter(
2Boolean).join(" ")},h),u?i.createElement("title",null,u):null,i.createElement("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),i.createElement("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"}))});l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number]),title:o().string,className:o().string};let u=l},92853:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var i=n(54568),r=n(7620),o=n(16045),s=n(65605),a=n(65876);class l extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(e){let{children:t,isPresent:n}=e,o=(0,r.useId)(),s=(0,r.useRef)(null),u=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,r.useContext)(a.Q);return(0,r.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:r}=u.current;if(n||!s.current||!e||!t)return;s.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(i,"px !important;\n            left: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[n]),(0,i.jsx)(l,{isPresent:n,childRef:s,sizeRef:u,children:r.cloneElement(t,{ref:s})})}let c=e=>{let{children:t,initial:n,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:d,mode:f}=e,p=(0,s.M)(h),m=(0,r.useId)(),g=(0,r.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;l&&l()},[p,l]),y=(0,r.useMemo)(()=>({id:m,initial:n,isPresent:a,custom:c,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),d?[Math.random(),g]:[a,g]);return(0,r.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[a]),r.useEffect(()=>{a||p.size||!l||l()},[a]),"popLayout"===f&&(t=(0,i.jsx)(u,{isPresent:a,children:t})),(0,i.jsx)(o.t.Provider,{value:y,children:t})};function h(){return new Map}var d=n(60853),f=n(42134);let p=e=>e.key||"";function m(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}var g=n(62582);let y=e=>{let{children:t,exitBeforeEnter:n,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync"}=e;(0,f.V)(!n,"Replace exitBeforeEnter with mode='wait'");let y=(0,r.useMemo)(()=>m(t),[t]),v=y.map(p),b=(0,r.useRef)(!0),w=(0,r.useRef)(y),S=(0,s.M)(()=>new Map),[P,x]=(0,r.useState)(y),[C,T]=(0,r.useState)(y);(0,g.E)(()=>{b.current=!1,w.current=y;for(let e=0;e<C.length;e++){let t=p(C[e]);v.includes(t)?S.delete(t):!0!==S.get(t)&&S.set(t,!1)}},[C,v.length,v.join("-")]);let E=[];if(y!==P){let e=[...y];for(let t=0;t<C.length;t++){let n=C[t],i=p(n);v.includes(i)||(e.splice(t,0,n),E.push(n))}"wait"===h&&E.length&&(e=E),T(m(e)),x(y);return}let{forceRender:O}=(0,r.useContext)(d.L);return(0,i.jsx)(i.Fragment,{children:C.map(e=>{let t=p(e),n=y===C||v.includes(t);return(0,i.jsx)(c,{isPresent:n,initial:(!b.current||!!a)&&void 0,custom:n?void 0:o,presenceAffectsLayout:u,mode:h,onExitComplete:n?void 0:()=>{if(!S.has(t))return;S.set(t,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(null==O||O(),T(w.current),l&&l())},children:e},t)})})}}}]);

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.