@engie-group/fluid-design-system
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -65,3 +65,3 @@ /** | ||
const value = parseFloat(this.input.value); | ||
const perc = Math.floor((Slider.PERCENT_CONV * (value - min)) / (max - min)); | ||
const perc = (Slider.PERCENT_CONV * (value - min)) / (max - min); | ||
input.style.setProperty('--nj-slider-track-position', `${perc}% 100%`); | ||
@@ -68,0 +68,0 @@ } |
@@ -19,3 +19,5 @@ export declare enum EventName { | ||
mouseup = "mouseup", | ||
mousedown = "mousedown" | ||
mousedown = "mousedown", | ||
decrement = "decrement", | ||
increment = "increment" | ||
} |
@@ -21,3 +21,5 @@ export var EventName; | ||
EventName["mousedown"] = "mousedown"; | ||
EventName["decrement"] = "decrement"; | ||
EventName["increment"] = "increment"; | ||
})(EventName || (EventName = {})); | ||
//# sourceMappingURL=event-name.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Alert",[],t):"object"==typeof exports?exports.Alert=t():e.Alert=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>h});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,_=t[o].d,b=n[o].d,T=d[v],E=d[y];if(h(v,y)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==y)l=v;else if(T[2]&&E[2]&&s(v)==s(y))l=s(v),_=T[2](_),b=E[2](b);else{if(!T[1]||!E[1]||u(v)!=u(y)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),b=E[1](b)}for(var w=[],k=[],N=[],S=0;S<_.length;S++)x=("number"==typeof _[S]?e.mergeNumbers:e.mergeDimensions)(_[S],b[S]),w[S]=x[0],k[S]=x[1],N.push(x[2]);p.push(w),m.push(k),g.push([l,N])}}if(i){var A=p;p=m,m=A}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(f.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;var d=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class h extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}{constructor(e){super(h,e),c.setData(e,h.DATA_KEY,this),this.setListeners()}closeAndDestroy(){f.trigger(this.element,h.EVENT.close),this.element.animate&&(this.element.animate(h.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}).onfinish=()=>{this.destroyElement()})}close(e){return d(this,void 0,void 0,(function*(){f.trigger(this.element,h.EVENT.close);this.element.animate&&this.element.animate(h.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,350))),e()}))}dispose(){const e=this.element.querySelector(h.SELECTOR.dismiss);f.off(e,h.EVENT.click),c.removeData(this.element,h.DATA_KEY),this.element=null}destroyElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),f.trigger(this.element,h.EVENT.closed)}setListeners(){const e=this.element.querySelector(h.SELECTOR.dismiss);f.on(e,h.EVENT.click,(()=>{this.closeAndDestroy()}))}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,h.SELECTOR.default)}static getInstance(e){return c.getData(e,h.DATA_KEY)}}return h.NAME=`${i.KEY_PREFIX}-alert`,h.DATA_KEY=`${i.KEY_PREFIX}.alert`,h.EVENT_KEY=`.${h.DATA_KEY}`,h.SELECTOR={default:`.${h.NAME}`,dismiss:`.${h.NAME}__close`},h.KEY_FRAMES=[{transform:"translateY(0)",opacity:1},{transform:"translateY(-16px)",opacity:0}],h.EVENT={click:`${a.click}${h.EVENT_KEY}`,close:`${a.close}${h.EVENT_KEY}`,closed:`${a.closed}${h.EVENT_KEY}`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Alert",[],t):"object"==typeof exports?exports.Alert=t():e.Alert=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>h});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,_=t[o].d,b=n[o].d,T=d[v],E=d[y];if(h(v,y)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==y)l=v;else if(T[2]&&E[2]&&s(v)==s(y))l=s(v),_=T[2](_),b=E[2](b);else{if(!T[1]||!E[1]||u(v)!=u(y)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),b=E[1](b)}for(var w=[],k=[],N=[],S=0;S<_.length;S++)x=("number"==typeof _[S]?e.mergeNumbers:e.mergeDimensions)(_[S],b[S]),w[S]=x[0],k[S]=x[1],N.push(x[2]);p.push(w),m.push(k),g.push([l,N])}}if(i){var A=p;p=m,m=A}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(f.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;var d=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class h extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}{constructor(e){super(h,e),c.setData(e,h.DATA_KEY,this),this.setListeners()}closeAndDestroy(){f.trigger(this.element,h.EVENT.close),this.element.animate&&(this.element.animate(h.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}).onfinish=()=>{this.destroyElement()})}close(e){return d(this,void 0,void 0,(function*(){f.trigger(this.element,h.EVENT.close);this.element.animate&&this.element.animate(h.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,350))),e()}))}dispose(){const e=this.element.querySelector(h.SELECTOR.dismiss);f.off(e,h.EVENT.click),c.removeData(this.element,h.DATA_KEY),this.element=null}destroyElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),f.trigger(this.element,h.EVENT.closed)}setListeners(){const e=this.element.querySelector(h.SELECTOR.dismiss);f.on(e,h.EVENT.click,(()=>{this.closeAndDestroy()}))}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,h.SELECTOR.default)}static getInstance(e){return c.getData(e,h.DATA_KEY)}}return h.NAME=`${i.KEY_PREFIX}-alert`,h.DATA_KEY=`${i.KEY_PREFIX}.alert`,h.EVENT_KEY=`.${h.DATA_KEY}`,h.SELECTOR={default:`.${h.NAME}`,dismiss:`.${h.NAME}__close`},h.KEY_FRAMES=[{transform:"translateY(0)",opacity:1},{transform:"translateY(-16px)",opacity:0}],h.EVENT={click:`${a.click}${h.EVENT_KEY}`,close:`${a.close}${h.EVENT_KEY}`,closed:`${a.closed}${h.EVENT_KEY}`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Checkbox",[],t):"object"==typeof exports?exports.Checkbox=t():e.Checkbox=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;const s={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class l extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(l.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(l.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(l.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${l.SELECTOR.formGroup} for ${s.describe(this.element)}`),t}}var i,a,c,d;l.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},l.SELECTOR={formGroup:`.${l.CLASS_NAME.njFormGroup}`},function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(d||(d={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(u.fixEvent(n,e),o.oneOff&&u.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return u.fixEvent(r,t),n.oneOff&&u.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(u.STRIPNAME_REGEX,"");const l=a[s];l&&(s=l);return"string"==typeof d[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=u.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=u.normalizeParams(l,o,n),c=s[a]||(s[a]={}),d=u.findHandler(c,i,t?o:null);if(d)return void(d.oneOff=d.oneOff&&r);const h=u.getUidEvent(i,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,o,n):u.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=i,m.oneOff=r,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,o,n,r){const s=u.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];u.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){u.addHandler(e,t,o,n,!1)}static one(e,t,o,n){u.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=u.normalizeParams(t,o,n),i=l!==t,a=u.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void u.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&u.removeNamespacedHandlers(e,a,o,t.substr(1));const c=a[l]||{};for(const o in c){if(!Object.prototype.hasOwnProperty.call(c,o))continue;const n=o.replace(u.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=c[o];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof d[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=h.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=h.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=h;class p extends l{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,p.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){u.off(this.element,"focus"),u.off(this.element,"blur"),u.off(this.element,"keydown"),u.off(this.element,"keyup")}addFocusListener(){u.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),u.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"keydown",(e=>{s.isChar(e)&&this.addIsFilled()})),u.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(p.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(p.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(p.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${p.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${s.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in p.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(p.FORM_CONTROL_SIZE_MARKERS[e])}}p.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},p.INPUT_SELECTOR={njFormGroup:`.${p.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${p.CLASS_NAME.njLabel}'], label[class*=' ${p.CLASS_NAME.njLabel}']`},p.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${p.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:p.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},p.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class E extends p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,E.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=m.createHtmlNode(this.options.template);this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){s.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${s.describe(this.element)} parent element should be <label>.`),s.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${s.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(E.SELECTOR.label);u.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),u.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"change",(()=>{this.element.blur()}))}}E.SELECTOR={formGroup:p.SELECTOR.formGroup,label:"label"},E.DEFAULT_OPTIONS={label:{required:!1}};class f extends E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(f,e,m.extend(!0,f.DEFAULT_OPTIONS,t),o);const n=e.parentNode.parentNode;r.setData(n,f.DATA_KEY,this)}dispose(){const e=this.element.parentNode.parentNode;r.removeData(e,f.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.input)}static getInstance(e){return r.getData(e,f.DATA_KEY)}static matches(e){return"checkbox"===e.getAttribute("type")}}return f.NAME=`${i.KEY_PREFIX}-checkbox`,f.DATA_KEY=`${i.KEY_PREFIX}.checkbox`,f.SELECTOR={default:`.${f.NAME}`,input:`.${f.NAME} > label > input[type=checkbox]`,formGroup:E.SELECTOR.formGroup,label:E.SELECTOR.label},f.DEFAULT_OPTIONS={template:`<span class="${f.NAME}__decorator"><span class="${f.NAME}__check"></span></span>`,njFormGroup:{required:!1}},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Checkbox",[],t):"object"==typeof exports?exports.Checkbox=t():e.Checkbox=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;const s={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class l extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(l.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(l.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(l.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${l.SELECTOR.formGroup} for ${s.describe(this.element)}`),t}}var i,a,c,d;l.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},l.SELECTOR={formGroup:`.${l.CLASS_NAME.njFormGroup}`},function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(d||(d={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(u.fixEvent(n,e),o.oneOff&&u.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return u.fixEvent(r,t),n.oneOff&&u.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(u.STRIPNAME_REGEX,"");const l=a[s];l&&(s=l);return"string"==typeof d[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=u.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=u.normalizeParams(l,o,n),c=s[a]||(s[a]={}),d=u.findHandler(c,i,t?o:null);if(d)return void(d.oneOff=d.oneOff&&r);const h=u.getUidEvent(i,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,o,n):u.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=i,m.oneOff=r,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,o,n,r){const s=u.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];u.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){u.addHandler(e,t,o,n,!1)}static one(e,t,o,n){u.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=u.normalizeParams(t,o,n),i=l!==t,a=u.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void u.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&u.removeNamespacedHandlers(e,a,o,t.substr(1));const c=a[l]||{};for(const o in c){if(!Object.prototype.hasOwnProperty.call(c,o))continue;const n=o.replace(u.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=c[o];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof d[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=h.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=h.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=h;class p extends l{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,p.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){u.off(this.element,"focus"),u.off(this.element,"blur"),u.off(this.element,"keydown"),u.off(this.element,"keyup")}addFocusListener(){u.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),u.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"keydown",(e=>{s.isChar(e)&&this.addIsFilled()})),u.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(p.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(p.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(p.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${p.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${s.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in p.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(p.FORM_CONTROL_SIZE_MARKERS[e])}}p.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},p.INPUT_SELECTOR={njFormGroup:`.${p.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${p.CLASS_NAME.njLabel}'], label[class*=' ${p.CLASS_NAME.njLabel}']`},p.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${p.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:p.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},p.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class E extends p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,E.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=m.createHtmlNode(this.options.template);this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){s.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${s.describe(this.element)} parent element should be <label>.`),s.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${s.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(E.SELECTOR.label);u.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),u.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"change",(()=>{this.element.blur()}))}}E.SELECTOR={formGroup:p.SELECTOR.formGroup,label:"label"},E.DEFAULT_OPTIONS={label:{required:!1}};class f extends E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(f,e,m.extend(!0,f.DEFAULT_OPTIONS,t),o);const n=e.parentNode.parentNode;r.setData(n,f.DATA_KEY,this)}dispose(){const e=this.element.parentNode.parentNode;r.removeData(e,f.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.input)}static getInstance(e){return r.getData(e,f.DATA_KEY)}static matches(e){return"checkbox"===e.getAttribute("type")}}return f.NAME=`${i.KEY_PREFIX}-checkbox`,f.DATA_KEY=`${i.KEY_PREFIX}.checkbox`,f.SELECTOR={default:`.${f.NAME}`,input:`.${f.NAME} > label > input[type=checkbox]`,formGroup:E.SELECTOR.formGroup,label:E.SELECTOR.label},f.DEFAULT_OPTIONS={template:`<span class="${f.NAME}__decorator"><span class="${f.NAME}__check"></span></span>`,njFormGroup:{required:!1}},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Collapse",[],t):"object"==typeof exports?exports.Collapse=t():e.Collapse=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};s.d(r,{default:()=>g}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{static getUidEvent(e,t){return t&&`${t}::${a.uidEvent++}`||e.uidEvent||a.uidEvent++}static getEvent(e){const t=a.getUidEvent(e);return e.uidEvent=t,a.EVENTREGISTRY[t]=a.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&a.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(a.fixEvent(o,e),n.oneOff&&a.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const r=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return a.fixEvent(s,t),o.oneOff&&a.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const r="string"==typeof n,i=r?s:n;let l=e.replace(a.STRIPNAME_REGEX,"");const c=t[l];c&&(l=c);return"string"==typeof o[l]||(l=e),[r,i,l]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=a.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=a.normalizeParams(i,n,o),d=r[c]||(r[c]={}),u=a.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=a.getUidEvent(l,i.replace(a.NAMESPACE_REGEX,"")),g=t?a.njDelegationHandler(e,n,o):a.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=s,g.uidEvent=h,d[h]=g,e.addEventListener(c,g,t)}}static removeHandler(e,t,n,o,s){const r=a.findHandler(t[n],o,s);null!==r&&(e.removeEventListener(n,r,Boolean(s)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&r.indexOf(o)>-1){const o=s[r];a.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){a.addHandler(e,t,n,o,!1)}static one(e,t,n,o){a.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,r,i]=a.normalizeParams(t,n,o),l=i!==t,c=a.getEvent(e);if(void 0!==r){if(!c||!c[i])return;return void a.removeHandler(e,c,i,r,s?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&a.removeNamespacedHandlers(e,c,n,t.substr(1));const d=c[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(a.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];a.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(a.STRIPNAME_REGEX,""),r="string"==typeof o[s];let i=null;return r?(i=document.createEvent("HTMLEvents"),i.initEvent(s,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}a.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,a.STRIPNAME_REGEX=/\..*/,a.KEYEVENT_REGEX=/^key/,a.STRIPUID_REGEX=/::\d+$/,a.EVENTREGISTRY={},a.uidEvent=1;const c={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=c.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=c.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},d=c;const u={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(u.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(u.TRANSITION_END,(function t(){n=!0,e.removeEventListener(u.TRANSITION_END,t)})),setTimeout((()=>{n||u.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const r=n[s],i=t[s],l=i&&u.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=s||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&o&&(a=setTimeout(d,h)),l}}},h=u;class g extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const r=s[n];if(!r.key||r.key.key!==e.DATA_KEY){const i=new e(s[n],t);r.key||l.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=h.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=h.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=h.getSelectorFromElement(o),r=h.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&r.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),l.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(g.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.show))return;let e,t;this.parent&&(e=h.makeArray(this.parent.querySelectorAll(g.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(g.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?l.getData(o[0],g.DATA_KEY):null,t&&t.isTransitioning)return}if(a.trigger(this.element,g.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&g.collapseInterface(e,"hide"),t||l.setData(e,g.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,r=h.getTransitionDurationFromElement(this.element);a.one(this.element,h.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),a.trigger(this.element,g.EVENT.shown)})),h.emulateTransitionEnd(this.element,r),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.show))return;if(a.trigger(this.element,g.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,h.reflow(this.element),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.remove(g.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=h.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.show)||(t.classList.add(g.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=h.getTransitionDurationFromElement(this.element);a.one(this.element,h.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),a.trigger(this.element,g.EVENT.hidden)})),h.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){l.removeData(this.element,g.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(g.DIMENSION.width)?g.DIMENSION.width:g.DIMENSION.height}getParent(){let e;h.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return h.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(g.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.collapsed):e.classList.add(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),h.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=h.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=l.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){a.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=d.getDataAttributes(this),n=h.getSelectorFromElement(this);h.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,g.collapseInterface(e,o)}))}))}}return g.NAME=`${e.KEY_PREFIX}-collapse`,g.DATA_KEY=`${e.KEY_PREFIX}.collapse`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=e.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},g.EVENT={show:`${n.show}${g.EVENT_KEY}`,shown:`${n.shown}${g.EVENT_KEY}`,hide:`${n.hide}${g.EVENT_KEY}`,hidden:`${n.hidden}${g.EVENT_KEY}`,clickDataApi:`${n.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={toggle:!1,parent:""},g.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},g.DIMENSION={width:"width",height:"height"},g.SELECTOR={default:`.${g.CLASS_NAME.collapse}`,actives:`.${g.CLASS_NAME.show}, .${g.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'},r=r.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Collapse",[],t):"object"==typeof exports?exports.Collapse=t():e.Collapse=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};s.d(r,{default:()=>g}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{static getUidEvent(e,t){return t&&`${t}::${a.uidEvent++}`||e.uidEvent||a.uidEvent++}static getEvent(e){const t=a.getUidEvent(e);return e.uidEvent=t,a.EVENTREGISTRY[t]=a.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&a.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(a.fixEvent(o,e),n.oneOff&&a.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const r=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return a.fixEvent(s,t),o.oneOff&&a.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const r="string"==typeof n,i=r?s:n;let l=e.replace(a.STRIPNAME_REGEX,"");const c=t[l];c&&(l=c);return"string"==typeof o[l]||(l=e),[r,i,l]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=a.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=a.normalizeParams(i,n,o),d=r[c]||(r[c]={}),u=a.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=a.getUidEvent(l,i.replace(a.NAMESPACE_REGEX,"")),g=t?a.njDelegationHandler(e,n,o):a.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=s,g.uidEvent=h,d[h]=g,e.addEventListener(c,g,t)}}static removeHandler(e,t,n,o,s){const r=a.findHandler(t[n],o,s);null!==r&&(e.removeEventListener(n,r,Boolean(s)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&r.indexOf(o)>-1){const o=s[r];a.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){a.addHandler(e,t,n,o,!1)}static one(e,t,n,o){a.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,r,i]=a.normalizeParams(t,n,o),l=i!==t,c=a.getEvent(e);if(void 0!==r){if(!c||!c[i])return;return void a.removeHandler(e,c,i,r,s?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&a.removeNamespacedHandlers(e,c,n,t.substr(1));const d=c[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(a.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];a.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(a.STRIPNAME_REGEX,""),r="string"==typeof o[s];let i=null;return r?(i=document.createEvent("HTMLEvents"),i.initEvent(s,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}a.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,a.STRIPNAME_REGEX=/\..*/,a.KEYEVENT_REGEX=/^key/,a.STRIPUID_REGEX=/::\d+$/,a.EVENTREGISTRY={},a.uidEvent=1;const c={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=c.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=c.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},d=c;const u={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(u.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(u.TRANSITION_END,(function t(){n=!0,e.removeEventListener(u.TRANSITION_END,t)})),setTimeout((()=>{n||u.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const r=n[s],i=t[s],l=i&&u.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=s||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&o&&(a=setTimeout(d,h)),l}}},h=u;class g extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const r=s[n];if(!r.key||r.key.key!==e.DATA_KEY){const i=new e(s[n],t);r.key||l.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=h.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=h.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=h.getSelectorFromElement(o),r=h.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&r.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),l.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(g.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.show))return;let e,t;this.parent&&(e=h.makeArray(this.parent.querySelectorAll(g.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(g.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?l.getData(o[0],g.DATA_KEY):null,t&&t.isTransitioning)return}if(a.trigger(this.element,g.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&g.collapseInterface(e,"hide"),t||l.setData(e,g.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,r=h.getTransitionDurationFromElement(this.element);a.one(this.element,h.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),a.trigger(this.element,g.EVENT.shown)})),h.emulateTransitionEnd(this.element,r),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.show))return;if(a.trigger(this.element,g.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,h.reflow(this.element),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.remove(g.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=h.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.show)||(t.classList.add(g.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=h.getTransitionDurationFromElement(this.element);a.one(this.element,h.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),a.trigger(this.element,g.EVENT.hidden)})),h.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){l.removeData(this.element,g.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(g.DIMENSION.width)?g.DIMENSION.width:g.DIMENSION.height}getParent(){let e;h.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return h.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(g.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.collapsed):e.classList.add(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),h.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=h.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=l.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){a.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=d.getDataAttributes(this),n=h.getSelectorFromElement(this);h.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,g.collapseInterface(e,o)}))}))}}return g.NAME=`${e.KEY_PREFIX}-collapse`,g.DATA_KEY=`${e.KEY_PREFIX}.collapse`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=e.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},g.EVENT={show:`${n.show}${g.EVENT_KEY}`,shown:`${n.shown}${g.EVENT_KEY}`,hide:`${n.hide}${g.EVENT_KEY}`,hidden:`${n.hidden}${g.EVENT_KEY}`,clickDataApi:`${n.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={toggle:!1,parent:""},g.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},g.DIMENSION={width:"width",height:"height"},g.SELECTOR={default:`.${g.CLASS_NAME.collapse}`,actives:`.${g.CLASS_NAME.show}, .${g.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'},r=r.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Dropdown",[],t):"object"==typeof exports?exports.Dropdown=t():e.Dropdown=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},l={};s.d(l,{default:()=>p}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),r={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const l=s[n];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[n],t);l.key||r.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const l=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=l.length;i>=0;i--)if(l[i]===t)return c.fixEvent(s,t),o.oneOff&&c.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const l="string"==typeof n,i=l?s:n;let r=e.replace(c.STRIPNAME_REGEX,"");const a=t[r];a&&(r=a);return"string"==typeof o[r]||(r=e),[l,i,r]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const l=c.getEvent(e);for(const i of t.split(" ")){const[t,r,a]=c.normalizeParams(i,n,o),d=l[a]||(l[a]={}),u=c.findHandler(d,r,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const E=c.getUidEvent(r,i.replace(c.NAMESPACE_REGEX,"")),h=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=E,d[E]=h,e.addEventListener(a,h,t)}}static removeHandler(e,t,n,o,s){const l=c.findHandler(t[n],o,s);null!==l&&(e.removeEventListener(n,l,Boolean(s)),delete t[n][l.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&l.indexOf(o)>-1){const o=s[l];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,l,i]=c.normalizeParams(t,n,o),r=i!==t,a=c.getEvent(e);if(void 0!==l){if(!a||!a[i])return;return void c.removeHandler(e,a,i,l,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!r||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),l="string"==typeof o[s];let i=null;return l?(i=document.createEvent("HTMLEvents"),i.initEvent(s,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=d.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},u=d;const E={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(E.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(E.TRANSITION_END,(function t(){n=!0,e.removeEventListener(E.TRANSITION_END,t)})),setTimeout((()=>{n||E.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const l=n[s],i=t[s],r=i&&E.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(l).test(r))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${l}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?E.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let l,i,r,a=null,c=0;const d=()=>{c=Date.now(),a=null,r=e.apply(i,l)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=s||this,l=arguments,E<=0?(clearTimeout(a),a=null,c=u,r=e.apply(i,l)):!a&&o&&(a=setTimeout(d,E)),r}}},h=E;class g extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=h.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=h.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=h.getSelectorFromElement(o),l=h.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&l.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),r.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(g.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.show))return;let e,t;this.parent&&(e=h.makeArray(this.parent.querySelectorAll(g.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(g.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?r.getData(o[0],g.DATA_KEY):null,t&&t.isTransitioning)return}if(c.trigger(this.element,g.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&g.collapseInterface(e,"hide"),t||r.setData(e,g.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,l=h.getTransitionDurationFromElement(this.element);c.one(this.element,h.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),c.trigger(this.element,g.EVENT.shown)})),h.emulateTransitionEnd(this.element,l),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.show))return;if(c.trigger(this.element,g.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,h.reflow(this.element),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.remove(g.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=h.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.show)||(t.classList.add(g.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=h.getTransitionDurationFromElement(this.element);c.one(this.element,h.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),c.trigger(this.element,g.EVENT.hidden)})),h.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){r.removeData(this.element,g.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(g.DIMENSION.width)?g.DIMENSION.width:g.DIMENSION.height}getParent(){let e;h.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return h.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(g.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.collapsed):e.classList.add(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),h.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=h.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=r.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),u.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return r.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){c.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=u.getDataAttributes(this),n=h.getSelectorFromElement(this);h.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,g.collapseInterface(e,o)}))}))}}g.NAME=`${e.KEY_PREFIX}-collapse`,g.DATA_KEY=`${e.KEY_PREFIX}.collapse`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=e.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},g.EVENT={show:`${n.show}${g.EVENT_KEY}`,shown:`${n.shown}${g.EVENT_KEY}`,hide:`${n.hide}${g.EVENT_KEY}`,hidden:`${n.hidden}${g.EVENT_KEY}`,clickDataApi:`${n.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={toggle:!1,parent:""},g.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},g.DIMENSION={width:"width",height:"height"},g.SELECTOR={default:`.${g.CLASS_NAME.collapse}`,actives:`.${g.CLASS_NAME.show}, .${g.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};class p extends a{constructor(e){super(p,e),r.setData(e,p.DATA_KEY,this),this.addBlurEvent(),this.addTouchEvent(),this.registerEvents()}closeMenu(){this.element.classList.contains(p.CLASS_NAME.shownCollapse)&&this.element.click()}dispose(){r.removeData(this.element,p.DATA_KEY),this.element=null}static handleCollapseShow(e){e.target.closest(p.SELECTOR.default).classList.add(p.CLASS_NAME.shownCollapse)}static handleCollapseHide(e){e.target.closest(p.SELECTOR.default).classList.remove(p.CLASS_NAME.shownCollapse)}static getInstance(e){return r.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}addTouchEvent(){c.on(this.element,p.EVENT.keydownDismiss,(e=>{e.which===p.ESCAPE_KEYCODE&&(e.preventDefault(),this.closeMenu())}))}addBlurEvent(){c.on(this.element,"blur",(()=>{this.closeMenu()}))}registerEvents(){c.on(document,g.EVENT.show,p.SELECTOR.default,(e=>{p.handleCollapseShow(e)})),c.on(document,g.EVENT.hidden,p.SELECTOR.default,(e=>{p.handleCollapseHide(e)})),c.on(document,p.EVENT.clickDataApi,p.SELECTOR.options,(e=>{const t=e.target.closest(`[${p.ATTRIBUTE.value}]`),n=e.target.closest(p.SELECTOR.default),o=t.querySelector(`[${p.ATTRIBUTE.content}]`),s=n.querySelector(p.SELECTOR.input),l=t.getAttribute(p.ATTRIBUTE.value),i=o?o.textContent:t.textContent;s.value=l,n.setAttribute(p.ATTRIBUTE.selectedContent,i),this.value=l,c.trigger(this.element,p.EVENT.onchange)}))}}return p.NAME=`${e.KEY_PREFIX}-dropdown`,p.DATA_KEY=`${e.KEY_PREFIX}.dropdown`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.ESCAPE_KEYCODE=27,p.ATTRIBUTE={content:"data-content",selectedContent:"data-selected-content",value:"data-value"},p.CLASS_NAME={isFilled:`${p.NAME}__label--is-filled`,shownCollapse:`${p.NAME}--shown-collapse`},p.SELECTOR={default:`.${p.NAME}`,input:"input",label:`.${p.NAME}__label`,options:`.${p.NAME} [${p.ATTRIBUTE.value}]`},p.EVENT={clickDataApi:`${n.mousedown}${p.EVENT_KEY}${p.DATA_API_KEY}`,keydownDismiss:`${n.keydown}.dismiss${p.EVENT_KEY}`,onchange:`${n.onchange}${p.EVENT_KEY}`},l=l.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Dropdown",[],t):"object"==typeof exports?exports.Dropdown=t():e.Dropdown=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},l={};s.d(l,{default:()=>p}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),r={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const l=s[n];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[n],t);l.key||r.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const l=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=l.length;i>=0;i--)if(l[i]===t)return c.fixEvent(s,t),o.oneOff&&c.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const l="string"==typeof n,i=l?s:n;let r=e.replace(c.STRIPNAME_REGEX,"");const a=t[r];a&&(r=a);return"string"==typeof o[r]||(r=e),[l,i,r]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const l=c.getEvent(e);for(const i of t.split(" ")){const[t,r,a]=c.normalizeParams(i,n,o),d=l[a]||(l[a]={}),u=c.findHandler(d,r,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const E=c.getUidEvent(r,i.replace(c.NAMESPACE_REGEX,"")),h=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=E,d[E]=h,e.addEventListener(a,h,t)}}static removeHandler(e,t,n,o,s){const l=c.findHandler(t[n],o,s);null!==l&&(e.removeEventListener(n,l,Boolean(s)),delete t[n][l.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&l.indexOf(o)>-1){const o=s[l];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,l,i]=c.normalizeParams(t,n,o),r=i!==t,a=c.getEvent(e);if(void 0!==l){if(!a||!a[i])return;return void c.removeHandler(e,a,i,l,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!r||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),l="string"==typeof o[s];let i=null;return l?(i=document.createEvent("HTMLEvents"),i.initEvent(s,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=d.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},u=d;const E={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(E.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(E.TRANSITION_END,(function t(){n=!0,e.removeEventListener(E.TRANSITION_END,t)})),setTimeout((()=>{n||E.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const l=n[s],i=t[s],r=i&&E.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(l).test(r))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${l}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?E.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let l,i,r,a=null,c=0;const d=()=>{c=Date.now(),a=null,r=e.apply(i,l)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=s||this,l=arguments,E<=0?(clearTimeout(a),a=null,c=u,r=e.apply(i,l)):!a&&o&&(a=setTimeout(d,E)),r}}},h=E;class g extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=h.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=h.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=h.getSelectorFromElement(o),l=h.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&l.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),r.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(g.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.show))return;let e,t;this.parent&&(e=h.makeArray(this.parent.querySelectorAll(g.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(g.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?r.getData(o[0],g.DATA_KEY):null,t&&t.isTransitioning)return}if(c.trigger(this.element,g.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&g.collapseInterface(e,"hide"),t||r.setData(e,g.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,l=h.getTransitionDurationFromElement(this.element);c.one(this.element,h.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),c.trigger(this.element,g.EVENT.shown)})),h.emulateTransitionEnd(this.element,l),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.show))return;if(c.trigger(this.element,g.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,h.reflow(this.element),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.remove(g.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=h.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.show)||(t.classList.add(g.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=h.getTransitionDurationFromElement(this.element);c.one(this.element,h.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),c.trigger(this.element,g.EVENT.hidden)})),h.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){r.removeData(this.element,g.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(g.DIMENSION.width)?g.DIMENSION.width:g.DIMENSION.height}getParent(){let e;h.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return h.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(g.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.collapsed):e.classList.add(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),h.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=h.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=r.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),u.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return r.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){c.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=u.getDataAttributes(this),n=h.getSelectorFromElement(this);h.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,g.collapseInterface(e,o)}))}))}}g.NAME=`${e.KEY_PREFIX}-collapse`,g.DATA_KEY=`${e.KEY_PREFIX}.collapse`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=e.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},g.EVENT={show:`${n.show}${g.EVENT_KEY}`,shown:`${n.shown}${g.EVENT_KEY}`,hide:`${n.hide}${g.EVENT_KEY}`,hidden:`${n.hidden}${g.EVENT_KEY}`,clickDataApi:`${n.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={toggle:!1,parent:""},g.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},g.DIMENSION={width:"width",height:"height"},g.SELECTOR={default:`.${g.CLASS_NAME.collapse}`,actives:`.${g.CLASS_NAME.show}, .${g.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};class p extends a{constructor(e){super(p,e),r.setData(e,p.DATA_KEY,this),this.addBlurEvent(),this.addTouchEvent(),this.registerEvents()}closeMenu(){this.element.classList.contains(p.CLASS_NAME.shownCollapse)&&this.element.click()}dispose(){r.removeData(this.element,p.DATA_KEY),this.element=null}static handleCollapseShow(e){e.target.closest(p.SELECTOR.default).classList.add(p.CLASS_NAME.shownCollapse)}static handleCollapseHide(e){e.target.closest(p.SELECTOR.default).classList.remove(p.CLASS_NAME.shownCollapse)}static getInstance(e){return r.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}addTouchEvent(){c.on(this.element,p.EVENT.keydownDismiss,(e=>{e.which===p.ESCAPE_KEYCODE&&(e.preventDefault(),this.closeMenu())}))}addBlurEvent(){c.on(this.element,"blur",(()=>{this.closeMenu()}))}registerEvents(){c.on(document,g.EVENT.show,p.SELECTOR.default,(e=>{p.handleCollapseShow(e)})),c.on(document,g.EVENT.hidden,p.SELECTOR.default,(e=>{p.handleCollapseHide(e)})),c.on(document,p.EVENT.clickDataApi,p.SELECTOR.options,(e=>{const t=e.target.closest(`[${p.ATTRIBUTE.value}]`),n=e.target.closest(p.SELECTOR.default),o=t.querySelector(`[${p.ATTRIBUTE.content}]`),s=n.querySelector(p.SELECTOR.input),l=t.getAttribute(p.ATTRIBUTE.value),i=o?o.textContent:t.textContent;s.value=l,n.setAttribute(p.ATTRIBUTE.selectedContent,i),this.value=l,c.trigger(this.element,p.EVENT.onchange)}))}}return p.NAME=`${e.KEY_PREFIX}-dropdown`,p.DATA_KEY=`${e.KEY_PREFIX}.dropdown`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.ESCAPE_KEYCODE=27,p.ATTRIBUTE={content:"data-content",selectedContent:"data-selected-content",value:"data-value"},p.CLASS_NAME={isFilled:`${p.NAME}__label--is-filled`,shownCollapse:`${p.NAME}--shown-collapse`},p.SELECTOR={default:`.${p.NAME}`,input:"input",label:`.${p.NAME}__label`,options:`.${p.NAME} [${p.ATTRIBUTE.value}]`},p.EVENT={clickDataApi:`${n.mousedown}${p.EVENT_KEY}${p.DATA_API_KEY}`,keydownDismiss:`${n.keydown}.dismiss${p.EVENT_KEY}`,onchange:`${n.onchange}${p.EVENT_KEY}`},l=l.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Fab",[],t):"object"==typeof exports?exports.Fab=t():e.Fab=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>p});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=y.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:S}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),y=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,S=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case S:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,b=d[0][0]+d[1][1]+d[2][2]+1;return b>1e-4?(g=.5/Math.sqrt(b),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,b=n[o].t,_=t[o].d,y=n[o].d,T=d[v],E=d[b];if(h(v,b)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==b)l=v;else if(T[2]&&E[2]&&s(v)==s(b))l=s(v),_=T[2](_),y=E[2](y);else{if(!T[1]||!E[1]||u(v)!=u(b)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),y=E[1](y)}for(var w=[],S=[],k=[],A=0;A<_.length;A++)x=("number"==typeof _[A]?e.mergeNumbers:e.mergeDimensions)(_[A],y[A]),w[A]=x[0],S[A]=x[1],k.push(x[2]);p.push(w),m.push(S),g.push([l,k])}}if(i){var N=p;p=m,m=N}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(f.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=d.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=d;class p extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}{constructor(e,t){super(p,e),this.buttons=this.element.querySelectorAll(p.SELECTOR.button),this.items=this.element.querySelectorAll(p.SELECTOR.item),this.button=this.buttons[0],this.setOptions(t),this.element=e,this.setDefaultAriaAttribute(),this.setListeners(),c.setData(e,p.DATA_KEY,this)}open(){let e;const t=this.options.menuPosition,n=p.DURATION_PER_ITEM*this.items.length;h.toggleClass(this.button,p.OPEN_CLASS);const r=this.button.classList.contains(p.OPEN_CLASS);this.button.setAttribute("aria-expanded",r.toString());const i="top"===t||"bottom"===t?"translateY":"translateX",o="top"===t||"left"===t?"-":"";for(e=0;e<this.items.length;e++){const t=[{transform:`${i}(0)`,opacity:0},{transform:`${i}(${o}${(e+1)*p.ITEMS_HEIGHT+1}rem)`,opacity:1}],a=r?t:t.reverse(),s=n-p.DURATION_PER_ITEM*e,u=p.STAGGER_DELAY*e;this.items[e].animate(a,{duration:s,delay:u,fill:"forwards"})}}setListeners(){const e=p.EVENT.click;f.on(this.element,e,this.options.selector,(()=>this.open()))}setOptions(e){const t=this.element.getAttribute("data-placement");this.options={menuPosition:t},this.options=h.extend(this.options,e),["top","right","bottom","left"].indexOf(this.options.menuPosition)<0&&(this.options.menuPosition="top")}getOptions(){return this.options}setDefaultAriaAttribute(){this.button.setAttribute("aria-expanded","false")}dispose(){c.removeData(this.element,p.DATA_KEY),this.element=null}static getInstance(e){return c.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}}return p.NAME=`${i.KEY_PREFIX}-fab-menu`,p.DATA_KEY=`${i.KEY_PREFIX}.fab`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.SELECTOR={default:`.${p.NAME}`,button:`.${i.KEY_PREFIX}-fab`,item:`.${i.KEY_PREFIX}-fab__item`},p.EVENT={click:`${a.click}${p.EVENT_KEY}`,mouseenter:`${a.mouseenter}${p.EVENT_KEY}`,mouseleave:`${a.mouseleave}${p.EVENT_KEY}`},p.DURATION_PER_ITEM=35,p.ITEMS_HEIGHT=3.8,p.OPEN_CLASS="active",p.STAGGER_DELAY=70,t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Fab",[],t):"object"==typeof exports?exports.Fab=t():e.Fab=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>p});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=y.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:S}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),y=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,S=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case S:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,b=d[0][0]+d[1][1]+d[2][2]+1;return b>1e-4?(g=.5/Math.sqrt(b),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,b=n[o].t,_=t[o].d,y=n[o].d,T=d[v],E=d[b];if(h(v,b)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==b)l=v;else if(T[2]&&E[2]&&s(v)==s(b))l=s(v),_=T[2](_),y=E[2](y);else{if(!T[1]||!E[1]||u(v)!=u(b)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),y=E[1](y)}for(var w=[],S=[],k=[],A=0;A<_.length;A++)x=("number"==typeof _[A]?e.mergeNumbers:e.mergeDimensions)(_[A],y[A]),w[A]=x[0],S[A]=x[1],k.push(x[2]);p.push(w),m.push(S),g.push([l,k])}}if(i){var N=p;p=m,m=N}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(f.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=d.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=d;class p extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}{constructor(e,t){super(p,e),this.buttons=this.element.querySelectorAll(p.SELECTOR.button),this.items=this.element.querySelectorAll(p.SELECTOR.item),this.button=this.buttons[0],this.setOptions(t),this.element=e,this.setDefaultAriaAttribute(),this.setListeners(),c.setData(e,p.DATA_KEY,this)}open(){let e;const t=this.options.menuPosition,n=p.DURATION_PER_ITEM*this.items.length;h.toggleClass(this.button,p.OPEN_CLASS);const r=this.button.classList.contains(p.OPEN_CLASS);this.button.setAttribute("aria-expanded",r.toString());const i="top"===t||"bottom"===t?"translateY":"translateX",o="top"===t||"left"===t?"-":"";for(e=0;e<this.items.length;e++){const t=[{transform:`${i}(0)`,opacity:0},{transform:`${i}(${o}${(e+1)*p.ITEMS_HEIGHT+1}rem)`,opacity:1}],a=r?t:t.reverse(),s=n-p.DURATION_PER_ITEM*e,u=p.STAGGER_DELAY*e;this.items[e].animate(a,{duration:s,delay:u,fill:"forwards"})}}setListeners(){const e=p.EVENT.click;f.on(this.element,e,this.options.selector,(()=>this.open()))}setOptions(e){const t=this.element.getAttribute("data-placement");this.options={menuPosition:t},this.options=h.extend(this.options,e),["top","right","bottom","left"].indexOf(this.options.menuPosition)<0&&(this.options.menuPosition="top")}getOptions(){return this.options}setDefaultAriaAttribute(){this.button.setAttribute("aria-expanded","false")}dispose(){c.removeData(this.element,p.DATA_KEY),this.element=null}static getInstance(e){return c.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}}return p.NAME=`${i.KEY_PREFIX}-fab-menu`,p.DATA_KEY=`${i.KEY_PREFIX}.fab`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.SELECTOR={default:`.${p.NAME}`,button:`.${i.KEY_PREFIX}-fab`,item:`.${i.KEY_PREFIX}-fab__item`},p.EVENT={click:`${a.click}${p.EVENT_KEY}`,mouseenter:`${a.mouseenter}${p.EVENT_KEY}`,mouseleave:`${a.mouseleave}${p.EVENT_KEY}`},p.DURATION_PER_ITEM=35,p.ITEMS_HEIGHT=3.8,p.OPEN_CLASS="active",p.STAGGER_DELAY=70,t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Form",[],t):"object"==typeof exports?exports.Form=t():e.Form=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>T}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,s){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=s},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const s=t.key;s.key===n&&(delete e[s.id],delete t.key)}}})(),s={setData(e,t,s){n.set(e,t,s)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},o=s;class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const s=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||o.setData(r[n],e.DATA_KEY,l),s.push(l)}}return s}}var i,l,a,c;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class u extends r{constructor(e){if(super(u,e),this.options={autocomplete:!0,limit:!1},this.onInputChange=()=>{this.list=this.dataList},this.onKeyDown=e=>{const t=this.element.querySelector(u.SELECTOR.list),n=this.element.querySelectorAll(`${u.SELECTOR.listGroup}> *`),s=parseInt(t.dataset.index,10),o=this.element.querySelector(u.SELECTOR.input),r=()=>{t.style.display="block",o.setAttribute("aria-expanded","true"),this.element.setAttribute("aria-expanded","true")},i=()=>{delete t.dataset.index,t.style.setProperty("display",""),o.setAttribute("aria-expanded","false"),this.element.setAttribute("aria-expanded","false")};switch(e.key){case"ArrowUp":e.preventDefault(),r(),t.dataset.index&&(t.dataset.index=(s-1<0?n.length-1:s-1).toString(),n[t.dataset.index].focus());break;case"ArrowDown":e.preventDefault(),r(),t.dataset.index?t.dataset.index=(s<n.length-1?s+1:0).toString():t.dataset.index="0",n[t.dataset.index].focus();break;case"Escape":i(),o.focus();break;case"Enter":i()}},this.onSelectListItem=e=>{const{name:t,value:n}=e.target.dataset,s=this.element.querySelector(u.SELECTOR.input);t&&(s.value=t),n&&(this.root.dataset.value=n,s.dataset.value=n),this.onUserSelectItem({name:t,value:n})},e.querySelector(u.SELECTOR.listGroup)){const t=e.querySelector(`${u.SELECTOR.listGroup}`).innerHTML;this.listFragment=document.createRange().createContextualFragment(t),this.root=e.parentElement.dataset.list||e.parentElement.dataset.options?e.parentElement:e,this.root.dataset.list&&(this.dataList=JSON.parse(this.root.dataset.list),this.list=this.dataList),this.root.dataset.options&&(this.options=Object.assign(Object.assign({},this.options),JSON.parse(this.root.dataset.options))),this.root[u.NAME.replace(/-/g,"_")]=this,e.querySelector(u.SELECTOR.list).addEventListener("click",this.onSelectListItem)}e.querySelector(u.SELECTOR.input).addEventListener("input",this.onInputChange),e.addEventListener("keydown",this.onKeyDown),o.setData(e,u.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,u.SELECTOR.default)}dispose(){this.element&&this.element.querySelector(u.SELECTOR.list)&&this.element.querySelector(u.SELECTOR.list).removeEventListener("click",this.onSelectListItem),this.element&&this.element.querySelector(u.SELECTOR.input)&&this.element.querySelector(u.SELECTOR.input).removeEventListener("input",this.onInputChange),this.element.removeEventListener("keydown",this.onKeyDown),o.removeData(this.element,u.DATA_KEY),this.dataList=null,this.currentList=null,this.element=null}set data(e){this.dataList=e}get data(){return this.dataList}get list(){return this.currentList}set list(e){const t=this.element.querySelector(u.SELECTOR.input).value;if(e&&e.length){const n=document.createDocumentFragment();this.currentList=[],e.forEach((e=>{let{name:s,value:o}=e;if((!this.options.autocomplete||u.compareText(s,t))&&(!this.options.limit||n.children.length<this.options.limit)){const e=this.listFragment.firstElementChild;e.setAttribute("data-value",o),e.setAttribute("data-name",s),e.textContent=s,n.appendChild(this.listFragment.cloneNode(!0)),this.currentList.push({name:s,value:o})}})),this.element.querySelector(`${u.SELECTOR.listGroup}`).textContent="",this.element.querySelector(u.SELECTOR.listGroup).appendChild(n)}}static compareText(e,t){e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).replace(/\(|\)|\\/gi,"");const n=new RegExp(t,"gi");return-1!==e.search(n)}onUserSelectItem(e){let{name:t,value:n}=e}static getInstance(e){return o.getData(e,u.DATA_KEY)}}u.NAME=`${i.KEY_PREFIX}-form-autocomplete`,u.DATA_KEY=`${i.KEY_PREFIX}.autocomplete`,u.SELECTOR={default:`.${u.NAME}`,input:"input",list:`.${u.NAME}__list`,listGroup:`.${u.NAME}__list > :first-child`};class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=s=>(d.fixEvent(s,e),n.oneOff&&d.off(e,s.type,t),t.apply(e,[s]));return n}static njDelegationHandler(e,t,n){const s=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return d.fixEvent(o,t),s.oneOff&&d.off(e,o.type,n),n.apply(t,[o]);return null};return s}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const o=e[s];if(o.originalHandler===t&&o.delegationSelector===n)return e[s]}return null}static normalizeParams(e,t,n){const s="string"==typeof t,o=s?n:t;let r=e.replace(d.STRIPNAME_REGEX,"");const i=l[r];i&&(r=i);return"string"==typeof c[r]||(r=e),[s,o,r]}static addHandler(e,t,n,s,o){if("string"!=typeof t||null==e)return;n||(n=s,s=null);const r=d.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=d.normalizeParams(i,n,s),c=r[a]||(r[a]={}),u=d.findHandler(c,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const h=d.getUidEvent(l,i.replace(d.NAMESPACE_REGEX,"")),E=t?d.njDelegationHandler(e,n,s):d.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=o,E.uidEvent=h,c[h]=E,e.addEventListener(a,E,t)}}static removeHandler(e,t,n,s,o){const r=d.findHandler(t[n],s,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,s){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(s)>-1){const s=o[r];d.removeHandler(e,t,n,s.originalHandler,s.delegationSelector)}}static on(e,t,n,s){d.addHandler(e,t,n,s,!1)}static one(e,t,n,s){d.addHandler(e,t,n,s,!0)}static off(e,t,n,s){if("string"!=typeof t||null==e)return;const[o,r,i]=d.normalizeParams(t,n,s),l=i!==t,a=d.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void d.removeHandler(e,a,i,r,o?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&d.removeNamespacedHandlers(e,a,n,t.substr(1));const c=a[i]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const s=n.replace(d.STRIPUID_REGEX,"");if(!l||t.indexOf(s)>-1){const t=c[n];d.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(d.STRIPNAME_REGEX,""),o="string"==typeof c[s];let r=null;return o?(r=document.createEvent("HTMLEvents"),r.initEvent(s,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const s=e.attributes[n];if(-1!==s.nodeName.indexOf("data-")){const e=s.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=s.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n&&"[object Object]"===Object.prototype.toString.call(t[s])?e[s]=h.extend(e[s],t[s]):e[s]=t[s]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=h.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=h;class p extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,E.extend(!0,p.DEFAULT_OPTIONS,t)),this.setListeners(),o.setData(e,p.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}static getInstance(e){return o.getData(e,p.DATA_KEY)}dispose(){o.removeData(this.element,p.DATA_KEY),this.element=null}setListeners(){const e=this.element.getElementsByClassName(p.INPUT_CLASS)[0],t=this.element.getElementsByClassName(p.REVEAL_BUTTON_CLASS)[0];d.on(t,"click",(()=>{this.element.classList.add("is-visible"),e.type="text"}));const n=this.element.getElementsByClassName(p.HIDE_BUTTON_CLASS)[0];d.on(n,"click",(()=>{this.element.classList.remove("is-visible"),e.type="password"}))}}p.NAME=`${i.KEY_PREFIX}-form-input-password`,p.DATA_KEY=`${i.KEY_PREFIX}.password-input`,p.SELECTOR={default:`.${p.NAME}`},p.INPUT_CLASS=`${i.KEY_PREFIX}-form-control`,p.REVEAL_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-off`,p.HIDE_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-on`,p.DEFAULT_OPTIONS={selector:p.SELECTOR};class m extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(m,e,E.extend(!0,m.DEFAULT_OPTIONS,t)),this.setListeners(),o.setData(e,m.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}dispose(){o.removeData(this.element,m.DATA_KEY),this.element=null}static getInstance(e){return o.getData(e,m.DATA_KEY)}setListeners(){const e=this.element.getElementsByClassName(m.INPUT_CLASS)[0],t=this.element.getElementsByClassName(m.RESET_CLASS)[0];d.on(t,"click",(()=>{e.value=null,this.element.classList.remove("is-filled")}))}}m.NAME=`${i.KEY_PREFIX}-form-input-search`,m.DATA_KEY=`${i.KEY_PREFIX}.search-input`,m.SELECTOR={default:`.${m.NAME}`},m.INPUT_CLASS=`${i.KEY_PREFIX}-form-control`,m.RESET_CLASS=`${i.KEY_PREFIX}-form-control__reset`,m.DEFAULT_OPTIONS={selector:m.SELECTOR};const f={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class g extends r{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(g.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(g.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(g.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(g.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(g.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${g.SELECTOR.formGroup} for ${f.describe(this.element)}`),t}}g.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},g.SELECTOR={formGroup:`.${g.CLASS_NAME.njFormGroup}`};class S extends g{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,E.extend(!0,S.DEFAULT_OPTIONS,n),s),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){d.off(this.element,"focus"),d.off(this.element,"blur"),d.off(this.element,"keydown"),d.off(this.element,"keyup")}addFocusListener(){d.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),d.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){d.on(this.element,"keydown",(e=>{f.isChar(e)&&this.addIsFilled()})),d.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(S.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(S.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(S.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=null,s=0,o=!1;do{e=this.options.label.selectors[s];try{n=this.njFormGroup.querySelectorAll(e)}catch(e){n=null}o=null!==n&&n.length>0,s++}while(!o&&s<this.options.label.selectors.length);return!o&&t&&console.error(`Failed to find ${S.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${f.describe(this.element)}`),n}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in S.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(S.FORM_CONTROL_SIZE_MARKERS[e])}}S.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},S.INPUT_SELECTOR={njFormGroup:`.${S.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${S.CLASS_NAME.njLabel}'], label[class*=' ${S.CLASS_NAME.njLabel}']`},S.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${S.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:S.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},S.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class v extends S{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e,t,E.extend(!0,v.DEFAULT_OPTIONS,n),{})}dispose(){super.dispose()}}v.DEFAULT_OPTIONS={requiredClasses:["nj-form-control"]};class L extends v{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(L,e,E.extend(!0,L.DEFAULT_OPTIONS,t)),o.setData(e,L.DATA_KEY,this)}dispose(){super.dispose(),o.removeData(this.element,L.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,L.SELECTOR.default)}static getInstance(e){return o.getData(e,L.DATA_KEY)}static matches(e){return"text"===e.getAttribute("type")}}L.NAME=`${i.KEY_PREFIX}-form-input-text`,L.DATA_KEY=`${i.KEY_PREFIX}.text`,L.SELECTOR={default:"input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control",formGroup:v.SELECTOR.formGroup},L.DEFAULT_OPTIONS={njFormGroup:{required:!1}};class A extends v{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(A,e,E.extend(!0,{},t)),o.setData(e,A.DATA_KEY,this)}dispose(){super.dispose(),o.removeData(this.element,A.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,A.SELECTOR.default)}static getInstance(e){return o.getData(e,A.DATA_KEY)}static matches(e){return"TEXTAREA"===e.tagName}}A.NAME=`${i.KEY_PREFIX}-form-input-textarea`,A.DATA_KEY=`${i.KEY_PREFIX}.textarea`,A.SELECTOR={default:"textarea.nj-form-control",formGroup:v.SELECTOR.formGroup};class T{static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return[p.init(e),m.init(t),L.init(n),A.init(s),u.init()]}}return T.TextInput=L,T.SearchInput=m,T.PasswordInput=p,T.TextareaInput=A,T.Autocomplete=u,T.SELECTOR={default:`${L.SELECTOR.default}, ${m.SELECTOR.default}, ${A.SELECTOR.default}, ${u.SELECTOR.default}`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Form",[],t):"object"==typeof exports?exports.Form=t():e.Form=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>T}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,s){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=s},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const s=t.key;s.key===n&&(delete e[s.id],delete t.key)}}})(),s={setData(e,t,s){n.set(e,t,s)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},o=s;class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const s=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||o.setData(r[n],e.DATA_KEY,l),s.push(l)}}return s}}var i,l,a,c;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class u extends r{constructor(e){if(super(u,e),this.options={autocomplete:!0,limit:!1},this.onInputChange=()=>{this.list=this.dataList},this.onKeyDown=e=>{const t=this.element.querySelector(u.SELECTOR.list),n=this.element.querySelectorAll(`${u.SELECTOR.listGroup}> *`),s=parseInt(t.dataset.index,10),o=this.element.querySelector(u.SELECTOR.input),r=()=>{t.style.display="block",o.setAttribute("aria-expanded","true"),this.element.setAttribute("aria-expanded","true")},i=()=>{delete t.dataset.index,t.style.setProperty("display",""),o.setAttribute("aria-expanded","false"),this.element.setAttribute("aria-expanded","false")};switch(e.key){case"ArrowUp":e.preventDefault(),r(),t.dataset.index&&(t.dataset.index=(s-1<0?n.length-1:s-1).toString(),n[t.dataset.index].focus());break;case"ArrowDown":e.preventDefault(),r(),t.dataset.index?t.dataset.index=(s<n.length-1?s+1:0).toString():t.dataset.index="0",n[t.dataset.index].focus();break;case"Escape":i(),o.focus();break;case"Enter":i()}},this.onSelectListItem=e=>{const{name:t,value:n}=e.target.dataset,s=this.element.querySelector(u.SELECTOR.input);t&&(s.value=t),n&&(this.root.dataset.value=n,s.dataset.value=n),this.onUserSelectItem({name:t,value:n})},e.querySelector(u.SELECTOR.listGroup)){const t=e.querySelector(`${u.SELECTOR.listGroup}`).innerHTML;this.listFragment=document.createRange().createContextualFragment(t),this.root=e.parentElement.dataset.list||e.parentElement.dataset.options?e.parentElement:e,this.root.dataset.list&&(this.dataList=JSON.parse(this.root.dataset.list),this.list=this.dataList),this.root.dataset.options&&(this.options=Object.assign(Object.assign({},this.options),JSON.parse(this.root.dataset.options))),this.root[u.NAME.replace(/-/g,"_")]=this,e.querySelector(u.SELECTOR.list).addEventListener("click",this.onSelectListItem)}e.querySelector(u.SELECTOR.input).addEventListener("input",this.onInputChange),e.addEventListener("keydown",this.onKeyDown),o.setData(e,u.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,u.SELECTOR.default)}dispose(){this.element&&this.element.querySelector(u.SELECTOR.list)&&this.element.querySelector(u.SELECTOR.list).removeEventListener("click",this.onSelectListItem),this.element&&this.element.querySelector(u.SELECTOR.input)&&this.element.querySelector(u.SELECTOR.input).removeEventListener("input",this.onInputChange),this.element.removeEventListener("keydown",this.onKeyDown),o.removeData(this.element,u.DATA_KEY),this.dataList=null,this.currentList=null,this.element=null}set data(e){this.dataList=e}get data(){return this.dataList}get list(){return this.currentList}set list(e){const t=this.element.querySelector(u.SELECTOR.input).value;if(e&&e.length){const n=document.createDocumentFragment();this.currentList=[],e.forEach((e=>{let{name:s,value:o}=e;if((!this.options.autocomplete||u.compareText(s,t))&&(!this.options.limit||n.children.length<this.options.limit)){const e=this.listFragment.firstElementChild;e.setAttribute("data-value",o),e.setAttribute("data-name",s),e.textContent=s,n.appendChild(this.listFragment.cloneNode(!0)),this.currentList.push({name:s,value:o})}})),this.element.querySelector(`${u.SELECTOR.listGroup}`).textContent="",this.element.querySelector(u.SELECTOR.listGroup).appendChild(n)}}static compareText(e,t){e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).replace(/\(|\)|\\/gi,"");const n=new RegExp(t,"gi");return-1!==e.search(n)}onUserSelectItem(e){let{name:t,value:n}=e}static getInstance(e){return o.getData(e,u.DATA_KEY)}}u.NAME=`${i.KEY_PREFIX}-form-autocomplete`,u.DATA_KEY=`${i.KEY_PREFIX}.autocomplete`,u.SELECTOR={default:`.${u.NAME}`,input:"input",list:`.${u.NAME}__list`,listGroup:`.${u.NAME}__list > :first-child`};class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=s=>(d.fixEvent(s,e),n.oneOff&&d.off(e,s.type,t),t.apply(e,[s]));return n}static njDelegationHandler(e,t,n){const s=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return d.fixEvent(o,t),s.oneOff&&d.off(e,o.type,n),n.apply(t,[o]);return null};return s}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const o=e[s];if(o.originalHandler===t&&o.delegationSelector===n)return e[s]}return null}static normalizeParams(e,t,n){const s="string"==typeof t,o=s?n:t;let r=e.replace(d.STRIPNAME_REGEX,"");const i=l[r];i&&(r=i);return"string"==typeof c[r]||(r=e),[s,o,r]}static addHandler(e,t,n,s,o){if("string"!=typeof t||null==e)return;n||(n=s,s=null);const r=d.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=d.normalizeParams(i,n,s),c=r[a]||(r[a]={}),u=d.findHandler(c,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const h=d.getUidEvent(l,i.replace(d.NAMESPACE_REGEX,"")),E=t?d.njDelegationHandler(e,n,s):d.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=o,E.uidEvent=h,c[h]=E,e.addEventListener(a,E,t)}}static removeHandler(e,t,n,s,o){const r=d.findHandler(t[n],s,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,s){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(s)>-1){const s=o[r];d.removeHandler(e,t,n,s.originalHandler,s.delegationSelector)}}static on(e,t,n,s){d.addHandler(e,t,n,s,!1)}static one(e,t,n,s){d.addHandler(e,t,n,s,!0)}static off(e,t,n,s){if("string"!=typeof t||null==e)return;const[o,r,i]=d.normalizeParams(t,n,s),l=i!==t,a=d.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void d.removeHandler(e,a,i,r,o?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&d.removeNamespacedHandlers(e,a,n,t.substr(1));const c=a[i]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const s=n.replace(d.STRIPUID_REGEX,"");if(!l||t.indexOf(s)>-1){const t=c[n];d.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(d.STRIPNAME_REGEX,""),o="string"==typeof c[s];let r=null;return o?(r=document.createEvent("HTMLEvents"),r.initEvent(s,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const s=e.attributes[n];if(-1!==s.nodeName.indexOf("data-")){const e=s.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=s.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n&&"[object Object]"===Object.prototype.toString.call(t[s])?e[s]=h.extend(e[s],t[s]):e[s]=t[s]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=h.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=h;class m extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(m,e,E.extend(!0,m.DEFAULT_OPTIONS,t)),this.setListeners(),o.setData(e,m.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}static getInstance(e){return o.getData(e,m.DATA_KEY)}dispose(){o.removeData(this.element,m.DATA_KEY),this.element=null}setListeners(){const e=this.element.getElementsByClassName(m.INPUT_CLASS)[0],t=this.element.getElementsByClassName(m.REVEAL_BUTTON_CLASS)[0];d.on(t,"click",(()=>{this.element.classList.add("is-visible"),e.type="text"}));const n=this.element.getElementsByClassName(m.HIDE_BUTTON_CLASS)[0];d.on(n,"click",(()=>{this.element.classList.remove("is-visible"),e.type="password"}))}}m.NAME=`${i.KEY_PREFIX}-form-input-password`,m.DATA_KEY=`${i.KEY_PREFIX}.password-input`,m.SELECTOR={default:`.${m.NAME}`},m.INPUT_CLASS=`${i.KEY_PREFIX}-form-control`,m.REVEAL_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-off`,m.HIDE_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-on`,m.DEFAULT_OPTIONS={selector:m.SELECTOR};class p extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,E.extend(!0,p.DEFAULT_OPTIONS,t)),this.setListeners(),o.setData(e,p.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}dispose(){o.removeData(this.element,p.DATA_KEY),this.element=null}static getInstance(e){return o.getData(e,p.DATA_KEY)}setListeners(){const e=this.element.getElementsByClassName(p.INPUT_CLASS)[0],t=this.element.getElementsByClassName(p.RESET_CLASS)[0];d.on(t,"click",(()=>{e.value=null,this.element.classList.remove("is-filled")}))}}p.NAME=`${i.KEY_PREFIX}-form-input-search`,p.DATA_KEY=`${i.KEY_PREFIX}.search-input`,p.SELECTOR={default:`.${p.NAME}`},p.INPUT_CLASS=`${i.KEY_PREFIX}-form-control`,p.RESET_CLASS=`${i.KEY_PREFIX}-form-control__reset`,p.DEFAULT_OPTIONS={selector:p.SELECTOR};const f={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class g extends r{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(g.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(g.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(g.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(g.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(g.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${g.SELECTOR.formGroup} for ${f.describe(this.element)}`),t}}g.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},g.SELECTOR={formGroup:`.${g.CLASS_NAME.njFormGroup}`};class S extends g{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,E.extend(!0,S.DEFAULT_OPTIONS,n),s),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){d.off(this.element,"focus"),d.off(this.element,"blur"),d.off(this.element,"keydown"),d.off(this.element,"keyup")}addFocusListener(){d.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),d.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){d.on(this.element,"keydown",(e=>{f.isChar(e)&&this.addIsFilled()})),d.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(S.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(S.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(S.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=null,s=0,o=!1;do{e=this.options.label.selectors[s];try{n=this.njFormGroup.querySelectorAll(e)}catch(e){n=null}o=null!==n&&n.length>0,s++}while(!o&&s<this.options.label.selectors.length);return!o&&t&&console.error(`Failed to find ${S.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${f.describe(this.element)}`),n}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in S.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(S.FORM_CONTROL_SIZE_MARKERS[e])}}S.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},S.INPUT_SELECTOR={njFormGroup:`.${S.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${S.CLASS_NAME.njLabel}'], label[class*=' ${S.CLASS_NAME.njLabel}']`},S.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${S.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:S.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},S.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class v extends S{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e,t,E.extend(!0,v.DEFAULT_OPTIONS,n),{})}dispose(){super.dispose()}}v.DEFAULT_OPTIONS={requiredClasses:["nj-form-control"]};class L extends v{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(L,e,E.extend(!0,L.DEFAULT_OPTIONS,t)),o.setData(e,L.DATA_KEY,this)}dispose(){super.dispose(),o.removeData(this.element,L.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,L.SELECTOR.default)}static getInstance(e){return o.getData(e,L.DATA_KEY)}static matches(e){return"text"===e.getAttribute("type")}}L.NAME=`${i.KEY_PREFIX}-form-input-text`,L.DATA_KEY=`${i.KEY_PREFIX}.text`,L.SELECTOR={default:"input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control",formGroup:v.SELECTOR.formGroup},L.DEFAULT_OPTIONS={njFormGroup:{required:!1}};class A extends v{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(A,e,E.extend(!0,{},t)),o.setData(e,A.DATA_KEY,this)}dispose(){super.dispose(),o.removeData(this.element,A.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,A.SELECTOR.default)}static getInstance(e){return o.getData(e,A.DATA_KEY)}static matches(e){return"TEXTAREA"===e.tagName}}A.NAME=`${i.KEY_PREFIX}-form-input-textarea`,A.DATA_KEY=`${i.KEY_PREFIX}.textarea`,A.SELECTOR={default:"textarea.nj-form-control",formGroup:v.SELECTOR.formGroup};class T{static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return[m.init(e),p.init(t),L.init(n),A.init(s),u.init()]}}return T.TextInput=L,T.SearchInput=p,T.PasswordInput=m,T.TextareaInput=A,T.Autocomplete=u,T.SELECTOR={default:`${L.SELECTOR.default}, ${p.SELECTOR.default}, ${A.SELECTOR.default}, ${u.SELECTOR.default}`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Header",[],t):"object"==typeof exports?exports.Header=t():e.Header=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>d}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},s=o;var i,r,l,a;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(r||(r={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));const c={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(c.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(c.TRANSITION_END,(function t(){n=!0,e.removeEventListener(c.TRANSITION_END,t)})),setTimeout((()=>{n||c.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const i=n[s],r=t[s],l=r&&c.isElement(r)?"element":(o=r,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(l))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${i}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let i,r,l,a=null,c=0;const u=()=>{c=Date.now(),a=null,l=e.apply(r,i)};return()=>{const d=Date.now();c||n||(c=d);const h=t-(d-c);return r=s||this,i=arguments,h<=0?(clearTimeout(a),a=null,c=d,l=e.apply(r,i)):!a&&o&&(a=setTimeout(u,h)),l}}},u=c;class d extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const r=i[n];if(!r.key||r.key.key!==e.DATA_KEY){const l=new e(i[n],t);r.key||s.setData(i[n],e.DATA_KEY,l),o.push(l)}}return o}}{constructor(e){super(d,e),this.onScroll=u.throttle((()=>{window.scrollY/window.innerHeight>this.minimizeWindowHeightThreshold?this.minimize():this.maximize()}),100,!0,!0,this),this.focusSearchInput=()=>{this.element.querySelector(`.${d.CLASS_NAME.search} input`).focus()},this.minimizeThreshold=.2,this.menuBurger=e.querySelector(`.${d.CLASS_NAME.menuBurger}`),this.openSearch=e.querySelector(`.${d.CLASS_NAME.openSearch}`),e.classList.contains(d.CLASS_NAME.minimizeOnScroll)&&"undefined"!=typeof window&&window.addEventListener("scroll",this.onScroll),this.menuBurger&&(this.menuBurger.addEventListener("click",this.togglePanelShow.bind(this)),e.querySelectorAll(`.${d.CLASS_NAME.panel}`).forEach(((e,t)=>{t>0&&e.previousElementSibling.addEventListener("click",this.togglePanelShow.bind(this))})),e.querySelectorAll(`.${d.CLASS_NAME.backPanel}`).forEach((e=>{e.addEventListener("click",this.closeCurrentPanel.bind(this))}))),"true"===e.dataset.closeOnLinkClick&&(e.querySelectorAll(`.${d.CLASS_NAME.navLink}`).forEach((e=>{e.addEventListener("click",this.closePanels.bind(this))})),e.querySelectorAll(`.${d.CLASS_NAME.menuLink}`).forEach((e=>{e.addEventListener("click",this.closePanels.bind(this))}))),this.openSearch&&this.openSearch.addEventListener("click",this.focusSearchInput)}dispose(){s.removeData(this.element,d.DATA_KEY),this.element.classList.contains(d.CLASS_NAME.minimize)&&"undefined"!=typeof window&&window.removeEventListener("scroll",this.onScroll),this.element=null}static getInstance(e){return s.getData(e,d.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,d.SELECTOR.default)}get minimizeThreshold(){return this.minimizeWindowHeightThreshold}set minimizeThreshold(e){this.minimizeWindowHeightThreshold=e}minimize(){this.element.classList.contains(d.CLASS_NAME.minimize)||this.element.classList.add(d.CLASS_NAME.minimize)}maximize(){this.element.classList.contains(d.CLASS_NAME.minimize)&&this.element.classList.remove(d.CLASS_NAME.minimize)}togglePanelShow(e){if(e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation(),"none"!==window.getComputedStyle(this.menuBurger).display){const t=e.currentTarget.parentElement,n=e.currentTarget.classList.contains(d.CLASS_NAME.menuBurger),o=t.querySelector(`.${d.CLASS_NAME.panel}`),s=o.classList.contains(d.CLASS_NAME.panelShow);s&&n?this.closePanels():!s&&n&&(this.resetPanels(),e.currentTarget.classList.add(d.CLASS_NAME.closeBurger)),s?o.classList.remove(d.CLASS_NAME.panelShow):s||o.classList.add(d.CLASS_NAME.panelShow)}}closePanels(){const e=this.element.querySelector(`.${d.CLASS_NAME.panel}`);this.menuBurger.classList.remove(d.CLASS_NAME.closeBurger);const t=()=>{e.removeEventListener("transitionend",t),this.resetPanels()};e.addEventListener("transitionend",t),e.classList.remove(d.CLASS_NAME.panelShow)}closeCurrentPanel(e){e.currentTarget.closest(`.${d.CLASS_NAME.panel}`).classList.remove(d.CLASS_NAME.panelShow)}resetPanels(){this.element.querySelectorAll(`.${d.CLASS_NAME.panel}`).forEach((e=>{e.classList.remove(d.CLASS_NAME.panelShow)})),this.menuBurger.classList.remove(d.CLASS_NAME.closeBurger)}}return d.NAME=`${i.KEY_PREFIX}-header`,d.DATA_KEY=`${i.KEY_PREFIX}.header`,d.SELECTOR={default:`.${d.NAME}`},d.CLASS_NAME={minimize:`${d.NAME}--sm`,minimizeOnScroll:`${d.NAME}--scroll-sm`,panel:`${d.NAME}__nav--panel`,panelShow:`${d.NAME}__nav--show`,backPanel:`${d.NAME}__menu-return`,menuBurger:`${d.NAME}__nav-burger`,closeBurger:`${d.NAME}__nav-burger--close`,openSearch:`${d.NAME}__search-icon`,search:`${d.NAME}__search`,navLink:`${d.NAME}__nav-link`,menuLink:`${d.NAME}__menu-link`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Header",[],t):"object"==typeof exports?exports.Header=t():e.Header=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>d}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},s=o;var i,r,l,a;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(r||(r={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));const c={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(c.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(c.TRANSITION_END,(function t(){n=!0,e.removeEventListener(c.TRANSITION_END,t)})),setTimeout((()=>{n||c.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const i=n[s],r=t[s],l=r&&c.isElement(r)?"element":(o=r,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(l))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${i}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let i,r,l,a=null,c=0;const u=()=>{c=Date.now(),a=null,l=e.apply(r,i)};return()=>{const d=Date.now();c||n||(c=d);const m=t-(d-c);return r=s||this,i=arguments,m<=0?(clearTimeout(a),a=null,c=d,l=e.apply(r,i)):!a&&o&&(a=setTimeout(u,m)),l}}},u=c;class d extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const r=i[n];if(!r.key||r.key.key!==e.DATA_KEY){const l=new e(i[n],t);r.key||s.setData(i[n],e.DATA_KEY,l),o.push(l)}}return o}}{constructor(e){super(d,e),this.onScroll=u.throttle((()=>{window.scrollY/window.innerHeight>this.minimizeWindowHeightThreshold?this.minimize():this.maximize()}),100,!0,!0,this),this.focusSearchInput=()=>{this.element.querySelector(`.${d.CLASS_NAME.search} input`).focus()},this.minimizeThreshold=.2,this.menuBurger=e.querySelector(`.${d.CLASS_NAME.menuBurger}`),this.openSearch=e.querySelector(`.${d.CLASS_NAME.openSearch}`),e.classList.contains(d.CLASS_NAME.minimizeOnScroll)&&"undefined"!=typeof window&&window.addEventListener("scroll",this.onScroll),this.menuBurger&&(this.menuBurger.addEventListener("click",this.togglePanelShow.bind(this)),e.querySelectorAll(`.${d.CLASS_NAME.panel}`).forEach(((e,t)=>{t>0&&e.previousElementSibling.addEventListener("click",this.togglePanelShow.bind(this))})),e.querySelectorAll(`.${d.CLASS_NAME.backPanel}`).forEach((e=>{e.addEventListener("click",this.closeCurrentPanel.bind(this))}))),"true"===e.dataset.closeOnLinkClick&&(e.querySelectorAll(`.${d.CLASS_NAME.navLink}`).forEach((e=>{e.addEventListener("click",this.closePanels.bind(this))})),e.querySelectorAll(`.${d.CLASS_NAME.menuLink}`).forEach((e=>{e.addEventListener("click",this.closePanels.bind(this))}))),this.openSearch&&this.openSearch.addEventListener("click",this.focusSearchInput)}dispose(){s.removeData(this.element,d.DATA_KEY),this.element.classList.contains(d.CLASS_NAME.minimize)&&"undefined"!=typeof window&&window.removeEventListener("scroll",this.onScroll),this.element=null}static getInstance(e){return s.getData(e,d.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,d.SELECTOR.default)}get minimizeThreshold(){return this.minimizeWindowHeightThreshold}set minimizeThreshold(e){this.minimizeWindowHeightThreshold=e}minimize(){this.element.classList.contains(d.CLASS_NAME.minimize)||this.element.classList.add(d.CLASS_NAME.minimize)}maximize(){this.element.classList.contains(d.CLASS_NAME.minimize)&&this.element.classList.remove(d.CLASS_NAME.minimize)}togglePanelShow(e){if(e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation(),"none"!==window.getComputedStyle(this.menuBurger).display){const t=e.currentTarget.parentElement,n=e.currentTarget.classList.contains(d.CLASS_NAME.menuBurger),o=t.querySelector(`.${d.CLASS_NAME.panel}`),s=o.classList.contains(d.CLASS_NAME.panelShow);s&&n?this.closePanels():!s&&n&&(this.resetPanels(),e.currentTarget.classList.add(d.CLASS_NAME.closeBurger)),s?o.classList.remove(d.CLASS_NAME.panelShow):s||o.classList.add(d.CLASS_NAME.panelShow)}}closePanels(){const e=this.element.querySelector(`.${d.CLASS_NAME.panel}`);this.menuBurger.classList.remove(d.CLASS_NAME.closeBurger);const t=()=>{e.removeEventListener("transitionend",t),this.resetPanels()};e.addEventListener("transitionend",t),e.classList.remove(d.CLASS_NAME.panelShow)}closeCurrentPanel(e){e.currentTarget.closest(`.${d.CLASS_NAME.panel}`).classList.remove(d.CLASS_NAME.panelShow)}resetPanels(){this.element.querySelectorAll(`.${d.CLASS_NAME.panel}`).forEach((e=>{e.classList.remove(d.CLASS_NAME.panelShow)})),this.menuBurger.classList.remove(d.CLASS_NAME.closeBurger)}}return d.NAME=`${i.KEY_PREFIX}-header`,d.DATA_KEY=`${i.KEY_PREFIX}.header`,d.SELECTOR={default:`.${d.NAME}`},d.CLASS_NAME={minimize:`${d.NAME}--sm`,minimizeOnScroll:`${d.NAME}--scroll-sm`,panel:`${d.NAME}__nav--panel`,panelShow:`${d.NAME}__nav--show`,backPanel:`${d.NAME}__menu-return`,menuBurger:`${d.NAME}__nav-burger`,closeBurger:`${d.NAME}__nav-burger--close`,openSearch:`${d.NAME}__search-icon`,search:`${d.NAME}__search`,navLink:`${d.NAME}__nav-link`,menuLink:`${d.NAME}__menu-link`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("InlineMessage",[],t):"object"==typeof exports?exports.InlineMessage=t():e.InlineMessage=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>p});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,_=t[o].d,b=n[o].d,T=d[v],E=d[y];if(h(v,y)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==y)l=v;else if(T[2]&&E[2]&&s(v)==s(y))l=s(v),_=T[2](_),b=E[2](b);else{if(!T[1]||!E[1]||u(v)!=u(y)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),b=E[1](b)}for(var w=[],k=[],N=[],S=0;S<_.length;S++)x=("number"==typeof _[S]?e.mergeNumbers:e.mergeDimensions)(_[S],b[S]),w[S]=x[0],k[S]=x[1],N.push(x[2]);p.push(w),m.push(k),g.push([l,N])}}if(i){var R=p;p=m,m=R}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(f.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;const d="cubic-bezier(0, 0, .2, 1)";var h=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class p extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}{constructor(e){super(p,e),c.setData(e,p.DATA_KEY,this),this.setListeners()}closeAndDestroy(){f.trigger(this.element,p.EVENT.close),this.element.animate&&(this.element.animate(p.KEY_FRAMES,{duration:250,delay:100,easing:d}).onfinish=()=>{this.destroyElement()})}close(e){return h(this,void 0,void 0,(function*(){f.trigger(this.element,p.EVENT.close);this.element.animate&&this.element.animate(p.KEY_FRAMES,{duration:250,delay:100,easing:d}),yield new Promise((e=>setTimeout(e,350))),e()}))}dispose(){const e=this.element.querySelector(p.SELECTOR.dismiss);f.off(e,p.EVENT.click),c.removeData(this.element,p.DATA_KEY),this.element=null}destroyElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),f.trigger(this.element,p.EVENT.closed)}setListeners(){const e=this.element.querySelector(p.SELECTOR.dismiss);f.on(e,p.EVENT.click,(()=>{this.closeAndDestroy()}))}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}static getInstance(e){return c.getData(e,p.DATA_KEY)}}return p.NAME=`${i.KEY_PREFIX}-inline-message`,p.DATA_KEY=`${i.KEY_PREFIX}.inline-message`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.SELECTOR={default:`.${p.NAME}`,dismiss:`.${p.NAME}__close`},p.KEY_FRAMES=[{transform:"scale3d(1, 1, 1)",opacity:1},{transform:"scale3d(0, 0, 0)",opacity:0}],p.EVENT={click:`${a.click}${p.EVENT_KEY}`,close:`${a.close}${p.EVENT_KEY}`,closed:`${a.closed}${p.EVENT_KEY}`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("InlineMessage",[],t):"object"==typeof exports?exports.InlineMessage=t():e.InlineMessage=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>p});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,_=t[o].d,b=n[o].d,T=d[v],E=d[y];if(h(v,y)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==y)l=v;else if(T[2]&&E[2]&&s(v)==s(y))l=s(v),_=T[2](_),b=E[2](b);else{if(!T[1]||!E[1]||u(v)!=u(y)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),b=E[1](b)}for(var w=[],k=[],N=[],S=0;S<_.length;S++)x=("number"==typeof _[S]?e.mergeNumbers:e.mergeDimensions)(_[S],b[S]),w[S]=x[0],k[S]=x[1],N.push(x[2]);p.push(w),m.push(k),g.push([l,N])}}if(i){var R=p;p=m,m=R}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(f.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;const d="cubic-bezier(0, 0, .2, 1)";var h=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class p extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}{constructor(e){super(p,e),c.setData(e,p.DATA_KEY,this),this.setListeners()}closeAndDestroy(){f.trigger(this.element,p.EVENT.close),this.element.animate&&(this.element.animate(p.KEY_FRAMES,{duration:250,delay:100,easing:d}).onfinish=()=>{this.destroyElement()})}close(e){return h(this,void 0,void 0,(function*(){f.trigger(this.element,p.EVENT.close);this.element.animate&&this.element.animate(p.KEY_FRAMES,{duration:250,delay:100,easing:d}),yield new Promise((e=>setTimeout(e,350))),e()}))}dispose(){const e=this.element.querySelector(p.SELECTOR.dismiss);f.off(e,p.EVENT.click),c.removeData(this.element,p.DATA_KEY),this.element=null}destroyElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),f.trigger(this.element,p.EVENT.closed)}setListeners(){const e=this.element.querySelector(p.SELECTOR.dismiss);f.on(e,p.EVENT.click,(()=>{this.closeAndDestroy()}))}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}static getInstance(e){return c.getData(e,p.DATA_KEY)}}return p.NAME=`${i.KEY_PREFIX}-inline-message`,p.DATA_KEY=`${i.KEY_PREFIX}.inline-message`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.SELECTOR={default:`.${p.NAME}`,dismiss:`.${p.NAME}__close`},p.KEY_FRAMES=[{transform:"scale3d(1, 1, 1)",opacity:1},{transform:"scale3d(0, 0, 0)",opacity:0}],p.EVENT={click:`${a.click}${p.EVENT_KEY}`,close:`${a.close}${p.EVENT_KEY}`,closed:`${a.closed}${p.EVENT_KEY}`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Modal",[],t):"object"==typeof exports?exports.Modal=t():e.Modal=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,i={d:(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};i.d(s,{default:()=>E}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const r=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),a={setData(e,t,n){r.set(e,t,n)},getData:(e,t)=>r.get(e,t),removeData(e,t){r.delete(e,t)}},l=a;class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(d.fixEvent(o,e),n.oneOff&&d.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const s=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let r=s.length;r>=0;r--)if(s[r]===t)return d.fixEvent(i,t),o.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,i){const s="string"==typeof n,r=s?i:n;let a=e.replace(d.STRIPNAME_REGEX,"");const l=t[a];l&&(a=l);return"string"==typeof o[a]||(a=e),[s,r,a]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=d.getEvent(e);for(const r of t.split(" ")){const[t,a,l]=d.normalizeParams(r,n,o),c=s[l]||(s[l]={}),u=d.findHandler(c,a,t?n:null);if(u)return void(u.oneOff=u.oneOff&&i);const h=d.getUidEvent(a,r.replace(d.NAMESPACE_REGEX,"")),E=t?d.njDelegationHandler(e,n,o):d.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=a,E.oneOff=i,E.uidEvent=h,c[h]=E,e.addEventListener(l,E,t)}}static removeHandler(e,t,n,o,i){const s=d.findHandler(t[n],o,i);null!==s&&(e.removeEventListener(n,s,Boolean(i)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&s.indexOf(o)>-1){const o=i[s];d.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){d.addHandler(e,t,n,o,!1)}static one(e,t,n,o){d.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,s,r]=d.normalizeParams(t,n,o),a=r!==t,l=d.getEvent(e);if(void 0!==s){if(!l||!l[r])return;return void d.removeHandler(e,l,r,s,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&d.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[r]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(d.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];d.removeHandler(e,l,r,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const i=t.replace(d.STRIPNAME_REGEX,""),s="string"==typeof o[i];let r=null;return s?(r=document.createEvent("HTMLEvents"),r.initEvent(i,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const c={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(c.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(c.TRANSITION_END,(function t(){n=!0,e.removeEventListener(c.TRANSITION_END,t)})),setTimeout((()=>{n||c.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const s=n[i],r=t[i],a=r&&c.isElement(r)?"element":(o=r,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let s,r,a,l=null,d=0;const c=()=>{d=Date.now(),l=null,a=e.apply(r,s)};return()=>{const u=Date.now();d||n||(d=u);const h=t-(u-d);return r=i||this,s=arguments,h<=0?(clearTimeout(l),l=null,d=u,a=e.apply(r,s)):!l&&o&&(l=setTimeout(c,h)),a}}},u=c,h=['a[href]:not([tabindex^="-"]):not([data-trap-anchor])','area[href]:not([tabindex^="-"]):not([data-trap-anchor])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','input[type="radio"]:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','select:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','textarea:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','button:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','iframe:not([tabindex^="-"]):not([data-trap-anchor])','audio[controls]:not([tabindex^="-"]):not([data-trap-anchor])','video[controls]:not([tabindex^="-"]):not([data-trap-anchor])','[contenteditable]:not([tabindex^="-"]):not([data-trap-anchor])','[tabindex]:not([tabindex^="-"]):not([data-trap-anchor])'];class E extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const s=i[n];if(!s.key||s.key.key!==e.DATA_KEY){const r=new e(i[n],t);s.key||l.setData(i[n],e.DATA_KEY,r),o.push(r)}}return o}}{constructor(e){super(E,e),this.backdrop=null,this.dialog=null,this.ignoreBackdropClick=null,this.isShown=!1,this.isTransitioning=!1,this.triggerElement=null,this.dialog=this.element.querySelector(E.SELECTOR.dialog);const t=this.element.dataset.appendto;if(t){document.querySelector(t).appendChild(this.element)}l.setData(e,E.DATA_KEY,this),E.hasInit||(E.hasInit=!0,this.registerEvents())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}static getInstance(e){return l.getData(e,E.DATA_KEY)}enforceFocus(){function e(e){const t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.setAttribute("data-trap-anchor",""),t.addEventListener("focusin",e),t}const t=e((()=>{this.element.querySelector(h.join(",")).focus()}));this.element.append(t);const n=e((()=>{Array.from(this.element.querySelectorAll(h.join(","))).at(-1).focus()}));this.element.prepend(n)}hideModal(){this.element&&(this.element.classList.remove(E.CLASSNAME.visible),this.element.setAttribute("aria-hidden","true"),this.element.removeAttribute("aria-modal"),this.isTransitioning=!1,this.showBackdrop(),d.trigger(this.element,E.EVENT.hidden))}removeBackdrop(){this.backdrop&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=null)}setEscapeEvent(){this.isShown?d.on(this.element,E.EVENT.keydownDismiss,(e=>{e.which===E.ESCAPE_KEYCODE&&(e.preventDefault(),this.hide())})):d.off(this.element,E.EVENT.keydownDismiss)}showBackdrop(e){if(!this.element)return;const t=this.element.classList.contains(E.CLASSNAME.fade)?E.CLASSNAME.fade:"";if(this.isShown){if(this.backdrop=document.createElement("div"),this.backdrop.className=E.CLASSNAME.backdrop,t&&this.backdrop.classList.add(t),document.body.appendChild(this.backdrop),d.on(this.element,E.EVENT.clickDismiss,(e=>{this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&this.hide()})),t&&u.reflow(this.backdrop),this.backdrop.classList.add(E.CLASSNAME.show),!e)return;if(!t)return void e();const n=u.getTransitionDurationFromElement(this.backdrop);d.one(this.backdrop,u.TRANSITION_END,e),u.emulateTransitionEnd(this.backdrop,n)}else if(!this.isShown&&this.backdrop){this.backdrop.classList.remove(E.CLASSNAME.show);const t=()=>{this.removeBackdrop(),e&&e()};if(this.element.classList.contains(E.CLASSNAME.fade)){const e=u.getTransitionDurationFromElement(this.backdrop);d.one(this.backdrop,u.TRANSITION_END,t),u.emulateTransitionEnd(this.backdrop,e)}else t()}else e&&e()}showElement(){if(!this.element)return;d.trigger(this.element,E.EVENT.show);const e=this.element.classList.contains(E.CLASSNAME.fade);this.element.parentNode&&this.element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this.element),this.element.classList.add(E.CLASSNAME.visible),this.element.removeAttribute("aria-hidden"),this.element.scrollTop=0,e&&u.reflow(this.element),this.element.classList.add(E.CLASSNAME.show),document.activeElement&&(this.triggerElement=document.activeElement),this.enforceFocus(),this.element.setAttribute("aria-modal","true");const t=()=>{this.element.querySelector(h.join(",")).focus(),this.isTransitioning=!1,d.trigger(this.element,E.EVENT.shown)};if(e){const e=u.getTransitionDurationFromElement(this.dialog);d.one(this.dialog,u.TRANSITION_END,t),u.emulateTransitionEnd(this.dialog,e)}else t()}dispose(){this.removeBackdrop(),l.removeData(this.element,E.DATA_KEY),d.off(document,E.EVENT.focusin),this.element=null,this.dialog=null,this.backdrop=null,this.isShown=null,this.ignoreBackdropClick=null,this.isTransitioning=null}hide(e){var t;if(e&&e.preventDefault(),!this.isShown||this.isTransitioning||!this.element)return;d.trigger(this.element,E.EVENT.hide),this.isShown=!1;const n=this.element.classList.contains(E.CLASSNAME.fade);if(n&&(this.isTransitioning=!0),this.setEscapeEvent(),d.off(document,E.EVENT.focusin),this.element.classList.remove(E.CLASSNAME.show),d.off(this.element,E.EVENT.clickDismiss),d.off(this.dialog,E.EVENT.mousedownDismiss),n){const e=u.getTransitionDurationFromElement(this.element);d.one(this.element,u.TRANSITION_END,(()=>this.hideModal())),u.emulateTransitionEnd(this.element,e)}else this.hideModal();this.triggerElement&&(null===(t=this.triggerElement)||void 0===t||t.focus())}show(){this.isShown||this.isTransitioning||!this.element||(this.element.classList.contains(E.CLASSNAME.fade)&&(this.isTransitioning=!0),this.isShown=!0,this.setEscapeEvent(),d.on(this.element,E.EVENT.clickDismiss,E.SELECTOR.dataDismiss,(e=>this.hide(e))),d.on(this.dialog,E.EVENT.mousedownDismiss,(()=>{d.one(this.element,E.EVENT.mouseupDismiss,(e=>{e.target.isEqualNode(this.element)&&(this.ignoreBackdropClick=!0)}))})),this.showBackdrop((()=>this.showElement())))}toggle(){this.isShown?this.hide():this.show()}registerEvents(){d.on(document,E.EVENT.clickDataApi,E.SELECTOR.dataToggle,(e=>{let t;const n=e.currentTarget,o=u.getSelectorFromElement(e.target);o&&(t=document.querySelector(o)),"A"!==n.tagName&&"AREA"!==n.tagName||e.preventDefault();const i=E.getInstance(t);i&&i.toggle()}))}}return E.NAME=`${e.KEY_PREFIX}-modal`,E.DATA_KEY=`${e.KEY_PREFIX}.modal`,E.EVENT_KEY=`.${E.DATA_KEY}`,E.DATA_API_KEY=e.KEY_PREFIX,E.ESCAPE_KEYCODE=27,E.hasInit=!1,E.CLASSNAME={backdrop:`${e.KEY_PREFIX}-modal__backdrop`,fade:"fade",show:"show",visible:`${E.NAME}--visible`},E.SELECTOR={default:`.${E.NAME}`,dataDismiss:'[data-dismiss="modal"]',dataToggle:'[data-toggle="modal"]',modalBody:`.${e.KEY_PREFIX}-modal__body`,dialog:`.${e.KEY_PREFIX}-modal__dialog`},E.EVENT={show:`${n.show}${E.EVENT_KEY}`,shown:`${n.shown}${E.EVENT_KEY}`,focusin:`${n.focusin}${E.EVENT_KEY}`,hide:`${n.hide}${E.EVENT_KEY}`,hidden:`${n.hidden}${E.EVENT_KEY}`,keydownDismiss:`${n.keydown}.dismiss${E.EVENT_KEY}`,clickDismiss:`${n.click}.dismiss${E.EVENT_KEY}`,clickDataApi:`${n.click}${E.EVENT_KEY}${E.DATA_API_KEY}`,mouseupDismiss:`${n.mouseup}.dismiss${E.EVENT_KEY}`,mousedownDismiss:`${n.mousedown}.dismiss${E.EVENT_KEY}`},s=s.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Modal",[],t):"object"==typeof exports?exports.Modal=t():e.Modal=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,i={d:(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};i.d(s,{default:()=>E}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const r=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),a={setData(e,t,n){r.set(e,t,n)},getData:(e,t)=>r.get(e,t),removeData(e,t){r.delete(e,t)}},l=a;class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(d.fixEvent(o,e),n.oneOff&&d.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const s=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let r=s.length;r>=0;r--)if(s[r]===t)return d.fixEvent(i,t),o.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,i){const s="string"==typeof n,r=s?i:n;let a=e.replace(d.STRIPNAME_REGEX,"");const l=t[a];l&&(a=l);return"string"==typeof o[a]||(a=e),[s,r,a]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=d.getEvent(e);for(const r of t.split(" ")){const[t,a,l]=d.normalizeParams(r,n,o),c=s[l]||(s[l]={}),u=d.findHandler(c,a,t?n:null);if(u)return void(u.oneOff=u.oneOff&&i);const h=d.getUidEvent(a,r.replace(d.NAMESPACE_REGEX,"")),E=t?d.njDelegationHandler(e,n,o):d.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=a,E.oneOff=i,E.uidEvent=h,c[h]=E,e.addEventListener(l,E,t)}}static removeHandler(e,t,n,o,i){const s=d.findHandler(t[n],o,i);null!==s&&(e.removeEventListener(n,s,Boolean(i)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&s.indexOf(o)>-1){const o=i[s];d.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){d.addHandler(e,t,n,o,!1)}static one(e,t,n,o){d.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,s,r]=d.normalizeParams(t,n,o),a=r!==t,l=d.getEvent(e);if(void 0!==s){if(!l||!l[r])return;return void d.removeHandler(e,l,r,s,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&d.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[r]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(d.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];d.removeHandler(e,l,r,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const i=t.replace(d.STRIPNAME_REGEX,""),s="string"==typeof o[i];let r=null;return s?(r=document.createEvent("HTMLEvents"),r.initEvent(i,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const c={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(c.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(c.TRANSITION_END,(function t(){n=!0,e.removeEventListener(c.TRANSITION_END,t)})),setTimeout((()=>{n||c.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const s=n[i],r=t[i],a=r&&c.isElement(r)?"element":(o=r,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let s,r,a,l=null,d=0;const c=()=>{d=Date.now(),l=null,a=e.apply(r,s)};return()=>{const u=Date.now();d||n||(d=u);const h=t-(u-d);return r=i||this,s=arguments,h<=0?(clearTimeout(l),l=null,d=u,a=e.apply(r,s)):!l&&o&&(l=setTimeout(c,h)),a}}},u=c,h=['a[href]:not([tabindex^="-"]):not([data-trap-anchor])','area[href]:not([tabindex^="-"]):not([data-trap-anchor])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','input[type="radio"]:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','select:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','textarea:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','button:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','iframe:not([tabindex^="-"]):not([data-trap-anchor])','audio[controls]:not([tabindex^="-"]):not([data-trap-anchor])','video[controls]:not([tabindex^="-"]):not([data-trap-anchor])','[contenteditable]:not([tabindex^="-"]):not([data-trap-anchor])','[tabindex]:not([tabindex^="-"]):not([data-trap-anchor])'];class E extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const s=i[n];if(!s.key||s.key.key!==e.DATA_KEY){const r=new e(i[n],t);s.key||l.setData(i[n],e.DATA_KEY,r),o.push(r)}}return o}}{constructor(e){super(E,e),this.backdrop=null,this.dialog=null,this.ignoreBackdropClick=null,this.isShown=!1,this.isTransitioning=!1,this.triggerElement=null,this.dialog=this.element.querySelector(E.SELECTOR.dialog);const t=this.element.dataset.appendto;if(t){document.querySelector(t).appendChild(this.element)}l.setData(e,E.DATA_KEY,this),E.hasInit||(E.hasInit=!0,this.registerEvents())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}static getInstance(e){return l.getData(e,E.DATA_KEY)}enforceFocus(){function e(e){const t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.setAttribute("data-trap-anchor",""),t.addEventListener("focusin",e),t}const t=e((()=>{this.element.querySelector(h.join(",")).focus()}));this.element.append(t);const n=e((()=>{Array.from(this.element.querySelectorAll(h.join(","))).at(-1).focus()}));this.element.prepend(n)}hideModal(){this.element&&(this.element.classList.remove(E.CLASSNAME.visible),this.element.setAttribute("aria-hidden","true"),this.element.removeAttribute("aria-modal"),this.isTransitioning=!1,this.showBackdrop(),d.trigger(this.element,E.EVENT.hidden))}removeBackdrop(){this.backdrop&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=null)}setEscapeEvent(){this.isShown?d.on(this.element,E.EVENT.keydownDismiss,(e=>{e.which===E.ESCAPE_KEYCODE&&(e.preventDefault(),this.hide())})):d.off(this.element,E.EVENT.keydownDismiss)}showBackdrop(e){if(!this.element)return;const t=this.element.classList.contains(E.CLASSNAME.fade)?E.CLASSNAME.fade:"";if(this.isShown){if(this.backdrop=document.createElement("div"),this.backdrop.className=E.CLASSNAME.backdrop,t&&this.backdrop.classList.add(t),document.body.appendChild(this.backdrop),d.on(this.element,E.EVENT.clickDismiss,(e=>{this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&this.hide()})),t&&u.reflow(this.backdrop),this.backdrop.classList.add(E.CLASSNAME.show),!e)return;if(!t)return void e();const n=u.getTransitionDurationFromElement(this.backdrop);d.one(this.backdrop,u.TRANSITION_END,e),u.emulateTransitionEnd(this.backdrop,n)}else if(!this.isShown&&this.backdrop){this.backdrop.classList.remove(E.CLASSNAME.show);const t=()=>{this.removeBackdrop(),e&&e()};if(this.element.classList.contains(E.CLASSNAME.fade)){const e=u.getTransitionDurationFromElement(this.backdrop);d.one(this.backdrop,u.TRANSITION_END,t),u.emulateTransitionEnd(this.backdrop,e)}else t()}else e&&e()}showElement(){if(!this.element)return;d.trigger(this.element,E.EVENT.show);const e=this.element.classList.contains(E.CLASSNAME.fade);this.element.parentNode&&this.element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this.element),this.element.classList.add(E.CLASSNAME.visible),this.element.removeAttribute("aria-hidden"),this.element.scrollTop=0,e&&u.reflow(this.element),this.element.classList.add(E.CLASSNAME.show),document.activeElement&&(this.triggerElement=document.activeElement),this.enforceFocus(),this.element.setAttribute("aria-modal","true");const t=()=>{this.element.querySelector(h.join(",")).focus(),this.isTransitioning=!1,d.trigger(this.element,E.EVENT.shown)};if(e){const e=u.getTransitionDurationFromElement(this.dialog);d.one(this.dialog,u.TRANSITION_END,t),u.emulateTransitionEnd(this.dialog,e)}else t()}dispose(){this.removeBackdrop(),l.removeData(this.element,E.DATA_KEY),d.off(document,E.EVENT.focusin),this.element=null,this.dialog=null,this.backdrop=null,this.isShown=null,this.ignoreBackdropClick=null,this.isTransitioning=null}hide(e){var t;if(e&&e.preventDefault(),!this.isShown||this.isTransitioning||!this.element)return;d.trigger(this.element,E.EVENT.hide),this.isShown=!1;const n=this.element.classList.contains(E.CLASSNAME.fade);if(n&&(this.isTransitioning=!0),this.setEscapeEvent(),d.off(document,E.EVENT.focusin),this.element.classList.remove(E.CLASSNAME.show),d.off(this.element,E.EVENT.clickDismiss),d.off(this.dialog,E.EVENT.mousedownDismiss),n){const e=u.getTransitionDurationFromElement(this.element);d.one(this.element,u.TRANSITION_END,(()=>this.hideModal())),u.emulateTransitionEnd(this.element,e)}else this.hideModal();this.triggerElement&&(null===(t=this.triggerElement)||void 0===t||t.focus())}show(){this.isShown||this.isTransitioning||!this.element||(this.element.classList.contains(E.CLASSNAME.fade)&&(this.isTransitioning=!0),this.isShown=!0,this.setEscapeEvent(),d.on(this.element,E.EVENT.clickDismiss,E.SELECTOR.dataDismiss,(e=>this.hide(e))),d.on(this.dialog,E.EVENT.mousedownDismiss,(()=>{d.one(this.element,E.EVENT.mouseupDismiss,(e=>{e.target.isEqualNode(this.element)&&(this.ignoreBackdropClick=!0)}))})),this.showBackdrop((()=>this.showElement())))}toggle(){this.isShown?this.hide():this.show()}registerEvents(){d.on(document,E.EVENT.clickDataApi,E.SELECTOR.dataToggle,(e=>{let t;const n=e.currentTarget,o=u.getSelectorFromElement(e.target);o&&(t=document.querySelector(o)),"A"!==n.tagName&&"AREA"!==n.tagName||e.preventDefault();const i=E.getInstance(t);i&&i.toggle()}))}}return E.NAME=`${e.KEY_PREFIX}-modal`,E.DATA_KEY=`${e.KEY_PREFIX}.modal`,E.EVENT_KEY=`.${E.DATA_KEY}`,E.DATA_API_KEY=e.KEY_PREFIX,E.ESCAPE_KEYCODE=27,E.hasInit=!1,E.CLASSNAME={backdrop:`${e.KEY_PREFIX}-modal__backdrop`,fade:"fade",show:"show",visible:`${E.NAME}--visible`},E.SELECTOR={default:`.${E.NAME}`,dataDismiss:'[data-dismiss="modal"]',dataToggle:'[data-toggle="modal"]',modalBody:`.${e.KEY_PREFIX}-modal__body`,dialog:`.${e.KEY_PREFIX}-modal__dialog`},E.EVENT={show:`${n.show}${E.EVENT_KEY}`,shown:`${n.shown}${E.EVENT_KEY}`,focusin:`${n.focusin}${E.EVENT_KEY}`,hide:`${n.hide}${E.EVENT_KEY}`,hidden:`${n.hidden}${E.EVENT_KEY}`,keydownDismiss:`${n.keydown}.dismiss${E.EVENT_KEY}`,clickDismiss:`${n.click}.dismiss${E.EVENT_KEY}`,clickDataApi:`${n.click}${E.EVENT_KEY}${E.DATA_API_KEY}`,mouseupDismiss:`${n.mouseup}.dismiss${E.EVENT_KEY}`,mousedownDismiss:`${n.mousedown}.dismiss${E.EVENT_KEY}`},s=s.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Navbar",[],t):"object"==typeof exports?exports.Navbar=t():e.Navbar=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,s){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=s},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const s=t.key;s.key===n&&(delete e[s.id],delete t.key)}}})(),s={setData(e,t,s){n.set(e,t,s)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||s.setData(r[n],e.DATA_KEY,l),o.push(l)}}return o}}var r,i,l,a;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(r||(r={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(i||(i={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=s=>(c.fixEvent(s,e),n.oneOff&&c.off(e,s.type,t),t.apply(e,[s]));return n}static njDelegationHandler(e,t,n){const s=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return c.fixEvent(o,t),s.oneOff&&c.off(e,o.type,n),n.apply(t,[o]);return null};return s}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const o=e[s];if(o.originalHandler===t&&o.delegationSelector===n)return e[s]}return null}static normalizeParams(e,t,n){const s="string"==typeof t,o=s?n:t;let r=e.replace(c.STRIPNAME_REGEX,"");const l=i[r];l&&(r=l);return"string"==typeof a[r]||(r=e),[s,o,r]}static addHandler(e,t,n,s,o){if("string"!=typeof t||null==e)return;n||(n=s,s=null);const r=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,s),d=r[a]||(r[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const h=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),E=t?c.njDelegationHandler(e,n,s):c.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=o,E.uidEvent=h,d[h]=E,e.addEventListener(a,E,t)}}static removeHandler(e,t,n,s,o){const r=c.findHandler(t[n],s,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,s){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(s)>-1){const s=o[r];c.removeHandler(e,t,n,s.originalHandler,s.delegationSelector)}}static on(e,t,n,s){c.addHandler(e,t,n,s,!1)}static one(e,t,n,s){c.addHandler(e,t,n,s,!0)}static off(e,t,n,s){if("string"!=typeof t||null==e)return;const[o,r,i]=c.normalizeParams(t,n,s),l=i!==t,a=c.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void c.removeHandler(e,a,i,r,o?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const s=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(s)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),o="string"==typeof a[s];let r=null;return o?(r=document.createEvent("HTMLEvents"),r.initEvent(s,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const s=e.attributes[n];if(-1!==s.nodeName.indexOf("data-")){const e=s.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=s.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n&&"[object Object]"===Object.prototype.toString.call(t[s])?e[s]=d.extend(e[s],t[s]):e[s]=t[s]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},u=d;const h={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const s=parseFloat(t),o=parseFloat(n);return s||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(h.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const s=t+5;e.addEventListener(h.TRANSITION_END,(function t(){n=!0,e.removeEventListener(h.TRANSITION_END,t)})),setTimeout((()=>{n||h.triggerTransitionEnd(e)}),s)},typeCheckConfig(e,t,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const r=n[o],i=t[o],l=i&&h.isElement(i)?"element":(s=i,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${r}".`)}var s},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h.findShadowRoot(e.parentElement):null},throttle(e,t,n,s,o){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=o||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&s&&(a=setTimeout(d,h)),l}}},E=h;class g extends o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=E.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=E.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,s=n.length;t<s;t++){const s=n[t],o=E.getSelectorFromElement(s),r=E.makeArray(document.querySelectorAll(o)).filter((t=>t===e));null!==o&&r.length&&(this.selector=o,this.triggerArray.push(s))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),s.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(g.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.show))return;let e,t;this.parent&&(e=E.makeArray(this.parent.querySelectorAll(g.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(g.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?s.getData(o[0],g.DATA_KEY):null,t&&t.isTransitioning)return}if(c.trigger(this.element,g.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&g.collapseInterface(e,"hide"),t||s.setData(e,g.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,i=E.getTransitionDurationFromElement(this.element);c.one(this.element,E.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),c.trigger(this.element,g.EVENT.shown)})),E.emulateTransitionEnd(this.element,i),this.element.style[o]=`${this.element[r]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.show))return;if(c.trigger(this.element,g.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,E.reflow(this.element),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.remove(g.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=E.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.show)||(t.classList.add(g.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=E.getTransitionDurationFromElement(this.element);c.one(this.element,E.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),c.trigger(this.element,g.EVENT.hidden)})),E.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){s.removeData(this.element,g.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(g.DIMENSION.width)?g.DIMENSION.width:g.DIMENSION.height}getParent(){let e;E.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return E.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(g.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.collapsed):e.classList.add(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),E.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=E.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=s.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),u.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return s.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){c.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=u.getDataAttributes(this),n=E.getSelectorFromElement(this);E.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e);let s;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),s="toggle"):s=t,g.collapseInterface(e,s)}))}))}}g.NAME=`${r.KEY_PREFIX}-collapse`,g.DATA_KEY=`${r.KEY_PREFIX}.collapse`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=r.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={show:"show",collapse:`${r.KEY_PREFIX}-collapse`,collapsing:`${r.KEY_PREFIX}-collapsing`,collapsed:`${r.KEY_PREFIX}-collapsed`},g.EVENT={show:`${l.show}${g.EVENT_KEY}`,shown:`${l.shown}${g.EVENT_KEY}`,hide:`${l.hide}${g.EVENT_KEY}`,hidden:`${l.hidden}${g.EVENT_KEY}`,clickDataApi:`${l.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={toggle:!1,parent:""},g.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},g.DIMENSION={width:"width",height:"height"},g.SELECTOR={default:`.${g.CLASS_NAME.collapse}`,actives:`.${g.CLASS_NAME.show}, .${g.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const p={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class m extends o{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(m.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(m.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(m.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(m.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(m.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${m.SELECTOR.formGroup} for ${p.describe(this.element)}`),t}}m.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},m.SELECTOR={formGroup:`.${m.CLASS_NAME.njFormGroup}`};class A extends m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(A,e,u.extend(!0,A.DEFAULT_OPTIONS,t)),this.triggerElement=this.element.parentElement.querySelector(`[data-toggle="collapse"][${A.SELECTOR.target}="#${this.element.id}"]`)||this.element.parentElement.querySelector(`[data-toggle="collapse"][href="#${this.element.id}"]`);const n=this.element.querySelector(`[data-dismiss="#${this.element.id}"]`);n&&n.addEventListener("click",this.dismissHandler.bind(this)),p.assert(e,!this.triggerElement,`Cannot find collapse trigger for ${p.describe(e)}`),p.assert(e,!this.element.classList.contains(g.CLASS_NAME.collapse),`${p.describe(e)} is expected to have the '${g.CLASS_NAME.collapse}' class. It is being targeted by ${p.describe(e)}`),this.input=this.element.querySelector(A.SELECTOR.anyInput),this.input&&(c.on(this.element,`${l.shown}.${g.DATA_KEY}`,(()=>{this.input.focus()})),c.on(this.input,"blur",(e=>{this.dismissHandler(e)})))}getElement(){return this.element}dispose(){s.removeData(this.element,A.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,A.SELECTOR.default)}static getInstance(e){const t=s.getData(e,A.DATA_KEY);return t||g.getInstance(e)}dismissHandler(e){e.preventDefault(),(e.target.closest(`[data-dismiss="#${this.element.id}"]`)||e.target.closest(`[href="#${this.element.id}"]`))&&c.trigger(this.triggerElement,l.click)}}A.NAME="collapseSearchBar",A.DATA_KEY=`${r.KEY_PREFIX}.${A.NAME}`,A.SELECTOR={default:`.${r.KEY_PREFIX}-navbar__search`,formGroup:m.SELECTOR.formGroup,anyInput:"input, select, textarea",target:"data-target"},A.DEFAULT_OPTIONS={njFormGroup:{required:!1}};class f extends o{constructor(e){super(f,e),this.collapseSearchBarInstances=A.init(),this.registerEvents()}dispose(){this.collapseSearchBarInstances.length>0&&this.collapseSearchBarInstances.forEach((e=>{e.getElement()===this.element.querySelector(A.SELECTOR.default)&&e.dispose()})),s.removeData(this.element,f.DATA_KEY),this.element=null}handleCollapseShow(){this.element.classList.add(f.CLASS_NAME.shownCollapse)}handleCollapseHide(){this.element.classList.remove(f.CLASS_NAME.shownCollapse)}static getInstance(e){return s.getData(e,f.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}registerEvents(){c.on(this.element,g.EVENT.show,(()=>{this.handleCollapseShow()})),c.on(this.element,g.EVENT.hidden,(()=>{this.handleCollapseHide()}))}}return f.NAME=`${r.KEY_PREFIX}-navbar`,f.DATA_KEY=`${r.KEY_PREFIX}.navbar`,f.CLASS_NAME={shownCollapse:`${f.NAME}--shown-collapse`},f.SELECTOR={default:`.${f.NAME}`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Navbar",[],t):"object"==typeof exports?exports.Navbar=t():e.Navbar=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,s){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=s},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const s=t.key;s.key===n&&(delete e[s.id],delete t.key)}}})(),s={setData(e,t,s){n.set(e,t,s)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||s.setData(r[n],e.DATA_KEY,l),o.push(l)}}return o}}var r,i,l,a;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(r||(r={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(i||(i={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=s=>(c.fixEvent(s,e),n.oneOff&&c.off(e,s.type,t),t.apply(e,[s]));return n}static njDelegationHandler(e,t,n){const s=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return c.fixEvent(o,t),s.oneOff&&c.off(e,o.type,n),n.apply(t,[o]);return null};return s}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const o=e[s];if(o.originalHandler===t&&o.delegationSelector===n)return e[s]}return null}static normalizeParams(e,t,n){const s="string"==typeof t,o=s?n:t;let r=e.replace(c.STRIPNAME_REGEX,"");const l=i[r];l&&(r=l);return"string"==typeof a[r]||(r=e),[s,o,r]}static addHandler(e,t,n,s,o){if("string"!=typeof t||null==e)return;n||(n=s,s=null);const r=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,s),d=r[a]||(r[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const h=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),E=t?c.njDelegationHandler(e,n,s):c.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=o,E.uidEvent=h,d[h]=E,e.addEventListener(a,E,t)}}static removeHandler(e,t,n,s,o){const r=c.findHandler(t[n],s,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,s){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(s)>-1){const s=o[r];c.removeHandler(e,t,n,s.originalHandler,s.delegationSelector)}}static on(e,t,n,s){c.addHandler(e,t,n,s,!1)}static one(e,t,n,s){c.addHandler(e,t,n,s,!0)}static off(e,t,n,s){if("string"!=typeof t||null==e)return;const[o,r,i]=c.normalizeParams(t,n,s),l=i!==t,a=c.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void c.removeHandler(e,a,i,r,o?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const s=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(s)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),o="string"==typeof a[s];let r=null;return o?(r=document.createEvent("HTMLEvents"),r.initEvent(s,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const s=e.attributes[n];if(-1!==s.nodeName.indexOf("data-")){const e=s.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=s.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n&&"[object Object]"===Object.prototype.toString.call(t[s])?e[s]=d.extend(e[s],t[s]):e[s]=t[s]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},u=d;const h={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const s=parseFloat(t),o=parseFloat(n);return s||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(h.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const s=t+5;e.addEventListener(h.TRANSITION_END,(function t(){n=!0,e.removeEventListener(h.TRANSITION_END,t)})),setTimeout((()=>{n||h.triggerTransitionEnd(e)}),s)},typeCheckConfig(e,t,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const r=n[o],i=t[o],l=i&&h.isElement(i)?"element":(s=i,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${r}".`)}var s},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h.findShadowRoot(e.parentElement):null},throttle(e,t,n,s,o){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=o||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&s&&(a=setTimeout(d,h)),l}}},E=h;class g extends o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=E.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=E.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,s=n.length;t<s;t++){const s=n[t],o=E.getSelectorFromElement(s),r=E.makeArray(document.querySelectorAll(o)).filter((t=>t===e));null!==o&&r.length&&(this.selector=o,this.triggerArray.push(s))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),s.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(g.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.show))return;let e,t;this.parent&&(e=E.makeArray(this.parent.querySelectorAll(g.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(g.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?s.getData(o[0],g.DATA_KEY):null,t&&t.isTransitioning)return}if(c.trigger(this.element,g.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&g.collapseInterface(e,"hide"),t||s.setData(e,g.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,i=E.getTransitionDurationFromElement(this.element);c.one(this.element,E.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),this.element.classList.add(g.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),c.trigger(this.element,g.EVENT.shown)})),E.emulateTransitionEnd(this.element,i),this.element.style[o]=`${this.element[r]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.show))return;if(c.trigger(this.element,g.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,E.reflow(this.element),this.element.classList.add(g.CLASS_NAME.collapsing),this.element.classList.remove(g.CLASS_NAME.collapse),this.element.classList.remove(g.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=E.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.show)||(t.classList.add(g.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=E.getTransitionDurationFromElement(this.element);c.one(this.element,E.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.collapsing),this.element.classList.add(g.CLASS_NAME.collapse),c.trigger(this.element,g.EVENT.hidden)})),E.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){s.removeData(this.element,g.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(g.DIMENSION.width)?g.DIMENSION.width:g.DIMENSION.height}getParent(){let e;E.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return E.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(g.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.collapsed):e.classList.add(g.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),E.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=E.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=s.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),u.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return s.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){c.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=u.getDataAttributes(this),n=E.getSelectorFromElement(this);E.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e);let s;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),s="toggle"):s=t,g.collapseInterface(e,s)}))}))}}g.NAME=`${r.KEY_PREFIX}-collapse`,g.DATA_KEY=`${r.KEY_PREFIX}.collapse`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=r.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={show:"show",collapse:`${r.KEY_PREFIX}-collapse`,collapsing:`${r.KEY_PREFIX}-collapsing`,collapsed:`${r.KEY_PREFIX}-collapsed`},g.EVENT={show:`${l.show}${g.EVENT_KEY}`,shown:`${l.shown}${g.EVENT_KEY}`,hide:`${l.hide}${g.EVENT_KEY}`,hidden:`${l.hidden}${g.EVENT_KEY}`,clickDataApi:`${l.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={toggle:!1,parent:""},g.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},g.DIMENSION={width:"width",height:"height"},g.SELECTOR={default:`.${g.CLASS_NAME.collapse}`,actives:`.${g.CLASS_NAME.show}, .${g.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const p={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class m extends o{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(m.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(m.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(m.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(m.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(m.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${m.SELECTOR.formGroup} for ${p.describe(this.element)}`),t}}m.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},m.SELECTOR={formGroup:`.${m.CLASS_NAME.njFormGroup}`};class A extends m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(A,e,u.extend(!0,A.DEFAULT_OPTIONS,t)),this.triggerElement=this.element.parentElement.querySelector(`[data-toggle="collapse"][${A.SELECTOR.target}="#${this.element.id}"]`)||this.element.parentElement.querySelector(`[data-toggle="collapse"][href="#${this.element.id}"]`);const n=this.element.querySelector(`[data-dismiss="#${this.element.id}"]`);n&&n.addEventListener("click",this.dismissHandler.bind(this)),p.assert(e,!this.triggerElement,`Cannot find collapse trigger for ${p.describe(e)}`),p.assert(e,!this.element.classList.contains(g.CLASS_NAME.collapse),`${p.describe(e)} is expected to have the '${g.CLASS_NAME.collapse}' class. It is being targeted by ${p.describe(e)}`),this.input=this.element.querySelector(A.SELECTOR.anyInput),this.input&&(c.on(this.element,`${l.shown}.${g.DATA_KEY}`,(()=>{this.input.focus()})),c.on(this.input,"blur",(e=>{this.dismissHandler(e)})))}getElement(){return this.element}dispose(){s.removeData(this.element,A.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,A.SELECTOR.default)}static getInstance(e){const t=s.getData(e,A.DATA_KEY);return t||g.getInstance(e)}dismissHandler(e){e.preventDefault(),(e.target.closest(`[data-dismiss="#${this.element.id}"]`)||e.target.closest(`[href="#${this.element.id}"]`))&&c.trigger(this.triggerElement,l.click)}}A.NAME="collapseSearchBar",A.DATA_KEY=`${r.KEY_PREFIX}.${A.NAME}`,A.SELECTOR={default:`.${r.KEY_PREFIX}-navbar__search`,formGroup:m.SELECTOR.formGroup,anyInput:"input, select, textarea",target:"data-target"},A.DEFAULT_OPTIONS={njFormGroup:{required:!1}};class f extends o{constructor(e){super(f,e),this.collapseSearchBarInstances=A.init(),this.registerEvents()}dispose(){this.collapseSearchBarInstances.length>0&&this.collapseSearchBarInstances.forEach((e=>{e.getElement()===this.element.querySelector(A.SELECTOR.default)&&e.dispose()})),s.removeData(this.element,f.DATA_KEY),this.element=null}handleCollapseShow(){this.element.classList.add(f.CLASS_NAME.shownCollapse)}handleCollapseHide(){this.element.classList.remove(f.CLASS_NAME.shownCollapse)}static getInstance(e){return s.getData(e,f.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}registerEvents(){c.on(this.element,g.EVENT.show,(()=>{this.handleCollapseShow()})),c.on(this.element,g.EVENT.hidden,(()=>{this.handleCollapseHide()}))}}return f.NAME=`${r.KEY_PREFIX}-navbar`,f.DATA_KEY=`${r.KEY_PREFIX}.navbar`,f.CLASS_NAME={shownCollapse:`${f.NAME}--shown-collapse`},f.SELECTOR={default:`.${f.NAME}`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Radio",[],t):"object"==typeof exports?exports.Radio=t():e.Radio=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;const s={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class l extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(l.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(l.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(l.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${l.SELECTOR.formGroup} for ${s.describe(this.element)}`),t}}var i,a,d,c;l.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},l.SELECTOR={formGroup:`.${l.CLASS_NAME.njFormGroup}`},function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(d||(d={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(u.fixEvent(n,e),o.oneOff&&u.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return u.fixEvent(r,t),n.oneOff&&u.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(u.STRIPNAME_REGEX,"");const l=a[s];l&&(s=l);return"string"==typeof c[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=u.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=u.normalizeParams(l,o,n),d=s[a]||(s[a]={}),c=u.findHandler(d,i,t?o:null);if(c)return void(c.oneOff=c.oneOff&&r);const h=u.getUidEvent(i,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,o,n):u.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=i,m.oneOff=r,m.uidEvent=h,d[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,o,n,r){const s=u.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];u.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){u.addHandler(e,t,o,n,!1)}static one(e,t,o,n){u.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=u.normalizeParams(t,o,n),i=l!==t,a=u.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void u.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&u.removeNamespacedHandlers(e,a,o,t.substr(1));const d=a[l]||{};for(const o in d){if(!Object.prototype.hasOwnProperty.call(d,o))continue;const n=o.replace(u.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=d[o];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof c[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=h.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=h.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=h;class p extends l{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,p.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){u.off(this.element,"focus"),u.off(this.element,"blur"),u.off(this.element,"keydown"),u.off(this.element,"keyup")}addFocusListener(){u.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),u.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"keydown",(e=>{s.isChar(e)&&this.addIsFilled()})),u.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(p.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(p.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(p.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${p.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${s.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in p.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(p.FORM_CONTROL_SIZE_MARKERS[e])}}p.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},p.INPUT_SELECTOR={njFormGroup:`.${p.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${p.CLASS_NAME.njLabel}'], label[class*=' ${p.CLASS_NAME.njLabel}']`},p.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${p.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:p.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},p.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class E extends p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,E.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=m.createHtmlNode(this.options.template);this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){s.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${s.describe(this.element)} parent element should be <label>.`),s.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${s.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(E.SELECTOR.label);u.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),u.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"change",(()=>{this.element.blur()}))}}E.SELECTOR={formGroup:p.SELECTOR.formGroup,label:"label"},E.DEFAULT_OPTIONS={label:{required:!1}};class f extends E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{inputType:"radio",outerClass:`${i.KEY_PREFIX}-radio`};super(f,e,m.extend(!0,f.DEFAULT_OPTIONS,t),o),r.setData(e,f.DATA_KEY,this);const n=e.parentNode.parentNode;r.setData(n,f.DATA_KEY,this)}dispose(){r.removeData(this.element,f.DATA_KEY),this.element=null}matches(){return"radio"===this.element.getAttribute("type")}static getInstance(e){return r.getData(e,f.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}}return f.NAME=`${i.KEY_PREFIX}-radio`,f.DATA_KEY=`${i.KEY_PREFIX}.radio`,f.SELECTOR={default:`.${f.NAME} > label > input[type=radio]`,formGroup:E.SELECTOR.formGroup,label:E.SELECTOR.label},f.DEFAULT_OPTIONS={template:`<span class="${i.KEY_PREFIX}-radio__decorator"></span>`,njFormGroup:{required:!1}},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Radio",[],t):"object"==typeof exports?exports.Radio=t():e.Radio=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;const s={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class l extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(l.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(l.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(l.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${l.SELECTOR.formGroup} for ${s.describe(this.element)}`),t}}var i,a,d,c;l.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},l.SELECTOR={formGroup:`.${l.CLASS_NAME.njFormGroup}`},function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(d||(d={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(u.fixEvent(n,e),o.oneOff&&u.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return u.fixEvent(r,t),n.oneOff&&u.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(u.STRIPNAME_REGEX,"");const l=a[s];l&&(s=l);return"string"==typeof c[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=u.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=u.normalizeParams(l,o,n),d=s[a]||(s[a]={}),c=u.findHandler(d,i,t?o:null);if(c)return void(c.oneOff=c.oneOff&&r);const h=u.getUidEvent(i,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,o,n):u.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=i,m.oneOff=r,m.uidEvent=h,d[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,o,n,r){const s=u.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];u.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){u.addHandler(e,t,o,n,!1)}static one(e,t,o,n){u.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=u.normalizeParams(t,o,n),i=l!==t,a=u.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void u.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&u.removeNamespacedHandlers(e,a,o,t.substr(1));const d=a[l]||{};for(const o in d){if(!Object.prototype.hasOwnProperty.call(d,o))continue;const n=o.replace(u.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=d[o];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof c[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=h.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=h.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=h;class p extends l{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,p.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){u.off(this.element,"focus"),u.off(this.element,"blur"),u.off(this.element,"keydown"),u.off(this.element,"keyup")}addFocusListener(){u.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),u.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"keydown",(e=>{s.isChar(e)&&this.addIsFilled()})),u.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(p.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(p.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(p.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${p.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${s.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in p.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(p.FORM_CONTROL_SIZE_MARKERS[e])}}p.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},p.INPUT_SELECTOR={njFormGroup:`.${p.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${p.CLASS_NAME.njLabel}'], label[class*=' ${p.CLASS_NAME.njLabel}']`},p.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${p.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:p.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},p.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class E extends p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,E.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=m.createHtmlNode(this.options.template);this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){s.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${s.describe(this.element)} parent element should be <label>.`),s.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${s.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(E.SELECTOR.label);u.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),u.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"change",(()=>{this.element.blur()}))}}E.SELECTOR={formGroup:p.SELECTOR.formGroup,label:"label"},E.DEFAULT_OPTIONS={label:{required:!1}};class f extends E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{inputType:"radio",outerClass:`${i.KEY_PREFIX}-radio`};super(f,e,m.extend(!0,f.DEFAULT_OPTIONS,t),o),r.setData(e,f.DATA_KEY,this);const n=e.parentNode.parentNode;r.setData(n,f.DATA_KEY,this)}dispose(){r.removeData(this.element,f.DATA_KEY),this.element=null}matches(){return"radio"===this.element.getAttribute("type")}static getInstance(e){return r.getData(e,f.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}}return f.NAME=`${i.KEY_PREFIX}-radio`,f.DATA_KEY=`${i.KEY_PREFIX}.radio`,f.SELECTOR={default:`.${f.NAME} > label > input[type=radio]`,formGroup:E.SELECTOR.formGroup,label:E.SELECTOR.label},f.DEFAULT_OPTIONS={template:`<span class="${i.KEY_PREFIX}-radio__decorator"></span>`,njFormGroup:{required:!1}},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Select",[],t):"object"==typeof exports?exports.Select=t():e.Select=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;const s={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class l extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(l.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(l.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(l.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${l.SELECTOR.formGroup} for ${s.describe(this.element)}`),t}}var i,a,c,d;l.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},l.SELECTOR={formGroup:`.${l.CLASS_NAME.njFormGroup}`},function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(d||(d={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(u.fixEvent(n,e),o.oneOff&&u.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return u.fixEvent(r,t),n.oneOff&&u.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(u.STRIPNAME_REGEX,"");const l=a[s];l&&(s=l);return"string"==typeof d[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=u.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=u.normalizeParams(l,o,n),c=s[a]||(s[a]={}),d=u.findHandler(c,i,t?o:null);if(d)return void(d.oneOff=d.oneOff&&r);const h=u.getUidEvent(i,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,o,n):u.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=i,m.oneOff=r,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,o,n,r){const s=u.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];u.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){u.addHandler(e,t,o,n,!1)}static one(e,t,o,n){u.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=u.normalizeParams(t,o,n),i=l!==t,a=u.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void u.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&u.removeNamespacedHandlers(e,a,o,t.substr(1));const c=a[l]||{};for(const o in c){if(!Object.prototype.hasOwnProperty.call(c,o))continue;const n=o.replace(u.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=c[o];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof d[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=h.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=h.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=h;class p extends l{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,p.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){u.off(this.element,"focus"),u.off(this.element,"blur"),u.off(this.element,"keydown"),u.off(this.element,"keyup")}addFocusListener(){u.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),u.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"keydown",(e=>{s.isChar(e)&&this.addIsFilled()})),u.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(p.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(p.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(p.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${p.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${s.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in p.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(p.FORM_CONTROL_SIZE_MARKERS[e])}}p.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},p.INPUT_SELECTOR={njFormGroup:`.${p.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${p.CLASS_NAME.njLabel}'], label[class*=' ${p.CLASS_NAME.njLabel}']`},p.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${p.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:p.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},p.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class f extends p{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(f,e,m.extend(!0,f.DEFAULT_OPTIONS,t)),this.addIsFilled(),r.setData(e,f.DATA_KEY,this)}dispose(){r.removeData(this.element,f.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}static getInstance(e){return r.getData(e,f.DATA_KEY)}static matches(e){return"SELECT"===e.tagName}}return f.NAME=`${i.KEY_PREFIX}-select`,f.DATA_KEY=`${i.KEY_PREFIX}.select`,f.SELECTOR={default:"select.nj-form-control",formGroup:p.SELECTOR.formGroup},f.DEFAULT_OPTIONS={requiredClasses:["form-control||custom-select"]},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Select",[],t):"object"==typeof exports?exports.Select=t():e.Select=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>f}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;const s={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class l extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(l.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(l.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(l.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(l.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${l.SELECTOR.formGroup} for ${s.describe(this.element)}`),t}}var i,a,c,d;l.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},l.SELECTOR={formGroup:`.${l.CLASS_NAME.njFormGroup}`},function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(d||(d={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(u.fixEvent(n,e),o.oneOff&&u.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return u.fixEvent(r,t),n.oneOff&&u.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(u.STRIPNAME_REGEX,"");const l=a[s];l&&(s=l);return"string"==typeof d[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=u.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=u.normalizeParams(l,o,n),c=s[a]||(s[a]={}),d=u.findHandler(c,i,t?o:null);if(d)return void(d.oneOff=d.oneOff&&r);const h=u.getUidEvent(i,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,o,n):u.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=i,m.oneOff=r,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,o,n,r){const s=u.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];u.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){u.addHandler(e,t,o,n,!1)}static one(e,t,o,n){u.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=u.normalizeParams(t,o,n),i=l!==t,a=u.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void u.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&u.removeNamespacedHandlers(e,a,o,t.substr(1));const c=a[l]||{};for(const o in c){if(!Object.prototype.hasOwnProperty.call(c,o))continue;const n=o.replace(u.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=c[o];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof d[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=h.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=h.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=h;class p extends l{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,m.extend(!0,p.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){u.off(this.element,"focus"),u.off(this.element,"blur"),u.off(this.element,"keydown"),u.off(this.element,"keyup")}addFocusListener(){u.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),u.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){u.on(this.element,"keydown",(e=>{s.isChar(e)&&this.addIsFilled()})),u.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(p.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(p.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(p.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${p.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${s.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in p.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(p.FORM_CONTROL_SIZE_MARKERS[e])}}p.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},p.INPUT_SELECTOR={njFormGroup:`.${p.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${p.CLASS_NAME.njLabel}'], label[class*=' ${p.CLASS_NAME.njLabel}']`},p.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${p.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:p.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},p.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};class f extends p{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(f,e,m.extend(!0,f.DEFAULT_OPTIONS,t)),this.addIsFilled(),r.setData(e,f.DATA_KEY,this)}dispose(){r.removeData(this.element,f.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}static getInstance(e){return r.getData(e,f.DATA_KEY)}static matches(e){return"SELECT"===e.tagName}}return f.NAME=`${i.KEY_PREFIX}-select`,f.DATA_KEY=`${i.KEY_PREFIX}.select`,f.SELECTOR={default:"select.nj-form-control",formGroup:p.SELECTOR.formGroup},f.DEFAULT_OPTIONS={requiredClasses:["form-control||custom-select"]},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sidebar",[],t):"object"==typeof exports?exports.Sidebar=t():e.Sidebar=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>g}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{static getUidEvent(e,t){return t&&`${t}::${a.uidEvent++}`||e.uidEvent||a.uidEvent++}static getEvent(e){const t=a.getUidEvent(e);return e.uidEvent=t,a.EVENTREGISTRY[t]=a.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&a.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(a.fixEvent(o,e),n.oneOff&&a.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return a.fixEvent(r,t),o.oneOff&&a.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,r){const s="string"==typeof n,i=s?r:n;let l=e.replace(a.STRIPNAME_REGEX,"");const c=t[l];c&&(l=c);return"string"==typeof o[l]||(l=e),[s,i,l]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=a.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=a.normalizeParams(i,n,o),d=s[c]||(s[c]={}),u=a.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const E=a.getUidEvent(l,i.replace(a.NAMESPACE_REGEX,"")),g=t?a.njDelegationHandler(e,n,o):a.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=r,g.uidEvent=E,d[E]=g,e.addEventListener(c,g,t)}}static removeHandler(e,t,n,o,r){const s=a.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];a.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){a.addHandler(e,t,n,o,!1)}static one(e,t,n,o){a.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=a.normalizeParams(t,n,o),l=i!==t,c=a.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void a.removeHandler(e,c,i,s,r?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&a.removeNamespacedHandlers(e,c,n,t.substr(1));const d=c[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(a.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];a.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(a.STRIPNAME_REGEX,""),s="string"==typeof o[r];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(r,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}a.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,a.STRIPNAME_REGEX=/\..*/,a.KEYEVENT_REGEX=/^key/,a.STRIPUID_REGEX=/::\d+$/,a.EVENTREGISTRY={},a.uidEvent=1;const c={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=c.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=c.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},d=c;const u={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),r=parseFloat(n);return o||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(u.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(u.TRANSITION_END,(function t(){n=!0,e.removeEventListener(u.TRANSITION_END,t)})),setTimeout((()=>{n||u.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)){const s=n[r],i=t[r],l=i&&u.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(l))throw new Error(`${e.toUpperCase()}: Option "${r}" provided type "${l}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,r){let s,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,s)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=r||this,s=arguments,E<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,s)):!a&&o&&(a=setTimeout(d,E)),l}}},E=u;class g extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const i=new e(r[n],t);s.key||l.setData(r[n],e.DATA_KEY,i),o.push(i)}}return o}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.closeOnInteractOut=e=>{e.key&&"Escape"!==e.key||!e.key&&e.target.closest(g.SELECTOR.default)||this.open()},this.element=e,this.isTransitioning=!1,this.triggerArray=E.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=E.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],r=E.getSelectorFromElement(o),s=E.makeArray(document.querySelectorAll(r)).filter((t=>t===e));null!==r&&s.length&&(this.selector=r,this.triggerArray.push(o))}l.setData(e,g.DATA_KEY,this),this.options.toggle&&this.toggle(),l.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents()),"true"!==e.dataset.closeOnInteractOut&&e.dataset.closeOnInteractOut||(document.addEventListener("click",this.closeOnInteractOut),document.addEventListener("keydown",this.closeOnInteractOut))}toggle(){this.element.classList.contains(g.CLASS_NAME.folded)?this.close():this.open()}open(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.folded))return;let e;document.querySelector(this.selector);if(a.trigger(this.element,g.EVENT.show).defaultPrevented)return;this.element.classList.remove(g.CLASS_NAME.folded),this.element.classList.add(g.CLASS_NAME.folding),this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.folded),e.setAttribute("aria-folded","true")})),this.setTransitioning(!0);const t=E.getTransitionDurationFromElement(this.element);a.one(this.element,E.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.folding),this.element.classList.add(g.CLASS_NAME.folded),this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===g.NAME&&this.element.parentElement.setAttribute("folded",""),this.setTransitioning(!1),a.trigger(this.element,g.EVENT.shown)})),E.emulateTransitionEnd(this.element,t)}close(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.folded))return;if(a.trigger(this.element,g.EVENT.hide).defaultPrevented)return;E.reflow(this.element),this.element.classList.add(g.CLASS_NAME.folding),this.element.classList.remove(g.CLASS_NAME.folded);const e=this.triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this.triggerArray[t],n=E.getSelectorFromElement(e);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.folded)||(e.classList.remove(g.CLASS_NAME.folded),e.setAttribute("aria-folded","false"))}}this.setTransitioning(!0);const t=E.getTransitionDurationFromElement(this.element);a.one(this.element,E.TRANSITION_END,(()=>{this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===g.NAME&&this.element.parentElement.removeAttribute("folded"),this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.folding),a.trigger(this.element,g.EVENT.hidden)})),E.emulateTransitionEnd(this.element,t)}setTransitioning(e){this.isTransitioning=e}dispose(){document.removeEventListener("click",this.closeOnInteractOut),document.removeEventListener("keydown",this.closeOnInteractOut),a.off(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle),l.removeData(this.element,g.DATA_KEY),this.options=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}addAriaAndExpandedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.folded);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.folded):e.classList.add(g.CLASS_NAME.folded),e.setAttribute("aria-folded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),E.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=E.getSelectorFromElement(e);return t?document.querySelector(t):null}static expandInterface(e,t){let n=l.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){a.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=d.getDataAttributes(this),n=E.getSelectorFromElement(this);E.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e)?"toggle":t;g.expandInterface(e,n)}))}))}}return g.NAME=`${e.KEY_PREFIX}-sidebar`,g.DATA_KEY=`${e.KEY_PREFIX}.sidebar`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=e.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={folding:`${e.KEY_PREFIX}-sidebar--folding`,folded:`${e.KEY_PREFIX}-sidebar--folded`},g.EVENT={show:`${n.show}${g.EVENT_KEY}`,shown:`${n.shown}${g.EVENT_KEY}`,hide:`${n.hide}${g.EVENT_KEY}`,hidden:`${n.hidden}${g.EVENT_KEY}`,clickDataApi:`${n.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={folded:!1},g.DEFAULT_TYPE={folded:"boolean"},g.SELECTOR={default:`.${g.NAME}`,actives:`.${g.CLASS_NAME.folding}, .${g.NAME}`,dataToggle:'[data-toggle="sidebar"]'},s=s.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sidebar",[],t):"object"==typeof exports?exports.Sidebar=t():e.Sidebar=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>g}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{static getUidEvent(e,t){return t&&`${t}::${a.uidEvent++}`||e.uidEvent||a.uidEvent++}static getEvent(e){const t=a.getUidEvent(e);return e.uidEvent=t,a.EVENTREGISTRY[t]=a.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&a.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(a.fixEvent(o,e),n.oneOff&&a.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return a.fixEvent(r,t),o.oneOff&&a.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,r){const s="string"==typeof n,i=s?r:n;let l=e.replace(a.STRIPNAME_REGEX,"");const c=t[l];c&&(l=c);return"string"==typeof o[l]||(l=e),[s,i,l]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=a.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=a.normalizeParams(i,n,o),d=s[c]||(s[c]={}),u=a.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const E=a.getUidEvent(l,i.replace(a.NAMESPACE_REGEX,"")),g=t?a.njDelegationHandler(e,n,o):a.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=r,g.uidEvent=E,d[E]=g,e.addEventListener(c,g,t)}}static removeHandler(e,t,n,o,r){const s=a.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];a.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){a.addHandler(e,t,n,o,!1)}static one(e,t,n,o){a.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=a.normalizeParams(t,n,o),l=i!==t,c=a.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void a.removeHandler(e,c,i,s,r?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&a.removeNamespacedHandlers(e,c,n,t.substr(1));const d=c[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(a.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];a.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(a.STRIPNAME_REGEX,""),s="string"==typeof o[r];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(r,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}a.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,a.STRIPNAME_REGEX=/\..*/,a.KEYEVENT_REGEX=/^key/,a.STRIPUID_REGEX=/::\d+$/,a.EVENTREGISTRY={},a.uidEvent=1;const c={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=c.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=c.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},d=c;const u={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),r=parseFloat(n);return o||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(u.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(u.TRANSITION_END,(function t(){n=!0,e.removeEventListener(u.TRANSITION_END,t)})),setTimeout((()=>{n||u.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)){const s=n[r],i=t[r],l=i&&u.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(l))throw new Error(`${e.toUpperCase()}: Option "${r}" provided type "${l}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,r){let s,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,s)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=r||this,s=arguments,E<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,s)):!a&&o&&(a=setTimeout(d,E)),l}}},E=u;class g extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const i=new e(r[n],t);s.key||l.setData(r[n],e.DATA_KEY,i),o.push(i)}}return o}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(g,e,g.getOptions(t)),this.closeOnInteractOut=e=>{e.key&&"Escape"!==e.key||!e.key&&e.target.closest(g.SELECTOR.default)||this.open()},this.element=e,this.isTransitioning=!1,this.triggerArray=E.makeArray(document.querySelectorAll(`${g.SELECTOR.dataToggle}[href="#${e.id}"],${g.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=E.makeArray(document.querySelectorAll(g.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],r=E.getSelectorFromElement(o),s=E.makeArray(document.querySelectorAll(r)).filter((t=>t===e));null!==r&&s.length&&(this.selector=r,this.triggerArray.push(o))}l.setData(e,g.DATA_KEY,this),this.options.toggle&&this.toggle(),l.setData(e,g.DATA_KEY,this),g.hasInit||(g.hasInit=!0,this.registerEvents()),"true"!==e.dataset.closeOnInteractOut&&e.dataset.closeOnInteractOut||(document.addEventListener("click",this.closeOnInteractOut),document.addEventListener("keydown",this.closeOnInteractOut))}toggle(){this.element.classList.contains(g.CLASS_NAME.folded)?this.close():this.open()}open(){if(this.isTransitioning||this.element.classList.contains(g.CLASS_NAME.folded))return;let e;document.querySelector(this.selector);if(a.trigger(this.element,g.EVENT.show).defaultPrevented)return;this.element.classList.remove(g.CLASS_NAME.folded),this.element.classList.add(g.CLASS_NAME.folding),this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(g.CLASS_NAME.folded),e.setAttribute("aria-folded","true")})),this.setTransitioning(!0);const t=E.getTransitionDurationFromElement(this.element);a.one(this.element,E.TRANSITION_END,(()=>{this.element.classList.remove(g.CLASS_NAME.folding),this.element.classList.add(g.CLASS_NAME.folded),this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===g.NAME&&this.element.parentElement.setAttribute("folded",""),this.setTransitioning(!1),a.trigger(this.element,g.EVENT.shown)})),E.emulateTransitionEnd(this.element,t)}close(){if(this.isTransitioning||!this.element.classList.contains(g.CLASS_NAME.folded))return;if(a.trigger(this.element,g.EVENT.hide).defaultPrevented)return;E.reflow(this.element),this.element.classList.add(g.CLASS_NAME.folding),this.element.classList.remove(g.CLASS_NAME.folded);const e=this.triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this.triggerArray[t],n=E.getSelectorFromElement(e);if(null!==n){document.querySelector(n).classList.contains(g.CLASS_NAME.folded)||(e.classList.remove(g.CLASS_NAME.folded),e.setAttribute("aria-folded","false"))}}this.setTransitioning(!0);const t=E.getTransitionDurationFromElement(this.element);a.one(this.element,E.TRANSITION_END,(()=>{this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===g.NAME&&this.element.parentElement.removeAttribute("folded"),this.setTransitioning(!1),this.element.classList.remove(g.CLASS_NAME.folding),a.trigger(this.element,g.EVENT.hidden)})),E.emulateTransitionEnd(this.element,t)}setTransitioning(e){this.isTransitioning=e}dispose(){document.removeEventListener("click",this.closeOnInteractOut),document.removeEventListener("keydown",this.closeOnInteractOut),a.off(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle),l.removeData(this.element,g.DATA_KEY),this.options=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}addAriaAndExpandedClass(e,t){if(e){const n=e.classList.contains(g.CLASS_NAME.folded);t.length&&t.forEach((e=>{n?e.classList.remove(g.CLASS_NAME.folded):e.classList.add(g.CLASS_NAME.folded),e.setAttribute("aria-folded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},g.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),E.typeCheckConfig(g.NAME,e,g.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=E.getSelectorFromElement(e);return t?document.querySelector(t):null}static expandInterface(e,t){let n=l.getData(e,g.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},g.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new g(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}registerEvents(){a.on(document,g.EVENT.clickDataApi,g.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=d.getDataAttributes(this),n=E.getSelectorFromElement(this);E.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=g.getInstance(e)?"toggle":t;g.expandInterface(e,n)}))}))}}return g.NAME=`${e.KEY_PREFIX}-sidebar`,g.DATA_KEY=`${e.KEY_PREFIX}.sidebar`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.DATA_API_KEY=e.KEY_PREFIX,g.hasInit=!1,g.CLASS_NAME={folding:`${e.KEY_PREFIX}-sidebar--folding`,folded:`${e.KEY_PREFIX}-sidebar--folded`},g.EVENT={show:`${n.show}${g.EVENT_KEY}`,shown:`${n.shown}${g.EVENT_KEY}`,hide:`${n.hide}${g.EVENT_KEY}`,hidden:`${n.hidden}${g.EVENT_KEY}`,clickDataApi:`${n.click}${g.EVENT_KEY}${g.DATA_API_KEY}`},g.DEFAULT_OPTIONS={folded:!1},g.DEFAULT_TYPE={folded:"boolean"},g.SELECTOR={default:`.${g.NAME}`,actives:`.${g.CLASS_NAME.folding}, .${g.NAME}`,dataToggle:'[data-toggle="sidebar"]'},s=s.default})())); | ||
//# sourceMappingURL=index.js.map |
/*! For license information please see index.js.LICENSE.txt */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Slider",[],t):"object"==typeof exports?exports.Slider=t():e.Slider=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var t={};e.d(t,{default:()=>Se}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},i=o;class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const a=new e(r[n],t);s.key||i.setData(r[n],e.DATA_KEY,a),o.push(a)}}return o}}var s,a,l,c;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(s||(s={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class p{static getUidEvent(e,t){return t&&`${t}::${p.uidEvent++}`||e.uidEvent||p.uidEvent++}static getEvent(e){const t=p.getUidEvent(e);return e.uidEvent=t,p.EVENTREGISTRY[t]=p.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&p.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(p.fixEvent(o,e),n.oneOff&&p.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const r=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let s=r.length;s>=0;s--)if(r[s]===t)return p.fixEvent(i,t),o.oneOff&&p.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,i=o?n:t;let r=e.replace(p.STRIPNAME_REGEX,"");const s=a[r];s&&(r=s);return"string"==typeof c[r]||(r=e),[o,i,r]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=p.getEvent(e);for(const s of t.split(" ")){const[t,a,l]=p.normalizeParams(s,n,o),c=r[l]||(r[l]={}),u=p.findHandler(c,a,t?n:null);if(u)return void(u.oneOff=u.oneOff&&i);const d=p.getUidEvent(a,s.replace(p.NAMESPACE_REGEX,"")),f=t?p.njDelegationHandler(e,n,o):p.njHandler(e,n);f.delegationSelector=t?n:null,f.originalHandler=a,f.oneOff=i,f.uidEvent=d,c[d]=f,e.addEventListener(l,f,t)}}static removeHandler(e,t,n,o,i){const r=p.findHandler(t[n],o,i);null!==r&&(e.removeEventListener(n,r,Boolean(i)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){const o=i[r];p.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){p.addHandler(e,t,n,o,!1)}static one(e,t,n,o){p.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,r,s]=p.normalizeParams(t,n,o),a=s!==t,l=p.getEvent(e);if(void 0!==r){if(!l||!l[s])return;return void p.removeHandler(e,l,s,r,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&p.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[s]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(p.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];p.removeHandler(e,l,s,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(p.STRIPNAME_REGEX,""),i="string"==typeof c[o];let r=null;return i?(r=document.createEvent("HTMLEvents"),r.initEvent(o,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}p.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,p.STRIPNAME_REGEX=/\..*/,p.KEYEVENT_REGEX=/^key/,p.STRIPUID_REGEX=/::\d+$/,p.EVENTREGISTRY={},p.uidEvent=1;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},d=u;var f="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,h=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(f&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var m=f&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),h))}};function g(e){return e&&"[object Function]"==={}.toString.call(e)}function E(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function v(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function b(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=E(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:b(v(e))}function T(e){return e&&e.referenceNode?e.referenceNode:e}var w=f&&!(!window.MSInputMethodContext||!document.documentMode),y=f&&/MSIE 10/.test(navigator.userAgent);function A(e){return 11===e?w:10===e?y:w||y}function S(e){if(!e)return document.documentElement;for(var t=A(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===E(n,"position")?S(n):n:e?e.ownerDocument.documentElement:document.documentElement}function N(e){return null!==e.parentNode?N(e.parentNode):e}function O(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var s,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||o.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&S(s.firstElementChild)!==s?S(l):l;var c=N(e);return c.host?O(c.host,t):O(e,N(t).host)}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=L(t,"top"),i=L(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function D(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function C(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],A(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function R(e){var t=e.body,n=e.documentElement,o=A(10)&&getComputedStyle(n);return{height:C("Height",t,n,o),width:C("Width",t,n,o)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),M=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function k(e){return I({},e,{right:e.left+e.width,bottom:e.top+e.height})}function F(e){var t={};try{if(A(10)){t=e.getBoundingClientRect();var n=L(e,"top"),o=L(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?R(e.ownerDocument):{},s=r.width||e.clientWidth||i.width,a=r.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var p=E(e);l-=D(p,"x"),c-=D(p,"y"),i.width-=l,i.height-=c}return k(i)}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=A(10),i="HTML"===t.nodeName,r=F(e),s=F(t),a=b(e),l=E(t),c=parseFloat(l.borderTopWidth,10),p=parseFloat(l.borderLeftWidth,10);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var u=k({top:r.top-s.top-c,left:r.left-s.left-p,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!o&&i){var d=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);u.top-=c-d,u.bottom-=c-d,u.left-=p-f,u.right-=p-f,u.marginTop=d,u.marginLeft=f}return(o&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(u=_(u,t)),u}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=H(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:L(n),a=t?0:L(n,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:r};return k(l)}function V(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===E(e,"position"))return!0;var n=v(e);return!!n&&V(n)}function j(e){if(!e||!e.parentElement||A())return document.documentElement;for(var t=e.parentElement;t&&"none"===E(t,"transform");)t=t.parentElement;return t||document.documentElement}function $(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=i?j(e):O(e,T(t));if("viewport"===o)r=Y(s,i);else{var a=void 0;"scrollParent"===o?"BODY"===(a=b(v(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===o?e.ownerDocument.documentElement:o;var l=H(a,s,i);if("HTML"!==a.nodeName||V(s))r=l;else{var c=R(e.ownerDocument),p=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=p+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var d="number"==typeof(n=n||0);return r.left+=d?n:n.left||0,r.top+=d?n:n.top||0,r.right-=d?n:n.right||0,r.bottom-=d?n:n.bottom||0,r}function K(e){return e.width*e.height}function G(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=$(n,o,r,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return I({key:e},a[e],{area:K(a[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),p=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return p+(u?"-"+u:"")}function U(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?j(t):O(t,T(n));return H(n,i,o)}function B(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function W(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function X(e,t,n){n=n.split("-")[0];var o=B(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[s]=t[s]+t[l]/2-o[l]/2,i[a]=n===a?t[a]-o[c]:t[W(a)],i}function q(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function z(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=q(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&g(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function J(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=U(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=G(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=X(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Q(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function ee(){return this.state.isDestroyed=!0,Q(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function te(e){var t=e.ownerDocument;return t?t.defaultView:window}function ne(e,t,n,o){var i="BODY"===e.nodeName,r=i?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),i||ne(b(r.parentNode),t,n,o),o.push(r)}function oe(e,t,n,o){n.updateBound=o,te(e).addEventListener("resize",n.updateBound,{passive:!0});var i=b(e);return ne(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ie(){this.state.eventsEnabled||(this.state=oe(this.reference,this.options,this.state,this.scheduleUpdate))}function re(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,te(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function se(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ae(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&se(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var le=f&&/Firefox/i.test(navigator.userAgent);function ce(e,t,n){var o=q(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var pe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ue=pe.slice(3);function de(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ue.indexOf(e),o=ue.slice(n+1).concat(ue.slice(0,n));return t?o.reverse():o}var fe="flip",he="clockwise",me="counterclockwise";function ge(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(q(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map((function(e,o){var i=(1===o?!r:r)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],s=i[2];if(!r)return e;if(0===s.indexOf("%")){return k("%p"===s?n:o)[t]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,o){se(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Ee={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",p={start:M({},l,r[l]),end:M({},l,r[l]+r[c]-s[c])};e.offsets.popper=I({},s,p[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,s=i.reference,a=o.split("-")[0],l=void 0;return l=se(+n)?[+n,0]:ge(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||S(e.instance.popper);e.instance.reference===n&&(n=S(n));var o=Z("transform"),i=e.instance.popper.style,r=i.top,s=i.left,a=i[o];i.top="",i.left="",i[o]="";var l=$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=s,i[o]=a,t.boundaries=l;var c=t.priority,p=e.offsets.popper,u={primary:function(e){var n=p[e];return p[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(p[e],l[e])),M({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=p[n];return p[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(p[n],l[e]-("right"===e?p.width:p.height))),M({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=I({},p,u[t](e))})),e.offsets.popper=p,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(o[l])&&(e.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[a])&&(e.offsets.popper[l]=r(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ce(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",p=l?"Top":"Left",u=p.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",h=B(o)[c];a[f]-h<s[u]&&(e.offsets.popper[u]-=s[u]-(a[f]-h)),a[u]+h>s[f]&&(e.offsets.popper[u]+=a[u]+h-s[f]),e.offsets.popper=k(e.offsets.popper);var m=a[u]+a[c]/2-h/2,g=E(e.instance.popper),v=parseFloat(g["margin"+p],10),b=parseFloat(g["border"+p+"Width"],10),T=m-e.offsets.popper[u]-v-b;return T=Math.max(Math.min(s[c]-h,T),0),e.arrowElement=o,e.offsets.arrow=(M(n={},u,Math.round(T)),M(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Q(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=W(o),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case fe:s=[o,i];break;case he:s=de(o);break;case me:s=de(o,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(o!==a||s.length===l+1)return e;o=e.placement.split("-")[0],i=W(o);var c=e.offsets.popper,p=e.offsets.reference,u=Math.floor,d="left"===o&&u(c.right)>u(p.left)||"right"===o&&u(c.left)<u(p.right)||"top"===o&&u(c.bottom)>u(p.top)||"bottom"===o&&u(c.top)<u(p.bottom),f=u(c.left)<u(n.left),h=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),E="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,v=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),T=!!t.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),w=b||T;(d||E||w)&&(e.flipped=!0,(d||E)&&(o=s[l+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=I({},e.offsets.popper,X(e.instance.popper,e.offsets.reference,e.placement)),e=z(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=r[n]-(a?i[s?"width":"height"]:0),e.placement=W(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ce(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=q(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=q(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:t.gpuAcceleration,a=S(e.instance.popper),l=F(a),c={position:i.position},p=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,s=Math.floor,a=function(e){return e},l=r(i.width),c=r(o.width),p=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),d=t?p||u||l%2==c%2?r:s:a,f=t?r:a;return{left:d(l%2==1&&c%2==1&&!u&&t?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!le),u="bottom"===n?"top":"bottom",d="right"===o?"left":"right",f=Z("transform"),h=void 0,m=void 0;if(m="bottom"===u?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-l.height+p.bottom:p.top,h="right"===d?"HTML"===a.nodeName?-a.clientWidth+p.right:-l.width+p.right:p.left,s&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[u]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===u?-1:1,E="right"===d?-1:1;c[u]=m*g,c[d]=h*E,c.willChange=u+", "+d}var v={"x-placement":e.placement};return e.attributes=I({},v,e.attributes),e.styles=I({},c,e.styles),e.arrowStyles=I({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ae(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ae(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=U(i,t,e,n.positionFixed),s=G(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),ae(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ve={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ee},be=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=m(this.update.bind(this)),this.options=I({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(I({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=I({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return I({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&g(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return P(e,[{key:"update",value:function(){return J.call(this)}},{key:"destroy",value:function(){return ee.call(this)}},{key:"enableEventListeners",value:function(){return ie.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),e}();be.Utils=("undefined"!=typeof window?window:e.g).PopperUtils,be.placements=pe,be.Defaults=ve;const Te=be;const we={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(we.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(we.TRANSITION_END,(function t(){n=!0,e.removeEventListener(we.TRANSITION_END,t)})),setTimeout((()=>{n||we.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],s=t[i],a=s&&we.isElement(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?we.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let r,s,a,l=null,c=0;const p=()=>{c=Date.now(),l=null,a=e.apply(s,r)};return()=>{const u=Date.now();c||n||(c=u);const d=t-(u-c);return s=i||this,r=arguments,d<=0?(clearTimeout(l),l=null,c=u,a=e.apply(s,r)):!l&&o&&(l=setTimeout(p,d)),a}}},ye=we;class Ae extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(Ae,e,Ae.getOptions(e,t)),this.isEnabled=!0,this.timeout=0,this.hoverState="",this.activeTrigger={},this.popper=null,this.tip=null,this.setListeners(),i.setData(e,Ae.DATA_KEY,this)}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}toggleEnabled(){this.isEnabled=!this.isEnabled}toggle(e){if(this.isEnabled)if(e){const t=Ae.DATA_KEY;let n=Ae.getInstance(e.delegateTarget);n||(n=new Ae(e.delegateTarget,this.getDelegateConfig()),i.setData(e.delegateTarget,t,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(Ae.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}}dispose(){clearTimeout(this.timeout),i.removeData(this.element,Ae.DATA_KEY),p.off(this.element,Ae.EVENT_KEY),p.off(this.element.closest(".modal"),`hide.${s.KEY_PREFIX}.modal`),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null}show(){if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){const e=p.trigger(this.element,Ae.EVENT.show),t=ye.findShadowRoot(this.element),n=null!==t?t.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(e.defaultPrevented||!n)return;const o=this.getTipElement(),r=ye.getUID(Ae.NAME);o.setAttribute("id",r),this.toggleAriaDescribedby(!0,r),this.setContent(),this.options.animation&&o.classList.add(Ae.CLASS_NAME.fade);const s="function"==typeof this.options.placement?this.options.placement.call(this,o,this.element):this.options.placement,a=Ae.getAttachment(s);this.addAttachmentClass(a),this.options.arrow||this.getTipElement().classList.add(Ae.CLASS_NAME.withoutArrow),"inverse"===this.options.variant&&this.getTipElement().classList.add(Ae.CLASS_NAME.inverse);const l=this.getContainer();i.setData(o,Ae.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||l.appendChild(o),p.trigger(this.element,Ae.EVENT.inserted),this.popper=new Te(this.element,o,{placement:a,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:Ae.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:e=>{e.originalPlacement!==e.placement&&this.handlePopperPlacementChange(e)},onUpdate:e=>this.handlePopperPlacementChange(e)}),o.classList.add(Ae.CLASS_NAME.show),"ontouchstart"in document.documentElement&&ye.makeArray(document.body.children).forEach((e=>{p.on(e,"mouseover")}));const c=()=>{this.options.animation&&this.fixTransition();const e=this.hoverState;this.hoverState=null,p.trigger(this.element,Ae.EVENT.shown),e===Ae.HOVER_STATE.out&&this.leave(null,this)};if(this.tip.classList.contains(Ae.CLASS_NAME.fade)){const e=ye.getTransitionDurationFromElement(this.tip);p.one(this.tip,ye.TRANSITION_END,c),ye.emulateTransitionEnd(this.tip,e)}else c()}}hide(e){const t=this.getTipElement(),n=()=>{this.element&&(this.hoverState!==Ae.HOVER_STATE.show&&t.parentNode&&t.parentNode.removeChild(t),this.cleanTipClass(),this.toggleAriaDescribedby(!1),p.trigger(this.element,Ae.EVENT.hidden),null!==this.popper&&this.popper.destroy(),e&&e())};if(!p.trigger(this.element,Ae.EVENT.hide).defaultPrevented){if(t.classList.remove(Ae.CLASS_NAME.show),"ontouchstart"in document.documentElement&&ye.makeArray(document.body.children).forEach((e=>p.off(e,"mouseover"))),this.activeTrigger[Ae.TRIGGER.click]=!1,this.activeTrigger[Ae.TRIGGER.focus]=!1,this.activeTrigger[Ae.TRIGGER.hover]=!1,this.tip.classList.contains(Ae.CLASS_NAME.fade)){const e=ye.getTransitionDurationFromElement(t);p.one(t,ye.TRANSITION_END,n),ye.emulateTransitionEnd(t,e)}else n();this.hoverState=""}}update(){null!==this.popper&&this.popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(e){this.getTipElement().classList.add(`${Ae.CLASS_NAME.default}--${e}`)}toggleAriaDescribedby(e,t){const n=this.element.hasAttribute("data-tooltip-wrapper")?this.element.firstElementChild:this.element;e?n.setAttribute("aria-describedby",t):n.removeAttribute("aria-describedby")}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this.options.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(e.querySelector(Ae.SELECTOR.inner),this.getTitle()),e.classList.remove(Ae.CLASS_NAME.fade),e.classList.remove(Ae.CLASS_NAME.show)}setElementContent(e,t){if(null===e)return;const n=this.options.html;"object"==typeof t&&t.nodeType?n?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.innerText=t.textContent:e[n?"innerHTML":"innerText"]=t}getTitle(){let e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),e}getContainer(){return!1===this.options.container?document.body:ye.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)}setListeners(){this.options.trigger.split(" ").forEach((e=>{if("click"===e)p.on(this.element,Ae.EVENT.click,this.options.selector,(e=>this.toggle(e)));else if(e!==Ae.TRIGGER.manual){const t=e===Ae.TRIGGER.hover?Ae.EVENT.mouseenter:Ae.EVENT.focusin,n=e===Ae.TRIGGER.hover?Ae.EVENT.mouseleave:Ae.EVENT.focusout;p.on(this.element,t,this.options.selector,(e=>this.enter(e))),p.on(this.element,n,this.options.selector,(e=>this.leave(e)))}})),p.on(this.element.closest(".modal"),`hide.${s.KEY_PREFIX}.modal`,(()=>{this.element&&this.hide()})),this.options.selector?this.options=Object.assign(Object.assign({},this.options),{trigger:"manual",selector:""}):this.fixTitle()}fixTitle(){const e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}enter(e,t){const n=Ae.DATA_KEY;if((t=t||i.getData(e.delegateTarget,n))||(t=new Ae(e.delegateTarget,this.getDelegateConfig()),i.setData(e.delegateTarget,n,t)),e){const n="focusin"===e.type?Ae.TRIGGER.focus:Ae.TRIGGER.hover;t.activeTrigger[n]=!0}t.getTipElement().classList.contains(Ae.CLASS_NAME.show)||t.hoverState===Ae.HOVER_STATE.show?t.hoverState=Ae.HOVER_STATE.show:(clearTimeout(t.timeout),t.hoverState=Ae.HOVER_STATE.show,t.options.delay&&t.options.delay.show?t.timeout=setTimeout((()=>{t._hoverState===Ae.HOVER_STATE.show&&t.show()}),t.options.delay.show):t.show())}leave(e,t){const n=Ae.DATA_KEY;if((t=t||i.getData(e.delegateTarget,n))||(t=new Ae(e.delegateTarget,this.getDelegateConfig()),i.setData(e.delegateTarget,n,t)),e){const n="focusout"===e.type?Ae.TRIGGER.focus:Ae.TRIGGER.hover;t.activeTrigger[n]=!1}t.isWithActiveTrigger()||(clearTimeout(t.timeout),t.hoverState=Ae.HOVER_STATE.out,t.options.delay&&t.options.delay.hide?t.timeout=setTimeout((()=>{t.hoverState===Ae.HOVER_STATE.out&&t.hide()}),t.options.delay.hide):t.hide())}isWithActiveTrigger(){for(const e in this.activeTrigger)if(this.activeTrigger[e])return!0;return!1}static getOptions(e,t){return"number"==typeof(t=Object.assign(Object.assign(Object.assign({},Ae.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),ye.typeCheckConfig(Ae.NAME,t,Ae.DEFAULT_TYPE),t}getDelegateConfig(){const e={};if(this.options)for(const t in this.options)Ae.DEFAULT_OPTIONS[t]!==this.options[t]&&(e[t]=this.options[t]);return e}cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(Ae.NJCLS_PREFIX_REGEX);null!==t&&t.length&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}handlePopperPlacementChange(e){const t=e.instance;this.tip=t.popper,this.cleanTipClass(),this.addAttachmentClass(Ae.getAttachment(e.placement))}fixTransition(){const e=this.getTipElement(),t=this.options.animation;null===e.getAttribute("x-placement")&&(e.classList.remove(Ae.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=t)}static getAttachment(e){return Ae.ATTACHMENT_MAP[e.toUpperCase()]}static getInstance(e){return i.getData(e,Ae.DATA_KEY)}static init(){return[]}}Ae.NAME=`${s.KEY_PREFIX}-tooltip`,Ae.DATA_KEY=`${s.KEY_PREFIX}.tooltip`,Ae.EVENT_KEY=`.${Ae.DATA_KEY}`,Ae.CLASS_NAME={default:`${s.KEY_PREFIX}-tooltip`,inner:`${s.KEY_PREFIX}-tooltip__inner`,arrow:`${s.KEY_PREFIX}-tooltip__arrow`,withoutArrow:`${s.KEY_PREFIX}-tooltip--without-arrow`,inverse:`${s.KEY_PREFIX}-tooltip--inverse`,fade:"fade",show:"show"},Ae.NJCLS_PREFIX_REGEX=new RegExp(`(^|\\s)${Ae.CLASS_NAME.default}\\S+`,"g"),Ae.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},Ae.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ae.DEFAULT_OPTIONS={animation:!0,template:`<div class="${Ae.CLASS_NAME.default}" role="tooltip"><div class="${Ae.CLASS_NAME.arrow}"></div><div class="${Ae.CLASS_NAME.inner}"></div></div>`,trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},Ae.HOVER_STATE={show:"show",out:"out"},Ae.EVENT={hide:`${l.hide}${Ae.EVENT_KEY}`,hidden:`${l.hidden}${Ae.EVENT_KEY}`,show:`${l.show}${Ae.EVENT_KEY}`,shown:`${l.shown}${Ae.EVENT_KEY}`,inserted:`${l.inserted}${Ae.EVENT_KEY}`,click:`${l.click}${Ae.EVENT_KEY}`,focusin:`${l.focusin}${Ae.EVENT_KEY}`,focusout:`${l.focusout}${Ae.EVENT_KEY}`,mouseenter:`${l.mouseenter}${Ae.EVENT_KEY}`,mouseleave:`${l.mouseleave}${Ae.EVENT_KEY}`},Ae.SELECTOR={default:'[data-toggle="tooltip"]',inner:`.${Ae.CLASS_NAME.inner}`,arrow:`.${Ae.CLASS_NAME.arrow}`,tooltip:`.${s.KEY_PREFIX}-tooltip`},Ae.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"};class Se extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(Se,e,Se.getOptions(e,t)),this.dataId=Number(String(Math.random()).slice(2))+Date.now(),this.input=this.element.querySelector(Se.SELECTOR.input),this.element.setAttribute("data-id",this.dataId.toString()),this.refreshProgressValue(),this.setListeners(),this.options.tooltip&&(this.addTooltip(),this.setTooltipListeners()),i.setData(e,Se.DATA_KEY,this)}addTooltip(){this.tooltip=d.createHtmlNode(Ae.DEFAULT_OPTIONS.template),this.tooltip.classList.add(`${s.KEY_PREFIX}-tooltip--top`),this.tooltip.classList.add(`${s.KEY_PREFIX}-tooltip--without-arrow`);this.tooltip.key={key:"",id:""},this.tooltip.classList.add("show"),this.element.insertBefore(this.tooltip,this.element.querySelector(Se.SELECTOR.label)),this.refreshTooltipValue()}setListeners(){p.on(this.element,"input change keyup",(()=>{this.refreshProgressValue()}))}setTooltipListeners(){p.on(this.element,"input change keyup",(()=>{this.refreshTooltipValue()}));let e=!1;p.on(document,"resize",(()=>{e||(this.refreshTooltipValue(),e=!0,setTimeout((()=>{e=!1}),100))}))}refreshProgressValue(){const e=document.querySelector(`[data-id='${this.dataId}']`);if(e){const t=parseFloat(this.input.max)||Se.PERCENT_CONV,n=parseFloat(this.input.min)||0,o=parseFloat(this.input.value),i=Math.floor(Se.PERCENT_CONV*(o-n)/(t-n));e.style.setProperty("--nj-slider-track-position",`${i}% 100%`)}}refreshTooltipValue(){this.tooltip.querySelector(Ae.SELECTOR.inner).innerHTML=this.input.value,this.replaceTooltip()}replaceTooltip(){const e=""===this.input.min?0:parseFloat(this.input.min),t=""===this.input.max?100:parseFloat(this.input.max),n=(parseFloat(this.input.value)-e)/(t-e);this.tooltip.style.left=n*(this.input.offsetWidth-Se.THUMB_WIDTH)-this.tooltip.offsetWidth/2+Se.THUMB_WIDTH/2+"px"}static getOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Object.assign(Object.assign(Object.assign({},Se.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{}),ye.typeCheckConfig(Se.NAME,t,Se.DEFAULT_TYPE),t}dispose(){p.off(this.element,"input change keyup"),p.off(document,"resize"),i.removeData(this.element,Se.DATA_KEY),this.element=null}static getInstance(e){return i.getData(e,Se.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,Se.SELECTOR.default)}}return Se.NAME=`${s.KEY_PREFIX}-slider`,Se.DATA_KEY=`${s.KEY_PREFIX}.slider`,Se.CLASS_NAME=`${s.KEY_PREFIX}-slider`,Se.SELECTOR={default:`.${Se.CLASS_NAME}`,input:"input",label:"label"},Se.THUMB_WIDTH=16,Se.DEFAULT_TYPE={tooltip:"boolean"},Se.DEFAULT_OPTIONS={tooltip:!1},Se.PERCENT_CONV=100,Se.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"],t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Slider",[],t):"object"==typeof exports?exports.Slider=t():e.Slider=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var t={};e.d(t,{default:()=>Se}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},i=o;class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const a=new e(r[n],t);s.key||i.setData(r[n],e.DATA_KEY,a),o.push(a)}}return o}}var s,a,l,c;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(s||(s={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class p{static getUidEvent(e,t){return t&&`${t}::${p.uidEvent++}`||e.uidEvent||p.uidEvent++}static getEvent(e){const t=p.getUidEvent(e);return e.uidEvent=t,p.EVENTREGISTRY[t]=p.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&p.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(p.fixEvent(o,e),n.oneOff&&p.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const r=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let s=r.length;s>=0;s--)if(r[s]===t)return p.fixEvent(i,t),o.oneOff&&p.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,i=o?n:t;let r=e.replace(p.STRIPNAME_REGEX,"");const s=a[r];s&&(r=s);return"string"==typeof c[r]||(r=e),[o,i,r]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=p.getEvent(e);for(const s of t.split(" ")){const[t,a,l]=p.normalizeParams(s,n,o),c=r[l]||(r[l]={}),u=p.findHandler(c,a,t?n:null);if(u)return void(u.oneOff=u.oneOff&&i);const d=p.getUidEvent(a,s.replace(p.NAMESPACE_REGEX,"")),f=t?p.njDelegationHandler(e,n,o):p.njHandler(e,n);f.delegationSelector=t?n:null,f.originalHandler=a,f.oneOff=i,f.uidEvent=d,c[d]=f,e.addEventListener(l,f,t)}}static removeHandler(e,t,n,o,i){const r=p.findHandler(t[n],o,i);null!==r&&(e.removeEventListener(n,r,Boolean(i)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){const o=i[r];p.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){p.addHandler(e,t,n,o,!1)}static one(e,t,n,o){p.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,r,s]=p.normalizeParams(t,n,o),a=s!==t,l=p.getEvent(e);if(void 0!==r){if(!l||!l[s])return;return void p.removeHandler(e,l,s,r,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&p.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[s]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(p.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];p.removeHandler(e,l,s,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(p.STRIPNAME_REGEX,""),i="string"==typeof c[o];let r=null;return i?(r=document.createEvent("HTMLEvents"),r.initEvent(o,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}p.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,p.STRIPNAME_REGEX=/\..*/,p.KEYEVENT_REGEX=/^key/,p.STRIPUID_REGEX=/::\d+$/,p.EVENTREGISTRY={},p.uidEvent=1;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},d=u;var f="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,h=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(f&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var m=f&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),h))}};function g(e){return e&&"[object Function]"==={}.toString.call(e)}function E(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function v(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function b(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=E(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:b(v(e))}function T(e){return e&&e.referenceNode?e.referenceNode:e}var w=f&&!(!window.MSInputMethodContext||!document.documentMode),y=f&&/MSIE 10/.test(navigator.userAgent);function A(e){return 11===e?w:10===e?y:w||y}function S(e){if(!e)return document.documentElement;for(var t=A(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===E(n,"position")?S(n):n:e?e.ownerDocument.documentElement:document.documentElement}function N(e){return null!==e.parentNode?N(e.parentNode):e}function O(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var s,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||o.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&S(s.firstElementChild)!==s?S(l):l;var c=N(e);return c.host?O(c.host,t):O(e,N(t).host)}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=L(t,"top"),i=L(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function D(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function C(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],A(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function R(e){var t=e.body,n=e.documentElement,o=A(10)&&getComputedStyle(n);return{height:C("Height",t,n,o),width:C("Width",t,n,o)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),M=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function k(e){return I({},e,{right:e.left+e.width,bottom:e.top+e.height})}function F(e){var t={};try{if(A(10)){t=e.getBoundingClientRect();var n=L(e,"top"),o=L(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?R(e.ownerDocument):{},s=r.width||e.clientWidth||i.width,a=r.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var p=E(e);l-=D(p,"x"),c-=D(p,"y"),i.width-=l,i.height-=c}return k(i)}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=A(10),i="HTML"===t.nodeName,r=F(e),s=F(t),a=b(e),l=E(t),c=parseFloat(l.borderTopWidth,10),p=parseFloat(l.borderLeftWidth,10);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var u=k({top:r.top-s.top-c,left:r.left-s.left-p,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!o&&i){var d=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);u.top-=c-d,u.bottom-=c-d,u.left-=p-f,u.right-=p-f,u.marginTop=d,u.marginLeft=f}return(o&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(u=_(u,t)),u}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=H(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:L(n),a=t?0:L(n,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:r};return k(l)}function V(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===E(e,"position"))return!0;var n=v(e);return!!n&&V(n)}function j(e){if(!e||!e.parentElement||A())return document.documentElement;for(var t=e.parentElement;t&&"none"===E(t,"transform");)t=t.parentElement;return t||document.documentElement}function $(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=i?j(e):O(e,T(t));if("viewport"===o)r=Y(s,i);else{var a=void 0;"scrollParent"===o?"BODY"===(a=b(v(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===o?e.ownerDocument.documentElement:o;var l=H(a,s,i);if("HTML"!==a.nodeName||V(s))r=l;else{var c=R(e.ownerDocument),p=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=p+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var d="number"==typeof(n=n||0);return r.left+=d?n:n.left||0,r.top+=d?n:n.top||0,r.right-=d?n:n.right||0,r.bottom-=d?n:n.bottom||0,r}function K(e){return e.width*e.height}function G(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=$(n,o,r,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return I({key:e},a[e],{area:K(a[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),p=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return p+(u?"-"+u:"")}function U(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?j(t):O(t,T(n));return H(n,i,o)}function B(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function W(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function X(e,t,n){n=n.split("-")[0];var o=B(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[s]=t[s]+t[l]/2-o[l]/2,i[a]=n===a?t[a]-o[c]:t[W(a)],i}function q(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function z(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=q(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&g(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function J(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=U(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=G(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=X(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Q(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function ee(){return this.state.isDestroyed=!0,Q(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function te(e){var t=e.ownerDocument;return t?t.defaultView:window}function ne(e,t,n,o){var i="BODY"===e.nodeName,r=i?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),i||ne(b(r.parentNode),t,n,o),o.push(r)}function oe(e,t,n,o){n.updateBound=o,te(e).addEventListener("resize",n.updateBound,{passive:!0});var i=b(e);return ne(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ie(){this.state.eventsEnabled||(this.state=oe(this.reference,this.options,this.state,this.scheduleUpdate))}function re(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,te(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function se(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ae(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&se(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var le=f&&/Firefox/i.test(navigator.userAgent);function ce(e,t,n){var o=q(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var pe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ue=pe.slice(3);function de(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ue.indexOf(e),o=ue.slice(n+1).concat(ue.slice(0,n));return t?o.reverse():o}var fe="flip",he="clockwise",me="counterclockwise";function ge(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(q(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map((function(e,o){var i=(1===o?!r:r)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],s=i[2];if(!r)return e;if(0===s.indexOf("%")){return k("%p"===s?n:o)[t]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,o){se(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var Ee={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",p={start:M({},l,r[l]),end:M({},l,r[l]+r[c]-s[c])};e.offsets.popper=I({},s,p[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,s=i.reference,a=o.split("-")[0],l=void 0;return l=se(+n)?[+n,0]:ge(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||S(e.instance.popper);e.instance.reference===n&&(n=S(n));var o=Z("transform"),i=e.instance.popper.style,r=i.top,s=i.left,a=i[o];i.top="",i.left="",i[o]="";var l=$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=s,i[o]=a,t.boundaries=l;var c=t.priority,p=e.offsets.popper,u={primary:function(e){var n=p[e];return p[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(p[e],l[e])),M({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=p[n];return p[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(p[n],l[e]-("right"===e?p.width:p.height))),M({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=I({},p,u[t](e))})),e.offsets.popper=p,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(o[l])&&(e.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[a])&&(e.offsets.popper[l]=r(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ce(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",p=l?"Top":"Left",u=p.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",h=B(o)[c];a[f]-h<s[u]&&(e.offsets.popper[u]-=s[u]-(a[f]-h)),a[u]+h>s[f]&&(e.offsets.popper[u]+=a[u]+h-s[f]),e.offsets.popper=k(e.offsets.popper);var m=a[u]+a[c]/2-h/2,g=E(e.instance.popper),v=parseFloat(g["margin"+p],10),b=parseFloat(g["border"+p+"Width"],10),T=m-e.offsets.popper[u]-v-b;return T=Math.max(Math.min(s[c]-h,T),0),e.arrowElement=o,e.offsets.arrow=(M(n={},u,Math.round(T)),M(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Q(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=W(o),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case fe:s=[o,i];break;case he:s=de(o);break;case me:s=de(o,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(o!==a||s.length===l+1)return e;o=e.placement.split("-")[0],i=W(o);var c=e.offsets.popper,p=e.offsets.reference,u=Math.floor,d="left"===o&&u(c.right)>u(p.left)||"right"===o&&u(c.left)<u(p.right)||"top"===o&&u(c.bottom)>u(p.top)||"bottom"===o&&u(c.top)<u(p.bottom),f=u(c.left)<u(n.left),h=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),E="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,v=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),T=!!t.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),w=b||T;(d||E||w)&&(e.flipped=!0,(d||E)&&(o=s[l+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=I({},e.offsets.popper,X(e.instance.popper,e.offsets.reference,e.placement)),e=z(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=r[n]-(a?i[s?"width":"height"]:0),e.placement=W(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ce(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=q(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=q(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:t.gpuAcceleration,a=S(e.instance.popper),l=F(a),c={position:i.position},p=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,s=Math.floor,a=function(e){return e},l=r(i.width),c=r(o.width),p=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),d=t?p||u||l%2==c%2?r:s:a,f=t?r:a;return{left:d(l%2==1&&c%2==1&&!u&&t?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!le),u="bottom"===n?"top":"bottom",d="right"===o?"left":"right",f=Z("transform"),h=void 0,m=void 0;if(m="bottom"===u?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-l.height+p.bottom:p.top,h="right"===d?"HTML"===a.nodeName?-a.clientWidth+p.right:-l.width+p.right:p.left,s&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[u]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===u?-1:1,E="right"===d?-1:1;c[u]=m*g,c[d]=h*E,c.willChange=u+", "+d}var v={"x-placement":e.placement};return e.attributes=I({},v,e.attributes),e.styles=I({},c,e.styles),e.arrowStyles=I({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ae(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ae(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=U(i,t,e,n.positionFixed),s=G(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),ae(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ve={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ee},be=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=m(this.update.bind(this)),this.options=I({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(I({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=I({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return I({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&g(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return P(e,[{key:"update",value:function(){return J.call(this)}},{key:"destroy",value:function(){return ee.call(this)}},{key:"enableEventListeners",value:function(){return ie.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),e}();be.Utils=("undefined"!=typeof window?window:e.g).PopperUtils,be.placements=pe,be.Defaults=ve;const Te=be;const we={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(we.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(we.TRANSITION_END,(function t(){n=!0,e.removeEventListener(we.TRANSITION_END,t)})),setTimeout((()=>{n||we.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],s=t[i],a=s&&we.isElement(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?we.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let r,s,a,l=null,c=0;const p=()=>{c=Date.now(),l=null,a=e.apply(s,r)};return()=>{const u=Date.now();c||n||(c=u);const d=t-(u-c);return s=i||this,r=arguments,d<=0?(clearTimeout(l),l=null,c=u,a=e.apply(s,r)):!l&&o&&(l=setTimeout(p,d)),a}}},ye=we;class Ae extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(Ae,e,Ae.getOptions(e,t)),this.isEnabled=!0,this.timeout=0,this.hoverState="",this.activeTrigger={},this.popper=null,this.tip=null,this.setListeners(),i.setData(e,Ae.DATA_KEY,this)}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}toggleEnabled(){this.isEnabled=!this.isEnabled}toggle(e){if(this.isEnabled)if(e){const t=Ae.DATA_KEY;let n=Ae.getInstance(e.delegateTarget);n||(n=new Ae(e.delegateTarget,this.getDelegateConfig()),i.setData(e.delegateTarget,t,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(Ae.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}}dispose(){clearTimeout(this.timeout),i.removeData(this.element,Ae.DATA_KEY),p.off(this.element,Ae.EVENT_KEY),p.off(this.element.closest(".modal"),`hide.${s.KEY_PREFIX}.modal`),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null}show(){if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){const e=p.trigger(this.element,Ae.EVENT.show),t=ye.findShadowRoot(this.element),n=null!==t?t.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(e.defaultPrevented||!n)return;const o=this.getTipElement(),r=ye.getUID(Ae.NAME);o.setAttribute("id",r),this.toggleAriaDescribedby(!0,r),this.setContent(),this.options.animation&&o.classList.add(Ae.CLASS_NAME.fade);const s="function"==typeof this.options.placement?this.options.placement.call(this,o,this.element):this.options.placement,a=Ae.getAttachment(s);this.addAttachmentClass(a),this.options.arrow||this.getTipElement().classList.add(Ae.CLASS_NAME.withoutArrow),"inverse"===this.options.variant&&this.getTipElement().classList.add(Ae.CLASS_NAME.inverse);const l=this.getContainer();i.setData(o,Ae.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||l.appendChild(o),p.trigger(this.element,Ae.EVENT.inserted),this.popper=new Te(this.element,o,{placement:a,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:Ae.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:e=>{e.originalPlacement!==e.placement&&this.handlePopperPlacementChange(e)},onUpdate:e=>this.handlePopperPlacementChange(e)}),o.classList.add(Ae.CLASS_NAME.show),"ontouchstart"in document.documentElement&&ye.makeArray(document.body.children).forEach((e=>{p.on(e,"mouseover")}));const c=()=>{this.options.animation&&this.fixTransition();const e=this.hoverState;this.hoverState=null,p.trigger(this.element,Ae.EVENT.shown),e===Ae.HOVER_STATE.out&&this.leave(null,this)};if(this.tip.classList.contains(Ae.CLASS_NAME.fade)){const e=ye.getTransitionDurationFromElement(this.tip);p.one(this.tip,ye.TRANSITION_END,c),ye.emulateTransitionEnd(this.tip,e)}else c()}}hide(e){const t=this.getTipElement(),n=()=>{this.element&&(this.hoverState!==Ae.HOVER_STATE.show&&t.parentNode&&t.parentNode.removeChild(t),this.cleanTipClass(),this.toggleAriaDescribedby(!1),p.trigger(this.element,Ae.EVENT.hidden),null!==this.popper&&this.popper.destroy(),e&&e())};if(!p.trigger(this.element,Ae.EVENT.hide).defaultPrevented){if(t.classList.remove(Ae.CLASS_NAME.show),"ontouchstart"in document.documentElement&&ye.makeArray(document.body.children).forEach((e=>p.off(e,"mouseover"))),this.activeTrigger[Ae.TRIGGER.click]=!1,this.activeTrigger[Ae.TRIGGER.focus]=!1,this.activeTrigger[Ae.TRIGGER.hover]=!1,this.tip.classList.contains(Ae.CLASS_NAME.fade)){const e=ye.getTransitionDurationFromElement(t);p.one(t,ye.TRANSITION_END,n),ye.emulateTransitionEnd(t,e)}else n();this.hoverState=""}}update(){null!==this.popper&&this.popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(e){this.getTipElement().classList.add(`${Ae.CLASS_NAME.default}--${e}`)}toggleAriaDescribedby(e,t){const n=this.element.hasAttribute("data-tooltip-wrapper")?this.element.firstElementChild:this.element;e?n.setAttribute("aria-describedby",t):n.removeAttribute("aria-describedby")}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this.options.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(e.querySelector(Ae.SELECTOR.inner),this.getTitle()),e.classList.remove(Ae.CLASS_NAME.fade),e.classList.remove(Ae.CLASS_NAME.show)}setElementContent(e,t){if(null===e)return;const n=this.options.html;"object"==typeof t&&t.nodeType?n?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.innerText=t.textContent:e[n?"innerHTML":"innerText"]=t}getTitle(){let e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),e}getContainer(){return!1===this.options.container?document.body:ye.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)}setListeners(){this.options.trigger.split(" ").forEach((e=>{if("click"===e)p.on(this.element,Ae.EVENT.click,this.options.selector,(e=>this.toggle(e)));else if(e!==Ae.TRIGGER.manual){const t=e===Ae.TRIGGER.hover?Ae.EVENT.mouseenter:Ae.EVENT.focusin,n=e===Ae.TRIGGER.hover?Ae.EVENT.mouseleave:Ae.EVENT.focusout;p.on(this.element,t,this.options.selector,(e=>this.enter(e))),p.on(this.element,n,this.options.selector,(e=>this.leave(e)))}})),p.on(this.element.closest(".modal"),`hide.${s.KEY_PREFIX}.modal`,(()=>{this.element&&this.hide()})),this.options.selector?this.options=Object.assign(Object.assign({},this.options),{trigger:"manual",selector:""}):this.fixTitle()}fixTitle(){const e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}enter(e,t){const n=Ae.DATA_KEY;if((t=t||i.getData(e.delegateTarget,n))||(t=new Ae(e.delegateTarget,this.getDelegateConfig()),i.setData(e.delegateTarget,n,t)),e){const n="focusin"===e.type?Ae.TRIGGER.focus:Ae.TRIGGER.hover;t.activeTrigger[n]=!0}t.getTipElement().classList.contains(Ae.CLASS_NAME.show)||t.hoverState===Ae.HOVER_STATE.show?t.hoverState=Ae.HOVER_STATE.show:(clearTimeout(t.timeout),t.hoverState=Ae.HOVER_STATE.show,t.options.delay&&t.options.delay.show?t.timeout=setTimeout((()=>{t._hoverState===Ae.HOVER_STATE.show&&t.show()}),t.options.delay.show):t.show())}leave(e,t){const n=Ae.DATA_KEY;if((t=t||i.getData(e.delegateTarget,n))||(t=new Ae(e.delegateTarget,this.getDelegateConfig()),i.setData(e.delegateTarget,n,t)),e){const n="focusout"===e.type?Ae.TRIGGER.focus:Ae.TRIGGER.hover;t.activeTrigger[n]=!1}t.isWithActiveTrigger()||(clearTimeout(t.timeout),t.hoverState=Ae.HOVER_STATE.out,t.options.delay&&t.options.delay.hide?t.timeout=setTimeout((()=>{t.hoverState===Ae.HOVER_STATE.out&&t.hide()}),t.options.delay.hide):t.hide())}isWithActiveTrigger(){for(const e in this.activeTrigger)if(this.activeTrigger[e])return!0;return!1}static getOptions(e,t){return"number"==typeof(t=Object.assign(Object.assign(Object.assign({},Ae.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),ye.typeCheckConfig(Ae.NAME,t,Ae.DEFAULT_TYPE),t}getDelegateConfig(){const e={};if(this.options)for(const t in this.options)Ae.DEFAULT_OPTIONS[t]!==this.options[t]&&(e[t]=this.options[t]);return e}cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(Ae.NJCLS_PREFIX_REGEX);null!==t&&t.length&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}handlePopperPlacementChange(e){const t=e.instance;this.tip=t.popper,this.cleanTipClass(),this.addAttachmentClass(Ae.getAttachment(e.placement))}fixTransition(){const e=this.getTipElement(),t=this.options.animation;null===e.getAttribute("x-placement")&&(e.classList.remove(Ae.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=t)}static getAttachment(e){return Ae.ATTACHMENT_MAP[e.toUpperCase()]}static getInstance(e){return i.getData(e,Ae.DATA_KEY)}static init(){return[]}}Ae.NAME=`${s.KEY_PREFIX}-tooltip`,Ae.DATA_KEY=`${s.KEY_PREFIX}.tooltip`,Ae.EVENT_KEY=`.${Ae.DATA_KEY}`,Ae.CLASS_NAME={default:`${s.KEY_PREFIX}-tooltip`,inner:`${s.KEY_PREFIX}-tooltip__inner`,arrow:`${s.KEY_PREFIX}-tooltip__arrow`,withoutArrow:`${s.KEY_PREFIX}-tooltip--without-arrow`,inverse:`${s.KEY_PREFIX}-tooltip--inverse`,fade:"fade",show:"show"},Ae.NJCLS_PREFIX_REGEX=new RegExp(`(^|\\s)${Ae.CLASS_NAME.default}\\S+`,"g"),Ae.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},Ae.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ae.DEFAULT_OPTIONS={animation:!0,template:`<div class="${Ae.CLASS_NAME.default}" role="tooltip"><div class="${Ae.CLASS_NAME.arrow}"></div><div class="${Ae.CLASS_NAME.inner}"></div></div>`,trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},Ae.HOVER_STATE={show:"show",out:"out"},Ae.EVENT={hide:`${l.hide}${Ae.EVENT_KEY}`,hidden:`${l.hidden}${Ae.EVENT_KEY}`,show:`${l.show}${Ae.EVENT_KEY}`,shown:`${l.shown}${Ae.EVENT_KEY}`,inserted:`${l.inserted}${Ae.EVENT_KEY}`,click:`${l.click}${Ae.EVENT_KEY}`,focusin:`${l.focusin}${Ae.EVENT_KEY}`,focusout:`${l.focusout}${Ae.EVENT_KEY}`,mouseenter:`${l.mouseenter}${Ae.EVENT_KEY}`,mouseleave:`${l.mouseleave}${Ae.EVENT_KEY}`},Ae.SELECTOR={default:'[data-toggle="tooltip"]',inner:`.${Ae.CLASS_NAME.inner}`,arrow:`.${Ae.CLASS_NAME.arrow}`,tooltip:`.${s.KEY_PREFIX}-tooltip`},Ae.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"};class Se extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(Se,e,Se.getOptions(e,t)),this.dataId=Number(String(Math.random()).slice(2))+Date.now(),this.input=this.element.querySelector(Se.SELECTOR.input),this.element.setAttribute("data-id",this.dataId.toString()),this.refreshProgressValue(),this.setListeners(),this.options.tooltip&&(this.addTooltip(),this.setTooltipListeners()),i.setData(e,Se.DATA_KEY,this)}addTooltip(){this.tooltip=d.createHtmlNode(Ae.DEFAULT_OPTIONS.template),this.tooltip.classList.add(`${s.KEY_PREFIX}-tooltip--top`),this.tooltip.classList.add(`${s.KEY_PREFIX}-tooltip--without-arrow`);this.tooltip.key={key:"",id:""},this.tooltip.classList.add("show"),this.element.insertBefore(this.tooltip,this.element.querySelector(Se.SELECTOR.label)),this.refreshTooltipValue()}setListeners(){p.on(this.element,"input change keyup",(()=>{this.refreshProgressValue()}))}setTooltipListeners(){p.on(this.element,"input change keyup",(()=>{this.refreshTooltipValue()}));let e=!1;p.on(document,"resize",(()=>{e||(this.refreshTooltipValue(),e=!0,setTimeout((()=>{e=!1}),100))}))}refreshProgressValue(){const e=document.querySelector(`[data-id='${this.dataId}']`);if(e){const t=parseFloat(this.input.max)||Se.PERCENT_CONV,n=parseFloat(this.input.min)||0,o=parseFloat(this.input.value),i=Se.PERCENT_CONV*(o-n)/(t-n);e.style.setProperty("--nj-slider-track-position",`${i}% 100%`)}}refreshTooltipValue(){this.tooltip.querySelector(Ae.SELECTOR.inner).innerHTML=this.input.value,this.replaceTooltip()}replaceTooltip(){const e=""===this.input.min?0:parseFloat(this.input.min),t=""===this.input.max?100:parseFloat(this.input.max),n=(parseFloat(this.input.value)-e)/(t-e);this.tooltip.style.left=n*(this.input.offsetWidth-Se.THUMB_WIDTH)-this.tooltip.offsetWidth/2+Se.THUMB_WIDTH/2+"px"}static getOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Object.assign(Object.assign(Object.assign({},Se.DEFAULT_OPTIONS),d.getDataAttributes(e)),"object"==typeof t&&t?t:{}),ye.typeCheckConfig(Se.NAME,t,Se.DEFAULT_TYPE),t}dispose(){p.off(this.element,"input change keyup"),p.off(document,"resize"),i.removeData(this.element,Se.DATA_KEY),this.element=null}static getInstance(e){return i.getData(e,Se.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,Se.SELECTOR.default)}}return Se.NAME=`${s.KEY_PREFIX}-slider`,Se.DATA_KEY=`${s.KEY_PREFIX}.slider`,Se.CLASS_NAME=`${s.KEY_PREFIX}-slider`,Se.SELECTOR={default:`.${Se.CLASS_NAME}`,input:"input",label:"label"},Se.THUMB_WIDTH=16,Se.DEFAULT_TYPE={tooltip:"boolean"},Se.DEFAULT_OPTIONS={tooltip:!1},Se.PERCENT_CONV=100,Se.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"],t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tab",[],t):"object"==typeof exports?exports.Tab=t():e.Tab=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>u}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},s=n;var r,i,c,a;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(r||(r={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(i||(i={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class u extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],r=document.querySelectorAll(o);for(let o=0;o<r.length;o++){const i=r[o];if(!i.key||i.key.key!==e.DATA_KEY){const c=new e(r[o],t);i.key||s.setData(r[o],e.DATA_KEY,c),n.push(c)}}return n}}{constructor(e){super(u,e),this.currentIndex=null,this.show=e=>{const t=e.currentTarget;if(!t.getAttribute("disabled")){this.tabs.forEach(((e,o)=>{e===t&&(this.currentIndex=o),e.classList.remove(u.CLASS_NAME.itemActive),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"),this.element.querySelectorAll(u.CLASS_NAME.tabContent)[o].classList.remove(u.CLASS_NAME.contentActive)})),t.classList.add(u.CLASS_NAME.itemActive),t.setAttribute("tabindex","0"),t.setAttribute("aria-selected","true");this.element.querySelectorAll(u.CLASS_NAME.tabContent).length>this.currentIndex&&this.element.querySelectorAll(u.CLASS_NAME.tabContent)[this.currentIndex].classList.add(u.CLASS_NAME.contentActive)}},this.onKeyDown=e=>{switch(e.key){case"ArrowRight":e.preventDefault(),this.focusNextFocusableTab();break;case"ArrowLeft":e.preventDefault(),this.focusPreviousFocusableTab();break;case"Tab":const t=e.target;if(!("true"===t.getAttribute("aria-selected")))return;const o=t.getAttribute("aria-controls"),n=this.element.querySelector(`[id=${o}]`);setTimeout((()=>{n.focus()}))}},this.element=e,s.setData(e,u.DATA_KEY,this),this.tabs=e.querySelectorAll(u.CLASS_NAME.tabItem),this.tabs.forEach(((e,t)=>{e.addEventListener("click",this.show),e.classList.contains(u.CLASS_NAME.itemActive)&&(this.currentIndex=t),e.addEventListener("keydown",this.onKeyDown)}))}focusNextFocusableTab(){const e=Array.from(this.tabs).filter((e=>!e.hasAttribute("disabled"))),t=e.findIndex((e=>document.activeElement===e));e.at((t+1)%e.length).focus()}focusPreviousFocusableTab(){const e=Array.from(this.tabs).filter((e=>!e.hasAttribute("disabled"))),t=e.findIndex((e=>document.activeElement===e));e.at(t-1).focus()}dispose(){this.tabs.forEach((e=>{e.removeEventListener("click",this.show),e.removeEventListener("keydown",this.onKeyDown)})),s.removeData(this.element,u.DATA_KEY)}static getInstance(e){return s.getData(e,u.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,u.SELECTOR.default)}}return u.NAME=`${r.KEY_PREFIX}-tab`,u.DATA_KEY=`${r.KEY_PREFIX}.tab`,u.CLASS_NAME={component:`.${u.NAME}`,tabItem:`.${u.NAME}__item`,tabContent:`.${u.NAME}__content`,itemActive:`${u.NAME}__item--active`,contentActive:`${u.NAME}__content--active`},u.SELECTOR={default:`.${u.NAME}`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tab",[],t):"object"==typeof exports?exports.Tab=t():e.Tab=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>u}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},s=n;var r,i,c,a;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(r||(r={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(i||(i={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class u extends class{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],r=document.querySelectorAll(o);for(let o=0;o<r.length;o++){const i=r[o];if(!i.key||i.key.key!==e.DATA_KEY){const c=new e(r[o],t);i.key||s.setData(r[o],e.DATA_KEY,c),n.push(c)}}return n}}{constructor(e){super(u,e),this.currentIndex=null,this.show=e=>{const t=e.currentTarget;if(!t.getAttribute("disabled")){this.tabs.forEach(((e,o)=>{e===t&&(this.currentIndex=o),e.classList.remove(u.CLASS_NAME.itemActive),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"),this.element.querySelectorAll(u.CLASS_NAME.tabContent)[o].classList.remove(u.CLASS_NAME.contentActive)})),t.classList.add(u.CLASS_NAME.itemActive),t.setAttribute("tabindex","0"),t.setAttribute("aria-selected","true");this.element.querySelectorAll(u.CLASS_NAME.tabContent).length>this.currentIndex&&this.element.querySelectorAll(u.CLASS_NAME.tabContent)[this.currentIndex].classList.add(u.CLASS_NAME.contentActive)}},this.onKeyDown=e=>{switch(e.key){case"ArrowRight":e.preventDefault(),this.focusNextFocusableTab();break;case"ArrowLeft":e.preventDefault(),this.focusPreviousFocusableTab();break;case"Tab":const t=e.target;if(!("true"===t.getAttribute("aria-selected")))return;const o=t.getAttribute("aria-controls"),n=this.element.querySelector(`[id=${o}]`);setTimeout((()=>{n.focus()}))}},this.element=e,s.setData(e,u.DATA_KEY,this),this.tabs=e.querySelectorAll(u.CLASS_NAME.tabItem),this.tabs.forEach(((e,t)=>{e.addEventListener("click",this.show),e.classList.contains(u.CLASS_NAME.itemActive)&&(this.currentIndex=t),e.addEventListener("keydown",this.onKeyDown)}))}focusNextFocusableTab(){const e=Array.from(this.tabs).filter((e=>!e.hasAttribute("disabled"))),t=e.findIndex((e=>document.activeElement===e));e.at((t+1)%e.length).focus()}focusPreviousFocusableTab(){const e=Array.from(this.tabs).filter((e=>!e.hasAttribute("disabled"))),t=e.findIndex((e=>document.activeElement===e));e.at(t-1).focus()}dispose(){this.tabs.forEach((e=>{e.removeEventListener("click",this.show),e.removeEventListener("keydown",this.onKeyDown)})),s.removeData(this.element,u.DATA_KEY)}static getInstance(e){return s.getData(e,u.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,u.SELECTOR.default)}}return u.NAME=`${r.KEY_PREFIX}-tab`,u.DATA_KEY=`${r.KEY_PREFIX}.tab`,u.CLASS_NAME={component:`.${u.NAME}`,tabItem:`.${u.NAME}__item`,tabContent:`.${u.NAME}__content`,itemActive:`${u.NAME}__item--active`,contentActive:`${u.NAME}__content--active`},u.SELECTOR={default:`.${u.NAME}`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tag",[],t):"object"==typeof exports?exports.Tag=t():e.Tag=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>m});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=b.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=_.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return x;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?E:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,E=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case E:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case x:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==E&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,b=t[o].d,_=n[o].d,T=d[v],x=d[y];if(h(v,y)){if(!r)return;var E=a([t[o]],[n[o]]);p.push(E[0]),m.push(E[1]),g.push(["matrix",[E[2]]])}else{if(v==y)l=v;else if(T[2]&&x[2]&&s(v)==s(y))l=s(v),b=T[2](b),_=x[2](_);else{if(!T[1]||!x[1]||u(v)!=u(y)){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]];break}l=u(v),b=T[1](b),_=x[1](_)}for(var w=[],k=[],S=[],N=0;N<b.length;N++)E=("number"==typeof b[N]?e.mergeNumbers:e.mergeDimensions)(b[N],_[N]),w[N]=E[0],k[N]=E[1],S.push(E[2]);p.push(w),m.push(k),g.push([l,S])}}if(i){var R=p;p=m,m=R}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),o={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}},a=o;var s,u,l,c;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(s||(s={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(u||(u={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let o=e.replace(f.STRIPNAME_REGEX,"");const a=u[o];a&&(o=a);return"string"==typeof c[o]||(o=e),[r,i,o]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof c[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=d.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=d;var p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class m extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const s=new e(i[n],t);o.key||a.setData(i[n],e.DATA_KEY,s),r.push(s)}}return r}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(m,e,h.extend(!0,{},t)),f.on(e,l.click,this.handleClick.bind(this))}closeAndDestroy(){this.element.animate(m.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}).onfinish=()=>{this.destroyElement()}}close(e){return p(this,void 0,void 0,(function*(){this.element.animate(m.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,270))),e()}))}destroyElement(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose()}dispose(){a.removeData(this.element,m.DATA_KEY),f.off(this.element,l.click,this.handleClick.bind(this)),this.element=null}handleClick(e){e.target.closest(m.SELECTOR.close)&&(e.preventDefault(),this.closeAndDestroy())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}static getInstance(e){return a.getData(e,m.DATA_KEY)}static getRootElement(e){return e.closest(m.SELECTOR.default)}}return m.NAME=`${s.KEY_PREFIX}-tag`,m.DATA_KEY=`${s.KEY_PREFIX}.tag`,m.KEYFRAMES=[{opacity:1},{opacity:0}],m.SELECTOR={default:`.${m.NAME}:not(.disabled)`,close:`.${m.NAME}__close`},t=t.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tag",[],t):"object"==typeof exports?exports.Tag=t():e.Tag=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>m});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=b.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=_.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return x;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?E:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,E=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case E:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case x:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==E&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,b=t[o].d,_=n[o].d,T=d[v],x=d[y];if(h(v,y)){if(!r)return;var E=a([t[o]],[n[o]]);p.push(E[0]),m.push(E[1]),g.push(["matrix",[E[2]]])}else{if(v==y)l=v;else if(T[2]&&x[2]&&s(v)==s(y))l=s(v),b=T[2](b),_=x[2](_);else{if(!T[1]||!x[1]||u(v)!=u(y)){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]];break}l=u(v),b=T[1](b),_=x[1](_)}for(var w=[],k=[],S=[],N=0;N<b.length;N++)E=("number"==typeof b[N]?e.mergeNumbers:e.mergeDimensions)(b[N],_[N]),w[N]=E[0],k[N]=E[1],S.push(E[2]);p.push(w),m.push(k),g.push([l,S])}}if(i){var R=p;p=m,m=R}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),o={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}},a=o;var s,u,l,c;!function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(s||(s={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(u||(u={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class f{static getUidEvent(e,t){return t&&`${t}::${f.uidEvent++}`||e.uidEvent||f.uidEvent++}static getEvent(e){const t=f.getUidEvent(e);return e.uidEvent=t,f.EVENTREGISTRY[t]=f.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&f.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(f.fixEvent(r,e),n.oneOff&&f.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return f.fixEvent(i,t),r.oneOff&&f.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let o=e.replace(f.STRIPNAME_REGEX,"");const a=u[o];a&&(o=a);return"string"==typeof c[o]||(o=e),[r,i,o]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=f.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=f.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=f.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const d=f.getUidEvent(s,a.replace(f.NAMESPACE_REGEX,"")),h=t?f.njDelegationHandler(e,n,r):f.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=d,l[d]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=f.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];f.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){f.addHandler(e,t,n,r,!1)}static one(e,t,n,r){f.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=f.normalizeParams(t,n,r),s=a!==t,u=f.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void f.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&f.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(f.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];f.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(f.STRIPNAME_REGEX,""),i="string"==typeof c[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}f.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,f.STRIPNAME_REGEX=/\..*/,f.KEYEVENT_REGEX=/^key/,f.STRIPUID_REGEX=/::\d+$/,f.EVENTREGISTRY={},f.uidEvent=1;const d={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=d.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=d.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=d;var p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class m extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const s=new e(i[n],t);o.key||a.setData(i[n],e.DATA_KEY,s),r.push(s)}}return r}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(m,e,h.extend(!0,{},t)),f.on(e,l.click,this.handleClick.bind(this))}closeAndDestroy(){this.element.animate(m.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}).onfinish=()=>{this.destroyElement()}}close(e){return p(this,void 0,void 0,(function*(){this.element.animate(m.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,270))),e()}))}destroyElement(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose()}dispose(){a.removeData(this.element,m.DATA_KEY),f.off(this.element,l.click,this.handleClick.bind(this)),this.element=null}handleClick(e){e.target.closest(m.SELECTOR.close)&&(e.preventDefault(),this.closeAndDestroy())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}static getInstance(e){return a.getData(e,m.DATA_KEY)}static getRootElement(e){return e.closest(m.SELECTOR.default)}}return m.NAME=`${s.KEY_PREFIX}-tag`,m.DATA_KEY=`${s.KEY_PREFIX}.tag`,m.KEYFRAMES=[{opacity:1},{opacity:0}],m.SELECTOR={default:`.${m.NAME}:not(.disabled)`,close:`.${m.NAME}__close`},t=t.default})())); | ||
//# sourceMappingURL=index.js.map |
/*! For license information please see index.js.LICENSE.txt */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tooltip",[],t):"object"==typeof exports?exports.Tooltip=t():e.Tooltip=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var t,n,o,i,r={};e.d(r,{default:()=>ye}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(t||(t={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(n||(n={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown"}(o||(o={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(i||(i={}));var s="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,a=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(s&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var l=s&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),a))}};function c(e){return e&&"[object Function]"==={}.toString.call(e)}function p(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=p(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:d(u(e))}function f(e){return e&&e.referenceNode?e.referenceNode:e}var h=s&&!(!window.MSInputMethodContext||!document.documentMode),m=s&&/MSIE 10/.test(navigator.userAgent);function g(e){return 11===e?h:10===e?m:h||m}function E(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===p(n,"position")?E(n):n:e?e.ownerDocument.documentElement:document.documentElement}function v(e){return null!==e.parentNode?v(e.parentNode):e}function b(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var s,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||o.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&E(s.firstElementChild)!==s?E(l):l;var c=v(e);return c.host?b(c.host,t):b(e,v(t).host)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=w(t,"top"),i=w(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function y(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function A(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function S(e){var t=e.body,n=e.documentElement,o=g(10)&&getComputedStyle(n);return{height:A("Height",t,n,o),width:A("Width",t,n,o)}}var N=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),L=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function D(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var n=w(e,"top"),o=w(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?S(e.ownerDocument):{},s=r.width||e.clientWidth||i.width,a=r.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=p(e);l-=y(u,"x"),c-=y(u,"y"),i.width-=l,i.height-=c}return D(i)}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=g(10),i="HTML"===t.nodeName,r=_(e),s=_(t),a=d(e),l=p(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=D({top:r.top-s.top-c,left:r.left-s.left-u,width:r.width,height:r.height});if(f.marginTop=0,f.marginLeft=0,!o&&i){var h=parseFloat(l.marginTop,10),m=parseFloat(l.marginLeft,10);f.top-=c-h,f.bottom-=c-h,f.left-=u-m,f.right-=u-m,f.marginTop=h,f.marginLeft=m}return(o&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(f=T(f,t)),f}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=R(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:w(n),a=t?0:w(n,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:r};return D(l)}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===p(e,"position"))return!0;var n=u(e);return!!n&&M(n)}function P(e){if(!e||!e.parentElement||g())return document.documentElement;for(var t=e.parentElement;t&&"none"===p(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=i?P(e):b(e,f(t));if("viewport"===o)r=x(s,i);else{var a=void 0;"scrollParent"===o?"BODY"===(a=d(u(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===o?e.ownerDocument.documentElement:o;var l=R(a,s,i);if("HTML"!==a.nodeName||M(s))r=l;else{var c=S(e.ownerDocument),p=c.height,h=c.width;r.top+=l.top-l.marginTop,r.bottom=p+l.top,r.left+=l.left-l.marginLeft,r.right=h+l.left}}var m="number"==typeof(n=n||0);return r.left+=m?n:n.left||0,r.top+=m?n:n.top||0,r.right-=m?n:n.right||0,r.bottom-=m?n:n.bottom||0,r}function I(e){return e.width*e.height}function H(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=k(n,o,r,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return C({key:e},a[e],{area:I(a[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),p=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return p+(u?"-"+u:"")}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?P(t):b(t,f(n));return R(n,i,o)}function Y(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function $(e,t,n){n=n.split("-")[0];var o=Y(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[s]=t[s]+t[l]/2-o[l]/2,i[a]=n===a?t[a]-o[c]:t[j(a)],i}function V(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function G(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=V(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&c(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))})),t}function K(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=H(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=$(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=G(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function B(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function W(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function X(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,n,o){var i="BODY"===e.nodeName,r=i?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),i||q(d(r.parentNode),t,n,o),o.push(r)}function z(e,t,n,o){n.updateBound=o,X(e).addEventListener("resize",n.updateBound,{passive:!0});var i=d(e);return q(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,X(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ee(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var te=s&&/Firefox/i.test(navigator.userAgent);function ne(e,t,n){var o=V(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ie=oe.slice(3);function re(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),o=ie.slice(n+1).concat(ie.slice(0,n));return t?o.reverse():o}var se="flip",ae="clockwise",le="counterclockwise";function ce(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(V(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map((function(e,o){var i=(1===o?!r:r)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],s=i[2];if(!r)return e;if(0===s.indexOf("%")){return D("%p"===s?n:o)[t]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,o){Z(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var pe={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",p={start:L({},l,r[l]),end:L({},l,r[l]+r[c]-s[c])};e.offsets.popper=C({},s,p[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,s=i.reference,a=o.split("-")[0],l=void 0;return l=Z(+n)?[+n,0]:ce(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||E(e.instance.popper);e.instance.reference===n&&(n=E(n));var o=U("transform"),i=e.instance.popper.style,r=i.top,s=i.left,a=i[o];i.top="",i.left="",i[o]="";var l=k(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=s,i[o]=a,t.boundaries=l;var c=t.priority,p=e.offsets.popper,u={primary:function(e){var n=p[e];return p[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(p[e],l[e])),L({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=p[n];return p[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(p[n],l[e]-("right"===e?p.width:p.height))),L({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=C({},p,u[t](e))})),e.offsets.popper=p,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(o[l])&&(e.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[a])&&(e.offsets.popper[l]=r(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ne(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",m=Y(o)[c];a[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(a[h]-m)),a[d]+m>s[h]&&(e.offsets.popper[d]+=a[d]+m-s[h]),e.offsets.popper=D(e.offsets.popper);var g=a[d]+a[c]/2-m/2,E=p(e.instance.popper),v=parseFloat(E["margin"+u],10),b=parseFloat(E["border"+u+"Width"],10),w=g-e.offsets.popper[d]-v-b;return w=Math.max(Math.min(s[c]-m,w),0),e.arrowElement=o,e.offsets.arrow=(L(n={},d,Math.round(w)),L(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=k(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=j(o),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case se:s=[o,i];break;case ae:s=re(o);break;case le:s=re(o,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(o!==a||s.length===l+1)return e;o=e.placement.split("-")[0],i=j(o);var c=e.offsets.popper,p=e.offsets.reference,u=Math.floor,d="left"===o&&u(c.right)>u(p.left)||"right"===o&&u(c.left)<u(p.right)||"top"===o&&u(c.bottom)>u(p.top)||"bottom"===o&&u(c.top)<u(p.bottom),f=u(c.left)<u(n.left),h=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),E="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,v=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),w=!!t.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),T=b||w;(d||E||T)&&(e.flipped=!0,(d||E)&&(o=s[l+1]),T&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=C({},e.offsets.popper,$(e.instance.popper,e.offsets.reference,e.placement)),e=G(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=r[n]-(a?i[s?"width":"height"]:0),e.placement=j(t),e.offsets.popper=D(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ne(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=V(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=V(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:t.gpuAcceleration,a=E(e.instance.popper),l=_(a),c={position:i.position},p=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,s=Math.floor,a=function(e){return e},l=r(i.width),c=r(o.width),p=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),d=t?p||u||l%2==c%2?r:s:a,f=t?r:a;return{left:d(l%2==1&&c%2==1&&!u&&t?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!te),u="bottom"===n?"top":"bottom",d="right"===o?"left":"right",f=U("transform"),h=void 0,m=void 0;if(m="bottom"===u?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-l.height+p.bottom:p.top,h="right"===d?"HTML"===a.nodeName?-a.clientWidth+p.right:-l.width+p.right:p.left,s&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[u]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===u?-1:1,v="right"===d?-1:1;c[u]=m*g,c[d]=h*v,c.willChange=u+", "+d}var b={"x-placement":e.placement};return e.attributes=C({},b,e.attributes),e.styles=C({},c,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ee(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ee(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=F(i,t,e,n.positionFixed),s=H(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),ee(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:pe},de=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};N(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=l(this.update.bind(this)),this.options=C({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=C({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&c(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return O(e,[{key:"update",value:function(){return K.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),e}();de.Utils=("undefined"!=typeof window?window:e.g).PopperUtils,de.placements=oe,de.Defaults=ue;const fe=de;window.NJStore=window.NJStore||[];const he=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),me={setData(e,t,n){he.set(e,t,n)},getData:(e,t)=>he.get(e,t),removeData(e,t){he.delete(e,t)}},ge=me;class Ee{static getUidEvent(e,t){return t&&`${t}::${Ee.uidEvent++}`||e.uidEvent||Ee.uidEvent++}static getEvent(e){const t=Ee.getUidEvent(e);return e.uidEvent=t,Ee.EVENTREGISTRY[t]=Ee.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&Ee.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(Ee.fixEvent(o,e),n.oneOff&&Ee.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const r=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let s=r.length;s>=0;s--)if(r[s]===t)return Ee.fixEvent(i,t),o.oneOff&&Ee.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,o){const r="string"==typeof t,s=r?o:t;let a=e.replace(Ee.STRIPNAME_REGEX,"");const l=n[a];l&&(a=l);return"string"==typeof i[a]||(a=e),[r,s,a]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=Ee.getEvent(e);for(const s of t.split(" ")){const[t,a,l]=Ee.normalizeParams(s,n,o),c=r[l]||(r[l]={}),p=Ee.findHandler(c,a,t?n:null);if(p)return void(p.oneOff=p.oneOff&&i);const u=Ee.getUidEvent(a,s.replace(Ee.NAMESPACE_REGEX,"")),d=t?Ee.njDelegationHandler(e,n,o):Ee.njHandler(e,n);d.delegationSelector=t?n:null,d.originalHandler=a,d.oneOff=i,d.uidEvent=u,c[u]=d,e.addEventListener(l,d,t)}}static removeHandler(e,t,n,o,i){const r=Ee.findHandler(t[n],o,i);null!==r&&(e.removeEventListener(n,r,Boolean(i)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){const o=i[r];Ee.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){Ee.addHandler(e,t,n,o,!1)}static one(e,t,n,o){Ee.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,r,s]=Ee.normalizeParams(t,n,o),a=s!==t,l=Ee.getEvent(e);if(void 0!==r){if(!l||!l[s])return;return void Ee.removeHandler(e,l,s,r,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&Ee.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[s]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(Ee.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];Ee.removeHandler(e,l,s,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(Ee.STRIPNAME_REGEX,""),r="string"==typeof i[o];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(o,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(s,e,{get:()=>n[e]})})),e.dispatchEvent(s),s}}Ee.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,Ee.STRIPNAME_REGEX=/\..*/,Ee.KEYEVENT_REGEX=/^key/,Ee.STRIPUID_REGEX=/::\d+$/,Ee.EVENTREGISTRY={},Ee.uidEvent=1;const ve={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=ve.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=ve.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},be=ve;const we={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(we.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(we.TRANSITION_END,(function t(){n=!0,e.removeEventListener(we.TRANSITION_END,t)})),setTimeout((()=>{n||we.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],s=t[i],a=s&&we.isElement(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?we.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let r,s,a,l=null,c=0;const p=()=>{c=Date.now(),l=null,a=e.apply(s,r)};return()=>{const u=Date.now();c||n||(c=u);const d=t-(u-c);return s=i||this,r=arguments,d<=0?(clearTimeout(l),l=null,c=u,a=e.apply(s,r)):!l&&o&&(l=setTimeout(p,d)),a}}},Te=we;class ye extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const r=i[n];if(!r.key||r.key.key!==e.DATA_KEY){const s=new e(i[n],t);r.key||ge.setData(i[n],e.DATA_KEY,s),o.push(s)}}return o}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ye,e,ye.getOptions(e,t)),this.isEnabled=!0,this.timeout=0,this.hoverState="",this.activeTrigger={},this.popper=null,this.tip=null,this.setListeners(),ge.setData(e,ye.DATA_KEY,this)}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}toggleEnabled(){this.isEnabled=!this.isEnabled}toggle(e){if(this.isEnabled)if(e){const t=ye.DATA_KEY;let n=ye.getInstance(e.delegateTarget);n||(n=new ye(e.delegateTarget,this.getDelegateConfig()),ge.setData(e.delegateTarget,t,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(ye.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}}dispose(){clearTimeout(this.timeout),ge.removeData(this.element,ye.DATA_KEY),Ee.off(this.element,ye.EVENT_KEY),Ee.off(this.element.closest(".modal"),`hide.${t.KEY_PREFIX}.modal`),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null}show(){if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){const e=Ee.trigger(this.element,ye.EVENT.show),t=Te.findShadowRoot(this.element),n=null!==t?t.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(e.defaultPrevented||!n)return;const o=this.getTipElement(),i=Te.getUID(ye.NAME);o.setAttribute("id",i),this.toggleAriaDescribedby(!0,i),this.setContent(),this.options.animation&&o.classList.add(ye.CLASS_NAME.fade);const r="function"==typeof this.options.placement?this.options.placement.call(this,o,this.element):this.options.placement,s=ye.getAttachment(r);this.addAttachmentClass(s),this.options.arrow||this.getTipElement().classList.add(ye.CLASS_NAME.withoutArrow),"inverse"===this.options.variant&&this.getTipElement().classList.add(ye.CLASS_NAME.inverse);const a=this.getContainer();ge.setData(o,ye.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||a.appendChild(o),Ee.trigger(this.element,ye.EVENT.inserted),this.popper=new fe(this.element,o,{placement:s,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:ye.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:e=>{e.originalPlacement!==e.placement&&this.handlePopperPlacementChange(e)},onUpdate:e=>this.handlePopperPlacementChange(e)}),o.classList.add(ye.CLASS_NAME.show),"ontouchstart"in document.documentElement&&Te.makeArray(document.body.children).forEach((e=>{Ee.on(e,"mouseover")}));const l=()=>{this.options.animation&&this.fixTransition();const e=this.hoverState;this.hoverState=null,Ee.trigger(this.element,ye.EVENT.shown),e===ye.HOVER_STATE.out&&this.leave(null,this)};if(this.tip.classList.contains(ye.CLASS_NAME.fade)){const e=Te.getTransitionDurationFromElement(this.tip);Ee.one(this.tip,Te.TRANSITION_END,l),Te.emulateTransitionEnd(this.tip,e)}else l()}}hide(e){const t=this.getTipElement(),n=()=>{this.element&&(this.hoverState!==ye.HOVER_STATE.show&&t.parentNode&&t.parentNode.removeChild(t),this.cleanTipClass(),this.toggleAriaDescribedby(!1),Ee.trigger(this.element,ye.EVENT.hidden),null!==this.popper&&this.popper.destroy(),e&&e())};if(!Ee.trigger(this.element,ye.EVENT.hide).defaultPrevented){if(t.classList.remove(ye.CLASS_NAME.show),"ontouchstart"in document.documentElement&&Te.makeArray(document.body.children).forEach((e=>Ee.off(e,"mouseover"))),this.activeTrigger[ye.TRIGGER.click]=!1,this.activeTrigger[ye.TRIGGER.focus]=!1,this.activeTrigger[ye.TRIGGER.hover]=!1,this.tip.classList.contains(ye.CLASS_NAME.fade)){const e=Te.getTransitionDurationFromElement(t);Ee.one(t,Te.TRANSITION_END,n),Te.emulateTransitionEnd(t,e)}else n();this.hoverState=""}}update(){null!==this.popper&&this.popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(e){this.getTipElement().classList.add(`${ye.CLASS_NAME.default}--${e}`)}toggleAriaDescribedby(e,t){const n=this.element.hasAttribute("data-tooltip-wrapper")?this.element.firstElementChild:this.element;e?n.setAttribute("aria-describedby",t):n.removeAttribute("aria-describedby")}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this.options.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(e.querySelector(ye.SELECTOR.inner),this.getTitle()),e.classList.remove(ye.CLASS_NAME.fade),e.classList.remove(ye.CLASS_NAME.show)}setElementContent(e,t){if(null===e)return;const n=this.options.html;"object"==typeof t&&t.nodeType?n?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.innerText=t.textContent:e[n?"innerHTML":"innerText"]=t}getTitle(){let e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),e}getContainer(){return!1===this.options.container?document.body:Te.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)}setListeners(){this.options.trigger.split(" ").forEach((e=>{if("click"===e)Ee.on(this.element,ye.EVENT.click,this.options.selector,(e=>this.toggle(e)));else if(e!==ye.TRIGGER.manual){const t=e===ye.TRIGGER.hover?ye.EVENT.mouseenter:ye.EVENT.focusin,n=e===ye.TRIGGER.hover?ye.EVENT.mouseleave:ye.EVENT.focusout;Ee.on(this.element,t,this.options.selector,(e=>this.enter(e))),Ee.on(this.element,n,this.options.selector,(e=>this.leave(e)))}})),Ee.on(this.element.closest(".modal"),`hide.${t.KEY_PREFIX}.modal`,(()=>{this.element&&this.hide()})),this.options.selector?this.options=Object.assign(Object.assign({},this.options),{trigger:"manual",selector:""}):this.fixTitle()}fixTitle(){const e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}enter(e,t){const n=ye.DATA_KEY;if((t=t||ge.getData(e.delegateTarget,n))||(t=new ye(e.delegateTarget,this.getDelegateConfig()),ge.setData(e.delegateTarget,n,t)),e){const n="focusin"===e.type?ye.TRIGGER.focus:ye.TRIGGER.hover;t.activeTrigger[n]=!0}t.getTipElement().classList.contains(ye.CLASS_NAME.show)||t.hoverState===ye.HOVER_STATE.show?t.hoverState=ye.HOVER_STATE.show:(clearTimeout(t.timeout),t.hoverState=ye.HOVER_STATE.show,t.options.delay&&t.options.delay.show?t.timeout=setTimeout((()=>{t._hoverState===ye.HOVER_STATE.show&&t.show()}),t.options.delay.show):t.show())}leave(e,t){const n=ye.DATA_KEY;if((t=t||ge.getData(e.delegateTarget,n))||(t=new ye(e.delegateTarget,this.getDelegateConfig()),ge.setData(e.delegateTarget,n,t)),e){const n="focusout"===e.type?ye.TRIGGER.focus:ye.TRIGGER.hover;t.activeTrigger[n]=!1}t.isWithActiveTrigger()||(clearTimeout(t.timeout),t.hoverState=ye.HOVER_STATE.out,t.options.delay&&t.options.delay.hide?t.timeout=setTimeout((()=>{t.hoverState===ye.HOVER_STATE.out&&t.hide()}),t.options.delay.hide):t.hide())}isWithActiveTrigger(){for(const e in this.activeTrigger)if(this.activeTrigger[e])return!0;return!1}static getOptions(e,t){return"number"==typeof(t=Object.assign(Object.assign(Object.assign({},ye.DEFAULT_OPTIONS),be.getDataAttributes(e)),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Te.typeCheckConfig(ye.NAME,t,ye.DEFAULT_TYPE),t}getDelegateConfig(){const e={};if(this.options)for(const t in this.options)ye.DEFAULT_OPTIONS[t]!==this.options[t]&&(e[t]=this.options[t]);return e}cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(ye.NJCLS_PREFIX_REGEX);null!==t&&t.length&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}handlePopperPlacementChange(e){const t=e.instance;this.tip=t.popper,this.cleanTipClass(),this.addAttachmentClass(ye.getAttachment(e.placement))}fixTransition(){const e=this.getTipElement(),t=this.options.animation;null===e.getAttribute("x-placement")&&(e.classList.remove(ye.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=t)}static getAttachment(e){return ye.ATTACHMENT_MAP[e.toUpperCase()]}static getInstance(e){return ge.getData(e,ye.DATA_KEY)}static init(){return[]}}return ye.NAME=`${t.KEY_PREFIX}-tooltip`,ye.DATA_KEY=`${t.KEY_PREFIX}.tooltip`,ye.EVENT_KEY=`.${ye.DATA_KEY}`,ye.CLASS_NAME={default:`${t.KEY_PREFIX}-tooltip`,inner:`${t.KEY_PREFIX}-tooltip__inner`,arrow:`${t.KEY_PREFIX}-tooltip__arrow`,withoutArrow:`${t.KEY_PREFIX}-tooltip--without-arrow`,inverse:`${t.KEY_PREFIX}-tooltip--inverse`,fade:"fade",show:"show"},ye.NJCLS_PREFIX_REGEX=new RegExp(`(^|\\s)${ye.CLASS_NAME.default}\\S+`,"g"),ye.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},ye.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ye.DEFAULT_OPTIONS={animation:!0,template:`<div class="${ye.CLASS_NAME.default}" role="tooltip"><div class="${ye.CLASS_NAME.arrow}"></div><div class="${ye.CLASS_NAME.inner}"></div></div>`,trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},ye.HOVER_STATE={show:"show",out:"out"},ye.EVENT={hide:`${o.hide}${ye.EVENT_KEY}`,hidden:`${o.hidden}${ye.EVENT_KEY}`,show:`${o.show}${ye.EVENT_KEY}`,shown:`${o.shown}${ye.EVENT_KEY}`,inserted:`${o.inserted}${ye.EVENT_KEY}`,click:`${o.click}${ye.EVENT_KEY}`,focusin:`${o.focusin}${ye.EVENT_KEY}`,focusout:`${o.focusout}${ye.EVENT_KEY}`,mouseenter:`${o.mouseenter}${ye.EVENT_KEY}`,mouseleave:`${o.mouseleave}${ye.EVENT_KEY}`},ye.SELECTOR={default:'[data-toggle="tooltip"]',inner:`.${ye.CLASS_NAME.inner}`,arrow:`.${ye.CLASS_NAME.arrow}`,tooltip:`.${t.KEY_PREFIX}-tooltip`},ye.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"},r=r.default})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tooltip",[],t):"object"==typeof exports?exports.Tooltip=t():e.Tooltip=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var t,n,o,i,r={};e.d(r,{default:()=>ye}),function(e){e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(t||(t={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(n||(n={})),function(e){e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(o||(o={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(i||(i={}));var s="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,a=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(s&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var l=s&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),a))}};function c(e){return e&&"[object Function]"==={}.toString.call(e)}function p(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=p(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:d(u(e))}function f(e){return e&&e.referenceNode?e.referenceNode:e}var h=s&&!(!window.MSInputMethodContext||!document.documentMode),m=s&&/MSIE 10/.test(navigator.userAgent);function g(e){return 11===e?h:10===e?m:h||m}function E(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===p(n,"position")?E(n):n:e?e.ownerDocument.documentElement:document.documentElement}function v(e){return null!==e.parentNode?v(e.parentNode):e}function b(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var s,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||o.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&E(s.firstElementChild)!==s?E(l):l;var c=v(e);return c.host?b(c.host,t):b(e,v(t).host)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[n]}return e[n]}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=w(t,"top"),i=w(t,"left"),r=n?-1:1;return e.top+=o*r,e.bottom+=o*r,e.left+=i*r,e.right+=i*r,e}function y(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+o+"Width"],10)}function A(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function S(e){var t=e.body,n=e.documentElement,o=g(10)&&getComputedStyle(n);return{height:A("Height",t,n,o),width:A("Width",t,n,o)}}var N=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),L=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function D(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var n=w(e,"top"),o=w(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?S(e.ownerDocument):{},s=r.width||e.clientWidth||i.width,a=r.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=p(e);l-=y(u,"x"),c-=y(u,"y"),i.width-=l,i.height-=c}return D(i)}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=g(10),i="HTML"===t.nodeName,r=_(e),s=_(t),a=d(e),l=p(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=D({top:r.top-s.top-c,left:r.left-s.left-u,width:r.width,height:r.height});if(f.marginTop=0,f.marginLeft=0,!o&&i){var h=parseFloat(l.marginTop,10),m=parseFloat(l.marginLeft,10);f.top-=c-h,f.bottom-=c-h,f.left-=u-m,f.right-=u-m,f.marginTop=h,f.marginLeft=m}return(o&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(f=T(f,t)),f}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=R(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:w(n),a=t?0:w(n,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:r};return D(l)}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===p(e,"position"))return!0;var n=u(e);return!!n&&M(n)}function P(e){if(!e||!e.parentElement||g())return document.documentElement;for(var t=e.parentElement;t&&"none"===p(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=i?P(e):b(e,f(t));if("viewport"===o)r=x(s,i);else{var a=void 0;"scrollParent"===o?"BODY"===(a=d(u(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===o?e.ownerDocument.documentElement:o;var l=R(a,s,i);if("HTML"!==a.nodeName||M(s))r=l;else{var c=S(e.ownerDocument),p=c.height,h=c.width;r.top+=l.top-l.marginTop,r.bottom=p+l.top,r.left+=l.left-l.marginLeft,r.right=h+l.left}}var m="number"==typeof(n=n||0);return r.left+=m?n:n.left||0,r.top+=m?n:n.top||0,r.right-=m?n:n.right||0,r.bottom-=m?n:n.bottom||0,r}function I(e){return e.width*e.height}function H(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=k(n,o,r,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return C({key:e},a[e],{area:I(a[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),p=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return p+(u?"-"+u:"")}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?P(t):b(t,f(n));return R(n,i,o)}function Y(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function $(e,t,n){n=n.split("-")[0];var o=Y(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[s]=t[s]+t[l]/2-o[l]/2,i[a]=n===a?t[a]-o[c]:t[j(a)],i}function V(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function G(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=V(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&c(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))})),t}function K(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=H(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=$(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=G(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function B(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function W(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function X(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,n,o){var i="BODY"===e.nodeName,r=i?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),i||q(d(r.parentNode),t,n,o),o.push(r)}function z(e,t,n,o){n.updateBound=o,X(e).addEventListener("resize",n.updateBound,{passive:!0});var i=d(e);return q(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,X(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ee(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var te=s&&/Firefox/i.test(navigator.userAgent);function ne(e,t,n){var o=V(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!i){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ie=oe.slice(3);function re(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),o=ie.slice(n+1).concat(ie.slice(0,n));return t?o.reverse():o}var se="flip",ae="clockwise",le="counterclockwise";function ce(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(V(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map((function(e,o){var i=(1===o?!r:r)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],s=i[2];if(!r)return e;if(0===s.indexOf("%")){return D("%p"===s?n:o)[t]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,o){Z(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}var pe={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",p={start:L({},l,r[l]),end:L({},l,r[l]+r[c]-s[c])};e.offsets.popper=C({},s,p[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,i=e.offsets,r=i.popper,s=i.reference,a=o.split("-")[0],l=void 0;return l=Z(+n)?[+n,0]:ce(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||E(e.instance.popper);e.instance.reference===n&&(n=E(n));var o=U("transform"),i=e.instance.popper.style,r=i.top,s=i.left,a=i[o];i.top="",i.left="",i[o]="";var l=k(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=s,i[o]=a,t.boundaries=l;var c=t.priority,p=e.offsets.popper,u={primary:function(e){var n=p[e];return p[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(p[e],l[e])),L({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=p[n];return p[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(p[n],l[e]-("right"===e?p.width:p.height))),L({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=C({},p,u[t](e))})),e.offsets.popper=p,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(o[l])&&(e.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[a])&&(e.offsets.popper[l]=r(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ne(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",m=Y(o)[c];a[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(a[h]-m)),a[d]+m>s[h]&&(e.offsets.popper[d]+=a[d]+m-s[h]),e.offsets.popper=D(e.offsets.popper);var g=a[d]+a[c]/2-m/2,E=p(e.instance.popper),v=parseFloat(E["margin"+u],10),b=parseFloat(E["border"+u+"Width"],10),w=g-e.offsets.popper[d]-v-b;return w=Math.max(Math.min(s[c]-m,w),0),e.arrowElement=o,e.offsets.arrow=(L(n={},d,Math.round(w)),L(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=k(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=j(o),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case se:s=[o,i];break;case ae:s=re(o);break;case le:s=re(o,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(o!==a||s.length===l+1)return e;o=e.placement.split("-")[0],i=j(o);var c=e.offsets.popper,p=e.offsets.reference,u=Math.floor,d="left"===o&&u(c.right)>u(p.left)||"right"===o&&u(c.left)<u(p.right)||"top"===o&&u(c.bottom)>u(p.top)||"bottom"===o&&u(c.top)<u(p.bottom),f=u(c.left)<u(n.left),h=u(c.right)>u(n.right),m=u(c.top)<u(n.top),g=u(c.bottom)>u(n.bottom),E="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,v=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),w=!!t.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),T=b||w;(d||E||T)&&(e.flipped=!0,(d||E)&&(o=s[l+1]),T&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=o+(r?"-"+r:""),e.offsets.popper=C({},e.offsets.popper,$(e.instance.popper,e.offsets.reference,e.placement)),e=G(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=r[n]-(a?i[s?"width":"height"]:0),e.placement=j(t),e.offsets.popper=D(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ne(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=V(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,i=e.offsets.popper,r=V(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:t.gpuAcceleration,a=E(e.instance.popper),l=_(a),c={position:i.position},p=function(e,t){var n=e.offsets,o=n.popper,i=n.reference,r=Math.round,s=Math.floor,a=function(e){return e},l=r(i.width),c=r(o.width),p=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),d=t?p||u||l%2==c%2?r:s:a,f=t?r:a;return{left:d(l%2==1&&c%2==1&&!u&&t?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!te),u="bottom"===n?"top":"bottom",d="right"===o?"left":"right",f=U("transform"),h=void 0,m=void 0;if(m="bottom"===u?"HTML"===a.nodeName?-a.clientHeight+p.bottom:-l.height+p.bottom:p.top,h="right"===d?"HTML"===a.nodeName?-a.clientWidth+p.right:-l.width+p.right:p.left,s&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[u]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===u?-1:1,v="right"===d?-1:1;c[u]=m*g,c[d]=h*v,c.willChange=u+", "+d}var b={"x-placement":e.placement};return e.attributes=C({},b,e.attributes),e.styles=C({},c,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ee(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ee(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=F(i,t,e,n.positionFixed),s=H(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),ee(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:pe},de=function(){function e(t,n){var o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};N(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=l(this.update.bind(this)),this.options=C({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){o.options.modifiers[t]=C({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&c(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return O(e,[{key:"update",value:function(){return K.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),e}();de.Utils=("undefined"!=typeof window?window:e.g).PopperUtils,de.placements=oe,de.Defaults=ue;const fe=de;window.NJStore=window.NJStore||[];const he=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),me={setData(e,t,n){he.set(e,t,n)},getData:(e,t)=>he.get(e,t),removeData(e,t){he.delete(e,t)}},ge=me;class Ee{static getUidEvent(e,t){return t&&`${t}::${Ee.uidEvent++}`||e.uidEvent||Ee.uidEvent++}static getEvent(e){const t=Ee.getUidEvent(e);return e.uidEvent=t,Ee.EVENTREGISTRY[t]=Ee.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&Ee.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(Ee.fixEvent(o,e),n.oneOff&&Ee.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const r=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let s=r.length;s>=0;s--)if(r[s]===t)return Ee.fixEvent(i,t),o.oneOff&&Ee.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,o){const r="string"==typeof t,s=r?o:t;let a=e.replace(Ee.STRIPNAME_REGEX,"");const l=n[a];l&&(a=l);return"string"==typeof i[a]||(a=e),[r,s,a]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=Ee.getEvent(e);for(const s of t.split(" ")){const[t,a,l]=Ee.normalizeParams(s,n,o),c=r[l]||(r[l]={}),p=Ee.findHandler(c,a,t?n:null);if(p)return void(p.oneOff=p.oneOff&&i);const u=Ee.getUidEvent(a,s.replace(Ee.NAMESPACE_REGEX,"")),d=t?Ee.njDelegationHandler(e,n,o):Ee.njHandler(e,n);d.delegationSelector=t?n:null,d.originalHandler=a,d.oneOff=i,d.uidEvent=u,c[u]=d,e.addEventListener(l,d,t)}}static removeHandler(e,t,n,o,i){const r=Ee.findHandler(t[n],o,i);null!==r&&(e.removeEventListener(n,r,Boolean(i)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){const o=i[r];Ee.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){Ee.addHandler(e,t,n,o,!1)}static one(e,t,n,o){Ee.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,r,s]=Ee.normalizeParams(t,n,o),a=s!==t,l=Ee.getEvent(e);if(void 0!==r){if(!l||!l[s])return;return void Ee.removeHandler(e,l,s,r,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&Ee.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[s]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(Ee.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];Ee.removeHandler(e,l,s,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(Ee.STRIPNAME_REGEX,""),r="string"==typeof i[o];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(o,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(s,e,{get:()=>n[e]})})),e.dispatchEvent(s),s}}Ee.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,Ee.STRIPNAME_REGEX=/\..*/,Ee.KEYEVENT_REGEX=/^key/,Ee.STRIPUID_REGEX=/::\d+$/,Ee.EVENTREGISTRY={},Ee.uidEvent=1;const ve={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring("data-".length).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=ve.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=ve.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},be=ve;const we={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(we.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(we.TRANSITION_END,(function t(){n=!0,e.removeEventListener(we.TRANSITION_END,t)})),setTimeout((()=>{n||we.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],s=t[i],a=s&&we.isElement(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?we.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let r,s,a,l=null,c=0;const p=()=>{c=Date.now(),l=null,a=e.apply(s,r)};return()=>{const u=Date.now();c||n||(c=u);const d=t-(u-c);return s=i||this,r=arguments,d<=0?(clearTimeout(l),l=null,c=u,a=e.apply(s,r)):!l&&o&&(l=setTimeout(p,d)),a}}},Te=we;class ye extends class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const r=i[n];if(!r.key||r.key.key!==e.DATA_KEY){const s=new e(i[n],t);r.key||ge.setData(i[n],e.DATA_KEY,s),o.push(s)}}return o}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ye,e,ye.getOptions(e,t)),this.isEnabled=!0,this.timeout=0,this.hoverState="",this.activeTrigger={},this.popper=null,this.tip=null,this.setListeners(),ge.setData(e,ye.DATA_KEY,this)}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}toggleEnabled(){this.isEnabled=!this.isEnabled}toggle(e){if(this.isEnabled)if(e){const t=ye.DATA_KEY;let n=ye.getInstance(e.delegateTarget);n||(n=new ye(e.delegateTarget,this.getDelegateConfig()),ge.setData(e.delegateTarget,t,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(ye.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}}dispose(){clearTimeout(this.timeout),ge.removeData(this.element,ye.DATA_KEY),Ee.off(this.element,ye.EVENT_KEY),Ee.off(this.element.closest(".modal"),`hide.${t.KEY_PREFIX}.modal`),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null}show(){if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){const e=Ee.trigger(this.element,ye.EVENT.show),t=Te.findShadowRoot(this.element),n=null!==t?t.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(e.defaultPrevented||!n)return;const o=this.getTipElement(),i=Te.getUID(ye.NAME);o.setAttribute("id",i),this.toggleAriaDescribedby(!0,i),this.setContent(),this.options.animation&&o.classList.add(ye.CLASS_NAME.fade);const r="function"==typeof this.options.placement?this.options.placement.call(this,o,this.element):this.options.placement,s=ye.getAttachment(r);this.addAttachmentClass(s),this.options.arrow||this.getTipElement().classList.add(ye.CLASS_NAME.withoutArrow),"inverse"===this.options.variant&&this.getTipElement().classList.add(ye.CLASS_NAME.inverse);const a=this.getContainer();ge.setData(o,ye.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||a.appendChild(o),Ee.trigger(this.element,ye.EVENT.inserted),this.popper=new fe(this.element,o,{placement:s,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:ye.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:e=>{e.originalPlacement!==e.placement&&this.handlePopperPlacementChange(e)},onUpdate:e=>this.handlePopperPlacementChange(e)}),o.classList.add(ye.CLASS_NAME.show),"ontouchstart"in document.documentElement&&Te.makeArray(document.body.children).forEach((e=>{Ee.on(e,"mouseover")}));const l=()=>{this.options.animation&&this.fixTransition();const e=this.hoverState;this.hoverState=null,Ee.trigger(this.element,ye.EVENT.shown),e===ye.HOVER_STATE.out&&this.leave(null,this)};if(this.tip.classList.contains(ye.CLASS_NAME.fade)){const e=Te.getTransitionDurationFromElement(this.tip);Ee.one(this.tip,Te.TRANSITION_END,l),Te.emulateTransitionEnd(this.tip,e)}else l()}}hide(e){const t=this.getTipElement(),n=()=>{this.element&&(this.hoverState!==ye.HOVER_STATE.show&&t.parentNode&&t.parentNode.removeChild(t),this.cleanTipClass(),this.toggleAriaDescribedby(!1),Ee.trigger(this.element,ye.EVENT.hidden),null!==this.popper&&this.popper.destroy(),e&&e())};if(!Ee.trigger(this.element,ye.EVENT.hide).defaultPrevented){if(t.classList.remove(ye.CLASS_NAME.show),"ontouchstart"in document.documentElement&&Te.makeArray(document.body.children).forEach((e=>Ee.off(e,"mouseover"))),this.activeTrigger[ye.TRIGGER.click]=!1,this.activeTrigger[ye.TRIGGER.focus]=!1,this.activeTrigger[ye.TRIGGER.hover]=!1,this.tip.classList.contains(ye.CLASS_NAME.fade)){const e=Te.getTransitionDurationFromElement(t);Ee.one(t,Te.TRANSITION_END,n),Te.emulateTransitionEnd(t,e)}else n();this.hoverState=""}}update(){null!==this.popper&&this.popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(e){this.getTipElement().classList.add(`${ye.CLASS_NAME.default}--${e}`)}toggleAriaDescribedby(e,t){const n=this.element.hasAttribute("data-tooltip-wrapper")?this.element.firstElementChild:this.element;e?n.setAttribute("aria-describedby",t):n.removeAttribute("aria-describedby")}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this.options.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(e.querySelector(ye.SELECTOR.inner),this.getTitle()),e.classList.remove(ye.CLASS_NAME.fade),e.classList.remove(ye.CLASS_NAME.show)}setElementContent(e,t){if(null===e)return;const n=this.options.html;"object"==typeof t&&t.nodeType?n?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.innerText=t.textContent:e[n?"innerHTML":"innerText"]=t}getTitle(){let e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),e}getContainer(){return!1===this.options.container?document.body:Te.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)}setListeners(){this.options.trigger.split(" ").forEach((e=>{if("click"===e)Ee.on(this.element,ye.EVENT.click,this.options.selector,(e=>this.toggle(e)));else if(e!==ye.TRIGGER.manual){const t=e===ye.TRIGGER.hover?ye.EVENT.mouseenter:ye.EVENT.focusin,n=e===ye.TRIGGER.hover?ye.EVENT.mouseleave:ye.EVENT.focusout;Ee.on(this.element,t,this.options.selector,(e=>this.enter(e))),Ee.on(this.element,n,this.options.selector,(e=>this.leave(e)))}})),Ee.on(this.element.closest(".modal"),`hide.${t.KEY_PREFIX}.modal`,(()=>{this.element&&this.hide()})),this.options.selector?this.options=Object.assign(Object.assign({},this.options),{trigger:"manual",selector:""}):this.fixTitle()}fixTitle(){const e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}enter(e,t){const n=ye.DATA_KEY;if((t=t||ge.getData(e.delegateTarget,n))||(t=new ye(e.delegateTarget,this.getDelegateConfig()),ge.setData(e.delegateTarget,n,t)),e){const n="focusin"===e.type?ye.TRIGGER.focus:ye.TRIGGER.hover;t.activeTrigger[n]=!0}t.getTipElement().classList.contains(ye.CLASS_NAME.show)||t.hoverState===ye.HOVER_STATE.show?t.hoverState=ye.HOVER_STATE.show:(clearTimeout(t.timeout),t.hoverState=ye.HOVER_STATE.show,t.options.delay&&t.options.delay.show?t.timeout=setTimeout((()=>{t._hoverState===ye.HOVER_STATE.show&&t.show()}),t.options.delay.show):t.show())}leave(e,t){const n=ye.DATA_KEY;if((t=t||ge.getData(e.delegateTarget,n))||(t=new ye(e.delegateTarget,this.getDelegateConfig()),ge.setData(e.delegateTarget,n,t)),e){const n="focusout"===e.type?ye.TRIGGER.focus:ye.TRIGGER.hover;t.activeTrigger[n]=!1}t.isWithActiveTrigger()||(clearTimeout(t.timeout),t.hoverState=ye.HOVER_STATE.out,t.options.delay&&t.options.delay.hide?t.timeout=setTimeout((()=>{t.hoverState===ye.HOVER_STATE.out&&t.hide()}),t.options.delay.hide):t.hide())}isWithActiveTrigger(){for(const e in this.activeTrigger)if(this.activeTrigger[e])return!0;return!1}static getOptions(e,t){return"number"==typeof(t=Object.assign(Object.assign(Object.assign({},ye.DEFAULT_OPTIONS),be.getDataAttributes(e)),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Te.typeCheckConfig(ye.NAME,t,ye.DEFAULT_TYPE),t}getDelegateConfig(){const e={};if(this.options)for(const t in this.options)ye.DEFAULT_OPTIONS[t]!==this.options[t]&&(e[t]=this.options[t]);return e}cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(ye.NJCLS_PREFIX_REGEX);null!==t&&t.length&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}handlePopperPlacementChange(e){const t=e.instance;this.tip=t.popper,this.cleanTipClass(),this.addAttachmentClass(ye.getAttachment(e.placement))}fixTransition(){const e=this.getTipElement(),t=this.options.animation;null===e.getAttribute("x-placement")&&(e.classList.remove(ye.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=t)}static getAttachment(e){return ye.ATTACHMENT_MAP[e.toUpperCase()]}static getInstance(e){return ge.getData(e,ye.DATA_KEY)}static init(){return[]}}return ye.NAME=`${t.KEY_PREFIX}-tooltip`,ye.DATA_KEY=`${t.KEY_PREFIX}.tooltip`,ye.EVENT_KEY=`.${ye.DATA_KEY}`,ye.CLASS_NAME={default:`${t.KEY_PREFIX}-tooltip`,inner:`${t.KEY_PREFIX}-tooltip__inner`,arrow:`${t.KEY_PREFIX}-tooltip__arrow`,withoutArrow:`${t.KEY_PREFIX}-tooltip--without-arrow`,inverse:`${t.KEY_PREFIX}-tooltip--inverse`,fade:"fade",show:"show"},ye.NJCLS_PREFIX_REGEX=new RegExp(`(^|\\s)${ye.CLASS_NAME.default}\\S+`,"g"),ye.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},ye.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ye.DEFAULT_OPTIONS={animation:!0,template:`<div class="${ye.CLASS_NAME.default}" role="tooltip"><div class="${ye.CLASS_NAME.arrow}"></div><div class="${ye.CLASS_NAME.inner}"></div></div>`,trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},ye.HOVER_STATE={show:"show",out:"out"},ye.EVENT={hide:`${o.hide}${ye.EVENT_KEY}`,hidden:`${o.hidden}${ye.EVENT_KEY}`,show:`${o.show}${ye.EVENT_KEY}`,shown:`${o.shown}${ye.EVENT_KEY}`,inserted:`${o.inserted}${ye.EVENT_KEY}`,click:`${o.click}${ye.EVENT_KEY}`,focusin:`${o.focusin}${ye.EVENT_KEY}`,focusout:`${o.focusout}${ye.EVENT_KEY}`,mouseenter:`${o.mouseenter}${ye.EVENT_KEY}`,mouseleave:`${o.mouseleave}${ye.EVENT_KEY}`},ye.SELECTOR={default:'[data-toggle="tooltip"]',inner:`.${ye.CLASS_NAME.inner}`,arrow:`.${ye.CLASS_NAME.arrow}`,tooltip:`.${t.KEY_PREFIX}-tooltip`},ye.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"},r=r.default})())); | ||
//# sourceMappingURL=index.js.map |
@@ -19,3 +19,5 @@ export declare enum EventName { | ||
mouseup = "mouseup", | ||
mousedown = "mousedown" | ||
mousedown = "mousedown", | ||
decrement = "decrement", | ||
increment = "increment" | ||
} |
{ | ||
"name": "@engie-group/fluid-design-system", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.", | ||
@@ -71,3 +71,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@engie-group/fluid-design-tokens": "^5.1.0" | ||
"@engie-group/fluid-design-tokens": "^5.2.0" | ||
}, | ||
@@ -74,0 +74,0 @@ "devDependencies": { |
@@ -105,3 +105,3 @@ /** | ||
const value = parseFloat(this.input.value); | ||
const perc = Math.floor((Slider.PERCENT_CONV * (value - min)) / (max - min)); | ||
const perc = (Slider.PERCENT_CONV * (value - min)) / (max - min); | ||
input.style.setProperty('--nj-slider-track-position', `${perc}% 100%`); | ||
@@ -108,0 +108,0 @@ } |
@@ -19,3 +19,5 @@ export enum EventName { | ||
mouseup = 'mouseup', | ||
mousedown = 'mousedown' | ||
mousedown = 'mousedown', | ||
decrement = 'decrement', | ||
increment = 'increment' | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7720260
497
22129