Files
Falcon-PrestaShop-9/assets/js/6cb6b7233c7fe9b905f7.js

25 lines
24 KiB
JavaScript

"use strict";(()=>{(self.webpackChunkFalcon_theme=self.webpackChunkFalcon_theme||[]).push([[67],{980:(we,V,A)=>{A.d(V,{Z:()=>k});var C=A(5311),T=A.n(C);const B="transitionend",$=1e6,z=1e3;function Y(c){return c===null||typeof c=="undefined"?`${c}`:{}.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase()}function H(){return{bindType:B,delegateType:B,handle(c){if(T()(c.target).is(this))return c.handleObj.handler.apply(this,arguments)}}}function S(c){let m=!1;return T()(this).one(y.TRANSITION_END,()=>{m=!0}),setTimeout(()=>{m||y.triggerTransitionEnd(this)},c),this}function W(){T().fn.emulateTransitionEnd=S,T().event.special[y.TRANSITION_END]=H()}const y={TRANSITION_END:"bsTransitionEnd",getUID(c){do c+=~~(Math.random()*$);while(document.getElementById(c));return c},getSelectorFromElement(c){let m=c.getAttribute("data-target");if(!m||m==="#"){const g=c.getAttribute("href");m=g&&g!=="#"?g.trim():""}try{return document.querySelector(m)?m:null}catch(g){return null}},getTransitionDurationFromElement(c){if(!c)return 0;let m=T()(c).css("transition-duration"),g=T()(c).css("transition-delay");const b=parseFloat(m),L=parseFloat(g);return!b&&!L?0:(m=m.split(",")[0],g=g.split(",")[0],(parseFloat(m)+parseFloat(g))*z)},reflow(c){return c.offsetHeight},triggerTransitionEnd(c){T()(c).trigger(B)},supportsTransitionEnd(){return Boolean(B)},isElement(c){return(c[0]||c).nodeType},typeCheckConfig(c,m,g){for(const b in g)if(Object.prototype.hasOwnProperty.call(g,b)){const L=g[b],x=m[b],M=x&&y.isElement(x)?"element":Y(x);if(!new RegExp(L).test(M))throw new Error(`${c.toUpperCase()}: Option "${b}" provided type "${M}" but expected type "${L}".`)}},findShadowRoot(c){if(!document.documentElement.attachShadow)return null;if(typeof c.getRootNode=="function"){const m=c.getRootNode();return m instanceof ShadowRoot?m:null}return c instanceof ShadowRoot?c:c.parentNode?y.findShadowRoot(c.parentNode):null},jQueryDetection(){if(typeof T()=="undefined")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const c=T().fn.jquery.split(" ")[0].split("."),m=1,g=2,b=9,L=1,x=4;if(c[0]<g&&c[1]<b||c[0]===m&&c[1]===b&&c[2]<L||c[0]>=x)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};y.jQueryDetection(),W();const k=y},8981:(we,V,A)=>{A.d(V,{Z:()=>Xe});/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var C=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",T=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(C&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function B(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()},T))}}var z=C&&window.Promise,Y=z?B:$;function H(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function S(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function W(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function y(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=S(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:y(W(e))}function k(e){return e&&e.referenceNode?e.referenceNode:e}var c=C&&!!(window.MSInputMethodContext&&document.documentMode),m=C&&/MSIE 10/.test(navigator.userAgent);function g(e){return e===11?c:e===10?m:c||m}function b(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&S(r,"position")==="static"?b(r):r}function L(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||b(e.firstElementChild)===e}function x(e){return e.parentNode!==null?x(e.parentNode):e}function M(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,o=document.createRange();o.setStart(n,0),o.setEnd(i,0);var s=o.commonAncestorContainer;if(e!==s&&t!==s||n.contains(i))return L(s)?s:b(s);var f=x(e);return f.host?M(f.host,t):M(e,x(t).host)}function F(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[r]}return e[r]}function be(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=F(t,"top"),i=F(t,"left"),o=r?-1:1;return e.top+=n*o,e.bottom+=n*o,e.left+=i*o,e.right+=i*o,e}function te(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function re(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],g(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function ne(e){var t=e.body,r=e.documentElement,n=g(10)&&getComputedStyle(r);return{height:re("Height",t,r,n),width:re("Width",t,r,n)}}var ye=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ee=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),I=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function D(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function q(e){var t={};try{if(g(10)){t=e.getBoundingClientRect();var r=F(e,"top"),n=F(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(u){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?ne(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,f=o.height||e.clientHeight||i.height,a=e.offsetWidth-s,l=e.offsetHeight-f;if(a||l){var p=S(e);a-=te(p,"x"),l-=te(p,"y"),i.width-=a,i.height-=l}return D(i)}function K(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=g(10),i=t.nodeName==="HTML",o=q(e),s=q(t),f=y(e),a=S(t),l=parseFloat(a.borderTopWidth),p=parseFloat(a.borderLeftWidth);r&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var u=D({top:o.top-s.top-l,left:o.left-s.left-p,width:o.width,height:o.height});if(u.marginTop=0,u.marginLeft=0,!n&&i){var h=parseFloat(a.marginTop),d=parseFloat(a.marginLeft);u.top-=l-h,u.bottom-=l-h,u.left-=p-d,u.right-=p-d,u.marginTop=h,u.marginLeft=d}return(n&&!r?t.contains(f):t===f&&f.nodeName!=="BODY")&&(u=be(u,t)),u}function Oe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=K(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),o=Math.max(r.clientHeight,window.innerHeight||0),s=t?0:F(r),f=t?0:F(r,"left"),a={top:s-n.top+n.marginTop,left:f-n.left+n.marginLeft,width:i,height:o};return D(a)}function oe(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(S(e,"position")==="fixed")return!0;var r=W(e);return r?oe(r):!1}function ie(e){if(!e||!e.parentElement||g())return document.documentElement;for(var t=e.parentElement;t&&S(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Q(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},s=i?ie(e):M(e,k(t));if(n==="viewport")o=Oe(s,i);else{var f=void 0;n==="scrollParent"?(f=y(W(t)),f.nodeName==="BODY"&&(f=e.ownerDocument.documentElement)):n==="window"?f=e.ownerDocument.documentElement:f=n;var a=K(f,s,i);if(f.nodeName==="HTML"&&!oe(s)){var l=ne(e.ownerDocument),p=l.height,u=l.width;o.top+=a.top-a.marginTop,o.bottom=p+a.top,o.left+=a.left-a.marginLeft,o.right=u+a.left}else o=a}r=r||0;var h=typeof r=="number";return o.left+=h?r:r.left||0,o.top+=h?r:r.top||0,o.right-=h?r:r.right||0,o.bottom-=h?r:r.bottom||0,o}function Te(e){var t=e.width,r=e.height;return t*r}function se(e,t,r,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=Q(r,n,o,i),f={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}},a=Object.keys(f).map(function(h){return E({key:h},f[h],{area:Te(f[h])})}).sort(function(h,d){return d.area-h.area}),l=a.filter(function(h){var d=h.width,v=h.height;return d>=r.clientWidth&&v>=r.clientHeight}),p=l.length>0?l[0].key:a[0].key,u=e.split("-")[1];return p+(u?"-"+u:"")}function fe(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?ie(t):M(t,k(r));return K(r,i,n)}function ae(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+n};return o}function U(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function ue(e,t,r){r=r.split("-")[0];var n=ae(e),i={width:n.width,height:n.height},o=["right","left"].indexOf(r)!==-1,s=o?"top":"left",f=o?"left":"top",a=o?"height":"width",l=o?"width":"height";return i[s]=t[s]+t[a]/2-n[a]/2,r===f?i[f]=t[f]-n[l]:i[f]=t[U(f)],i}function _(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Se(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=_(e,function(i){return i[t]===r});return e.indexOf(n)}function le(e,t,r){var n=r===void 0?e:e.slice(0,Se(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&H(o)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=o(t,i))}),t}function xe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=fe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=se(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=ue(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=le(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function pe(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function X(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],o=i?""+i+r:e;if(typeof document.body.style[o]!="undefined")return o}return null}function Pe(){return this.state.isDestroyed=!0,pe(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[X("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ce(e){var t=e.ownerDocument;return t?t.defaultView:window}function de(e,t,r,n){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,r,{passive:!0}),i||de(y(o.parentNode),t,r,n),n.push(o)}function Le(e,t,r,n){r.updateBound=n,ce(e).addEventListener("resize",r.updateBound,{passive:!0});var i=y(e);return de(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function De(){this.state.eventsEnabled||(this.state=Le(this.reference,this.options,this.state,this.scheduleUpdate))}function Ne(e,t){return ce(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Ce(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Ne(this.reference,this.state))}function G(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function J(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&G(t[r])&&(n="px"),e.style[r]=t[r]+n})}function Me(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function Re(e){return J(e.instance.popper,e.styles),Me(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&J(e.arrowElement,e.arrowStyles),e}function Ae(e,t,r,n,i){var o=fe(i,t,e,r.positionFixed),s=se(r.placement,o,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",s),J(t,{position:r.positionFixed?"fixed":"absolute"}),r}function Be(e,t){var r=e.offsets,n=r.popper,i=r.reference,o=Math.round,s=Math.floor,f=function(N){return N},a=o(i.width),l=o(n.width),p=["left","right"].indexOf(e.placement)!==-1,u=e.placement.indexOf("-")!==-1,h=a%2===l%2,d=a%2===1&&l%2===1,v=t?p||u||h?o:s:f,w=t?o:f;return{left:v(d&&!u&&t?n.left-1:n.left),top:w(n.top),bottom:w(n.bottom),right:v(n.right)}}var Fe=C&&/Firefox/i.test(navigator.userAgent);function Ie(e,t){var r=t.x,n=t.y,i=e.offsets.popper,o=_(e.instance.modifiers,function(R){return R.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==void 0?o:t.gpuAcceleration,f=b(e.instance.popper),a=q(f),l={position:i.position},p=Be(e,window.devicePixelRatio<2||!Fe),u=r==="bottom"?"top":"bottom",h=n==="right"?"left":"right",d=X("transform"),v=void 0,w=void 0;if(u==="bottom"?f.nodeName==="HTML"?w=-f.clientHeight+p.bottom:w=-a.height+p.bottom:w=p.top,h==="right"?f.nodeName==="HTML"?v=-f.clientWidth+p.right:v=-a.width+p.right:v=p.left,s&&d)l[d]="translate3d("+v+"px, "+w+"px, 0)",l[u]=0,l[h]=0,l.willChange="transform";else{var P=u==="bottom"?-1:1,N=h==="right"?-1:1;l[u]=w*P,l[h]=v*N,l.willChange=u+", "+h}var O={"x-placement":e.placement};return e.attributes=E({},O,e.attributes),e.styles=E({},l,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e}function he(e,t,r){var n=_(e,function(f){var a=f.name;return a===t}),i=!!n&&e.some(function(f){return f.name===r&&f.enabled&&f.order<n.order});if(!i){var o="`"+t+"`",s="`"+r+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function We(e,t){var r;if(!he(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,f=o.reference,a=["left","right"].indexOf(i)!==-1,l=a?"height":"width",p=a?"Top":"Left",u=p.toLowerCase(),h=a?"left":"top",d=a?"bottom":"right",v=ae(n)[l];f[d]-v<s[u]&&(e.offsets.popper[u]-=s[u]-(f[d]-v)),f[u]+v>s[d]&&(e.offsets.popper[u]+=f[u]+v-s[d]),e.offsets.popper=D(e.offsets.popper);var w=f[u]+f[l]/2-v/2,P=S(e.instance.popper),N=parseFloat(P["margin"+p]),O=parseFloat(P["border"+p+"Width"]),R=w-e.offsets.popper[u]-N-O;return R=Math.max(Math.min(s[l]-v,R),0),e.arrowElement=n,e.offsets.arrow=(r={},I(r,u,Math.round(R)),I(r,h,""),r),e}function _e(e){return e==="end"?"start":e==="start"?"end":e}var ve=["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"],Z=ve.slice(3);function me(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Z.indexOf(e),n=Z.slice(r+1).concat(Z.slice(0,r));return t?n.reverse():n}var ee={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function He(e,t){if(pe(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=Q(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=U(n),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case ee.FLIP:s=[n,i];break;case ee.CLOCKWISE:s=me(n);break;case ee.COUNTERCLOCKWISE:s=me(n,!0);break;default:s=t.behavior}return s.forEach(function(f,a){if(n!==f||s.length===a+1)return e;n=e.placement.split("-")[0],i=U(n);var l=e.offsets.popper,p=e.offsets.reference,u=Math.floor,h=n==="left"&&u(l.right)>u(p.left)||n==="right"&&u(l.left)<u(p.right)||n==="top"&&u(l.bottom)>u(p.top)||n==="bottom"&&u(l.top)<u(p.bottom),d=u(l.left)<u(r.left),v=u(l.right)>u(r.right),w=u(l.top)<u(r.top),P=u(l.bottom)>u(r.bottom),N=n==="left"&&d||n==="right"&&v||n==="top"&&w||n==="bottom"&&P,O=["top","bottom"].indexOf(n)!==-1,R=!!t.flipVariations&&(O&&o==="start"&&d||O&&o==="end"&&v||!O&&o==="start"&&w||!O&&o==="end"&&P),Ge=!!t.flipVariationsByContent&&(O&&o==="start"&&v||O&&o==="end"&&d||!O&&o==="start"&&P||!O&&o==="end"&&w),ge=R||Ge;(h||N||ge)&&(e.flipped=!0,(h||N)&&(n=s[a+1]),ge&&(o=_e(o)),e.placement=n+(o?"-"+o:""),e.offsets.popper=E({},e.offsets.popper,ue(e.instance.popper,e.offsets.reference,e.placement)),e=le(e.instance.modifiers,e,"flip"))}),e}function ke(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=["top","bottom"].indexOf(i)!==-1,f=s?"right":"bottom",a=s?"left":"top",l=s?"width":"height";return r[f]<o(n[a])&&(e.offsets.popper[a]=o(n[a])-r[l]),r[a]>o(n[f])&&(e.offsets.popper[a]=o(n[f])),e}function Ue(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(s.indexOf("%")===0){var f=void 0;switch(s){case"%p":f=r;break;case"%":case"%r":default:f=n}var a=D(f);return a[t]/100*o}else if(s==="vh"||s==="vw"){var l=void 0;return s==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}else return o}function je(e,t,r,n){var i=[0,0],o=["right","left"].indexOf(n)!==-1,s=e.split(/(\+|\-)/).map(function(p){return p.trim()}),f=s.indexOf(_(s,function(p){return p.search(/,|\s/)!==-1}));s[f]&&s[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var a=/\s*,\s*|\s+/,l=f!==-1?[s.slice(0,f).concat([s[f].split(a)[0]]),[s[f].split(a)[1]].concat(s.slice(f+1))]:[s];return l=l.map(function(p,u){var h=(u===1?!o:o)?"height":"width",d=!1;return p.reduce(function(v,w){return v[v.length-1]===""&&["+","-"].indexOf(w)!==-1?(v[v.length-1]=w,d=!0,v):d?(v[v.length-1]+=w,d=!1,v):v.concat(w)},[]).map(function(v){return Ue(v,h,t,r)})}),l.forEach(function(p,u){p.forEach(function(h,d){G(h)&&(i[u]+=h*(p[d-1]==="-"?-1:1))})}),i}function Ve(e,t){var r=t.offset,n=e.placement,i=e.offsets,o=i.popper,s=i.reference,f=n.split("-")[0],a=void 0;return G(+r)?a=[+r,0]:a=je(r,o,s,f),f==="left"?(o.top+=a[0],o.left-=a[1]):f==="right"?(o.top+=a[0],o.left+=a[1]):f==="top"?(o.left+=a[0],o.top-=a[1]):f==="bottom"&&(o.left+=a[0],o.top+=a[1]),e.popper=o,e}function $e(e,t){var r=t.boundariesElement||b(e.instance.popper);e.instance.reference===r&&(r=b(r));var n=X("transform"),i=e.instance.popper.style,o=i.top,s=i.left,f=i[n];i.top="",i.left="",i[n]="";var a=Q(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=o,i.left=s,i[n]=f,t.boundaries=a;var l=t.priority,p=e.offsets.popper,u={primary:function(d){var v=p[d];return p[d]<a[d]&&!t.escapeWithReference&&(v=Math.max(p[d],a[d])),I({},d,v)},secondary:function(d){var v=d==="right"?"left":"top",w=p[v];return p[d]>a[d]&&!t.escapeWithReference&&(w=Math.min(p[v],a[d]-(d==="right"?p.width:p.height))),I({},v,w)}};return l.forEach(function(h){var d=["left","top"].indexOf(h)!==-1?"primary":"secondary";p=E({},p,u[d](h))}),e.offsets.popper=p,e}function ze(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,o=i.reference,s=i.popper,f=["bottom","top"].indexOf(r)!==-1,a=f?"left":"top",l=f?"width":"height",p={start:I({},a,o[a]),end:I({},a,o[a]+o[l]-s[l])};e.offsets.popper=E({},s,p[n])}return e}function Ye(e){if(!he(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=_(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function qe(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,o=n.reference,s=["left","right"].indexOf(r)!==-1,f=["top","left"].indexOf(r)===-1;return i[s?"left":"top"]=o[r]-(f?i[s?"width":"height"]:0),e.placement=U(t),e.offsets.popper=D(i),e}var Ke={shift:{order:100,enabled:!0,fn:ze},offset:{order:200,enabled:!0,fn:Ve,offset:0},preventOverflow:{order:300,enabled:!0,fn:$e,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ke},arrow:{order:500,enabled:!0,fn:We,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:He,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:qe},hide:{order:800,enabled:!0,fn:Ye},computeStyle:{order:850,enabled:!0,fn:Ie,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Re,onLoad:Ae,gpuAcceleration:void 0}},Qe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ke},j=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ye(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Y(this.update.bind(this)),this.options=E({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){n.options.modifiers[s]=E({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return E({name:s},n.options.modifiers[s])}).sort(function(s,f){return s.order-f.order}),this.modifiers.forEach(function(s){s.enabled&&H(s.onLoad)&&s.onLoad(n.reference,n.popper,n.options,s,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Ee(e,[{key:"update",value:function(){return xe.call(this)}},{key:"destroy",value:function(){return Pe.call(this)}},{key:"enableEventListeners",value:function(){return De.call(this)}},{key:"disableEventListeners",value:function(){return Ce.call(this)}}]),e}();j.Utils=(typeof window!="undefined"?window:A.g).PopperUtils,j.placements=ve,j.Defaults=Qe;const Xe=j}}]);})();