react-voodoo 2.5.2 → 2.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see react-voodoo.js.LICENSE.txt */
2
- (()=>{var e={450:e=>{e.exports={walknSetExport:function(e,t,n){var r,o,a=t.split("/"),i=e;for(r=0;r<a.length-1;)i=i[a[r]]=i[a[r]]||{},r++;o=1===Object.keys(n).length&&n.default||n,i[a[r]]?(i[a[r]].__esModule||Object.assign(o,i[a[r]]),i[a[r]]=o):i[a[r]]=o}}},227:(e,t,n)=>{"use strict";n.d(t,{Yj:()=>a,Xg:()=>i,$_:()=>s,e$:()=>l,fi:()=>u,Rx:()=>c,bC:()=>p});var r={},o=n(450).walknSetExport;o(r,"any",n(582)),o(r,"int",n(74)),o(r,"bool",n(584)),o(r,"color",n(192)),o(r,"multi",n(822)),o(r,"ratio",n(425)),o(r,"number",n(277)),o(r,"shadow",n(940));var a=r.any,i=r.bool,s=r.color,l=r.int,u=r.multi,c=r.number,p=r.ratio},259:(e,t,n)=>{"use strict";n.d(t,{NQ:()=>r,Dl:()=>o,_9:()=>a,HM:()=>i,dn:()=>s,_j:()=>l,JO:()=>u});var r={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"]},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},paddingBottom:{types:["length"]},paddingLeft:{types:["length"]},paddingRight:{types:["length"]},paddingTop:{types:["length"]},bottom:{types:["length-percentage-calc"]},left:{types:["length-percentage-calc"]},right:{types:["length-percentage-calc"]},top:{types:["length-percentage-calc"]},zIndex:{types:["integer"]},width:{types:["length-percentage-calc"]},maxWidth:{types:["length-percentage-calc"]},minWidth:{types:["length-percentage-calc"]},height:{types:["length-percentage-calc"]},maxHeight:{types:["length-percentage-calc"]},minHeight:{types:["length-percentage-calc"]},lineHeight:{types:["number","length"]},verticalAlign:{types:["length"]},visibility:{types:["visibility"]},borderSpacing:{types:["length"],multiple:!0},color:{types:["color"]},opacity:{types:["number"]},backgroundColor:{types:["color"]},backgroundPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},backgroundSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},border:{properties:["borderStyle","borderWidth","borderColor"]},borderBottom:{properties:["borderBottomStyle","borderBottomWidth","borderBottomColor"]},borderLeft:{properties:["borderLeftStyle","borderLeftWidth","borderLeftColor"]},borderRight:{properties:["borderRightStyle","borderRightWidth","borderRightColor"]},borderTop:{properties:["borderTopStyle","borderTopWidth","borderTopColor"]},borderColor:{properties:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderWidth:{properties:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"]},borderBottomColor:{types:["color"]},borderLeftColor:{types:["color"]},borderRightColor:{types:["color"]},borderTopColor:{types:["color"]},borderBottomWidth:{types:["length"]},borderLeftWidth:{types:["length"]},borderRightWidth:{types:["length"]},borderTopWidth:{types:["length"]},borderRadius:{properties:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},borderTopLeftRadius:{types:["length-percentage-calc"],multiple:!0},borderTopRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomLeftRadius:{types:["length-percentage-calc"],multiple:!0},boxShadow:{types:["shadow-list"]},caretColor:{types:["color"]},outline:{properties:["outlineColor","outlineWidth"]},outlineColor:{types:["color"]},outlineWidth:{types:["length"]},outlineOffset:{types:["length"]},flex:{properties:["flexGrow","flexShrink","flexBasis"]},flexGrow:{types:["number"]},flexShrink:{types:["number"]},flexBasis:{types:["length-percentage-calc"]},order:{types:["integer"]},font:{properties:["fontWeight","fontStretch","fontSize","lineHeight"]},fontWeight:{types:["font-weight"]},fontStretch:{types:["font-stretch"]},fontSize:{types:["length"]},fontSizeAdjust:{types:["number"]},gridTemplateColumns:{types:["length-percentage-calc"],multiple:!0},gridTemplateRows:{types:["length-percentage-calc"],multiple:!0},gridTemplate:{properties:["gridTemplateRows","gridTemplateColumns"]},grid:{properties:["gridTemplateRows","gridTemplateColumns"]},gridRowGap:{types:["length-percentage-calc"]},gridColumnGap:{types:["length-percentage-calc"]},gridGap:{properties:["gridRowGap","gridColumnGap"]},clip:{types:["rectangle"]},clipPath:{types:["basic-shape"]},mask:{properties:["maskPosition","maskSize"]},maskPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},maskSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},shapeOutside:{types:["basic-shape"]},shapeMargin:{types:["length-percentage-calc"]},shapeImageThreshold:{types:["number"]},scrollPadding:{properties:["scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft"]},scrollPaddingTop:{types:["length-percentage-calc"]},scrollPaddingRight:{types:["length-percentage-calc"]},scrollPaddingBottom:{types:["length-percentage-calc"]},scrollPaddingLeft:{types:["length-percentage-calc"]},scrollPaddingBlock:{properties:["scrollPaddingBlockStart","scrollPaddingBlockEnd"]},scrollPaddingBlockStart:{types:["length-percentage-calc"]},scrollPaddingBlockEnd:{types:["length-percentage-calc"]},scrollPaddingInline:{properties:["scrollPaddingInlineStart","scrollPaddingInlineEnd"]},scrollPaddingInlineStart:{types:["length-percentage-calc"]},scrollPaddingInlineEnd:{types:["length-percentage-calc"]},scrollSnapMargin:{properties:["scrollSnapMarginTop","scrollSnapMarginRight","scrollSnapMarginBottom","scrollSnapMarginLeft"]},scrollSnapMarginTop:{types:["length"]},scrollSnapMarginRight:{types:["length"]},scrollSnapMarginBottom:{types:["length"]},scrollSnapMarginLeft:{types:["length"]},scrollSnapMarginBlock:{properties:["scrollSnapMarginBlockStart","scrollSnapMarginBlockEnd"]},scrollSnapMarginBlockStart:{types:["length"]},scrollSnapMarginBlockEnd:{types:["length"]},scrollSnapMarginInline:{properties:["scrollSnapMarginInlineStart","scrollSnapMarginInlineEnd"]},scrollSnapMarginInlineStart:{types:["length"]},scrollSnapMarginInlineEnd:{types:["length"]},textDecoration:{properties:["textDecorationColor"]},textDecorationColor:{types:["color"]},textEmphasis:{properties:["textEmphasisColor"]},textEmphasisColor:{types:["color"]},textShadow:{types:["shadow-list"]},columns:{properties:["columnWidth","columnCount"]},columnWidth:{types:["length"]},columnCount:{types:["integer"]},columnGap:{types:["length-percentage-calc"]},columnRule:{properties:["columnRuleColor","columnRuleWidth"]},columnRuleColor:{types:["color"]},columnRuleWidth:{types:["length"]},letterSpacing:{types:["length"]},tabSize:{types:["length"]},textIndent:{types:["length-percentage-calc"]},wordSpacing:{types:["length-percentage-calc"]},transform:{types:["transform"]},transformOrigin:{types:["length-percentage-calc"],multiple:!0},perspective:{types:["length"]},perspectiveOrigin:{types:["length-percentage-calc"],multiple:!0}},o=["","deg","box","bz","bh","bw","deg","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],a=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["\\w+","deg","bz","bh","bw","cap","ch","deg","em","ic","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")"),i=function(e){return void 0===e&&(e=0),Number(e.toFixed(3))};function s(e,t,n){void 0===n&&(n={});var o=r[e],a=o&&o.properties,i=t.split(" ");return o.multiple?a&&a.forEach((function(e,t){n[e]=i[t%i.length]})):a&&a.forEach((function(e,t){i[t]&&(n[e]=i[t])})),n}function l(e){var t=r[e],n=t&&t.properties;return n&&!!n.length}function u(e,t){return!!r[e]}},38:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,mux:()=>r.mux,release:()=>r.release});var r=n(192)},39:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,demuxOne:()=>r.demuxOne,mux:()=>r.mux,muxOne:()=>r.muxOne,release:()=>r.release});var r=n(940)},111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>c,demuxOne:()=>p,demux:()=>f,muxOne:()=>d,mux:()=>h});var r=n(213),o=n.n(r),a=n(73),i=n.n(a),s=n(259),l={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},u={};function c(e,t,n,r,o,a){var i,s=e.split("_");if(4===s.length){if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();0!==r[i].length||a||delete r[i],0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function p(e,t,n,r,o,a){var i=n,u=s.Dl[e]||l[r];return"bw"===u&&(i*=a.x,u="px"),"wh"===u&&(i*=a.y,u="px"),"bz"===u&&(i*=a.z,u="px"),"deg"===u&&(i%=360),u?(0,s.HM)(i)+u:(0,s.HM)(i)}function f(e,t,n,r,o){for(var a,i,s,l,u,c,f="",d=0,h=0;d<r[e].length;d++)for(i in a=r[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=p(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(f+=i+"("+(c||"0")+") ")}n.filter=f}function d(e,t,n,r,o,a,c,p){var d=!!i().string(n)&&n.match(s._9),h=d&&d[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=u[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?r[m]+=d?parseFloat(d[1]):parseFloat(n):(!c&&o[e][g]++,r[m]=d?parseFloat(d[1]):parseFloat(n),p&&(p[g]=!0)),f}var h=function(e,t,n,r,a,s,l){r[e]=r[e]||[],i().array(t)||(t=[t]);for(var u,c,p,h,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},r[e][v]||{}),u)if(u.hasOwnProperty(c))if(h=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||r[e][v]&&r[e][v][c]||0,!s&&p[c]++,r[g]=r[g]||[],i().array(h))for(m=0;m<h.length;m++)d(g,c,h[m]||0,n,r,a,s,x);else d(g,c,h||0,n,r,a,s);r[e][v]=l?o()({},p,r[e][v]||{},p):p}return f}},178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,demuxOne:()=>r.demuxOne,mux:()=>r.mux,muxOne:()=>r.muxOne,release:()=>r.release});var r=n(940)},374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>p,demuxOne:()=>f,demux:()=>d,muxOne:()=>h,mux:()=>g});var r=n(213),o=n.n(r),a=n(73),i=n.n(a),s=n(259),l={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},u={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},c={scale:1,scaleX:1,scaleY:1,scaleZ:1};function p(e,t,n,r,o,a){var i,s=e.split("_");if(4===s.length){if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();0!==r[i].length||a||delete r[i],0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function f(e,t,n,r,o,a){var i=n,c=s.Dl[e]||l[r];return"box"===c&&(i*=a[u[r]]||a.x,c="px"),"bw"===c&&(i*=a.x,c="px"),"wh"===c&&(i*=a.y,c="px"),"bz"===c&&(i*=a.z,c="px"),"deg"===c&&(i%=360),c?(0,s.HM)(i)+c:(0,s.HM)(i)}function d(e,t,n,r,o){for(var a,i,s,l,u,c,p="",d=0,h=0;d<r[e].length;d++)for(i in a=r[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=f(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(p+=i+"("+(c||"0")+") ")}n.transform=p}function h(e,t,n,r,o,a,u,p){var f=!!i().string(n)&&n.match(s._9),h=f&&f[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=c[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?r[m]+=f?parseFloat(f[1]):parseFloat(n):(!u&&o[e][g]++,r[m]=f?parseFloat(f[1]):parseFloat(n),p&&(p[g]=!0)),d}var g=function(e,t,n,r,a,s,l){r[e]=r[e]||[],i().array(t)||(t=[t]);for(var u,c,p,f,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},r[e][v]||{}),u)if(u.hasOwnProperty(c))if(f=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||r[e][v]&&r[e][v][c]||0,!s&&p[c]++,r[g]=r[g]||[],i().array(f))for(m=0;m<f.length;m++)h(g,c,f[m]||0,n,r,a,s,x);else h(g,c,f||0,n,r,a,s);r[e][v]=l?o()({},p,r[e][v]||{},p):p}return d}},582:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var r=n(73),o=n.n(r),a=n(259),i=(n(582),{left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"}),s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function u(e,t,n,r,o,a){var i=e.split("_");if(2===i.length){if(--r[i[0]][i[1]]||a||delete t[e],!a)for(;r[i[0]].length&&!r[i[0]][r[i[0]].length-1];)r[i[0]].pop();0!==r[i[0]].length||a||(delete r[i[0]],delete o[i[0]],n&&delete n[i[0]])}else console.log("wtf",i)}function c(e,t,n,r,o){var l=t,u=a.Dl[e]||i[n]||"px";return"box"===u&&(l*=o[s[n]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,n,r,o,a){var i,s,l,u=0;if(i="",r[e].isString)return n[e]=r[e].value,r[e].value;for(s=0;s<r[e].length;s++)r[e][s]&&(t[l=e+"_"+s]<0?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),n?n[e]=i:i}function f(e,t,n,r,a,i){r[e]=r[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,n,r,a,i,s);else d(e,t||0,n,r,a,i);return p}function d(e,t,n,r,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,r[e][h]=r[e][h]||0,!f&&o().string(t)?(r[e].isString=!0,r[e].value=t,p):(c&&c[h]?n[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&r[e][h]++,n[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p)}var h=f},584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>o,demux:()=>a,mux:()=>i});var r={opacity:1};function o(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function a(e,t,n,r,o){var a=!!t[e];return n?n[e]=a:a}var i=function(e,t,n,o,i,s){return i[e]=r[e]||0,n[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,a}},192:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>i,mux:()=>s,release:()=>a});const r=require("color-rgba");var o=n.n(r);function a(e,t,n,r,o,a){var i=e.split("_"),s=i.slice(0,i.length-1).join("_");--r[e]||a||(delete t[e],delete r[e]),--r[s]||a||(delete t[e],delete r[e])}function i(e,t,n,r){var o="rgba("+t[e+"_r"]+", "+t[e+"_g"]+", "+t[e+"_b"]+", "+t[e+"_a"]+")";return n?n[e]=o:o}function s(e,t,n,r,a,s){var l=o()(t);return r[e]=r[e]||0,r[e+"_r"]=r[e+"_r"]||0,r[e+"_g"]=r[e+"_g"]||0,r[e+"_b"]=r[e+"_b"]||0,r[e+"_a"]=r[e+"_a"]||0,s||(r[e]+=4,r[e+"_r"]++,r[e+"_g"]++,r[e+"_b"]++,r[e+"_a"]++),n[e+"_r"]=l[0],n[e+"_g"]=l[1],n[e+"_b"]=l[2],n[e+"_a"]=l[3],a[e]=0,a[e+"_r"]=0,a[e+"_g"]=0,a[e+"_b"]=0,a[e+"_a"]=1,i}},74:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function o(e,t,n,r,o){n[e]=~~t[e]}n.r(t),n.d(t,{release:()=>r,demux:()=>o,mux:()=>a});var a=function(e,t,n,r,a,i){return a[e]=0,n[e]=~~t,r[e]=r[e]||0,!i&&r[e]++,o}},822:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(73),o=n.n(r),a=n(277),i={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,n,r,o,i){for(var s=r["_"+e],l="",u={},c=0;c<s;c++)a.demux(e+"_"+c,t,u,r,o,i),l+=u[e+"_"+c]+" ";n[e]=l}function l(e,t,n,r,o,a){e.split("_")}const u=function(e){return{mux:function(t,n,r,l,u,c){var p,f=n.split(" ");l[t]=l[t]||0,c&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&i[p]||p,a.mux(t+"_"+d,p,r,l,u,c);return s},demux:s,release:l}}},277:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var r=n(73),o=n.n(r),a=n(259),i={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function u(e,t,n,r,o,a){var i=e.split("_");if(2===i.length){if(--r[i[0]][i[1]]||a||delete t[e],!a)for(;r[i[0]].length&&!r[i[0]][r[i[0]].length-1];)r[i[0]].pop();0!==r[i[0]].length||a||(delete r[i[0]],delete o[i[0]],n&&delete n[i[0]])}else console.log("wtf",i)}function c(e,t,n,r,o){var l=t,u=a.Dl[e]||i[n]||"px";return"box"===u&&(l*=o[s[n]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,n,r,o,a){var i,s,l,u=0;for(i="",s=0;s<r[e].length;s++)r[e][s]&&(t[l=e+"_"+s]<0?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),n?n[e]=i:i}function f(e,t,n,r,a,i){r[e]=r[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,n,r,a,i,s);else d(e,t||0,n,r,a,i);return p}function d(e,t,n,r,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,r[e][h]=r[e][h]||0,c&&c[h]?n[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&r[e][h]++,n[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p}var h=f},425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>a,demux:()=>i,mux:()=>s});var r=n(259),o={opacity:1};function a(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function i(e,t,n,o,a){n[e]=Math.min(1,Math.max(0,(0,r.HM)(t[e])))}var s=function(e,t,n,r,a,s){return a[e]=o[e]||0,n[e]=t,r[e]=r[e]||0,!s&&r[e]++,i}},940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>b,demuxOne:()=>_,demux:()=>R,muxOne:()=>T,mux:()=>S});var r,o,a,i,s,l,u,c,p=n(213),f=n.n(p),d=n(73),h=n.n(d),g=n(259),m=n(227),x=(r=/,(?![^\(]*\))/,o=/\s(?![^(]*\))/,a=/^[0-9]+[a-zA-Z%]+?$/,i=function(e){var t=e.split(o),n=t.includes("inset"),r=t.slice(-1)[0],a=l(r)?void 0:r,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==a})).map(u);return{inset:n,offsetX:i[0],offsetY:i[1],blurRadius:i[2],spreadRadius:i[3],color:a}},s=function(e){var t=e||{},n=t.inset,r=t.offsetX,o=void 0===r?0:r,a=t.offsetY,i=void 0===a?0:a,s=t.blurRadius;return[n?"inset":null,o,i,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(c).map((function(e){return(""+e).trim()})).join(" ")},l=function(e){return"0"===e||a.test(e)},u=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},c=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(r).map((function(e){return e.trim()})).map(i)},stringify:function(e){return e.map(s).join(", ")}}),v={perspective:"px"},y={translateX:"x"},w={inset:m.Xg,color:m.$_};function b(e,t,n,r,o,a){var i,s=e.split("_");if(s.length>2){if(i=s[0]+"_"+s[1]+"_"+s[2],w[s[2]])return w[s[2]].release(e,t,n,r,o,a),r[i]||--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],void(0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]]));if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();if(0!==r[i].length||a||delete r[i],!a)for(;r[s[0]].length&&!Object.keys(r[s[0]][r[s[0]].length-1]).length;)r[s[0]].pop();0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function _(e,t,n,r,o,a){var i=n,s=g.Dl[e]||v[r];return"box"===s&&(i*=a[y[r]]||a.x,s="px"),"bw"===s&&(i*=a.x,s="px"),"wh"===s&&(i*=a.y,s="px"),"bz"===s&&(i*=a.z,s="px"),"deg"===s&&(i%=360),s?(0,g.HM)(i)+s:(0,g.HM)(i)}function R(e,t,n,r,o){for(var a,i,s,l,u,c,p=[],f={},d=0,h=0;d<r[e].length;d++){for(i in f={},a=r[e][d])if(a.hasOwnProperty(i)){if(l=e+"_"+d+"_"+i,w[i])c=w[i].demux(l,t,void 0,r,o);else{for(c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=_(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")")}f[i]=c||0}p.push(f)}n[e]=x.stringify(p)}function T(e,t,n,r,o,a,i,s){var l=!!h().string(n)&&n.match(g._9),u=l&&l[2]||v[t]||"px",c=g.Dl.indexOf(u),p=-1!==c&&e+"_"+c||e;return a[p]=0,o[e][c]=o[e][c]||0,s&&s[c]?r[p]+=l?parseFloat(l[1]):parseFloat(n):(!i&&o[e][c]++,r[p]=l?parseFloat(l[1]):parseFloat(n),s&&(s[c]=!0)),R}var S=function(e,t,n,r,o,a,i){r[e]=r[e]||[],h().array(t)||(t=[t]);for(var s,l,u,c,p,d,g,m=0;m<t.length;m++){for(l in s=t[m],h().string(s)&&(s=x.parse(s)[0]),u=i?{}:f()({},r[e][m]||{}),s)if(s.hasOwnProperty(l))if(c=s[l],p=e+"_"+m+"_"+l,u[l]=u[l]||r[e][m]&&r[e][m][l]||0,!a&&u[l]++,w[l])w[l].mux(p,c,n,r,o,a,i);else if(g={},r[p]=r[p]||[],h().array(c))for(d=0;d<c.length;d++)T(p,l,c[d]||0,n,r,o,a,g);else T(p,l,c||0,n,r,o,a);r[e][m]=i?f()({},u,r[e][m]||{},u):u}return R}},213:e=>{"use strict";e.exports=require("@babel/runtime/helpers/extends")},367:e=>{"use strict";e.exports=require("d3-ease")},73:e=>{"use strict";e.exports=require("is")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Axis:()=>we,Component:()=>Fe,Context:()=>g,Draggable:()=>Be,Node:()=>Ee,child:()=>je,default:()=>Ne,dom:()=>te,hook:()=>ye,tools:()=>e,tweener:()=>Le,useTweener:()=>Ce,useVoodoo:()=>ye});var e={};n.r(e),n.d(e,{addCss:()=>E,cssAdd:()=>_,cssMult:()=>R,extractCss:()=>A,offset:()=>T,re_cssValueWithUnit:()=>b,reverse:()=>D,scale:()=>S,shiftTransforms:()=>C,target:()=>B});const t=require("@babel/runtime/helpers/inheritsLoose");var o=n.n(t);const a=require("react");var i=n.n(a);const s=require("fast-deep-equal");var l=n.n(s),u=n(213),c=n.n(u);const p=require("@babel/runtime/helpers/objectWithoutPropertiesLoose");var f=n.n(p),d=n(73),h=n.n(d);const g=i().createContext(null),m=require("@babel/runtime/helpers/assertThisInitialized");var x=n.n(m),v=n(367);const y=require("react-dom");var w=n.n(y),b=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["box","bz","bh","bw","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")");function _(e,t){h().array(e)||(e=[e]),h().array(t)||(t=[t]);var n,r=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),a={},i=[];for(n=0;n<r.length;)a[r[n][2]]=a[r[n][2]]||0,a[r[n][2]]+=parseFloat(r[n][1]),n++;for(n=0;n<o.length;)a[o[n][2]]=a[o[n][2]]||0,a[o[n][2]]+=parseFloat(o[n][1]),n++;Object.keys(a).forEach((function(e){return i.push(a[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];return l.length?_.apply(void 0,[i].concat(l)):i}function R(e,t){h().array(e)||(e=[e]);var n,r=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o={},a=[];for(n=0;n<r.length;)o[r[n][2]]=o[r[n][2]]||1,o[r[n][2]]=parseFloat(r[n][1])*t,n++;return Object.keys(o).forEach((function(e){return a.push(o[e]+e)})),a}function T(e,t){return void 0===t&&(t=0),(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{from:e.from+t})}))}function S(e,t,n){void 0===t&&(t=0),e=h().array(e)?e:e&&[e]||e;var r=0;return e.forEach((function(e){r=Math.max(r,e.from+e.duration)})),e=e.map((function(e){return c()({},e,{from:e.from/r*t,duration:e.duration/r*t})})),n?T(e,n):e}function P(e){return h().number(e)?-e:h().object(e)?Object.keys(e).reduce((function(t,n){return t[n]=P(e[n]),t}),{}):h().array(e)?e.map((function(e){return P(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function D(e){e=h().array(e)?e:e&&[e]||e;var t=0;return e.forEach((function(e){t=Math.max(t,e.from+e.duration)})),e.map((function(e){return c()({},e,{from:t-(e.from+e.duration)},e.apply?{apply:P(e.apply)}:void 0)}))}var M={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n.shift();for(var a in o){var i;o.hasOwnProperty(a)&&(M[a]?(e[a]||(e[a]=[]),h().array(o[a])?E(e[a],o[a]):E(e[a],[o[a]])):h().array(o[a])?(e[a]||(e[a]=[]),h().array(e[a])?(i=e[a]).push.apply(i,o[a]):e[a]=[].concat(o[a],[e[a]])):e[a]?h().object(e[a])&&h().object(o[a])?E(e[a],o[a]):e[a]=O(e[a],o[a]):h().object(o[a])?e[a]=c()({},o[a]):e[a]=o[a])}return n.length&&E.apply(void 0,[e].concat(n))||e}function O(e,t){if(!e)return t;if(!t)return e;var n=(""+e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),r=(""+t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),o=n.map((function(e,t){return t%2?parseFloat(e)+parseFloat(r[t]||0):e})).filter((function(e){return""!==e}));return 1===o.length?parseInt(o[0]):o.join("")}function A(e,t){var n={};return(e=h().array(e)?e:e&&[e]||e).forEach((function(e){E(n,e.apply)})),t&&(n=P(n)),n}function B(e,t){return(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{target:t})}))}function C(e,t){return void 0===t&&(t=1),(e=h().array(e)?e:e&&[e]||e).map((function(e){var n=e.apply&&e.apply.transform;if(n){n=h().array(n)?n:[n];for(var r=0;r<t;r++)n.unshift({});e=c()({},e,{apply:c()({},e.apply,{transform:n})})}return e}))}var k=n(259),L={},I=n(450).walknSetExport;I(L,"filter",n(111)),I(L,"boxShadow",n(39)),I(L,"transform",n(374)),I(L,"textShadow",n(178)),I(L,"backgroundColor",n(38));const W=L;var j=n(227),F=c()({},W,{height:j.Rx,width:j.Rx,top:j.Rx,left:j.Rx,right:j.Rx,bottom:j.Rx,marginTop:j.Rx,marginLeft:j.Rx,marginRight:j.Rx,marginBottom:j.Rx,paddingTop:j.Rx,paddingLeft:j.Rx,paddingRight:j.Rx,paddingBottom:j.Rx,borderRadius:j.Rx,borderTopColor:j.$_,borderLeftColor:j.$_,borderRightColor:j.$_,borderBottomColor:j.$_,borderTopWidth:j.Rx,borderLeftWidth:j.Rx,borderRightWidth:j.Rx,borderBottomWidth:j.Rx,transformOrigin:(0,j.fi)(2),zIndex:j.e$,opacity:j.bC});function N(e,t,n,r,o,a,i){var s;null==(s=a[t.split("_")[0]])||s.release(t,n,r,o,a,i)}function z(e,t,n,r,o){Object.keys(n).forEach((function(a){n[a].demux(a,e,t,r,o)}))}function H(e,t,n,r,o,a,i){var s={},l={};return e&&Object.keys(e).forEach((function(t){F[t]?s[t]=e[t]:(0,k.JO)(t,e[t])?(0,k._j)(t)?(0,k.dn)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){F[e]?(o[e]=F[e]).mux(e,s[e],t,r,n,a,i):(o[e]=function(e){var t=k.NQ[e],n=t&&t.types;if(!n)return j.Yj;for(var r=0;r<n.length;r++)switch(n[r]){case"length":case"number":case"length-percentage-calc":return j.Rx;case"integer":return j.e$;case"color":return j.$_}return j.Yj}(e)).mux(e,s[e],t,r,n,a,i)})),l}function V(e,t,n,r,o){o=o&&{};var a={},i=e.reduce((function(e,i){var s={};return r[i.target]=r[i.target]||{},t[i.target]=t[i.target]||{},n[i.target]=n[i.target]||{},i.type&&"Tween"!==i.type?e.push(c()({},i)):(!o&&E(a[i.target]=a[i.target]||{},i.apply),H(i.apply,s,t[i.target],n[i.target],r[i.target],!0),e.push(c()({},i,{apply:s}))),e}),[]);return!o&&Object.keys(a).forEach((function(e){return H(a[e],{},{},n[e],r[e])})),i}const Y=require("tween-axis");var X,q,$=n.n(Y),G=[],U=function(e){function t(t,n){var r;if(G.length){var o=G.pop();return o.scope=n,h().array(t)?(o.localLength=1,o.mount(t,n)):t.Axis&&o.mount(t.Axis,n),o||x()(r)}return e.apply(this,arguments)||this}return o()(t,e),t.prototype.destroy=function(){this.scope=void 0,this.__marks.length=0,this.__marksLength.length=0,this.__marksKeys.length=0,this.__processors.length=0,this.__config.length=0,this.__activeProcess.length=0,this.__activeProcess.length=0,this.__outgoing.length=0,this.__incoming.length=0,this.__cPos=0,this.duration=0,this.__cIndex=0,this.__cMaxKey=1,G.push(this)},t}($()),Z=n(73),J="undefined"!=typeof window,K=(J&&(q=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(X=["(",q.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(X).matches)),J?{prefix:/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":/trident/i.test(navigator.userAgent)?"ms":"opera"in window?"O":"",dashedPrefix:/webkit/i.test(navigator.appVersion)?"-webkit-":/firefox/i.test(navigator.userAgent)?"-moz-":/trident/i.test(navigator.userAgent)?"-ms-":"opera"in window?"-o-":""}:{prefix:"",dashedPrefix:""}),Q={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,n,r,o=Q,a=o.dragEnabled.indexOf(this),i=[];if(-1!==a){o.nbFingers||(ee.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),ee.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)if(n=i[s],!(r=o.dragEnabledDesc[a]).nbFingers)for(o.nbFingers++,o.fingers[n.identifier]=o.fingers[n.identifier]||[],o.fingers[n.identifier].push(r),r.nbFingers++,r._startPos.x="MS"==K.prefix?n.x:n.pageX,r._startPos.y="MS"==K.prefix?n.y:n.pageY,r._startTs=e.timeStamp,r._lastPos.x="MS"==K.prefix?n.x:n.pageX,r._lastPos.y="MS"==K.prefix?n.y:n.pageY,t=0;t<r.dragstart.length;t++)r.dragstart[t][0].call(r.dragstart[t][1]||this,e,n,r)}},dragAnywhere:function(e){var t,n,r,o=this,a=Q,i=[];Q.dragging[0],e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)n=i[s],a.fingers[n.identifier],a.fingers[n.identifier]&&a.fingers[n.identifier].forEach((function(a){if(r)return a._lastPos.x=a._startPos.x="MS"==K.prefix?n.x:n.pageX,void(a._lastPos.y=a._startPos.y="MS"==K.prefix?n.y:n.pageY);for(a._lastPos.x="MS"==K.prefix?n.x:n.pageX,a._lastPos.y="MS"==K.prefix?n.y:n.pageY,t=0;t<a.drag.length;t++)r=!1===a.drag[t][0].call(a.drag[t][1]||o,e,n,a)}))},dropWithoutClick:function(e){Q.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Q.preventNextClick=!1),ee.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,n,r,o=this,a=Q,i=[];e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)n=i[s],a.nbFingers--,a.fingers[n.identifier]&&a.fingers[n.identifier].forEach((function(a){for(a.nbFingers--,r=r||a.mouseDrag&&e.timeStamp-a._startTs>250,a._lastPos.x="MS"==K.prefix?n.x:n.pageX,a._lastPos.y="MS"==K.prefix?n.y:n.pageY,t=0;t<a.dropped.length;t++)a.dropped[t][0].call(a.dropped[t][1]||o,e,n,a)})),a.fingers[n.identifier]=null;r&&(a.preventNextClick=!0),a.nbFingers||ee.removeEvent(document,{touchmove:a.dragAnywhere,mousemove:a.dragAnywhere,touchend:a.dropAnywhere,mouseup:a.dropAnywhere})},getDraggable:function(e,t,n){var r,o=this.dragEnabled.indexOf(e);return-1===o?(this.dragEnabled.push(e),this.dragEnabledDesc.push(r={mouseDrag:t,touchDrag:n,nbFingers:0,locks:0,_startPos:{x:0,y:0},_lastPos:{x:0,y:0},dragstart:[],drag:[],dragEnd:[],dropped:[]}),ee.addEvent(e,{mousedown:t&&this.dragstartAnywhere,touchstart:n&&this.dragstartAnywhere},null,null,null,!0)):r=this.dragEnabledDesc[o],r},freeDraggable:function(e){var t=this.dragEnabled.indexOf(e);-1!==t&&(this.dragEnabled.splice(t,1),this.dragEnabledDesc.splice(t,1),ee.removeEvent(e,{mousedown:this.dragstartAnywhere,touchstart:this.dragstartAnywhere}))},addEvent:function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n.related=function(t){return n.call(e,t)})},removeEvent:function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on"+t,n.related)},rmDragFn:function(e,t,n){for(var r=0,o=e.length;r<o;r++)if(e[r][0]===t)return e.splice(r,1);console.warn("Rm event : Listener not found !!")}},ee={addEvent:function(e,t,n,r,o,a){if(void 0===o&&(o=!0),Z.object(t))for(var i in t)t.hasOwnProperty(i)&&t[i]&&this.addEvent(e,i,t[i],r,o,a);else"dragstart"===t?Q.getDraggable(e,r,o).dragstart.push([n]):"drag"===t?Q.getDraggable(e,r,o).drag.push([n]):"dropped"===t?Q.getDraggable(e,r,o).dropped.push([n]):e.addEventListener?e.addEventListener(t,n,{passive:!1}):e.attachEvent&&e.attachEvent("on"+t,n.related=function(t){return n.call(e,t)})},removeEvent:function(e,t,n,r,o){var a;if(Z.object(t))for(var i in t)t.hasOwnProperty(i)&&this.removeEvent(e,i,t[i],r);else/^(drag|drop)/.test(t)?(a=Q.getDraggable(e),Q.rmDragFn(a[t],n,r),a.dragstart.length||a.drag.length||a.dragEnd.length||a.dropped.length||Q.freeDraggable(e)):e.removeEventListener?e.removeEventListener(t,n,o):e.attachEvent&&e.detachEvent("on"+t,n.related)},offset:function(e){for(var t={top:0,left:0,width:e.offsetWidth,height:e.offsetHeight};e;)t.top=t.top+parseInt(e.offsetTop),t.left=t.left+parseInt(e.offsetLeft),e=e.offsetParent;return t},findReactParents:function(e){var t,n=[e];for(var r in e)if(r.startsWith("__reactInternalInstance$")||r.startsWith("__reactFiber$")){for(t=e[r];t.return;)t.stateNode&&!n.includes(t.stateNode)&&n.push(t.stateNode),t=t.return;return n}return e.parentNode&&this.findReactParents(e.parentNode)}};const te=ee;var ne=n(73),re=n(367),oe=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},ae=Math.abs,ie=Math.floor,se=(Math.round,Math.min),le=Math.max,ue=function(e){return void 0===e&&(e=0),e.toFixed(3)},ce=function(){function e(e){var t=this._={};t.conf=c()({},this.constructor.config,e),this.active=!1,t.pos=e.value||0,t.refFPS=16,t.min=e.min||0,t.max=e.max||0,t.currentStop=0,t.lastInertiaPos=0,t.stops=t.conf.stops,t.disabled=t.conf.disabled,t.wayPoints=t.conf.wayPoints,t.inertiaFn=re.easePolyOut,t.targetWayPointIndex=0,this._detectCurrentSnap()}var t=e.prototype;return t.updateConf=function(e){var t=this._;t.min=e.min||0,t.max=e.max||0,t.stops=e.stops,t.disabled=e.disabled,t.wayPoints=e.wayPoints,t.conf.willStop=e.willStop,t.conf.willSnap=e.willSnap,t.conf.onStop=e.onStop,t.conf.onSnap=e.onSnap,t.conf.shouldLoop=e.shouldLoop},t.startMove=function(){var e=this._;e.baseTS=e.startTS=Date.now()/1e3,e.lastVelocity=e.lastIVelocity=0,e.lastAccel=0,e.posDiff=0,e.loopsDiff=0,this.active=!0,this.holding=!0,e.inertia=!1},t.hold=function(e){var t,n=this._,r=void 0!==n.lastHoldPos?e-n.lastHoldPos:0,o=Date.now()/1e3,a=o-n.baseTS,i=e,s=r/a;if(n.lastHoldPos=e,n.lastBaseTs||(n.lastBasePos=e,n.lastBaseTs=n.baseTS),a<.003||((s<=0&&n.lastVelocity>0||s>=0&&n.lastVelocity<0||ae(s)<ae(.2*n.lastVelocity))&&o-n.lastBaseTs>.15?(n.lastBasePos=e,n.lastBaseTs=o,n.lastVelocity=0,n.lastIVelocity=0,n.baseTS=o,n.targetDist=0,n.lastInertiaPos=0):s<=0&&n.lastVelocity>0||s>=0&&n.lastVelocity<0||ae(s)<ae(.2*n.lastVelocity)||(n.lastIVelocity=s,n.lastVelocity=(i-n.lastBasePos)/(o-n.lastBaseTs),n.baseTS=o,n.targetDist=0,n.lastInertiaPos=0,n.targetWayPoint=void 0,n.targetWayPointIndex=void 0)),n.conf.bounds&&(i>n.max?i=n.max:i<n.min&&(i=n.min)),n.conf.shouldLoop)for(;t=n.conf.shouldLoop(i,r);)i+=t;n.pos=i},t.release=function(){var e=this._;oe(e.lastVelocity),this.holding=!1,function(e){var t=oe(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=ie(Math.log(.05/ae(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-ae(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=ae(e.loopsTarget*e.refFPS*t)||0)}(e),e.lastHoldPos=void 0,e.lastBasePos=void 0,e.lastBaseTs=void 0,e.holding=!1,e.conf.bounds&&e.conf.snapToBounds&&(e.pos+e.targetDist>e.max?(e.targetDist=e.max-e.pos,e.targetDuration=ae(10*e.targetDist)):e.pos+e.targetDist<e.min&&(e.targetDist=e.min-e.pos,e.targetDuration=ae(10*e.targetDist))),e.targetDuration||(e.targetDuration=50),this.active=!0,e.inertia=!0,e.lastInertiaPos=0,e.inertiaStartTm=e.inertiaLastTm=Date.now(),this._doSnap(null,500),null==e.conf.willEnd||e.conf.willEnd(e.targetDist+e.pos,e.targetDist,e.targetDuration)},t.update=function(e){void 0===e&&(e=Date.now());var t,n,r=this._,o=r.inertiaFn((e-r.inertiaStartTm)/r.targetDuration)*r.targetDist;if(!r.inertia)return r.pos;var a=o-r.lastInertiaPos;if(r.lastInertiaPos=o,e-r.inertiaStartTm>=r.targetDuration&&(r.inertia=this.active=!1,r.lastInertiaPos=a=0,r.targetDist=0,r.targetWayPoint&&(a=r.targetWayPoint.at-r.pos,r.currentWayPoint=r.targetWayPoint,r.currentWayPointIndex=r.targetWayPointIndex,r.targetWayPoint=null,r.targetWayPointIndex=null),r.conf.onStop&&r.conf.onStop(r.pos,r.currentWayPoint),r.conf.onSnap&&r.conf.onSnap(r.currentWayPointIndex,r.currentWayPoint)),a=a||0,t=r.pos+a,r.conf.shouldLoop)for(;n=r.conf.shouldLoop(t,a);)t+=n,r.inertia;return r.pos=t,t},t.setPos=function(e){var t=this._;if(t.inertia=!1,this.active=!1,t.lastInertiaPos=0,t.targetDist=0,t.inertiaStartTm=0,t.inertiaLastTm=0,t.targetDuration=0,t.conf.shouldLoop){for(var n,r=e;n=t.conf.shouldLoop(r,t.pos-e);)r+=n;e=r}t.pos=e,t.conf.bounds&&(t.pos=le(t.pos,t.min),t.pos=se(t.pos,t.max))},t.setWayPoints=function(e){this._.wayPoints=e,this._detectCurrentSnap()},t.teleport=function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e},t.dispatch=function(e,t){void 0===t&&(t=500);var n=this._,r=Date.now();this.active=!0,n.inertia&&oe(e)===oe(n.targetDist)?(n.targetDist+=e,n.targetDuration+=t/2):(n.inertia=!0,n.lastInertiaPos=0,n.inertiaStartTm=n.inertiaLastTm=r,n.targetDist=e,n.targetDuration=t),n.conf.bounds&&(n.pos+n.targetDist>n.max?(n.targetDist=n.max-n.pos,n.targetDuration=ae(10*n.targetDist)):n.pos+n.targetDist<n.min&&(n.targetDist=n.min-n.pos,n.targetDuration=ae(10*n.targetDist))),this._doSnap(oe(e),750)},t._detectCurrentSnap=function(){var e,t=this._,n=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(ue(t.wayPoints[e].at)===ue(n))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e},t._doSnap=function(e,t){void 0===t&&(t=2e3);var n,r,o,a,i=this._,s=i.targetDist+(i.pos-(i.lastInertiaPos||0)),l=0;if(i.wayPoints&&i.wayPoints.length){if(i.conf.shouldLoop)for(;a=i.conf.shouldLoop(s,0);)s+=a,l+=a;for(o=0;o<i.wayPoints.length&&!(i.wayPoints[o].at>s);o++);if(o===i.wayPoints.length?o--:0===o?o=0:(r=(i.wayPoints[o].at-i.wayPoints[o-1].at)/2,r=i.wayPoints[o-1].at+r*((i.wayPoints[o].gravity||1)/(i.wayPoints[o-1].gravity||1)),e?e<0&&o--:s<r&&o--),i.conf.maxJump&&ne.number(i.currentWayPointIndex)){var u=o-i.currentWayPointIndex;ae(u)>i.conf.maxJump&&(o=i.currentWayPointIndex+oe(u)*i.conf.maxJump)}n=i.wayPoints[o].at,i.conf.willSnap&&i.conf.willSnap(o,i.wayPoints[o]),i.lastInertiaPos=i.lastInertiaPos||0,n=n-(i.pos-i.lastInertiaPos)-l,i.targetDuration=le(50,se(t,ae(i.targetDuration/i.targetDist*n)))||0,i.targetDist=n,i.targetWayPoint=i.wayPoints[o],i.targetWayPointIndex=o}else n=~~(i.pos-i.lastInertiaPos),i.conf.infinite||(n>i.max?(n=i.max-n,i.targetDuration=se(t,ae(i.targetDuration/i.targetDist*n)),i.targetDist=n):n<i.min&&(n=i.min-n,i.targetDuration=se(t,ae(i.targetDuration/i.targetDist*n)),i.targetDist=n))},t.setBounds=function(e,t){var n=this._;n.min=e,n.max=t},t.isInbound=function(e){var t=this._,n=void 0!==t.lastHoldPos?e-t.lastHoldPos:0,r=(t.targetDist||0)+(t.pos-(t.lastInertiaPos||0))+n;return r>=t.min&&r<=t.max},e}();ce.config={bounds:!0,snapToBounds:!0};var pe,fe,de=new Function("try {return this===window;}catch(e){ return false;}")(),he=h().array,ge=[],me=function e(){var t=0,n=Date.now(),r=n-fe;for(fe=n;t<ge.length;t++)ge[t].cpos=Math.min(r+ge[t].cpos,ge[t].duration),ge[t].apply(ge[t].cpos,ge[t].duration),ge[t].cpos==ge[t].duration&&(ge[t].cb&&setTimeout(ge[t].cb),ge.splice(t,1),t--);ge.length?setTimeout(e,16):pe=!1},xe=function(e){function t(t){var n;(n=e.apply(this,arguments)||this).axes={},n._scrollWatcherByAxis={},n._updateNodeInertia=function(){var e,t=n._,r=t.activeInertia.length;n._inertiaRaf&&cancelAnimationFrame(n._inertiaRaf);for(var o=0;r>o;o++)((e=t.activeInertia[o]).inertia.x.active||e.inertia.x.holding)&&(e.target.scrollLeft=~~e.inertia.x.update()),(e.inertia.y.active||e.inertia.y.holding)&&(e.target.scrollTop=~~e.inertia.y.update()),e.inertia.x.active||e.inertia.y.active||e.inertia.x.holding||e.inertia.y.holding||(t.activeInertia.slice(o,1),o--,r--);n._inertiaRaf=0!==r?requestAnimationFrame(n._updateNodeInertia):null},n._swap={};var r=n._={refs:{},muxByTarget:{}};return r.box={x:100,y:100,z:800},n.__isTweener=!0,r._rafLoop=n._rafLoop.bind(x()(n)),r.rootRef=n.props.forwardedRef||i().createRef(),r.options=c()({maxClickTm:200,maxClickOffset:5},t.tweenerOptions||{}),r.tweenRefCSS={},r.tweenRefs={},r.tweenRefMaps={},r.iMapOrigin={},r.tweenRefInitialData={},r.tweenEnabled=!0,r.tweenRefOrigin={},r.tweenRefOriginCss={},r.muxDataByTarget=r.muxDataByTarget||{},r.tweenRefDemuxed=r.tweenRefDemuxed||{},r.tweenRefTargets=r.tweenRefTargets||[],r.runningAnims=r.runningAnims||[],r.scrollHook=[],r.activeInertia=[],de&&window.addEventListener("resize",n._.onResize=function(e){var t,o;n._updateBox(),n._updateTweenRefs(),null==(t=r.rootRef)||null==(o=t.current)||null==o.windowDidResize||o.windowDidResize(e)}),n}o()(t,e);var n=t.prototype;return n.tweenRef=function(e,t,n,r,o,a){void 0===t&&(t={}),void 0===n&&(n={});var i=this._,s={},u={};return i.tweenRefs[e]||i.tweenRefTargets.push(e),i.tweenRefs[e]&&(a||i.iMapOrigin[e]!==n&&!l()(n,i.iMapOrigin[e])||i.tweenRefOriginCss[e]!==t&&!l()(t,i.tweenRefOriginCss[e]))?(i.iMapOrigin[e]=n,i.tweenRefOriginCss[e]=t,t=t||{},n=n||{},t=c()({},t,H(n,s,u,i.muxDataByTarget[e],i.muxByTarget[e],!1,!0)),Object.keys(i.tweenRefOrigin[e]).forEach((function(t){return i.tweenRefMaps[e][t]-=i.tweenRefOrigin[e][t]})),Object.keys(u).forEach((function(t){return i.tweenRefMaps[e][t]=h().number(i.tweenRefMaps[e][t])?i.tweenRefMaps[e][t]:u[t]})),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]+=s[t]})),Object.keys(i.tweenRefOrigin[e]).forEach((function(t){N(0,t,i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxDataByTarget[e],i.muxByTarget[e])})),i.tweenRefOrigin[e]=c()({},s),z(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box),this._updateTweenRef(e,!0)):i.tweenRefs[e]?z(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box):(i.iMapOrigin[e]=n,t=t||{},n=n||{},i.tweenRefs[e]=!0,i.muxByTarget[e]=i.muxByTarget[e]||{},i.muxDataByTarget[e]=i.muxDataByTarget[e]||{},i.tweenRefOriginCss[e]=t,i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},i.tweenRefOrigin[e]?(t=c()({},t,H(n,s,u,i.muxDataByTarget[e],i.muxByTarget[e],!1,!0)),Object.keys(u).forEach((function(t){return i.tweenRefMaps[e][t]=h().number(i.tweenRefMaps[e][t])?i.tweenRefMaps[e][t]-u[t]:0})),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]+=s[t]}))):(t=c()({},t,H(n,s,u,i.muxDataByTarget[e],i.muxByTarget[e])),s=Object.assign({},u,s||{}),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]=(i.tweenRefMaps[e][t]||0)+s[t]}))),i.tweenRefOrigin[e]=c()({},s),i.tweenRefCSS[e]=t,z(s=i.tweenRefMaps[e],t,i.muxByTarget[e],i.muxDataByTarget[e],i.box)),o?{style:c()({},i.tweenRefCSS[e])}:{style:c()({},i.tweenRefCSS[e]),ref:function(t){return i.refs[e]=t}}},n.rmTweenRef=function(e){this._.tweenRefs[e]&&(this._.tweenRefTargets.splice(this._.tweenRefTargets.indexOf(e),1),delete this._.tweenRefs[e],delete this._.muxByTarget[e],delete this._.muxDataByTarget[e],delete this._.iMapOrigin[e],delete this._.tweenRefOrigin[e],delete this._.tweenRefCSS[e],delete this._.tweenRefMaps[e],delete this._.refs[e])},n.resetTweenable=function(){for(var e=this,t=this._,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){e.tweenRef(n,t.tweenRefOriginCss[n],t.iMapOrigin[n],null,null,!0)})),this._updateTweenRefs()},n.updateRefStyle=function(e,t,n){var r,o=this,a=this._;return he(e)&&he(t)?e.map((function(e,r){return o.updateRefStyle(e,t[r],n)})):he(e)?e.map((function(e){return o.updateRefStyle(e,t,n)})):a.tweenRefMaps[e]?(r=H(t,a.tweenRefMaps[e],{},a.muxDataByTarget[e],a.muxByTarget[e]),Object.assign(a.tweenRefCSS[e],r),Object.assign(a.tweenRefOriginCss[e],r),z(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")},n.getTweenableRef=function(e){try{return this._.refs[e]&&w().findDOMNode(this._.refs[e])}catch(t){try{return this._.refs[e]._.rootRef.current}catch(t){return void console.warn("react-voodoo: Can't find voodooNode ",e,t)}}},n.getRootNode=function(){try{return this.getTweenableRef(this._.rootRef)||this.isMountedFromHook&&this._.rootRef&&this._.rootRef.current||w().findDOMNode(this)}catch(e){return this._.rootRef&&this._.rootRef.current}},n.pushAnim=function(e,n,r){var o=this;void 0===r&&(r=!0);var a,i,s=this._,l={};if(he(e)?a=e:(a=e.anims,e.initial),a instanceof U||(a=V(a,l,this._.muxDataByTarget,this._.muxByTarget),a=new U(a,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return o._.tweenRefMaps[e]&&Object.assign(o._.tweenRefMaps[e],c()({},l[e],o._.tweenRefMaps[e]))||(i=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!i)return new Promise((function(e){a.run(o._.tweenRefMaps,(function(){var t=o._.runningAnims.indexOf(a);-1!=t&&o._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){N(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],r)}))})),a.destroy(),e(a)})),o._.runningAnims.push(a),o._.live||(o._.live=!0,requestAnimationFrame(o._._rafLoop=o._._rafLoop||o._rafLoop.bind(o)))})).then((function(e){return n&&n(e)}))},n.applyTweenState=function(e,t,n){var r=this,o={},a={};H(t,o,a,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return r._.tweenRefMaps[e][t]=(!n&&r._.tweenRefMaps[e][t]||a[t])+o[t]}))},n.initAxis=function(e,t,n){var r=this,o=t.inertia,a=t.scrollableArea,i=void 0===a?0:a,s=t.scrollableBounds,l=t.scrollableWindow,u=t.defaultPosition,p=t.scrollFirst,f=(this._,this.axes[e]),d=s,h=!n&&f?f.scrollPos:u||d&&d.min||0,g=Math.max(f&&f.scrollableArea||0,i),m=Math.max(f&&f.scrollableWindow||0,l),x=f?f.targetPos:h,v=f?f.inertia:new ce(c()({disabled:!o},o||{},{value:h})),y={scrollFirst:p,tweenAxis:f&&f.tweenAxis||[],scrollPos:h,targetPos:x,inertia:v,scrollableWindow:m,scrollableBounds:d,scrollableArea:g,scrollTo:function(t,n,o,a){return r.scrollTo(t,n,e,o,a)}};this.axes[e]=y,!o&&(v._.disabled=!0),o&&v&&!v.active&&(v._.pos=h),o&&v&&v.updateConf(o),v&&d?null==v.setBounds||v.setBounds(d.min,d.max):v&&(null==v.setBounds||v.setBounds(0,g))},n._getAxis=function(e){var t=this;void 0===e&&(e="scrollY");var n=this._;return this.axes[e]=this.axes[e]||{tweenAxis:[],scrollPos:n.options.initialScrollPos&&n.options.initialScrollPos[e]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new ce(c()({value:n.options.initialScrollPos&&n.options.initialScrollPos[e]||0},n.options.axes&&n.options.axes[e]&&n.options.axes[e].inertia||{})),scrollTo:function(n,r,o,a){return t.scrollTo(n,r,e,o,a)}},this.axes[e]},n.getAxisState=function(e){var t=this,n=(this._,{});return this.axes&&Object.keys(this.axes).forEach((function(e){return n[e]=t.axes[e].targetPos||t.axes[e].scrollPos})),n},n.getScrollPos=function(e){return void 0===e&&(e="scrollY"),this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0},n.scrollTo=function(e,t,n,r,o){var a=this;void 0===t&&(t=0),void 0===n&&(n="scrollY");var i=this._;return de?new Promise((function(s,l){if(a.axes&&a.axes[n]){var u,c,p,f,d,h,g,m,x,y=a.axes[n].targetPos,w=function(e){var t,r;e=~~(1e4*e)/1e4,a.axes[n].targetPos=a.axes[n].scrollPos=e,~~e!==y&&(a.axisDidScroll(~~e,n),null==(t=i.rootRef)||null==(r=t.current)||null==r.componentDidScroll||r.componentDidScroll(~~e,n)),a._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,a.axes[n].scrollableArea||0),a.axes[n].targetPos=e,t)a._runScrollGoTo(n,e,t,v[r],o,w,s);else null==(u=a.axes)||null==(c=u[n])||null==(p=c.inertia)||p.setPos(e),null!=(f=a.axes)&&null!=(d=f[n])&&null!=(h=d.inertia)&&h._&&(e=null==(g=a.axes)||null==(m=g[n])||null==(x=m.inertia)?void 0:x._.pos),a.axes[n].tweenAxis.forEach((function(t){return t.goTo(e,i.tweenRefMaps,!1,o)})),w(e),s();i.live||(i.live=!0,requestAnimationFrame(i._rafLoop))}})).then((function(e){var t,r,o;null==(t=a.axes)||null==(r=t[n])||null==(o=r.inertia)||o._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())},n.addScrollableAnim=function(e,t,n){var r,o=this;void 0===t&&(t="scrollY");var a,i=this._,s={},l=this._getAxis(t);return he(e)?a=e:(a=e.anims,e.length),a instanceof U||(a=V(a,s,this._.muxDataByTarget,this._.muxByTarget),(a=new U(a,i.tweenRefMaps)).initials=s,Object.keys(s).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(o._.tweenRefMaps[e],c()({},s[e],o._.tweenRefMaps[e]))}))),l.tweenAxis.push(a),l.scrollPos=l.scrollPos||0,l.scrollableArea=l.scrollableArea||0,l.scrollableArea=Math.max(l.scrollableArea,a.duration),l.scrollableBounds||null==(r=l.inertia)||r.setBounds(0,l.scrollableArea),a.goTo(l.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),a},n.rmScrollableAnim=function(e,t){void 0===t&&(t="scrollY");var n,r,o=this._,a=this._getAxis(t),i=a.tweenAxis.indexOf(e);-1!==i&&(a.tweenAxis.splice(i,1),a.scrollableArea=Math.max.apply(Math,a.tweenAxis.map((function(e){return e.duration})).concat([0])),a.scrollableBounds||null==(r=a.inertia)||r.setBounds(0,a.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){N(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),n=!0,this._updateTweenRefs()),!n&&console.warn("react-voodoo: Axis not found : ",t)},n._runScrollGoTo=function(e,t,n,r,o,a,i){var s=this;void 0===r&&(r=function(e){return e});var l=this.axes[e].scrollPos,u=t-l;ge.push({apply:function(t,n){var i,c,p,f,d,h,g,m,x,v=l+r(t/n)*u;s._.tweenEnabled&&(null==(i=s.axes)||null==(c=i[e])||null==(p=c.inertia)||p.setPos(v),null!=(f=s.axes)&&null!=(d=f[e])&&null!=(h=d.inertia)&&h._&&(v=null==(g=s.axes)||null==(m=g[e])||null==(x=m.inertia)?void 0:x._.pos),s.axes[e].tweenAxis.forEach((function(e){return e.goTo(v,s._.tweenRefMaps,!1,o)})),a&&a(v))},duration:n,cpos:0,cb:i}),pe||(pe=!0,fe=Date.now(),setTimeout(me,16))},n.componentShouldScroll=function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)},n.watchAxis=function(e,t){var n=this._scrollWatcherByAxis;return n[e]=n[e]||[],n[e].push(t),function(){var r=n[e].indexOf(t);n[e].splice(r,1)}},n.axisDidScroll=function(e,t){var n=this._scrollWatcherByAxis[t],r=null==n?void 0:n.length;if(n)for(;r;)n[--r](e)},n.applyInertia=function(e,t){var n,r,o=this,a=e.inertia.update(),i=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=a,e.goTo(a,o._.tweenRefMaps)})),null==(n=i.rootRef)||null==(r=n.current)||null==r.componentDidScroll||r.componentDidScroll(a,t),this.axisDidScroll(a,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null},n.isInertiaActive=function(){var e=this,t=(this._,!1);return this.axes&&Object.keys(this.axes).forEach((function(n){return t=t||e.axes[n]&&e.axes[n].inertia.active})),t},n.isAxisOut=function(e,t,n){this._;var r=this.axes&&this.axes[e],o=n?t:r&&r.scrollPos+t;return o=o&&Math.round(o),!r||(r.scrollableBounds?o<=r.scrollableBounds.min||o>=r.scrollableBounds.max:o<=0||o>=r.scrollableArea)},n._activateNodeInertia=function(e){var t=this._,n=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===n&&(t.activeInertia.push({inertia:{x:new ce({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new ce({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),n=t.activeInertia.length-1),t.activeInertia[n].inertia},n.setRootRef=function(e){this._.rootRef=e},n._updateBox=function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)},n._rafLoop=function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1},n._updateTweenRefs=function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)},n._updateTweenRef=function(e,t){var n,r=this._swap;if(this._.tweenRefCSS[e]&&z(this._.tweenRefMaps[e],r,this._.muxByTarget[e],this._.muxDataByTarget[e],this._.box),n=this.getTweenableRef(e)){for(var o in this._.tweenRefCSS[e])void 0===r[o]&&(n.style[o]=this._.tweenRefCSS[e][o]);for(var a in r)this._.tweenRefCSS[e].hasOwnProperty(a)&&((t||r[a]!==this._.tweenRefCSS[e][a])&&(n.style[a]=this._.tweenRefCSS[e][a]=r[a]),delete r[a])}return this._.tweenRefCSS[e]},n.componentWillUnmount=function(){var t=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(e){t.axes[e].inertiaFrame&&clearTimeout(t.axes[e].inertiaFrame)}))),e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.apply(this,arguments)},n.componentDidMount=function(){var t=this,n=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),n.scrollableAnim&&(h().array(n.scrollableAnim)?this.addScrollableAnim(n.scrollableAnim):Object.keys(n.scrollableAnim).forEach((function(e){return t.addScrollableAnim(n.scrollableAnim[e],e)}))),e.prototype.componentDidMount&&e.prototype.componentDidMount.apply(this,arguments)},n.componentDidUpdate=function(t,n){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),e.prototype.componentDidUpdate&&e.prototype.componentDidUpdate.apply(this,arguments)},n.render=function(){var e=this,t=this.props,n=t.BaseComponent,r=t.oProps;return i().createElement(g.Consumer,null,(function(t){return e._parentTweener=t,i().createElement(g.Provider,{value:e},i().createElement(n,c()({},r,{ref:e._.rootRef,tweener:e})))}))},t}(i().Component),ve=["children"];const ye=function(e,t){void 0===t&&(t="div");var n=i().useContext(g),r=i().useRef(),o=i().useRef(),a=i().useMemo((function(){return!0===e||h().string(e)}),[]),s=i().useMemo((function(){if(!0===e)return n;if(h().string(e)){for(var t=n;null!=(o=t)&&o._&&t._.options.name!==e;){var o;if(!t._parentTweener){console.warn('react-voodoo: No parent tweener found with option.key === "'+e+'"');break}t=t._parentTweener}return t}var a=new xe({forwardedRef:r,tweenerOptions:e});return a.isMountedFromHook=!0,a._parentTweener=n,a}),[]),l=i().useMemo((function(){return i().forwardRef((function(e,n){var o=e.children,a=f()(e,ve);return i().createElement(g.Provider,{value:s},i().createElement(t,c()({ref:n?function(e){return n.current=r.current=e}:r},a),o))}))}),[]);return i().useEffect((function(){var e;if(!a&&null!=(e=o.current)&&e._)return s.componentDidMount(),o.current=s,function(){var e;null!=(e=o.current)&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[r.current]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._parentTweener=n)}),[n]),i().useEffect((function(){var t;!a&&null!=(t=o.current)&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),i().useMemo((function(){return[s,l]}),[l,s])},we=function(e){e.children;var t=e.id,n=e.axe,r=void 0===n?t:n,o=e.scrollFirst,a=e.bounds,s=e.scrollableWindow,u=e.inertia,c=e.size,p=e.defaultPosition,f=e.items,d=void 0===f?[]:f,h=i().useRef({}).current,g=ye(!0)[0];return h.previousAxis&&h.previousAxis===r?h.previousInertia&&h.previousInertia===u&&h.previousBounds===a&&h.previousScrollableWindow===s||(h.previousInertia=u,h.previousAxis=r,h.previousBounds=a,h.previousScrollableWindow=s,g.initAxis(r,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a})):(h.previousAxis=r,h.previousInertia=u,g.initAxis(r,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a},!0)),h.previousTweener&&h.previousTweener===g?h.previousTweens===d||h.previousTweens&&l()(d,h.previousTweens)||(h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),h.lastTL=null,d.length&&(h.lastTL=g.addScrollableAnim(d,r,c)),h.previousTweens=d):(h.previousTweener&&h.lastTL&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),d.length&&(h.lastTL=g.addScrollableAnim(d,r,c)),h.previousTweener=g,h.previousTweens=d),i().useEffect((function(){return function(){h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),delete h.previousTweener,delete h.previousScrollable}}),[]),i().createElement(i().Fragment,null)},be=require("shortid");var _e=n.n(be);function Re(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Te(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||Re(e)}var Se=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Pe=["children","className"];function De(e,t){return e.map((function(e){return c()({},e,{target:t})}))}var Me=function(e){var t=e.children,n=e.id,r=void 0===n?i().useMemo((function(){return _e().generate()}),[]):n,o=e.style,a=e.initial,s=e.pos,u=e.noRef,p=(e.reset,e.tweener),d=(e.isRoot,e.axes),g=e.refProp,m=void 0===g?"nodeRef":g,x=e.tweenLines,v=void 0===x?d:x,y=e.tweenAxis,w=void 0===y?v:y,b=f()(e,Se),_=i().useRef({}).current,R=ye(!0)[0];if(!(R=p||R))return console.error("No Voodoo tweener found in the context, is there any parent with asTweener ?"),i().createElement(i().Fragment,null);var T,S=R.tweenRef(r,t.props&&t.props.style,o||a,s,u);i().useEffect((function(){return function(){_._tweenAxisObj&&Object.keys(_._tweenAxisObj).forEach((function(e){return _._currentTweener.rmScrollableAnim(_._tweenAxisObj[e],e)})),_._currentTweener&&(_._currentTweener.rmTweenRef(_.__tweenableId),_._currentTweener.setRootRef(void 0)),delete _._currentTweener,delete _._tweenAxisObj,delete _._previousScrollable}}),[]),(T=_._tweenAxis!==w&&!(_._tweenAxis&&l()(w,_._tweenAxis))||w&&!_._tweenAxis)||_._currentTweener!==R||_._previousScrollable!==w?(_._currentTweener&&T&&_._tweenAxisObj&&Object.keys(_._tweenAxisObj).forEach((function(e){return _._currentTweener.rmScrollableAnim(_._tweenAxisObj[e],e)})),_._currentTweener&&_._currentTweener!==R&&_._currentTweener.rmTweenRef(r),T&&(_._tweenAxis=w,w&&h().array(w)?_._tweenAxisObj={scrollY:R.addScrollableAnim(De(w,r))}:_._tweenAxisObj=w&&Object.keys(w).reduce((function(e,t){return e[t]=R.addScrollableAnim(De(w[t],r),t),e}),{}),S=R.tweenRef(r,t.props&&t.props.style,o||a,s,u)),S.style=c()({},R._updateTweenRef(r,!0)),b.hasOwnProperty("isRoot")&&(_._currentTweener&&_._currentTweener.setRootRef(void 0),p.setRootRef(r)),_._currentTweener=R,_._previousScrollable=w):S&&(S.style=c()({},R._updateTweenRef(r,!0)));var P,D=i().Children.only(t);return D&&i().isValidElement(D)?(_._lastRef=S,Re(D.type)?i().createElement(D.type,c()({},b,D.props,S,{ref:void 0},((P={})[m]=S.ref,P))):i().createElement(D.type,c()({},b,D.props,S))):(console.error("Invalid voodoo Node child : ",r),i().createElement("div",null,"Invalid"))};const Ee=Me;Me.div=function(e){var t=e.children,n=e.className,r=f()(e,Pe);return i().createElement(Me,r,i().createElement("div",{className:n},t))};var Oe=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],Ae=function(e){var t=e.children,n=e.Comp,r=void 0===n?"div":n,o=e.nodeRef,a=(e.items,e.xAxis),s=e.yAxis,l=e.yBoxRef,u=e.xBoxRef,p=(e.yRef,e.yHook),d=e.xHook,g=e.tweener,m=e.mouseDrag,x=void 0!==m&&m,v=e.touchDrag,y=void 0===v||v,w=e.button,b=void 0===w?0:w,_=f()(e,Oe),R=i().useRef(),T=i().useRef({root:R,_:{}}).current,S=ye(!0)[0],P=i().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],n=T._parentTweener;n;)t.push(n),n=n._parentTweener;return t},_registerScrollListeners:function(){var e,t,n,r,o,a,i,s,l,u=null==(e=T.root)?void 0:e.current,c=T.props,p=c.xAxis,f=c.yAxis,d=c.yHook,h=c.xHook,g=c.mouseDrag,m=c.touchDrag,x=c.tweener,v=c.xBoxRef,y=c.yBoxRef,w=c.button,b=x._;u?(te.addEvent(u,T._.dragList={dragstart:function(e,n,c){var d,h,g,m;if(!(e instanceof MouseEvent&&e.button!==w))for(o=P.getScrollableNodes(e.target),t=Date.now(),r=0,a=0,i=[],s=null==(d=(null==v?void 0:v.current)||u)?void 0:d.offsetWidth,l=null==(h=(null==y?void 0:y.current)||u)?void 0:h.offsetHeight,m=0;m<o.length;m++){var x,b;(g=o[m])._updateBox(),g.__isTweener&&(p&&(null==(x=g.axes)||x[p]),f&&(null==(b=g.axes)||b[f]),g._updateNodeInertia())}},click:function(e,n,o){e instanceof MouseEvent&&e.button!==w||t&&(t-Date.now()>b.options.maxClickTm||Math.abs(a)>b.options.maxClickOffset||Math.abs(r)>b.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,u,c){var g,m,x,_,R,T,S,P,D,M;if(!(e instanceof MouseEvent&&e.button!==w||(r=-(c._lastPos.x-c._startPos.x),a=-(c._lastPos.y-c._startPos.y),t&&t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(r)<b.options.maxClickOffset)))for(_=!r,P=!a,b.options.dragDirectionLock&&("Y"===n||!n&&Math.abs(.5*a)>Math.abs(r)?(n="Y",r=0):("X"===n||!n&&Math.abs(.5*r)>Math.abs(a))&&(n="X",a=0)),M=0;M<o.length;M++)if((g=o[M]).__isTweener){var E,O,A,B,C,k,L,I,W,j,F,N,z,H;if(m=p&&(null==(E=g.axes)?void 0:E[p]),T=f&&(null==(O=g.axes)?void 0:O[f]),!m&&!T)continue;i[M]||(i[M]={x:null==(L=m)?void 0:L.scrollPos,y:null==(I=T)?void 0:I.scrollPos},null==(W=m)||null==(j=W.inertia)||j.startMove(),null==(F=T)||null==(N=F.inertia)||N.startMove(),p&&m&&(null==(z=m)||!z.inertiaFrame)&&g.applyInertia(m,p),f&&T&&(null==(H=T)||!H.inertiaFrame)&&g.applyInertia(T,f)),m&&(R=null!=v&&v.current?s:g._.box.x,x=r&&r/R*(m.scrollableWindow||m.scrollableArea)||0,h&&(x=h(x))),T&&(D=null!=y&&y.current?l:g._.box.y,S=a&&a/D*(T.scrollableWindow||T.scrollableArea)||0,d&&(S=d(S))),m&&!_&&x&&null!=(A=m)&&null!=(B=A.inertia)&&B.isInbound(i[M].x+x)&&g.componentShouldScroll(p,x)&&(m.inertia.hold(i[M].x+x),_=!0),T&&!P&&S&&null!=(C=T)&&null!=(k=C.inertia)&&k.isInbound(i[M].y+S)&&g.componentShouldScroll(f,S)&&(T.inertia.hold(i[M].y+S),P=!0)}},dropped:function(e,s,l){var u,c;if(!(e instanceof MouseEvent&&e.button!==w)){for(n=void 0,c=0;c<o.length;c++){var d,h,g,m,x,v;(u=o[c]).__isTweener&&i[c]&&(null==(d=u.axes)||null==(h=d[p])||null==(g=h.inertia)||g.release(),null==(m=u.axes)||null==(x=m[f])||null==(v=x.inertia)||v.release())}!t||t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(r)<b.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=i=null}}},null,b.options.enableMouseDrag||g,m),T._.doRegister=!!u):T._.doRegister=!0}}}),[]);return i().useEffect((function(){return P._registerScrollListeners(),function(){var e,t=null==(e=T.root)?void 0:e.current;T._.scrollEnabled&&(T._.scrollEnabled=!1,t&&T._.dragList&&te.removeEvent(t,T._.dragList))}}),[]),i().useEffect((function(){h().function(o)&&o(R.current)})),T.props={xAxis:a,yAxis:s,yHook:p,xHook:d,mouseDrag:x,touchDrag:y,tweener:g||S,xBoxRef:u,yBoxRef:l,button:b},T._parentTweener=S,i().createElement(r,c()({ref:R},_),t)};const Be=Ae;Ae.div=function(e){return i().createElement(Ae,e)};const Ce=function(){return i().useContext(g)};var ke={}.constructor;function Le(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Te(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof ke)&&t.shift()||{};if(!r)return function(e){return Le(e,o)};o=c()({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var a=i().forwardRef((function(e,t){return i().createElement(xe,{oProps:e,forwardedRef:t,BaseComponent:r,tweenerOptions:o})}));return a.displayName=String.fromCharCode(55358,56793)+(r.displayName||r.name),a}var Ie,We={}.constructor;function je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Te(t[0]))&&t.shift(),a=(!t[0]||t[0]instanceof We)&&t.shift()||{};if(!r||!(r.prototype instanceof i().Component||r===i().Component))return function(e){return je(e,a)};var s=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){var e=this;return i().createElement(g.Consumer,null,(function(t){return i().createElement(r,c()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))},t}(i().Component);s.displayName=r.displayName||r.name;var l=i().forwardRef((function(e,t){return i().createElement(s,c()({},e,{forwardedRef:t}))}));return l.displayName=s.displayName,l}$().EasingFunctions=v;var Fe=Le(Ie=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){return this.props.children},t}(i().Component))||Ie;const Ne={tweener:Le,child:je,useTweener:Ce,useVoodoo:ye,hook:ye,tools:e,Draggable:Be,Component:Fe,Node:Ee,Context:g,Axis:we,dom:te}})(),module.exports=r})();
2
+ (()=>{var e={450:e=>{e.exports={walknSetExport:function(e,t,n){var r,o,a=t.split("/"),i=e;for(r=0;r<a.length-1;)i=i[a[r]]=i[a[r]]||{},r++;o=1===Object.keys(n).length&&n.default||n,i[a[r]]?(i[a[r]].__esModule||Object.assign(o,i[a[r]]),i[a[r]]=o):i[a[r]]=o}}},227:(e,t,n)=>{"use strict";n.d(t,{Yj:()=>a,Xg:()=>i,$_:()=>s,kE:()=>l,fi:()=>u,Rx:()=>c,bC:()=>p});var r={},o=n(450).walknSetExport;o(r,"any",n(582)),o(r,"bool",n(584)),o(r,"color",n(192)),o(r,"multi",n(822)),o(r,"ratio",n(425)),o(r,"length",n(231)),o(r,"number",n(277)),o(r,"shadow",n(940));var a=r.any,i=r.bool,s=r.color,l=r.length,u=r.multi,c=r.number,p=r.ratio},259:(e,t,n)=>{"use strict";n.d(t,{NQ:()=>r,Dl:()=>o,_9:()=>a,HM:()=>i,dn:()=>s,_j:()=>l,JO:()=>u});var r={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"],multiple:!0},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"],multiple:!0},paddingBottom:{types:["length"]},paddingLeft:{types:["length"]},paddingRight:{types:["length"]},paddingTop:{types:["length"]},bottom:{types:["length-percentage-calc"]},left:{types:["length-percentage-calc"]},right:{types:["length-percentage-calc"]},top:{types:["length-percentage-calc"]},zIndex:{types:["integer"]},width:{types:["length-percentage-calc"]},maxWidth:{types:["length-percentage-calc"]},minWidth:{types:["length-percentage-calc"]},height:{types:["length-percentage-calc"]},maxHeight:{types:["length-percentage-calc"]},minHeight:{types:["length-percentage-calc"]},lineHeight:{types:["length"]},verticalAlign:{types:["length"]},visibility:{types:["visibility"]},borderSpacing:{types:["length"],multiple:!0},color:{types:["color"]},opacity:{types:["number"]},backgroundColor:{types:["color"]},backgroundPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},backgroundSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},border:{properties:["borderStyle","borderWidth","borderColor"]},borderBottom:{properties:["borderBottomStyle","borderBottomWidth","borderBottomColor"]},borderLeft:{properties:["borderLeftStyle","borderLeftWidth","borderLeftColor"]},borderRight:{properties:["borderRightStyle","borderRightWidth","borderRightColor"]},borderTop:{properties:["borderTopStyle","borderTopWidth","borderTopColor"]},borderColor:{properties:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderWidth:{properties:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"]},borderBottomColor:{types:["color"]},borderLeftColor:{types:["color"]},borderRightColor:{types:["color"]},borderTopColor:{types:["color"]},borderBottomWidth:{types:["length"]},borderLeftWidth:{types:["length"]},borderRightWidth:{types:["length"]},borderTopWidth:{types:["length"]},borderRadius:{properties:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},borderTopLeftRadius:{types:["length-percentage-calc"],multiple:!0},borderTopRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomLeftRadius:{types:["length-percentage-calc"],multiple:!0},boxShadow:{types:["shadow-list"]},caretColor:{types:["color"]},outline:{properties:["outlineColor","outlineWidth"]},outlineColor:{types:["color"]},outlineWidth:{types:["length"]},outlineOffset:{types:["length"]},flex:{properties:["flexGrow","flexShrink","flexBasis"]},flexGrow:{types:["number"]},flexShrink:{types:["number"]},flexBasis:{types:["length-percentage-calc"]},order:{types:["integer"]},font:{properties:["fontWeight","fontStretch","fontSize","lineHeight"]},fontWeight:{types:["font-weight"]},fontStretch:{types:["font-stretch"]},fontSize:{types:["length"]},fontSizeAdjust:{types:["number"]},gridTemplateColumns:{types:["length-percentage-calc"],multiple:!0},gridTemplateRows:{types:["length-percentage-calc"],multiple:!0},gridTemplate:{properties:["gridTemplateRows","gridTemplateColumns"]},grid:{properties:["gridTemplateRows","gridTemplateColumns"]},gridRowGap:{types:["length-percentage-calc"]},gridColumnGap:{types:["length-percentage-calc"]},gridGap:{properties:["gridRowGap","gridColumnGap"]},clip:{types:["rectangle"]},clipPath:{types:["basic-shape"]},mask:{properties:["maskPosition","maskSize"]},maskPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},maskSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},shapeOutside:{types:["basic-shape"]},shapeMargin:{types:["length-percentage-calc"]},shapeImageThreshold:{types:["number"]},scrollPadding:{properties:["scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft"]},scrollPaddingTop:{types:["length-percentage-calc"]},scrollPaddingRight:{types:["length-percentage-calc"]},scrollPaddingBottom:{types:["length-percentage-calc"]},scrollPaddingLeft:{types:["length-percentage-calc"]},scrollPaddingBlock:{properties:["scrollPaddingBlockStart","scrollPaddingBlockEnd"]},scrollPaddingBlockStart:{types:["length-percentage-calc"]},scrollPaddingBlockEnd:{types:["length-percentage-calc"]},scrollPaddingInline:{properties:["scrollPaddingInlineStart","scrollPaddingInlineEnd"]},scrollPaddingInlineStart:{types:["length-percentage-calc"]},scrollPaddingInlineEnd:{types:["length-percentage-calc"]},scrollSnapMargin:{properties:["scrollSnapMarginTop","scrollSnapMarginRight","scrollSnapMarginBottom","scrollSnapMarginLeft"]},scrollSnapMarginTop:{types:["length"]},scrollSnapMarginRight:{types:["length"]},scrollSnapMarginBottom:{types:["length"]},scrollSnapMarginLeft:{types:["length"]},scrollSnapMarginBlock:{properties:["scrollSnapMarginBlockStart","scrollSnapMarginBlockEnd"]},scrollSnapMarginBlockStart:{types:["length"]},scrollSnapMarginBlockEnd:{types:["length"]},scrollSnapMarginInline:{properties:["scrollSnapMarginInlineStart","scrollSnapMarginInlineEnd"]},scrollSnapMarginInlineStart:{types:["length"]},scrollSnapMarginInlineEnd:{types:["length"]},textDecoration:{properties:["textDecorationColor"]},textDecorationColor:{types:["color"]},textEmphasis:{properties:["textEmphasisColor"]},textEmphasisColor:{types:["color"]},textShadow:{types:["shadow-list"]},columns:{properties:["columnWidth","columnCount"]},columnWidth:{types:["length"]},columnCount:{types:["integer"]},columnGap:{types:["length-percentage-calc"]},columnRule:{properties:["columnRuleColor","columnRuleWidth"]},columnRuleColor:{types:["color"]},columnRuleWidth:{types:["length"]},letterSpacing:{types:["length"]},tabSize:{types:["length"]},textIndent:{types:["length-percentage-calc"]},wordSpacing:{types:["length-percentage-calc"]},transform:{types:["transform"]},transformOrigin:{types:["length-percentage-calc"],multiple:!0},perspective:{types:["length"]},perspectiveOrigin:{types:["length-percentage-calc"],multiple:!0}},o=["","deg","box","bz","bh","bw","deg","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],a=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["\\w+","deg","bz","bh","bw","cap","ch","deg","em","ic","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")"),i=function(e){return void 0===e&&(e=0),Number(e.toFixed(3))};function s(e,t,n){void 0===n&&(n={});var o=r[e],a=o&&o.properties,i=t.split(" ");return o.multiple?a&&a.forEach((function(e,t){n[e]=i[t%i.length]})):a&&a.forEach((function(e,t){i[t]&&(n[e]=i[t])})),n}function l(e){var t=r[e],n=t&&t.properties;return n&&!!n.length}function u(e,t){return!!r[e]}},38:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,mux:()=>r.mux,release:()=>r.release});var r=n(192)},39:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,demuxOne:()=>r.demuxOne,mux:()=>r.mux,muxOne:()=>r.muxOne,release:()=>r.release});var r=n(940)},111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>c,demuxOne:()=>p,demux:()=>f,muxOne:()=>d,mux:()=>h});var r=n(213),o=n.n(r),a=n(73),i=n.n(a),s=n(259),l={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},u={};function c(e,t,n,r,o,a){var i,s=e.split("_");if(4===s.length){if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();0!==r[i].length||a||delete r[i],0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function p(e,t,n,r,o,a){var i=n,u=s.Dl[e]||l[r];return"bw"===u&&(i*=a.x,u="px"),"wh"===u&&(i*=a.y,u="px"),"bz"===u&&(i*=a.z,u="px"),"deg"===u&&(i%=360),u?(0,s.HM)(i)+u:(0,s.HM)(i)}function f(e,t,n,r,o){for(var a,i,s,l,u,c,f="",d=0,h=0;d<r[e].length;d++)for(i in a=r[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=p(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(f+=i+"("+(c||"0")+") ")}n.filter=f}function d(e,t,n,r,o,a,c,p){var d=!!i().string(n)&&n.match(s._9),h=d&&d[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=u[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?r[m]+=d?parseFloat(d[1]):parseFloat(n):(!c&&o[e][g]++,r[m]=d?parseFloat(d[1]):parseFloat(n),p&&(p[g]=!0)),f}var h=function(e,t,n,r,a,s,l){r[e]=r[e]||[],i().array(t)||(t=[t]);for(var u,c,p,h,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},r[e][v]||{}),u)if(u.hasOwnProperty(c))if(h=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||r[e][v]&&r[e][v][c]||0,!s&&p[c]++,r[g]=r[g]||[],i().array(h))for(m=0;m<h.length;m++)d(g,c,h[m]||0,n,r,a,s,x);else d(g,c,h||0,n,r,a,s);r[e][v]=l?o()({},p,r[e][v]||{},p):p}return f}},178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,demuxOne:()=>r.demuxOne,mux:()=>r.mux,muxOne:()=>r.muxOne,release:()=>r.release});var r=n(940)},374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>p,demuxOne:()=>f,demux:()=>d,muxOne:()=>h,mux:()=>g});var r=n(213),o=n.n(r),a=n(73),i=n.n(a),s=n(259),l={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},u={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},c={scale:1,scaleX:1,scaleY:1,scaleZ:1};function p(e,t,n,r,o,a){var i,s=e.split("_");if(4===s.length){if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();0!==r[i].length||a||delete r[i],0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function f(e,t,n,r,o,a){var i=n,c=s.Dl[e]||l[r];return"box"===c&&(i*=a[u[r]]||a.x,c="px"),"bw"===c&&(i*=a.x,c="px"),"wh"===c&&(i*=a.y,c="px"),"bz"===c&&(i*=a.z,c="px"),"deg"===c&&(i%=360),c?(0,s.HM)(i)+c:(0,s.HM)(i)}function d(e,t,n,r,o){for(var a,i,s,l,u,c,p="",d=0,h=0;d<r[e].length;d++)for(i in a=r[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=f(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(p+=i+"("+(c||"0")+") ")}n.transform=p}function h(e,t,n,r,o,a,u,p){var f=!!i().string(n)&&n.match(s._9),h=f&&f[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=c[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?r[m]+=f?parseFloat(f[1]):parseFloat(n):(!u&&o[e][g]++,r[m]=f?parseFloat(f[1]):parseFloat(n),p&&(p[g]=!0)),d}var g=function(e,t,n,r,a,s,l){if(r[e]=r[e]||[],!i().array(t)&&!i().object(t))return console.warn("React-Voodoo: Ignore unexpected value ",e,":",t," on ",n),d;i().array(t)||(t=[t]);for(var u,c,p,f,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},r[e][v]||{}),u)if(u.hasOwnProperty(c))if(f=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||r[e][v]&&r[e][v][c]||0,!s&&p[c]++,r[g]=r[g]||[],i().array(f))for(m=0;m<f.length;m++)h(g,c,f[m]||0,n,r,a,s,x);else h(g,c,f||0,n,r,a,s);r[e][v]=l?o()({},p,r[e][v]||{},p):p}return d}},582:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function o(e,t,n,r,o){n[e]=t[e]}n.r(t),n.d(t,{release:()=>r,demux:()=>o,mux:()=>a});var a=function(e,t,n,r,a,i){return a[e]=0,n[e]=t,r[e]=r[e]||0,!i&&r[e]++,o}},584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>o,demux:()=>a,mux:()=>i});var r={opacity:1};function o(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function a(e,t,n,r,o){var a=!!t[e];return n?n[e]=a:a}var i=function(e,t,n,o,i,s){return i[e]=r[e]||0,n[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,a}},192:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>i,mux:()=>s,release:()=>a});const r=require("color-rgba");var o=n.n(r);function a(e,t,n,r,o,a){var i=e.split("_"),s=i.slice(0,i.length-1).join("_");--r[e]||a||(delete t[e],delete r[e]),--r[s]||a||(delete t[e],delete r[e])}function i(e,t,n,r){var o="rgba("+t[e+"_r"]+", "+t[e+"_g"]+", "+t[e+"_b"]+", "+t[e+"_a"]+")";return n?n[e]=o:o}function s(e,t,n,r,a,s){var l=o()(t);return r[e]=r[e]||0,r[e+"_r"]=r[e+"_r"]||0,r[e+"_g"]=r[e+"_g"]||0,r[e+"_b"]=r[e+"_b"]||0,r[e+"_a"]=r[e+"_a"]||0,s||(r[e]+=4,r[e+"_r"]++,r[e+"_g"]++,r[e+"_b"]++,r[e+"_a"]++),n[e+"_r"]=l[0],n[e+"_g"]=l[1],n[e+"_b"]=l[2],n[e+"_a"]=l[3],a[e]=0,a[e+"_r"]=0,a[e+"_g"]=0,a[e+"_b"]=0,a[e+"_a"]=1,i}},231:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var r=n(73),o=n.n(r),a=n(259),i={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function u(e,t,n,r,o,a){var i=e.split("_");if(2===i.length){if(--r[i[0]][i[1]]||a||delete t[e],!a)for(;r[i[0]].length&&!r[i[0]][r[i[0]].length-1];)r[i[0]].pop();0!==r[i[0]].length||a||(delete r[i[0]],delete o[i[0]],n&&delete n[i[0]])}else console.log("wtf",i)}function c(e,t,n,r,o){var l=t,u=a.Dl[e]||i[n]||"px";return"box"===u&&(l*=o[s[n]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,n,r,o,a){var i,s,l,u=0;for(i="",s=0;s<r[e].length;s++)r[e][s]&&(t[l=e+"_"+s]<0?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),n?n[e]=i:i}function f(e,t,n,r,a,i){r[e]=r[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,n,r,a,i,s);else d(e,t||0,n,r,a,i);return p}function d(e,t,n,r,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,r[e][h]=r[e][h]||0,c&&c[h]?n[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&r[e][h]++,n[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p}var h=f},822:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(73),o=n.n(r),a=n(277),i={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,n,r,o,i){for(var s=r["_"+e],l="",u={},c=0;c<s;c++)a.demux(e+"_"+c,t,u,r,o,i),l+=u[e+"_"+c]+" ";n[e]=l}function l(e,t,n,r,o,a){e.split("_")}const u=function(e){return{mux:function(t,n,r,l,u,c){var p,f=n.split(" ");l[t]=l[t]||0,c&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&i[p]||p,a.mux(t+"_"+d,p,r,l,u,c);return s},demux:s,release:l}}},277:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function o(e,t,n,r,o){n[e]=~~t[e]}n.r(t),n.d(t,{release:()=>r,demux:()=>o,mux:()=>a});var a=function(e,t,n,r,a,i){return a[e]=0,n[e]=~~t,r[e]=r[e]||0,!i&&r[e]++,o}},425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>a,demux:()=>i,mux:()=>s});var r=n(259),o={opacity:1};function a(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function i(e,t,n,o,a){n[e]=Math.min(1,Math.max(0,(0,r.HM)(t[e])))}var s=function(e,t,n,r,a,s){return a[e]=o[e]||0,n[e]=t,r[e]=r[e]||0,!s&&r[e]++,i}},940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>b,demuxOne:()=>_,demux:()=>R,muxOne:()=>T,mux:()=>S});var r,o,a,i,s,l,u,c,p=n(213),f=n.n(p),d=n(73),h=n.n(d),g=n(259),m=n(227),x=(r=/,(?![^\(]*\))/,o=/\s(?![^(]*\))/,a=/^[0-9]+[a-zA-Z%]+?$/,i=function(e){var t=e.split(o),n=t.includes("inset"),r=t.slice(-1)[0],a=l(r)?void 0:r,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==a})).map(u);return{inset:n,offsetX:i[0],offsetY:i[1],blurRadius:i[2],spreadRadius:i[3],color:a}},s=function(e){var t=e||{},n=t.inset,r=t.offsetX,o=void 0===r?0:r,a=t.offsetY,i=void 0===a?0:a,s=t.blurRadius;return[n?"inset":null,o,i,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(c).map((function(e){return(""+e).trim()})).join(" ")},l=function(e){return"0"===e||a.test(e)},u=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},c=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(r).map((function(e){return e.trim()})).map(i)},stringify:function(e){return e.map(s).join(", ")}}),v={perspective:"px"},y={translateX:"x"},w={inset:m.Xg,color:m.$_};function b(e,t,n,r,o,a){var i,s=e.split("_");if(s.length>2){if(i=s[0]+"_"+s[1]+"_"+s[2],w[s[2]])return w[s[2]].release(e,t,n,r,o,a),r[i]||--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],void(0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]]));if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();if(0!==r[i].length||a||delete r[i],!a)for(;r[s[0]].length&&!Object.keys(r[s[0]][r[s[0]].length-1]).length;)r[s[0]].pop();0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function _(e,t,n,r,o,a){var i=n,s=g.Dl[e]||v[r];return"box"===s&&(i*=a[y[r]]||a.x,s="px"),"bw"===s&&(i*=a.x,s="px"),"wh"===s&&(i*=a.y,s="px"),"bz"===s&&(i*=a.z,s="px"),"deg"===s&&(i%=360),s?(0,g.HM)(i)+s:(0,g.HM)(i)}function R(e,t,n,r,o){for(var a,i,s,l,u,c,p=[],f={},d=0,h=0;d<r[e].length;d++){for(i in f={},a=r[e][d])if(a.hasOwnProperty(i)){if(l=e+"_"+d+"_"+i,w[i])c=w[i].demux(l,t,void 0,r,o);else{for(c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=_(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")")}f[i]=c||0}p.push(f)}n[e]=x.stringify(p)}function T(e,t,n,r,o,a,i,s){var l=!!h().string(n)&&n.match(g._9),u=l&&l[2]||v[t]||"px",c=g.Dl.indexOf(u),p=-1!==c&&e+"_"+c||e;return a[p]=0,o[e][c]=o[e][c]||0,s&&s[c]?r[p]+=l?parseFloat(l[1]):parseFloat(n):(!i&&o[e][c]++,r[p]=l?parseFloat(l[1]):parseFloat(n),s&&(s[c]=!0)),R}var S=function(e,t,n,r,o,a,i){r[e]=r[e]||[],h().array(t)||(t=[t]);for(var s,l,u,c,p,d,g,m=0;m<t.length;m++){for(l in s=t[m],h().string(s)&&(s=x.parse(s)[0]),u=i?{}:f()({},r[e][m]||{}),s)if(s.hasOwnProperty(l))if(c=s[l],p=e+"_"+m+"_"+l,u[l]=u[l]||r[e][m]&&r[e][m][l]||0,!a&&u[l]++,w[l])w[l].mux(p,c,n,r,o,a,i);else if(g={},r[p]=r[p]||[],h().array(c))for(d=0;d<c.length;d++)T(p,l,c[d]||0,n,r,o,a,g);else T(p,l,c||0,n,r,o,a);r[e][m]=i?f()({},u,r[e][m]||{},u):u}return R}},213:e=>{"use strict";e.exports=require("@babel/runtime/helpers/extends")},367:e=>{"use strict";e.exports=require("d3-ease")},73:e=>{"use strict";e.exports=require("is")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Axis:()=>we,Component:()=>Fe,Context:()=>g,Draggable:()=>Be,Node:()=>Me,child:()=>je,default:()=>Ne,dom:()=>te,hook:()=>ye,tools:()=>e,tweener:()=>Ie,useTweener:()=>ke,useVoodoo:()=>ye});var e={};n.r(e),n.d(e,{addCss:()=>M,cssAdd:()=>_,cssMult:()=>R,extractCss:()=>A,offset:()=>T,re_cssValueWithUnit:()=>b,reverse:()=>E,scale:()=>S,shiftTransforms:()=>k,target:()=>B});const t=require("@babel/runtime/helpers/inheritsLoose");var o=n.n(t);const a=require("react");var i=n.n(a);const s=require("fast-deep-equal");var l=n.n(s),u=n(213),c=n.n(u);const p=require("@babel/runtime/helpers/objectWithoutPropertiesLoose");var f=n.n(p),d=n(73),h=n.n(d);const g=i().createContext(null),m=require("@babel/runtime/helpers/assertThisInitialized");var x=n.n(m),v=n(367);const y=require("react-dom");var w=n.n(y),b=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["box","bz","bh","bw","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")");function _(e,t){h().array(e)||(e=[e]),h().array(t)||(t=[t]);var n,r=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),a={},i=[];for(n=0;n<r.length;)a[r[n][2]]=a[r[n][2]]||0,a[r[n][2]]+=parseFloat(r[n][1]),n++;for(n=0;n<o.length;)a[o[n][2]]=a[o[n][2]]||0,a[o[n][2]]+=parseFloat(o[n][1]),n++;Object.keys(a).forEach((function(e){return i.push(a[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];return l.length?_.apply(void 0,[i].concat(l)):i}function R(e,t){h().array(e)||(e=[e]);var n,r=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o={},a=[];for(n=0;n<r.length;)o[r[n][2]]=o[r[n][2]]||1,o[r[n][2]]=parseFloat(r[n][1])*t,n++;return Object.keys(o).forEach((function(e){return a.push(o[e]+e)})),a}function T(e,t){return void 0===t&&(t=0),(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{from:e.from+t})}))}function S(e,t,n){void 0===t&&(t=0),e=h().array(e)?e:e&&[e]||e;var r=0;return e.forEach((function(e){r=Math.max(r,e.from+e.duration)})),e=e.map((function(e){return c()({},e,{from:e.from/r*t,duration:e.duration/r*t})})),n?T(e,n):e}function P(e){return h().number(e)?-e:h().object(e)?Object.keys(e).reduce((function(t,n){return t[n]=P(e[n]),t}),{}):h().array(e)?e.map((function(e){return P(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function E(e){e=h().array(e)?e:e&&[e]||e;var t=0;return e.forEach((function(e){t=Math.max(t,e.from+e.duration)})),e.map((function(e){return c()({},e,{from:t-(e.from+e.duration)},e.apply?{apply:P(e.apply)}:void 0)}))}var D={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n.shift();for(var a in o){var i;o.hasOwnProperty(a)&&(D[a]?(e[a]||(e[a]=[]),h().array(o[a])?M(e[a],o[a]):M(e[a],[o[a]])):h().array(o[a])?(e[a]||(e[a]=[]),h().array(e[a])?(i=e[a]).push.apply(i,o[a]):e[a]=[].concat(o[a],[e[a]])):e[a]?h().object(e[a])&&h().object(o[a])?M(e[a],o[a]):e[a]=O(e[a],o[a]):h().object(o[a])?e[a]=c()({},o[a]):e[a]=o[a])}return n.length&&M.apply(void 0,[e].concat(n))||e}function O(e,t){if(!e)return t;if(!t)return e;var n=(""+e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),r=(""+t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),o=n.map((function(e,t){return t%2?parseFloat(e)+parseFloat(r[t]||0):e})).filter((function(e){return""!==e}));return 1===o.length?parseInt(o[0]):o.join("")}function A(e,t){var n={};return(e=h().array(e)?e:e&&[e]||e).forEach((function(e){M(n,e.apply)})),t&&(n=P(n)),n}function B(e,t){return(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{target:t})}))}function k(e,t){return void 0===t&&(t=1),(e=h().array(e)?e:e&&[e]||e).map((function(e){var n=e.apply&&e.apply.transform;if(n){n=h().array(n)?n:[n];for(var r=0;r<t;r++)n.unshift({});e=c()({},e,{apply:c()({},e.apply,{transform:n})})}return e}))}var C=n(259),I={},L=n(450).walknSetExport;L(I,"filter",n(111)),L(I,"boxShadow",n(39)),L(I,"transform",n(374)),L(I,"textShadow",n(178)),L(I,"backgroundColor",n(38));const W=I;var j=n(227),F=c()({},W,{height:j.kE,width:j.kE,top:j.kE,left:j.kE,right:j.kE,bottom:j.kE,marginTop:j.kE,marginLeft:j.kE,marginRight:j.kE,marginBottom:j.kE,paddingTop:j.kE,paddingLeft:j.kE,paddingRight:j.kE,paddingBottom:j.kE,borderRadius:j.kE,borderTopColor:j.$_,borderLeftColor:j.$_,borderRightColor:j.$_,borderBottomColor:j.$_,borderTopWidth:j.kE,borderLeftWidth:j.kE,borderRightWidth:j.kE,borderBottomWidth:j.kE,transformOrigin:(0,j.fi)(2),zIndex:j.Rx,opacity:j.bC});function N(e,t,n,r,o,a,i){var s;null==(s=a[t.split("_")[0]])||s.release(t,n,r,o,a,i)}function z(e,t,n,r,o){Object.keys(n).forEach((function(a){n[a].demux(a,e,t,r,o)}))}function H(e,t,n,r,o,a,i){var s={},l={};return e&&Object.keys(e).forEach((function(t){F[t]?s[t]=e[t]:(0,C.JO)(t,e[t])?(0,C._j)(t)?(0,C.dn)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){F[e]?(o[e]=F[e]).mux(e,s[e],t,r,n,a,i):(o[e]=function(e){var t=C.NQ[e],n=t&&t.types;if(!n)return j.Yj;for(var r=0;r<n.length;r++)switch(n[r]){case"length":case"length-percentage-calc":return j.kE;case"number":case"integer":return j.Rx;case"color":return j.$_}return j.Yj}(e)).mux(e,s[e],t,r,n,a,i)})),l}function V(e,t,n,r,o){o=o&&{};var a={},i=e.reduce((function(e,i){var s={};return r[i.target]=r[i.target]||{},t[i.target]=t[i.target]||{},n[i.target]=n[i.target]||{},i.type&&"Tween"!==i.type?e.push(c()({},i)):(!o&&M(a[i.target]=a[i.target]||{},i.apply),H(i.apply,s,t[i.target],n[i.target],r[i.target],!0),e.push(c()({},i,{apply:s}))),e}),[]);return!o&&Object.keys(a).forEach((function(e){return H(a[e],{},{},n[e],r[e])})),i}const Y=require("tween-axis");var X,q,$=n.n(Y),G=[],U=function(e){function t(t,n){var r;if(G.length){var o=G.pop();return o.scope=n,h().array(t)?(o.localLength=1,o.mount(t,n)):t.Axis&&o.mount(t.Axis,n),o||x()(r)}return e.apply(this,arguments)||this}return o()(t,e),t.prototype.destroy=function(){this.scope=void 0,this.__marks.length=0,this.__marksLength.length=0,this.__marksKeys.length=0,this.__processors.length=0,this.__config.length=0,this.__activeProcess.length=0,this.__activeProcess.length=0,this.__outgoing.length=0,this.__incoming.length=0,this.__cPos=0,this.duration=0,this.__cIndex=0,this.__cMaxKey=1,G.push(this)},t}($()),Z=n(73),J="undefined"!=typeof window,K=(J&&(q=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(X=["(",q.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(X).matches)),J?{prefix:/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":/trident/i.test(navigator.userAgent)?"ms":"opera"in window?"O":"",dashedPrefix:/webkit/i.test(navigator.appVersion)?"-webkit-":/firefox/i.test(navigator.userAgent)?"-moz-":/trident/i.test(navigator.userAgent)?"-ms-":"opera"in window?"-o-":""}:{prefix:"",dashedPrefix:""}),Q={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,n,r,o=Q,a=o.dragEnabled.indexOf(this),i=[];if(-1!==a){o.nbFingers||(ee.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),ee.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)if(n=i[s],!(r=o.dragEnabledDesc[a]).nbFingers)for(o.nbFingers++,o.fingers[n.identifier]=o.fingers[n.identifier]||[],o.fingers[n.identifier].push(r),r.nbFingers++,r._startPos.x="MS"==K.prefix?n.x:n.pageX,r._startPos.y="MS"==K.prefix?n.y:n.pageY,r._startTs=e.timeStamp,r._lastPos.x="MS"==K.prefix?n.x:n.pageX,r._lastPos.y="MS"==K.prefix?n.y:n.pageY,t=0;t<r.dragstart.length;t++)r.dragstart[t][0].call(r.dragstart[t][1]||this,e,n,r)}},dragAnywhere:function(e){var t,n,r,o=this,a=Q,i=[];Q.dragging[0],e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)n=i[s],a.fingers[n.identifier],a.fingers[n.identifier]&&a.fingers[n.identifier].forEach((function(a){if(r)return a._lastPos.x=a._startPos.x="MS"==K.prefix?n.x:n.pageX,void(a._lastPos.y=a._startPos.y="MS"==K.prefix?n.y:n.pageY);for(a._lastPos.x="MS"==K.prefix?n.x:n.pageX,a._lastPos.y="MS"==K.prefix?n.y:n.pageY,t=0;t<a.drag.length;t++)r=!1===a.drag[t][0].call(a.drag[t][1]||o,e,n,a)}))},dropWithoutClick:function(e){Q.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Q.preventNextClick=!1),ee.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,n,r,o=this,a=Q,i=[];e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)n=i[s],a.nbFingers--,a.fingers[n.identifier]&&a.fingers[n.identifier].forEach((function(a){for(a.nbFingers--,r=r||a.mouseDrag&&e.timeStamp-a._startTs>250,a._lastPos.x="MS"==K.prefix?n.x:n.pageX,a._lastPos.y="MS"==K.prefix?n.y:n.pageY,t=0;t<a.dropped.length;t++)a.dropped[t][0].call(a.dropped[t][1]||o,e,n,a)})),a.fingers[n.identifier]=null;r&&(a.preventNextClick=!0),a.nbFingers||ee.removeEvent(document,{touchmove:a.dragAnywhere,mousemove:a.dragAnywhere,touchend:a.dropAnywhere,mouseup:a.dropAnywhere})},getDraggable:function(e,t,n){var r,o=this.dragEnabled.indexOf(e);return-1===o?(this.dragEnabled.push(e),this.dragEnabledDesc.push(r={mouseDrag:t,touchDrag:n,nbFingers:0,locks:0,_startPos:{x:0,y:0},_lastPos:{x:0,y:0},dragstart:[],drag:[],dragEnd:[],dropped:[]}),ee.addEvent(e,{mousedown:t&&this.dragstartAnywhere,touchstart:n&&this.dragstartAnywhere},null,null,null,!0)):r=this.dragEnabledDesc[o],r},freeDraggable:function(e){var t=this.dragEnabled.indexOf(e);-1!==t&&(this.dragEnabled.splice(t,1),this.dragEnabledDesc.splice(t,1),ee.removeEvent(e,{mousedown:this.dragstartAnywhere,touchstart:this.dragstartAnywhere}))},addEvent:function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n.related=function(t){return n.call(e,t)})},removeEvent:function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on"+t,n.related)},rmDragFn:function(e,t,n){for(var r=0,o=e.length;r<o;r++)if(e[r][0]===t)return e.splice(r,1);console.warn("Rm event : Listener not found !!")}},ee={addEvent:function(e,t,n,r,o,a){if(void 0===o&&(o=!0),Z.object(t))for(var i in t)t.hasOwnProperty(i)&&t[i]&&this.addEvent(e,i,t[i],r,o,a);else"dragstart"===t?Q.getDraggable(e,r,o).dragstart.push([n]):"drag"===t?Q.getDraggable(e,r,o).drag.push([n]):"dropped"===t?Q.getDraggable(e,r,o).dropped.push([n]):e.addEventListener?e.addEventListener(t,n,{passive:!1}):e.attachEvent&&e.attachEvent("on"+t,n.related=function(t){return n.call(e,t)})},removeEvent:function(e,t,n,r,o){var a;if(Z.object(t))for(var i in t)t.hasOwnProperty(i)&&this.removeEvent(e,i,t[i],r);else/^(drag|drop)/.test(t)?(a=Q.getDraggable(e),Q.rmDragFn(a[t],n,r),a.dragstart.length||a.drag.length||a.dragEnd.length||a.dropped.length||Q.freeDraggable(e)):e.removeEventListener?e.removeEventListener(t,n,o):e.attachEvent&&e.detachEvent("on"+t,n.related)},offset:function(e){for(var t={top:0,left:0,width:e.offsetWidth,height:e.offsetHeight};e;)t.top=t.top+parseInt(e.offsetTop),t.left=t.left+parseInt(e.offsetLeft),e=e.offsetParent;return t},findReactParents:function(e){var t,n=[e];for(var r in e)if(r.startsWith("__reactInternalInstance$")||r.startsWith("__reactFiber$")){for(t=e[r];t.return;)t.stateNode&&!n.includes(t.stateNode)&&n.push(t.stateNode),t=t.return;return n}return e.parentNode&&this.findReactParents(e.parentNode)}};const te=ee;var ne=n(73),re=n(367),oe=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},ae=Math.abs,ie=Math.floor,se=(Math.round,Math.min),le=Math.max,ue=function(e){return void 0===e&&(e=0),e.toFixed(3)},ce=function(){function e(e){var t=this._={};t.conf=c()({},this.constructor.config,e),this.active=!1,t.pos=e.value||0,t.refFPS=16,t.min=e.min||0,t.max=e.max||0,t.currentStop=0,t.lastInertiaPos=0,t.stops=t.conf.stops,t.disabled=t.conf.disabled,t.wayPoints=t.conf.wayPoints,t.inertiaFn=re.easePolyOut,t.targetWayPointIndex=0,this._detectCurrentSnap()}var t=e.prototype;return t.updateConf=function(e){var t=this._;t.min=e.min||0,t.max=e.max||0,t.stops=e.stops,t.disabled=e.disabled,t.wayPoints=e.wayPoints,t.conf.willStop=e.willStop,t.conf.willSnap=e.willSnap,t.conf.onStop=e.onStop,t.conf.onSnap=e.onSnap,t.conf.shouldLoop=e.shouldLoop},t.startMove=function(){var e=this._;e.baseTS=e.startTS=Date.now()/1e3,e.lastVelocity=e.lastIVelocity=0,e.lastAccel=0,e.posDiff=0,e.loopsDiff=0,this.active=!0,this.holding=!0,e.inertia=!1},t.hold=function(e){var t,n=this._,r=void 0!==n.lastHoldPos?e-n.lastHoldPos:0,o=Date.now()/1e3,a=o-n.baseTS,i=e,s=r/a;if(n.lastHoldPos=e,n.lastBaseTs||(n.lastBasePos=e,n.lastBaseTs=n.baseTS),a<.003||((s<=0&&n.lastVelocity>0||s>=0&&n.lastVelocity<0||ae(s)<ae(.2*n.lastVelocity))&&o-n.lastBaseTs>.15?(n.lastBasePos=e,n.lastBaseTs=o,n.lastVelocity=0,n.lastIVelocity=0,n.baseTS=o,n.targetDist=0,n.lastInertiaPos=0):s<=0&&n.lastVelocity>0||s>=0&&n.lastVelocity<0||ae(s)<ae(.2*n.lastVelocity)||(n.lastIVelocity=s,n.lastVelocity=(i-n.lastBasePos)/(o-n.lastBaseTs),n.baseTS=o,n.targetDist=0,n.lastInertiaPos=0,n.targetWayPoint=void 0,n.targetWayPointIndex=void 0)),n.conf.bounds&&(i>n.max?i=n.max:i<n.min&&(i=n.min)),n.conf.shouldLoop)for(;t=n.conf.shouldLoop(i,r);)i+=t;n.pos=i},t.release=function(){var e=this._;oe(e.lastVelocity),this.holding=!1,function(e){var t=oe(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=ie(Math.log(.05/ae(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-ae(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=ae(e.loopsTarget*e.refFPS*t)||0)}(e),e.lastHoldPos=void 0,e.lastBasePos=void 0,e.lastBaseTs=void 0,e.holding=!1,e.conf.bounds&&e.conf.snapToBounds&&(e.pos+e.targetDist>e.max?(e.targetDist=e.max-e.pos,e.targetDuration=ae(10*e.targetDist)):e.pos+e.targetDist<e.min&&(e.targetDist=e.min-e.pos,e.targetDuration=ae(10*e.targetDist))),e.targetDuration||(e.targetDuration=50),this.active=!0,e.inertia=!0,e.lastInertiaPos=0,e.inertiaStartTm=e.inertiaLastTm=Date.now(),this._doSnap(null,500),null==e.conf.willEnd||e.conf.willEnd(e.targetDist+e.pos,e.targetDist,e.targetDuration)},t.update=function(e){void 0===e&&(e=Date.now());var t,n,r=this._,o=r.inertiaFn((e-r.inertiaStartTm)/r.targetDuration)*r.targetDist;if(!r.inertia)return r.pos;var a=o-r.lastInertiaPos;if(r.lastInertiaPos=o,e-r.inertiaStartTm>=r.targetDuration&&(r.inertia=this.active=!1,r.lastInertiaPos=a=0,r.targetDist=0,r.targetWayPoint&&(a=r.targetWayPoint.at-r.pos,r.currentWayPoint=r.targetWayPoint,r.currentWayPointIndex=r.targetWayPointIndex,r.targetWayPoint=null,r.targetWayPointIndex=null),r.conf.onStop&&r.conf.onStop(r.pos,r.currentWayPoint),r.conf.onSnap&&r.conf.onSnap(r.currentWayPointIndex,r.currentWayPoint)),a=a||0,t=r.pos+a,r.conf.shouldLoop)for(;n=r.conf.shouldLoop(t,a);)t+=n,r.inertia;return r.pos=t,t},t.setPos=function(e){var t=this._;if(t.inertia=!1,this.active=!1,t.lastInertiaPos=0,t.targetDist=0,t.inertiaStartTm=0,t.inertiaLastTm=0,t.targetDuration=0,t.conf.shouldLoop){for(var n,r=e;n=t.conf.shouldLoop(r,t.pos-e);)r+=n;e=r}t.pos=e,t.conf.bounds&&(t.pos=le(t.pos,t.min),t.pos=se(t.pos,t.max))},t.setWayPoints=function(e){this._.wayPoints=e,this._detectCurrentSnap()},t.teleport=function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e},t.dispatch=function(e,t){void 0===t&&(t=500);var n=this._,r=Date.now();this.active=!0,n.inertia&&oe(e)===oe(n.targetDist)?(n.targetDist+=e,n.targetDuration+=t/2):(n.inertia=!0,n.lastInertiaPos=0,n.inertiaStartTm=n.inertiaLastTm=r,n.targetDist=e,n.targetDuration=t),n.conf.bounds&&(n.pos+n.targetDist>n.max?(n.targetDist=n.max-n.pos,n.targetDuration=ae(10*n.targetDist)):n.pos+n.targetDist<n.min&&(n.targetDist=n.min-n.pos,n.targetDuration=ae(10*n.targetDist))),this._doSnap(oe(e),750)},t._detectCurrentSnap=function(){var e,t=this._,n=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(ue(t.wayPoints[e].at)===ue(n))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e},t._doSnap=function(e,t){void 0===t&&(t=2e3);var n,r,o,a,i=this._,s=i.targetDist+(i.pos-(i.lastInertiaPos||0)),l=0;if(i.wayPoints&&i.wayPoints.length){if(i.conf.shouldLoop)for(;a=i.conf.shouldLoop(s,0);)s+=a,l+=a;for(o=0;o<i.wayPoints.length&&!(i.wayPoints[o].at>s);o++);if(o===i.wayPoints.length?o--:0===o?o=0:(r=(i.wayPoints[o].at-i.wayPoints[o-1].at)/2,r=i.wayPoints[o-1].at+r*((i.wayPoints[o].gravity||1)/(i.wayPoints[o-1].gravity||1)),e?e<0&&o--:s<r&&o--),i.conf.maxJump&&ne.number(i.currentWayPointIndex)){var u=o-i.currentWayPointIndex;ae(u)>i.conf.maxJump&&(o=i.currentWayPointIndex+oe(u)*i.conf.maxJump)}n=i.wayPoints[o].at,i.conf.willSnap&&i.conf.willSnap(o,i.wayPoints[o]),i.lastInertiaPos=i.lastInertiaPos||0,n=n-(i.pos-i.lastInertiaPos)-l,i.targetDuration=le(50,se(t,ae(i.targetDuration/i.targetDist*n)))||0,i.targetDist=n,i.targetWayPoint=i.wayPoints[o],i.targetWayPointIndex=o}else n=~~(i.pos-i.lastInertiaPos),i.conf.infinite||(n>i.max?(n=i.max-n,i.targetDuration=se(t,ae(i.targetDuration/i.targetDist*n)),i.targetDist=n):n<i.min&&(n=i.min-n,i.targetDuration=se(t,ae(i.targetDuration/i.targetDist*n)),i.targetDist=n))},t.setBounds=function(e,t){var n=this._;n.min=e,n.max=t},t.isInbound=function(e){var t=this._,n=void 0!==t.lastHoldPos?e-t.lastHoldPos:0,r=(t.targetDist||0)+(t.pos-(t.lastInertiaPos||0))+n;return r>=t.min&&r<=t.max},e}();ce.config={bounds:!0,snapToBounds:!0};var pe,fe,de=new Function("try {return this===window;}catch(e){ return false;}")(),he=h().array,ge=[],me=function e(){var t=0,n=Date.now(),r=n-fe;for(fe=n;t<ge.length;t++)ge[t].cpos=Math.min(r+ge[t].cpos,ge[t].duration),ge[t].apply(ge[t].cpos,ge[t].duration),ge[t].cpos==ge[t].duration&&(ge[t].cb&&setTimeout(ge[t].cb),ge.splice(t,1),t--);ge.length?setTimeout(e,16):pe=!1},xe=function(e){function t(t){var n;(n=e.apply(this,arguments)||this).axes={},n._scrollWatcherByAxis={},n._updateNodeInertia=function(){var e,t=n._,r=t.activeInertia.length;n._inertiaRaf&&cancelAnimationFrame(n._inertiaRaf);for(var o=0;r>o;o++)((e=t.activeInertia[o]).inertia.x.active||e.inertia.x.holding)&&(e.target.scrollLeft=~~e.inertia.x.update()),(e.inertia.y.active||e.inertia.y.holding)&&(e.target.scrollTop=~~e.inertia.y.update()),e.inertia.x.active||e.inertia.y.active||e.inertia.x.holding||e.inertia.y.holding||(t.activeInertia.slice(o,1),o--,r--);n._inertiaRaf=0!==r?requestAnimationFrame(n._updateNodeInertia):null},n._swap={};var r=n._={refs:{},muxByTarget:{}};return r.box={x:100,y:100,z:800},n.__isTweener=!0,r._rafLoop=n._rafLoop.bind(x()(n)),r.rootRef=n.props.forwardedRef||i().createRef(),r.options=c()({maxClickTm:200,maxClickOffset:5},t.tweenerOptions||{}),r.tweenRefCSS={},r.tweenRefs={},r.tweenRefMaps={},r.iMapOrigin={},r.tweenRefInitialData={},r.tweenEnabled=!0,r.tweenRefOrigin={},r.tweenRefOriginCss={},r.muxDataByTarget=r.muxDataByTarget||{},r.tweenRefDemuxed=r.tweenRefDemuxed||{},r.tweenRefTargets=r.tweenRefTargets||[],r.runningAnims=r.runningAnims||[],r.scrollHook=[],r.activeInertia=[],de&&window.addEventListener("resize",n._.onResize=function(e){var t,o;n._updateBox(),n._updateTweenRefs(),null==(t=r.rootRef)||null==(o=t.current)||null==o.windowDidResize||o.windowDidResize(e)}),n}o()(t,e);var n=t.prototype;return n.tweenRef=function(e,t,n,r,o,a,i){void 0===t&&(t={}),void 0===n&&(n={});var s=this._,u={},p={};return s.tweenRefs[e]||s.tweenRefTargets.push(e),!s.tweenRefs[e]||!i&&s.iMapOrigin[e]===n&&l()(n,s.iMapOrigin[e])&&s.tweenRefOriginCss[e]===t&&l()(t,s.tweenRefOriginCss[e])?s.tweenRefs[e]?(console.log("maj ref",e),z(s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxByTarget[e],s.muxDataByTarget[e],s.box)):(s.iMapOrigin[e]=n,t=t||{},n=n||{},s.tweenRefs[e]=!0,s.muxByTarget[e]=s.muxByTarget[e]||{},s.muxDataByTarget[e]=s.muxDataByTarget[e]||{},s.tweenRefOriginCss[e]=t,s.tweenRefMaps[e]=s.tweenRefMaps[e]||{},s.tweenRefOrigin[e]?(t=c()({},t,H(n,u,p,s.muxDataByTarget[e],s.muxByTarget[e],!1,!0)),Object.keys(p).forEach((function(t){return s.tweenRefMaps[e][t]=h().number(s.tweenRefMaps[e][t])?s.tweenRefMaps[e][t]-p[t]:0})),Object.keys(u).forEach((function(t){return s.tweenRefMaps[e][t]+=u[t]}))):(t=c()({},t,H(n,u,p,s.muxDataByTarget[e],s.muxByTarget[e])),u=Object.assign({},p,u||{}),Object.keys(u).forEach((function(t){return s.tweenRefMaps[e][t]=(s.tweenRefMaps[e][t]||0)+u[t]}))),s.tweenRefOrigin[e]=c()({},u),s.tweenRefCSS[e]=t,z(u=s.tweenRefMaps[e],t,s.muxByTarget[e],s.muxDataByTarget[e],s.box)):(s.iMapOrigin[e]=n,s.tweenRefOriginCss[e]=t,t=t||{},n=n||{},t=c()({},t,H(n,u,p,s.muxDataByTarget[e],s.muxByTarget[e],!1,!0)),Object.keys(s.tweenRefOrigin[e]).forEach((function(t){return s.tweenRefMaps[e][t]-=s.tweenRefOrigin[e][t]})),Object.keys(p).forEach((function(t){return s.tweenRefMaps[e][t]=h().number(s.tweenRefMaps[e][t])?s.tweenRefMaps[e][t]:p[t]})),Object.keys(u).forEach((function(t){return s.tweenRefMaps[e][t]+=u[t]})),Object.keys(s.tweenRefOrigin[e]).forEach((function(t){N(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e])})),Object.keys(s.tweenRefCSS[e]).forEach((function(n){!s.tweenRefCSS[e][n]||s.muxByTarget[e][n]||t[n]||delete s.tweenRefCSS[e][n]})),Object.keys(t).forEach((function(n){s.tweenRefCSS[e][n]===t[n]||s.muxByTarget[e][n]||(s.tweenRefCSS[e][n]=t[n])})),s.tweenRefOrigin[e]=c()({},u),z(s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxByTarget[e],s.muxDataByTarget[e],s.box),this._updateTweenRef(e,!0)),a?{style:c()({},s.tweenRefCSS[e])}:{style:c()({},s.tweenRefCSS[e]),ref:h().function(o)?function(t){return s.refs[e]=o(t)}:o?function(t){return s.refs[e]=o.current=t}:function(t){return s.refs[e]=t}}},n.rmTweenRef=function(e){this._.tweenRefs[e]&&(this._.tweenRefTargets.splice(this._.tweenRefTargets.indexOf(e),1),delete this._.tweenRefs[e],delete this._.muxByTarget[e],delete this._.muxDataByTarget[e],delete this._.iMapOrigin[e],delete this._.tweenRefOrigin[e],delete this._.tweenRefCSS[e],delete this._.tweenRefMaps[e],delete this._.refs[e])},n.resetTweenable=function(){for(var e=this,t=this._,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){e.tweenRef(n,t.tweenRefOriginCss[n],t.iMapOrigin[n],null,null,null,!0)})),this._updateTweenRefs()},n.updateRefStyle=function(e,t,n){var r,o=this,a=this._;return he(e)&&he(t)?e.map((function(e,r){return o.updateRefStyle(e,t[r],n)})):he(e)?e.map((function(e){return o.updateRefStyle(e,t,n)})):a.tweenRefMaps[e]?(r=H(t,a.tweenRefMaps[e],{},a.muxDataByTarget[e],a.muxByTarget[e]),Object.assign(a.tweenRefCSS[e],r),Object.assign(a.tweenRefOriginCss[e],r),z(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")},n.getTweenableRef=function(e){try{return this._.refs[e]&&w().findDOMNode(this._.refs[e])}catch(t){try{return this._.refs[e]._.rootRef.current}catch(t){return void console.warn("react-voodoo: Can't find voodooNode ",e,t)}}},n.getRootNode=function(){try{return this.getTweenableRef(this._.rootRef)||this.isMountedFromHook&&this._.rootRef&&this._.rootRef.current||w().findDOMNode(this)}catch(e){return this._.rootRef&&this._.rootRef.current}},n.pushAnim=function(e,n,r){var o=this;void 0===r&&(r=!0);var a,i,s=this._,l={};if(he(e)?a=e:(a=e.anims,e.initial),a instanceof U||(a=V(a,l,this._.muxDataByTarget,this._.muxByTarget),a=new U(a,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return o._.tweenRefMaps[e]&&Object.assign(o._.tweenRefMaps[e],c()({},l[e],o._.tweenRefMaps[e]))||(i=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!i)return new Promise((function(e){a.run(o._.tweenRefMaps,(function(){var t=o._.runningAnims.indexOf(a);-1!=t&&o._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){N(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],r)}))})),a.destroy(),e(a)})),o._.runningAnims.push(a),o._.live||(o._.live=!0,requestAnimationFrame(o._._rafLoop=o._._rafLoop||o._rafLoop.bind(o)))})).then((function(e){return n&&n(e)}))},n.applyTweenState=function(e,t,n){var r=this,o={},a={};H(t,o,a,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return r._.tweenRefMaps[e][t]=(!n&&r._.tweenRefMaps[e][t]||a[t])+o[t]}))},n.initAxis=function(e,t,n){var r=this,o=t.inertia,a=t.scrollableArea,i=void 0===a?0:a,s=t.scrollableBounds,l=t.scrollableWindow,u=t.defaultPosition,p=t.scrollFirst,f=(this._,this.axes[e]),d=s,h=!n&&f?f.scrollPos:u||d&&d.min||0,g=Math.max(f&&f.scrollableArea||0,i),m=Math.max(f&&f.scrollableWindow||0,l),x=f?f.targetPos:h,v=f?f.inertia:new ce(c()({disabled:!o},o||{},{value:h})),y={scrollFirst:p,tweenAxis:f&&f.tweenAxis||[],scrollPos:h,targetPos:x,inertia:v,scrollableWindow:m,scrollableBounds:d,scrollableArea:g,scrollTo:function(t,n,o,a){return r.scrollTo(t,n,e,o,a)}};this.axes[e]=y,!o&&(v._.disabled=!0),o&&v&&!v.active&&(v._.pos=h),o&&v&&v.updateConf(o),v&&d?null==v.setBounds||v.setBounds(d.min,d.max):v&&(null==v.setBounds||v.setBounds(0,g))},n._getAxis=function(e){var t=this;void 0===e&&(e="scrollY");var n=this._;return this.axes[e]=this.axes[e]||{tweenAxis:[],scrollPos:n.options.initialScrollPos&&n.options.initialScrollPos[e]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new ce(c()({value:n.options.initialScrollPos&&n.options.initialScrollPos[e]||0},n.options.axes&&n.options.axes[e]&&n.options.axes[e].inertia||{})),scrollTo:function(n,r,o,a){return t.scrollTo(n,r,e,o,a)}},this.axes[e]},n.getAxisState=function(e){var t=this,n=(this._,{});return this.axes&&Object.keys(this.axes).forEach((function(e){return n[e]=t.axes[e].targetPos||t.axes[e].scrollPos})),n},n.getScrollPos=function(e){return void 0===e&&(e="scrollY"),this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0},n.scrollTo=function(e,t,n,r,o){var a=this;void 0===t&&(t=0),void 0===n&&(n="scrollY");var i=this._;return de?new Promise((function(s,l){if(a.axes&&a.axes[n]){var u,c,p,f,d,h,g,m,x,y=a.axes[n].targetPos,w=function(e){var t,r;e=~~(1e4*e)/1e4,a.axes[n].targetPos=a.axes[n].scrollPos=e,~~e!==y&&(a.axisDidScroll(~~e,n),null==(t=i.rootRef)||null==(r=t.current)||null==r.componentDidScroll||r.componentDidScroll(~~e,n)),a._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,a.axes[n].scrollableArea||0),a.axes[n].targetPos=e,t)a._runScrollGoTo(n,e,t,v[r],o,w,s);else null==(u=a.axes)||null==(c=u[n])||null==(p=c.inertia)||p.setPos(e),null!=(f=a.axes)&&null!=(d=f[n])&&null!=(h=d.inertia)&&h._&&(e=null==(g=a.axes)||null==(m=g[n])||null==(x=m.inertia)?void 0:x._.pos),a.axes[n].tweenAxis.forEach((function(t){return t.goTo(e,i.tweenRefMaps,!1,o)})),w(e),s();i.live||(i.live=!0,requestAnimationFrame(i._rafLoop))}})).then((function(e){var t,r,o;null==(t=a.axes)||null==(r=t[n])||null==(o=r.inertia)||o._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())},n.addScrollableAnim=function(e,t,n){var r,o=this;void 0===t&&(t="scrollY");var a,i=this._,s={},l=this._getAxis(t);return he(e)?a=e:(a=e.anims,e.length),a instanceof U||(a=V(a,s,this._.muxDataByTarget,this._.muxByTarget),(a=new U(a,i.tweenRefMaps)).initials=s,Object.keys(s).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(o._.tweenRefMaps[e],c()({},s[e],o._.tweenRefMaps[e]))}))),l.tweenAxis.push(a),l.scrollPos=l.scrollPos||0,l.scrollableArea=l.scrollableArea||0,l.scrollableArea=Math.max(l.scrollableArea,a.duration),l.scrollableBounds||null==(r=l.inertia)||r.setBounds(0,l.scrollableArea),a.goTo(l.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),a},n.rmScrollableAnim=function(e,t){void 0===t&&(t="scrollY");var n,r,o=this._,a=this._getAxis(t),i=a.tweenAxis.indexOf(e);-1!==i&&(a.tweenAxis.splice(i,1),a.scrollableArea=Math.max.apply(Math,a.tweenAxis.map((function(e){return e.duration})).concat([0])),a.scrollableBounds||null==(r=a.inertia)||r.setBounds(0,a.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){N(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),n=!0,this._updateTweenRefs()),!n&&console.warn("react-voodoo: Axis not found : ",t)},n._runScrollGoTo=function(e,t,n,r,o,a,i){var s=this;void 0===r&&(r=function(e){return e});var l=this.axes[e].scrollPos,u=t-l;ge.push({apply:function(t,n){var i,c,p,f,d,h,g,m,x,v=l+r(t/n)*u;s._.tweenEnabled&&(null==(i=s.axes)||null==(c=i[e])||null==(p=c.inertia)||p.setPos(v),null!=(f=s.axes)&&null!=(d=f[e])&&null!=(h=d.inertia)&&h._&&(v=null==(g=s.axes)||null==(m=g[e])||null==(x=m.inertia)?void 0:x._.pos),s.axes[e].tweenAxis.forEach((function(e){return e.goTo(v,s._.tweenRefMaps,!1,o)})),a&&a(v))},duration:n,cpos:0,cb:i}),pe||(pe=!0,fe=Date.now(),setTimeout(me,16))},n.componentShouldScroll=function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)},n.watchAxis=function(e,t){var n=this._scrollWatcherByAxis;return n[e]=n[e]||[],n[e].push(t),function(){var r=n[e].indexOf(t);n[e].splice(r,1)}},n.axisDidScroll=function(e,t){var n=this._scrollWatcherByAxis[t],r=null==n?void 0:n.length;if(n)for(;r;)n[--r](e)},n.applyInertia=function(e,t){var n,r,o=this,a=e.inertia.update(),i=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=a,e.goTo(a,o._.tweenRefMaps)})),null==(n=i.rootRef)||null==(r=n.current)||null==r.componentDidScroll||r.componentDidScroll(a,t),this.axisDidScroll(a,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null},n.isInertiaActive=function(){var e=this,t=(this._,!1);return this.axes&&Object.keys(this.axes).forEach((function(n){return t=t||e.axes[n]&&e.axes[n].inertia.active})),t},n.isAxisOut=function(e,t,n){this._;var r=this.axes&&this.axes[e],o=n?t:r&&r.scrollPos+t;return o=o&&Math.round(o),!r||(r.scrollableBounds?o<=r.scrollableBounds.min||o>=r.scrollableBounds.max:o<=0||o>=r.scrollableArea)},n._activateNodeInertia=function(e){var t=this._,n=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===n&&(t.activeInertia.push({inertia:{x:new ce({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new ce({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),n=t.activeInertia.length-1),t.activeInertia[n].inertia},n.setRootRef=function(e){this._.rootRef=e},n._updateBox=function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)},n._rafLoop=function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1},n._updateTweenRefs=function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)},n._updateTweenRef=function(e,t){var n,r=this._swap;if(this._.tweenRefCSS[e]&&z(this._.tweenRefMaps[e],r,this._.muxByTarget[e],this._.muxDataByTarget[e],this._.box),n=this.getTweenableRef(e)){for(var o in this._.tweenRefCSS[e])void 0===r[o]&&(n.style[o]=this._.tweenRefCSS[e][o]);for(var a in r)this._.tweenRefCSS[e].hasOwnProperty(a)&&((t||r[a]!==this._.tweenRefCSS[e][a])&&(n.style[a]=this._.tweenRefCSS[e][a]=r[a]),delete r[a])}return this._.tweenRefCSS[e]},n.componentWillUnmount=function(){var t=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(e){t.axes[e].inertiaFrame&&clearTimeout(t.axes[e].inertiaFrame)}))),e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.apply(this,arguments)},n.componentDidMount=function(){var t=this,n=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),n.scrollableAnim&&(h().array(n.scrollableAnim)?this.addScrollableAnim(n.scrollableAnim):Object.keys(n.scrollableAnim).forEach((function(e){return t.addScrollableAnim(n.scrollableAnim[e],e)}))),e.prototype.componentDidMount&&e.prototype.componentDidMount.apply(this,arguments)},n.componentDidUpdate=function(t,n){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),e.prototype.componentDidUpdate&&e.prototype.componentDidUpdate.apply(this,arguments)},n.render=function(){var e=this,t=this.props,n=t.BaseComponent,r=t.oProps;return i().createElement(g.Consumer,null,(function(t){return e._parentTweener=t,i().createElement(g.Provider,{value:e},i().createElement(n,c()({},r,{ref:e._.rootRef,tweener:e})))}))},t}(i().Component),ve=["children"];const ye=function(e,t){void 0===t&&(t="div");var n=i().useContext(g),r=i().useRef(),o=i().useRef(),a=i().useMemo((function(){return!0===e||h().string(e)}),[]),s=i().useMemo((function(){if(!0===e)return n;if(h().string(e)){for(var t=n;null!=(o=t)&&o._&&t._.options.name!==e;){var o;if(!t._parentTweener){console.warn('react-voodoo: No parent tweener found with option.key === "'+e+'"');break}t=t._parentTweener}return t}var a=new xe({forwardedRef:r,tweenerOptions:e});return a.isMountedFromHook=!0,a._parentTweener=n,a}),[]),l=i().useMemo((function(){return i().forwardRef((function(e,n){var o=e.children,a=f()(e,ve);return i().createElement(g.Provider,{value:s},i().createElement(t,c()({ref:n?function(e){return n.current=r.current=e}:r},a),o))}))}),[]);return i().useEffect((function(){var e;if(!a&&null!=(e=o.current)&&e._)return s.componentDidMount(),o.current=s,function(){var e;null!=(e=o.current)&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[r.current]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._parentTweener=n)}),[n]),i().useEffect((function(){var t;!a&&null!=(t=o.current)&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),i().useMemo((function(){return[s,l]}),[l,s])},we=function(e){e.children;var t=e.id,n=e.axe,r=void 0===n?t:n,o=e.scrollFirst,a=e.bounds,s=e.scrollableWindow,u=e.inertia,c=e.size,p=e.defaultPosition,f=e.items,d=void 0===f?[]:f,h=i().useRef({}).current,g=ye(!0)[0];return h.previousAxis&&h.previousAxis===r?h.previousInertia&&h.previousInertia===u&&h.previousBounds===a&&h.previousScrollableWindow===s||(h.previousInertia=u,h.previousAxis=r,h.previousBounds=a,h.previousScrollableWindow=s,g.initAxis(r,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a})):(h.previousAxis=r,h.previousInertia=u,g.initAxis(r,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a},!0)),h.previousTweener&&h.previousTweener===g?h.previousTweens===d||h.previousTweens&&l()(d,h.previousTweens)||(h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),h.lastTL=null,d.length&&(h.lastTL=g.addScrollableAnim(d,r,c)),h.previousTweens=d):(h.previousTweener&&h.lastTL&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),d.length&&(h.lastTL=g.addScrollableAnim(d,r,c)),h.previousTweener=g,h.previousTweens=d),i().useEffect((function(){return function(){h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),delete h.previousTweener,delete h.previousScrollable}}),[]),i().createElement(i().Fragment,null)},be=require("shortid");var _e=n.n(be);function Re(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Te(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||Re(e)}var Se=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Pe=["children","className"];function Ee(e,t){return e.map((function(e){return c()({},e,{target:t})}))}var De=i().forwardRef((function(e,t){var n=e.children,r=e.id,o=void 0===r?i().useMemo((function(){return _e().generate()}),[]):r,a=e.style,s=e.initial,u=e.pos,p=e.noRef,d=(e.reset,e.tweener),g=(e.isRoot,e.axes),m=e.refProp,x=void 0===m?"nodeRef":m,v=e.tweenLines,y=void 0===v?g:v,w=e.tweenAxis,b=void 0===w?y:w,_=f()(e,Se),R=i().useRef({}).current,T=ye(!0)[0];if(!(T=d||T))return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"),i().createElement(i().Fragment,null);var S,P=T.tweenRef(o,n.props&&n.props.style,a||s,u,t,p);i().useEffect((function(){return function(){R._tweenAxisObj&&Object.keys(R._tweenAxisObj).forEach((function(e){return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e],e)})),R._currentTweener&&(R._currentTweener.rmTweenRef(R.__tweenableId),R._currentTweener.setRootRef(void 0)),delete R._currentTweener,delete R._tweenAxisObj,delete R._previousScrollable}}),[]),(S=R._tweenAxis!==b&&!(R._tweenAxis&&l()(b,R._tweenAxis))||b&&!R._tweenAxis)||R._currentTweener!==T||R._previousScrollable!==b?(R._currentTweener&&S&&R._tweenAxisObj&&Object.keys(R._tweenAxisObj).forEach((function(e){return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e],e)})),R._currentTweener&&R._currentTweener!==T&&R._currentTweener.rmTweenRef(o),S&&(R._tweenAxis=b,b&&h().array(b)?R._tweenAxisObj={scrollY:T.addScrollableAnim(Ee(b,o))}:R._tweenAxisObj=b&&Object.keys(b).reduce((function(e,t){return e[t]=T.addScrollableAnim(Ee(b[t],o),t),e}),{}),P=T.tweenRef(o,n.props&&n.props.style,a||s,u,t,p)),P.style=c()({},T._updateTweenRef(o,!0)),_.hasOwnProperty("isRoot")&&(R._currentTweener&&R._currentTweener.setRootRef(void 0),d.setRootRef(o)),R._currentTweener=T,R._previousScrollable=b):P&&(P.style=c()({},T._updateTweenRef(o,!0)));var E,D=i().Children.only(n);return D&&i().isValidElement(D)?(R._lastRef=P,Re(D.type)?i().createElement(D.type,c()({},_,D.props,P,{ref:void 0},((E={})[x]=P.ref,E))):i().createElement(D.type,c()({},_,D.props,P))):(console.error("Invalid voodoo Node child : ",o),i().createElement("div",null,"Invalid"))}));const Me=De;De.div=i().forwardRef((function(e,t){var n=e.children,r=e.className,o=f()(e,Pe);return i().createElement(De,c()({},o,{ref:t}),i().createElement("div",{className:r},n))}));var Oe=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],Ae=i().forwardRef((function(e,t){var n=e.children,r=e.Comp,o=void 0===r?"div":r,a=e.nodeRef,s=(e.items,e.xAxis),l=e.yAxis,u=e.yBoxRef,p=e.xBoxRef,d=(e.yRef,e.yHook),g=e.xHook,m=e.tweener,x=e.mouseDrag,v=void 0!==x&&x,y=e.touchDrag,w=void 0===y||y,b=e.button,_=void 0===b?0:b,R=f()(e,Oe),T=i().useRef(),S=i().useRef({root:T,_:{}}).current,P=ye(!0)[0],E=i().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],n=S._parentTweener;n;)t.push(n),n=n._parentTweener;return t},_registerScrollListeners:function(){var e,t,n,r,o,a,i,s,l,u=null==(e=S.root)?void 0:e.current,c=S.props,p=c.xAxis,f=c.yAxis,d=c.yHook,h=c.xHook,g=c.mouseDrag,m=c.touchDrag,x=c.tweener,v=c.xBoxRef,y=c.yBoxRef,w=c.button,b=x._;u?(te.addEvent(u,S._.dragList={dragstart:function(e,n,c){var d,h,g,m;if(!(e instanceof MouseEvent&&e.button!==w))for(o=E.getScrollableNodes(e.target),t=Date.now(),r=0,a=0,i=[],s=null==(d=(null==v?void 0:v.current)||u)?void 0:d.offsetWidth,l=null==(h=(null==y?void 0:y.current)||u)?void 0:h.offsetHeight,m=0;m<o.length;m++){var x,b;(g=o[m])._updateBox(),g.__isTweener&&(p&&(null==(x=g.axes)||x[p]),f&&(null==(b=g.axes)||b[f]),g._updateNodeInertia())}},click:function(e,n,o){e instanceof MouseEvent&&e.button!==w||t&&(t-Date.now()>b.options.maxClickTm||Math.abs(a)>b.options.maxClickOffset||Math.abs(r)>b.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,u,c){var g,m,x,_,R,T,S,P,E,D;if(!(e instanceof MouseEvent&&e.button!==w||(r=-(c._lastPos.x-c._startPos.x),a=-(c._lastPos.y-c._startPos.y),t&&t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(r)<b.options.maxClickOffset)))for(_=!r,P=!a,b.options.dragDirectionLock&&("Y"===n||!n&&Math.abs(.5*a)>Math.abs(r)?(n="Y",r=0):("X"===n||!n&&Math.abs(.5*r)>Math.abs(a))&&(n="X",a=0)),D=0;D<o.length;D++)if((g=o[D]).__isTweener){var M,O,A,B,k,C,I,L,W,j,F,N,z,H;if(m=p&&(null==(M=g.axes)?void 0:M[p]),T=f&&(null==(O=g.axes)?void 0:O[f]),!m&&!T)continue;i[D]||(i[D]={x:null==(I=m)?void 0:I.scrollPos,y:null==(L=T)?void 0:L.scrollPos},null==(W=m)||null==(j=W.inertia)||j.startMove(),null==(F=T)||null==(N=F.inertia)||N.startMove(),p&&m&&(null==(z=m)||!z.inertiaFrame)&&g.applyInertia(m,p),f&&T&&(null==(H=T)||!H.inertiaFrame)&&g.applyInertia(T,f)),m&&(R=null!=v&&v.current?s:g._.box.x,x=r&&r/R*(m.scrollableWindow||m.scrollableArea)||0,h&&(x=h(x))),T&&(E=null!=y&&y.current?l:g._.box.y,S=a&&a/E*(T.scrollableWindow||T.scrollableArea)||0,d&&(S=d(S))),m&&!_&&x&&null!=(A=m)&&null!=(B=A.inertia)&&B.isInbound(i[D].x+x)&&g.componentShouldScroll(p,x)&&(m.inertia.hold(i[D].x+x),_=!0),T&&!P&&S&&null!=(k=T)&&null!=(C=k.inertia)&&C.isInbound(i[D].y+S)&&g.componentShouldScroll(f,S)&&(T.inertia.hold(i[D].y+S),P=!0)}},dropped:function(e,s,l){var u,c;if(!(e instanceof MouseEvent&&e.button!==w)){for(n=void 0,c=0;c<o.length;c++){var d,h,g,m,x,v;(u=o[c]).__isTweener&&i[c]&&(null==(d=u.axes)||null==(h=d[p])||null==(g=h.inertia)||g.release(),null==(m=u.axes)||null==(x=m[f])||null==(v=x.inertia)||v.release())}!t||t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(r)<b.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=i=null}}},null,b.options.enableMouseDrag||g,m),S._.doRegister=!!u):S._.doRegister=!0}}}),[]);return i().useEffect((function(){return E._registerScrollListeners(),function(){var e,t=null==(e=S.root)?void 0:e.current;S._.scrollEnabled&&(S._.scrollEnabled=!1,t&&S._.dragList&&te.removeEvent(t,S._.dragList))}}),[]),i().useEffect((function(){h().function(a)&&a(T.current),h().function(t)?t(T.current):t&&(t.current=T.current)})),S.props={xAxis:s,yAxis:l,yHook:d,xHook:g,mouseDrag:v,touchDrag:w,tweener:m||P,xBoxRef:p,yBoxRef:u,button:_},S._parentTweener=P,i().createElement(o,c()({ref:T},R),n)}));const Be=Ae;Ae.div=function(e){return i().createElement(Ae,e)};const ke=function(){return i().useContext(g)};var Ce={}.constructor;function Ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Te(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof Ce)&&t.shift()||{};if(!r)return function(e){return Ie(e,o)};o=c()({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var a=i().forwardRef((function(e,t){return i().createElement(xe,{oProps:e,forwardedRef:t,BaseComponent:r,tweenerOptions:o})}));return a.displayName=String.fromCharCode(55358,56793)+(r.displayName||r.name),a}var Le,We={}.constructor;function je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Te(t[0]))&&t.shift(),a=(!t[0]||t[0]instanceof We)&&t.shift()||{};if(!r||!(r.prototype instanceof i().Component||r===i().Component))return function(e){return je(e,a)};var s=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){var e=this;return i().createElement(g.Consumer,null,(function(t){return i().createElement(r,c()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))},t}(i().Component);s.displayName=r.displayName||r.name;var l=i().forwardRef((function(e,t){return i().createElement(s,c()({},e,{forwardedRef:t}))}));return l.displayName=s.displayName,l}$().EasingFunctions=v;var Fe=Ie(Le=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){return this.props.children},t}(i().Component))||Le;const Ne={tweener:Ie,child:je,useTweener:ke,useVoodoo:ye,hook:ye,tools:e,Draggable:Be,Component:Fe,Node:Me,Context:g,Axis:we,dom:te}})(),module.exports=r})();
3
3
  //# sourceMappingURL=react-voodoo.js.map