PageSourceSearch

https://m1.com/wp-content/themes/theme-m1/public/js/app.js?ver=1790136957

js m1.com collected 2026-09-24 09:01:23 UTC 198,298 bytes, 3 lines download raw bytes

1!function r(i,o,a){function s(t,e){if(!o[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=o[t]={exports:{}},i[t][0].call(n.exports,function(e){return s(i[t][1][e]||e)},n,n.exports,r,i,o,a)}return o[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,n){"use strict";n.__esModule=!0,n.default=function(e){return{starting_balance:"5000",monthly_contributions:"400",time_to_grow:3,caRates:[],contributionType:"m",maxRange:24,init:function(){this.caRates=JSON.parse(e)},total_interest_earned:function(e){var t=""===this.starting_balance?0:parseFloat(this.starting_balance.replace(",","")),e=parseFloat(e),n=12,r=this.time_to_grow/12,i=this.addedContribution(),e=(e=t*Math.pow(1+e/n,n*r)+i*((Math.pow(1+e/n,n*r)-1)/(e/n))-(t+i*(n*r))).toFixed(2);return Number(e).toLocaleString(void 0,{minimumFractionDigits:2})},displayRate:function(e){e*=100;return"".concat(e.toFixed(2),"%")},addedContribution:function(){return"m"===this.contributionType?this.monthly_contributions.replace(",",""):"bw"===this.contributionType?2*this.monthly_contributions:"w"===this.contributionType?4*this.monthly_contributions:void 0},placeTooltip:function(){var e=this.time_to_grow,t=this.maxRange,t=parseInt(String(100*(e-1)/(t-1)),10),e=15<=(e=2.725*e)?e:15;return"calc(".concat(t,"% - (").concat(e,"px))")},testDepositLength:function(){10<this.starting_balance.length&&(this.starting_balance=this.starting_balance.slice(0,10))},testRecurringLength:function(){10<this.monthly_contributions.length&&(this.monthly_contributions=this.monthly_contributions.slice(0,10))},showYears:function(){return 1<this.time_to_grow}}}},{}],2:[function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})},i=this&&this.__generator||function(r,i){var o,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(n){return function(e){var t=[n,e];if(o)throw new TypeError("Generator is already executing.");for(;l=c&&t[c=0]?0:l;)try{if(o=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=i.call(r,l)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}};n.__esModule=!0,n.default=function(e){return{username:"",trackingLabel:"",isSending:!1,isComplete:!1,sendingError:[],init:function(){this.trackingLabel=e},submitForm:function(){this.contentIsValid()&&this.sendContent()},contentIsValid:function(){var e=!0;this.sendingError=[];return""===this.username?(e=!1,this.sendingError.push("INVALID_USERNAME")):null===this.username.match('^(([^<>()[\\]\\\\.,;:\\s@"]+(\\.[^<>()[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$')&&(e=!1,this.sendingError.push("INVALID_USERNAME_REGEX")),e},sendContent:function(){return r(this,void 0,void 0,function(){var t;return i(this,function(e){switch(e.label){case 0:return(e.trys.push([0,3,,4]),(t=window.analytics=window.analytics||[]).initialized)?(this.sendingError=[],this.isSendingChange(!0),[4,t.track("".concat(this.trackingLabel),{email:"".concat(this.username)})]):[3,2];case 1:e.sent(),this.isSendingChange(!1),this.showSuccess(),e.label=2;case 2:return[3,4];
1case 3:return e.sent(),this.sendingError.push("NETWORK_ERROR"),[3,4];case 4:return[2]}})})},isSendingChange:function(e){this.isSending=e},showSuccess:function(){this.isComplete=!0}}}},{}],3:[function(e,t,n){"use strict";n.__esModule=!0,n.default=function(e){return{starting_balance:5e3,monthly_contributions:400,time_to_grow:1,hysaRates:[],contributionType:"m",maxRange:10,init:function(){this.hysaRates=JSON.parse(e)},total_interest_earned:function(e){var t=""===this.starting_balance?0:parseFloat(this.starting_balance),e=parseFloat(e),n=this.time_to_grow,r=this.addedContribution(),n=(n=t*Math.pow(1+e/12,12*n)+r*((Math.pow(1+e/12,12*n)-1)/(e/12))-(t+r*(12*this.time_to_grow))).toFixed(2);return Number(n).toLocaleString(void 0,{minimumFractionDigits:2})},displayRate:function(e){e*=100;return"".concat(e.toFixed(2),"%")},addedContribution:function(){return"m"===this.contributionType?this.monthly_contributions:"bw"===this.contributionType?2*this.monthly_contributions:"w"===this.contributionType?4*this.monthly_contributions:void 0},placeTooltip:function(){var e=this.time_to_grow,t=this.maxRange,t=parseInt(String(100*(e-1)/(t-1)),10),e=24<=(e=6*e)?e:24;return"calc(".concat(t,"% - (").concat(e,"px))")},testDepositLength:function(){10<this.starting_balance.length&&(this.starting_balance=this.starting_balance.slice(0,10))},testRecurringLength:function(){10<this.monthly_contributions.length&&(this.monthly_contributions=this.monthly_contributions.slice(0,10))}}}},{}],4:[function(e,t,n){"use strict";n.__esModule=!0,n.default=function(e){return{selected:1,options:e}}},{}],5:[function(e,t,n){"use strict";n.__esModule=!0,n.default=function(){return{clicked:0,sliderTop:0,sliderLeft:0,slider:"",startW:0,startH:0,imgW:0,imgH:0,img:"",isMobile:window.innerWidth<768,currentTarget:null,init_func:function(e,t){var n=this.$refs.imgoverlay;this.startW=e,this.startH=t,this.isMobile?this.compareImages(n,this.startW/1.75,this.startH/1.75):this.compareImages(n,this.startW,this.startH)},compareImages:function(e,t,n){this.img=e,this.imgW=t,this.imgH=n;e=1.75*this.imgW/2,t=.85*this.imgW;this.img.style.width=t+"px",this.slider=this.$refs.slider,this.slider.style.left="-".concat(e-t,"px")},slideReady:function(e){e.preventDefault(),this.clicked=1},slideFinish:function(){this.clicked=0},slideMove:function(e){if(0===this.clicked)return!1;(e=(e=this.getCursorPos(e))<0?0:e)>this.imgW&&(e=this.imgW),this.slide(e)},getCursorPos:function(e){var t=0,e=e.changedTouches?e.changedTouches[0]:e,n=this.img.getBoundingClientRect(),t=e.pageX-n.left;return t-=window.pageXOffset},slide:function(e){this.img.style.width=e+"px",this.slider.style.left=this.img.offsetWidth-this.slider.offsetWidth/2+"px"},screenResize:function(){var e=this.$refs.imgoverlay;this.isMobile?this.compareImages(e,this.startW/1.75,this.startH/1.75):this.compareImages(e,this.startW,this.startH)}}}},{}],6:[function(e,t,n){"use strict";n.__esModule=!0,n.default=function(){return{showing:null,storiesColumn:null,imagesColumn:null,stories:null,images:null,is_init:!1,init:function(){var e,a=this,s=(this.storiesColumn=this.$refs.stories,this.imagesColumn=this.$refs.images,[]);this.stories=this.storiesColumn.querySelectorAll(".block-m1-story-accordion-element "),this.stories.forEach(function(e,t){0===t&&(a.showing=e.getAttribute("data-id")),s.push(e.getAttribute("data-id"))}),this.images=this.imagesColumn.querySelectorAll(".kb-lottie-container, .wp-block-kadence-image"),this.images.forEach(function(e,t){e.setAttribute("data-id",s[t]);(r=e.classList).add.apply(r,["transition-all","ease-in-out","delay-150","opacity-100"]);var n=e.querySelector("dotlottie-player"),r=e.classList.contains("wp-block-kadence-image")?e:null,i=a.stories[t].querySelector(".animation-storage"),o=null!==n?n.cloneNode(!0):null,r=null!==r?r.cloneNode(!0):null;null!==o&&i.append(o),null!==r&&i.append(r),a.showing!==s[t]?e.classList.add("hidden","opacity-0"):(null!==n&&null!==o&&(n.addEventListener("ready",function(){n.play()}),o.addEventListener("ready",function(){o.play(),a.is_init=!0})),a.is_init=!0)}),window.addEventListener("resize",function(){a.is_init=!1,clearTimeout(e),e=setTimeout(function(){a.is_init=!0},100)})},changeStory:function(e){var r=this;this.showing=e.target.closest("[data-id]").getAttribute("data-id"),this.images.forEac
1h(function(e,t){var n=e.querySelector("dotlottie-player"),t=r.stories[t].querySelector("dotlottie-player");e.dataset.id===r.showing?(r.fadeInElement(e),n&&n.play(),t&&t.play()):(r.fadeOutElement(e),n&&n.stop(),t&&t.stop())})},fadeOutElement:function(e){e.classList.add("opacity-0"),setTimeout(function(){e.classList.add("hidden")},150)},fadeInElement:function(e){setTimeout(function(){e.classList.remove("hidden","opacity-0")},150)}}}},{}],7:[function(e,t,n){"use strict";n.__esModule=!0,n.default=function(){var e=document.getElementById("blog-sub-nav-mobile-native-select");e&&e.addEventListener("change",function(e){window.location=e.target.value})}},{}],8:[function(t,n,e){"use strict";function b(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function f(e){return e instanceof b(e).Element||e instanceof Element}function l(e){return e instanceof b(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof b(e).ShadowRoot||e instanceof ShadowRoot)}Object.defineProperty(e,"__esModule",{value:!0});var C=Math.max,A=Math.min,_=Math.round;function a(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function E(){return!/^((?!chrome|android).)*safari/i.test(a())}function d(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&l(e)&&(i=0<e.offsetWidth&&_(r.width)/e.offsetWidth||1,o=0<e.offsetHeight&&_(r.height)/e.offsetHeight||1);t=(f(e)?b(e):window).visualViewport,e=!E()&&n,n=(r.left+(e&&t?t.offsetLeft:0))/i,e=(r.top+(e&&t?t.offsetTop:0))/o,t=r.width/i,i=r.height/o;return{width:t,height:i,top:e,right:n+t,bottom:e+i,left:n,x:n,y:e}}function h(e){e=b(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function c(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return d(w(e)).left+h(e).scrollLeft}function x(e){return b(e).getComputedStyle(e)}function u(e){var e=x(e),t=e.overflow,n=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+n)}function O(e,t,n){void 0===n&&(n=!1);var r=l(t),i=l(t)&&(a=(i=t).getBoundingClientRect(),o=_(a.width)/i.offsetWidth||1,a=_(a.height)/i.offsetHeight||1,1!==o||1!==a),o=w(t),a=d(e,i,n),e={scrollLeft:0,scrollTop:0},s={x:0,y:0};return!r&&n||("body"===c(t)&&!u(o)||(e=(r=t)!==b(r)&&l(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:h(r)),l(t)?((s=d(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=p(o))),{x:a.left+e.scrollLeft-s.x,y:a.top+e.scrollTop-s.y,width:a.width,height:a.height}}function S(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function s(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||w(e)}function m(e,t){void 0===t&&(t=[]);var n=function e(t){return 0<=["html","body","#document"].indexOf(c(t))?t.ownerDocument.body:l(t)&&u(t)?t:e(s(t))}(e),e=n===(null==(e=e.ownerDocument)?void 0:e.body),r=b(n),r=e?[r].concat(r.visualViewport||[],u(n)?n:[]):n,n=t.concat(r);return e?n:n.concat(m(s(r)))}function i(e){return l(e)&&"fixed"!==x(e).position?e.offsetParent:null}function T(e){for(var t,n=b(e),r=i(e);r&&(t=r,0<=["table","td","th"].indexOf(c(t)))&&"static"===x(r).position;)r=i(r);return(!r||"html"!==c(r)&&("body"!==c(r)||"static"!==x(r).position))&&(r||function(e){var t=/firefox/i.test(a()),n=/Trident/i.test(a());if(!n||!l(e)||"fixed"!==x(e).position){var r=s(e);for(o(r)&&(r=r.host);l(r)&&["html","body"].indexOf(c(r))<0;){var i=x(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}}return null}(e))||n}var L="top",I="bottom",D="right",M="left",R="auto",P=[L,I,D,M],j="start",k="end",q="clippingParents",V="viewport",g="popper",W="reference",K=P.reduce(function(e,t){return e.concat([t+"-"+j,t+"-"+k])},[]),z=[].concat(P,[R]).reduce(function(e,t){return e.concat([t,t+"-"+j,t+"-"+k])},[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function G(e){var n=new Map,r=new Set,i=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||!function t(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
1h(function(e){r.has(e)||(e=n.get(e))&&t(e)}),i.push(e)}(e)}),i}function Z(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0}while(r=r.parentNode||r.host)}return!1}function v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q(e,t,n){return t===V?v((i=n,a=b(r=e),s=w(r),a=a.visualViewport,l=s.clientWidth,s=s.clientHeight,u=c=0,a&&(l=a.width,s=a.height,(o=E())||!o&&"fixed"===i)&&(c=a.offsetLeft,u=a.offsetTop),{width:l,height:s,x:c+p(r),y:u})):f(t)?((i=d(o=t,!1,"fixed"===(i=n))).top=i.top+o.clientTop,i.left=i.left+o.clientLeft,i.bottom=i.top+o.clientHeight,i.right=i.left+o.clientWidth,i.width=o.clientWidth,i.height=o.clientHeight,i.x=i.left,i.y=i.top,i):v((a=w(e),l=w(a),s=h(a),c=null==(c=a.ownerDocument)?void 0:c.body,r=C(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=C(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),a=-s.scrollLeft+p(a),s=-s.scrollTop,"rtl"===x(c||l).direction&&(a+=C(l.clientWidth,c?c.clientWidth:0)-r),{width:r,height:u,x:a,y:s}));var r,i,o,a,s,l,c,u}function J(n,e,t,r){var i,o="clippingParents"===e?(a=m(s(o=n)),f(i=0<=["absolute","fixed"].indexOf(x(o).position)&&l(o)?T(o):o)?a.filter(function(e){return f(e)&&Z(e,i)&&"body"!==c(e)}):[]):[].concat(e),a=[].concat(o,[t]),e=a[0],t=a.reduce(function(e,t){t=Q(n,t,r);return e.top=C(t.top,e.top),e.right=A(t.right,e.right),e.bottom=A(t.bottom,e.bottom),e.left=C(t.left,e.left),e},Q(n,e,r));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function N(e){return e.split("-")[0]}function F(e){return e.split("-")[1]}function X(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,e=e.placement,i=e?N(e):null,e=e?F(e):null,o=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(i){case L:t={x:o,y:n.y-r.height};break;case I:t={x:o,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:a};break;case M:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=i?X(i):null;if(null!=s){var l="y"===s?"height":"width";switch(e){case j:t[s]=t[s]-(n[l]/2-r[l]/2);break;case k:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}function ee(){return{top:0,right:0,bottom:0,left:0}}function te(e){return Object.assign({},ee(),e)}function ne(n,e){return e.reduce(function(e,t){return e[t]=n,e},{})}function H(e,t){var r,t=t=void 0===t?{}:t,n=t.placement,n=void 0===n?e.placement:n,i=t.strategy,i=void 0===i?e.strategy:i,o=t.boundary,o=void 0===o?q:o,a=t.rootBoundary,a=void 0===a?V:a,s=t.elementContext,s=void 0===s?g:s,l=t.altBoundary,l=void 0!==l&&l,t=t.padding,t=void 0===t?0:t,t=te("number"!=typeof t?t:ne(t,P)),c=e.rects.popper,l=e.elements[l?s===g?W:g:s],l=J(f(l)?l:l.contextElement||w(e.elements.popper),o,a,i),o=d(e.elements.reference),a=Y({reference:o,element:c,strategy:"absolute",placement:n}),i=v(Object.assign({},c,a)),c=s===g?i:o,u={top:l.top-c.top+t.top,bottom:c.bottom-l.bottom+t.bottom,left:l.left-c.left+t.left,right:c.right-l.right+t.right},a=e.modifiersData.offset;return s===g&&a&&(r=a[n],Object.keys(u).forEach(function(e){var t=0<=[D,I].indexOf(e)?1:-1,n=0<=[L,I].indexOf(e)?"y":"x";u[e]+=r[n]*t})),u}var re={placement:"bottom",modifiers:[],strategy:"absolute"};function ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function r(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,d=void 0===t?[]:t,t=e.defaultOptions,h=void 0===t?re:t;return function(r,i,t){void 0===t&&(t=h);var n,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},re,h),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},s=[],l=!1,c={state:a,setOptions:function(e){var n,t,e="function"==typeof e?e(a.options):e,e=(u(),a.options=Object.assign({},h,a.options,e),a.scrollParents={reference:f(r)?m(r):r.contextElement?m(r.contextElement):[],popper:m(i)},e=[].concat(d,a.options.modifiers),t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),e=Object.keys(t).map(function(e){return t[e]}),n=G(e),$.reduce(function(e,t){return e.concat(n.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=e.filter(function(e){return e.enabled}
1),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,e=e.effect;"function"==typeof e&&(e=e({state:a,name:t,instance:c,options:void 0===n?{}:n}),s.push(e||function(){}))}),c.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,e=e.popper;if(ie(t,e)){a.rects={reference:O(t,T(e),"fixed"===a.options.strategy),popper:S(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var n,r,i,o=0;o<a.orderedModifiers.length;o++)!0===a.reset?(a.reset=!1,o=-1):(n=(i=a.orderedModifiers[o]).fn,r=i.options,i=i.name,"function"==typeof n&&(a=n({state:a,options:void 0===r?{}:r,name:i,instance:c})||a))}}},update:(n=function(){return new Promise(function(e){c.forceUpdate(),e(a)})},function(){return o=o||new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(n())})})}),destroy:function(){u(),l=!0}};return ie(r,i)&&c.setOptions(t).then(function(e){!l&&t.onFirstUpdate&&t.onFirstUpdate(e)}),c;function u(){s.forEach(function(e){return e()}),s=[]}}}var y={passive:!0};var oe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=(e=e.options).scroll,i=void 0===r||r,o=void 0===(r=e.resize)||r,a=b(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach(function(e){e.addEventListener("scroll",n.update,y)}),o&&a.addEventListener("resize",n.update,y),function(){i&&s.forEach(function(e){e.removeEventListener("scroll",n.update,y)}),o&&a.removeEventListener("resize",n.update,y)}},data:{}};var ae={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,e=e.isFixed,d=a.x,d=void 0===d?0:d,h=a.y,h=void 0===h?0:h,f="function"==typeof u?u({x:d,y:h}):{x:d,y:h},f=(d=f.x,h=f.y,a.hasOwnProperty("x")),a=a.hasOwnProperty("y"),p=M,m=L,g=window,v=(c&&(v="clientHeight",t="clientWidth",(y=T(n))===b(n)&&"static"!==x(y=w(n)).position&&"absolute"===s&&(v="scrollHeight",t="scrollWidth"),i!==L&&(i!==M&&i!==D||o!==k)||(m=I,h=(h-((e&&y===g&&g.visualViewport?g.visualViewport.height:y[v])-r.height))*(l?1:-1)),i!==M&&(i!==L&&i!==I||o!==k)||(p=D,d=(d-((e&&y===g&&g.visualViewport?g.visualViewport.width:y[t])-r.width))*(l?1:-1))),Object.assign({position:s},c&&se)),y=!0===u?(i={x:d,y:h},o=b(n),e=i.x,i=i.y,o=o.devicePixelRatio||1,{x:_(e*o)/o||0,y:_(i*o)/o||0}):{x:d,y:h};return d=y.x,h=y.y,l?Object.assign({},v,((t={})[m]=a?"0":"",t[p]=f?"0":"",t.transform=(g.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",t)):Object.assign({},v,((r={})[m]=a?h+"px":"",r[p]=f?d+"px":"",r.transform="",r))}var ce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,n=void 0===(n=e.gpuAcceleration)||n,r=void 0===(r=e.adaptive)||r,e=void 0===(e=e.roundOffsets)||e,n={placement:N(t.placement),variation:F(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,le(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,le(Object.assign({},n,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ue={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var i=e.state;Object.keys(i.elements).forEach(function(e){var t=i.styles[e]||{},n=i.attributes[e]||{},r=i.elements[e];l(r)&&c(r)&&(Object.assign(r.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var r=e.state,i={popper:{position:r.options.strategy,left
1:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,i.popper),r.styles=i,r.elements.arrow&&Object.assign(r.elements.arrow.style,i.arrow),function(){Object.keys(r.elements).forEach(function(e){var t=r.elements[e],n=r.attributes[e]||{},e=Object.keys((r.styles.hasOwnProperty(e)?r.styles:i)[e]).reduce(function(e,t){return e[t]="",e},{});l(t)&&c(t)&&(Object.assign(t.style,e),Object.keys(n).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};var de={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var a=e.state,t=e.options,e=e.name,s=void 0===(t=t.offset)?[0,0]:t,t=z.reduce(function(e,t){var n,r,i,o;return e[t]=(t=t,n=a.rects,r=s,i=N(t),o=0<=[M,L].indexOf(i)?-1:1,t=(n="function"==typeof r?r(Object.assign({},n,{placement:t})):r)[0]||0,r=(n[1]||0)*o,0<=[M,D].indexOf(i)?{x:r,y:t}:{x:t,y:r}),e},{}),n=(r=t[a.placement]).x,r=r.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=n,a.modifiersData.popperOffsets.y+=r),a.modifiersData[e]=t}},he={left:"right",right:"left",bottom:"top",top:"bottom"};function B(e){return e.replace(/left|right|bottom|top/g,function(e){return he[e]})}var fe={start:"end",end:"start"};function pe(e){return e.replace(/start|end/g,function(e){return fe[e]})}var me={name:"flip",enabled:!0,phase:"main",fn:function(e){var d=e.state,t=e.options,e=e.name;if(!d.modifiersData[e]._skip){for(var n=t.mainAxis,r=void 0===n||n,n=t.altAxis,i=void 0===n||n,n=t.fallbackPlacements,h=t.padding,f=t.boundary,p=t.rootBoundary,o=t.altBoundary,a=t.flipVariations,m=void 0===a||a,g=t.allowedAutoPlacements,a=d.options.placement,t=N(a),n=n||(t===a||!m?[B(a)]:N(n=a)===R?[]:(t=B(n),[pe(n),t,pe(t)])),s=[a].concat(n).reduce(function(e,t){return e.concat(N(t)===R?(n=d,r=(e=e=void 0===(e={placement:t,boundary:f,rootBoundary:p,padding:h,flipVariations:m,allowedAutoPlacements:g})?{}:e).placement,i=e.boundary,o=e.rootBoundary,a=e.padding,s=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?z:e,c=F(r),e=c?s?K:K.filter(function(e){return F(e)===c}):P,u=(r=0===(r=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:r).reduce(function(e,t){return e[t]=H(n,{placement:t,boundary:i,rootBoundary:o,padding:a})[N(t)],e},{}),Object.keys(u).sort(function(e,t){return u[e]-u[t]})):t);var n,r,i,o,a,s,l,c,u},[]),l=d.rects.reference,c=d.rects.popper,u=new Map,v=!0,y=s[0],b=0;b<s.length;b++){var _=s[b],w=N(_),x=F(_)===j,k=0<=[L,I].indexOf(w),E=k?"width":"height",O=H(d,{placement:_,boundary:f,rootBoundary:p,altBoundary:o,padding:h}),k=k?x?D:M:x?I:L,x=(l[E]>c[E]&&(k=B(k)),B(k)),E=[];if(r&&E.push(O[w]<=0),i&&E.push(O[k]<=0,O[x]<=0),E.every(function(e){return e})){y=_,v=!1;break}u.set(_,E)}if(v)for(var C=m?3:1;0<C;C--)if("break"===function(t){var e=s.find(function(e){e=u.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return y=e,"break"}(C))break;d.placement!==y&&(d.modifiersData[e]._skip=!0,d.placement=y,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function U(e,t,n){return C(e,A(t,n))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,n,r,i,o,a,s,l,c,u=e.state,d=e.options,e=e.name,h=void 0===(h=d.mainAxis)||h,f=void 0!==(f=d.altAxis)&&f,p=d.boundary,m=d.rootBoundary,g=d.altBoundary,v=d.padding,y=void 0===(y=d.tether)||y,d=void 0===(d=d.tetherOffset)?0:d,p=H(u,{boundary:p,rootBoundary:m,padding:v,altBoundary:g}),m=N(u.placement),g=!(v=F(u.placement)),b=X(m),_="x"===b?"y":"x",w=u.modifiersData.popperOffsets,x=u.rects.reference,k=u.rects.popper,d="number"==typeof(d="function"==typeof d?d(Object.assign({},u.rects,{placement:u.placement})):d)?{mainAxis:d,altAxis:d}:Object.assign({mainAxis:0,altAxis:0},d),E=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,O={x:0,y:0};w&&(h&&(h="y"===b?"height":"width",a=(s=w[b])+p[n="y"===b?L:M],l=s-p[c="y"===b?I:D],t=y?-k[h]/2:0,i=(v===j?x:k)[h],v=v===j?-k[h]:-x[h],o=u.elements.arrow,o=y&&o?S(o):{width:0,height:0},n=(r=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:ee())[n],r=r[c],c=U(0,x[h],o[h]),o=g?x[h]/2-t-c-n-d.mainAxis:i-c-n-d.mainAxis,i=g?-x[h]/2+t+c+r+d.mainAxis:v+c+r+d.mainAxis,g=(n=u.elements.arrow&&T(u.elements.arrow))?"y"===b?n.clientTop||0:n.clientLeft||0:0,v=s+i-(t=null!=(h=null==E?void 0:E[b])?h:0),c=U(y?A(a,s+o-t-g):a,s,y?C(l,v):l),w[b]=c,O[b]=c-s),f&&(r="y"==_?"height":"width",i=(n=w[_])+p["x"===b?L:M],h=n-p["x"===b?I:D],o=-1!==[L,M].indexOf(m),g=null!=(t=null==E?void 0:E[_])?t:0,a=o?i:n-x[r]-k[r]-g+d.altAxis,v=o?n+x[r]+k[r]-g-d.altAxis:h,s=y&&o?(l=U(l=a,n,c=v),c<l?c:l):U(y?a:i,n,y?v:h),w[_]=s,O[_]=s-n),u.modifiersData[e]=O)},requiresIfExists:["offset"]};var ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r,i,o=e.state,a=e.name,e=e.options,s=o.elements.arrow,l=o.modifiersData.popperOffsets,c=X(u=N(o.placement)),u=0<=[M,D].indexOf(u)?"height":"width";s&&l&&(e=e.padding,n=o,n=te("number"!=typeof(e="function"==typeof e?e(Object.assign({},n.rects,{placement:n.placement})):e)?e:ne(e,P)),e=S(s),i="y"===c?L:M,r="y"===c?I:D,t=o.rects.reference[u]+o.rects.reference[c]-l[c]-o.rects.popper[u],l=l[c]-o.rects.reference[c],s=(s=T(s))?"y"===c?s.clientHeight||0:s.clientWidth||0:0,i=n[i],n=s-e[u]-n[r],i=U(i,r=s/2-e[u]/2+(t/2-l/2),n),o.modifiersData[a]=((s={})[c]=i,s.centerOffset=i-r,s))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Z(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(t){return[L,D,I,M].some(function(e){return 0<=t[e]})}var _e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=H(t,{elementContext:"reference"}),a=H(t,{altBoundary:!0}),o=ye(o,n),n=ye(a,r,i),a=be(o),r=be(n);t.modifiersData[e]={referenceClippingOffsets:o,popperEscapeOffsets:n,isReferenceHidden:a,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":r})}},we=r({defaultModifiers:[oe,ae,ce,ue]}),xe=[oe,ae,ce,ue,de,me,ge,ve,_e],ke=r({defaultModifiers:xe});e.applyStyles=ue,e.arrow=ve,e.computeStyles=ce,e.createPopper=ke,e.createPopperLite=we,e.defaultModifiers=xe,e.detectOverflow=H,e.eventListeners=oe,e.flip=me,e.hide=_e,e.offset=de,e.popperGenerator=r,e.popperOffsets=ae,e.preventOverflow=ge},{}],9:[function(e,t,Ct){!function(Ot){!function(){var j,N=Object.create,i=Object.defineProperty,F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,B=Object.getOwnPropertyNames,U=Object.getOwnPropertyDescriptor,q=e=>
1i(e,"__esModule",{value:!0}),e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),V=e(e=>{"use strict";function t(e,t){const n=Object.create(null);var r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}Object.defineProperty(e,"__esModule",{value:!0});var n={[1]:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT","-1":"HOISTED","-2":"BAIL"},r={[1]:"STABLE",2:"DYNAMIC",3:"FORWARDED"},i=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");var o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=t(o),o=t(o+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),s=/[>/="'\u0009\u000a\u000c\u0020]/,l={};var c=t("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),u=t("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");var d=/;(?![^(]*\))/g,h=/:(.+)/;function f(e){const t={};return e.split(d).forEach(e=>{e&&1<(e=e.split(h)).length&&(t[e[0].trim()]=e[1].trim())}),t}var p=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),m=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),g=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),v=/["'&<>]/;var y=/^-?>|<!--|-->|--!>|<!-$/g;function b(e,t){if(e===t)return!0;var n=C(e),r=C(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=k(e),r=k(t),n||r)return!(!n||!r)&&function(t,n){if(t.length!==n.length)return!1;let r=!0;for(let e=0;r&&e<t.length;e++)r=b(t[e],n[e]);return r}(e,t);if(n=T(e),r=T(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e){var i=e.hasOwnProperty(a),o=t.hasOwnProperty(a);if(i&&!o||!i&&o||!b(e[a],t[a]))return!1}}return String(e)===String(t)}var _,w=(e,t)=>E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:O(t)?{[`Set(${t.size})`]:[...t.values()]}:!T(t)||k(t)||D(t)?t:String(t),x=Object.freeze({}),j=Object.freeze([]),N=/^on[^a-z]/,F=Object.assign,H=Object.prototype.hasOwnProperty,k=Array.isArray,E=e=>"[object Map]"===I(e),O=e=>"[object Set]"===I(e),C=e=>e instanceof Date,A=e=>"function"==typeof e,S=e=>"string"==typeof e,T=e=>null!==e&&"object"==typeof e,L=Object.prototype.toString,I=e=>L.call(e),D=e=>"[object Object]"===I(e),B=t(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=t=>{const n=Object.create(null);return e=>{return n[e]||(n[e]=t(e))}},U=/-(\w)/g,q=M(e=>e.replace(U,(e,t)=>t?t.toUpperCase():"")),V=/\B([A-Z])/g,R=M(e=>e.replace(V,"-$1").toLowerCase()),P=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),M=M(e=>e?"on"+P(e):"");e.EMPTY_ARR=j,e.EMPTY_OBJ=x,e.NO=()=>!1,e.NOOP=()=>{}
1,e.PatchFlagNames=n,e.babelParserDefaultPlugins=["bigInt","optionalChaining","nullishCoalescingOperator"],e.camelize=q,e.capitalize=P,e.def=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},e.escapeHtml=function(e){var t=""+e;if(!(e=v.exec(t)))return t;let n="",r,i,o=0;for(i=e.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==i&&(n+=t.substring(o,i)),o=i+1,n+=r}return o!==i?n+t.substring(o,i):n},e.escapeHtmlComment=function(e){return e.replace(y,"")},e.extend=F,e.generateCodeFrame=function(e,n=0,r=e.length){var i=e.split(/\r?\n/);let o=0;var a,s,l,c=[];for(let t=0;t<i.length;t++)if((o+=i[t].length+1)>=n){for(let e=t-2;e<=t+2||r>o;e++)e<0||e>=i.length||(a=e+1,c.push(""+a+" ".repeat(Math.max(3-String(a).length,0))+"|  "+i[e]),a=i[e].length,e===t?(l=n-(o-a)+1,s=Math.max(1,r>o?a-l:r-n),c.push("   |  "+" ".repeat(l)+"^".repeat(s))):e>t&&(r>o&&(l=Math.max(Math.min(r-o,a),1),c.push("   |  "+"^".repeat(l))),o+=a+1));break}return c.join("\n")},e.getGlobalThis=()=>_=_||("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==Ot?Ot:{}),e.hasChanged=(e,t)=>e!==t&&(e==e||t==t),e.hasOwn=(e,t)=>H.call(e,t),e.hyphenate=R,e.invokeArrayFns=(t,n)=>{for(let e=0;e<t.length;e++)t[e](n)},e.isArray=k,e.isBooleanAttr=o,e.isDate=C,e.isFunction=A,e.isGloballyWhitelisted=i,e.isHTMLTag=p,e.isIntegerKey=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,e.isKnownAttr=u,e.isMap=E,e.isModelListener=e=>e.startsWith("onUpdate:"),e.isNoUnitNumericStyleProp=c,e.isObject=T,e.isOn=e=>N.test(e),e.isPlainObject=D,e.isPromise=e=>T(e)&&A(e.then)&&A(e.catch),e.isReservedProp=B,e.isSSRSafeAttrName=function(e){var t;return l.hasOwnProperty(e)?l[e]:((t=s.test(e))&&console.error("unsafe attribute name: "+e),l[e]=!t)},e.isSVGTag=m,e.isSet=O,e.isSpecialBooleanAttr=a,e.isString=S,e.isSymbol=e=>"symbol"==typeof e,e.isVoidTag=g,e.looseEqual=b,e.looseIndexOf=function(e,t){return e.findIndex(e=>b(e,t))},e.makeMap=t,e.normalizeClass=function t(n){let r="";if(S(n))r=n;else if(k(n))for(let e=0;e<n.length;e++){var i=t(n[e]);i&&(r+=i+" ")}else if(T(n))for(const e in n)n[e]&&(r+=e+" ");return r.trim()},e.normalizeStyle=function t(n){if(k(n)){var r={};for(let e=0;e<n.length;e++){var i=n[e],o=t(S(i)?f(i):i);if(o)for(const a in o)r[a]=o[a]}return r}if(T(n))return n},e.objectToString=L,e.parseStringStyle=f,e.propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},e.remove=(e,t)=>{t=e.indexOf(t);-1<t&&e.splice(t,1)},e.slotFlagsText=r,e.stringifyStyle=function(e){let t="";if(e)for(const i in e){var n=e[i],r=i.startsWith("--")?i:R(i);(S(n)||"number"==typeof n&&c(r))&&(t+=r+`:${n};`)}return t},e.toDisplayString=e=>null==e?"":T(e)?JSON.stringify(e,w,2):String(e),e.toHandlerKey=M,e.toNumber=e=>{var t=parseFloat(e);return isNaN(t)?e:t},e.toRawType=e=>I(e).slice(8,-1),e.toTypeString=I}),we=e((e,t)=>{"use strict";t.exports=V()}),W=e(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c,u=we(),d=new WeakMap,o=[],h=Symbol("iterate"),f=Symbol("Map key iterate");function r(e,t=u.EMPTY_OBJ){(r=e)&&!0===r._isEffect&&(e=e.raw),n=e,r=t,i.id=j++,i.allowRecurse=!!r.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=n,i.deps=[],i.options=r;var n,r,e=i;function i(){if(!i.active)return n();if(!o.includes(i)){a(i);try{return s(),o.push(i),c=i,n()}finally{o.pop(),l(),c=o[o.length-1]}}}return t.lazy||e(),e}var j=0;function a(t){var n=t["deps"];if(n.length){for(let e=0;e<n.length;e++)n[e].delete(t);n.length=0}}var t=!0,n=[];function i(){n.push(t),t=!1}function s(){n.push(t),t=!0}function l(){var e=n.pop();t=void 0===e||e}function p(n,r,i){if(t&&void 0!==c){let e=d.get(n),t=(e||d.set(n,e=new Map),e.get(i));t||e.set(i,t=new Set),t.has(c)||(t.add(c),c.deps.push(t),c.options.onTrack&&c.options.onTrack({effect:c,target:n,type:r,key:i}))}}function m(t,n,r,i,o,a){var e=d.get(t);if(e){const s=new Set,l=e=>{e&&e.forEach(e=>{e===c&&!e.allowRecurse||s.add(e)})};if("clear"===n)e.forEach(l);else if("length"===r&&u.isArray(t))e.forEach((e,t)=>{("length"===t||i<=t)&&l(e)});else switch(void 0!==r&&l(e.get(r)),n){case"add":u.isArray(t)?u.isIntegerKey(r)&&l(e.get("length")):(l(e.get(h)),u.isMap(t)&&l(e.get(f)));break;case"delete":u.isArray(t)||(l(e.get(h)),u.isMap(t)&&l(e.get(f)));break;case"set":u.isMap(t)&&l(e.get(h))}
1s.forEach(e=>{e.options.onTrigger&&e.options.onTrigger({effect:e,target:t,key:r,type:n,newValue:i,oldValue:o,oldTarget:a}),e.options.scheduler?e.options.scheduler(e):e()})}}var N=u.makeMap("__proto__,__v_isRef,__isVue"),F=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(u.isSymbol)),H=v(),B=v(!1,!0),U=v(!0),q=v(!0,!0),g={};function v(i=!1,o=!1){return function(e,t,n){var r;return"__v_isReactive"===t?!i:"__v_isReadonly"===t?i:"__v_raw"===t&&n===(i?o?ue:ce:o?le:se).get(e)?e:(r=u.isArray(e),!i&&r&&u.hasOwn(g,t)?Reflect.get(g,t,n):(n=Reflect.get(e,t,n),(u.isSymbol(t)?F.has(t):N(t))||(i||p(e,"get",t),o)?n:P(n)?!r||!u.isIntegerKey(t)?n.value:n:u.isObject(n)?(i?L:T)(n):n))}}function V(s=!1){return function(e,t,n,r){let i=e[t];var o,a;return s||(n=R(n),i=R(i),u.isArray(e))||!P(i)||P(n)?(o=u.isArray(e)&&u.isIntegerKey(t)?Number(t)<e.length:u.hasOwn(e,t),a=Reflect.set(e,t,n,r),e===R(r)&&(o?u.hasChanged(n,i)&&m(e,"set",t,n,i):m(e,"add",t,n)),a):(i.value=n,!0)}}["includes","indexOf","lastIndexOf"].forEach(e=>{const r=Array.prototype[e];g[e]=function(...e){var n=R(this);for(let e=0,t=this.length;e<t;e++)p(n,"get",e+"");var t=r.apply(n,e);return-1===t||!1===t?r.apply(n,e.map(R)):t}}),["push","pop","shift","unshift","splice"].forEach(e=>{const t=Array.prototype[e];g[e]=function(...e){i();e=t.apply(this,e);return l(),e}});var W={get:H,set:V(),deleteProperty:function(e,t){var n=u.hasOwn(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&m(e,"delete",t,void 0,r),i},has:function(e,t){var n=Reflect.has(e,t);return u.isSymbol(t)&&F.has(t)||p(e,"has",t),n},ownKeys:function(e){return p(e,"iterate",u.isArray(e)?"length":h),Reflect.ownKeys(e)}},K={get:U,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},z=u.extend({},W,{get:B,set:V(!0)}),$=u.extend({},K,{get:q}),y=e=>u.isObject(e)?T(e):e,b=e=>u.isObject(e)?L(e):e,_=e=>e,w=e=>Reflect.getPrototypeOf(e);function x(e,t,n=!1,r=!1){var i=R(e=e.__v_raw),o=R(t),a=(t===o||n||p(i,"get",t),n||p(i,"get",o),w(i))["has"],r=r?_:n?b:y;return a.call(i,t)?r(e.get(t)):a.call(i,o)?r(e.get(o)):void(e!==i&&e.get(t))}function k(e,t=!1){var n=this.__v_raw,r=R(n),i=R(e);return e===i||t||p(r,"has",e),t||p(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function E(e,t=!1){return e=e.__v_raw,t||p(R(e),"iterate",h),Reflect.get(e,"size",e)}function G(e){e=R(e);var t=R(this);return w(t).has.call(t,e)||(t.add(e),m(t,"add",e,e)),this}function Z(e,t){t=R(t);var n=R(this),{has:r,get:i}=w(n);let o=r.call(n,e);o?ae(n,r,e):(e=R(e),o=r.call(n,e));r=i.call(n,e);return n.set(e,t),o?u.hasChanged(t,r)&&m(n,"set",e,t,r):m(n,"add",e,t),this}function Q(e){var t=R(this),{has:n,get:r}=w(t);let i=n.call(t,e);i?ae(t,n,e):(e=R(e),i=n.call(t,e));n=r?r.call(t,e):void 0,r=t.delete(e);return i&&m(t,"delete",e,void 0,n),r}function J(){var e=R(this),t=0!==e.size,n=new(u.isMap(e)?Map:Set)(e),r=e.clear();return t&&m(e,"clear",void 0,void 0,n),r}function O(a,s){return function(n,r){const i=this;var e=i.__v_raw,t=R(e);const o=s?_:a?b:y;return a||p(t,"iterate",h),e.forEach((e,t)=>n.call(r,o(e),o(t),i))}}function C(s,l,c){return function(...e){var t=this.__v_raw,n=R(t),r=u.isMap(n);const i="entries"===s||s===Symbol.iterator&&r;r="keys"===s&&r;const o=t[s](...e),a=c?_:l?b:y;return l||p(n,"iterate",r?f:h),{next(){var{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:i?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function A(t){return function(...e){e=e[0]?`on key "${e[0]}" `:"";return console.warn(u.capitalize(t)+` operation ${e}failed: target is readonly.`,R(this)),"delete"!==t&&this}}var X={get(e){return x(this,e)},get size(){return E(this)},has:k,add:G,set:Z,delete:Q,clear:J,forEach:O(!1,!1)},Y={get(e){return x(this,e,!1,!0)},get size(){return E(this)},has:k,add:G,set:Z,delete:Q,clear:J,forEach:O(!1,!0)},ee={get(e){return x(this,e,!0)},get size(){return E(this,!0)},has(e){return k.call(this,e,!0)},add:A("add"),set:A("set"),delete:A("delete"),clear:A("clear"),forEach:O(!0,!1)},te={get(e){return x(this,e,!0,!0)},get size(){return E(this,!0)},has(e){return k.call(this,e,!0)},add:A("add"),set:A("set"),delete:A("delete"),clear:A("clear"),forEach:O(!0,!0)};function S(r,e){const i=e?r?te:Y:r?ee:X;return(e,t,n)=>"__v_isReactive"===t?!r:"__v_isReadonly"===t?r:"__v_raw"===t?e:Reflect.get(u.hasOwn(i,t)&&t in e?i:e,t,n)}
1["keys","values","entries",Symbol.iterator].forEach(e=>{X[e]=C(e,!1,!1),ee[e]=C(e,!0,!1),Y[e]=C(e,!1,!0),te[e]=C(e,!0,!0)});var ne={get:S(!1,!1)},re={get:S(!1,!0)},ie={get:S(!0,!1)},oe={get:S(!0,!0)};function ae(e,t,n){var r=R(n);r!==n&&t.call(e,r)&&(n=u.toRawType(e),console.warn(`Reactive ${n} contains both the raw and reactive versions of the same object${"Map"===n?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`))}var se=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakMap;function T(e){return e&&e.__v_isReadonly?e:I(e,!1,W,ne,se)}function L(e){return I(e,!0,K,ie,ce)}function I(e,t,n,r,i){return u.isObject(e)?!e.__v_raw||t&&e.__v_isReactive?i.get(e)||(0===(t=function(e){if(e.__v_skip||!Object.isExtensible(e))return 0;switch(u.toRawType(e)){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(e))?e:(t=new Proxy(e,2===t?r:n),i.set(e,t),t)):e:(console.warn("value cannot be made reactive: "+String(e)),e)}function D(e){return M(e)?D(e.__v_raw):!(!e||!e.__v_isReactive)}function M(e){return!(!e||!e.__v_isReadonly)}function de(e){return D(e)||M(e)}function R(e){return e&&R(e.__v_raw)||e}var he=e=>u.isObject(e)?T(e):e;function P(e){return Boolean(e&&!0===e.__v_isRef)}var fe=class{constructor(e,t=!1){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:he(e)}get value(){return p(R(this),"get","value"),this._value}set value(e){u.hasChanged(R(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:he(e),m(R(this),"set","value",e))}};function pe(e,t=!1){return P(e)?e:new fe(e,t)}function me(e){return P(e)?e.value:e}var ge={get:(e,t,n)=>me(Reflect.get(e,t,n)),set:(e,t,n,r)=>{var i=e[t];return P(i)&&!P(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};var ve=class{constructor(e){this.__v_isRef=!0;var{get:e,set:t}=e(()=>p(this,"get","value"),()=>m(this,"set","value"));this._get=e,this._set=t}get value(){return this._get()}set value(e){this._set(e)}};var ye=class{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}};function be(e,t){return P(e[t])?e[t]:new ye(e,t)}var _e=class{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=r(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,m(R(this),"set","value"))}}),this.__v_isReadonly=n}get value(){var e=R(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),p(e,"get","value"),e._value}set value(e){this._setter(e)}};e.ITERATE_KEY=h,e.computed=function(e){let t,n;return n=u.isFunction(e)?(t=e,()=>{console.warn("Write operation failed: computed value is readonly")}):(t=e.get,e.set),new _e(t,n,u.isFunction(e)||!e.set)},e.customRef=function(e){return new ve(e)},e.effect=r,e.enableTracking=s,e.isProxy=de,e.isReactive=D,e.isReadonly=M,e.isRef=P,e.markRaw=function(e){return u.def(e,"__v_skip",!0),e},e.pauseTracking=i,e.proxyRefs=function(e){return D(e)?e:new Proxy(e,ge)},e.reactive=T,e.readonly=L,e.ref=function(e){return pe(e)},e.resetTracking=l,e.shallowReactive=function(e){return I(e,!1,z,re,le)},e.shallowReadonly=function(e){return I(e,!0,$,oe,ue)},e.shallowRef=function(e){return pe(e,!0)},e.stop=function(e){e.active&&(a(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=R,e.toRef=be,e.toRefs=function(e){de(e)||console.warn("toRefs() expects a reactive object but received a plain one.");var t=u.isArray(e)?new Array(e.length):{};for(const n in e)t[n]=be(e,n);return t},e.track=p,e.trigger=m,e.triggerRef=function(e){m(R(e),"set","value",e.value)},e.unref=me}),e=e((e,t)=>{"use strict";t.exports=W()}),K=(q(Ct),Ct),z={default:()=>Et};for(j in z)i(K,j,{get:z[j],enumerable:!0});var C,d,h,$,G=!1,Z=!1,t=[],Q=-1;function J(e){t.includes(e)||t.push(e),Z||G||(G=!0,queueMicrotask(Y))}function X(e){e=t.indexOf(e);-1!==e&&Q<e&&t.splice(e,1)}function Y(){Z=!(G=!1);for(let e=0;e<t.length;e++)t[e](),Q=e;t.length=0,Z=!(Q=-1)}var ee=!0;function te(e){d=e}var ne=[],re=[],ie=[];function oe(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):re.push(t=e)}function ae(n,r){n._x_attributeCleanups&&Object.entries(n._x_attributeCleanups).forEac
1h(([e,t])=>{void 0!==r&&!r.includes(e)||(t.forEach(e=>e()),delete n._x_attributeCleanups[e])})}var se=new MutationObserver(fe),le=!1;function ce(){se.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),le=!0}function ue(){(n=n.concat(se.takeRecords())).length&&!de&&(de=!0,queueMicrotask(()=>{fe(n),n.length=0,de=!1})),se.disconnect(),le=!1}var n=[],de=!1;function A(e){if(!le)return e();ue();e=e();return ce(),e}var he=!1,r=[];function fe(s){if(he)r=r.concat(s);else{let r=[],i=[],o=new Map,a=new Map;for(let n=0;n<s.length;n++)if(!s[n].target._x_ignoreMutationObserver&&("childList"===s[n].type&&(s[n].addedNodes.forEach(e=>1===e.nodeType&&r.push(e)),s[n].removedNodes.forEach(e=>1===e.nodeType&&i.push(e))),"attributes"===s[n].type)){let e=s[n].target,t=s[n].attributeName;var l=s[n].oldValue,c=()=>{o.has(e)||o.set(e,[]),o.get(e).push({name:t,value:e.getAttribute(t)})},u=()=>{a.has(e)||a.set(e,[]),a.get(e).push(t)};(e.hasAttribute(t)&&null===l?c:e.hasAttribute(t)?(u(),c):u)()}a.forEach((e,t)=>{ae(t,e)}),o.forEach((t,n)=>{ne.forEach(e=>e(n,t))});for(let t of i)if(!r.includes(t)&&(re.forEach(e=>e(t)),t._x_cleanups))for(;t._x_cleanups.length;)t._x_cleanups.pop()();r.forEach(e=>{e._x_ignoreSelf=!0,e._x_ignore=!0});for(let t of r)i.includes(t)||t.isConnected&&(delete t._x_ignoreSelf,delete t._x_ignore,ie.forEach(e=>e(t)),t._x_ignore=!0,t._x_ignoreSelf=!0);r.forEach(e=>{delete e._x_ignoreSelf,delete e._x_ignore}),r=null,i=null,o=null,a=null}}function pe(e){return l(o(e))}function S(e,t,n){return e._x_dataStack=[t,...o(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function o(e){return e._x_dataStack||("function"==typeof ShadowRoot&&e instanceof ShadowRoot?o(e.host):e.parentNode?o(e.parentNode):[])}function l(o){let a=new Proxy({},{ownKeys:()=>Array.from(new Set(o.flatMap(e=>Object.keys(e)))),has:(e,t)=>o.some(e=>e.hasOwnProperty(t)),get:(e,i)=>(o.find(n=>{if(n.hasOwnProperty(i)){var r=Object.getOwnPropertyDescriptor(n,i);if(!(r.get&&r.get._x_alreadyBound||r.set&&r.set._x_alreadyBound)&&((r.get||r.set)&&r.enumerable)){let e=r.get,t=r.set;e=e&&e.bind(a),t=t&&t.bind(a),e&&(e._x_alreadyBound=!0),t&&(t._x_alreadyBound=!0),Object.defineProperty(n,i,{...r,get:e,set:t})}return!0}return!1})||{})[i],set:(e,t,n)=>{var r=o.find(e=>e.hasOwnProperty(t));return r?r[t]=n:o[o.length-1][t]=n,!0}});return a}function me(o){let a=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([e,{value:t,enumerable:n}])=>{!1!==n&&void 0!==t&&(n=""===i?e:i+"."+e,"object"==typeof t&&null!==t&&t._x_interceptor?r[e]=t.initialize(o,n,e):"object"!=typeof(e=t)||Array.isArray(e)||null===e||t===r||t instanceof Element||a(t,n))})};a(o)}function ge(r,e=()=>{}){let a={initialValue:void 0,_x_interceptor:!0,initialize(t,n,e){return r(this.initialValue,()=>{return e=t,n.split(".").reduce((e,t)=>e[t],e);var e},e=>function e(t,n,r){"string"==typeof n&&(n=n.split("."));{if(1!==n.length){if(0===n.length)throw error;return t[n[0]]||(t[n[0]]={}),e(t[n[0]],n.slice(1),r)}t[n[0]]=r}}(t,n,e),n,e)}};return e(a),o=>{if("object"==typeof o&&null!==o&&o._x_interceptor){let i=a.initialize.bind(a);a.initialize=(e,t,n)=>{var r=o.initialize(e,t,n);return a.initialValue=r,i(e,t,n)}}else a.initialValue=o;return a}}var ve={};function a(e,t){ve[e]=t}function ye(t,i){Object.entries(ve).forEach(([e,n])=>{let r=null;Object.defineProperty(t,"$"+e,{get(){return n(i,r||([e,t]=Le(i),r={interceptor:ge,...e},oe(i,t),r));var e,t},enumerable:!1})})}function c(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
2
3`+(n?'Expression: "'+n+'"\n\n':""),t),setTimeout(()=>{throw e},0)}var s=!0;function be(e){var t=s,e=(s=!1,e());return s=t,e}function u(e,t,n={}){let r;return f(e,t)(e=>r=e,n),r}function f(...e){return _e(...e)}var _e=xe;function xe(e,t){var r,i,n={},n=(ye(n,e),[n,...o(e)]),n="function"==typeof t?(r=n,i=t,(e=()=>{},{scope:t={},params:n=[]}={})=>{p(e,i.apply(l([t,...r]),n))}):function(i,o,a){let s=function(t,n){if(ke[t])return ke[t];let e=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(t)||/^(let|const)\s/.test(t)?`(async()=>{ ${t} })()`:t;var i=(()=>{try{return new e(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(e){return c(e,n,t),Promise.resolve()}})();return ke[t]=i}(o,a);return(t=()=>{},{scope:e={},params:n=[]}={})=>{s.result=void 0,s.finished=!1;let r=l([e,...i]);"function"==typeof s&&(e=s(s,r).catch(e=>c(e,a,o)),s.finished?(p(t,s.result,r,n,a),s.result=void 0):e.then(e=>{p(t,e,r,n,a)}).catch(e=>c(e,a,o)).finally(()=>s.result=void 0))}}(n,t,e);return function(t,n,e,...r){try{return e(...r)}
3catch(e){c(e,t,n)}}.bind(null,e,t,n)}var ke={};function p(t,n,r,i,o){var e;s&&"function"==typeof n?(e=n.apply(r,i))instanceof Promise?e.then(e=>p(t,e,r,i)).catch(e=>c(e,o,n)):t(e):"object"==typeof n&&n instanceof Promise?n.then(e=>t(e)):t(n)}var Ee="x-";function m(e=""){return Ee+e}var Oe={};function g(t,e){return Oe[t]=e,{before(e){Oe[e]?(e=y.indexOf(e),y.splice(0<=e?e:y.indexOf("DEFAULT"),0,t)):console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution")}}}function Ce(s,t,e){if(t=Array.from(t),s._x_virtualDirectives){let e=Object.entries(s._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),n=Ae(e);e=e.map(t=>n.find(e=>e.name===t.name)?{name:"x-bind:"+t.name,value:`"${t.value}"`}:t),t=t.concat(e)}let n={};var o,a;return t.map(De((e,t)=>n[e]=t)).filter(Pe).map((o=n,a=e,({name:e,value:t})=>{var n=e.match(je()),r=e.match(/:([a-zA-Z0-9\-:]+)/),i=e.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],e=a||o[e]||e;return{type:n?n[1]:null,value:r?r[1]:null,modifiers:i.map(e=>e.replace(".","")),expression:t,original:e}})).sort(Fe).map(i=>{{var o=s,a=i;let e=Oe[a.type]||(()=>{}),[t,n]=Le(o),r=(function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(o,a.original,n),()=>{o._x_ignore||o._x_ignoreSelf||(e.inline&&e.inline(o,a,t),e=e.bind(e,o,a,t),Se?v.get(Te).push(e):e())});return r.runCleanups=n,r}})}function Ae(e){return Array.from(e).map(De()).filter(e=>!Pe(e))}var Se=!1,v=new Map,Te=Symbol();function Le(e){let t=[];var[n,r]=function(n){let r=()=>{};return[e=>{let t=d(e);return n._x_effects||(n._x_effects=new Set,n._x_runEffects=()=>{n._x_effects.forEach(e=>e())}),n._x_effects.add(t),r=()=>{void 0!==t&&(n._x_effects.delete(t),h(t))},t},()=>{r()}]}(e),r=(t.push(r),{Alpine:M,effect:n,cleanup:e=>t.push(e),evaluateLater:f.bind(f,e),evaluate:u.bind(u,e)});return[r,()=>t.forEach(e=>e())]}var Ie=(n,r)=>({name:e,value:t})=>({name:e=e.startsWith(n)?e.replace(n,r):e,value:t});function De(r=()=>{}){return({name:e,value:t})=>{var{name:t,value:n}=Me.reduce((e,t)=>t(e),{name:e,value:t});return t!==e&&r(t,e),{name:t,value:n}}}var Me=[];function Re(e){Me.push(e)}function Pe({name:e}){return je().test(e)}var je=()=>new RegExp(`^${Ee}([^:^.]+)\\b`);var Ne="DEFAULT",y=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",Ne,"teleport"];function Fe(e,t){e=-1===y.indexOf(e.type)?Ne:e.type,t=-1===y.indexOf(t.type)?Ne:t.type;return y.indexOf(e)-y.indexOf(t)}function b(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function _(t,n){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)Array.from(t.children).forEach(e=>_(e,n));else{let e=!1;if(n(t,()=>e=!0),!e){let e=t.firstElementChild;for(;e;)_(e,n),e=e.nextElementSibling}}}function T(e,...t){console.warn("Alpine Warning: "+e,...t)}var He=!1;var Be=[],Ue=[];function qe(){return Be.map(e=>e())}function Ve(){return Be.concat(Ue).map(e=>e())}function We(e){Be.push(e)}function Ke(e){Ue.push(e)}function w(e,n=!1){return x(e,t=>{if((n?Ve:qe)().some(e=>t.matches(e)))return!0})}function x(e,t){if(e)return t(e)?e:(e=e._x_teleportBack?e._x_teleportBack:e).parentElement?x(e.parentElement,t):void 0}var ze=[];function L(n,r=_,i=()=>{}){{var o=()=>{r(n,(t,n)=>{i(t,n),ze.forEach(e=>e(t,n)),Ce(t,t.attributes).forEach(e=>e()),t._x_ignore&&n()})};Se=!0;let e=Symbol(),t=(Te=e,v.set(e,[]),()=>{for(;v.get(e).length;)v.get(e).shift()();v.delete(e)});o(t),Se=!1,t()}}function $e(e){_(e,e=>ae(e))}var Ge=[],Ze=!1;function Qe(t=()=>{}){return queueMicrotask(()=>{Ze||setTimeout(()=>{Je()})}),new Promise(e=>{Ge.push(()=>{t(),e()})})}function Je(){for(Ze=!1;Ge.length;)Ge.shift()()}function Xe(o,a){if(Array.isArray(a))return Ye(o,a.join(" "));if("object"!=typeof a||null===a)return"function"==typeof a?Xe(o,a()):Ye(o,a);{var s=o;o=a;let n=e=>e.split(" ").filter(Boolean),e=Object.entries(o).flatMap(([e,t])=>!!t&&n(e)).filter(Boolean),t=Object.entries(o).flatMap(([e,t])=>!t&&n(e)).filter(Boolean),r=[],i=[];
3return t.forEach(e=>{s.classList.contains(e)&&(s.classList.remove(e),i.push(e))}),e.forEach(e=>{s.classList.contains(e)||(s.classList.add(e),r.push(e))}),()=>{i.forEach(e=>s.classList.add(e)),r.forEach(e=>s.classList.remove(e))}}}function Ye(t,e){var n;return n=(e=!0!==e&&e||"").split(" ").filter(e=>!t.classList.contains(e)).filter(Boolean),t.classList.add(...n),()=>{t.classList.remove(...n)}}function k(t,r){if("object"==typeof r&&null!==r){var i=t;var o=r;let n={};return Object.entries(o).forEach(([e,t])=>{n[e]=i.style[e],e.startsWith("--")||(e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),i.style.setProperty(e,t)}),setTimeout(()=>{0===i.style.length&&i.removeAttribute("style")}),()=>{k(i,n)}}{var n=t;o=r;let e=n.getAttribute("style",o);return n.setAttribute("style",o),()=>{n.setAttribute("style",e||"")};return}}function et(e,t=()=>{}){let n=!1;return function(){(n?t:(n=!0,e)).apply(this,arguments)}}function tt(n,r,e={}){n._x_transition||(n._x_transition={enter:{during:e,start:e,end:e},leave:{during:e,start:e,end:e},in(e=()=>{},t=()=>{}){nt(n,r,{during:this.enter.during,start:this.enter.start,end:this.enter.end},e,t)},out(e=()=>{},t=()=>{}){nt(n,r,{during:this.leave.during,start:this.leave.start,end:this.leave.end},e,t)}})}function nt(s,l,{during:c,start:u,end:d}={},h=()=>{},f=()=>{}){if(s._x_transitioning&&s._x_transitioning.cancel(),0!==Object.keys(c).length||0!==Object.keys(u).length||0!==Object.keys(d).length){let t,o,a;{var p=s;var m={start(){t=l(s,u)},during(){o=l(s,c)},before:h,end(){t(),a=l(s,d)},after:f,cleanup(){o(),a()}};let n,r,i,e=et(()=>{A(()=>{n=!0,r||m.before(),i||(m.end(),Je()),m.after(),p.isConnected&&m.cleanup(),delete p._x_transitioning})});p._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:et(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();e()}),finish:e},A(()=>{m.start(),m.during()}),Ze=!0,requestAnimationFrame(()=>{if(!n){let e=1e3*Number(getComputedStyle(p).transitionDuration.replace(/,.*/,"").replace("s","")),t=1e3*Number(getComputedStyle(p).transitionDelay.replace(/,.*/,"").replace("s",""));0===e&&(e=1e3*Number(getComputedStyle(p).animationDuration.replace("s",""))),A(()=>{m.before()}),r=!0,requestAnimationFrame(()=>{n||(A(()=>{m.end()}),Je(),setTimeout(p._x_transitioning.finish,e+t),i=!0)})}})}}else h(),f()}function E(e,t,n){if(-1===e.indexOf(t))return n;var r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t||"delay"===t){n=r.match(/([0-9]+)ms/);if(n)return n[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}g("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{var o,a,s,l,c,u,d,h;!1!==(r="function"==typeof r?i(r):r)&&(r&&"boolean"!=typeof r?(i=r,r=t,tt(h=e,Xe,""),{enter:e=>{h._x_transition.enter.during=e},"enter-start":e=>{h._x_transition.enter.start=e},"enter-end":e=>{h._x_transition.enter.end=e},leave:e=>{h._x_transition.leave.during=e},"leave-start":e=>{h._x_transition.leave.start=e},"leave-end":e=>{h._x_transition.leave.end=e}}[r](i)):(o=n,r=t,tt(i=e,k),t=(n=!o.includes("in")&&!o.includes("out")&&!r)||o.includes("in")||["enter"].includes(r),r=n||o.includes("out")||["leave"].includes(r),e=(n=!(o=(o=o.includes("in")&&!n?o.filter((e,t)=>t<o.indexOf("out")):o).includes("out")&&!n?o.filter((e,t)=>t>o.indexOf("out")):o).includes("opacity")&&!o.includes("scale"))||o.includes("opacity"),n=n||o.includes("scale"),e=e?0:1,n=n?E(o,"scale",95)/100:1,a=E(o,"delay",0)/1e3,s=E(o,"origin","center"),l="opacity, transform",c=E(o,"duration",150)/1e3,u=E(o,"duration",75)/1e3,d="cubic-bezier(0.4, 0.0, 0.2, 1)",t&&(i._x_transition.enter.during={transformOrigin:s,transitionDelay:a+"s",transitionProperty:l,transitionDuration:c+"s",transitionTimingFunction:d},i._x_transition.enter.start={opacity:e,transform:`scale(${n})`},i._x_transition.enter.end={opacity:1,transform:"scale(1)"}),r&&(i._x_transition.leave.during={transformOrigin:s,transitionDelay:a+"s",transitionProperty:l,transitionDuration:u+"s",transitionTimingFunction:d},i._x_transition.leave.start={opacity:1,transform:"scale(1)"},i._x_transition.leave.end={opacity:e,transform:`scale(${n})`})))});var O=!(window.Element.prototype._x_toggleAndCascadeWithTransitions=function(r,e,t,n){const i="visible"===document.visibilityState?requestAnimationFrame:setTimeout;var o=()=>i(t);e?r._x_transition&&(r._x_transition.enter||r._x_transition.leave)?r._x_transition.enter&&(Object.entries(r._x_transition.enter.during).length||Object.entries(r._x_transition.enter.start).length||Object.entries(r._x_transition.enter.end).length)?r._x_transition.in(t):o():r._x_transition?r._x_transition.in(t):o():(r._x_hidePromise=r._x_transition?new Promise((e,t)=>
3{r._x_transition.out(()=>{},()=>e(n)),r._x_transitioning.beforeCancel(()=>t({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{var e=function e(t){let n=t.parentNode;if(!n)return;return n._x_hidePromise?n:e(n)}(r);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(r)):i(()=>{let n=e=>{var t=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(n)]).then(([e])=>e());return delete e._x_hidePromise,delete e._x_hideChildren,t};n(r).catch(e=>{if(!e.isFromCancelledTransition)throw e})})}))});function I(t,n=()=>{}){return(...e)=>(O?n:t)(...e)}function rt(e,t,n,r=[]){var i;switch(e._x_bindings||(e._x_bindings=C({})),e._x_bindings[t]=n,t=r.includes("camel")?t.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase()):t){case"value":if(s=n,"radio"===(i=e).type)void 0===i.attributes.value&&(i.value=s),window.fromModel&&(i.checked=i.value==s);else if("checkbox"===i.type)Number.isInteger(s)?i.value=s:Number.isInteger(s)||Array.isArray(s)||"boolean"==typeof s||[null,void 0].includes(s)?Array.isArray(s)?i.checked=s.some(e=>e==i.value):i.checked=!!s:i.value=String(s);else if("SELECT"===i.tagName){var o=i;var a=s;const h=[].concat(a).map(e=>e+"");Array.from(o.options).forEach(e=>{e.selected=h.includes(e.value)})}else i.value!==s&&(i.value=s);break;case"style":a=e,o=n;a._x_undoAddedStyles&&a._x_undoAddedStyles(),a._x_undoAddedStyles=k(a,o);break;case"class":var s=e,l=n;s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedClasses=Xe(s,l);break;case"selected":case"checked":it(l=e,c=t,u=n);var c,u,d=l;d[c]!==u&&(d[c]=u);break;default:it(e,t,n)}}function it(e,t,n){[null,void 0,!1].includes(n)&&!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)?e.removeAttribute(t):(ot(t)&&(n=t),t=t,n=n,(e=e).getAttribute(t)!=n&&e.setAttribute(t,n))}function ot(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function at(e,t,n){e=e.getAttribute(t);return null===e?"function"==typeof n?n():n:""===e||(ot(t)?!![t,"true"].includes(e):e)}function st(n,r){var i;return function(){var e=this,t=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n.apply(e,t)},r)}}function lt(t,n){let r;return function(){var e=arguments;r||(t.apply(this,e),r=!0,setTimeout(()=>r=!1,n))}}var D={},ct=!1;var ut={};function dt(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([e,t])=>({name:e,value:t})),o=Ae(i);Ce(e,i=i.map(t=>o.find(e=>e.name===t.name)?{name:"x-bind:"+t.name,value:`"${t.value}"`}:t),n).map(e=>{r.push(e.runCleanups),e()})}var ht={};var M={get reactive(){return C},get release(){return h},get effect(){return d},get raw(){return $},version:"3.12.3",flushAndStopDeferringMutations:function(){he=!1,fe(r),r=[]},dontAutoEvaluateFunctions:be,disableEffectScheduling:function(e){ee=!1,e(),ee=!0},startObservingMutations:ce,stopObservingMutations:ue,setReactivityEngine:function(t){C=t.reactive,h=t.release,d=e=>t.effect(e,{scheduler:e=>{ee?J(e):e()}}),$=t.raw},closestDataStack:o,skipDuringClone:I,onlyDuringClone:function(t){return(...e)=>O&&t(...e)},addRootSelector:We,addInitSelector:Ke,addScopeToNode:S,deferMutations:function(){he=!0},mapAttributes:Re,evaluateLater:f,interceptInit:function(e){ze.push(e)},setEvaluator:function(e){_e=e},mergeProxies:l,extractProp:function(t,n,e,r=!0){if(t._x_bindings&&void 0!==t._x_bindings[n])return t._x_bindings[n];if(t._x_inlineBindings&&void 0!==t._x_inlineBindings[n]){let e=t._x_inlineBindings[n];return e.extract=r,be(()=>u(t,e.expression))}return at(t,n,e)},findClosest:x,closestRoot:w,destroyTree:$e,interceptor:ge,transition:nt,setStyles:k,mutateDom:A,directive:g,throttle:lt,debounce:st,evaluate:u,initTree:L,nextTick:Qe,prefixed:m,prefix:function(e){Ee=e},plugin:function(e){(Array.isArray(e)?e:[e]).forEach(e=>e(M))},magic:a,store:function(e,t){if(ct||(D=C(D),ct=!0),void 0===t)return D[e];"object"==typeof(D[e]=t)&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&D[e].init(),me(D[e])},start:function(){He&&T("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),He=!0,document.body||T("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),b(document,"alpine:init"),b(document,"alpine:initializing"),ce(),ie.push(e=>L(e,_)),oe(e=>$e(e)),ne.push((e,t)=>
3{Ce(e,t).forEach(e=>e())}),Array.from(document.querySelectorAll(Ve())).filter(e=>!w(e.parentElement,!0)).forEach(e=>{L(e)}),b(document,"alpine:initialized")},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),O=!0;{let n=d;te((e,t)=>{e=n(e);return h(e),()=>{}}),(e=()=>{{var e;let i=!1;L(t,(e,r)=>{_(e,(e,t)=>{if(i&&(n=e,qe().some(e=>n.matches(e))))return t();var n;i=!0,r(e,t)})})}})(),te(n)}O=!1},bound:function(e,t,n){return e._x_bindings&&void 0!==e._x_bindings[t]?e._x_bindings[t]:at(e,t,n)},$data:pe,walk:_,data:function(e,t){ht[e]=t},bind:function(e,t){var n="function"!=typeof t?()=>t:t;e instanceof Element?dt(e,n()):ut[e]=n}},e=(e=>{var t=q(i(null!=e?N(F(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),n=e,r=void 0;if(n&&"object"==typeof n||"function"==typeof n)for(let e of B(n))H.call(t,e)||"default"===e||i(t,e,{get:()=>n[e],enumerable:!(r=U(n,e))||r.enumerable});return t})(e());a("nextTick",()=>Qe),a("dispatch",e=>b.bind(b,e)),a("watch",(o,{evaluateLater:a,effect:s})=>(e,t)=>{let n=a(e),r=!0,i;e=s(()=>n(e=>{JSON.stringify(e),r?i=e:queueMicrotask(()=>{t(e,i),i=e}),r=!1}));o._x_effects.delete(e)}),a("store",function(){return D}),a("data",e=>pe(e)),a("root",e=>w(e)),a("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=l(function(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}(e))),e._x_refs_proxy));var ft={};function pt(e){return ft[e]||(ft[e]=0),++ft[e]}function mt(t,e,n){a(e,e=>T(`You can't use [$${directiveName}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/`+n,e))}a("id",i=>(e,t=null)=>{n=e;var n,r=x(i,e=>{if(e._x_ids&&e._x_ids[n])return!0}),r=r?r._x_ids[e]:pt(e);return t?e+`-${r}-`+t:e+"-"+r}),a("el",e=>e),mt("Focus","focus","focus"),mt("Persist","persist","persist"),g("modelable",(r,{expression:e},{evaluateLater:t,cleanup:i})=>{let n=t(e),o=()=>{let t;return n(e=>t=e),t},a=t(e+" = __placeholder"),s=e=>a(()=>{},{scope:{__placeholder:e}});t=o();s(t),queueMicrotask(()=>{if(r._x_model){r._x_removeModelListeners.default();let e=r._x_model.get,t=r._x_model.set;var n=function({get:n,set:r},{get:i,set:o}){let a=!0,s,l,c,u,e=d(()=>{let e,t;a?(e=n(),o(e),t=i(),a=!1):(e=n(),t=i(),c=JSON.stringify(e),u=JSON.stringify(t),c!==s?(t=i(),o(e),t=e):(r(t),e=t)),s=JSON.stringify(e),l=JSON.stringify(t)});return()=>{h(e)}}({get(){return e()},set(e){t(e)}},{get(){return o()},set(e){s(e)}});i(n)}})});var gt=document.createElement("div"),R=(g("teleport",(t,{modifiers:e,expression:n},{cleanup:r})=>{"template"!==t.tagName.toLowerCase()&&T("x-teleport can only be used on a <template> tag",t);let i=I(()=>document.querySelector(n),()=>gt)(),o=(i||T(`Cannot find x-teleport element for selector: "${n}"`),t.content.cloneNode(!0).firstElementChild);((t._x_teleport=o)._x_teleportBack=t)._x_forwardEvents&&t._x_forwardEvents.forEach(e=>{o.addEventListener(e,e=>{e.stopPropagation(),t.dispatchEvent(new e.constructor(e.type,e))})}),S(o,{},t),A(()=>{e.includes("prepend")?i.parentNode.insertBefore(o,i):e.includes("append")?i.parentNode.insertBefore(o,i.nextSibling):i.appendChild(o),L(o),o._x_ignore=!0}),r(()=>o.remove())}),()=>{});function vt(n,r,i,t){let o=n,a=e=>t(e),s={};var e,l=(t,n)=>e=>n(t,e);return i.includes("dot")&&(r=r.replace(/-/g,".")),i.includes("camel")&&(r=r.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())),i.includes("passive")&&(s.passive=!0),i.includes("capture")&&(s.capture=!0),i.includes("window")&&(o=window),i.includes("document")&&(o=document),i.includes("debounce")&&(e=P((e=i[i.indexOf("debounce")+1]||"invalid-wait").split("ms")[0])?Number(e.split("ms")[0]):250,a=st(a,e)),i.includes("throttle")&&(e=P((e=i[i.indexOf("throttle")+1]||"invalid-wait").split("ms")[0])?Number(e.split("ms")[0]):250,a=lt(a,e)),i.includes("prevent")&&(a=l(a,(e,t)=>{t.preventDefault(),e(t)})),i.includes("stop")&&(a=l(a,(e,t)=>{t.stopPropagation(),e(t)})),i.includes("self")&&(a=l(a,(e,t)=>{t.target===n&&e(t)})),(i.includes("away")||i.includes("outside"))&&(o=document,a=l(a,(e,t)=>{n.contains(t.target)||!1===t.target.isConnected||n.offsetWidth<1&&n.offsetHeight<1||!1!==n._x_isShown&&e(t)})),a=l(a=i.includes("once")?l(a,(e,t)=>{e(t),o.removeEventListener(r,a,s)}):a,(e,t)=>{["keydown","keyup"].includes(r)&&function(t,e){let n=e.filter(e=>!["window","document","prevent","stop","once","capture"].includes(e));n.includes("debounce")&&(e=n.indexOf("debounce"),n.splice(e,P((n[e+1]||"invalid-wait").split("ms")[0])?2:1));n.includes("throttle")&&(e=n.indexOf("throttle"),n.splice(e,P((n[e+1]||"invalid-wait").split("ms")[0])?2:1));if(0===n.length)return;if(1===n.length&&yt(t.key).includes(n[0]))return;const r=["ctrl","shift","alt","meta","cmd","super"].filter(e=>n.includes(e));if(n=n.filter(e=>!r.includes(e)),0<r.length){e=r.filter(e=>t[(e="cmd"!==e&&"super"!==e?e:"meta")+"Key"]);if(e.length===r.length&&yt(t.key).includes(n[0]))return}return 1}(t,i)||e(t)}),o.addEventListener(r,a,s),()=>{o.removeEventListener(r,a,s)}}function P(e){return!Array.isArray(e)&&!isNaN(e)}function yt(t){if(!t)return[];var e;e=t,t=[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();
3let n={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return n[t]=t,Object.keys(n).map(e=>{if(n[e]===t)return e}).filter(e=>e)}function bt(e){var t,n=e?parseFloat(e):null;return t=n,Array.isArray(t)||isNaN(t)?e:n}function _t(e){return null!==e&&"object"==typeof e&&"function"==typeof e.get&&"function"==typeof e.set}R.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})},g("ignore",R),g("effect",(e,{expression:t},{effect:n})=>n(f(e,t))),g("model",(o,{modifiers:a,expression:t},{effect:e,cleanup:n})=>{let r=o,i=f(r=a.includes("parent")?o.parentNode:r,t),s,l=(s="string"==typeof t?f(r,t+" = __placeholder"):"function"==typeof t&&"string"==typeof t()?f(r,t()+" = __placeholder"):()=>{},()=>{let t;return i(e=>t=e),_t(t)?t.get():t}),c=e=>{let t;i(e=>t=e),_t(t)?t.set(e):s(()=>{},{scope:{__placeholder:e}})};"string"==typeof t&&"radio"===o.type&&A(()=>{o.hasAttribute("name")||o.setAttribute("name",t)});var u="select"===o.tagName.toLowerCase()||["checkbox","radio"].includes(o.type)||a.includes("lazy")?"change":"input",d=O?()=>{}:vt(o,u,a,e=>{var t,n,r,i;c((t=o,n=a,r=e,i=l(),A(()=>{var e;if(r instanceof CustomEvent&&void 0!==r.detail)return null!=(e=r.detail)?e:r.target.value;if("checkbox"!==t.type)return"select"===t.tagName.toLowerCase()&&t.multiple?n.includes("number")?Array.from(r.target.selectedOptions).map(e=>{return bt(e.value||e.text)}):Array.from(r.target.selectedOptions).map(e=>e.value||e.text):(e=r.target.value,n.includes("number")?bt(e):n.includes("trim")?e.trim():e);if(Array.isArray(i)){let t=n.includes("number")?bt(r.target.value):r.target.value;return r.target.checked?i.concat([t]):i.filter(e=>!(e==t))}return r.target.checked})))});if(a.includes("fill")&&[null,""].includes(l())&&o.dispatchEvent(new Event(u,{})),o._x_removeModelListeners||(o._x_removeModelListeners={}),o._x_removeModelListeners.default=d,n(()=>o._x_removeModelListeners.default()),o.form){let e=vt(o.form,"reset",[],e=>{Qe(()=>o._x_model&&o._x_model.set(o.value))});n(()=>e())}o._x_model={get(){return l()},set(e){c(e)}},o._x_forceModelUpdate=e=>{void 0===(e=void 0===e?l():e)&&"string"==typeof t&&t.match(/\./)&&(e=""),window.fromModel=!0,A(()=>rt(o,"value",e)),delete window.fromModel},e(()=>{var e=l();a.includes("unintrusive")&&document.activeElement.isSameNode(o)||o._x_forceModelUpdate(e)})}),g("cloak",e=>queueMicrotask(()=>A(()=>e.removeAttribute(m("cloak"))))),Ke(()=>`[${m("init")}]`),g("init",I((e,{expression:t},{evaluate:n})=>("string"!=typeof t||!!t.trim())&&n(t,{},!1))),g("text",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n(()=>{i(e=>{A(()=>{t.textContent=e})})})}),g("html",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n(()=>{i(e=>{A(()=>{t.innerHTML=e,t._x_ignoreSelf=!0,L(t),delete t._x_ignoreSelf})})})}),Re(Ie(":",m("bind:")));R=(t,{value:n,modifiers:r,expression:i,original:o},{effect:a})=>{var s;if(n){if("key"===n)t._x_keyExpression=i;else if(!(t._x_inlineBindings&&t._x_inlineBindings[n]&&t._x_inlineBindings[n].extract)){let e=f(t,i);a(()=>e(e=>{void 0===e&&"string"==typeof i&&i.match(/\./)&&(e=""),A(()=>rt(t,n,e,r))}))}}else s=a={},Object.entries(ut).forEach(([e,t])=>{Object.defineProperty(s,e,{get(){return(...e)=>t(...e)}})}),f(t,i)(e=>{dt(t,e,o)},{scope:a})};function wt(e,n,t,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(n)?e.item.replace("[","").replace("]","").split(",").map(e=>e.trim()).forEach((e,t)=>{i[e]=n[t]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(n)&&"object"==typeof n?e.item.replace("{","").replace("}","").split(",").map(e=>e.trim()).forEach(e=>{i[e]=n[e]}):i[e.item]=n,e.index&&(i[e.index]=t),e.collection&&(i[e.collection]=r),i}function xt(){}function kt(t,n,r){g(n,e=>T(`You can't use [x-${n}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/`+r,e))}R.inline=(e,{value:t,expression:n})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})},g("bind",R),We(()=>`[${m("data")}]`),g("data",I((e,{expression:t},{cleanup:n})=>{t=""===t?"{}":t;var r,i,o={},a=(ye(o,e),{});r=a,i=o,Object.entries(ht).forEach(([e,t])=>{Object.defineProperty(r,e,{get(){return(...e)=>t.bind(i)(...e)},enumerable:!1})});let s=u(e,t,{scope:a}
3),l=(ye(s=void 0!==s&&!0!==s?s:{},e),C(s)),c=(me(l),S(e,l));l.init&&u(e,l.init),n(()=>{l.destroy&&u(e,l.destroy),c()})})),g("show",(t,{modifiers:n,expression:e},{effect:r})=>{let i=f(t,e),o=(t._x_doHide||(t._x_doHide=()=>{A(()=>{t.style.setProperty("display","none",n.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{A(()=>{1===t.style.length&&"none"===t.style.display?t.removeAttribute("style"):t.style.removeProperty("display")})}),()=>{t._x_doHide(),t._x_isShown=!1}),a=()=>{t._x_doShow(),t._x_isShown=!0},s=()=>setTimeout(a),l=et(e=>(e?a:o)(),e=>{"function"==typeof t._x_toggleAndCascadeWithTransitions?t._x_toggleAndCascadeWithTransitions(t,e,a,o):(e?s:o)()}),c,u=!0;r(()=>i(e=>{!u&&e===c||(n.includes("immediate")&&(e?s:o)(),l(e),c=e,u=!1)}))}),g("for",(t,{expression:e},{effect:n,cleanup:r})=>{let i=function(e){var t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,e=e.match(/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/);var n,r;if(e)return(n={}).items=e[2].trim(),e=e[1].replace(/^\s*\(|\)\s*$/g,"").trim(),(r=e.match(t))?(n.item=e.replace(t,"").trim(),n.index=r[1].trim(),r[2]&&(n.collection=r[2].trim())):n.item=e,n}(e),o=f(t,i.items),a=f(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},n(()=>{{var k=t,E=i,e=o,O=a;let x=k;e(n=>{e=n,void 0===(n=!Array.isArray(e)&&!isNaN(e)&&0<=n?Array.from(Array(n).keys(),e=>e+1):n)&&(n=[]);var e,i=k._x_lookup;let t=k._x_prevKeys,o=[],a=[];if("object"!=typeof(e=n)||Array.isArray(e))for(let e=0;e<n.length;e++){var r=wt(E,n[e],e,n);O(e=>a.push(e),{scope:{index:e,...r}}),o.push(r)}else n=Object.entries(n).map(([e,t])=>{t=wt(E,t,e,n);O(e=>a.push(e),{scope:{index:e,...t}}),o.push(t)});var s=[],l=[];let c=[];var u=[];for(let e=0;e<t.length;e++){var d=t[e];-1===a.indexOf(d)&&c.push(d)}t=t.filter(e=>!c.includes(e));let h="template";for(let e=0;e<a.length;e++){var f,p,m=a[e],g=t.indexOf(m);-1===g?(t.splice(e,0,m),s.push([h,e])):g!==e?(f=t.splice(e,1)[0],p=t.splice(g-1,1)[0],t.splice(e,0,p),t.splice(g,0,f),l.push([f,p])):u.push(m),h=m}for(let e=0;e<c.length;e++){var v=c[e];i[v]._x_effects&&i[v]._x_effects.forEach(X),i[v].remove(),i[v]=null,delete i[v]}for(let r=0;r<l.length;r++){var[y,b]=l[r];let e=i[y],t=i[b],n=document.createElement("div");A(()=>{t||T('x-for ":key" is undefined or invalid',x),t.after(n),e.after(t),t._x_currentIfEl&&t.after(t._x_currentIfEl),n.before(e),e._x_currentIfEl&&e.after(e._x_currentIfEl),n.remove()}),t._x_refreshXForScope(o[a.indexOf(b)])}for(let r=0;r<s.length;r++){var[_,w]=s[r];let e="template"===_?x:i[_];e._x_currentIfEl&&(e=e._x_currentIfEl);_=o[w],w=a[w];let t=document.importNode(x.content,!0).firstElementChild,n=C(_);S(t,n,x),t._x_refreshXForScope=e=>{Object.entries(e).forEach(([e,t])=>{n[e]=t})},A(()=>{e.after(t),L(t)}),"object"==typeof w&&T("x-for key cannot be an object, it must be a string or an integer",x),i[w]=t}for(let e=0;e<u.length;e++)i[u[e]]._x_refreshXForScope(o[a.indexOf(u[e])]);x._x_prevKeys=a})}}),r(()=>{Object.values(t._x_lookup).forEach(e=>e.remove()),delete t._x_prevKeys,delete t._x_lookup})}),xt.inline=(e,{expression:t},{cleanup:n})=>{let r=w(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])},g("ref",xt),g("if",(t,{expression:e},{effect:n,cleanup:r})=>{let i=f(t,e);n(()=>i(e=>{if(e)if(t._x_currentIfEl)t._x_currentIfEl;else{let e=t.content.cloneNode(!0).firstElementChild;S(e,{},t),A(()=>{t.after(e),L(e)}),t._x_currentIfEl=e,t._x_undoIf=()=>{_(e,e=>{e._x_effects&&e._x_effects.forEach(X)}),e.remove(),delete t._x_currentIfEl},e}else t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)})),r(()=>t._x_undoIf&&t._x_undoIf())}),g("id",(n,{expression:e},{evaluate:t})=>{t(e).forEach(e=>{return e=e,(t=n)._x_ids||(t._x_ids={}),void(t._x_ids[e]||(t._x_ids[e]=pt(e)));var t})}),Re(Ie("@",m("on:"))),g("on",I((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?f(e,r):()=>{},a=("template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t)),vt(e,t,n,e=>{o(()=>{},{scope:{$event:e},params:[e]})}));i(()=>a())})),kt("Collapse","collapse","collapse"),kt("Intersect","intersect","intersect"),kt("Focus","trap","focus"),kt("Mask","mask","mask"),M.setEvaluator(xe),M.setReactivityEngine({reactive:e.reactive,effect:e.effect,release:e.stop,raw:e.toRaw});var Et=M}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(L,I,e){"use strict";function t(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.co
3de=t}return(t.prototype=new Error).name=e,t.prototype.constructor=t}Object.defineProperty(e,"__esModule",{value:!0});for(var n=t("LaunchDarklyUnexpectedResponseError"),r=t("LaunchDarklyInvalidEnvironmentIdError"),i=t("LaunchDarklyInvalidUserError"),o=t("LaunchDarklyInvalidEventKeyError"),a=t("LaunchDarklyInvalidArgumentError"),s=t("LaunchDarklyFlagFetchError"),Q={LDUnexpectedResponseError:n,LDInvalidEnvironmentIdError:r,LDInvalidUserError:i,LDInvalidEventKeyError:o,LDInvalidArgumentError:a,LDInvalidDataError:t("LaunchDarklyInvalidDataError"),LDFlagFetchError:s,isHttpErrorRecoverable:function(e){return!(400<=e&&e<500)||400===e||408===e||429===e}},n=function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(function(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(l[(r=r)>>18&63]+l[r>>12&63]+l[r>>6&63]+l[63&r]);return i.join("")}(e,o,a<o+16383?a:o+16383));return 1==r?(t=e[n-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")},l=[],c=[],D="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,M=u.length;d<M;++d)l[d]=u[d],c[u.charCodeAt(d)]=d;function R(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");return[e=-1===e?t:e,e===t?0:4-e%4]}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;var P={byteLength:function(e){var e=R(e),t=e[0],e=e[1];return 3*(t+e)/4-e},toByteArray:function(e){for(var t,n=R(e),r=n[0],n=n[1],i=new D(3*(r+n)/4-n),o=0,a=0<n?r-4:r,s=0;s<a;s+=4)t=c[e.charCodeAt(s)]<<18|c[e.charCodeAt(s+1)]<<12|c[e.charCodeAt(s+2)]<<6|c[e.charCodeAt(s+3)],i[o++]=t>>16&255,i[o++]=t>>8&255,i[o++]=255&t;return 2===n&&(t=c[e.charCodeAt(s)]<<2|c[e.charCodeAt(s+1)]>>4,i[o++]=255&t),1===n&&(t=c[e.charCodeAt(s)]<<10|c[e.charCodeAt(s+1)]<<4|c[e.charCodeAt(s+2)]>>2,i[o++]=t>>8&255,i[o++]=255&t),i},fromByteArray:n},j=Array.isArray,N=Object.keys,F=Object.prototype.hasOwnProperty;const H=["key","ip","country","email","firstName","lastName","avatar","name"];function B(e){e=unescape(encodeURIComponent(e));return P.fromByteArray(function(t){var n=[];for(let e=0;e<t.length;e++)n.push(t.charCodeAt(e));return n}(e))}function U(e){return B(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var f,J={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:U,btoa:B,chunkEventsForUrl:function(e,t){var n=t.slice(0),r=[];let i,o=e;for(;0<n.length;){for(i=[];0<o;){const e=n.shift();if(!e)break;(o-=U(JSON.stringify(e)).length)<0&&0<i.length?n.unshift(e):i.push(e)}o=e,r.push(i)}return r},clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=j(t),s=j(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1}else{if(a!=s)return!1;a=t instanceof Date,s=n instanceof Date;if(a!=s)return!1;if(a&&s)return t.getTime()==n.getTime();a=t instanceof RegExp,s=n instanceof RegExp;if(a!=s)return!1;if(a&&s)return t.toString()==n.toString();var l=N(t);if((i=l.length)!==N(n).length)return!1;for(r=i;0!=r--;)if(!F.call(n,l[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=l[r]],n[o]))return!1}return!0}return t!=t&&n!=n},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){var t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:h,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(n){if(!n)return n;let r;return null!==n.kind&&void 0!==n.kind||H.forEach(e=>{var t=n[e];void 0!==t&&"string"!=typeof t&&((r=r||{...n})[e]=String(t))}),r||n},transformValuesToVersionedValues:function(e){var t={};for(const n in e)h(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){var t={};for(const n in e)h(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){e=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:e}},q=new Uint8Array(16);function V(){if(f=f||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return f(q);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function p(e){return"string"==typeof e&&W.test(e)}for(var K,m,g=[],z=0;z<256;++z)g.push((z+256).toString(16).substr(1));function v(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase();if(p(e))return e;
3throw TypeError("Stringified UUID is invalid")}var $=0,G=0;function Z(e){var t,n;if(p(e))return(n=new Uint8Array(16))[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n;throw TypeError("Invalid UUID")}function ne(e,a,s){function t(e,t,n,r){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),16!==(t="string"==typeof t?Z(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=s(i))[6]=15&i[6]|a,i[8]=63&i[8]|128,n){r=r||0;for(var o=0;o<16;++o)n[r+o]=i[o];return n}return v(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function re(e){return 14+(e+64>>>9<<4)+1}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function b(e,t,n,r,i,o){return y((t=y(y(t,e),y(r,o)))<<i|t>>>32-i,n)}function _(e,t,n,r,i,o,a){return b(t&n|~t&r,e,t,i,o,a)}function w(e,t,n,r,i,o,a){return b(t&r|n&~r,e,t,i,o,a)}function x(e,t,n,r,i,o,a){return b(t^n^r,e,t,i,o,a)}function k(e,t,n,r,i,o,a){return b(n^(t|~r),e,t,i,o,a)}r=ne("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}for(var r=function(e,t){e[t>>5]|=128<<t%32,e[re(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,l=r,c=i,u=o,n=_(n,r,i,o,e[a],7,-680876936),o=_(o,n,r,i,e[a+1],12,-389564586),i=_(i,o,n,r,e[a+2],17,606105819),r=_(r,i,o,n,e[a+3],22,-1044525330);n=_(n,r,i,o,e[a+4],7,-176418897),o=_(o,n,r,i,e[a+5],12,1200080426),i=_(i,o,n,r,e[a+6],17,-1473231341),r=_(r,i,o,n,e[a+7],22,-45705983),n=_(n,r,i,o,e[a+8],7,1770035416),o=_(o,n,r,i,e[a+9],12,-1958414417),i=_(i,o,n,r,e[a+10],17,-42063),r=_(r,i,o,n,e[a+11],22,-1990404162),n=_(n,r,i,o,e[a+12],7,1804603682),o=_(o,n,r,i,e[a+13],12,-40341101),i=_(i,o,n,r,e[a+14],17,-1502002290),n=w(n,r=_(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=w(o,n,r,i,e[a+6],9,-1069501632),i=w(i,o,n,r,e[a+11],14,643717713),r=w(r,i,o,n,e[a],20,-373897302),n=w(n,r,i,o,e[a+5],5,-701558691),o=w(o,n,r,i,e[a+10],9,38016083),i=w(i,o,n,r,e[a+15],14,-660478335),r=w(r,i,o,n,e[a+4],20,-405537848),n=w(n,r,i,o,e[a+9],5,568446438),o=w(o,n,r,i,e[a+14],9,-1019803690),i=w(i,o,n,r,e[a+3],14,-187363961),r=w(r,i,o,n,e[a+8],20,1163531501),n=w(n,r,i,o,e[a+13],5,-1444681467),o=w(o,n,r,i,e[a+2],9,-51403784),i=w(i,o,n,r,e[a+7],14,1735328473),n=x(n,r=w(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=x(o,n,r,i,e[a+8],11,-2022574463),i=x(i,o,n,r,e[a+11],16,1839030562),r=x(r,i,o,n,e[a+14],23,-35309556),n=x(n,r,i,o,e[a+1],4,-1530992060),o=x(o,n,r,i,e[a+4],11,1272893353),i=x(i,o,n,r,e[a+7],16,-155497632),r=x(r,i,o,n,e[a+10],23,-1094730640),n=x(n,r,i,o,e[a+13],4,681279174),o=x(o,n,r,i,e[a],11,-358537222),i=x(i,o,n,r,e[a+3],16,-722521979),r=x(r,i,o,n,e[a+6],23,76029189),n=x(n,r,i,o,e[a+9],4,-640364487),o=x(o,n,r,i,e[a+12],11,-421815835),i=x(i,o,n,r,e[a+15],16,530742520),n=k(n,r=x(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=k(o,n,r,i,e[a+7],10,1126891415),i=k(i,o,n,r,e[a+14],15,-1416354905),r=k(r,i,o,n,e[a+5],21,-57434055),n=k(n,r,i,o,e[a+12],6,1700485571),o=k(o,n,r,i,e[a+3],10,-1894986606),i=k(i,o,n,r,e[a+10],15,-1051523),r=k(r,i,o,n,e[a+1],21,-2054922799),n=k(n,r,i,o,e[a+8],6,1873313359),o=k(o,n,r,i,e[a+15],10,-30611744),i=k(i,o,n,r,e[a+6],15,-1560198380),r=k(r,i,o,n,e[a+13],21,1309151649),n=k(n,r,i,o,e[a+4],6,-145523070),o=k(o,n,r,i,e[a+11],10,-1120210379),i=k(i,o,n,r,e[a+2],15,718787259),r=k(r,i,o,n,e[a+9],21,-343485551),n=y(n,s),r=y(r,l),i=y(i,c),o=y(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(re(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length),i=[],o=32*r.length,a="0123456789abcdef",s=0;s<o;s+=8){var l=r[s>>5]>>>s%32&255,l=parseInt(a.charAt(l>>>4&15)+a.charAt(15&l),16);i.push(l)}return i});function ie(e,t){return e<<t|e>>>32-t}i=ne("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),l=0;l<a;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];s[l]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),f=0;f<16;++f)h[f]=s[d][f];for(var p=16;p<80;++p)h[p]=ie(h[p-3]^h[p-8]^h[p-14]^h[p-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],b=n[4],_=0;_<80;++_)var w=Math.floor(_/20),w=ie(m,5)+function(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}(w,g,v,y)+b+t[w]+h[_]>>>0,b=y,y=v,v=ie(g,30)>>>0,g=m,m=w;n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
3>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),o=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||K,n=void 0!==e.clockseq?e.clockseq:m,a=(null!=o&&null!=n||(a=e.random||(e.rng||V)(),null==o&&(o=K=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==n&&(n=m=16383&(a[6]<<8|a[7]))),void 0!==e.msecs?e.msecs:Date.now()),s=void 0!==e.nsecs?e.nsecs:G+1,l=a-$+(s-G)/1e4;if(l<0&&void 0===e.clockseq&&(n=n+1&16383),1e4<=(s=(l<0||$<a)&&void 0===e.nsecs?0:s))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=a,m=n;l=(1e4*(268435455&(a+=122192928e5))+(G=s))%4294967296,i[r++]=l>>>24&255,i[r++]=l>>>16&255,i[r++]=l>>>8&255,i[r++]=255&l,e=a/4294967296*1e4&268435455;i[r++]=e>>>8&255,i[r++]=255&e,i[r++]=e>>>24&15|16,i[r++]=e>>>16&255,i[r++]=n>>>8|128,i[r++]=255&n;for(var c=0;c<6;++c)i[r+c]=o[c];return t||v(i)},v3:r,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||V)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return v(r)},v5:i,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(p(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:p,stringify:v,parse:Z});const E=["debug","info","warn","error","none"];a={commonBasicLogger:function(t,o){if(t&&t.destination&&"function"!=typeof t.destination)throw new Error("destination for basicLogger was set to a non-function");function n(t){return function(e){console&&console[t]&&console[t].call(console,e)}}const a=t&&t.destination?[t.destination,t.destination,t.destination,t.destination]:[n("log"),n("info"),n("warn"),n("error")],s=!(!t||!t.destination),l=t&&void 0!==t.prefix&&null!==t.prefix?t.prefix:"[LaunchDarkly] ";let r=1;if(t&&t.level)for(let e=0;e<E.length;e++)E[e]===t.level&&(r=e);function i(t,n,r){if(!(r.length<1)){let e;var i=s?n+": "+l:l;if(1!==r.length&&o){const t=[...r];t[0]=i+t[0],e=o(...t)}else e=i+r[0];try{a[t](e)}catch(t){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+t)}}}var c={};for(let e=0;e<E.length;e++){const o=E[e];if("none"!==o)if(e<r)c[o]=()=>{};else{const n=e;c[o]=function(){i(n,o,arguments)}}}return c},validateLogger:function(t){E.forEach(e=>{if("none"!==e&&(!t[e]||"function"!=typeof t[e]))throw new Error("Provided logger instance must support logger."+e+"(...) method")})}};function O(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}const C=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.";var X={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+C},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+C},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+C},errorFetchingFlags:function(e){return"Error fetching flag settings: "+O(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.lau
3nchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(Q.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+C},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidContext:function(){return"Invalid context specified."+C},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+O(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+O(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+C},unrecoverableStreamError:e=>`Error on stream connection ${O(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};const oe=a["validateLogger"],ae={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){var r={};return t.id&&(r.id=ce(e+".id",t.id,n)),t.version&&(r.version=ce(e+".version",t.version,n)),r}},inspectors:{default:[]}},se=/^(\w|\.|-)+$/;function le(e){return e&&e.replace(/\/+$/,"")}function ce(e,t,n){if("string"==typeof t&&t.match(se)){if(!(64<t.length))return t;n.warn(X.tagValueTooLong(e))}else n.warn(X.invalidTagValue(e))}var ue={baseOptionDefs:ae,validate:function(e,t,n,s){const l=J.extend({logger:{default:s}},ae,n),r={};function c(e){J.onNextTick(()=>{t&&t.maybeReportError(new Q.LDInvalidArgumentError(e))})}var i=J.extend({},e||{});{const o=i;Object.keys(r).forEach(e=>{var t;void 0!==o[e]&&(t=r[e],s&&s.warn(X.deprecated(e,t)),t)&&(void 0===o[t]&&(o[t]=o[e]),delete o[e])})}return i=function(i){const o=J.extend({},i),a=e=>{return null===e?"any":void 0!==e?Array.isArray(e)?"array":"boolean"==(e=typeof e)||"string"==e||"number"==e||"function"==e?e:"object":void 0};
3return Object.keys(i).forEach(e=>{var t=i[e];if(null!=t){var n=l[e];if(void 0===n)c(X.unknownOption(e));else{const l=n.type||a(n.default),r=n.validator;if(r){const a=r(e,i[e],s);void 0!==a?o[e]=a:delete o[e]}else if("any"!==l){const i=l.split("|"),s=a(t);i.indexOf(s)<0?"boolean"===l?(o[e]=!!t,c(X.wrongOptionTypeBoolean(e,s))):(c(X.wrongOptionType(e,l,s)),o[e]=n.default):"number"===s&&void 0!==n.minimum&&t<n.minimum&&(c(X.optionBelowMinimum(e,t,n.minimum)),o[e]=n.minimum)}}}}),o.baseUrl=le(o.baseUrl),o.streamUrl=le(o.streamUrl),o.eventsUrl=le(o.eventsUrl),o}(function(){const t=J.extend({},i);return Object.keys(l).forEach(e=>{void 0!==t[e]&&null!==t[e]||(t[e]=l[e]&&l[e].default)}),t}()),oe(i.logger),i},getTags:function(e){var t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application)&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version]),t}};const de=J["getLDUserAgentString"];s={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};var n={};n[e.userAgentHeaderName||"User-Agent"]=de(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=ue.getTags(t),i=Object.keys(r);return i.length&&(n["x-launchdarkly-tags"]=i.sort().map(t=>Array.isArray(r[t])?r[t].sort().map(e=>t+"/"+e):[t+"/"+r[t]]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};const he=o["v1"],{getLDHeaders:fe,transformHeaders:pe}=s;function me(s,e,l){const i="/a/"+e+".gif",c=J.extend({"Content-Type":"application/json"},fe(s,l)),u=s.httpFallbackPing,a={};return a.sendChunk=(e,t,n,r)=>{const o=JSON.stringify(e),a=n?null:he();return r?function r(i){var e=n?c:J.extend({},c,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":a});return s.httpRequest("POST",t,pe(e,l),o).promise.then(e=>{if(e)if(400<=e.status&&Q.isHttpErrorRecoverable(e.status)&&i)return r(!1);else{var t=e;var e={status:t.status},n=t.header("date");if(n){const t=Date.parse(n);t&&(e.serverTime=t)}return e;return}}).catch(()=>i?r(!1):Promise.reject())}(!0).catch(()=>{}):(u&&u(t+i+"?d="+J.base64URLEncode(o)),Promise.resolve())},a.sendEvents=function(e,t,n){if(!s.httpRequest)return Promise.resolve();var r=s.httpAllowsPost(),i=r?[e]:J.chunkEventsForUrl(2e3-t.length,e),o=[];for(let e=0;e<i.length;e++)o.push(a.sendChunk(i[e],t,n,r));return Promise.all(o)},a}const ge=a["commonBasicLogger"];function ve(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function ye(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}n={checkContext:function(t,e){if(t){if(e&&(void 0===t.kind||null===t.kind))return void 0!==t.key&&null!==t.key;var e=t.key,n=void 0===t.kind?"user":t.kind,r=ve(n),i="multi"===n||null!=e&&""!==e;if("multi"!==n)return i&&r;{const e=Object.keys(t).filter(e=>"kind"!==e);return i&&e.every(e=>ve(e))&&e.every(e=>{e=t[e].key;return null!=e&&""!==e})}}return!1},getContextKeys:function(e,t=ge()){if(e){const n={},{kind:r,key:i}=e;switch(r){case void 0:n.user=""+i;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn("null is not a valid context kind: "+e);break;case"":t.warn("'' is not a valid context kind: "+e);break;default:n[r]=""+i}return n}},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(t){if(t)return void 0!==t.kind&&null!==t.kind&&"user"!==t.kind||!t.key?"multi"!==t.kind&&t.key?t.kind+":"+ye(t.key):"multi"===t.kind?Object.keys(t).sort().filter(e=>"kind"!==e).map(e=>e+":"+ye(t[e].key)).join(":"):void 0:t.key}};const be=n["getContextKinds"];function _e(){var e={};let o=0,a=0,s={},l={};return e.summarizeEvent=e=>{if("feature"===e.kind){var n=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),r=s[n];let t=l[e.key];t||(t=new Set,l[e.key]=t),((i=e).context?be(i.context):i.contextKeys?Object.keys(i.contextKeys):[]).forEac
3h(e=>t.add(e)),r?r.count=r.count+1:s[n]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===o||e.creationDate<o)&&(o=e.creationDate),e.creationDate>a&&(a=e.creationDate)}var i},e.getSummary=()=>{var t={};let n=!0;for(const o of Object.values(s)){let e=t[o.key];e||(e={default:o.default,counters:[],contextKinds:[...l[o.key]]},t[o.key]=e);const s={value:o.value,count:o.count};void 0!==o.variation&&null!==o.variation&&(s.variation=o.variation),void 0!==o.version&&null!==o.version?s.version=o.version:s.unknown=!0,e.counters.push(s),n=!1}return n?null:{startDate:o,endDate:a,features:t}},e.clearSummary=()=>{o=0,a=0,s={},l={}},e}function we(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function xe(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>0<=e.indexOf("~")?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function ke(e){return!e.startsWith("/")}function Ee(e,t){const n=ke(e),r=ke(t);if(!n||!r){if(n){const n=xe(t);return 1===n.length&&e===n[0]}if(r){const n=xe(e);return 1===n.length&&t===n[0]}}return e===t}function Oe(e){return"/"+we(e)}var Ce={cloneExcluding:function(t,n){const e=[],r={},i=[];for(e.push(...Object.keys(t).map(e=>({key:e,ptr:Oe(e),source:t,parent:r,visited:[t]})));e.length;){const t=e.pop();if(n.some(e=>Ee(e,t.ptr)))i.push(t.ptr);else{const n=t.source[t.key];null===n?t.parent[t.key]=n:Array.isArray(n)?t.parent[t.key]=[...n]:"object"==typeof n?t.visited.includes(n)||(t.parent[t.key]={},e.push(...Object.keys(n).map(e=>{return{key:e,ptr:t.ptr+"/"+we(e),source:n,parent:t.parent[t.key],visited:[...t.visited,n]}}))):t.parent[t.key]=n}}return{cloned:r,excluded:i.sort()}},compare:Ee,literalToReference:Oe};const Ae=n["getContextKeys"];function Se(e,t,n,r=null,i=null,o=null){const a={},s=o||me(e,n,t),l=J.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),c=_e(),u=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],i=["key","kind","_meta","anonymous"],o=["name","ip","firstName","lastName","email","avatar","country"],a=e=>{var t;if("object"==typeof e&&null!==e&&!Array.isArray(e))return{cloned:e,excluded:t}=Ce.cloneExcluding(e,(e=e,(n?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(t=>!i.some(e=>Ce.compare(t,e))))),e.key=String(e.key),t.length&&(e._meta||(e._meta={}),e._meta.redactedAttributes=t),e._meta&&(delete e._meta.privateAttributes,0===Object.keys(e._meta).length)&&delete e._meta,void 0!==e.anonymous&&(e.anonymous=!!e.anonymous),e};return t.filter=e=>void 0===e.kind||null===e.kind?a((e=>{var t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of o)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?Ce.literalToReference(e):e)),t})(e)):("multi"===e.kind?e=>{const t={kind:e.kind},n=Object.keys(e);for(const r of n)if("kind"!==r){const n=a(e[r]);n&&(t[r]=n)}return t}:a)(e),t}(t),d=t.samplingInterval,h=t.eventCapacity,f=t.flushInterval,p=t.logger;let m,g=[],v=0,y=!1,b=!1;function _(){return 0===d||0===Math.floor(Math.random()*d)}function w(e){g.length<h?(g.push(e),b=!1):(b||(b=!0,p.warn(X.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return a.enqueue=function(n){if(!y){let e=!1,t=!1;var r,i;if(c.summarizeEvent(n),"feature"===n.kind?_()&&(e=!!n.trackEvents,t=!!(r=n).debugEventsUntilDate&&r.debugEventsUntilDate>v&&r.debugEventsUntilDate>(new Date).getTime()):e=_(),e&&w((r=n,i=J.extend({},r),"identify"===r.kind?i.context=u.filter(r.context):(i.contextKeys=Ae(r.context,p),delete i.context),"feature"===r.kind&&(delete i.trackEvents,delete i.debugEventsUntilDate),i)),t){const e=J.extend({},n,{kind:"debug"});e.context=u.filter(e.context),delete e.trackEvents,delete e.debugEventsUntilDate,w(e)}}},a.flush=function(){var e,t;return y||(e=g,t=c.getSummary(),c.clearSummary(),t&&(t.kind="summary",e.push(t)),r&&r.setEventsInLastBatch(e.length),0===e.length)?Promise.resolve():(g=[],p.debug(X.debugPostingEvents(e.length)),s.sendEvents(e,l).then(e=>{const t=e&&e[0];t&&(t.serverTime&&(v=t.serverTime),Q.isHttpErrorRecoverable(t.status)||(y=!0),400<=t.status)&&J.onNextTick(()=>{i.maybeReportError(new Q.LDUnexpectedResponseError(X.httpErrorMessage(t.status,"event posting","some events were dropped")))})}))},a.start=function(){const e=()=>{a.flush(),m=setTimeout(e,f)};m=setTimeout(e,f)},a.stop=function(){clearTimeout(m)},a}const Y="ready",Te="initialized",Le="failed";const{appendUrlPath:Ie,base64URLEncode:De,objectHasOwnProperty:Me}=J,{getLDHeaders:Re,transformHeaders:Pe}=s,je=Q["isHttpErrorRecoverable"];function Ne(r,i,o,t){const a=i.streamUrl,s=i.logger,e={},l=Ie(a,"/eval/"+o),c=i.useReport,u=i.evaluationReasons,n=i.streamReconnectDelay,d=Re(r,i);let h,f=!1,p=null,m=null,g=null,v=null,y=null,b=0;function _(e){var t;e.status&&"number"==typeof e.status&&!je(e.status)?(k(),s.error(X.unrecoverableStreamError(e)),m&&(clearTimeout(m),m=null)):(t=(t=3e4<(t=n*Math.pow(2,b))?3e4:t)-Math.trunc(.5*Math.random()*t),b+=1,f||(s.warn(X.streamError(e,t)),f=!0),E(!1),k(),w(t))}function w(e){m||(e?m=setTimeout(x,e):x())}function x(){let e,t=(m=null,"");var n={headers:d,readTimeoutMillis:3e5};if(r.eventSourceFactory){null!=v&&(t="h="+v),c?r.eventSourceAllowsReport?(e=l,n.method="REPORT",n.headers["Content-Type"]="application/json",n.body=JSON.stringify(g)):(e=Ie(a,"/ping/"+o),t=""):e=l+"/"+De(JSON.stringify(g)),n.headers=Pe(n.headers,i),u&&(t=t+(t?"&":"")+"withReasons=true"),e=e+(t?"?":"")+t,k(),s.info(X.streamConnecting(e)),h=(new Date).getTime(),p=r.eventSourceFactory(e,n);for(const r in y)Me(y,r)&&p.addEventListener(r,y[r]);p.onerror=_,p.onopen=()=>{b=0}}}function k(){p&&(s.info(X.streamClosing()),p.close(),p=null)}function E(e){h&&t&&t.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return e.connect=function(t,e,n){g=t,v=e,y={};for(const t in n||{})y[t]=function(e){E(!(f=!1)),n[t]&&n[t](e)};w()},e.disconnect=function(){clearTimeout(m),m=null,k()},e.isConnected=function(){return!!(p&&r.eventSourceIsActive&&r.eventSourceIsActive(p))},e}const{transformHeaders:Fe,getLDHeaders:He}=s,Be="application/json";function Ue(s,l,a){const c=l.baseUrl,u=l.useReport,d=l.evaluationReasons,h=l.logger,e={},f={};function p(e,t){if(!s.httpRequest)return new Promise((e,t)=>
3{t(new Q.LDFlagFetchError(X.httpUnavailable()))});var n=t?"REPORT":"GET",r=He(s,l);t&&(r["Content-Type"]=Be);let i=f[e];i||(i=function(n){let r,i,o,a;var e={addPromise:(t,e)=>{r=t,i&&i(),i=e,t.then(e=>{r===t&&(o(e),n)&&n()},e=>{r===t&&(a(e),n)&&n()})}};return e.resultPromise=new Promise((e,t)=>{o=e,a=t}),e}(()=>{delete f[e]}),f[e]=i);const o=s.httpRequest(n,e,Fe(r,l),t),a=o.promise.then(e=>{var t;return 200===e.status?e.header("content-type")&&e.header("content-type").substring(0,Be.length)===Be?JSON.parse(e.body):(t=X.invalidContentType(e.header("content-type")||""),Promise.reject(new Q.LDFlagFetchError(t))):Promise.reject(404===(t=e).status?new Q.LDInvalidEnvironmentIdError(X.environmentNotFound()):new Q.LDFlagFetchError(X.errorFetchingFlags(t.statusText||String(t.status))))},e=>Promise.reject(new Q.LDFlagFetchError(X.networkError(e))));return i.addPromise(a,()=>{o.cancel&&o.cancel()}),i.resultPromise}return e.fetchJSON=function(e){return p(J.appendUrlPath(c,e),null)},e.fetchFlagSettings=function(e,t){let n,r,i,o="";return u?(r=[c,"/sdk/evalx/",a,"/context"].join(""),i=JSON.stringify(e)):(n=J.base64URLEncode(JSON.stringify(e)),r=[c,"/sdk/evalx/",a,"/contexts/",n].join("")),t&&(o="h="+t),d&&(o=o+(o?"&":"")+"withReasons=true"),r=r+(o?"?":"")+o,h.debug(X.debugPolling(r)),p(r,i)},e}const qe=o["v1"],Ve=n["getContextKinds"];function We(i){function o(e){return null==e||"user"===e?"ld:$anonUserId":"ld:$contextKey:"+e}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?i.get(o(n)).then(e=>{if(e)return r.key=e,r;{const e=qe();return r.key=e,t=e,i.set(o(n),t).then(()=>r)}var t}):Promise.reject(new Q.LDInvalidUserError(X.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new Q.LDInvalidUserError(X.contextNotSpecified()));const t=J.clone(e);if("multi"!==e.kind)return n(e.kind,t);{const e=Ve(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}}}const Ke=o["v1"],ze=ue["baseOptionDefs"],$e=J["appendUrlPath"];var Ge=function(e){var t={diagnosticId:Ke()};return e&&(t.sdkKeySuffix=6<e.length?e.substring(e.length-6):e),t},Ze=function(e){let t,n,r,i;function o(e){t=e,n=0,r=0,i=[]}return o(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:i}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,i=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{e={timestamp:e,failed:t,durationMillis:n};i.push(e)},reset:o}},Qe=function(t,n,e,r,i,o,a){const s=!!t.diagnosticUseCombinedEvent,l="ld:"+i+":$diagnostics",c=$e(o.eventsUrl,"/events/diagnostic/"+i),u=o.diagnosticRecordingInterval,d=e;let h,f,p=!!o.streaming;i={};function m(){return{sdk:(e={...t.diagnosticSdkData},o.wrapperName&&(e.wrapperName=o.wrapperName),o.wrapperVersion&&(e.wrapperVersion=o.wrapperVersion),e),configuration:{customBaseURI:o.baseUrl!==ze.baseUrl.default,customStreamURI:o.streamUrl!==ze.streamUrl.default,customEventsURI:o.eventsUrl!==ze.eventsUrl.default,eventsCapacity:o.eventCapacity,eventsFlushIntervalMillis:o.flushInterval,reconnectTimeMillis:o.streamReconnectDelay,streamingDisabled:!p,allAttributesPrivate:!!o.allAttributesPrivate,diagnosticRecordingIntervalMillis:o.diagnosticRecordingInterval,usingSecureMode:!!o.hash,bootstrapMode:!!o.bootstrap,fetchGoalsDisabled:!o.fetchGoals,sendEventsOnlyForVariation:!!o.sendEventsOnlyForVariation},platform:t.diagnosticPlatformData};var e}function g(e){o.logger&&o.logger.debug(X.debugPostingDiagnosticEvent(e)),r.sendEvents(e,c,!0).then(()=>{}).catch(()=>{})}function v(){var e;g(function(){var e=(new Date).getTime();let t={kind:s?"diagnostic-combined":"diagnostic",id:a,creationDate:e,...d.getProps()};return s&&(t={...t,...m()}),d.reset(e),t}()),f=setTimeout(v,u),h=(new Date).getTime(),s&&n.isEnabled()&&(e={...d.getProps()},n.set(l,JSON.stringify(e)))}return i.start=()=>{var t;s?(t=e=>{if(e){const e=(h||0)+u,t=(new Date).getTime();t>=e?v():f=setTimeout(v,e-t)}else 0===Math.floor(4*Math.random())?v():f=setTimeout(v,u)},n.isEnabled()?n.get(l).then(e=>{if(e)try{const t=JSON.parse(e);d.setProps(t),h=t.dataSinceDate}catch(e){}t(!0)}).catch(()=>{t(!1)}):t(!1)):(g({kind:"diagnostic-init",id:a,creationDate:d.getProps().dataSinceDate,...m()}),f=setTimeout(v,u))},i.stop=()=>{f&&clearTimeout(f)},i.setStreaming=e=>{p=e},i};const A=J["onNextTick"],S={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(S);r={InspectorTypes:S,InspectorManager:function(e,o){const t={}
3,i={[S.flagUsed]:[],[S.flagDetailsChanged]:[],[S.flagDetailChanged]:[],[S.clientIdentityChanged]:[]},n=e&&e.map(e=>{{var n=e,r=o;let t=!1;const i={type:n.type,name:n.name,method:(...e)=>{try{n.method(...e)}catch{t||(t=!0,r.warn(X.inspectorMethodError(i.type,i.name)))}}};return i}});return n&&n.forEach(e=>{Object.prototype.hasOwnProperty.call(i,e.type)?i[e.type].push(e):o.warn(X.invalidInspector(e.type,e.name))}),t.hasListeners=e=>i[e]&&i[e].length,t.onFlagUsed=(t,n,r)=>{i[S.flagUsed].length&&A(()=>{i[S.flagUsed].forEach(e=>e.method(t,n,r))})},t.onFlags=t=>{i[S.flagDetailsChanged].length&&A(()=>{i[S.flagDetailsChanged].forEach(e=>e.method(t))})},t.onFlagChanged=(t,n)=>{i[S.flagDetailChanged].length&&A(()=>{i[S.flagDetailChanged].forEach(e=>e.method(t,n))})},t.onIdentityChanged=t=>{i[S.clientIdentityChanged].length&&A(()=>{i[S.clientIdentityChanged].forEach(e=>e.method(t))})},t}};const Je=a["commonBasicLogger"],{checkContext:Xe,getContextKeys:Ye}=n,{InspectorTypes:ee,InspectorManager:et}=r,te="change",tt="internal-change";var i={initialize:function(e,j,t,i,n){const a=t&&t.logger?t.logger:n&&n.logger&&n.logger.default||Je("warn"),s=function(t){const e={},i={};return e.on=function(e,t,n){i[e]=i[e]||[],i[e]=i[e].concat({handler:t,context:n})},e.off=function(t,n,r){if(i[t])for(let e=0;e<i[t].length;e++)i[t][e].handler===n&&i[t][e].context===r&&(i[t]=i[t].slice(0,e).concat(i[t].slice(e+1)))},e.emit=function(e){if(i[e]){var t=i[e].slice(0);for(let e=0;e<t.length;e++)t[e].handler.apply(t[e].context,Array.prototype.slice.call(arguments,1))}},e.getEvents=function(){return Object.keys(i)},e.getEventListenerCount=function(e){return i[e]?i[e].length:0},e.maybeReportError=function(e){e&&(i.error?this.emit("error",e):(t||console).error(e.message))},e}(a),r=function(i){let t=!1,n=!1,r=null,e=null;const o=new Promise(e=>{const t=()=>{i.off(Y,t),e()};i.on(Y,t)}).catch(()=>{});return{getInitializationPromise:()=>e||(t?Promise.resolve():n?Promise.reject(r):e=new Promise((e,t)=>{const n=()=>{i.off(Te,n),e()},r=e=>{i.off(Le,r),t(e)};i.on(Te,n),i.on(Le,r)})),getReadyPromise:()=>o,signalSuccess:()=>{t||n||(t=!0,i.emit(Te),i.emit(Y))},signalFailure:e=>{t||n||(n=!0,r=e,i.emit(Le,e),i.emit(Y)),i.maybeReportError(e)}}}(s),l=ue.validate(t,s,n,a),c=et(l.inspectors,a),o=l.sendEvents;let u=e,d=l.hash;const h=function(r,t){var e={};let n=!1;const i=e=>{n||(n=!0,t.warn(X.localStorageUnavailable(e)))};return e.isEnabled=()=>!!r,e.get=e=>new Promise(t=>{r?r.get(e).then(t).catch(e=>{i(e),t(void 0)}):t(void 0)}),e.set=(e,n)=>new Promise(t=>{r?r.set(e,n).then(()=>t(!0)).catch(e=>{i(e),t(!1)}):t(!1)}),e.clear=e=>new Promise(t=>{r?r.clear(e).then(()=>t(!0)).catch(e=>{i(e),t(!1)}):t(!1)}),e}(i.localStorage,a),N=me(i,u,l),f=l.sendEvents&&!l.diagnosticOptOut,F=f?Ge(u):null,p=f?Ze((new Date).getTime()):null,m=f?Qe(i,h,p,N,u,l,F):null,H=Ne(i,l,u,p),g=l.eventProcessor||Se(i,l,u,p,s,N),v=Ue(i,l,u);let y,b,_,w={},x=l.streaming,B=!1,k=!1,E=!0;const O=l.stateProvider,C=function(e,t){var n={};let r;return n.setContext=function(e){(r=J.sanitizeContext(e))&&t&&t(J.clone(r))},n.getContext=function(){return r?J.clone(r):null},e&&n.setContext(e),n}(null,function(e){e=e,O||e&&S({kind:"identify",context:e,creationDate:(new Date).getTime()}),c.hasListeners(ee.clientIdentityChanged)&&c.onIdentityChanged(C.getContext())}),U=new We(h),A=h.isEnabled()?function(t,n,r,i){const e={};function o(){let e="";var t=i.getContext();return t&&(e=r||J.btoa(JSON.stringify(t))),"ld:"+n+":"+e}return e.loadFlags=()=>t.get(o()).then(t=>{if(null==t)return null;try{let e=JSON.parse(t);if(e){const t=e.$schema;void 0===t||t<1?e=J.transformValuesToVersionedValues(e):delete e.$schema}return e}catch(t){return e.clearFlags().then(()=>null)}}),e.saveFlags=e=>{e=J.extend({},e,{$schema:1});return t.set(o(),JSON.stringify(e))},e.clearFlags=()=>t.clear(o()),e}(h,u,d,C):null;function S(e){!u||O&&O.enqueueEvent&&O.enqueueEvent(e)||(e.context?(E=!1,!o||k||i.isDoNotTrack()||(a.debug(X.debugEnqueueingEvent(e.kind)),g.enqueue(e))):E&&(a.warn(X.eventWithoutContext()),E=!1))}function q(e,t){c.hasListeners(ee.flagDetailChanged)&&c.onFlagChanged(e.key,L(t))}function V(){c.hasListeners(ee.flagDetailsChanged)&&c.onFlags(Object.entries(w).map(([e,t])=>({key:e,detail:L(t)})).reduce((e,t)=>
3(e[t.key]=t.detail,e),{}))}function W(e,t,n,r){var i=C.getContext(),o=new Date,i={kind:"feature",key:e,context:i,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:o.getTime()},n=w[e];n&&(i.version=n.flagVersion||n.version,i.trackEvents=n.trackEvents,i.debugEventsUntilDate=n.debugEventsUntilDate),(r||n&&n.trackReason)&&t&&(i.reason=t.reason),S(i)}function K(e){return Xe(e,!1)?Promise.resolve(e):Promise.reject(new Q.LDInvalidUserError(X.invalidContext()))}function T(e,t,n,r,i){let o;if(w&&J.objectHasOwnProperty(w,e)&&w[e]&&!w[e].deleted){const n=w[e];o=L(n),null!==n.value&&void 0!==n.value||(o.value=t)}else o={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return n&&W(e,o,t,r),i||(n=e,t=o,c.hasListeners(ee.flagUsed)&&c.onFlagUsed(n,t,C.getContext())),o}function L(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function z(){if(b=!0,C.getContext()){const i=e=>{try{return JSON.parse(e)}catch(e){s.maybeReportError(new Q.LDInvalidDataError(X.invalidData()))}};H.connect(C.getContext(),d,{ping:function(){a.debug(X.debugStreamPing());const t=C.getContext();v.fetchFlagSettings(t,d).then(e=>{J.deepEquals(t,C.getContext())&&D(e||{})}).catch(e=>{s.maybeReportError(new Q.LDFlagFetchError(X.errorFetchingFlags(e)))})},put:function(e){e=i(e.data);e&&(a.debug(X.debugStreamPut()),D(e))},patch:function(e){var t=i(e.data);if(t){var n=w[t.key];if(!n||!n.version||!t.version||n.version<t.version){a.debug(X.debugStreamPatch(t.key));const i={},e=J.extend({},t);delete e.key;var r=L(w[t.key]=e);i[t.key]=n?{previous:n.value,current:r}:{current:r},M(i),q(t,e)}else a.debug(X.debugStreamPatchIgnored(t.key))}},delete:function(e){e=i(e.data);if(e)if(!w[e.key]||w[e.key].version<e.version){a.debug(X.debugStreamDelete(e.key));const i={};w[e.key]&&!w[e.key].deleted&&(i[e.key]={previous:w[e.key].value}),w[e.key]={version:e.version,deleted:!0},q(e,w[e.key]),M(i)}else a.debug(X.debugStreamDeleteIgnored(e.key))}})}}function I(){b&&(H.disconnect(),b=!1)}function D(e){var t={};if(!e)return Promise.resolve();for(const n in w)J.objectHasOwnProperty(w,n)&&w[n]&&(e[n]&&!J.deepEquals(e[n].value,w[n].value)?t[n]={previous:w[n].value,current:L(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:w[n].value}));for(const r in e)J.objectHasOwnProperty(e,r)&&e[r]&&(!w[r]||w[r].deleted)&&(t[r]={current:L(e[r])});return w={...e},V(),M(t).catch(()=>{})}function M(i){var e=Object.keys(i);if(0<e.length){const o={};e.forEach(e=>{var t=i[e].current,n=t?t.value:void 0,r=i[e].previous;s.emit(te+":"+e,n,r),o[e]=t?{current:n,previous:r}:{previous:r}}),s.emit(te,o),s.emit(tt,w),l.sendEventsOnlyForVariation||O||e.forEach(e=>{W(e,i[e].current)})}return y&&A?A.saveFlags(w):Promise.resolve()}function R(){var e=x||_&&void 0===x;e&&!b?z():!e&&b&&I(),m&&m.setStreaming(e)}function $(e){return e===te||e.substr(0,te.length+1)===te+":"}if("string"==typeof l.bootstrap&&"LOCALSTORAGE"===l.bootstrap.toUpperCase()&&(A?y=!0:a.warn(X.localStorageUnavailable())),"object"==typeof l.bootstrap&&(w=function(n){const e=Object.keys(n),r="$flagsState",i=n[r],o=(!i&&e.length&&a.warn(X.bootstrapOldFormat()),!1===n.$valid&&a.warn(X.bootstrapInvalid()),{});return e.forEach(t=>{if(t!==r&&"$valid"!==t){let e={value:n[t]};i&&i[t]?e=J.extend(e,i[t]):e.version=0,o[t]=e}}),o}(l.bootstrap)),O){const e=O.getInitialState();e?G(e):O.on("init",G),O.on("update",function(e){e.context&&C.setContext(e.context),e.flags&&D(e.flags)})}else(e?U.processContext(j).then(K).then(e=>(C.setContext(e),"object"==typeof l.bootstrap?P():y?A.loadFlags().then(e=>null==e?(w={},v.fetchFlagSettings(C.getContext(),d).then(e=>D(e||{})).then(P).catch(e=>{Z(new Q.LDFlagFetchError(X.errorFetchingFlags(e)))})):(w=e,J.onNextTick(P),v.fetchFlagSettings(C.getContext(),d).then(e=>D(e)).catch(e=>s.maybeReportError(e)))):v.fetchFlagSettings(C.getContext(),d).then(e=>{w=e||{},V(),P()}).catch(e=>{w={},Z(e)}))):Promise.reject(new Q.LDInvalidEnvironmentIdError(X.environmentNotSpecified()))).catch(Z);function G(e){u=e.environment,C.setContext(e.context),w={...e.flags},J.onNextTick(P)}function P(){a.info(X.clientInitialized()),B=!0,R(),r.signalSuccess()}function Z(e){r.signalFailure(e)}return{client:{waitForInitialization:()=>r.getInitializationPromise(),waitUntilReady:()=>r.getReadyPromise(),identify:function(e,r,t){var n;return k?J.wrapPromiseCallback(Promise.resolve({}),t):O?(a.warn(X.identifyDisabled()),J.wrapPromiseCallback(Promise.resolve(J.transformVersionedValuesToValues(w)),t)):(n=y&&A?A.clearFlags():Promise.resolve(),J.wrapPromiseCallback(n.then(()=>U.processContext(e)).then(K).then(n=>v.fetchFlagSettings(n,r).then(e=>{const t=J.transformVersionedValuesToValues(e);return C.setContext(n),d=r,e?D(e).then(()=>t):t})).then(e=>(b&&z(),e)).catch(e=>(s.maybeReportError(e),Promise.reject(e))),t))},getContext:function(){return C.getContext()},variation:function(e,t){return T(e,t,!0,!1,!1).value},variationDetail:function(e,t){return T(e,t,!0,!0,!1)},track:function(e,t,n){var r;"string"!=typeof e?s.maybeReportError(new Q.LDInvalidEventKeyError(X.unknownCustomEventKey(e))):(i.customEventFilter&&!i.customEventFilter(e)&&a.warn(X.unknownCustomEventKey(e)),r={kind:"custom",key:e,context:e=C.getContext(),url:i.getCurrentUrl(),creationDate:(new Date).getTime()},e&&e.anonymous&&(r.contextKind=e.anonymous?"anonymousUser":"user"),null!=t&&(r.data=t),null!=n&&(r.metricValue=n),S(r))},on:function(e,t,n){$(e)?(_=!0,B&&R(),s.on(e,t,n)):s.on(...arguments)},off:function(e){if(s.off(...arguments),$(e)){let t=!1;
3s.getEvents().forEach(e=>{$(e)&&0<s.getEventListenerCount(e)&&(t=!0)}),t||(_=!1,b&&void 0===x&&I())}},setStreaming:function(e){e=null===e?void 0:e;e!==x&&(x=e,R())},flush:function(e){return J.wrapPromiseCallback(o?g.flush():Promise.resolve(),e)},allFlags:function(){var e={};if(w)for(const t in w)J.objectHasOwnProperty(w,t)&&!w[t].deleted&&(e[t]=T(t,null,!l.sendEventsOnlyForVariation,!1,!0).value);return e},close:function(e){var t;return k?J.wrapPromiseCallback(Promise.resolve(),e):(t=()=>{k=!0,w={}},t=Promise.resolve().then(()=>{if(I(),m&&m.stop(),o)return g.stop(),g.flush()}).then(t).catch(t),J.wrapPromiseCallback(t,e))}},options:l,emitter:s,ident:C,logger:a,requestor:v,start:function(){o&&(m&&m.start(),g.start())},enqueueEvent:S,getFlagsInternal:function(){return w},getEnvironmentId:()=>u,internalChangeEventName:tt}},commonBasicLogger:Je,errors:Q,messages:X,utils:J,getContextKeys:Ye},nt=i.initialize,rt=i.errors,it=i.messages;function ot(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function at(r){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(i),!0).forEach(function(e){var t,n;t=r,e=i[n=e],(n=function(){var e=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(n);return"symbol"==typeof e?e:String(e)}())in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ot(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}var st=i.commonBasicLogger,lt={promise:Promise.resolve({status:200,header:function(){return null},body:null})};var ct=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function ut(e,r){for(var t={},n=null,i=[],o=0;o<e.length;o++)for(var a=e[o],s=a.urls||[],l=0;l<s.length;l++)if(function(e,t,n,r){var i,o,a=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":o=t,i=new RegExp("^"+ct(e.url)+"/?$");break;case"canonical":o=a,i=new RegExp("^"+ct(e.url)+"/?$");break;case"substring":o=a,i=new RegExp(".*"+ct(e.substring)+".*$");break;case"regex":o=a,i=new RegExp(e.pattern);break;default:return}return i.test(o)}(s[l],window.location.href,window.location.search,window.location.hash)){"pageview"===a.kind?r("pageview",a):(i.push(a),r("click_pageview",a));break}return 0<i.length&&(n=function(e){for(var t=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var i=e.target,o=t[r],a=o.selector,s=document.querySelectorAll(a);i&&0<s.length;){for(var l=0;l<s.length;l++)i===s[l]&&n.push(o);i=i.parentNode}return n}(e,i),n=0;n<t.length;n++)r("click",t[n])},document.addEventListener("click",n)),t.dispose=function(){document.removeEventListener("click",n)},t}var dt=300;function ht(r,o){var a,s;function l(){s&&s.dispose(),a&&a.length&&(s=ut(a,c))}function c(e,t){var n=r.ident.getContext(),n={kind:e,key:t.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:n};return"click"===e&&(n.selector=t.selector),r.enqueueEvent(n)}r.requestor.fetchJSON("/sdk/goals/"+r.getEnvironmentId()).then(function(e){function t(){(r=window.location.href)!==i&&(i=r,n())}var n,r,i;e&&0<e.length&&(s=ut(a=e,c),n=l,i=window.location.href,function e(t,n){t(),setTimeout(function(){e(t,n)},n)}(t,dt),window.history&&window.history.pushState?window.addEventListener("popstate",t):window.addEventListener("hashchange",t)),o()}).catch(function(e){r.emitter.maybeReportError(new rt.LDUnexpectedResponseError((e&&e.message,e.message))),o()})}var T="goalsReady",ft={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function pt(e,t){function n(){i.synchronousFlush=!0,o.flush().catch(function(){}),i.synchronousFlush=!1}var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=function(e){var t,u,d={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};window.XMLHttpRequest&&(u=e&&e.disableSyncEventPost,d.httpRequest=function(e,t,n,r){var i=d.synchronousFlush&!u,o=(d.synchronousFlush=!1,n),a=r,n=i;if(n&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){e=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(e)return parseInt(e[2],10)<73}return 1}())return lt;var s,l,c=new window.XMLHttpRequest;for(s in c.open(e,t,!n),o||{})Object.prototype.hasOwnProperty.call(o,s)&&c.setRequestHeader(s,o[s]);return n?(c.send(a),lt):{promise:new Promise(function(e,t){c.addEventListener("load",function(){l||e({status:c.status,header:function(e){return c.getResponseHeader(e)},body:c.responseText})}),c.addEventListener("error",function(){l||t(new Error)}),c.send(a)}
3),cancel:function(){l=!0,c.abort()}}}),d.httpAllowsPost=function(){return t=void 0===t?!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest:t},d.httpFallbackPing=function(e){(new window.Image).src=e};var n=e&&e.eventUrlTransformer;d.getCurrentUrl=function(){return n?n(window.location.href):window.location.href},d.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(d.localStorage={get:function(t){return new Promise(function(e){e(window.localStorage.getItem(t))})},set:function(t,n){return new Promise(function(e){window.localStorage.setItem(t,n),e()})},clear:function(t){return new Promise(function(e){window.localStorage.removeItem(t),e()})}})}catch(e){d.localStorage=null}var r=e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(d.eventSourceAllowsReport=!0,window.EventSourcePolyfill):(d.eventSourceAllowsReport=!1,window.EventSource);return window.EventSource&&(d.eventSourceFactory=function(e,t){t=at(at({},{heartbeatTimeout:3e5,silentTimeout:3e5,skipDefaultHeaders:!0}),t);return new r(e,t)},d.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}),d.userAgent="JSClient",d.version="3.1.3",d.diagnosticSdkData={name:"js-client-sdk",version:"3.1.3"},d.diagnosticPlatformData={name:"JS"},d.diagnosticUseCombinedEvent=!0,d}(r),e=nt(e,t,r,i,ft),o=e.client,t=e.options,a=e.emitter,s=new Promise(function(e){var t=a.on(T,function(){a.off(T,t),e()})});o.waitUntilGoalsReady=function(){return s},t.fetchGoals?ht(e,function(){a.emit(T)}):a.emit(T),"complete"!==document.readyState?window.addEventListener("load",e.start):e.start();return document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&n()}),window.addEventListener("pagehide",n),o}s={initialize:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return console&&console.warn&&console.warn(it.deprecated("default export","named LDClient export")),pt(e,t,n)},version:"3.1.3"};e.basicLogger=function(e){return st(at({destination:console.log},e))},e.createConsoleLogger=void 0,e.default=s,e.initialize=pt,e.version="3.1.3"},{}],11:[function(e,t,n){"use strict";n.__esModule=!0;var r,i,o,a,n=e("alpinejs"),s=(e("./vendor/onelink-smart-script"),e("./utils")),l=e("../../../components/blog-sub-nav/script"),c=e("../../../acf-blocks/m1-story-accordion/script"),u=e("../../../acf-blocks/m1-email-form/script"),d=e("../../../acf-blocks/m1-hysa-calculator/script"),h=e("../../../acf-blocks/m1-ca-calculator/script"),f=e("../../../acf-blocks/m1-image-comparison-slider/dropdownToggle"),e=e("../../../acf-blocks/m1-image-comparison-slider/imageComparison");function p(){!window.matchMedia("(max-width: 64rem)").matches&&o.classList.contains("active")&&i.click()}(0,l.default)(),["m1_spend_apy_banner_click"].forEach(function(e){var t=document.getElementById(e);null!==t&&analytics.trackLink(t,e)}),(0,s.createSegmentLinks)(),l=document.querySelectorAll('[data-toggle="copy"]'),Array.from(l).forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();e=e.currentTarget;if((e instanceof HTMLButtonElement||e instanceof HTMLAnchorElement)&&e.dataset.copy)return(0,s.copyToClipboard)(e.dataset.copy),alert("Copied page link to clipboard.");alert("Copy failed!")})}),(0,s.storeUrlParameterInCookie)("gclid","gclid",90),(0,s.setIdentityFromCookie)("gclid","gclid"),(0,s.createAppsflyerLinks)(),(0,s.convertHelpToIntercom)(),analytics.ready(function(){(0,s.initLaunchDarkly)()}),(0,s.createTooltips)(),window.addEventListener("optimize.build",function(){(0,s.createTooltips)()},!1),window.Alpine=n.default,n.default.data("emailForm",u.default),n.default.data("hysaCalculator",d.default),n.default.data("caCalculator",h.default),n.default.data("dropdownToggle",f.default),n.default.data("imageComparison",e.default),n.default.data("storyAccordion",c.default),n.default.start(),i=document.querySelector(".menu-toggle-close"),o=document.getElementById("mobile-drawer"),p(),window.addEventListener("resize",function(){clearTimeout(r),r=setTimeout(p,100)}),l=document.querySelectorAll('a[href^="#"]'),a=document.getElementById("masthead").offsetHeight+32,l.forEach(function(e){e.classList.contains("kb-advanced-image-link")||e.classList.contains("kb-section-link-overlay")||e.hasAttribute("data-tab")||e.addEventListener("click",function(e){e.preventDefault(),e.stopImmediatePropagation();e=document.querySelector(this.getAttribute("href")).getBoundingClientRect().top-a;window.scrollTo({top:e+window.scrollY,behavior:"smooth"})})})},{"../../../acf-blocks/m1-ca-calculator/script":1,"../../../acf-blocks/m1-email-form/script":2,"../../../acf-blocks/m1-hysa-calculator/script":3,"../../../acf-blocks/m1-image-comparison-slider/dropdownToggle":4,"../../../acf-blocks/m1-image-comparison-slider/imageComparison":5,"../../../acf-blocks/m1-story-accordion/script":6,"../../../components/blog-sub-nav/script":7,"./utils":13,"./vendor/onelink-smart-script":14,alpine
3js:9}],12:[function(e,t,n){"use strict";n.__esModule=!0,n.helpurlsAndids=void 0;n.helpurlsAndids=[{url:"https://help.m1.com/hc/en-us/articles/13826643072915-1099-B",id:9331896},{url:"https://help.m1.com/hc/en-us/articles/8090944167827-401-k-403-b-457-Rollover-FAQs",id:9332004},{url:"https://help.m1.com/hc/en-us/articles/21333129374099-A-loved-one-with-an-M1-account-passed-away",id:9331932},{url:"https://help.m1.com/hc/en-us/articles/220989828-A-stock-I-own-is-delisted-from-M1-s-supported-exchanges",id:9332132},{url:"https://help.m1.com/hc/en-us/articles/4403317154963-All-About-IRA-Overcontributions",id:9332146},{url:"https://help.m1.com/hc/en-us/articles/24932675457811-Apply-for-an-M1-Personal-Loan",id:9332201},{url:"https://help.m1.com/hc/en-us/articles/11646210102419-B-notice-information",id:9331906},{url:"https://help.m1.com/hc/en-us/articles/220989888-Banks-that-M1-does-not-support",id:9332047},{url:"https://help.m1.com/hc/en-us/articles/4560631169427-Benefits-and-risks-of-a-Margin-Loan",id:9332212},{url:"https://help.m1.com/hc/en-us/articles/4405558266003-Calculating-my-net-income-attributable",id:9332156},{url:"https://help.m1.com/hc/en-us/articles/4564083027475-Can-I-automate-my-payments",id:9332240},{url:"https://help.m1.com/hc/en-us/articles/221053447-Can-I-buy-and-sell-the-same-security-in-a-day",id:9332087},{url:"https://help.m1.com/hc/en-us/articles/9070559790739-Can-I-convert-my-Vanguard-Mutual-Fund-shares-into-ETFs",id:9332002},{url:"https://help.m1.com/hc/en-us/articles/115011720127-Cash-transfers-timing",id:9332035},{url:"https://help.m1.com/hc/en-us/articles/360036199554-Change-my-connected-bank",id:9331941},{url:"https://help.m1.com/hc/en-us/articles/25609804682387-Change-my-password-email-address-or-phone-number",id:9331929},{url:"https://help.m1.com/hc/en-us/articles/220988288-Clients-that-are-currently-employed-by-a-Broker-Dealer",id:9331975},{url:"https://help.m1.com/hc/en-us/articles/221053587-Connecting-and-verifying-my-bank-account",id:9332046},{url:"https://help.m1.com/hc/en-us/articles/16373298947731-Consumer-Reporting-Identity-Theft-Identity-Fraud",id:9331956},{url:"https://help.m1.com/hc/en-us/articles/221052107-Contact-Us",id:9331985},{url:"https://help.m1.com/hc/en-us/articles/231378848-Contributing-to-my-M1-Roth-IRA",id:9332140},{url:"https://help.m1.com/hc/en-us/articles/360058567354-Corporate-actions",id:9332198},{url:"https://help.m1.com/hc/en-us/articles/360001066047-Create-individual-manual-orders",id:9332109},{url:"https://help.m1.com/hc/en-us/articles/115015422127-Create-my-M1-portfolio",id:9332044},{url:"https://help.m1.com/hc/en-us/articles/4403662122131-Create-transfers-in-my-M1-account",id:9332029},{url:"https://help.m1.com/hc/en-us/articles/7628698574739-Crypto-Basics",id:9332170},{url:"https://help.m1.com/hc/en-us/articles/8774299493139-Crypto-FAQ",id:9332168},{url:"https://help.m1.com/hc/en-us/articles/7594064991123-Crypto-Getting-Started",id:9332171},{url:"https://help.m1.com/hc/en-us/articles/14423483780371-De-Minimis-Tax-Thresholds-for-Promotional-Credits-and-Dividends",id:9331900},{url:"https://help.m1.com/hc/en-us/articles/13975278076051-Declined-Owner-s-Rewards-Card-Transactions",id:9332274},{url:"https://help.m1.com/hc/en-us/articles/4403324530835-Distribution-reasons-from-an-M1-IRA",id:9332153},{url:"https://help.m1.com/hc/en-us/articles/360000641687-Dividends-in-my-M1-Portfolio",id:9332162},{url:"https://help.m1.com/hc/en-us/articles/7013559550995-Download-account-activity-and-holdings-information",id:9331947},{url:"https://help.m1.com/hc/en-us/articles/360012279454-Download-and-view-realized-gains",id:9331949},{url:"https://help.m1.com/hc/en-us/articles/360001712688-Edit-my-M1-portfolio",id:9332119},{url:"https://help.m1.com/hc/en-us/articles/12702102179603-Explaining-cost-basis",id:9331905},{url:"https://help.m1.com/hc/en-us/articles/221054267-Explanation-of-an-ACAT-transfer",id:9332019},{url:"https://help.m1.com/hc/en-us/articles/221053227-Explanation-of-fractional-shares",id:9332086},{url:"https://help.m1.com/hc/en-us/articles/16463476580627-FDIC-Insurance-Deposit-Network-for-M1-High-Yield-Savings",id:9332264},{url:"https://help.m1.com/hc/en-us/articles/4404768650387-Frequently-asked-questions",id:9331909},{url:"https://help.m1.com/hc/en-us/articles/17094211402643-Fully-Paid-Securities-Lending",id:9332076},{url:"https://help.m1.com/hc/en-us/articles/10562633787283-Funding-and-Payments",id:9332206},{url:"https://help.m1.com/hc/en-us/articles/10562633787283-Funding-and-Payments#h_01GJE6VDP0DC49TXKF0N2B4988",id:9332206},{url:"https://help.m1.com/hc/en-us/articles/360037553473-Funding-history",id:9332032},{url:"https://help.m1.com/hc/en-us/articles/6340976836115-Getting-Started-with-M1-A-Quick-Guide",id:9332042},{url:"https://help.m1.com/hc/en-us/articles/23501704237203-High-Yield-Cash-Account-FAQ",id:9332250},{url:"https://help.m1.com/hc/en-us/articles/8774665806995-How-M1-Trades-Crypto",id:9332166},{url:"https://help.m1.com/hc/en-us/articles/221056347-How-M1-handles-my-personal-data",id:9331960},{url:"https://help.m1.com/hc/en-us/articles/360001404887-How-M1-trades",id:9331916},{url:"https://help.m1.com/hc/en-us/articles/360001464087-How-can-I-track-my-M1-Margin-Loan-usage",id:9332242},{url:"https://help.m1.com/hc/en-us/articles/360001188247-How-do-I-add-a-beneficiary",id:9331930},{url:"https://help.m1.com/hc/en-us/articles/220990008-How-do-I-create-a-wire-transfer",id:9331996},{url:"https://help.m1.com/hc/en-us/articles/27066050946451-How-do-I-dispute-a-transaction-in-my-M1-Cash-Account",id:9332253},{url:"https://help.m1.com/hc/en-us/articles/16453585146515-How-do-I-dispute-a-transaction-in-my-M1-Savings-Account",id:9332265},{url:"https://help.m1.com/hc/en-us/articles/360001464147-How-do-I-know-a-maintenance-margin-call-is-issued-by-M1",id:9332243},{url:"https://help.m1.com/hc/en-us/articles/4563931093779-How-do-I-make-my-monthly-payments",id:9332238},{url:"https://help.m1.com/hc/en-us/articles/4563953277075-How-do-I-p
3ay-back-the-principal",id:9332239},{url:"https://help.m1.com/hc/en-us/articles/4562739474451-How-do-I-sign-up-for-an-M1-Margin-Loan",id:9332223},{url:"https://help.m1.com/hc/en-us/articles/220990608-How-do-I-transfer-a-brokerage-account-into-M1",id:9332012},{url:"https://help.m1.com/hc/en-us/articles/4563186984339-How-do-M1-Margin-Loan-interest-rates-compare",id:9332231},{url:"https://help.m1.com/hc/en-us/articles/4559955226003-How-do-M1-Margin-Loans-work",id:9332210},{url:"https://help.m1.com/hc/en-us/articles/221053247-How-do-trade-windows-work",id:9332079},{url:"https://help.m1.com/hc/en-us/articles/4403316814099-How-does-M1-execute-orders",id:9332080},{url:"https://help.m1.com/hc/en-us/articles/360001379367-How-does-M1-trade",id:9332078},{url:"https://help.m1.com/hc/en-us/articles/360011513353-How-is-a-Pie-s-performance-calculated",id:9332158},{url:"https://help.m1.com/hc/en-us/articles/4563807680403-How-is-Margin-Loan-interest-calculated-and-charged",id:9332232},{url:"https://help.m1.com/hc/en-us/articles/221053127-How-is-my-money-invested",id:9332081},{url:"https://help.m1.com/hc/en-us/articles/4564474250131-How-long-do-I-have-to-act-on-a-maintenance-call",id:9332246},{url:"https://help.m1.com/hc/en-us/articles/4562982134931-How-long-does-it-take-to-get-access-to-M1-Margin-Loan-funds",id:9332224},{url:"https://help.m1.com/hc/en-us/articles/4403101288339-How-long-will-my-brokerage-account-transfer-take",id:9332039},{url:"https://help.m1.com/hc/en-us/articles/360001379367-How-does-M1-trade",id:9331916},{url:"https://help.m1.com/hc/en-us/articles/221056147-How-much-does-it-cost-to-use-M1",id:9331969},{url:"https://help.m1.com/hc/en-us/articles/4575353603987-How-to-cancel-pending-sells-or-account-edits",id:9332124},{url:"https://help.m1.com/hc/en-us/articles/7975257341843-How-to-find-your-trade-price",id:9332077},{url:"https://help.m1.com/hc/en-us/articles/24979642965395-How-to-fund-my-M1-High-Yield-Cash-Account",id:9332249},{url:"https://help.m1.com/hc/en-us/articles/17598919036819-How-to-fund-my-M1-High-Yield-Savings-Account",id:9332256},{url:"https://help.m1.com/hc/en-us/articles/9344539157523-How-to-move-Slices-into-a-new-Pie",id:9332113},{url:"https://help.m1.com/hc/en-us/articles/4403106113811-How-to-prepare-for-my-incoming-brokerage-account-transfer",id:9332017},{url:"https://help.m1.com/hc/en-us/articles/221053327-How-to-rebalance-your-M1-Invest-Account",id:9332105},{url:"https://help.m1.com/hc/en-us/articles/25736460602131-How-to-set-up-edit-pause-or-cancel-recurring-transfers",id:9331992},{url:"https://help.m1.com/hc/en-us/articles/7987205422867-How-to-transfer-accounts-out-of-M1",id:9332008},{url:"https://help.m1.com/hc/en-us/articles/4563950017043-How-will-I-be-billed",id:9332236},{url:"https://help.m1.com/hc/en-us/articles/220987988-How-do-I-cast-a-proxy-vote",id:9331976},{url:"https://help.m1.com/hc/en-us/articles/360016551773-How-do-I-close-an-M1-account",id:9331945},{url:"https://help.m1.com/hc/en-us/articles/4406318862355-How-do-I-repay-my-CARES-Act-withdrawal",id:9332157},{url:"https://help.m1.com/hc/en-us/articles/4407068888851-IRA-Conversions",id:9332148},{url:"https://help.m1.com/hc/en-us/articles/4407076655635-IRA-FAQ",id:9332134},{url:"https://help.m1.com/hc/en-us/articles/4407076302483-IRA-Recharacterization",id:9332149},{url:"https://help.m1.com/hc/en-us/articles/4407076005907-IRA-contribution-year-changes",id:9332147},{url:"https://help.m1.com/hc/en-us/articles/360040765454-IRA-distribution-guidelines",id:9332151},{url:"https://help.m1.com/hc/en-us/articles/21966256077331-IRA-withholding",id:9332133},{url:"https://help.m1.com/hc/en-us/articles/115012405467-Invest-in-a-second-Pie",id:9332122},{url:"https://help.m1.com/hc/en-us/articles/5679544538259-Investing-in-OTC-Securities",id:9332130},{url:"https://help.m1.com/hc/en-us/articles/115012563008-Investing-in-Custom-Pies",id:9332051},{url:"https://help.m1.com/hc/en-us/articles/221052127-Investment-advice-from-M1",id:9331919},{url:"https://help.m1.com/hc/en-us/articles/24974703304595-Joint-Cash-Accounts",id:9332251},{url:"https://help.m1.com/hc/en-us/articles/22039657553939-Joint-Savings-Accounts",id:9332255},{url:"https://help.m1.com/hc/en-us/articles/23755842584211-Login-Troubleshooting",id:933195
35},{url:"https://help.m1.com/hc/en-us/articles/27036146616851-M1-Cash-Account-details",id:9332252},{url:"https://help.m1.com/hc/en-us/articles/220988208-M1-Invest-Account-types-that-M1-supports",id:9332066},{url:"https://help.m1.com/hc/en-us/articles/360023554953-M1-Margin-Loan-billing",id:9332228},{url:"https://help.m1.com/hc/en-us/articles/10562460785939-M1-Personal-Loan-FAQ",id:9332202},{url:"https://help.m1.com/hc/en-us/articles/4403392296723-M1-Plus-Billing",id:9331935},{url:"https://help.m1.com/hc/en-us/articles/16108086403347-M1-Savings-Account-Details",id:9332261},{url:"https://help.m1.com/hc/en-us/articles/360040767874-M1-Tax-Documents",id:9331894},{url:"https://help.m1.com/hc/en-us/articles/360036705853-M1-glossary",id:9331913},{url:"https://help.m1.com/hc/en-us/articles/115001996408-M1-integration-with-TurboTax-and-H-R-Block",id:9331907},{url:"https://help.m1.com/hc/en-us/articles/360016120793-M1-security-recommendations",id:9331959},{url:"https://help.m1.com/hc/en-us/articles/4561329835795-Maintenance-margin-call-basics",id:9332213},{url:"https://help.m1.com/hc/en-us/articles/1500009779222-Maintenance-requirements-for-positions-on-M1",id:9332241},{url:"https://help.m1.com/hc/en-us/articles/10562561733907-Manage-Account",id:9332205},{url:"https://help.m1.com/hc/en-us/articles/26028609138195-Managing-Owner-s-Rewards-Card-Account-FAQ",id:9332266},{url:"https://help.m1.com/hc/en-us/articles/360060752333-Mergers-acquisitions-tracker",id:9332199},{url:"https://help.m1.com/hc/en-us/articles/360045656914-Minimum-order-size",id:9332085},{url:"https://help.m1.com/hc/en-us/articles/7203138059795-Moving-Slices-between-Pies",id:9332116},{url:"https://help.m1.com/hc/en-us/articles/8595163688339-Moving-Slices-when-the-same-Pies-are-used-in-more-than-one-account",id:9332114},{url:"https://help.m1.com/hc/en-us/articles/360001310507-My-first-deposit",id:9332048},{url:"https://help.m1.com/hc/en-us/articles/115015329187-My-gains-and-losses",id:9332164},{url:"https://help.m1.com/hc/en-us/articles/5107192178707-Newly-added-symbols",id:9332195},{url:"https://help.m1.com/hc/en-us/articles/8381368344467-OCCIDENTAL-PETE-CORP-OXY-Warrants-Offering",id:9332193},{url:"https://help.m1.com/hc/en-us/articles/115015404147-Open-an-M1-Custodial-Account-UTMA-UGMA",id:9332074},{url:"https://help.m1.com/hc/en-us/articles/4403962919315-Open-an-M1-Inherited-IRA",id:9332072},{url:"https://help.m1.com/hc/en-us/articles/233063888-Open-an-M1-Trust-Account",id:9332075},{url:"https://help.m1.com/hc/en-us/articles/4404768735123-Open-an-additional-M1-Invest-Account",id:9332069},{url:"https://help.m1.com/hc/en-us/articles/221052687-Open-my-account",id:9332043},{url:"https://help.m1.com/hc/en-us/articles/27036759727891-Opening-my-High-Yield-Cash-Account",id:9332248},{url:"https://help.m1.com/hc/en-us/articles/16453127426707-Opening-my-High-Yield-Savings-Account",id:9332260},{url:"https://help.m1.com/hc/en-us/articles/4403388158611-Other-types-of-margin-calls",id:9332247},{url:"https://help.m1.com/hc/en-us/articles/13165614084499-Owner-s-Rewards-Card-Credit-Limit-Increase",id:9332275},{url:"https://help.m1.com/hc/en-us/articles/26026668698387-Owner-s-Rewards-Card-FAQ",id:9332268},{url:"https://help.m1.com/hc/en-us/articles/26021907223827-Owner-s-Rewards-Card-Payments-FAQ",id:9332272},{url:"https://help.m1.com/hc/en-us/articles/26024426762259-Owner-s-Rewards-FAQ",id:9332271},{url:"https://help.m1.com/hc/en-us/articles/15046508215059-Promotions-Referrals-FAQ",id:9331990},{url:"https://help.m1.com/hc/en-us/articles/12705131205139-Reading-a-Consolidated-1099",id:9331904},{url:"https://help.m1.com/hc/en-us/articles/13380135575571-Reading-a-trade-confirmation",id:9331898},{url:"https://help.m1.com/hc/en-us/articles/4412191503891-Received-securities",id:9332117},{url:"https://help.m1.com/hc/en-us/articles/221053287-Remove-a-security-from-my-portfolio",id:9332129},{url:"https://help.m1.com/hc/en-us/articles/220989788-Remove-an-entire-Pie-from-my-portfolio",id:9332123},{url:"https://help.m1.com/hc/en-us/articles/4405849891219-Removing-a-Slice",id:9332111},{url:"https://help.m1.com/hc/en-us/articles/12701939582483-Revised-tax-documents",id:9331893},{url:"https://help.m1.com/hc/en-us/articles/230760707-Rollover-my-401-k-into-an-M1-IRA",id:9332015},{url:"https://help.m1.com/hc/en-us/articles/11235280434451-Savings-FAQs",id:9332259},{url:"https://help.m1.com/hc/en-us/articles/221052407-Security-and-insurance",id:9331958},{url:"https://help.m1.com/hc/en-us/articles/26856607876499-Settings-FAQ",id:9331962},{url:"https://help.m1.com/hc/en-us/articles/360011999774-Share-a-Cu
3stom-Pie",id:9331991},{url:"https://help.m1.com/hc/en-us/articles/360054286754-Smart-Transfers",id:9332031},{url:"https://help.m1.com/hc/en-us/articles/24406396740243-Staying-safe-from-scams-and-fraud",id:9331954},{url:"https://help.m1.com/hc/en-us/articles/115003679708-Steps-to-liquidate-M1-Invest-Account",id:9331997},{url:"https://help.m1.com/hc/en-us/articles/1500000443321-Stock-split-tracker",id:9332200},{url:"https://help.m1.com/hc/en-us/articles/360041337514-Tax-FAQ",id:9331899},{url:"https://help.m1.com/hc/en-us/articles/15162876873619-Tax-Form-5498",id:9331897},{url:"https://help.m1.com/hc/en-us/articles/12702204872595-Tax-glossary",id:9331902},{url:"https://help.m1.com/hc/en-us/articles/220991948-Tax-loss-harvesting",id:9332165},{url:"https://help.m1.com/hc/en-us/articles/360037840514-Trading-and-banking-holidays",id:9331980},{url:"https://help.m1.com/hc/en-us/articles/8090595722003-Transfer-your-IRA-into-an-M1-IRA-non-ACATS",id:9332005},{url:"https://help.m1.com/hc/en-us/articles/15730854987283-Troubleshooting",id:9331972},{url:"https://help.m1.com/hc/en-us/articles/221056367-Two-Factor-Authentication",id:9331936},{url:"https://help.m1.com/hc/en-us/articles/115015388528-Understanding-Money-Weighted-Rate-of-Return-in-Your-M1-Invest-Account",id:9332161},{url:"https://help.m1.com/hc/en-us/articles/115011725867-Understanding-performance-information",id:9332159},{url:"https://help.m1.com/hc/en-us/articles/221053567-Using-Auto-Invest",id:9332100},{url:"https://help.m1.com/hc/en-us/articles/221056087-Wash-sale",id:9332092},{url:"https://help.m1.com/hc/en-us/articles/4559558645523-What-are-M1-Margin-Loans-typically-used-for",id:9332209},{url:"https://help.m1.com/hc/en-us/articles/4559558645523-What-are-M1-Margin-Loans-typically-used-for-",id:9332209},{url:"https://help.m1.com/hc/en-us/articles/220989168-What-are-M1-Model-Portfolios",id:9332050},{url:"https://help.m1.com/hc/en-us/articles/4563089724947-What-are-the-interest-rates",id:9332230},{url:"https://help.m1.com/hc/en-us/articles/4562735063443-What-can-I-use-an-M1-Margin-Loan-for",id:9332221},{url:"https://help.m1.com/hc/en-us/articles/4564453526675-What-do-I-do-when-a-maintenance-call-is-issued-by-M1",id:9332245},{url:"https://help.m1.com/hc/en-us/articles/4562640999827-What-do-you-do-when-there-is-a-margin-call",id:9332215},{url:"https://help.m1.com/hc/en-us/articles/4403021135379-What-fee-was-I-charged",id:9331971},{url:"https://help.m1.com/hc/en-us/articles/4559718586771-What-is-a-Margin-Loan",id:9332208},{url:"https://help.m1.com/hc/en-us/articles/4559718586771-What-is-a-Margin-Loan-",id:9332208},{url:"https://help.m1.com/hc/en-us/articles/4404384976019-What-is-a-Pie",id:9331915},{url:"https://help.m1.com/hc/en-us/articles/360044328454-What-is-a-good-faith-violation",id:9331978},{url:"https://help.m1.com/hc/en-us/articles/4408286566675-What-is-a-reclamation",id:9331977},{url:"https://help.m1.com/hc/en-us/articles/4409270263827-What-is-a-trusted-contact",id:9331942},{url:"https://help.m1.com/hc/en-us/articles/4562828206483-What-is-an-M1-Margin-Loan",id:9332219},{url:"https://help.m1.com/hc/en-us/articles/220990628-What-securities-can-I-transfer",id:9332016},{url:"https://help.m1.com/hc/en-us/articles/4405849799315-What-securities-does-M1-support",id:9332049},{url:"https://help.m1.com/hc/en-us/articles/8091094845459-What-should-I-do-with-my-old-401-k",id:9332003},{url:"https://help.m1.com/hc/en-us/articles/4562893249171-When-am-I-eligible-to-use-an-M1-Margin-Loan",id:9332222},{url:"https://help.m1.com/hc/en-us/articles/4563042043027-When-do-I-need-to-pay-my-M1-Margin-Loan",id:9332225},{url:"https://help.m1.com/hc/en-us/articles/221053187-When-will-buys-sells-be-triggered",id:9332082},{url:"https://help.m1.com/hc/en-us/articles/221052267-Where-can-I-find-my-account-number",id:9331965},{url:"https://help.m1.com/hc/en-us/articles/221052327-Where-can-I-find-statements-forms-and-documents",id:9331948},{url:"https://help.m1.com/hc/en-us/articles/7219523886611-Where-can-I-track-the-status-of-my-brokerage-account-transfer",id:9332010},{url:"https://help.m1.com/hc/en-us/articles/4414880398483-Where-can-I-view-more-details-about-stocks",id:9332083},{url:"https://help.m1.com/hc/en-us/articles/4407068567571-Which-IRA-is-right-for-me-Traditional-vs-Roth-vs-SEP-IRAs",id:9332143},{url:"https://help.m1.com/hc/en-us/articles/360001007308-Why-is-my-trade-not-going-through",id:9332110},{url:"https://help.m1.com/hc/en-us/articles/16692702619283-Wire-Transfer-FAQs",id:9332027},{url:"https://help.m1.com/hc/en-us/articles/4407077400595-Your-guide-to-tax-season-for-your-M1-IRA",id:9332145},{url:"https://help.m1.com/hc/en-us/articles/4559718586771-What-is-a-Margin-Loan",id:9332208},{url:"https://help.m1.com/hc/en-us/articles/10562536824595-M1-Personal-Loan-Application-and-Eligibility#h_01GJE5T1JNYR8BX0506B8Z5NPW",id:9332201},{url:"https://help.m1.com/hc/en-us/articles/10562536824595-M1-Personal-Loan-Application-and-Eligibility#h_01GJE5TN0B0KANKC99KZCK1RMD",id:9332201},{url:"https://help.m1.com/en/articles/9332201-apply-for-an-m1-personal-loan#h_01HKMV4R2C40PQTFFFB7QGQXGT",id:9332206},{url:"https://help.m1.com/en/articles/9332201-apply-for-an-m1-personal-loan#h_01HKMV4R2C40PQTFFFB7QGQXGT",id:9332206},{url:"https://help.m1.com/en/articles/9332206-funding-and-payments#h_01GJE6VDP0DC49TXKF0N2B4988",id:9332206},{url:"https://help.m1.com/hc/en-us/articles/10562536824595-M1-Personal-Loan-Application-and-Eligibility#h_01GJE5T1JNYR8BX0506B8Z5NPW",id:9332201},{url:"https://help.m1.com/hc/en-us/articles/10562536824595-M1-Personal-Loan-Application-and-Eligibility#h_01GJE5TN0B0KANKC99KZCK1RMD",id:9332201},{url:"https://help.m1.com/hc/en-us/articles/4403276582931-Set-up-recurring-transfers",id:9331992}]},{}],13:[function(e,t,n){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},b=this&&this.__rest||function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},_=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},r=(n.__esModule=!0,n.initLaunchDarkly=n.setIdentityFromCookie=n.storeUrlParameterInCookie=n.convertHelpToIntercom=n.createIntercomLinks=n.createAppsflyerLinks=n.createSegmentLinks=n.createTooltips=n.getOneLink=n.copyToClipboard=void 0,e("@popperjs/core")),a=e("launchdarkly-js-client-sdk"),i=e("./data/helpcenter");function w(e){var t,n=e.getAttribute("href");return n=null===n?e.classList.contains("wp-block-kadence-modal")?(t=e.querySelector("button"),"".concat(t.innerText," Mod
3al")):(t=e.querySelector("[href]")).getAttribute("href"):n}function s(t,p){var m;void 0===p&&(p=!1);try{m=new URL(t)}catch(e){return console.error(t+" is not a valid URL"),null}var g,v=["https://dashboard.m1.com/d/plus","https://dashboard.m1.com/d/home","https://dashboard.m1.com/d/spend","https://dashboard.m1.com/d/invest","https://dashboard.m1.com/d/research","https://dashboard.m1.com/d/c/open-account","https://dashboard.m1.com/login","https://dashboard.m1.com/signup","https://dashboard.m1.com/d/referrals","https://dashboard.m1.com/d/settings","https://dashboard.m1.com/d/borrow","https://dashboard.m1.com/d/waitlist","https://dashboard.m1.com/d/move-money/account-transfer","https://dashboard.m1.com/d/move-money","https://dashboard.m1.com/d/w/acat-wizard","https://dashboard.m1.com/d/crypto","https://dashboard.m1.com/d/open-invest-account","https://dashboard.m1.com/savings-onboarding"];return"dashboard.m1.com"===m.hostname&&(g=null,v.forEach(function(e){var t="https://dashboard.m1.com/signup"===e,n=new URL(e);if(m.pathname!==n.pathname&&m.pathname!==n.pathname+"/")return null;var r=Object.fromEntries(m.searchParams.entries()),i=r.utm_source,o=r.utm_campaign,a=r.utm_medium,s=r.utm_term,l=r.utm_content,c=r.deep_link_value,u=b(r,["utm_source","utm_campaign","utm_medium","utm_term","utm_content","deep_link_value"]),r={keys:["utm_source"],defaultValue:i||"m1static"},i={keys:["utm_campaign"],defaultValue:null},a=(o&&(i=y(y({},i),{defaultValue:o})),{keys:["utm_medium"],defaultValue:a||"direct"}),d={keys:["utm_term"],defaultValue:null},s=(o&&(d=y(y({},d),{defaultValue:s})),{keys:["utm_content"],defaultValue:null}),o=(o&&(s=y(y({},s),{defaultValue:l})),{paramKey:"af_web_dp",keys:[],defaultValue:encodeURIComponent(e)}),l={paramKey:"af_dp",keys:[],defaultValue:encodeURIComponent(e)},e={paramKey:"deep_link_value",keys:[],defaultValue:c?encodeURIComponent(c):encodeURIComponent(n.pathname)},c=Object.keys(u).map(function(e){return{paramKey:e,keys:[],defaultValue:u[e]}}),n=_([o],c,!0);h=v,o=document.querySelectorAll("[data-trackingid]"),f=!1,o.forEach(function(e){var t=e.dataset.trackingid,e=w(e);h.includes(e)&&(f=t)});var h,f,c={paramKey:"af_sub1",keys:[],defaultValue:""},o=(p&&(c={paramKey:"af_sub1",keys:[],defaultValue:f}),{paramKey:"af_sub2",keys:[],defaultValue:x("gclid")});t||n.unshift(l,{paramKey:"af_force_deeplink",keys:[],defaultValue:!1}),g=window.AF_SMART_SCRIPT.generateOneLinkURL({oneLinkURL:"https://click.m1.com/Nw7U/",afParameters:{mediaSource:r,campaign:i,channel:a,ad:d,adSet:s,deepLinkValue:e,afSub1:c,afSub2:o,afCustom:n}})}),g)||null}n.copyToClipboard=function(e){var t=document.createElement("input");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),t.remove()},n.createAppsflyerLinks=function(){var e=window.location.pathname;if(["/special-invite/dennis/","/special-invite/steve/"].includes(e))return!1;n=[],document.querySelectorAll("[data-trackingid]").forEach(function(e){var t;null===e.getAttribute("href")?(t=e.querySelector("[href]"),n.push(t)):n.push(e)});var n,t=n;if(window.matchMedia("(max-width:578px)").matches)for(var r,i=document.getElementsByTagName("a"),o=0;o<i.length;o++)i[o].href&&(r=Boolean(t.includes(i[o])),r=s(i[o].href,r))&&r.clickURL&&(i[o].href=r.clickURL)},n.getOneLink=s,n.createTooltips=function(){var e=document.querySelectorAll(".tooltip_wrap");e&&(e.forEach(function(e){var t=e.querySelector(".tooltip__button"),e=e.querySelector(".tooltip");(0,r.createPopper)(t,e,{placement:"top",scroll:!0,resize:!0,modifiers:[{name:"offset",options:{offset:[0,-16]}}]})}),["mouseenter","focus"].forEach(function(r){e.forEach(function(e){var t=e.querySelector(".tooltip__button"),n=e.querySelector(".tooltip");t.addEventListener(r,function(){n.setAttribute("data-show","")}),n.addEventListener(r,function(){n.setAttribute("data-show","")})})}),["mouseleave","blur"].forEach(function(r){e.forEach(function(e){var t=e.querySelector(".tooltip__button"),n=e.querySelector(".tooltip");t.addEventListener(r,function(){n.removeAttribute("data-show")}),n.addEventListener(r,function(){n.removeAttribute("data-show")})})}))};n.convertHelpToIntercom=function(){document.querySelectorAll("a[href*='help.m1.com']").forEach(function(t){var n,e=i.helpurlsAndids.filter(function(e){return t.getAttribute("href").trim()===e.url});0!==e.length&&(n=e.pop(),t.addEventListener("click",function(e){e.preventDefault(),o(null==n?void 0:n.id)}))})};var o=function(e){window.Intercom("showArticle",e)},x=(n.createIntercomLinks=function(){document.querySelectorAll("[data-intercomid]").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),window.Intercom("showArticle",t.dataset.intercomid)})})},n.createSegmentLinks=function(){document.querySelectorAll("[data-trackingid]").forEach(function(e){var t=e.dataset.trackingid,n={to:w(e),from:window.location.href};analytics.trackLink(e,t,n)})},function(e){e="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===e.length)return e.pop().split(";").shift()}),l=function(e,t,n){document.cookie="".concat(e,"=").concat(t,"; max-age=").concat(n)},c=function(e,t){document.cookie="".concat(document.cookie).concat(e,"=").concat(t,"; max-age=0;")}
3,u=(n.storeUrlParameterInCookie=function(e,t,n){var r,t=new URLSearchParams(window.location.search).get(t);null!==t&&(n=86400*n,null===(r=x(e))?l(e,t,n):r!==t&&(c(e,r),l(e,t,n)))},n.setIdentityFromCookie=function(e,t){var n,e=x(e);null!=e&&((n={})[t]=e,analytics.identify(null,n))},function(e){return"true"===e}),d=function(t){document.querySelectorAll(".experiment-hider").forEach(function(e){t?(e.classList.remove("hidden"),e.classList.add("animate-fade-in-up")):(e.classList.remove("animate-fade-in-up"),e.classList.add("animate-fade-out-down"),e.classList.add("hidden"))})},h=function(){var e=document.querySelector(".kadence-conversion-wrap.kc-valign-top");null!=e&&(document.querySelector(".kc-banner-top-offset").style.paddingTop="".concat(e.offsetHeight,"px"))};n.initLaunchDarkly=function(){var e={clientKey:"live"===window.environment?"62cc4cc6820bfb110589832c":"62ea849896eff41158c4e215"},t=analytics.user(),n=t.id(),t=t.anonymousId(),r={kind:"user",anonymous:!0},o=(n?(r.key=n,r.anonymous=!1):t&&(r.key=t),a.initialize(e.clientKey,r)),i=!1;o.on("ready",function(){document.querySelectorAll("[data-ld]").forEach(function(e){var r,i=o.variation(e.dataset.ldfeaturekey);e.querySelectorAll(".variant").forEach(function(e){var t,n;r="boolean"==typeof i?u(e.dataset.ldfeaturevalue):"number"==typeof i?Number(e.dataset.ldfeaturevalue):e.dataset.ldfeaturevalue,i===r?((n=(t=e.querySelector(".content")).classList).toggle("opacity-0"),n.toggle("animate-fade-in-up"),Boolean(t.closest(".kadence-conversion-wrap"))&&setTimeout(h,100)):e.remove()})}),d(!(i=!0))}),setTimeout(function(){i||d(!0)},2e3)}},{"./data/helpcenter":12,"@popperjs/core":8,"launchdarkly-js-client-sdk":10}],14:[function(e,I,D){!function(L){!function(){function w(t){var e,n,r,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{keys:[],overrideValues:{},defaultValue:""};return null!=i&&i.keys&&Array.isArray(i.keys)||null!=i&&i.defaultValue?(n=i.keys,r=void 0===(r=i.overrideValues)?{}:r,e=void 0===(e=i.defaultValue)?"":e,(n=(void 0===n?[]:n).find(function(e){return!!t[e]}))&&(r[r=t[n]]||r)||e):(console.error("Parameter config structure is wrong",i),null)}
3function x(e){var t=e.url,n=e.skipKeys,e=e.errorMsg;if(t){var r=t.toLowerCase();if(r)return(t=n.find(function(e){return r.includes(e.toLowerCase())}))&&console.debug(e,t),!!t}}var k="gclid",E="keyword",O="af_keywords",C=["pid","c","af_channel","af_ad","af_adset","deep_link_value","af_sub1","af_sub2","af_sub3","af_sub4","af_sub5"],A=["pid","c","af_channel","af_ad","af_adset","deep_link_value"];function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){var u,e,t="object"==(void 0===L?"undefined":T(L))&&L&&L.Object===Object&&L,n="object"==("undefined"==typeof self?"undefined":T(self))&&self&&self.Object===Object&&self,r=t||n||Function("return this")(),t="object"==(void 0===D?"undefined":T(D))&&D&&!D.nodeType&&D,n=t&&"object"==(void 0===I?"undefined":T(I))&&I&&!I.nodeType&&I,i=r.QRCode;function o(e,t,n){this.mode=s.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var r=0,i=this.data.length;r<i;r++){var o=[],a=this.data.charCodeAt(r);t?o[0]=a:65536<a?(o[0]=240|(1835008&a)>>>18,o[1]=128|(258048&a)>>>12,o[2]=128|(4032&a)>>>6,o[3]=128|63&a):2048<a?(o[0]=224|(61440&a)>>>12,o[1]=128|(4032&a)>>>6,o[2]=128|63&a):128<a?(o[0]=192|(1984&a)>>>6,o[1]=128|63&a):o[0]=a,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),n||this.parsedData.length==this.data.length||(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}o.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}},l.prototype={addData:function(e,t,n){e=new o(e,t,n);this.dataList.push(e),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t][0]},getEye:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);e=this.modules[e][t];return e[1]?(t="P"+e[1]+"_"+e[2],"A"==e[2]&&(t="A"+e[1]),{isDark:e[0],type:t}):null},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=[]}this.setupPositionProbePattern(0,0,"TL"),this.setupPositionProbePattern(this.moduleCount-7,0,"BL"),this.setupPositionProbePattern(0,this.moduleCount-7,"TR"),this.setupPositionAdjustPattern("A"),this.setupTimingPattern(),this.setupTypeInfo(e,t),7<=this.typeNumber&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t,n){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=r&&r<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=i&&i<=4?(this.modules[e+r][t+i][0]=!0,this.modules[e+r][t+i][2]=n,this.modules[e+r][t+i][1]=-0==r||-0==i||6==r||6==i?"O":"I"):this.modules[e+r][t+i][0]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=y.getLostPoint(this);(0==n||r<e)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var o=+i,a=0;a<this.modules[i].length;a++){var s=+a;this.modules[i][a][0]&&(r.beginFill(0,100),r.moveTo(s,o),r.lineTo(1+s,o),r.lineTo(1+s,1+o),r.lineTo(s,1+o),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6][0]&&(this.modules[e][6][0]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t][0]&&(this.modules[6][t][0]=t%2==0)},setupPositionAdjustPattern:function(e){for(var t=y.getPatternPosition(this.typeNumber),n=0;n<t.length;n++)for(var r=0;r<t.length;r++){var i=t[n],o=t[r];if(null==this.modules[i][o][0])for(var a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2==a||2==a||-2==s||2==s||0==a&&0==s?(this.modules[i+a][o+s][0]=!0,this.modules[i+a][o+s][2]=e,this.modules[i+a][o+s][1]=-2==a||-2==s||2==a||2==s?"O":"I"):this.modules[i+a][o+s][0]=!1}},setupTypeNumber:function(e){for(var t=y.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3][0]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)][0]=r}},setupTypeInfo:function(e,t){for(var t=this.errorCorrectLevel<<3|t,n=y.getBCHTypeInfo(t),r=0;r<15;r++){var i=!e&&1==(n>>r&1);r<6?this.modules[r][8][0]=i:r<8?this.modules[r+1][8][0]=i:this.modules[this.moduleCount-15+r][8][0]=i}for(r=0;r<15;r++){i=!e&&1==(n>>r&1);r<8?this.modules[8][this.moduleCount-r-1][0]=i:r<9?this.modules[8][15-r-1+1][0]=i:this.modules[8][15-r-1][0]=i}this.modules[this.moduleCount-8][8][0]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;0<a;a-=2)for(6==a&&a--;;){for(var s,l,c=0;c<2;c++)null==this.modules[r][a-c][0]&&(s=!1,o<e.length&&(s=1==(e[o]>>>i&1)),l=y.getMask(t,r,a-c),this.modules[r][a-c][0]=s=l?!s:s,-1==--i)&&(o++,i=7);if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=x.getRSBlocks(e,t),i=new k,o=0;o<n.length;o++){var a=n[o];i.put(a.mode,4),i.put(a.getLength(),y.getLengthInBits(a.mode,e)),a.write(i)}for(var s=0,o=0;o<r.length;o++)s+=r[o].dataCount;if(i.getLengthInBits()>8*s)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*s+")");for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;;){if(i.getLengthInBits()>=8*s)break;if(i.put(l.PAD0,8),i.getLengthInBits()>=8*s)break;i.put(l.PAD1,8)}return l.createBytes(i,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s++){var l=t[s].dataCount,c=t[s].totalCount-l,r=Math.max(r,l),i=Math.max(i,c);o[s]=new Array(l);for(var u=0;u<o[s].length;u++)o[s][u]=255&e.buffer[u+n];n+=l;var l=y.getErrorCorrectPolynomial(c),d=new w(o[s],l.getLength()-1).mod(l);a[s]=new Array(l.getLength()-1);for(u=0;
vendor: 4,494 bytes, line 3
3u<a[s].length;u++){var h=u+d.getLength()-a[s].length;a[s][u]=0<=h?d.get(h):0}}for(var f=0,u=0;u<t.length;u++)f+=t[u].totalCount;for(var p=new Array(f),m=0,u=0;u<r;u++)for(s=0;s<t.length;s++)u<o[s].length&&(p[m++]=o[s][u]);for(u=0;u<i;u++)for(s=0;s<t.length;s++)u<a[s].length&&(p[m++]=a[s][u]);return p};for(var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},c={L:1,M:0,Q:3,H:2},a=0,d=1,h=2,f=3,p=4,m=5,g=6,v=7,y={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;0<=y.getBCHDigit(t)-y.getBCHDigit(y.G15);)t^=y.G15<<y.getBCHDigit(t)-y.getBCHDigit(y.G15);return(e<<10|t)^y.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;0<=y.getBCHDigit(t)-y.getBCHDigit(y.G18);)t^=y.G18<<y.getBCHDigit(t)-y.getBCHDigit(y.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return y.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case d:return t%2==0;case h:return n%3==0;case f:return(t+n)%3==0;case p:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case m:return t*n%2+t*n%3==0;case g:return(t*n%2+t*n%3)%2==0;case v:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new w([1],0),n=0;n<e;n++)t=t.multiply(new w([1,b.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:case s.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l++)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(r+s,i+l)&&o++;5<o&&(n+=3+o-5)}for(r=0;r<t-1;r++)for(i=0;i<t-1;i++){var c=0;e.isDark(r,i)&&c++,e.isDark(r+1,i)&&c++,e.isDark(r,i+1)&&c++,e.isDark(r+1,i+1)&&c++,0!=c&&4!=c||(n+=3)}for(r=0;r<t;r++)for(i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i++)for(r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);for(var u=0,i=0;i<t;i++)for(r=0;r<t;r++)e.isDark(r,i)&&u++;return n+=10*(Math.abs(100*u/t/t-50)/5)}},b={glog:function(e){if(e<1)throw new Error("glog("+e+")");return b.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;256<=e;)e-=255;return b.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},_=0;_<8;_++)b.EXP_TABLE[_]=1<<_;for(_=8;_<256;_++)b.EXP_TABLE[_]=b.EXP_TABLE[_-4]^b.EXP_TABLE[_-5]^b.EXP_TABLE[_-6]^b.EXP_TABLE[_-8];for(_=0;_<255;_++)b.LOG_TABLE[b.EXP_TABLE[_]]=_;function w(e,t){if(e.length==u)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function x(e,t){this.totalCount=e,this.dataCount=t}function k(){this.buffer=[],this.length=0}w.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=b.gexp(b.glog(this.get(n))+b.glog(e.get(r)));return new w(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=b.glog(this.get(0))-b.glog(e.get(0)),n=new Array(this.getLength()),r
vendor: 4,287 bytes, line 3
3=0;r<this.getLength();r++)n[r]=this.get(r);for(r=0;r<e.getLength();r++)n[r]^=b.gexp(b.glog(e.get(r))+t);return new w(n,0).mod(e)}},x.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],x.getRSBlocks=function(e,t){var n=x.getRsBlockTable(e,t);if(n==u)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=[],o=0;o<r;o++)for(var a=n[3*o+0],s=n[3*o+1],l=n[3*o+2],c=0;c<a;c++)i.push(new x(s,l));return i},x.getRsBlockTable=function(e,t){switch(t){case c.L:return x.RS_BLOCK_TABLE[4*(e-1)+0];case c.M:return x.RS_BLOCK_TABLE[4*(e-1)+1];case c.Q:return x.RS_BLOCK_TABLE[4*(e-1)+2];case c.H:return x.RS_BLOCK_TABLE[4*(e-1)+3];default:return u}},k.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var E=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,71
35,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function O(){var e=!1,t=navigator.userAgent;return e=/android/i.test(t)&&(e=!0,t=t.toString().match(/android ([0-9]\.[0-9])/i))&&t[1]?parseFloat(t[1]):e}var C="undefined"==typeof CanvasRenderingContext2D?(A.prototype.draw=function(e){var t=this._htOption,n=this._el,r=e.getModuleCount(),i=Math.round(t.width/r),o=Math.round((t.height-t.titleHeight)/r),a=(o<=1&&(o=1),this._htOption.width=(i=i<=1?1:i)*r,this._htOption.height=o*r+t.titleHeight,this._htOption.quietZone=Math.round(this._htOption.quietZone),[]),s="",l=Math.round(i*t.dotScale),c=Math.round(o*t.dotScale),u=(l<4&&(c=l=4),t.colorDark),d=t.colorLight;t.backgroundImage&&(t.autoColor?(t.colorDark="rgba(0, 0, 0, .6);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#99000000', EndColorStr='#99000000');",t.colorLight="rgba(255, 255, 255, .7);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#B2FFFFFF', EndColorStr='#B2FFFFFF');"):t.colorLight="rgba(0,0,0,0)",v='<div style="display:inline-block; z-index:-10;position:absolute;"><img src="'+t.backgroundImage+'" widht="'+(t.width+2*t.quietZone)+'" height="'+(t.height+2*t.quietZone)+'" style="opacity:'+t.backgroundImageAlpha+";filter:alpha(opacity="+100*t.backgroundImageAlpha+'); "/></div>',a.push(v)),t.quietZone&&(s="display:inline-block; width:"+(t.width+2*t.quietZone)+"px; height:"+(t.width+2*t.quietZone)+"px;background:"+t.quietZoneColor+"; text-align:center;"),a.push('<div style="font-size:0;'+s+'">'),a.push('<table  style="font-size:0;border:0;border-collapse:collapse; margin-top:'+t.quietZone+'px;" border="0" cellspacing="0" cellspadding="0" align="center" valign="middle">'),a.push('<tr height="'+t.titleHeight+'" align="center"><td style="border:0;border-collapse:collapse;margin:0;padding:0" colspan="'+r+'">'),t.title&&(v=t.titleColor,s=t.titleFont,a.push('<div style="width:100%;margin-top:'+t.titleTop+"px;color:"+v+";font:"+s+";background:"+t.titleBackgroundColor+'">'+t.title+"</div>")),t.subTitle&&a.push('<div style="width:100%;margin-top:'+(t.subTitleTop-t.titleTop)+"px;color:"+t.subTitleColor+"; font:"+t.subTitleFont+'">'+t.subTitle+"</div>"),a.push("</td></tr>");for(var h=0;h<r;h++){a.push('<tr style="border:0; padding:0; margin:0;" height="7">');for(var f=0;f<r;f++){var p=e.isDark(h,f),m=e.getEye(h,f);m?(p=m.isDark,m=t[m=m.type]||t[m.substring(0,2)]||u,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+i+"px;height:"+o+'px;"><span style="width:'+i+"px;height:"+o+"px;background-color:"+(p?m:d)+';display:inline-block"></span></td>')):(m=t.colorDark,6==h?(m=t.timing_H||t.timing||u,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+i+"px;height:"+o+"px;background-color:"+(p?m:d)+';"></td>')):6==f?(m=t.timing_V||t.timing||u,a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+i+"px;height:"+o+"px;background-color:"+(p?m:d)+';"></td>')):a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+i+"px;height:"+o+'px;"><div style="display:inline-block;width:'+l+"px;height:"+c+"px;background-color:"+(p?m:t.colorLight)+';"></div></td>'))}a.push("</tr>")}a.push("</table>"),a.push("</div>"),t.logo&&(v=new Image,null!=t.crossOrigin&&(v.crossOrigin=t.crossOrigin),v.src=t.logo,(s=t.width/3.5)!=(v=t.height/3.5)&&(s=v),t.logoWidth&&(s=t.logoWidth),t.logoHeight&&(v=t.logoHeight),g="position:relative; z-index:1;display:table-cell;top:-"+((t.height-t.titleHeight)/2+v/2+t.quietZone)+"px;text-align:center; width:"+s+"px; height:"+v+"px;line-height:"+s+"px; vertical-align: middle;",t.logoBackgroundTransparent||(g+="background:"+t.logoBackgroundColor),a.push('<div style="'+g+'"><img  src="'+t.logo+'"  style="max-width: '+s+"px; max-height: "+v+'px;" /> <div style=" display: none; width:1px;margin-left: -1px;"></div></div>')),t.onRenderingStart&&t.onRenderingStart(t),n.innerHTML=a.join("");var g=n.childNodes[0],s=(t.width-g.offsetWidth)/2,v=(t.height-g.offsetHeight)/2;
30<s&&0<v&&(g.style.margin=v+"px "+s+"px"),this._htOption.onRenderingEnd&&this._htOption.onRenderingEnd(this._htOption,null)},A.prototype.clear=function(){this._el.innerHTML=""},A):function(){function e(){if("svg"==this._htOption.drawer){var e=this._oContext.getSerializedSvg(!0);this.dataURL=e,this._el.innerHTML=e}else try{var t=this._elCanvas.toDataURL("image/png");this.dataURL=t}catch(e){console.error(e)}this._htOption.onRenderingEnd&&(this.dataURL||console.error("Can not get base64 data, please check: 1. Published the page and image to the server 2. The image request support CORS 3. Configured `crossOrigin:'anonymous'` option"),this._htOption.onRenderingEnd(this._htOption,this.dataURL))}var u,d;r._android&&r._android<=2.1&&(u=1/window.devicePixelRatio,d=CanvasRenderingContext2D.prototype.drawImage,CanvasRenderingContext2D.prototype.drawImage=function(e,t,n,r,i,o,a,s,l){if("nodeName"in e&&/img/i.test(e.nodeName))for(var c=arguments.length-1;1<=c;c--)arguments[c]=arguments[c]*u;else void 0===s&&(arguments[1]*=u,arguments[2]*=u,arguments[3]*=u,arguments[4]*=u);d.apply(this,arguments)});function t(e,t){this._bIsPainted=!1,this._android=O(),this._el=e,this._htOption=t,"svg"==this._htOption.drawer?(this._oContext={},this._elCanvas={}):(this._elCanvas=document.createElement("canvas"),this._el.appendChild(this._elCanvas),this._oContext=this._elCanvas.getContext("2d")),this._bSupportDataURI=null,this.dataURL=null}return t.prototype.draw=function(n){var r,h=this._htOption,f=(h.title||h.subTitle||(h.height-=h.titleHeight,h.titleHeight=0),n.getModuleCount()),p=Math.round(h.width/f),m=Math.round((h.height-h.titleHeight)/f),g=(p<=1&&(p=1),m<=1&&(m=1),h.width=p*f,h.height=m*f+h.titleHeight,h.quietZone=Math.round(h.quietZone),this._elCanvas.width=h.width+2*h.quietZone,this._elCanvas.height=h.height+2*h.quietZone,"canvas"!=this._htOption.drawer&&(this._oContext=new C2S(this._elCanvas.width,this._elCanvas.height)),this.clear(),this._oContext),i=(g.lineWidth=0,g.fillStyle=h.colorLight,g.fillRect(0,0,this._elCanvas.width,this._elCanvas.height),this);function v(){0<h.quietZone&&h.quietZoneColor&&(g.lineWidth=0,g.fillStyle=h.quietZoneColor,g.fillRect(0,0,i._elCanvas.width,h.quietZone),g.fillRect(0,h.quietZone,h.quietZone,i._elCanvas.height-2*h.quietZone),g.fillRect(i._elCanvas.width-h.quietZone,h.quietZone,h.quietZone,i._elCanvas.height-2*h.quietZone),g.fillRect(0,i._elCanvas.height-h.quietZone,i._elCanvas.width,h.quietZone))}function o(e){h.onRenderingStart&&h.onRenderingStart(h);for(var c,u,t=0;t<f;t++)for(var n=0;n<f;n++){var r,i,o=n*p+h.quietZone,a=t*m+h.quietZone,s=e.isDark(t,n),l=e.getEye(t,n),d=h.dotScale;g.lineWidth=0,l?(r=h[l.type]||h[l.type.substring(0,2)]||h.colorDark,i=h.colorLight):h.backgroundImage?(i="rgba(0,0,0,0)",6==t?h.autoColor?(r=h.timing_H||h.timing||h.autoColorDark,i=h.autoColorLight):r=h.timing_H||h.timing||h.colorDark:6==n?h.autoColor?(r=h.timing_V||h.timing||h.autoColorDark,i=h.autoColorLight):r=h.timing_V||h.timing||h.colorDark:h.autoColor?(r=h.autoColorDark,i=h.autoColorLight):r=h.colorDark):(r=6==t?h.timing_H||h.timing||h.colorDark:6==n&&(h.timing_V||h.timing)||h.colorDark,i=h.colorLight),g.strokeStyle=s?r:i,g.fillStyle=s?r:i,l?(d="AO"==l.type?h.dotScaleAO:"AI"==l.type?h.dotScaleAI:1,h.backgroundImage&&h.autoColor?(r=("AO"==l.type?h.AI:h.AO)||h.autoColorDark,i=h.autoColorLight):r=("AO"==l.type?h.AI:h.AO)||r,l.isDark):6==t?d=h.dotScaleTiming_H:6==n?d=h.dotScaleTiming_V:h.backgroundImage,g.fillRect(o+p*(1-d)/2,h.titleHeight+a+m*(1-d)/2,p*d,m*d),1==h.dotScale||l||(g.strokeStyle=h.colorLight)}h.title&&(g.fillStyle=h.titleBackgroundColor,g.fillRect(0,0,this._elCanvas.width,h.titleHeight+h.quietZone),g.font=h.titleFont,g.fillStyle=h.titleColor,g.textAlign="center",g.f
3illText(h.title,this._elCanvas.width/2,+h.quietZone+h.titleTop)),h.subTitle&&(g.font=h.subTitleFont,g.fillStyle=h.subTitleColor,g.fillText(h.subTitle,this._elCanvas.width/2,+h.quietZone+h.subTitleTop)),h.logo?(c=new Image,u=this,c.onload=function(){var e,t,n,r,i,o,a,s,l;e=c,t=Math.round(h.width/3.5),n=Math.round(h.height/3.5),t!==n&&(t=n),h.logoMaxWidth?t=Math.round(h.logoMaxWidth):h.logoWidth&&(t=Math.round(h.logoWidth)),h.logoMaxHeight?n=Math.round(h.logoMaxHeight):h.logoHeight&&(n=Math.round(h.logoHeight)),s=void 0===e.naturalWidth?(a=e.width,e.height):(a=e.naturalWidth,e.naturalHeight),(h.logoMaxWidth||h.logoMaxHeight)&&(h.logoMaxWidth&&a<=t&&(t=a),h.logoMaxHeight&&s<=n&&(n=s),a<=t)&&s<=n&&(t=a,n=s),r=(h.width+2*h.quietZone-t)/2,i=(h.height+h.titleHeight+2*h.quietZone-n)/2,o=Math.min(t/a,n/s),a*=o,s*=o,(h.logoMaxWidth||h.logoMaxHeight)&&(r=(h.width+2*h.quietZone-(t=a))/2,i=(h.height+h.titleHeight+2*h.quietZone-(n=s))/2),h.logoBackgroundTransparent||(g.fillStyle=h.logoBackgroundColor,g.fillRect(r,i,t,n)),o=g.imageSmoothingQuality,l=g.imageSmoothingEnabled,g.imageSmoothingEnabled=!0,g.imageSmoothingQuality="high",g.drawImage(e,r+(t-a)/2,i+(n-s)/2,a,s),g.imageSmoothingEnabled=l,g.imageSmoothingQuality=o,v(),u._bIsPainted=!0,u.makeImage()},c.onerror=function(e){console.error(e)},null!=h.crossOrigin&&(c.crossOrigin=h.crossOrigin),c.originalSrc=h.logo,c.src=h.logo):(v(),this._bIsPainted=!0,this.makeImage())}h.backgroundImage?((r=new Image).onload=function(){g.globalAlpha=1,g.globalAlpha=h.backgroundImageAlpha;var e=g.imageSmoothingQuality,t=g.imageSmoothingEnabled;g.imageSmoothingEnabled=!0,g.imageSmoothingQuality="high",g.drawImage(r,0,h.titleHeight,h.width+2*h.quietZone,h.height+2*h.quietZone-h.titleHeight),g.imageSmoothingEnabled=t,g.imageSmoothingQuality=e,g.globalAlpha=1,o.call(i,n)},null!=h.crossOrigin&&(r.crossOrigin=h.crossOrigin),r.originalSrc=h.backgroundImage,r.src=h.backgroundImage):o.call(i,n)},t.prototype.makeImage=function(){this._bIsPainted&&!function(e,t){var n=this;n._fFail=t,n._fSuccess=e,null===n._bSupportDataURI?((t=document.createElement("img")).onabort=e=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)},t.onerror=e,t.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):!0===n._bSupportDataURI&&n._fSuccess?n._fSuccess.call(n):!1===n._bSupportDataURI&&n._fFail&&n._fFail.call(n)}.call(this,e)},t.prototype.isPainted=function(){return this._bIsPainted},t.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},t.prototype.remove=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1,this._el.innerHTML=""},t.prototype.round=function(e){return e&&Math.floor(1e3*e)/1e3},t}();function A(e,t){this._el=e,this._htOption=t}function S(e,t){for(var n,r=t.correctLevel,i=1,o=(e=e,(n=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(n.length!=e.length?3:0)),a=0,s=E.length;a<s;a++){var l=0;switch(r){case c.L:l=E[a][0];break;case c.M:l=E[a][1];break;case c.Q:l=E[a][2];break;case c.H:l=E[a][3]}if(o<=l)break;i++}if(E.length<i)throw new Error("Too long data. the CorrectLevel."+["M","L","H","Q"][r]+" limit length is "+l);return 0!=t.version&&(i<=t.version?i=t.version:console.warn("QR Code version "+t.version+" too small, run version use "+i),t.runVersion=i),i}(e=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.H,dotScale:1,dotScaleTiming:1,dotScaleTiming_H:u,dotScaleTiming_V:u,dotScaleA:1,dotScaleAO:u,dotScaleAI:u,quietZone:0,quietZoneColor:"rgba(0,0,0,0)",title:"",titleFont:"normal normal bold 16px Arial",titleColor:"#000000",titleBackgroundColor:"#ffffff",titleHeight:0,titleTop:30,subTitle:"",subTitleFont:"normal normal normal 14px Arial",subTitleColor:"#4F4F4F",subTitleTop:60,logo:u,logoWidth:u,logoHeight:u,logoMaxWidth:u,logoMaxHeight:u,logoBackgroun
3dColor:"#ffffff",logoBackgroundTransparent:!1,PO:u,PI:u,PO_TL:u,PI_TL:u,PO_TR:u,PI_TR:u,PO_BL:u,PI_BL:u,AO:u,AI:u,timing:u,timing_H:u,timing_V:u,backgroundImage:u,backgroundImageAlpha:1,autoColor:!1,autoColorDark:"rgba(0, 0, 0, .6)",autoColorLight:"rgba(255, 255, 255, .7)",onRenderingStart:u,onRenderingEnd:u,version:0,tooltip:!1,binary:!1,drawer:"canvas",crossOrigin:null,utf8WithoutBOM:!0},t="string"==typeof t?{text:t}:t)for(var n in t)this._htOption[n]=t[n];(this._htOption.version<0||40<this._htOption.version)&&(console.warn("QR Code version '"+this._htOption.version+"' is invalidate, reset to 0"),this._htOption.version=0),(this._htOption.dotScale<0||1<this._htOption.dotScale)&&(console.warn(this._htOption.dotScale+" , is invalidate, dotScale must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScale=1),(this._htOption.dotScaleTiming<0||1<this._htOption.dotScaleTiming)&&(console.warn(this._htOption.dotScaleTiming+" , is invalidate, dotScaleTiming must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleTiming=1),this._htOption.dotScaleTiming_H?(this._htOption.dotScaleTiming_H<0||1<this._htOption.dotScaleTiming_H)&&(console.warn(this._htOption.dotScaleTiming_H+" , is invalidate, dotScaleTiming_H must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleTiming_H=1):this._htOption.dotScaleTiming_H=this._htOption.dotScaleTiming,this._htOption.dotScaleTiming_V?(this._htOption.dotScaleTiming_V<0||1<this._htOption.dotScaleTiming_V)&&(console.warn(this._htOption.dotScaleTiming_V+" , is invalidate, dotScaleTiming_V must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleTiming_V=1):this._htOption.dotScaleTiming_V=this._htOption.dotScaleTiming,(this._htOption.dotScaleA<0||1<this._htOption.dotScaleA)&&(console.warn(this._htOption.dotScaleA+" , is invalidate, dotScaleA must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleA=1),this._htOption.dotScaleAO?(this._htOption.dotScaleAO<0||1<this._htOption.dotScaleAO)&&(console.warn(this._htOption.dotScaleAO+" , is invalidate, dotScaleAO must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleAO=1):this._htOption.dotScaleAO=this._htOption.dotScaleA,this._htOption.dotScaleAI?(this._htOption.dotScaleAI<0||1<this._htOption.dotScaleAI)&&(console.warn(this._htOption.dotScaleAI+" , is invalidate, dotScaleAI must greater than 0, less than or equal to 1, now reset to 1. "),this._htOption.dotScaleAI=1):this._htOption.dotScaleAI=this._htOption.dotScaleA,(this._htOption.backgroundImageAlpha<0||1<this._htOption.backgroundImageAlpha)&&(console.warn(this._htOption.backgroundImageAlpha+" , is invalidate, backgroundImageAlpha must between 0 and 1, now reset to 1. "),this._htOption.backgroundImageAlpha=1),this._htOption.height=this._htOption.height+this._htOption.titleHeight,"string"==typeof e&&(e=document.getElementById(e)),this._htOption.drawer&&("svg"==this._htOption.drawer||"canvas"==this._htOption.drawer)||(this._htOption.drawer="canvas"),this._android=O(),this._el=e,this._oQRCode=null;var r={};for(n in this._htOption)r[n]=this._htOption[n];this._oDrawing=new C(this._el,r),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(e){this._oQRCode=new l(S(e,this._htOption),this._htOption.correctLevel),this._oQRCode.addData(e,this._htOption.binary,this._htOption.utf8WithoutBOM),this._oQRCode.make(),this._htOption.tooltip&&(this._el.title=e),this._oDrawing.draw(this._oQRCode)},e.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||3<=this._android)&&this._oDrawing.makeImage()},e.prototype.clear=function(){this._oDrawing.remove()},e.prototype.resize=function(e,t){this._oDrawing._htOption.width=e,this._oDrawing._htOption.height=t,this._oDrawing.draw(this._oQRCode)},e.prototype.noConflict=function(){return r.QRCode===this&&(r.QRCode=i),e},e.CorrectLevel=c,"function"==typeof define&&(define.amd||define.cmd)?define([],function(){return e}):n?((n.exports=e).QRCode=e,t.QRCode=e):r.QRCode=e}S(),window.AF_SMART_SCRIPT={generateOneLinkURL:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{afParameters:{}},t=e.oneLinkURL,n=e.afParameters,r=(n=void 0===n?{}:n).mediaSource,i=n.campaign,o=n.channel,a=n.ad,s=n.adSet,l=n.deepLinkValue,c=n.afSub1,u=n.afSub2,d=n.afSub3,h=n.afSub4,f=n.afSub5,p=n.afCustom,m=n.googleClickIdKey,n=e.referrerSki
3pList,n=void 0===n?[]:n,e=e.urlSkipList,e=void 0===e?[]:e,g=null==(g=t||"")?void 0:g.toString().match("(https:\\/\\/)(([^\\.][^\\.]+).)(.*\\/)(.*)");if(!g||(null==g?void 0:g.length)<5)return console.error("oneLinkURL is missing or not in the correct format, can't generate URL",t),null;if(0===(null==r||null==(g=r.keys)?void 0:g.length)&&(null==r||!r.defaultValue))return console.error("mediaSource is missing (default value was not supplied), can't generate URL",r),null;if(x({url:document.referrer,skipKeys:n,errorMsg:"Generate url is skipped. HTTP referrer contains key:"}))return null;if(x({url:document.URL,skipKeys:e,errorMsg:"Generate url is skipped. URL contains string:"}))return null;var v,y={af_js_web:!0,af_ss_ver:window.AF_SMART_SCRIPT.version},b=function(e){e=e.replace("?","").split("&").reduce(function(e,t){t=t.split("=");return t[0]&&t[1]&&(e[[t[0]]]=t[1]),e},{});return console.debug("Generated current parameters object",e),e}(window.location.search);if(r){var g=w(b,r);if(!g)return console.error("mediaSource was not found in the URL and default value was not supplied, can't generate URL",r),null;y.pid=g}i&&(y.c=w(b,i)),o&&(y.af_channel=w(b,o)),a&&(y.af_ad=w(b,a)),s&&(y.af_adset=w(b,s)),l&&(y.deep_link_value=w(b,l)),[c,u,d,h,f].forEach(function(e,t){e&&(y["af_sub".concat(t+1)]=w(b,e))}),m&&(A.find(function(e){return e===m})?console.debug("Google Click Id ParamKey can't override AF Parameters keys",m):(n=m,r=(e=b)[k],g={},r?(console.debug("This user comes from Google AdWords"),g[n]=r,(n=e[E])&&(console.debug("There is a keyword associated with the ad"),g[O]=n)):console.debug("This user comes from SRN or custom network"),v=g,Object.keys(v).forEach(function(e){y[e]=v[e]}))),Array.isArray(p)&&p.forEach(function(t){var e;null!=t&&t.paramKey&&(e=C.find(function(e){return e===(null==t?void 0:t.paramKey)}),(null==t?void 0:t.paramKey)===m||e?console.debug("Custom parameter ParamKey can't override Google-Click-Id or AF Parameters keys",t):y[[t.paramKey]]=w(b,t))});var _=t+function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=Object.keys(n).reduce(function(e,t){return n[t]&&(e+="&".concat(t,"=").concat(n[t])),e},"");return console.debug("Generated OneLink parameters",e),e}(y).replace("&","?");return console.debug("Generated OneLink URL",_),window.AF_SMART_SCRIPT.displayQrCode=function(e){return _?new S(document.getElementById(e),"".concat(_,"&af_ss_qr=true")):(console.debug("ClickURL is not valid"),null)},{clickURL:_}},version:"2_1_1"}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[11]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.